Home
last modified time | relevance | path

Searched refs:firstByte (Results 1 – 4 of 4) sorted by relevance

/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
Dutf8_utils.cpp65 /* static */ int Utf8Utils::getSequenceSizeByCheckingFirstByte(const uint8_t firstByte) { in getSequenceSizeByCheckingFirstByte() argument
67 if ((firstByte & FIRST_BYTE_MARKER_MASKS[i]) == FIRST_BYTE_MARKERS[i]) { in getSequenceSizeByCheckingFirstByte()
75 /* static */ AK_FORCE_INLINE int Utf8Utils::maskFirstByte(const uint8_t firstByte, in maskFirstByte() argument
77 return firstByte & FIRST_BYTE_CODE_POINT_BITS_MASKS[sequenceSize]; in maskFirstByte()
Dutf8_utils.h49 static int getSequenceSizeByCheckingFirstByte(const uint8_t firstByte);
50 static int maskFirstByte(const uint8_t firstByte, const int encodeSize);
/packages/inputmethods/LatinIME/native/jni/src/dictionary/utils/
Dbyte_array_utils.h162 const uint8_t firstByte = readUint8(buffer, *pos); in readCodePointAndAdvancePosition() local
163 if (firstByte < MINIMUM_ONE_BYTE_CHARACTER_VALUE) { in readCodePointAndAdvancePosition()
164 if (firstByte == CHARACTER_ARRAY_TERMINATOR) { in readCodePointAndAdvancePosition()
173 return codePointTable[firstByte - MINIMUM_ONE_BYTE_CHARACTER_VALUE]; in readCodePointAndAdvancePosition()
175 return firstByte; in readCodePointAndAdvancePosition()
/packages/inputmethods/LatinIME/native/jni/src/dictionary/structure/pt_common/
Dpatricia_trie_reading_utils.cpp49 const uint8_t firstByte = ByteArrayUtils::readUint8AndAdvancePosition(buffer, pos); in getPtNodeArraySizeAndAdvancePosition() local
50 if (firstByte < 0x80) { in getPtNodeArraySizeAndAdvancePosition()
51 return firstByte; in getPtNodeArraySizeAndAdvancePosition()
53 return ((firstByte & 0x7F) << 8) ^ ByteArrayUtils::readUint8AndAdvancePosition( in getPtNodeArraySizeAndAdvancePosition()