Lines Matching refs:ucs2Length
268 int ucs2Length = Utf8ToUcs2(reinterpret_cast<uint8_t *>(pUcs2Text), maxUcs2Length * sizeof(WCHAR), src, srcLength);
269 return Ucs2ToGsm7bit(dest, maxLength, reinterpret_cast<uint8_t *>(pUcs2Text), ucs2Length, langId);
314 int ucs2Length = Utf8ToUcs2(reinterpret_cast<uint8_t *>(pUcs2Text), maxUcs2Length * sizeof(WCHAR), src, srcLength);
316 if (ucs2Length < 0) {
325 int length = Ucs2ToGsm7bitAuto(dest, maxLength, reinterpret_cast<uint8_t *>(pUcs2Text), ucs2Length,
329 if (ucs2Length <= 0) {
332 tempTextLen = (ucs2Length > maxLength) ? maxLength : ucs2Length;
360 int ucs2Length = Utf8ToUcs2(reinterpret_cast<uint8_t *>(pUcs2Text), maxUcs2Length * sizeof(WCHAR), src, srcLength);
362 if (ucs2Length < 0) {
371 int gsm7bitLength = Ucs2ToAscii(dest, maxLength, reinterpret_cast<uint8_t *>(pUcs2Text), ucs2Length, unknown);
374 if (ucs2Length <= 0) {
377 tempTextLen = (ucs2Length > maxLength) ? maxLength : ucs2Length;
412 int ucs2Length =
414 if (ucs2Length > maxLength) {
420 if (ucs2Length > static_cast<int>(maxUcs2Length * sizeof(WCHAR))) {
421 TELEPHONY_LOGI("src over size, ucs2Length = %{public}d, maxLength = %{public}d", ucs2Length,
426 return Ucs2ToUtf8(dest, maxLength, reinterpret_cast<uint8_t *>(pUcs2Text), ucs2Length);