Home
last modified time | relevance | path

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

/external/vboot_reference/cgpt/
Dcgpt_common.c440 uint8_t *utf8, unsigned int maxoutput) in UTF16ToUTF8() argument
447 if (!utf16 || !maxinput || !utf8 || !maxoutput) in UTF16ToUTF8()
450 maxoutput--; /* plan for termination now */ in UTF16ToUTF8()
453 s16idx < maxinput && utf16[s16idx] && maxoutput; in UTF16ToUTF8()
482 if (code_point <= 0x7F && maxoutput >= 1) { in UTF16ToUTF8()
483 maxoutput -= 1; in UTF16ToUTF8()
485 } else if (code_point <= 0x7FF && maxoutput >= 2) { in UTF16ToUTF8()
486 maxoutput -= 2; in UTF16ToUTF8()
489 } else if (code_point <= 0xFFFF && maxoutput >= 3) { in UTF16ToUTF8()
490 maxoutput -= 3; in UTF16ToUTF8()
[all …]
Dcgpt.h132 uint8_t *utf8, unsigned int maxoutput);
141 int UTF8ToUTF16(const uint8_t *utf8, uint16_t *utf16, unsigned int maxoutput);