a2ef5c0d4f
Fixes accented pseudolocalization and adds RTL pseudolocale. This change contains following modifications in the pseudolocalization logic: 1) zz_ZZ pseudolocale was removed; 2) en_XA pseudolocale was added for pseudo-accented; 3) ar_XB pseudolocale was added for pseudo-rtl; 4) Pseudo RTL localization functionality was implemented; 5) Text expansion functionality was implemented; 6) Text bracketing was implemented; 7) Couple of issues of previous implementation were fixed. Change-Id: I9f7f27bed717e39e82717d15c398decffc8bec3c Signed-off-by: Anton Krumin <antkrumin@google.com>
19 lines
569 B
C++
19 lines
569 B
C++
#ifndef HOST_PSEUDOLOCALIZE_H
|
|
#define HOST_PSEUDOLOCALIZE_H
|
|
|
|
#include "StringPool.h"
|
|
|
|
#include <string>
|
|
|
|
String16 pseudolocalize_string(const String16& source);
|
|
// Surrounds every word in the sentance with specific characters that makes
|
|
// the word directionality RTL.
|
|
String16 pseudobidi_string(const String16& source);
|
|
// Generates expansion string based on the specified lenght.
|
|
// Generated string could not be shorter that length, but it could be slightly
|
|
// longer.
|
|
String16 pseudo_generate_expansion(const unsigned int length);
|
|
|
|
#endif // HOST_PSEUDOLOCALIZE_H
|
|
|