mirror of
https://github.com/openharmony/ark_js_runtime.git
synced 2026-07-20 23:00:29 -04:00
add 'utf8Len' parameter for 'CanBeCompressed()'
Signed-off-by: zhaozhibo <zhaozhibo3@huawei.com>
This commit is contained in:
@@ -246,9 +246,6 @@ bool EcmaString::CanBeCompressed(const uint8_t *utf8Data, uint32_t utf8Len)
|
||||
}
|
||||
bool isCompressed = true;
|
||||
uint32_t index = 0;
|
||||
if (utf8Len == UINT32_MAX) {
|
||||
utf8Len = strlen((const char *)utf8Data);
|
||||
}
|
||||
// NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic)
|
||||
while (index < utf8Len) {
|
||||
// NOLINTNEXTLINE(cppcoreguidelines-pro-bounds-pointer-arithmetic)
|
||||
|
||||
Reference in New Issue
Block a user