/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/icu-small/source/common/fixedstring.cpp
29 строк
657 B
Node.js GitHub Bot
deps: update icu to 78.2
11 янв 2026, 21:05
Не верифицирован
11 янв 2026, 21:05
1bd7f62
Код
Авторство
О чём код?
// © 2025 and later: Unicode, Inc. and others. // License & terms of use: https://www.unicode.org/copyright.html #include "fixedstring.h" #include "unicode/unistr.h" #include "unicode/utypes.h" U_NAMESPACE_BEGIN U_EXPORT void copyInvariantChars(const UnicodeString& src, FixedString& dst, UErrorCode& status) { if (U_FAILURE(status)) { return; } if (src.isEmpty()) { dst.clear(); return; } int32_t length = src.length(); if (!dst.reserve(length + 1)) { status = U_MEMORY_ALLOCATION_ERROR; return; } src.extract(0, length, dst.getAlias(), length + 1, US_INV); } U_NAMESPACE_END