Home
last modified time | relevance | path

Searched refs:utf8String (Results 1 – 2 of 2) sorted by relevance

/packages/inputmethods/LatinIME/native/dicttoolkit/src/utils/
Dutf8_utils.cpp85 std::string utf8String; in getUtf8String() local
95 utf8String.push_back(static_cast<char>(value | FIRST_BYTE_MARKERS[sequenceSize])); in getUtf8String()
100 utf8String.push_back(static_cast<char>(value | TRAILING_BYTE_MARKER)); in getUtf8String()
103 return utf8String; in getUtf8String()
/packages/apps/Bluetooth/src/com/android/bluetooth/map/
DBluetoothMapUtils.java417 public static byte[] truncateUtf8StringToBytearray(String utf8String, int maxLength) in truncateUtf8StringToBytearray() argument
420 byte[] utf8Bytes = new byte[utf8String.length() + 1]; in truncateUtf8StringToBytearray()
422 System.arraycopy(utf8String.getBytes("UTF-8"), 0, utf8Bytes, 0, utf8String.length()); in truncateUtf8StringToBytearray()