OpenGrok
Home
Sort by relevance
Sort by last modified time
Full Search
Definition
Symbol
File Path
History
|
|
Help
Searched
refs:Utf8Utils
(Results
1 - 6
of
6
) sorted by null
/packages/inputmethods/LatinIME/native/dicttoolkit/tests/utils/
utf8_utils_test.cpp
31
const std::vector<int> codePoints =
Utf8Utils
::getCodePoints("");
35
const std::vector<int> codePoints =
Utf8Utils
::getCodePoints("test");
43
const std::vector<int> codePoints =
Utf8Utils
::getCodePoints(u8"\u3042a\u03C2\u0410");
51
const std::vector<int> codePoints =
Utf8Utils
::getCodePoints(u8"\U0001F36A?\U0001F752");
59
EXPECT_TRUE(
Utf8Utils
::getCodePoints("\xC0\xAF").empty());
60
EXPECT_TRUE(
Utf8Utils
::getCodePoints("\xE0\x80\xAF").empty());
61
EXPECT_TRUE(
Utf8Utils
::getCodePoints("\xF0\x80\x80\xAF").empty());
67
EXPECT_EQ("test",
Utf8Utils
::getUtf8String(CodePointArrayView(codePoints)));
79
Utf8Utils
::getUtf8String(CodePointArrayView(codePoints)));
/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
utf8_utils.cpp
24
const size_t
Utf8Utils
::MAX_SEQUENCE_SIZE_FOR_A_CODE_POINT = 4;
25
const uint8_t
Utf8Utils
::FIRST_BYTE_MARKER_MASKS[] = {0, 0x80, 0xE0, 0xF0, 0xF8};
26
const uint8_t
Utf8Utils
::FIRST_BYTE_MARKERS[] = {0, 0x00, 0xC0, 0xE0, 0xF0};
27
const uint8_t
Utf8Utils
::FIRST_BYTE_CODE_POINT_BITS_MASKS[] = {0, 0x7F, 0x1F, 0x0F, 0x03};
28
const int
Utf8Utils
::MAX_ENCODED_CODE_POINT_VALUES[] = {-1, 0x7F, 0x7FF, 0xFFFF, 0x10FFFF};
30
const uint8_t
Utf8Utils
::TRAILING_BYTE_CODE_POINT_BITS_MASK = 0x3F;
31
const uint8_t
Utf8Utils
::TRAILING_BYTE_MARKER = 0x80;
32
const size_t
Utf8Utils
::CODE_POINT_BIT_COUNT_IN_TRAILING_BYTE = 6;
34
/* static */ std::vector<int>
Utf8Utils
::getCodePoints(const std::string &utf8Str) {
65
/* static */ int
Utf8Utils
::getSequenceSizeByCheckingFirstByte(const uint8_t firstByte)
[
all
...]
utf8_utils.h
30
class
Utf8Utils
{
36
DISALLOW_IMPLICIT_CONSTRUCTORS(
Utf8Utils
);
/external/smali/dexlib2/src/main/java/org/jf/dexlib2/dexbacked/
BaseDexReader.java
35
import org.jf.util.
Utf8Utils
;
611
String value =
Utf8Utils
.utf8BytesWithUtf16LengthToString(
619
Utf8Utils
.utf8BytesWithUtf16LengthToString(
/prebuilts/tools/common/m2/repository/org/smali/util/2.1.3/
util-2.1.3.jar
/external/smali/util/src/main/java/org/jf/util/
Utf8Utils.java
33
public final class
Utf8Utils
{
Completed in 284 milliseconds