Both functions traverses the whole text:
1) There is no need to have both functions as the structure is pretty similar.
2) Merge both functions simplifies the process of RTL text.
Change-Id: Iac7920be581434cf5c9c15c00c74307d51700518 Signed-off-by: Victor Cebollada <v.cebollada@samsung.com>