/
githubmirror
/
node
Обзор
Документация
Войти
/
githubmirror
/
node
Код
Запросы
0
Пакеты
0
Релизы
0
Аналитика
Безопасность
main
deps/v8/src/strings/string-case.h
26 строк
852 B
Michaël Zasso
deps: update V8 to 13.6.233.8
02 май 2025, 16:06
Не верифицирован
02 май 2025, 16:06
918fe04
Код
Авторство
О чём код?
// Copyright 2016 the V8 project authors. All rights reserved. // Use of this source code is governed by a BSD-style license that can be // found in the LICENSE file. #ifndef V8_STRINGS_STRING_CASE_H_ #define V8_STRINGS_STRING_CASE_H_ #include <cinttypes> namespace v8 { namespace internal { // Computes the prefix length of src that's ascii and matches the case. template <class CaseMapping> uint32_t FastAsciiCasePrefixLength(const char* src, uint32_t length); // Converts ascii chars from src to dst to the expected case in a latin1 string. // In case non-ascii chars appears it may bail out early. Returns the length of // the already processed ascii prefix. template <class CaseMapping> uint32_t FastAsciiConvert(char* dst, const char* src, uint32_t length); } // namespace internal } // namespace v8 #endif // V8_STRINGS_STRING_CASE_H_