diff options
author | 2014-02-04 23:51:05 +0900 | |
---|---|---|
committer | 2014-02-05 17:35:25 +0900 | |
commit | 43cf9076b2d053c554941e55f6073b8f586c510b (patch) | |
tree | 80bc1df381a0a75a1ecb48dc723b8cb97abaf68c /native/jni/src/utils/char_utils.h | |
parent | aac53dd7f55c5175ac8950617750b3d5c2adcf59 (diff) | |
download | latinime-43cf9076b2d053c554941e55f6073b8f586c510b.tar.gz latinime-43cf9076b2d053c554941e55f6073b8f586c510b.tar.xz latinime-43cf9076b2d053c554941e55f6073b8f586c510b.zip |
[HD04] Make the locale mandatory.
Bug: 11281748
Change-Id: I69281b0053bec404c3e3c713ade3f65a140f51b1
Diffstat (limited to 'native/jni/src/utils/char_utils.h')
-rw-r--r-- | native/jni/src/utils/char_utils.h | 9 |
1 files changed, 9 insertions, 0 deletions
diff --git a/native/jni/src/utils/char_utils.h b/native/jni/src/utils/char_utils.h index 41663c81a..98b8966df 100644 --- a/native/jni/src/utils/char_utils.h +++ b/native/jni/src/utils/char_utils.h @@ -18,6 +18,7 @@ #define LATINIME_CHAR_UTILS_H #include <cctype> +#include <vector> #include "defines.h" @@ -85,7 +86,15 @@ class CharUtils { return spaceCount; } + static AK_FORCE_INLINE std::vector<int> convertShortArrayToIntVector( + const unsigned short *const source, const int length) { + std::vector<int> destination; + destination.insert(destination.end(), source, source + length); + return destination; // Copies the vector + } + static unsigned short latin_tolower(const unsigned short c); + static const std::vector<int> EMPTY_STRING; private: DISALLOW_IMPLICIT_CONSTRUCTORS(CharUtils); |