Lines Matching +full:tie +full:- +full:off
1 //===- llvm/Support/UnicodeNameToCodepoint.cpp - Unicode character properties
2 //-*- C++ -*-===//
6 // SPDX-License-Identifier: Apache-2.0 WITH LLVM-exception
8 //===----------------------------------------------------------------------===//
13 //===----------------------------------------------------------------------===//
53 std::reverse_copy(N->Name.begin(), N->Name.end(), std::back_inserter(S));
54 N = N->Parent;
116 N.Size = Offset - Origin;
145 // hyphen https://unicode.org/reports/tr44/#UAX44-LM2.
148 (*It == '-' && isAlnum(PreviousChar) &&
189 if (Name.size() - Consummed == 0 && N.Value != 0xFFFFFFFF)
198 std::tie(C, Matches, Value) =
219 // clang-format off
250 // clang-format on
263 int Len = -1;
279 if (Len == -1)
296 int L = -1, V = -1, T = -1;
300 if (L != -1 && V != -1 && T != -1 && Name.empty()) {
303 if (L != -1)
305 if (V != -1)
307 if (T != -1)
323 // Unicode 15.1 Table 4-8. Name Derivation Rule Prefix Strings
325 {"CJK UNIFIED IDEOGRAPH-", 0x3400, 0x4DBF},
326 {"CJK UNIFIED IDEOGRAPH-", 0x4E00, 0x9FFF},
327 {"CJK UNIFIED IDEOGRAPH-", 0x20000, 0x2A6DF},
328 {"CJK UNIFIED IDEOGRAPH-", 0x2A700, 0x2B739},
329 {"CJK UNIFIED IDEOGRAPH-", 0x2B740, 0x2B81D},
330 {"CJK UNIFIED IDEOGRAPH-", 0x2B820, 0x2CEA1},
331 {"CJK UNIFIED IDEOGRAPH-", 0x2CEB0, 0x2EBE0},
332 {"CJK UNIFIED IDEOGRAPH-", 0x2EBF0, 0x2EE5D},
333 {"CJK UNIFIED IDEOGRAPH-", 0x30000, 0x3134A},
334 {"CJK UNIFIED IDEOGRAPH-", 0x31350, 0x323AF},
335 {"TANGUT IDEOGRAPH-", 0x17000, 0x187F7},
336 {"TANGUT IDEOGRAPH-", 0x18D00, 0x18D08},
337 {"KHITAN SMALL SCRIPT CHARACTER-", 0x18B00, 0x18CD5},
338 {"NUSHU CHARACTER-", 0x1B170, 0x1B2FB},
339 {"CJK COMPATIBILITY IDEOGRAPH-", 0xF900, 0xFA6D},
340 {"CJK COMPATIBILITY IDEOGRAPH-", 0xFA70, 0xFAD9},
341 {"CJK COMPATIBILITY IDEOGRAPH-", 0x2F800, 0x2FA1D},
386 std::tie(Node, Matches, Value) = compareNode(0, Name, Strict, Buffer);
389 // UAX44-LM2. Ignore case, whitespace, underscore ('_'), and all medial
390 // hyphens except the hyphen in U+1180 HANGUL JUNGSEONG O-E.
391 if (!Strict && Value == 0x116c && Name.contains_insensitive("O-E")) {
392 Buffer = "HANGUL JUNGSEONG O-E";
429 char32_t Value) -> bool {
485 auto Get = [&Distances, Columns](size_t Column, std::size_t Row) -> char & {
499 auto &VisitNode) -> void {
508 const int Delete = Get(I - 1, Row) + 1;
509 const int Insert = Get(I, Row - 1) + 1;
512 Get(I - 1, Row - 1) + (NormalizedName[I - 1] != N.Name[J] ? 1 : 0);
520 unsigned Cost = Get(Columns - 1, Row - 1);