diff options
author | Anton Krumin <antkrumin@google.com> | 2014-03-12 14:46:44 -0700 |
---|---|---|
committer | Anton Krumin <antkrumin@google.com> | 2014-04-09 16:59:48 -0700 |
commit | a2ef5c0d4fb863c0382e77ae00f986a019b11cbe (patch) | |
tree | d6c10bedf5d762e0fc0bd10b38f381ccefefa248 /tools/aapt/pseudolocalize.h | |
parent | ecdf9b199ac9659c37c34c0b23084199acea80bf (diff) |
Pseudolocalizer improvements.
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>
Diffstat (limited to 'tools/aapt/pseudolocalize.h')
-rw-r--r-- | tools/aapt/pseudolocalize.h | 11 |
1 files changed, 10 insertions, 1 deletions
diff --git a/tools/aapt/pseudolocalize.h b/tools/aapt/pseudolocalize.h index 94cb034ac5ea..e6ab18ef1747 100644 --- a/tools/aapt/pseudolocalize.h +++ b/tools/aapt/pseudolocalize.h @@ -1,9 +1,18 @@ #ifndef HOST_PSEUDOLOCALIZE_H #define HOST_PSEUDOLOCALIZE_H +#include "StringPool.h" + #include <string> -std::string pseudolocalize_string(const std::string& source); +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 |