diff options
author | 2014-02-05 01:37:21 -0800 | |
---|---|---|
committer | 2014-02-05 01:37:21 -0800 | |
commit | 81c2a2a1aa95e8db6a38af8b2ae500a237c7928e (patch) | |
tree | 68bab49ae6aef3af267e32c8efbea68f4c50b266 /native/jni/src/utils/char_utils.h | |
parent | 9a7e36acd9bf0be7ddfd1475b29f61b263b76738 (diff) | |
parent | b162911fa4131cf90cd8dbaef325717eec4defa6 (diff) | |
download | latinime-81c2a2a1aa95e8db6a38af8b2ae500a237c7928e.tar.gz latinime-81c2a2a1aa95e8db6a38af8b2ae500a237c7928e.tar.xz latinime-81c2a2a1aa95e8db6a38af8b2ae500a237c7928e.zip |
am b162911f: Merge "[HD04] Make the locale mandatory."
* commit 'b162911fa4131cf90cd8dbaef325717eec4defa6':
[HD04] Make the locale mandatory.
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); |