_ZN6icu_786BMPSetC2EPKii:
   30|     66|        list(parentList), listLength(parentListLength) {
   31|     66|    uprv_memset(latin1Contains, 0, sizeof(latin1Contains));
  ------------------
  |  |  100|     66|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|     66|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
   32|     66|    uprv_memset(table7FF, 0, sizeof(table7FF));
  ------------------
  |  |  100|     66|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|     66|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
   33|     66|    uprv_memset(bmpBlockBits, 0, sizeof(bmpBlockBits));
  ------------------
  |  |  100|     66|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|     66|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
   34|       |
   35|       |    /*
   36|       |     * Set the list indexes for binary searches for
   37|       |     * U+0800, U+1000, U+2000, .., U+F000, U+10000.
   38|       |     * U+0800 is the first 3-byte-UTF-8 code point. Lower code points are
   39|       |     * looked up in the bit tables.
   40|       |     * The last pair of indexes is for finding supplementary code points.
   41|       |     */
   42|     66|    list4kStarts[0]=findCodePoint(0x800, 0, listLength-1);
   43|     66|    int32_t i;
   44|  1.12k|    for(i=1; i<=0x10; ++i) {
  ------------------
  |  Branch (44:14): [True: 1.05k, False: 66]
  ------------------
   45|  1.05k|        list4kStarts[i]=findCodePoint(i<<12, list4kStarts[i-1], listLength-1);
   46|  1.05k|    }
   47|     66|    list4kStarts[0x11]=listLength-1;
   48|     66|    containsFFFD=containsSlow(0xfffd, list4kStarts[0xf], list4kStarts[0x10]);
   49|       |
   50|     66|    initBits();
   51|     66|    overrideIllegal();
   52|     66|}
_ZN6icu_786BMPSetD2Ev:
   63|     22|BMPSet::~BMPSet() {
   64|     22|}
_ZN6icu_786BMPSet8initBitsEv:
  121|     66|void BMPSet::initBits() {
  122|     66|    UChar32 start, limit;
  123|     66|    int32_t listIndex=0;
  124|       |
  125|       |    // Set latin1Contains[].
  126|    489|    do {
  127|    489|        start=list[listIndex++];
  128|    489|        if(listIndex<listLength) {
  ------------------
  |  Branch (128:12): [True: 489, False: 0]
  ------------------
  129|    489|            limit=list[listIndex++];
  130|    489|        } else {
  131|      0|            limit=0x110000;
  132|      0|        }
  133|    489|        if(start>=0x100) {
  ------------------
  |  Branch (133:12): [True: 66, False: 423]
  ------------------
  134|     66|            break;
  135|     66|        }
  136|    537|        do {
  137|    537|            latin1Contains[start++]=1;
  138|    537|        } while(start<limit && start<0x100);
  ------------------
  |  Branch (138:17): [True: 114, False: 423]
  |  Branch (138:32): [True: 114, False: 0]
  ------------------
  139|    423|    } while(limit<=0x100);
  ------------------
  |  Branch (139:13): [True: 423, False: 0]
  ------------------
  140|       |
  141|       |    // Find the first range overlapping with (or after) 80..FF again,
  142|       |    // to include them in table7FF as well.
  143|    377|    for(listIndex=0;;) {
  144|    377|        start=list[listIndex++];
  145|    377|        if(listIndex<listLength) {
  ------------------
  |  Branch (145:12): [True: 377, False: 0]
  ------------------
  146|    377|            limit=list[listIndex++];
  147|    377|        } else {
  148|      0|            limit=0x110000;
  149|      0|        }
  150|    377|        if(limit>0x80) {
  ------------------
  |  Branch (150:12): [True: 66, False: 311]
  ------------------
  151|     66|            if(start<0x80) {
  ------------------
  |  Branch (151:16): [True: 0, False: 66]
  ------------------
  152|      0|                start=0x80;
  153|      0|            }
  154|     66|            break;
  155|     66|        }
  156|    377|    }
  157|       |
  158|       |    // Set table7FF[].
  159|  2.19k|    while(start<0x800) {
  ------------------
  |  Branch (159:11): [True: 2.13k, False: 66]
  ------------------
  160|  2.13k|        set32x64Bits(table7FF, start, limit<=0x800 ? limit : 0x800);
  ------------------
  |  Branch (160:39): [True: 2.13k, False: 0]
  ------------------
  161|  2.13k|        if(limit>0x800) {
  ------------------
  |  Branch (161:12): [True: 0, False: 2.13k]
  ------------------
  162|      0|            start=0x800;
  163|      0|            break;
  164|      0|        }
  165|       |
  166|  2.13k|        start=list[listIndex++];
  167|  2.13k|        if(listIndex<listLength) {
  ------------------
  |  Branch (167:12): [True: 2.13k, False: 0]
  ------------------
  168|  2.13k|            limit=list[listIndex++];
  169|  2.13k|        } else {
  170|      0|            limit=0x110000;
  171|      0|        }
  172|  2.13k|    }
  173|       |
  174|       |    // Set bmpBlockBits[].
  175|     66|    int32_t minStart=0x800;
  176|  13.3k|    while(start<0x10000) {
  ------------------
  |  Branch (176:11): [True: 13.3k, False: 66]
  ------------------
  177|  13.3k|        if(limit>0x10000) {
  ------------------
  |  Branch (177:12): [True: 0, False: 13.3k]
  ------------------
  178|      0|            limit=0x10000;
  179|      0|        }
  180|       |
  181|  13.3k|        if(start<minStart) {
  ------------------
  |  Branch (181:12): [True: 6.56k, False: 6.73k]
  ------------------
  182|  6.56k|            start=minStart;
  183|  6.56k|        }
  184|  13.3k|        if(start<limit) {  // Else: Another range entirely in a known mixed-value block.
  ------------------
  |  Branch (184:12): [True: 6.74k, False: 6.55k]
  ------------------
  185|  6.74k|            if(start&0x3f) {
  ------------------
  |  Branch (185:16): [True: 5.19k, False: 1.54k]
  ------------------
  186|       |                // Mixed-value block of 64 code points.
  187|  5.19k|                start>>=6;
  188|  5.19k|                bmpBlockBits[start&0x3f]|=0x10001<<(start>>6);
  189|  5.19k|                start=(start+1)<<6;  // Round up to the next block boundary.
  190|  5.19k|                minStart=start;      // Ignore further ranges in this block.
  191|  5.19k|            }
  192|  6.74k|            if(start<limit) {
  ------------------
  |  Branch (192:16): [True: 1.54k, False: 5.19k]
  ------------------
  193|  1.54k|                if(start<(limit&~0x3f)) {
  ------------------
  |  Branch (193:20): [True: 66, False: 1.48k]
  ------------------
  194|       |                    // Multiple all-ones blocks of 64 code points each.
  195|     66|                    set32x64Bits(bmpBlockBits, start>>6, limit>>6);
  196|     66|                }
  197|       |
  198|  1.54k|                if(limit&0x3f) {
  ------------------
  |  Branch (198:20): [True: 1.48k, False: 66]
  ------------------
  199|       |                    // Mixed-value block of 64 code points.
  200|  1.48k|                    limit>>=6;
  201|  1.48k|                    bmpBlockBits[limit&0x3f]|=0x10001<<(limit>>6);
  202|  1.48k|                    limit=(limit+1)<<6;  // Round up to the next block boundary.
  203|  1.48k|                    minStart=limit;      // Ignore further ranges in this block.
  204|  1.48k|                }
  205|  1.54k|            }
  206|  6.74k|        }
  207|       |
  208|  13.3k|        if(limit==0x10000) {
  ------------------
  |  Branch (208:12): [True: 0, False: 13.3k]
  ------------------
  209|      0|            break;
  210|      0|        }
  211|       |
  212|  13.3k|        start=list[listIndex++];
  213|  13.3k|        if(listIndex<listLength) {
  ------------------
  |  Branch (213:12): [True: 13.3k, False: 0]
  ------------------
  214|  13.3k|            limit=list[listIndex++];
  215|  13.3k|        } else {
  216|      0|            limit=0x110000;
  217|      0|        }
  218|  13.3k|    }
  219|     66|}
_ZN6icu_786BMPSet15overrideIllegalEv:
  229|     66|void BMPSet::overrideIllegal() {
  230|     66|    uint32_t bits, mask;
  231|     66|    int32_t i;
  232|       |
  233|     66|    if(containsFFFD) {
  ------------------
  |  Branch (233:8): [True: 0, False: 66]
  ------------------
  234|      0|        bits=3;                 // Lead bytes 0xC0 and 0xC1.
  235|      0|        for(i=0; i<64; ++i) {
  ------------------
  |  Branch (235:18): [True: 0, False: 0]
  ------------------
  236|      0|            table7FF[i]|=bits;
  237|      0|        }
  238|       |
  239|      0|        bits=1;                 // Lead byte 0xE0.
  240|      0|        for(i=0; i<32; ++i) {   // First half of 4k block.
  ------------------
  |  Branch (240:18): [True: 0, False: 0]
  ------------------
  241|      0|            bmpBlockBits[i]|=bits;
  242|      0|        }
  243|       |
  244|      0|        mask= static_cast<uint32_t>(~(0x10001<<0xd));   // Lead byte 0xED.
  245|      0|        bits=1<<0xd;
  246|      0|        for(i=32; i<64; ++i) {  // Second half of 4k block.
  ------------------
  |  Branch (246:19): [True: 0, False: 0]
  ------------------
  247|      0|            bmpBlockBits[i]=(bmpBlockBits[i]&mask)|bits;
  248|      0|        }
  249|     66|    } else {
  250|     66|        mask= static_cast<uint32_t>(~(0x10001<<0xd));   // Lead byte 0xED.
  251|  2.17k|        for(i=32; i<64; ++i) {  // Second half of 4k block.
  ------------------
  |  Branch (251:19): [True: 2.11k, False: 66]
  ------------------
  252|  2.11k|            bmpBlockBits[i]&=mask;
  253|  2.11k|        }
  254|     66|    }
  255|     66|}
_ZNK6icu_786BMPSet13findCodePointEiii:
  257|  7.28k|int32_t BMPSet::findCodePoint(UChar32 c, int32_t lo, int32_t hi) const {
  258|       |    /* Examples:
  259|       |                                       findCodePoint(c)
  260|       |       set              list[]         c=0 1 3 4 7 8
  261|       |       ===              ==============   ===========
  262|       |       []               [110000]         0 0 0 0 0 0
  263|       |       [\u0000-\u0003]  [0, 4, 110000]   1 1 1 2 2 2
  264|       |       [\u0004-\u0007]  [4, 8, 110000]   0 0 0 1 1 2
  265|       |       [:Any:]          [0, 110000]      1 1 1 1 1 1
  266|       |     */
  267|       |
  268|       |    // Return the smallest i such that c < list[i].  Assume
  269|       |    // list[len - 1] == HIGH and that c is legal (0..HIGH-1).
  270|  7.28k|    if (c < list[lo])
  ------------------
  |  Branch (270:9): [True: 789, False: 6.49k]
  ------------------
  271|    789|        return lo;
  272|       |    // High runner test.  c is often after the last range, so an
  273|       |    // initial check for this condition pays off.
  274|  6.49k|    if (lo >= hi || c >= list[hi-1])
  ------------------
  |  Branch (274:9): [True: 0, False: 6.49k]
  |  Branch (274:21): [True: 11, False: 6.48k]
  ------------------
  275|     11|        return hi;
  276|       |    // invariant: c >= list[lo]
  277|       |    // invariant: c < list[hi]
  278|  54.9k|    for (;;) {
  279|  54.9k|        int32_t i = (lo + hi) >> 1;
  280|  54.9k|        if (i == lo) {
  ------------------
  |  Branch (280:13): [True: 6.48k, False: 48.4k]
  ------------------
  281|  6.48k|            break; // Found!
  282|  48.4k|        } else if (c < list[i]) {
  ------------------
  |  Branch (282:20): [True: 25.6k, False: 22.8k]
  ------------------
  283|  25.6k|            hi = i;
  284|  25.6k|        } else {
  285|  22.8k|            lo = i;
  286|  22.8k|        }
  287|  54.9k|    }
  288|  6.48k|    return hi;
  289|  6.49k|}
_ZNK6icu_786BMPSet8containsEi:
  292|  8.36k|BMPSet::contains(UChar32 c) const {
  293|  8.36k|    if (static_cast<uint32_t>(c) <= 0xff) {
  ------------------
  |  Branch (293:9): [True: 1.20k, False: 7.16k]
  ------------------
  294|  1.20k|        return latin1Contains[c];
  295|  7.16k|    } else if (static_cast<uint32_t>(c) <= 0x7ff) {
  ------------------
  |  Branch (295:16): [True: 849, False: 6.31k]
  ------------------
  296|    849|        return (table7FF[c & 0x3f] & (static_cast<uint32_t>(1) << (c >> 6))) != 0;
  297|  6.31k|    } else if (static_cast<uint32_t>(c) < 0xd800 || (c >= 0xe000 && c <= 0xffff)) {
  ------------------
  |  Branch (297:16): [True: 4.03k, False: 2.27k]
  |  Branch (297:54): [True: 327, False: 1.95k]
  |  Branch (297:69): [True: 327, False: 0]
  ------------------
  298|  4.36k|        int lead=c>>12;
  299|  4.36k|        uint32_t twoBits=(bmpBlockBits[(c>>6)&0x3f]>>lead)&0x10001;
  300|  4.36k|        if(twoBits<=1) {
  ------------------
  |  Branch (300:12): [True: 217, False: 4.14k]
  ------------------
  301|       |            // All 64 code points with the same bits 15..6
  302|       |            // are either in the set or not.
  303|    217|            return twoBits;
  304|  4.14k|        } else {
  305|       |            // Look up the code point in its 4k block of code points.
  306|  4.14k|            return containsSlow(c, list4kStarts[lead], list4kStarts[lead+1]);
  307|  4.14k|        }
  308|  4.36k|    } else if (static_cast<uint32_t>(c) <= 0x10ffff) {
  ------------------
  |  Branch (308:16): [True: 1.95k, False: 0]
  ------------------
  309|       |        // surrogate or supplementary code point
  310|  1.95k|        return containsSlow(c, list4kStarts[0xd], list4kStarts[0x11]);
  311|  1.95k|    } else {
  312|       |        // Out-of-range code points get false, consistent with long-standing
  313|       |        // behavior of UnicodeSet::contains(c).
  314|      0|        return false;
  315|      0|    }
  316|  8.36k|}
bmpset.cpp:_ZN6icu_78L12set32x64BitsEPjii:
   70|  2.19k|static void set32x64Bits(uint32_t table[64], int32_t start, int32_t limit) {
   71|  2.19k|    U_ASSERT(start<limit);
  ------------------
  |  |   35|  2.19k|#   define U_ASSERT(exp) (void)0
  ------------------
   72|  2.19k|    U_ASSERT(limit<=0x800);
  ------------------
  |  |   35|  2.19k|#   define U_ASSERT(exp) (void)0
  ------------------
   73|       |
   74|  2.19k|    int32_t lead=start>>6;  // Named for UTF-8 2-byte lead byte with upper 5 bits.
   75|  2.19k|    int32_t trail=start&0x3f;  // Named for UTF-8 2-byte trail byte with lower 6 bits.
   76|       |
   77|       |    // Set one bit indicating an all-one block.
   78|  2.19k|    uint32_t bits = static_cast<uint32_t>(1) << lead;
   79|  2.19k|    if((start+1)==limit) {  // Single-character shortcut.
  ------------------
  |  Branch (79:8): [True: 976, False: 1.22k]
  ------------------
   80|    976|        table[trail]|=bits;
   81|    976|        return;
   82|    976|    }
   83|       |
   84|  1.22k|    int32_t limitLead=limit>>6;
   85|  1.22k|    int32_t limitTrail=limit&0x3f;
   86|       |
   87|  1.22k|    if(lead==limitLead) {
  ------------------
  |  Branch (87:8): [True: 1.02k, False: 198]
  ------------------
   88|       |        // Partial vertical bit column.
   89|  11.4k|        while(trail<limitTrail) {
  ------------------
  |  Branch (89:15): [True: 10.3k, False: 1.02k]
  ------------------
   90|  10.3k|            table[trail++]|=bits;
   91|  10.3k|        }
   92|  1.02k|    } else {
   93|       |        // Partial vertical bit column,
   94|       |        // followed by a bit rectangle,
   95|       |        // followed by another partial vertical bit column.
   96|    198|        if(trail>0) {
  ------------------
  |  Branch (96:12): [True: 132, False: 66]
  ------------------
   97|  2.11k|            do {
   98|  2.11k|                table[trail++]|=bits;
   99|  2.11k|            } while(trail<64);
  ------------------
  |  Branch (99:21): [True: 1.98k, False: 132]
  ------------------
  100|    132|            ++lead;
  101|    132|        }
  102|    198|        if(lead<limitLead) {
  ------------------
  |  Branch (102:12): [True: 66, False: 132]
  ------------------
  103|     66|            bits = ~((static_cast<unsigned>(1) << lead) - 1);
  104|     66|            if(limitLead<0x20) {
  ------------------
  |  Branch (104:16): [True: 66, False: 0]
  ------------------
  105|     66|                bits &= (static_cast<unsigned>(1) << limitLead) - 1;
  106|     66|            }
  107|  4.29k|            for(trail=0; trail<64; ++trail) {
  ------------------
  |  Branch (107:26): [True: 4.22k, False: 66]
  ------------------
  108|  4.22k|                table[trail]|=bits;
  109|  4.22k|            }
  110|     66|        }
  111|       |        // limit<=0x800. If limit==0x800 then limitLead=32 and limitTrail=0.
  112|       |        // In that case, bits=1<<limitLead is undefined but the bits value
  113|       |        // is not used because trail<limitTrail is already false.
  114|    198|        bits = static_cast<uint32_t>(1) << ((limitLead == 0x20) ? (limitLead - 1) : limitLead);
  ------------------
  |  Branch (114:45): [True: 0, False: 198]
  ------------------
  115|  1.91k|        for(trail=0; trail<limitTrail; ++trail) {
  ------------------
  |  Branch (115:22): [True: 1.71k, False: 198]
  ------------------
  116|  1.71k|            table[trail]|=bits;
  117|  1.71k|        }
  118|    198|    }
  119|  1.22k|}

_ZNK6icu_786BMPSet12containsSlowEiii:
  158|  6.16k|inline UBool BMPSet::containsSlow(UChar32 c, int32_t lo, int32_t hi) const {
  159|  6.16k|    return findCodePoint(c, lo, hi) & 1;
  160|  6.16k|}

_ZN6icu_7818CharStringByteSinkC2EPNS_10CharStringE:
  124|   136k|CharStringByteSink::CharStringByteSink(CharString* dest) : dest_(*dest) {
  125|   136k|}
_ZN6icu_7818CharStringByteSinkD2Ev:
  127|   136k|CharStringByteSink::~CharStringByteSink() = default;
_ZN6icu_7818CharStringByteSink6AppendEPKci:
  130|   183k|CharStringByteSink::Append(const char* bytes, int32_t n) {
  131|   183k|    UErrorCode status = U_ZERO_ERROR;
  132|   183k|    dest_.append(bytes, n, status);
  133|       |    // Any errors are silently ignored.
  134|   183k|}
_ZN6icu_7818CharStringByteSink15GetAppendBufferEiiPciPi:
  141|  64.3k|                                    int32_t* result_capacity) {
  142|  64.3k|    if (min_capacity < 1 || scratch_capacity < min_capacity) {
  ------------------
  |  Branch (142:9): [True: 13.0k, False: 51.3k]
  |  Branch (142:29): [True: 0, False: 51.3k]
  ------------------
  143|  13.0k|        *result_capacity = 0;
  144|  13.0k|        return nullptr;
  145|  13.0k|    }
  146|       |
  147|  51.3k|    UErrorCode status = U_ZERO_ERROR;
  148|  51.3k|    char* result = dest_.getAppendBuffer(
  149|  51.3k|            min_capacity,
  150|  51.3k|            desired_capacity_hint,
  151|  51.3k|            *result_capacity,
  152|  51.3k|            status);
  153|  51.3k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (153:9): [True: 51.3k, False: 0]
  ------------------
  154|  51.3k|        return result;
  155|  51.3k|    }
  156|       |
  157|      0|    *result_capacity = scratch_capacity;
  158|      0|    return scratch;
  159|  51.3k|}

locid.cpp:_ZN6icu_7812ByteSinkUtil28viaByteSinkToTerminatedCharsIZZNS_6Locale4initENS_11StringPieceEaENK3$_0clENSt3__117basic_string_viewIcNS5_11char_traitsIcEEEEPciR10UErrorCodeEUlRNS_8ByteSinkESC_E_vEEiSA_iOT_SC_:
  112|  18.9k|                                                UErrorCode& status) {
  113|  18.9k|        if (U_FAILURE(status)) { return 0; }
  ------------------
  |  Branch (113:13): [True: 0, False: 18.9k]
  ------------------
  114|  18.9k|        CheckedArrayByteSink sink(buffer, capacity);
  115|  18.9k|        lambda(sink, status);
  116|  18.9k|        if (U_FAILURE(status)) { return 0; }
  ------------------
  |  Branch (116:13): [True: 1.55k, False: 17.3k]
  ------------------
  117|       |
  118|  17.3k|        int32_t reslen = sink.NumberOfBytesAppended();
  119|       |
  120|  17.3k|        if (sink.Overflowed()) {
  ------------------
  |  Branch (120:13): [True: 346, False: 17.0k]
  ------------------
  121|    346|            status = U_BUFFER_OVERFLOW_ERROR;
  122|    346|            return reslen;
  123|    346|        }
  124|       |
  125|  17.0k|        return u_terminateChars(buffer, capacity, reslen, &status);
  ------------------
  |  |  406|  17.0k|#define u_terminateChars U_ICU_ENTRY_POINT_RENAME(u_terminateChars)
  |  |  ------------------
  |  |  |  |  123|  17.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  17.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  17.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  126|  17.3k|    }
uloc.cpp:_ZN6icu_7812ByteSinkUtil28viaByteSinkToTerminatedCharsIZ23uloc_getKeywordValue_78E3$_0vEEiPciOT_R10UErrorCode:
  112|  19.5k|                                                UErrorCode& status) {
  113|  19.5k|        if (U_FAILURE(status)) { return 0; }
  ------------------
  |  Branch (113:13): [True: 0, False: 19.5k]
  ------------------
  114|  19.5k|        CheckedArrayByteSink sink(buffer, capacity);
  115|  19.5k|        lambda(sink, status);
  116|  19.5k|        if (U_FAILURE(status)) { return 0; }
  ------------------
  |  Branch (116:13): [True: 402, False: 19.0k]
  ------------------
  117|       |
  118|  19.0k|        int32_t reslen = sink.NumberOfBytesAppended();
  119|       |
  120|  19.0k|        if (sink.Overflowed()) {
  ------------------
  |  Branch (120:13): [True: 7, False: 19.0k]
  ------------------
  121|      7|            status = U_BUFFER_OVERFLOW_ERROR;
  122|      7|            return reslen;
  123|      7|        }
  124|       |
  125|  19.0k|        return u_terminateChars(buffer, capacity, reslen, &status);
  ------------------
  |  |  406|  19.0k|#define u_terminateChars U_ICU_ENTRY_POINT_RENAME(u_terminateChars)
  |  |  ------------------
  |  |  |  |  123|  19.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  19.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  19.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  126|  19.0k|    }
uloc.cpp:_ZN6icu_7812ByteSinkUtil23viaByteSinkToCharStringIZ22ulocimp_getBaseName_78NSt3__117basic_string_viewIcNS2_11char_traitsIcEEEER10UErrorCodeE3$_0vEENS_10CharStringEOT_S8_:
  141|  5.88k|    static CharString viaByteSinkToCharString(F&& lambda, UErrorCode& status) {
  142|  5.88k|        if (U_FAILURE(status)) { return {}; }
  ------------------
  |  Branch (142:13): [True: 0, False: 5.88k]
  ------------------
  143|  5.88k|        CharString result;
  144|  5.88k|        CharStringByteSink sink(&result);
  145|  5.88k|        lambda(sink, status);
  146|  5.88k|        return result;
  147|  5.88k|    }
uloc.cpp:_ZN6icu_7812ByteSinkUtil23viaByteSinkToCharStringIZ23ulocimp_canonicalize_78NSt3__117basic_string_viewIcNS2_11char_traitsIcEEEER10UErrorCodeE3$_0vEENS_10CharStringEOT_S8_:
  141|      1|    static CharString viaByteSinkToCharString(F&& lambda, UErrorCode& status) {
  142|      1|        if (U_FAILURE(status)) { return {}; }
  ------------------
  |  Branch (142:13): [True: 0, False: 1]
  ------------------
  143|      1|        CharString result;
  144|      1|        CharStringByteSink sink(&result);
  145|      1|        lambda(sink, status);
  146|      1|        return result;
  147|      1|    }
uloc_tag.cpp:_ZN6icu_7812ByteSinkUtil23viaByteSinkToCharStringIZ25ulocimp_forLanguageTag_78PKciPiR10UErrorCodeE3$_0vEENS_10CharStringEOT_S6_:
  141|  4.87k|    static CharString viaByteSinkToCharString(F&& lambda, UErrorCode& status) {
  142|  4.87k|        if (U_FAILURE(status)) { return {}; }
  ------------------
  |  Branch (142:13): [True: 0, False: 4.87k]
  ------------------
  143|  4.87k|        CharString result;
  144|  4.87k|        CharStringByteSink sink(&result);
  145|  4.87k|        lambda(sink, status);
  146|  4.87k|        return result;
  147|  4.87k|    }

_ZN6icu_788ByteSinkD2Ev:
   15|   190k|ByteSink::~ByteSink() {}
_ZN6icu_7820CheckedArrayByteSinkC2EPci:
   32|  53.3k|    : outbuf_(outbuf), capacity_(capacity < 0 ? 0 : capacity),
  ------------------
  |  Branch (32:34): [True: 0, False: 53.3k]
  ------------------
   33|  53.3k|      size_(0), appended_(0), overflowed_(false) {
   34|  53.3k|}
_ZN6icu_7820CheckedArrayByteSink6AppendEPKci:
   44|   223k|void CheckedArrayByteSink::Append(const char* bytes, int32_t n) {
   45|   223k|  if (n <= 0) {
  ------------------
  |  Branch (45:7): [True: 18.7k, False: 205k]
  ------------------
   46|  18.7k|    return;
   47|  18.7k|  }
   48|   205k|  if (n > (INT32_MAX - appended_)) {
  ------------------
  |  Branch (48:7): [True: 0, False: 205k]
  ------------------
   49|       |    // TODO: Report as integer overflow, not merely buffer overflow.
   50|      0|    appended_ = INT32_MAX;
   51|      0|    overflowed_ = true;
   52|      0|    return;
   53|      0|  }
   54|   205k|  appended_ += n;
   55|   205k|  int32_t available = capacity_ - size_;
   56|   205k|  if (n > available) {
  ------------------
  |  Branch (56:7): [True: 102k, False: 102k]
  ------------------
   57|   102k|    n = available;
   58|   102k|    overflowed_ = true;
   59|   102k|  }
   60|   205k|  if (n > 0 && bytes != (outbuf_ + size_)) {
  ------------------
  |  Branch (60:7): [True: 102k, False: 102k]
  |  Branch (60:16): [True: 100k, False: 2.00k]
  ------------------
   61|   100k|    uprv_memcpy(outbuf_ + size_, bytes, n);
  ------------------
  |  |   42|   100k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   100k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|   100k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|   100k|    _Pragma("clang diagnostic push") \
  |  |   45|   100k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|   100k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|   100k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|   100k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|   100k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|   100k|    _Pragma("clang diagnostic pop") \
  |  |   49|   100k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|   100k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|   100k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   100k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   62|   100k|  }
   63|   205k|  size_ += n;
   64|   205k|}
_ZN6icu_7820CheckedArrayByteSink15GetAppendBufferEiiPciPi:
   70|  56.6k|                                            int32_t* result_capacity) {
   71|  56.6k|  if (min_capacity < 1 || scratch_capacity < min_capacity) {
  ------------------
  |  Branch (71:7): [True: 12.5k, False: 44.0k]
  |  Branch (71:27): [True: 0, False: 44.0k]
  ------------------
   72|  12.5k|    *result_capacity = 0;
   73|  12.5k|    return nullptr;
   74|  12.5k|  }
   75|  44.0k|  int32_t available = capacity_ - size_;
   76|  44.0k|  if (available >= min_capacity) {
  ------------------
  |  Branch (76:7): [True: 2.00k, False: 42.0k]
  ------------------
   77|  2.00k|    *result_capacity = available;
   78|  2.00k|    return outbuf_ + size_;
   79|  42.0k|  } else {
   80|  42.0k|    *result_capacity = scratch_capacity;
   81|  42.0k|    return scratch;
   82|  42.0k|  }
   83|  44.0k|}

_ZN6icu_789BytesTrieD2Ev:
   26|  3.15k|BytesTrie::~BytesTrie() {
   27|  3.15k|    uprv_free(ownedArray_);
  ------------------
  |  | 1503|  3.15k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  3.15k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.15k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.15k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   28|  3.15k|}
_ZN6icu_789BytesTrie9readValueEPKhi:
   32|  3.11k|BytesTrie::readValue(const uint8_t *pos, int32_t leadByte) {
   33|  3.11k|    int32_t value;
   34|  3.11k|    if(leadByte<kMinTwoByteValueLead) {
  ------------------
  |  Branch (34:8): [True: 1.13k, False: 1.97k]
  ------------------
   35|  1.13k|        value=leadByte-kMinOneByteValueLead;
   36|  1.97k|    } else if(leadByte<kMinThreeByteValueLead) {
  ------------------
  |  Branch (36:15): [True: 1.97k, False: 0]
  ------------------
   37|  1.97k|        value=((leadByte-kMinTwoByteValueLead)<<8)|*pos;
   38|  1.97k|    } else if(leadByte<kFourByteValueLead) {
  ------------------
  |  Branch (38:15): [True: 0, False: 0]
  ------------------
   39|      0|        value=((leadByte-kMinThreeByteValueLead)<<16)|(pos[0]<<8)|pos[1];
   40|      0|    } else if(leadByte==kFourByteValueLead) {
  ------------------
  |  Branch (40:15): [True: 0, False: 0]
  ------------------
   41|      0|        value=(pos[0]<<16)|(pos[1]<<8)|pos[2];
   42|      0|    } else {
   43|      0|        value=(pos[0]<<24)|(pos[1]<<16)|(pos[2]<<8)|pos[3];
   44|      0|    }
   45|  3.11k|    return value;
   46|  3.11k|}
_ZN6icu_789BytesTrie11jumpByDeltaEPKh:
   49|  4.44k|BytesTrie::jumpByDelta(const uint8_t *pos) {
   50|  4.44k|    int32_t delta=*pos++;
   51|  4.44k|    if(delta<kMinTwoByteDeltaLead) {
  ------------------
  |  Branch (51:8): [True: 1.56k, False: 2.87k]
  ------------------
   52|       |        // nothing to do
   53|  2.87k|    } else if(delta<kMinThreeByteDeltaLead) {
  ------------------
  |  Branch (53:15): [True: 2.87k, False: 0]
  ------------------
   54|  2.87k|        delta=((delta-kMinTwoByteDeltaLead)<<8)|*pos++;
   55|  2.87k|    } else if(delta<kFourByteDeltaLead) {
  ------------------
  |  Branch (55:15): [True: 0, False: 0]
  ------------------
   56|      0|        delta=((delta-kMinThreeByteDeltaLead)<<16)|(pos[0]<<8)|pos[1];
   57|      0|        pos+=2;
   58|      0|    } else if(delta==kFourByteDeltaLead) {
  ------------------
  |  Branch (58:15): [True: 0, False: 0]
  ------------------
   59|      0|        delta=(pos[0]<<16)|(pos[1]<<8)|pos[2];
   60|      0|        pos+=3;
   61|      0|    } else {
   62|      0|        delta=(pos[0]<<24)|(pos[1]<<16)|(pos[2]<<8)|pos[3];
   63|      0|        pos+=4;
   64|      0|    }
   65|  4.44k|    return pos+delta;
   66|  4.44k|}
_ZN6icu_789BytesTrie10branchNextEPKhii:
   81|  8.82k|BytesTrie::branchNext(const uint8_t *pos, int32_t length, int32_t inByte) {
   82|       |    // Branch according to the current byte.
   83|  8.82k|    if(length==0) {
  ------------------
  |  Branch (83:8): [True: 3.15k, False: 5.67k]
  ------------------
   84|  3.15k|        length=*pos++;
   85|  3.15k|    }
   86|  8.82k|    ++length;
   87|       |    // The length of the branch is the number of bytes to select from.
   88|       |    // The data structure encodes a binary search.
   89|  21.5k|    while(length>kMaxBranchLinearSubNodeLength) {
  ------------------
  |  Branch (89:11): [True: 12.7k, False: 8.82k]
  ------------------
   90|  12.7k|        if(inByte<*pos++) {
  ------------------
  |  Branch (90:12): [True: 4.44k, False: 8.32k]
  ------------------
   91|  4.44k|            length>>=1;
   92|  4.44k|            pos=jumpByDelta(pos);
   93|  8.32k|        } else {
   94|  8.32k|            length=length-(length>>1);
   95|  8.32k|            pos=skipDelta(pos);
   96|  8.32k|        }
   97|  12.7k|    }
   98|       |    // Drop down to linear search for the last few bytes.
   99|       |    // length>=2 because the loop body above sees length>kMaxBranchLinearSubNodeLength>=3
  100|       |    // and divides length by 2.
  101|  15.1k|    do {
  102|  15.1k|        if(inByte==*pos++) {
  ------------------
  |  Branch (102:12): [True: 5.60k, False: 9.52k]
  ------------------
  103|  5.60k|            UStringTrieResult result;
  104|  5.60k|            int32_t node=*pos;
  105|  5.60k|            U_ASSERT(node>=kMinValueLead);
  ------------------
  |  |   35|  5.60k|#   define U_ASSERT(exp) (void)0
  ------------------
  106|  5.60k|            if(node&kValueIsFinal) {
  ------------------
  |  Branch (106:16): [True: 541, False: 5.06k]
  ------------------
  107|       |                // Leave the final value for getValue() to read.
  108|    541|                result=USTRINGTRIE_FINAL_VALUE;
  109|  5.06k|            } else {
  110|       |                // Use the non-final value as the jump delta.
  111|  5.06k|                ++pos;
  112|       |                // int32_t delta=readValue(pos, node>>1);
  113|  5.06k|                node>>=1;
  114|  5.06k|                int32_t delta;
  115|  5.06k|                if(node<kMinTwoByteValueLead) {
  ------------------
  |  Branch (115:20): [True: 4.56k, False: 497]
  ------------------
  116|  4.56k|                    delta=node-kMinOneByteValueLead;
  117|  4.56k|                } else if(node<kMinThreeByteValueLead) {
  ------------------
  |  Branch (117:27): [True: 497, False: 0]
  ------------------
  118|    497|                    delta=((node-kMinTwoByteValueLead)<<8)|*pos++;
  119|    497|                } else if(node<kFourByteValueLead) {
  ------------------
  |  Branch (119:27): [True: 0, False: 0]
  ------------------
  120|      0|                    delta=((node-kMinThreeByteValueLead)<<16)|(pos[0]<<8)|pos[1];
  121|      0|                    pos+=2;
  122|      0|                } else if(node==kFourByteValueLead) {
  ------------------
  |  Branch (122:27): [True: 0, False: 0]
  ------------------
  123|      0|                    delta=(pos[0]<<16)|(pos[1]<<8)|pos[2];
  124|      0|                    pos+=3;
  125|      0|                } else {
  126|      0|                    delta=(pos[0]<<24)|(pos[1]<<16)|(pos[2]<<8)|pos[3];
  127|      0|                    pos+=4;
  128|      0|                }
  129|       |                // end readValue()
  130|  5.06k|                pos+=delta;
  131|  5.06k|                node=*pos;
  132|  5.06k|                result= node>=kMinValueLead ? valueResult(node) : USTRINGTRIE_NO_VALUE;
  ------------------
  |  Branch (132:25): [True: 761, False: 4.30k]
  ------------------
  133|  5.06k|            }
  134|  5.60k|            pos_=pos;
  135|  5.60k|            return result;
  136|  5.60k|        }
  137|  9.52k|        --length;
  138|  9.52k|        pos=skipValue(pos);
  139|  9.52k|    } while(length>1);
  ------------------
  |  Branch (139:13): [True: 6.30k, False: 3.22k]
  ------------------
  140|  3.22k|    if(inByte==*pos++) {
  ------------------
  |  Branch (140:8): [True: 3.19k, False: 24]
  ------------------
  141|  3.19k|        pos_=pos;
  142|  3.19k|        int32_t node=*pos;
  143|  3.19k|        return node>=kMinValueLead ? valueResult(node) : USTRINGTRIE_NO_VALUE;
  ------------------
  |  Branch (143:16): [True: 540, False: 2.65k]
  ------------------
  144|  3.19k|    } else {
  145|     24|        stop();
  146|     24|        return USTRINGTRIE_NO_MATCH;
  147|     24|    }
  148|  3.22k|}
_ZN6icu_789BytesTrie8nextImplEPKhi:
  151|  11.2k|BytesTrie::nextImpl(const uint8_t *pos, int32_t inByte) {
  152|  12.0k|    for(;;) {
  153|  12.0k|        int32_t node=*pos++;
  154|  12.0k|        if(node<kMinLinearMatch) {
  ------------------
  |  Branch (154:12): [True: 8.82k, False: 3.19k]
  ------------------
  155|  8.82k|            return branchNext(pos, node, inByte);
  156|  8.82k|        } else if(node<kMinValueLead) {
  ------------------
  |  Branch (156:19): [True: 2.45k, False: 735]
  ------------------
  157|       |            // Match the first of length+1 bytes.
  158|  2.45k|            int32_t length=node-kMinLinearMatch;  // Actual match length minus 1.
  159|  2.45k|            if(inByte==*pos++) {
  ------------------
  |  Branch (159:16): [True: 2.44k, False: 7]
  ------------------
  160|  2.44k|                remainingMatchLength_=--length;
  161|  2.44k|                pos_=pos;
  162|  2.44k|                return (length<0 && (node=*pos)>=kMinValueLead) ?
  ------------------
  |  Branch (162:25): [True: 1.15k, False: 1.29k]
  |  Branch (162:37): [True: 801, False: 349]
  ------------------
  163|  1.64k|                        valueResult(node) : USTRINGTRIE_NO_VALUE;
  164|  2.44k|            } else {
  165|       |                // No match.
  166|      7|                break;
  167|      7|            }
  168|  2.45k|        } else if(node&kValueIsFinal) {
  ------------------
  |  Branch (168:19): [True: 0, False: 735]
  ------------------
  169|       |            // No further matching bytes.
  170|      0|            break;
  171|    735|        } else {
  172|       |            // Skip intermediate value.
  173|    735|            pos=skipValue(pos, node);
  174|       |            // The next node must not also be a value node.
  175|    735|            U_ASSERT(*pos<kMinValueLead);
  ------------------
  |  |   35|    735|#   define U_ASSERT(exp) (void)0
  ------------------
  176|    735|        }
  177|  12.0k|    }
  178|      7|    stop();
  179|      7|    return USTRINGTRIE_NO_MATCH;
  180|  11.2k|}
_ZN6icu_789BytesTrie4nextEi:
  183|  12.5k|BytesTrie::next(int32_t inByte) {
  184|  12.5k|    const uint8_t *pos=pos_;
  185|  12.5k|    if(pos==nullptr) {
  ------------------
  |  Branch (185:8): [True: 0, False: 12.5k]
  ------------------
  186|      0|        return USTRINGTRIE_NO_MATCH;
  187|      0|    }
  188|  12.5k|    if(inByte<0) {
  ------------------
  |  Branch (188:8): [True: 0, False: 12.5k]
  ------------------
  189|      0|        inByte+=0x100;
  190|      0|    }
  191|  12.5k|    int32_t length=remainingMatchLength_;  // Actual remaining match length minus 1.
  192|  12.5k|    if(length>=0) {
  ------------------
  |  Branch (192:8): [True: 1.29k, False: 11.2k]
  ------------------
  193|       |        // Remaining part of a linear-match node.
  194|  1.29k|        if(inByte==*pos++) {
  ------------------
  |  Branch (194:12): [True: 1.29k, False: 6]
  ------------------
  195|  1.29k|            remainingMatchLength_=--length;
  196|  1.29k|            pos_=pos;
  197|  1.29k|            int32_t node;
  198|  1.29k|            return (length<0 && (node=*pos)>=kMinValueLead) ?
  ------------------
  |  Branch (198:21): [True: 1.28k, False: 1]
  |  Branch (198:33): [True: 1.20k, False: 86]
  ------------------
  199|  1.20k|                    valueResult(node) : USTRINGTRIE_NO_VALUE;
  200|  1.29k|        } else {
  201|      6|            stop();
  202|      6|            return USTRINGTRIE_NO_MATCH;
  203|      6|        }
  204|  1.29k|    }
  205|  11.2k|    return nextImpl(pos, inByte);
  206|  12.5k|}

_ZN6icu_7810CharStringC2EOS0_:
   30|  21.5k|        : buffer(std::move(src.buffer)), len(src.len) {
   31|  21.5k|    src.len = 0;  // not strictly necessary because we make no guarantees on the source string
   32|  21.5k|}
_ZN6icu_7810CharStringaSEOS0_:
   34|  4.87k|CharString& CharString::operator=(CharString&& src) noexcept {
   35|  4.87k|    buffer = std::move(src.buffer);
   36|  4.87k|    len = src.len;
   37|  4.87k|    src.len = 0;  // not strictly necessary because we make no guarantees on the source string
   38|  4.87k|    return *this;
   39|  4.87k|}
_ZN6icu_7810CharString6appendEcR10UErrorCode:
  113|   542k|CharString &CharString::append(char c, UErrorCode &errorCode) {
  114|   542k|    if(ensureCapacity(len+2, 0, errorCode)) {
  ------------------
  |  Branch (114:8): [True: 542k, False: 0]
  ------------------
  115|   542k|        buffer[len++]=c;
  116|   542k|        buffer[len]=0;
  117|   542k|    }
  118|   542k|    return *this;
  119|   542k|}
_ZN6icu_7810CharString6appendEPKciR10UErrorCode:
  121|   421k|CharString &CharString::append(const char *s, int32_t sLength, UErrorCode &errorCode) {
  122|   421k|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (122:8): [True: 0, False: 421k]
  ------------------
  123|      0|        return *this;
  124|      0|    }
  125|   421k|    if(sLength<-1 || (s==nullptr && sLength!=0)) {
  ------------------
  |  Branch (125:8): [True: 0, False: 421k]
  |  Branch (125:23): [True: 13.0k, False: 408k]
  |  Branch (125:37): [True: 0, False: 13.0k]
  ------------------
  126|      0|        errorCode=U_ILLEGAL_ARGUMENT_ERROR;
  127|      0|        return *this;
  128|      0|    }
  129|   421k|    if(sLength<0) {
  ------------------
  |  Branch (129:8): [True: 717, False: 421k]
  ------------------
  130|    717|        sLength= static_cast<int32_t>(uprv_strlen(s));
  ------------------
  |  |   37|    717|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    717|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  131|    717|    }
  132|   421k|    if(sLength>0) {
  ------------------
  |  Branch (132:8): [True: 406k, False: 15.4k]
  ------------------
  133|   406k|        if(s==(buffer.getAlias()+len)) {
  ------------------
  |  Branch (133:12): [True: 48.5k, False: 357k]
  ------------------
  134|       |            // The caller wrote into the getAppendBuffer().
  135|  48.5k|            if(sLength>=(buffer.getCapacity()-len)) {
  ------------------
  |  Branch (135:16): [True: 0, False: 48.5k]
  ------------------
  136|       |                // The caller wrote too much.
  137|      0|                errorCode=U_INTERNAL_PROGRAM_ERROR;
  138|  48.5k|            } else {
  139|  48.5k|                buffer[len+=sLength]=0;
  140|  48.5k|            }
  141|   357k|        } else if(buffer.getAlias()<=s && s<(buffer.getAlias()+len) &&
  ------------------
  |  Branch (141:19): [True: 80.5k, False: 277k]
  |  Branch (141:43): [True: 0, False: 80.5k]
  ------------------
  142|   357k|                  sLength>=(buffer.getCapacity()-len)
  ------------------
  |  Branch (142:19): [True: 0, False: 0]
  ------------------
  143|   357k|        ) {
  144|       |            // (Part of) this string is appended to itself which requires reallocation,
  145|       |            // so we have to make a copy of the substring and append that.
  146|      0|            return append(CharString(s, sLength, errorCode), errorCode);
  147|   357k|        } else if(ensureCapacity(len+sLength+1, 0, errorCode)) {
  ------------------
  |  Branch (147:19): [True: 357k, False: 0]
  ------------------
  148|   357k|            uprv_memcpy(buffer.getAlias()+len, s, sLength);
  ------------------
  |  |   42|   357k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   357k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|   357k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|   357k|    _Pragma("clang diagnostic push") \
  |  |   45|   357k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|   357k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|   357k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|   357k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|   357k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|   357k|    _Pragma("clang diagnostic pop") \
  |  |   49|   357k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|   357k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|   357k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   357k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  149|   357k|            buffer[len+=sLength]=0;
  150|   357k|        }
  151|   406k|    }
  152|   421k|    return *this;
  153|   421k|}
_ZN6icu_7810CharString15getAppendBufferEiiRiR10UErrorCode:
  190|  51.3k|                                  UErrorCode &errorCode) {
  191|  51.3k|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (191:8): [True: 0, False: 51.3k]
  ------------------
  192|      0|        resultCapacity=0;
  193|      0|        return nullptr;
  194|      0|    }
  195|  51.3k|    int32_t appendCapacity=buffer.getCapacity()-len-1;  // -1 for NUL
  196|  51.3k|    if(appendCapacity>=minCapacity) {
  ------------------
  |  Branch (196:8): [True: 50.4k, False: 893]
  ------------------
  197|  50.4k|        resultCapacity=appendCapacity;
  198|  50.4k|        return buffer.getAlias()+len;
  199|  50.4k|    }
  200|    893|    if(ensureCapacity(len+minCapacity+1, len+desiredCapacityHint+1, errorCode)) {
  ------------------
  |  Branch (200:8): [True: 893, False: 0]
  ------------------
  201|    893|        resultCapacity=buffer.getCapacity()-len-1;
  202|    893|        return buffer.getAlias()+len;
  203|    893|    }
  204|      0|    resultCapacity=0;
  205|      0|    return nullptr;
  206|    893|}
_ZN6icu_7810CharString20appendInvariantCharsERKNS_13UnicodeStringER10UErrorCode:
  208|    501|CharString &CharString::appendInvariantChars(const UnicodeString &s, UErrorCode &errorCode) {
  209|    501|    return appendInvariantChars(s.getBuffer(), s.length(), errorCode);
  210|    501|}
_ZN6icu_7810CharString20appendInvariantCharsEPKDsiR10UErrorCode:
  212|  1.31k|CharString &CharString::appendInvariantChars(const char16_t* uchars, int32_t ucharsLen, UErrorCode &errorCode) {
  213|  1.31k|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (213:8): [True: 0, False: 1.31k]
  ------------------
  214|      0|        return *this;
  215|      0|    }
  216|  1.31k|    if (!uprv_isInvariantUString(uchars, ucharsLen)) {
  ------------------
  |  | 1518|  1.31k|#define uprv_isInvariantUString U_ICU_ENTRY_POINT_RENAME(uprv_isInvariantUString)
  |  |  ------------------
  |  |  |  |  123|  1.31k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.31k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.31k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (216:9): [True: 0, False: 1.31k]
  ------------------
  217|      0|        errorCode = U_INVARIANT_CONVERSION_ERROR;
  218|      0|        return *this;
  219|      0|    }
  220|  1.31k|    if(ensureCapacity(len+ucharsLen+1, 0, errorCode)) {
  ------------------
  |  Branch (220:8): [True: 1.31k, False: 0]
  ------------------
  221|  1.31k|        u_UCharsToChars(uchars, buffer.getAlias()+len, ucharsLen);
  ------------------
  |  |  211|  1.31k|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|  1.31k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.31k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.31k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  222|  1.31k|        len += ucharsLen;
  223|  1.31k|        buffer[len] = 0;
  224|  1.31k|    }
  225|  1.31k|    return *this;
  226|  1.31k|}
_ZN6icu_7810CharString14ensureCapacityEiiR10UErrorCode:
  230|   903k|                                 UErrorCode &errorCode) {
  231|   903k|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (231:8): [True: 0, False: 903k]
  ------------------
  232|      0|        return false;
  233|      0|    }
  234|   903k|    if(capacity>buffer.getCapacity()) {
  ------------------
  |  Branch (234:8): [True: 22.2k, False: 880k]
  ------------------
  235|  22.2k|        if(desiredCapacityHint==0) {
  ------------------
  |  Branch (235:12): [True: 21.3k, False: 893]
  ------------------
  236|  21.3k|            desiredCapacityHint=capacity+buffer.getCapacity();
  237|  21.3k|        }
  238|  22.2k|        if( (desiredCapacityHint<=capacity || buffer.resize(desiredCapacityHint, len+1)==nullptr) &&
  ------------------
  |  Branch (238:14): [True: 893, False: 21.3k]
  |  Branch (238:47): [True: 0, False: 21.3k]
  ------------------
  239|  22.2k|            buffer.resize(capacity, len+1)==nullptr
  ------------------
  |  Branch (239:13): [True: 0, False: 893]
  ------------------
  240|  22.2k|        ) {
  241|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  242|      0|            return false;
  243|      0|        }
  244|  22.2k|    }
  245|   903k|    return true;
  246|   903k|}

_ZN6icu_7810CharStringC2Ev:
   43|   337k|    CharString() : len(0) { buffer[0]=0; }
_ZN6icu_7810CharString4dataEv:
   85|   155k|    char *data() { return buffer.getAlias(); }
_ZNK6icu_7810CharString6lengthEv:
   80|   178k|    int32_t length() const { return len; }
_ZNK6icu_7810CharString7isEmptyEv:
   79|   146k|    UBool isEmpty() const { return len==0; }
_ZN6icu_7810CharStringD2Ev:
   56|   405k|    ~CharString() {}
_ZN6icu_7810CharStringC2ENS_11StringPieceER10UErrorCode:
   44|  2.48k|    CharString(StringPiece s, UErrorCode &errorCode) : len(0) {
   45|  2.48k|        buffer[0]=0;
   46|  2.48k|        append(s, errorCode);
   47|  2.48k|    }
_ZN6icu_7810CharStringC2EPKciR10UErrorCode:
   52|  44.1k|    CharString(const char *s, int32_t sLength, UErrorCode &errorCode) : len(0) {
   53|  44.1k|        buffer[0]=0;
   54|  44.1k|        append(s, sLength, errorCode);
   55|  44.1k|    }
_ZNK6icu_7810CharStringixEi:
   81|      3|    char operator[](int32_t index) const { return buffer[index]; }
_ZNK6icu_7810CharString13toStringPieceEv:
   82|  4.34k|    StringPiece toStringPiece() const { return StringPiece(buffer.getAlias(), len); }
_ZNK6icu_7810CharString4dataEv:
   84|  80.2k|    const char *data() const { return buffer.getAlias(); }
_ZNK6icu_7810CharStringeqERKS0_:
  108|  37.1k|    bool operator==(const CharString& other) const {
  109|  37.1k|        return len == other.length() && (len == 0 || uprv_memcmp(data(), other.data(), len) == 0);
  ------------------
  |  |  101|  3.38k|#define uprv_memcmp(buffer1, buffer2, size) U_STANDARD_CPP_NAMESPACE memcmp(buffer1, buffer2,size)
  |  |  ------------------
  |  |  |  |  393|  3.38k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (109:16): [True: 3.38k, False: 33.7k]
  |  Branch (109:42): [True: 0, False: 3.38k]
  |  Branch (109:54): [True: 1.42k, False: 1.95k]
  ------------------
  110|  37.1k|    }
_ZNK6icu_7810CharStringeqENS_11StringPieceE:
  115|  8.86k|    bool operator==(StringPiece other) const {
  116|  8.86k|        return len == other.length() && (len == 0 || uprv_memcmp(data(), other.data(), len) == 0);
  ------------------
  |  |  101|    441|#define uprv_memcmp(buffer1, buffer2, size) U_STANDARD_CPP_NAMESPACE memcmp(buffer1, buffer2,size)
  |  |  ------------------
  |  |  |  |  393|    441|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (116:16): [True: 441, False: 8.41k]
  |  Branch (116:42): [True: 0, False: 441]
  |  Branch (116:54): [True: 0, False: 441]
  ------------------
  117|  8.86k|    }
_ZN6icu_7810CharString5clearEv:
  127|  3.14k|    CharString &clear() { len=0; buffer[0]=0; return *this; }
_ZN6icu_7810CharString6appendENS_11StringPieceER10UErrorCode:
  131|   119k|    CharString &append(StringPiece s, UErrorCode &errorCode) {
  132|   119k|        return append(s.data(), s.length(), errorCode);
  133|   119k|    }
_ZN6icu_7810CharString6appendERKS0_R10UErrorCode:
  134|  71.1k|    CharString &append(const CharString &s, UErrorCode &errorCode) {
  135|  71.1k|        return append(s.data(), s.length(), errorCode);
  136|  71.1k|    }

_ZN6icu_7813CharStringMapD2Ev:
   33|     10|    ~CharStringMap() {
   34|     10|        uhash_close(map);
  ------------------
  |  |  991|     10|#define uhash_close U_ICU_ENTRY_POINT_RENAME(uhash_close)
  |  |  ------------------
  |  |  |  |  123|     10|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     10|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     10|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   35|     10|    }
_ZN6icu_7813CharStringMapC2EiR10UErrorCode:
   25|      5|    CharStringMap(int32_t size, UErrorCode &errorCode) {
   26|      5|        map = uhash_openSize(uhash_hashChars, uhash_compareChars, uhash_compareChars,
  ------------------
  |  | 1031|      5|#define uhash_openSize U_ICU_ENTRY_POINT_RENAME(uhash_openSize)
  |  |  ------------------
  |  |  |  |  123|      5|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      5|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      5|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      map = uhash_openSize(uhash_hashChars, uhash_compareChars, uhash_compareChars,
  ------------------
  |  | 1011|      5|#define uhash_hashChars U_ICU_ENTRY_POINT_RENAME(uhash_hashChars)
  |  |  ------------------
  |  |  |  |  123|      5|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      5|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      5|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      map = uhash_openSize(uhash_hashChars, uhash_compareChars, uhash_compareChars,
  ------------------
  |  |  993|      5|#define uhash_compareChars U_ICU_ENTRY_POINT_RENAME(uhash_compareChars)
  |  |  ------------------
  |  |  |  |  123|      5|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      5|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      5|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      map = uhash_openSize(uhash_hashChars, uhash_compareChars, uhash_compareChars,
  ------------------
  |  |  993|      5|#define uhash_compareChars U_ICU_ENTRY_POINT_RENAME(uhash_compareChars)
  |  |  ------------------
  |  |  |  |  123|      5|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      5|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      5|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   27|      5|                             size, &errorCode);
   28|      5|    }
_ZN6icu_7813CharStringMap3putEPKcS2_R10UErrorCode:
   45|  1.29k|    void put(const char *key, const char *value, UErrorCode &errorCode) {
   46|  1.29k|        uhash_put(map, const_cast<char *>(key), const_cast<char *>(value), &errorCode);
  ------------------
  |  | 1032|  1.29k|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|  1.29k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.29k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.29k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   47|  1.29k|    }
_ZN6icu_7813CharStringMapC2EOS0_:
   29|     10|    CharStringMap(CharStringMap &&other) noexcept : map(other.map) {
   30|     10|        other.map = nullptr;
   31|     10|    }
_ZNK6icu_7813CharStringMap3getEPKc:
   44|  1.88k|    const char *get(const char *key) const { return static_cast<const char *>(uhash_get(map, key)); }
  ------------------
  |  | 1007|  1.88k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  1.88k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.88k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.88k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------

uprv_malloc_78:
   45|   199k|uprv_malloc(size_t s) {
   46|       |#if U_DEBUG && defined(UPRV_MALLOC_COUNT)
   47|       |#if 1
   48|       |  putchar('>');
   49|       |  fflush(stdout);
   50|       |#else
   51|       |  fprintf(stderr,"MALLOC\t#%d\t%ul bytes\t%ul total\n", ++n,s,(b+=s)); fflush(stderr);
   52|       |#endif
   53|       |#endif
   54|   199k|    if (s > 0) {
  ------------------
  |  Branch (54:9): [True: 199k, False: 0]
  ------------------
   55|   199k|        if (pAlloc) {
  ------------------
  |  Branch (55:13): [True: 0, False: 199k]
  ------------------
   56|      0|            return (*pAlloc)(pContext, s);
   57|   199k|        } else {
   58|   199k|            return uprv_default_malloc(s);
  ------------------
  |  |  615|   199k|# define uprv_default_malloc(x) malloc(x)
  ------------------
   59|   199k|        }
   60|   199k|    } else {
   61|      0|        return (void *)zeroMem;
   62|      0|    }
   63|   199k|}
uprv_realloc_78:
   66|     89|uprv_realloc(void * buffer, size_t size) {
   67|       |#if U_DEBUG && defined(UPRV_MALLOC_COUNT)
   68|       |  putchar('~');
   69|       |  fflush(stdout);
   70|       |#endif
   71|     89|    if (buffer == zeroMem) {
  ------------------
  |  Branch (71:9): [True: 0, False: 89]
  ------------------
   72|      0|        return uprv_malloc(size);
  ------------------
  |  | 1524|      0|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   73|     89|    } else if (size == 0) {
  ------------------
  |  Branch (73:16): [True: 0, False: 89]
  ------------------
   74|      0|        if (pFree) {
  ------------------
  |  Branch (74:13): [True: 0, False: 0]
  ------------------
   75|      0|            (*pFree)(pContext, buffer);
   76|      0|        } else {
   77|      0|            uprv_default_free(buffer);
  ------------------
  |  |  617|      0|# define uprv_default_free(x) free(x)
  ------------------
   78|      0|        }
   79|      0|        return (void *)zeroMem;
   80|     89|    } else {
   81|     89|        if (pRealloc) {
  ------------------
  |  Branch (81:13): [True: 0, False: 89]
  ------------------
   82|      0|            return (*pRealloc)(pContext, buffer, size);
   83|     89|        } else {
   84|     89|            return uprv_default_realloc(buffer, size);
  ------------------
  |  |  616|     89|# define uprv_default_realloc(x,y) realloc(x,y)
  ------------------
   85|     89|        }
   86|     89|    }
   87|     89|}
uprv_free_78:
   90|   392k|uprv_free(void *buffer) {
   91|       |#if U_DEBUG && defined(UPRV_MALLOC_COUNT)
   92|       |  putchar('<');
   93|       |  fflush(stdout);
   94|       |#endif
   95|   392k|    if (buffer != zeroMem) {
  ------------------
  |  Branch (95:9): [True: 392k, False: 0]
  ------------------
   96|   392k|        if (pFree) {
  ------------------
  |  Branch (96:13): [True: 0, False: 392k]
  ------------------
   97|      0|            (*pFree)(pContext, buffer);
   98|   392k|        } else {
   99|   392k|            uprv_default_free(buffer);
  ------------------
  |  |  617|   392k|# define uprv_default_free(x) free(x)
  ------------------
  100|   392k|        }
  101|   392k|    }
  102|   392k|}

_ZN6icu_7815MaybeStackArrayIcLi40EEC2Ev:
  344|   384k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZN6icu_7815MaybeStackArrayIcLi40EED2Ev:
  363|   405k|    ~MaybeStackArray() { releaseArray(); }
_ZN6icu_7815MaybeStackArrayIcLi40EEC2EOS1_:
  479|  21.5k|        : ptr(src.ptr), capacity(src.capacity), needToRelease(src.needToRelease) {
  480|  21.5k|    if (src.ptr == src.stackArray) {
  ------------------
  |  Branch (480:9): [True: 21.5k, False: 0]
  ------------------
  481|  21.5k|        ptr = stackArray;
  482|  21.5k|        uprv_memcpy(stackArray, src.stackArray, sizeof(T) * src.capacity);
  ------------------
  |  |   42|  21.5k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  21.5k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  21.5k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  21.5k|    _Pragma("clang diagnostic push") \
  |  |   45|  21.5k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  21.5k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  21.5k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  21.5k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  21.5k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  21.5k|    _Pragma("clang diagnostic pop") \
  |  |   49|  21.5k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  21.5k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  21.5k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  21.5k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  483|  21.5k|    } else {
  484|      0|        src.resetToStackArray();  // take ownership away from src
  485|      0|    }
  486|  21.5k|}
_ZN6icu_7815MaybeStackArrayIcLi40EEaSEOS1_:
  490|  4.87k|MaybeStackArray<T, stackCapacity>::operator=(MaybeStackArray <T, stackCapacity>&& src) noexcept {
  491|  4.87k|    releaseArray();  // in case this instance had its own memory allocated
  492|  4.87k|    capacity = src.capacity;
  493|  4.87k|    needToRelease = src.needToRelease;
  494|  4.87k|    if (src.ptr == src.stackArray) {
  ------------------
  |  Branch (494:9): [True: 3.72k, False: 1.14k]
  ------------------
  495|  3.72k|        ptr = stackArray;
  496|  3.72k|        uprv_memcpy(stackArray, src.stackArray, sizeof(T) * src.capacity);
  ------------------
  |  |   42|  3.72k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  3.72k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  3.72k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  3.72k|    _Pragma("clang diagnostic push") \
  |  |   45|  3.72k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  3.72k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.72k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  3.72k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.72k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  3.72k|    _Pragma("clang diagnostic pop") \
  |  |   49|  3.72k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  3.72k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  3.72k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  3.72k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  497|  3.72k|    } else {
  498|  1.14k|        ptr = src.ptr;
  499|  1.14k|        src.resetToStackArray();  // take ownership away from src
  500|  1.14k|    }
  501|  4.87k|    return *this;
  502|  4.87k|}
_ZNK6icu_7815MaybeStackArrayIcLi40EE11getCapacityEv:
  376|  1.02M|    int32_t getCapacity() const { return capacity; }
_ZNK6icu_7815MaybeStackArrayIcLi40EE8getAliasEv:
  381|  1.49M|    T *getAlias() const { return ptr; }
_ZNK6icu_7815MaybeStackArrayIcLi40EEixEl:
  395|      3|    const T &operator[](ptrdiff_t i) const { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIcLi40EEixEl:
  402|  1.88M|    T &operator[](ptrdiff_t i) { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIcLi40EE6resizeEii:
  505|  22.2k|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|  22.2k|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 22.2k, False: 0]
  ------------------
  507|       |#if U_DEBUG && defined(UPRV_MALLOC_COUNT)
  508|       |        ::fprintf(::stderr, "MaybeStackArray (resize) alloc %d * %lu\n", newCapacity, sizeof(T));
  509|       |#endif
  510|  22.2k|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|  22.2k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  22.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  22.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  22.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|  22.2k|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 22.2k, False: 0]
  ------------------
  512|  22.2k|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 22.2k, False: 0]
  ------------------
  513|  22.2k|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 22.2k]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|  22.2k|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 22.2k]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|  22.2k|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|  22.2k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  22.2k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  22.2k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  22.2k|    _Pragma("clang diagnostic push") \
  |  |   45|  22.2k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  22.2k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  22.2k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  22.2k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  22.2k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  22.2k|    _Pragma("clang diagnostic pop") \
  |  |   49|  22.2k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  22.2k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  22.2k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  22.2k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|  22.2k|            }
  521|  22.2k|            releaseArray();
  522|  22.2k|            ptr=p;
  523|  22.2k|            capacity=newCapacity;
  524|  22.2k|            needToRelease=true;
  525|  22.2k|        }
  526|  22.2k|        return p;
  527|  22.2k|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|  22.2k|}
_ZN6icu_7815MaybeStackArrayIcLi40EE12releaseArrayEv:
  458|   432k|    void releaseArray() {
  459|   432k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 22.2k, False: 409k]
  ------------------
  460|  22.2k|            uprv_free(ptr);
  ------------------
  |  | 1503|  22.2k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  22.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  22.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  22.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|  22.2k|        }
  462|   432k|    }
_ZN6icu_7815MaybeStackArrayIcLi40EE17resetToStackArrayEv:
  463|  1.14k|    void resetToStackArray() {
  464|  1.14k|        ptr=stackArray;
  465|  1.14k|        capacity=stackCapacity;
  466|  1.14k|        needToRelease=false;
  467|  1.14k|    }
_ZN6icu_7815MaybeStackArrayIlLi40EEC2Ev:
  344|  14.1k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZNK6icu_7815MaybeStackArrayIlLi40EEixEl:
  395|  1.34M|    const T &operator[](ptrdiff_t i) const { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIlLi40EEixEl:
  402|  1.26M|    T &operator[](ptrdiff_t i) { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIlLi40EE12releaseArrayEv:
  458|  16.6k|    void releaseArray() {
  459|  16.6k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 2.50k, False: 14.1k]
  ------------------
  460|  2.50k|            uprv_free(ptr);
  ------------------
  |  | 1503|  2.50k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  2.50k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.50k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.50k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|  2.50k|        }
  462|  16.6k|    }
_ZN6icu_7815MaybeStackArrayIlLi40EED2Ev:
  363|  14.1k|    ~MaybeStackArray() { releaseArray(); }
_ZNK6icu_7815MaybeStackArrayIlLi40EE11getCapacityEv:
  376|   351k|    int32_t getCapacity() const { return capacity; }
_ZN6icu_7815MaybeStackArrayIlLi40EE6resizeEii:
  505|  2.50k|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|  2.50k|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 2.50k, False: 0]
  ------------------
  507|       |#if U_DEBUG && defined(UPRV_MALLOC_COUNT)
  508|       |        ::fprintf(::stderr, "MaybeStackArray (resize) alloc %d * %lu\n", newCapacity, sizeof(T));
  509|       |#endif
  510|  2.50k|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|  2.50k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  2.50k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.50k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.50k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|  2.50k|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 2.50k, False: 0]
  ------------------
  512|  2.50k|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 2.50k, False: 0]
  ------------------
  513|  2.50k|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 2.50k]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|  2.50k|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 2.50k]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|  2.50k|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|  2.50k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  2.50k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  2.50k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  2.50k|    _Pragma("clang diagnostic push") \
  |  |   45|  2.50k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  2.50k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  2.50k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  2.50k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  2.50k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  2.50k|    _Pragma("clang diagnostic pop") \
  |  |   49|  2.50k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  2.50k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  2.50k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  2.50k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|  2.50k|            }
  521|  2.50k|            releaseArray();
  522|  2.50k|            ptr=p;
  523|  2.50k|            capacity=newCapacity;
  524|  2.50k|            needToRelease=true;
  525|  2.50k|        }
  526|  2.50k|        return p;
  527|  2.50k|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|  2.50k|}
_ZN6icu_7810MemoryPoolINS_13UnicodeStringELi8EEC2Ev:
  760|      1|    MemoryPool() : fCount(0), fPool() {}
_ZN6icu_7815MaybeStackArrayIPNS_13UnicodeStringELi8EEC2Ev:
  344|      1|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZN6icu_7810MemoryPoolINS_13UnicodeStringELi8EED2Ev:
  762|      1|    ~MemoryPool() {
  763|      1|        for (int32_t i = 0; i < fCount; ++i) {
  ------------------
  |  Branch (763:29): [True: 0, False: 1]
  ------------------
  764|      0|            delete fPool[i];
  765|      0|        }
  766|      1|    }
_ZN6icu_7815MaybeStackArrayIPNS_13UnicodeStringELi8EED2Ev:
  363|      1|    ~MaybeStackArray() { releaseArray(); }
_ZN6icu_7815MaybeStackArrayIPNS_13UnicodeStringELi8EE12releaseArrayEv:
  458|      1|    void releaseArray() {
  459|      1|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 0, False: 1]
  ------------------
  460|      0|            uprv_free(ptr);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|      0|        }
  462|      1|    }
_ZN6icu_7811LocalMemoryIPKcEC2EPS2_:
  195|      5|    explicit LocalMemory(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7811LocalMemoryIiEC2EPi:
  195|      5|    explicit LocalMemory(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7811LocalMemoryIPKcE22allocateInsteadAndCopyEii:
  294|      5|inline T *LocalMemory<T>::allocateInsteadAndCopy(int32_t newCapacity, int32_t length) {
  295|      5|    if(newCapacity>0) {
  ------------------
  |  Branch (295:8): [True: 5, False: 0]
  ------------------
  296|      5|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|      5|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      5|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      5|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      5|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  297|      5|        if(p!=nullptr) {
  ------------------
  |  Branch (297:12): [True: 5, False: 0]
  ------------------
  298|      5|            if(length>0) {
  ------------------
  |  Branch (298:16): [True: 0, False: 5]
  ------------------
  299|      0|                if(length>newCapacity) {
  ------------------
  |  Branch (299:20): [True: 0, False: 0]
  ------------------
  300|      0|                    length=newCapacity;
  301|      0|                }
  302|      0|                uprv_memcpy(p, LocalPointerBase<T>::ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|      0|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      0|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|      0|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|      0|    _Pragma("clang diagnostic push") \
  |  |   45|      0|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|      0|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|      0|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|      0|    _Pragma("clang diagnostic pop") \
  |  |   49|      0|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|      0|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      0|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  303|      0|            }
  304|      5|            uprv_free(LocalPointerBase<T>::ptr);
  ------------------
  |  | 1503|      5|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      5|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      5|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      5|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  305|      5|            LocalPointerBase<T>::ptr=p;
  306|      5|        }
  307|      5|        return p;
  308|      5|    } else {
  309|      0|        return nullptr;
  310|      0|    }
  311|      5|}
_ZN6icu_7811LocalMemoryIiE22allocateInsteadAndCopyEii:
  294|      5|inline T *LocalMemory<T>::allocateInsteadAndCopy(int32_t newCapacity, int32_t length) {
  295|      5|    if(newCapacity>0) {
  ------------------
  |  Branch (295:8): [True: 5, False: 0]
  ------------------
  296|      5|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|      5|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      5|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      5|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      5|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  297|      5|        if(p!=nullptr) {
  ------------------
  |  Branch (297:12): [True: 5, False: 0]
  ------------------
  298|      5|            if(length>0) {
  ------------------
  |  Branch (298:16): [True: 0, False: 5]
  ------------------
  299|      0|                if(length>newCapacity) {
  ------------------
  |  Branch (299:20): [True: 0, False: 0]
  ------------------
  300|      0|                    length=newCapacity;
  301|      0|                }
  302|      0|                uprv_memcpy(p, LocalPointerBase<T>::ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|      0|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      0|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|      0|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|      0|    _Pragma("clang diagnostic push") \
  |  |   45|      0|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|      0|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|      0|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|      0|    _Pragma("clang diagnostic pop") \
  |  |   49|      0|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|      0|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      0|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  303|      0|            }
  304|      5|            uprv_free(LocalPointerBase<T>::ptr);
  ------------------
  |  | 1503|      5|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      5|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      5|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      5|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  305|      5|            LocalPointerBase<T>::ptr=p;
  306|      5|        }
  307|      5|        return p;
  308|      5|    } else {
  309|      0|        return nullptr;
  310|      0|    }
  311|      5|}
_ZNK6icu_7811LocalMemoryIPKcEixEl:
  274|  1.29k|    T &operator[](ptrdiff_t i) const { return LocalPointerBase<T>::ptr[i]; }
_ZNK6icu_7811LocalMemoryIiEixEl:
  274|  1.29k|    T &operator[](ptrdiff_t i) const { return LocalPointerBase<T>::ptr[i]; }
_ZN6icu_7811LocalMemoryIiED2Ev:
  206|      5|    ~LocalMemory() {
  207|      5|        uprv_free(LocalPointerBase<T>::ptr);
  ------------------
  |  | 1503|      5|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      5|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      5|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      5|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  208|      5|    }
_ZN6icu_7811LocalMemoryIPKcED2Ev:
  206|      5|    ~LocalMemory() {
  207|      5|        uprv_free(LocalPointerBase<T>::ptr);
  ------------------
  |  | 1503|      5|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      5|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      5|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      5|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  208|      5|    }
_ZN6icu_7815MaybeStackArrayIP13LocExtKeyDataLi8EEixEl:
  402|     37|    T &operator[](ptrdiff_t i) { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIP13LocExtKeyDataLi8EE12releaseArrayEv:
  458|      2|    void releaseArray() {
  459|      2|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 1, False: 1]
  ------------------
  460|      1|            uprv_free(ptr);
  ------------------
  |  | 1503|      1|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|      1|        }
  462|      2|    }
_ZN6icu_7815MaybeStackArrayIP10LocExtTypeLi8EEixEl:
  402|  1.05k|    T &operator[](ptrdiff_t i) { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIP10LocExtTypeLi8EE12releaseArrayEv:
  458|      7|    void releaseArray() {
  459|      7|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 6, False: 1]
  ------------------
  460|      6|            uprv_free(ptr);
  ------------------
  |  | 1503|      6|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      6|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      6|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      6|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|      6|        }
  462|      7|    }
_ZN6icu_7815MaybeStackArrayIP9TypeAliasLi8EEixEl:
  402|    178|    T &operator[](ptrdiff_t i) { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIP9TypeAliasLi8EE12releaseArrayEv:
  458|      4|    void releaseArray() {
  459|      4|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 3, False: 1]
  ------------------
  460|      3|            uprv_free(ptr);
  ------------------
  |  | 1503|      3|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      3|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      3|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      3|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|      3|        }
  462|      4|    }
_ZN6icu_7810MemoryPoolINS_10CharStringELi8EED2Ev:
  762|  3.91k|    ~MemoryPool() {
  763|  30.5k|        for (int32_t i = 0; i < fCount; ++i) {
  ------------------
  |  Branch (763:29): [True: 26.6k, False: 3.91k]
  ------------------
  764|  26.6k|            delete fPool[i];
  765|  26.6k|        }
  766|  3.91k|    }
_ZN6icu_7815MaybeStackArrayIPNS_10CharStringELi8EEixEl:
  402|  54.3k|    T &operator[](ptrdiff_t i) { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIPNS_10CharStringELi8EED2Ev:
  363|  3.91k|    ~MaybeStackArray() { releaseArray(); }
_ZN6icu_7815MaybeStackArrayIPNS_10CharStringELi8EE12releaseArrayEv:
  458|  4.69k|    void releaseArray() {
  459|  4.69k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 779, False: 3.91k]
  ------------------
  460|    779|            uprv_free(ptr);
  ------------------
  |  | 1503|    779|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    779|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    779|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    779|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|    779|        }
  462|  4.69k|    }
_ZN6icu_7810MemoryPoolINS_10CharStringELi8EEC2Ev:
  760|  3.91k|    MemoryPool() : fCount(0), fPool() {}
_ZN6icu_7815MaybeStackArrayIPNS_10CharStringELi8EEC2Ev:
  344|  3.91k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZN6icu_7810MemoryPoolI13LocExtKeyDataLi8EEC2Ev:
  760|      1|    MemoryPool() : fCount(0), fPool() {}
_ZN6icu_7815MaybeStackArrayIP13LocExtKeyDataLi8EEC2Ev:
  344|      1|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZN6icu_7810MemoryPoolI10LocExtTypeLi8EEC2Ev:
  760|      1|    MemoryPool() : fCount(0), fPool() {}
_ZN6icu_7815MaybeStackArrayIP10LocExtTypeLi8EEC2Ev:
  344|      1|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZN6icu_7810MemoryPoolI9TypeAliasLi8EEC2Ev:
  760|      1|    MemoryPool() : fCount(0), fPool() {}
_ZN6icu_7815MaybeStackArrayIP9TypeAliasLi8EEC2Ev:
  344|      1|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZN6icu_7810MemoryPoolINS_10CharStringELi8EE6createIJEEEPS1_DpOT_:
  796|  1.12k|    T* create(Args&&... args) {
  797|  1.12k|        int32_t capacity = fPool.getCapacity();
  798|  1.12k|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 5, False: 1.12k]
  ------------------
  799|  1.12k|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 5]
  |  Branch (799:26): [True: 1, False: 4]
  ------------------
  800|      5|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|  1.12k|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|  1.12k|    }
_ZNK6icu_7815MaybeStackArrayIPNS_10CharStringELi8EE11getCapacityEv:
  376|  27.7k|    int32_t getCapacity() const { return capacity; }
_ZN6icu_7815MaybeStackArrayIPNS_10CharStringELi8EE6resizeEii:
  505|    780|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|    780|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 780, False: 0]
  ------------------
  507|       |#if U_DEBUG && defined(UPRV_MALLOC_COUNT)
  508|       |        ::fprintf(::stderr, "MaybeStackArray (resize) alloc %d * %lu\n", newCapacity, sizeof(T));
  509|       |#endif
  510|    780|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|    780|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    780|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    780|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    780|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|    780|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 780, False: 0]
  ------------------
  512|    780|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 780, False: 0]
  ------------------
  513|    780|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 780]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|    780|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 780]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|    780|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|    780|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    780|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    780|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    780|    _Pragma("clang diagnostic push") \
  |  |   45|    780|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    780|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    780|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    780|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    780|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    780|    _Pragma("clang diagnostic pop") \
  |  |   49|    780|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    780|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    780|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    780|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|    780|            }
  521|    780|            releaseArray();
  522|    780|            ptr=p;
  523|    780|            capacity=newCapacity;
  524|    780|            needToRelease=true;
  525|    780|        }
  526|    780|        return p;
  527|    780|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|    780|}
_ZN6icu_7810MemoryPoolINS_10CharStringELi8EE6createIJRPKcR10UErrorCodeEEEPS1_DpOT_:
  796|    556|    T* create(Args&&... args) {
  797|    556|        int32_t capacity = fPool.getCapacity();
  798|    556|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 2, False: 554]
  ------------------
  799|    556|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 2]
  |  Branch (799:26): [True: 0, False: 2]
  ------------------
  800|      2|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|    556|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|    556|    }
_ZN6icu_7810MemoryPoolI10LocExtTypeLi8EE6createIJEEEPS1_DpOT_:
  796|  1.05k|    T* create(Args&&... args) {
  797|  1.05k|        int32_t capacity = fPool.getCapacity();
  798|  1.05k|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 7, False: 1.04k]
  ------------------
  799|  1.05k|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 7]
  |  Branch (799:26): [True: 1, False: 6]
  ------------------
  800|      7|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|  1.05k|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|  1.05k|    }
_ZNK6icu_7815MaybeStackArrayIP10LocExtTypeLi8EE11getCapacityEv:
  376|  1.05k|    int32_t getCapacity() const { return capacity; }
_ZN6icu_7815MaybeStackArrayIP10LocExtTypeLi8EE6resizeEii:
  505|      7|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|      7|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 7, False: 0]
  ------------------
  507|       |#if U_DEBUG && defined(UPRV_MALLOC_COUNT)
  508|       |        ::fprintf(::stderr, "MaybeStackArray (resize) alloc %d * %lu\n", newCapacity, sizeof(T));
  509|       |#endif
  510|      7|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|      7|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      7|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      7|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      7|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|      7|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 7, False: 0]
  ------------------
  512|      7|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 7, False: 0]
  ------------------
  513|      7|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 7]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|      7|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 7]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|      7|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|      7|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      7|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|      7|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|      7|    _Pragma("clang diagnostic push") \
  |  |   45|      7|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|      7|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|      7|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|      7|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|      7|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|      7|    _Pragma("clang diagnostic pop") \
  |  |   49|      7|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|      7|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|      7|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      7|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|      7|            }
  521|      7|            releaseArray();
  522|      7|            ptr=p;
  523|      7|            capacity=newCapacity;
  524|      7|            needToRelease=true;
  525|      7|        }
  526|      7|        return p;
  527|      7|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|      7|}
_ZN6icu_7810MemoryPoolI9TypeAliasLi8EE6createIJS1_EEEPS1_DpOT_:
  796|    178|    T* create(Args&&... args) {
  797|    178|        int32_t capacity = fPool.getCapacity();
  798|    178|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 4, False: 174]
  ------------------
  799|    178|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 4]
  |  Branch (799:26): [True: 1, False: 3]
  ------------------
  800|      4|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|    178|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|    178|    }
_ZNK6icu_7815MaybeStackArrayIP9TypeAliasLi8EE11getCapacityEv:
  376|    178|    int32_t getCapacity() const { return capacity; }
_ZN6icu_7815MaybeStackArrayIP9TypeAliasLi8EE6resizeEii:
  505|      4|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|      4|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 4, False: 0]
  ------------------
  507|       |#if U_DEBUG && defined(UPRV_MALLOC_COUNT)
  508|       |        ::fprintf(::stderr, "MaybeStackArray (resize) alloc %d * %lu\n", newCapacity, sizeof(T));
  509|       |#endif
  510|      4|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|      4|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      4|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      4|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      4|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|      4|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 4, False: 0]
  ------------------
  512|      4|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 4, False: 0]
  ------------------
  513|      4|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 4]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|      4|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 4]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|      4|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|      4|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      4|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|      4|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|      4|    _Pragma("clang diagnostic push") \
  |  |   45|      4|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|      4|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|      4|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|      4|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|      4|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|      4|    _Pragma("clang diagnostic pop") \
  |  |   49|      4|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|      4|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|      4|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      4|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|      4|            }
  521|      4|            releaseArray();
  522|      4|            ptr=p;
  523|      4|            capacity=newCapacity;
  524|      4|            needToRelease=true;
  525|      4|        }
  526|      4|        return p;
  527|      4|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|      4|}
_ZN6icu_7810MemoryPoolI13LocExtKeyDataLi8EE6createIJEEEPS1_DpOT_:
  796|     37|    T* create(Args&&... args) {
  797|     37|        int32_t capacity = fPool.getCapacity();
  798|     37|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 2, False: 35]
  ------------------
  799|     37|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 2]
  |  Branch (799:26): [True: 1, False: 1]
  ------------------
  800|      2|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|     37|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|     37|    }
_ZNK6icu_7815MaybeStackArrayIP13LocExtKeyDataLi8EE11getCapacityEv:
  376|     37|    int32_t getCapacity() const { return capacity; }
_ZN6icu_7815MaybeStackArrayIP13LocExtKeyDataLi8EE6resizeEii:
  505|      2|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|      2|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 2, False: 0]
  ------------------
  507|       |#if U_DEBUG && defined(UPRV_MALLOC_COUNT)
  508|       |        ::fprintf(::stderr, "MaybeStackArray (resize) alloc %d * %lu\n", newCapacity, sizeof(T));
  509|       |#endif
  510|      2|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|      2|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      2|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      2|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      2|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|      2|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 2, False: 0]
  ------------------
  512|      2|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 2, False: 0]
  ------------------
  513|      2|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 2]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|      2|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 2]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|      2|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|      2|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      2|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|      2|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|      2|    _Pragma("clang diagnostic push") \
  |  |   45|      2|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|      2|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|      2|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|      2|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|      2|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|      2|    _Pragma("clang diagnostic pop") \
  |  |   49|      2|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|      2|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|      2|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      2|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|      2|            }
  521|      2|            releaseArray();
  522|      2|            ptr=p;
  523|      2|            capacity=newCapacity;
  524|      2|            needToRelease=true;
  525|      2|        }
  526|      2|        return p;
  527|      2|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|      2|}
uloc_tag.cpp:_ZN6icu_7810MemoryPoolIN12_GLOBAL__N_118AttributeListEntryELi8EEC2Ev:
  760|  1.87k|    MemoryPool() : fCount(0), fPool() {}
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118AttributeListEntryELi8EEC2Ev:
  344|  1.87k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
uloc_tag.cpp:_ZN6icu_7810MemoryPoolIN12_GLOBAL__N_118ExtensionListEntryELi8EEC2Ev:
  760|  2.03k|    MemoryPool() : fCount(0), fPool() {}
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118ExtensionListEntryELi8EEC2Ev:
  344|  2.03k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
uloc_tag.cpp:_ZN6icu_7810MemoryPoolIN12_GLOBAL__N_118AttributeListEntryELi8EE6createIJEEEPS2_DpOT_:
  796|  6.12k|    T* create(Args&&... args) {
  797|  6.12k|        int32_t capacity = fPool.getCapacity();
  798|  6.12k|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 172, False: 5.94k]
  ------------------
  799|  6.12k|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 172]
  |  Branch (799:26): [True: 88, False: 84]
  ------------------
  800|    172|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|  6.12k|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|  6.12k|    }
uloc_tag.cpp:_ZNK6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118AttributeListEntryELi8EE11getCapacityEv:
  376|  6.12k|    int32_t getCapacity() const { return capacity; }
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118AttributeListEntryELi8EE6resizeEii:
  505|    172|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|    172|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 172, False: 0]
  ------------------
  507|       |#if U_DEBUG && defined(UPRV_MALLOC_COUNT)
  508|       |        ::fprintf(::stderr, "MaybeStackArray (resize) alloc %d * %lu\n", newCapacity, sizeof(T));
  509|       |#endif
  510|    172|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|    172|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    172|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    172|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    172|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|    172|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 172, False: 0]
  ------------------
  512|    172|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 172, False: 0]
  ------------------
  513|    172|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 172]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|    172|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 172]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|    172|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|    172|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    172|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    172|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    172|    _Pragma("clang diagnostic push") \
  |  |   45|    172|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    172|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    172|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    172|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    172|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    172|    _Pragma("clang diagnostic pop") \
  |  |   49|    172|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    172|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    172|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    172|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|    172|            }
  521|    172|            releaseArray();
  522|    172|            ptr=p;
  523|    172|            capacity=newCapacity;
  524|    172|            needToRelease=true;
  525|    172|        }
  526|    172|        return p;
  527|    172|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|    172|}
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118AttributeListEntryELi8EE12releaseArrayEv:
  458|  2.04k|    void releaseArray() {
  459|  2.04k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 172, False: 1.87k]
  ------------------
  460|    172|            uprv_free(ptr);
  ------------------
  |  | 1503|    172|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    172|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    172|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    172|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|    172|        }
  462|  2.04k|    }
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118AttributeListEntryELi8EEixEl:
  402|  12.2k|    T &operator[](ptrdiff_t i) { return ptr[i]; }
uloc_tag.cpp:_ZN6icu_7810MemoryPoolIN12_GLOBAL__N_118ExtensionListEntryELi8EE6createIJEEEPS2_DpOT_:
  796|  24.1k|    T* create(Args&&... args) {
  797|  24.1k|        int32_t capacity = fPool.getCapacity();
  798|  24.1k|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 866, False: 23.2k]
  ------------------
  799|  24.1k|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 866]
  |  Branch (799:26): [True: 593, False: 273]
  ------------------
  800|    866|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|  24.1k|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|  24.1k|    }
uloc_tag.cpp:_ZNK6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118ExtensionListEntryELi8EE11getCapacityEv:
  376|  24.1k|    int32_t getCapacity() const { return capacity; }
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118ExtensionListEntryELi8EE6resizeEii:
  505|    866|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|    866|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 866, False: 0]
  ------------------
  507|       |#if U_DEBUG && defined(UPRV_MALLOC_COUNT)
  508|       |        ::fprintf(::stderr, "MaybeStackArray (resize) alloc %d * %lu\n", newCapacity, sizeof(T));
  509|       |#endif
  510|    866|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|    866|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    866|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    866|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    866|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|    866|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 866, False: 0]
  ------------------
  512|    866|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 866, False: 0]
  ------------------
  513|    866|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 866]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|    866|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 866]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|    866|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|    866|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    866|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    866|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    866|    _Pragma("clang diagnostic push") \
  |  |   45|    866|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    866|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    866|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    866|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    866|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    866|    _Pragma("clang diagnostic pop") \
  |  |   49|    866|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    866|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    866|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    866|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|    866|            }
  521|    866|            releaseArray();
  522|    866|            ptr=p;
  523|    866|            capacity=newCapacity;
  524|    866|            needToRelease=true;
  525|    866|        }
  526|    866|        return p;
  527|    866|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|    866|}
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118ExtensionListEntryELi8EE12releaseArrayEv:
  458|  2.90k|    void releaseArray() {
  459|  2.90k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 866, False: 2.03k]
  ------------------
  460|    866|            uprv_free(ptr);
  ------------------
  |  | 1503|    866|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    866|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    866|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    866|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|    866|        }
  462|  2.90k|    }
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118ExtensionListEntryELi8EEixEl:
  402|  48.2k|    T &operator[](ptrdiff_t i) { return ptr[i]; }
uloc_tag.cpp:_ZN6icu_7810MemoryPoolIN12_GLOBAL__N_118ExtensionListEntryELi8EED2Ev:
  762|  2.03k|    ~MemoryPool() {
  763|  26.1k|        for (int32_t i = 0; i < fCount; ++i) {
  ------------------
  |  Branch (763:29): [True: 24.1k, False: 2.03k]
  ------------------
  764|  24.1k|            delete fPool[i];
  765|  24.1k|        }
  766|  2.03k|    }
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118ExtensionListEntryELi8EED2Ev:
  363|  2.03k|    ~MaybeStackArray() { releaseArray(); }
uloc_tag.cpp:_ZN6icu_7810MemoryPoolIN12_GLOBAL__N_118AttributeListEntryELi8EED2Ev:
  762|  1.87k|    ~MemoryPool() {
  763|  7.99k|        for (int32_t i = 0; i < fCount; ++i) {
  ------------------
  |  Branch (763:29): [True: 6.12k, False: 1.87k]
  ------------------
  764|  6.12k|            delete fPool[i];
  765|  6.12k|        }
  766|  1.87k|    }
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118AttributeListEntryELi8EED2Ev:
  363|  1.87k|    ~MaybeStackArray() { releaseArray(); }
_ZN6icu_7810MemoryPoolINS_10CharStringELi8EE6createIJRPKcRiR10UErrorCodeEEEPS1_DpOT_:
  796|  26.0k|    T* create(Args&&... args) {
  797|  26.0k|        int32_t capacity = fPool.getCapacity();
  798|  26.0k|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 773, False: 25.2k]
  ------------------
  799|  26.0k|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 773]
  |  Branch (799:26): [True: 451, False: 322]
  ------------------
  800|    773|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|  26.0k|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|  26.0k|    }
umutex.cpp:_ZZN6icu_78L9umtx_initEvENK3$_0clEv:
  144|      1|#define STATIC_NEW(type) [] () { \
  145|      1|    alignas(type) static char storage[sizeof(type)]; \
  146|      1|    return new(storage) type();} ()
umutex.cpp:_ZZN6icu_78L9umtx_initEvENK3$_1clEv:
  144|      1|#define STATIC_NEW(type) [] () { \
  145|      1|    alignas(type) static char storage[sizeof(type)]; \
  146|      1|    return new(storage) type();} ()
unifiedcache.cpp:_ZZN6icu_78L9cacheInitER10UErrorCodeENK3$_0clEv:
  144|      1|#define STATIC_NEW(type) [] () { \
  145|      1|    alignas(type) static char storage[sizeof(type)]; \
  146|      1|    return new(storage) type();} ()
unifiedcache.cpp:_ZZN6icu_78L9cacheInitER10UErrorCodeENK3$_1clEv:
  144|      1|#define STATIC_NEW(type) [] () { \
  145|      1|    alignas(type) static char storage[sizeof(type)]; \
  146|      1|    return new(storage) type();} ()
_ZN6icu_7815MaybeStackArrayI11max_align_tLi7EEC2Ev:
  344|    573|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZNK6icu_7815MaybeStackArrayI11max_align_tLi7EE11getCapacityEv:
  376|    573|    int32_t getCapacity() const { return capacity; }
_ZN6icu_7815MaybeStackArrayI11max_align_tLi7EE12releaseArrayEv:
  458|    573|    void releaseArray() {
  459|    573|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 0, False: 573]
  ------------------
  460|      0|            uprv_free(ptr);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|      0|        }
  462|    573|    }
_ZNK6icu_7815MaybeStackArrayI11max_align_tLi7EE8getAliasEv:
  381|    573|    T *getAlias() const { return ptr; }
_ZN6icu_7815MaybeStackArrayI11max_align_tLi7EED2Ev:
  363|    573|    ~MaybeStackArray() { releaseArray(); }
_ZN6icu_7815MaybeStackArrayI11max_align_tLi14EEC2Ev:
  344|    698|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZNK6icu_7815MaybeStackArrayI11max_align_tLi14EE11getCapacityEv:
  376|    698|    int32_t getCapacity() const { return capacity; }
_ZN6icu_7815MaybeStackArrayI11max_align_tLi14EE12releaseArrayEv:
  458|    698|    void releaseArray() {
  459|    698|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 0, False: 698]
  ------------------
  460|      0|            uprv_free(ptr);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|      0|        }
  462|    698|    }
_ZNK6icu_7815MaybeStackArrayI11max_align_tLi14EE8getAliasEv:
  381|  1.39k|    T *getAlias() const { return ptr; }
_ZN6icu_7815MaybeStackArrayI11max_align_tLi14EED2Ev:
  363|    698|    ~MaybeStackArray() { releaseArray(); }

uprv_isASCIILetter_78:
   52|  1.03M|uprv_isASCIILetter(char c) {
   53|       |#if U_CHARSET_FAMILY==U_EBCDIC_FAMILY
   54|       |    return
   55|       |        ('a'<=c && c<='i') || ('j'<=c && c<='r') || ('s'<=c && c<='z') ||
   56|       |        ('A'<=c && c<='I') || ('J'<=c && c<='R') || ('S'<=c && c<='Z');
   57|       |#else
   58|  1.03M|    return ('a'<=c && c<='z') || ('A'<=c && c<='Z');
  ------------------
  |  Branch (58:13): [True: 782k, False: 253k]
  |  Branch (58:23): [True: 782k, False: 280]
  |  Branch (58:35): [True: 158k, False: 95.2k]
  |  Branch (58:45): [True: 157k, False: 853]
  ------------------
   59|  1.03M|#endif
   60|  1.03M|}
uprv_toupper_78:
   63|   243k|uprv_toupper(char c) {
   64|       |#if U_CHARSET_FAMILY==U_EBCDIC_FAMILY
   65|       |    if(('a'<=c && c<='i') || ('j'<=c && c<='r') || ('s'<=c && c<='z')) {
   66|       |        c=(char)(c+('A'-'a'));
   67|       |    }
   68|       |#else
   69|   243k|    if('a'<=c && c<='z') {
  ------------------
  |  Branch (69:8): [True: 21.6k, False: 221k]
  |  Branch (69:18): [True: 16.9k, False: 4.70k]
  ------------------
   70|  16.9k|        c=(char)(c+('A'-'a'));
   71|  16.9k|    }
   72|   243k|#endif
   73|   243k|    return c;
   74|   243k|}
uprv_asciitolower_78:
  103|  1.88M|uprv_asciitolower(char c) {
  104|  1.88M|    if(0x41<=c && c<=0x5a) {
  ------------------
  |  Branch (104:8): [True: 1.58M, False: 297k]
  |  Branch (104:19): [True: 167k, False: 1.41M]
  ------------------
  105|   167k|        c=(char)(c+0x20);
  106|   167k|    }
  107|  1.88M|    return c;
  108|  1.88M|}
T_CString_toLowerCase_78:
  124|  29.1k|{
  125|  29.1k|    char* origPtr = str;
  126|       |
  127|  29.1k|    if (str) {
  ------------------
  |  Branch (127:9): [True: 29.1k, False: 0]
  ------------------
  128|  29.1k|        do
  129|   538k|            *str = uprv_tolower(*str);
  ------------------
  |  |   68|   538k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|   538k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|   538k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|   538k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|   538k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  130|   538k|        while (*(str++));
  ------------------
  |  Branch (130:16): [True: 509k, False: 29.1k]
  ------------------
  131|  29.1k|    }
  132|       |
  133|  29.1k|    return origPtr;
  134|  29.1k|}
T_CString_toUpperCase_78:
  138|  4.36k|{
  139|  4.36k|    char* origPtr = str;
  140|       |
  141|  4.36k|    if (str) {
  ------------------
  |  Branch (141:9): [True: 4.36k, False: 0]
  ------------------
  142|  4.36k|        do
  143|  17.7k|            *str = uprv_toupper(*str);
  ------------------
  |  | 1547|  17.7k|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|  17.7k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  17.7k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  17.7k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  144|  17.7k|        while (*(str++));
  ------------------
  |  Branch (144:16): [True: 13.3k, False: 4.36k]
  ------------------
  145|  4.36k|    }
  146|       |
  147|  4.36k|    return origPtr;
  148|  4.36k|}
uprv_stricmp_78:
  235|  5.00k|uprv_stricmp(const char *str1, const char *str2) {
  236|  5.00k|    if(str1==nullptr) {
  ------------------
  |  Branch (236:8): [True: 0, False: 5.00k]
  ------------------
  237|      0|        if(str2==nullptr) {
  ------------------
  |  Branch (237:12): [True: 0, False: 0]
  ------------------
  238|      0|            return 0;
  239|      0|        } else {
  240|      0|            return -1;
  241|      0|        }
  242|  5.00k|    } else if(str2==nullptr) {
  ------------------
  |  Branch (242:15): [True: 0, False: 5.00k]
  ------------------
  243|      0|        return 1;
  244|  5.00k|    } else {
  245|       |        /* compare non-nullptr strings lexically with lowercase */
  246|  5.00k|        int rc;
  247|  5.00k|        unsigned char c1, c2;
  248|       |
  249|  10.1k|        for(;;) {
  250|  10.1k|            c1=(unsigned char)*str1;
  251|  10.1k|            c2=(unsigned char)*str2;
  252|  10.1k|            if(c1==0) {
  ------------------
  |  Branch (252:16): [True: 1.01k, False: 9.16k]
  ------------------
  253|  1.01k|                if(c2==0) {
  ------------------
  |  Branch (253:20): [True: 991, False: 28]
  ------------------
  254|    991|                    return 0;
  255|    991|                } else {
  256|     28|                    return -1;
  257|     28|                }
  258|  9.16k|            } else if(c2==0) {
  ------------------
  |  Branch (258:23): [True: 18, False: 9.14k]
  ------------------
  259|     18|                return 1;
  260|  9.14k|            } else {
  261|       |                /* compare non-zero characters with lowercase */
  262|  9.14k|                rc=(int)(unsigned char)uprv_tolower(c1)-(int)(unsigned char)uprv_tolower(c2);
  ------------------
  |  |   68|  9.14k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  9.14k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  9.14k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  9.14k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  9.14k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                              rc=(int)(unsigned char)uprv_tolower(c1)-(int)(unsigned char)uprv_tolower(c2);
  ------------------
  |  |   68|  9.14k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  9.14k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  9.14k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  9.14k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  9.14k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  263|  9.14k|                if(rc!=0) {
  ------------------
  |  Branch (263:20): [True: 3.96k, False: 5.17k]
  ------------------
  264|  3.96k|                    return rc;
  265|  3.96k|                }
  266|  9.14k|            }
  267|  5.17k|            ++str1;
  268|  5.17k|            ++str2;
  269|  5.17k|        }
  270|  5.00k|    }
  271|  5.00k|}
uprv_strnicmp_78:
  274|   159k|uprv_strnicmp(const char *str1, const char *str2, uint32_t n) {
  275|   159k|    if(str1==nullptr) {
  ------------------
  |  Branch (275:8): [True: 0, False: 159k]
  ------------------
  276|      0|        if(str2==nullptr) {
  ------------------
  |  Branch (276:12): [True: 0, False: 0]
  ------------------
  277|      0|            return 0;
  278|      0|        } else {
  279|      0|            return -1;
  280|      0|        }
  281|   159k|    } else if(str2==nullptr) {
  ------------------
  |  Branch (281:15): [True: 0, False: 159k]
  ------------------
  282|      0|        return 1;
  283|   159k|    } else {
  284|       |        /* compare non-nullptr strings lexically with lowercase */
  285|   159k|        int rc;
  286|   159k|        unsigned char c1, c2;
  287|       |
  288|   232k|        for(; n--;) {
  ------------------
  |  Branch (288:15): [True: 223k, False: 9.80k]
  ------------------
  289|   223k|            c1=(unsigned char)*str1;
  290|   223k|            c2=(unsigned char)*str2;
  291|   223k|            if(c1==0) {
  ------------------
  |  Branch (291:16): [True: 0, False: 223k]
  ------------------
  292|      0|                if(c2==0) {
  ------------------
  |  Branch (292:20): [True: 0, False: 0]
  ------------------
  293|      0|                    return 0;
  294|      0|                } else {
  295|      0|                    return -1;
  296|      0|                }
  297|   223k|            } else if(c2==0) {
  ------------------
  |  Branch (297:23): [True: 0, False: 223k]
  ------------------
  298|      0|                return 1;
  299|   223k|            } else {
  300|       |                /* compare non-zero characters with lowercase */
  301|   223k|                rc=(int)(unsigned char)uprv_tolower(c1)-(int)(unsigned char)uprv_tolower(c2);
  ------------------
  |  |   68|   223k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|   223k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|   223k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|   223k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|   223k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                              rc=(int)(unsigned char)uprv_tolower(c1)-(int)(unsigned char)uprv_tolower(c2);
  ------------------
  |  |   68|   223k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|   223k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|   223k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|   223k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|   223k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  302|   223k|                if(rc!=0) {
  ------------------
  |  Branch (302:20): [True: 150k, False: 73.0k]
  ------------------
  303|   150k|                    return rc;
  304|   150k|                }
  305|   223k|            }
  306|  73.0k|            ++str1;
  307|  73.0k|            ++str2;
  308|  73.0k|        }
  309|   159k|    }
  310|       |
  311|  9.80k|    return 0;
  312|   159k|}
uprv_strdup_78:
  315|  19.5k|uprv_strdup(const char *src) {
  316|  19.5k|    size_t len = uprv_strlen(src) + 1;
  ------------------
  |  |   37|  19.5k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  19.5k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  317|  19.5k|    char *dup = (char *) uprv_malloc(len);
  ------------------
  |  | 1524|  19.5k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  19.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  19.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  19.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  318|       |
  319|  19.5k|    if (dup) {
  ------------------
  |  Branch (319:9): [True: 19.5k, False: 0]
  ------------------
  320|  19.5k|        uprv_memcpy(dup, src, len);
  ------------------
  |  |   42|  19.5k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  19.5k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  19.5k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  19.5k|    _Pragma("clang diagnostic push") \
  |  |   45|  19.5k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  19.5k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  19.5k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  19.5k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  19.5k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  19.5k|    _Pragma("clang diagnostic pop") \
  |  |   49|  19.5k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  19.5k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  19.5k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  19.5k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  321|  19.5k|    }
  322|       |
  323|  19.5k|    return dup;
  324|  19.5k|}

_ZN6icu_789ErrorCodeD2Ev:
   24|    886|ErrorCode::~ErrorCode() {}

_ZN6icu_7821locale_available_initEv:
   58|      1|void U_CALLCONV locale_available_init() {
   59|       |    // This function is a friend of class Locale.
   60|       |    // This function is only invoked via umtx_initOnce().
   61|       |    
   62|       |    // for now, there is a hardcoded list, so just walk through that list and set it up.
   63|       |    //  Note: this function is a friend of class Locale.
   64|      1|    availableLocaleListCount = uloc_countAvailable();
  ------------------
  |  | 1110|      1|#define uloc_countAvailable U_ICU_ENTRY_POINT_RENAME(uloc_countAvailable)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   65|      1|    if(availableLocaleListCount) {
  ------------------
  |  Branch (65:8): [True: 1, False: 0]
  ------------------
   66|      1|       availableLocaleList = new Locale[availableLocaleListCount];
   67|      1|    }
   68|      1|    if (availableLocaleList == nullptr) {
  ------------------
  |  Branch (68:9): [True: 0, False: 1]
  ------------------
   69|      0|        availableLocaleListCount= 0;
   70|      0|    }
   71|    886|    for (int32_t locCount=availableLocaleListCount-1; locCount>=0; --locCount) {
  ------------------
  |  Branch (71:55): [True: 885, False: 1]
  ------------------
   72|    885|        availableLocaleList[locCount].setFromPOSIXID(uloc_getAvailable(locCount));
  ------------------
  |  | 1112|    885|#define uloc_getAvailable U_ICU_ENTRY_POINT_RENAME(uloc_getAvailable)
  |  |  ------------------
  |  |  |  |  123|    885|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    885|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    885|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   73|    885|    }
   74|      1|    ucln_common_registerCleanup(UCLN_COMMON_LOCALE_AVAILABLE, locale_available_cleanup);
  ------------------
  |  |  617|      1|#define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   75|      1|}
_ZN6icu_786Locale19getAvailableLocalesERi:
   79|  7.96k|{
   80|  7.96k|    umtx_initOnce(gInitOnceLocale, &locale_available_init);
   81|  7.96k|    count = availableLocaleListCount;
   82|  7.96k|    return availableLocaleList;
   83|  7.96k|}
uloc_getAvailable_78:
  223|    885|uloc_getAvailable(int32_t offset) {
  224|    885|    icu::ErrorCode status;
  225|    885|    _load_installedLocales(status);
  226|    885|    if (status.isFailure()) {
  ------------------
  |  Branch (226:9): [True: 0, False: 885]
  ------------------
  227|      0|        return nullptr;
  228|      0|    }
  229|    885|    if (offset > gAvailableLocaleCounts[0]) {
  ------------------
  |  Branch (229:9): [True: 0, False: 885]
  ------------------
  230|       |        // *status = U_ILLEGAL_ARGUMENT_ERROR;
  231|      0|        return nullptr;
  232|      0|    }
  233|    885|    return gAvailableLocaleNames[0][offset];
  234|    885|}
uloc_countAvailable_78:
  237|      1|uloc_countAvailable() {
  238|      1|    icu::ErrorCode status;
  239|      1|    _load_installedLocales(status);
  240|      1|    if (status.isFailure()) {
  ------------------
  |  Branch (240:9): [True: 0, False: 1]
  ------------------
  241|      0|        return 0;
  242|      0|    }
  243|      1|    return gAvailableLocaleCounts[0];
  244|      1|}
locavailable.cpp:_ZN12_GLOBAL__N_122_load_installedLocalesER10UErrorCode:
  216|    886|void _load_installedLocales(UErrorCode& status) {
  217|    886|    umtx_initOnce(ginstalledLocalesInitOnce, &loadInstalledLocales, status);
  218|    886|}
locavailable.cpp:_ZN12_GLOBAL__N_120loadInstalledLocalesER10UErrorCode:
  208|      1|void U_CALLCONV loadInstalledLocales(UErrorCode& status) {
  209|      1|    ucln_common_registerCleanup(UCLN_COMMON_ULOC, uloc_cleanup);
  ------------------
  |  |  617|      1|#define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  210|       |
  211|      1|    icu::LocalUResourceBundlePointer rb(ures_openDirect(nullptr, "res_index", &status));
  ------------------
  |  | 1693|      1|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  212|      1|    AvailableLocalesSink sink;
  213|      1|    ures_getAllItemsWithFallback(rb.getAlias(), "", sink, status);
  ------------------
  |  | 1658|      1|#define ures_getAllItemsWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getAllItemsWithFallback)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  214|      1|}
locavailable.cpp:_ZN12_GLOBAL__N_120AvailableLocalesSink3putEPKcRN6icu_7813ResourceValueEaR10UErrorCode:
  103|      1|    void put(const char *key, ResourceValue &value, UBool /*noFallback*/, UErrorCode &status) override {
  104|      1|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (104:13): [True: 0, False: 1]
  ------------------
  105|      1|        ResourceTable resIndexTable = value.getTable(status);
  106|      1|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (106:13): [True: 0, False: 1]
  ------------------
  107|      4|        for (int32_t i = 0; resIndexTable.getKeyAndValue(i, key, value); ++i) {
  ------------------
  |  Branch (107:29): [True: 3, False: 1]
  ------------------
  108|      3|            ULocAvailableType type;
  109|      3|            if (uprv_strcmp(key, "InstalledLocales") == 0) {
  ------------------
  |  |   38|      3|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      3|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (109:17): [True: 1, False: 2]
  ------------------
  110|      1|                type = ULOC_AVAILABLE_DEFAULT;
  111|      2|            } else if (uprv_strcmp(key, "AliasLocales") == 0) {
  ------------------
  |  |   38|      2|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      2|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (111:24): [True: 1, False: 1]
  ------------------
  112|      1|                type = ULOC_AVAILABLE_ONLY_LEGACY_ALIASES;
  113|      1|            } else {
  114|       |                // CLDRVersion, etc.
  115|      1|                continue;
  116|      1|            }
  117|      2|            ResourceTable availableLocalesTable = value.getTable(status);
  118|      2|            if (U_FAILURE(status)) {
  ------------------
  |  Branch (118:17): [True: 0, False: 2]
  ------------------
  119|      0|                return;
  120|      0|            }
  121|      2|            gAvailableLocaleCounts[type] = availableLocalesTable.getSize();
  122|      2|            gAvailableLocaleNames[type] = static_cast<const char**>(
  123|      2|                uprv_malloc(gAvailableLocaleCounts[type] * sizeof(const char*)));
  ------------------
  |  | 1524|      2|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      2|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      2|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      2|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  124|      2|            if (gAvailableLocaleNames[type] == nullptr) {
  ------------------
  |  Branch (124:17): [True: 0, False: 2]
  ------------------
  125|      0|                status = U_MEMORY_ALLOCATION_ERROR;
  126|      0|                return;
  127|      0|            }
  128|    940|            for (int32_t j = 0; availableLocalesTable.getKeyAndValue(j, key, value); ++j) {
  ------------------
  |  Branch (128:33): [True: 938, False: 2]
  ------------------
  129|    938|                gAvailableLocaleNames[type][j] = key;
  130|    938|            }
  131|      2|        }
  132|      1|    }

_ZN6icu_7827locale_set_default_internalEPKcR10UErrorCode:
  168|      1|Locale *locale_set_default_internal(const char *id, UErrorCode& status) {
  169|       |    // Synchronize this entire function.
  170|      1|    Mutex lock(&gDefaultLocaleMutex);
  171|       |
  172|      1|    UBool canonicalize = false;
  173|       |
  174|       |    // If given a nullptr string for the locale id, grab the default
  175|       |    //   name from the system.
  176|       |    //   (Different from most other locale APIs, where a null name means use
  177|       |    //    the current ICU default locale.)
  178|      1|    if (id == nullptr) {
  ------------------
  |  Branch (178:9): [True: 1, False: 0]
  ------------------
  179|      1|        id = uprv_getDefaultLocaleID();   // This function not thread safe? TODO: verify.
  ------------------
  |  | 1505|      1|#define uprv_getDefaultLocaleID U_ICU_ENTRY_POINT_RENAME(uprv_getDefaultLocaleID)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  180|      1|        canonicalize = true; // always canonicalize host ID
  181|      1|    }
  182|       |
  183|      1|    CharString localeNameBuf =
  184|      1|        canonicalize ? ulocimp_canonicalize(id, status) : ulocimp_getName(id, status);
  ------------------
  |  | 1197|      1|#define ulocimp_canonicalize U_ICU_ENTRY_POINT_RENAME(ulocimp_canonicalize)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      canonicalize ? ulocimp_canonicalize(id, status) : ulocimp_getName(id, status);
  ------------------
  |  | 1204|      0|#define ulocimp_getName U_ICU_ENTRY_POINT_RENAME(ulocimp_getName)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (184:9): [True: 1, False: 0]
  ------------------
  185|       |
  186|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (186:9): [True: 0, False: 1]
  ------------------
  187|      0|        return gDefaultLocale;
  188|      0|    }
  189|       |
  190|      1|    if (gDefaultLocalesHashT == nullptr) {
  ------------------
  |  Branch (190:9): [True: 1, False: 0]
  ------------------
  191|      1|        gDefaultLocalesHashT = uhash_open(uhash_hashChars, uhash_compareChars, nullptr, &status);
  ------------------
  |  | 1030|      1|#define uhash_open U_ICU_ENTRY_POINT_RENAME(uhash_open)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      gDefaultLocalesHashT = uhash_open(uhash_hashChars, uhash_compareChars, nullptr, &status);
  ------------------
  |  | 1011|      1|#define uhash_hashChars U_ICU_ENTRY_POINT_RENAME(uhash_hashChars)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      gDefaultLocalesHashT = uhash_open(uhash_hashChars, uhash_compareChars, nullptr, &status);
  ------------------
  |  |  993|      1|#define uhash_compareChars U_ICU_ENTRY_POINT_RENAME(uhash_compareChars)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  192|      1|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (192:13): [True: 0, False: 1]
  ------------------
  193|      0|            return gDefaultLocale;
  194|      0|        }
  195|      1|        uhash_setValueDeleter(gDefaultLocalesHashT, deleteLocale);
  ------------------
  |  | 1044|      1|#define uhash_setValueDeleter U_ICU_ENTRY_POINT_RENAME(uhash_setValueDeleter)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  196|      1|        ucln_common_registerCleanup(UCLN_COMMON_LOCALE, locale_cleanup);
  ------------------
  |  |  617|      1|#define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  197|      1|    }
  198|       |
  199|      1|    Locale* newDefault = static_cast<Locale*>(uhash_get(gDefaultLocalesHashT, localeNameBuf.data()));
  ------------------
  |  | 1007|      1|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  200|      1|    if (newDefault == nullptr) {
  ------------------
  |  Branch (200:9): [True: 1, False: 0]
  ------------------
  201|      1|        newDefault = new Locale(Locale::eBOGUS);
  202|      1|        if (newDefault == nullptr) {
  ------------------
  |  Branch (202:13): [True: 0, False: 1]
  ------------------
  203|      0|            status = U_MEMORY_ALLOCATION_ERROR;
  204|      0|            return gDefaultLocale;
  205|      0|        }
  206|      1|        newDefault->init(localeNameBuf.data(), false);
  207|      1|        uhash_put(gDefaultLocalesHashT, const_cast<char*>(newDefault->getName()), newDefault, &status);
  ------------------
  |  | 1032|      1|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  208|      1|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (208:13): [True: 0, False: 1]
  ------------------
  209|      0|            return gDefaultLocale;
  210|      0|        }
  211|      1|    }
  212|      1|    gDefaultLocale = newDefault;
  213|      1|    return gDefaultLocale;
  214|      1|}
locale_get_default_78:
  230|  6.74k|{
  231|  6.74k|    U_NAMESPACE_USE
  ------------------
  |  |  112|  6.74k|#   define U_NAMESPACE_USE using namespace U_ICU_NAMESPACE;
  ------------------
  232|  6.74k|    return Locale::getDefault().getName();
  233|  6.74k|}
_ZN6icu_786LocaleD2Ev:
  247|  90.7k|{
  248|  90.7k|    if ((baseName != fullName) && (baseName != fullNameBuffer)) {
  ------------------
  |  Branch (248:9): [True: 7.90k, False: 82.8k]
  |  Branch (248:35): [True: 7.90k, False: 0]
  ------------------
  249|  7.90k|        uprv_free(baseName);
  ------------------
  |  | 1503|  7.90k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  7.90k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.90k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.90k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  250|  7.90k|    }
  251|  90.7k|    baseName = nullptr;
  252|       |    /*if fullName is on the heap, we free it*/
  253|  90.7k|    if (fullName != fullNameBuffer)
  ------------------
  |  Branch (253:9): [True: 926, False: 89.8k]
  ------------------
  254|    926|    {
  255|    926|        uprv_free(fullName);
  ------------------
  |  | 1503|    926|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    926|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    926|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    926|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  256|    926|        fullName = nullptr;
  257|    926|    }
  258|  90.7k|}
_ZN6icu_786LocaleC2Ev:
  261|    904|    : UObject(), fullName(fullNameBuffer), baseName(nullptr)
  262|    904|{
  263|    904|    init(nullptr, false);
  264|    904|}
_ZN6icu_786LocaleC2ENS0_11ELocaleTypeE:
  272|      1|    : UObject(), fullName(fullNameBuffer), baseName(nullptr)
  273|      1|{
  274|      1|    setToBogus();
  275|      1|}
_ZN6icu_786LocaleC2EPKcS2_S2_S2_:
  282|  17.4k|    : UObject(), fullName(fullNameBuffer), baseName(nullptr)
  283|  17.4k|{
  284|  17.4k|    if( (newLanguage==nullptr) && (newCountry == nullptr) && (newVariant == nullptr) )
  ------------------
  |  Branch (284:9): [True: 0, False: 17.4k]
  |  Branch (284:35): [True: 0, False: 0]
  |  Branch (284:62): [True: 0, False: 0]
  ------------------
  285|      0|    {
  286|      0|        init(nullptr, false); /* shortcut */
  287|      0|    }
  288|  17.4k|    else
  289|  17.4k|    {
  290|  17.4k|        UErrorCode status = U_ZERO_ERROR;
  291|  17.4k|        int32_t lsize = 0;
  292|  17.4k|        int32_t csize = 0;
  293|  17.4k|        int32_t vsize = 0;
  294|  17.4k|        int32_t ksize = 0;
  295|       |
  296|       |        // Check the sizes of the input strings.
  297|       |
  298|       |        // Language
  299|  17.4k|        if ( newLanguage != nullptr )
  ------------------
  |  Branch (299:14): [True: 17.4k, False: 0]
  ------------------
  300|  17.4k|        {
  301|  17.4k|            lsize = static_cast<int32_t>(uprv_strlen(newLanguage));
  ------------------
  |  |   37|  17.4k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  17.4k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  302|  17.4k|            if ( lsize < 0 || lsize > ULOC_STRING_LIMIT ) { // int32 wrap
  ------------------
  |  |   76|  17.4k|#define ULOC_STRING_LIMIT 357913941
  ------------------
  |  Branch (302:18): [True: 0, False: 17.4k]
  |  Branch (302:31): [True: 0, False: 17.4k]
  ------------------
  303|      0|                setToBogus();
  304|      0|                return;
  305|      0|            }
  306|  17.4k|        }
  307|       |
  308|  17.4k|        CharString togo(newLanguage, lsize, status); // start with newLanguage
  309|       |
  310|       |        // _Country
  311|  17.4k|        if ( newCountry != nullptr )
  ------------------
  |  Branch (311:14): [True: 11, False: 17.4k]
  ------------------
  312|     11|        {
  313|     11|            csize = static_cast<int32_t>(uprv_strlen(newCountry));
  ------------------
  |  |   37|     11|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|     11|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  314|     11|            if ( csize < 0 || csize > ULOC_STRING_LIMIT ) { // int32 wrap
  ------------------
  |  |   76|     11|#define ULOC_STRING_LIMIT 357913941
  ------------------
  |  Branch (314:18): [True: 0, False: 11]
  |  Branch (314:31): [True: 0, False: 11]
  ------------------
  315|      0|                setToBogus();
  316|      0|                return;
  317|      0|            }
  318|     11|        }
  319|       |
  320|       |        // _Variant
  321|  17.4k|        if ( newVariant != nullptr )
  ------------------
  |  Branch (321:14): [True: 0, False: 17.4k]
  ------------------
  322|      0|        {
  323|       |            // remove leading _'s
  324|      0|            while(newVariant[0] == SEP_CHAR)
  ------------------
  |  |  243|      0|#define SEP_CHAR '_'
  ------------------
  |  Branch (324:19): [True: 0, False: 0]
  ------------------
  325|      0|            {
  326|      0|                newVariant++;
  327|      0|            }
  328|       |
  329|       |            // remove trailing _'s
  330|      0|            vsize = static_cast<int32_t>(uprv_strlen(newVariant));
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  331|      0|            if ( vsize < 0 || vsize > ULOC_STRING_LIMIT ) { // int32 wrap
  ------------------
  |  |   76|      0|#define ULOC_STRING_LIMIT 357913941
  ------------------
  |  Branch (331:18): [True: 0, False: 0]
  |  Branch (331:31): [True: 0, False: 0]
  ------------------
  332|      0|                setToBogus();
  333|      0|                return;
  334|      0|            }
  335|      0|            while( (vsize>1) && (newVariant[vsize-1] == SEP_CHAR) )
  ------------------
  |  |  243|      0|#define SEP_CHAR '_'
  ------------------
  |  Branch (335:20): [True: 0, False: 0]
  |  Branch (335:33): [True: 0, False: 0]
  ------------------
  336|      0|            {
  337|      0|                vsize--;
  338|      0|            }
  339|      0|        }
  340|       |
  341|  17.4k|        if ( newKeywords != nullptr)
  ------------------
  |  Branch (341:14): [True: 0, False: 17.4k]
  ------------------
  342|      0|        {
  343|      0|            ksize = static_cast<int32_t>(uprv_strlen(newKeywords));
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  344|      0|            if ( ksize < 0 || ksize > ULOC_STRING_LIMIT ) {
  ------------------
  |  |   76|      0|#define ULOC_STRING_LIMIT 357913941
  ------------------
  |  Branch (344:18): [True: 0, False: 0]
  |  Branch (344:31): [True: 0, False: 0]
  ------------------
  345|      0|              setToBogus();
  346|      0|              return;
  347|      0|            }
  348|      0|        }
  349|       |
  350|       |        // We've checked the input sizes, now build up the full locale string..
  351|       |
  352|       |        // newLanguage is already copied
  353|       |
  354|  17.4k|        if ( ( vsize != 0 ) || (csize != 0) )  // at least:  __v
  ------------------
  |  Branch (354:14): [True: 0, False: 17.4k]
  |  Branch (354:32): [True: 11, False: 17.4k]
  ------------------
  355|     11|        {                                      //            ^
  356|     11|            togo.append(SEP_CHAR, status);
  ------------------
  |  |  243|     11|#define SEP_CHAR '_'
  ------------------
  357|     11|        }
  358|       |
  359|  17.4k|        if ( csize != 0 )
  ------------------
  |  Branch (359:14): [True: 11, False: 17.4k]
  ------------------
  360|     11|        {
  361|     11|            togo.append(newCountry, status);
  362|     11|        }
  363|       |
  364|  17.4k|        if ( vsize != 0)
  ------------------
  |  Branch (364:14): [True: 0, False: 17.4k]
  ------------------
  365|      0|        {
  366|      0|            togo.append(SEP_CHAR, status)
  ------------------
  |  |  243|      0|#define SEP_CHAR '_'
  ------------------
  367|      0|                .append(newVariant, vsize, status);
  368|      0|        }
  369|       |
  370|  17.4k|        if ( ksize != 0)
  ------------------
  |  Branch (370:14): [True: 0, False: 17.4k]
  ------------------
  371|      0|        {
  372|      0|            if (uprv_strchr(newKeywords, '=')) {
  ------------------
  |  |   40|      0|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |  |  Branch (40:27): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  373|      0|                togo.append('@', status); /* keyword parsing */
  374|      0|            }
  375|      0|            else {
  376|      0|                togo.append('_', status); /* Variant parsing with a script */
  377|      0|                if ( vsize == 0) {
  ------------------
  |  Branch (377:22): [True: 0, False: 0]
  ------------------
  378|      0|                    togo.append('_', status); /* No country found */
  379|      0|                }
  380|      0|            }
  381|      0|            togo.append(newKeywords, status);
  382|      0|        }
  383|       |
  384|  17.4k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (384:13): [True: 0, False: 17.4k]
  ------------------
  385|       |            // Something went wrong with appending, etc.
  386|      0|            setToBogus();
  387|      0|            return;
  388|      0|        }
  389|       |        // Parse it, because for example 'language' might really be a complete
  390|       |        // string.
  391|  17.4k|        init(togo.data(), false);
  392|  17.4k|    }
  393|  17.4k|}
_ZN6icu_786LocaleC2ERKS0_:
  396|  74.5k|    : UObject(other), fullName(fullNameBuffer), baseName(nullptr)
  397|  74.5k|{
  398|  74.5k|    *this = other;
  399|  74.5k|}
_ZN6icu_786LocaleaSERKS0_:
  406|  81.5k|Locale& Locale::operator=(const Locale& other) {
  407|  81.5k|    if (this == &other) {
  ------------------
  |  Branch (407:9): [True: 0, False: 81.5k]
  ------------------
  408|      0|        return *this;
  409|      0|    }
  410|       |
  411|  81.5k|    setToBogus();
  412|       |
  413|  81.5k|    if (other.fullName == other.fullNameBuffer) {
  ------------------
  |  Branch (413:9): [True: 80.4k, False: 1.06k]
  ------------------
  414|  80.4k|        uprv_strcpy(fullNameBuffer, other.fullNameBuffer);
  ------------------
  |  |   36|  80.4k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  80.4k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  415|  80.4k|    } else if (other.fullName == nullptr) {
  ------------------
  |  Branch (415:16): [True: 0, False: 1.06k]
  ------------------
  416|      0|        fullName = nullptr;
  417|  1.06k|    } else {
  418|  1.06k|        fullName = uprv_strdup(other.fullName);
  ------------------
  |  | 1541|  1.06k|#define uprv_strdup U_ICU_ENTRY_POINT_RENAME(uprv_strdup)
  |  |  ------------------
  |  |  |  |  123|  1.06k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.06k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.06k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  419|  1.06k|        if (fullName == nullptr) return *this;
  ------------------
  |  Branch (419:13): [True: 0, False: 1.06k]
  ------------------
  420|  1.06k|    }
  421|       |
  422|  81.5k|    if (other.baseName == other.fullName) {
  ------------------
  |  Branch (422:9): [True: 75.8k, False: 5.64k]
  ------------------
  423|  75.8k|        baseName = fullName;
  424|  75.8k|    } else if (other.baseName != nullptr) {
  ------------------
  |  Branch (424:16): [True: 5.64k, False: 1]
  ------------------
  425|  5.64k|        baseName = uprv_strdup(other.baseName);
  ------------------
  |  | 1541|  5.64k|#define uprv_strdup U_ICU_ENTRY_POINT_RENAME(uprv_strdup)
  |  |  ------------------
  |  |  |  |  123|  5.64k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.64k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.64k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  426|  5.64k|        if (baseName == nullptr) return *this;
  ------------------
  |  Branch (426:13): [True: 0, False: 5.64k]
  ------------------
  427|  5.64k|    }
  428|       |
  429|  81.5k|    uprv_strcpy(language, other.language);
  ------------------
  |  |   36|  81.5k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  81.5k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  430|  81.5k|    uprv_strcpy(script, other.script);
  ------------------
  |  |   36|  81.5k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  81.5k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  431|  81.5k|    uprv_strcpy(country, other.country);
  ------------------
  |  |   36|  81.5k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  81.5k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  432|       |
  433|  81.5k|    variantBegin = other.variantBegin;
  434|  81.5k|    fIsBogus = other.fIsBogus;
  435|       |
  436|  81.5k|    return *this;
  437|  81.5k|}
_ZN6icu_786LocaleaSEOS0_:
  439|  8.36k|Locale& Locale::operator=(Locale&& other) noexcept {
  440|  8.36k|    if ((baseName != fullName) && (baseName != fullNameBuffer)) uprv_free(baseName);
  ------------------
  |  | 1503|  2.48k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  2.48k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.48k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.48k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (440:9): [True: 2.48k, False: 5.88k]
  |  Branch (440:35): [True: 2.48k, False: 0]
  ------------------
  441|  8.36k|    if (fullName != fullNameBuffer) uprv_free(fullName);
  ------------------
  |  | 1503|    421|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    421|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    421|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    421|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (441:9): [True: 421, False: 7.94k]
  ------------------
  442|       |
  443|  8.36k|    if (other.fullName == other.fullNameBuffer || other.baseName == other.fullNameBuffer) {
  ------------------
  |  Branch (443:9): [True: 8.27k, False: 90]
  |  Branch (443:51): [True: 0, False: 90]
  ------------------
  444|  8.27k|        uprv_strcpy(fullNameBuffer, other.fullNameBuffer);
  ------------------
  |  |   36|  8.27k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  8.27k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  445|  8.27k|    }
  446|  8.36k|    if (other.fullName == other.fullNameBuffer) {
  ------------------
  |  Branch (446:9): [True: 8.27k, False: 90]
  ------------------
  447|  8.27k|        fullName = fullNameBuffer;
  448|  8.27k|    } else {
  449|     90|        fullName = other.fullName;
  450|     90|    }
  451|       |
  452|  8.36k|    if (other.baseName == other.fullNameBuffer) {
  ------------------
  |  Branch (452:9): [True: 8.15k, False: 210]
  ------------------
  453|  8.15k|        baseName = fullNameBuffer;
  454|  8.15k|    } else if (other.baseName == other.fullName) {
  ------------------
  |  Branch (454:16): [True: 16, False: 194]
  ------------------
  455|     16|        baseName = fullName;
  456|    194|    } else {
  457|    194|        baseName = other.baseName;
  458|    194|    }
  459|       |
  460|  8.36k|    uprv_strcpy(language, other.language);
  ------------------
  |  |   36|  8.36k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  8.36k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  461|  8.36k|    uprv_strcpy(script, other.script);
  ------------------
  |  |   36|  8.36k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  8.36k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  462|  8.36k|    uprv_strcpy(country, other.country);
  ------------------
  |  |   36|  8.36k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  8.36k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  463|       |
  464|  8.36k|    variantBegin = other.variantBegin;
  465|  8.36k|    fIsBogus = other.fIsBogus;
  466|       |
  467|  8.36k|    other.baseName = other.fullName = other.fullNameBuffer;
  468|       |
  469|  8.36k|    return *this;
  470|  8.36k|}
_ZNK6icu_786LocaleeqERKS0_:
  479|  27.3k|{
  480|  27.3k|    return (uprv_strcmp(other.fullName, fullName) == 0);
  ------------------
  |  |   38|  27.3k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  27.3k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  481|  27.3k|}
_ZN6icu_786Locale4initEPKca:
 1832|  19.2k|{
 1833|  19.2k|    return localeID == nullptr ? *this = getDefault() : init(StringPiece{localeID}, canonicalize);
  ------------------
  |  Branch (1833:12): [True: 904, False: 18.3k]
  ------------------
 1834|  19.2k|}
_ZN6icu_786Locale4initENS_11StringPieceEa:
 1838|  18.3k|{
 1839|  18.3k|    fIsBogus = false;
 1840|       |    /* Free our current storage */
 1841|  18.3k|    if ((baseName != fullName) && (baseName != fullNameBuffer)) {
  ------------------
  |  Branch (1841:9): [True: 17.4k, False: 885]
  |  Branch (1841:35): [True: 17.4k, False: 0]
  ------------------
 1842|  17.4k|        uprv_free(baseName);
  ------------------
  |  | 1503|  17.4k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  17.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  17.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  17.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1843|  17.4k|    }
 1844|  18.3k|    baseName = nullptr;
 1845|  18.3k|    if(fullName != fullNameBuffer) {
  ------------------
  |  Branch (1845:8): [True: 0, False: 18.3k]
  ------------------
 1846|      0|        uprv_free(fullName);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1847|      0|        fullName = fullNameBuffer;
 1848|      0|    }
 1849|       |
 1850|       |    // not a loop:
 1851|       |    // just an easy way to have a common error-exit
 1852|       |    // without goto and without another function
 1853|  18.3k|    do {
 1854|  18.3k|        char *separator;
 1855|  18.3k|        char *field[5] = {nullptr};
 1856|  18.3k|        int32_t fieldLen[5] = {0};
 1857|  18.3k|        int32_t fieldIdx;
 1858|  18.3k|        int32_t variantField;
 1859|  18.3k|        int32_t length;
 1860|  18.3k|        UErrorCode err;
 1861|       |
 1862|       |        /* preset all fields to empty */
 1863|  18.3k|        language[0] = script[0] = country[0] = 0;
 1864|       |
 1865|  18.3k|        const auto parse = [canonicalize](std::string_view localeID,
 1866|  18.3k|                                          char* name,
 1867|  18.3k|                                          int32_t nameCapacity,
 1868|  18.3k|                                          UErrorCode& status) {
 1869|  18.3k|            return ByteSinkUtil::viaByteSinkToTerminatedChars(
 1870|  18.3k|                name, nameCapacity,
 1871|  18.3k|                [&](ByteSink& sink, UErrorCode& status) {
 1872|  18.3k|                    if (canonicalize) {
 1873|  18.3k|                        ulocimp_canonicalize(localeID, sink, status);
 1874|  18.3k|                    } else {
 1875|  18.3k|                        ulocimp_getName(localeID, sink, status);
 1876|  18.3k|                    }
 1877|  18.3k|                },
 1878|  18.3k|                status);
 1879|  18.3k|        };
 1880|       |
 1881|       |        // "canonicalize" the locale ID to ICU/Java format
 1882|  18.3k|        err = U_ZERO_ERROR;
 1883|  18.3k|        length = parse(localeID, fullName, sizeof fullNameBuffer, err);
 1884|       |
 1885|  18.3k|        if (err == U_BUFFER_OVERFLOW_ERROR || length >= static_cast<int32_t>(sizeof(fullNameBuffer))) {
  ------------------
  |  Branch (1885:13): [True: 346, False: 17.9k]
  |  Branch (1885:47): [True: 246, False: 17.7k]
  ------------------
 1886|    592|            U_ASSERT(baseName == nullptr);
  ------------------
  |  |   35|    592|#   define U_ASSERT(exp) (void)0
  ------------------
 1887|       |            /*Go to heap for the fullName if necessary*/
 1888|    592|            char* newFullName = static_cast<char*>(uprv_malloc(sizeof(char) * (length + 1)));
  ------------------
  |  | 1524|    592|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    592|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    592|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    592|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1889|    592|            if (newFullName == nullptr) {
  ------------------
  |  Branch (1889:17): [True: 0, False: 592]
  ------------------
 1890|      0|                break; // error: out of memory
 1891|      0|            }
 1892|    592|            fullName = newFullName;
 1893|    592|            err = U_ZERO_ERROR;
 1894|    592|            length = parse(localeID, fullName, length + 1, err);
 1895|    592|        }
 1896|  18.3k|        if(U_FAILURE(err) || err == U_STRING_NOT_TERMINATED_WARNING) {
  ------------------
  |  Branch (1896:12): [True: 1.55k, False: 16.7k]
  |  Branch (1896:30): [True: 0, False: 16.7k]
  ------------------
 1897|       |            /* should never occur */
 1898|  1.55k|            break;
 1899|  1.55k|        }
 1900|       |
 1901|  16.7k|        variantBegin = length;
 1902|       |
 1903|       |        /* after uloc_getName/canonicalize() we know that only '_' are separators */
 1904|       |        /* But _ could also appeared in timezone such as "en@timezone=America/Los_Angeles" */
 1905|  16.7k|        separator = field[0] = fullName;
 1906|  16.7k|        fieldIdx = 1;
 1907|  16.7k|        char* at = uprv_strchr(fullName, '@');
  ------------------
  |  |   40|  16.7k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  16.7k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1908|  22.1k|        while ((separator = uprv_strchr(field[fieldIdx-1], SEP_CHAR)) != nullptr &&
  ------------------
  |  |   40|  22.1k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  22.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1908:16): [True: 6.23k, False: 15.8k]
  ------------------
 1909|  22.1k|               fieldIdx < UPRV_LENGTHOF(field)-1 &&
  ------------------
  |  |   99|  6.23k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1909:16): [True: 5.49k, False: 744]
  ------------------
 1910|  22.1k|               (at == nullptr || separator < at)) {
  ------------------
  |  Branch (1910:17): [True: 4.03k, False: 1.45k]
  |  Branch (1910:34): [True: 1.32k, False: 132]
  ------------------
 1911|  5.36k|            field[fieldIdx] = separator + 1;
 1912|  5.36k|            fieldLen[fieldIdx - 1] = static_cast<int32_t>(separator - field[fieldIdx - 1]);
 1913|  5.36k|            fieldIdx++;
 1914|  5.36k|        }
 1915|       |        // variant may contain @foo or .foo POSIX cruft; remove it
 1916|  16.7k|        separator = uprv_strchr(field[fieldIdx-1], '@');
  ------------------
  |  |   40|  16.7k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  16.7k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1917|  16.7k|        char* sep2 = uprv_strchr(field[fieldIdx-1], '.');
  ------------------
  |  |   40|  16.7k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  16.7k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1918|  16.7k|        if (separator!=nullptr || sep2!=nullptr) {
  ------------------
  |  Branch (1918:13): [True: 2.61k, False: 14.1k]
  |  Branch (1918:35): [True: 79, False: 14.0k]
  ------------------
 1919|  2.69k|            if (separator==nullptr || (sep2!=nullptr && separator > sep2)) {
  ------------------
  |  Branch (1919:17): [True: 79, False: 2.61k]
  |  Branch (1919:40): [True: 54, False: 2.55k]
  |  Branch (1919:57): [True: 21, False: 33]
  ------------------
 1920|    100|                separator = sep2;
 1921|    100|            }
 1922|  2.69k|            fieldLen[fieldIdx - 1] = static_cast<int32_t>(separator - field[fieldIdx - 1]);
 1923|  14.0k|        } else {
 1924|  14.0k|            fieldLen[fieldIdx - 1] = length - static_cast<int32_t>(field[fieldIdx - 1] - fullName);
 1925|  14.0k|        }
 1926|       |
 1927|  16.7k|        if (fieldLen[0] >= static_cast<int32_t>(sizeof(language)))
  ------------------
  |  Branch (1927:13): [True: 3, False: 16.7k]
  ------------------
 1928|      3|        {
 1929|      3|            break; // error: the language field is too long
 1930|      3|        }
 1931|       |
 1932|  16.7k|        variantField = 1; /* Usually the 2nd one, except when a script or country is also used. */
 1933|  16.7k|        if (fieldLen[0] > 0) {
  ------------------
  |  Branch (1933:13): [True: 10.0k, False: 6.71k]
  ------------------
 1934|       |            /* We have a language */
 1935|  10.0k|            uprv_memcpy(language, fullName, fieldLen[0]);
  ------------------
  |  |   42|  10.0k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  10.0k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  10.0k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  10.0k|    _Pragma("clang diagnostic push") \
  |  |   45|  10.0k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  10.0k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  10.0k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  10.0k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  10.0k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  10.0k|    _Pragma("clang diagnostic pop") \
  |  |   49|  10.0k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  10.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  10.0k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  10.0k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1936|  10.0k|            language[fieldLen[0]] = 0;
 1937|  10.0k|        }
 1938|  16.7k|        if (fieldLen[1] == 4 && uprv_isASCIILetter(field[1][0]) &&
  ------------------
  |  | 1514|    512|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|    512|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    512|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    512|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1938:13): [True: 512, False: 16.2k]
  |  Branch (1938:33): [True: 509, False: 3]
  ------------------
 1939|  16.7k|                uprv_isASCIILetter(field[1][1]) && uprv_isASCIILetter(field[1][2]) &&
  ------------------
  |  | 1514|    509|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|    509|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    509|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    509|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                              uprv_isASCIILetter(field[1][1]) && uprv_isASCIILetter(field[1][2]) &&
  ------------------
  |  | 1514|    506|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|    506|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    506|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    506|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1939:17): [True: 506, False: 3]
  |  Branch (1939:52): [True: 503, False: 3]
  ------------------
 1940|  16.7k|                uprv_isASCIILetter(field[1][3])) {
  ------------------
  |  | 1514|    503|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|    503|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    503|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    503|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1940:17): [True: 500, False: 3]
  ------------------
 1941|       |            /* We have at least a script */
 1942|    500|            uprv_memcpy(script, field[1], fieldLen[1]);
  ------------------
  |  |   42|    500|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    500|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    500|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    500|    _Pragma("clang diagnostic push") \
  |  |   45|    500|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    500|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    500|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    500|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    500|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    500|    _Pragma("clang diagnostic pop") \
  |  |   49|    500|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    500|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    500|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    500|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1943|    500|            script[fieldLen[1]] = 0;
 1944|    500|            variantField++;
 1945|    500|        }
 1946|       |
 1947|  16.7k|        if (fieldLen[variantField] == 2 || fieldLen[variantField] == 3) {
  ------------------
  |  Branch (1947:13): [True: 1.40k, False: 15.3k]
  |  Branch (1947:44): [True: 116, False: 15.2k]
  ------------------
 1948|       |            /* We have a country */
 1949|  1.52k|            uprv_memcpy(country, field[variantField], fieldLen[variantField]);
  ------------------
  |  |   42|  1.52k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  1.52k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  1.52k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  1.52k|    _Pragma("clang diagnostic push") \
  |  |   45|  1.52k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  1.52k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.52k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  1.52k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.52k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  1.52k|    _Pragma("clang diagnostic pop") \
  |  |   49|  1.52k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  1.52k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  1.52k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  1.52k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1950|  1.52k|            country[fieldLen[variantField]] = 0;
 1951|  1.52k|            variantField++;
 1952|  15.2k|        } else if (fieldLen[variantField] == 0) {
  ------------------
  |  Branch (1952:20): [True: 15.2k, False: 20]
  ------------------
 1953|  15.2k|            variantField++; /* script or country empty but variant in next field (i.e. en__POSIX) */
 1954|  15.2k|        }
 1955|       |
 1956|  16.7k|        if (fieldLen[variantField] > 0) {
  ------------------
  |  Branch (1956:13): [True: 1.28k, False: 15.4k]
  ------------------
 1957|       |            /* We have a variant */
 1958|  1.28k|            variantBegin = static_cast<int32_t>(field[variantField] - fullName);
 1959|  1.28k|        }
 1960|       |
 1961|  16.7k|        err = U_ZERO_ERROR;
 1962|  16.7k|        initBaseName(err);
 1963|  16.7k|        if (U_FAILURE(err)) {
  ------------------
  |  Branch (1963:13): [True: 0, False: 16.7k]
  ------------------
 1964|      0|            break;
 1965|      0|        }
 1966|       |
 1967|  16.7k|        if (canonicalize) {
  ------------------
  |  Branch (1967:13): [True: 885, False: 15.8k]
  ------------------
 1968|    885|            if (!isKnownCanonicalizedLocale(fullName, err)) {
  ------------------
  |  Branch (1968:17): [True: 717, False: 168]
  ------------------
 1969|    717|                CharString replaced;
 1970|       |                // Not sure it is already canonicalized
 1971|    717|                if (canonicalizeLocale(*this, replaced, err)) {
  ------------------
  |  Branch (1971:21): [True: 0, False: 717]
  ------------------
 1972|      0|                    U_ASSERT(U_SUCCESS(err));
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1973|       |                    // If need replacement, call init again.
 1974|      0|                    init(replaced.data(), false);
 1975|      0|                }
 1976|    717|                if (U_FAILURE(err)) {
  ------------------
  |  Branch (1976:21): [True: 0, False: 717]
  ------------------
 1977|      0|                    break;
 1978|      0|                }
 1979|    717|            }
 1980|    885|        }   // if (canonicalize) {
 1981|       |
 1982|       |        // successful end of init()
 1983|  16.7k|        return *this;
 1984|  16.7k|    } while(0); /*loop doesn't iterate*/
  ------------------
  |  Branch (1984:13): [Folded - Ignored]
  ------------------
 1985|       |
 1986|       |    // when an error occurs, then set this object to "bogus" (there is no UErrorCode here)
 1987|  1.55k|    setToBogus();
 1988|       |
 1989|  1.55k|    return *this;
 1990|  18.3k|}
_ZN6icu_786Locale12initBaseNameER10UErrorCode:
 1999|  18.2k|Locale::initBaseName(UErrorCode &status) {
 2000|  18.2k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2000:9): [True: 0, False: 18.2k]
  ------------------
 2001|      0|        return;
 2002|      0|    }
 2003|  18.2k|    U_ASSERT(baseName==nullptr || baseName==fullName);
  ------------------
  |  |   35|  18.2k|#   define U_ASSERT(exp) (void)0
  ------------------
 2004|  18.2k|    const char *atPtr = uprv_strchr(fullName, '@');
  ------------------
  |  |   40|  18.2k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  18.2k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2005|  18.2k|    const char *eqPtr = uprv_strchr(fullName, '=');
  ------------------
  |  |   40|  18.2k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  18.2k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2006|  18.2k|    if (atPtr && eqPtr && atPtr < eqPtr) {
  ------------------
  |  Branch (2006:9): [True: 4.15k, False: 14.1k]
  |  Branch (2006:18): [True: 3.98k, False: 163]
  |  Branch (2006:27): [True: 3.97k, False: 10]
  ------------------
 2007|       |        // Key words exist.
 2008|  3.97k|        int32_t baseNameLength = static_cast<int32_t>(atPtr - fullName);
 2009|  3.97k|        char* newBaseName = static_cast<char*>(uprv_malloc(baseNameLength + 1));
  ------------------
  |  | 1524|  3.97k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  3.97k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.97k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.97k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2010|  3.97k|        if (newBaseName == nullptr) {
  ------------------
  |  Branch (2010:13): [True: 0, False: 3.97k]
  ------------------
 2011|      0|            status = U_MEMORY_ALLOCATION_ERROR;
 2012|      0|            return;
 2013|      0|        }
 2014|  3.97k|        baseName = newBaseName;
 2015|  3.97k|        uprv_strncpy(baseName, fullName, baseNameLength);
  ------------------
  |  |   43|  3.97k|#define uprv_strncpy(dst, src, size) U_STANDARD_CPP_NAMESPACE strncpy(dst, src, size)
  |  |  ------------------
  |  |  |  |  393|  3.97k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2016|  3.97k|        baseName[baseNameLength] = 0;
 2017|       |
 2018|       |        // The original computation of variantBegin leaves it equal to the length
 2019|       |        // of fullName if there is no variant.  It should instead be
 2020|       |        // the length of the baseName.
 2021|  3.97k|        if (variantBegin > baseNameLength) {
  ------------------
  |  Branch (2021:13): [True: 2.09k, False: 1.88k]
  ------------------
 2022|  2.09k|            variantBegin = baseNameLength;
 2023|  2.09k|        }
 2024|  14.3k|    } else {
 2025|  14.3k|        baseName = fullName;
 2026|  14.3k|    }
 2027|  18.2k|}
_ZNK6icu_786Locale8hashCodeEv:
 2032|  33.0k|{
 2033|  33.0k|    return ustr_hashCharsN(fullName, static_cast<int32_t>(uprv_strlen(fullName)));
  ------------------
  |  | 1878|  33.0k|#define ustr_hashCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashCharsN)
  |  |  ------------------
  |  |  |  |  123|  33.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  33.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  33.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  return ustr_hashCharsN(fullName, static_cast<int32_t>(uprv_strlen(fullName)));
  ------------------
  |  |   37|  33.0k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  33.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2034|  33.0k|}
_ZN6icu_786Locale10setToBogusEv:
 2037|  83.0k|Locale::setToBogus() {
 2038|       |    /* Free our current storage */
 2039|  83.0k|    if((baseName != fullName) && (baseName != fullNameBuffer)) {
  ------------------
  |  Branch (2039:8): [True: 77.5k, False: 5.54k]
  |  Branch (2039:34): [True: 77.5k, False: 5]
  ------------------
 2040|  77.5k|        uprv_free(baseName);
  ------------------
  |  | 1503|  77.5k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  77.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  77.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  77.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2041|  77.5k|    }
 2042|  83.0k|    baseName = nullptr;
 2043|  83.0k|    if(fullName != fullNameBuffer) {
  ------------------
  |  Branch (2043:8): [True: 181, False: 82.8k]
  ------------------
 2044|    181|        uprv_free(fullName);
  ------------------
  |  | 1503|    181|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    181|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    181|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    181|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2045|    181|        fullName = fullNameBuffer;
 2046|    181|    }
 2047|  83.0k|    *fullNameBuffer = 0;
 2048|  83.0k|    *language = 0;
 2049|  83.0k|    *script = 0;
 2050|  83.0k|    *country = 0;
 2051|  83.0k|    fIsBogus = true;
 2052|  83.0k|    variantBegin = 0;
 2053|  83.0k|}
_ZN6icu_786Locale10getDefaultEv:
 2057|  7.65k|{
 2058|  7.65k|    {
 2059|  7.65k|        Mutex lock(&gDefaultLocaleMutex);
 2060|  7.65k|        if (gDefaultLocale != nullptr) {
  ------------------
  |  Branch (2060:13): [True: 7.65k, False: 1]
  ------------------
 2061|  7.65k|            return *gDefaultLocale;
 2062|  7.65k|        }
 2063|  7.65k|    }
 2064|      1|    UErrorCode status = U_ZERO_ERROR;
 2065|      1|    return *locale_set_default_internal(nullptr, status);
 2066|  7.65k|}
_ZN6icu_786Locale14setFromPOSIXIDEPKc:
 2267|    885|{
 2268|    885|    init(posixID, true);
 2269|    885|}
_ZN6icu_786Locale7getRootEv:
 2273|      1|{
 2274|      1|    return getLocale(eROOT);
 2275|      1|}
_ZN6icu_786Locale9getLocaleEi:
 2406|      1|{
 2407|      1|    Locale *localeCache = getLocaleCache();
 2408|      1|    U_ASSERT((locid < eMAX_LOCALES)&&(locid>=0));
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
 2409|      1|    if (localeCache == nullptr) {
  ------------------
  |  Branch (2409:9): [True: 0, False: 1]
  ------------------
 2410|       |        // Failure allocating the locale cache.
 2411|       |        //   The best we can do is return a nullptr reference.
 2412|      0|        locid = 0;
 2413|      0|    }
 2414|      1|    return localeCache[locid]; /*operating on nullptr*/
 2415|      1|}
_ZN6icu_786Locale14getLocaleCacheEv:
 2423|      1|{
 2424|      1|    UErrorCode status = U_ZERO_ERROR;
 2425|      1|    umtx_initOnce(gLocaleCacheInitOnce, locale_init, status);
 2426|      1|    return gLocaleCache;
 2427|      1|}
_ZNK6icu_786Locale15getKeywordValueEPKcPciR10UErrorCode:
 2606|  19.6k|{
 2607|  19.6k|    return uloc_getKeywordValue(fullName, keywordName, buffer, bufLen, &status);
  ------------------
  |  | 1130|  19.6k|#define uloc_getKeywordValue U_ICU_ENTRY_POINT_RENAME(uloc_getKeywordValue)
  |  |  ------------------
  |  |  |  |  123|  19.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  19.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  19.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2608|  19.6k|}
_ZN6icu_786Locale15setKeywordValueENS_11StringPieceES1_R10UErrorCode:
 2657|  2.00k|                        UErrorCode& status) {
 2658|  2.00k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (2658:9): [True: 0, False: 2.00k]
  ------------------
 2659|  2.00k|    if (keywordName.empty()) {
  ------------------
  |  Branch (2659:9): [True: 0, False: 2.00k]
  ------------------
 2660|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 2661|      0|        return;
 2662|      0|    }
 2663|  2.00k|    if (status == U_STRING_NOT_TERMINATED_WARNING) {
  ------------------
  |  Branch (2663:9): [True: 7, False: 2.00k]
  ------------------
 2664|      7|        status = U_ZERO_ERROR;
 2665|      7|    }
 2666|       |
 2667|  2.00k|    int32_t length = static_cast<int32_t>(uprv_strlen(fullName));
  ------------------
  |  |   37|  2.00k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  2.00k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2668|  2.00k|    int32_t capacity = fullName == fullNameBuffer ? ULOC_FULLNAME_CAPACITY : length + 1;
  ------------------
  |  |  264|  1.96k|#define ULOC_FULLNAME_CAPACITY 157
  ------------------
  |  Branch (2668:24): [True: 1.96k, False: 41]
  ------------------
 2669|       |
 2670|  2.00k|    const char* start = locale_getKeywordsStart(fullName);
  ------------------
  |  |  138|  2.00k|#define locale_getKeywordsStart U_ICU_ENTRY_POINT_RENAME(locale_getKeywordsStart)
  |  |  ------------------
  |  |  |  |  123|  2.00k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.00k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.00k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2671|  2.00k|    int32_t offset = start == nullptr ? length : start - fullName;
  ------------------
  |  Branch (2671:22): [True: 1.54k, False: 463]
  ------------------
 2672|       |
 2673|  2.06k|    for (;;) {
 2674|       |        // Remove -1 from the capacity so that this function can guarantee NUL termination.
 2675|  2.06k|        CheckedArrayByteSink sink(fullName + offset, capacity - offset - 1);
 2676|       |
 2677|  2.06k|        UErrorCode bufferStatus = U_ZERO_ERROR;
 2678|  2.06k|        int32_t reslen = ulocimp_setKeywordValue(
  ------------------
  |  | 1213|  2.06k|#define ulocimp_setKeywordValue U_ICU_ENTRY_POINT_RENAME(ulocimp_setKeywordValue)
  |  |  ------------------
  |  |  |  |  123|  2.06k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.06k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.06k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2679|  2.06k|            {fullName + offset, static_cast<std::string_view::size_type>(length - offset)},
 2680|  2.06k|            keywordName,
 2681|  2.06k|            keywordValue,
 2682|  2.06k|            sink,
 2683|  2.06k|            bufferStatus);
 2684|       |
 2685|  2.06k|        if (bufferStatus == U_BUFFER_OVERFLOW_ERROR) {
  ------------------
  |  Branch (2685:13): [True: 52, False: 2.00k]
  ------------------
 2686|     52|            capacity = reslen + offset + 1;
 2687|     52|            char* newFullName = static_cast<char*>(uprv_malloc(capacity));
  ------------------
  |  | 1524|     52|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|     52|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     52|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     52|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2688|     52|            if (newFullName == nullptr) {
  ------------------
  |  Branch (2688:17): [True: 0, False: 52]
  ------------------
 2689|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 2690|      0|                return;
 2691|      0|            }
 2692|     52|            uprv_memcpy(newFullName, fullName, length + 1);
  ------------------
  |  |   42|     52|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|     52|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|     52|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|     52|    _Pragma("clang diagnostic push") \
  |  |   45|     52|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|     52|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|     52|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|     52|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|     52|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|     52|    _Pragma("clang diagnostic pop") \
  |  |   49|     52|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|     52|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|     52|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|     52|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2693|     52|            if (fullName != fullNameBuffer) {
  ------------------
  |  Branch (2693:17): [True: 29, False: 23]
  ------------------
 2694|     29|                if (baseName == fullName) {
  ------------------
  |  Branch (2694:21): [True: 1, False: 28]
  ------------------
 2695|      1|                    baseName = newFullName; // baseName should not point to freed memory.
 2696|      1|                }
 2697|       |                // if fullName is already on the heap, need to free it.
 2698|     29|                uprv_free(fullName);
  ------------------
  |  | 1503|     29|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|     29|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     29|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     29|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2699|     29|            }
 2700|     52|            fullName = newFullName;
 2701|     52|            continue;
 2702|     52|        }
 2703|       |
 2704|  2.00k|        if (U_FAILURE(bufferStatus)) {
  ------------------
  |  Branch (2704:13): [True: 0, False: 2.00k]
  ------------------
 2705|      0|            status = bufferStatus;
 2706|      0|            return;
 2707|      0|        }
 2708|  2.00k|        u_terminateChars(fullName, capacity, reslen + offset, &status);
  ------------------
  |  |  406|  2.00k|#define u_terminateChars U_ICU_ENTRY_POINT_RENAME(u_terminateChars)
  |  |  ------------------
  |  |  |  |  123|  2.00k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.00k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.00k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2709|  2.00k|        break;
 2710|  2.00k|    }
 2711|       |
 2712|  2.00k|    if (baseName == fullName) {
  ------------------
  |  Branch (2712:9): [True: 1.54k, False: 468]
  ------------------
 2713|       |        // May have added the first keyword, meaning that the fullName is no longer also the baseName.
 2714|  1.54k|        initBaseName(status);
 2715|  1.54k|    }
 2716|  2.00k|}
_ZNK6icu_786Locale11getBaseNameEv:
 2748|  34.4k|Locale::getBaseName() const {
 2749|  34.4k|    return baseName;
 2750|  34.4k|}
locid.cpp:_ZN6icu_7812_GLOBAL__N_118canonicalizeLocaleERKNS_6LocaleERNS_10CharStringER10UErrorCode:
 1776|    717|{
 1777|    717|    if (U_FAILURE(status)) { return false; }
  ------------------
  |  Branch (1777:9): [True: 0, False: 717]
  ------------------
 1778|    717|    AliasReplacer replacer(status);
 1779|    717|    return replacer.replace(locale, out, status);
 1780|    717|}
locid.cpp:_ZN6icu_7812_GLOBAL__N_113AliasReplacerC2ER10UErrorCode:
 1062|    717|            language(nullptr), script(nullptr), region(nullptr),
 1063|    717|            extensions(nullptr),
 1064|       |            // store value in variants only once
 1065|    717|            variants(nullptr,
 1066|    717|                     ([](UElement e1, UElement e2) -> UBool {
 1067|    717|                       return 0==uprv_strcmp((const char*)e1.pointer,
 1068|    717|                                             (const char*)e2.pointer);}),
 1069|    717|                     status),
 1070|    717|            data(nullptr) {
 1071|    717|    }
locid.cpp:_ZN6icu_7812_GLOBAL__N_113AliasReplacer7replaceERKNS_6LocaleERNS_10CharStringER10UErrorCode:
 1627|    717|{
 1628|    717|    data = AliasData::singleton(status);
 1629|    717|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1629:9): [True: 0, False: 717]
  ------------------
 1630|      0|        return false;
 1631|      0|    }
 1632|    717|    U_ASSERT(data != nullptr);
  ------------------
  |  |   35|    717|#   define U_ASSERT(exp) (void)0
  ------------------
 1633|    717|    out.clear();
 1634|    717|    language = locale.getLanguage();
 1635|    717|    if (!notEmpty(language)) {
  ------------------
  |  Branch (1635:9): [True: 0, False: 717]
  ------------------
 1636|      0|        language = nullptr;
 1637|      0|    }
 1638|    717|    script = locale.getScript();
 1639|    717|    if (!notEmpty(script)) {
  ------------------
  |  Branch (1639:9): [True: 612, False: 105]
  ------------------
 1640|    612|        script = nullptr;
 1641|    612|    }
 1642|    717|    region = locale.getCountry();
 1643|    717|    if (!notEmpty(region)) {
  ------------------
  |  Branch (1643:9): [True: 189, False: 528]
  ------------------
 1644|    189|        region = nullptr;
 1645|    189|    }
 1646|    717|    const char* variantsStr = locale.getVariant();
 1647|    717|    CharString variantsBuff(variantsStr, -1, status);
 1648|    717|    if (!variantsBuff.isEmpty()) {
  ------------------
  |  Branch (1648:9): [True: 1, False: 716]
  ------------------
 1649|      1|        if (U_FAILURE(status)) { return false; }
  ------------------
  |  Branch (1649:13): [True: 0, False: 1]
  ------------------
 1650|      1|        char* start = variantsBuff.data();
 1651|      1|        T_CString_toLowerCase(start);
  ------------------
  |  |   69|      1|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1652|      1|        char* end;
 1653|      1|        while ((end = uprv_strchr(start, SEP_CHAR)) != nullptr &&
  ------------------
  |  |   40|      1|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1653:16): [True: 0, False: 1]
  ------------------
 1654|      1|               U_SUCCESS(status)) {
  ------------------
  |  Branch (1654:16): [True: 0, False: 0]
  ------------------
 1655|      0|            *end = NULL_CHAR;  // null terminate inside variantsBuff
  ------------------
  |  |  244|      0|#define NULL_CHAR '\0'
  ------------------
 1656|       |            // do not add "" or duplicate data to variants
 1657|      0|            if (*start && !variants.contains(start)) {
  ------------------
  |  Branch (1657:17): [True: 0, False: 0]
  |  Branch (1657:27): [True: 0, False: 0]
  ------------------
 1658|      0|                variants.addElement(start, status);
 1659|      0|            }
 1660|      0|            start = end + 1;
 1661|      0|        }
 1662|       |        // do not add "" or duplicate data to variants
 1663|      1|        if (*start && !variants.contains(start)) {
  ------------------
  |  Branch (1663:13): [True: 1, False: 0]
  |  Branch (1663:23): [True: 1, False: 0]
  ------------------
 1664|      1|            variants.addElement(start, status);
 1665|      1|        }
 1666|      1|    }
 1667|    717|    if (U_FAILURE(status)) { return false; }
  ------------------
  |  Branch (1667:9): [True: 0, False: 717]
  ------------------
 1668|       |
 1669|       |    // Sort the variants
 1670|    717|    variants.sort([](UElement e1, UElement e2) -> int32_t {
 1671|    717|        return uprv_strcmp((const char*)e1.pointer, (const char*)e2.pointer);
 1672|    717|    }, status);
 1673|       |
 1674|       |    // A changed count to assert when loop too many times.
 1675|    717|    int changed = 0;
 1676|       |    // A UVector to to hold CharString allocated by the replace* method
 1677|       |    // and freed when out of scope from his function.
 1678|    717|    UVector stringsToBeFreed([](void *obj) { delete static_cast<CharString*>(obj); },
 1679|    717|                             nullptr, 10, status);
 1680|    717|    while (U_SUCCESS(status)) {
  ------------------
  |  Branch (1680:12): [True: 717, False: 0]
  ------------------
 1681|       |        // Something wrong with the data cause looping here more than 10 times
 1682|       |        // already.
 1683|    717|        U_ASSERT(changed < 5);
  ------------------
  |  |   35|    717|#   define U_ASSERT(exp) (void)0
  ------------------
 1684|       |        // From observation of key in data/misc/metadata.txt
 1685|       |        // we know currently we only need to search in the following combination
 1686|       |        // of fields for type in languageAlias:
 1687|       |        // * lang_region_variant
 1688|       |        // * lang_region
 1689|       |        // * lang_variant
 1690|       |        // * lang
 1691|       |        // * und_variant
 1692|       |        // This assumption is ensured by the U_ASSERT in readLanguageAlias
 1693|       |        //
 1694|       |        //                      lang  REGION variant
 1695|    717|        if (    replaceLanguage(true, true,  true,  stringsToBeFreed, status) ||
  ------------------
  |  Branch (1695:17): [True: 0, False: 717]
  ------------------
 1696|    717|                replaceLanguage(true, true,  false, stringsToBeFreed, status) ||
  ------------------
  |  Branch (1696:17): [True: 0, False: 717]
  ------------------
 1697|    717|                replaceLanguage(true, false, true,  stringsToBeFreed, status) ||
  ------------------
  |  Branch (1697:17): [True: 0, False: 717]
  ------------------
 1698|    717|                replaceLanguage(true, false, false, stringsToBeFreed, status) ||
  ------------------
  |  Branch (1698:17): [True: 0, False: 717]
  ------------------
 1699|    717|                replaceLanguage(false,false, true,  stringsToBeFreed, status) ||
  ------------------
  |  Branch (1699:17): [True: 0, False: 717]
  ------------------
 1700|    717|                replaceTerritory(stringsToBeFreed, status) ||
  ------------------
  |  Branch (1700:17): [True: 0, False: 717]
  ------------------
 1701|    717|                replaceScript(status) ||
  ------------------
  |  Branch (1701:17): [True: 0, False: 717]
  ------------------
 1702|    717|                replaceVariant(status)) {
  ------------------
  |  Branch (1702:17): [True: 0, False: 717]
  ------------------
 1703|       |            // Some values in data is changed, try to match from the beginning
 1704|       |            // again.
 1705|      0|            changed++;
 1706|      0|            continue;
 1707|      0|        }
 1708|       |        // Nothing changed. Break out.
 1709|    717|        break;
 1710|    717|    }  // while(1)
 1711|       |
 1712|    717|    if (U_FAILURE(status)) { return false; }
  ------------------
  |  Branch (1712:9): [True: 0, False: 717]
  ------------------
 1713|       |    // Nothing changed and we know the order of the variants are not change
 1714|       |    // because we have no variant or only one.
 1715|    717|    const char* extensionsStr = locale_getKeywordsStart(locale.getName());
  ------------------
  |  |  138|    717|#define locale_getKeywordsStart U_ICU_ENTRY_POINT_RENAME(locale_getKeywordsStart)
  |  |  ------------------
  |  |  |  |  123|    717|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    717|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    717|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1716|    717|    if (changed == 0 && variants.size() <= 1 && extensionsStr == nullptr) {
  ------------------
  |  Branch (1716:9): [True: 717, False: 0]
  |  Branch (1716:25): [True: 717, False: 0]
  |  Branch (1716:49): [True: 717, False: 0]
  ------------------
 1717|    717|        return false;
 1718|    717|    }
 1719|      0|    outputToString(out, status);
 1720|      0|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1720:9): [True: 0, False: 0]
  ------------------
 1721|      0|        return false;
 1722|      0|    }
 1723|      0|    if (extensionsStr != nullptr) {
  ------------------
  |  Branch (1723:9): [True: 0, False: 0]
  ------------------
 1724|      0|        changed = 0;
 1725|      0|        Locale temp(locale);
 1726|      0|        LocalPointer<icu::StringEnumeration> iter(locale.createKeywords(status));
 1727|      0|        if (U_SUCCESS(status) && !iter.isNull()) {
  ------------------
  |  Branch (1727:13): [True: 0, False: 0]
  |  Branch (1727:34): [True: 0, False: 0]
  ------------------
 1728|      0|            const char* key;
 1729|      0|            while ((key = iter->next(nullptr, status)) != nullptr) {
  ------------------
  |  Branch (1729:20): [True: 0, False: 0]
  ------------------
 1730|      0|                if (uprv_strcmp("sd", key) == 0 || uprv_strcmp("rg", key) == 0 ||
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                              if (uprv_strcmp("sd", key) == 0 || uprv_strcmp("rg", key) == 0 ||
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1730:21): [True: 0, False: 0]
  |  Branch (1730:52): [True: 0, False: 0]
  ------------------
 1731|      0|                        uprv_strcmp("t", key) == 0) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1731:25): [True: 0, False: 0]
  ------------------
 1732|      0|                    auto value = locale.getKeywordValue<CharString>(key, status);
 1733|      0|                    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1733:25): [True: 0, False: 0]
  ------------------
 1734|      0|                        status = U_ZERO_ERROR;
 1735|      0|                        continue;
 1736|      0|                    }
 1737|      0|                    CharString replacement;
 1738|      0|                    if (uprv_strlen(key) == 2) {
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1738:25): [True: 0, False: 0]
  ------------------
 1739|      0|                        if (replaceSubdivision(value.toStringPiece(), replacement, status)) {
  ------------------
  |  Branch (1739:29): [True: 0, False: 0]
  ------------------
 1740|      0|                            changed++;
 1741|      0|                            temp.setKeywordValue(key, replacement.data(), status);
 1742|      0|                        }
 1743|      0|                    } else {
 1744|      0|                        U_ASSERT(uprv_strcmp(key, "t") == 0);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1745|      0|                        if (replaceTransformedExtensions(value, replacement, status)) {
  ------------------
  |  Branch (1745:29): [True: 0, False: 0]
  ------------------
 1746|      0|                            changed++;
 1747|      0|                            temp.setKeywordValue(key, replacement.data(), status);
 1748|      0|                        }
 1749|      0|                    }
 1750|      0|                    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1750:25): [True: 0, False: 0]
  ------------------
 1751|      0|                        return false;
 1752|      0|                    }
 1753|      0|                }
 1754|      0|            }
 1755|      0|        }
 1756|      0|        if (changed != 0) {
  ------------------
  |  Branch (1756:13): [True: 0, False: 0]
  ------------------
 1757|      0|            extensionsStr = locale_getKeywordsStart(temp.getName());
  ------------------
  |  |  138|      0|#define locale_getKeywordsStart U_ICU_ENTRY_POINT_RENAME(locale_getKeywordsStart)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1758|      0|        }
 1759|      0|        out.append(extensionsStr, status);
 1760|      0|    }
 1761|      0|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1761:9): [True: 0, False: 0]
  ------------------
 1762|      0|        return false;
 1763|      0|    }
 1764|       |    // If the tag is not changed, return.
 1765|      0|    if (uprv_strcmp(out.data(), locale.getName()) == 0) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1765:9): [True: 0, False: 0]
  ------------------
 1766|      0|        out.clear();
 1767|      0|        return false;
 1768|      0|    }
 1769|      0|    return true;
 1770|      0|}
locid.cpp:_ZN6icu_7812_GLOBAL__N_19AliasData9singletonER10UErrorCode:
  623|    717|    static const AliasData* singleton(UErrorCode& status) {
  624|    717|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (624:13): [True: 0, False: 717]
  ------------------
  625|       |            // Do not get into loadData if the status already has error.
  626|      0|            return nullptr;
  627|      0|        }
  628|    717|        umtx_initOnce(AliasData::gInitOnce, &AliasData::loadData, status);
  629|    717|        return gSingleton;
  630|    717|    }
locid.cpp:_ZN6icu_7812_GLOBAL__N_19AliasData8loadDataER10UErrorCode:
  896|      1|{
  897|       |#ifdef LOCALE_CANONICALIZATION_DEBUG
  898|       |    UDate start = uprv_getRawUTCtime();
  899|       |#endif  // LOCALE_CANONICALIZATION_DEBUG
  900|      1|    ucln_common_registerCleanup(UCLN_COMMON_LOCALE_ALIAS, cleanup);
  ------------------
  |  |  617|      1|#define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  901|      1|    AliasDataBuilder builder;
  902|      1|    gSingleton = builder.build(status);
  903|       |#ifdef LOCALE_CANONICALIZATION_DEBUG
  904|       |    UDate end = uprv_getRawUTCtime();
  905|       |    printf("AliasData::loadData took total %f ms\n", end - start);
  906|       |#endif  // LOCALE_CANONICALIZATION_DEBUG
  907|      1|}
locid.cpp:_ZN6icu_7812_GLOBAL__N_116AliasDataBuilderC2Ev:
  544|      1|    AliasDataBuilder() {
  545|      1|    }
locid.cpp:_ZN6icu_7812_GLOBAL__N_116AliasDataBuilder5buildER10UErrorCode:
  913|      1|AliasDataBuilder::build(UErrorCode &status) {
  914|      1|    if (U_FAILURE(status)) { return nullptr; }
  ------------------
  |  Branch (914:9): [True: 0, False: 1]
  ------------------
  915|       |
  916|      1|    LocalUResourceBundlePointer metadata(
  917|      1|        ures_openDirect(nullptr, "metadata", &status));
  ------------------
  |  | 1693|      1|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  918|      1|    LocalUResourceBundlePointer metadataAlias(
  919|      1|        ures_getByKey(metadata.getAlias(), "alias", nullptr, &status));
  ------------------
  |  | 1661|      1|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  920|      1|    LocalUResourceBundlePointer languageAlias(
  921|      1|        ures_getByKey(metadataAlias.getAlias(), "language", nullptr, &status));
  ------------------
  |  | 1661|      1|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  922|      1|    LocalUResourceBundlePointer scriptAlias(
  923|      1|        ures_getByKey(metadataAlias.getAlias(), "script", nullptr, &status));
  ------------------
  |  | 1661|      1|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  924|      1|    LocalUResourceBundlePointer territoryAlias(
  925|      1|        ures_getByKey(metadataAlias.getAlias(), "territory", nullptr, &status));
  ------------------
  |  | 1661|      1|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  926|      1|    LocalUResourceBundlePointer variantAlias(
  927|      1|        ures_getByKey(metadataAlias.getAlias(), "variant", nullptr, &status));
  ------------------
  |  | 1661|      1|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  928|      1|    LocalUResourceBundlePointer subdivisionAlias(
  929|      1|        ures_getByKey(metadataAlias.getAlias(), "subdivision", nullptr, &status));
  ------------------
  |  | 1661|      1|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  930|       |
  931|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (931:9): [True: 0, False: 1]
  ------------------
  932|      0|        return nullptr;
  933|      0|    }
  934|      1|    int32_t languagesLength = 0, scriptLength = 0, territoryLength = 0,
  935|      1|            variantLength = 0, subdivisionLength = 0;
  936|       |
  937|       |    // Read the languageAlias into languageTypes, languageReplacementIndexes
  938|       |    // and strings
  939|      1|    UniqueCharStrings strings(status);
  940|      1|    LocalMemory<const char*> languageTypes;
  941|      1|    LocalMemory<int32_t> languageReplacementIndexes;
  942|      1|    readLanguageAlias(languageAlias.getAlias(),
  943|      1|                      &strings,
  944|      1|                      languageTypes,
  945|      1|                      languageReplacementIndexes,
  946|      1|                      languagesLength,
  947|      1|                      status);
  948|       |
  949|       |    // Read the scriptAlias into scriptTypes, scriptReplacementIndexes
  950|       |    // and strings
  951|      1|    LocalMemory<const char*> scriptTypes;
  952|      1|    LocalMemory<int32_t> scriptReplacementIndexes;
  953|      1|    readScriptAlias(scriptAlias.getAlias(),
  954|      1|                    &strings,
  955|      1|                    scriptTypes,
  956|      1|                    scriptReplacementIndexes,
  957|      1|                    scriptLength,
  958|      1|                    status);
  959|       |
  960|       |    // Read the territoryAlias into territoryTypes, territoryReplacementIndexes
  961|       |    // and strings
  962|      1|    LocalMemory<const char*> territoryTypes;
  963|      1|    LocalMemory<int32_t> territoryReplacementIndexes;
  964|      1|    readTerritoryAlias(territoryAlias.getAlias(),
  965|      1|                       &strings,
  966|      1|                       territoryTypes,
  967|      1|                       territoryReplacementIndexes,
  968|      1|                       territoryLength, status);
  969|       |
  970|       |    // Read the variantAlias into variantTypes, variantReplacementIndexes
  971|       |    // and strings
  972|      1|    LocalMemory<const char*> variantTypes;
  973|      1|    LocalMemory<int32_t> variantReplacementIndexes;
  974|      1|    readVariantAlias(variantAlias.getAlias(),
  975|      1|                     &strings,
  976|      1|                     variantTypes,
  977|      1|                     variantReplacementIndexes,
  978|      1|                     variantLength, status);
  979|       |
  980|       |    // Read the subdivisionAlias into subdivisionTypes, subdivisionReplacementIndexes
  981|       |    // and strings
  982|      1|    LocalMemory<const char*> subdivisionTypes;
  983|      1|    LocalMemory<int32_t> subdivisionReplacementIndexes;
  984|      1|    readSubdivisionAlias(subdivisionAlias.getAlias(),
  985|      1|                         &strings,
  986|      1|                         subdivisionTypes,
  987|      1|                         subdivisionReplacementIndexes,
  988|      1|                         subdivisionLength, status);
  989|       |
  990|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (990:9): [True: 0, False: 1]
  ------------------
  991|      0|        return nullptr;
  992|      0|    }
  993|       |
  994|       |    // We can only use strings after freeze it.
  995|      1|    strings.freeze();
  996|       |
  997|       |    // Build the languageMap from languageTypes & languageReplacementIndexes
  998|      1|    CharStringMap languageMap(490, status);
  999|    501|    for (int32_t i = 0; U_SUCCESS(status) && i < languagesLength; i++) {
  ------------------
  |  Branch (999:25): [True: 501, False: 0]
  |  Branch (999:46): [True: 500, False: 1]
  ------------------
 1000|    500|        languageMap.put(languageTypes[i],
 1001|    500|                        strings.get(languageReplacementIndexes[i]),
 1002|    500|                        status);
 1003|    500|    }
 1004|       |
 1005|       |    // Build the scriptMap from scriptTypes & scriptReplacementIndexes
 1006|      1|    CharStringMap scriptMap(1, status);
 1007|      2|    for (int32_t i = 0; U_SUCCESS(status) && i < scriptLength; i++) {
  ------------------
  |  Branch (1007:25): [True: 2, False: 0]
  |  Branch (1007:46): [True: 1, False: 1]
  ------------------
 1008|      1|        scriptMap.put(scriptTypes[i],
 1009|      1|                      strings.get(scriptReplacementIndexes[i]),
 1010|      1|                      status);
 1011|      1|    }
 1012|       |
 1013|       |    // Build the territoryMap from territoryTypes & territoryReplacementIndexes
 1014|      1|    CharStringMap territoryMap(650, status);
 1015|    641|    for (int32_t i = 0; U_SUCCESS(status) && i < territoryLength; i++) {
  ------------------
  |  Branch (1015:25): [True: 641, False: 0]
  |  Branch (1015:46): [True: 640, False: 1]
  ------------------
 1016|    640|        territoryMap.put(territoryTypes[i],
 1017|    640|                         strings.get(territoryReplacementIndexes[i]),
 1018|    640|                         status);
 1019|    640|    }
 1020|       |
 1021|       |    // Build the variantMap from variantTypes & variantReplacementIndexes.
 1022|      1|    CharStringMap variantMap(2, status);
 1023|      3|    for (int32_t i = 0; U_SUCCESS(status) && i < variantLength; i++) {
  ------------------
  |  Branch (1023:25): [True: 3, False: 0]
  |  Branch (1023:46): [True: 2, False: 1]
  ------------------
 1024|      2|        variantMap.put(variantTypes[i],
 1025|      2|                       strings.get(variantReplacementIndexes[i]),
 1026|      2|                       status);
 1027|      2|    }
 1028|       |
 1029|       |    // Build the subdivisionMap from subdivisionTypes & subdivisionReplacementIndexes.
 1030|      1|    CharStringMap subdivisionMap(2, status);
 1031|    148|    for (int32_t i = 0; U_SUCCESS(status) && i < subdivisionLength; i++) {
  ------------------
  |  Branch (1031:25): [True: 148, False: 0]
  |  Branch (1031:46): [True: 147, False: 1]
  ------------------
 1032|    147|        subdivisionMap.put(subdivisionTypes[i],
 1033|    147|                       strings.get(subdivisionReplacementIndexes[i]),
 1034|    147|                       status);
 1035|    147|    }
 1036|       |
 1037|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1037:9): [True: 0, False: 1]
  ------------------
 1038|      0|        return nullptr;
 1039|      0|    }
 1040|       |
 1041|       |    // copy hashtables
 1042|      1|    auto *data = new AliasData(
 1043|      1|        std::move(languageMap),
 1044|      1|        std::move(scriptMap),
 1045|      1|        std::move(territoryMap),
 1046|      1|        std::move(variantMap),
 1047|      1|        std::move(subdivisionMap),
 1048|      1|        strings.orphanCharStrings());
 1049|       |
 1050|      1|    if (data == nullptr) {
  ------------------
  |  Branch (1050:9): [True: 0, False: 1]
  ------------------
 1051|      0|        status = U_MEMORY_ALLOCATION_ERROR;
 1052|      0|    }
 1053|      1|    return data;
 1054|      1|}
locid.cpp:_ZN6icu_7812_GLOBAL__N_116AliasDataBuilder17readLanguageAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCode:
  740|      1|{
  741|      1|    return readAlias(
  742|      1|        alias, strings, types, replacementIndexes, length,
  743|       |#if U_DEBUG
  744|       |        [](const char* type) {
  745|       |            // Assert the aliasFrom only contains the following possibilities
  746|       |            // language_REGION_variant
  747|       |            // language_REGION
  748|       |            // language_variant
  749|       |            // language
  750|       |            // und_variant
  751|       |            Locale test(type);
  752|       |            // Assert no script in aliasFrom
  753|       |            U_ASSERT(test.getScript()[0] == '\0');
  754|       |            // Assert when language is und, no REGION in aliasFrom.
  755|       |            U_ASSERT(test.getLanguage()[0] != '\0' || test.getCountry()[0] == '\0');
  756|       |        },
  757|       |#else
  758|      1|        [](const char*) {},
  759|      1|#endif
  760|      1|        [](const UChar*) {}, status);
  761|      1|}
locid.cpp:_ZN6icu_7812_GLOBAL__N_116AliasDataBuilder9readAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiPFvS8_EPFvPKDsER10UErrorCode:
  695|      5|        UErrorCode &status) {
  696|      5|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (696:9): [True: 0, False: 5]
  ------------------
  697|      0|        return;
  698|      0|    }
  699|      5|    length = ures_getSize(alias);
  ------------------
  |  | 1674|      5|#define ures_getSize U_ICU_ENTRY_POINT_RENAME(ures_getSize)
  |  |  ------------------
  |  |  |  |  123|      5|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      5|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      5|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  700|      5|    const char** rawTypes = types.allocateInsteadAndCopy(length);
  701|      5|    if (rawTypes == nullptr) {
  ------------------
  |  Branch (701:9): [True: 0, False: 5]
  ------------------
  702|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  703|      0|        return;
  704|      0|    }
  705|      5|    int32_t* rawIndexes = replacementIndexes.allocateInsteadAndCopy(length);
  706|      5|    if (rawIndexes == nullptr) {
  ------------------
  |  Branch (706:9): [True: 0, False: 5]
  ------------------
  707|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  708|      0|        return;
  709|      0|    }
  710|  1.29k|    for (int i = 0; U_SUCCESS(status) && ures_hasNext(alias); i++) {
  ------------------
  |  | 1689|  1.29k|#define ures_hasNext U_ICU_ENTRY_POINT_RENAME(ures_hasNext)
  |  |  ------------------
  |  |  |  |  123|  1.29k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.29k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.29k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (710:21): [True: 1.29k, False: 0]
  |  Branch (710:42): [True: 1.29k, False: 5]
  ------------------
  711|  1.29k|        LocalUResourceBundlePointer res(
  712|  1.29k|            ures_getNextResource(alias, nullptr, &status));
  ------------------
  |  | 1672|  1.29k|#define ures_getNextResource U_ICU_ENTRY_POINT_RENAME(ures_getNextResource)
  |  |  ------------------
  |  |  |  |  123|  1.29k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.29k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.29k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  713|  1.29k|        const char* aliasFrom = ures_getKey(res.getAlias());
  ------------------
  |  | 1666|  1.29k|#define ures_getKey U_ICU_ENTRY_POINT_RENAME(ures_getKey)
  |  |  ------------------
  |  |  |  |  123|  1.29k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.29k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.29k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  714|  1.29k|        const UChar* aliasTo =
  715|  1.29k|            ures_getStringByKey(res.getAlias(), "replacement", nullptr, &status);
  ------------------
  |  | 1677|  1.29k|#define ures_getStringByKey U_ICU_ENTRY_POINT_RENAME(ures_getStringByKey)
  |  |  ------------------
  |  |  |  |  123|  1.29k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.29k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.29k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  716|  1.29k|        if (U_FAILURE(status)) return;
  ------------------
  |  Branch (716:13): [True: 0, False: 1.29k]
  ------------------
  717|       |
  718|  1.29k|        checkType(aliasFrom);
  719|  1.29k|        checkReplacement(aliasTo);
  720|       |
  721|  1.29k|        rawTypes[i] = aliasFrom;
  722|  1.29k|        rawIndexes[i] = strings->add(aliasTo, status);
  723|  1.29k|    }
  724|      5|}
locid.cpp:_ZZN6icu_7812_GLOBAL__N_116AliasDataBuilder17readLanguageAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCodeENK3$_0clES8_:
  758|    500|        [](const char*) {},
locid.cpp:_ZZN6icu_7812_GLOBAL__N_116AliasDataBuilder17readLanguageAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCodeENK3$_1clEPKDs:
  760|    500|        [](const UChar*) {}, status);
locid.cpp:_ZN6icu_7812_GLOBAL__N_116AliasDataBuilder15readScriptAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCode:
  777|      1|{
  778|      1|    return readAlias(
  779|      1|        alias, strings, types, replacementIndexes, length,
  780|       |#if U_DEBUG
  781|       |        [](const char* type) {
  782|       |            U_ASSERT(uprv_strlen(type) == 4);
  783|       |        },
  784|       |        [](const UChar* replacement) {
  785|       |            U_ASSERT(u_strlen(replacement) == 4);
  786|       |        },
  787|       |#else
  788|      1|        [](const char*) {},
  789|      1|        [](const UChar*) { },
  790|      1|#endif
  791|      1|        status);
  792|      1|}
locid.cpp:_ZZN6icu_7812_GLOBAL__N_116AliasDataBuilder15readScriptAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCodeENK3$_0clES8_:
  788|      1|        [](const char*) {},
locid.cpp:_ZZN6icu_7812_GLOBAL__N_116AliasDataBuilder15readScriptAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCodeENK3$_1clEPKDs:
  789|      1|        [](const UChar*) { },
locid.cpp:_ZN6icu_7812_GLOBAL__N_116AliasDataBuilder18readTerritoryAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCode:
  808|      1|{
  809|      1|    return readAlias(
  810|      1|        alias, strings, types, replacementIndexes, length,
  811|       |#if U_DEBUG
  812|       |        [](const char* type) {
  813|       |            U_ASSERT(uprv_strlen(type) == 2 || uprv_strlen(type) == 3);
  814|       |        },
  815|       |#else
  816|      1|        [](const char*) {},
  817|      1|#endif
  818|      1|        [](const UChar*) { },
  819|      1|        status);
  820|      1|}
locid.cpp:_ZZN6icu_7812_GLOBAL__N_116AliasDataBuilder18readTerritoryAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCodeENK3$_0clES8_:
  816|    640|        [](const char*) {},
locid.cpp:_ZZN6icu_7812_GLOBAL__N_116AliasDataBuilder18readTerritoryAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCodeENK3$_1clEPKDs:
  818|    640|        [](const UChar*) { },
locid.cpp:_ZN6icu_7812_GLOBAL__N_116AliasDataBuilder16readVariantAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCode:
  836|      1|{
  837|      1|    return readAlias(
  838|      1|        alias, strings, types, replacementIndexes, length,
  839|       |#if U_DEBUG
  840|       |        [](const char* type) {
  841|       |            U_ASSERT(uprv_strlen(type) >= 4 && uprv_strlen(type) <= 8);
  842|       |            U_ASSERT(uprv_strlen(type) != 4 ||
  843|       |                     (type[0] >= '0' && type[0] <= '9'));
  844|       |        },
  845|       |        [](const UChar* replacement) {
  846|       |            int32_t len = u_strlen(replacement);
  847|       |            U_ASSERT(len >= 4 && len <= 8);
  848|       |            U_ASSERT(len != 4 ||
  849|       |                     (*replacement >= u'0' &&
  850|       |                      *replacement <= u'9'));
  851|       |        },
  852|       |#else
  853|      1|        [](const char*) {},
  854|      1|        [](const UChar*) { },
  855|      1|#endif
  856|      1|        status);
  857|      1|}
locid.cpp:_ZZN6icu_7812_GLOBAL__N_116AliasDataBuilder16readVariantAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCodeENK3$_0clES8_:
  853|      2|        [](const char*) {},
locid.cpp:_ZZN6icu_7812_GLOBAL__N_116AliasDataBuilder16readVariantAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCodeENK3$_1clEPKDs:
  854|      2|        [](const UChar*) { },
locid.cpp:_ZN6icu_7812_GLOBAL__N_116AliasDataBuilder20readSubdivisionAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCode:
  873|      1|{
  874|      1|    return readAlias(
  875|      1|        alias, strings, types, replacementIndexes, length,
  876|       |#if U_DEBUG
  877|       |        [](const char* type) {
  878|       |            U_ASSERT(uprv_strlen(type) >= 3 && uprv_strlen(type) <= 8);
  879|       |        },
  880|       |#else
  881|      1|        [](const char*) {},
  882|      1|#endif
  883|      1|        [](const UChar*) { },
  884|      1|        status);
  885|      1|}
locid.cpp:_ZZN6icu_7812_GLOBAL__N_116AliasDataBuilder20readSubdivisionAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCodeENK3$_0clES8_:
  881|    147|        [](const char*) {},
locid.cpp:_ZZN6icu_7812_GLOBAL__N_116AliasDataBuilder20readSubdivisionAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCodeENK3$_1clEPKDs:
  883|    147|        [](const UChar*) { },
locid.cpp:_ZN6icu_7812_GLOBAL__N_19AliasDataC2ENS_13CharStringMapES2_S2_S2_S2_PNS_10CharStringE:
  650|      1|        : language(std::move(languageMap)),
  651|      1|          script(std::move(scriptMap)),
  652|      1|          territory(std::move(territoryMap)),
  653|      1|          variant(std::move(variantMap)),
  654|      1|          subdivision(std::move(subdivisionMap)),
  655|      1|          strings(strings) {
  656|      1|    }
locid.cpp:_ZN6icu_7812_GLOBAL__N_113AliasReplacer8notEmptyEPKc:
 1090|  4.64k|    inline bool notEmpty(const char* str) {
 1091|  4.64k|        return str && str[0] != NULL_CHAR;
  ------------------
  |  |  244|  2.68k|#define NULL_CHAR '\0'
  ------------------
  |  Branch (1091:16): [True: 2.68k, False: 1.96k]
  |  Branch (1091:23): [True: 1.88k, False: 801]
  ------------------
 1092|  4.64k|    }
locid.cpp:_ZN6icu_7812_GLOBAL__N_113AliasReplacer15replaceLanguageEbbbRNS_7UVectorER10UErrorCode:
 1271|  3.58k|{
 1272|  3.58k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1272:9): [True: 0, False: 3.58k]
  ------------------
 1273|      0|        return false;
 1274|      0|    }
 1275|  3.58k|    if (    (checkRegion && region == nullptr) ||
  ------------------
  |  Branch (1275:14): [True: 1.43k, False: 2.15k]
  |  Branch (1275:29): [True: 378, False: 1.05k]
  ------------------
 1276|  3.58k|            (checkVariants && variants.size() == 0)) {
  ------------------
  |  Branch (1276:14): [True: 1.96k, False: 1.24k]
  |  Branch (1276:31): [True: 1.95k, False: 3]
  ------------------
 1277|       |        // Nothing to search.
 1278|  2.33k|        return false;
 1279|  2.33k|    }
 1280|  1.24k|    int32_t variant_size = checkVariants ? variants.size() : 1;
  ------------------
  |  Branch (1280:28): [True: 3, False: 1.24k]
  ------------------
 1281|       |    // Since we may have more than one variant, we need to loop through them.
 1282|  1.24k|    const char* searchLanguage = checkLanguage ? language : "und";
  ------------------
  |  Branch (1282:34): [True: 1.24k, False: 1]
  ------------------
 1283|  1.24k|    const char* searchRegion = checkRegion ? region : nullptr;
  ------------------
  |  Branch (1283:32): [True: 529, False: 719]
  ------------------
 1284|  1.24k|    const char* searchVariant = nullptr;
 1285|  1.24k|    for (int32_t variant_index = 0;
 1286|  2.49k|            variant_index < variant_size;
  ------------------
  |  Branch (1286:13): [True: 1.24k, False: 1.24k]
  ------------------
 1287|  1.24k|            variant_index++) {
 1288|  1.24k|        if (checkVariants) {
  ------------------
  |  Branch (1288:13): [True: 3, False: 1.24k]
  ------------------
 1289|      3|            U_ASSERT(variant_index < variant_size);
  ------------------
  |  |   35|      3|#   define U_ASSERT(exp) (void)0
  ------------------
 1290|      3|            searchVariant = static_cast<const char*>(variants.elementAt(variant_index));
 1291|      3|        }
 1292|       |
 1293|  1.24k|        if (searchVariant != nullptr && uprv_strlen(searchVariant) < 4) {
  ------------------
  |  |   37|      3|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      3|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1293:13): [True: 3, False: 1.24k]
  |  Branch (1293:41): [True: 0, False: 3]
  ------------------
 1294|       |            // Do not consider  ill-formed variant subtag.
 1295|      0|            searchVariant = nullptr;
 1296|      0|        }
 1297|  1.24k|        CharString typeKey;
 1298|  1.24k|        generateKey(searchLanguage, searchRegion, searchVariant, typeKey,
 1299|  1.24k|                    status);
 1300|  1.24k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (1300:13): [True: 0, False: 1.24k]
  ------------------
 1301|      0|            return false;
 1302|      0|        }
 1303|  1.24k|        const char *replacement = data->languageMap().get(typeKey.data());
 1304|  1.24k|        if (replacement == nullptr) {
  ------------------
  |  Branch (1304:13): [True: 1.24k, False: 0]
  ------------------
 1305|       |            // Found no replacement data.
 1306|  1.24k|            continue;
 1307|  1.24k|        }
 1308|       |
 1309|      0|        const char* replacedLanguage = nullptr;
 1310|      0|        const char* replacedScript = nullptr;
 1311|      0|        const char* replacedRegion = nullptr;
 1312|      0|        const char* replacedVariant = nullptr;
 1313|      0|        const char* replacedExtensions = nullptr;
 1314|      0|        parseLanguageReplacement(replacement,
 1315|      0|                                 replacedLanguage,
 1316|      0|                                 replacedScript,
 1317|      0|                                 replacedRegion,
 1318|      0|                                 replacedVariant,
 1319|      0|                                 replacedExtensions,
 1320|      0|                                 toBeFreed,
 1321|      0|                                 status);
 1322|      0|        replacedLanguage =
 1323|      0|            (replacedLanguage != nullptr && uprv_strcmp(replacedLanguage, "und") == 0) ?
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1323:14): [True: 0, False: 0]
  |  Branch (1323:45): [True: 0, False: 0]
  ------------------
 1324|      0|            language : replacedLanguage;
 1325|      0|        replacedScript = deleteOrReplace(script, nullptr, replacedScript);
 1326|      0|        replacedRegion = deleteOrReplace(region, searchRegion, replacedRegion);
 1327|      0|        replacedVariant = deleteOrReplace(
 1328|      0|            searchVariant, searchVariant, replacedVariant);
 1329|       |
 1330|      0|        if (    same(language, replacedLanguage) &&
  ------------------
  |  Branch (1330:17): [True: 0, False: 0]
  ------------------
 1331|      0|                same(script, replacedScript) &&
  ------------------
  |  Branch (1331:17): [True: 0, False: 0]
  ------------------
 1332|      0|                same(region, replacedRegion) &&
  ------------------
  |  Branch (1332:17): [True: 0, False: 0]
  ------------------
 1333|      0|                same(searchVariant, replacedVariant) &&
  ------------------
  |  Branch (1333:17): [True: 0, False: 0]
  ------------------
 1334|      0|                replacedExtensions == nullptr) {
  ------------------
  |  Branch (1334:17): [True: 0, False: 0]
  ------------------
 1335|       |            // Replacement produce no changes.
 1336|      0|            continue;
 1337|      0|        }
 1338|       |
 1339|      0|        language = replacedLanguage;
 1340|      0|        region = replacedRegion;
 1341|      0|        script = replacedScript;
 1342|      0|        if (searchVariant != nullptr) {
  ------------------
  |  Branch (1342:13): [True: 0, False: 0]
  ------------------
 1343|      0|            if (notEmpty(replacedVariant)) {
  ------------------
  |  Branch (1343:17): [True: 0, False: 0]
  ------------------
 1344|      0|                variants.setElementAt((void*)replacedVariant, variant_index);
 1345|      0|            } else {
 1346|      0|                variants.removeElementAt(variant_index);
 1347|      0|            }
 1348|      0|        }
 1349|      0|        if (replacedExtensions != nullptr) {
  ------------------
  |  Branch (1349:13): [True: 0, False: 0]
  ------------------
 1350|       |            // DO NOTHING
 1351|       |            // UTS35 does not specify what should we do if we have extensions in the
 1352|       |            // replacement. Currently we know only the following 4 "BCP47 LegacyRules" have
 1353|       |            // extensions in them languageAlias:
 1354|       |            //  i_default => en_x_i_default
 1355|       |            //  i_enochian => und_x_i_enochian
 1356|       |            //  i_mingo => see_x_i_mingo
 1357|       |            //  zh_min => nan_x_zh_min
 1358|       |            // But all of them are already changed by code inside ultag_parse() before
 1359|       |            // hitting this code.
 1360|      0|        }
 1361|       |
 1362|       |        // Something changed by language alias data.
 1363|      0|        return true;
 1364|      0|    }
 1365|       |    // Nothing changed by language alias data.
 1366|  1.24k|    return false;
 1367|  1.24k|}
locid.cpp:_ZN6icu_7812_GLOBAL__N_113AliasReplacer11generateKeyEPKcS3_S3_RNS_10CharStringER10UErrorCode:
 1169|  1.24k|{
 1170|  1.24k|    if (U_FAILURE(status)) { return out; }
  ------------------
  |  Branch (1170:9): [True: 0, False: 1.24k]
  ------------------
 1171|  1.24k|    out.append(language, status);
 1172|  1.24k|    if (notEmpty(region)) {
  ------------------
  |  Branch (1172:9): [True: 529, False: 719]
  ------------------
 1173|    529|        out.append(SEP_CHAR, status)
  ------------------
  |  |  243|    529|#define SEP_CHAR '_'
  ------------------
 1174|    529|            .append(region, status);
 1175|    529|    }
 1176|  1.24k|    if (notEmpty(variant)) {
  ------------------
  |  Branch (1176:9): [True: 3, False: 1.24k]
  ------------------
 1177|      3|       out.append(SEP_CHAR, status)
  ------------------
  |  |  243|      3|#define SEP_CHAR '_'
  ------------------
 1178|      3|           .append(variant, status);
 1179|      3|    }
 1180|  1.24k|    return out;
 1181|  1.24k|}
locid.cpp:_ZNK6icu_7812_GLOBAL__N_19AliasData11languageMapEv:
  632|  1.24k|    const CharStringMap& languageMap() const { return language; }
locid.cpp:_ZN6icu_7812_GLOBAL__N_113AliasReplacer16replaceTerritoryERNS_7UVectorER10UErrorCode:
 1371|    717|{
 1372|    717|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1372:9): [True: 0, False: 717]
  ------------------
 1373|      0|        return false;
 1374|      0|    }
 1375|    717|    if (region == nullptr) {
  ------------------
  |  Branch (1375:9): [True: 189, False: 528]
  ------------------
 1376|       |        // No region to search.
 1377|    189|        return false;
 1378|    189|    }
 1379|    528|    const char *replacement = data->territoryMap().get(region);
 1380|    528|    if (replacement == nullptr) {
  ------------------
  |  Branch (1380:9): [True: 528, False: 0]
  ------------------
 1381|       |        // Found no replacement data for this region.
 1382|    528|        return false;
 1383|    528|    }
 1384|      0|    const char* replacedRegion = replacement;
 1385|      0|    const char* firstSpace = uprv_strchr(replacement, ' ');
  ------------------
  |  |   40|      0|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1386|      0|    if (firstSpace != nullptr) {
  ------------------
  |  Branch (1386:9): [True: 0, False: 0]
  ------------------
 1387|       |        // If there are are more than one region in the replacement.
 1388|       |        // We need to check which one match based on the language.
 1389|       |        // Cannot use nullptr for language because that will construct
 1390|       |        // the default locale, in that case, use "und" to get the correct
 1391|       |        // locale.
 1392|      0|        Locale l = LocaleBuilder()
 1393|      0|            .setLanguage(language == nullptr ? "und" : language)
  ------------------
  |  Branch (1393:26): [True: 0, False: 0]
  ------------------
 1394|      0|            .setScript(script)
 1395|      0|            .build(status);
 1396|      0|        l.addLikelySubtags(status);
 1397|      0|        const char* likelyRegion = l.getCountry();
 1398|      0|        LocalPointer<CharString> item;
 1399|      0|        if (likelyRegion != nullptr && uprv_strlen(likelyRegion) > 0) {
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1399:13): [True: 0, False: 0]
  |  Branch (1399:40): [True: 0, False: 0]
  ------------------
 1400|      0|            size_t len = uprv_strlen(likelyRegion);
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1401|      0|            const char* foundInReplacement = uprv_strstr(replacement,
  ------------------
  |  |   41|      0|#define uprv_strstr(s, c) U_STANDARD_CPP_NAMESPACE strstr(s, c)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1402|      0|                                                         likelyRegion);
 1403|      0|            if (foundInReplacement != nullptr) {
  ------------------
  |  Branch (1403:17): [True: 0, False: 0]
  ------------------
 1404|       |                // Assuming the case there are no three letter region code in
 1405|       |                // the replacement of territoryAlias
 1406|      0|                U_ASSERT(foundInReplacement == replacement ||
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1407|      0|                         *(foundInReplacement-1) == ' ');
 1408|      0|                U_ASSERT(foundInReplacement[len] == ' ' ||
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1409|      0|                         foundInReplacement[len] == '\0');
 1410|      0|                item.adoptInsteadAndCheckErrorCode(
 1411|      0|                    new CharString(foundInReplacement, static_cast<int32_t>(len), status), status);
 1412|      0|            }
 1413|      0|        }
 1414|      0|        if (item.isNull() && U_SUCCESS(status)) {
  ------------------
  |  Branch (1414:13): [True: 0, False: 0]
  |  Branch (1414:30): [True: 0, False: 0]
  ------------------
 1415|      0|            item.adoptInsteadAndCheckErrorCode(
 1416|      0|                new CharString(replacement,
 1417|      0|                               static_cast<int32_t>(firstSpace - replacement), status), status);
 1418|      0|        }
 1419|      0|        if (U_FAILURE(status)) { return false; }
  ------------------
  |  Branch (1419:13): [True: 0, False: 0]
  ------------------
 1420|      0|        replacedRegion = item->data();
 1421|      0|        toBeFreed.adoptElement(item.orphan(), status);
 1422|      0|        if (U_FAILURE(status)) { return false; }
  ------------------
  |  Branch (1422:13): [True: 0, False: 0]
  ------------------
 1423|      0|    }
 1424|      0|    U_ASSERT(!same(region, replacedRegion));
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1425|      0|    region = replacedRegion;
 1426|       |    // The region is changed by data in territory alias.
 1427|      0|    return true;
 1428|      0|}
locid.cpp:_ZNK6icu_7812_GLOBAL__N_19AliasData12territoryMapEv:
  634|    528|    const CharStringMap& territoryMap() const { return territory; }
locid.cpp:_ZN6icu_7812_GLOBAL__N_113AliasReplacer13replaceScriptER10UErrorCode:
 1432|    717|{
 1433|    717|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1433:9): [True: 0, False: 717]
  ------------------
 1434|      0|        return false;
 1435|      0|    }
 1436|    717|    if (script == nullptr) {
  ------------------
  |  Branch (1436:9): [True: 612, False: 105]
  ------------------
 1437|       |        // No script to search.
 1438|    612|        return false;
 1439|    612|    }
 1440|    105|    const char *replacement = data->scriptMap().get(script);
 1441|    105|    if (replacement == nullptr) {
  ------------------
  |  Branch (1441:9): [True: 105, False: 0]
  ------------------
 1442|       |        // Found no replacement data for this script.
 1443|    105|        return false;
 1444|    105|    }
 1445|      0|    U_ASSERT(!same(script, replacement));
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1446|      0|    script = replacement;
 1447|       |    // The script is changed by data in script alias.
 1448|      0|    return true;
 1449|    105|}
locid.cpp:_ZNK6icu_7812_GLOBAL__N_19AliasData9scriptMapEv:
  633|    105|    const CharStringMap& scriptMap() const { return script; }
locid.cpp:_ZN6icu_7812_GLOBAL__N_113AliasReplacer14replaceVariantER10UErrorCode:
 1453|    717|{
 1454|    717|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1454:9): [True: 0, False: 717]
  ------------------
 1455|      0|        return false;
 1456|      0|    }
 1457|       |    // Since we may have more than one variant, we need to loop through them.
 1458|    718|    for (int32_t i = 0; i < variants.size(); i++) {
  ------------------
  |  Branch (1458:25): [True: 1, False: 717]
  ------------------
 1459|      1|        const char* variant = static_cast<const char*>(variants.elementAt(i));
 1460|      1|        const char *replacement = data->variantMap().get(variant);
 1461|      1|        if (replacement == nullptr) {
  ------------------
  |  Branch (1461:13): [True: 1, False: 0]
  ------------------
 1462|       |            // Found no replacement data for this variant.
 1463|      1|            continue;
 1464|      1|        }
 1465|      0|        U_ASSERT((uprv_strlen(replacement) >= 5  &&
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1466|      0|                  uprv_strlen(replacement) <= 8) ||
 1467|      0|                 (uprv_strlen(replacement) == 4 &&
 1468|      0|                  replacement[0] >= '0' &&
 1469|      0|                  replacement[0] <= '9'));
 1470|      0|        if (!same(variant, replacement)) {
  ------------------
  |  Branch (1470:13): [True: 0, False: 0]
  ------------------
 1471|      0|            variants.setElementAt((void*)replacement, i);
 1472|       |            // Special hack to handle hepburn-heploc => alalc97
 1473|      0|            if (uprv_strcmp(variant, "heploc") == 0) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1473:17): [True: 0, False: 0]
  ------------------
 1474|      0|                for (int32_t j = 0; j < variants.size(); j++) {
  ------------------
  |  Branch (1474:37): [True: 0, False: 0]
  ------------------
 1475|      0|                     if (uprv_strcmp((const char*)(variants.elementAt(j)),
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1475:26): [True: 0, False: 0]
  ------------------
 1476|      0|                                     "hepburn") == 0) {
 1477|      0|                         variants.removeElementAt(j);
 1478|      0|                     }
 1479|      0|                }
 1480|      0|            }
 1481|      0|            return true;
 1482|      0|        }
 1483|      0|    }
 1484|    717|    return false;
 1485|    717|}
locid.cpp:_ZNK6icu_7812_GLOBAL__N_19AliasData10variantMapEv:
  635|      1|    const CharStringMap& variantMap() const { return variant; }
locid.cpp:_ZN6icu_7812_GLOBAL__N_113AliasReplacerD2Ev:
 1072|    717|    ~AliasReplacer() {
 1073|    717|    }
locid.cpp:_ZZN6icu_786Locale4initENS_11StringPieceEaENK3$_0clENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEPciR10UErrorCode:
 1868|  18.9k|                                          UErrorCode& status) {
 1869|  18.9k|            return ByteSinkUtil::viaByteSinkToTerminatedChars(
 1870|  18.9k|                name, nameCapacity,
 1871|  18.9k|                [&](ByteSink& sink, UErrorCode& status) {
 1872|  18.9k|                    if (canonicalize) {
 1873|  18.9k|                        ulocimp_canonicalize(localeID, sink, status);
 1874|  18.9k|                    } else {
 1875|  18.9k|                        ulocimp_getName(localeID, sink, status);
 1876|  18.9k|                    }
 1877|  18.9k|                },
 1878|  18.9k|                status);
 1879|  18.9k|        };
locid.cpp:_ZZZN6icu_786Locale4initENS_11StringPieceEaENK3$_0clENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEPciR10UErrorCodeENKUlRNS_8ByteSinkESA_E_clESC_SA_:
 1871|  18.9k|                [&](ByteSink& sink, UErrorCode& status) {
 1872|  18.9k|                    if (canonicalize) {
  ------------------
  |  Branch (1872:25): [True: 885, False: 18.0k]
  ------------------
 1873|    885|                        ulocimp_canonicalize(localeID, sink, status);
  ------------------
  |  | 1197|    885|#define ulocimp_canonicalize U_ICU_ENTRY_POINT_RENAME(ulocimp_canonicalize)
  |  |  ------------------
  |  |  |  |  123|    885|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    885|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    885|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1874|  18.0k|                    } else {
 1875|  18.0k|                        ulocimp_getName(localeID, sink, status);
  ------------------
  |  | 1204|  18.0k|#define ulocimp_getName U_ICU_ENTRY_POINT_RENAME(ulocimp_getName)
  |  |  ------------------
  |  |  |  |  123|  18.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  18.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  18.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1876|  18.0k|                    }
 1877|  18.9k|                },
locid.cpp:_ZN6icu_7812_GLOBAL__N_126isKnownCanonicalizedLocaleEPKcR10UErrorCode:
 1786|    885|{
 1787|    885|    if (U_FAILURE(status)) { return false; }
  ------------------
  |  Branch (1787:9): [True: 0, False: 885]
  ------------------
 1788|       |
 1789|    885|    if (    uprv_strcmp(locale, "c") == 0 ||
  ------------------
  |  |   38|    885|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    885|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1789:13): [True: 0, False: 885]
  ------------------
 1790|    885|            uprv_strcmp(locale, "en") == 0 ||
  ------------------
  |  |   38|    885|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    885|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1790:13): [True: 1, False: 884]
  ------------------
 1791|    885|            uprv_strcmp(locale, "en_US") == 0) {
  ------------------
  |  |   38|    884|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    884|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1791:13): [True: 1, False: 883]
  ------------------
 1792|      2|        return true;
 1793|      2|    }
 1794|       |
 1795|       |    // common well-known Canonicalized.
 1796|    883|    umtx_initOnce(gKnownCanonicalizedInitOnce,
 1797|    883|                  &loadKnownCanonicalized, status);
 1798|    883|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1798:9): [True: 0, False: 883]
  ------------------
 1799|      0|        return false;
 1800|      0|    }
 1801|    883|    U_ASSERT(gKnownCanonicalized != nullptr);
  ------------------
  |  |   35|    883|#   define U_ASSERT(exp) (void)0
  ------------------
 1802|    883|    return uhash_geti(gKnownCanonicalized, locale) != 0;
  ------------------
  |  | 1008|    883|#define uhash_geti U_ICU_ENTRY_POINT_RENAME(uhash_geti)
  |  |  ------------------
  |  |  |  |  123|    883|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    883|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    883|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1803|    883|}
locid.cpp:_ZN6icu_7812_GLOBAL__N_122loadKnownCanonicalizedER10UErrorCode:
  518|      1|void U_CALLCONV loadKnownCanonicalized(UErrorCode &status) {
  519|      1|    ucln_common_registerCleanup(UCLN_COMMON_LOCALE_KNOWN_CANONICALIZED,
  ------------------
  |  |  617|      1|#define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|      1|                                cleanupKnownCanonicalized);
  521|      1|    LocalUHashtablePointer newKnownCanonicalizedMap(
  522|      1|        uhash_open(uhash_hashChars, uhash_compareChars, nullptr, &status));
  ------------------
  |  | 1030|      1|#define uhash_open U_ICU_ENTRY_POINT_RENAME(uhash_open)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      uhash_open(uhash_hashChars, uhash_compareChars, nullptr, &status));
  ------------------
  |  | 1011|      1|#define uhash_hashChars U_ICU_ENTRY_POINT_RENAME(uhash_hashChars)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      uhash_open(uhash_hashChars, uhash_compareChars, nullptr, &status));
  ------------------
  |  |  993|      1|#define uhash_compareChars U_ICU_ENTRY_POINT_RENAME(uhash_compareChars)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  523|      1|    for (int32_t i = 0;
  524|    179|            U_SUCCESS(status) && i < UPRV_LENGTHOF(KNOWN_CANONICALIZED);
  ------------------
  |  |   99|    179|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (524:13): [True: 179, False: 0]
  |  Branch (524:34): [True: 178, False: 1]
  ------------------
  525|    178|            i++) {
  526|    178|        uhash_puti(newKnownCanonicalizedMap.getAlias(),
  ------------------
  |  | 1033|    178|#define uhash_puti U_ICU_ENTRY_POINT_RENAME(uhash_puti)
  |  |  ------------------
  |  |  |  |  123|    178|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    178|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    178|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  527|    178|                   (void*)KNOWN_CANONICALIZED[i],
  528|    178|                   1, &status);
  529|    178|    }
  530|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (530:9): [True: 0, False: 1]
  ------------------
  531|      0|        return;
  532|      0|    }
  533|       |
  534|      1|    gKnownCanonicalized = newKnownCanonicalizedMap.orphan();
  535|      1|}
locid.cpp:_ZN12_GLOBAL__N_111locale_initER10UErrorCode:
  133|      1|void U_CALLCONV locale_init(UErrorCode &status) {
  134|      1|    U_NAMESPACE_USE
  ------------------
  |  |  112|      1|#   define U_NAMESPACE_USE using namespace U_ICU_NAMESPACE;
  ------------------
  135|       |
  136|      1|    U_ASSERT(gLocaleCache == nullptr);
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
  137|      1|    gLocaleCache = new Locale[static_cast<int>(eMAX_LOCALES)];
  138|      1|    if (gLocaleCache == nullptr) {
  ------------------
  |  Branch (138:9): [True: 0, False: 1]
  ------------------
  139|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  140|      0|        return;
  141|      0|    }
  142|      1|    ucln_common_registerCleanup(UCLN_COMMON_LOCALE, locale_cleanup);
  ------------------
  |  |  617|      1|#define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  143|      1|    gLocaleCache[eROOT]          = Locale("");
  144|      1|    gLocaleCache[eENGLISH]       = Locale("en");
  145|      1|    gLocaleCache[eFRENCH]        = Locale("fr");
  146|      1|    gLocaleCache[eGERMAN]        = Locale("de");
  147|      1|    gLocaleCache[eITALIAN]       = Locale("it");
  148|      1|    gLocaleCache[eJAPANESE]      = Locale("ja");
  149|      1|    gLocaleCache[eKOREAN]        = Locale("ko");
  150|      1|    gLocaleCache[eCHINESE]       = Locale("zh");
  151|      1|    gLocaleCache[eFRANCE]        = Locale("fr", "FR");
  152|      1|    gLocaleCache[eGERMANY]       = Locale("de", "DE");
  153|      1|    gLocaleCache[eITALY]         = Locale("it", "IT");
  154|      1|    gLocaleCache[eJAPAN]         = Locale("ja", "JP");
  155|      1|    gLocaleCache[eKOREA]         = Locale("ko", "KR");
  156|      1|    gLocaleCache[eCHINA]         = Locale("zh", "CN");
  157|      1|    gLocaleCache[eTAIWAN]        = Locale("zh", "TW");
  158|      1|    gLocaleCache[eUK]            = Locale("en", "GB");
  159|      1|    gLocaleCache[eUS]            = Locale("en", "US");
  160|      1|    gLocaleCache[eCANADA]        = Locale("en", "CA");
  161|      1|    gLocaleCache[eCANADA_FRENCH] = Locale("fr", "CA");
  162|      1|}

_ZN6icu_785MutexC2EPNS_6UMutexE:
   58|   212k|    Mutex(UMutex *mutex = nullptr) : fMutex(mutex) {
   59|   212k|        umtx_lock(fMutex);
  ------------------
  |  | 1250|   212k|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  123|   212k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   212k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   212k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   60|   212k|    }
_ZN6icu_785MutexD2Ev:
   61|   212k|    ~Mutex() {
   62|   212k|        umtx_unlock(fMutex);
  ------------------
  |  | 1251|   212k|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  123|   212k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   212k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   212k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   63|   212k|    }

_ZN6icu_7813Norm2AllModesC2EPNS_15Normalizer2ImplE:
  382|      1|            : impl(i), comp(*i, false), decomp(*i), fcd(*i), fcc(*i, true) {}
_ZN6icu_7818ComposeNormalizer2C2ERKNS_15Normalizer2ImplEa:
  253|      2|        Normalizer2WithImpl(ni), onlyContiguous(fcc) {}
_ZN6icu_7819Normalizer2WithImplC2ERKNS_15Normalizer2ImplE:
   34|      4|    Normalizer2WithImpl(const Normalizer2Impl &ni) : impl(ni) {}
_ZN6icu_7820DecomposeNormalizer2C2ERKNS_15Normalizer2ImplE:
  191|      1|    DecomposeNormalizer2(const Normalizer2Impl &ni) : Normalizer2WithImpl(ni) {}
_ZN6icu_7814FCDNormalizer2C2ERKNS_15Normalizer2ImplE:
  348|      1|    FCDNormalizer2(const Normalizer2Impl &ni) : Normalizer2WithImpl(ni) {}

_ZN6icu_7813Norm2AllModes14createInstanceEPNS_15Normalizer2ImplER10UErrorCode:
  216|      1|Norm2AllModes::createInstance(Normalizer2Impl *impl, UErrorCode &errorCode) {
  217|      1|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (217:8): [True: 0, False: 1]
  ------------------
  218|      0|        delete impl;
  219|      0|        return nullptr;
  220|      0|    }
  221|      1|    Norm2AllModes *allModes=new Norm2AllModes(impl);
  222|      1|    if(allModes==nullptr) {
  ------------------
  |  Branch (222:8): [True: 0, False: 1]
  ------------------
  223|      0|        errorCode=U_MEMORY_ALLOCATION_ERROR;
  224|      0|        delete impl;
  225|      0|        return nullptr;
  226|      0|    }
  227|      1|    return allModes;
  228|      1|}
_ZN6icu_7813Norm2AllModes17createNFCInstanceER10UErrorCode:
  232|      1|Norm2AllModes::createNFCInstance(UErrorCode &errorCode) {
  233|      1|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (233:8): [True: 0, False: 1]
  ------------------
  234|      0|        return nullptr;
  235|      0|    }
  236|      1|    Normalizer2Impl *impl=new Normalizer2Impl;
  237|      1|    if(impl==nullptr) {
  ------------------
  |  Branch (237:8): [True: 0, False: 1]
  ------------------
  238|      0|        errorCode=U_MEMORY_ALLOCATION_ERROR;
  239|      0|        return nullptr;
  240|      0|    }
  241|      1|    impl->init(norm2_nfc_data_indexes, &norm2_nfc_data_trie,
  242|      1|               norm2_nfc_data_extraData, norm2_nfc_data_smallFCD);
  243|      1|    return createInstance(impl, errorCode);
  244|      1|}
_ZN6icu_7813Norm2AllModes14getNFCInstanceER10UErrorCode:
  256|    159|Norm2AllModes::getNFCInstance(UErrorCode &errorCode) {
  257|    159|    if(U_FAILURE(errorCode)) { return nullptr; }
  ------------------
  |  Branch (257:8): [True: 0, False: 159]
  ------------------
  258|    159|    umtx_initOnce(nfcInitOnce, &initNFCSingleton, errorCode);
  259|    159|    return nfcSingleton;
  260|    159|}
_ZN6icu_7818Normalizer2Factory10getNFCImplER10UErrorCode:
  285|    159|Normalizer2Factory::getNFCImpl(UErrorCode &errorCode) {
  286|    159|    const Norm2AllModes *allModes=Norm2AllModes::getNFCInstance(errorCode);
  287|    159|    return allModes!=nullptr ? allModes->impl : nullptr;
  ------------------
  |  Branch (287:12): [True: 159, False: 0]
  ------------------
  288|    159|}
normalizer2.cpp:_ZN6icu_78L16initNFCSingletonER10UErrorCode:
  250|      1|static void U_CALLCONV initNFCSingleton(UErrorCode &errorCode) {
  251|      1|    nfcSingleton=Norm2AllModes::createNFCInstance(errorCode);
  252|      1|    ucln_common_registerCleanup(UCLN_COMMON_NORMALIZER2, uprv_normalizer2_cleanup);
  ------------------
  |  |  617|      1|#define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  253|      1|}

_ZN6icu_7816ReorderingBuffer4initEiR10UErrorCode:
  182|  35.6k|UBool ReorderingBuffer::init(int32_t destCapacity, UErrorCode &errorCode) {
  183|  35.6k|    int32_t length=str.length();
  184|  35.6k|    start=str.getBuffer(destCapacity);
  185|  35.6k|    if(start==nullptr) {
  ------------------
  |  Branch (185:8): [True: 0, False: 35.6k]
  ------------------
  186|       |        // getBuffer() already did str.setToBogus()
  187|      0|        errorCode=U_MEMORY_ALLOCATION_ERROR;
  188|      0|        return false;
  189|      0|    }
  190|  35.6k|    limit=start+length;
  191|  35.6k|    remainingCapacity=str.getCapacity()-length;
  192|  35.6k|    reorderStart=start;
  193|  35.6k|    if(start==limit) {
  ------------------
  |  Branch (193:8): [True: 35.3k, False: 239]
  ------------------
  194|  35.3k|        lastCC=0;
  195|  35.3k|    } else {
  196|    239|        setIterator();
  197|    239|        lastCC=previousCC();
  198|       |        // Set reorderStart after the last code point with cc<=1 if there is one.
  199|    239|        if(lastCC>1) {
  ------------------
  |  Branch (199:12): [True: 78, False: 161]
  ------------------
  200|    304|            while(previousCC()>1) {}
  ------------------
  |  Branch (200:19): [True: 226, False: 78]
  ------------------
  201|     78|        }
  202|    239|        reorderStart=codePointLimit;
  203|    239|    }
  204|  35.6k|    return true;
  205|  35.6k|}
_ZN6icu_7816ReorderingBuffer19appendSupplementaryEihR10UErrorCode:
  240|  18.2k|UBool ReorderingBuffer::appendSupplementary(UChar32 c, uint8_t cc, UErrorCode &errorCode) {
  241|  18.2k|    if(remainingCapacity<2 && !resize(2, errorCode)) {
  ------------------
  |  Branch (241:8): [True: 39, False: 18.2k]
  |  Branch (241:31): [True: 0, False: 39]
  ------------------
  242|      0|        return false;
  243|      0|    }
  244|  18.2k|    if(lastCC<=cc || cc==0) {
  ------------------
  |  Branch (244:8): [True: 9.51k, False: 8.72k]
  |  Branch (244:22): [True: 0, False: 8.72k]
  ------------------
  245|  9.51k|        limit[0]=U16_LEAD(c);
  ------------------
  |  |  123|  9.51k|#define U16_LEAD(supplementary) (UChar)(((supplementary)>>10)+0xd7c0)
  ------------------
  246|  9.51k|        limit[1]=U16_TRAIL(c);
  ------------------
  |  |  132|  9.51k|#define U16_TRAIL(supplementary) (UChar)(((supplementary)&0x3ff)|0xdc00)
  ------------------
  247|  9.51k|        limit+=2;
  248|  9.51k|        lastCC=cc;
  249|  9.51k|        if(cc<=1) {
  ------------------
  |  Branch (249:12): [True: 940, False: 8.57k]
  ------------------
  250|    940|            reorderStart=limit;
  251|    940|        }
  252|  9.51k|    } else {
  253|  8.72k|        insert(c, cc);
  254|  8.72k|    }
  255|  18.2k|    remainingCapacity-=2;
  256|  18.2k|    return true;
  257|  18.2k|}
_ZN6icu_7816ReorderingBuffer6appendEPKDsiahhR10UErrorCode:
  261|  2.77M|                               UErrorCode &errorCode) {
  262|  2.77M|    if(length==0) {
  ------------------
  |  Branch (262:8): [True: 0, False: 2.77M]
  ------------------
  263|      0|        return true;
  264|      0|    }
  265|  2.77M|    if(remainingCapacity<length && !resize(length, errorCode)) {
  ------------------
  |  Branch (265:8): [True: 687, False: 2.77M]
  |  Branch (265:36): [True: 0, False: 687]
  ------------------
  266|      0|        return false;
  267|      0|    }
  268|  2.77M|    remainingCapacity-=length;
  269|  2.77M|    if(lastCC<=leadCC || leadCC==0) {
  ------------------
  |  Branch (269:8): [True: 27.5k, False: 2.74M]
  |  Branch (269:26): [True: 0, False: 2.74M]
  ------------------
  270|  27.5k|        if(trailCC<=1) {
  ------------------
  |  Branch (270:12): [True: 291, False: 27.2k]
  ------------------
  271|    291|            reorderStart=limit+length;
  272|  27.2k|        } else if(leadCC<=1) {
  ------------------
  |  Branch (272:19): [True: 12.8k, False: 14.3k]
  ------------------
  273|  12.8k|            reorderStart=limit+1;  // Ok if not a code point boundary.
  274|  12.8k|        }
  275|  27.5k|        const char16_t *sLimit=s+length;
  276|  74.8k|        do { *limit++=*s++; } while(s!=sLimit);
  ------------------
  |  Branch (276:37): [True: 47.3k, False: 27.5k]
  ------------------
  277|  27.5k|        lastCC=trailCC;
  278|  2.74M|    } else {
  279|  2.74M|        int32_t i=0;
  280|  2.74M|        UChar32 c;
  281|  2.74M|        U16_NEXT(s, i, length, c);
  ------------------
  |  |  309|  2.74M|#define U16_NEXT(s, i, length, c) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  2.74M|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  310|  2.74M|    (c)=(s)[(i)++]; \
  |  |  311|  2.74M|    if(U16_IS_LEAD(c)) { \
  |  |  ------------------
  |  |  |  |   59|  2.74M|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (59:24): [True: 0, False: 2.74M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  312|      0|        uint16_t __c2; \
  |  |  313|      0|        if((i)!=(length) && U16_IS_TRAIL(__c2=(s)[(i)])) { \
  |  |  ------------------
  |  |  |  |   67|      0|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:25): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (313:12): [True: 0, False: 0]
  |  |  ------------------
  |  |  314|      0|            ++(i); \
  |  |  315|      0|            (c)=U16_GET_SUPPLEMENTARY((c), __c2); \
  |  |  ------------------
  |  |  |  |  113|      0|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |   99|      0|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  316|      0|        } \
  |  |  317|      0|    } \
  |  |  318|  2.74M|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  2.74M|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  282|  2.74M|        insert(c, leadCC);  // insert first code point
  283|  5.48M|        while(i<length) {
  ------------------
  |  Branch (283:15): [True: 2.74M, False: 2.74M]
  ------------------
  284|  2.74M|            U16_NEXT(s, i, length, c);
  ------------------
  |  |  309|  2.74M|#define U16_NEXT(s, i, length, c) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  2.74M|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  310|  2.74M|    (c)=(s)[(i)++]; \
  |  |  311|  2.74M|    if(U16_IS_LEAD(c)) { \
  |  |  ------------------
  |  |  |  |   59|  2.74M|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (59:24): [True: 0, False: 2.74M]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  312|      0|        uint16_t __c2; \
  |  |  313|      0|        if((i)!=(length) && U16_IS_TRAIL(__c2=(s)[(i)])) { \
  |  |  ------------------
  |  |  |  |   67|      0|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:25): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (313:12): [True: 0, False: 0]
  |  |  ------------------
  |  |  314|      0|            ++(i); \
  |  |  315|      0|            (c)=U16_GET_SUPPLEMENTARY((c), __c2); \
  |  |  ------------------
  |  |  |  |  113|      0|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |   99|      0|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  316|      0|        } \
  |  |  317|      0|    } \
  |  |  318|  2.74M|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  2.74M|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  285|  2.74M|            if(i<length) {
  ------------------
  |  Branch (285:16): [True: 0, False: 2.74M]
  ------------------
  286|      0|                if (isNFD) {
  ------------------
  |  Branch (286:21): [True: 0, False: 0]
  ------------------
  287|      0|                    leadCC = Normalizer2Impl::getCCFromYesOrMaybeYes(impl.getRawNorm16(c));
  288|      0|                } else {
  289|      0|                    leadCC = impl.getCC(impl.getNorm16(c));
  290|      0|                }
  291|  2.74M|            } else {
  292|  2.74M|                leadCC=trailCC;
  293|  2.74M|            }
  294|  2.74M|            append(c, leadCC, errorCode);
  295|  2.74M|        }
  296|  2.74M|    }
  297|  2.77M|    return true;
  298|  2.77M|}
_ZN6icu_7816ReorderingBuffer12appendZeroCCEiR10UErrorCode:
  300|  4.76k|UBool ReorderingBuffer::appendZeroCC(UChar32 c, UErrorCode &errorCode) {
  301|  4.76k|    int32_t cpLength=U16_LENGTH(c);
  ------------------
  |  |  141|  4.76k|#define U16_LENGTH(c) ((uint32_t)(c)<=0xffff ? 1 : 2)
  |  |  ------------------
  |  |  |  Branch (141:24): [True: 4.45k, False: 313]
  |  |  ------------------
  ------------------
  302|  4.76k|    if(remainingCapacity<cpLength && !resize(cpLength, errorCode)) {
  ------------------
  |  Branch (302:8): [True: 61, False: 4.70k]
  |  Branch (302:38): [True: 0, False: 61]
  ------------------
  303|      0|        return false;
  304|      0|    }
  305|  4.76k|    remainingCapacity-=cpLength;
  306|  4.76k|    if(cpLength==1) {
  ------------------
  |  Branch (306:8): [True: 4.45k, False: 313]
  ------------------
  307|  4.45k|        *limit++ = static_cast<char16_t>(c);
  308|  4.45k|    } else {
  309|    313|        limit[0]=U16_LEAD(c);
  ------------------
  |  |  123|    313|#define U16_LEAD(supplementary) (UChar)(((supplementary)>>10)+0xd7c0)
  ------------------
  310|    313|        limit[1]=U16_TRAIL(c);
  ------------------
  |  |  132|    313|#define U16_TRAIL(supplementary) (UChar)(((supplementary)&0x3ff)|0xdc00)
  ------------------
  311|    313|        limit+=2;
  312|    313|    }
  313|  4.76k|    lastCC=0;
  314|  4.76k|    reorderStart=limit;
  315|  4.76k|    return true;
  316|  4.76k|}
_ZN6icu_7816ReorderingBuffer12appendZeroCCEPKDsS2_R10UErrorCode:
  318|  4.22k|UBool ReorderingBuffer::appendZeroCC(const char16_t *s, const char16_t *sLimit, UErrorCode &errorCode) {
  319|  4.22k|    if(s==sLimit) {
  ------------------
  |  Branch (319:8): [True: 0, False: 4.22k]
  ------------------
  320|      0|        return true;
  321|      0|    }
  322|  4.22k|    int32_t length = static_cast<int32_t>(sLimit - s);
  323|  4.22k|    if(remainingCapacity<length && !resize(length, errorCode)) {
  ------------------
  |  Branch (323:8): [True: 70, False: 4.15k]
  |  Branch (323:36): [True: 0, False: 70]
  ------------------
  324|      0|        return false;
  325|      0|    }
  326|  4.22k|    u_memcpy(limit, s, length);
  ------------------
  |  |  334|  4.22k|#define u_memcpy U_ICU_ENTRY_POINT_RENAME(u_memcpy)
  |  |  ------------------
  |  |  |  |  123|  4.22k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.22k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.22k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  327|  4.22k|    limit+=length;
  328|  4.22k|    remainingCapacity-=length;
  329|  4.22k|    lastCC=0;
  330|  4.22k|    reorderStart=limit;
  331|  4.22k|    return true;
  332|  4.22k|}
_ZN6icu_7816ReorderingBuffer12removeSuffixEi:
  340|  4.06k|void ReorderingBuffer::removeSuffix(int32_t suffixLength) {
  341|  4.06k|    if(suffixLength<(limit-start)) {
  ------------------
  |  Branch (341:8): [True: 3.57k, False: 489]
  ------------------
  342|  3.57k|        limit-=suffixLength;
  343|  3.57k|        remainingCapacity+=suffixLength;
  344|  3.57k|    } else {
  345|    489|        limit=start;
  346|    489|        remainingCapacity=str.getCapacity();
  347|    489|    }
  348|  4.06k|    lastCC=0;
  349|  4.06k|    reorderStart=limit;
  350|  4.06k|}
_ZN6icu_7816ReorderingBuffer6resizeEiR10UErrorCode:
  352|  1.33k|UBool ReorderingBuffer::resize(int32_t appendLength, UErrorCode &errorCode) {
  353|  1.33k|    int32_t reorderStartIndex = static_cast<int32_t>(reorderStart - start);
  354|  1.33k|    int32_t length = static_cast<int32_t>(limit - start);
  355|  1.33k|    str.releaseBuffer(length);
  356|  1.33k|    int32_t newCapacity=length+appendLength;
  357|  1.33k|    int32_t doubleCapacity=2*str.getCapacity();
  358|  1.33k|    if(newCapacity<doubleCapacity) {
  ------------------
  |  Branch (358:8): [True: 1.31k, False: 18]
  ------------------
  359|  1.31k|        newCapacity=doubleCapacity;
  360|  1.31k|    }
  361|  1.33k|    if(newCapacity<256) {
  ------------------
  |  Branch (361:8): [True: 705, False: 625]
  ------------------
  362|    705|        newCapacity=256;
  363|    705|    }
  364|  1.33k|    start=str.getBuffer(newCapacity);
  365|  1.33k|    if(start==nullptr) {
  ------------------
  |  Branch (365:8): [True: 0, False: 1.33k]
  ------------------
  366|       |        // getBuffer() already did str.setToBogus()
  367|      0|        errorCode=U_MEMORY_ALLOCATION_ERROR;
  368|      0|        return false;
  369|      0|    }
  370|  1.33k|    reorderStart=start+reorderStartIndex;
  371|  1.33k|    limit=start+length;
  372|  1.33k|    remainingCapacity=str.getCapacity()-length;
  373|  1.33k|    return true;
  374|  1.33k|}
_ZN6icu_7816ReorderingBuffer12skipPreviousEv:
  376|  6.86M|void ReorderingBuffer::skipPrevious() {
  377|  6.86M|    codePointLimit=codePointStart;
  378|  6.86M|    char16_t c=*--codePointStart;
  379|  6.86M|    if(U16_IS_TRAIL(c) && start<codePointStart && U16_IS_LEAD(*(codePointStart-1))) {
  ------------------
  |  |   67|  13.7M|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 153k, False: 6.71M]
  |  |  ------------------
  ------------------
                  if(U16_IS_TRAIL(c) && start<codePointStart && U16_IS_LEAD(*(codePointStart-1))) {
  ------------------
  |  |   59|   153k|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 153k, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (379:27): [True: 153k, False: 0]
  ------------------
  380|   153k|        --codePointStart;
  381|   153k|    }
  382|  6.86M|}
_ZN6icu_7816ReorderingBuffer10previousCCEv:
  384|   712M|uint8_t ReorderingBuffer::previousCC() {
  385|   712M|    codePointLimit=codePointStart;
  386|   712M|    if(reorderStart>=codePointStart) {
  ------------------
  |  Branch (386:8): [True: 19.6k, False: 712M]
  ------------------
  387|  19.6k|        return 0;
  388|  19.6k|    }
  389|   712M|    UChar32 c=*--codePointStart;
  390|   712M|    char16_t c2;
  391|   712M|    if(U16_IS_TRAIL(c) && start<codePointStart && U16_IS_LEAD(c2=*(codePointStart-1))) {
  ------------------
  |  |   67|  1.42G|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 228k, False: 712M]
  |  |  ------------------
  ------------------
                  if(U16_IS_TRAIL(c) && start<codePointStart && U16_IS_LEAD(c2=*(codePointStart-1))) {
  ------------------
  |  |   59|   228k|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 228k, False: 20]
  |  |  ------------------
  ------------------
  |  Branch (391:27): [True: 228k, False: 9]
  ------------------
  392|   228k|        --codePointStart;
  393|   228k|        c=U16_GET_SUPPLEMENTARY(c2, c);
  ------------------
  |  |  113|   228k|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  ------------------
  |  |  |  |   99|   228k|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  ------------------
  ------------------
  394|   228k|    }
  395|   712M|    return impl.getCCFromYesOrMaybeYesCP(c);
  396|   712M|}
_ZN6icu_7816ReorderingBuffer6insertEih:
  400|  6.86M|void ReorderingBuffer::insert(UChar32 c, uint8_t cc) {
  401|   712M|    for(setIterator(), skipPrevious(); previousCC()>cc;) {}
  ------------------
  |  Branch (401:40): [True: 706M, False: 6.86M]
  ------------------
  402|       |    // insert c at codePointLimit, after the character with prevCC<=cc
  403|  6.86M|    char16_t *q=limit;
  404|  6.86M|    char16_t *r=limit+=U16_LENGTH(c);
  ------------------
  |  |  141|  6.86M|#define U16_LENGTH(c) ((uint32_t)(c)<=0xffff ? 1 : 2)
  |  |  ------------------
  |  |  |  Branch (141:24): [True: 6.85M, False: 8.72k]
  |  |  ------------------
  ------------------
  405|   713M|    do {
  406|   713M|        *--r=*--q;
  407|   713M|    } while(codePointLimit!=q);
  ------------------
  |  Branch (407:13): [True: 706M, False: 6.86M]
  ------------------
  408|  6.86M|    writeCodePoint(q, c);
  409|  6.86M|    if(cc<=1) {
  ------------------
  |  Branch (409:8): [True: 6.86k, False: 6.86M]
  ------------------
  410|  6.86k|        reorderStart=r;
  411|  6.86k|    }
  412|  6.86M|}
_ZN6icu_7815Normalizer2Impl4initEPKiPK7UCPTriePKtPKh:
  431|      1|                      const uint16_t *inExtraData, const uint8_t *inSmallFCD) {
  432|      1|    minDecompNoCP = static_cast<char16_t>(inIndexes[IX_MIN_DECOMP_NO_CP]);
  433|      1|    minCompNoMaybeCP = static_cast<char16_t>(inIndexes[IX_MIN_COMP_NO_MAYBE_CP]);
  434|      1|    minLcccCP = static_cast<char16_t>(inIndexes[IX_MIN_LCCC_CP]);
  435|       |
  436|      1|    minYesNo = static_cast<uint16_t>(inIndexes[IX_MIN_YES_NO]);
  437|      1|    minYesNoMappingsOnly = static_cast<uint16_t>(inIndexes[IX_MIN_YES_NO_MAPPINGS_ONLY]);
  438|      1|    minNoNo = static_cast<uint16_t>(inIndexes[IX_MIN_NO_NO]);
  439|      1|    minNoNoCompBoundaryBefore = static_cast<uint16_t>(inIndexes[IX_MIN_NO_NO_COMP_BOUNDARY_BEFORE]);
  440|      1|    minNoNoCompNoMaybeCC = static_cast<uint16_t>(inIndexes[IX_MIN_NO_NO_COMP_NO_MAYBE_CC]);
  441|      1|    minNoNoEmpty = static_cast<uint16_t>(inIndexes[IX_MIN_NO_NO_EMPTY]);
  442|      1|    limitNoNo = static_cast<uint16_t>(inIndexes[IX_LIMIT_NO_NO]);
  443|      1|    minMaybeNo = static_cast<uint16_t>(inIndexes[IX_MIN_MAYBE_NO]);
  444|      1|    minMaybeNoCombinesFwd = static_cast<uint16_t>(inIndexes[IX_MIN_MAYBE_NO_COMBINES_FWD]);
  445|      1|    minMaybeYes = static_cast<uint16_t>(inIndexes[IX_MIN_MAYBE_YES]);
  446|      1|    U_ASSERT((minMaybeNo & 7) == 0);  // 8-aligned for noNoDelta bit fields
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
  447|      1|    centerNoNoDelta = (minMaybeNo >> DELTA_SHIFT) - MAX_DELTA - 1;
  448|       |
  449|      1|    normTrie=inTrie;
  450|      1|    extraData=inExtraData;
  451|      1|    smallFCD=inSmallFCD;
  452|      1|}
_ZNK6icu_7815Normalizer2Impl9decomposeEPKDsS2_RNS_13UnicodeStringEiR10UErrorCode:
  570|  34.8k|                           UErrorCode &errorCode) const {
  571|  34.8k|    if(destLengthEstimate<0 && limit!=nullptr) {
  ------------------
  |  Branch (571:8): [True: 0, False: 34.8k]
  |  Branch (571:32): [True: 0, False: 0]
  ------------------
  572|      0|        destLengthEstimate = static_cast<int32_t>(limit - src);
  573|      0|    }
  574|  34.8k|    dest.remove();
  575|  34.8k|    ReorderingBuffer buffer(*this, dest);
  576|  34.8k|    if(buffer.init(destLengthEstimate, errorCode)) {
  ------------------
  |  Branch (576:8): [True: 34.8k, False: 0]
  ------------------
  577|  34.8k|        decompose(src, limit, &buffer, errorCode);
  578|  34.8k|    }
  579|  34.8k|}
_ZNK6icu_7815Normalizer2Impl9decomposeEPKDsS2_PNS_16ReorderingBufferER10UErrorCode:
  587|  34.8k|                           UErrorCode &errorCode) const {
  588|  34.8k|    UChar32 minNoCP=minDecompNoCP;
  589|  34.8k|    if(limit==nullptr) {
  ------------------
  |  Branch (589:8): [True: 0, False: 34.8k]
  ------------------
  590|      0|        src=copyLowPrefixFromNulTerminated(src, minNoCP, buffer, errorCode);
  591|      0|        if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (591:12): [True: 0, False: 0]
  ------------------
  592|      0|            return src;
  593|      0|        }
  594|      0|        limit=u_strchr(src, 0);
  ------------------
  |  |  385|      0|#define u_strchr U_ICU_ENTRY_POINT_RENAME(u_strchr)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  595|      0|    }
  596|       |
  597|  34.8k|    const char16_t *prevSrc;
  598|  34.8k|    UChar32 c=0;
  599|  34.8k|    uint16_t norm16=0;
  600|       |
  601|       |    // only for quick check
  602|  34.8k|    const char16_t *prevBoundary=src;
  603|  34.8k|    uint8_t prevCC=0;
  604|       |
  605|  5.08M|    for(;;) {
  606|       |        // count code units below the minimum or with irrelevant data for the quick check
  607|  5.08M|        for(prevSrc=src; src!=limit;) {
  ------------------
  |  Branch (607:26): [True: 5.04M, False: 34.8k]
  ------------------
  608|  5.04M|            if( (c=*src)<minNoCP ||
  ------------------
  |  Branch (608:17): [True: 0, False: 5.04M]
  ------------------
  609|  5.04M|                isMostDecompYesAndZeroCC(norm16=UCPTRIE_FAST_BMP_GET(normTrie, UCPTRIE_16, c))
  ------------------
  |  |  530|  5.04M|#define UCPTRIE_FAST_BMP_GET(trie, dataAccess, c) dataAccess(trie, _UCPTRIE_FAST_INDEX(trie, c))
  |  |  ------------------
  |  |  |  |  609|  5.04M|                isMostDecompYesAndZeroCC(norm16=UCPTRIE_FAST_BMP_GET(normTrie, UCPTRIE_16, c))
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  5.04M|#define UCPTRIE_16(trie, i) ((trie)->data.ptr16[i])
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (609:17): [True: 0, False: 5.04M]
  ------------------
  610|  5.04M|            ) {
  611|      0|                ++src;
  612|  5.04M|            } else if(!U16_IS_LEAD(c)) {
  ------------------
  |  |   59|  5.04M|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  ------------------
  |  Branch (612:23): [True: 5.02M, False: 21.7k]
  ------------------
  613|  5.02M|                break;
  614|  5.02M|            } else {
  615|  21.7k|                char16_t c2;
  616|  21.7k|                if((src+1)!=limit && U16_IS_TRAIL(c2=src[1])) {
  ------------------
  |  |   67|  21.7k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 21.7k, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (616:20): [True: 21.7k, False: 0]
  ------------------
  617|  21.7k|                    c=U16_GET_SUPPLEMENTARY(c, c2);
  ------------------
  |  |  113|  21.7k|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  ------------------
  |  |  |  |   99|  21.7k|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  ------------------
  ------------------
  618|  21.7k|                    norm16=UCPTRIE_FAST_SUPP_GET(normTrie, UCPTRIE_16, c);
  ------------------
  |  |  542|  21.7k|#define UCPTRIE_FAST_SUPP_GET(trie, dataAccess, c) dataAccess(trie, _UCPTRIE_SMALL_INDEX(trie, c))
  |  |  ------------------
  |  |  |  |  618|  21.7k|                    norm16=UCPTRIE_FAST_SUPP_GET(normTrie, UCPTRIE_16, c);
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  43.5k|#define UCPTRIE_16(trie, i) ((trie)->data.ptr16[i])
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (326:49): [True: 0, False: 21.7k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  619|  21.7k|                    if(isMostDecompYesAndZeroCC(norm16)) {
  ------------------
  |  Branch (619:24): [True: 0, False: 21.7k]
  ------------------
  620|      0|                        src+=2;
  621|  21.7k|                    } else {
  622|  21.7k|                        break;
  623|  21.7k|                    }
  624|  21.7k|                } else {
  625|      0|                    ++src;  // unpaired lead surrogate: inert
  626|      0|                }
  627|  21.7k|            }
  628|  5.04M|        }
  629|       |        // copy these code units all at once
  630|  5.08M|        if(src!=prevSrc) {
  ------------------
  |  Branch (630:12): [True: 0, False: 5.08M]
  ------------------
  631|      0|            if(buffer!=nullptr) {
  ------------------
  |  Branch (631:16): [True: 0, False: 0]
  ------------------
  632|      0|                if(!buffer->appendZeroCC(prevSrc, src, errorCode)) {
  ------------------
  |  Branch (632:20): [True: 0, False: 0]
  ------------------
  633|      0|                    break;
  634|      0|                }
  635|      0|            } else {
  636|      0|                prevCC=0;
  637|      0|                prevBoundary=src;
  638|      0|            }
  639|      0|        }
  640|  5.08M|        if(src==limit) {
  ------------------
  |  Branch (640:12): [True: 34.8k, False: 5.04M]
  ------------------
  641|  34.8k|            break;
  642|  34.8k|        }
  643|       |
  644|       |        // Check one above-minimum, relevant code point.
  645|  5.04M|        src+=U16_LENGTH(c);
  ------------------
  |  |  141|  5.04M|#define U16_LENGTH(c) ((uint32_t)(c)<=0xffff ? 1 : 2)
  |  |  ------------------
  |  |  |  Branch (141:24): [True: 5.02M, False: 21.7k]
  |  |  ------------------
  ------------------
  646|  5.04M|        if(buffer!=nullptr) {
  ------------------
  |  Branch (646:12): [True: 5.04M, False: 0]
  ------------------
  647|  5.04M|            if(!decompose(c, norm16, *buffer, errorCode)) {
  ------------------
  |  Branch (647:16): [True: 0, False: 5.04M]
  ------------------
  648|      0|                break;
  649|      0|            }
  650|  5.04M|        } else {
  651|      0|            if(isDecompYes(norm16)) {
  ------------------
  |  Branch (651:16): [True: 0, False: 0]
  ------------------
  652|      0|                uint8_t cc=getCCFromYesOrMaybeYes(norm16);
  653|      0|                if(prevCC<=cc || cc==0) {
  ------------------
  |  Branch (653:20): [True: 0, False: 0]
  |  Branch (653:34): [True: 0, False: 0]
  ------------------
  654|      0|                    prevCC=cc;
  655|      0|                    if(cc<=1) {
  ------------------
  |  Branch (655:24): [True: 0, False: 0]
  ------------------
  656|      0|                        prevBoundary=src;
  657|      0|                    }
  658|      0|                    continue;
  659|      0|                }
  660|      0|            }
  661|      0|            return prevBoundary;  // "no" or cc out of order
  662|      0|        }
  663|  5.04M|    }
  664|  34.8k|    return src;
  665|  34.8k|}
_ZNK6icu_7815Normalizer2Impl14decomposeShortEPKDsS2_aaRNS_16ReorderingBufferER10UErrorCode:
  674|  4.06k|                                ReorderingBuffer &buffer, UErrorCode &errorCode) const {
  675|  4.06k|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (675:9): [True: 0, False: 4.06k]
  ------------------
  676|      0|        return nullptr;
  677|      0|    }
  678|  30.6k|    while(src<limit) {
  ------------------
  |  Branch (678:11): [True: 26.6k, False: 4.06k]
  ------------------
  679|  26.6k|        if (stopAtCompBoundary && *src < minCompNoMaybeCP) {
  ------------------
  |  Branch (679:13): [True: 0, False: 26.6k]
  |  Branch (679:35): [True: 0, False: 0]
  ------------------
  680|      0|            return src;
  681|      0|        }
  682|  26.6k|        const char16_t *prevSrc = src;
  683|  26.6k|        UChar32 c;
  684|  26.6k|        uint16_t norm16;
  685|  26.6k|        UCPTRIE_FAST_U16_NEXT(normTrie, UCPTRIE_16, src, limit, c, norm16);
  ------------------
  |  |  386|  26.6k|#define UCPTRIE_FAST_U16_NEXT(trie, dataAccess, src, limit, c, result) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  26.6k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  387|  26.6k|    (c) = *(src)++; \
  |  |  388|  26.6k|    int32_t __index; \
  |  |  389|  26.6k|    if (!U16_IS_SURROGATE(c)) { \
  |  |  ------------------
  |  |  |  |   75|  26.6k|#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
  |  |  |  |  ------------------
  |  |  |  |  |  |  193|  26.6k|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (389:9): [True: 24.9k, False: 1.69k]
  |  |  ------------------
  |  |  390|  24.9k|        __index = _UCPTRIE_FAST_INDEX(trie, c); \
  |  |  ------------------
  |  |  |  |  602|  24.9k|    ((int32_t)(trie)->index[(c) >> UCPTRIE_FAST_SHIFT] + ((c) & UCPTRIE_FAST_DATA_MASK))
  |  |  ------------------
  |  |  391|  24.9k|    } else { \
  |  |  392|  1.69k|        uint16_t __c2; \
  |  |  393|  1.69k|        if (U16_IS_SURROGATE_LEAD(c) && (src) != (limit) && U16_IS_TRAIL(__c2 = *(src))) { \
  |  |  ------------------
  |  |  |  |   84|  3.39k|#define U16_IS_SURROGATE_LEAD(c) (((c)&0x400)==0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (84:34): [True: 1.69k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                       if (U16_IS_SURROGATE_LEAD(c) && (src) != (limit) && U16_IS_TRAIL(__c2 = *(src))) { \
  |  |  ------------------
  |  |  |  |   67|  1.69k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:25): [True: 1.69k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (393:41): [True: 1.69k, False: 0]
  |  |  ------------------
  |  |  394|  1.69k|            ++(src); \
  |  |  395|  1.69k|            (c) = U16_GET_SUPPLEMENTARY((c), __c2); \
  |  |  ------------------
  |  |  |  |  113|  1.69k|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |   99|  1.69k|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  396|  1.69k|            __index = _UCPTRIE_SMALL_INDEX(trie, c); \
  |  |  ------------------
  |  |  |  |  606|  1.69k|    ((c) >= (trie)->highStart ? \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (606:6): [True: 0, False: 1.69k]
  |  |  |  |  ------------------
  |  |  |  |  607|  1.69k|        (trie)->dataLength - UCPTRIE_HIGH_VALUE_NEG_DATA_OFFSET : \
  |  |  |  |  608|  1.69k|        ucptrie_internalSmallIndex(trie, c))
  |  |  |  |  ------------------
  |  |  |  |  |  |  810|  1.69k|#define ucptrie_internalSmallIndex U_ICU_ENTRY_POINT_RENAME(ucptrie_internalSmallIndex)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  123|  1.69k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  122|  1.69k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  121|  1.69k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  397|  1.69k|        } else { \
  |  |  398|      0|            __index = (trie)->dataLength - UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET; \
  |  |  399|      0|        } \
  |  |  400|  1.69k|    } \
  |  |  401|  26.6k|    (result) = dataAccess(trie, __index); \
  |  |  ------------------
  |  |  |  |  685|  26.6k|        UCPTRIE_FAST_U16_NEXT(normTrie, UCPTRIE_16, src, limit, c, norm16);
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  26.6k|#define UCPTRIE_16(trie, i) ((trie)->data.ptr16[i])
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  402|  26.6k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  26.6k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  686|  26.6k|        if (stopAtCompBoundary && norm16HasCompBoundaryBefore(norm16)) {
  ------------------
  |  Branch (686:13): [True: 0, False: 26.6k]
  |  Branch (686:35): [True: 0, False: 0]
  ------------------
  687|      0|            return prevSrc;
  688|      0|        }
  689|  26.6k|        if(!decompose(c, norm16, buffer, errorCode)) {
  ------------------
  |  Branch (689:12): [True: 0, False: 26.6k]
  ------------------
  690|      0|            return nullptr;
  691|      0|        }
  692|  26.6k|        if (stopAtCompBoundary && norm16HasCompBoundaryAfter(norm16, onlyContiguous)) {
  ------------------
  |  Branch (692:13): [True: 0, False: 26.6k]
  |  Branch (692:35): [True: 0, False: 0]
  ------------------
  693|      0|            return src;
  694|      0|        }
  695|  26.6k|    }
  696|  4.06k|    return src;
  697|  4.06k|}
_ZNK6icu_7815Normalizer2Impl9decomposeEitRNS_16ReorderingBufferER10UErrorCode:
  701|  5.07M|                                 UErrorCode &errorCode) const {
  702|       |    // get the decomposition and the lead and trail cc's
  703|  5.07M|    if (norm16 >= limitNoNo) {
  ------------------
  |  Branch (703:9): [True: 2.30M, False: 2.77M]
  ------------------
  704|  2.30M|        if (isMaybeYesOrNonZeroCC(norm16)) {
  ------------------
  |  Branch (704:13): [True: 2.30M, False: 0]
  ------------------
  705|  2.30M|            return buffer.append(c, getCCFromYesOrMaybeYes(norm16), errorCode);
  706|  2.30M|        } else if (norm16 < minMaybeNo) {
  ------------------
  |  Branch (706:20): [True: 0, False: 0]
  ------------------
  707|       |            // Maps to an isCompYesAndZeroCC.
  708|      0|            c=mapAlgorithmic(c, norm16);
  709|      0|            norm16=getRawNorm16(c);
  710|      0|        }
  711|  2.30M|    }
  712|  2.77M|    if (norm16 < minYesNo) {
  ------------------
  |  Branch (712:9): [True: 0, False: 2.77M]
  ------------------
  713|       |        // c does not decompose
  714|      0|        return buffer.append(c, 0, errorCode);
  715|  2.77M|    } else if(isHangulLV(norm16) || isHangulLVT(norm16)) {
  ------------------
  |  Branch (715:15): [True: 0, False: 2.77M]
  |  Branch (715:37): [True: 0, False: 2.77M]
  ------------------
  716|       |        // Hangul syllable: decompose algorithmically
  717|      0|        char16_t jamos[3];
  718|      0|        return buffer.appendZeroCC(jamos, jamos+Hangul::decompose(c, jamos), errorCode);
  719|      0|    }
  720|       |    // c decomposes, get everything from the variable-length extra data
  721|  2.77M|    const uint16_t *mapping=getData(norm16);
  722|  2.77M|    uint16_t firstUnit=*mapping;
  723|  2.77M|    int32_t length=firstUnit&MAPPING_LENGTH_MASK;
  724|  2.77M|    uint8_t leadCC, trailCC;
  725|  2.77M|    trailCC = static_cast<uint8_t>(firstUnit >> 8);
  726|  2.77M|    if(firstUnit&MAPPING_HAS_CCC_LCCC_WORD) {
  ------------------
  |  Branch (726:8): [True: 2.75M, False: 13.1k]
  ------------------
  727|  2.75M|        leadCC = static_cast<uint8_t>(*(mapping - 1) >> 8);
  728|  2.75M|    } else {
  729|  13.1k|        leadCC=0;
  730|  13.1k|    }
  731|  2.77M|    return buffer.append(reinterpret_cast<const char16_t*>(mapping) + 1, length, true, leadCC, trailCC, errorCode);
  732|  2.77M|}
_ZNK6icu_7815Normalizer2Impl16getDecompositionEiPDsRi:
  948|  4.17k|Normalizer2Impl::getDecomposition(UChar32 c, char16_t buffer[4], int32_t &length) const {
  949|  4.17k|    uint16_t norm16;
  950|  4.17k|    if(c<minDecompNoCP || isMaybeYesOrNonZeroCC(norm16=getNorm16(c))) {
  ------------------
  |  Branch (950:8): [True: 758, False: 3.41k]
  |  Branch (950:27): [True: 1.35k, False: 2.06k]
  ------------------
  951|       |        // c does not decompose
  952|  2.11k|        return nullptr;
  953|  2.11k|    }
  954|  2.06k|    const char16_t *decomp = nullptr;
  955|  2.06k|    if(isDecompNoAlgorithmic(norm16)) {
  ------------------
  |  Branch (955:8): [True: 286, False: 1.77k]
  ------------------
  956|       |        // Maps to an isCompYesAndZeroCC.
  957|    286|        c=mapAlgorithmic(c, norm16);
  958|    286|        decomp=buffer;
  959|    286|        length=0;
  960|    286|        U16_APPEND_UNSAFE(buffer, length, c);
  ------------------
  |  |  367|    286|#define U16_APPEND_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    286|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  368|    286|    if((uint32_t)(c)<=0xffff) { \
  |  |  ------------------
  |  |  |  Branch (368:8): [True: 286, False: 0]
  |  |  ------------------
  |  |  369|    286|        (s)[(i)++]=(uint16_t)(c); \
  |  |  370|    286|    } else { \
  |  |  371|      0|        (s)[(i)++]=(uint16_t)(((c)>>10)+0xd7c0); \
  |  |  372|      0|        (s)[(i)++]=(uint16_t)(((c)&0x3ff)|0xdc00); \
  |  |  373|      0|    } \
  |  |  374|    286|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    286|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  961|       |        // The mapping might decompose further.
  962|    286|        norm16 = getRawNorm16(c);
  963|    286|    }
  964|  2.06k|    if (norm16 < minYesNo) {
  ------------------
  |  Branch (964:9): [True: 801, False: 1.26k]
  ------------------
  965|    801|        return decomp;
  966|  1.26k|    } else if(isHangulLV(norm16) || isHangulLVT(norm16)) {
  ------------------
  |  Branch (966:15): [True: 2, False: 1.26k]
  |  Branch (966:37): [True: 9, False: 1.25k]
  ------------------
  967|       |        // Hangul syllable: decompose algorithmically
  968|     11|        length=Hangul::decompose(c, buffer);
  969|     11|        return buffer;
  970|     11|    }
  971|       |    // c decomposes, get everything from the variable-length extra data
  972|  1.25k|    const uint16_t *mapping=getData(norm16);
  973|  1.25k|    length=*mapping&MAPPING_LENGTH_MASK;
  974|  1.25k|    return reinterpret_cast<const char16_t*>(mapping) + 1;
  975|  2.06k|}
_ZNK6icu_7815Normalizer2Impl29norm16HasDecompBoundaryBeforeEt:
 1066|  20.2k|UBool Normalizer2Impl::norm16HasDecompBoundaryBefore(uint16_t norm16) const {
 1067|  20.2k|    if (norm16 < minNoNoCompNoMaybeCC) {
  ------------------
  |  Branch (1067:9): [True: 3.04k, False: 17.2k]
  ------------------
 1068|  3.04k|        return true;
 1069|  3.04k|    }
 1070|  17.2k|    if (norm16 >= limitNoNo) {
  ------------------
  |  Branch (1070:9): [True: 2.71k, False: 14.5k]
  ------------------
 1071|  2.71k|        return norm16 <= MIN_NORMAL_MAYBE_YES || norm16 == JAMO_VT;
  ------------------
  |  Branch (1071:16): [True: 196, False: 2.51k]
  |  Branch (1071:50): [True: 0, False: 2.51k]
  ------------------
 1072|  2.71k|    }
 1073|       |    // c decomposes, get everything from the variable-length extra data
 1074|  14.5k|    const uint16_t *mapping=getDataForYesOrNo(norm16);
 1075|  14.5k|    uint16_t firstUnit=*mapping;
 1076|       |    // true if leadCC==0 (hasFCDBoundaryBefore())
 1077|  14.5k|    return (firstUnit&MAPPING_HAS_CCC_LCCC_WORD)==0 || (*(mapping-1)&0xff00)==0;
  ------------------
  |  Branch (1077:12): [True: 0, False: 14.5k]
  |  Branch (1077:56): [True: 0, False: 14.5k]
  ------------------
 1078|  17.2k|}
_ZNK6icu_7815Normalizer2Impl28norm16HasDecompBoundaryAfterEt:
 1090|  17.0k|UBool Normalizer2Impl::norm16HasDecompBoundaryAfter(uint16_t norm16) const {
 1091|  17.0k|    if(norm16 <= minYesNo || isHangulLVT(norm16)) {
  ------------------
  |  Branch (1091:8): [True: 0, False: 17.0k]
  |  Branch (1091:30): [True: 0, False: 17.0k]
  ------------------
 1092|      0|        return true;
 1093|      0|    }
 1094|  17.0k|    if (norm16 >= limitNoNo) {
  ------------------
  |  Branch (1094:9): [True: 2.51k, False: 14.5k]
  ------------------
 1095|  2.51k|        if (isMaybeYesOrNonZeroCC(norm16)) {
  ------------------
  |  Branch (1095:13): [True: 2.51k, False: 0]
  ------------------
 1096|  2.51k|            return norm16 <= MIN_NORMAL_MAYBE_YES || norm16 == JAMO_VT;
  ------------------
  |  Branch (1096:20): [True: 0, False: 2.51k]
  |  Branch (1096:54): [True: 0, False: 2.51k]
  ------------------
 1097|  2.51k|        } else if (norm16 < minMaybeNo) {
  ------------------
  |  Branch (1097:20): [True: 0, False: 0]
  ------------------
 1098|       |            // Maps to an isCompYesAndZeroCC.
 1099|      0|            return (norm16 & DELTA_TCCC_MASK) <= DELTA_TCCC_1;
 1100|      0|        }
 1101|  2.51k|    }
 1102|       |    // c decomposes, get everything from the variable-length extra data
 1103|  14.5k|    const uint16_t *mapping=getData(norm16);
 1104|  14.5k|    uint16_t firstUnit=*mapping;
 1105|       |    // decomp after-boundary: same as hasFCDBoundaryAfter(),
 1106|       |    // fcd16<=1 || trailCC==0
 1107|  14.5k|    if(firstUnit>0x1ff) {
  ------------------
  |  Branch (1107:8): [True: 14.5k, False: 0]
  ------------------
 1108|  14.5k|        return false;  // trailCC>1
 1109|  14.5k|    }
 1110|      0|    if(firstUnit<=0xff) {
  ------------------
  |  Branch (1110:8): [True: 0, False: 0]
  ------------------
 1111|      0|        return true;  // trailCC==0
 1112|      0|    }
 1113|       |    // if(trailCC==1) test leadCC==0, same as checking for before-boundary
 1114|       |    // true if leadCC==0 (hasFCDBoundaryBefore())
 1115|      0|    return (firstUnit&MAPPING_HAS_CCC_LCCC_WORD)==0 || (*(mapping-1)&0xff00)==0;
  ------------------
  |  Branch (1115:12): [True: 0, False: 0]
  |  Branch (1115:56): [True: 0, False: 0]
  ------------------
 1116|      0|}
_ZNK6icu_7815Normalizer2Impl20getFCD16FromNormDataEi:
 2248|  53.3M|uint16_t Normalizer2Impl::getFCD16FromNormData(UChar32 c) const {
 2249|  53.3M|    uint16_t norm16=getNorm16(c);
 2250|  53.3M|    if (norm16 >= limitNoNo) {
  ------------------
  |  Branch (2250:9): [True: 50.5M, False: 2.79M]
  ------------------
 2251|  50.5M|        if(norm16>=MIN_NORMAL_MAYBE_YES) {
  ------------------
  |  Branch (2251:12): [True: 50.5M, False: 438]
  ------------------
 2252|       |            // combining mark
 2253|  50.5M|            norm16=getCCFromNormalYesOrMaybe(norm16);
 2254|  50.5M|            return norm16|(norm16<<8);
 2255|  50.5M|        } else if(norm16>=minMaybeYes) {
  ------------------
  |  Branch (2255:19): [True: 224, False: 214]
  ------------------
 2256|    224|            return 0;
 2257|    224|        } else if(norm16<minMaybeNo) {  // isDecompNoAlgorithmic(norm16)
  ------------------
  |  Branch (2257:19): [True: 0, False: 214]
  ------------------
 2258|      0|            uint16_t deltaTrailCC = norm16 & DELTA_TCCC_MASK;
 2259|      0|            if (deltaTrailCC <= DELTA_TCCC_1) {
  ------------------
  |  Branch (2259:17): [True: 0, False: 0]
  ------------------
 2260|      0|                return deltaTrailCC >> OFFSET_SHIFT;
 2261|      0|            }
 2262|       |            // Maps to an isCompYesAndZeroCC.
 2263|      0|            c=mapAlgorithmic(c, norm16);
 2264|      0|            norm16=getRawNorm16(c);
 2265|      0|        }
 2266|  50.5M|    }
 2267|  2.79M|    if(norm16<=minYesNo || isHangulLVT(norm16)) {
  ------------------
  |  Branch (2267:8): [True: 12.8k, False: 2.77M]
  |  Branch (2267:28): [True: 0, False: 2.77M]
  ------------------
 2268|       |        // no decomposition or Hangul syllable, all zeros
 2269|  12.8k|        return 0;
 2270|  12.8k|    }
 2271|       |    // c decomposes, get everything from the variable-length extra data
 2272|  2.77M|    const uint16_t *mapping=getData(norm16);
 2273|  2.77M|    uint16_t firstUnit=*mapping;
 2274|  2.77M|    norm16=firstUnit>>8;  // tccc
 2275|  2.77M|    if(firstUnit&MAPPING_HAS_CCC_LCCC_WORD) {
  ------------------
  |  Branch (2275:8): [True: 2.75M, False: 23.7k]
  ------------------
 2276|  2.75M|        norm16|=*(mapping-1)&0xff00;  // lccc
 2277|  2.75M|    }
 2278|  2.77M|    return norm16;
 2279|  2.79M|}
_ZNK6icu_7815Normalizer2Impl7makeFCDEPKDsS2_PNS_16ReorderingBufferER10UErrorCode:
 2307|  1.86k|                         UErrorCode &errorCode) const {
 2308|       |    // Tracks the last FCD-safe boundary, before lccc=0 or after properly-ordered tccc<=1.
 2309|       |    // Similar to the prevBoundary in the compose() implementation.
 2310|  1.86k|    const char16_t *prevBoundary=src;
 2311|  1.86k|    int32_t prevFCD16=0;
 2312|  1.86k|    if(limit==nullptr) {
  ------------------
  |  Branch (2312:8): [True: 0, False: 1.86k]
  ------------------
 2313|      0|        src=copyLowPrefixFromNulTerminated(src, minLcccCP, buffer, errorCode);
 2314|      0|        if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (2314:12): [True: 0, False: 0]
  ------------------
 2315|      0|            return src;
 2316|      0|        }
 2317|      0|        if(prevBoundary<src) {
  ------------------
  |  Branch (2317:12): [True: 0, False: 0]
  ------------------
 2318|      0|            prevBoundary=src;
 2319|       |            // We know that the previous character's lccc==0.
 2320|       |            // Fetching the fcd16 value was deferred for this below-U+0300 code point.
 2321|      0|            prevFCD16=getFCD16(*(src-1));
 2322|      0|            if(prevFCD16>1) {
  ------------------
  |  Branch (2322:16): [True: 0, False: 0]
  ------------------
 2323|      0|                --prevBoundary;
 2324|      0|            }
 2325|      0|        }
 2326|      0|        limit=u_strchr(src, 0);
  ------------------
  |  |  385|      0|#define u_strchr U_ICU_ENTRY_POINT_RENAME(u_strchr)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2327|      0|    }
 2328|       |
 2329|       |    // Note: In this function we use buffer->appendZeroCC() because we track
 2330|       |    // the lead and trail combining classes here, rather than leaving it to
 2331|       |    // the ReorderingBuffer.
 2332|       |    // The exception is the call to decomposeShort() which uses the buffer
 2333|       |    // in the normal way.
 2334|       |
 2335|  1.86k|    const char16_t *prevSrc;
 2336|  1.86k|    UChar32 c=0;
 2337|  1.86k|    uint16_t fcd16=0;
 2338|       |
 2339|  14.2k|    for(;;) {
 2340|       |        // count code units with lccc==0
 2341|  34.5k|        for(prevSrc=src; src!=limit;) {
  ------------------
  |  Branch (2341:26): [True: 33.4k, False: 1.13k]
  ------------------
 2342|  33.4k|            if((c=*src)<minLcccCP) {
  ------------------
  |  Branch (2342:16): [True: 13.1k, False: 20.3k]
  ------------------
 2343|  13.1k|                prevFCD16=~c;
 2344|  13.1k|                ++src;
 2345|  20.3k|            } else if(!singleLeadMightHaveNonZeroFCD16(c)) {
  ------------------
  |  Branch (2345:23): [True: 4.36k, False: 15.9k]
  ------------------
 2346|  4.36k|                prevFCD16=0;
 2347|  4.36k|                ++src;
 2348|  15.9k|            } else {
 2349|  15.9k|                if(U16_IS_LEAD(c)) {
  ------------------
  |  |   59|  15.9k|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 2.45k, False: 13.5k]
  |  |  ------------------
  ------------------
 2350|  2.45k|                    char16_t c2;
 2351|  2.45k|                    if((src+1)!=limit && U16_IS_TRAIL(c2=src[1])) {
  ------------------
  |  |   67|  2.42k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 2.13k, False: 297]
  |  |  ------------------
  ------------------
  |  Branch (2351:24): [True: 2.42k, False: 23]
  ------------------
 2352|  2.13k|                        c=U16_GET_SUPPLEMENTARY(c, c2);
  ------------------
  |  |  113|  2.13k|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  ------------------
  |  |  |  |   99|  2.13k|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  ------------------
  ------------------
 2353|  2.13k|                    }
 2354|  2.45k|                }
 2355|  15.9k|                if((fcd16=getFCD16FromNormData(c))<=0xff) {
  ------------------
  |  Branch (2355:20): [True: 2.84k, False: 13.1k]
  ------------------
 2356|  2.84k|                    prevFCD16=fcd16;
 2357|  2.84k|                    src+=U16_LENGTH(c);
  ------------------
  |  |  141|  2.84k|#define U16_LENGTH(c) ((uint32_t)(c)<=0xffff ? 1 : 2)
  |  |  ------------------
  |  |  |  Branch (141:24): [True: 1.48k, False: 1.35k]
  |  |  ------------------
  ------------------
 2358|  13.1k|                } else {
 2359|  13.1k|                    break;
 2360|  13.1k|                }
 2361|  15.9k|            }
 2362|  33.4k|        }
 2363|       |        // copy these code units all at once
 2364|  14.2k|        if(src!=prevSrc) {
  ------------------
  |  Branch (2364:12): [True: 5.70k, False: 8.55k]
  ------------------
 2365|  5.70k|            if(buffer!=nullptr && !buffer->appendZeroCC(prevSrc, src, errorCode)) {
  ------------------
  |  Branch (2365:16): [True: 4.22k, False: 1.48k]
  |  Branch (2365:35): [True: 0, False: 4.22k]
  ------------------
 2366|      0|                break;
 2367|      0|            }
 2368|  5.70k|            if(src==limit) {
  ------------------
  |  Branch (2368:16): [True: 479, False: 5.22k]
  ------------------
 2369|    479|                break;
 2370|    479|            }
 2371|  5.22k|            prevBoundary=src;
 2372|       |            // We know that the previous character's lccc==0.
 2373|  5.22k|            if(prevFCD16<0) {
  ------------------
  |  Branch (2373:16): [True: 1.11k, False: 4.11k]
  ------------------
 2374|       |                // Fetching the fcd16 value was deferred for this below-minLcccCP code point.
 2375|  1.11k|                UChar32 prev=~prevFCD16;
 2376|  1.11k|                if(prev<minDecompNoCP) {
  ------------------
  |  Branch (2376:20): [True: 608, False: 507]
  ------------------
 2377|    608|                    prevFCD16=0;
 2378|    608|                } else {
 2379|    507|                    prevFCD16=getFCD16FromNormData(prev);
 2380|    507|                    if(prevFCD16>1) {
  ------------------
  |  Branch (2380:24): [True: 313, False: 194]
  ------------------
 2381|    313|                        --prevBoundary;
 2382|    313|                    }
 2383|    507|                }
 2384|  4.11k|            } else {
 2385|  4.11k|                const char16_t *p=src-1;
 2386|  4.11k|                if(U16_IS_TRAIL(*p) && prevSrc<p && U16_IS_LEAD(*(p-1))) {
  ------------------
  |  |   67|  8.22k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 2.83k, False: 1.28k]
  |  |  ------------------
  ------------------
                              if(U16_IS_TRAIL(*p) && prevSrc<p && U16_IS_LEAD(*(p-1))) {
  ------------------
  |  |   59|  1.91k|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 1.52k, False: 383]
  |  |  ------------------
  ------------------
  |  Branch (2386:40): [True: 1.91k, False: 922]
  ------------------
 2387|  1.52k|                    --p;
 2388|       |                    // Need to fetch the previous character's FCD value because
 2389|       |                    // prevFCD16 was just for the trail surrogate code point.
 2390|  1.52k|                    prevFCD16=getFCD16FromNormData(U16_GET_SUPPLEMENTARY(p[0], p[1]));
  ------------------
  |  |  113|  1.52k|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  ------------------
  |  |  |  |   99|  1.52k|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  ------------------
  ------------------
 2391|       |                    // Still known to have lccc==0 because its lead surrogate unit had lccc==0.
 2392|  1.52k|                }
 2393|  4.11k|                if(prevFCD16>1) {
  ------------------
  |  Branch (2393:20): [True: 1.54k, False: 2.57k]
  ------------------
 2394|  1.54k|                    prevBoundary=p;
 2395|  1.54k|                }
 2396|  4.11k|            }
 2397|       |            // The start of the current character (c).
 2398|  5.22k|            prevSrc=src;
 2399|  8.55k|        } else if(src==limit) {
  ------------------
  |  Branch (2399:19): [True: 655, False: 7.89k]
  ------------------
 2400|    655|            break;
 2401|    655|        }
 2402|       |
 2403|  13.1k|        src+=U16_LENGTH(c);
  ------------------
  |  |  141|  13.1k|#define U16_LENGTH(c) ((uint32_t)(c)<=0xffff ? 1 : 2)
  |  |  ------------------
  |  |  |  Branch (141:24): [True: 12.3k, False: 773]
  |  |  ------------------
  ------------------
 2404|       |        // The current character (c) at [prevSrc..src[ has a non-zero lead combining class.
 2405|       |        // Check for proper order, and decompose locally if necessary.
 2406|  13.1k|        if((prevFCD16&0xff)<=(fcd16>>8)) {
  ------------------
  |  Branch (2406:12): [True: 8.32k, False: 4.79k]
  ------------------
 2407|       |            // proper order: prev tccc <= current lccc
 2408|  8.32k|            if((fcd16&0xff)<=1) {
  ------------------
  |  Branch (2408:16): [True: 587, False: 7.74k]
  ------------------
 2409|    587|                prevBoundary=src;
 2410|    587|            }
 2411|  8.32k|            if(buffer!=nullptr && !buffer->appendZeroCC(c, errorCode)) {
  ------------------
  |  Branch (2411:16): [True: 4.76k, False: 3.56k]
  |  Branch (2411:35): [True: 0, False: 4.76k]
  ------------------
 2412|      0|                break;
 2413|      0|            }
 2414|  8.32k|            prevFCD16=fcd16;
 2415|  8.32k|            continue;
 2416|  8.32k|        } else if(buffer==nullptr) {
  ------------------
  |  Branch (2416:19): [True: 728, False: 4.06k]
  ------------------
 2417|    728|            return prevBoundary;  // quick check "no"
 2418|  4.06k|        } else {
 2419|       |            /*
 2420|       |             * Back out the part of the source that we copied or appended
 2421|       |             * already but is now going to be decomposed.
 2422|       |             * prevSrc is set to after what was copied/appended.
 2423|       |             */
 2424|  4.06k|            buffer->removeSuffix(static_cast<int32_t>(prevSrc - prevBoundary));
 2425|       |            /*
 2426|       |             * Find the part of the source that needs to be decomposed,
 2427|       |             * up to the next safe boundary.
 2428|       |             */
 2429|  4.06k|            src=findNextFCDBoundary(src, limit);
 2430|       |            /*
 2431|       |             * The source text does not fulfill the conditions for FCD.
 2432|       |             * Decompose and reorder a limited piece of the text.
 2433|       |             */
 2434|  4.06k|            decomposeShort(prevBoundary, src, false, false, *buffer, errorCode);
 2435|  4.06k|            if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (2435:17): [True: 0, False: 4.06k]
  ------------------
 2436|      0|                break;
 2437|      0|            }
 2438|  4.06k|            prevBoundary=src;
 2439|  4.06k|            prevFCD16=0;
 2440|  4.06k|        }
 2441|  13.1k|    }
 2442|  1.13k|    return src;
 2443|  1.86k|}
_ZNK6icu_7815Normalizer2Impl19findNextFCDBoundaryEPKDsS2_:
 2494|  4.06k|const char16_t *Normalizer2Impl::findNextFCDBoundary(const char16_t *p, const char16_t *limit) const {
 2495|  21.0k|    while(p<limit) {
  ------------------
  |  Branch (2495:11): [True: 20.6k, False: 456]
  ------------------
 2496|  20.6k|        const char16_t *codePointStart=p;
 2497|  20.6k|        UChar32 c;
 2498|  20.6k|        uint16_t norm16;
 2499|  20.6k|        UCPTRIE_FAST_U16_NEXT(normTrie, UCPTRIE_16, p, limit, c, norm16);
  ------------------
  |  |  386|  20.6k|#define UCPTRIE_FAST_U16_NEXT(trie, dataAccess, src, limit, c, result) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  20.6k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  387|  20.6k|    (c) = *(src)++; \
  |  |  388|  20.6k|    int32_t __index; \
  |  |  389|  20.6k|    if (!U16_IS_SURROGATE(c)) { \
  |  |  ------------------
  |  |  |  |   75|  20.6k|#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
  |  |  |  |  ------------------
  |  |  |  |  |  |  193|  20.6k|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (389:9): [True: 17.8k, False: 2.75k]
  |  |  ------------------
  |  |  390|  17.8k|        __index = _UCPTRIE_FAST_INDEX(trie, c); \
  |  |  ------------------
  |  |  |  |  602|  17.8k|    ((int32_t)(trie)->index[(c) >> UCPTRIE_FAST_SHIFT] + ((c) & UCPTRIE_FAST_DATA_MASK))
  |  |  ------------------
  |  |  391|  17.8k|    } else { \
  |  |  392|  2.75k|        uint16_t __c2; \
  |  |  393|  2.75k|        if (U16_IS_SURROGATE_LEAD(c) && (src) != (limit) && U16_IS_TRAIL(__c2 = *(src))) { \
  |  |  ------------------
  |  |  |  |   84|  5.51k|#define U16_IS_SURROGATE_LEAD(c) (((c)&0x400)==0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (84:34): [True: 1.72k, False: 1.03k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |                       if (U16_IS_SURROGATE_LEAD(c) && (src) != (limit) && U16_IS_TRAIL(__c2 = *(src))) { \
  |  |  ------------------
  |  |  |  |   67|  1.71k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:25): [True: 1.61k, False: 92]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (393:41): [True: 1.71k, False: 10]
  |  |  ------------------
  |  |  394|  1.61k|            ++(src); \
  |  |  395|  1.61k|            (c) = U16_GET_SUPPLEMENTARY((c), __c2); \
  |  |  ------------------
  |  |  |  |  113|  1.61k|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |   99|  1.61k|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  396|  1.61k|            __index = _UCPTRIE_SMALL_INDEX(trie, c); \
  |  |  ------------------
  |  |  |  |  606|  1.61k|    ((c) >= (trie)->highStart ? \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (606:6): [True: 205, False: 1.41k]
  |  |  |  |  ------------------
  |  |  |  |  607|  1.61k|        (trie)->dataLength - UCPTRIE_HIGH_VALUE_NEG_DATA_OFFSET : \
  |  |  |  |  608|  1.61k|        ucptrie_internalSmallIndex(trie, c))
  |  |  |  |  ------------------
  |  |  |  |  |  |  810|  1.41k|#define ucptrie_internalSmallIndex U_ICU_ENTRY_POINT_RENAME(ucptrie_internalSmallIndex)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  123|  1.41k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  122|  1.41k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  |  121|  1.41k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  397|  1.61k|        } else { \
  |  |  398|  1.14k|            __index = (trie)->dataLength - UCPTRIE_ERROR_VALUE_NEG_DATA_OFFSET; \
  |  |  399|  1.14k|        } \
  |  |  400|  2.75k|    } \
  |  |  401|  20.6k|    (result) = dataAccess(trie, __index); \
  |  |  ------------------
  |  |  |  | 2499|  20.6k|        UCPTRIE_FAST_U16_NEXT(normTrie, UCPTRIE_16, p, limit, c, norm16);
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  20.6k|#define UCPTRIE_16(trie, i) ((trie)->data.ptr16[i])
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  402|  20.6k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  20.6k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2500|  20.6k|        if (c < minLcccCP || norm16HasDecompBoundaryBefore(norm16)) {
  ------------------
  |  Branch (2500:13): [True: 373, False: 20.2k]
  |  Branch (2500:30): [True: 3.23k, False: 17.0k]
  ------------------
 2501|  3.61k|            return codePointStart;
 2502|  3.61k|        }
 2503|  17.0k|        if (norm16HasDecompBoundaryAfter(norm16)) {
  ------------------
  |  Branch (2503:13): [True: 0, False: 17.0k]
  ------------------
 2504|      0|            return p;
 2505|      0|        }
 2506|  17.0k|    }
 2507|    456|    return p;
 2508|  4.06k|}

_ZN6icu_786Hangul9decomposeEiPDs:
  102|     11|    static inline int32_t decompose(UChar32 c, char16_t buffer[3]) {
  103|     11|        c-=HANGUL_BASE;
  104|     11|        UChar32 c2=c%JAMO_T_COUNT;
  105|     11|        c/=JAMO_T_COUNT;
  106|     11|        buffer[0] = static_cast<char16_t>(JAMO_L_BASE + c / JAMO_V_COUNT);
  107|     11|        buffer[1] = static_cast<char16_t>(JAMO_V_BASE + c % JAMO_V_COUNT);
  108|     11|        if(c2==0) {
  ------------------
  |  Branch (108:12): [True: 2, False: 9]
  ------------------
  109|      2|            return 2;
  110|      9|        } else {
  111|      9|            buffer[2] = static_cast<char16_t>(JAMO_T_BASE + c2);
  112|      9|            return 3;
  113|      9|        }
  114|     11|    }
_ZN6icu_7816ReorderingBufferC2ERKNS_15Normalizer2ImplERNS_13UnicodeStringE:
  143|  35.6k|        impl(ni), str(dest),
  144|  35.6k|        start(nullptr), reorderStart(nullptr), limit(nullptr),
  145|  35.6k|        remainingCapacity(0), lastCC(0) {}
_ZN6icu_7816ReorderingBufferD2Ev:
  148|  35.6k|    ~ReorderingBuffer() {
  149|  35.6k|        if (start != nullptr) {
  ------------------
  |  Branch (149:13): [True: 35.6k, False: 0]
  ------------------
  150|  35.6k|            str.releaseBuffer(static_cast<int32_t>(limit - start));
  151|  35.6k|        }
  152|  35.6k|    }
_ZN6icu_7816ReorderingBuffer6appendEihR10UErrorCode:
  164|  5.04M|    UBool append(UChar32 c, uint8_t cc, UErrorCode &errorCode) {
  165|  5.04M|        return (c<=0xffff) ?
  ------------------
  |  Branch (165:16): [True: 5.02M, False: 18.2k]
  ------------------
  166|  5.02M|            appendBMP(static_cast<char16_t>(c), cc, errorCode) :
  167|  5.04M|            appendSupplementary(c, cc, errorCode);
  168|  5.04M|    }
_ZN6icu_7816ReorderingBuffer9appendBMPEDshR10UErrorCode:
  172|  5.02M|    UBool appendBMP(char16_t c, uint8_t cc, UErrorCode &errorCode) {
  173|  5.02M|        if(remainingCapacity==0 && !resize(1, errorCode)) {
  ------------------
  |  Branch (173:12): [True: 473, False: 5.02M]
  |  Branch (173:36): [True: 0, False: 473]
  ------------------
  174|      0|            return false;
  175|      0|        }
  176|  5.02M|        if(lastCC<=cc || cc==0) {
  ------------------
  |  Branch (176:12): [True: 910k, False: 4.11M]
  |  Branch (176:26): [True: 0, False: 4.11M]
  ------------------
  177|   910k|            *limit++=c;
  178|   910k|            lastCC=cc;
  179|   910k|            if(cc<=1) {
  ------------------
  |  Branch (179:16): [True: 232, False: 910k]
  ------------------
  180|    232|                reorderStart=limit;
  181|    232|            }
  182|  4.11M|        } else {
  183|  4.11M|            insert(c, cc);
  184|  4.11M|        }
  185|  5.02M|        --remainingCapacity;
  186|  5.02M|        return true;
  187|  5.02M|    }
_ZN6icu_7816ReorderingBuffer14writeCodePointEPDsi:
  216|  6.86M|    static void writeCodePoint(char16_t *p, UChar32 c) {
  217|  6.86M|        if(c<=0xffff) {
  ------------------
  |  Branch (217:12): [True: 6.85M, False: 8.72k]
  ------------------
  218|  6.85M|            *p = static_cast<char16_t>(c);
  219|  6.85M|        } else {
  220|  8.72k|            p[0]=U16_LEAD(c);
  ------------------
  |  |  123|  8.72k|#define U16_LEAD(supplementary) (UChar)(((supplementary)>>10)+0xd7c0)
  ------------------
  221|  8.72k|            p[1]=U16_TRAIL(c);
  ------------------
  |  |  132|  8.72k|#define U16_TRAIL(supplementary) (UChar)(((supplementary)&0x3ff)|0xdc00)
  ------------------
  222|  8.72k|        }
  223|  6.86M|    }
_ZN6icu_7816ReorderingBuffer11setIteratorEv:
  233|  6.86M|    void setIterator() { codePointStart=limit; }
_ZN6icu_7815Normalizer2ImplC2Ev:
  248|      1|    Normalizer2Impl() : normTrie(nullptr), fCanonIterData(nullptr) {}
_ZNK6icu_7815Normalizer2Impl9getNorm16Ei:
  264|   766M|    uint16_t getNorm16(UChar32 c) const {
  265|   766M|        return U_IS_LEAD(c) ?
  ------------------
  |  |  177|   766M|#define U_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (177:22): [True: 2.86k, False: 766M]
  |  |  ------------------
  ------------------
  266|  2.86k|            static_cast<uint16_t>(INERT) :
  267|   766M|            UCPTRIE_FAST_GET(normTrie, UCPTRIE_16, c);
  ------------------
  |  |  358|   766M|#define UCPTRIE_FAST_GET(trie, dataAccess, c) dataAccess(trie, _UCPTRIE_CP_INDEX(trie, 0xffff, c))
  |  |  ------------------
  |  |  |  |  267|   766M|            UCPTRIE_FAST_GET(normTrie, UCPTRIE_16, c);
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|  1.53G|#define UCPTRIE_16(trie, i) ((trie)->data.ptr16[i])
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (326:49): [True: 671, False: 351k]
  |  |  |  |  |  |  |  Branch (326:49): [True: 352k, False: 0]
  |  |  |  |  |  |  |  Branch (326:49): [True: 765M, False: 352k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  268|   766M|    }
_ZNK6icu_7815Normalizer2Impl12getRawNorm16Ei:
  269|    286|    uint16_t getRawNorm16(UChar32 c) const { return UCPTRIE_FAST_GET(normTrie, UCPTRIE_16, c); }
  ------------------
  |  |  358|    286|#define UCPTRIE_FAST_GET(trie, dataAccess, c) dataAccess(trie, _UCPTRIE_CP_INDEX(trie, 0xffff, c))
  |  |  ------------------
  |  |  |  |  269|    286|    uint16_t getRawNorm16(UChar32 c) const { return UCPTRIE_FAST_GET(normTrie, UCPTRIE_16, c); }
  |  |  |  |  ------------------
  |  |  |  |  |  |  326|    572|#define UCPTRIE_16(trie, i) ((trie)->data.ptr16[i])
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (326:49): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (326:49): [True: 0, False: 0]
  |  |  |  |  |  |  |  Branch (326:49): [True: 286, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
_ZN6icu_7815Normalizer2Impl25getCCFromNormalYesOrMaybeEt:
  293|   765M|    static uint8_t getCCFromNormalYesOrMaybe(uint16_t norm16) {
  294|   765M|        return static_cast<uint8_t>(norm16 >> OFFSET_SHIFT);
  295|   765M|    }
_ZN6icu_7815Normalizer2Impl22getCCFromYesOrMaybeYesEt:
  296|   715M|    static uint8_t getCCFromYesOrMaybeYes(uint16_t norm16) {
  297|   715M|        return norm16>=MIN_NORMAL_MAYBE_YES ? getCCFromNormalYesOrMaybe(norm16) : 0;
  ------------------
  |  Branch (297:16): [True: 715M, False: 5.51k]
  ------------------
  298|   715M|    }
_ZNK6icu_7815Normalizer2Impl24getCCFromYesOrMaybeYesCPEi:
  299|   712M|    uint8_t getCCFromYesOrMaybeYesCP(UChar32 c) const {
  300|   712M|        if (c < minCompNoMaybeCP) { return 0; }
  ------------------
  |  Branch (300:13): [True: 55, False: 712M]
  ------------------
  301|   712M|        return getCCFromYesOrMaybeYes(getNorm16(c));
  302|   712M|    }
_ZNK6icu_7815Normalizer2Impl8getFCD16Ei:
  309|  48.1M|    uint16_t getFCD16(UChar32 c) const {
  310|  48.1M|        if(c<minDecompNoCP) {
  ------------------
  |  Branch (310:12): [True: 3.99k, False: 48.1M]
  ------------------
  311|  3.99k|            return 0;
  312|  48.1M|        } else if(c<=0xffff) {
  ------------------
  |  Branch (312:19): [True: 48.0M, False: 93.5k]
  ------------------
  313|  48.0M|            if(!singleLeadMightHaveNonZeroFCD16(c)) { return 0; }
  ------------------
  |  Branch (313:16): [True: 13.3k, False: 48.0M]
  ------------------
  314|  48.0M|        }
  315|  48.1M|        return getFCD16FromNormData(c);
  316|  48.1M|    }
_ZNK6icu_7815Normalizer2Impl9nextFCD16ERPKDsS2_:
  325|   460k|    uint16_t nextFCD16(const char16_t *&s, const char16_t *limit) const {
  326|   460k|        UChar32 c=*s++;
  327|   460k|        if(c<minDecompNoCP || !singleLeadMightHaveNonZeroFCD16(c)) {
  ------------------
  |  Branch (327:12): [True: 1.16k, False: 458k]
  |  Branch (327:31): [True: 4.91k, False: 453k]
  ------------------
  328|  6.07k|            return 0;
  329|  6.07k|        }
  330|   453k|        char16_t c2;
  331|   453k|        if(U16_IS_LEAD(c) && s!=limit && U16_IS_TRAIL(c2=*s)) {
  ------------------
  |  |   59|   907k|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 10.7k, False: 443k]
  |  |  ------------------
  ------------------
                      if(U16_IS_LEAD(c) && s!=limit && U16_IS_TRAIL(c2=*s)) {
  ------------------
  |  |   67|  10.3k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 9.06k, False: 1.24k]
  |  |  ------------------
  ------------------
  |  Branch (331:30): [True: 10.3k, False: 434]
  ------------------
  332|  9.06k|            c=U16_GET_SUPPLEMENTARY(c, c2);
  ------------------
  |  |  113|  9.06k|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  ------------------
  |  |  |  |   99|  9.06k|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  ------------------
  ------------------
  333|  9.06k|            ++s;
  334|  9.06k|        }
  335|   453k|        return getFCD16FromNormData(c);
  336|   460k|    }
_ZNK6icu_7815Normalizer2Impl13previousFCD16EPKDsRS2_:
  343|  4.67M|    uint16_t previousFCD16(const char16_t *start, const char16_t *&s) const {
  344|  4.67M|        UChar32 c=*--s;
  345|  4.67M|        if(c<minDecompNoCP) {
  ------------------
  |  Branch (345:12): [True: 701, False: 4.67M]
  ------------------
  346|    701|            return 0;
  347|    701|        }
  348|  4.67M|        if(!U16_IS_TRAIL(c)) {
  ------------------
  |  |   67|  4.67M|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  ------------------
  |  Branch (348:12): [True: 4.65M, False: 18.1k]
  ------------------
  349|  4.65M|            if(!singleLeadMightHaveNonZeroFCD16(c)) {
  ------------------
  |  Branch (349:16): [True: 2.35k, False: 4.65M]
  ------------------
  350|  2.35k|                return 0;
  351|  2.35k|            }
  352|  4.65M|        } else {
  353|  18.1k|            char16_t c2;
  354|  18.1k|            if(start<s && U16_IS_LEAD(c2=*(s-1))) {
  ------------------
  |  |   59|  17.9k|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 17.5k, False: 391]
  |  |  ------------------
  ------------------
  |  Branch (354:16): [True: 17.9k, False: 259]
  ------------------
  355|  17.5k|                c=U16_GET_SUPPLEMENTARY(c2, c);
  ------------------
  |  |  113|  17.5k|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  ------------------
  |  |  |  |   99|  17.5k|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  ------------------
  ------------------
  356|  17.5k|                --s;
  357|  17.5k|            }
  358|  18.1k|        }
  359|  4.67M|        return getFCD16FromNormData(c);
  360|  4.67M|    }
_ZNK6icu_7815Normalizer2Impl31singleLeadMightHaveNonZeroFCD16Ei:
  363|  53.2M|    UBool singleLeadMightHaveNonZeroFCD16(UChar32 lead) const {
  364|       |        // 0<=lead<=0xffff
  365|  53.2M|        uint8_t bits=smallFCD[lead>>8];
  366|  53.2M|        if(bits==0) { return false; }
  ------------------
  |  Branch (366:12): [True: 16.0k, False: 53.2M]
  ------------------
  367|  53.2M|        return (bits >> ((lead >> 5) & 7)) & 1;
  368|  53.2M|    }
_ZNK6icu_7815Normalizer2Impl21isMaybeYesOrNonZeroCCEt:
  564|  2.30M|    UBool isMaybeYesOrNonZeroCC(uint16_t norm16) const { return norm16>=minMaybeYes; }
_ZNK6icu_7815Normalizer2Impl9hangulLVTEv:
  568|  5.56M|    uint16_t hangulLVT() const { return minYesNoMappingsOnly|HAS_COMP_BOUNDARY_AFTER; }
_ZNK6icu_7815Normalizer2Impl10isHangulLVEt:
  569|  2.77M|    UBool isHangulLV(uint16_t norm16) const { return norm16==minYesNo; }
_ZNK6icu_7815Normalizer2Impl11isHangulLVTEt:
  570|  5.56M|    UBool isHangulLVT(uint16_t norm16) const {
  571|  5.56M|        return norm16==hangulLVT();
  572|  5.56M|    }
_ZNK6icu_7815Normalizer2Impl24isMostDecompYesAndZeroCCEt:
  592|  5.06M|    UBool isMostDecompYesAndZeroCC(uint16_t norm16) const {
  593|  5.06M|        return norm16<minYesNo || norm16==MIN_NORMAL_MAYBE_YES || norm16==JAMO_VT;
  ------------------
  |  Branch (593:16): [True: 0, False: 5.06M]
  |  Branch (593:35): [True: 0, False: 5.06M]
  |  Branch (593:67): [True: 0, False: 5.06M]
  ------------------
  594|  5.06M|    }
_ZNK6icu_7815Normalizer2Impl21isDecompNoAlgorithmicEt:
  596|  2.06k|    UBool isDecompNoAlgorithmic(uint16_t norm16) const { return limitNoNo<=norm16 && norm16<minMaybeNo; }
  ------------------
  |  Branch (596:65): [True: 287, False: 1.77k]
  |  Branch (596:86): [True: 286, False: 1]
  ------------------
_ZNK6icu_7815Normalizer2Impl14mapAlgorithmicEit:
  624|    286|    UChar32 mapAlgorithmic(UChar32 c, uint16_t norm16) const {
  625|    286|        return c+(norm16>>DELTA_SHIFT)-centerNoNoDelta;
  626|    286|    }
_ZNK6icu_7815Normalizer2Impl17getDataForYesOrNoEt:
  631|  14.5k|    const uint16_t *getDataForYesOrNo(uint16_t norm16) const {
  632|  14.5k|        return extraData+(norm16>>OFFSET_SHIFT);
  633|  14.5k|    }
_ZNK6icu_7815Normalizer2Impl7getDataEt:
  637|  5.56M|    const uint16_t *getData(uint16_t norm16) const {
  638|  5.56M|        if(norm16>=minMaybeNo) {
  ------------------
  |  Branch (638:12): [True: 215, False: 5.56M]
  ------------------
  639|    215|            norm16=norm16-minMaybeNo+limitNoNo;
  640|    215|        }
  641|  5.56M|        return extraData+(norm16>>OFFSET_SHIFT);
  642|  5.56M|    }

_ZN6icu_7812PropNameData12findPropertyEi:
  148|  3.15k|int32_t PropNameData::findProperty(int32_t property) {
  149|  3.15k|    int32_t i=1;  // valueMaps index, initially after numRanges
  150|  6.30k|    for(int32_t numRanges=valueMaps[0]; numRanges>0; --numRanges) {
  ------------------
  |  Branch (150:41): [True: 6.30k, False: 0]
  ------------------
  151|       |        // Read and skip the start and limit of this range.
  152|  6.30k|        int32_t start=valueMaps[i];
  153|  6.30k|        int32_t limit=valueMaps[i+1];
  154|  6.30k|        i+=2;
  155|  6.30k|        if(property<start) {
  ------------------
  |  Branch (155:12): [True: 0, False: 6.30k]
  ------------------
  156|      0|            break;
  157|      0|        }
  158|  6.30k|        if(property<limit) {
  ------------------
  |  Branch (158:12): [True: 3.15k, False: 3.15k]
  ------------------
  159|  3.15k|            return i+(property-start)*2;
  160|  3.15k|        }
  161|  3.15k|        i+=(limit-start)*2;  // Skip all entries for this range.
  162|  3.15k|    }
  163|      0|    return 0;
  164|  3.15k|}
_ZN6icu_7812PropNameData12containsNameERNS_9BytesTrieEPKc:
  219|  3.15k|UBool PropNameData::containsName(BytesTrie &trie, const char *name) {
  220|  3.15k|    if(name==nullptr) {
  ------------------
  |  Branch (220:8): [True: 0, False: 3.15k]
  ------------------
  221|      0|        return false;
  222|      0|    }
  223|  3.15k|    UStringTrieResult result=USTRINGTRIE_NO_VALUE;
  224|  3.15k|    char c;
  225|  15.7k|    while((c=*name++)!=0) {
  ------------------
  |  Branch (225:11): [True: 12.6k, False: 3.13k]
  ------------------
  226|  12.6k|        c=uprv_invCharToLowercaseAscii(c);
  ------------------
  |  |  193|  12.6k|#   define uprv_invCharToLowercaseAscii uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  12.6k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  12.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  12.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  12.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  227|       |        // Ignore delimiters '-', '_', and ASCII White_Space.
  228|  12.6k|        if(c==0x2d || c==0x5f || c==0x20 || (0x09<=c && c<=0x0d)) {
  ------------------
  |  Branch (228:12): [True: 0, False: 12.6k]
  |  Branch (228:23): [True: 10, False: 12.5k]
  |  Branch (228:34): [True: 0, False: 12.5k]
  |  Branch (228:46): [True: 12.5k, False: 0]
  |  Branch (228:57): [True: 0, False: 12.5k]
  ------------------
  229|     10|            continue;
  230|     10|        }
  231|  12.5k|        if(!USTRINGTRIE_HAS_NEXT(result)) {
  ------------------
  |  |   95|  12.5k|#define USTRINGTRIE_HAS_NEXT(result) ((result)&1)
  ------------------
  |  Branch (231:12): [True: 19, False: 12.5k]
  ------------------
  232|     19|            return false;
  233|     19|        }
  234|  12.5k|        result = trie.next(static_cast<uint8_t>(c));
  235|  12.5k|    }
  236|  3.13k|    return USTRINGTRIE_HAS_VALUE(result);
  ------------------
  |  |   86|  3.13k|#define USTRINGTRIE_HAS_VALUE(result) ((result)>=USTRINGTRIE_FINAL_VALUE)
  ------------------
  237|  3.15k|}
_ZN6icu_7812PropNameData22getPropertyOrValueEnumEiPKc:
  259|  3.15k|int32_t PropNameData::getPropertyOrValueEnum(int32_t bytesTrieOffset, const char *alias) {
  260|  3.15k|    BytesTrie trie(bytesTries+bytesTrieOffset);
  261|  3.15k|    if(containsName(trie, alias)) {
  ------------------
  |  Branch (261:8): [True: 3.11k, False: 43]
  ------------------
  262|  3.11k|        return trie.getValue();
  263|  3.11k|    } else {
  264|     43|        return UCHAR_INVALID_CODE;
  265|     43|    }
  266|  3.15k|}
_ZN6icu_7812PropNameData20getPropertyValueEnumEiPKc:
  272|  3.15k|int32_t PropNameData::getPropertyValueEnum(int32_t property, const char *alias) {
  273|  3.15k|    int32_t valueMapIndex=findProperty(property);
  274|  3.15k|    if(valueMapIndex==0) {
  ------------------
  |  Branch (274:8): [True: 0, False: 3.15k]
  ------------------
  275|      0|        return UCHAR_INVALID_CODE;  // Not a known property.
  276|      0|    }
  277|  3.15k|    valueMapIndex=valueMaps[valueMapIndex+1];
  278|  3.15k|    if(valueMapIndex==0) {
  ------------------
  |  Branch (278:8): [True: 0, False: 3.15k]
  ------------------
  279|      0|        return UCHAR_INVALID_CODE;  // The property does not have named values.
  280|      0|    }
  281|       |    // valueMapIndex is the start of the property's valueMap,
  282|       |    // where the first word is the BytesTrie offset.
  283|  3.15k|    return getPropertyOrValueEnum(valueMaps[valueMapIndex], alias);
  284|  3.15k|}
u_getPropertyValueEnum_78:
  319|  3.15k|                       const char* alias) {
  320|  3.15k|    U_NAMESPACE_USE
  ------------------
  |  |  112|  3.15k|#   define U_NAMESPACE_USE using namespace U_ICU_NAMESPACE;
  ------------------
  321|  3.15k|    return PropNameData::getPropertyValueEnum(property, alias);
  322|  3.15k|}

uprv_add32_overflow_78:
  524|  1.79k|uprv_add32_overflow(int32_t a, int32_t b, int32_t* res) {
  525|       |    // NOTE: Some compilers (GCC, Clang) have primitives available, like __builtin_add_overflow.
  526|       |    // This function could be optimized by calling one of those primitives.
  527|  1.79k|    auto a64 = static_cast<int64_t>(a);
  528|  1.79k|    auto b64 = static_cast<int64_t>(b);
  529|  1.79k|    int64_t res64 = a64 + b64;
  530|  1.79k|    *res = static_cast<int32_t>(res64);
  531|  1.79k|    return res64 != *res;
  532|  1.79k|}
u_setDataDirectory_78:
 1316|      1|u_setDataDirectory(const char *directory) {
 1317|      1|    char *newDataDir;
 1318|      1|    int32_t length;
 1319|       |
 1320|      1|    if(directory==nullptr || *directory==0) {
  ------------------
  |  Branch (1320:8): [True: 0, False: 1]
  |  Branch (1320:30): [True: 1, False: 0]
  ------------------
 1321|       |        /* A small optimization to prevent the malloc and copy when the
 1322|       |        shared library is used, and this is a way to make sure that nullptr
 1323|       |        is never returned.
 1324|       |        */
 1325|      1|        newDataDir = (char *)"";
 1326|      1|    }
 1327|      0|    else {
 1328|      0|        length=(int32_t)uprv_strlen(directory);
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1329|      0|        newDataDir = (char *)uprv_malloc(length + 2);
  ------------------
  |  | 1524|      0|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1330|       |        /* Exit out if newDataDir could not be created. */
 1331|      0|        if (newDataDir == nullptr) {
  ------------------
  |  Branch (1331:13): [True: 0, False: 0]
  ------------------
 1332|      0|            return;
 1333|      0|        }
 1334|      0|        uprv_strcpy(newDataDir, directory);
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1335|       |
 1336|       |#if (U_FILE_SEP_CHAR != U_FILE_ALT_SEP_CHAR)
 1337|       |        {
 1338|       |            char *p;
 1339|       |            while((p = uprv_strchr(newDataDir, U_FILE_ALT_SEP_CHAR)) != nullptr) {
 1340|       |                *p = U_FILE_SEP_CHAR;
 1341|       |            }
 1342|       |        }
 1343|       |#endif
 1344|      0|    }
 1345|       |
 1346|      1|    if (gDataDirectory && *gDataDirectory) {
  ------------------
  |  Branch (1346:9): [True: 0, False: 1]
  |  Branch (1346:27): [True: 0, False: 0]
  ------------------
 1347|      0|        uprv_free(gDataDirectory);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1348|      0|    }
 1349|      1|    gDataDirectory = newDataDir;
 1350|      1|    ucln_common_registerCleanup(UCLN_COMMON_PUTIL, putil_cleanup);
  ------------------
  |  |  617|      1|#define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1351|      1|}
uprv_pathIsAbsolute_78:
 1355|  12.8k|{
 1356|  12.8k|  if(!path || !*path) {
  ------------------
  |  Branch (1356:6): [True: 0, False: 12.8k]
  |  Branch (1356:15): [True: 0, False: 12.8k]
  ------------------
 1357|      0|    return false;
 1358|      0|  }
 1359|       |
 1360|  12.8k|  if(*path == U_FILE_SEP_CHAR) {
  ------------------
  |  |  130|  12.8k|#   define U_FILE_SEP_CHAR '/'
  ------------------
  |  Branch (1360:6): [True: 0, False: 12.8k]
  ------------------
 1361|      0|    return true;
 1362|      0|  }
 1363|       |
 1364|       |#if (U_FILE_SEP_CHAR != U_FILE_ALT_SEP_CHAR)
 1365|       |  if(*path == U_FILE_ALT_SEP_CHAR) {
 1366|       |    return true;
 1367|       |  }
 1368|       |#endif
 1369|       |
 1370|       |#if U_PLATFORM_USES_ONLY_WIN32_API
 1371|       |  if( (((path[0] >= 'A') && (path[0] <= 'Z')) ||
 1372|       |       ((path[0] >= 'a') && (path[0] <= 'z'))) &&
 1373|       |      path[1] == ':' ) {
 1374|       |    return true;
 1375|       |  }
 1376|       |#endif
 1377|       |
 1378|  12.8k|  return false;
 1379|  12.8k|}
u_getDataDirectory_78:
 1499|  12.8k|u_getDataDirectory() {
 1500|  12.8k|    umtx_initOnce(gDataDirInitOnce, &dataDirectoryInitFn);
 1501|  12.8k|    return gDataDirectory;
 1502|  12.8k|}
u_getTimeZoneFilesDirectory_78:
 1575|      2|u_getTimeZoneFilesDirectory(UErrorCode *status) {
 1576|      2|    umtx_initOnce(gTimeZoneFilesInitOnce, &TimeZoneDataDirInitFn, *status);
  ------------------
  |  |  122|      2|#define gTimeZoneFilesInitOnce U_ICU_ENTRY_POINT_RENAME(gTimeZoneFilesInitOnce)
  |  |  ------------------
  |  |  |  |  123|      2|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      2|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      2|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1577|      2|    return U_SUCCESS(*status) ? gTimeZoneFilesDirectory->data() : "";
  ------------------
  |  Branch (1577:12): [True: 2, False: 0]
  ------------------
 1578|      2|}
uprv_getDefaultLocaleID_78:
 1686|      1|{
 1687|      1|#if U_POSIX_LOCALE
 1688|       |/*
 1689|       |  Note that:  (a '!' means the ID is improper somehow)
 1690|       |     LC_ALL  ---->     default_loc          codepage
 1691|       |--------------------------------------------------------
 1692|       |     ab.CD             ab                   CD
 1693|       |     ab@CD             ab__CD               -
 1694|       |     ab@CD.EF          ab__CD               EF
 1695|       |
 1696|       |     ab_CD.EF@GH       ab_CD_GH             EF
 1697|       |
 1698|       |Some 'improper' ways to do the same as above:
 1699|       |  !  ab_CD@GH.EF       ab_CD_GH             EF
 1700|       |  !  ab_CD.EF@GH.IJ    ab_CD_GH             EF
 1701|       |  !  ab_CD@ZZ.EF@GH.IJ ab_CD_GH             EF
 1702|       |
 1703|       |     _CD@GH            _CD_GH               -
 1704|       |     _CD.EF@GH         _CD_GH               EF
 1705|       |
 1706|       |The variant cannot have dots in it.
 1707|       |The 'rightmost' variant (@xxx) wins.
 1708|       |The leftmost codepage (.xxx) wins.
 1709|       |*/
 1710|      1|    const char* posixID = uprv_getPOSIXIDForDefaultLocale();
 1711|       |
 1712|       |    /* Format: (no spaces)
 1713|       |    ll [ _CC ] [ . MM ] [ @ VV]
 1714|       |
 1715|       |      l = lang, C = ctry, M = charmap, V = variant
 1716|       |    */
 1717|       |
 1718|      1|    if (gCorrectedPOSIXLocale != nullptr) {
  ------------------
  |  Branch (1718:9): [True: 0, False: 1]
  ------------------
 1719|      0|        return gCorrectedPOSIXLocale;
 1720|      0|    }
 1721|       |
 1722|       |    // Copy the ID into owned memory.
 1723|       |    // Over-allocate in case we replace "C" with "en_US_POSIX" (+10), + null termination
 1724|      1|    char *correctedPOSIXLocale = static_cast<char *>(uprv_malloc(uprv_strlen(posixID) + 10 + 1));
  ------------------
  |  | 1524|      1|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  char *correctedPOSIXLocale = static_cast<char *>(uprv_malloc(uprv_strlen(posixID) + 10 + 1));
  ------------------
  |  |   37|      1|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1725|      1|    if (correctedPOSIXLocale == nullptr) {
  ------------------
  |  Branch (1725:9): [True: 0, False: 1]
  ------------------
 1726|      0|        return nullptr;
 1727|      0|    }
 1728|      1|    uprv_strcpy(correctedPOSIXLocale, posixID);
  ------------------
  |  |   36|      1|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1729|       |
 1730|      1|    char *limit;
 1731|      1|    if ((limit = uprv_strchr(correctedPOSIXLocale, '.')) != nullptr) {
  ------------------
  |  |   40|      1|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1731:9): [True: 0, False: 1]
  ------------------
 1732|      0|        *limit = 0;
 1733|      0|    }
 1734|      1|    if ((limit = uprv_strchr(correctedPOSIXLocale, '@')) != nullptr) {
  ------------------
  |  |   40|      1|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1734:9): [True: 0, False: 1]
  ------------------
 1735|      0|        *limit = 0;
 1736|      0|    }
 1737|       |
 1738|      1|    if ((uprv_strcmp("C", correctedPOSIXLocale) == 0) // no @ variant
  ------------------
  |  |   38|      1|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1738:9): [True: 0, False: 1]
  ------------------
 1739|      1|        || (uprv_strcmp("POSIX", correctedPOSIXLocale) == 0)) {
  ------------------
  |  |   38|      1|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1739:12): [True: 0, False: 1]
  ------------------
 1740|       |      // Raw input was C.* or POSIX.*, Give it a nice POSIX default value.
 1741|       |      // (The "C"/"POSIX" case is handled in uprv_getPOSIXIDForCategory())
 1742|      0|      uprv_strcpy(correctedPOSIXLocale, "en_US_POSIX");
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1743|      0|    }
 1744|       |
 1745|       |    /* Note that we scan the *uncorrected* ID. */
 1746|      1|    const char *p;
 1747|      1|    if ((p = uprv_strrchr(posixID, '@')) != nullptr) {
  ------------------
  |  |   42|      1|#define uprv_strrchr(s, c) U_STANDARD_CPP_NAMESPACE strrchr(s, c)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1747:9): [True: 0, False: 1]
  ------------------
 1748|      0|        p++;
 1749|       |
 1750|       |        /* Take care of any special cases here.. */
 1751|      0|        if (!uprv_strcmp(p, "nynorsk")) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1751:13): [True: 0, False: 0]
  ------------------
 1752|      0|            p = "NY";
 1753|       |            /* Don't worry about no__NY. In practice, it won't appear. */
 1754|      0|        }
 1755|       |
 1756|      0|        if (uprv_strchr(correctedPOSIXLocale,'_') == nullptr) {
  ------------------
  |  |   40|      0|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1756:13): [True: 0, False: 0]
  ------------------
 1757|      0|            uprv_strcat(correctedPOSIXLocale, "__"); /* aa@b -> aa__b (note this can make the new locale 1 char longer) */
  ------------------
  |  |   39|      0|#define uprv_strcat(dst, src) U_STANDARD_CPP_NAMESPACE strcat(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1758|      0|        }
 1759|      0|        else {
 1760|      0|            uprv_strcat(correctedPOSIXLocale, "_"); /* aa_CC@b -> aa_CC_b */
  ------------------
  |  |   39|      0|#define uprv_strcat(dst, src) U_STANDARD_CPP_NAMESPACE strcat(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1761|      0|        }
 1762|       |
 1763|      0|        const char *q;
 1764|      0|        if ((q = uprv_strchr(p, '.')) != nullptr) {
  ------------------
  |  |   40|      0|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1764:13): [True: 0, False: 0]
  ------------------
 1765|       |            /* How big will the resulting string be? */
 1766|      0|            int32_t len = (int32_t)(uprv_strlen(correctedPOSIXLocale) + (q-p));
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1767|      0|            uprv_strncat(correctedPOSIXLocale, p, q-p); // do not include charset
  ------------------
  |  |   45|      0|#define uprv_strncat(dst, src, n) U_STANDARD_CPP_NAMESPACE strncat(dst, src, n)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1768|      0|            correctedPOSIXLocale[len] = 0;
 1769|      0|        }
 1770|      0|        else {
 1771|       |            /* Anything following the @ sign */
 1772|      0|            uprv_strcat(correctedPOSIXLocale, p);
  ------------------
  |  |   39|      0|#define uprv_strcat(dst, src) U_STANDARD_CPP_NAMESPACE strcat(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1773|      0|        }
 1774|       |
 1775|       |        /* Should there be a map from 'no@nynorsk' -> no_NO_NY here?
 1776|       |         * How about 'russian' -> 'ru'?
 1777|       |         * Many of the other locales using ISO codes will be handled by the
 1778|       |         * canonicalization functions in uloc_getDefault.
 1779|       |         */
 1780|      0|    }
 1781|       |
 1782|      1|    if (gCorrectedPOSIXLocale == nullptr) {
  ------------------
  |  Branch (1782:9): [True: 1, False: 0]
  ------------------
 1783|      1|        gCorrectedPOSIXLocale = correctedPOSIXLocale;
 1784|      1|        gCorrectedPOSIXLocaleHeapAllocated = true;
 1785|      1|        ucln_common_registerCleanup(UCLN_COMMON_PUTIL, putil_cleanup);
  ------------------
  |  |  617|      1|#define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1786|      1|        correctedPOSIXLocale = nullptr;
 1787|      1|    }
 1788|      1|    posixID = gCorrectedPOSIXLocale;
 1789|       |
 1790|      1|    if (correctedPOSIXLocale != nullptr) {  /* Was already set - clean up. */
  ------------------
  |  Branch (1790:9): [True: 0, False: 1]
  ------------------
 1791|      0|        uprv_free(correctedPOSIXLocale);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1792|      0|    }
 1793|       |
 1794|      1|    return posixID;
 1795|       |
 1796|       |#elif U_PLATFORM_USES_ONLY_WIN32_API
 1797|       |#define POSIX_LOCALE_CAPACITY 64
 1798|       |    UErrorCode status = U_ZERO_ERROR;
 1799|       |    char *correctedPOSIXLocale = nullptr;
 1800|       |
 1801|       |    // If we have already figured this out just use the cached value
 1802|       |    if (gCorrectedPOSIXLocale != nullptr) {
 1803|       |        return gCorrectedPOSIXLocale;
 1804|       |    }
 1805|       |
 1806|       |    // No cached value, need to determine the current value
 1807|       |    static WCHAR windowsLocale[LOCALE_NAME_MAX_LENGTH] = {};
 1808|       |    int length = GetLocaleInfoEx(LOCALE_NAME_USER_DEFAULT, LOCALE_SNAME, windowsLocale, LOCALE_NAME_MAX_LENGTH);
 1809|       |
 1810|       |    // Now we should have a Windows locale name that needs converted to the POSIX style.
 1811|       |    if (length > 0) // If length is 0, then the GetLocaleInfoEx failed.
 1812|       |    {
 1813|       |        // First we need to go from UTF-16 to char (and also convert from _ to - while we're at it.)
 1814|       |        char modifiedWindowsLocale[LOCALE_NAME_MAX_LENGTH] = {};
 1815|       |
 1816|       |        int32_t i;
 1817|       |        for (i = 0; i < UPRV_LENGTHOF(modifiedWindowsLocale); i++)
 1818|       |        {
 1819|       |            if (windowsLocale[i] == '_')
 1820|       |            {
 1821|       |                modifiedWindowsLocale[i] = '-';
 1822|       |            }
 1823|       |            else
 1824|       |            {
 1825|       |                modifiedWindowsLocale[i] = static_cast<char>(windowsLocale[i]);
 1826|       |            }
 1827|       |
 1828|       |            if (modifiedWindowsLocale[i] == '\0')
 1829|       |            {
 1830|       |                break;
 1831|       |            }
 1832|       |        }
 1833|       |
 1834|       |        if (i >= UPRV_LENGTHOF(modifiedWindowsLocale))
 1835|       |        {
 1836|       |            // Ran out of room, can't really happen, maybe we'll be lucky about a matching
 1837|       |            // locale when tags are dropped
 1838|       |            modifiedWindowsLocale[UPRV_LENGTHOF(modifiedWindowsLocale) - 1] = '\0';
 1839|       |        }
 1840|       |
 1841|       |        // Now normalize the resulting name
 1842|       |        correctedPOSIXLocale = static_cast<char *>(uprv_malloc(POSIX_LOCALE_CAPACITY + 1));
 1843|       |        /* TODO: Should we just exit on memory allocation failure? */
 1844|       |        if (correctedPOSIXLocale)
 1845|       |        {
 1846|       |            int32_t posixLen = uloc_canonicalize(modifiedWindowsLocale, correctedPOSIXLocale, POSIX_LOCALE_CAPACITY, &status);
 1847|       |            if (U_SUCCESS(status))
 1848|       |            {
 1849|       |                *(correctedPOSIXLocale + posixLen) = 0;
 1850|       |                gCorrectedPOSIXLocale = correctedPOSIXLocale;
 1851|       |                gCorrectedPOSIXLocaleHeapAllocated = true;
 1852|       |                ucln_common_registerCleanup(UCLN_COMMON_PUTIL, putil_cleanup);
 1853|       |            }
 1854|       |            else
 1855|       |            {
 1856|       |                uprv_free(correctedPOSIXLocale);
 1857|       |            }
 1858|       |        }
 1859|       |    }
 1860|       |
 1861|       |    // If unable to find a locale we can agree upon, use en-US by default
 1862|       |    if (gCorrectedPOSIXLocale == nullptr) {
 1863|       |        gCorrectedPOSIXLocale = "en_US";
 1864|       |    }
 1865|       |    return gCorrectedPOSIXLocale;
 1866|       |
 1867|       |#elif U_PLATFORM == U_PF_OS400
 1868|       |    /* locales are process scoped and are by definition thread safe */
 1869|       |    static char correctedLocale[64];
 1870|       |    const  char *localeID = getenv("LC_ALL");
 1871|       |           char *p;
 1872|       |
 1873|       |    if (localeID == nullptr)
 1874|       |        localeID = getenv("LANG");
 1875|       |    if (localeID == nullptr)
 1876|       |        localeID = setlocale(LC_ALL, nullptr);
 1877|       |    /* Make sure we have something... */
 1878|       |    if (localeID == nullptr)
 1879|       |        return "en_US_POSIX";
 1880|       |
 1881|       |    /* Extract the locale name from the path. */
 1882|       |    if((p = uprv_strrchr(localeID, '/')) != nullptr)
 1883|       |    {
 1884|       |        /* Increment p to start of locale name. */
 1885|       |        p++;
 1886|       |        localeID = p;
 1887|       |    }
 1888|       |
 1889|       |    /* Copy to work location. */
 1890|       |    uprv_strcpy(correctedLocale, localeID);
 1891|       |
 1892|       |    /* Strip off the '.locale' extension. */
 1893|       |    if((p = uprv_strchr(correctedLocale, '.')) != nullptr) {
 1894|       |        *p = 0;
 1895|       |    }
 1896|       |
 1897|       |    /* Upper case the locale name. */
 1898|       |    T_CString_toUpperCase(correctedLocale);
 1899|       |
 1900|       |    /* See if we are using the POSIX locale.  Any of the
 1901|       |    * following are equivalent and use the same QLGPGCMA
 1902|       |    * (POSIX) locale.
 1903|       |    * QLGPGCMA2 means UCS2
 1904|       |    * QLGPGCMA_4 means UTF-32
 1905|       |    * QLGPGCMA_8 means UTF-8
 1906|       |    */
 1907|       |    if ((uprv_strcmp("C", correctedLocale) == 0) ||
 1908|       |        (uprv_strcmp("POSIX", correctedLocale) == 0) ||
 1909|       |        (uprv_strncmp("QLGPGCMA", correctedLocale, 8) == 0))
 1910|       |    {
 1911|       |        uprv_strcpy(correctedLocale, "en_US_POSIX");
 1912|       |    }
 1913|       |    else
 1914|       |    {
 1915|       |        int16_t LocaleLen;
 1916|       |
 1917|       |        /* Lower case the lang portion. */
 1918|       |        for(p = correctedLocale; *p != 0 && *p != '_'; p++)
 1919|       |        {
 1920|       |            *p = uprv_tolower(*p);
 1921|       |        }
 1922|       |
 1923|       |        /* Adjust for Euro.  After '_E' add 'URO'. */
 1924|       |        LocaleLen = uprv_strlen(correctedLocale);
 1925|       |        if (correctedLocale[LocaleLen - 2] == '_' &&
 1926|       |            correctedLocale[LocaleLen - 1] == 'E')
 1927|       |        {
 1928|       |            uprv_strcat(correctedLocale, "URO");
 1929|       |        }
 1930|       |
 1931|       |        /* If using Lotus-based locale then convert to
 1932|       |         * equivalent non Lotus.
 1933|       |         */
 1934|       |        else if (correctedLocale[LocaleLen - 2] == '_' &&
 1935|       |            correctedLocale[LocaleLen - 1] == 'L')
 1936|       |        {
 1937|       |            correctedLocale[LocaleLen - 2] = 0;
 1938|       |        }
 1939|       |
 1940|       |        /* There are separate simplified and traditional
 1941|       |         * locales called zh_HK_S and zh_HK_T.
 1942|       |         */
 1943|       |        else if (uprv_strncmp(correctedLocale, "zh_HK", 5) == 0)
 1944|       |        {
 1945|       |            uprv_strcpy(correctedLocale, "zh_HK");
 1946|       |        }
 1947|       |
 1948|       |        /* A special zh_CN_GBK locale...
 1949|       |        */
 1950|       |        else if (uprv_strcmp(correctedLocale, "zh_CN_GBK") == 0)
 1951|       |        {
 1952|       |            uprv_strcpy(correctedLocale, "zh_CN");
 1953|       |        }
 1954|       |
 1955|       |    }
 1956|       |
 1957|       |    return correctedLocale;
 1958|       |#endif
 1959|       |
 1960|      1|}
putil.cpp:_ZL19dataDirectoryInitFnv:
 1424|      1|static void U_CALLCONV dataDirectoryInitFn() {
 1425|       |    /* If we already have the directory, then return immediately. Will happen if user called
 1426|       |     * u_setDataDirectory().
 1427|       |     */
 1428|      1|    if (gDataDirectory) {
  ------------------
  |  Branch (1428:9): [True: 0, False: 1]
  ------------------
 1429|      0|        return;
 1430|      0|    }
 1431|       |
 1432|      1|    const char *path = nullptr;
 1433|       |#if defined(ICU_DATA_DIR_PREFIX_ENV_VAR)
 1434|       |    char datadir_path_buffer[PATH_MAX];
 1435|       |#endif
 1436|       |
 1437|       |    /*
 1438|       |    When ICU_NO_USER_DATA_OVERRIDE is defined, users aren't allowed to
 1439|       |    override ICU's data with the ICU_DATA environment variable. This prevents
 1440|       |    problems where multiple custom copies of ICU's specific version of data
 1441|       |    are installed on a system. Either the application must define the data
 1442|       |    directory with u_setDataDirectory, define ICU_DATA_DIR when compiling
 1443|       |    ICU, set the data with udata_setCommonData or trust that all of the
 1444|       |    required data is contained in ICU's data library that contains
 1445|       |    the entry point defined by U_ICUDATA_ENTRY_POINT.
 1446|       |
 1447|       |    There may also be some platforms where environment variables
 1448|       |    are not allowed.
 1449|       |    */
 1450|      1|#   if !defined(ICU_NO_USER_DATA_OVERRIDE) && !UCONFIG_NO_FILE_IO
 1451|       |    /* First try to get the environment variable */
 1452|      1|#     if U_PLATFORM_HAS_WINUWP_API == 0  // Windows UWP does not support getenv
 1453|      1|        path=getenv("ICU_DATA");
 1454|      1|#     endif
 1455|      1|#   endif
 1456|       |
 1457|       |    /* ICU_DATA_DIR may be set as a compile option.
 1458|       |     * U_ICU_DATA_DEFAULT_DIR is provided and is set by ICU at compile time
 1459|       |     * and is used only when data is built in archive mode eliminating the need
 1460|       |     * for ICU_DATA_DIR to be set. U_ICU_DATA_DEFAULT_DIR is set to the installation
 1461|       |     * directory of the data dat file. Users should use ICU_DATA_DIR if they want to
 1462|       |     * set their own path.
 1463|       |     */
 1464|       |#if defined(ICU_DATA_DIR) || defined(U_ICU_DATA_DEFAULT_DIR)
 1465|       |    if(path==nullptr || *path==0) {
 1466|       |# if defined(ICU_DATA_DIR_PREFIX_ENV_VAR)
 1467|       |        const char *prefix = getenv(ICU_DATA_DIR_PREFIX_ENV_VAR);
 1468|       |# endif
 1469|       |# ifdef ICU_DATA_DIR
 1470|       |        path=ICU_DATA_DIR;
 1471|       |# else
 1472|       |        path=U_ICU_DATA_DEFAULT_DIR;
 1473|       |# endif
 1474|       |# if defined(ICU_DATA_DIR_PREFIX_ENV_VAR)
 1475|       |        if (prefix != nullptr) {
 1476|       |            snprintf(datadir_path_buffer, sizeof(datadir_path_buffer), "%s%s", prefix, path);
 1477|       |            path=datadir_path_buffer;
 1478|       |        }
 1479|       |# endif
 1480|       |    }
 1481|       |#endif
 1482|       |
 1483|       |#if defined(ICU_DATA_DIR_WINDOWS)
 1484|       |    char datadir_path_buffer[MAX_PATH];
 1485|       |    if (getIcuDataDirectoryUnderWindowsDirectory(datadir_path_buffer, UPRV_LENGTHOF(datadir_path_buffer))) {
 1486|       |        path = datadir_path_buffer;
 1487|       |    }
 1488|       |#endif
 1489|       |
 1490|      1|    if(path==nullptr) {
  ------------------
  |  Branch (1490:8): [True: 1, False: 0]
  ------------------
 1491|       |        /* It looks really bad, set it to something. */
 1492|      1|        path = "";
 1493|      1|    }
 1494|       |
 1495|      1|    u_setDataDirectory(path);
  ------------------
  |  |  347|      1|#define u_setDataDirectory U_ICU_ENTRY_POINT_RENAME(u_setDataDirectory)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1496|      1|}
putil.cpp:_ZL21TimeZoneDataDirInitFnR10UErrorCode:
 1521|      1|static void U_CALLCONV TimeZoneDataDirInitFn(UErrorCode &status) {
 1522|      1|    U_ASSERT(gTimeZoneFilesDirectory == nullptr);
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
 1523|      1|    ucln_common_registerCleanup(UCLN_COMMON_PUTIL, putil_cleanup);
  ------------------
  |  |  617|      1|#define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1524|      1|    gTimeZoneFilesDirectory = new CharString();
 1525|      1|    if (gTimeZoneFilesDirectory == nullptr) {
  ------------------
  |  Branch (1525:9): [True: 0, False: 1]
  ------------------
 1526|      0|        status = U_MEMORY_ALLOCATION_ERROR;
 1527|      0|        return;
 1528|      0|    }
 1529|       |
 1530|      1|    const char *dir = "";
 1531|       |
 1532|       |#if defined(ICU_TIMEZONE_FILES_DIR_PREFIX_ENV_VAR)
 1533|       |    char timezonefilesdir_path_buffer[PATH_MAX];
 1534|       |    const char *prefix = getenv(ICU_TIMEZONE_FILES_DIR_PREFIX_ENV_VAR);
 1535|       |#endif
 1536|       |
 1537|       |#if U_PLATFORM_HAS_WINUWP_API == 1
 1538|       |// The UWP version does not support the environment variable setting.
 1539|       |
 1540|       |# if defined(ICU_DATA_DIR_WINDOWS)
 1541|       |    // When using the Windows system data, we can possibly pick up time zone data from the Windows directory.
 1542|       |    char datadir_path_buffer[MAX_PATH];
 1543|       |    if (getIcuDataDirectoryUnderWindowsDirectory(datadir_path_buffer, UPRV_LENGTHOF(datadir_path_buffer))) {
 1544|       |        dir = datadir_path_buffer;
 1545|       |    }
 1546|       |# endif
 1547|       |
 1548|       |#else
 1549|      1|    dir = getenv("ICU_TIMEZONE_FILES_DIR");
 1550|      1|#endif // U_PLATFORM_HAS_WINUWP_API
 1551|       |
 1552|       |#if defined(U_TIMEZONE_FILES_DIR)
 1553|       |    if (dir == nullptr) {
 1554|       |        // Build time configuration setting.
 1555|       |        dir = TO_STRING(U_TIMEZONE_FILES_DIR);
 1556|       |    }
 1557|       |#endif
 1558|       |
 1559|      1|    if (dir == nullptr) {
  ------------------
  |  Branch (1559:9): [True: 1, False: 0]
  ------------------
 1560|      1|        dir = "";
 1561|      1|    }
 1562|       |
 1563|       |#if defined(ICU_TIMEZONE_FILES_DIR_PREFIX_ENV_VAR)
 1564|       |    if (prefix != nullptr) {
 1565|       |        snprintf(timezonefilesdir_path_buffer, sizeof(timezonefilesdir_path_buffer), "%s%s", prefix, dir);
 1566|       |        dir = timezonefilesdir_path_buffer;
 1567|       |    }
 1568|       |#endif
 1569|       |
 1570|      1|    setTimeZoneFilesDir(dir, status);
 1571|      1|}
putil.cpp:_ZL19setTimeZoneFilesDirPKcR10UErrorCode:
 1504|      1|static void setTimeZoneFilesDir(const char *path, UErrorCode &status) {
 1505|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1505:9): [True: 0, False: 1]
  ------------------
 1506|      0|        return;
 1507|      0|    }
 1508|      1|    gTimeZoneFilesDirectory->clear();
 1509|      1|    gTimeZoneFilesDirectory->append(path, status);
 1510|       |#if (U_FILE_SEP_CHAR != U_FILE_ALT_SEP_CHAR)
 1511|       |    char *p = gTimeZoneFilesDirectory->data();
 1512|       |    while ((p = uprv_strchr(p, U_FILE_ALT_SEP_CHAR)) != nullptr) {
 1513|       |        *p = U_FILE_SEP_CHAR;
 1514|       |    }
 1515|       |#endif
 1516|      1|}
putil.cpp:_ZL31uprv_getPOSIXIDForDefaultLocalev:
 1660|      1|{
 1661|      1|    static const char* posixID = nullptr;
 1662|      1|    if (posixID == nullptr) {
  ------------------
  |  Branch (1662:9): [True: 1, False: 0]
  ------------------
 1663|      1|        posixID = uprv_getPOSIXIDForCategory(LC_MESSAGES);
 1664|      1|    }
 1665|      1|    return posixID;
 1666|      1|}
putil.cpp:_ZL26uprv_getPOSIXIDForCategoryi:
 1597|      1|{
 1598|      1|    const char* posixID = nullptr;
 1599|      1|    if (category == LC_MESSAGES || category == LC_CTYPE) {
  ------------------
  |  Branch (1599:9): [True: 1, False: 0]
  |  Branch (1599:36): [True: 0, False: 0]
  ------------------
 1600|       |        /*
 1601|       |        * On Solaris two different calls to setlocale can result in
 1602|       |        * different values. Only get this value once.
 1603|       |        *
 1604|       |        * We must check this first because an application can set this.
 1605|       |        *
 1606|       |        * LC_ALL can't be used because it's platform dependent. The LANG
 1607|       |        * environment variable seems to affect LC_CTYPE variable by default.
 1608|       |        * Here is what setlocale(LC_ALL, nullptr) can return.
 1609|       |        * HPUX can return 'C C C C C C C'
 1610|       |        * Solaris can return /en_US/C/C/C/C/C on the second try.
 1611|       |        * Linux can return LC_CTYPE=C;LC_NUMERIC=C;...
 1612|       |        *
 1613|       |        * The default codepage detection also needs to use LC_CTYPE.
 1614|       |        *
 1615|       |        * Do not call setlocale(LC_*, "")! Using an empty string instead
 1616|       |        * of nullptr, will modify the libc behavior.
 1617|       |        */
 1618|      1|        posixID = setlocale(category, nullptr);
 1619|      1|        if ((posixID == nullptr)
  ------------------
  |  Branch (1619:13): [True: 0, False: 1]
  ------------------
 1620|      1|            || (uprv_strcmp("C", posixID) == 0)
  ------------------
  |  |   38|      1|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1620:16): [True: 1, False: 0]
  ------------------
 1621|      1|            || (uprv_strcmp("POSIX", posixID) == 0))
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1621:16): [True: 0, False: 0]
  ------------------
 1622|      1|        {
 1623|       |            /* Maybe we got some garbage.  Try something more reasonable */
 1624|      1|            posixID = getenv("LC_ALL");
 1625|       |            /* Solaris speaks POSIX -  See IEEE Std 1003.1-2008
 1626|       |             * This is needed to properly handle empty env. variables
 1627|       |             */
 1628|       |#if U_PLATFORM == U_PF_SOLARIS
 1629|       |            if ((posixID == 0) || (posixID[0] == '\0')) {
 1630|       |                posixID = getenv(category == LC_MESSAGES ? "LC_MESSAGES" : "LC_CTYPE");
 1631|       |                if ((posixID == 0) || (posixID[0] == '\0')) {
 1632|       |#else
 1633|      1|            if (posixID == nullptr) {
  ------------------
  |  Branch (1633:17): [True: 1, False: 0]
  ------------------
 1634|      1|                posixID = getenv(category == LC_MESSAGES ? "LC_MESSAGES" : "LC_CTYPE");
  ------------------
  |  Branch (1634:34): [True: 1, False: 0]
  ------------------
 1635|      1|                if (posixID == nullptr) {
  ------------------
  |  Branch (1635:21): [True: 1, False: 0]
  ------------------
 1636|      1|#endif
 1637|      1|                    posixID = getenv("LANG");
 1638|      1|                }
 1639|      1|            }
 1640|      1|        }
 1641|      1|    }
 1642|      1|    if ((posixID == nullptr)
  ------------------
  |  Branch (1642:9): [True: 1, False: 0]
  ------------------
 1643|      1|        || (uprv_strcmp("C", posixID) == 0)
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1643:12): [True: 0, False: 0]
  ------------------
 1644|      1|        || (uprv_strcmp("POSIX", posixID) == 0))
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1644:12): [True: 0, False: 0]
  ------------------
 1645|      1|    {
 1646|       |        /* Nothing worked.  Give it a nice POSIX default value. */
 1647|      1|        posixID = "en_US_POSIX";
 1648|       |        // Note: this test will not catch 'C.UTF-8',
 1649|       |        // that will be handled in uprv_getDefaultLocaleID().
 1650|       |        // Leave this mapping here for the uprv_getPOSIXIDForDefaultCodepage()
 1651|       |        // caller which expects to see "en_US_POSIX" in many branches.
 1652|      1|    }
 1653|      1|    return posixID;
 1654|      1|}

_ZN6icu_7813ResourceValueD2Ev:
   18|      1|ResourceValue::~ResourceValue() {}
_ZN6icu_7812ResourceSinkD2Ev:
   20|      1|ResourceSink::~ResourceSink() {}

_ZN6icu_7813ResourceTableC2EPKtPKiS2_PKjiRKNS_14ResourceTracerE:
   89|      3|            keys16(k16), keys32(k32), items16(i16), items32(i32), length(len),
   90|      3|            fTraceInfo(traceInfo) {}
_ZNK6icu_7813ResourceTable7getSizeEv:
   95|      2|    int32_t getSize() const { return length; }
_ZN6icu_7813ResourceValueC2Ev:
  254|      1|    ResourceValue() {}
_ZN6icu_7812ResourceSinkC2Ev:
  266|      1|    ResourceSink() {}

_ZN6icu_7814ResourceTracerC2Ev:
  116|      1|    ResourceTracer() {}
_ZN6icu_7814ResourceTracerC2EPKv:
  118|   170k|    ResourceTracer(const void*) {}
_ZN6icu_7814ResourceTracerC2EPKvPKc:
  120|  1.47k|    ResourceTracer(const void*, const char*) {}
_ZN6icu_7814ResourceTracerC2ERKS0_PKc:
  124|    941|    ResourceTracer(const ResourceTracer&, const char*) {}
_ZNK6icu_7814ResourceTracer5traceEPKc:
  128|   166k|    void trace(const char*) const {}
_ZNK6icu_7814ResourceTracer9traceOpenEv:
  130|  5.88k|    void traceOpen() const {}
_ZNK6icu_7814ResourceTracer10maybeTraceEPKc:
  132|      3|    void maybeTrace(const char*) const {}
_ZN6icu_7810FileTracer9traceOpenEPKcS2_S2_:
  140|  12.8k|    static void traceOpen(const char*, const char*, const char*) {}

_ZN6icu_7812SharedObjectD2Ev:
   18|  7.14k|SharedObject::~SharedObject() {}
_ZNK6icu_7812SharedObject6addRefEv:
   23|  56.0k|SharedObject::addRef() const {
   24|  56.0k|    umtx_atomic_inc(&hardRefCount);
   25|  56.0k|}
_ZNK6icu_7812SharedObject9removeRefEv:
   36|  69.0k|SharedObject::removeRef() const {
   37|  69.0k|    const UnifiedCacheBase *cache = this->cachePtr;
   38|  69.0k|    int32_t updatedRefCount = umtx_atomic_dec(&hardRefCount);
   39|  69.0k|    U_ASSERT(updatedRefCount >= 0);
  ------------------
  |  |   35|  69.0k|#   define U_ASSERT(exp) (void)0
  ------------------
   40|  69.0k|    if (updatedRefCount == 0) {
  ------------------
  |  Branch (40:9): [True: 14.0k, False: 55.0k]
  ------------------
   41|  14.0k|        if (cache) {
  ------------------
  |  Branch (41:13): [True: 7.02k, False: 7.03k]
  ------------------
   42|  7.02k|            cache->handleUnreferencedObject();
   43|  7.03k|        } else {
   44|  7.03k|            delete this;
   45|  7.03k|        }
   46|  14.0k|    }
   47|  69.0k|}
_ZNK6icu_7812SharedObject11getRefCountEv:
   51|  7.36k|SharedObject::getRefCount() const {
   52|  7.36k|    return umtx_loadAcquire(hardRefCount);
   53|  7.36k|}

_ZN6icu_7816UnifiedCacheBaseC2Ev:
   30|      1|    UnifiedCacheBase() { }
_ZN6icu_7812SharedObjectC2Ev:
   58|    433|            softRefCount(0),
   59|    433|            hardRefCount(0),
   60|    433|            cachePtr(nullptr) {}
_ZN6icu_7812SharedObjectC2ERKS0_:
   64|  7.05k|            UObject(other),
   65|  7.05k|            softRefCount(0),
   66|  7.05k|            hardRefCount(0),
   67|  7.05k|            cachePtr(nullptr) {}
_ZNK6icu_7812SharedObject16noHardReferencesEv:
   96|    216|    inline UBool noHardReferences() const { return getRefCount() == 0; }
_ZN6icu_7812SharedObject8clearPtrINS_19CollationCacheEntryEEEvRPKT_:
  156|  33.7k|    static void clearPtr(const T *&ptr) {
  157|  33.7k|        if (ptr != nullptr) {
  ------------------
  |  Branch (157:13): [True: 33.7k, False: 21]
  ------------------
  158|  33.7k|            ptr->removeRef();
  159|  33.7k|            ptr = nullptr;
  160|  33.7k|        }
  161|  33.7k|    }
_ZN6icu_7812SharedObject8clearPtrINS_17CollationSettingsEEEvRPKT_:
  156|  14.0k|    static void clearPtr(const T *&ptr) {
  157|  14.0k|        if (ptr != nullptr) {
  ------------------
  |  Branch (157:13): [True: 14.0k, False: 0]
  ------------------
  158|  14.0k|            ptr->removeRef();
  159|  14.0k|            ptr = nullptr;
  160|  14.0k|        }
  161|  14.0k|    }
_ZN6icu_7812SharedObject8clearPtrINS_18CollationTailoringEEEvRPKT_:
  156|    108|    static void clearPtr(const T *&ptr) {
  157|    108|        if (ptr != nullptr) {
  ------------------
  |  Branch (157:13): [True: 108, False: 0]
  ------------------
  158|    108|            ptr->removeRef();
  159|    108|            ptr = nullptr;
  160|    108|        }
  161|    108|    }
_ZN6icu_7812SharedObject7copyPtrINS_19CollationCacheEntryEEEvPKT_RS5_:
  144|  19.7k|    static void copyPtr(const T *src, const T *&dest) {
  145|  19.7k|        if(src != dest) {
  ------------------
  |  Branch (145:12): [True: 19.7k, False: 0]
  ------------------
  146|  19.7k|            if(dest != nullptr) { dest->removeRef(); }
  ------------------
  |  Branch (146:16): [True: 0, False: 19.7k]
  ------------------
  147|  19.7k|            dest = src;
  148|  19.7k|            if(src != nullptr) { src->addRef(); }
  ------------------
  |  Branch (148:16): [True: 19.7k, False: 0]
  ------------------
  149|  19.7k|        }
  150|  19.7k|    }
_ZN6icu_7812SharedObject11copyOnWriteINS_17CollationSettingsEEEPT_RPKS3_:
  124|  7.15k|    static T *copyOnWrite(const T *&ptr) {
  125|  7.15k|        const T *p = ptr;
  126|  7.15k|        if(p->getRefCount() <= 1) { return const_cast<T *>(p); }
  ------------------
  |  Branch (126:12): [True: 94, False: 7.05k]
  ------------------
  127|  7.05k|        T *p2 = new T(*p);
  128|  7.05k|        if(p2 == nullptr) { return nullptr; }
  ------------------
  |  Branch (128:12): [True: 0, False: 7.05k]
  ------------------
  129|  7.05k|        p->removeRef();
  130|  7.05k|        ptr = p2;
  131|  7.05k|        p2->addRef();
  132|  7.05k|        return p2;
  133|  7.05k|    }
_ZN6icu_7812SharedObject8clearPtrIS0_EEvRPKT_:
  156|     21|    static void clearPtr(const T *&ptr) {
  157|     21|        if (ptr != nullptr) {
  ------------------
  |  Branch (157:13): [True: 21, False: 0]
  ------------------
  158|     21|            ptr->removeRef();
  159|     21|            ptr = nullptr;
  160|     21|        }
  161|     21|    }
_ZN6icu_7812SharedObject7copyPtrIS0_EEvPKT_RS4_:
  144|     15|    static void copyPtr(const T *src, const T *&dest) {
  145|     15|        if(src != dest) {
  ------------------
  |  Branch (145:12): [True: 15, False: 0]
  ------------------
  146|     15|            if(dest != nullptr) { dest->removeRef(); }
  ------------------
  |  Branch (146:16): [True: 0, False: 15]
  ------------------
  147|     15|            dest = src;
  148|     15|            if(src != nullptr) { src->addRef(); }
  ------------------
  |  Branch (148:16): [True: 15, False: 0]
  ------------------
  149|     15|        }
  150|     15|    }

_ZN6icu_7811StringPieceC2EPKc:
   19|   148k|    : ptr_(str), length_((str == nullptr) ? 0 : static_cast<int32_t>(uprv_strlen(str))) { }
  ------------------
  |  |   37|   148k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|   148k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (19:26): [True: 4, False: 148k]
  ------------------

uprv_stableBinarySearch_78:
   76|  8.89k|                        UComparator *cmp, const void *context) {
   77|  8.89k|    int32_t start=0;
   78|  8.89k|    UBool found=false;
   79|       |
   80|       |    /* Binary search until we get down to a tiny sub-array. */
   81|  8.89k|    while((limit-start)>=MIN_QSORT) {
  ------------------
  |  Branch (81:11): [True: 0, False: 8.89k]
  ------------------
   82|      0|        int32_t i=(start+limit)/2;
   83|      0|        int32_t diff=cmp(context, item, array+i*itemSize);
   84|      0|        if(diff==0) {
  ------------------
  |  Branch (84:12): [True: 0, False: 0]
  ------------------
   85|       |            /*
   86|       |             * Found the item. We look for the *last* occurrence of such
   87|       |             * an item, for stable sorting.
   88|       |             * If we knew that there will be only few equal items,
   89|       |             * we could break now and enter the linear search.
   90|       |             * However, if there are many equal items, then it should be
   91|       |             * faster to continue with the binary search.
   92|       |             * It seems likely that we either have all unique items
   93|       |             * (where found will never become true in the insertion sort)
   94|       |             * or potentially many duplicates.
   95|       |             */
   96|      0|            found=true;
   97|      0|            start=i+1;
   98|      0|        } else if(diff<0) {
  ------------------
  |  Branch (98:19): [True: 0, False: 0]
  ------------------
   99|      0|            limit=i;
  100|      0|        } else {
  101|      0|            start=i;
  102|      0|        }
  103|      0|    }
  104|       |
  105|       |    /* Linear search over the remaining tiny sub-array. */
  106|  33.4k|    while(start<limit) {
  ------------------
  |  Branch (106:11): [True: 25.5k, False: 7.89k]
  ------------------
  107|  25.5k|        int32_t diff=cmp(context, item, array+start*itemSize);
  108|  25.5k|        if(diff==0) {
  ------------------
  |  Branch (108:12): [True: 0, False: 25.5k]
  ------------------
  109|      0|            found=true;
  110|  25.5k|        } else if(diff<0) {
  ------------------
  |  Branch (110:19): [True: 1.00k, False: 24.5k]
  ------------------
  111|  1.00k|            break;
  112|  1.00k|        }
  113|  24.5k|        ++start;
  114|  24.5k|    }
  115|  8.89k|    return found ? (start-1) : ~start;
  ------------------
  |  Branch (115:12): [True: 0, False: 8.89k]
  ------------------
  116|  8.89k|}
uprv_sortArray_78:
  258|  3.65k|               UBool sortStable, UErrorCode *pErrorCode) {
  259|  3.65k|    if(pErrorCode==nullptr || U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (259:8): [True: 0, False: 3.65k]
  |  Branch (259:31): [True: 0, False: 3.65k]
  ------------------
  260|      0|        return;
  261|      0|    }
  262|  3.65k|    if((length>0 && array==nullptr) || length<0 || itemSize<=0 || cmp==nullptr) {
  ------------------
  |  Branch (262:9): [True: 2.94k, False: 716]
  |  Branch (262:21): [True: 0, False: 2.94k]
  |  Branch (262:40): [True: 0, False: 3.65k]
  |  Branch (262:52): [True: 0, False: 3.65k]
  |  Branch (262:67): [True: 0, False: 3.65k]
  ------------------
  263|      0|        *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
  264|      0|        return;
  265|      0|    }
  266|       |
  267|  3.65k|    if(length<=1) {
  ------------------
  |  Branch (267:8): [True: 2.38k, False: 1.27k]
  ------------------
  268|  2.38k|        return;
  269|  2.38k|    } else if(length<MIN_QSORT || sortStable) {
  ------------------
  |  Branch (269:15): [True: 573, False: 698]
  |  Branch (269:35): [True: 0, False: 698]
  ------------------
  270|    573|        insertionSort((char *)array, length, itemSize, cmp, context, pErrorCode);
  271|    698|    } else {
  272|    698|        quickSort((char *)array, length, itemSize, cmp, context, pErrorCode);
  273|    698|    }
  274|  3.65k|}
uarrsort.cpp:_ZL13insertionSortPciiPFiPKvS1_S1_ES1_P10UErrorCode:
  142|    573|              UComparator *cmp, const void *context, UErrorCode *pErrorCode) {
  143|       |
  144|    573|    icu::MaybeStackArray<std::max_align_t, sizeInMaxAlignTs(STACK_ITEM_SIZE)> v;
  145|    573|    if (sizeInMaxAlignTs(itemSize) > v.getCapacity() &&
  ------------------
  |  Branch (145:9): [True: 0, False: 573]
  ------------------
  146|    573|            v.resize(sizeInMaxAlignTs(itemSize)) == nullptr) {
  ------------------
  |  Branch (146:13): [True: 0, False: 0]
  ------------------
  147|      0|        *pErrorCode = U_MEMORY_ALLOCATION_ERROR;
  148|      0|        return;
  149|      0|    }
  150|       |
  151|    573|    doInsertionSort(array, length, itemSize, cmp, context, v.getAlias());
  152|    573|}
uarrsort.cpp:_ZL16sizeInMaxAlignTsi:
   39|  1.96k|static constexpr int32_t sizeInMaxAlignTs(int32_t sizeInBytes) {
   40|  1.96k|    return (sizeInBytes + sizeof(std::max_align_t) - 1) / sizeof(std::max_align_t);
   41|  1.96k|}
uarrsort.cpp:_ZL15doInsertionSortPciiPFiPKvS1_S1_ES1_Pv:
  120|  2.20k|                UComparator *cmp, const void *context, void *pv) {
  121|  2.20k|    int32_t j;
  122|       |
  123|  11.1k|    for(j=1; j<length; ++j) {
  ------------------
  |  Branch (123:14): [True: 8.89k, False: 2.20k]
  ------------------
  124|  8.89k|        char *item=array+j*itemSize;
  125|  8.89k|        int32_t insertionPoint=uprv_stableBinarySearch(array, j, item, itemSize, cmp, context);
  ------------------
  |  | 1539|  8.89k|#define uprv_stableBinarySearch U_ICU_ENTRY_POINT_RENAME(uprv_stableBinarySearch)
  |  |  ------------------
  |  |  |  |  123|  8.89k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  8.89k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  8.89k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  126|  8.89k|        if(insertionPoint<0) {
  ------------------
  |  Branch (126:12): [True: 8.89k, False: 0]
  ------------------
  127|  8.89k|            insertionPoint=~insertionPoint;
  128|  8.89k|        } else {
  129|      0|            ++insertionPoint;  /* one past the last equal item */
  130|      0|        }
  131|  8.89k|        if(insertionPoint<j) {
  ------------------
  |  Branch (131:12): [True: 1.00k, False: 7.89k]
  ------------------
  132|  1.00k|            char *dest=array+insertionPoint*itemSize;
  133|  1.00k|            uprv_memcpy(pv, item, itemSize);  /* v=array[j] */
  ------------------
  |  |   42|  1.00k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  1.00k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  1.00k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  1.00k|    _Pragma("clang diagnostic push") \
  |  |   45|  1.00k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  1.00k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.00k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  1.00k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.00k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  1.00k|    _Pragma("clang diagnostic pop") \
  |  |   49|  1.00k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  1.00k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  1.00k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  1.00k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  134|  1.00k|            uprv_memmove(dest+itemSize, dest, (j-insertionPoint)*(size_t)itemSize);
  ------------------
  |  |   51|  1.00k|#define uprv_memmove(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  1.00k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   52|  1.00k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   53|  1.00k|    _Pragma("clang diagnostic push") \
  |  |   54|  1.00k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   55|  1.00k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.00k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   56|  1.00k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.00k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   57|  1.00k|    _Pragma("clang diagnostic pop") \
  |  |   58|  1.00k|    U_STANDARD_CPP_NAMESPACE memmove(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  1.00k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   59|  1.00k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  1.00k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  135|  1.00k|            uprv_memcpy(dest, pv, itemSize);  /* array[insertionPoint]=v */
  ------------------
  |  |   42|  1.00k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  1.00k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  1.00k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  1.00k|    _Pragma("clang diagnostic push") \
  |  |   45|  1.00k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  1.00k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.00k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  1.00k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.00k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  1.00k|    _Pragma("clang diagnostic pop") \
  |  |   49|  1.00k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  1.00k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  1.00k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  1.00k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  136|  1.00k|        }
  137|  8.89k|    }
  138|  2.20k|}
uarrsort.cpp:_ZL9quickSortPciiPFiPKvS1_S1_ES1_P10UErrorCode:
  236|    698|            UComparator *cmp, const void *context, UErrorCode *pErrorCode) {
  237|       |    /* allocate two intermediate item variables (x and w) */
  238|    698|    icu::MaybeStackArray<std::max_align_t, sizeInMaxAlignTs(STACK_ITEM_SIZE) * 2> xw;
  239|    698|    if(sizeInMaxAlignTs(itemSize)*2 > xw.getCapacity() &&
  ------------------
  |  Branch (239:8): [True: 0, False: 698]
  ------------------
  240|    698|            xw.resize(sizeInMaxAlignTs(itemSize) * 2) == nullptr) {
  ------------------
  |  Branch (240:13): [True: 0, False: 0]
  ------------------
  241|      0|        *pErrorCode=U_MEMORY_ALLOCATION_ERROR;
  242|      0|        return;
  243|      0|    }
  244|       |
  245|    698|    subQuickSort(array, 0, length, itemSize, cmp, context,
  246|    698|                 xw.getAlias(), xw.getAlias() + sizeInMaxAlignTs(itemSize));
  247|    698|}
uarrsort.cpp:_ZL12subQuickSortPciiiPFiPKvS1_S1_ES1_PvS4_:
  171|  1.63k|             void *px, void *pw) {
  172|  1.63k|    int32_t left, right;
  173|       |
  174|       |    /* start and left are inclusive, limit and right are exclusive */
  175|  2.66k|    do {
  176|  2.66k|        if((start+MIN_QSORT)>=limit) {
  ------------------
  |  Branch (176:12): [True: 1.63k, False: 1.03k]
  ------------------
  177|  1.63k|            doInsertionSort(array+start*itemSize, limit-start, itemSize, cmp, context, px);
  178|  1.63k|            break;
  179|  1.63k|        }
  180|       |
  181|  1.03k|        left=start;
  182|  1.03k|        right=limit;
  183|       |
  184|       |        /* x=array[middle] */
  185|  1.03k|        uprv_memcpy(px, array+(size_t)((start+limit)/2)*itemSize, itemSize);
  ------------------
  |  |   42|  1.03k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  1.03k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  1.03k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  1.03k|    _Pragma("clang diagnostic push") \
  |  |   45|  1.03k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  1.03k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.03k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  1.03k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.03k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  1.03k|    _Pragma("clang diagnostic pop") \
  |  |   49|  1.03k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  1.03k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  1.03k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  1.03k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  186|       |
  187|  1.72k|        do {
  188|  1.72k|            while(/* array[left]<x */
  189|  8.15k|                  cmp(context, array+left*itemSize, px)<0
  ------------------
  |  Branch (189:19): [True: 6.42k, False: 1.72k]
  ------------------
  190|  6.42k|            ) {
  191|  6.42k|                ++left;
  192|  6.42k|            }
  193|  1.72k|            while(/* x<array[right-1] */
  194|  7.16k|                  cmp(context, px, array+(right-1)*itemSize)<0
  ------------------
  |  Branch (194:19): [True: 5.43k, False: 1.72k]
  ------------------
  195|  5.43k|            ) {
  196|  5.43k|                --right;
  197|  5.43k|            }
  198|       |
  199|       |            /* swap array[left] and array[right-1] via w; ++left; --right */
  200|  1.72k|            if(left<right) {
  ------------------
  |  Branch (200:16): [True: 1.41k, False: 316]
  ------------------
  201|  1.41k|                --right;
  202|       |
  203|  1.41k|                if(left<right) {
  ------------------
  |  Branch (203:20): [True: 712, False: 700]
  ------------------
  204|    712|                    uprv_memcpy(pw, array+(size_t)left*itemSize, itemSize);
  ------------------
  |  |   42|    712|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    712|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    712|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    712|    _Pragma("clang diagnostic push") \
  |  |   45|    712|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    712|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    712|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    712|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    712|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    712|    _Pragma("clang diagnostic pop") \
  |  |   49|    712|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    712|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    712|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    712|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  205|    712|                    uprv_memcpy(array+(size_t)left*itemSize, array+(size_t)right*itemSize, itemSize);
  ------------------
  |  |   42|    712|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    712|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    712|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    712|    _Pragma("clang diagnostic push") \
  |  |   45|    712|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    712|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    712|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    712|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    712|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    712|    _Pragma("clang diagnostic pop") \
  |  |   49|    712|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    712|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    712|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    712|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  206|    712|                    uprv_memcpy(array+(size_t)right*itemSize, pw, itemSize);
  ------------------
  |  |   42|    712|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    712|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    712|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    712|    _Pragma("clang diagnostic push") \
  |  |   45|    712|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    712|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    712|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    712|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    712|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    712|    _Pragma("clang diagnostic pop") \
  |  |   49|    712|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    712|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    712|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    712|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  207|    712|                }
  208|       |
  209|  1.41k|                ++left;
  210|  1.41k|            }
  211|  1.72k|        } while(left<right);
  ------------------
  |  Branch (211:17): [True: 696, False: 1.03k]
  ------------------
  212|       |
  213|       |        /* sort sub-arrays */
  214|  1.03k|        if((right-start)<(limit-left)) {
  ------------------
  |  Branch (214:12): [True: 95, False: 937]
  ------------------
  215|       |            /* sort [start..right[ */
  216|     95|            if(start<(right-1)) {
  ------------------
  |  Branch (216:16): [True: 54, False: 41]
  ------------------
  217|     54|                subQuickSort(array, start, right, itemSize, cmp, context, px, pw);
  218|     54|            }
  219|       |
  220|       |            /* sort [left..limit[ */
  221|     95|            start=left;
  222|    937|        } else {
  223|       |            /* sort [left..limit[ */
  224|    937|            if(left<(limit-1)) {
  ------------------
  |  Branch (224:16): [True: 882, False: 55]
  ------------------
  225|    882|                subQuickSort(array, left, limit, itemSize, cmp, context, px, pw);
  226|    882|            }
  227|       |
  228|       |            /* sort [start..right[ */
  229|    937|            limit=right;
  230|    937|        }
  231|  1.03k|    } while(start<(limit-1));
  ------------------
  |  Branch (231:13): [True: 1.03k, False: 0]
  ------------------
  232|  1.63k|}

_ZN6icu_7810UCharsTrieD2Ev:
   27|   136k|UCharsTrie::~UCharsTrie() {
   28|   136k|    uprv_free(ownedArray_);
  ------------------
  |  | 1503|   136k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|   136k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   136k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   136k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   29|   136k|}
_ZN6icu_7810UCharsTrie17firstForCodePointEi:
   44|   134k|UCharsTrie::firstForCodePoint(UChar32 cp) {
   45|   134k|    return cp<=0xffff ?
  ------------------
  |  Branch (45:12): [True: 131k, False: 3.38k]
  ------------------
   46|   131k|        first(cp) :
   47|   134k|        (USTRINGTRIE_HAS_NEXT(first(U16_LEAD(cp))) ?
  ------------------
  |  |   95|  3.38k|#define USTRINGTRIE_HAS_NEXT(result) ((result)&1)
  |  |  ------------------
  |  |  |  Branch (95:38): [True: 514, False: 2.86k]
  |  |  ------------------
  ------------------
   48|    514|            next(U16_TRAIL(cp)) :
  ------------------
  |  |  132|    514|#define U16_TRAIL(supplementary) (UChar)(((supplementary)&0x3ff)|0xdc00)
  ------------------
   49|  3.38k|            USTRINGTRIE_NO_MATCH);
   50|   134k|}
_ZN6icu_7810UCharsTrie16nextForCodePointEi:
   53|   206k|UCharsTrie::nextForCodePoint(UChar32 cp) {
   54|   206k|    return cp<=0xffff ?
  ------------------
  |  Branch (54:12): [True: 154k, False: 51.7k]
  ------------------
   55|   154k|        next(cp) :
   56|   206k|        (USTRINGTRIE_HAS_NEXT(next(U16_LEAD(cp))) ?
  ------------------
  |  |   95|  51.7k|#define USTRINGTRIE_HAS_NEXT(result) ((result)&1)
  |  |  ------------------
  |  |  |  Branch (95:38): [True: 66, False: 51.7k]
  |  |  ------------------
  ------------------
   57|     66|            next(U16_TRAIL(cp)) :
  ------------------
  |  |  132|     66|#define U16_TRAIL(supplementary) (UChar)(((supplementary)&0x3ff)|0xdc00)
  ------------------
   58|  51.7k|            USTRINGTRIE_NO_MATCH);
   59|   206k|}
_ZN6icu_7810UCharsTrie10branchNextEPKDsii:
   62|   334k|UCharsTrie::branchNext(const char16_t *pos, int32_t length, int32_t uchar) {
   63|       |    // Branch according to the current unit.
   64|   334k|    if(length==0) {
  ------------------
  |  Branch (64:8): [True: 737, False: 333k]
  ------------------
   65|    737|        length=*pos++;
   66|    737|    }
   67|   334k|    ++length;
   68|       |    // The length of the branch is the number of units to select from.
   69|       |    // The data structure encodes a binary search.
   70|   344k|    while(length>kMaxBranchLinearSubNodeLength) {
  ------------------
  |  Branch (70:11): [True: 10.2k, False: 334k]
  ------------------
   71|  10.2k|        if(uchar<*pos++) {
  ------------------
  |  Branch (71:12): [True: 6.39k, False: 3.86k]
  ------------------
   72|  6.39k|            length>>=1;
   73|  6.39k|            pos=jumpByDelta(pos);
   74|  6.39k|        } else {
   75|  3.86k|            length=length-(length>>1);
   76|  3.86k|            pos=skipDelta(pos);
   77|  3.86k|        }
   78|  10.2k|    }
   79|       |    // Drop down to linear search for the last few units.
   80|       |    // length>=2 because the loop body above sees length>kMaxBranchLinearSubNodeLength>=3
   81|       |    // and divides length by 2.
   82|   615k|    do {
   83|   615k|        if(uchar==*pos++) {
  ------------------
  |  Branch (83:12): [True: 57.2k, False: 558k]
  ------------------
   84|  57.2k|            UStringTrieResult result;
   85|  57.2k|            int32_t node=*pos;
   86|  57.2k|            if(node&kValueIsFinal) {
  ------------------
  |  Branch (86:16): [True: 54.1k, False: 3.13k]
  ------------------
   87|       |                // Leave the final value for getValue() to read.
   88|  54.1k|                result=USTRINGTRIE_FINAL_VALUE;
   89|  54.1k|            } else {
   90|       |                // Use the non-final value as the jump delta.
   91|  3.13k|                ++pos;
   92|       |                // int32_t delta=readValue(pos, node);
   93|  3.13k|                int32_t delta;
   94|  3.13k|                if(node<kMinTwoUnitValueLead) {
  ------------------
  |  Branch (94:20): [True: 3.13k, False: 0]
  ------------------
   95|  3.13k|                    delta=node;
   96|  3.13k|                } else if(node<kThreeUnitValueLead) {
  ------------------
  |  Branch (96:27): [True: 0, False: 0]
  ------------------
   97|      0|                    delta=((node-kMinTwoUnitValueLead)<<16)|*pos++;
   98|      0|                } else {
   99|      0|                    delta=(pos[0]<<16)|pos[1];
  100|      0|                    pos+=2;
  101|      0|                }
  102|       |                // end readValue()
  103|  3.13k|                pos+=delta;
  104|  3.13k|                node=*pos;
  105|  3.13k|                result= node>=kMinValueLead ? valueResult(node) : USTRINGTRIE_NO_VALUE;
  ------------------
  |  Branch (105:25): [True: 1.97k, False: 1.15k]
  ------------------
  106|  3.13k|            }
  107|  57.2k|            pos_=pos;
  108|  57.2k|            return result;
  109|  57.2k|        }
  110|   558k|        --length;
  111|   558k|        pos=skipValue(pos);
  112|   558k|    } while(length>1);
  ------------------
  |  Branch (112:13): [True: 281k, False: 276k]
  ------------------
  113|   276k|    if(uchar==*pos++) {
  ------------------
  |  Branch (113:8): [True: 1.24k, False: 275k]
  ------------------
  114|  1.24k|        pos_=pos;
  115|  1.24k|        int32_t node=*pos;
  116|  1.24k|        return node>=kMinValueLead ? valueResult(node) : USTRINGTRIE_NO_VALUE;
  ------------------
  |  Branch (116:16): [True: 824, False: 420]
  ------------------
  117|   275k|    } else {
  118|   275k|        stop();
  119|   275k|        return USTRINGTRIE_NO_MATCH;
  120|   275k|    }
  121|   276k|}
_ZN6icu_7810UCharsTrie8nextImplEPKDsi:
  124|   340k|UCharsTrie::nextImpl(const char16_t *pos, int32_t uchar) {
  125|   340k|    int32_t node=*pos++;
  126|   342k|    for(;;) {
  127|   342k|        if(node<kMinLinearMatch) {
  ------------------
  |  Branch (127:12): [True: 334k, False: 8.53k]
  ------------------
  128|   334k|            return branchNext(pos, node, uchar);
  129|   334k|        } else if(node<kMinValueLead) {
  ------------------
  |  Branch (129:19): [True: 6.55k, False: 1.98k]
  ------------------
  130|       |            // Match the first of length+1 units.
  131|  6.55k|            int32_t length=node-kMinLinearMatch;  // Actual match length minus 1.
  132|  6.55k|            if(uchar==*pos++) {
  ------------------
  |  Branch (132:16): [True: 2.31k, False: 4.24k]
  ------------------
  133|  2.31k|                remainingMatchLength_=--length;
  134|  2.31k|                pos_=pos;
  135|  2.31k|                return (length<0 && (node=*pos)>=kMinValueLead) ?
  ------------------
  |  Branch (135:25): [True: 1.57k, False: 744]
  |  Branch (135:37): [True: 926, False: 644]
  ------------------
  136|  1.38k|                        valueResult(node) : USTRINGTRIE_NO_VALUE;
  137|  4.24k|            } else {
  138|       |                // No match.
  139|  4.24k|                break;
  140|  4.24k|            }
  141|  6.55k|        } else if(node&kValueIsFinal) {
  ------------------
  |  Branch (141:19): [True: 0, False: 1.98k]
  ------------------
  142|       |            // No further matching units.
  143|      0|            break;
  144|  1.98k|        } else {
  145|       |            // Skip intermediate value.
  146|  1.98k|            pos=skipNodeValue(pos, node);
  147|  1.98k|            node&=kNodeTypeMask;
  148|  1.98k|        }
  149|   342k|    }
  150|  4.24k|    stop();
  151|  4.24k|    return USTRINGTRIE_NO_MATCH;
  152|   340k|}
_ZN6icu_7810UCharsTrie4nextEi:
  155|   206k|UCharsTrie::next(int32_t uchar) {
  156|   206k|    const char16_t *pos=pos_;
  157|   206k|    if(pos==nullptr) {
  ------------------
  |  Branch (157:8): [True: 0, False: 206k]
  ------------------
  158|      0|        return USTRINGTRIE_NO_MATCH;
  159|      0|    }
  160|   206k|    int32_t length=remainingMatchLength_;  // Actual remaining match length minus 1.
  161|   206k|    if(length>=0) {
  ------------------
  |  Branch (161:8): [True: 837, False: 205k]
  ------------------
  162|       |        // Remaining part of a linear-match node.
  163|    837|        if(uchar==*pos++) {
  ------------------
  |  Branch (163:12): [True: 392, False: 445]
  ------------------
  164|    392|            remainingMatchLength_=--length;
  165|    392|            pos_=pos;
  166|    392|            int32_t node;
  167|    392|            return (length<0 && (node=*pos)>=kMinValueLead) ?
  ------------------
  |  Branch (167:21): [True: 197, False: 195]
  |  Branch (167:33): [True: 197, False: 0]
  ------------------
  168|    197|                    valueResult(node) : USTRINGTRIE_NO_VALUE;
  169|    445|        } else {
  170|    445|            stop();
  171|    445|            return USTRINGTRIE_NO_MATCH;
  172|    445|        }
  173|    837|    }
  174|   205k|    return nextImpl(pos, uchar);
  175|   206k|}

ucln_common_registerCleanup_78:
   67|     16|{
   68|       |    // Thread safety messiness: From ticket 10295, calls to registerCleanup() may occur
   69|       |    // concurrently. Although such cases should be storing the same value, they raise errors
   70|       |    // from the thread sanity checker. Doing the store within a mutex avoids those.
   71|       |    // BUT that can trigger a recursive entry into std::call_once() in umutex.cpp when this code,
   72|       |    // running from the call_once function, tries to grab the ICU global mutex, which
   73|       |    // re-enters the mutex init path. So, work-around by special casing UCLN_COMMON_MUTEX, not
   74|       |    // using the ICU global mutex for it.
   75|       |    //
   76|       |    // No other point in ICU uses std::call_once().
   77|       |
   78|     16|    U_ASSERT(UCLN_COMMON_START < type && type < UCLN_COMMON_COUNT);
  ------------------
  |  |   35|     16|#   define U_ASSERT(exp) (void)0
  ------------------
   79|     16|    if (type == UCLN_COMMON_MUTEX) {
  ------------------
  |  Branch (79:9): [True: 1, False: 15]
  ------------------
   80|      1|        gCommonCleanupFunctions[type] = func;
   81|     15|    } else if (UCLN_COMMON_START < type && type < UCLN_COMMON_COUNT)  {
  ------------------
  |  Branch (81:16): [True: 15, False: 0]
  |  Branch (81:44): [True: 15, False: 0]
  ------------------
   82|     15|        icu::Mutex m;     // See ticket 10295 for discussion.
   83|     15|        gCommonCleanupFunctions[type] = func;
   84|     15|    }
   85|       |#if !UCLN_NO_AUTO_CLEANUP && (defined(UCLN_AUTO_ATEXIT) || defined(UCLN_AUTO_LOCAL))
   86|       |    ucln_registerAutomaticCleanup();
   87|       |#endif
   88|     16|}
ucln_registerCleanup_78:
   97|      1|{
   98|      1|    U_ASSERT(UCLN_START < type && type < UCLN_COMMON);
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
   99|      1|    if (UCLN_START < type && type < UCLN_COMMON)
  ------------------
  |  Branch (99:9): [True: 1, False: 0]
  |  Branch (99:30): [True: 1, False: 0]
  ------------------
  100|      1|    {
  101|      1|        gLibCleanupFunctions[type] = func;
  102|      1|    }
  103|      1|}

udata_getHeaderSize_78:
   36|    164|udata_getHeaderSize(const DataHeader *udh) {
   37|    164|    if(udh==nullptr) {
  ------------------
  |  Branch (37:8): [True: 0, False: 164]
  ------------------
   38|      0|        return 0;
   39|    164|    } else if(udh->info.isBigEndian==U_IS_BIG_ENDIAN) {
  ------------------
  |  |  353|    164|#   define U_IS_BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
  ------------------
  |  Branch (39:15): [True: 164, False: 0]
  ------------------
   40|       |        /* same endianness */
   41|    164|        return udh->dataHeader.headerSize;
   42|    164|    } else {
   43|       |        /* opposite endianness */
   44|      0|        uint16_t x=udh->dataHeader.headerSize;
   45|      0|        return (uint16_t)((x<<8)|(x>>8));
   46|      0|    }
   47|    164|}
udata_checkCommonData_78:
  326|      1|U_CFUNC void udata_checkCommonData(UDataMemory *udm, UErrorCode *err) {
  327|      1|    if (U_FAILURE(*err)) {
  ------------------
  |  Branch (327:9): [True: 0, False: 1]
  ------------------
  328|      0|        return;
  329|      0|    }
  330|       |
  331|      1|    if(udm==nullptr || udm->pHeader==nullptr) {
  ------------------
  |  Branch (331:8): [True: 0, False: 1]
  |  Branch (331:24): [True: 0, False: 1]
  ------------------
  332|      0|      *err=U_INVALID_FORMAT_ERROR;
  333|      1|    } else if(!(udm->pHeader->dataHeader.magic1==0xda &&
  ------------------
  |  Branch (333:17): [True: 1, False: 0]
  ------------------
  334|      1|        udm->pHeader->dataHeader.magic2==0x27 &&
  ------------------
  |  Branch (334:9): [True: 1, False: 0]
  ------------------
  335|      1|        udm->pHeader->info.isBigEndian==U_IS_BIG_ENDIAN &&
  ------------------
  |  |  353|      2|#   define U_IS_BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
  ------------------
  |  Branch (335:9): [True: 1, False: 0]
  ------------------
  336|      1|        udm->pHeader->info.charsetFamily==U_CHARSET_FAMILY)
  ------------------
  |  |  588|      1|#   define U_CHARSET_FAMILY U_ASCII_FAMILY
  |  |  ------------------
  |  |  |  |  531|      1|#define U_ASCII_FAMILY 0
  |  |  ------------------
  ------------------
  |  Branch (336:9): [True: 1, False: 0]
  ------------------
  337|      1|        ) {
  338|       |        /* header not valid */
  339|      0|        *err=U_INVALID_FORMAT_ERROR;
  340|      0|    }
  341|      1|    else if (udm->pHeader->info.dataFormat[0]==0x43 &&
  ------------------
  |  Branch (341:14): [True: 1, False: 0]
  ------------------
  342|      1|        udm->pHeader->info.dataFormat[1]==0x6d &&
  ------------------
  |  Branch (342:9): [True: 1, False: 0]
  ------------------
  343|      1|        udm->pHeader->info.dataFormat[2]==0x6e &&
  ------------------
  |  Branch (343:9): [True: 1, False: 0]
  ------------------
  344|      1|        udm->pHeader->info.dataFormat[3]==0x44 &&
  ------------------
  |  Branch (344:9): [True: 1, False: 0]
  ------------------
  345|      1|        udm->pHeader->info.formatVersion[0]==1
  ------------------
  |  Branch (345:9): [True: 1, False: 0]
  ------------------
  346|      1|        ) {
  347|       |        /* dataFormat="CmnD" */
  348|      1|        udm->vFuncs = &CmnDFuncs;
  349|      1|        udm->toc=(const char *)udm->pHeader+udata_getHeaderSize(udm->pHeader);
  ------------------
  |  |  887|      1|#define udata_getHeaderSize U_ICU_ENTRY_POINT_RENAME(udata_getHeaderSize)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  350|      1|    }
  351|      0|    else if(udm->pHeader->info.dataFormat[0]==0x54 &&
  ------------------
  |  Branch (351:13): [True: 0, False: 0]
  ------------------
  352|      0|        udm->pHeader->info.dataFormat[1]==0x6f &&
  ------------------
  |  Branch (352:9): [True: 0, False: 0]
  ------------------
  353|      0|        udm->pHeader->info.dataFormat[2]==0x43 &&
  ------------------
  |  Branch (353:9): [True: 0, False: 0]
  ------------------
  354|      0|        udm->pHeader->info.dataFormat[3]==0x50 &&
  ------------------
  |  Branch (354:9): [True: 0, False: 0]
  ------------------
  355|      0|        udm->pHeader->info.formatVersion[0]==1
  ------------------
  |  Branch (355:9): [True: 0, False: 0]
  ------------------
  356|      0|        ) {
  357|       |        /* dataFormat="ToCP" */
  358|      0|        udm->vFuncs = &ToCPFuncs;
  359|      0|        udm->toc=(const char *)udm->pHeader+udata_getHeaderSize(udm->pHeader);
  ------------------
  |  |  887|      0|#define udata_getHeaderSize U_ICU_ENTRY_POINT_RENAME(udata_getHeaderSize)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  360|      0|    }
  361|      0|    else {
  362|       |        /* dataFormat not recognized */
  363|      0|        *err=U_INVALID_FORMAT_ERROR;
  364|      0|    }
  365|       |
  366|      1|    if (U_FAILURE(*err)) {
  ------------------
  |  Branch (366:9): [True: 0, False: 1]
  ------------------
  367|       |        /* If the data is no good and we memory-mapped it ourselves,
  368|       |         *  close the memory mapping so it doesn't leak.  Note that this has
  369|       |         *  no effect on non-memory mapped data, other than clearing fields in udm.
  370|       |         */
  371|      0|        udata_close(udm);
  ------------------
  |  |  885|      0|#define udata_close U_ICU_ENTRY_POINT_RENAME(udata_close)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  372|      0|    }
  373|      1|}
ucmndata.cpp:_ZL17offsetTOCLookupFnPK11UDataMemoryPKcPiP10UErrorCode:
  229|  12.8k|                  UErrorCode *pErrorCode) {
  230|  12.8k|    (void)pErrorCode;
  231|  12.8k|    const UDataOffsetTOC  *toc = (UDataOffsetTOC *)pData->toc;
  232|  12.8k|    if(toc!=nullptr) {
  ------------------
  |  Branch (232:8): [True: 12.8k, False: 0]
  ------------------
  233|  12.8k|        const char *base=(const char *)toc;
  234|  12.8k|        int32_t number, count=(int32_t)toc->count;
  235|       |
  236|       |        /* perform a binary search for the data in the common data's table of contents */
  237|       |#if defined (UDATA_DEBUG_DUMP)
  238|       |        /* list the contents of the TOC each time .. not recommended */
  239|       |        for(number=0; number<count; ++number) {
  240|       |            fprintf(stderr, "\tx%d: %s\n", number, &base[toc->entry[number].nameOffset]);
  241|       |        }
  242|       |#endif
  243|  12.8k|        number=offsetTOCPrefixBinarySearch(tocEntryName, base, toc->entry, count);
  244|  12.8k|        if(number>=0) {
  ------------------
  |  Branch (244:12): [True: 162, False: 12.6k]
  ------------------
  245|       |            /* found it */
  246|    162|            const UDataOffsetTOCEntry *entry=toc->entry+number;
  247|       |#ifdef UDATA_DEBUG
  248|       |            fprintf(stderr, "%s: Found.\n", tocEntryName);
  249|       |#endif
  250|    162|            if((number+1) < count) {
  ------------------
  |  Branch (250:16): [True: 162, False: 0]
  ------------------
  251|    162|                *pLength = (int32_t)(entry[1].dataOffset - entry->dataOffset);
  252|    162|            } else {
  253|      0|                *pLength = -1;
  254|      0|            }
  255|    162|            return (const DataHeader *)(base+entry->dataOffset);
  256|  12.6k|        } else {
  257|       |#ifdef UDATA_DEBUG
  258|       |            fprintf(stderr, "%s: Not found.\n", tocEntryName);
  259|       |#endif
  260|  12.6k|            return nullptr;
  261|  12.6k|        }
  262|  12.8k|    } else {
  263|       |#ifdef UDATA_DEBUG
  264|       |        fprintf(stderr, "returning header\n");
  265|       |#endif
  266|       |
  267|      0|        return pData->pHeader;
  268|      0|    }
  269|  12.8k|}
ucmndata.cpp:_ZL27offsetTOCPrefixBinarySearchPKcS0_PK19UDataOffsetTOCEntryi:
  125|  12.8k|                            const UDataOffsetTOCEntry *toc, int32_t count) {
  126|  12.8k|    int32_t start=0;
  127|  12.8k|    int32_t limit=count;
  128|       |    /*
  129|       |     * Remember the shared prefix between s, start and limit,
  130|       |     * and don't compare that shared prefix again.
  131|       |     * The shared prefix should get longer as we narrow the [start, limit[ range.
  132|       |     */
  133|  12.8k|    int32_t startPrefixLength=0;
  134|  12.8k|    int32_t limitPrefixLength=0;
  135|  12.8k|    if(count==0) {
  ------------------
  |  Branch (135:8): [True: 0, False: 12.8k]
  ------------------
  136|      0|        return -1;
  137|      0|    }
  138|       |    /*
  139|       |     * Prime the prefix lengths so that we don't keep prefixLength at 0 until
  140|       |     * both the start and limit indexes have moved.
  141|       |     * At the same time, we find if s is one of the start and (limit-1) names,
  142|       |     * and if not, exclude them from the actual binary search.
  143|       |     */
  144|  12.8k|    if(0==strcmpAfterPrefix(s, names+toc[0].nameOffset, &startPrefixLength)) {
  ------------------
  |  Branch (144:8): [True: 0, False: 12.8k]
  ------------------
  145|      0|        return 0;
  146|      0|    }
  147|  12.8k|    ++start;
  148|  12.8k|    --limit;
  149|  12.8k|    if(0==strcmpAfterPrefix(s, names+toc[limit].nameOffset, &limitPrefixLength)) {
  ------------------
  |  Branch (149:8): [True: 0, False: 12.8k]
  ------------------
  150|      0|        return limit;
  151|      0|    }
  152|   166k|    while(start<limit) {
  ------------------
  |  Branch (152:11): [True: 153k, False: 12.6k]
  ------------------
  153|   153k|        int32_t i=(start+limit)/2;
  154|   153k|        int32_t prefixLength=MIN(startPrefixLength, limitPrefixLength);
  ------------------
  |  |   97|   153k|#define MIN(a,b) (((a)<(b)) ? (a) : (b))
  |  |  ------------------
  |  |  |  Branch (97:19): [True: 75.5k, False: 78.2k]
  |  |  ------------------
  ------------------
  155|   153k|        int32_t cmp=strcmpAfterPrefix(s, names+toc[i].nameOffset, &prefixLength);
  156|   153k|        if(cmp<0) {
  ------------------
  |  Branch (156:12): [True: 108k, False: 45.2k]
  ------------------
  157|   108k|            limit=i;
  158|   108k|            limitPrefixLength=prefixLength;
  159|   108k|        } else if(cmp==0) {
  ------------------
  |  Branch (159:19): [True: 162, False: 45.0k]
  ------------------
  160|    162|            return i;
  161|  45.0k|        } else {
  162|  45.0k|            start=i+1;
  163|  45.0k|            startPrefixLength=prefixLength;
  164|  45.0k|        }
  165|   153k|    }
  166|  12.6k|    return -1;
  167|  12.8k|}
ucmndata.cpp:_ZL17strcmpAfterPrefixPKcS0_Pi:
  105|   179k|strcmpAfterPrefix(const char *s1, const char *s2, int32_t *pPrefixLength) {
  106|   179k|    int32_t pl=*pPrefixLength;
  107|   179k|    int32_t cmp=0;
  108|   179k|    s1+=pl;
  109|   179k|    s2+=pl;
  110|   707k|    for(;;) {
  111|   707k|        int32_t c1 = static_cast<uint8_t>(*s1++);
  112|   707k|        int32_t c2 = static_cast<uint8_t>(*s2++);
  113|   707k|        cmp=c1-c2;
  114|   707k|        if(cmp!=0 || c1==0) {  /* different or done */
  ------------------
  |  Branch (114:12): [True: 179k, False: 528k]
  |  Branch (114:22): [True: 162, False: 528k]
  ------------------
  115|   179k|            break;
  116|   179k|        }
  117|   528k|        ++pl;  /* increment shared same-prefix length */
  118|   528k|    }
  119|   179k|    *pPrefixLength=pl;
  120|   179k|    return cmp;
  121|   179k|}

ucptrie_internalSmallIndex_78:
  161|   376k|ucptrie_internalSmallIndex(const UCPTrie *trie, UChar32 c) {
  162|   376k|    int32_t i1 = c >> UCPTRIE_SHIFT_1;
  163|   376k|    if (trie->type == UCPTRIE_TYPE_FAST) {
  ------------------
  |  Branch (163:9): [True: 376k, False: 0]
  ------------------
  164|   376k|        U_ASSERT(0xffff < c && c < trie->highStart);
  ------------------
  |  |   35|   376k|#   define U_ASSERT(exp) (void)0
  ------------------
  165|   376k|        i1 += UCPTRIE_BMP_INDEX_LENGTH - UCPTRIE_OMITTED_BMP_INDEX_1_LENGTH;
  166|   376k|    } else {
  167|      0|        U_ASSERT((uint32_t)c < (uint32_t)trie->highStart && trie->highStart > UCPTRIE_SMALL_LIMIT);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
  168|      0|        i1 += UCPTRIE_SMALL_INDEX_LENGTH;
  169|      0|    }
  170|   376k|    int32_t i3Block = trie->index[
  171|   376k|        (int32_t)trie->index[i1] + ((c >> UCPTRIE_SHIFT_2) & UCPTRIE_INDEX_2_MASK)];
  172|   376k|    int32_t i3 = (c >> UCPTRIE_SHIFT_3) & UCPTRIE_INDEX_3_MASK;
  173|   376k|    int32_t dataBlock;
  174|   376k|    if ((i3Block & 0x8000) == 0) {
  ------------------
  |  Branch (174:9): [True: 376k, False: 0]
  ------------------
  175|       |        // 16-bit indexes
  176|   376k|        dataBlock = trie->index[i3Block + i3];
  177|   376k|    } else {
  178|       |        // 18-bit indexes stored in groups of 9 entries per 8 indexes.
  179|      0|        i3Block = (i3Block & 0x7fff) + (i3 & ~7) + (i3 >> 3);
  180|      0|        i3 &= 7;
  181|      0|        dataBlock = ((int32_t)trie->index[i3Block++] << (2 + (2 * i3))) & 0x30000;
  182|      0|        dataBlock |= trie->index[i3Block + i3];
  183|      0|    }
  184|   376k|    return dataBlock + (c & UCPTRIE_SMALL_DATA_MASK);
  185|   376k|}

_ZN6icu_7817UDataPathIteratorC2EPKcS2_S2_S2_aP10UErrorCode:
  451|      1|{
  452|       |#ifdef UDATA_DEBUG
  453|       |        fprintf(stderr, "SUFFIX1=%s PATH=%s\n", inSuffix, inPath);
  454|       |#endif
  455|       |    /** Path **/
  456|      1|    if(inPath == nullptr) {
  ------------------
  |  Branch (456:8): [True: 0, False: 1]
  ------------------
  457|      0|        path = u_getDataDirectory();
  ------------------
  |  |  271|      0|#define u_getDataDirectory U_ICU_ENTRY_POINT_RENAME(u_getDataDirectory)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  458|      1|    } else {
  459|      1|        path = inPath;
  460|      1|    }
  461|       |
  462|       |    /** Package **/
  463|      1|    if(pkg != nullptr) {
  ------------------
  |  Branch (463:8): [True: 1, False: 0]
  ------------------
  464|      1|      packageStub.append(U_FILE_SEP_CHAR, *pErrorCode).append(pkg, *pErrorCode);
  ------------------
  |  |  130|      1|#   define U_FILE_SEP_CHAR '/'
  ------------------
  465|       |#ifdef UDATA_DEBUG
  466|       |      fprintf(stderr, "STUB=%s [%d]\n", packageStub.data(), packageStub.length());
  467|       |#endif
  468|      1|    }
  469|       |
  470|       |    /** Item **/
  471|      1|    basename = findBasename(item);
  472|      1|    basenameLen = static_cast<int32_t>(uprv_strlen(basename));
  ------------------
  |  |   37|      1|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  473|       |
  474|       |    /** Item path **/
  475|      1|    if(basename == item) {
  ------------------
  |  Branch (475:8): [True: 1, False: 0]
  ------------------
  476|      1|        nextPath = path;
  477|      1|    } else {
  478|      0|        itemPath.append(item, static_cast<int32_t>(basename - item), *pErrorCode);
  479|      0|        nextPath = itemPath.data();
  480|      0|    }
  481|       |#ifdef UDATA_DEBUG
  482|       |    fprintf(stderr, "SUFFIX=%s [%p]\n", inSuffix, (void*) inSuffix);
  483|       |#endif
  484|       |
  485|       |    /** Suffix  **/
  486|      1|    if(inSuffix != nullptr) {
  ------------------
  |  Branch (486:8): [True: 1, False: 0]
  ------------------
  487|      1|        suffix = inSuffix;
  488|      1|    } else {
  489|      0|        suffix = "";
  490|      0|    }
  491|       |
  492|      1|    checkLastFour = doCheckLastFour;
  493|       |
  494|       |    /* pathBuffer will hold the output path strings returned by this iterator */
  495|       |
  496|       |#ifdef UDATA_DEBUG
  497|       |    fprintf(stderr, "0: init %s -> [path=%s], [base=%s], [suff=%s], [itempath=%s], [nextpath=%s], [checklast4=%s]\n",
  498|       |            item,
  499|       |            path,
  500|       |            basename,
  501|       |            suffix.data(),
  502|       |            itemPath.data(),
  503|       |            nextPath,
  504|       |            checkLastFour?"true":"false");
  505|       |#endif
  506|      1|}
_ZN6icu_7817UDataPathIterator4nextEP10UErrorCode:
  516|      1|{
  517|      1|    if(U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (517:8): [True: 0, False: 1]
  ------------------
  518|      0|        return nullptr;
  519|      0|    }
  520|       |
  521|      1|    const char *currentPath = nullptr;
  522|      1|    int32_t     pathLen = 0;
  523|      1|    const char *pathBasename;
  524|       |
  525|      1|    do
  526|      2|    {
  527|      2|        if( nextPath == nullptr ) {
  ------------------
  |  Branch (527:13): [True: 1, False: 1]
  ------------------
  528|      1|            break;
  529|      1|        }
  530|      1|        currentPath = nextPath;
  531|       |
  532|      1|        if(nextPath == itemPath.data()) { /* we were processing item's path. */
  ------------------
  |  Branch (532:12): [True: 0, False: 1]
  ------------------
  533|      0|            nextPath = path; /* start with regular path next tm. */
  534|      0|            pathLen = static_cast<int32_t>(uprv_strlen(currentPath));
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  535|      1|        } else {
  536|       |            /* fix up next for next time */
  537|      1|            nextPath = uprv_strchr(currentPath, U_PATH_SEP_CHAR);
  ------------------
  |  |   40|      1|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  538|      1|            if(nextPath == nullptr) {
  ------------------
  |  Branch (538:16): [True: 1, False: 0]
  ------------------
  539|       |                /* segment: entire path */
  540|      1|                pathLen = static_cast<int32_t>(uprv_strlen(currentPath));
  ------------------
  |  |   37|      1|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  541|      1|            } else {
  542|       |                /* segment: until next segment */
  543|      0|                pathLen = static_cast<int32_t>(nextPath - currentPath);
  544|       |                /* skip divider */
  545|      0|                nextPath ++;
  546|      0|            }
  547|      1|        }
  548|       |
  549|      1|        if(pathLen == 0) {
  ------------------
  |  Branch (549:12): [True: 1, False: 0]
  ------------------
  550|      1|            continue;
  551|      1|        }
  552|       |
  553|       |#ifdef UDATA_DEBUG
  554|       |        fprintf(stderr, "rest of path (IDD) = %s\n", currentPath);
  555|       |        fprintf(stderr, "                     ");
  556|       |        { 
  557|       |            int32_t qqq;
  558|       |            for(qqq=0;qqq<pathLen;qqq++)
  559|       |            {
  560|       |                fprintf(stderr, " ");
  561|       |            }
  562|       |
  563|       |            fprintf(stderr, "^\n");
  564|       |        }
  565|       |#endif
  566|      0|        pathBuffer.clear().append(currentPath, pathLen, *pErrorCode);
  567|       |
  568|       |        /* check for .dat files */
  569|      0|        pathBasename = findBasename(pathBuffer.data());
  570|       |
  571|      0|        if(checkLastFour && 
  ------------------
  |  Branch (571:12): [True: 0, False: 0]
  ------------------
  572|      0|           (pathLen>=4) &&
  ------------------
  |  Branch (572:12): [True: 0, False: 0]
  ------------------
  573|      0|           uprv_strncmp(pathBuffer.data() +(pathLen-4), suffix.data(), 4)==0 && /* suffix matches */
  ------------------
  |  |   44|      0|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (573:12): [True: 0, False: 0]
  ------------------
  574|      0|           uprv_strncmp(findBasename(pathBuffer.data()), basename, basenameLen)==0  && /* base matches */
  ------------------
  |  |   44|      0|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (574:12): [True: 0, False: 0]
  ------------------
  575|      0|           uprv_strlen(pathBasename)==(basenameLen+4)) { /* base+suffix = full len */
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (575:12): [True: 0, False: 0]
  ------------------
  576|       |
  577|       |#ifdef UDATA_DEBUG
  578|       |            fprintf(stderr, "Have %s file on the path: %s\n", suffix.data(), pathBuffer.data());
  579|       |#endif
  580|       |            /* do nothing */
  581|      0|        }
  582|      0|        else 
  583|      0|        {       /* regular dir path */
  584|      0|            if(pathBuffer[pathLen-1] != U_FILE_SEP_CHAR) {
  ------------------
  |  |  130|      0|#   define U_FILE_SEP_CHAR '/'
  ------------------
  |  Branch (584:16): [True: 0, False: 0]
  ------------------
  585|      0|                if((pathLen>=4) &&
  ------------------
  |  Branch (585:20): [True: 0, False: 0]
  ------------------
  586|      0|                   uprv_strncmp(pathBuffer.data()+(pathLen-4), ".dat", 4) == 0)
  ------------------
  |  |   44|      0|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (586:20): [True: 0, False: 0]
  ------------------
  587|      0|                {
  588|       |#ifdef UDATA_DEBUG
  589|       |                    fprintf(stderr, "skipping non-directory .dat file %s\n", pathBuffer.data());
  590|       |#endif
  591|      0|                    continue;
  592|      0|                }
  593|       |
  594|       |                /* Check if it is a directory with the same name as our package */
  595|      0|                if(!packageStub.isEmpty() &&
  ------------------
  |  Branch (595:20): [True: 0, False: 0]
  ------------------
  596|      0|                   (pathLen > packageStub.length()) &&
  ------------------
  |  Branch (596:20): [True: 0, False: 0]
  ------------------
  597|      0|                   !uprv_strcmp(pathBuffer.data() + pathLen - packageStub.length(), packageStub.data())) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (597:20): [True: 0, False: 0]
  ------------------
  598|       |#ifdef UDATA_DEBUG
  599|       |                  fprintf(stderr, "Found stub %s (will add package %s of len %d)\n", packageStub.data(), basename, basenameLen);
  600|       |#endif
  601|      0|                  pathBuffer.truncate(pathLen - packageStub.length());
  602|      0|                }
  603|      0|                pathBuffer.append(U_FILE_SEP_CHAR, *pErrorCode);
  ------------------
  |  |  130|      0|#   define U_FILE_SEP_CHAR '/'
  ------------------
  604|      0|            }
  605|       |
  606|       |            /* + basename */
  607|      0|            pathBuffer.append(packageStub.data()+1, packageStub.length()-1, *pErrorCode);
  608|       |
  609|      0|            if (!suffix.empty())  /* tack on suffix */
  ------------------
  |  Branch (609:17): [True: 0, False: 0]
  ------------------
  610|      0|            {
  611|      0|                if (suffix.length() > 4) {
  ------------------
  |  Branch (611:21): [True: 0, False: 0]
  ------------------
  612|       |                    // If the suffix is actually an item ("ibm-5348_P100-1997.cnv") and not an extension (".res")
  613|       |                    // then we need to ensure that the path ends with a separator.
  614|      0|                    pathBuffer.ensureEndsWithFileSeparator(*pErrorCode);
  615|      0|                }
  616|      0|                pathBuffer.append(suffix, *pErrorCode);
  617|      0|            }
  618|      0|        }
  619|       |
  620|       |#ifdef UDATA_DEBUG
  621|       |        fprintf(stderr, " -->  %s\n", pathBuffer.data());
  622|       |#endif
  623|       |
  624|      0|        return pathBuffer.data();
  625|       |
  626|      1|    } while(path);
  ------------------
  |  Branch (626:13): [True: 1, False: 0]
  ------------------
  627|       |
  628|       |    /* fell way off the end */
  629|      1|    return nullptr;
  630|      1|}
udata_openChoice_78:
 1406|  12.8k|                 UErrorCode *pErrorCode) {
 1407|       |#ifdef UDATA_DEBUG
 1408|       |  fprintf(stderr, "udata_openChoice(): Opening: %s : %s . %s\n", (path?path:"nullptr"), name, type);
 1409|       |#endif
 1410|       |
 1411|  12.8k|    if(pErrorCode==nullptr || U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (1411:8): [True: 0, False: 12.8k]
  |  Branch (1411:31): [True: 0, False: 12.8k]
  ------------------
 1412|      0|        return nullptr;
 1413|  12.8k|    } else if(name==nullptr || *name==0 || isAcceptable==nullptr) {
  ------------------
  |  Branch (1413:15): [True: 0, False: 12.8k]
  |  Branch (1413:32): [True: 0, False: 12.8k]
  |  Branch (1413:44): [True: 0, False: 12.8k]
  ------------------
 1414|      0|        *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
 1415|      0|        return nullptr;
 1416|  12.8k|    } else {
 1417|  12.8k|        return doOpenChoice(path, type, name, isAcceptable, context, pErrorCode);
 1418|  12.8k|    }
 1419|  12.8k|}
udata.cpp:_ZL12findBasenamePKc:
  225|  12.6k|findBasename(const char *path) {
  226|  12.6k|    const char *basename=uprv_strrchr(path, U_FILE_SEP_CHAR);
  ------------------
  |  |   42|  12.6k|#define uprv_strrchr(s, c) U_STANDARD_CPP_NAMESPACE strrchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  12.6k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  227|  12.6k|    if(basename==nullptr) {
  ------------------
  |  Branch (227:8): [True: 12.6k, False: 0]
  ------------------
  228|  12.6k|        return path;
  229|  12.6k|    } else {
  230|      0|        return basename+1;
  231|      0|    }
  232|  12.6k|}
udata.cpp:_ZL16setCommonICUDataP11UDataMemoryaP10UErrorCode:
  174|      1|{
  175|      1|    UDataMemory  *newCommonData = UDataMemory_createNewInstance(pErr);
  ------------------
  |  |   79|      1|#define UDataMemory_createNewInstance U_ICU_ENTRY_POINT_RENAME(UDataMemory_createNewInstance)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  176|      1|    int32_t i;
  177|      1|    UBool didUpdate = false;
  178|      1|    if (U_FAILURE(*pErr)) {
  ------------------
  |  Branch (178:9): [True: 0, False: 1]
  ------------------
  179|      0|        return false;
  180|      0|    }
  181|       |
  182|       |    /*  For the assignment, other threads must cleanly see either the old            */
  183|       |    /*    or the new, not some partially initialized new.  The old can not be        */
  184|       |    /*    deleted - someone may still have a pointer to it lying around in           */
  185|       |    /*    their locals.                                                              */
  186|      1|    UDatamemory_assign(newCommonData, pData);
  ------------------
  |  |   84|      1|#define UDatamemory_assign U_ICU_ENTRY_POINT_RENAME(UDatamemory_assign)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  187|      1|    umtx_lock(nullptr);
  ------------------
  |  | 1250|      1|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  188|      1|    for (i = 0; i < UPRV_LENGTHOF(gCommonICUDataArray); ++i) {
  ------------------
  |  |   99|      1|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (188:17): [True: 1, False: 0]
  ------------------
  189|      1|        if (gCommonICUDataArray[i] == nullptr) {
  ------------------
  |  Branch (189:13): [True: 1, False: 0]
  ------------------
  190|      1|            gCommonICUDataArray[i] = newCommonData;
  191|      1|            didUpdate = true;
  192|      1|            break;
  193|      1|        } else if (gCommonICUDataArray[i]->pHeader == pData->pHeader) {
  ------------------
  |  Branch (193:20): [True: 0, False: 0]
  ------------------
  194|       |            /* The same data pointer is already in the array. */
  195|      0|            break;
  196|      0|        }
  197|      1|    }
  198|      1|    umtx_unlock(nullptr);
  ------------------
  |  | 1251|      1|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  199|       |
  200|      1|    if (i == UPRV_LENGTHOF(gCommonICUDataArray) && warn) {
  ------------------
  |  |   99|      2|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (200:9): [True: 0, False: 1]
  |  Branch (200:52): [True: 0, False: 0]
  ------------------
  201|      0|        *pErr = U_USING_DEFAULT_WARNING;
  202|      0|    }
  203|      1|    if (didUpdate) {
  ------------------
  |  Branch (203:9): [True: 1, False: 0]
  ------------------
  204|      1|        ucln_common_registerCleanup(UCLN_COMMON_UDATA, udata_cleanup);
  ------------------
  |  |  617|      1|#define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  205|      1|    } else {
  206|      0|        uprv_free(newCommonData);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  207|      0|    }
  208|      1|    return didUpdate;
  209|      1|}
udata.cpp:_ZL18udata_getHashTableR10UErrorCode:
  298|  12.6k|static UHashtable *udata_getHashTable(UErrorCode &err) {
  299|  12.6k|    umtx_initOnce(gCommonDataCacheInitOnce, &udata_initHashTable, err);
  300|  12.6k|    return gCommonDataCache;
  301|  12.6k|}
udata.cpp:_ZL19udata_initHashTableR10UErrorCode:
  283|      1|static void U_CALLCONV udata_initHashTable(UErrorCode &err) {
  284|      1|    U_ASSERT(gCommonDataCache == nullptr);
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
  285|      1|    gCommonDataCache = uhash_open(uhash_hashChars, uhash_compareChars, nullptr, &err);
  ------------------
  |  | 1030|      1|#define uhash_open U_ICU_ENTRY_POINT_RENAME(uhash_open)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  gCommonDataCache = uhash_open(uhash_hashChars, uhash_compareChars, nullptr, &err);
  ------------------
  |  | 1011|      1|#define uhash_hashChars U_ICU_ENTRY_POINT_RENAME(uhash_hashChars)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  gCommonDataCache = uhash_open(uhash_hashChars, uhash_compareChars, nullptr, &err);
  ------------------
  |  |  993|      1|#define uhash_compareChars U_ICU_ENTRY_POINT_RENAME(uhash_compareChars)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  286|      1|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (286:9): [True: 0, False: 1]
  ------------------
  287|      0|       return;
  288|      0|    }
  289|      1|    U_ASSERT(gCommonDataCache != nullptr);
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
  290|      1|    uhash_setValueDeleter(gCommonDataCache, DataCacheElement_deleter);
  ------------------
  |  | 1044|      1|#define uhash_setValueDeleter U_ICU_ENTRY_POINT_RENAME(uhash_setValueDeleter)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  291|      1|    ucln_common_registerCleanup(UCLN_COMMON_UDATA, udata_cleanup);
  ------------------
  |  |  617|      1|#define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  292|      1|}
udata.cpp:_ZL12doOpenChoicePKcS0_S0_PFaPvS0_S0_PK9UDataInfoES1_P10UErrorCode:
 1151|  12.8k|{
 1152|  12.8k|    UDataMemory         *retVal = nullptr;
 1153|       |
 1154|  12.8k|    const char         *dataPath;
 1155|       |
 1156|  12.8k|    int32_t             tocEntrySuffixIndex;
 1157|  12.8k|    const char         *tocEntryPathSuffix;
 1158|  12.8k|    UErrorCode          subErrorCode=U_ZERO_ERROR;
 1159|  12.8k|    const char         *treeChar;
 1160|       |
 1161|  12.8k|    UBool               isICUData = false;
 1162|       |
 1163|       |
 1164|  12.8k|    FileTracer::traceOpen(path, type, name);
 1165|       |
 1166|       |
 1167|       |    /* Is this path ICU data? */
 1168|  12.8k|    if(path == nullptr ||
  ------------------
  |  Branch (1168:8): [True: 4, False: 12.8k]
  ------------------
 1169|  12.8k|       !strcmp(path, U_ICUDATA_ALIAS) ||  /* "ICUDATA" */
  ------------------
  |  |   74|  12.8k|#define U_ICUDATA_ALIAS "ICUDATA"
  ------------------
  |  Branch (1169:8): [True: 0, False: 12.8k]
  ------------------
 1170|  12.8k|       !uprv_strncmp(path, U_ICUDATA_NAME U_TREE_SEPARATOR_STRING, /* "icudt26e-" */
  ------------------
  |  |   44|  12.8k|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|  12.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1170:8): [True: 12.8k, False: 0]
  ------------------
 1171|  12.8k|                     uprv_strlen(U_ICUDATA_NAME U_TREE_SEPARATOR_STRING)) ||  
 1172|  12.8k|       !uprv_strncmp(path, U_ICUDATA_ALIAS U_TREE_SEPARATOR_STRING, /* "ICUDATA-" */
  ------------------
  |  |   44|      0|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1172:8): [True: 0, False: 0]
  ------------------
 1173|  12.8k|                     uprv_strlen(U_ICUDATA_ALIAS U_TREE_SEPARATOR_STRING))) {
 1174|  12.8k|      isICUData = true;
 1175|  12.8k|    }
 1176|       |
 1177|       |#if (U_FILE_SEP_CHAR != U_FILE_ALT_SEP_CHAR)  /* Windows:  try "foo\bar" and "foo/bar" */
 1178|       |    /* remap from alternate path char to the main one */
 1179|       |    CharString altSepPath;
 1180|       |    if(path) {
 1181|       |        if(uprv_strchr(path,U_FILE_ALT_SEP_CHAR) != nullptr) {
 1182|       |            altSepPath.append(path, *pErrorCode);
 1183|       |            char *p;
 1184|       |            while ((p = uprv_strchr(altSepPath.data(), U_FILE_ALT_SEP_CHAR)) != nullptr) {
 1185|       |                *p = U_FILE_SEP_CHAR;
 1186|       |            }
 1187|       |#if defined (UDATA_DEBUG)
 1188|       |            fprintf(stderr, "Changed path from [%s] to [%s]\n", path, altSepPath.data());
 1189|       |#endif
 1190|       |            path = altSepPath.data();
 1191|       |        }
 1192|       |    }
 1193|       |#endif
 1194|       |
 1195|  12.8k|    CharString tocEntryName; /* entry name in tree format. ex:  'icudt28b/coll/ar.res' */
 1196|  12.8k|    CharString tocEntryPath; /* entry name in path format. ex:  'icudt28b\\coll\\ar.res' */
 1197|       |
 1198|  12.8k|    CharString pkgName;
 1199|  12.8k|    CharString treeName;
 1200|       |
 1201|       |    /* ======= Set up strings */
 1202|  12.8k|    if(path==nullptr) {
  ------------------
  |  Branch (1202:8): [True: 4, False: 12.8k]
  ------------------
 1203|      4|        pkgName.append(U_ICUDATA_NAME, *pErrorCode);
  ------------------
  |  |  154|      4|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  |  |  |  |  144|      4|#     define U_ICUDATA_TYPE_LETTER "l"
  |  |  ------------------
  ------------------
 1204|  12.8k|    } else {
 1205|  12.8k|        const char *pkg;
 1206|  12.8k|        const char *first;
 1207|  12.8k|        pkg = uprv_strrchr(path, U_FILE_SEP_CHAR);
  ------------------
  |  |   42|  12.8k|#define uprv_strrchr(s, c) U_STANDARD_CPP_NAMESPACE strrchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  12.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1208|  12.8k|        first = uprv_strchr(path, U_FILE_SEP_CHAR);
  ------------------
  |  |   40|  12.8k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  12.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1209|  12.8k|        if(uprv_pathIsAbsolute(path) || (pkg != first)) { /* more than one slash in the path- not a tree name */
  ------------------
  |  | 1533|  12.8k|#define uprv_pathIsAbsolute U_ICU_ENTRY_POINT_RENAME(uprv_pathIsAbsolute)
  |  |  ------------------
  |  |  |  |  123|  12.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1209:12): [True: 0, False: 12.8k]
  |  Branch (1209:41): [True: 0, False: 12.8k]
  ------------------
 1210|       |            /* see if this is an /absolute/path/to/package  path */
 1211|      0|            if(pkg) {
  ------------------
  |  Branch (1211:16): [True: 0, False: 0]
  ------------------
 1212|      0|                pkgName.append(pkg+1, *pErrorCode);
 1213|      0|            } else {
 1214|      0|                pkgName.append(path, *pErrorCode);
 1215|      0|            }
 1216|  12.8k|        } else {
 1217|  12.8k|            treeChar = uprv_strchr(path, U_TREE_SEPARATOR);
  ------------------
  |  |   40|  12.8k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  12.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1218|  12.8k|            if(treeChar) { 
  ------------------
  |  Branch (1218:16): [True: 12.8k, False: 0]
  ------------------
 1219|  12.8k|                treeName.append(treeChar+1, *pErrorCode); /* following '-' */
 1220|  12.8k|                if(isICUData) {
  ------------------
  |  Branch (1220:20): [True: 12.8k, False: 0]
  ------------------
 1221|  12.8k|                    pkgName.append(U_ICUDATA_NAME, *pErrorCode);
  ------------------
  |  |  154|  12.8k|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  |  |  |  |  144|  12.8k|#     define U_ICUDATA_TYPE_LETTER "l"
  |  |  ------------------
  ------------------
 1222|  12.8k|                } else {
 1223|      0|                    pkgName.append(path, static_cast<int32_t>(treeChar - path), *pErrorCode);
 1224|      0|                    if (first == nullptr) {
  ------------------
  |  Branch (1224:25): [True: 0, False: 0]
  ------------------
 1225|       |                        /*
 1226|       |                        This user data has no path, but there is a tree name.
 1227|       |                        Look up the correct path from the data cache later.
 1228|       |                        */
 1229|      0|                        path = pkgName.data();
 1230|      0|                    }
 1231|      0|                }
 1232|  12.8k|            } else {
 1233|      0|                if(isICUData) {
  ------------------
  |  Branch (1233:20): [True: 0, False: 0]
  ------------------
 1234|      0|                    pkgName.append(U_ICUDATA_NAME, *pErrorCode);
  ------------------
  |  |  154|      0|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  |  |  |  |  144|      0|#     define U_ICUDATA_TYPE_LETTER "l"
  |  |  ------------------
  ------------------
 1235|      0|                } else {
 1236|      0|                    pkgName.append(path, *pErrorCode);
 1237|      0|                }
 1238|      0|            }
 1239|  12.8k|        }
 1240|  12.8k|    }
 1241|       |
 1242|       |#ifdef UDATA_DEBUG
 1243|       |    fprintf(stderr, " P=%s T=%s\n", pkgName.data(), treeName.data());
 1244|       |#endif
 1245|       |
 1246|       |    /* setting up the entry name and file name 
 1247|       |     * Make up a full name by appending the type to the supplied
 1248|       |     *  name, assuming that a type was supplied.
 1249|       |     */
 1250|       |
 1251|       |    /* prepend the package */
 1252|  12.8k|    tocEntryName.append(pkgName, *pErrorCode);
 1253|  12.8k|    tocEntryPath.append(pkgName, *pErrorCode);
 1254|  12.8k|    tocEntrySuffixIndex = tocEntryName.length();
 1255|       |
 1256|  12.8k|    if(!treeName.isEmpty()) {
  ------------------
  |  Branch (1256:8): [True: 12.8k, False: 4]
  ------------------
 1257|  12.8k|        tocEntryName.append(U_TREE_ENTRY_SEP_CHAR, *pErrorCode).append(treeName, *pErrorCode);
  ------------------
  |  |   62|  12.8k|#define U_TREE_ENTRY_SEP_CHAR '/'
  ------------------
 1258|  12.8k|        tocEntryPath.append(U_FILE_SEP_CHAR, *pErrorCode).append(treeName, *pErrorCode);
  ------------------
  |  |  130|  12.8k|#   define U_FILE_SEP_CHAR '/'
  ------------------
 1259|  12.8k|    }
 1260|       |
 1261|  12.8k|    tocEntryName.append(U_TREE_ENTRY_SEP_CHAR, *pErrorCode).append(name, *pErrorCode);
  ------------------
  |  |   62|  12.8k|#define U_TREE_ENTRY_SEP_CHAR '/'
  ------------------
 1262|  12.8k|    tocEntryPath.append(U_FILE_SEP_CHAR, *pErrorCode).append(name, *pErrorCode);
  ------------------
  |  |  130|  12.8k|#   define U_FILE_SEP_CHAR '/'
  ------------------
 1263|  12.8k|    if(type!=nullptr && *type!=0) {
  ------------------
  |  Branch (1263:8): [True: 12.8k, False: 0]
  |  Branch (1263:25): [True: 12.8k, False: 0]
  ------------------
 1264|  12.8k|        tocEntryName.append(".", *pErrorCode).append(type, *pErrorCode);
 1265|  12.8k|        tocEntryPath.append(".", *pErrorCode).append(type, *pErrorCode);
 1266|  12.8k|    }
 1267|       |    // The +1 is for the U_FILE_SEP_CHAR that is always appended above.
 1268|  12.8k|    tocEntryPathSuffix = tocEntryPath.data() + tocEntrySuffixIndex + 1; /* suffix starts here */
 1269|       |
 1270|       |#ifdef UDATA_DEBUG
 1271|       |    fprintf(stderr, " tocEntryName = %s\n", tocEntryName.data());
 1272|       |    fprintf(stderr, " tocEntryPath = %s\n", tocEntryName.data());
 1273|       |#endif
 1274|       |
 1275|  12.8k|#if !defined(ICU_DATA_DIR_WINDOWS)
 1276|  12.8k|    if(path == nullptr) {
  ------------------
  |  Branch (1276:8): [True: 4, False: 12.8k]
  ------------------
 1277|      4|        path = COMMON_DATA_NAME; /* "icudt26e" */
  ------------------
  |  |   34|      4|#define COMMON_DATA_NAME U_ICUDATA_NAME
  |  |  ------------------
  |  |  |  |  154|      4|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  |  |  ------------------
  |  |  |  |  |  |  144|      4|#     define U_ICUDATA_TYPE_LETTER "l"
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1278|      4|    }
 1279|       |#else
 1280|       |    // When using the Windows system data, we expects only a single data file.
 1281|       |    path = COMMON_DATA_NAME; /* "icudt26e" */
 1282|       |#endif
 1283|       |
 1284|       |    /************************ Begin loop looking for ind. files ***************/
 1285|       |#ifdef UDATA_DEBUG
 1286|       |    fprintf(stderr, "IND: inBasename = %s, pkg=%s\n", "(n/a)", packageNameFromPath(path));
 1287|       |#endif
 1288|       |
 1289|       |    /* End of dealing with a null basename */
 1290|  12.8k|    dataPath = u_getDataDirectory();
  ------------------
  |  |  271|  12.8k|#define u_getDataDirectory U_ICU_ENTRY_POINT_RENAME(u_getDataDirectory)
  |  |  ------------------
  |  |  |  |  123|  12.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1291|       |
 1292|       |    /****    Time zone individual files override  */
 1293|  12.8k|    if (isICUData && isTimeZoneFile(name, type)) {
  ------------------
  |  Branch (1293:9): [True: 12.8k, False: 0]
  |  Branch (1293:22): [True: 2, False: 12.8k]
  ------------------
 1294|      2|        const char *tzFilesDir = u_getTimeZoneFilesDirectory(pErrorCode);
  ------------------
  |  |  287|      2|#define u_getTimeZoneFilesDirectory U_ICU_ENTRY_POINT_RENAME(u_getTimeZoneFilesDirectory)
  |  |  ------------------
  |  |  |  |  123|      2|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      2|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      2|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1295|      2|        if (tzFilesDir[0] != 0) {
  ------------------
  |  Branch (1295:13): [True: 0, False: 2]
  ------------------
 1296|       |#ifdef UDATA_DEBUG
 1297|       |            fprintf(stderr, "Trying Time Zone Files directory = %s\n", tzFilesDir);
 1298|       |#endif
 1299|      0|            retVal = doLoadFromIndividualFiles(/* pkgName.data() */ "", tzFilesDir, tocEntryPathSuffix,
 1300|      0|                            /* path */ "", type, name, isAcceptable, context, &subErrorCode, pErrorCode);
 1301|      0|            if((retVal != nullptr) || U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (1301:16): [True: 0, False: 0]
  |  Branch (1301:39): [True: 0, False: 0]
  ------------------
 1302|      0|                return retVal;
 1303|      0|            }
 1304|      0|        }
 1305|      2|    }
 1306|       |
 1307|       |    /****    COMMON PACKAGE  - only if packages are first. */
 1308|  12.8k|    if(gDataFileAccess == UDATA_PACKAGES_FIRST) {
  ------------------
  |  Branch (1308:8): [True: 0, False: 12.8k]
  ------------------
 1309|       |#ifdef UDATA_DEBUG
 1310|       |        fprintf(stderr, "Trying packages (UDATA_PACKAGES_FIRST)\n");
 1311|       |#endif
 1312|       |        /* #2 */
 1313|      0|        retVal = doLoadFromCommonData(isICUData, 
 1314|      0|                            pkgName.data(), dataPath, tocEntryPathSuffix, tocEntryName.data(),
 1315|      0|                            path, type, name, isAcceptable, context, &subErrorCode, pErrorCode);
 1316|      0|        if((retVal != nullptr) || U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (1316:12): [True: 0, False: 0]
  |  Branch (1316:35): [True: 0, False: 0]
  ------------------
 1317|      0|            return retVal;
 1318|      0|        }
 1319|      0|    }
 1320|       |
 1321|       |    /****    INDIVIDUAL FILES  */
 1322|  12.8k|    if((gDataFileAccess==UDATA_PACKAGES_FIRST) ||
  ------------------
  |  Branch (1322:8): [True: 0, False: 12.8k]
  ------------------
 1323|  12.8k|       (gDataFileAccess==UDATA_FILES_FIRST)) {
  ------------------
  |  Branch (1323:8): [True: 12.8k, False: 0]
  ------------------
 1324|       |#ifdef UDATA_DEBUG
 1325|       |        fprintf(stderr, "Trying individual files\n");
 1326|       |#endif
 1327|       |        /* Check to make sure that there is a dataPath to iterate over */
 1328|  12.8k|        if ((dataPath && *dataPath) || !isICUData) {
  ------------------
  |  Branch (1328:14): [True: 12.8k, False: 0]
  |  Branch (1328:26): [True: 0, False: 12.8k]
  |  Branch (1328:40): [True: 0, False: 12.8k]
  ------------------
 1329|      0|            retVal = doLoadFromIndividualFiles(pkgName.data(), dataPath, tocEntryPathSuffix,
 1330|      0|                            path, type, name, isAcceptable, context, &subErrorCode, pErrorCode);
 1331|      0|            if((retVal != nullptr) || U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (1331:16): [True: 0, False: 0]
  |  Branch (1331:39): [True: 0, False: 0]
  ------------------
 1332|      0|                return retVal;
 1333|      0|            }
 1334|      0|        }
 1335|  12.8k|    }
 1336|       |
 1337|       |    /****    COMMON PACKAGE  */
 1338|  12.8k|    if((gDataFileAccess==UDATA_ONLY_PACKAGES) || 
  ------------------
  |  Branch (1338:8): [True: 0, False: 12.8k]
  ------------------
 1339|  12.8k|       (gDataFileAccess==UDATA_FILES_FIRST)) {
  ------------------
  |  Branch (1339:8): [True: 12.8k, False: 0]
  ------------------
 1340|       |#ifdef UDATA_DEBUG
 1341|       |        fprintf(stderr, "Trying packages (UDATA_ONLY_PACKAGES || UDATA_FILES_FIRST)\n");
 1342|       |#endif
 1343|  12.8k|        retVal = doLoadFromCommonData(isICUData,
 1344|  12.8k|                            pkgName.data(), dataPath, tocEntryPathSuffix, tocEntryName.data(),
 1345|  12.8k|                            path, type, name, isAcceptable, context, &subErrorCode, pErrorCode);
 1346|  12.8k|        if((retVal != nullptr) || U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (1346:12): [True: 162, False: 12.6k]
  |  Branch (1346:35): [True: 0, False: 12.6k]
  ------------------
 1347|    162|            return retVal;
 1348|    162|        }
 1349|  12.8k|    }
 1350|       |    
 1351|       |    /* Load from DLL.  If we haven't attempted package load, we also haven't had any chance to
 1352|       |        try a DLL (static or setCommonData/etc)  load.
 1353|       |         If we ever have a "UDATA_ONLY_FILES", add it to the or list here.  */  
 1354|  12.6k|    if(gDataFileAccess==UDATA_NO_FILES) {
  ------------------
  |  Branch (1354:8): [True: 0, False: 12.6k]
  ------------------
 1355|       |#ifdef UDATA_DEBUG
 1356|       |        fprintf(stderr, "Trying common data (UDATA_NO_FILES)\n");
 1357|       |#endif
 1358|      0|        retVal = doLoadFromCommonData(isICUData,
 1359|      0|                            pkgName.data(), "", tocEntryPathSuffix, tocEntryName.data(),
 1360|      0|                            path, type, name, isAcceptable, context, &subErrorCode, pErrorCode);
 1361|      0|        if((retVal != nullptr) || U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (1361:12): [True: 0, False: 0]
  |  Branch (1361:35): [True: 0, False: 0]
  ------------------
 1362|      0|            return retVal;
 1363|      0|        }
 1364|      0|    }
 1365|       |
 1366|       |    /* data not found */
 1367|  12.6k|    if(U_SUCCESS(*pErrorCode)) {
  ------------------
  |  Branch (1367:8): [True: 12.6k, False: 0]
  ------------------
 1368|  12.6k|        if(U_SUCCESS(subErrorCode)) {
  ------------------
  |  Branch (1368:12): [True: 12.6k, False: 1]
  ------------------
 1369|       |            /* file not found */
 1370|  12.6k|            *pErrorCode=U_FILE_ACCESS_ERROR;
 1371|  12.6k|        } else {
 1372|       |            /* entry point not found or rejected */
 1373|      1|            *pErrorCode=subErrorCode;
 1374|      1|        }
 1375|  12.6k|    }
 1376|  12.6k|    return retVal;
 1377|  12.6k|}
udata.cpp:_ZL14isTimeZoneFilePKcS0_:
 1107|  12.8k|static UBool isTimeZoneFile(const char *name, const char *type) {
 1108|  12.8k|    return ((uprv_strcmp(type, "res") == 0) &&
  ------------------
  |  |   38|  12.8k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  12.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1108:13): [True: 12.8k, False: 1]
  ------------------
 1109|  12.8k|            (uprv_strcmp(name, "zoneinfo64") == 0 ||
  ------------------
  |  |   38|  12.8k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  12.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1109:14): [True: 1, False: 12.8k]
  ------------------
 1110|  12.8k|             uprv_strcmp(name, "timezoneTypes") == 0 ||
  ------------------
  |  |   38|  12.8k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  12.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1110:14): [True: 1, False: 12.8k]
  ------------------
 1111|  12.8k|             uprv_strcmp(name, "windowsZones") == 0 ||
  ------------------
  |  |   38|  12.8k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  12.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1111:14): [True: 0, False: 12.8k]
  ------------------
 1112|  12.8k|             uprv_strcmp(name, "metaZones") == 0));
  ------------------
  |  |   38|  12.8k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  12.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1112:14): [True: 0, False: 12.8k]
  ------------------
 1113|  12.8k|}
udata.cpp:_ZL13checkDataItemPK10DataHeaderPFaPvPKcS4_PK9UDataInfoES2_S4_S4_P10UErrorCodeSB_:
  949|    162|{
  950|    162|    UDataMemory  *rDataMem = nullptr;          /* the new UDataMemory, to be returned.        */
  951|       |
  952|    162|    if (U_FAILURE(*fatalErr)) {
  ------------------
  |  Branch (952:9): [True: 0, False: 162]
  ------------------
  953|      0|        return nullptr;
  954|      0|    }
  955|       |
  956|    162|    if(pHeader->dataHeader.magic1==0xda &&
  ------------------
  |  Branch (956:8): [True: 162, False: 0]
  ------------------
  957|    162|        pHeader->dataHeader.magic2==0x27 &&
  ------------------
  |  Branch (957:9): [True: 162, False: 0]
  ------------------
  958|    162|        (isAcceptable==nullptr || isAcceptable(context, type, name, &pHeader->info))
  ------------------
  |  Branch (958:10): [True: 0, False: 162]
  |  Branch (958:35): [True: 162, False: 0]
  ------------------
  959|    162|    ) {
  960|    162|        rDataMem=UDataMemory_createNewInstance(fatalErr);
  ------------------
  |  |   79|    162|#define UDataMemory_createNewInstance U_ICU_ENTRY_POINT_RENAME(UDataMemory_createNewInstance)
  |  |  ------------------
  |  |  |  |  123|    162|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    162|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    162|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  961|    162|        if (U_FAILURE(*fatalErr)) {
  ------------------
  |  Branch (961:13): [True: 0, False: 162]
  ------------------
  962|      0|            return nullptr;
  963|      0|        }
  964|    162|        rDataMem->pHeader = pHeader;
  965|    162|    } else {
  966|       |        /* the data is not acceptable, look further */
  967|       |        /* If we eventually find something good, this errorcode will be */
  968|       |        /*    cleared out.                                              */
  969|      0|        *nonFatalErr=U_INVALID_FORMAT_ERROR;
  970|      0|    }
  971|    162|    return rDataMem;
  972|    162|}
udata.cpp:_ZL20doLoadFromCommonDataaPKcS0_S0_S0_S0_S0_S0_PFaPvS0_S0_PK9UDataInfoES1_P10UErrorCodeS8_:
 1042|  12.8k|{
 1043|  12.8k|    UDataMemory        *pEntryData;
 1044|  12.8k|    const DataHeader   *pHeader;
 1045|  12.8k|    UDataMemory        *pCommonData;
 1046|  12.8k|    int32_t            commonDataIndex;
 1047|  12.8k|    UBool              checkedExtendedICUData = false;
 1048|       |    /* try to get common data.  The loop is for platforms such as the 390 that do
 1049|       |     *  not initially load the full set of ICU data.  If the lookup of an ICU data item
 1050|       |     *  fails, the full (but slower to load) set is loaded, the and the loop repeats,
 1051|       |     *  trying the lookup again.  Once the full set of ICU data is loaded, the loop wont
 1052|       |     *  repeat because the full set will be checked the first time through.
 1053|       |     *
 1054|       |     *  The loop also handles the fallback to a .dat file if the application linked
 1055|       |     *   to the stub data library rather than a real library.
 1056|       |     */
 1057|  25.4k|    for (commonDataIndex = isICUData ? 0 : -1;;) {
  ------------------
  |  Branch (1057:28): [True: 12.8k, False: 0]
  ------------------
 1058|  25.4k|        pCommonData=openCommonData(path, commonDataIndex, subErrorCode); /** search for pkg **/
 1059|       |
 1060|  25.4k|        if(U_SUCCESS(*subErrorCode) && pCommonData!=nullptr) {
  ------------------
  |  Branch (1060:12): [True: 25.4k, False: 0]
  |  Branch (1060:40): [True: 12.8k, False: 12.6k]
  ------------------
 1061|  12.8k|            int32_t length;
 1062|       |
 1063|       |            /* look up the data piece in the common data */
 1064|  12.8k|            pHeader=pCommonData->vFuncs->Lookup(pCommonData, tocEntryName, &length, subErrorCode);
 1065|       |#ifdef UDATA_DEBUG
 1066|       |            fprintf(stderr, "%s: pHeader=%p - %s\n", tocEntryName, (void*) pHeader, u_errorName(*subErrorCode));
 1067|       |#endif
 1068|       |
 1069|  12.8k|            if(pHeader!=nullptr) {
  ------------------
  |  Branch (1069:16): [True: 162, False: 12.6k]
  ------------------
 1070|    162|                pEntryData = checkDataItem(pHeader, isAcceptable, context, type, name, subErrorCode, pErrorCode);
 1071|       |#ifdef UDATA_DEBUG
 1072|       |                fprintf(stderr, "pEntryData=%p\n", (void*) pEntryData);
 1073|       |#endif
 1074|    162|                if (U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (1074:21): [True: 0, False: 162]
  ------------------
 1075|      0|                    return nullptr;
 1076|      0|                }
 1077|    162|                if (pEntryData != nullptr) {
  ------------------
  |  Branch (1077:21): [True: 162, False: 0]
  ------------------
 1078|    162|                    pEntryData->length = length;
 1079|    162|                    return pEntryData;
 1080|    162|                }
 1081|    162|            }
 1082|  12.8k|        }
 1083|       |        // If we failed due to being out-of-memory, then stop early and report the error.
 1084|  25.3k|        if (*subErrorCode == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (1084:13): [True: 0, False: 25.3k]
  ------------------
 1085|      0|            *pErrorCode = *subErrorCode;
 1086|      0|            return nullptr;
 1087|      0|        }
 1088|       |        /* Data wasn't found.  If we were looking for an ICUData item and there is
 1089|       |         * more data available, load it and try again,
 1090|       |         * otherwise break out of this loop. */
 1091|  25.3k|        if (!isICUData) {
  ------------------
  |  Branch (1091:13): [True: 0, False: 25.3k]
  ------------------
 1092|      0|            return nullptr;
 1093|  25.3k|        } else if (pCommonData != nullptr) {
  ------------------
  |  Branch (1093:20): [True: 12.6k, False: 12.6k]
  ------------------
 1094|  12.6k|            ++commonDataIndex;  /* try the next data package */
 1095|  12.6k|        } else if ((!checkedExtendedICUData) && extendICUData(subErrorCode)) {
  ------------------
  |  Branch (1095:20): [True: 12.6k, False: 0]
  |  Branch (1095:49): [True: 0, False: 12.6k]
  ------------------
 1096|      0|            checkedExtendedICUData = true;
 1097|       |            /* try this data package slot again: it changed from nullptr to non-nullptr */
 1098|  12.6k|        } else {
 1099|  12.6k|            return nullptr;
 1100|  12.6k|        }
 1101|  25.3k|    }
 1102|  12.8k|}
udata.cpp:_ZL14openCommonDataPKciP10UErrorCode:
  673|  25.4k|{
  674|  25.4k|    UDataMemory tData;
  675|  25.4k|    const char *pathBuffer;
  676|  25.4k|    const char *inBasename;
  677|       |
  678|  25.4k|    if (U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (678:9): [True: 0, False: 25.4k]
  ------------------
  679|      0|        return nullptr;
  680|      0|    }
  681|       |
  682|  25.4k|    UDataMemory_init(&tData);
  ------------------
  |  |   80|  25.4k|#define UDataMemory_init U_ICU_ENTRY_POINT_RENAME(UDataMemory_init)
  |  |  ------------------
  |  |  |  |  123|  25.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  25.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  25.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  683|       |
  684|       |    /* ??????? TODO revisit this */ 
  685|  25.4k|    if (commonDataIndex >= 0) {
  ------------------
  |  Branch (685:9): [True: 25.4k, False: 1]
  ------------------
  686|       |        /* "mini-cache" for common ICU data */
  687|  25.4k|        if(commonDataIndex >= UPRV_LENGTHOF(gCommonICUDataArray)) {
  ------------------
  |  |   99|  25.4k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (687:12): [True: 0, False: 25.4k]
  ------------------
  688|      0|            return nullptr;
  689|      0|        }
  690|  25.4k|        {
  691|  25.4k|            Mutex lock;
  692|  25.4k|            if(gCommonICUDataArray[commonDataIndex] != nullptr) {
  ------------------
  |  Branch (692:16): [True: 12.8k, False: 12.6k]
  ------------------
  693|  12.8k|                return gCommonICUDataArray[commonDataIndex];
  694|  12.8k|            }
  695|  12.6k|#if !defined(ICU_DATA_DIR_WINDOWS)
  696|       |// When using the Windows system data, we expect only a single data file.
  697|  12.6k|            int32_t i;
  698|  12.6k|            for(i = 0; i < commonDataIndex; ++i) {
  ------------------
  |  Branch (698:24): [True: 12.6k, False: 1]
  ------------------
  699|  12.6k|                if(gCommonICUDataArray[i]->pHeader == &U_ICUDATA_ENTRY_POINT) {
  ------------------
  |  |  171|  12.6k|#define U_ICUDATA_ENTRY_POINT  U_DEF2_ICUDATA_ENTRY_POINT(U_ICU_VERSION_MAJOR_NUM,U_LIB_SUFFIX_C_NAME)
  |  |  ------------------
  |  |  |  |  178|  12.6k|#define U_DEF2_ICUDATA_ENTRY_POINT(major,suff) U_DEF_ICUDATA_ENTRY_POINT(major,suff)
  |  |  |  |  ------------------
  |  |  |  |  |  |  187|  12.6k|#define U_DEF_ICUDATA_ENTRY_POINT(major, suff) icudt##major##_dat
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (699:20): [True: 12.6k, False: 0]
  ------------------
  700|       |                    /* The linked-in data is already in the list. */
  701|  12.6k|                    return nullptr;
  702|  12.6k|                }
  703|  12.6k|            }
  704|  12.6k|#endif
  705|  12.6k|        }
  706|       |
  707|       |        /* Add the linked-in data to the list. */
  708|       |        /*
  709|       |         * This is where we would check and call weakly linked partial-data-library
  710|       |         * access functions.
  711|       |         */
  712|       |        /*
  713|       |        if (uprv_getICUData_collation) {
  714|       |            setCommonICUDataPointer(uprv_getICUData_collation(), false, pErrorCode);
  715|       |        }
  716|       |        if (uprv_getICUData_conversion) {
  717|       |            setCommonICUDataPointer(uprv_getICUData_conversion(), false, pErrorCode);
  718|       |        }
  719|       |        */
  720|      1|#if !defined(ICU_DATA_DIR_WINDOWS)
  721|       |// When using the Windows system data, we expect only a single data file.
  722|      1|        setCommonICUDataPointer(&U_ICUDATA_ENTRY_POINT, false, pErrorCode);
  ------------------
  |  |  171|      1|#define U_ICUDATA_ENTRY_POINT  U_DEF2_ICUDATA_ENTRY_POINT(U_ICU_VERSION_MAJOR_NUM,U_LIB_SUFFIX_C_NAME)
  |  |  ------------------
  |  |  |  |  178|      1|#define U_DEF2_ICUDATA_ENTRY_POINT(major,suff) U_DEF_ICUDATA_ENTRY_POINT(major,suff)
  |  |  |  |  ------------------
  |  |  |  |  |  |  187|      1|#define U_DEF_ICUDATA_ENTRY_POINT(major, suff) icudt##major##_dat
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  723|      1|        {
  724|      1|            Mutex lock;
  725|      1|            return gCommonICUDataArray[commonDataIndex];
  726|  12.6k|        }
  727|  12.6k|#endif
  728|  12.6k|    }
  729|       |
  730|       |
  731|       |    /* request is NOT for ICU Data.  */
  732|       |
  733|       |    /* Find the base name portion of the supplied path.   */
  734|       |    /*   inBasename will be left pointing somewhere within the original path string.      */
  735|      1|    inBasename = findBasename(path);
  736|       |#ifdef UDATA_DEBUG
  737|       |    fprintf(stderr, "inBasename = %s\n", inBasename);
  738|       |#endif
  739|       |
  740|      1|    if(*inBasename==0) {
  ------------------
  |  Branch (740:8): [True: 0, False: 1]
  ------------------
  741|       |        /* no basename.     This will happen if the original path was a directory name,   */
  742|       |        /*    like  "a/b/c/".   (Fallback to separate files will still work.)             */
  743|       |#ifdef UDATA_DEBUG
  744|       |        fprintf(stderr, "ocd: no basename in %s, bailing.\n", path);
  745|       |#endif
  746|      0|        if (U_SUCCESS(*pErrorCode)) {
  ------------------
  |  Branch (746:13): [True: 0, False: 0]
  ------------------
  747|      0|            *pErrorCode=U_FILE_ACCESS_ERROR;
  748|      0|        }
  749|      0|        return nullptr;
  750|      0|    }
  751|       |
  752|       |   /* Is the requested common data file already open and cached?                     */
  753|       |   /*   Note that the cache is keyed by the base name only.  The rest of the path,   */
  754|       |   /*     if any, is not considered.                                                 */
  755|      1|    UDataMemory  *dataToReturn = udata_findCachedData(inBasename, *pErrorCode);
  756|      1|    if (dataToReturn != nullptr || U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (756:9): [True: 0, False: 1]
  |  Branch (756:36): [True: 0, False: 1]
  ------------------
  757|      0|        return dataToReturn;
  758|      0|    }
  759|       |
  760|       |    /* Requested item is not in the cache.
  761|       |     * Hunt it down, trying all the path locations
  762|       |     */
  763|       |
  764|      1|    UDataPathIterator iter(u_getDataDirectory(), inBasename, path, ".dat", true, pErrorCode);
  ------------------
  |  |  271|      1|#define u_getDataDirectory U_ICU_ENTRY_POINT_RENAME(u_getDataDirectory)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  765|       |
  766|      1|    while ((UDataMemory_isLoaded(&tData)==false) && (pathBuffer = iter.next(pErrorCode)) != nullptr)
  ------------------
  |  |   81|      1|#define UDataMemory_isLoaded U_ICU_ENTRY_POINT_RENAME(UDataMemory_isLoaded)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (766:12): [True: 1, False: 0]
  |  Branch (766:53): [True: 0, False: 1]
  ------------------
  767|      0|    {
  768|       |#ifdef UDATA_DEBUG
  769|       |        fprintf(stderr, "ocd: trying path %s - ", pathBuffer);
  770|       |#endif
  771|      0|        uprv_mapFile(&tData, pathBuffer, pErrorCode);
  ------------------
  |  | 1525|      0|#define uprv_mapFile U_ICU_ENTRY_POINT_RENAME(uprv_mapFile)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  772|       |#ifdef UDATA_DEBUG
  773|       |        fprintf(stderr, "%s\n", UDataMemory_isLoaded(&tData)?"LOADED":"not loaded");
  774|       |#endif
  775|      0|    }
  776|      1|    if (U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (776:9): [True: 0, False: 1]
  ------------------
  777|      0|        return nullptr;
  778|      0|    }
  779|       |
  780|      1|    if (U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (780:9): [True: 0, False: 1]
  ------------------
  781|      0|        return nullptr;
  782|      0|    }
  783|      1|    if (!UDataMemory_isLoaded(&tData)) {
  ------------------
  |  |   81|      1|#define UDataMemory_isLoaded U_ICU_ENTRY_POINT_RENAME(UDataMemory_isLoaded)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (783:9): [True: 1, False: 0]
  ------------------
  784|       |        /* no common data */
  785|      1|        *pErrorCode=U_FILE_ACCESS_ERROR;
  786|      1|        return nullptr;
  787|      1|    }
  788|       |
  789|       |    /* we have mapped a file, check its header */
  790|      0|    udata_checkCommonData(&tData, pErrorCode);
  ------------------
  |  |  884|      0|#define udata_checkCommonData U_ICU_ENTRY_POINT_RENAME(udata_checkCommonData)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  791|       |
  792|       |
  793|       |    /* Cache the UDataMemory struct for this .dat file,
  794|       |     *   so we won't need to hunt it down and map it again next time
  795|       |     *   something is needed from it.                */
  796|      0|    return udata_cacheDataItem(inBasename, &tData, pErrorCode);
  797|      1|}
udata.cpp:_ZL23setCommonICUDataPointerPKvaP10UErrorCode:
  214|      1|setCommonICUDataPointer(const void *pData, UBool /*warn*/, UErrorCode *pErrorCode) {
  215|      1|    UDataMemory tData;
  216|      1|    UDataMemory_init(&tData);
  ------------------
  |  |   80|      1|#define UDataMemory_init U_ICU_ENTRY_POINT_RENAME(UDataMemory_init)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  217|      1|    UDataMemory_setData(&tData, pData);
  ------------------
  |  |   83|      1|#define UDataMemory_setData U_ICU_ENTRY_POINT_RENAME(UDataMemory_setData)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  218|      1|    udata_checkCommonData(&tData, pErrorCode);
  ------------------
  |  |  884|      1|#define udata_checkCommonData U_ICU_ENTRY_POINT_RENAME(udata_checkCommonData)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  219|      1|    return setCommonICUData(&tData, false, pErrorCode);
  220|      1|}
udata.cpp:_ZL20udata_findCachedDataPKcR10UErrorCode:
  306|  12.6k|{
  307|  12.6k|    UHashtable        *htable;
  308|  12.6k|    UDataMemory       *retVal = nullptr;
  309|  12.6k|    DataCacheElement  *el;
  310|  12.6k|    const char        *baseName;
  311|       |
  312|  12.6k|    htable = udata_getHashTable(err);
  313|  12.6k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (313:9): [True: 1, False: 12.6k]
  ------------------
  314|      1|        return nullptr;
  315|      1|    }
  316|       |
  317|  12.6k|    baseName = findBasename(path);   /* Cache remembers only the base name, not the full path. */
  318|  12.6k|    umtx_lock(nullptr);
  ------------------
  |  | 1250|  12.6k|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  123|  12.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  319|  12.6k|    el = static_cast<DataCacheElement*>(uhash_get(htable, baseName));
  ------------------
  |  | 1007|  12.6k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  12.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  320|  12.6k|    umtx_unlock(nullptr);
  ------------------
  |  | 1251|  12.6k|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  123|  12.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  321|  12.6k|    if (el != nullptr) {
  ------------------
  |  Branch (321:9): [True: 0, False: 12.6k]
  ------------------
  322|      0|        retVal = el->item;
  323|      0|    }
  324|       |#ifdef UDATA_DEBUG
  325|       |    fprintf(stderr, "Cache: [%s] -> %p\n", baseName, (void*) retVal);
  326|       |#endif
  327|  12.6k|    return retVal;
  328|  12.6k|}
udata.cpp:_ZL13extendICUDataP10UErrorCode:
  811|  12.6k|{
  812|  12.6k|    UDataMemory   *pData;
  813|  12.6k|    UDataMemory   copyPData;
  814|  12.6k|    UBool         didUpdate = false;
  815|       |
  816|       |    /*
  817|       |     * There is a chance for a race condition here.
  818|       |     * Normally, ICU data is loaded from a DLL or via mmap() and
  819|       |     * setCommonICUData() will detect if the same address is set twice.
  820|       |     * If ICU is built with data loading via fread() then the address will
  821|       |     * be different each time the common data is loaded and we may add
  822|       |     * multiple copies of the data.
  823|       |     * In this case, use a mutex to prevent the race.
  824|       |     * Use a specific mutex to avoid nested locks of the global mutex.
  825|       |     */
  826|       |#if MAP_IMPLEMENTATION==MAP_STDIO
  827|       |    static UMutex extendICUDataMutex;
  828|       |    umtx_lock(&extendICUDataMutex);
  829|       |#endif
  830|  12.6k|    if(!umtx_loadAcquire(gHaveTriedToLoadCommonData)) {
  ------------------
  |  Branch (830:8): [True: 1, False: 12.6k]
  ------------------
  831|       |        /* See if we can explicitly open a .dat file for the ICUData. */
  832|      1|        pData = openCommonData(
  833|      1|                   U_ICUDATA_NAME,            /*  "icudt20l" , for example.          */
  ------------------
  |  |  154|      1|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  |  |  |  |  144|      1|#     define U_ICUDATA_TYPE_LETTER "l"
  |  |  ------------------
  ------------------
  834|      1|                   -1,                        /*  Pretend we're not opening ICUData  */
  835|      1|                   pErr);
  836|       |
  837|       |        /* How about if there is no pData, eh... */
  838|       |
  839|      1|       UDataMemory_init(&copyPData);
  ------------------
  |  |   80|      1|#define UDataMemory_init U_ICU_ENTRY_POINT_RENAME(UDataMemory_init)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  840|      1|       if(pData != nullptr) {
  ------------------
  |  Branch (840:11): [True: 0, False: 1]
  ------------------
  841|      0|          UDatamemory_assign(&copyPData, pData);
  ------------------
  |  |   84|      0|#define UDatamemory_assign U_ICU_ENTRY_POINT_RENAME(UDatamemory_assign)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  842|      0|          copyPData.map = nullptr;     /* The mapping for this data is owned by the hash table */
  843|      0|          copyPData.mapAddr = nullptr; /*   which will unmap it when ICU is shut down.         */
  844|       |                                       /* CommonICUData is also unmapped when ICU is shut down.*/
  845|       |                                       /* To avoid unmapping the data twice, zero out the map  */
  846|       |                                       /*   fields in the UDataMemory that we're assigning     */
  847|       |                                       /*   to CommonICUData.                                  */
  848|       |
  849|      0|          didUpdate = /* no longer using this result */
  850|      0|              setCommonICUData(&copyPData,/*  The new common data.                                */
  851|      0|                       false,             /*  No warnings if write didn't happen                  */
  852|      0|                       pErr);             /*  setCommonICUData honors errors; NOP if error set    */
  853|      0|        }
  854|       |
  855|      1|        umtx_storeRelease(gHaveTriedToLoadCommonData, 1);
  856|      1|    }
  857|       |
  858|  12.6k|    didUpdate = findCommonICUDataByName(U_ICUDATA_NAME, *pErr);  /* Return 'true' when a racing writes out the extended                 */
  ------------------
  |  |  154|  12.6k|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  |  |  |  |  144|  12.6k|#     define U_ICUDATA_TYPE_LETTER "l"
  |  |  ------------------
  ------------------
  859|       |                                                          /* data after another thread has failed to see it (in openCommonData), so     */
  860|       |                                                          /* extended data can be examined.                                             */
  861|       |                                                          /* Also handles a race through here before gHaveTriedToLoadCommonData is set. */
  862|       |
  863|       |#if MAP_IMPLEMENTATION==MAP_STDIO
  864|       |    umtx_unlock(&extendICUDataMutex);
  865|       |#endif
  866|  12.6k|    return didUpdate;               /* Return true if ICUData pointer was updated.   */
  867|       |                                    /*   (Could potentially have been done by another thread racing */
  868|       |                                    /*   us through here, but that's fine, we still return true    */
  869|       |                                    /*   so that current thread will also examine extended data.   */
  870|  12.6k|}
udata.cpp:_ZL23findCommonICUDataByNamePKcR10UErrorCode:
  144|  12.6k|{
  145|  12.6k|    UBool found = false;
  146|  12.6k|    int32_t i;
  147|       |
  148|  12.6k|    UDataMemory  *pData = udata_findCachedData(inBasename, err);
  149|  12.6k|    if (U_FAILURE(err) || pData == nullptr)
  ------------------
  |  Branch (149:9): [True: 1, False: 12.6k]
  |  Branch (149:27): [True: 12.6k, False: 0]
  ------------------
  150|  12.6k|        return false;
  151|       |
  152|      0|    {
  153|      0|        Mutex lock;
  154|      0|        for (i = 0; i < UPRV_LENGTHOF(gCommonICUDataArray); ++i) {
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (154:21): [True: 0, False: 0]
  ------------------
  155|      0|            if ((gCommonICUDataArray[i] != nullptr) && (gCommonICUDataArray[i]->pHeader == pData->pHeader)) {
  ------------------
  |  Branch (155:17): [True: 0, False: 0]
  |  Branch (155:56): [True: 0, False: 0]
  ------------------
  156|       |                /* The data pointer is already in the array. */
  157|      0|                found = true;
  158|      0|                break;
  159|      0|            }
  160|      0|        }
  161|      0|    }
  162|      0|    return found;
  163|  12.6k|}

UDataMemory_init_78:
   28|  25.6k|U_CFUNC void UDataMemory_init(UDataMemory *This) {
   29|  25.6k|    uprv_memset(This, 0, sizeof(UDataMemory));
  ------------------
  |  |  100|  25.6k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  25.6k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
   30|  25.6k|    This->length=-1;
   31|  25.6k|}
UDatamemory_assign_78:
   34|      1|U_CFUNC void UDatamemory_assign(UDataMemory *dest, UDataMemory *source) {
   35|       |    /* UDataMemory Assignment.  Destination UDataMemory must be initialized first.  */
   36|      1|    UBool mallocedFlag = dest->heapAllocated;
   37|      1|    uprv_memcpy(dest, source, sizeof(UDataMemory));
  ------------------
  |  |   42|      1|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      1|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|      1|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|      1|    _Pragma("clang diagnostic push") \
  |  |   45|      1|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|      1|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|      1|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|      1|    _Pragma("clang diagnostic pop") \
  |  |   49|      1|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|      1|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      1|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   38|      1|    dest->heapAllocated = mallocedFlag;
   39|      1|}
UDataMemory_createNewInstance_78:
   41|    163|U_CFUNC UDataMemory *UDataMemory_createNewInstance(UErrorCode *pErr) {
   42|    163|    UDataMemory *This;
   43|       |
   44|    163|    if (U_FAILURE(*pErr)) {
  ------------------
  |  Branch (44:9): [True: 0, False: 163]
  ------------------
   45|      0|        return nullptr;
   46|      0|    }
   47|    163|    This = (UDataMemory *)uprv_malloc(sizeof(UDataMemory));
  ------------------
  |  | 1524|    163|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    163|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    163|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    163|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   48|    163|    if (This == nullptr) {
  ------------------
  |  Branch (48:9): [True: 0, False: 163]
  ------------------
   49|      0|        *pErr = U_MEMORY_ALLOCATION_ERROR; }
   50|    163|    else {
   51|    163|        UDataMemory_init(This);
  ------------------
  |  |   80|    163|#define UDataMemory_init U_ICU_ENTRY_POINT_RENAME(UDataMemory_init)
  |  |  ------------------
  |  |  |  |  123|    163|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    163|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    163|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   52|    163|        This->heapAllocated = true;
   53|    163|    }
   54|    163|    return This;
   55|    163|}
UDataMemory_normalizeDataPointer_78:
   59|      1|UDataMemory_normalizeDataPointer(const void *p) {
   60|       |    /* allow the data to be optionally prepended with an alignment-forcing double value */
   61|      1|    const DataHeader *pdh = (const DataHeader *)p;
   62|      1|    if(pdh==nullptr || (pdh->dataHeader.magic1==0xda && pdh->dataHeader.magic2==0x27)) {
  ------------------
  |  Branch (62:8): [True: 0, False: 1]
  |  Branch (62:25): [True: 1, False: 0]
  |  Branch (62:57): [True: 1, False: 0]
  ------------------
   63|      1|        return pdh;
   64|      1|    } else {
   65|       |#if U_PLATFORM == U_PF_OS400
   66|       |        /*
   67|       |        TODO: Fix this once the compiler implements this feature. Keep in sync with genccode.c
   68|       |
   69|       |        This is here because this platform can't currently put
   70|       |        const data into the read-only pages of an object or
   71|       |        shared library (service program). Only strings are allowed in read-only
   72|       |        pages, so we use char * strings to store the data.
   73|       |
   74|       |        In order to prevent the beginning of the data from ever matching the
   75|       |        magic numbers we must skip the initial double.
   76|       |        [grhoten 4/24/2003]
   77|       |        */
   78|       |        return (const DataHeader *)*((const void **)p+1);
   79|       |#else
   80|      0|        return (const DataHeader *)((const double *)p+1);
   81|      0|#endif
   82|      0|    }
   83|      1|}
UDataMemory_setData_78:
   86|      1|U_CFUNC void UDataMemory_setData (UDataMemory *This, const void *dataAddr) {
   87|      1|    This->pHeader = UDataMemory_normalizeDataPointer(dataAddr);
  ------------------
  |  |   82|      1|#define UDataMemory_normalizeDataPointer U_ICU_ENTRY_POINT_RENAME(UDataMemory_normalizeDataPointer)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   88|      1|}
udata_close_78:
   92|     79|udata_close(UDataMemory *pData) {
   93|     79|    if(pData!=nullptr) {
  ------------------
  |  Branch (93:8): [True: 0, False: 79]
  ------------------
   94|      0|        uprv_unmapFile(pData);
  ------------------
  |  | 1554|      0|#define uprv_unmapFile U_ICU_ENTRY_POINT_RENAME(uprv_unmapFile)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   95|      0|        if(pData->heapAllocated ) {
  ------------------
  |  Branch (95:12): [True: 0, False: 0]
  ------------------
   96|      0|            uprv_free(pData);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   97|      0|        } else {
   98|      0|            UDataMemory_init(pData);
  ------------------
  |  |   80|      0|#define UDataMemory_init U_ICU_ENTRY_POINT_RENAME(UDataMemory_init)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   99|      0|        }
  100|      0|    }
  101|     79|}
udata_getMemory_78:
  104|    162|udata_getMemory(UDataMemory *pData) {
  105|    162|    if(pData!=nullptr && pData->pHeader!=nullptr) {
  ------------------
  |  Branch (105:8): [True: 162, False: 0]
  |  Branch (105:26): [True: 162, False: 0]
  ------------------
  106|    162|        return (char *)(pData->pHeader)+udata_getHeaderSize(pData->pHeader);
  ------------------
  |  |  887|    162|#define udata_getHeaderSize U_ICU_ENTRY_POINT_RENAME(udata_getHeaderSize)
  |  |  ------------------
  |  |  |  |  123|    162|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    162|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    162|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  107|    162|    } else {
  108|      0|        return nullptr;
  109|      0|    }
  110|    162|}
udata_getLength_78:
  133|      1|udata_getLength(const UDataMemory *pData) {
  134|      1|    if(pData!=nullptr && pData->pHeader!=nullptr && pData->length>=0) {
  ------------------
  |  Branch (134:8): [True: 1, False: 0]
  |  Branch (134:26): [True: 1, False: 0]
  |  Branch (134:53): [True: 1, False: 0]
  ------------------
  135|       |        /*
  136|       |         * subtract the header size,
  137|       |         * return only the size of the actual data starting at udata_getMemory()
  138|       |         */
  139|      1|        return pData->length-udata_getHeaderSize(pData->pHeader);
  ------------------
  |  |  887|      1|#define udata_getHeaderSize U_ICU_ENTRY_POINT_RENAME(udata_getHeaderSize)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  140|      1|    } else {
  141|      0|        return -1;
  142|      0|    }
  143|      1|}
UDataMemory_isLoaded_78:
  159|      2|U_CFUNC UBool UDataMemory_isLoaded(const UDataMemory *This) {
  160|      2|    return This->pHeader != nullptr;
  161|      2|}

uhash_open_78:
  547|     43|           UErrorCode *status) {
  548|       |
  549|     43|    return _uhash_create(keyHash, keyComp, valueComp, DEFAULT_PRIME_INDEX, status);
  ------------------
  |  |   91|     43|#define DEFAULT_PRIME_INDEX 4
  ------------------
  550|     43|}
uhash_openSize_78:
  557|      5|               UErrorCode *status) {
  558|       |
  559|       |    /* Find the smallest index i for which PRIMES[i] >= size. */
  560|      5|    int32_t i = 0;
  561|     18|    while (i<(PRIMES_LENGTH-1) && PRIMES[i]<size) {
  ------------------
  |  |   90|     18|#define PRIMES_LENGTH UPRV_LENGTHOF(PRIMES)
  |  |  ------------------
  |  |  |  |   99|     18|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  |  |  ------------------
  ------------------
  |  Branch (561:12): [True: 18, False: 0]
  |  Branch (561:35): [True: 13, False: 5]
  ------------------
  562|     13|        ++i;
  563|     13|    }
  564|       |
  565|      5|    return _uhash_create(keyHash, keyComp, valueComp, i, status);
  566|      5|}
uhash_init_78:
  573|      1|           UErrorCode *status) {
  574|       |
  575|      1|    return _uhash_init(fillinResult, keyHash, keyComp, valueComp, DEFAULT_PRIME_INDEX, status);
  ------------------
  |  |   91|      1|#define DEFAULT_PRIME_INDEX 4
  ------------------
  576|      1|}
uhash_close_78:
  595|     90|uhash_close(UHashtable *hash) {
  596|     90|    if (hash == nullptr) {
  ------------------
  |  Branch (596:9): [True: 89, False: 1]
  ------------------
  597|     89|        return;
  598|     89|    }
  599|      1|    if (hash->elements != nullptr) {
  ------------------
  |  Branch (599:9): [True: 1, False: 0]
  ------------------
  600|      1|        if (hash->keyDeleter != nullptr || hash->valueDeleter != nullptr) {
  ------------------
  |  Branch (600:13): [True: 0, False: 1]
  |  Branch (600:44): [True: 0, False: 1]
  ------------------
  601|      0|            int32_t pos=UHASH_FIRST;
  ------------------
  |  |  610|      0|#define UHASH_FIRST (-1)
  ------------------
  602|      0|            UHashElement *e;
  603|      0|            while ((e = (UHashElement*) uhash_nextElement(hash, &pos)) != nullptr) {
  ------------------
  |  | 1029|      0|#define uhash_nextElement U_ICU_ENTRY_POINT_RENAME(uhash_nextElement)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (603:20): [True: 0, False: 0]
  ------------------
  604|      0|                HASH_DELETE_KEY_VALUE(hash, e->key.pointer, e->value.pointer);
  ------------------
  |  |  124|      0|#define HASH_DELETE_KEY_VALUE(hash, keypointer, valuepointer) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      0|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  125|      0|    if (hash->keyDeleter != nullptr && keypointer != nullptr) { \
  |  |  ------------------
  |  |  |  Branch (125:9): [True: 0, False: 0]
  |  |  |  Branch (125:40): [True: 0, False: 0]
  |  |  ------------------
  |  |  126|      0|        (*hash->keyDeleter)(keypointer); \
  |  |  127|      0|    } \
  |  |  128|      0|    if (hash->valueDeleter != nullptr && valuepointer != nullptr) { \
  |  |  ------------------
  |  |  |  Branch (128:9): [True: 0, False: 0]
  |  |  |  Branch (128:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  129|      0|        (*hash->valueDeleter)(valuepointer); \
  |  |  130|      0|    } \
  |  |  131|      0|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      0|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  605|      0|            }
  606|      0|        }
  607|      1|        uprv_free(hash->elements);
  ------------------
  |  | 1503|      1|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  608|      1|        hash->elements = nullptr;
  609|      1|    }
  610|      1|    if (hash->allocated) {
  ------------------
  |  Branch (610:9): [True: 0, False: 1]
  ------------------
  611|      0|        uprv_free(hash);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  612|      0|    }
  613|      1|}
uhash_setKeyDeleter_78:
  636|      1|uhash_setKeyDeleter(UHashtable *hash, UObjectDeleter *fn) {
  637|      1|    UObjectDeleter *result = hash->keyDeleter;
  638|      1|    hash->keyDeleter = fn;
  639|      1|    return result;
  640|      1|}
uhash_setValueDeleter_78:
  643|      2|uhash_setValueDeleter(UHashtable *hash, UObjectDeleter *fn) {
  644|      2|    UObjectDeleter *result = hash->valueDeleter;
  645|      2|    hash->valueDeleter = fn;
  646|      2|    return result;
  647|      2|}
uhash_count_78:
  659|  13.6k|uhash_count(const UHashtable *hash) {
  660|  13.6k|    return hash->count;
  661|  13.6k|}
uhash_get_78:
  665|  85.6k|          const void* key) {
  666|  85.6k|    UHashTok keyholder;
  667|  85.6k|    keyholder.pointer = (void*) key;
  668|  85.6k|    return _uhash_find(hash, keyholder, hash->keyHasher(keyholder))->value.pointer;
  669|  85.6k|}
uhash_geti_78:
  681|  2.17k|           const void* key) {
  682|  2.17k|    UHashTok keyholder;
  683|  2.17k|    keyholder.pointer = (void*) key;
  684|  2.17k|    return _uhash_find(hash, keyholder, hash->keyHasher(keyholder))->value.integer;
  685|  2.17k|}
uhash_put_78:
  721|  22.4k|          UErrorCode *status) {
  722|  22.4k|    UHashTok keyholder, valueholder;
  723|  22.4k|    keyholder.pointer = key;
  724|  22.4k|    valueholder.pointer = value;
  725|  22.4k|    return _uhash_put(hash, keyholder, valueholder,
  726|  22.4k|                      HINT_KEY_POINTER | HINT_VALUE_POINTER,
  ------------------
  |  |  139|  22.4k|#define HINT_KEY_POINTER   (1)
  ------------------
                                    HINT_KEY_POINTER | HINT_VALUE_POINTER,
  ------------------
  |  |  140|  22.4k|#define HINT_VALUE_POINTER (2)
  ------------------
  727|  22.4k|                      status).pointer;
  728|  22.4k|}
uhash_puti_78:
  747|    992|           UErrorCode *status) {
  748|    992|    UHashTok keyholder, valueholder;
  749|    992|    keyholder.pointer = key;
  750|    992|    valueholder.integer = value;
  751|    992|    return _uhash_put(hash, keyholder, valueholder,
  752|    992|                      HINT_KEY_POINTER,
  ------------------
  |  |  139|    992|#define HINT_KEY_POINTER   (1)
  ------------------
  753|    992|                      status).integer;
  754|    992|}
uhash_find_78:
  866|  26.4k|uhash_find(const UHashtable *hash, const void* key) {
  867|  26.4k|    UHashTok keyholder;
  868|  26.4k|    const UHashElement *e;
  869|  26.4k|    keyholder.pointer = (void*) key;
  870|  26.4k|    e = _uhash_find(hash, keyholder, hash->keyHasher(keyholder));
  871|  26.4k|    return IS_EMPTY_OR_DELETED(e->hashcode) ? nullptr : e;
  ------------------
  |  |  120|  26.4k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  |  |  ------------------
  |  |  |  Branch (120:32): [True: 6.59k, False: 19.8k]
  |  |  ------------------
  ------------------
  872|  26.4k|}
uhash_nextElement_78:
  875|  6.06k|uhash_nextElement(const UHashtable *hash, int32_t *pos) {
  876|       |    /* Walk through the array until we find an element that is not
  877|       |     * EMPTY and not DELETED.
  878|       |     */
  879|  6.06k|    int32_t i;
  880|  6.06k|    U_ASSERT(hash != nullptr);
  ------------------
  |  |   35|  6.06k|#   define U_ASSERT(exp) (void)0
  ------------------
  881|  8.35k|    for (i = *pos + 1; i < hash->length; ++i) {
  ------------------
  |  Branch (881:24): [True: 8.35k, False: 4]
  ------------------
  882|  8.35k|        if (!IS_EMPTY_OR_DELETED(hash->elements[i].hashcode)) {
  ------------------
  |  |  120|  8.35k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  ------------------
  |  Branch (882:13): [True: 6.06k, False: 2.29k]
  ------------------
  883|  6.06k|            *pos = i;
  884|  6.06k|            return &(hash->elements[i]);
  885|  6.06k|        }
  886|  8.35k|    }
  887|       |
  888|       |    /* No more elements */
  889|      4|    return nullptr;
  890|  6.06k|}
uhash_removeElement_78:
  893|  5.59k|uhash_removeElement(UHashtable *hash, const UHashElement* e) {
  894|  5.59k|    U_ASSERT(hash != nullptr);
  ------------------
  |  |   35|  5.59k|#   define U_ASSERT(exp) (void)0
  ------------------
  895|  5.59k|    U_ASSERT(e != nullptr);
  ------------------
  |  |   35|  5.59k|#   define U_ASSERT(exp) (void)0
  ------------------
  896|  5.59k|    if (!IS_EMPTY_OR_DELETED(e->hashcode)) {
  ------------------
  |  |  120|  5.59k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  ------------------
  |  Branch (896:9): [True: 5.59k, False: 0]
  ------------------
  897|  5.59k|        UHashElement *nce = (UHashElement *)e;
  898|  5.59k|        return _uhash_internalRemoveElement(hash, nce).pointer;
  899|  5.59k|    }
  900|      0|    return nullptr;
  901|  5.59k|}
uhash_hashUChars_78:
  932|  2.10k|uhash_hashUChars(const UHashTok key) {
  933|  2.10k|    const char16_t *s = (const char16_t *)key.pointer;
  934|  2.10k|    return s == nullptr ? 0 : ustr_hashUCharsN(s, u_strlen(s));
  ------------------
  |  | 1880|  2.10k|#define ustr_hashUCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashUCharsN)
  |  |  ------------------
  |  |  |  |  123|  2.10k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.10k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.10k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  return s == nullptr ? 0 : ustr_hashUCharsN(s, u_strlen(s));
  ------------------
  |  |  393|  2.10k|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|  2.10k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.10k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.10k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (934:12): [True: 0, False: 2.10k]
  ------------------
  935|  2.10k|}
uhash_hashChars_78:
  938|   118k|uhash_hashChars(const UHashTok key) {
  939|   118k|    const char *s = (const char *)key.pointer;
  940|   118k|    return s == nullptr ? 0 : static_cast<int32_t>(ustr_hashCharsN(s, static_cast<int32_t>(uprv_strlen(s))));
  ------------------
  |  | 1878|   118k|#define ustr_hashCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashCharsN)
  |  |  ------------------
  |  |  |  |  123|   118k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   118k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   118k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  return s == nullptr ? 0 : static_cast<int32_t>(ustr_hashCharsN(s, static_cast<int32_t>(uprv_strlen(s))));
  ------------------
  |  |   37|   118k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|   118k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (940:12): [True: 14, False: 118k]
  ------------------
  941|   118k|}
uhash_hashIStringView_78:
  950|  34.7k|uhash_hashIStringView(const UHashTok key) {
  951|  34.7k|    const std::string_view* s = static_cast<std::string_view*>(key.pointer);
  952|  34.7k|    return s == nullptr ? 0 : ustr_hashICharsN(s->data(), static_cast<int32_t>(s->size()));
  ------------------
  |  | 1879|  34.7k|#define ustr_hashICharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashICharsN)
  |  |  ------------------
  |  |  |  |  123|  34.7k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  34.7k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  34.7k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (952:12): [True: 0, False: 34.7k]
  ------------------
  953|  34.7k|}
uhash_compareUChars_78:
 1012|    476|uhash_compareUChars(const UHashTok key1, const UHashTok key2) {
 1013|    476|    const char16_t *p1 = (const char16_t*) key1.pointer;
 1014|    476|    const char16_t *p2 = (const char16_t*) key2.pointer;
 1015|    476|    if (p1 == p2) {
  ------------------
  |  Branch (1015:9): [True: 476, False: 0]
  ------------------
 1016|    476|        return true;
 1017|    476|    }
 1018|      0|    if (p1 == nullptr || p2 == nullptr) {
  ------------------
  |  Branch (1018:9): [True: 0, False: 0]
  |  Branch (1018:26): [True: 0, False: 0]
  ------------------
 1019|      0|        return false;
 1020|      0|    }
 1021|      0|    while (*p1 != 0 && *p1 == *p2) {
  ------------------
  |  Branch (1021:12): [True: 0, False: 0]
  |  Branch (1021:24): [True: 0, False: 0]
  ------------------
 1022|      0|        ++p1;
 1023|      0|        ++p2;
 1024|      0|    }
 1025|      0|    return *p1 == *p2;
 1026|      0|}
uhash_compareChars_78:
 1029|  37.1k|uhash_compareChars(const UHashTok key1, const UHashTok key2) {
 1030|  37.1k|    const char *p1 = (const char*) key1.pointer;
 1031|  37.1k|    const char *p2 = (const char*) key2.pointer;
 1032|  37.1k|    if (p1 == p2) {
  ------------------
  |  Branch (1032:9): [True: 2, False: 37.1k]
  ------------------
 1033|      2|        return true;
 1034|      2|    }
 1035|  37.1k|    if (p1 == nullptr || p2 == nullptr) {
  ------------------
  |  Branch (1035:9): [True: 0, False: 37.1k]
  |  Branch (1035:26): [True: 0, False: 37.1k]
  ------------------
 1036|      0|        return false;
 1037|      0|    }
 1038|   805k|    while (*p1 != 0 && *p1 == *p2) {
  ------------------
  |  Branch (1038:12): [True: 776k, False: 29.4k]
  |  Branch (1038:24): [True: 768k, False: 7.78k]
  ------------------
 1039|   768k|        ++p1;
 1040|   768k|        ++p2;
 1041|   768k|    }
 1042|  37.1k|    return *p1 == *p2;
 1043|  37.1k|}
uhash_compareIStringView_78:
 1063|  13.9k|uhash_compareIStringView(const UHashTok key1, const UHashTok key2) {
 1064|  13.9k|    const std::string_view* p1 = static_cast<std::string_view*>(key1.pointer);
 1065|  13.9k|    const std::string_view* p2 = static_cast<std::string_view*>(key2.pointer);
 1066|  13.9k|    if (p1 == p2) {
  ------------------
  |  Branch (1066:9): [True: 0, False: 13.9k]
  ------------------
 1067|      0|        return true;
 1068|      0|    }
 1069|  13.9k|    if (p1 == nullptr || p2 == nullptr) {
  ------------------
  |  Branch (1069:9): [True: 0, False: 13.9k]
  |  Branch (1069:26): [True: 0, False: 13.9k]
  ------------------
 1070|      0|        return false;
 1071|      0|    }
 1072|  13.9k|    const std::string_view& v1 = *p1;
 1073|  13.9k|    const std::string_view& v2 = *p2;
 1074|  13.9k|    if (v1.size() != v2.size()) {
  ------------------
  |  Branch (1074:9): [True: 194, False: 13.7k]
  ------------------
 1075|    194|        return false;
 1076|    194|    }
 1077|  70.4k|    for (size_t i = 0; i < v1.size(); ++i) {
  ------------------
  |  Branch (1077:24): [True: 57.4k, False: 13.0k]
  ------------------
 1078|  57.4k|        if (uprv_tolower(v1[i]) != uprv_tolower(v2[i])) {
  ------------------
  |  |   68|  57.4k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  57.4k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  57.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  57.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  57.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      if (uprv_tolower(v1[i]) != uprv_tolower(v2[i])) {
  ------------------
  |  |   68|  57.4k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  57.4k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  57.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  57.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  57.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1078:13): [True: 668, False: 56.7k]
  ------------------
 1079|    668|            return false;
 1080|    668|        }
 1081|  57.4k|    }
 1082|  13.0k|    return true;
 1083|  13.7k|}
uhash.cpp:_ZL13_uhash_createPFi8UElementEPFaS_S_ES3_iP10UErrorCode:
  287|     48|              UErrorCode *status) {
  288|     48|    UHashtable *result;
  289|       |
  290|     48|    if (U_FAILURE(*status)) return nullptr;
  ------------------
  |  Branch (290:9): [True: 0, False: 48]
  ------------------
  291|       |
  292|     48|    result = static_cast<UHashtable*>(uprv_malloc(sizeof(UHashtable)));
  ------------------
  |  | 1524|     48|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|     48|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     48|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     48|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  293|     48|    if (result == nullptr) {
  ------------------
  |  Branch (293:9): [True: 0, False: 48]
  ------------------
  294|      0|        *status = U_MEMORY_ALLOCATION_ERROR;
  295|      0|        return nullptr;
  296|      0|    }
  297|       |
  298|     48|    _uhash_init(result, keyHash, keyComp, valueComp, primeIndex, status);
  299|     48|    result->allocated       = true;
  300|       |
  301|     48|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (301:9): [True: 0, False: 48]
  ------------------
  302|      0|        uprv_free(result);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  303|      0|        return nullptr;
  304|      0|    }
  305|       |
  306|     48|    return result;
  307|     48|}
uhash.cpp:_ZL11_uhash_initP10UHashtablePFi8UElementEPFaS1_S1_ES5_iP10UErrorCode:
  260|     49|{
  261|     49|    if (U_FAILURE(*status)) return nullptr;
  ------------------
  |  Branch (261:9): [True: 0, False: 49]
  ------------------
  262|     49|    U_ASSERT(keyHash != nullptr);
  ------------------
  |  |   35|     49|#   define U_ASSERT(exp) (void)0
  ------------------
  263|     49|    U_ASSERT(keyComp != nullptr);
  ------------------
  |  |   35|     49|#   define U_ASSERT(exp) (void)0
  ------------------
  264|       |
  265|     49|    result->keyHasher       = keyHash;
  266|     49|    result->keyComparator   = keyComp;
  267|     49|    result->valueComparator = valueComp;
  268|     49|    result->keyDeleter      = nullptr;
  269|     49|    result->valueDeleter    = nullptr;
  270|     49|    result->allocated       = false;
  271|     49|    _uhash_internalSetResizePolicy(result, U_GROW);
  272|       |
  273|     49|    _uhash_allocate(result, primeIndex, status);
  274|       |
  275|     49|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (275:9): [True: 0, False: 49]
  ------------------
  276|      0|        return nullptr;
  277|      0|    }
  278|       |
  279|     49|    return result;
  280|     49|}
uhash.cpp:_ZL15_uhash_allocateP10UHashtableiP10UErrorCode:
  217|     84|                UErrorCode *status) {
  218|       |
  219|     84|    UHashElement *p, *limit;
  220|     84|    UHashTok emptytok;
  221|       |
  222|     84|    if (U_FAILURE(*status)) return;
  ------------------
  |  Branch (222:9): [True: 0, False: 84]
  ------------------
  223|       |
  224|     84|    U_ASSERT(primeIndex >= 0 && primeIndex < PRIMES_LENGTH);
  ------------------
  |  |   35|     84|#   define U_ASSERT(exp) (void)0
  ------------------
  225|       |
  226|     84|    hash->primeIndex = static_cast<int8_t>(primeIndex);
  227|     84|    hash->length = PRIMES[primeIndex];
  228|       |
  229|     84|    p = hash->elements = static_cast<UHashElement*>(
  230|     84|        uprv_malloc(sizeof(UHashElement) * hash->length));
  ------------------
  |  | 1524|     84|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|     84|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     84|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     84|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  231|       |
  232|     84|    if (hash->elements == nullptr) {
  ------------------
  |  Branch (232:9): [True: 0, False: 84]
  ------------------
  233|      0|        *status = U_MEMORY_ALLOCATION_ERROR;
  234|      0|        return;
  235|      0|    }
  236|       |
  237|     84|    emptytok.pointer = nullptr; /* Only one of these two is needed */
  238|     84|    emptytok.integer = 0;    /* but we don't know which one. */
  239|       |
  240|     84|    limit = p + hash->length;
  241|  94.8k|    while (p < limit) {
  ------------------
  |  Branch (241:12): [True: 94.7k, False: 84]
  ------------------
  242|  94.7k|        p->key = emptytok;
  243|  94.7k|        p->value = emptytok;
  244|  94.7k|        p->hashcode = HASH_EMPTY;
  ------------------
  |  |  118|  94.7k|#define HASH_EMPTY      ((int32_t) HASH_DELETED + 1)
  |  |  ------------------
  |  |  |  |  117|  94.7k|#define HASH_DELETED    ((int32_t) 0x80000000)
  |  |  ------------------
  ------------------
  245|  94.7k|        ++p;
  246|  94.7k|    }
  247|       |
  248|     84|    hash->count = 0;
  249|     84|    hash->lowWaterMark = static_cast<int32_t>(hash->length * hash->lowWaterRatio);
  250|     84|    hash->highWaterMark = static_cast<int32_t>(hash->length * hash->highWaterRatio);
  251|     84|}
uhash.cpp:_ZL30_uhash_internalSetResizePolicyP10UHashtable17UHashResizePolicy:
  197|     49|_uhash_internalSetResizePolicy(UHashtable *hash, enum UHashResizePolicy policy) {
  198|     49|    U_ASSERT(hash != nullptr);
  ------------------
  |  |   35|     49|#   define U_ASSERT(exp) (void)0
  ------------------
  199|     49|    U_ASSERT(((int32_t)policy) >= 0);
  ------------------
  |  |   35|     49|#   define U_ASSERT(exp) (void)0
  ------------------
  200|     49|    U_ASSERT(((int32_t)policy) < 3);
  ------------------
  |  |   35|     49|#   define U_ASSERT(exp) (void)0
  ------------------
  201|     49|    hash->lowWaterRatio  = RESIZE_POLICY_RATIO_TABLE[policy * 2];
  202|     49|    hash->highWaterRatio = RESIZE_POLICY_RATIO_TABLE[policy * 2 + 1];
  203|     49|}
uhash.cpp:_ZL13_uhash_rehashP10UHashtableP10UErrorCode:
  399|     35|_uhash_rehash(UHashtable *hash, UErrorCode *status) {
  400|       |
  401|     35|    UHashElement *old = hash->elements;
  402|     35|    int32_t oldLength = hash->length;
  403|     35|    int32_t newPrimeIndex = hash->primeIndex;
  404|     35|    int32_t i;
  405|       |
  406|     35|    if (hash->count > hash->highWaterMark) {
  ------------------
  |  Branch (406:9): [True: 35, False: 0]
  ------------------
  407|     35|        if (++newPrimeIndex >= PRIMES_LENGTH) {
  ------------------
  |  |   90|     35|#define PRIMES_LENGTH UPRV_LENGTHOF(PRIMES)
  |  |  ------------------
  |  |  |  |   99|     35|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  |  |  ------------------
  ------------------
  |  Branch (407:13): [True: 0, False: 35]
  ------------------
  408|      0|            return;
  409|      0|        }
  410|     35|    } else if (hash->count < hash->lowWaterMark) {
  ------------------
  |  Branch (410:16): [True: 0, False: 0]
  ------------------
  411|      0|        if (--newPrimeIndex < 0) {
  ------------------
  |  Branch (411:13): [True: 0, False: 0]
  ------------------
  412|      0|            return;
  413|      0|        }
  414|      0|    } else {
  415|      0|        return;
  416|      0|    }
  417|       |
  418|     35|    _uhash_allocate(hash, newPrimeIndex, status);
  419|       |
  420|     35|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (420:9): [True: 0, False: 35]
  ------------------
  421|      0|        hash->elements = old;
  422|      0|        hash->length = oldLength;
  423|      0|        return;
  424|      0|    }
  425|       |
  426|  43.8k|    for (i = oldLength - 1; i >= 0; --i) {
  ------------------
  |  Branch (426:29): [True: 43.7k, False: 35]
  ------------------
  427|  43.7k|        if (!IS_EMPTY_OR_DELETED(old[i].hashcode)) {
  ------------------
  |  |  120|  43.7k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  ------------------
  |  Branch (427:13): [True: 21.9k, False: 21.8k]
  ------------------
  428|  21.9k|            UHashElement *e = _uhash_find(hash, old[i].key, old[i].hashcode);
  429|  21.9k|            U_ASSERT(e != nullptr);
  ------------------
  |  |   35|  21.9k|#   define U_ASSERT(exp) (void)0
  ------------------
  430|  21.9k|            U_ASSERT(e->hashcode == HASH_EMPTY);
  ------------------
  |  |   35|  21.9k|#   define U_ASSERT(exp) (void)0
  ------------------
  431|  21.9k|            e->key = old[i].key;
  432|  21.9k|            e->value = old[i].value;
  433|  21.9k|            e->hashcode = old[i].hashcode;
  434|  21.9k|            ++hash->count;
  435|  21.9k|        }
  436|  43.7k|    }
  437|       |
  438|     35|    uprv_free(old);
  ------------------
  |  | 1503|     35|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|     35|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     35|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     35|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  439|     35|}
uhash.cpp:_ZL11_uhash_findPK10UHashtable8UElementi:
  339|   159k|            int32_t hashcode) {
  340|       |
  341|   159k|    int32_t firstDeleted = -1;  /* assume invalid index */
  342|   159k|    int32_t theIndex, startIndex;
  343|   159k|    int32_t jump = 0; /* lazy evaluate */
  344|   159k|    int32_t tableHash;
  345|   159k|    UHashElement *elements = hash->elements;
  346|       |
  347|   159k|    hashcode &= 0x7FFFFFFF; /* must be positive */
  348|   159k|    startIndex = theIndex = (hashcode ^ 0x4000000) % hash->length;
  349|       |
  350|   500k|    do {
  351|   500k|        tableHash = elements[theIndex].hashcode;
  352|   500k|        if (tableHash == hashcode) {          /* quick check */
  ------------------
  |  Branch (352:13): [True: 59.9k, False: 440k]
  ------------------
  353|  59.9k|            if ((*hash->keyComparator)(key, elements[theIndex].key)) {
  ------------------
  |  Branch (353:17): [True: 46.0k, False: 13.9k]
  ------------------
  354|  46.0k|                return &(elements[theIndex]);
  355|  46.0k|            }
  356|   440k|        } else if (!IS_EMPTY_OR_DELETED(tableHash)) {
  ------------------
  |  |  120|   440k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  ------------------
  |  Branch (356:20): [True: 198k, False: 242k]
  ------------------
  357|       |            /* We have hit a slot which contains a key-value pair,
  358|       |             * but for which the hash code does not match.  Keep
  359|       |             * looking.
  360|       |             */
  361|   242k|        } else if (tableHash == HASH_EMPTY) { /* empty, end o' the line */
  ------------------
  |  |  118|   242k|#define HASH_EMPTY      ((int32_t) HASH_DELETED + 1)
  |  |  ------------------
  |  |  |  |  117|   242k|#define HASH_DELETED    ((int32_t) 0x80000000)
  |  |  ------------------
  ------------------
  |  Branch (361:20): [True: 113k, False: 128k]
  ------------------
  362|   113k|            break;
  363|   128k|        } else if (firstDeleted < 0) { /* remember first deleted */
  ------------------
  |  Branch (363:20): [True: 9.98k, False: 118k]
  ------------------
  364|  9.98k|            firstDeleted = theIndex;
  365|  9.98k|        }
  366|   340k|        if (jump == 0) { /* lazy compute jump */
  ------------------
  |  Branch (366:13): [True: 52.4k, False: 288k]
  ------------------
  367|       |            /* The jump value must be relatively prime to the table
  368|       |             * length.  As long as the length is prime, then any value
  369|       |             * 1..length-1 will be relatively prime to it.
  370|       |             */
  371|  52.4k|            jump = (hashcode % (hash->length - 1)) + 1;
  372|  52.4k|        }
  373|   340k|        theIndex = (theIndex + jump) % hash->length;
  374|   340k|    } while (theIndex != startIndex);
  ------------------
  |  Branch (374:14): [True: 340k, False: 0]
  ------------------
  375|       |
  376|   113k|    if (firstDeleted >= 0) {
  ------------------
  |  Branch (376:9): [True: 9.16k, False: 104k]
  ------------------
  377|  9.16k|        theIndex = firstDeleted; /* reset if had deleted slot */
  378|   104k|    } else if (tableHash != HASH_EMPTY) {
  ------------------
  |  |  118|   104k|#define HASH_EMPTY      ((int32_t) HASH_DELETED + 1)
  |  |  ------------------
  |  |  |  |  117|   104k|#define HASH_DELETED    ((int32_t) 0x80000000)
  |  |  ------------------
  ------------------
  |  Branch (378:16): [True: 0, False: 104k]
  ------------------
  379|       |        /* We get to this point if the hashtable is full (no empty or
  380|       |         * deleted slots), and we've failed to find a match.  THIS
  381|       |         * WILL NEVER HAPPEN as long as uhash_put() makes sure that
  382|       |         * count is always < length.
  383|       |         */
  384|      0|        UPRV_UNREACHABLE_EXIT;
  ------------------
  |  |   68|      0|#   define UPRV_UNREACHABLE_EXIT abort()
  ------------------
  385|      0|    }
  386|   113k|    return &(elements[theIndex]);
  387|   113k|}
uhash.cpp:_ZL10_uhash_putP10UHashtable8UElementS1_aP10UErrorCode:
  471|  23.4k|           UErrorCode *status) {
  472|       |
  473|       |    /* Put finds the position in the table for the new value.  If the
  474|       |     * key is already in the table, it is deleted, if there is a
  475|       |     * non-nullptr keyDeleter.  Then the key, the hash and the value are
  476|       |     * all put at the position in their respective arrays.
  477|       |     */
  478|  23.4k|    int32_t hashcode;
  479|  23.4k|    UHashElement* e;
  480|  23.4k|    UHashTok emptytok;
  481|       |
  482|  23.4k|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (482:9): [True: 0, False: 23.4k]
  ------------------
  483|      0|        goto err;
  484|      0|    }
  485|  23.4k|    U_ASSERT(hash != nullptr);
  ------------------
  |  |   35|  23.4k|#   define U_ASSERT(exp) (void)0
  ------------------
  486|  23.4k|    if ((hint & HINT_VALUE_POINTER) ?
  ------------------
  |  |  140|  23.4k|#define HINT_VALUE_POINTER (2)
  ------------------
  |  Branch (486:9): [True: 22.4k, False: 992]
  |  Branch (486:9): [True: 0, False: 23.4k]
  ------------------
  487|  22.4k|            value.pointer == nullptr :
  488|  23.4k|            value.integer == 0 && (hint & HINT_ALLOW_ZERO) == 0) {
  ------------------
  |  |  141|      0|#define HINT_ALLOW_ZERO    (4)
  ------------------
  |  Branch (488:13): [True: 0, False: 992]
  |  Branch (488:35): [True: 0, False: 0]
  ------------------
  489|       |        /* Disallow storage of nullptr values, since nullptr is returned by
  490|       |         * get() to indicate an absent key.  Storing nullptr == removing.
  491|       |         */
  492|      0|        return _uhash_remove(hash, key);
  493|      0|    }
  494|  23.4k|    if (hash->count > hash->highWaterMark) {
  ------------------
  |  Branch (494:9): [True: 35, False: 23.4k]
  ------------------
  495|     35|        _uhash_rehash(hash, status);
  496|     35|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (496:13): [True: 0, False: 35]
  ------------------
  497|      0|            goto err;
  498|      0|        }
  499|     35|    }
  500|       |
  501|  23.4k|    hashcode = (*hash->keyHasher)(key);
  502|  23.4k|    e = _uhash_find(hash, key, hashcode);
  503|  23.4k|    U_ASSERT(e != nullptr);
  ------------------
  |  |   35|  23.4k|#   define U_ASSERT(exp) (void)0
  ------------------
  504|       |
  505|  23.4k|    if (IS_EMPTY_OR_DELETED(e->hashcode)) {
  ------------------
  |  |  120|  23.4k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  |  |  ------------------
  |  |  |  Branch (120:32): [True: 23.4k, False: 6]
  |  |  ------------------
  ------------------
  506|       |        /* Important: We must never actually fill the table up.  If we
  507|       |         * do so, then _uhash_find() will return nullptr, and we'll have
  508|       |         * to check for nullptr after every call to _uhash_find().  To
  509|       |         * avoid this we make sure there is always at least one empty
  510|       |         * or deleted slot in the table.  This only is a problem if we
  511|       |         * are out of memory and rehash isn't working.
  512|       |         */
  513|  23.4k|        ++hash->count;
  514|  23.4k|        if (hash->count == hash->length) {
  ------------------
  |  Branch (514:13): [True: 0, False: 23.4k]
  ------------------
  515|       |            /* Don't allow count to reach length */
  516|      0|            --hash->count;
  517|      0|            *status = U_MEMORY_ALLOCATION_ERROR;
  518|      0|            goto err;
  519|      0|        }
  520|  23.4k|    }
  521|       |
  522|       |    /* We must in all cases handle storage properly.  If there was an
  523|       |     * old key, then it must be deleted (if the deleter != nullptr).
  524|       |     * Make hashcodes stored in table positive.
  525|       |     */
  526|  23.4k|    return _uhash_setElement(hash, e, hashcode & 0x7FFFFFFF, key, value, hint);
  527|       |
  528|      0| err:
  529|       |    /* If the deleters are non-nullptr, this method adopts its key and/or
  530|       |     * value arguments, and we must be sure to delete the key and/or
  531|       |     * value in all cases, even upon failure.
  532|       |     */
  533|      0|    HASH_DELETE_KEY_VALUE(hash, key.pointer, value.pointer);
  ------------------
  |  |  124|      0|#define HASH_DELETE_KEY_VALUE(hash, keypointer, valuepointer) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      0|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  125|      0|    if (hash->keyDeleter != nullptr && keypointer != nullptr) { \
  |  |  ------------------
  |  |  |  Branch (125:9): [True: 0, False: 0]
  |  |  |  Branch (125:40): [True: 0, False: 0]
  |  |  ------------------
  |  |  126|      0|        (*hash->keyDeleter)(keypointer); \
  |  |  127|      0|    } \
  |  |  128|      0|    if (hash->valueDeleter != nullptr && valuepointer != nullptr) { \
  |  |  ------------------
  |  |  |  Branch (128:9): [True: 0, False: 0]
  |  |  |  Branch (128:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  129|      0|        (*hash->valueDeleter)(valuepointer); \
  |  |  130|      0|    } \
  |  |  131|      0|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      0|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  534|      0|    emptytok.pointer = nullptr; emptytok.integer = 0;
  535|      0|    return emptytok;
  536|  23.4k|}
uhash.cpp:_ZL17_uhash_setElementP10UHashtableP12UHashElementi8UElementS3_a:
  150|  29.0k|                  UHashTok key, UHashTok value, int8_t hint) {
  151|       |
  152|  29.0k|    UHashTok oldValue = e->value;
  153|  29.0k|    if (hash->keyDeleter != nullptr && e->key.pointer != nullptr &&
  ------------------
  |  Branch (153:9): [True: 12.1k, False: 16.8k]
  |  Branch (153:40): [True: 5.59k, False: 6.59k]
  ------------------
  154|  29.0k|        e->key.pointer != key.pointer) { /* Avoid double deletion */
  ------------------
  |  Branch (154:9): [True: 5.59k, False: 0]
  ------------------
  155|  5.59k|        (*hash->keyDeleter)(e->key.pointer);
  156|  5.59k|    }
  157|  29.0k|    if (hash->valueDeleter != nullptr) {
  ------------------
  |  Branch (157:9): [True: 1, False: 29.0k]
  ------------------
  158|      1|        if (oldValue.pointer != nullptr &&
  ------------------
  |  Branch (158:13): [True: 0, False: 1]
  ------------------
  159|      1|            oldValue.pointer != value.pointer) { /* Avoid double deletion */
  ------------------
  |  Branch (159:13): [True: 0, False: 0]
  ------------------
  160|      0|            (*hash->valueDeleter)(oldValue.pointer);
  161|      0|        }
  162|      1|        oldValue.pointer = nullptr;
  163|      1|    }
  164|       |    /* Compilers should copy the UHashTok union correctly, but even if
  165|       |     * they do, memory heap tools (e.g. BoundsChecker) can get
  166|       |     * confused when a pointer is cloaked in a union and then copied.
  167|       |     * TO ALLEVIATE THIS, we use hints (based on what API the user is
  168|       |     * calling) to copy pointers when we know the user thinks
  169|       |     * something is a pointer. */
  170|  29.0k|    if (hint & HINT_KEY_POINTER) {
  ------------------
  |  |  139|  29.0k|#define HINT_KEY_POINTER   (1)
  ------------------
  |  Branch (170:9): [True: 23.4k, False: 5.59k]
  ------------------
  171|  23.4k|        e->key.pointer = key.pointer;
  172|  23.4k|    } else {
  173|  5.59k|        e->key = key;
  174|  5.59k|    }
  175|  29.0k|    if (hint & HINT_VALUE_POINTER) {
  ------------------
  |  |  140|  29.0k|#define HINT_VALUE_POINTER (2)
  ------------------
  |  Branch (175:9): [True: 22.4k, False: 6.58k]
  ------------------
  176|  22.4k|        e->value.pointer = value.pointer;
  177|  22.4k|    } else {
  178|  6.58k|        e->value = value;
  179|  6.58k|    }
  180|  29.0k|    e->hashcode = hashcode;
  181|  29.0k|    return oldValue;
  182|  29.0k|}
uhash.cpp:_ZL28_uhash_internalRemoveElementP10UHashtableP12UHashElement:
  188|  5.59k|_uhash_internalRemoveElement(UHashtable *hash, UHashElement* e) {
  189|  5.59k|    UHashTok empty;
  190|  5.59k|    U_ASSERT(!IS_EMPTY_OR_DELETED(e->hashcode));
  ------------------
  |  |   35|  5.59k|#   define U_ASSERT(exp) (void)0
  ------------------
  191|  5.59k|    --hash->count;
  192|  5.59k|    empty.pointer = nullptr; empty.integer = 0;
  193|  5.59k|    return _uhash_setElement(hash, e, HASH_DELETED, empty, empty, 0);
  ------------------
  |  |  117|  5.59k|#define HASH_DELETED    ((int32_t) 0x80000000)
  ------------------
  194|  5.59k|}

u_UCharsToChars_78:
  204|  2.34k|u_UCharsToChars(const char16_t *us, char *cs, int32_t length) {
  205|  2.34k|    char16_t u;
  206|       |
  207|  16.4k|    while(length>0) {
  ------------------
  |  Branch (207:11): [True: 14.1k, False: 2.34k]
  ------------------
  208|  14.1k|        u=*us++;
  209|  14.1k|        if(!UCHAR_IS_INVARIANT(u)) {
  ------------------
  |  |  168|  14.1k|#define UCHAR_IS_INVARIANT(c) (((c)<=0x7f) && (invariantChars[(c)>>5]&((uint32_t)1<<((c)&0x1f)))!=0)
  |  |  ------------------
  |  |  |  Branch (168:32): [True: 14.1k, False: 0]
  |  |  |  Branch (168:47): [True: 14.1k, False: 0]
  |  |  ------------------
  ------------------
  210|      0|            U_ASSERT(false); /* Variant characters were used. These are not portable in ICU. */
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
  211|      0|            u=0;
  212|      0|        }
  213|  14.1k|        *cs++=(char)UCHAR_TO_CHAR(u);
  ------------------
  |  |  175|  14.1k|#define UCHAR_TO_CHAR(c) c
  ------------------
  214|  14.1k|        --length;
  215|  14.1k|    }
  216|  2.34k|}
uprv_isInvariantUString_78:
  263|  1.31k|uprv_isInvariantUString(const char16_t *s, int32_t length) {
  264|  1.31k|    char16_t c;
  265|       |
  266|  6.43k|    for(;;) {
  267|  6.43k|        if(length<0) {
  ------------------
  |  Branch (267:12): [True: 0, False: 6.43k]
  ------------------
  268|       |            /* NUL-terminated */
  269|      0|            c=*s++;
  270|      0|            if(c==0) {
  ------------------
  |  Branch (270:16): [True: 0, False: 0]
  ------------------
  271|      0|                break;
  272|      0|            }
  273|  6.43k|        } else {
  274|       |            /* count length */
  275|  6.43k|            if(length==0) {
  ------------------
  |  Branch (275:16): [True: 1.31k, False: 5.11k]
  ------------------
  276|  1.31k|                break;
  277|  1.31k|            }
  278|  5.11k|            --length;
  279|  5.11k|            c=*s++;
  280|  5.11k|        }
  281|       |
  282|       |        /*
  283|       |         * no assertions here because these functions are legitimately called
  284|       |         * for strings with variant characters
  285|       |         */
  286|  5.11k|        if(!UCHAR_IS_INVARIANT(c)) {
  ------------------
  |  |  168|  5.11k|#define UCHAR_IS_INVARIANT(c) (((c)<=0x7f) && (invariantChars[(c)>>5]&((uint32_t)1<<((c)&0x1f)))!=0)
  |  |  ------------------
  |  |  |  Branch (168:32): [True: 5.11k, False: 0]
  |  |  |  Branch (168:47): [True: 5.11k, False: 0]
  |  |  ------------------
  ------------------
  287|      0|            return false; /* found a variant char */
  288|      0|        }
  289|  5.11k|    }
  290|  1.31k|    return true;
  291|  1.31k|}
uprv_compareInvAscii_78:
  460|  78.6k|                     const char16_t *localString, int32_t localLength) {
  461|  78.6k|    (void)ds;
  462|  78.6k|    int32_t minLength;
  463|  78.6k|    UChar32 c1, c2;
  464|  78.6k|    uint8_t c;
  465|       |
  466|  78.6k|    if(outString==nullptr || outLength<-1 || localString==nullptr || localLength<-1) {
  ------------------
  |  Branch (466:8): [True: 0, False: 78.6k]
  |  Branch (466:30): [True: 0, False: 78.6k]
  |  Branch (466:46): [True: 0, False: 78.6k]
  |  Branch (466:70): [True: 0, False: 78.6k]
  ------------------
  467|      0|        return 0;
  468|      0|    }
  469|       |
  470|  78.6k|    if(outLength<0) {
  ------------------
  |  Branch (470:8): [True: 0, False: 78.6k]
  ------------------
  471|      0|        outLength=(int32_t)uprv_strlen(outString);
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  472|      0|    }
  473|  78.6k|    if(localLength<0) {
  ------------------
  |  Branch (473:8): [True: 0, False: 78.6k]
  ------------------
  474|      0|        localLength=u_strlen(localString);
  ------------------
  |  |  393|      0|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  475|      0|    }
  476|       |
  477|  78.6k|    minLength= outLength<localLength ? outLength : localLength;
  ------------------
  |  Branch (477:16): [True: 30.1k, False: 48.5k]
  ------------------
  478|       |
  479|   204k|    while(minLength>0) {
  ------------------
  |  Branch (479:11): [True: 203k, False: 413]
  ------------------
  480|   203k|        c=(uint8_t)*outString++;
  481|   203k|        if(UCHAR_IS_INVARIANT(c)) {
  ------------------
  |  |  168|   203k|#define UCHAR_IS_INVARIANT(c) (((c)<=0x7f) && (invariantChars[(c)>>5]&((uint32_t)1<<((c)&0x1f)))!=0)
  |  |  ------------------
  |  |  |  Branch (168:32): [True: 203k, False: 0]
  |  |  |  Branch (168:47): [True: 203k, False: 0]
  |  |  ------------------
  ------------------
  482|   203k|            c1=c;
  483|   203k|        } else {
  484|      0|            c1=-1;
  485|      0|        }
  486|       |
  487|   203k|        c2=*localString++;
  488|   203k|        if(!UCHAR_IS_INVARIANT(c2)) {
  ------------------
  |  |  168|   203k|#define UCHAR_IS_INVARIANT(c) (((c)<=0x7f) && (invariantChars[(c)>>5]&((uint32_t)1<<((c)&0x1f)))!=0)
  |  |  ------------------
  |  |  |  Branch (168:32): [True: 203k, False: 0]
  |  |  |  Branch (168:47): [True: 203k, False: 0]
  |  |  ------------------
  ------------------
  489|      0|            c2=-2;
  490|      0|        }
  491|       |
  492|   203k|        if((c1-=c2)!=0) {
  ------------------
  |  Branch (492:12): [True: 78.2k, False: 125k]
  ------------------
  493|  78.2k|            return c1;
  494|  78.2k|        }
  495|       |
  496|   125k|        --minLength;
  497|   125k|    }
  498|       |
  499|       |    /* strings start with same prefix, compare lengths */
  500|    413|    return outLength-localLength;
  501|  78.6k|}

locale_getKeywordsStart_78:
  526|  45.5k|locale_getKeywordsStart(std::string_view localeID) {
  527|  45.5k|    if (size_t pos = localeID.find('@'); pos != std::string_view::npos) {
  ------------------
  |  Branch (527:42): [True: 23.3k, False: 22.2k]
  ------------------
  528|  23.3k|        return localeID.data() + pos;
  529|  23.3k|    }
  530|       |#if (U_CHARSET_FAMILY == U_EBCDIC_FAMILY)
  531|       |    else {
  532|       |        /* We do this because the @ sign is variant, and the @ sign used on one
  533|       |        EBCDIC machine won't be compiled the same way on other EBCDIC based
  534|       |        machines. */
  535|       |        static const uint8_t ebcdicSigns[] = { 0x7C, 0x44, 0x66, 0x80, 0xAC, 0xAE, 0xAF, 0xB5, 0xEC, 0xEF, 0x00 };
  536|       |        const uint8_t *charToFind = ebcdicSigns;
  537|       |        while(*charToFind) {
  538|       |            if (size_t pos = localeID.find(*charToFind); pos != std::string_view::npos) {
  539|       |                return localeID.data() + pos;
  540|       |            }
  541|       |            charToFind++;
  542|       |        }
  543|       |    }
  544|       |#endif
  545|  22.2k|    return nullptr;
  546|  45.5k|}
_Z22ulocimp_getKeywords_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEEcRN6icu_788ByteSinkEbR10UErrorCode:
  614|  3.06k|{
  615|  3.06k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (615:9): [True: 0, False: 3.06k]
  ------------------
  616|       |
  617|  3.06k|    KeywordStruct keywordList[ULOC_MAX_NO_KEYWORDS];
  618|       |
  619|  3.06k|    int32_t maxKeywords = ULOC_MAX_NO_KEYWORDS;
  ------------------
  |  |  523|  3.06k|#define ULOC_MAX_NO_KEYWORDS 25
  ------------------
  620|  3.06k|    int32_t numKeywords = 0;
  621|  3.06k|    size_t equalSign = std::string_view::npos;
  622|  3.06k|    size_t semicolon = std::string_view::npos;
  623|  3.06k|    int32_t i = 0, j, n;
  624|       |
  625|  3.06k|    if(prev == '@') { /* start of keyword definition */
  ------------------
  |  Branch (625:8): [True: 3.06k, False: 0]
  ------------------
  626|       |        /* we will grab pairs, trim spaces, lowercase keywords, sort and return */
  627|  15.3k|        do {
  628|  15.3k|            bool duplicate = false;
  629|       |            /* skip leading spaces */
  630|  15.8k|            while (localeID.front() == ' ') {
  ------------------
  |  Branch (630:20): [True: 432, False: 15.3k]
  ------------------
  631|    432|                localeID.remove_prefix(1);
  632|    432|            }
  633|  15.3k|            if (localeID.empty()) { /* handle trailing "; " */
  ------------------
  |  Branch (633:17): [True: 10, False: 15.3k]
  ------------------
  634|     10|                break;
  635|     10|            }
  636|  15.3k|            if(numKeywords == maxKeywords) {
  ------------------
  |  Branch (636:16): [True: 41, False: 15.3k]
  ------------------
  637|     41|                status = U_INTERNAL_PROGRAM_ERROR;
  638|     41|                return;
  639|     41|            }
  640|  15.3k|            equalSign = localeID.find('=');
  641|  15.3k|            semicolon = localeID.find(';');
  642|       |            /* lack of '=' [foo@currency] is illegal */
  643|       |            /* ';' before '=' [foo@currency;collation=pinyin] is illegal */
  644|  15.3k|            if (equalSign == std::string_view::npos ||
  ------------------
  |  Branch (644:17): [True: 4, False: 15.3k]
  ------------------
  645|  15.3k|                (semicolon != std::string_view::npos && semicolon < equalSign)) {
  ------------------
  |  Branch (645:18): [True: 12.3k, False: 2.97k]
  |  Branch (645:57): [True: 1, False: 12.3k]
  ------------------
  646|      5|                status = U_INVALID_FORMAT_ERROR;
  647|      5|                return;
  648|      5|            }
  649|       |            /* zero-length keyword is an error. */
  650|  15.3k|            if (equalSign == 0) {
  ------------------
  |  Branch (650:17): [True: 25, False: 15.3k]
  ------------------
  651|     25|                status = U_INVALID_FORMAT_ERROR;
  652|     25|                return;
  653|     25|            }
  654|       |            /* need to normalize both keyword and keyword name */
  655|  15.3k|            if (equalSign >= ULOC_KEYWORD_BUFFER_LEN) {
  ------------------
  |  |  522|  15.3k|#define ULOC_KEYWORD_BUFFER_LEN 25
  ------------------
  |  Branch (655:17): [True: 25, False: 15.2k]
  ------------------
  656|       |                /* keyword name too long for internal buffer */
  657|     25|                status = U_INTERNAL_PROGRAM_ERROR;
  658|     25|                return;
  659|     25|            }
  660|  89.2k|            for (i = 0, n = 0; static_cast<size_t>(i) < equalSign; ++i) {
  ------------------
  |  Branch (660:32): [True: 73.9k, False: 15.2k]
  ------------------
  661|  73.9k|                if (localeID[i] != ' ') {
  ------------------
  |  Branch (661:21): [True: 73.7k, False: 222]
  ------------------
  662|  73.7k|                    keywordList[numKeywords].keyword[n++] = uprv_tolower(localeID[i]);
  ------------------
  |  |   68|  73.7k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  73.7k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  73.7k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  73.7k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  73.7k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  663|  73.7k|                }
  664|  73.9k|            }
  665|       |
  666|  15.2k|            keywordList[numKeywords].keyword[n] = 0;
  667|  15.2k|            keywordList[numKeywords].keywordLen = n;
  668|       |            /* now grab the value part. First we skip the '=' */
  669|  15.2k|            equalSign++;
  670|       |            /* then we leading spaces */
  671|  21.7k|            while (equalSign < localeID.length() && localeID[equalSign] == ' ') {
  ------------------
  |  Branch (671:20): [True: 21.7k, False: 29]
  |  Branch (671:53): [True: 6.50k, False: 15.2k]
  ------------------
  672|  6.50k|                equalSign++;
  673|  6.50k|            }
  674|       |
  675|       |            /* Premature end or zero-length value */
  676|  15.2k|            if (equalSign == localeID.length() || equalSign == semicolon) {
  ------------------
  |  Branch (676:17): [True: 29, False: 15.2k]
  |  Branch (676:51): [True: 2, False: 15.2k]
  ------------------
  677|     31|                status = U_INVALID_FORMAT_ERROR;
  678|     31|                return;
  679|     31|            }
  680|       |
  681|  15.2k|            keywordList[numKeywords].valueStart = localeID.data() + equalSign;
  682|       |
  683|  15.2k|            std::string_view value = localeID;
  684|  15.2k|            if (semicolon != std::string_view::npos) {
  ------------------
  |  Branch (684:17): [True: 12.3k, False: 2.91k]
  ------------------
  685|  12.3k|                value.remove_suffix(value.length() - semicolon);
  686|  12.3k|                localeID.remove_prefix(semicolon + 1);
  687|  12.3k|            } else {
  688|  2.91k|                localeID = {};
  689|  2.91k|            }
  690|  15.2k|            value.remove_prefix(equalSign);
  691|  15.2k|            if (size_t last = value.find_last_not_of(' '); last != std::string_view::npos) {
  ------------------
  |  Branch (691:60): [True: 15.2k, False: 0]
  ------------------
  692|  15.2k|                value.remove_suffix(value.length() - last - 1);
  693|  15.2k|            }
  694|  15.2k|            keywordList[numKeywords].valueLen = static_cast<int32_t>(value.length());
  695|       |
  696|       |            /* If this is a duplicate keyword, then ignore it */
  697|   106k|            for (j=0; j<numKeywords; ++j) {
  ------------------
  |  Branch (697:23): [True: 91.4k, False: 14.6k]
  ------------------
  698|  91.4k|                if (uprv_strcmp(keywordList[j].keyword, keywordList[numKeywords].keyword) == 0) {
  ------------------
  |  |   38|  91.4k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  91.4k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (698:21): [True: 607, False: 90.8k]
  ------------------
  699|    607|                    duplicate = true;
  700|    607|                    break;
  701|    607|                }
  702|  91.4k|            }
  703|  15.2k|            if (!duplicate) {
  ------------------
  |  Branch (703:17): [True: 14.6k, False: 607]
  ------------------
  704|  14.6k|                ++numKeywords;
  705|  14.6k|            }
  706|  15.2k|        } while (!localeID.empty());
  ------------------
  |  Branch (706:18): [True: 12.3k, False: 2.93k]
  ------------------
  707|       |
  708|       |        /* now we have a list of keywords */
  709|       |        /* we need to sort it */
  710|  2.94k|        uprv_sortArray(keywordList, numKeywords, sizeof(KeywordStruct), compareKeywordStructs, nullptr, false, &status);
  ------------------
  |  | 1538|  2.94k|#define uprv_sortArray U_ICU_ENTRY_POINT_RENAME(uprv_sortArray)
  |  |  ------------------
  |  |  |  |  123|  2.94k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.94k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.94k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  711|       |
  712|       |        /* Now construct the keyword part */
  713|  16.5k|        for(i = 0; i < numKeywords; i++) {
  ------------------
  |  Branch (713:20): [True: 13.5k, False: 2.94k]
  ------------------
  714|  13.5k|            sink.Append(keywordList[i].keyword, keywordList[i].keywordLen);
  715|  13.5k|            if(valuesToo) {
  ------------------
  |  Branch (715:16): [True: 13.5k, False: 0]
  ------------------
  716|  13.5k|                sink.Append("=", 1);
  717|  13.5k|                sink.Append(keywordList[i].valueStart, keywordList[i].valueLen);
  718|  13.5k|                if(i < numKeywords - 1) {
  ------------------
  |  Branch (718:20): [True: 10.6k, False: 2.94k]
  ------------------
  719|  10.6k|                    sink.Append(";", 1);
  720|  10.6k|                }
  721|  13.5k|            } else {
  722|      0|                sink.Append("\0", 1);
  723|      0|            }
  724|  13.5k|        }
  725|  2.94k|    }
  726|  3.06k|}
uloc_getKeywordValue_78:
  733|  19.6k|{
  734|  19.6k|    if (U_FAILURE(*status)) { return 0; }
  ------------------
  |  Branch (734:9): [True: 111, False: 19.5k]
  ------------------
  735|  19.5k|    if (keywordName == nullptr || *keywordName == '\0') {
  ------------------
  |  Branch (735:9): [True: 0, False: 19.5k]
  |  Branch (735:35): [True: 0, False: 19.5k]
  ------------------
  736|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
  737|      0|        return 0;
  738|      0|    }
  739|  19.5k|    return ByteSinkUtil::viaByteSinkToTerminatedChars(
  740|  19.5k|        buffer, bufferCapacity,
  741|  19.5k|        [&](ByteSink& sink, UErrorCode& status) {
  742|  19.5k|            ulocimp_getKeywordValue(localeID, keywordName, sink, status);
  743|  19.5k|        },
  744|  19.5k|        *status);
  745|  19.5k|}
_Z26ulocimp_getKeywordValue_78PKcNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERN6icu_788ByteSinkER10UErrorCode:
  764|  19.5k|{
  765|  19.5k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (765:9): [True: 0, False: 19.5k]
  ------------------
  766|       |
  767|  19.5k|    if (localeID == nullptr || keywordName.empty()) {
  ------------------
  |  Branch (767:9): [True: 0, False: 19.5k]
  |  Branch (767:32): [True: 0, False: 19.5k]
  ------------------
  768|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  769|      0|        return;
  770|      0|    }
  771|       |
  772|  19.5k|    const char* startSearchHere = nullptr;
  773|  19.5k|    const char* nextSeparator = nullptr;
  774|       |
  775|  19.5k|    CharString tempBuffer;
  776|  19.5k|    const char* tmpLocaleID;
  777|       |
  778|  19.5k|    CharString canonKeywordName = locale_canonKeywordName(keywordName, status);
  779|  19.5k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (779:9): [True: 0, False: 19.5k]
  ------------------
  780|      0|      return;
  781|      0|    }
  782|       |
  783|  19.5k|    if (localeID != nullptr && _hasBCP47Extension(localeID)) {
  ------------------
  |  Branch (783:9): [True: 19.5k, False: 0]
  |  Branch (783:32): [True: 0, False: 19.5k]
  ------------------
  784|      0|        tempBuffer = ulocimp_forLanguageTag(localeID, -1, nullptr, status);
  ------------------
  |  | 1198|      0|#define ulocimp_forLanguageTag U_ICU_ENTRY_POINT_RENAME(ulocimp_forLanguageTag)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  785|      0|        tmpLocaleID = U_SUCCESS(status) && !tempBuffer.isEmpty() ? tempBuffer.data() : localeID;
  ------------------
  |  Branch (785:23): [True: 0, False: 0]
  |  Branch (785:44): [True: 0, False: 0]
  ------------------
  786|  19.5k|    } else {
  787|  19.5k|        tmpLocaleID=localeID;
  788|  19.5k|    }
  789|       |
  790|  19.5k|    startSearchHere = locale_getKeywordsStart(tmpLocaleID);
  ------------------
  |  |  138|  19.5k|#define locale_getKeywordsStart U_ICU_ENTRY_POINT_RENAME(locale_getKeywordsStart)
  |  |  ------------------
  |  |  |  |  123|  19.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  19.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  19.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  791|  19.5k|    if(startSearchHere == nullptr) {
  ------------------
  |  Branch (791:8): [True: 0, False: 19.5k]
  ------------------
  792|       |        /* no keywords, return at once */
  793|      0|        return;
  794|      0|    }
  795|       |
  796|       |    /* find the first keyword */
  797|  55.1k|    while(startSearchHere) {
  ------------------
  |  Branch (797:11): [True: 37.3k, False: 17.7k]
  ------------------
  798|  37.3k|        const char* keyValueTail;
  799|       |
  800|  37.3k|        startSearchHere++; /* skip @ or ; */
  801|  37.3k|        nextSeparator = uprv_strchr(startSearchHere, '=');
  ------------------
  |  |   40|  37.3k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  37.3k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  802|  37.3k|        if(!nextSeparator) {
  ------------------
  |  Branch (802:12): [True: 0, False: 37.3k]
  ------------------
  803|      0|            status = U_ILLEGAL_ARGUMENT_ERROR; /* key must have =value */
  804|      0|            return;
  805|      0|        }
  806|       |        /* strip leading & trailing spaces (TC decided to tolerate these) */
  807|  37.3k|        while(*startSearchHere == ' ') {
  ------------------
  |  Branch (807:15): [True: 0, False: 37.3k]
  ------------------
  808|      0|            startSearchHere++;
  809|      0|        }
  810|  37.3k|        keyValueTail = nextSeparator;
  811|  37.3k|        while (keyValueTail > startSearchHere && *(keyValueTail-1) == ' ') {
  ------------------
  |  Branch (811:16): [True: 37.3k, False: 0]
  |  Branch (811:50): [True: 0, False: 37.3k]
  ------------------
  812|      0|            keyValueTail--;
  813|      0|        }
  814|       |        /* now keyValueTail points to first char after the keyName */
  815|       |        /* copy & normalize keyName from locale */
  816|  37.3k|        if (startSearchHere == keyValueTail) {
  ------------------
  |  Branch (816:13): [True: 0, False: 37.3k]
  ------------------
  817|      0|            status = U_ILLEGAL_ARGUMENT_ERROR; /* empty keyword name in passed-in locale */
  818|      0|            return;
  819|      0|        }
  820|  37.3k|        CharString localeKeywordName;
  821|   240k|        while (startSearchHere < keyValueTail) {
  ------------------
  |  Branch (821:16): [True: 203k, False: 36.9k]
  ------------------
  822|   203k|          if (!UPRV_ISALPHANUM(*startSearchHere)) {
  ------------------
  |  Branch (822:15): [True: 382, False: 203k]
  ------------------
  823|    382|            status = U_ILLEGAL_ARGUMENT_ERROR; /* malformed keyword name */
  824|    382|            return;
  825|    382|          }
  826|   203k|          localeKeywordName.append(uprv_tolower(*startSearchHere++), status);
  ------------------
  |  |   68|   203k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|   203k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|   203k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|   203k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|   203k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  827|   203k|        }
  828|  36.9k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (828:13): [True: 0, False: 36.9k]
  ------------------
  829|      0|            return;
  830|      0|        }
  831|       |
  832|  36.9k|        startSearchHere = uprv_strchr(nextSeparator, ';');
  ------------------
  |  |   40|  36.9k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  36.9k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  833|       |
  834|  36.9k|        if (canonKeywordName == localeKeywordName) {
  ------------------
  |  Branch (834:13): [True: 1.34k, False: 35.6k]
  ------------------
  835|       |             /* current entry matches the keyword. */
  836|  1.34k|           nextSeparator++; /* skip '=' */
  837|       |            /* First strip leading & trailing spaces (TC decided to tolerate these) */
  838|  1.34k|            while(*nextSeparator == ' ') {
  ------------------
  |  Branch (838:19): [True: 0, False: 1.34k]
  ------------------
  839|      0|              nextSeparator++;
  840|      0|            }
  841|  1.34k|            keyValueTail = (startSearchHere)? startSearchHere: nextSeparator + uprv_strlen(nextSeparator);
  ------------------
  |  |   37|    939|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    939|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (841:28): [True: 403, False: 939]
  ------------------
  842|  1.34k|            while(keyValueTail > nextSeparator && *(keyValueTail-1) == ' ') {
  ------------------
  |  Branch (842:19): [True: 1.34k, False: 0]
  |  Branch (842:51): [True: 0, False: 1.34k]
  ------------------
  843|      0|              keyValueTail--;
  844|      0|            }
  845|       |            /* Now copy the value, but check well-formedness */
  846|  1.34k|            if (nextSeparator == keyValueTail) {
  ------------------
  |  Branch (846:17): [True: 0, False: 1.34k]
  ------------------
  847|      0|              status = U_ILLEGAL_ARGUMENT_ERROR; /* empty key value name in passed-in locale */
  848|      0|              return;
  849|      0|            }
  850|  47.2k|            while (nextSeparator < keyValueTail) {
  ------------------
  |  Branch (850:20): [True: 45.9k, False: 1.32k]
  ------------------
  851|  45.9k|              if (!UPRV_ISALPHANUM(*nextSeparator) && !UPRV_OK_VALUE_PUNCTUATION(*nextSeparator)) {
  ------------------
  |  Branch (851:19): [True: 9.21k, False: 36.7k]
  |  Branch (851:55): [True: 20, False: 9.19k]
  ------------------
  852|     20|                status = U_ILLEGAL_ARGUMENT_ERROR; /* malformed key value */
  853|     20|                return;
  854|     20|              }
  855|       |              /* Should we lowercase value to return here? Tests expect as-is. */
  856|  45.9k|              sink.Append(nextSeparator++, 1);
  857|  45.9k|            }
  858|  1.32k|            return;
  859|  1.34k|        }
  860|  36.9k|    }
  861|  19.5k|}
_Z26ulocimp_setKeywordValue_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEES3_S3_RN6icu_788ByteSinkER10UErrorCode:
  939|  2.06k|{
  940|  2.06k|    if (U_FAILURE(status)) { return 0; }
  ------------------
  |  Branch (940:9): [True: 0, False: 2.06k]
  ------------------
  941|       |
  942|       |    /* TODO: sorting. removal. */
  943|  2.06k|    int32_t needLen = 0;
  944|  2.06k|    int32_t rc;
  945|  2.06k|    CharString updatedKeysAndValues;
  946|  2.06k|    bool handledInputKeyAndValue = false;
  947|  2.06k|    char keyValuePrefix = '@';
  948|       |
  949|  2.06k|    if (status == U_STRING_NOT_TERMINATED_WARNING) {
  ------------------
  |  Branch (949:9): [True: 0, False: 2.06k]
  ------------------
  950|      0|        status = U_ZERO_ERROR;
  951|      0|    }
  952|  2.06k|    if (keywordName.empty()) {
  ------------------
  |  Branch (952:9): [True: 0, False: 2.06k]
  ------------------
  953|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  954|      0|        return 0;
  955|      0|    }
  956|  2.06k|    CharString canonKeywordName = locale_canonKeywordName(keywordName, status);
  957|  2.06k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (957:9): [True: 0, False: 2.06k]
  ------------------
  958|      0|        return 0;
  959|      0|    }
  960|       |
  961|  2.06k|    CharString canonKeywordValue;
  962|  13.6k|    for (char c : keywordValue) {
  ------------------
  |  Branch (962:17): [True: 13.6k, False: 2.06k]
  ------------------
  963|  13.6k|        if (!UPRV_ISALPHANUM(c) && !UPRV_OK_VALUE_PUNCTUATION(c)) {
  ------------------
  |  Branch (963:13): [True: 632, False: 13.0k]
  |  Branch (963:36): [True: 0, False: 632]
  ------------------
  964|      0|            status = U_ILLEGAL_ARGUMENT_ERROR; /* malformed key value */
  965|      0|            return 0;
  966|      0|        }
  967|       |        /* Should we force lowercase in value to set? */
  968|  13.6k|        canonKeywordValue.append(c, status);
  969|  13.6k|    }
  970|  2.06k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (970:9): [True: 0, False: 2.06k]
  ------------------
  971|      0|        return 0;
  972|      0|    }
  973|       |
  974|  2.06k|    if (keywords.size() <= 1) {
  ------------------
  |  Branch (974:9): [True: 1.55k, False: 509]
  ------------------
  975|  1.55k|        if (canonKeywordValue.isEmpty()) { /* no keywords = nothing to remove */
  ------------------
  |  Branch (975:13): [True: 0, False: 1.55k]
  ------------------
  976|      0|            U_ASSERT(status != U_STRING_NOT_TERMINATED_WARNING);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
  977|      0|            return 0;
  978|      0|        }
  979|       |
  980|  1.55k|        needLen = 1 + canonKeywordName.length() + 1 + canonKeywordValue.length();
  981|  1.55k|        int32_t capacity = 0;
  982|  1.55k|        char* buffer = sink.GetAppendBuffer(
  983|  1.55k|                needLen, needLen, nullptr, needLen, &capacity);
  984|  1.55k|        if (capacity < needLen || buffer == nullptr) {
  ------------------
  |  Branch (984:13): [True: 0, False: 1.55k]
  |  Branch (984:35): [True: 6, False: 1.54k]
  ------------------
  985|      6|            status = U_BUFFER_OVERFLOW_ERROR;
  986|      6|            return needLen; /* no change */
  987|      6|        }
  988|  1.54k|        char* it = buffer;
  989|       |
  990|  1.54k|        *it++ = '@';
  991|  1.54k|        uprv_memcpy(it, canonKeywordName.data(), canonKeywordName.length());
  ------------------
  |  |   42|  1.54k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  1.54k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  1.54k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  1.54k|    _Pragma("clang diagnostic push") \
  |  |   45|  1.54k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  1.54k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.54k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  1.54k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.54k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  1.54k|    _Pragma("clang diagnostic pop") \
  |  |   49|  1.54k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  1.54k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  1.54k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  1.54k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  992|  1.54k|        it += canonKeywordName.length();
  993|  1.54k|        *it++ = '=';
  994|  1.54k|        uprv_memcpy(it, canonKeywordValue.data(), canonKeywordValue.length());
  ------------------
  |  |   42|  1.54k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  1.54k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  1.54k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  1.54k|    _Pragma("clang diagnostic push") \
  |  |   45|  1.54k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  1.54k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.54k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  1.54k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.54k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  1.54k|    _Pragma("clang diagnostic pop") \
  |  |   49|  1.54k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  1.54k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  1.54k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  1.54k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  995|  1.54k|        sink.Append(buffer, needLen);
  996|  1.54k|        U_ASSERT(status != U_STRING_NOT_TERMINATED_WARNING);
  ------------------
  |  |   35|  1.54k|#   define U_ASSERT(exp) (void)0
  ------------------
  997|  1.54k|        return needLen;
  998|  1.55k|    } /* end shortcut - no @ */
  999|       |
 1000|       |    /* search for keyword */
 1001|  2.68k|    for (size_t keywordStart = 0; keywordStart != std::string_view::npos;) {
  ------------------
  |  Branch (1001:35): [True: 2.17k, False: 509]
  ------------------
 1002|  2.17k|        keywordStart++; /* skip @ or ; */
 1003|  2.17k|        size_t nextEqualsign = keywords.find('=', keywordStart);
 1004|  2.17k|        if (nextEqualsign == std::string_view::npos) {
  ------------------
  |  Branch (1004:13): [True: 0, False: 2.17k]
  ------------------
 1005|      0|            status = U_ILLEGAL_ARGUMENT_ERROR; /* key must have =value */
 1006|      0|            return 0;
 1007|      0|        }
 1008|       |        /* strip leading & trailing spaces (TC decided to tolerate these) */
 1009|  2.17k|        while (keywordStart < keywords.size() && keywords[keywordStart] == ' ') {
  ------------------
  |  Branch (1009:16): [True: 2.17k, False: 0]
  |  Branch (1009:50): [True: 0, False: 2.17k]
  ------------------
 1010|      0|            keywordStart++;
 1011|      0|        }
 1012|  2.17k|        size_t keyValueTail = nextEqualsign;
 1013|  2.17k|        while (keyValueTail > keywordStart && keywords[keyValueTail - 1] == ' ') {
  ------------------
  |  Branch (1013:16): [True: 2.17k, False: 0]
  |  Branch (1013:47): [True: 0, False: 2.17k]
  ------------------
 1014|      0|            keyValueTail--;
 1015|      0|        }
 1016|       |        /* now keyValueTail points to first char after the keyName */
 1017|       |        /* copy & normalize keyName from locale */
 1018|  2.17k|        if (keywordStart == keyValueTail) {
  ------------------
  |  Branch (1018:13): [True: 0, False: 2.17k]
  ------------------
 1019|      0|            status = U_ILLEGAL_ARGUMENT_ERROR; /* empty keyword name in passed-in locale */
 1020|      0|            return 0;
 1021|      0|        }
 1022|  2.17k|        CharString localeKeywordName;
 1023|  13.7k|        while (keywordStart < keyValueTail) {
  ------------------
  |  Branch (1023:16): [True: 11.5k, False: 2.17k]
  ------------------
 1024|  11.5k|            if (!UPRV_ISALPHANUM(keywords[keywordStart])) {
  ------------------
  |  Branch (1024:17): [True: 0, False: 11.5k]
  ------------------
 1025|      0|                status = U_ILLEGAL_ARGUMENT_ERROR; /* malformed keyword name */
 1026|      0|                return 0;
 1027|      0|            }
 1028|  11.5k|            localeKeywordName.append(uprv_tolower(keywords[keywordStart++]), status);
  ------------------
  |  |   68|  11.5k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  11.5k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  11.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  11.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  11.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1029|  11.5k|        }
 1030|  2.17k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (1030:13): [True: 0, False: 2.17k]
  ------------------
 1031|      0|            return 0;
 1032|      0|        }
 1033|       |
 1034|  2.17k|        size_t nextSeparator = keywords.find(';', nextEqualsign);
 1035|       |
 1036|       |        /* start processing the value part */
 1037|  2.17k|        nextEqualsign++; /* skip '=' */
 1038|       |        /* First strip leading & trailing spaces (TC decided to tolerate these) */
 1039|  2.17k|        while (nextEqualsign < keywords.size() && keywords[nextEqualsign] == ' ') {
  ------------------
  |  Branch (1039:16): [True: 2.17k, False: 0]
  |  Branch (1039:51): [True: 0, False: 2.17k]
  ------------------
 1040|      0|            nextEqualsign++;
 1041|      0|        }
 1042|  2.17k|        keyValueTail = nextSeparator == std::string_view::npos ? keywords.size() : nextSeparator;
  ------------------
  |  Branch (1042:24): [True: 509, False: 1.66k]
  ------------------
 1043|  2.17k|        while (keyValueTail > nextEqualsign && keywords[keyValueTail - 1] == ' ') {
  ------------------
  |  Branch (1043:16): [True: 2.17k, False: 0]
  |  Branch (1043:48): [True: 0, False: 2.17k]
  ------------------
 1044|      0|            keyValueTail--;
 1045|      0|        }
 1046|  2.17k|        if (nextEqualsign == keyValueTail) {
  ------------------
  |  Branch (1046:13): [True: 0, False: 2.17k]
  ------------------
 1047|      0|            status = U_ILLEGAL_ARGUMENT_ERROR; /* empty key value in passed-in locale */
 1048|      0|            return 0;
 1049|      0|        }
 1050|       |
 1051|  2.17k|        rc = uprv_strcmp(canonKeywordName.data(), localeKeywordName.data());
  ------------------
  |  |   38|  2.17k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  2.17k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1052|  2.17k|        if(rc == 0) {
  ------------------
  |  Branch (1052:12): [True: 362, False: 1.81k]
  ------------------
 1053|       |            /* Current entry matches the input keyword. Update the entry */
 1054|    362|            if (!canonKeywordValue.isEmpty()) { /* updating a value */
  ------------------
  |  Branch (1054:17): [True: 358, False: 4]
  ------------------
 1055|    358|                updatedKeysAndValues.append(keyValuePrefix, status);
 1056|    358|                keyValuePrefix = ';'; /* for any subsequent key-value pair */
 1057|    358|                updatedKeysAndValues.append(canonKeywordName, status);
 1058|    358|                updatedKeysAndValues.append('=', status);
 1059|    358|                updatedKeysAndValues.append(canonKeywordValue, status);
 1060|    358|            } /* else removing this entry, don't emit anything */
 1061|    362|            handledInputKeyAndValue = true;
 1062|  1.81k|        } else {
 1063|       |           /* input keyword sorts earlier than current entry, add before current entry */
 1064|  1.81k|            if (rc < 0 && !canonKeywordValue.isEmpty() && !handledInputKeyAndValue) {
  ------------------
  |  Branch (1064:17): [True: 844, False: 970]
  |  Branch (1064:27): [True: 844, False: 0]
  |  Branch (1064:59): [True: 122, False: 722]
  ------------------
 1065|       |                /* insert new entry at this location */
 1066|    122|                updatedKeysAndValues.append(keyValuePrefix, status);
 1067|    122|                keyValuePrefix = ';'; /* for any subsequent key-value pair */
 1068|    122|                updatedKeysAndValues.append(canonKeywordName, status);
 1069|    122|                updatedKeysAndValues.append('=', status);
 1070|    122|                updatedKeysAndValues.append(canonKeywordValue, status);
 1071|    122|                handledInputKeyAndValue = true;
 1072|    122|            }
 1073|       |            /* copy the current entry */
 1074|  1.81k|            updatedKeysAndValues.append(keyValuePrefix, status);
 1075|  1.81k|            keyValuePrefix = ';'; /* for any subsequent key-value pair */
 1076|  1.81k|            updatedKeysAndValues.append(localeKeywordName, status);
 1077|  1.81k|            updatedKeysAndValues.append('=', status);
 1078|  1.81k|            updatedKeysAndValues.append(keywords.data() + nextEqualsign,
 1079|  1.81k|                                        static_cast<int32_t>(keyValueTail - nextEqualsign), status);
 1080|  1.81k|        }
 1081|  2.17k|        if (nextSeparator == std::string_view::npos && !canonKeywordValue.isEmpty() && !handledInputKeyAndValue) {
  ------------------
  |  Branch (1081:13): [True: 509, False: 1.66k]
  |  Branch (1081:56): [True: 505, False: 4]
  |  Branch (1081:88): [True: 25, False: 480]
  ------------------
 1082|       |            /* append new entry at the end, it sorts later than existing entries */
 1083|     25|            updatedKeysAndValues.append(keyValuePrefix, status);
 1084|       |            /* skip keyValuePrefix update, no subsequent key-value pair */
 1085|     25|            updatedKeysAndValues.append(canonKeywordName, status);
 1086|     25|            updatedKeysAndValues.append('=', status);
 1087|     25|            updatedKeysAndValues.append(canonKeywordValue, status);
 1088|     25|            handledInputKeyAndValue = true;
 1089|     25|        }
 1090|  2.17k|        keywordStart = nextSeparator;
 1091|  2.17k|    } /* end loop searching */
 1092|       |
 1093|       |    /* Any error from updatedKeysAndValues.append above would be internal and not due to
 1094|       |     * problems with the passed-in locale. So if we did encounter problems with the
 1095|       |     * passed-in locale above, those errors took precedence and overrode any error
 1096|       |     * status from updatedKeysAndValues.append, and also caused a return of 0. If there
 1097|       |     * are errors here they are from updatedKeysAndValues.append; they do cause an
 1098|       |     * error return but the passed-in locale is unmodified and the original bufLen is
 1099|       |     * returned.
 1100|       |     */
 1101|    509|    if (!handledInputKeyAndValue || U_FAILURE(status)) {
  ------------------
  |  Branch (1101:9): [True: 0, False: 509]
  |  Branch (1101:37): [True: 0, False: 509]
  ------------------
 1102|       |        /* if input key/value specified removal of a keyword not present in locale, or
 1103|       |         * there was an error in CharString.append, leave original locale alone. */
 1104|      0|        U_ASSERT(status != U_STRING_NOT_TERMINATED_WARNING);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1105|       |        // The sink is expected to be a buffer which already contains the full
 1106|       |        // locale string, so when it isn't going to be modified there's no need
 1107|       |        // to actually write any data to it, as the data is already there. Only
 1108|       |        // the first character needs to be overwritten (changing '\0' to '@').
 1109|      0|        needLen = static_cast<int32_t>(keywords.size());
 1110|      0|        int32_t capacity = 0;
 1111|      0|        char* buffer = sink.GetAppendBuffer(
 1112|      0|                needLen, needLen, nullptr, needLen, &capacity);
 1113|      0|        if (capacity < needLen || buffer == nullptr) {
  ------------------
  |  Branch (1113:13): [True: 0, False: 0]
  |  Branch (1113:35): [True: 0, False: 0]
  ------------------
 1114|      0|            status = U_BUFFER_OVERFLOW_ERROR;
 1115|      0|        } else {
 1116|      0|            *buffer = '@';
 1117|      0|            sink.Append(buffer, needLen);
 1118|      0|        }
 1119|      0|        return needLen;
 1120|      0|    }
 1121|       |
 1122|    509|    needLen = updatedKeysAndValues.length();
 1123|       |    // Check to see can we fit the updatedKeysAndValues, if not, return
 1124|       |    // U_BUFFER_OVERFLOW_ERROR without copy updatedKeysAndValues into it.
 1125|       |    // We do this because this API function does not behave like most others:
 1126|       |    // It promises never to set a U_STRING_NOT_TERMINATED_WARNING.
 1127|       |    // When the contents fits but without the terminating NUL, in this case we need to not change
 1128|       |    // the buffer contents and return with a buffer overflow error.
 1129|    509|    if (needLen > 0) {
  ------------------
  |  Branch (1129:9): [True: 505, False: 4]
  ------------------
 1130|    505|        int32_t capacity = 0;
 1131|    505|        char* buffer = sink.GetAppendBuffer(
 1132|    505|                needLen, needLen, nullptr, needLen, &capacity);
 1133|    505|        if (capacity < needLen || buffer == nullptr) {
  ------------------
  |  Branch (1133:13): [True: 0, False: 505]
  |  Branch (1133:35): [True: 46, False: 459]
  ------------------
 1134|     46|            status = U_BUFFER_OVERFLOW_ERROR;
 1135|     46|            return needLen;
 1136|     46|        }
 1137|    505|        uprv_memcpy(buffer, updatedKeysAndValues.data(), needLen);
  ------------------
  |  |   42|    459|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    459|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    459|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    459|    _Pragma("clang diagnostic push") \
  |  |   45|    459|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    459|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    459|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    459|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    459|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    459|    _Pragma("clang diagnostic pop") \
  |  |   49|    459|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    459|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    505|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    505|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1138|    459|        sink.Append(buffer, needLen);
 1139|    459|    }
 1140|    463|    U_ASSERT(status != U_STRING_NOT_TERMINATED_WARNING);
  ------------------
  |  |   35|    463|#   define U_ASSERT(exp) (void)0
  ------------------
 1141|    463|    return needLen;
 1142|    509|}
_Z21ulocimp_getSubtags_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEEPN6icu_7810CharStringES6_S6_S6_PPKcR10UErrorCode:
 1514|  34.4k|        UErrorCode& status) {
 1515|  34.4k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1515:9): [True: 0, False: 34.4k]
  ------------------
 1516|       |
 1517|  34.4k|    std::optional<CharStringByteSink> languageSink;
 1518|  34.4k|    std::optional<CharStringByteSink> scriptSink;
 1519|  34.4k|    std::optional<CharStringByteSink> regionSink;
 1520|  34.4k|    std::optional<CharStringByteSink> variantSink;
 1521|       |
 1522|  34.4k|    if (language != nullptr) { languageSink.emplace(language); }
  ------------------
  |  Branch (1522:9): [True: 34.4k, False: 0]
  ------------------
 1523|  34.4k|    if (script != nullptr) { scriptSink.emplace(script); }
  ------------------
  |  Branch (1523:9): [True: 34.4k, False: 0]
  ------------------
 1524|  34.4k|    if (region != nullptr) { regionSink.emplace(region); }
  ------------------
  |  Branch (1524:9): [True: 32.5k, False: 1.83k]
  ------------------
 1525|  34.4k|    if (variant != nullptr) { variantSink.emplace(variant); }
  ------------------
  |  Branch (1525:9): [True: 24.7k, False: 9.60k]
  ------------------
 1526|       |
 1527|  34.4k|    ulocimp_getSubtags(
  ------------------
  |  | 1209|  34.4k|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|  34.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  34.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  34.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1528|  34.4k|            localeID,
 1529|  34.4k|            languageSink.has_value() ? &*languageSink : nullptr,
  ------------------
  |  Branch (1529:13): [True: 34.4k, False: 0]
  ------------------
 1530|  34.4k|            scriptSink.has_value() ? &*scriptSink : nullptr,
  ------------------
  |  Branch (1530:13): [True: 34.4k, False: 0]
  ------------------
 1531|  34.4k|            regionSink.has_value() ? &*regionSink : nullptr,
  ------------------
  |  Branch (1531:13): [True: 32.5k, False: 1.83k]
  ------------------
 1532|  34.4k|            variantSink.has_value() ? &*variantSink : nullptr,
  ------------------
  |  Branch (1532:13): [True: 24.7k, False: 9.60k]
  ------------------
 1533|  34.4k|            pEnd,
 1534|  34.4k|            status);
 1535|  34.4k|}
_Z21ulocimp_getSubtags_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEEPN6icu_788ByteSinkES6_S6_S6_PPKcR10UErrorCode:
 1545|  47.2k|        UErrorCode& status) {
 1546|  47.2k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1546:9): [True: 0, False: 47.2k]
  ------------------
 1547|       |
 1548|  47.2k|    if (pEnd != nullptr) {
  ------------------
  |  Branch (1548:9): [True: 24.7k, False: 22.4k]
  ------------------
 1549|  24.7k|        *pEnd = localeID.data();
 1550|  24.7k|    } else if (language == nullptr &&
  ------------------
  |  Branch (1550:16): [True: 12.8k, False: 9.60k]
  ------------------
 1551|  22.4k|               script == nullptr &&
  ------------------
  |  Branch (1551:16): [True: 12.8k, False: 0]
  ------------------
 1552|  22.4k|               region == nullptr &&
  ------------------
  |  Branch (1552:16): [True: 12.8k, False: 0]
  ------------------
 1553|  22.4k|               variant == nullptr) {
  ------------------
  |  Branch (1553:16): [True: 0, False: 12.8k]
  ------------------
 1554|      0|        return;
 1555|      0|    }
 1556|       |
 1557|  47.2k|    if (localeID.empty()) { return; }
  ------------------
  |  Branch (1557:9): [True: 1.37k, False: 45.9k]
  ------------------
 1558|       |
 1559|  45.9k|    bool hasRegion = false;
 1560|       |
 1561|  45.9k|    {
 1562|  45.9k|        size_t len = _getLanguage(localeID, language, status);
 1563|  45.9k|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1563:13): [True: 1.39k, False: 44.5k]
  ------------------
 1564|  44.5k|        if (len > 0) {
  ------------------
  |  Branch (1564:13): [True: 39.5k, False: 4.99k]
  ------------------
 1565|  39.5k|            localeID.remove_prefix(len);
 1566|  39.5k|        }
 1567|  44.5k|    }
 1568|       |
 1569|  44.5k|    if (pEnd != nullptr) {
  ------------------
  |  Branch (1569:9): [True: 22.0k, False: 22.4k]
  ------------------
 1570|  22.0k|        *pEnd = localeID.data();
 1571|  22.4k|    } else if (script == nullptr &&
  ------------------
  |  Branch (1571:16): [True: 12.8k, False: 9.60k]
  ------------------
 1572|  22.4k|               region == nullptr &&
  ------------------
  |  Branch (1572:16): [True: 12.8k, False: 0]
  ------------------
 1573|  22.4k|               variant == nullptr) {
  ------------------
  |  Branch (1573:16): [True: 0, False: 12.8k]
  ------------------
 1574|      0|        return;
 1575|      0|    }
 1576|       |
 1577|  44.5k|    if (localeID.empty()) { return; }
  ------------------
  |  Branch (1577:9): [True: 20.4k, False: 24.0k]
  ------------------
 1578|       |
 1579|  24.0k|    if (_isIDSeparator(localeID.front())) {
  ------------------
  |  Branch (1579:9): [True: 21.1k, False: 2.88k]
  ------------------
 1580|  21.1k|        std::string_view sub = localeID;
 1581|  21.1k|        sub.remove_prefix(1);
 1582|  21.1k|        size_t len = _getScript(sub, script);
 1583|  21.1k|        if (len > 0) {
  ------------------
  |  Branch (1583:13): [True: 5.38k, False: 15.7k]
  ------------------
 1584|  5.38k|            localeID.remove_prefix(len + 1);
 1585|  5.38k|            if (pEnd != nullptr) { *pEnd = localeID.data(); }
  ------------------
  |  Branch (1585:17): [True: 877, False: 4.50k]
  ------------------
 1586|  5.38k|        }
 1587|  21.1k|    }
 1588|       |
 1589|  24.0k|    if ((region == nullptr && variant == nullptr && pEnd == nullptr) || localeID.empty()) { return; }
  ------------------
  |  Branch (1589:10): [True: 11.0k, False: 12.9k]
  |  Branch (1589:31): [True: 1.83k, False: 9.22k]
  |  Branch (1589:53): [True: 1.83k, False: 0]
  |  Branch (1589:73): [True: 4.30k, False: 17.9k]
  ------------------
 1590|       |
 1591|  17.9k|    if (_isIDSeparator(localeID.front())) {
  ------------------
  |  Branch (1591:9): [True: 14.9k, False: 2.92k]
  ------------------
 1592|  14.9k|        std::string_view sub = localeID;
 1593|  14.9k|        sub.remove_prefix(1);
 1594|  14.9k|        size_t len = _getRegion(sub, region);
 1595|  14.9k|        if (len > 0) {
  ------------------
  |  Branch (1595:13): [True: 9.09k, False: 5.89k]
  ------------------
 1596|  9.09k|            hasRegion = true;
 1597|  9.09k|            localeID.remove_prefix(len + 1);
 1598|  9.09k|            if (pEnd != nullptr) { *pEnd = localeID.data(); }
  ------------------
  |  Branch (1598:17): [True: 3.75k, False: 5.34k]
  ------------------
 1599|  9.09k|        }
 1600|  14.9k|    }
 1601|       |
 1602|  17.9k|    if ((variant == nullptr && pEnd == nullptr) || localeID.empty()) { return; }
  ------------------
  |  Branch (1602:10): [True: 2.15k, False: 15.7k]
  |  Branch (1602:32): [True: 2.15k, False: 0]
  |  Branch (1602:52): [True: 4.77k, False: 10.9k]
  ------------------
 1603|       |
 1604|  10.9k|    bool hasVariant = false;
 1605|       |
 1606|  10.9k|    if (_isIDSeparator(localeID.front()) && !_isBCP47Extension(localeID)) {
  ------------------
  |  Branch (1606:9): [True: 7.91k, False: 3.06k]
  |  Branch (1606:45): [True: 7.80k, False: 112]
  ------------------
 1607|  7.80k|        std::string_view sub = localeID;
 1608|       |        /* If there was no country ID, skip a possible extra IDSeparator */
 1609|  7.80k|        size_t skip = !hasRegion && localeID.size() > 1 && _isIDSeparator(localeID[1]) ? 2 : 1;
  ------------------
  |  Branch (1609:23): [True: 5.79k, False: 2.00k]
  |  Branch (1609:37): [True: 5.73k, False: 59]
  |  Branch (1609:60): [True: 5.12k, False: 611]
  ------------------
 1610|  7.80k|        sub.remove_prefix(skip);
 1611|  7.80k|        size_t len = _getVariant(sub, localeID[0], variant, false, status);
 1612|  7.80k|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1612:13): [True: 28, False: 7.77k]
  ------------------
 1613|  7.77k|        if (len > 0) {
  ------------------
  |  Branch (1613:13): [True: 7.69k, False: 82]
  ------------------
 1614|  7.69k|            hasVariant = true;
 1615|  7.69k|            localeID.remove_prefix(skip + len);
 1616|  7.69k|            if (pEnd != nullptr) { *pEnd = localeID.data(); }
  ------------------
  |  Branch (1616:17): [True: 2.58k, False: 5.10k]
  ------------------
 1617|  7.69k|        }
 1618|  7.77k|    }
 1619|       |
 1620|  10.9k|    if ((variant == nullptr && pEnd == nullptr) || localeID.empty()) { return; }
  ------------------
  |  Branch (1620:10): [True: 0, False: 10.9k]
  |  Branch (1620:32): [True: 0, False: 0]
  |  Branch (1620:52): [True: 6.43k, False: 4.52k]
  ------------------
 1621|       |
 1622|  4.52k|    if (_isBCP47Extension(localeID)) {
  ------------------
  |  Branch (1622:9): [True: 264, False: 4.25k]
  ------------------
 1623|    264|        localeID.remove_prefix(2);
 1624|    264|        constexpr char vaposix[] = "-va-posix";
 1625|    264|        constexpr size_t length = sizeof vaposix - 1;
 1626|  12.9k|        for (size_t next;; localeID.remove_prefix(next)) {
 1627|  12.9k|            next = localeID.find('-', 1);
 1628|  12.9k|            if (next == std::string_view::npos) { break; }
  ------------------
  |  Branch (1628:17): [True: 179, False: 12.7k]
  ------------------
 1629|  12.7k|            next = localeID.find('-', next + 1);
 1630|  12.7k|            bool finished = next == std::string_view::npos;
 1631|  12.7k|            std::string_view sub = localeID;
 1632|  12.7k|            if (!finished) { sub.remove_suffix(sub.length() - next); }
  ------------------
  |  Branch (1632:17): [True: 12.6k, False: 85]
  ------------------
 1633|       |
 1634|  12.7k|            if (sub.length() == length && uprv_strnicmp(sub.data(), vaposix, length) == 0) {
  ------------------
  |  | 1544|  6.14k|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  123|  6.14k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.14k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.14k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1634:17): [True: 6.14k, False: 6.62k]
  |  Branch (1634:43): [True: 4.80k, False: 1.34k]
  ------------------
 1635|  4.80k|                if (variant != nullptr) {
  ------------------
  |  Branch (1635:21): [True: 4.80k, False: 0]
  ------------------
 1636|  4.80k|                    if (hasVariant) { variant->Append("_", 1); }
  ------------------
  |  Branch (1636:25): [True: 4.60k, False: 198]
  ------------------
 1637|  4.80k|                    constexpr char posix[] = "POSIX";
 1638|  4.80k|                    variant->Append(posix, sizeof posix - 1);
 1639|  4.80k|                }
 1640|  4.80k|                if (pEnd != nullptr) { *pEnd = localeID.data() + length; }
  ------------------
  |  Branch (1640:21): [True: 4.80k, False: 0]
  ------------------
 1641|  4.80k|            }
 1642|       |
 1643|  12.7k|            if (finished) { break; }
  ------------------
  |  Branch (1643:17): [True: 85, False: 12.6k]
  ------------------
 1644|  12.7k|        }
 1645|    264|    }
 1646|  4.52k|}
_Z18ulocimp_getName_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEERN6icu_788ByteSinkER10UErrorCode:
 2171|  18.0k|{
 2172|  18.0k|    _canonicalize(localeID, sink, 0, err);
 2173|  18.0k|}
_Z22ulocimp_getBaseName_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEER10UErrorCode:
 2195|  5.88k|{
 2196|  5.88k|    return ByteSinkUtil::viaByteSinkToCharString(
 2197|  5.88k|        [&](ByteSink& sink, UErrorCode& status) {
 2198|  5.88k|            ulocimp_getBaseName(localeID, sink, status);
 2199|  5.88k|        },
 2200|  5.88k|        err);
 2201|  5.88k|}
_Z22ulocimp_getBaseName_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEERN6icu_788ByteSinkER10UErrorCode:
 2207|  5.88k|{
 2208|  5.88k|    _canonicalize(localeID, sink, _ULOC_STRIP_KEYWORDS, err);
  ------------------
  |  | 1785|  5.88k|#define _ULOC_STRIP_KEYWORDS 0x2
  ------------------
 2209|  5.88k|}
_Z23ulocimp_canonicalize_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEER10UErrorCode:
 2231|      1|{
 2232|      1|    return ByteSinkUtil::viaByteSinkToCharString(
 2233|      1|        [&](ByteSink& sink, UErrorCode& status) {
 2234|      1|            ulocimp_canonicalize(localeID, sink, status);
 2235|      1|        },
 2236|      1|        err);
 2237|      1|}
_Z23ulocimp_canonicalize_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEERN6icu_788ByteSinkER10UErrorCode:
 2243|    886|{
 2244|    886|    _canonicalize(localeID, sink, _ULOC_CANONICALIZE, err);
  ------------------
  |  | 1786|    886|#define _ULOC_CANONICALIZE   0x1
  ------------------
 2245|    886|}
uloc_getDefault_78:
 2336|  6.74k|{
 2337|  6.74k|    return locale_get_default();
  ------------------
  |  |  139|  6.74k|#define locale_get_default U_ICU_ENTRY_POINT_RENAME(locale_get_default)
  |  |  ------------------
  |  |  |  |  123|  6.74k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.74k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.74k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2338|  6.74k|}
_Z34ulocimp_toLegacyKeyWithFallback_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEE:
 2456|  22.4k|{
 2457|  22.4k|    std::optional<std::string_view> legacyKey = ulocimp_toLegacyKey(keyword);
  ------------------
  |  | 1219|  22.4k|#define ulocimp_toLegacyKey U_ICU_ENTRY_POINT_RENAME(ulocimp_toLegacyKey)
  |  |  ------------------
  |  |  |  |  123|  22.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  22.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  22.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2458|  22.4k|    if (!legacyKey.has_value() && isWellFormedLegacyKey(keyword)) {
  ------------------
  |  Branch (2458:9): [True: 14.4k, False: 8.03k]
  |  Branch (2458:35): [True: 14.4k, False: 0]
  ------------------
 2459|       |        // Checks if the specified locale key is well-formed with the legacy locale syntax.
 2460|       |        //
 2461|       |        // Note:
 2462|       |        //  LDML/CLDR provides some definition of keyword syntax in
 2463|       |        //  * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier and
 2464|       |        //  * http://www.unicode.org/reports/tr35/#Old_Locale_Extension_Syntax
 2465|       |        //  Keys can only consist of [0-9a-zA-Z].
 2466|  14.4k|        return keyword;
 2467|  14.4k|    }
 2468|  8.03k|    return legacyKey;
 2469|  22.4k|}
_Z35ulocimp_toLegacyTypeWithFallback_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEES3_:
 2482|  5.93k|{
 2483|  5.93k|    std::optional<std::string_view> legacyType = ulocimp_toLegacyType(keyword, value);
  ------------------
  |  | 1221|  5.93k|#define ulocimp_toLegacyType U_ICU_ENTRY_POINT_RENAME(ulocimp_toLegacyType)
  |  |  ------------------
  |  |  |  |  123|  5.93k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.93k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.93k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2484|  5.93k|    if (!legacyType.has_value() && isWellFormedLegacyType(value)) {
  ------------------
  |  Branch (2484:9): [True: 4.79k, False: 1.13k]
  |  Branch (2484:36): [True: 4.79k, False: 0]
  ------------------
 2485|       |        // Checks if the specified locale type is well-formed with the legacy locale syntax.
 2486|       |        //
 2487|       |        // Note:
 2488|       |        //  LDML/CLDR provides some definition of keyword syntax in
 2489|       |        //  * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier and
 2490|       |        //  * http://www.unicode.org/reports/tr35/#Old_Locale_Extension_Syntax
 2491|       |        //  Values (types) can only consist of [0-9a-zA-Z], plus for legacy values
 2492|       |        //  we allow [/_-+] in the middle (e.g. "Etc/GMT+1", "Asia/Tel_Aviv")
 2493|  4.79k|        return value;
 2494|  4.79k|    }
 2495|  1.13k|    return legacyType;
 2496|  5.93k|}
uloc.cpp:_ZN12_GLOBAL__N_121compareKeywordStructsEPKvS1_S1_:
  583|  40.8k|compareKeywordStructs(const void * /*context*/, const void *left, const void *right) {
  584|  40.8k|    const char* leftString = static_cast<const KeywordStruct*>(left)->keyword;
  585|  40.8k|    const char* rightString = static_cast<const KeywordStruct*>(right)->keyword;
  586|  40.8k|    return uprv_strcmp(leftString, rightString);
  ------------------
  |  |   38|  40.8k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  40.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  587|  40.8k|}
uloc.cpp:_ZN12_GLOBAL__N_123locale_canonKeywordNameENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEER10UErrorCode:
  556|  21.5k|{
  557|  21.5k|  if (U_FAILURE(status)) { return {}; }
  ------------------
  |  Branch (557:7): [True: 0, False: 21.5k]
  ------------------
  558|  21.5k|  CharString result;
  559|       |
  560|   245k|  for (char c : keywordName) {
  ------------------
  |  Branch (560:15): [True: 245k, False: 21.5k]
  ------------------
  561|   245k|    if (!UPRV_ISALPHANUM(c)) {
  ------------------
  |  Branch (561:9): [True: 0, False: 245k]
  ------------------
  562|      0|      status = U_ILLEGAL_ARGUMENT_ERROR; /* malformed keyword name */
  563|      0|      return {};
  564|      0|    }
  565|   245k|    result.append(uprv_tolower(c), status);
  ------------------
  |  |   68|   245k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|   245k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|   245k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|   245k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|   245k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  566|   245k|  }
  567|  21.5k|  if (result.isEmpty()) {
  ------------------
  |  Branch (567:7): [True: 0, False: 21.5k]
  ------------------
  568|      0|    status = U_ILLEGAL_ARGUMENT_ERROR; /* empty keyword name */
  569|      0|    return {};
  570|      0|  }
  571|       |
  572|  21.5k|  return result;
  573|  21.5k|}
uloc.cpp:_ZN12_GLOBAL__N_118_hasBCP47ExtensionENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  510|  44.2k|inline bool _hasBCP47Extension(std::string_view id) {
  511|  44.2k|    return id.find('@') == std::string_view::npos && getShortestSubtagLength(id) == 1;
  ------------------
  |  Branch (511:12): [True: 23.3k, False: 20.9k]
  |  Branch (511:54): [True: 4.87k, False: 18.4k]
  ------------------
  512|  44.2k|}
uloc.cpp:_ZN12_GLOBAL__N_123getShortestSubtagLengthENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  485|  23.3k|int32_t getShortestSubtagLength(std::string_view localeID) {
  486|  23.3k|    int32_t localeIDLength = static_cast<int32_t>(localeID.length());
  487|  23.3k|    int32_t length = localeIDLength;
  488|  23.3k|    int32_t tmpLength = 0;
  489|  23.3k|    int32_t i;
  490|  23.3k|    bool reset = true;
  491|       |
  492|  1.06M|    for (i = 0; i < localeIDLength; i++) {
  ------------------
  |  Branch (492:17): [True: 1.04M, False: 23.3k]
  ------------------
  493|  1.04M|        if (localeID[i] != '_' && localeID[i] != '-') {
  ------------------
  |  Branch (493:13): [True: 976k, False: 65.8k]
  |  Branch (493:35): [True: 884k, False: 92.1k]
  ------------------
  494|   884k|            if (reset) {
  ------------------
  |  Branch (494:17): [True: 154k, False: 729k]
  ------------------
  495|   154k|                tmpLength = 0;
  496|   154k|                reset = false;
  497|   154k|            }
  498|   884k|            tmpLength++;
  499|   884k|        } else {
  500|   157k|            if (tmpLength != 0 && tmpLength < length) {
  ------------------
  |  Branch (500:17): [True: 152k, False: 5.35k]
  |  Branch (500:35): [True: 10.5k, False: 142k]
  ------------------
  501|  10.5k|                length = tmpLength;
  502|  10.5k|            }
  503|   157k|            reset = true;
  504|   157k|        }
  505|  1.04M|    }
  506|       |
  507|  23.3k|    return length;
  508|  23.3k|}
uloc.cpp:_ZN12_GLOBAL__N_115UPRV_ISALPHANUMEc:
  516|   606k|inline bool UPRV_ISALPHANUM(char c) { return uprv_isASCIILetter(c) || UPRV_ISDIGIT(c); }
  ------------------
  |  | 1514|   606k|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|   606k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   606k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   606k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (516:46): [True: 575k, False: 30.3k]
  |  Branch (516:71): [True: 20.1k, False: 10.2k]
  ------------------
uloc.cpp:_ZN12_GLOBAL__N_112UPRV_ISDIGITEc:
  515|  30.3k|inline bool UPRV_ISDIGIT(char c) { return c >= '0' && c <= '9'; }
  ------------------
  |  Branch (515:43): [True: 20.5k, False: 9.85k]
  |  Branch (515:55): [True: 20.1k, False: 368]
  ------------------
uloc.cpp:_ZN12_GLOBAL__N_125UPRV_OK_VALUE_PUNCTUATIONEc:
  518|  9.84k|inline bool UPRV_OK_VALUE_PUNCTUATION(char c) { return c == '_' || c == '-' || c == '+' || c == '/'; }
  ------------------
  |  Branch (518:56): [True: 331, False: 9.51k]
  |  Branch (518:68): [True: 8.67k, False: 836]
  |  Branch (518:80): [True: 335, False: 501]
  |  Branch (518:92): [True: 481, False: 20]
  ------------------
uloc.cpp:_ZN12_GLOBAL__N_110_findIndexEPKPKcS1_:
 1178|  3.89k|{
 1179|  3.89k|    const char* const* anchor = list;
 1180|  3.89k|    int32_t pass = 0;
 1181|       |
 1182|       |    /* Make two passes through two nullptr-terminated arrays at 'list' */
 1183|  6.27k|    while (pass++ < 2) {
  ------------------
  |  Branch (1183:12): [True: 5.09k, False: 1.18k]
  ------------------
 1184|  1.49M|        while (*list) {
  ------------------
  |  Branch (1184:16): [True: 1.48M, False: 2.37k]
  ------------------
 1185|  1.48M|            if (uprv_strcmp(key, *list) == 0) {
  ------------------
  |  |   38|  1.48M|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  1.48M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1185:17): [True: 2.71k, False: 1.48M]
  ------------------
 1186|  2.71k|                return static_cast<int16_t>(list - anchor);
 1187|  2.71k|            }
 1188|  1.48M|            list++;
 1189|  1.48M|        }
 1190|  2.37k|        ++list;     /* skip final nullptr *CWB*/
 1191|  2.37k|    }
 1192|  1.18k|    return std::nullopt;
 1193|  3.89k|}
uloc.cpp:_ZN12_GLOBAL__N_112_getLanguageENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEPN6icu_788ByteSinkER10UErrorCode:
 1219|  45.9k|size_t _getLanguage(std::string_view localeID, ByteSink* sink, UErrorCode& status) {
 1220|  45.9k|    size_t skip = 0;
 1221|  45.9k|    if (localeID.size() == 4 && uprv_strnicmp(localeID.data(), "root", 4) == 0) {
  ------------------
  |  | 1544|  5.66k|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  123|  5.66k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.66k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.66k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1221:9): [True: 5.66k, False: 40.2k]
  |  Branch (1221:33): [True: 4.02k, False: 1.64k]
  ------------------
 1222|  4.02k|        skip = 4;
 1223|  4.02k|        localeID.remove_prefix(skip);
 1224|  41.8k|    } else if (localeID.size() >= 3 && uprv_strnicmp(localeID.data(), "und", 3) == 0 &&
  ------------------
  |  | 1544|  32.7k|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  123|  32.7k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  32.7k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  32.7k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1224:16): [True: 32.7k, False: 9.16k]
  |  Branch (1224:40): [True: 928, False: 31.7k]
  ------------------
 1225|  41.8k|               (localeID.size() == 3 ||
  ------------------
  |  Branch (1225:17): [True: 738, False: 190]
  ------------------
 1226|    928|                localeID[3] == '-' ||
  ------------------
  |  Branch (1226:17): [True: 6, False: 184]
  ------------------
 1227|    928|                localeID[3] == '_' ||
  ------------------
  |  Branch (1227:17): [True: 3, False: 181]
  ------------------
 1228|    928|                localeID[3] == '@')) {
  ------------------
  |  Branch (1228:17): [True: 4, False: 177]
  ------------------
 1229|    751|        skip = 3;
 1230|    751|        localeID.remove_prefix(skip);
 1231|    751|    }
 1232|       |
 1233|  45.9k|    constexpr int32_t MAXLEN = ULOC_LANG_CAPACITY - 1;  // Minus NUL.
  ------------------
  |  |  251|  45.9k|#define ULOC_LANG_CAPACITY 12
  ------------------
 1234|       |
 1235|       |    /* if it starts with i- or x- then copy that prefix */
 1236|  45.9k|    size_t len = _isIDPrefix(localeID) ? 2 : 0;
  ------------------
  |  Branch (1236:18): [True: 885, False: 45.0k]
  ------------------
 1237|   158k|    while (len < localeID.size() && !_isTerminator(localeID[len]) && !_isIDSeparator(localeID[len])) {
  ------------------
  |  Branch (1237:12): [True: 138k, False: 20.4k]
  |  Branch (1237:37): [True: 135k, False: 2.88k]
  |  Branch (1237:70): [True: 114k, False: 21.1k]
  ------------------
 1238|   114k|        if (len == MAXLEN) {
  ------------------
  |  Branch (1238:13): [True: 1.39k, False: 112k]
  ------------------
 1239|  1.39k|            status = U_ILLEGAL_ARGUMENT_ERROR;
 1240|  1.39k|            return 0;
 1241|  1.39k|        }
 1242|   112k|        len++;
 1243|   112k|    }
 1244|       |
 1245|  44.5k|    if (sink == nullptr || len == 0) { return skip + len; }
  ------------------
  |  Branch (1245:9): [True: 12.8k, False: 31.6k]
  |  Branch (1245:28): [True: 6.81k, False: 24.8k]
  ------------------
 1246|       |
 1247|  24.8k|    int32_t minCapacity = uprv_max(static_cast<int32_t>(len), 4);  // Minimum 3 letters plus NUL.
  ------------------
  |  | 1526|  24.8k|#define uprv_max U_ICU_ENTRY_POINT_RENAME(uprv_max)
  |  |  ------------------
  |  |  |  |  123|  24.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  24.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  24.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1248|  24.8k|    char scratch[MAXLEN];
 1249|  24.8k|    int32_t capacity = 0;
 1250|  24.8k|    char* buffer = sink->GetAppendBuffer(
 1251|  24.8k|            minCapacity, minCapacity, scratch, UPRV_LENGTHOF(scratch), &capacity);
  ------------------
  |  |   99|  24.8k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1252|       |
 1253|  94.1k|    for (size_t i = 0; i < len; ++i) {
  ------------------
  |  Branch (1253:24): [True: 69.3k, False: 24.8k]
  ------------------
 1254|  69.3k|        buffer[i] = uprv_tolower(localeID[i]);
  ------------------
  |  |   68|  69.3k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  69.3k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  69.3k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  69.3k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  69.3k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1255|  69.3k|    }
 1256|  24.8k|    if (localeID.size() >= 2 && _isIDSeparator(localeID[1])) {
  ------------------
  |  Branch (1256:9): [True: 23.4k, False: 1.41k]
  |  Branch (1256:33): [True: 744, False: 22.6k]
  ------------------
 1257|    744|        buffer[1] = '-';
 1258|    744|    }
 1259|       |
 1260|  24.8k|    if (len == 3) {
  ------------------
  |  Branch (1260:9): [True: 3.51k, False: 21.3k]
  ------------------
 1261|       |        /* convert 3 character code to 2 character code if possible *CWB*/
 1262|  3.51k|        U_ASSERT(capacity >= 4);
  ------------------
  |  |   35|  3.51k|#   define U_ASSERT(exp) (void)0
  ------------------
 1263|  3.51k|        buffer[3] = '\0';
 1264|  3.51k|        std::optional<int16_t> offset = _findIndex(LANGUAGES_3, buffer);
 1265|  3.51k|        if (offset.has_value()) {
  ------------------
  |  Branch (1265:13): [True: 2.70k, False: 810]
  ------------------
 1266|  2.70k|            const char* const alias = LANGUAGES[*offset];
 1267|  2.70k|            sink->Append(alias, static_cast<int32_t>(uprv_strlen(alias)));
  ------------------
  |  |   37|  2.70k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  2.70k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1268|  2.70k|            return skip + len;
 1269|  2.70k|        }
 1270|  3.51k|    }
 1271|       |
 1272|  22.1k|    sink->Append(buffer, static_cast<int32_t>(len));
 1273|  22.1k|    return skip + len;
 1274|  24.8k|}
uloc.cpp:_ZN12_GLOBAL__N_111_isIDPrefixENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
 1152|  45.9k|inline bool _isIDPrefix(std::string_view s) {
 1153|  45.9k|    return s.size() >= 2 && _isPrefixLetter(s[0]) && _isIDSeparator(s[1]);
  ------------------
  |  Branch (1153:12): [True: 39.3k, False: 6.56k]
  |  Branch (1153:29): [True: 2.43k, False: 36.9k]
  |  Branch (1153:54): [True: 885, False: 1.54k]
  ------------------
 1154|  45.9k|}
uloc.cpp:_ZN12_GLOBAL__N_115_isPrefixLetterEc:
 1148|  39.3k|inline bool _isPrefixLetter(char a) { return a == 'x' || a == 'X' || a == 'i' || a == 'I'; }
  ------------------
  |  Branch (1148:46): [True: 1.47k, False: 37.8k]
  |  Branch (1148:58): [True: 136, False: 37.7k]
  |  Branch (1148:70): [True: 811, False: 36.9k]
  |  Branch (1148:82): [True: 12, False: 36.9k]
  ------------------
uloc.cpp:_ZN12_GLOBAL__N_113_isTerminatorEc:
 1159|   295k|inline bool _isTerminator(char a) { return a == '.' || a == '@'; }
  ------------------
  |  Branch (1159:44): [True: 879, False: 294k]
  |  Branch (1159:56): [True: 3.80k, False: 290k]
  ------------------
uloc.cpp:_ZN12_GLOBAL__N_110_getScriptENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEPN6icu_788ByteSinkE:
 1276|  21.1k|size_t _getScript(std::string_view localeID, ByteSink* sink) {
 1277|  21.1k|    constexpr int32_t LENGTH = 4;
 1278|       |
 1279|  21.1k|    size_t len = 0;
 1280|  61.4k|    while (len < localeID.size() && !_isTerminator(localeID[len]) && !_isIDSeparator(localeID[len]) &&
  ------------------
  |  Branch (1280:12): [True: 50.0k, False: 11.3k]
  |  Branch (1280:37): [True: 49.7k, False: 324]
  |  Branch (1280:70): [True: 42.2k, False: 7.55k]
  ------------------
 1281|  61.4k|            uprv_isASCIILetter(localeID[len])) {
  ------------------
  |  | 1514|  42.2k|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|  42.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  42.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  42.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1281:13): [True: 40.3k, False: 1.84k]
  ------------------
 1282|  40.3k|        if (len == LENGTH) { return 0; }
  ------------------
  |  Branch (1282:13): [True: 65, False: 40.2k]
  ------------------
 1283|  40.2k|        len++;
 1284|  40.2k|    }
 1285|  21.1k|    if (len != LENGTH) { return 0; }
  ------------------
  |  Branch (1285:9): [True: 15.7k, False: 5.38k]
  ------------------
 1286|       |
 1287|  5.38k|    if (sink == nullptr) { return len; }
  ------------------
  |  Branch (1287:9): [True: 2.28k, False: 3.09k]
  ------------------
 1288|       |
 1289|  3.09k|    char scratch[LENGTH];
 1290|  3.09k|    int32_t capacity = 0;
 1291|  3.09k|    char* buffer = sink->GetAppendBuffer(
 1292|  3.09k|            LENGTH, LENGTH, scratch, UPRV_LENGTHOF(scratch), &capacity);
  ------------------
  |  |   99|  3.09k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1293|       |
 1294|  3.09k|    buffer[0] = uprv_toupper(localeID[0]);
  ------------------
  |  | 1547|  3.09k|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|  3.09k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.09k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.09k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1295|  12.3k|    for (int32_t i = 1; i < LENGTH; ++i) {
  ------------------
  |  Branch (1295:25): [True: 9.28k, False: 3.09k]
  ------------------
 1296|  9.28k|        buffer[i] = uprv_tolower(localeID[i]);
  ------------------
  |  |   68|  9.28k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  9.28k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  9.28k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  9.28k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  9.28k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1297|  9.28k|    }
 1298|       |
 1299|  3.09k|    sink->Append(buffer, LENGTH);
 1300|  3.09k|    return len;
 1301|  5.38k|}
uloc.cpp:_ZN12_GLOBAL__N_110_getRegionENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEPN6icu_788ByteSinkE:
 1303|  14.9k|size_t _getRegion(std::string_view localeID, ByteSink* sink) {
 1304|  14.9k|    constexpr int32_t MINLEN = 2;
 1305|  14.9k|    constexpr int32_t MAXLEN = ULOC_COUNTRY_CAPACITY - 1;  // Minus NUL.
  ------------------
  |  |  258|  14.9k|#define ULOC_COUNTRY_CAPACITY 4
  ------------------
 1306|       |
 1307|  14.9k|    size_t len = 0;
 1308|  35.3k|    while (len < localeID.size() && !_isTerminator(localeID[len]) && !_isIDSeparator(localeID[len])) {
  ------------------
  |  Branch (1308:12): [True: 28.4k, False: 6.90k]
  |  Branch (1308:37): [True: 28.1k, False: 349]
  |  Branch (1308:70): [True: 20.6k, False: 7.45k]
  ------------------
 1309|  20.6k|        if (len == MAXLEN) { return 0; }
  ------------------
  |  Branch (1309:13): [True: 282, False: 20.3k]
  ------------------
 1310|  20.3k|        len++;
 1311|  20.3k|    }
 1312|  14.7k|    if (len < MINLEN) { return 0; }
  ------------------
  |  Branch (1312:9): [True: 5.61k, False: 9.09k]
  ------------------
 1313|       |
 1314|  9.09k|    if (sink == nullptr) { return len; }
  ------------------
  |  Branch (1314:9): [True: 3.32k, False: 5.76k]
  ------------------
 1315|       |
 1316|  5.76k|    char scratch[ULOC_COUNTRY_CAPACITY];
 1317|  5.76k|    int32_t capacity = 0;
 1318|  5.76k|    char* buffer = sink->GetAppendBuffer(
 1319|  5.76k|            ULOC_COUNTRY_CAPACITY,
  ------------------
  |  |  258|  5.76k|#define ULOC_COUNTRY_CAPACITY 4
  ------------------
 1320|  5.76k|            ULOC_COUNTRY_CAPACITY,
  ------------------
  |  |  258|  5.76k|#define ULOC_COUNTRY_CAPACITY 4
  ------------------
 1321|  5.76k|            scratch,
 1322|  5.76k|            UPRV_LENGTHOF(scratch),
  ------------------
  |  |   99|  5.76k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1323|  5.76k|            &capacity);
 1324|       |
 1325|  17.6k|    for (size_t i = 0; i < len; ++i) {
  ------------------
  |  Branch (1325:24): [True: 11.9k, False: 5.76k]
  ------------------
 1326|  11.9k|        buffer[i] = uprv_toupper(localeID[i]);
  ------------------
  |  | 1547|  11.9k|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|  11.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  11.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  11.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1327|  11.9k|    }
 1328|       |
 1329|  5.76k|    if (len == 3) {
  ------------------
  |  Branch (1329:9): [True: 384, False: 5.38k]
  ------------------
 1330|       |        /* convert 3 character code to 2 character code if possible *CWB*/
 1331|    384|        U_ASSERT(capacity >= 4);
  ------------------
  |  |   35|    384|#   define U_ASSERT(exp) (void)0
  ------------------
 1332|    384|        buffer[3] = '\0';
 1333|    384|        std::optional<int16_t> offset = _findIndex(COUNTRIES_3, buffer);
 1334|    384|        if (offset.has_value()) {
  ------------------
  |  Branch (1334:13): [True: 9, False: 375]
  ------------------
 1335|      9|            const char* const alias = COUNTRIES[*offset];
 1336|      9|            sink->Append(alias, static_cast<int32_t>(uprv_strlen(alias)));
  ------------------
  |  |   37|      9|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      9|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1337|      9|            return len;
 1338|      9|        }
 1339|    384|    }
 1340|       |
 1341|  5.75k|    sink->Append(buffer, static_cast<int32_t>(len));
 1342|  5.75k|    return len;
 1343|  5.76k|}
uloc.cpp:_ZN12_GLOBAL__N_117_isBCP47ExtensionENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
 1161|  90.1k|inline bool _isBCP47Extension(std::string_view p) {
 1162|  90.1k|    return p.size() >= 3 &&
  ------------------
  |  Branch (1162:12): [True: 87.6k, False: 2.49k]
  ------------------
 1163|  90.1k|           p[0] == '-' &&
  ------------------
  |  Branch (1163:12): [True: 14.1k, False: 73.4k]
  ------------------
 1164|  90.1k|           (p[1] == 't' || p[1] == 'T' ||
  ------------------
  |  Branch (1164:13): [True: 130, False: 14.0k]
  |  Branch (1164:28): [True: 321, False: 13.7k]
  ------------------
 1165|  14.1k|            p[1] == 'u' || p[1] == 'U' ||
  ------------------
  |  Branch (1165:13): [True: 363, False: 13.3k]
  |  Branch (1165:28): [True: 488, False: 12.8k]
  ------------------
 1166|  14.1k|            p[1] == 'x' || p[1] == 'X') &&
  ------------------
  |  Branch (1166:13): [True: 381, False: 12.4k]
  |  Branch (1166:28): [True: 597, False: 11.8k]
  ------------------
 1167|  90.1k|           p[2] == '-';
  ------------------
  |  Branch (1167:12): [True: 531, False: 1.74k]
  ------------------
 1168|  90.1k|}
uloc.cpp:_ZN12_GLOBAL__N_111_getVariantENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEcPN6icu_788ByteSinkEbR10UErrorCode:
 1354|  7.80k|            UErrorCode& status) {
 1355|  7.80k|    if (U_FAILURE(status) || localeID.empty()) return 0;
  ------------------
  |  Branch (1355:9): [True: 0, False: 7.80k]
  |  Branch (1355:30): [True: 64, False: 7.73k]
  ------------------
 1356|       |
 1357|       |    // Reasonable upper limit for variants
 1358|       |    // There are no strict limitation of the syntax of variant in the legacy
 1359|       |    // locale format. If the locale is constructed from unicode_locale_id
 1360|       |    // as defined in UTS35, then we know each unicode_variant_subtag
 1361|       |    // could have max length of 8 ((alphanum{5,8} | digit alphanum{3})
 1362|       |    // 179 would allow 20 unicode_variant_subtag with sep in the
 1363|       |    // unicode_locale_id
 1364|       |    // 8*20 + 1*(20-1) = 179
 1365|  7.73k|    constexpr int32_t MAX_VARIANTS_LENGTH = 179;
 1366|       |
 1367|       |    /* get one or more variant tags and separate them with '_' */
 1368|  7.73k|    size_t index = 0;
 1369|  7.73k|    if (_isIDSeparator(prev)) {
  ------------------
  |  Branch (1369:9): [True: 7.73k, False: 0]
  ------------------
 1370|       |        /* get a variant string after a '-' or '_' */
 1371|  85.2k|        for (std::string_view sub = localeID;;) {
 1372|  85.2k|            size_t next = sub.find_first_of(".@_-");
 1373|       |            // For historical reasons, a trailing separator is included in the variant.
 1374|  85.2k|            bool finished = next == std::string_view::npos || next + 1 == sub.length();
  ------------------
  |  Branch (1374:29): [True: 5.89k, False: 79.3k]
  |  Branch (1374:63): [True: 545, False: 78.8k]
  ------------------
 1375|  85.2k|            size_t limit = finished ? sub.length() : next;
  ------------------
  |  Branch (1375:28): [True: 6.44k, False: 78.8k]
  ------------------
 1376|  85.2k|            index += limit;
 1377|  85.2k|            if (index > MAX_VARIANTS_LENGTH) {
  ------------------
  |  Branch (1377:17): [True: 28, False: 85.2k]
  ------------------
 1378|     28|                status = U_ILLEGAL_ARGUMENT_ERROR;
 1379|     28|                return 0;
 1380|     28|            }
 1381|       |
 1382|  85.2k|            if (sink != nullptr) {
  ------------------
  |  Branch (1382:17): [True: 85.2k, False: 0]
  ------------------
 1383|  85.2k|                if (needSeparator) {
  ------------------
  |  Branch (1383:21): [True: 77.5k, False: 7.72k]
  ------------------
 1384|  77.5k|                    sink->Append("_", 1);
 1385|  77.5k|                } else {
 1386|  7.72k|                    needSeparator = true;
 1387|  7.72k|                }
 1388|       |
 1389|  85.2k|                int32_t length = static_cast<int32_t>(limit);
 1390|  85.2k|                int32_t minCapacity = uprv_min(length, MAX_VARIANTS_LENGTH);
  ------------------
  |  | 1529|  85.2k|#define uprv_min U_ICU_ENTRY_POINT_RENAME(uprv_min)
  |  |  ------------------
  |  |  |  |  123|  85.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  85.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  85.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1391|  85.2k|                char scratch[MAX_VARIANTS_LENGTH];
 1392|  85.2k|                int32_t capacity = 0;
 1393|  85.2k|                char* buffer = sink->GetAppendBuffer(
 1394|  85.2k|                        minCapacity, minCapacity, scratch, UPRV_LENGTHOF(scratch), &capacity);
  ------------------
  |  |   99|  85.2k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1395|       |
 1396|   282k|                for (size_t i = 0; i < limit; ++i) {
  ------------------
  |  Branch (1396:36): [True: 196k, False: 85.2k]
  ------------------
 1397|   196k|                    buffer[i] = uprv_toupper(sub[i]);
  ------------------
  |  | 1547|   196k|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|   196k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   196k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   196k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1398|   196k|                }
 1399|  85.2k|                sink->Append(buffer, length);
 1400|  85.2k|            }
 1401|       |
 1402|  85.2k|            if (finished) { return index; }
  ------------------
  |  Branch (1402:17): [True: 6.43k, False: 78.8k]
  ------------------
 1403|  78.8k|            sub.remove_prefix(next);
 1404|  78.8k|            if (_isTerminator(sub.front()) || _isBCP47Extension(sub)) { return index; }
  ------------------
  |  Branch (1404:17): [True: 1.12k, False: 77.6k]
  |  Branch (1404:47): [True: 155, False: 77.5k]
  ------------------
 1405|  77.5k|            sub.remove_prefix(1);
 1406|  77.5k|            index++;
 1407|  77.5k|        }
 1408|  7.73k|    }
 1409|       |
 1410|      0|    size_t skip = 0;
 1411|       |    /* if there is no variant tag after a '-' or '_' then look for '@' */
 1412|      0|    if (prev == '@') {
  ------------------
  |  Branch (1412:9): [True: 0, False: 0]
  ------------------
 1413|       |        /* keep localeID */
 1414|      0|    } else if (const char* p = locale_getKeywordsStart(localeID); p != nullptr) {
  ------------------
  |  |  138|      0|#define locale_getKeywordsStart U_ICU_ENTRY_POINT_RENAME(locale_getKeywordsStart)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1414:67): [True: 0, False: 0]
  ------------------
 1415|      0|        skip = 1 + p - localeID.data(); /* point after the '@' */
 1416|      0|        localeID.remove_prefix(skip);
 1417|      0|    } else {
 1418|      0|        return 0;
 1419|      0|    }
 1420|      0|    for (; index < localeID.size() && !_isTerminator(localeID[index]); index++) {
  ------------------
  |  Branch (1420:12): [True: 0, False: 0]
  |  Branch (1420:39): [True: 0, False: 0]
  ------------------
 1421|      0|        if (index >= MAX_VARIANTS_LENGTH) { // same as length > MAX_VARIANTS_LENGTH
  ------------------
  |  Branch (1421:13): [True: 0, False: 0]
  ------------------
 1422|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
 1423|      0|            return 0;
 1424|      0|        }
 1425|      0|        if (needSeparator) {
  ------------------
  |  Branch (1425:13): [True: 0, False: 0]
  ------------------
 1426|      0|            if (sink != nullptr) {
  ------------------
  |  Branch (1426:17): [True: 0, False: 0]
  ------------------
 1427|      0|                sink->Append("_", 1);
 1428|      0|            }
 1429|      0|            needSeparator = false;
 1430|      0|        }
 1431|      0|        if (sink != nullptr) {
  ------------------
  |  Branch (1431:13): [True: 0, False: 0]
  ------------------
 1432|      0|            char c = uprv_toupper(localeID[index]);
  ------------------
  |  | 1547|      0|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1433|      0|            if (c == '-' || c == ',') c = '_';
  ------------------
  |  Branch (1433:17): [True: 0, False: 0]
  |  Branch (1433:29): [True: 0, False: 0]
  ------------------
 1434|      0|            sink->Append(&c, 1);
 1435|      0|        }
 1436|      0|    }
 1437|      0|    return skip + index;
 1438|      0|}
uloc.cpp:_ZN12_GLOBAL__N_113_canonicalizeENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEERN6icu_788ByteSinkEjR10UErrorCode:
 1806|  24.7k|              UErrorCode& err) {
 1807|  24.7k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (1807:9): [True: 0, False: 24.7k]
  ------------------
 1808|      0|        return;
 1809|      0|    }
 1810|       |
 1811|  24.7k|    int32_t j, fieldCount=0;
 1812|  24.7k|    CharString tempBuffer;  // if localeID has a BCP47 extension, tmpLocaleID points to this
 1813|  24.7k|    CharString localeIDWithHyphens;  // if localeID has a BPC47 extension and have _, tmpLocaleID points to this
 1814|  24.7k|    std::string_view origLocaleID;
 1815|  24.7k|    std::string_view tmpLocaleID;
 1816|  24.7k|    size_t keywordAssign = std::string_view::npos;
 1817|  24.7k|    size_t separatorIndicator = std::string_view::npos;
 1818|       |
 1819|  24.7k|    if (_hasBCP47Extension(localeID)) {
  ------------------
  |  Branch (1819:9): [True: 4.87k, False: 19.9k]
  ------------------
 1820|  4.87k|        std::string_view localeIDPtr = localeID;
 1821|       |
 1822|       |        // convert all underbars to hyphens, unless the "BCP47 extension" comes at the beginning of the string
 1823|  4.87k|        if (localeID.size() >= 2 && localeID.find('_') != std::string_view::npos && localeID[1] != '-' && localeID[1] != '_') {
  ------------------
  |  Branch (1823:13): [True: 3.77k, False: 1.09k]
  |  Branch (1823:37): [True: 2.33k, False: 1.44k]
  |  Branch (1823:85): [True: 2.23k, False: 98]
  |  Branch (1823:107): [True: 1.83k, False: 400]
  ------------------
 1824|  1.83k|            localeIDWithHyphens.append(localeID, err);
 1825|  1.83k|            if (U_SUCCESS(err)) {
  ------------------
  |  Branch (1825:17): [True: 1.83k, False: 0]
  ------------------
 1826|   343k|                for (char* p = localeIDWithHyphens.data(); *p != '\0'; ++p) {
  ------------------
  |  Branch (1826:60): [True: 341k, False: 1.83k]
  ------------------
 1827|   341k|                    if (*p == '_') {
  ------------------
  |  Branch (1827:25): [True: 39.9k, False: 301k]
  ------------------
 1828|  39.9k|                        *p = '-';
 1829|  39.9k|                    }
 1830|   341k|                }
 1831|  1.83k|                localeIDPtr = localeIDWithHyphens.toStringPiece();
 1832|  1.83k|            }
 1833|  1.83k|        }
 1834|       |
 1835|  4.87k|        tempBuffer = ulocimp_forLanguageTag(localeIDPtr.data(), static_cast<int32_t>(localeIDPtr.size()), nullptr, err);
  ------------------
  |  | 1198|  4.87k|#define ulocimp_forLanguageTag U_ICU_ENTRY_POINT_RENAME(ulocimp_forLanguageTag)
  |  |  ------------------
  |  |  |  |  123|  4.87k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.87k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.87k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1836|  4.87k|        tmpLocaleID = U_SUCCESS(err) && !tempBuffer.isEmpty() ? static_cast<std::string_view>(tempBuffer.toStringPiece()) : localeIDPtr;
  ------------------
  |  Branch (1836:23): [True: 4.87k, False: 0]
  |  Branch (1836:41): [True: 2.39k, False: 2.47k]
  ------------------
 1837|  19.9k|    } else {
 1838|  19.9k|        tmpLocaleID=localeID;
 1839|  19.9k|    }
 1840|       |
 1841|  24.7k|    origLocaleID=tmpLocaleID;
 1842|       |
 1843|       |    /* get all pieces, one after another, and separate with '_' */
 1844|  24.7k|    CharString tag;
 1845|  24.7k|    CharString script;
 1846|  24.7k|    CharString country;
 1847|  24.7k|    CharString variant;
 1848|  24.7k|    const char* end = nullptr;
 1849|  24.7k|    ulocimp_getSubtags(
  ------------------
  |  | 1209|  24.7k|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|  24.7k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  24.7k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  24.7k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1850|  24.7k|            tmpLocaleID,
 1851|  24.7k|            &tag,
 1852|  24.7k|            &script,
 1853|  24.7k|            &country,
 1854|  24.7k|            &variant,
 1855|  24.7k|            &end,
 1856|  24.7k|            err);
 1857|  24.7k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (1857:9): [True: 1.41k, False: 23.3k]
  ------------------
 1858|  1.41k|        return;
 1859|  1.41k|    }
 1860|  23.3k|    U_ASSERT(end != nullptr);
  ------------------
  |  |   35|  23.3k|#   define U_ASSERT(exp) (void)0
  ------------------
 1861|  23.3k|    if (end > tmpLocaleID.data()) {
  ------------------
  |  Branch (1861:9): [True: 20.9k, False: 2.41k]
  ------------------
 1862|  20.9k|        tmpLocaleID.remove_prefix(end - tmpLocaleID.data());
 1863|  20.9k|    }
 1864|       |
 1865|  23.3k|    if (tag.length() == I_DEFAULT_LENGTH && origLocaleID.length() >= I_DEFAULT_LENGTH &&
  ------------------
  |  Branch (1865:9): [True: 259, False: 23.1k]
  |  Branch (1865:45): [True: 259, False: 0]
  ------------------
 1866|  23.3k|            uprv_strncmp(origLocaleID.data(), i_default, I_DEFAULT_LENGTH) == 0) {
  ------------------
  |  |   44|    259|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|    259|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1866:13): [True: 5, False: 254]
  ------------------
 1867|      5|        tag.clear();
 1868|      5|        tag.append(uloc_getDefault(), err);
  ------------------
  |  | 1118|      5|#define uloc_getDefault U_ICU_ENTRY_POINT_RENAME(uloc_getDefault)
  |  |  ------------------
  |  |  |  |  123|      5|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      5|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      5|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1869|  23.3k|    } else {
 1870|  23.3k|        if (!script.isEmpty()) {
  ------------------
  |  Branch (1870:13): [True: 877, False: 22.4k]
  ------------------
 1871|    877|            ++fieldCount;
 1872|    877|            tag.append('_', err);
 1873|    877|            tag.append(script, err);
 1874|    877|        }
 1875|  23.3k|        if (!country.isEmpty()) {
  ------------------
  |  Branch (1875:13): [True: 3.74k, False: 19.6k]
  ------------------
 1876|  3.74k|            ++fieldCount;
 1877|  3.74k|            tag.append('_', err);
 1878|  3.74k|            tag.append(country, err);
 1879|  3.74k|        }
 1880|  23.3k|        if (!variant.isEmpty()) {
  ------------------
  |  Branch (1880:13): [True: 2.59k, False: 20.7k]
  ------------------
 1881|  2.59k|            ++fieldCount;
 1882|  2.59k|            if (country.isEmpty()) {
  ------------------
  |  Branch (1882:17): [True: 1.91k, False: 683]
  ------------------
 1883|  1.91k|                tag.append('_', err);
 1884|  1.91k|            }
 1885|  2.59k|            tag.append('_', err);
 1886|  2.59k|            tag.append(variant, err);
 1887|  2.59k|        }
 1888|  23.3k|    }
 1889|       |
 1890|       |    /* Copy POSIX-style charset specifier, if any [mr.utf8] */
 1891|  23.3k|    if (!OPTION_SET(options, _ULOC_CANONICALIZE) && !tmpLocaleID.empty() && tmpLocaleID.front() == '.') {
  ------------------
  |  | 1786|  23.3k|#define _ULOC_CANONICALIZE   0x1
  ------------------
  |  Branch (1891:9): [True: 22.4k, False: 886]
  |  Branch (1891:53): [True: 3.82k, False: 18.6k]
  |  Branch (1891:77): [True: 278, False: 3.54k]
  ------------------
 1892|    278|        tag.append('.', err);
 1893|    278|        tmpLocaleID.remove_prefix(1);
 1894|    278|        size_t length;
 1895|    278|        if (size_t atPos = tmpLocaleID.find('@'); atPos != std::string_view::npos) {
  ------------------
  |  Branch (1895:51): [True: 62, False: 216]
  ------------------
 1896|     62|            length = atPos;
 1897|    216|        } else {
 1898|    216|            length = tmpLocaleID.length();
 1899|    216|        }
 1900|       |        // The longest charset name we found in IANA charset registry
 1901|       |        // https://www.iana.org/assignments/character-sets/ is
 1902|       |        // "Extended_UNIX_Code_Packed_Format_for_Japanese" in length 45.
 1903|       |        // we therefore restrict the length here to be 64 which is a power of 2
 1904|       |        // number that is longer than 45.
 1905|    278|        constexpr size_t kMaxCharsetLength = 64;
 1906|    278|        if (length > kMaxCharsetLength) {
  ------------------
  |  Branch (1906:13): [True: 13, False: 265]
  ------------------
 1907|     13|           err = U_ILLEGAL_ARGUMENT_ERROR; /* malformed keyword name */
 1908|     13|           return;
 1909|     13|        }
 1910|    265|        if (length > 0) {
  ------------------
  |  Branch (1910:13): [True: 221, False: 44]
  ------------------
 1911|    221|            tag.append(tmpLocaleID.data(), static_cast<int32_t>(length), err);
 1912|    221|            tmpLocaleID.remove_prefix(length);
 1913|    221|        }
 1914|    265|    }
 1915|       |
 1916|       |    /* Scan ahead to next '@' and determine if it is followed by '=' and/or ';'
 1917|       |       After this, tmpLocaleID either starts at '@' or is empty. */
 1918|  23.3k|    if (const char* start = locale_getKeywordsStart(tmpLocaleID); start != nullptr) {
  ------------------
  |  |  138|  23.3k|#define locale_getKeywordsStart U_ICU_ENTRY_POINT_RENAME(locale_getKeywordsStart)
  |  |  ------------------
  |  |  |  |  123|  23.3k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  23.3k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  23.3k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1918:67): [True: 3.39k, False: 19.9k]
  ------------------
 1919|  3.39k|        if (start > tmpLocaleID.data()) {
  ------------------
  |  Branch (1919:13): [True: 151, False: 3.24k]
  ------------------
 1920|    151|            tmpLocaleID.remove_prefix(start - tmpLocaleID.data());
 1921|    151|        }
 1922|  3.39k|        keywordAssign = tmpLocaleID.find('=');
 1923|  3.39k|        separatorIndicator = tmpLocaleID.find(';');
 1924|  19.9k|    } else {
 1925|  19.9k|        tmpLocaleID = {};
 1926|  19.9k|    }
 1927|       |
 1928|       |    /* Copy POSIX-style variant, if any [mr@FOO] */
 1929|  23.3k|    if (!OPTION_SET(options, _ULOC_CANONICALIZE) &&
  ------------------
  |  | 1786|  23.3k|#define _ULOC_CANONICALIZE   0x1
  ------------------
  |  Branch (1929:9): [True: 22.4k, False: 886]
  ------------------
 1930|  23.3k|        !tmpLocaleID.empty() && keywordAssign == std::string_view::npos) {
  ------------------
  |  Branch (1930:9): [True: 3.39k, False: 19.0k]
  |  Branch (1930:33): [True: 306, False: 3.09k]
  ------------------
 1931|    306|        tag.append(tmpLocaleID, err);
 1932|    306|        tmpLocaleID = {};
 1933|    306|    }
 1934|       |
 1935|  23.3k|    if (OPTION_SET(options, _ULOC_CANONICALIZE)) {
  ------------------
  |  | 1786|  23.3k|#define _ULOC_CANONICALIZE   0x1
  ------------------
  |  Branch (1935:9): [True: 886, False: 22.4k]
  ------------------
 1936|       |        /* Handle @FOO variant if @ is present and not followed by = */
 1937|    886|        if (!tmpLocaleID.empty() && keywordAssign == std::string_view::npos) {
  ------------------
  |  Branch (1937:13): [True: 0, False: 886]
  |  Branch (1937:37): [True: 0, False: 0]
  ------------------
 1938|       |            /* Add missing '_' if needed */
 1939|      0|            if (fieldCount < 2 || (fieldCount < 3 && !script.isEmpty())) {
  ------------------
  |  Branch (1939:17): [True: 0, False: 0]
  |  Branch (1939:36): [True: 0, False: 0]
  |  Branch (1939:54): [True: 0, False: 0]
  ------------------
 1940|      0|                do {
 1941|      0|                    tag.append('_', err);
 1942|      0|                    ++fieldCount;
 1943|      0|                } while(fieldCount<2);
  ------------------
  |  Branch (1943:25): [True: 0, False: 0]
  ------------------
 1944|      0|            }
 1945|       |
 1946|      0|            CharStringByteSink s(&tag);
 1947|      0|            std::string_view sub = tmpLocaleID;
 1948|      0|            sub.remove_prefix(1);
 1949|      0|            _getVariant(sub, '@', &s, !variant.isEmpty(), err);
 1950|      0|            if (U_FAILURE(err)) { return; }
  ------------------
  |  Branch (1950:17): [True: 0, False: 0]
  ------------------
 1951|      0|        }
 1952|       |
 1953|       |        /* Look up the ID in the canonicalization map */
 1954|  9.74k|        for (j=0; j<UPRV_LENGTHOF(CANONICALIZE_MAP); j++) {
  ------------------
  |  |   99|  9.74k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1954:19): [True: 8.86k, False: 886]
  ------------------
 1955|  8.86k|            StringPiece id(CANONICALIZE_MAP[j].id);
 1956|  8.86k|            if (tag == id) {
  ------------------
  |  Branch (1956:17): [True: 0, False: 8.86k]
  ------------------
 1957|      0|                if (id.empty() && !tmpLocaleID.empty()) {
  ------------------
  |  Branch (1957:21): [True: 0, False: 0]
  |  Branch (1957:35): [True: 0, False: 0]
  ------------------
 1958|      0|                    break; /* Don't remap "" if keywords present */
 1959|      0|                }
 1960|      0|                tag.clear();
 1961|      0|                tag.append(CANONICALIZE_MAP[j].canonicalID, err);
 1962|      0|                break;
 1963|      0|            }
 1964|  8.86k|        }
 1965|    886|    }
 1966|       |
 1967|  23.3k|    sink.Append(tag.data(), tag.length());
 1968|       |
 1969|  23.3k|    if (!OPTION_SET(options, _ULOC_STRIP_KEYWORDS)) {
  ------------------
  |  | 1785|  23.3k|#define _ULOC_STRIP_KEYWORDS 0x2
  ------------------
  |  Branch (1969:9): [True: 17.4k, False: 5.88k]
  ------------------
 1970|  17.4k|        if (!tmpLocaleID.empty() && keywordAssign != std::string_view::npos &&
  ------------------
  |  Branch (1970:13): [True: 3.07k, False: 14.4k]
  |  Branch (1970:37): [True: 3.07k, False: 0]
  ------------------
 1971|  17.4k|            (separatorIndicator == std::string_view::npos || separatorIndicator > keywordAssign)) {
  ------------------
  |  Branch (1971:14): [True: 1.70k, False: 1.37k]
  |  Branch (1971:62): [True: 1.36k, False: 6]
  ------------------
 1972|  3.06k|            sink.Append("@", 1);
 1973|  3.06k|            ++fieldCount;
 1974|  3.06k|            tmpLocaleID.remove_prefix(1);
 1975|  3.06k|            ulocimp_getKeywords(tmpLocaleID, '@', sink, true, err);
  ------------------
  |  | 1201|  3.06k|#define ulocimp_getKeywords U_ICU_ENTRY_POINT_RENAME(ulocimp_getKeywords)
  |  |  ------------------
  |  |  |  |  123|  3.06k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.06k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.06k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1976|  3.06k|        }
 1977|  17.4k|    }
 1978|  23.3k|}
uloc.cpp:_ZN12_GLOBAL__N_110OPTION_SETEjj:
 1790|  93.4k|inline bool OPTION_SET(uint32_t options, uint32_t mask) { return (options & mask) != 0; }
uloc.cpp:_ZN12_GLOBAL__N_121isWellFormedLegacyKeyENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
 2421|  14.4k|{
 2422|  14.4k|    return std::all_of(key.begin(), key.end(), UPRV_ISALPHANUM);
 2423|  14.4k|}
uloc.cpp:_ZN12_GLOBAL__N_122isWellFormedLegacyTypeENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
 2427|  4.79k|{
 2428|  4.79k|    int32_t alphaNumLen = 0;
 2429|  67.7k|    for (char c : legacyType) {
  ------------------
  |  Branch (2429:17): [True: 67.7k, False: 4.79k]
  ------------------
 2430|  67.7k|        if (c == '_' || c == '/' || c == '-') {
  ------------------
  |  Branch (2430:13): [True: 0, False: 67.7k]
  |  Branch (2430:25): [True: 0, False: 67.7k]
  |  Branch (2430:37): [True: 10.8k, False: 56.8k]
  ------------------
 2431|  10.8k|            if (alphaNumLen == 0) {
  ------------------
  |  Branch (2431:17): [True: 0, False: 10.8k]
  ------------------
 2432|      0|                return false;
 2433|      0|            }
 2434|  10.8k|            alphaNumLen = 0;
 2435|  56.8k|        } else if (UPRV_ISALPHANUM(c)) {
  ------------------
  |  Branch (2435:20): [True: 56.8k, False: 0]
  ------------------
 2436|  56.8k|            alphaNumLen++;
 2437|  56.8k|        } else {
 2438|      0|            return false;
 2439|      0|        }
 2440|  67.7k|    }
 2441|  4.79k|    return alphaNumLen != 0;
 2442|  4.79k|}
uloc.cpp:_ZZ23uloc_getKeywordValue_78ENK3$_0clERN6icu_788ByteSinkER10UErrorCode:
  741|  19.5k|        [&](ByteSink& sink, UErrorCode& status) {
  742|  19.5k|            ulocimp_getKeywordValue(localeID, keywordName, sink, status);
  ------------------
  |  | 1200|  19.5k|#define ulocimp_getKeywordValue U_ICU_ENTRY_POINT_RENAME(ulocimp_getKeywordValue)
  |  |  ------------------
  |  |  |  |  123|  19.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  19.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  19.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  743|  19.5k|        },
uloc.cpp:_ZZ22ulocimp_getBaseName_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEER10UErrorCodeENK3$_0clERN6icu_788ByteSinkES5_:
 2197|  5.88k|        [&](ByteSink& sink, UErrorCode& status) {
 2198|  5.88k|            ulocimp_getBaseName(localeID, sink, status);
  ------------------
  |  | 1199|  5.88k|#define ulocimp_getBaseName U_ICU_ENTRY_POINT_RENAME(ulocimp_getBaseName)
  |  |  ------------------
  |  |  |  |  123|  5.88k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.88k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.88k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2199|  5.88k|        },
uloc.cpp:_ZZ23ulocimp_canonicalize_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEER10UErrorCodeENK3$_0clERN6icu_788ByteSinkES5_:
 2233|      1|        [&](ByteSink& sink, UErrorCode& status) {
 2234|      1|            ulocimp_canonicalize(localeID, sink, status);
  ------------------
  |  | 1197|      1|#define ulocimp_canonicalize U_ICU_ENTRY_POINT_RENAME(ulocimp_canonicalize)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2235|      1|        },

_Z22ulocimp_toLegacyKey_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEE:
  462|  22.4k|ulocimp_toLegacyKey(std::string_view key) {
  463|  22.4k|    if (!init()) {
  ------------------
  |  Branch (463:9): [True: 0, False: 22.4k]
  ------------------
  464|      0|        return std::nullopt;
  465|      0|    }
  466|       |
  467|  22.4k|    LocExtKeyData* keyData = static_cast<LocExtKeyData*>(uhash_get(gLocExtKeyMap, &key));
  ------------------
  |  | 1007|  22.4k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  22.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  22.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  22.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  468|  22.4k|    if (keyData != nullptr) {
  ------------------
  |  Branch (468:9): [True: 8.03k, False: 14.4k]
  ------------------
  469|  8.03k|        return keyData->legacyId;
  470|  8.03k|    }
  471|       |
  472|  14.4k|    return std::nullopt;
  473|  22.4k|}
_Z23ulocimp_toLegacyType_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEES3_:
  509|  5.93k|ulocimp_toLegacyType(std::string_view key, std::string_view type) {
  510|  5.93k|    if (!init()) {
  ------------------
  |  Branch (510:9): [True: 0, False: 5.93k]
  ------------------
  511|      0|        return std::nullopt;
  512|      0|    }
  513|       |
  514|  5.93k|    LocExtKeyData* keyData = static_cast<LocExtKeyData*>(uhash_get(gLocExtKeyMap, &key));
  ------------------
  |  | 1007|  5.93k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  5.93k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.93k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.93k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  515|  5.93k|    if (keyData != nullptr) {
  ------------------
  |  Branch (515:9): [True: 4.56k, False: 1.36k]
  ------------------
  516|  4.56k|        LocExtType* t = static_cast<LocExtType*>(uhash_get(keyData->typeMap.getAlias(), &type));
  ------------------
  |  | 1007|  4.56k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  4.56k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.56k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.56k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  517|  4.56k|        if (t != nullptr) {
  ------------------
  |  Branch (517:13): [True: 432, False: 4.13k]
  ------------------
  518|    432|            return t->legacyId;
  519|    432|        }
  520|  4.13k|        if (keyData->specialTypes != SPECIALTYPE_NONE) {
  ------------------
  |  Branch (520:13): [True: 2.93k, False: 1.20k]
  ------------------
  521|  2.93k|            bool matched = false;
  522|  2.93k|            if (keyData->specialTypes & SPECIALTYPE_CODEPOINTS) {
  ------------------
  |  Branch (522:17): [True: 1.42k, False: 1.50k]
  ------------------
  523|  1.42k|                matched = isSpecialTypeCodepoints(type);
  524|  1.42k|            }
  525|  2.93k|            if (!matched && keyData->specialTypes & SPECIALTYPE_REORDER_CODE) {
  ------------------
  |  Branch (525:17): [True: 2.72k, False: 205]
  |  Branch (525:29): [True: 737, False: 1.98k]
  ------------------
  526|    737|                matched = isSpecialTypeReorderCode(type);
  527|    737|            }
  528|  2.93k|            if (!matched && keyData->specialTypes & SPECIALTYPE_RG_KEY_VALUE) {
  ------------------
  |  Branch (528:17): [True: 2.23k, False: 700]
  |  Branch (528:29): [True: 769, False: 1.46k]
  ------------------
  529|    769|                matched = isSpecialTypeRgKeyValue(type);
  530|    769|            }
  531|  2.93k|            if (matched) {
  ------------------
  |  Branch (531:17): [True: 703, False: 2.22k]
  ------------------
  532|    703|                return type;
  533|    703|            }
  534|  2.93k|        }
  535|  4.13k|    }
  536|       |
  537|  4.79k|    return std::nullopt;
  538|  5.93k|}
uloc_keytype.cpp:_ZN12_GLOBAL__N_14initEv:
  384|  28.3k|init() {
  385|  28.3k|    UErrorCode sts = U_ZERO_ERROR;
  386|  28.3k|    umtx_initOnce(gLocExtKeyMapInitOnce, &initFromResourceBundle, sts);
  387|  28.3k|    if (U_FAILURE(sts)) {
  ------------------
  |  Branch (387:9): [True: 0, False: 28.3k]
  ------------------
  388|      0|        return false;
  389|      0|    }
  390|  28.3k|    return true;
  391|  28.3k|}
uloc_keytype.cpp:_ZN12_GLOBAL__N_122initFromResourceBundleER10UErrorCode:
   91|      1|initFromResourceBundle(UErrorCode& sts) {
   92|      1|    U_NAMESPACE_USE
  ------------------
  |  |  112|      1|#   define U_NAMESPACE_USE using namespace U_ICU_NAMESPACE;
  ------------------
   93|      1|    ucln_common_registerCleanup(UCLN_COMMON_LOCALE_KEY_TYPE, uloc_key_type_cleanup);
  ------------------
  |  |  617|      1|#define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   94|       |
   95|      1|    gLocExtKeyMap = uhash_open(uhash_hashIStringView, uhash_compareIStringView, nullptr, &sts);
  ------------------
  |  | 1030|      1|#define uhash_open U_ICU_ENTRY_POINT_RENAME(uhash_open)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  gLocExtKeyMap = uhash_open(uhash_hashIStringView, uhash_compareIStringView, nullptr, &sts);
  ------------------
  |  | 1013|      1|#define uhash_hashIStringView U_ICU_ENTRY_POINT_RENAME(uhash_hashIStringView)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  gLocExtKeyMap = uhash_open(uhash_hashIStringView, uhash_compareIStringView, nullptr, &sts);
  ------------------
  |  |  995|      1|#define uhash_compareIStringView U_ICU_ENTRY_POINT_RENAME(uhash_compareIStringView)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   96|       |
   97|      1|    LocalUResourceBundlePointer keyTypeDataRes(ures_openDirect(nullptr, "keyTypeData", &sts));
  ------------------
  |  | 1693|      1|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   98|      1|    LocalUResourceBundlePointer keyMapRes(ures_getByKey(keyTypeDataRes.getAlias(), "keyMap", nullptr, &sts));
  ------------------
  |  | 1661|      1|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   99|      1|    LocalUResourceBundlePointer typeMapRes(ures_getByKey(keyTypeDataRes.getAlias(), "typeMap", nullptr, &sts));
  ------------------
  |  | 1661|      1|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  100|       |
  101|      1|    if (U_FAILURE(sts)) {
  ------------------
  |  Branch (101:9): [True: 0, False: 1]
  ------------------
  102|      0|        return;
  103|      0|    }
  104|       |
  105|      1|    UErrorCode tmpSts = U_ZERO_ERROR;
  106|      1|    LocalUResourceBundlePointer typeAliasRes(ures_getByKey(keyTypeDataRes.getAlias(), "typeAlias", nullptr, &tmpSts));
  ------------------
  |  | 1661|      1|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  107|      1|    tmpSts = U_ZERO_ERROR;
  108|      1|    LocalUResourceBundlePointer bcpTypeAliasRes(ures_getByKey(keyTypeDataRes.getAlias(), "bcpTypeAlias", nullptr, &tmpSts));
  ------------------
  |  | 1661|      1|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  109|       |
  110|       |    // initialize pools storing dynamically allocated objects
  111|      1|    gKeyTypeStringPool = new icu::MemoryPool<icu::CharString>;
  112|      1|    if (gKeyTypeStringPool == nullptr) {
  ------------------
  |  Branch (112:9): [True: 0, False: 1]
  ------------------
  113|      0|        sts = U_MEMORY_ALLOCATION_ERROR;
  114|      0|        return;
  115|      0|    }
  116|      1|    gLocExtKeyDataEntries = new icu::MemoryPool<LocExtKeyData>;
  117|      1|    if (gLocExtKeyDataEntries == nullptr) {
  ------------------
  |  Branch (117:9): [True: 0, False: 1]
  ------------------
  118|      0|        sts = U_MEMORY_ALLOCATION_ERROR;
  119|      0|        return;
  120|      0|    }
  121|      1|    gLocExtTypeEntries = new icu::MemoryPool<LocExtType>;
  122|      1|    if (gLocExtTypeEntries == nullptr) {
  ------------------
  |  Branch (122:9): [True: 0, False: 1]
  ------------------
  123|      0|        sts = U_MEMORY_ALLOCATION_ERROR;
  124|      0|        return;
  125|      0|    }
  126|      1|    gTypeAliasEntries = new icu::MemoryPool<TypeAlias>;
  127|      1|    if (gTypeAliasEntries == nullptr) {
  ------------------
  |  Branch (127:9): [True: 0, False: 1]
  ------------------
  128|      0|        sts = U_MEMORY_ALLOCATION_ERROR;
  129|      0|        return;
  130|      0|    }
  131|       |
  132|       |    // iterate through keyMap resource
  133|      1|    LocalUResourceBundlePointer keyMapEntry;
  134|       |
  135|     38|    while (ures_hasNext(keyMapRes.getAlias())) {
  ------------------
  |  | 1689|     38|#define ures_hasNext U_ICU_ENTRY_POINT_RENAME(ures_hasNext)
  |  |  ------------------
  |  |  |  |  123|     38|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     38|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     38|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (135:12): [True: 37, False: 1]
  ------------------
  136|     37|        keyMapEntry.adoptInstead(ures_getNextResource(keyMapRes.getAlias(), keyMapEntry.orphan(), &sts));
  ------------------
  |  | 1672|     37|#define ures_getNextResource U_ICU_ENTRY_POINT_RENAME(ures_getNextResource)
  |  |  ------------------
  |  |  |  |  123|     37|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     37|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     37|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  137|     37|        if (U_FAILURE(sts)) {
  ------------------
  |  Branch (137:13): [True: 0, False: 37]
  ------------------
  138|      0|            break;
  139|      0|        }
  140|     37|        const char* legacyKeyId = ures_getKey(keyMapEntry.getAlias());
  ------------------
  |  | 1666|     37|#define ures_getKey U_ICU_ENTRY_POINT_RENAME(ures_getKey)
  |  |  ------------------
  |  |  |  |  123|     37|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     37|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     37|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  141|     37|        UnicodeString uBcpKeyId = ures_getUnicodeString(keyMapEntry.getAlias(), &sts);
  142|     37|        if (U_FAILURE(sts)) {
  ------------------
  |  Branch (142:13): [True: 0, False: 37]
  ------------------
  143|      0|            break;
  144|      0|        }
  145|       |
  146|       |        // empty value indicates that BCP key is same with the legacy key.
  147|     37|        const char* bcpKeyId = legacyKeyId;
  148|     37|        if (!uBcpKeyId.isEmpty()) {
  ------------------
  |  Branch (148:13): [True: 17, False: 20]
  ------------------
  149|     17|            icu::CharString* bcpKeyIdBuf = gKeyTypeStringPool->create();
  150|     17|            if (bcpKeyIdBuf == nullptr) {
  ------------------
  |  Branch (150:17): [True: 0, False: 17]
  ------------------
  151|      0|                sts = U_MEMORY_ALLOCATION_ERROR;
  152|      0|                break;
  153|      0|            }
  154|     17|            bcpKeyIdBuf->appendInvariantChars(uBcpKeyId, sts);
  155|     17|            if (U_FAILURE(sts)) {
  ------------------
  |  Branch (155:17): [True: 0, False: 17]
  ------------------
  156|      0|                break;
  157|      0|            }
  158|     17|            bcpKeyId = bcpKeyIdBuf->data();
  159|     17|        }
  160|       |
  161|     37|        bool isTZ = uprv_strcmp(legacyKeyId, "timezone") == 0;
  ------------------
  |  |   38|     37|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|     37|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  162|       |
  163|     37|        UHashtable* typeDataMap = uhash_open(uhash_hashIStringView, uhash_compareIStringView, nullptr, &sts);
  ------------------
  |  | 1030|     37|#define uhash_open U_ICU_ENTRY_POINT_RENAME(uhash_open)
  |  |  ------------------
  |  |  |  |  123|     37|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     37|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     37|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      UHashtable* typeDataMap = uhash_open(uhash_hashIStringView, uhash_compareIStringView, nullptr, &sts);
  ------------------
  |  | 1013|     37|#define uhash_hashIStringView U_ICU_ENTRY_POINT_RENAME(uhash_hashIStringView)
  |  |  ------------------
  |  |  |  |  123|     37|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     37|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     37|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      UHashtable* typeDataMap = uhash_open(uhash_hashIStringView, uhash_compareIStringView, nullptr, &sts);
  ------------------
  |  |  995|     37|#define uhash_compareIStringView U_ICU_ENTRY_POINT_RENAME(uhash_compareIStringView)
  |  |  ------------------
  |  |  |  |  123|     37|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     37|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     37|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  164|     37|        if (U_FAILURE(sts)) {
  ------------------
  |  Branch (164:13): [True: 0, False: 37]
  ------------------
  165|      0|            break;
  166|      0|        }
  167|     37|        uint32_t specialTypes = SPECIALTYPE_NONE;
  168|       |
  169|     37|        LocalUResourceBundlePointer typeAliasResByKey;
  170|     37|        LocalUResourceBundlePointer bcpTypeAliasResByKey;
  171|       |
  172|     37|        if (typeAliasRes.isValid()) {
  ------------------
  |  Branch (172:13): [True: 37, False: 0]
  ------------------
  173|     37|            tmpSts = U_ZERO_ERROR;
  174|     37|            typeAliasResByKey.adoptInstead(ures_getByKey(typeAliasRes.getAlias(), legacyKeyId, nullptr, &tmpSts));
  ------------------
  |  | 1661|     37|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|     37|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     37|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     37|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  175|     37|            if (U_FAILURE(tmpSts)) {
  ------------------
  |  Branch (175:17): [True: 35, False: 2]
  ------------------
  176|     35|                typeAliasResByKey.orphan();
  177|     35|            }
  178|     37|        }
  179|     37|        if (bcpTypeAliasRes.isValid()) {
  ------------------
  |  Branch (179:13): [True: 37, False: 0]
  ------------------
  180|     37|            tmpSts = U_ZERO_ERROR;
  181|     37|            bcpTypeAliasResByKey.adoptInstead(ures_getByKey(bcpTypeAliasRes.getAlias(), bcpKeyId, nullptr, &tmpSts));
  ------------------
  |  | 1661|     37|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|     37|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     37|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     37|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  182|     37|            if (U_FAILURE(tmpSts)) {
  ------------------
  |  Branch (182:17): [True: 35, False: 2]
  ------------------
  183|     35|                bcpTypeAliasResByKey.orphan();
  184|     35|            }
  185|     37|        }
  186|       |
  187|       |        // look up type map for the key, and walk through the mapping data
  188|     37|        LocalUResourceBundlePointer typeMapResByKey(ures_getByKey(typeMapRes.getAlias(), legacyKeyId, nullptr, &sts));
  ------------------
  |  | 1661|     37|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|     37|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     37|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     37|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  189|     37|        if (U_FAILURE(sts)) {
  ------------------
  |  Branch (189:13): [True: 0, False: 37]
  ------------------
  190|       |            // We fail here if typeMap does not have an entry corresponding to every entry in keyMap (should
  191|       |            // not happen for valid keyTypeData), or if ures_getByKeyfails fails for some other reason
  192|       |            // (e.g. data file cannot be loaded, using stubdata, over-aggressive data filtering has removed
  193|       |            // something like timezoneTypes.res, etc.). Error code is already set. See ICU-21669.
  194|      0|            UPRV_UNREACHABLE_ASSERT;
  ------------------
  |  |   55|      0|#   define UPRV_UNREACHABLE_ASSERT (void)0
  ------------------
  195|     37|        } else {
  196|     37|            LocalUResourceBundlePointer typeMapEntry;
  197|       |
  198|  1.09k|            while (ures_hasNext(typeMapResByKey.getAlias())) {
  ------------------
  |  | 1689|  1.09k|#define ures_hasNext U_ICU_ENTRY_POINT_RENAME(ures_hasNext)
  |  |  ------------------
  |  |  |  |  123|  1.09k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.09k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.09k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (198:20): [True: 1.05k, False: 37]
  ------------------
  199|  1.05k|                typeMapEntry.adoptInstead(ures_getNextResource(typeMapResByKey.getAlias(), typeMapEntry.orphan(), &sts));
  ------------------
  |  | 1672|  1.05k|#define ures_getNextResource U_ICU_ENTRY_POINT_RENAME(ures_getNextResource)
  |  |  ------------------
  |  |  |  |  123|  1.05k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.05k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.05k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  200|  1.05k|                if (U_FAILURE(sts)) {
  ------------------
  |  Branch (200:21): [True: 0, False: 1.05k]
  ------------------
  201|      0|                    break;
  202|      0|                }
  203|  1.05k|                const char* legacyTypeId = ures_getKey(typeMapEntry.getAlias());
  ------------------
  |  | 1666|  1.05k|#define ures_getKey U_ICU_ENTRY_POINT_RENAME(ures_getKey)
  |  |  ------------------
  |  |  |  |  123|  1.05k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.05k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.05k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  204|       |
  205|       |                // special types
  206|  1.05k|                if (uprv_strcmp(legacyTypeId, "CODEPOINTS") == 0) {
  ------------------
  |  |   38|  1.05k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  1.05k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (206:21): [True: 1, False: 1.05k]
  ------------------
  207|      1|                    specialTypes |= SPECIALTYPE_CODEPOINTS;
  208|      1|                    continue;
  209|      1|                }
  210|  1.05k|                if (uprv_strcmp(legacyTypeId, "REORDER_CODE") == 0) {
  ------------------
  |  |   38|  1.05k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  1.05k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (210:21): [True: 1, False: 1.05k]
  ------------------
  211|      1|                    specialTypes |= SPECIALTYPE_REORDER_CODE;
  212|      1|                    continue;
  213|      1|                }
  214|  1.05k|                if (uprv_strcmp(legacyTypeId, "RG_KEY_VALUE") == 0) {
  ------------------
  |  |   38|  1.05k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  1.05k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (214:21): [True: 1, False: 1.05k]
  ------------------
  215|      1|                    specialTypes |= SPECIALTYPE_RG_KEY_VALUE;
  216|      1|                    continue;
  217|      1|                }
  218|       |
  219|  1.05k|                if (isTZ) {
  ------------------
  |  Branch (219:21): [True: 447, False: 604]
  ------------------
  220|       |                    // a timezone key uses a colon instead of a slash in the resource.
  221|       |                    // e.g. America:Los_Angeles
  222|    447|                    if (uprv_strchr(legacyTypeId, ':') != nullptr) {
  ------------------
  |  |   40|    447|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|    447|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (222:25): [True: 447, False: 0]
  ------------------
  223|    447|                        icu::CharString* legacyTypeIdBuf =
  224|    447|                                gKeyTypeStringPool->create(legacyTypeId, sts);
  225|    447|                        if (legacyTypeIdBuf == nullptr) {
  ------------------
  |  Branch (225:29): [True: 0, False: 447]
  ------------------
  226|      0|                            sts = U_MEMORY_ALLOCATION_ERROR;
  227|      0|                            break;
  228|      0|                        }
  229|    447|                        if (U_FAILURE(sts)) {
  ------------------
  |  Branch (229:29): [True: 0, False: 447]
  ------------------
  230|      0|                            break;
  231|      0|                        }
  232|    447|                        std::replace(
  233|    447|                                legacyTypeIdBuf->data(),
  234|    447|                                legacyTypeIdBuf->data() + legacyTypeIdBuf->length(),
  235|    447|                                ':', '/');
  236|    447|                        legacyTypeId = legacyTypeIdBuf->data();
  237|    447|                    }
  238|    447|                }
  239|       |
  240|  1.05k|                UnicodeString uBcpTypeId = ures_getUnicodeString(typeMapEntry.getAlias(), &sts);
  241|  1.05k|                if (U_FAILURE(sts)) {
  ------------------
  |  Branch (241:21): [True: 0, False: 1.05k]
  ------------------
  242|      0|                    break;
  243|      0|                }
  244|       |
  245|       |                // empty value indicates that BCP type is same with the legacy type.
  246|  1.05k|                const char* bcpTypeId = legacyTypeId;
  247|  1.05k|                if (!uBcpTypeId.isEmpty()) {
  ------------------
  |  Branch (247:21): [True: 484, False: 567]
  ------------------
  248|    484|                    icu::CharString* bcpTypeIdBuf = gKeyTypeStringPool->create();
  249|    484|                    if (bcpTypeIdBuf == nullptr) {
  ------------------
  |  Branch (249:25): [True: 0, False: 484]
  ------------------
  250|      0|                        sts = U_MEMORY_ALLOCATION_ERROR;
  251|      0|                        break;
  252|      0|                    }
  253|    484|                    bcpTypeIdBuf->appendInvariantChars(uBcpTypeId, sts);
  254|    484|                    if (U_FAILURE(sts)) {
  ------------------
  |  Branch (254:25): [True: 0, False: 484]
  ------------------
  255|      0|                        break;
  256|      0|                    }
  257|    484|                    bcpTypeId = bcpTypeIdBuf->data();
  258|    484|                }
  259|       |
  260|       |                // Note: legacy type value should never be
  261|       |                // equivalent to bcp type value of a different
  262|       |                // type under the same key. So we use a single
  263|       |                // map for lookup.
  264|  1.05k|                LocExtType* t = gLocExtTypeEntries->create();
  265|  1.05k|                if (t == nullptr) {
  ------------------
  |  Branch (265:21): [True: 0, False: 1.05k]
  ------------------
  266|      0|                    sts = U_MEMORY_ALLOCATION_ERROR;
  267|      0|                    break;
  268|      0|                }
  269|  1.05k|                t->bcpId = bcpTypeId;
  270|  1.05k|                t->legacyId = legacyTypeId;
  271|       |
  272|  1.05k|                uhash_put(typeDataMap, &t->legacyId, t, &sts);
  ------------------
  |  | 1032|  1.05k|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|  1.05k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.05k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.05k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  273|  1.05k|                if (bcpTypeId != legacyTypeId) {
  ------------------
  |  Branch (273:21): [True: 484, False: 567]
  ------------------
  274|       |                    // different type value
  275|    484|                    uhash_put(typeDataMap, &t->bcpId, t, &sts);
  ------------------
  |  | 1032|    484|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|    484|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    484|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    484|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  276|    484|                }
  277|  1.05k|                if (U_FAILURE(sts)) {
  ------------------
  |  Branch (277:21): [True: 0, False: 1.05k]
  ------------------
  278|      0|                    break;
  279|      0|                }
  280|       |
  281|       |                // also put aliases in the map
  282|  1.05k|                if (typeAliasResByKey.isValid()) {
  ------------------
  |  Branch (282:21): [True: 452, False: 599]
  ------------------
  283|    452|                    LocalUResourceBundlePointer typeAliasDataEntry;
  284|       |
  285|    452|                    ures_resetIterator(typeAliasResByKey.getAlias());
  ------------------
  |  | 1698|    452|#define ures_resetIterator U_ICU_ENTRY_POINT_RENAME(ures_resetIterator)
  |  |  ------------------
  |  |  |  |  123|    452|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    452|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    452|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  286|  69.2k|                    while (ures_hasNext(typeAliasResByKey.getAlias()) && U_SUCCESS(sts)) {
  ------------------
  |  | 1689|  69.2k|#define ures_hasNext U_ICU_ENTRY_POINT_RENAME(ures_hasNext)
  |  |  ------------------
  |  |  |  |  123|  69.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  69.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  69.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (286:28): [True: 68.8k, False: 452]
  |  Branch (286:74): [True: 68.8k, False: 0]
  ------------------
  287|  68.8k|                        int32_t toLen;
  288|  68.8k|                        typeAliasDataEntry.adoptInstead(ures_getNextResource(typeAliasResByKey.getAlias(), typeAliasDataEntry.orphan(), &sts));
  ------------------
  |  | 1672|  68.8k|#define ures_getNextResource U_ICU_ENTRY_POINT_RENAME(ures_getNextResource)
  |  |  ------------------
  |  |  |  |  123|  68.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  68.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  68.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  289|  68.8k|                        const char16_t* to = ures_getString(typeAliasDataEntry.getAlias(), &toLen, &sts);
  ------------------
  |  | 1675|  68.8k|#define ures_getString U_ICU_ENTRY_POINT_RENAME(ures_getString)
  |  |  ------------------
  |  |  |  |  123|  68.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  68.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  68.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  290|  68.8k|                        if (U_FAILURE(sts)) {
  ------------------
  |  Branch (290:29): [True: 0, False: 68.8k]
  ------------------
  291|      0|                            break;
  292|      0|                        }
  293|       |                        // check if this is an alias of canonical legacy type
  294|  68.8k|                        if (uprv_compareInvWithUChar(
  ------------------
  |  |  329|  68.8k|#   define uprv_compareInvWithUChar uprv_compareInvAscii
  |  |  ------------------
  |  |  |  | 1402|  68.8k|#define uprv_compareInvAscii U_ICU_ENTRY_POINT_RENAME(uprv_compareInvAscii)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  68.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  68.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  68.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (294:29): [True: 155, False: 68.6k]
  ------------------
  295|  68.8k|                                nullptr,
  296|  68.8k|                                t->legacyId.data(),
  297|  68.8k|                                static_cast<int32_t>(t->legacyId.size()),
  298|  68.8k|                                to,
  299|  68.8k|                                toLen) == 0) {
  300|    155|                            const char* from = ures_getKey(typeAliasDataEntry.getAlias());
  ------------------
  |  | 1666|    155|#define ures_getKey U_ICU_ENTRY_POINT_RENAME(ures_getKey)
  |  |  ------------------
  |  |  |  |  123|    155|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    155|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    155|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  301|    155|                            TypeAlias* alias = gTypeAliasEntries->create(TypeAlias{{}, from});
  302|    155|                            if (isTZ) {
  ------------------
  |  Branch (302:33): [True: 154, False: 1]
  ------------------
  303|       |                                // replace colon with slash if necessary
  304|    154|                                if (uprv_strchr(from, ':') != nullptr) {
  ------------------
  |  |   40|    154|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|    154|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (304:37): [True: 109, False: 45]
  ------------------
  305|    109|                                    icu::CharString* fromBuf =
  306|    109|                                            gKeyTypeStringPool->create(from, sts);
  307|    109|                                    if (fromBuf == nullptr) {
  ------------------
  |  Branch (307:41): [True: 0, False: 109]
  ------------------
  308|      0|                                        sts = U_MEMORY_ALLOCATION_ERROR;
  309|      0|                                        break;
  310|      0|                                    }
  311|    109|                                    if (U_FAILURE(sts)) {
  ------------------
  |  Branch (311:41): [True: 0, False: 109]
  ------------------
  312|      0|                                        break;
  313|      0|                                    }
  314|    109|                                    std::replace(
  315|    109|                                            fromBuf->data(),
  316|    109|                                            fromBuf->data() + fromBuf->length(),
  317|    109|                                            ':', '/');
  318|    109|                                    alias->from = fromBuf->toStringPiece();
  319|    109|                                }
  320|    154|                            }
  321|    155|                            uhash_put(typeDataMap, &alias->from, t, &sts);
  ------------------
  |  | 1032|    155|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|    155|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    155|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    155|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  322|    155|                        }
  323|  68.8k|                    }
  324|    452|                    if (U_FAILURE(sts)) {
  ------------------
  |  Branch (324:25): [True: 0, False: 452]
  ------------------
  325|      0|                        break;
  326|      0|                    }
  327|    452|                }
  328|       |
  329|  1.05k|                if (bcpTypeAliasResByKey.isValid()) {
  ------------------
  |  Branch (329:21): [True: 465, False: 586]
  ------------------
  330|    465|                    LocalUResourceBundlePointer bcpTypeAliasDataEntry;
  331|       |
  332|    465|                    ures_resetIterator(bcpTypeAliasResByKey.getAlias());
  ------------------
  |  | 1698|    465|#define ures_resetIterator U_ICU_ENTRY_POINT_RENAME(ures_resetIterator)
  |  |  ------------------
  |  |  |  |  123|    465|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    465|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    465|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  333|  10.3k|                    while (ures_hasNext(bcpTypeAliasResByKey.getAlias()) && U_SUCCESS(sts)) {
  ------------------
  |  | 1689|  10.3k|#define ures_hasNext U_ICU_ENTRY_POINT_RENAME(ures_hasNext)
  |  |  ------------------
  |  |  |  |  123|  10.3k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  10.3k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  10.3k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (333:28): [True: 9.85k, False: 465]
  |  Branch (333:77): [True: 9.85k, False: 0]
  ------------------
  334|  9.85k|                        int32_t toLen;
  335|  9.85k|                        bcpTypeAliasDataEntry.adoptInstead(ures_getNextResource(bcpTypeAliasResByKey.getAlias(), bcpTypeAliasDataEntry.orphan(), &sts));
  ------------------
  |  | 1672|  9.85k|#define ures_getNextResource U_ICU_ENTRY_POINT_RENAME(ures_getNextResource)
  |  |  ------------------
  |  |  |  |  123|  9.85k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.85k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.85k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  336|  9.85k|                        const char16_t* to = ures_getString(bcpTypeAliasDataEntry.getAlias(), &toLen, &sts);
  ------------------
  |  | 1675|  9.85k|#define ures_getString U_ICU_ENTRY_POINT_RENAME(ures_getString)
  |  |  ------------------
  |  |  |  |  123|  9.85k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.85k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.85k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  337|  9.85k|                        if (U_FAILURE(sts)) {
  ------------------
  |  Branch (337:29): [True: 0, False: 9.85k]
  ------------------
  338|      0|                            break;
  339|      0|                        }
  340|       |                        // check if this is an alias of bcp type
  341|  9.85k|                        if (uprv_compareInvWithUChar(
  ------------------
  |  |  329|  9.85k|#   define uprv_compareInvWithUChar uprv_compareInvAscii
  |  |  ------------------
  |  |  |  | 1402|  9.85k|#define uprv_compareInvAscii U_ICU_ENTRY_POINT_RENAME(uprv_compareInvAscii)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  9.85k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  9.85k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  9.85k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (341:29): [True: 23, False: 9.82k]
  ------------------
  342|  9.85k|                                nullptr,
  343|  9.85k|                                t->bcpId.data(),
  344|  9.85k|                                static_cast<int32_t>(t->bcpId.size()),
  345|  9.85k|                                to,
  346|  9.85k|                                toLen) == 0) {
  347|     23|                            const char* from = ures_getKey(bcpTypeAliasDataEntry.getAlias());
  ------------------
  |  | 1666|     23|#define ures_getKey U_ICU_ENTRY_POINT_RENAME(ures_getKey)
  |  |  ------------------
  |  |  |  |  123|     23|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     23|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     23|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  348|     23|                            TypeAlias* alias = gTypeAliasEntries->create(TypeAlias{{}, from});
  349|     23|                            uhash_put(typeDataMap, &alias->from, t, &sts);
  ------------------
  |  | 1032|     23|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|     23|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     23|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     23|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  350|     23|                        }
  351|  9.85k|                    }
  352|    465|                    if (U_FAILURE(sts)) {
  ------------------
  |  Branch (352:25): [True: 0, False: 465]
  ------------------
  353|      0|                        break;
  354|      0|                    }
  355|    465|                }
  356|  1.05k|            }
  357|     37|        }
  358|     37|        if (U_FAILURE(sts)) {
  ------------------
  |  Branch (358:13): [True: 0, False: 37]
  ------------------
  359|      0|            break;
  360|      0|        }
  361|       |
  362|     37|        LocExtKeyData* keyData = gLocExtKeyDataEntries->create();
  363|     37|        if (keyData == nullptr) {
  ------------------
  |  Branch (363:13): [True: 0, False: 37]
  ------------------
  364|      0|            sts = U_MEMORY_ALLOCATION_ERROR;
  365|      0|            break;
  366|      0|        }
  367|     37|        keyData->bcpId = bcpKeyId;
  368|     37|        keyData->legacyId = legacyKeyId;
  369|     37|        keyData->specialTypes = specialTypes;
  370|     37|        keyData->typeMap.adoptInstead(typeDataMap);
  371|       |
  372|     37|        uhash_put(gLocExtKeyMap, &keyData->legacyId, keyData, &sts);
  ------------------
  |  | 1032|     37|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|     37|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     37|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     37|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  373|     37|        if (legacyKeyId != bcpKeyId) {
  ------------------
  |  Branch (373:13): [True: 17, False: 20]
  ------------------
  374|       |            // different key value
  375|     17|            uhash_put(gLocExtKeyMap, &keyData->bcpId, keyData, &sts);
  ------------------
  |  | 1032|     17|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|     17|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     17|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     17|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  376|     17|        }
  377|     37|        if (U_FAILURE(sts)) {
  ------------------
  |  Branch (377:13): [True: 0, False: 37]
  ------------------
  378|      0|            break;
  379|      0|        }
  380|     37|    }
  381|      1|}
uloc_keytype.cpp:_ZN12_GLOBAL__N_123isSpecialTypeCodepointsENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  394|  1.42k|isSpecialTypeCodepoints(std::string_view val) {
  395|  1.42k|    int32_t subtagLen = 0;
  396|  6.25k|    for (char c : val) {
  ------------------
  |  Branch (396:17): [True: 6.25k, False: 772]
  ------------------
  397|  6.25k|        if (c == '-') {
  ------------------
  |  Branch (397:13): [True: 727, False: 5.53k]
  ------------------
  398|    727|            if (subtagLen < 4 || subtagLen > 6) {
  ------------------
  |  Branch (398:17): [True: 225, False: 502]
  |  Branch (398:34): [True: 198, False: 304]
  ------------------
  399|    423|                return false;
  400|    423|            }
  401|    304|            subtagLen = 0;
  402|  5.53k|        } else if ((c >= '0' && c <= '9') ||
  ------------------
  |  Branch (402:21): [True: 5.53k, False: 0]
  |  Branch (402:33): [True: 1.61k, False: 3.91k]
  ------------------
  403|  5.53k|                    (c >= 'A' && c <= 'F') || // A-F/a-f are contiguous
  ------------------
  |  Branch (403:22): [True: 3.91k, False: 0]
  |  Branch (403:34): [True: 0, False: 3.91k]
  ------------------
  404|  5.53k|                    (c >= 'a' && c <= 'f')) { // also in EBCDIC
  ------------------
  |  Branch (404:22): [True: 3.91k, False: 0]
  |  Branch (404:34): [True: 3.68k, False: 229]
  ------------------
  405|  5.30k|            subtagLen++;
  406|  5.30k|        } else {
  407|    229|            return false;
  408|    229|        }
  409|  6.25k|    }
  410|    772|    return subtagLen >= 4 && subtagLen <= 6;
  ------------------
  |  Branch (410:12): [True: 214, False: 558]
  |  Branch (410:30): [True: 205, False: 9]
  ------------------
  411|  1.42k|}
uloc_keytype.cpp:_ZN12_GLOBAL__N_124isSpecialTypeReorderCodeENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  414|    737|isSpecialTypeReorderCode(std::string_view val) {
  415|    737|    int32_t subtagLen = 0;
  416|  40.7k|    for (char c : val) {
  ------------------
  |  Branch (416:17): [True: 40.7k, False: 495]
  ------------------
  417|  40.7k|        if (c == '-') {
  ------------------
  |  Branch (417:13): [True: 7.43k, False: 33.2k]
  ------------------
  418|  7.43k|            if (subtagLen < 3 || subtagLen > 8) {
  ------------------
  |  Branch (418:17): [True: 0, False: 7.43k]
  |  Branch (418:34): [True: 0, False: 7.43k]
  ------------------
  419|      0|                return false;
  420|      0|            }
  421|  7.43k|            subtagLen = 0;
  422|  33.2k|        } else if (uprv_isASCIILetter(c)) {
  ------------------
  |  | 1514|  33.2k|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|  33.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  33.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  33.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (422:20): [True: 33.0k, False: 242]
  ------------------
  423|  33.0k|            subtagLen++;
  424|  33.0k|        } else {
  425|    242|            return false;
  426|    242|        }
  427|  40.7k|    }
  428|    495|    return subtagLen >= 3 && subtagLen <= 8;
  ------------------
  |  Branch (428:12): [True: 495, False: 0]
  |  Branch (428:30): [True: 495, False: 0]
  ------------------
  429|    737|}
uloc_keytype.cpp:_ZN12_GLOBAL__N_123isSpecialTypeRgKeyValueENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  432|    769|isSpecialTypeRgKeyValue(std::string_view val) {
  433|    769|    int32_t subtagLen = 0;
  434|  2.53k|    for (char c : val) {
  ------------------
  |  Branch (434:17): [True: 2.53k, False: 291]
  ------------------
  435|  2.53k|        if ((subtagLen < 2 && uprv_isASCIILetter(c)) ||
  ------------------
  |  | 1514|  1.49k|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|  1.49k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.49k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.49k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (435:14): [True: 1.49k, False: 1.03k]
  |  Branch (435:31): [True: 1.30k, False: 198]
  ------------------
  436|  2.53k|            (subtagLen >= 2 && (c == 'Z' || c == 'z'))) {
  ------------------
  |  Branch (436:14): [True: 1.03k, False: 198]
  |  Branch (436:33): [True: 0, False: 1.03k]
  |  Branch (436:45): [True: 752, False: 280]
  ------------------
  437|  2.05k|            subtagLen++;
  438|  2.05k|        } else {
  439|    478|            return false;
  440|    478|        }
  441|  2.53k|    }
  442|    291|    return subtagLen == 6;
  443|    769|}

_Z25ultag_isLanguageSubtag_78PKci:
  431|  3.77k|ultag_isLanguageSubtag(const char* s, int32_t len) {
  432|       |    /*
  433|       |     * unicode_language_subtag = alpha{2,3} | alpha{5,8};
  434|       |     * NOTE: Per ICUTC 2019/01/23- accepting alpha 4
  435|       |     * See ICU-20372
  436|       |     */
  437|  3.77k|    if (len < 0) {
  ------------------
  |  Branch (437:9): [True: 0, False: 3.77k]
  ------------------
  438|      0|        len = static_cast<int32_t>(uprv_strlen(s));
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  439|      0|    }
  440|  3.77k|    if (len >= 2 && len <= 8 && _isAlphaString(s, len)) {
  ------------------
  |  Branch (440:9): [True: 3.01k, False: 762]
  |  Branch (440:21): [True: 2.70k, False: 308]
  |  Branch (440:33): [True: 2.33k, False: 371]
  ------------------
  441|  2.33k|        return true;
  442|  2.33k|    }
  443|  1.44k|    return false;
  444|  3.77k|}
_Z23ultag_isScriptSubtag_78PKci:
  466|  2.33k|ultag_isScriptSubtag(const char* s, int32_t len) {
  467|       |    /*
  468|       |     * script        = 4ALPHA              ; ISO 15924 code
  469|       |     */
  470|  2.33k|    if (len < 0) {
  ------------------
  |  Branch (470:9): [True: 0, False: 2.33k]
  ------------------
  471|      0|        len = static_cast<int32_t>(uprv_strlen(s));
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  472|      0|    }
  473|  2.33k|    if (len == 4 && _isAlphaString(s, len)) {
  ------------------
  |  Branch (473:9): [True: 158, False: 2.17k]
  |  Branch (473:21): [True: 47, False: 111]
  ------------------
  474|     47|        return true;
  475|     47|    }
  476|  2.28k|    return false;
  477|  2.33k|}
_Z23ultag_isRegionSubtag_78PKci:
  480|  2.33k|ultag_isRegionSubtag(const char* s, int32_t len) {
  481|       |    /*
  482|       |     * region        = 2ALPHA              ; ISO 3166-1 code
  483|       |     *               / 3DIGIT              ; UN M.49 code
  484|       |     */
  485|  2.33k|    if (len < 0) {
  ------------------
  |  Branch (485:9): [True: 0, False: 2.33k]
  ------------------
  486|      0|        len = static_cast<int32_t>(uprv_strlen(s));
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  487|      0|    }
  488|  2.33k|    if (len == 2 && _isAlphaString(s, len)) {
  ------------------
  |  Branch (488:9): [True: 448, False: 1.88k]
  |  Branch (488:21): [True: 436, False: 12]
  ------------------
  489|    436|        return true;
  490|    436|    }
  491|  1.89k|    if (len == 3 && _isNumericString(s, len)) {
  ------------------
  |  Branch (491:9): [True: 33, False: 1.86k]
  |  Branch (491:21): [True: 10, False: 23]
  ------------------
  492|     10|        return true;
  493|     10|    }
  494|  1.88k|    return false;
  495|  1.89k|}
_Z27ultag_isUnicodeLocaleKey_78PKci:
  631|  54.3k|ultag_isUnicodeLocaleKey(const char* s, int32_t len) {
  632|       |    /*
  633|       |     * key = alphanum alpha ;
  634|       |     */
  635|  54.3k|    if (len < 0) {
  ------------------
  |  Branch (635:9): [True: 0, False: 54.3k]
  ------------------
  636|      0|        len = static_cast<int32_t>(uprv_strlen(s));
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  637|      0|    }
  638|  54.3k|    if (len == 2 && (ISALPHA(*s) || ISNUMERIC(*s)) && ISALPHA(s[1])) {
  ------------------
  |  Branch (638:9): [True: 30.1k, False: 24.1k]
  |  Branch (638:22): [True: 21.5k, False: 8.58k]
  |  Branch (638:37): [True: 8.58k, False: 0]
  |  Branch (638:55): [True: 24.1k, False: 6.02k]
  ------------------
  639|  24.1k|        return true;
  640|  24.1k|    }
  641|  30.1k|    return false;
  642|  54.3k|}
_Z25ulocimp_forLanguageTag_78PKciPiR10UErrorCode:
 2675|  4.87k|                       UErrorCode& status) {
 2676|  4.87k|    return icu::ByteSinkUtil::viaByteSinkToCharString(
 2677|  4.87k|        [&](icu::ByteSink& sink, UErrorCode& status) {
 2678|  4.87k|            ulocimp_forLanguageTag(langtag, tagLen, sink, parsedLength, status);
 2679|  4.87k|        },
 2680|  4.87k|        status);
 2681|  4.87k|}
_Z25ulocimp_forLanguageTag_78PKciRN6icu_788ByteSinkEPiR10UErrorCode:
 2688|  4.87k|                       UErrorCode& status) {
 2689|  4.87k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (2689:9): [True: 0, False: 4.87k]
  ------------------
 2690|       |
 2691|  4.87k|    bool isEmpty = true;
 2692|  4.87k|    const char *subtag, *p;
 2693|  4.87k|    int32_t len;
 2694|  4.87k|    int32_t i, n;
 2695|  4.87k|    bool noRegion = true;
 2696|       |
 2697|  4.87k|    icu::LocalULanguageTagPointer lt(ultag_parse(langtag, tagLen, parsedLength, status));
 2698|  4.87k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2698:9): [True: 0, False: 4.87k]
  ------------------
 2699|      0|        return;
 2700|      0|    }
 2701|       |
 2702|       |    /* language */
 2703|  4.87k|    subtag = ultag_getExtlangSize(lt.getAlias()) > 0 ? ultag_getExtlang(lt.getAlias(), 0) : ultag_getLanguage(lt.getAlias());
  ------------------
  |  Branch (2703:14): [True: 88, False: 4.78k]
  ------------------
 2704|  4.87k|    if (uprv_compareInvCharsAsAscii(subtag, LANG_UND) != 0) {
  ------------------
  |  |  153|  4.87k|#   define uprv_compareInvCharsAsAscii(s1, s2) uprv_strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |   38|  4.87k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  |  |  ------------------
  |  |  |  |  |  |  393|  4.87k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2704:9): [True: 4.77k, False: 96]
  ------------------
 2705|  4.77k|        len = static_cast<int32_t>(uprv_strlen(subtag));
  ------------------
  |  |   37|  4.77k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  4.77k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2706|  4.77k|        if (len > 0) {
  ------------------
  |  Branch (2706:13): [True: 2.24k, False: 2.53k]
  ------------------
 2707|  2.24k|            sink.Append(subtag, len);
 2708|  2.24k|            isEmpty = false;
 2709|  2.24k|        }
 2710|  4.77k|    }
 2711|       |
 2712|       |    /* script */
 2713|  4.87k|    subtag = ultag_getScript(lt.getAlias());
 2714|  4.87k|    len = static_cast<int32_t>(uprv_strlen(subtag));
  ------------------
  |  |   37|  4.87k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  4.87k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2715|  4.87k|    if (len > 0) {
  ------------------
  |  Branch (2715:9): [True: 47, False: 4.82k]
  ------------------
 2716|     47|        sink.Append("_", 1);
 2717|     47|        isEmpty = false;
 2718|       |
 2719|       |        /* write out the script in title case */
 2720|     47|        char c = uprv_toupper(*subtag);
  ------------------
  |  | 1547|     47|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|     47|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     47|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     47|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2721|     47|        sink.Append(&c, 1);
 2722|     47|        sink.Append(subtag + 1, len - 1);
 2723|     47|    }
 2724|       |
 2725|       |    /* region */
 2726|  4.87k|    subtag = ultag_getRegion(lt.getAlias());
 2727|  4.87k|    len = static_cast<int32_t>(uprv_strlen(subtag));
  ------------------
  |  |   37|  4.87k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  4.87k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2728|  4.87k|    if (len > 0) {
  ------------------
  |  Branch (2728:9): [True: 446, False: 4.42k]
  ------------------
 2729|    446|        sink.Append("_", 1);
 2730|    446|        isEmpty = false;
 2731|       |
 2732|       |        /* write out the region in upper case */
 2733|    446|        p = subtag;
 2734|  1.34k|        while (*p) {
  ------------------
  |  Branch (2734:16): [True: 902, False: 446]
  ------------------
 2735|    902|            char c = uprv_toupper(*p);
  ------------------
  |  | 1547|    902|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|    902|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    902|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    902|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2736|    902|            sink.Append(&c, 1);
 2737|    902|            p++;
 2738|    902|        }
 2739|    446|        noRegion = false;
 2740|    446|    }
 2741|       |
 2742|       |    /* variants */
 2743|  4.87k|    _sortVariants(lt.getAlias()->variants);
 2744|  4.87k|    n = ultag_getVariantsSize(lt.getAlias());
 2745|  4.87k|    if (n > 0) {
  ------------------
  |  Branch (2745:9): [True: 434, False: 4.43k]
  ------------------
 2746|    434|        if (noRegion) {
  ------------------
  |  Branch (2746:13): [True: 253, False: 181]
  ------------------
 2747|    253|            sink.Append("_", 1);
 2748|    253|            isEmpty = false;
 2749|    253|        }
 2750|       |
 2751|  4.34k|        for (i = 0; i < n; i++) {
  ------------------
  |  Branch (2751:21): [True: 3.91k, False: 434]
  ------------------
 2752|  3.91k|            subtag = ultag_getVariant(lt.getAlias(), i);
 2753|  3.91k|            sink.Append("_", 1);
 2754|       |
 2755|       |            /* write out the variant in upper case */
 2756|  3.91k|            p = subtag;
 2757|  16.3k|            while (*p) {
  ------------------
  |  Branch (2757:20): [True: 12.4k, False: 3.91k]
  ------------------
 2758|  12.4k|                char c = uprv_toupper(*p);
  ------------------
  |  | 1547|  12.4k|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|  12.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2759|  12.4k|                sink.Append(&c, 1);
 2760|  12.4k|                p++;
 2761|  12.4k|            }
 2762|  3.91k|        }
 2763|    434|    }
 2764|       |
 2765|       |    /* keywords */
 2766|  4.87k|    n = ultag_getExtensionsSize(lt.getAlias());
 2767|  4.87k|    subtag = ultag_getPrivateUse(lt.getAlias());
 2768|  4.87k|    if (n > 0 || uprv_strlen(subtag) > 0) {
  ------------------
  |  |   37|  2.94k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  2.94k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (2768:9): [True: 1.92k, False: 2.94k]
  |  Branch (2768:18): [True: 115, False: 2.83k]
  ------------------
 2769|  2.03k|        if (isEmpty && n > 0) {
  ------------------
  |  Branch (2769:13): [True: 93, False: 1.94k]
  |  Branch (2769:24): [True: 3, False: 90]
  ------------------
 2770|       |            /* need a language */
 2771|      3|            sink.Append(LANG_UND, LANG_UND_LEN);
  ------------------
  |  |   87|      3|#define LANG_UND_LEN 3
  ------------------
 2772|      3|        }
 2773|  2.03k|        _appendKeywords(lt.getAlias(), sink, status);
 2774|  2.03k|    }
 2775|  4.87k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_114_isAlphaStringEPKci:
  385|  3.46k|_isAlphaString(const char* s, int32_t len) {
  386|  3.46k|    int32_t i;
  387|  10.2k|    for (i = 0; i < len; i++) {
  ------------------
  |  Branch (387:17): [True: 7.29k, False: 2.93k]
  ------------------
  388|  7.29k|        if (!ISALPHA(*(s + i))) {
  ------------------
  |  Branch (388:13): [True: 527, False: 6.76k]
  ------------------
  389|    527|            return false;
  390|    527|        }
  391|  7.29k|    }
  392|  2.93k|    return true;
  393|  3.46k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_116_isNumericStringEPKci:
  396|     33|_isNumericString(const char* s, int32_t len) {
  397|     33|    int32_t i;
  398|     78|    for (i = 0; i < len; i++) {
  ------------------
  |  Branch (398:17): [True: 68, False: 10]
  ------------------
  399|     68|        if (!ISNUMERIC(*(s + i))) {
  ------------------
  |  Branch (399:13): [True: 23, False: 45]
  ------------------
  400|     23|            return false;
  401|     23|        }
  402|     68|    }
  403|     10|    return true;
  404|     33|}
uloc_tag.cpp:_ZN12_GLOBAL__N_116_isVariantSubtagEPKci:
  500|  6.33k|_isVariantSubtag(const char* s, int32_t len) {
  501|       |    /*
  502|       |     * variant       = 5*8alphanum         ; registered variants
  503|       |     *               / (DIGIT 3alphanum)
  504|       |     */
  505|  6.33k|    if (len < 0) {
  ------------------
  |  Branch (505:9): [True: 0, False: 6.33k]
  ------------------
  506|      0|        len = static_cast<int32_t>(uprv_strlen(s));
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  507|      0|    }
  508|  6.33k|    if (_isAlphaNumericStringLimitedLength(s, len, 5, 8)) {
  ------------------
  |  Branch (508:9): [True: 1.03k, False: 5.30k]
  ------------------
  509|  1.03k|        return true;
  510|  1.03k|    }
  511|  5.30k|    if (len == 4 && ISNUMERIC(*s) && _isAlphaNumericString(s + 1, 3)) {
  ------------------
  |  Branch (511:9): [True: 571, False: 4.73k]
  |  Branch (511:21): [True: 332, False: 239]
  |  Branch (511:38): [True: 316, False: 16]
  ------------------
  512|    316|        return true;
  513|    316|    }
  514|  4.98k|    return false;
  515|  5.30k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_121_isAlphaNumericStringEPKci:
  407|   102k|_isAlphaNumericString(const char* s, int32_t len) {
  408|   102k|    int32_t i;
  409|   381k|    for (i = 0; i < len; i++) {
  ------------------
  |  Branch (409:17): [True: 279k, False: 102k]
  ------------------
  410|   279k|        if (!ISALPHA(*(s + i)) && !ISNUMERIC(*(s + i))) {
  ------------------
  |  Branch (410:13): [True: 47.8k, False: 231k]
  |  Branch (410:35): [True: 260, False: 47.5k]
  ------------------
  411|    260|            return false;
  412|    260|        }
  413|   279k|    }
  414|   102k|    return true;
  415|   102k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_118_isExtensionSubtagEPKci:
  586|  85.2k|_isExtensionSubtag(const char* s, int32_t len) {
  587|       |    /*
  588|       |     * extension     = singleton 1*("-" (2*8alphanum))
  589|       |     */
  590|  85.2k|    return _isAlphaNumericStringLimitedLength(s, len, 2, 8);
  591|  85.2k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_124_isPrivateuseValueSubtagEPKci:
  603|  13.7k|_isPrivateuseValueSubtag(const char* s, int32_t len) {
  604|       |    /*
  605|       |     * privateuse    = "x" 1*("-" (1*8alphanum))
  606|       |     */
  607|  13.7k|    return _isAlphaNumericStringLimitedLength(s, len, 1, 8);
  608|  13.7k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_134_isAlphaNumericStringLimitedLengthEPKciii:
  418|   108k|_isAlphaNumericStringLimitedLength(const char* s, int32_t len, int32_t min, int32_t max) {
  419|   108k|    if (len < 0) {
  ------------------
  |  Branch (419:9): [True: 0, False: 108k]
  ------------------
  420|      0|        len = static_cast<int32_t>(uprv_strlen(s));
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  421|      0|    }
  422|   108k|    if (len >= min && len <= max && _isAlphaNumericString(s, len)) {
  ------------------
  |  Branch (422:9): [True: 102k, False: 5.77k]
  |  Branch (422:23): [True: 102k, False: 104]
  |  Branch (422:37): [True: 101k, False: 244]
  ------------------
  423|   101k|        return true;
  424|   101k|    }
  425|  6.12k|    return false;
  426|   108k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_19ISNUMERICEc:
   75|  57.5k|inline bool ISNUMERIC(char c) { return c >= '0' && c <= '9'; }
  ------------------
  |  Branch (75:40): [True: 57.2k, False: 296]
  |  Branch (75:52): [True: 56.9k, False: 279]
  ------------------
uloc_tag.cpp:_ZN12_GLOBAL__N_117_addVariantToListEPPNS_16VariantListEntryEN6icu_7812LocalPointerIS0_EE:
  872|  3.91k|_addVariantToList(VariantListEntry **first, icu::LocalPointer<VariantListEntry> var) {
  873|  3.91k|    if (*first == nullptr) {
  ------------------
  |  Branch (873:9): [True: 434, False: 3.48k]
  ------------------
  874|    434|        var->next = nullptr;
  875|    434|        *first = var.orphan();
  876|  3.48k|    } else {
  877|  3.48k|        VariantListEntry *prev, *cur;
  878|  3.48k|        int32_t cmp;
  879|       |
  880|       |        /* variants order should be preserved */
  881|  3.48k|        prev = nullptr;
  882|  3.48k|        cur = *first;
  883|  52.4k|        while (true) {
  ------------------
  |  Branch (883:16): [Folded - Ignored]
  ------------------
  884|  52.4k|            if (cur == nullptr) {
  ------------------
  |  Branch (884:17): [True: 3.47k, False: 48.9k]
  ------------------
  885|  3.47k|                var->next = nullptr;
  886|  3.47k|                prev->next = var.orphan();
  887|  3.47k|                break;
  888|  3.47k|            }
  889|       |
  890|       |            /* Checking for duplicate variant */
  891|  48.9k|            cmp = uprv_compareInvCharsAsAscii(var->variant, cur->variant);
  ------------------
  |  |  153|  48.9k|#   define uprv_compareInvCharsAsAscii(s1, s2) uprv_strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |   38|  48.9k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  |  |  ------------------
  |  |  |  |  |  |  393|  48.9k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  892|  48.9k|            if (cmp == 0) {
  ------------------
  |  Branch (892:17): [True: 7, False: 48.9k]
  ------------------
  893|       |                /* duplicated variant */
  894|      7|                return false;
  895|      7|            }
  896|  48.9k|            prev = cur;
  897|  48.9k|            cur = cur->next;
  898|  48.9k|        }
  899|  3.48k|    }
  900|       |
  901|  3.91k|    return true;
  902|  3.91k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_119_addAttributeToListEPPNS_18AttributeListEntryES1_:
  905|  6.12k|_addAttributeToList(AttributeListEntry **first, AttributeListEntry *attr) {
  906|  6.12k|    bool bAdded = true;
  907|       |
  908|  6.12k|    if (*first == nullptr) {
  ------------------
  |  Branch (908:9): [True: 626, False: 5.49k]
  ------------------
  909|    626|        attr->next = nullptr;
  910|    626|        *first = attr;
  911|  5.49k|    } else {
  912|  5.49k|        AttributeListEntry *prev, *cur;
  913|  5.49k|        int32_t cmp;
  914|       |
  915|       |        /* reorder variants in alphabetical order */
  916|  5.49k|        prev = nullptr;
  917|  5.49k|        cur = *first;
  918|  42.3k|        while (true) {
  ------------------
  |  Branch (918:16): [Folded - Ignored]
  ------------------
  919|  42.3k|            if (cur == nullptr) {
  ------------------
  |  Branch (919:17): [True: 422, False: 41.8k]
  ------------------
  920|    422|                prev->next = attr;
  921|    422|                attr->next = nullptr;
  922|    422|                break;
  923|    422|            }
  924|  41.8k|            cmp = uprv_compareInvCharsAsAscii(attr->attribute, cur->attribute);
  ------------------
  |  |  153|  41.8k|#   define uprv_compareInvCharsAsAscii(s1, s2) uprv_strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |   38|  41.8k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  |  |  ------------------
  |  |  |  |  |  |  393|  41.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  925|  41.8k|            if (cmp < 0) {
  ------------------
  |  Branch (925:17): [True: 1.43k, False: 40.4k]
  ------------------
  926|  1.43k|                if (prev == nullptr) {
  ------------------
  |  Branch (926:21): [True: 268, False: 1.16k]
  ------------------
  927|    268|                    *first = attr;
  928|  1.16k|                } else {
  929|  1.16k|                    prev->next = attr;
  930|  1.16k|                }
  931|  1.43k|                attr->next = cur;
  932|  1.43k|                break;
  933|  1.43k|            }
  934|  40.4k|            if (cmp == 0) {
  ------------------
  |  Branch (934:17): [True: 3.64k, False: 36.8k]
  ------------------
  935|       |                /* duplicated variant */
  936|  3.64k|                bAdded = false;
  937|  3.64k|                break;
  938|  3.64k|            }
  939|  36.8k|            prev = cur;
  940|  36.8k|            cur = cur->next;
  941|  36.8k|        }
  942|  5.49k|    }
  943|       |
  944|  6.12k|    return bAdded;
  945|  6.12k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_121_isExtensionSingletonEPKci:
  566|  85.6k|_isExtensionSingleton(const char* s, int32_t len) {
  567|       |    /*
  568|       |     * extension     = singleton 1*("-" (2*8alphanum))
  569|       |     *
  570|       |     * singleton     = DIGIT               ; 0 - 9
  571|       |     *               / %x41-57             ; A - W
  572|       |     *               / %x59-5A             ; Y - Z
  573|       |     *               / %x61-77             ; a - w
  574|       |     *               / %x79-7A             ; y - z
  575|       |     */
  576|  85.6k|    if (len < 0) {
  ------------------
  |  Branch (576:9): [True: 0, False: 85.6k]
  ------------------
  577|      0|        len = static_cast<int32_t>(uprv_strlen(s));
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  578|      0|    }
  579|  85.6k|    if (len == 1 && (ISALPHA(*s) || ISNUMERIC(*s)) && (uprv_tolower(*s) != PRIVATEUSE)) {
  ------------------
  |  |   68|  3.48k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  3.48k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  3.48k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  3.48k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  3.48k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  if (len == 1 && (ISALPHA(*s) || ISNUMERIC(*s)) && (uprv_tolower(*s) != PRIVATEUSE)) {
  ------------------
  |  |   66|  3.48k|#define PRIVATEUSE 'x'
  ------------------
  |  Branch (579:9): [True: 3.54k, False: 82.0k]
  |  Branch (579:22): [True: 3.07k, False: 468]
  |  Branch (579:37): [True: 415, False: 53]
  |  Branch (579:55): [True: 3.19k, False: 290]
  ------------------
  580|  3.19k|        return true;
  581|  3.19k|    }
  582|  82.4k|    return false;
  583|  85.6k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_119_addExtensionToListEPPNS_18ExtensionListEntryES1_b:
  948|  39.6k|_addExtensionToList(ExtensionListEntry **first, ExtensionListEntry *ext, bool localeToBCP) {
  949|  39.6k|    bool bAdded = true;
  950|       |
  951|  39.6k|    if (*first == nullptr) {
  ------------------
  |  Branch (951:9): [True: 5.82k, False: 33.8k]
  ------------------
  952|  5.82k|        ext->next = nullptr;
  953|  5.82k|        *first = ext;
  954|  33.8k|    } else {
  955|  33.8k|        ExtensionListEntry *prev, *cur;
  956|  33.8k|        int32_t cmp;
  957|       |
  958|       |        /* reorder variants in alphabetical order */
  959|  33.8k|        prev = nullptr;
  960|  33.8k|        cur = *first;
  961|   432k|        while (true) {
  ------------------
  |  Branch (961:16): [Folded - Ignored]
  ------------------
  962|   432k|            if (cur == nullptr) {
  ------------------
  |  Branch (962:17): [True: 11.4k, False: 420k]
  ------------------
  963|  11.4k|                prev->next = ext;
  964|  11.4k|                ext->next = nullptr;
  965|  11.4k|                break;
  966|  11.4k|            }
  967|   420k|            if (localeToBCP) {
  ------------------
  |  Branch (967:17): [True: 0, False: 420k]
  ------------------
  968|       |                /* special handling for locale to bcp conversion */
  969|      0|                int32_t len, curlen;
  970|       |
  971|      0|                len = static_cast<int32_t>(uprv_strlen(ext->key));
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  972|      0|                curlen = static_cast<int32_t>(uprv_strlen(cur->key));
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  973|       |
  974|      0|                if (len == 1 && curlen == 1) {
  ------------------
  |  Branch (974:21): [True: 0, False: 0]
  |  Branch (974:33): [True: 0, False: 0]
  ------------------
  975|      0|                    if (*(ext->key) == *(cur->key)) {
  ------------------
  |  Branch (975:25): [True: 0, False: 0]
  ------------------
  976|      0|                        cmp = 0;
  977|      0|                    } else if (*(ext->key) == PRIVATEUSE) {
  ------------------
  |  |   66|      0|#define PRIVATEUSE 'x'
  ------------------
  |  Branch (977:32): [True: 0, False: 0]
  ------------------
  978|      0|                        cmp = 1;
  979|      0|                    } else if (*(cur->key) == PRIVATEUSE) {
  ------------------
  |  |   66|      0|#define PRIVATEUSE 'x'
  ------------------
  |  Branch (979:32): [True: 0, False: 0]
  ------------------
  980|      0|                        cmp = -1;
  981|      0|                    } else {
  982|      0|                        cmp = *(ext->key) - *(cur->key);
  983|      0|                    }
  984|      0|                } else if (len == 1) {
  ------------------
  |  Branch (984:28): [True: 0, False: 0]
  ------------------
  985|      0|                    cmp = *(ext->key) - LDMLEXT; 
  ------------------
  |  |   67|      0|#define LDMLEXT 'u'
  ------------------
  986|      0|                } else if (curlen == 1) {
  ------------------
  |  Branch (986:28): [True: 0, False: 0]
  ------------------
  987|      0|                    cmp = LDMLEXT - *(cur->key);
  ------------------
  |  |   67|      0|#define LDMLEXT 'u'
  ------------------
  988|      0|                } else {
  989|      0|                    cmp = uprv_compareInvCharsAsAscii(ext->key, cur->key);
  ------------------
  |  |  153|      0|#   define uprv_compareInvCharsAsAscii(s1, s2) uprv_strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  |  |  ------------------
  |  |  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  990|       |                    /* Both are u extension keys - we need special handling for 'attribute' */
  991|      0|                    if (cmp != 0) {
  ------------------
  |  Branch (991:25): [True: 0, False: 0]
  ------------------
  992|      0|                        if (uprv_strcmp(cur->key, LOCALE_ATTRIBUTE_KEY) == 0) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (992:29): [True: 0, False: 0]
  ------------------
  993|      0|                            cmp = 1;
  994|      0|                        } else if (uprv_strcmp(ext->key, LOCALE_ATTRIBUTE_KEY) == 0) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (994:36): [True: 0, False: 0]
  ------------------
  995|      0|                            cmp = -1;
  996|      0|                        }
  997|      0|                    }
  998|      0|                }
  999|   420k|            } else {
 1000|   420k|                cmp = uprv_compareInvCharsAsAscii(ext->key, cur->key);
  ------------------
  |  |  153|   420k|#   define uprv_compareInvCharsAsAscii(s1, s2) uprv_strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |   38|   420k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  |  |  ------------------
  |  |  |  |  |  |  393|   420k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1001|   420k|            }
 1002|   420k|            if (cmp < 0) {
  ------------------
  |  Branch (1002:17): [True: 12.0k, False: 408k]
  ------------------
 1003|  12.0k|                if (prev == nullptr) {
  ------------------
  |  Branch (1003:21): [True: 1.83k, False: 10.1k]
  ------------------
 1004|  1.83k|                    *first = ext;
 1005|  10.1k|                } else {
 1006|  10.1k|                    prev->next = ext;
 1007|  10.1k|                }
 1008|  12.0k|                ext->next = cur;
 1009|  12.0k|                break;
 1010|  12.0k|            }
 1011|   408k|            if (cmp == 0) {
  ------------------
  |  Branch (1011:17): [True: 10.3k, False: 398k]
  ------------------
 1012|       |                /* duplicated extension key */
 1013|  10.3k|                bAdded = false;
 1014|  10.3k|                break;
 1015|  10.3k|            }
 1016|   398k|            prev = cur;
 1017|   398k|            cur = cur->next;
 1018|   398k|        }
 1019|  33.8k|    }
 1020|       |
 1021|  39.6k|    return bAdded;
 1022|  39.6k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_111ultag_parseEPKciPiR10UErrorCode:
 1979|  4.87k|ultag_parse(const char* tag, int32_t tagLen, int32_t* parsedLen, UErrorCode& status) {
 1980|  4.87k|    if (U_FAILURE(status)) { return nullptr; }
  ------------------
  |  Branch (1980:9): [True: 0, False: 4.87k]
  ------------------
 1981|       |
 1982|  4.87k|    char *tagBuf;
 1983|  4.87k|    int16_t next;
 1984|  4.87k|    char *pSubtag, *pNext, *pLastGoodPosition;
 1985|  4.87k|    int32_t subtagLen;
 1986|  4.87k|    int32_t extlangIdx;
 1987|  4.87k|    icu::LocalPointer<ExtensionListEntry> pExtension;
 1988|  4.87k|    char *pExtValueSubtag, *pExtValueSubtagEnd;
 1989|  4.87k|    int32_t i;
 1990|  4.87k|    bool privateuseVar = false;
 1991|  4.87k|    int32_t legacyLen = 0;
 1992|       |
 1993|  4.87k|    if (parsedLen != nullptr) {
  ------------------
  |  Branch (1993:9): [True: 0, False: 4.87k]
  ------------------
 1994|      0|        *parsedLen = 0;
 1995|      0|    }
 1996|       |
 1997|  4.87k|    if (tagLen < 0) {
  ------------------
  |  Branch (1997:9): [True: 0, False: 4.87k]
  ------------------
 1998|      0|        tagLen = static_cast<int32_t>(uprv_strlen(tag));
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1999|      0|    }
 2000|       |
 2001|       |    /* copy the entire string */
 2002|  4.87k|    tagBuf = static_cast<char*>(uprv_malloc(tagLen + 1));
  ------------------
  |  | 1524|  4.87k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  4.87k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.87k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.87k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2003|  4.87k|    if (tagBuf == nullptr) {
  ------------------
  |  Branch (2003:9): [True: 0, False: 4.87k]
  ------------------
 2004|      0|        status = U_MEMORY_ALLOCATION_ERROR;
 2005|      0|        return nullptr;
 2006|      0|    }
 2007|       |    
 2008|  4.87k|    if (tagLen > 0) {
  ------------------
  |  Branch (2008:9): [True: 4.87k, False: 0]
  ------------------
 2009|  4.87k|        uprv_memcpy(tagBuf, tag, tagLen);
  ------------------
  |  |   42|  4.87k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  4.87k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  4.87k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  4.87k|    _Pragma("clang diagnostic push") \
  |  |   45|  4.87k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  4.87k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  4.87k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  4.87k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  4.87k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  4.87k|    _Pragma("clang diagnostic pop") \
  |  |   49|  4.87k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  4.87k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  4.87k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  4.87k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2010|  4.87k|    }
 2011|  4.87k|    *(tagBuf + tagLen) = 0;
 2012|       |
 2013|       |    /* create a ULanguageTag */
 2014|  4.87k|    icu::LocalULanguageTagPointer t(
 2015|  4.87k|            static_cast<ULanguageTag*>(uprv_malloc(sizeof(ULanguageTag))));
  ------------------
  |  | 1524|  4.87k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  4.87k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.87k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.87k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2016|  4.87k|    if (t.isNull()) {
  ------------------
  |  Branch (2016:9): [True: 0, False: 4.87k]
  ------------------
 2017|      0|        uprv_free(tagBuf);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2018|      0|        status = U_MEMORY_ALLOCATION_ERROR;
 2019|      0|        return nullptr;
 2020|      0|    }
 2021|  4.87k|    _initializeULanguageTag(t.getAlias());
 2022|  4.87k|    t->buf = tagBuf;
 2023|       |
 2024|  4.87k|    if (tagLen < MINLEN) {
  ------------------
  |  |   64|  4.87k|#define MINLEN 2
  ------------------
  |  Branch (2024:9): [True: 1.09k, False: 3.77k]
  ------------------
 2025|       |        /* the input tag is too short - return empty ULanguageTag */
 2026|  1.09k|        return t.orphan();
 2027|  1.09k|    }
 2028|       |
 2029|  3.77k|    size_t parsedLenDelta = 0;
 2030|       |    // Legacy tag will be consider together. Legacy tag with intervening
 2031|       |    // script and region such as art-DE-lojban or art-Latn-lojban won't be
 2032|       |    // matched.
 2033|       |    /* check if the tag is legacy */
 2034|  97.8k|    for (i = 0; i < UPRV_LENGTHOF(LEGACY); i += 2) {
  ------------------
  |  |   99|  97.8k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (2034:17): [True: 94.1k, False: 3.74k]
  ------------------
 2035|  94.1k|        int32_t checkLegacyLen = static_cast<int32_t>(uprv_strlen(LEGACY[i]));
  ------------------
  |  |   37|  94.1k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  94.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2036|  94.1k|        if (tagLen < checkLegacyLen) {
  ------------------
  |  Branch (2036:13): [True: 10.5k, False: 83.5k]
  ------------------
 2037|  10.5k|            continue;
 2038|  10.5k|        }
 2039|  83.5k|        if (tagLen > checkLegacyLen && tagBuf[checkLegacyLen] != '-') {
  ------------------
  |  Branch (2039:13): [True: 80.8k, False: 2.69k]
  |  Branch (2039:40): [True: 65.5k, False: 15.2k]
  ------------------
 2040|       |            // make sure next char is '-'.
 2041|  65.5k|            continue;
 2042|  65.5k|        }
 2043|  17.9k|        if (uprv_strnicmp(LEGACY[i], tagBuf, checkLegacyLen) == 0) {
  ------------------
  |  | 1544|  17.9k|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  123|  17.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  17.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  17.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2043:13): [True: 31, False: 17.9k]
  ------------------
 2044|     31|            int32_t newTagLength;
 2045|       |
 2046|     31|            legacyLen = checkLegacyLen;  /* back up for output parsedLen */
 2047|     31|            int32_t replacementLen = static_cast<int32_t>(uprv_strlen(LEGACY[i+1]));
  ------------------
  |  |   37|     31|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|     31|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2048|     31|            newTagLength = replacementLen + tagLen - checkLegacyLen;
 2049|     31|            int32_t oldTagLength = tagLen;
 2050|     31|            if (tagLen < newTagLength) {
  ------------------
  |  Branch (2050:17): [True: 16, False: 15]
  ------------------
 2051|     16|                uprv_free(tagBuf);
  ------------------
  |  | 1503|     16|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|     16|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     16|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     16|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2052|       |                // Change t->buf after the free and before return to avoid the second double free in
 2053|       |                // the destructor of t when t is out of scope.
 2054|     16|                t->buf = tagBuf = static_cast<char*>(uprv_malloc(newTagLength + 1));
  ------------------
  |  | 1524|     16|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|     16|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     16|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     16|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2055|     16|                if (tagBuf == nullptr) {
  ------------------
  |  Branch (2055:21): [True: 0, False: 16]
  ------------------
 2056|      0|                    status = U_MEMORY_ALLOCATION_ERROR;
 2057|      0|                    return nullptr;
 2058|      0|                }
 2059|     16|                tagLen = newTagLength;
 2060|     16|            }
 2061|     31|            parsedLenDelta = checkLegacyLen - replacementLen;
 2062|     31|            uprv_strcpy(t->buf, LEGACY[i + 1]);
  ------------------
  |  |   36|     31|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|     31|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2063|     31|            if (checkLegacyLen != tagLen) {
  ------------------
  |  Branch (2063:17): [True: 25, False: 6]
  ------------------
 2064|     25|                uprv_memcpy(t->buf + replacementLen, tag + checkLegacyLen,
  ------------------
  |  |   42|     25|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|     25|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|     25|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|     25|    _Pragma("clang diagnostic push") \
  |  |   45|     25|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|     25|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|     25|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|     25|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|     25|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|     25|    _Pragma("clang diagnostic pop") \
  |  |   49|     25|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|     25|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|     25|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|     25|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2065|     25|                            oldTagLength - checkLegacyLen);
 2066|       |                // NUL-terminate after memcpy().
 2067|     25|                t->buf[replacementLen + oldTagLength - checkLegacyLen] = 0;
 2068|     25|            }
 2069|     31|            break;
 2070|     31|        }
 2071|  17.9k|    }
 2072|       |
 2073|  3.77k|    if (legacyLen == 0) {
  ------------------
  |  Branch (2073:9): [True: 3.74k, False: 31]
  ------------------
 2074|   101k|        for (i = 0; i < UPRV_LENGTHOF(REDUNDANT); i += 2) {
  ------------------
  |  |   99|   101k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (2074:21): [True: 97.3k, False: 3.73k]
  ------------------
 2075|  97.3k|            const char* redundantTag = REDUNDANT[i];
 2076|  97.3k|            size_t redundantTagLen = uprv_strlen(redundantTag);
  ------------------
  |  |   37|  97.3k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  97.3k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2077|       |            // The preferred tag for a redundant tag is always shorter than redundant
 2078|       |            // tag. A redundant tag may or may not be followed by other subtags.
 2079|       |            // (i.e. "zh-yue" or "zh-yue-u-co-pinyin").
 2080|  97.3k|            if (uprv_strnicmp(redundantTag, tagBuf, static_cast<uint32_t>(redundantTagLen)) == 0) {
  ------------------
  |  | 1544|  97.3k|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  123|  97.3k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  97.3k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  97.3k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2080:17): [True: 24, False: 97.3k]
  ------------------
 2081|     24|                const char* redundantTagEnd = tagBuf + redundantTagLen;
 2082|     24|                if (*redundantTagEnd  == '\0' || *redundantTagEnd == SEP) {
  ------------------
  |  |   65|     24|#define SEP '-'
  ------------------
  |  Branch (2082:21): [True: 0, False: 24]
  |  Branch (2082:50): [True: 10, False: 14]
  ------------------
 2083|     10|                    const char* preferredTag = REDUNDANT[i + 1];
 2084|     10|                    size_t preferredTagLen = uprv_strlen(preferredTag);
  ------------------
  |  |   37|     10|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|     10|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2085|     10|                    uprv_memcpy(t->buf, preferredTag, preferredTagLen);
  ------------------
  |  |   42|     10|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|     10|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|     10|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|     10|    _Pragma("clang diagnostic push") \
  |  |   45|     10|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|     10|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|     10|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|     10|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|     10|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|     10|    _Pragma("clang diagnostic pop") \
  |  |   49|     10|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|     10|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|     10|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|     10|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2086|     10|                    if (*redundantTagEnd == SEP) {
  ------------------
  |  |   65|     10|#define SEP '-'
  ------------------
  |  Branch (2086:25): [True: 10, False: 0]
  ------------------
 2087|     10|                        uprv_memmove(tagBuf + preferredTagLen,
  ------------------
  |  |   51|     10|#define uprv_memmove(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|     10|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   52|     10|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   53|     10|    _Pragma("clang diagnostic push") \
  |  |   54|     10|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   55|     10|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|     10|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   56|     10|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|     10|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   57|     10|    _Pragma("clang diagnostic pop") \
  |  |   58|     10|    U_STANDARD_CPP_NAMESPACE memmove(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|     10|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   59|     10|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|     10|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2088|     10|                                     redundantTagEnd,
 2089|     10|                                     tagLen - redundantTagLen + 1);
 2090|     10|                    } else {
 2091|      0|                        tagBuf[preferredTagLen] = '\0';
 2092|      0|                    }
 2093|       |                    // parsedLen should be the length of the input
 2094|       |                    // before redundantTag is replaced by preferredTag.
 2095|       |                    // Save the delta to add it back later.
 2096|     10|                    parsedLenDelta = redundantTagLen - preferredTagLen;
 2097|     10|                    break;
 2098|     10|                }
 2099|     24|            }
 2100|  97.3k|        }
 2101|  3.74k|    }
 2102|       |
 2103|       |    /*
 2104|       |     * langtag      =   language
 2105|       |     *                  ["-" script]
 2106|       |     *                  ["-" region]
 2107|       |     *                  *("-" variant)
 2108|       |     *                  *("-" extension)
 2109|       |     *                  ["-" privateuse]
 2110|       |     */
 2111|       |
 2112|  3.77k|    next = LANG | PRIV;
  ------------------
  |  | 1959|  3.77k|#define LANG 0x0001
  ------------------
                  next = LANG | PRIV;
  ------------------
  |  | 1966|  3.77k|#define PRIV 0x0080
  ------------------
 2113|  3.77k|    pNext = pLastGoodPosition = tagBuf;
 2114|  3.77k|    extlangIdx = 0;
 2115|  3.77k|    pExtValueSubtag = nullptr;
 2116|  3.77k|    pExtValueSubtagEnd = nullptr;
 2117|       |
 2118|  98.8k|    while (pNext) {
  ------------------
  |  Branch (2118:12): [True: 97.1k, False: 1.73k]
  ------------------
 2119|  97.1k|        char *pSep;
 2120|       |
 2121|  97.1k|        pSubtag = pNext;
 2122|       |
 2123|       |        /* locate next separator char */
 2124|  97.1k|        pSep = pSubtag;
 2125|   423k|        while (*pSep) {
  ------------------
  |  Branch (2125:16): [True: 421k, False: 2.40k]
  ------------------
 2126|   421k|            if (*pSep == SEP) {
  ------------------
  |  |   65|   421k|#define SEP '-'
  ------------------
  |  Branch (2126:17): [True: 94.7k, False: 326k]
  ------------------
 2127|  94.7k|                break;
 2128|  94.7k|            }
 2129|   326k|            pSep++;
 2130|   326k|        }
 2131|  97.1k|        if (*pSep == 0) {
  ------------------
  |  Branch (2131:13): [True: 2.40k, False: 94.7k]
  ------------------
 2132|       |            /* last subtag */
 2133|  2.40k|            pNext = nullptr;
 2134|  94.7k|        } else {
 2135|  94.7k|            pNext = pSep + 1;
 2136|  94.7k|        }
 2137|  97.1k|        subtagLen = static_cast<int32_t>(pSep - pSubtag);
 2138|       |
 2139|  97.1k|        if (next & LANG) {
  ------------------
  |  | 1959|  97.1k|#define LANG 0x0001
  ------------------
  |  Branch (2139:13): [True: 3.77k, False: 93.3k]
  ------------------
 2140|  3.77k|            if (ultag_isLanguageSubtag(pSubtag, subtagLen)) {
  ------------------
  |  | 1225|  3.77k|#define ultag_isLanguageSubtag U_ICU_ENTRY_POINT_RENAME(ultag_isLanguageSubtag)
  |  |  ------------------
  |  |  |  |  123|  3.77k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.77k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.77k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2140:17): [True: 2.33k, False: 1.44k]
  ------------------
 2141|  2.33k|                *pSep = 0;  /* terminate */
 2142|       |                // TODO: move deprecated language code handling here.
 2143|  2.33k|                t->language = T_CString_toLowerCase(pSubtag);
  ------------------
  |  |   69|  2.33k|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  123|  2.33k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.33k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.33k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2144|       |
 2145|  2.33k|                pLastGoodPosition = pSep;
 2146|  2.33k|                next = SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1961|  2.33k|#define SCRT 0x0004
  ------------------
                              next = SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1962|  2.33k|#define REGN 0x0008
  ------------------
                              next = SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1963|  2.33k|#define VART 0x0010
  ------------------
                              next = SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1964|  2.33k|#define EXTS 0x0020
  ------------------
                              next = SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1966|  2.33k|#define PRIV 0x0080
  ------------------
 2147|  2.33k|                if (subtagLen <= 3)
  ------------------
  |  Branch (2147:21): [True: 2.25k, False: 86]
  ------------------
 2148|  2.25k|                  next |= EXTL;
  ------------------
  |  | 1960|  2.25k|#define EXTL 0x0002
  ------------------
 2149|  2.33k|                continue;
 2150|  2.33k|            }
 2151|  3.77k|        }
 2152|  94.7k|        if (next & EXTL) {
  ------------------
  |  | 1960|  94.7k|#define EXTL 0x0002
  ------------------
  |  Branch (2152:13): [True: 2.34k, False: 92.4k]
  ------------------
 2153|  2.34k|            if (_isExtlangSubtag(pSubtag, subtagLen)) {
  ------------------
  |  Branch (2153:17): [True: 112, False: 2.23k]
  ------------------
 2154|    112|                *pSep = 0;
 2155|    112|                t->extlang[extlangIdx++] = T_CString_toLowerCase(pSubtag);
  ------------------
  |  |   69|    112|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  123|    112|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    112|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    112|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2156|       |
 2157|    112|                pLastGoodPosition = pSep;
 2158|    112|                if (extlangIdx < 3) {
  ------------------
  |  Branch (2158:21): [True: 103, False: 9]
  ------------------
 2159|    103|                    next = EXTL | SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1960|    103|#define EXTL 0x0002
  ------------------
                                  next = EXTL | SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1961|    103|#define SCRT 0x0004
  ------------------
                                  next = EXTL | SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1962|    103|#define REGN 0x0008
  ------------------
                                  next = EXTL | SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1963|    103|#define VART 0x0010
  ------------------
                                  next = EXTL | SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1964|    103|#define EXTS 0x0020
  ------------------
                                  next = EXTL | SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1966|    103|#define PRIV 0x0080
  ------------------
 2160|    103|                } else {
 2161|      9|                    next = SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1961|      9|#define SCRT 0x0004
  ------------------
                                  next = SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1962|      9|#define REGN 0x0008
  ------------------
                                  next = SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1963|      9|#define VART 0x0010
  ------------------
                                  next = SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1964|      9|#define EXTS 0x0020
  ------------------
                                  next = SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1966|      9|#define PRIV 0x0080
  ------------------
 2162|      9|                }
 2163|    112|                continue;
 2164|    112|            }
 2165|  2.34k|        }
 2166|  94.6k|        if (next & SCRT) {
  ------------------
  |  | 1961|  94.6k|#define SCRT 0x0004
  ------------------
  |  Branch (2166:13): [True: 2.33k, False: 92.3k]
  ------------------
 2167|  2.33k|            if (ultag_isScriptSubtag(pSubtag, subtagLen)) {
  ------------------
  |  | 1228|  2.33k|#define ultag_isScriptSubtag U_ICU_ENTRY_POINT_RENAME(ultag_isScriptSubtag)
  |  |  ------------------
  |  |  |  |  123|  2.33k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.33k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.33k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2167:17): [True: 47, False: 2.28k]
  ------------------
 2168|     47|                char *p = pSubtag;
 2169|       |
 2170|     47|                *pSep = 0;
 2171|       |
 2172|       |                /* to title case */
 2173|     47|                *p = uprv_toupper(*p);
  ------------------
  |  | 1547|     47|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|     47|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     47|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     47|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2174|     47|                p++;
 2175|    188|                for (; *p; p++) {
  ------------------
  |  Branch (2175:24): [True: 141, False: 47]
  ------------------
 2176|    141|                    *p = uprv_tolower(*p);
  ------------------
  |  |   68|    141|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|    141|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|    141|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|    141|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|    141|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2177|    141|                }
 2178|       |
 2179|     47|                t->script = pSubtag;
 2180|       |
 2181|     47|                pLastGoodPosition = pSep;
 2182|     47|                next = REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1962|     47|#define REGN 0x0008
  ------------------
                              next = REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1963|     47|#define VART 0x0010
  ------------------
                              next = REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1964|     47|#define EXTS 0x0020
  ------------------
                              next = REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1966|     47|#define PRIV 0x0080
  ------------------
 2183|     47|                continue;
 2184|     47|            }
 2185|  2.33k|        }
 2186|  94.6k|        if (next & REGN) {
  ------------------
  |  | 1962|  94.6k|#define REGN 0x0008
  ------------------
  |  Branch (2186:13): [True: 2.33k, False: 92.2k]
  ------------------
 2187|  2.33k|            if (ultag_isRegionSubtag(pSubtag, subtagLen)) {
  ------------------
  |  | 1227|  2.33k|#define ultag_isRegionSubtag U_ICU_ENTRY_POINT_RENAME(ultag_isRegionSubtag)
  |  |  ------------------
  |  |  |  |  123|  2.33k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.33k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.33k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2187:17): [True: 446, False: 1.88k]
  ------------------
 2188|    446|                *pSep = 0;
 2189|       |                // TODO: move deprecated region code handling here.
 2190|    446|                t->region = T_CString_toUpperCase(pSubtag);
  ------------------
  |  |   70|    446|#define T_CString_toUpperCase U_ICU_ENTRY_POINT_RENAME(T_CString_toUpperCase)
  |  |  ------------------
  |  |  |  |  123|    446|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    446|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    446|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2191|       |
 2192|    446|                pLastGoodPosition = pSep;
 2193|    446|                next = VART | EXTS | PRIV;
  ------------------
  |  | 1963|    446|#define VART 0x0010
  ------------------
                              next = VART | EXTS | PRIV;
  ------------------
  |  | 1964|    446|#define EXTS 0x0020
  ------------------
                              next = VART | EXTS | PRIV;
  ------------------
  |  | 1966|    446|#define PRIV 0x0080
  ------------------
 2194|    446|                continue;
 2195|    446|            }
 2196|  2.33k|        }
 2197|  94.1k|        if (next & VART) {
  ------------------
  |  | 1963|  94.1k|#define VART 0x0010
  ------------------
  |  Branch (2197:13): [True: 6.33k, False: 87.8k]
  ------------------
 2198|  6.33k|            if (_isVariantSubtag(pSubtag, subtagLen) ||
  ------------------
  |  Branch (2198:17): [True: 1.35k, False: 4.98k]
  ------------------
 2199|  6.33k|               (privateuseVar && _isPrivateuseVariantSubtag(pSubtag, subtagLen))) {
  ------------------
  |  Branch (2199:17): [True: 2.65k, False: 2.33k]
  |  Branch (2199:34): [True: 2.56k, False: 90]
  ------------------
 2200|  3.91k|                icu::LocalPointer<VariantListEntry> var(new VariantListEntry, status);
 2201|  3.91k|                if (U_FAILURE(status)) {
  ------------------
  |  Branch (2201:21): [True: 0, False: 3.91k]
  ------------------
 2202|      0|                    return nullptr;
 2203|      0|                }
 2204|  3.91k|                *pSep = 0;
 2205|  3.91k|                var->variant = T_CString_toUpperCase(pSubtag);
  ------------------
  |  |   70|  3.91k|#define T_CString_toUpperCase U_ICU_ENTRY_POINT_RENAME(T_CString_toUpperCase)
  |  |  ------------------
  |  |  |  |  123|  3.91k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.91k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.91k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2206|  3.91k|                if (!_addVariantToList(&(t->variants), std::move(var))) {
  ------------------
  |  Branch (2206:21): [True: 7, False: 3.91k]
  ------------------
 2207|       |                    /* duplicated variant entry */
 2208|      7|                    break;
 2209|      7|                }
 2210|  3.91k|                pLastGoodPosition = pSep;
 2211|  3.91k|                next = VART | EXTS | PRIV;
  ------------------
  |  | 1963|  3.91k|#define VART 0x0010
  ------------------
                              next = VART | EXTS | PRIV;
  ------------------
  |  | 1964|  3.91k|#define EXTS 0x0020
  ------------------
                              next = VART | EXTS | PRIV;
  ------------------
  |  | 1966|  3.91k|#define PRIV 0x0080
  ------------------
 2212|  3.91k|                continue;
 2213|  3.91k|            }
 2214|  6.33k|        }
 2215|  90.2k|        if (next & EXTS) {
  ------------------
  |  | 1964|  90.2k|#define EXTS 0x0020
  ------------------
  |  Branch (2215:13): [True: 85.6k, False: 4.63k]
  ------------------
 2216|  85.6k|            if (_isExtensionSingleton(pSubtag, subtagLen)) {
  ------------------
  |  Branch (2216:17): [True: 3.19k, False: 82.4k]
  ------------------
 2217|  3.19k|                if (pExtension.isValid()) {
  ------------------
  |  Branch (2217:21): [True: 1.12k, False: 2.07k]
  ------------------
 2218|  1.12k|                    if (pExtValueSubtag == nullptr || pExtValueSubtagEnd == nullptr) {
  ------------------
  |  Branch (2218:25): [True: 0, False: 1.12k]
  |  Branch (2218:55): [True: 0, False: 1.12k]
  ------------------
 2219|       |                        /* the previous extension is incomplete */
 2220|      0|                        delete pExtension.orphan();
 2221|      0|                        break;
 2222|      0|                    }
 2223|       |
 2224|       |                    /* terminate the previous extension value */
 2225|  1.12k|                    *pExtValueSubtagEnd = 0;
 2226|  1.12k|                    pExtension->value = T_CString_toLowerCase(pExtValueSubtag);
  ------------------
  |  |   69|  1.12k|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  123|  1.12k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.12k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.12k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2227|       |
 2228|       |                    /* insert the extension to the list */
 2229|  1.12k|                    if (_addExtensionToList(&(t->extensions), pExtension.getAlias(), false)) {
  ------------------
  |  Branch (2229:25): [True: 1.12k, False: 4]
  ------------------
 2230|  1.12k|                        pExtension.orphan();
 2231|  1.12k|                        pLastGoodPosition = pExtValueSubtagEnd;
 2232|  1.12k|                    } else {
 2233|       |                        /* stop parsing here */
 2234|      4|                        delete pExtension.orphan();
 2235|      4|                        break;
 2236|      4|                    }
 2237|  1.12k|                }
 2238|       |
 2239|       |                /* create a new extension */
 2240|  3.19k|                pExtension.adoptInsteadAndCheckErrorCode(new ExtensionListEntry, status);
 2241|  3.19k|                if (U_FAILURE(status)) {
  ------------------
  |  Branch (2241:21): [True: 0, False: 3.19k]
  ------------------
 2242|      0|                    return nullptr;
 2243|      0|                }
 2244|  3.19k|                *pSep = 0;
 2245|  3.19k|                pExtension->key = T_CString_toLowerCase(pSubtag);
  ------------------
  |  |   69|  3.19k|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  123|  3.19k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.19k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.19k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2246|  3.19k|                pExtension->value = nullptr;   /* will be set later */
 2247|       |
 2248|       |                /*
 2249|       |                 * reset the start and the end location of extension value
 2250|       |                 * subtags for this extension
 2251|       |                 */
 2252|  3.19k|                pExtValueSubtag = nullptr;
 2253|  3.19k|                pExtValueSubtagEnd = nullptr;
 2254|       |
 2255|  3.19k|                next = EXTV;
  ------------------
  |  | 1965|  3.19k|#define EXTV 0x0040
  ------------------
 2256|  3.19k|                continue;
 2257|  3.19k|            }
 2258|  85.6k|        }
 2259|  87.0k|        if (next & EXTV) {
  ------------------
  |  | 1965|  87.0k|#define EXTV 0x0040
  ------------------
  |  Branch (2259:13): [True: 85.2k, False: 1.79k]
  ------------------
 2260|  85.2k|            if (_isExtensionSubtag(pSubtag, subtagLen)) {
  ------------------
  |  Branch (2260:17): [True: 84.7k, False: 535]
  ------------------
 2261|  84.7k|                if (pExtValueSubtag == nullptr) {
  ------------------
  |  Branch (2261:21): [True: 2.98k, False: 81.7k]
  ------------------
 2262|       |                    /* if the start position of this extension's value is not yet,
 2263|       |                        this one is the first value subtag */
 2264|  2.98k|                    pExtValueSubtag = pSubtag;
 2265|  2.98k|                }
 2266|       |
 2267|       |                /* Mark the end of this subtag */
 2268|  84.7k|                pExtValueSubtagEnd = pSep;
 2269|  84.7k|                next = EXTS | EXTV | PRIV;
  ------------------
  |  | 1964|  84.7k|#define EXTS 0x0020
  ------------------
                              next = EXTS | EXTV | PRIV;
  ------------------
  |  | 1965|  84.7k|#define EXTV 0x0040
  ------------------
                              next = EXTS | EXTV | PRIV;
  ------------------
  |  | 1966|  84.7k|#define PRIV 0x0080
  ------------------
 2270|       |
 2271|  84.7k|                continue;
 2272|  84.7k|            }
 2273|  85.2k|        }
 2274|  2.32k|        if (next & PRIV) {
  ------------------
  |  | 1966|  2.32k|#define PRIV 0x0080
  ------------------
  |  Branch (2274:13): [True: 2.11k, False: 211]
  ------------------
 2275|  2.11k|            if (uprv_tolower(*pSubtag) == PRIVATEUSE && subtagLen == 1) {
  ------------------
  |  |   68|  2.11k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  2.11k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  2.11k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  2.11k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  2.11k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          if (uprv_tolower(*pSubtag) == PRIVATEUSE && subtagLen == 1) {
  ------------------
  |  |   66|  4.22k|#define PRIVATEUSE 'x'
  ------------------
  |  Branch (2275:17): [True: 664, False: 1.45k]
  |  Branch (2275:57): [True: 636, False: 28]
  ------------------
 2276|    636|                char *pPrivuseVal;
 2277|       |
 2278|    636|                if (pExtension.isValid()) {
  ------------------
  |  Branch (2278:21): [True: 215, False: 421]
  ------------------
 2279|       |                    /* Process the last extension */
 2280|    215|                    if (pExtValueSubtag == nullptr || pExtValueSubtagEnd == nullptr) {
  ------------------
  |  Branch (2280:25): [True: 0, False: 215]
  |  Branch (2280:55): [True: 0, False: 215]
  ------------------
 2281|       |                        /* the previous extension is incomplete */
 2282|      0|                        delete pExtension.orphan();
 2283|      0|                        break;
 2284|    215|                    } else {
 2285|       |                        /* terminate the previous extension value */
 2286|    215|                        *pExtValueSubtagEnd = 0;
 2287|    215|                        pExtension->value = T_CString_toLowerCase(pExtValueSubtag);
  ------------------
  |  |   69|    215|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  123|    215|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    215|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    215|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2288|       |
 2289|       |                        /* insert the extension to the list */
 2290|    215|                        if (_addExtensionToList(&(t->extensions), pExtension.getAlias(), false)) {
  ------------------
  |  Branch (2290:29): [True: 212, False: 3]
  ------------------
 2291|    212|                            pExtension.orphan();
 2292|    212|                            pLastGoodPosition = pExtValueSubtagEnd;
 2293|    212|                        } else {
 2294|       |                        /* stop parsing here */
 2295|      3|                            delete pExtension.orphan();
 2296|      3|                            break;
 2297|      3|                        }
 2298|    215|                    }
 2299|    215|                }
 2300|       |
 2301|       |                /* The rest of part will be private use value subtags */
 2302|    633|                if (pNext == nullptr) {
  ------------------
  |  Branch (2302:21): [True: 7, False: 626]
  ------------------
 2303|       |                    /* empty private use subtag */
 2304|      7|                    break;
 2305|      7|                }
 2306|       |                /* back up the private use value start position */
 2307|    626|                pPrivuseVal = pNext;
 2308|       |
 2309|       |                /* validate private use value subtags */
 2310|  14.1k|                while (pNext) {
  ------------------
  |  Branch (2310:24): [True: 14.0k, False: 140]
  ------------------
 2311|  14.0k|                    pSubtag = pNext;
 2312|  14.0k|                    pSep = pSubtag;
 2313|  66.1k|                    while (*pSep) {
  ------------------
  |  Branch (2313:28): [True: 65.7k, False: 329]
  ------------------
 2314|  65.7k|                        if (*pSep == SEP) {
  ------------------
  |  |   65|  65.7k|#define SEP '-'
  ------------------
  |  Branch (2314:29): [True: 13.7k, False: 52.0k]
  ------------------
 2315|  13.7k|                            break;
 2316|  13.7k|                        }
 2317|  52.0k|                        pSep++;
 2318|  52.0k|                    }
 2319|  14.0k|                    if (*pSep == 0) {
  ------------------
  |  Branch (2319:25): [True: 329, False: 13.7k]
  ------------------
 2320|       |                        /* last subtag */
 2321|    329|                        pNext = nullptr;
 2322|  13.7k|                    } else {
 2323|  13.7k|                        pNext = pSep + 1;
 2324|  13.7k|                    }
 2325|  14.0k|                    subtagLen = static_cast<int32_t>(pSep - pSubtag);
 2326|       |
 2327|  14.0k|                    if (uprv_strncmp(pSubtag, PRIVUSE_VARIANT_PREFIX, uprv_strlen(PRIVUSE_VARIANT_PREFIX)) == 0) {
  ------------------
  |  |   44|  14.0k|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|  14.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (2327:25): [True: 287, False: 13.7k]
  ------------------
 2328|    287|                        *pSep = 0;
 2329|    287|                        next = VART;
  ------------------
  |  | 1963|    287|#define VART 0x0010
  ------------------
 2330|    287|                        privateuseVar = true;
 2331|    287|                        break;
 2332|  13.7k|                    } else if (_isPrivateuseValueSubtag(pSubtag, subtagLen)) {
  ------------------
  |  Branch (2332:32): [True: 13.5k, False: 199]
  ------------------
 2333|  13.5k|                        pLastGoodPosition = pSep;
 2334|  13.5k|                    } else {
 2335|    199|                        break;
 2336|    199|                    }
 2337|  14.0k|                }
 2338|       |
 2339|    626|                if (next == VART) {
  ------------------
  |  | 1963|    626|#define VART 0x0010
  ------------------
  |  Branch (2339:21): [True: 287, False: 339]
  ------------------
 2340|    287|                    continue;
 2341|    287|                }
 2342|       |
 2343|    339|                if (pLastGoodPosition - pPrivuseVal > 0) {
  ------------------
  |  Branch (2343:21): [True: 175, False: 164]
  ------------------
 2344|    175|                    *pLastGoodPosition = 0;
 2345|    175|                    t->privateuse = T_CString_toLowerCase(pPrivuseVal);
  ------------------
  |  |   69|    175|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  123|    175|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    175|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    175|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2346|    175|                }
 2347|       |                /* No more subtags, exiting the parse loop */
 2348|    339|                break;
 2349|    626|            }
 2350|  1.47k|            break;
 2351|  2.11k|        }
 2352|       |
 2353|       |        /* If we fell through here, it means this subtag is illegal - quit parsing */
 2354|    211|        break;
 2355|  2.32k|    }
 2356|       |
 2357|  3.77k|    if (pExtension.isValid()) {
  ------------------
  |  Branch (2357:9): [True: 1.85k, False: 1.92k]
  ------------------
 2358|       |        /* Process the last extension */
 2359|  1.85k|        if (pExtValueSubtag == nullptr || pExtValueSubtagEnd == nullptr) {
  ------------------
  |  Branch (2359:13): [True: 211, False: 1.64k]
  |  Branch (2359:43): [True: 0, False: 1.64k]
  ------------------
 2360|       |            /* the previous extension is incomplete */
 2361|    211|            delete pExtension.orphan();
 2362|  1.64k|        } else {
 2363|       |            /* terminate the previous extension value */
 2364|  1.64k|            *pExtValueSubtagEnd = 0;
 2365|  1.64k|            pExtension->value = T_CString_toLowerCase(pExtValueSubtag);
  ------------------
  |  |   69|  1.64k|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  123|  1.64k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.64k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.64k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2366|       |            /* insert the extension to the list */
 2367|  1.64k|            if (_addExtensionToList(&(t->extensions), pExtension.getAlias(), false)) {
  ------------------
  |  Branch (2367:17): [True: 1.63k, False: 8]
  ------------------
 2368|  1.63k|                pExtension.orphan();
 2369|  1.63k|                pLastGoodPosition = pExtValueSubtagEnd;
 2370|  1.63k|            } else {
 2371|      8|                delete pExtension.orphan();
 2372|      8|            }
 2373|  1.64k|        }
 2374|  1.85k|    }
 2375|       |
 2376|  3.77k|    if (parsedLen != nullptr) {
  ------------------
  |  Branch (2376:9): [True: 0, False: 3.77k]
  ------------------
 2377|      0|        *parsedLen = static_cast<int32_t>(pLastGoodPosition - t->buf + parsedLenDelta);
 2378|      0|    }
 2379|       |
 2380|  3.77k|    return t.orphan();
 2381|  3.77k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_123_initializeULanguageTagEPNS_12ULanguageTagE:
 1025|  4.87k|_initializeULanguageTag(ULanguageTag* langtag) {
 1026|  4.87k|    int32_t i;
 1027|       |
 1028|  4.87k|    langtag->buf = nullptr;
 1029|       |
 1030|  4.87k|    langtag->language = EMPTY;
 1031|  19.4k|    for (i = 0; i < MAXEXTLANG; i++) {
  ------------------
  |  |   51|  19.4k|#define MAXEXTLANG 3
  ------------------
  |  Branch (1031:17): [True: 14.6k, False: 4.87k]
  ------------------
 1032|  14.6k|        langtag->extlang[i] = nullptr;
 1033|  14.6k|    }
 1034|       |
 1035|  4.87k|    langtag->script = EMPTY;
 1036|  4.87k|    langtag->region = EMPTY;
 1037|       |
 1038|  4.87k|    langtag->variants = nullptr;
 1039|  4.87k|    langtag->extensions = nullptr;
 1040|       |
 1041|  4.87k|    langtag->legacy = EMPTY;
 1042|  4.87k|    langtag->privateuse = EMPTY;
 1043|  4.87k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_116_isExtlangSubtagEPKci:
  449|  2.34k|_isExtlangSubtag(const char* s, int32_t len) {
  450|       |    /*
  451|       |     * extlang       = 3ALPHA              ; selected ISO 639 codes
  452|       |     *                 *2("-" 3ALPHA)      ; permanently reserved
  453|       |     */
  454|  2.34k|    if (len < 0) {
  ------------------
  |  Branch (454:9): [True: 0, False: 2.34k]
  ------------------
  455|      0|        len = static_cast<int32_t>(uprv_strlen(s));
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  456|      0|    }
  457|  2.34k|    if (len == 3 && _isAlphaString(s, len)) {
  ------------------
  |  Branch (457:9): [True: 145, False: 2.20k]
  |  Branch (457:21): [True: 112, False: 33]
  ------------------
  458|    112|        return true;
  459|    112|    }
  460|  2.23k|    return false;
  461|  2.34k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_126_isPrivateuseVariantSubtagEPKci:
  557|  2.65k|_isPrivateuseVariantSubtag(const char* s, int32_t len) {
  558|       |    /*
  559|       |     * variant       = 1*8alphanum         ; registered variants
  560|       |     *               / (DIGIT 3alphanum)
  561|       |     */
  562|  2.65k|    return _isAlphaNumericStringLimitedLength(s, len , 1, 8);
  563|  2.65k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_120ultag_getExtlangSizeEPKNS_12ULanguageTagE:
 2445|  4.87k|ultag_getExtlangSize(const ULanguageTag* langtag) {
 2446|  4.87k|    int32_t size = 0;
 2447|  4.87k|    int32_t i;
 2448|  19.4k|    for (i = 0; i < MAXEXTLANG; i++) {
  ------------------
  |  |   51|  19.4k|#define MAXEXTLANG 3
  ------------------
  |  Branch (2448:17): [True: 14.6k, False: 4.87k]
  ------------------
 2449|  14.6k|        if (langtag->extlang[i]) {
  ------------------
  |  Branch (2449:13): [True: 112, False: 14.5k]
  ------------------
 2450|    112|            size++;
 2451|    112|        }
 2452|  14.6k|    }
 2453|  4.87k|    return size;
 2454|  4.87k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_116ultag_getExtlangEPKNS_12ULanguageTagEi:
 2437|     88|ultag_getExtlang(const ULanguageTag* langtag, int32_t idx) {
 2438|     88|    if (idx >= 0 && idx < MAXEXTLANG) {
  ------------------
  |  |   51|     88|#define MAXEXTLANG 3
  ------------------
  |  Branch (2438:9): [True: 88, False: 0]
  |  Branch (2438:21): [True: 88, False: 0]
  ------------------
 2439|     88|        return langtag->extlang[idx];
 2440|     88|    }
 2441|      0|    return nullptr;
 2442|     88|}
uloc_tag.cpp:_ZN12_GLOBAL__N_117ultag_getLanguageEPKNS_12ULanguageTagE:
 2419|  4.78k|ultag_getLanguage(const ULanguageTag* langtag) {
 2420|  4.78k|    return langtag->language;
 2421|  4.78k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_115ultag_getScriptEPKNS_12ULanguageTagE:
 2457|  4.87k|ultag_getScript(const ULanguageTag* langtag) {
 2458|  4.87k|    return langtag->script;
 2459|  4.87k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_115ultag_getRegionEPKNS_12ULanguageTagE:
 2462|  4.87k|ultag_getRegion(const ULanguageTag* langtag) {
 2463|  4.87k|    return langtag->region;
 2464|  4.87k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_113_sortVariantsEPNS_16VariantListEntryE:
 1158|  4.87k|void _sortVariants(VariantListEntry* first) {
 1159|  8.78k|    for (VariantListEntry* var1 = first; var1 != nullptr; var1 = var1->next) {
  ------------------
  |  Branch (1159:42): [True: 3.91k, False: 4.87k]
  ------------------
 1160|  52.8k|        for (VariantListEntry* var2 = var1->next; var2 != nullptr; var2 = var2->next) {
  ------------------
  |  Branch (1160:51): [True: 48.9k, False: 3.91k]
  ------------------
 1161|       |            // Swap var1->variant and var2->variant.
 1162|  48.9k|            if (uprv_compareInvCharsAsAscii(var1->variant, var2->variant) > 0) {
  ------------------
  |  |  153|  48.9k|#   define uprv_compareInvCharsAsAscii(s1, s2) uprv_strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |   38|  48.9k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  |  |  ------------------
  |  |  |  |  |  |  393|  48.9k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1162:17): [True: 26.3k, False: 22.6k]
  ------------------
 1163|  26.3k|                const char* temp = var1->variant;
 1164|  26.3k|                var1->variant = var2->variant;
 1165|  26.3k|                var2->variant = temp;
 1166|  26.3k|            }
 1167|  48.9k|        }
 1168|  3.91k|    }
 1169|  4.87k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_121ultag_getVariantsSizeEPKNS_12ULanguageTagE:
 2483|  6.74k|ultag_getVariantsSize(const ULanguageTag* langtag) {
 2484|  6.74k|    int32_t size = 0;
 2485|  6.74k|    VariantListEntry *cur = langtag->variants;
 2486|  13.0k|    while (true) {
  ------------------
  |  Branch (2486:12): [Folded - Ignored]
  ------------------
 2487|  13.0k|        if (cur == nullptr) {
  ------------------
  |  Branch (2487:13): [True: 6.74k, False: 6.30k]
  ------------------
 2488|  6.74k|            break;
 2489|  6.74k|        }
 2490|  6.30k|        size++;
 2491|  6.30k|        cur = cur->next;
 2492|  6.30k|    }
 2493|  6.74k|    return size;
 2494|  6.74k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_116ultag_getVariantEPKNS_12ULanguageTagEi:
 2467|  3.91k|ultag_getVariant(const ULanguageTag* langtag, int32_t idx) {
 2468|  3.91k|    const char *var = nullptr;
 2469|  3.91k|    VariantListEntry *cur = langtag->variants;
 2470|  3.91k|    int32_t i = 0;
 2471|  52.8k|    while (cur) {
  ------------------
  |  Branch (2471:12): [True: 52.8k, False: 0]
  ------------------
 2472|  52.8k|        if (i == idx) {
  ------------------
  |  Branch (2472:13): [True: 3.91k, False: 48.9k]
  ------------------
 2473|  3.91k|            var = cur->variant;
 2474|  3.91k|            break;
 2475|  3.91k|        }
 2476|  48.9k|        cur = cur->next;
 2477|  48.9k|        i++;
 2478|  48.9k|    }
 2479|  3.91k|    return var;
 2480|  3.91k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_123ultag_getExtensionsSizeEPKNS_12ULanguageTagE:
 2529|  6.91k|ultag_getExtensionsSize(const ULanguageTag* langtag) {
 2530|  6.91k|    int32_t size = 0;
 2531|  6.91k|    ExtensionListEntry *cur = langtag->extensions;
 2532|  12.8k|    while (true) {
  ------------------
  |  Branch (2532:12): [Folded - Ignored]
  ------------------
 2533|  12.8k|        if (cur == nullptr) {
  ------------------
  |  Branch (2533:13): [True: 6.91k, False: 5.93k]
  ------------------
 2534|  6.91k|            break;
 2535|  6.91k|        }
 2536|  5.93k|        size++;
 2537|  5.93k|        cur = cur->next;
 2538|  5.93k|    }
 2539|  6.91k|    return size;
 2540|  6.91k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_119ultag_getPrivateUseEPKNS_12ULanguageTagE:
 2543|  6.91k|ultag_getPrivateUse(const ULanguageTag* langtag) {
 2544|  6.91k|    return langtag->privateuse;
 2545|  6.91k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_115_appendKeywordsEPNS_12ULanguageTagERN6icu_788ByteSinkER10UErrorCode:
 1781|  2.03k|_appendKeywords(ULanguageTag* langtag, icu::ByteSink& sink, UErrorCode& status) {
 1782|  2.03k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1782:9): [True: 0, False: 2.03k]
  ------------------
 1783|       |
 1784|  2.03k|    int32_t i, n;
 1785|  2.03k|    int32_t len;
 1786|  2.03k|    ExtensionListEntry *kwdFirst = nullptr;
 1787|  2.03k|    ExtensionListEntry *kwd;
 1788|  2.03k|    const char *key, *type;
 1789|  2.03k|    icu::MemoryPool<ExtensionListEntry> extPool;
 1790|  2.03k|    icu::MemoryPool<icu::CharString> kwdBuf;
 1791|  2.03k|    bool posixVariant = false;
 1792|       |
 1793|  2.03k|    n = ultag_getExtensionsSize(langtag);
 1794|       |
 1795|       |    /* resolve locale keywords and reordering keys */
 1796|  5.00k|    for (i = 0; i < n; i++) {
  ------------------
  |  Branch (1796:17): [True: 2.96k, False: 2.03k]
  ------------------
 1797|  2.96k|        key = ultag_getExtensionKey(langtag, i);
 1798|  2.96k|        type = ultag_getExtensionValue(langtag, i);
 1799|  2.96k|        if (*key == LDMLEXT) {
  ------------------
  |  |   67|  2.96k|#define LDMLEXT 'u'
  ------------------
  |  Branch (1799:13): [True: 1.87k, False: 1.09k]
  ------------------
 1800|       |            /* Determine if variants already exists */
 1801|  1.87k|            if (ultag_getVariantsSize(langtag)) {
  ------------------
  |  Branch (1801:17): [True: 194, False: 1.68k]
  ------------------
 1802|    194|                posixVariant = true;
 1803|    194|            }
 1804|       |
 1805|  1.87k|            _appendLDMLExtensionAsKeywords(type, &kwdFirst, extPool, kwdBuf, posixVariant, status);
 1806|  1.87k|            if (U_FAILURE(status)) {
  ------------------
  |  Branch (1806:17): [True: 0, False: 1.87k]
  ------------------
 1807|      0|                break;
 1808|      0|            }
 1809|  1.87k|        } else {
 1810|  1.09k|            kwd = extPool.create();
 1811|  1.09k|            if (kwd == nullptr) {
  ------------------
  |  Branch (1811:17): [True: 0, False: 1.09k]
  ------------------
 1812|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 1813|      0|                break;
 1814|      0|            }
 1815|  1.09k|            kwd->key = key;
 1816|  1.09k|            kwd->value = type;
 1817|  1.09k|            if (!_addExtensionToList(&kwdFirst, kwd, false)) {
  ------------------
  |  Branch (1817:17): [True: 0, False: 1.09k]
  ------------------
 1818|      0|                status = U_ILLEGAL_ARGUMENT_ERROR;
 1819|      0|                break;
 1820|      0|            }
 1821|  1.09k|        }
 1822|  2.96k|    }
 1823|       |
 1824|  2.03k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1824:9): [True: 2.03k, False: 0]
  ------------------
 1825|  2.03k|        type = ultag_getPrivateUse(langtag);
 1826|  2.03k|        if (static_cast<int32_t>(uprv_strlen(type)) > 0) {
  ------------------
  |  |   37|  2.03k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  2.03k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1826:13): [True: 175, False: 1.86k]
  ------------------
 1827|       |            /* add private use as a keyword */
 1828|    175|            kwd = extPool.create();
 1829|    175|            if (kwd == nullptr) {
  ------------------
  |  Branch (1829:17): [True: 0, False: 175]
  ------------------
 1830|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 1831|    175|            } else {
 1832|    175|                kwd->key = PRIVATEUSE_KEY;
 1833|    175|                kwd->value = type;
 1834|    175|                if (!_addExtensionToList(&kwdFirst, kwd, false)) {
  ------------------
  |  Branch (1834:21): [True: 0, False: 175]
  ------------------
 1835|      0|                    status = U_ILLEGAL_ARGUMENT_ERROR;
 1836|      0|                }
 1837|    175|            }
 1838|    175|        }
 1839|  2.03k|    }
 1840|       |
 1841|       |    /* If a POSIX variant was in the extensions, write it out before writing the keywords. */
 1842|       |
 1843|  2.03k|    if (U_SUCCESS(status) && posixVariant) {
  ------------------
  |  Branch (1843:9): [True: 2.03k, False: 0]
  |  Branch (1843:30): [True: 15, False: 2.02k]
  ------------------
 1844|     15|        len = static_cast<int32_t>(uprv_strlen(_POSIX));
  ------------------
  |  |   37|     15|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|     15|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1845|     15|        sink.Append(_POSIX, len);
 1846|     15|    }
 1847|       |
 1848|  2.03k|    if (U_SUCCESS(status) && kwdFirst != nullptr) {
  ------------------
  |  Branch (1848:9): [True: 2.03k, False: 0]
  |  Branch (1848:30): [True: 2.03k, False: 6]
  ------------------
 1849|       |        /* write out the sorted keywords */
 1850|  2.03k|        bool firstValue = true;
 1851|  2.03k|        kwd = kwdFirst;
 1852|  13.8k|        do {
 1853|  13.8k|            if (firstValue) {
  ------------------
  |  Branch (1853:17): [True: 2.03k, False: 11.7k]
  ------------------
 1854|  2.03k|                sink.Append("@", 1);
 1855|  2.03k|                firstValue = false;
 1856|  11.7k|            } else {
 1857|  11.7k|                sink.Append(";", 1);
 1858|  11.7k|            }
 1859|       |
 1860|       |            /* key */
 1861|  13.8k|            len = static_cast<int32_t>(uprv_strlen(kwd->key));
  ------------------
  |  |   37|  13.8k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  13.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1862|  13.8k|            sink.Append(kwd->key, len);
 1863|  13.8k|            sink.Append("=", 1);
 1864|       |
 1865|       |            /* type */
 1866|  13.8k|            len = static_cast<int32_t>(uprv_strlen(kwd->value));
  ------------------
  |  |   37|  13.8k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  13.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1867|  13.8k|            sink.Append(kwd->value, len);
 1868|       |
 1869|  13.8k|            kwd = kwd->next;
 1870|  13.8k|        } while (kwd);
  ------------------
  |  Branch (1870:18): [True: 11.7k, False: 2.03k]
  ------------------
 1871|  2.03k|    }
 1872|  2.03k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_121ultag_getExtensionKeyEPKNS_12ULanguageTagEi:
 2497|  2.96k|ultag_getExtensionKey(const ULanguageTag* langtag, int32_t idx) {
 2498|  2.96k|    const char *key = nullptr;
 2499|  2.96k|    ExtensionListEntry *cur = langtag->extensions;
 2500|  2.96k|    int32_t i = 0;
 2501|  6.86k|    while (cur) {
  ------------------
  |  Branch (2501:12): [True: 6.86k, False: 0]
  ------------------
 2502|  6.86k|        if (i == idx) {
  ------------------
  |  Branch (2502:13): [True: 2.96k, False: 3.89k]
  ------------------
 2503|  2.96k|            key = cur->key;
 2504|  2.96k|            break;
 2505|  2.96k|        }
 2506|  3.89k|        cur = cur->next;
 2507|  3.89k|        i++;
 2508|  3.89k|    }
 2509|  2.96k|    return key;
 2510|  2.96k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_123ultag_getExtensionValueEPKNS_12ULanguageTagEi:
 2513|  2.96k|ultag_getExtensionValue(const ULanguageTag* langtag, int32_t idx) {
 2514|  2.96k|    const char *val = nullptr;
 2515|  2.96k|    ExtensionListEntry *cur = langtag->extensions;
 2516|  2.96k|    int32_t i = 0;
 2517|  6.86k|    while (cur) {
  ------------------
  |  Branch (2517:12): [True: 6.86k, False: 0]
  ------------------
 2518|  6.86k|        if (i == idx) {
  ------------------
  |  Branch (2518:13): [True: 2.96k, False: 3.89k]
  ------------------
 2519|  2.96k|            val = cur->value;
 2520|  2.96k|            break;
 2521|  2.96k|        }
 2522|  3.89k|        cur = cur->next;
 2523|  3.89k|        i++;
 2524|  3.89k|    }
 2525|  2.96k|    return val;
 2526|  2.96k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_130_appendLDMLExtensionAsKeywordsEPKcPPNS_18ExtensionListEntryERN6icu_7810MemoryPoolIS2_Li8EEERNS6_INS5_10CharStringELi8EEERbR10UErrorCode:
 1523|  1.87k|_appendLDMLExtensionAsKeywords(const char* ldmlext, ExtensionListEntry** appendTo, icu::MemoryPool<ExtensionListEntry>& extPool, icu::MemoryPool<icu::CharString>& kwdBuf, bool& posixVariant, UErrorCode& status) {
 1524|  1.87k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1524:9): [True: 0, False: 1.87k]
  ------------------
 1525|       |
 1526|  1.87k|    const char *pTag;   /* beginning of current subtag */
 1527|  1.87k|    const char *pKwds;  /* beginning of key-type pairs */
 1528|  1.87k|    bool variantExists = posixVariant;
 1529|       |
 1530|  1.87k|    ExtensionListEntry *kwdFirst = nullptr;    /* first LDML keyword */
 1531|  1.87k|    ExtensionListEntry *kwd, *nextKwd;
 1532|       |
 1533|  1.87k|    int32_t len;
 1534|       |
 1535|       |    /* Reset the posixVariant value */
 1536|  1.87k|    posixVariant = false;
 1537|       |
 1538|  1.87k|    pTag = ldmlext;
 1539|  1.87k|    pKwds = nullptr;
 1540|       |
 1541|  1.87k|    {
 1542|  1.87k|        AttributeListEntry *attrFirst = nullptr;   /* first attribute */
 1543|  1.87k|        AttributeListEntry *attr, *nextAttr;
 1544|       |
 1545|  1.87k|        icu::MemoryPool<icu::CharString> strPool;
 1546|  1.87k|        icu::MemoryPool<AttributeListEntry> attrPool;
 1547|       |
 1548|       |        /* Iterate through u extension attributes */
 1549|  7.99k|        while (*pTag) {
  ------------------
  |  Branch (1549:16): [True: 7.84k, False: 154]
  ------------------
 1550|       |            /* locate next separator char */
 1551|  28.1k|            for (len = 0; *(pTag + len) && *(pTag + len) != SEP; len++);
  ------------------
  |  |   65|  27.8k|#define SEP '-'
  ------------------
  |  Branch (1551:27): [True: 27.8k, False: 276]
  |  Branch (1551:44): [True: 20.2k, False: 7.56k]
  ------------------
 1552|       |
 1553|  7.84k|            if (ultag_isUnicodeLocaleKey(pTag, len)) {
  ------------------
  |  | 1233|  7.84k|#define ultag_isUnicodeLocaleKey U_ICU_ENTRY_POINT_RENAME(ultag_isUnicodeLocaleKey)
  |  |  ------------------
  |  |  |  |  123|  7.84k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.84k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.84k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1553:17): [True: 1.72k, False: 6.12k]
  ------------------
 1554|  1.72k|                pKwds = pTag;
 1555|  1.72k|                break;
 1556|  1.72k|            }
 1557|       |
 1558|       |            /* add this attribute to the list */
 1559|  6.12k|            attr = attrPool.create();
 1560|  6.12k|            if (attr == nullptr) {
  ------------------
  |  Branch (1560:17): [True: 0, False: 6.12k]
  ------------------
 1561|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 1562|      0|                return;
 1563|      0|            }
 1564|       |
 1565|  6.12k|            if (icu::CharString* str = strPool.create(pTag, len, status)) {
  ------------------
  |  Branch (1565:34): [True: 6.12k, False: 0]
  ------------------
 1566|  6.12k|                if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1566:21): [True: 0, False: 6.12k]
  ------------------
 1567|  6.12k|                attr->attribute = str->data();
 1568|  6.12k|            } else {
 1569|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 1570|      0|                return;
 1571|      0|            }
 1572|       |
 1573|       |            // duplicate attribute is ignored, causes no error.
 1574|  6.12k|            _addAttributeToList(&attrFirst, attr);
 1575|       |
 1576|       |            /* next tag */
 1577|  6.12k|            pTag += len;
 1578|  6.12k|            if (*pTag) {
  ------------------
  |  Branch (1578:17): [True: 5.96k, False: 154]
  ------------------
 1579|       |                /* next to the separator */
 1580|  5.96k|                pTag++;
 1581|  5.96k|            }
 1582|  6.12k|        }
 1583|       |
 1584|  1.87k|        if (attrFirst) {
  ------------------
  |  Branch (1584:13): [True: 626, False: 1.24k]
  ------------------
 1585|       |            /* emit attributes as an LDML keyword, e.g. attribute=attr1-attr2 */
 1586|       |
 1587|    626|            kwd = extPool.create();
 1588|    626|            if (kwd == nullptr) {
  ------------------
  |  Branch (1588:17): [True: 0, False: 626]
  ------------------
 1589|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 1590|      0|                return;
 1591|      0|            }
 1592|       |
 1593|    626|            icu::CharString* value = kwdBuf.create();
 1594|    626|            if (value == nullptr) {
  ------------------
  |  Branch (1594:17): [True: 0, False: 626]
  ------------------
 1595|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 1596|      0|                return;
 1597|      0|            }
 1598|       |
 1599|       |            /* attribute subtags sorted in alphabetical order as type */
 1600|    626|            attr = attrFirst;
 1601|  3.10k|            while (attr != nullptr) {
  ------------------
  |  Branch (1601:20): [True: 2.47k, False: 626]
  ------------------
 1602|  2.47k|                nextAttr = attr->next;
 1603|  2.47k|                if (attr != attrFirst) {
  ------------------
  |  Branch (1603:21): [True: 1.85k, False: 626]
  ------------------
 1604|  1.85k|                    value->append('-', status);
 1605|  1.85k|                }
 1606|  2.47k|                value->append(attr->attribute, status);
 1607|  2.47k|                attr = nextAttr;
 1608|  2.47k|            }
 1609|    626|            if (U_FAILURE(status)) {
  ------------------
  |  Branch (1609:17): [True: 0, False: 626]
  ------------------
 1610|      0|                return;
 1611|      0|            }
 1612|       |
 1613|    626|            kwd->key = LOCALE_ATTRIBUTE_KEY;
 1614|    626|            kwd->value = value->data();
 1615|       |
 1616|    626|            if (!_addExtensionToList(&kwdFirst, kwd, false)) {
  ------------------
  |  Branch (1616:17): [True: 0, False: 626]
  ------------------
 1617|      0|                status = U_ILLEGAL_ARGUMENT_ERROR;
 1618|      0|                return;
 1619|      0|            }
 1620|    626|        }
 1621|  1.87k|    }
 1622|       |
 1623|  1.87k|    if (pKwds) {
  ------------------
  |  Branch (1623:9): [True: 1.72k, False: 154]
  ------------------
 1624|  1.72k|        const char *pBcpKey = nullptr;     /* u extension key subtag */
 1625|  1.72k|        const char *pBcpType = nullptr;    /* beginning of u extension type subtag(s) */
 1626|  1.72k|        int32_t bcpKeyLen = 0;
 1627|  1.72k|        int32_t bcpTypeLen = 0;
 1628|  1.72k|        bool isDone = false;
 1629|       |
 1630|  1.72k|        pTag = pKwds;
 1631|       |        /* BCP47 representation of LDML key/type pairs */
 1632|  49.9k|        while (!isDone) {
  ------------------
  |  Branch (1632:16): [True: 48.2k, False: 1.72k]
  ------------------
 1633|  48.2k|            const char *pNextBcpKey = nullptr;
 1634|  48.2k|            int32_t nextBcpKeyLen = 0;
 1635|  48.2k|            bool emitKeyword = false;
 1636|       |
 1637|  48.2k|            if (*pTag) {
  ------------------
  |  Branch (1637:17): [True: 46.4k, False: 1.72k]
  ------------------
 1638|       |                /* locate next separator char */
 1639|   182k|                for (len = 0; *(pTag + len) && *(pTag + len) != SEP; len++);
  ------------------
  |  |   65|   181k|#define SEP '-'
  ------------------
  |  Branch (1639:31): [True: 181k, False: 1.72k]
  |  Branch (1639:48): [True: 136k, False: 44.7k]
  ------------------
 1640|       |
 1641|  46.4k|                if (ultag_isUnicodeLocaleKey(pTag, len)) {
  ------------------
  |  | 1233|  46.4k|#define ultag_isUnicodeLocaleKey U_ICU_ENTRY_POINT_RENAME(ultag_isUnicodeLocaleKey)
  |  |  ------------------
  |  |  |  |  123|  46.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  46.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  46.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1641:21): [True: 22.4k, False: 24.0k]
  ------------------
 1642|  22.4k|                    if (pBcpKey) {
  ------------------
  |  Branch (1642:25): [True: 20.7k, False: 1.72k]
  ------------------
 1643|  20.7k|                        emitKeyword = true;
 1644|  20.7k|                        pNextBcpKey = pTag;
 1645|  20.7k|                        nextBcpKeyLen = len;
 1646|  20.7k|                    } else {
 1647|  1.72k|                        pBcpKey = pTag;
 1648|  1.72k|                        bcpKeyLen = len;
 1649|  1.72k|                    }
 1650|  24.0k|                } else {
 1651|  24.0k|                    U_ASSERT(pBcpKey != nullptr);
  ------------------
  |  |   35|  24.0k|#   define U_ASSERT(exp) (void)0
  ------------------
 1652|       |                    /* within LDML type subtags */
 1653|  24.0k|                    if (pBcpType) {
  ------------------
  |  Branch (1653:25): [True: 18.1k, False: 5.93k]
  ------------------
 1654|  18.1k|                        bcpTypeLen += (len + 1);
 1655|  18.1k|                    } else {
 1656|  5.93k|                        pBcpType = pTag;
 1657|  5.93k|                        bcpTypeLen = len;
 1658|  5.93k|                    }
 1659|  24.0k|                }
 1660|       |
 1661|       |                /* next tag */
 1662|  46.4k|                pTag += len;
 1663|  46.4k|                if (*pTag) {
  ------------------
  |  Branch (1663:21): [True: 44.7k, False: 1.72k]
  ------------------
 1664|       |                    /* next to the separator */
 1665|  44.7k|                    pTag++;
 1666|  44.7k|                }
 1667|  46.4k|            } else {
 1668|       |                /* processing last one */
 1669|  1.72k|                emitKeyword = true;
 1670|  1.72k|                isDone = true;
 1671|  1.72k|            }
 1672|       |
 1673|  48.2k|            if (emitKeyword) {
  ------------------
  |  Branch (1673:17): [True: 22.4k, False: 25.7k]
  ------------------
 1674|  22.4k|                const char *pKey = nullptr;    /* LDML key */
 1675|  22.4k|                const char *pType = nullptr;   /* LDML type */
 1676|       |
 1677|  22.4k|                U_ASSERT(pBcpKey != nullptr);
  ------------------
  |  |   35|  22.4k|#   define U_ASSERT(exp) (void)0
  ------------------
 1678|       |
 1679|       |                /* BCP key length is always 2 for now */
 1680|  22.4k|                if (bcpKeyLen != 2) {
  ------------------
  |  Branch (1680:21): [True: 0, False: 22.4k]
  ------------------
 1681|       |                    /* the BCP key is invalid */
 1682|      0|                    status = U_ILLEGAL_ARGUMENT_ERROR;
 1683|      0|                    return;
 1684|      0|                }
 1685|       |
 1686|       |                /* u extension key to LDML key */
 1687|  22.4k|                std::optional<std::string_view> legacyKey = ulocimp_toLegacyKeyWithFallback(
  ------------------
  |  | 1220|  22.4k|#define ulocimp_toLegacyKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ulocimp_toLegacyKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  22.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  22.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  22.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1688|  22.4k|                    {pBcpKey, static_cast<std::string_view::size_type>(bcpKeyLen)});
 1689|  22.4k|                if (!legacyKey.has_value()) {
  ------------------
  |  Branch (1689:21): [True: 0, False: 22.4k]
  ------------------
 1690|      0|                    status = U_ILLEGAL_ARGUMENT_ERROR;
 1691|      0|                    return;
 1692|      0|                }
 1693|  22.4k|                if (legacyKey->data() == pBcpKey) {
  ------------------
  |  Branch (1693:21): [True: 14.4k, False: 8.03k]
  ------------------
 1694|       |                    /*
 1695|       |                    The key returned by toLegacyKey points to the input buffer.
 1696|       |                    We normalize the result key to lower case.
 1697|       |                    */
 1698|  14.4k|                    icu::CharString* key = kwdBuf.create(pBcpKey, bcpKeyLen, status);
 1699|  14.4k|                    if (key == nullptr) {
  ------------------
  |  Branch (1699:25): [True: 0, False: 14.4k]
  ------------------
 1700|      0|                        status = U_MEMORY_ALLOCATION_ERROR;
 1701|      0|                        return;
 1702|      0|                    }
 1703|  14.4k|                    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1703:25): [True: 0, False: 14.4k]
  ------------------
 1704|      0|                        return;
 1705|      0|                    }
 1706|  14.4k|                    T_CString_toLowerCase(key->data());
  ------------------
  |  |   69|  14.4k|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  123|  14.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  14.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  14.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1707|  14.4k|                    pKey = key->data();
 1708|  14.4k|                } else {
 1709|  8.03k|                    pKey = legacyKey->data();
 1710|  8.03k|                }
 1711|       |
 1712|  22.4k|                if (pBcpType) {
  ------------------
  |  Branch (1712:21): [True: 5.93k, False: 16.5k]
  ------------------
 1713|       |                    /* BCP type to locale type */
 1714|  5.93k|                    std::optional<std::string_view> legacyType = ulocimp_toLegacyTypeWithFallback(
  ------------------
  |  | 1222|  5.93k|#define ulocimp_toLegacyTypeWithFallback U_ICU_ENTRY_POINT_RENAME(ulocimp_toLegacyTypeWithFallback)
  |  |  ------------------
  |  |  |  |  123|  5.93k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.93k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.93k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1715|  5.93k|                        pKey, {pBcpType, static_cast<std::string_view::size_type>(bcpTypeLen)});
 1716|  5.93k|                    if (!legacyType.has_value()) {
  ------------------
  |  Branch (1716:25): [True: 0, False: 5.93k]
  ------------------
 1717|      0|                        status = U_ILLEGAL_ARGUMENT_ERROR;
 1718|      0|                        return;
 1719|      0|                    }
 1720|  5.93k|                    if (legacyType->data() == pBcpType) {
  ------------------
  |  Branch (1720:25): [True: 5.50k, False: 432]
  ------------------
 1721|       |                        /*
 1722|       |                        The type returned by toLegacyType points to the input buffer.
 1723|       |                        We normalize the result type to lower case.
 1724|       |                        */
 1725|  5.50k|                        icu::CharString* type = kwdBuf.create(pBcpType, bcpTypeLen, status);
 1726|  5.50k|                        if (type == nullptr) {
  ------------------
  |  Branch (1726:29): [True: 0, False: 5.50k]
  ------------------
 1727|      0|                            status = U_MEMORY_ALLOCATION_ERROR;
 1728|      0|                            return;
 1729|      0|                        }
 1730|  5.50k|                        if (U_FAILURE(status)) {
  ------------------
  |  Branch (1730:29): [True: 0, False: 5.50k]
  ------------------
 1731|      0|                            return;
 1732|      0|                        }
 1733|  5.50k|                        T_CString_toLowerCase(type->data());
  ------------------
  |  |   69|  5.50k|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  123|  5.50k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.50k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.50k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1734|  5.50k|                        pType = type->data();
 1735|  5.50k|                    } else {
 1736|    432|                        pType = legacyType->data();
 1737|    432|                    }
 1738|  16.5k|                } else {
 1739|       |                    /* typeless - default type value is "yes" */
 1740|  16.5k|                    pType = LOCALE_TYPE_YES;
 1741|  16.5k|                }
 1742|       |
 1743|       |                /* Special handling for u-va-posix, since we want to treat this as a variant, 
 1744|       |                   not as a keyword */
 1745|  22.4k|                if (!variantExists && !uprv_strcmp(pKey, POSIX_KEY) && !uprv_strcmp(pType, POSIX_VALUE) ) {
  ------------------
  |  |   38|  21.4k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  21.4k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                              if (!variantExists && !uprv_strcmp(pKey, POSIX_KEY) && !uprv_strcmp(pType, POSIX_VALUE) ) {
  ------------------
  |  |   38|    563|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    563|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1745:21): [True: 21.4k, False: 1.00k]
  |  Branch (1745:39): [True: 563, False: 20.8k]
  |  Branch (1745:72): [True: 199, False: 364]
  ------------------
 1746|    199|                    posixVariant = true;
 1747|  22.2k|                } else {
 1748|       |                    /* create an ExtensionListEntry for this keyword */
 1749|  22.2k|                    kwd = extPool.create();
 1750|  22.2k|                    if (kwd == nullptr) {
  ------------------
  |  Branch (1750:25): [True: 0, False: 22.2k]
  ------------------
 1751|      0|                        status = U_MEMORY_ALLOCATION_ERROR;
 1752|      0|                        return;
 1753|      0|                    }
 1754|       |
 1755|  22.2k|                    kwd->key = pKey;
 1756|  22.2k|                    kwd->value = pType;
 1757|       |
 1758|  22.2k|                    if (!_addExtensionToList(&kwdFirst, kwd, false)) {
  ------------------
  |  Branch (1758:25): [True: 10.3k, False: 11.9k]
  ------------------
 1759|       |                        // duplicate keyword is allowed, Only the first
 1760|       |                        // is honored.
 1761|  10.3k|                    }
 1762|  22.2k|                }
 1763|       |
 1764|  22.4k|                pBcpKey = pNextBcpKey;
 1765|  22.4k|                bcpKeyLen = pNextBcpKey != nullptr ? nextBcpKeyLen : 0;
  ------------------
  |  Branch (1765:29): [True: 20.7k, False: 1.72k]
  ------------------
 1766|  22.4k|                pBcpType = nullptr;
 1767|  22.4k|                bcpTypeLen = 0;
 1768|  22.4k|            }
 1769|  48.2k|        }
 1770|  1.72k|    }
 1771|       |
 1772|  1.87k|    kwd = kwdFirst;
 1773|  14.4k|    while (kwd != nullptr) {
  ------------------
  |  Branch (1773:12): [True: 12.5k, False: 1.87k]
  ------------------
 1774|  12.5k|        nextKwd = kwd->next;
 1775|  12.5k|        _addExtensionToList(appendTo, kwd, false);
 1776|  12.5k|        kwd = nextKwd;
 1777|  12.5k|    }
 1778|  1.87k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_111ultag_closeEPNS_12ULanguageTagE:
 2389|  4.87k|ultag_close(ULanguageTag* langtag) {
 2390|       |
 2391|  4.87k|    if (langtag == nullptr) {
  ------------------
  |  Branch (2391:9): [True: 0, False: 4.87k]
  ------------------
 2392|      0|        return;
 2393|      0|    }
 2394|       |
 2395|  4.87k|    uprv_free(langtag->buf);
  ------------------
  |  | 1503|  4.87k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  4.87k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.87k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.87k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2396|       |
 2397|  4.87k|    if (langtag->variants) {
  ------------------
  |  Branch (2397:9): [True: 434, False: 4.43k]
  ------------------
 2398|    434|        VariantListEntry *curVar = langtag->variants;
 2399|  4.34k|        while (curVar) {
  ------------------
  |  Branch (2399:16): [True: 3.91k, False: 434]
  ------------------
 2400|  3.91k|            VariantListEntry *nextVar = curVar->next;
 2401|  3.91k|            delete curVar;
 2402|  3.91k|            curVar = nextVar;
 2403|  3.91k|        }
 2404|    434|    }
 2405|       |
 2406|  4.87k|    if (langtag->extensions) {
  ------------------
  |  Branch (2406:9): [True: 1.92k, False: 2.94k]
  ------------------
 2407|  1.92k|        ExtensionListEntry *curExt = langtag->extensions;
 2408|  4.89k|        while (curExt) {
  ------------------
  |  Branch (2408:16): [True: 2.96k, False: 1.92k]
  ------------------
 2409|  2.96k|            ExtensionListEntry *nextExt = curExt->next;
 2410|  2.96k|            delete curExt;
 2411|  2.96k|            curExt = nextExt;
 2412|  2.96k|        }
 2413|  1.92k|    }
 2414|       |
 2415|  4.87k|    uprv_free(langtag);
  ------------------
  |  | 1503|  4.87k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  4.87k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.87k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.87k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2416|  4.87k|}
uloc_tag.cpp:_ZZ25ulocimp_forLanguageTag_78PKciPiR10UErrorCodeENK3$_0clERN6icu_788ByteSinkES3_:
 2677|  4.87k|        [&](icu::ByteSink& sink, UErrorCode& status) {
 2678|  4.87k|            ulocimp_forLanguageTag(langtag, tagLen, sink, parsedLength, status);
  ------------------
  |  | 1198|  4.87k|#define ulocimp_forLanguageTag U_ICU_ENTRY_POINT_RENAME(ulocimp_forLanguageTag)
  |  |  ------------------
  |  |  |  |  123|  4.87k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.87k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.87k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2679|  4.87k|        },

uloc.cpp:_ZN12_GLOBAL__N_114_isIDSeparatorEc:
   49|   305k|inline bool _isIDSeparator(char a) { return a == '_' || a == '-'; }
  ------------------
  |  Branch (49:45): [True: 86.9k, False: 218k]
  |  Branch (49:57): [True: 7.80k, False: 210k]
  ------------------

uprv_max_78:
   17|  24.8k|{
   18|  24.8k|    return (x > y ? x : y);
  ------------------
  |  Branch (18:13): [True: 2.82k, False: 21.9k]
  ------------------
   19|  24.8k|}
uprv_min_78:
   23|  85.2k|{
   24|  85.2k|    return (x > y ? y : x);
  ------------------
  |  Branch (24:13): [True: 0, False: 85.2k]
  ------------------
   25|  85.2k|}

_ZN6icu_786UMutex8getMutexEv:
   80|      3|std::mutex *UMutex::getMutex() {
   81|      3|    std::mutex *retPtr = fMutex.load(std::memory_order_acquire);
   82|      3|    if (retPtr == nullptr) {
  ------------------
  |  Branch (82:9): [True: 3, False: 0]
  ------------------
   83|      3|        std::call_once(*pInitFlag, umtx_init);
   84|      3|        std::lock_guard<std::mutex> guard(*initMutex);
   85|      3|        retPtr = fMutex.load(std::memory_order_acquire);
   86|      3|        if (retPtr == nullptr) {
  ------------------
  |  Branch (86:13): [True: 3, False: 0]
  ------------------
   87|      3|            fMutex = new(fStorage) std::mutex();
   88|      3|            retPtr = fMutex;
   89|      3|            fListLink = gListHead;
   90|      3|            gListHead = this;
   91|      3|        }
   92|      3|    }
   93|      3|    U_ASSERT(retPtr != nullptr);
  ------------------
  |  |   35|      3|#   define U_ASSERT(exp) (void)0
  ------------------
   94|      3|    return retPtr;
   95|      3|}
umtx_lock_78:
  112|   224k|umtx_lock(UMutex *mutex) {
  113|   224k|    if (mutex == nullptr) {
  ------------------
  |  Branch (113:9): [True: 38.1k, False: 186k]
  ------------------
  114|  38.1k|        mutex = &globalMutex;
  115|  38.1k|    }
  116|   224k|    mutex->lock();
  117|   224k|}
umtx_unlock_78:
  122|   224k|{
  123|   224k|    if (mutex == nullptr) {
  ------------------
  |  Branch (123:9): [True: 38.1k, False: 186k]
  ------------------
  124|  38.1k|        mutex = &globalMutex;
  125|  38.1k|    }
  126|   224k|    mutex->unlock();
  127|   224k|}
_ZN6icu_7820umtx_initImplPreInitERNS_9UInitOnceE:
  145|     13|umtx_initImplPreInit(UInitOnce &uio) {
  146|     13|    std::call_once(*pInitFlag, umtx_init);
  147|     13|    std::unique_lock<std::mutex> lock(*initMutex);
  148|     13|    if (umtx_loadAcquire(uio.fState) == 0) {
  ------------------
  |  Branch (148:9): [True: 13, False: 0]
  ------------------
  149|     13|        umtx_storeRelease(uio.fState, 1);
  150|     13|        return true;      // Caller will next call the init function.
  151|     13|    } else {
  152|      0|        while (umtx_loadAcquire(uio.fState) == 1) {
  ------------------
  |  Branch (152:16): [True: 0, False: 0]
  ------------------
  153|       |            // Another thread is currently running the initialization.
  154|       |            // Wait until it completes.
  155|      0|            initCondition->wait(lock);
  156|      0|        }
  157|      0|        U_ASSERT(uio.fState == 2);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
  158|      0|        return false;
  159|      0|    }
  160|     13|}
_ZN6icu_7821umtx_initImplPostInitERNS_9UInitOnceE:
  170|     13|umtx_initImplPostInit(UInitOnce &uio) {
  171|     13|    {
  172|     13|        std::unique_lock<std::mutex> lock(*initMutex);
  173|     13|        umtx_storeRelease(uio.fState, 2);
  174|     13|    }
  175|     13|    initCondition->notify_all();
  176|     13|}
umutex.cpp:_ZN6icu_78L9umtx_initEv:
   72|      1|static void U_CALLCONV umtx_init() {
   73|      1|    initMutex = STATIC_NEW(std::mutex);
  ------------------
  |  |  144|      1|#define STATIC_NEW(type) [] () { \
  |  |  145|      1|    alignas(type) static char storage[sizeof(type)]; \
  |  |  146|      1|    return new(storage) type();} ()
  ------------------
   74|      1|    initCondition = STATIC_NEW(std::condition_variable);
  ------------------
  |  |  144|      1|#define STATIC_NEW(type) [] () { \
  |  |  145|      1|    alignas(type) static char storage[sizeof(type)]; \
  |  |  146|      1|    return new(storage) type();} ()
  ------------------
   75|      1|    ucln_common_registerCleanup(UCLN_COMMON_MUTEX, umtx_cleanup);
  ------------------
  |  |  617|      1|#define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   76|      1|}

_ZN6icu_789UInitOnce7isResetEv:
  102|  14.3k|    UBool isReset() {return umtx_loadAcquire(fState) == 0;}
_ZN6icu_7816umtx_loadAcquireERNSt3__16atomicIiEE:
   75|  48.3M|inline int32_t umtx_loadAcquire(u_atomic_int32_t &var) {
   76|  48.3M|    return var.load(std::memory_order_acquire);
   77|  48.3M|}
_ZN6icu_7813umtx_initOnceERNS_9UInitOnceEPFvR10UErrorCodeES3_:
  135|  63.3k|inline void umtx_initOnce(UInitOnce &uio, void (U_CALLCONV *fp)(UErrorCode &), UErrorCode &errCode) {
  136|  63.3k|    if (U_FAILURE(errCode)) {
  ------------------
  |  Branch (136:9): [True: 1, False: 63.3k]
  ------------------
  137|      1|        return;
  138|      1|    }
  139|  63.3k|    if (umtx_loadAcquire(uio.fState) != 2 && umtx_initImplPreInit(uio)) {
  ------------------
  |  Branch (139:9): [True: 10, False: 63.3k]
  |  Branch (139:46): [True: 10, False: 0]
  ------------------
  140|       |        // We run the initialization.
  141|     10|        (*fp)(errCode);
  142|     10|        uio.fErrCode = errCode;
  143|     10|        umtx_initImplPostInit(uio);
  144|  63.3k|    } else {
  145|       |        // Someone else already ran the initialization.
  146|  63.3k|        if (U_FAILURE(uio.fErrCode)) {
  ------------------
  |  Branch (146:13): [True: 0, False: 63.3k]
  ------------------
  147|      0|            errCode = uio.fErrCode;
  148|      0|        }
  149|  63.3k|    }
  150|  63.3k|}
_ZN6icu_789UInitOnce5resetEv:
  101|    263|    void reset() {fState = 0;}
_ZN6icu_7813umtx_initOnceERNS_9UInitOnceEPFvvE:
  123|  20.7k|inline void umtx_initOnce(UInitOnce &uio, void (U_CALLCONV *fp)()) {
  124|  20.7k|    if (umtx_loadAcquire(uio.fState) == 2) {
  ------------------
  |  Branch (124:9): [True: 20.7k, False: 2]
  ------------------
  125|  20.7k|        return;
  126|  20.7k|    }
  127|      2|    if (umtx_initImplPreInit(uio)) {
  ------------------
  |  Branch (127:9): [True: 2, False: 0]
  ------------------
  128|      2|        (*fp)();
  129|      2|        umtx_initImplPostInit(uio);
  130|      2|    }
  131|      2|}
_ZN6icu_786UMutex4lockEv:
  229|   224k|    void lock() {
  230|   224k|        std::mutex *m = fMutex.load(std::memory_order_acquire);
  231|   224k|        if (m == nullptr) { m = getMutex(); }
  ------------------
  |  Branch (231:13): [True: 3, False: 224k]
  ------------------
  232|   224k|        m->lock();
  233|   224k|    }
_ZN6icu_786UMutex6unlockEv:
  234|   224k|    void unlock() { fMutex.load(std::memory_order_relaxed)->unlock(); }
_ZN6icu_7817umtx_storeReleaseERNSt3__16atomicIiEEi:
   79|     27|inline void umtx_storeRelease(u_atomic_int32_t &var, int32_t val) {
   80|     27|    var.store(val, std::memory_order_release);
   81|     27|}
_ZN6icu_7815umtx_atomic_incEPNSt3__16atomicIiEE:
   83|  89.1k|inline int32_t umtx_atomic_inc(u_atomic_int32_t *var) {
   84|  89.1k|    return var->fetch_add(1) + 1;
   85|  89.1k|}
_ZN6icu_7815umtx_atomic_decEPNSt3__16atomicIiEE:
   87|  92.6k|inline int32_t umtx_atomic_dec(u_atomic_int32_t *var) {
   88|  92.6k|    return var->fetch_sub(1) - 1;
   89|  92.6k|}
_ZN6icu_7813umtx_initOnceIPKcEEvRNS_9UInitOnceEPFvT_R10UErrorCodeES5_S7_:
  166|  14.3k|template<class T> void umtx_initOnce(UInitOnce &uio, void (U_CALLCONV *fp)(T, UErrorCode &), T context, UErrorCode &errCode) {
  167|  14.3k|    if (U_FAILURE(errCode)) {
  ------------------
  |  Branch (167:9): [True: 0, False: 14.3k]
  ------------------
  168|      0|        return;
  169|      0|    }
  170|  14.3k|    if (umtx_loadAcquire(uio.fState) != 2 && umtx_initImplPreInit(uio)) {
  ------------------
  |  Branch (170:9): [True: 1, False: 14.3k]
  |  Branch (170:46): [True: 1, False: 0]
  ------------------
  171|       |        // We run the initialization.
  172|      1|        (*fp)(context, errCode);
  173|      1|        uio.fErrCode = errCode;
  174|      1|        umtx_initImplPostInit(uio);
  175|  14.3k|    } else {
  176|       |        // Someone else already ran the initialization.
  177|  14.3k|        if (U_FAILURE(uio.fErrCode)) {
  ------------------
  |  Branch (177:13): [True: 0, False: 14.3k]
  ------------------
  178|      0|            errCode = uio.fErrCode;
  179|      0|        }
  180|  14.3k|    }
  181|  14.3k|}

_ZN6icu_788ByteSinkC2Ev:
   59|   190k|  ByteSink() { }
_ZNK6icu_7820CheckedArrayByteSink10OverflowedEv:
  240|  36.4k|  UBool Overflowed() const { return overflowed_; }
_ZNK6icu_7820CheckedArrayByteSink21NumberOfBytesAppendedEv:
  248|  49.3k|  int32_t NumberOfBytesAppended() const { return appended_; }

_ZN6icu_789BytesTrieC2EPKv:
   72|  3.15k|            : ownedArray_(nullptr), bytes_(static_cast<const uint8_t *>(trieBytes)),
   73|  3.15k|              pos_(bytes_), remainingMatchLength_(-1) {}
_ZNK6icu_789BytesTrie8getValueEv:
  246|  3.11k|    inline int32_t getValue() const {
  247|  3.11k|        const uint8_t *pos=pos_;
  248|  3.11k|        int32_t leadByte=*pos++;
  249|       |        // U_ASSERT(leadByte>=kMinValueLead);
  250|  3.11k|        return readValue(pos, leadByte>>1);
  251|  3.11k|    }
_ZN6icu_789BytesTrie4stopEv:
  399|     37|    inline void stop() {
  400|     37|        pos_=nullptr;
  401|     37|    }
_ZN6icu_789BytesTrie9skipValueEPKhi:
  406|  10.2k|    static inline const uint8_t *skipValue(const uint8_t *pos, int32_t leadByte) {
  407|       |        // U_ASSERT(leadByte>=kMinValueLead);
  408|  10.2k|        if(leadByte>=(kMinTwoByteValueLead<<1)) {
  ------------------
  |  Branch (408:12): [True: 5.79k, False: 4.46k]
  ------------------
  409|  5.79k|            if(leadByte<(kMinThreeByteValueLead<<1)) {
  ------------------
  |  Branch (409:16): [True: 5.79k, False: 0]
  ------------------
  410|  5.79k|                ++pos;
  411|  5.79k|            } else if(leadByte<(kFourByteValueLead<<1)) {
  ------------------
  |  Branch (411:23): [True: 0, False: 0]
  ------------------
  412|      0|                pos+=2;
  413|      0|            } else {
  414|      0|                pos+=3+((leadByte>>1)&1);
  415|      0|            }
  416|  5.79k|        }
  417|  10.2k|        return pos;
  418|  10.2k|    }
_ZN6icu_789BytesTrie9skipValueEPKh:
  419|  9.52k|    static inline const uint8_t *skipValue(const uint8_t *pos) {
  420|  9.52k|        int32_t leadByte=*pos++;
  421|  9.52k|        return skipValue(pos, leadByte);
  422|  9.52k|    }
_ZN6icu_789BytesTrie9skipDeltaEPKh:
  427|  8.32k|    static inline const uint8_t *skipDelta(const uint8_t *pos) {
  428|  8.32k|        int32_t delta=*pos++;
  429|  8.32k|        if(delta>=kMinTwoByteDeltaLead) {
  ------------------
  |  Branch (429:12): [True: 5.01k, False: 3.31k]
  ------------------
  430|  5.01k|            if(delta<kMinThreeByteDeltaLead) {
  ------------------
  |  Branch (430:16): [True: 5.01k, False: 0]
  ------------------
  431|  5.01k|                ++pos;
  432|  5.01k|            } else if(delta<kFourByteDeltaLead) {
  ------------------
  |  Branch (432:23): [True: 0, False: 0]
  ------------------
  433|      0|                pos+=2;
  434|      0|            } else {
  435|      0|                pos+=3+(delta&1);
  436|      0|            }
  437|  5.01k|        }
  438|  8.32k|        return pos;
  439|  8.32k|    }
_ZN6icu_789BytesTrie11valueResultEi:
  441|  3.30k|    static inline UStringTrieResult valueResult(int32_t node) {
  442|  3.30k|        return static_cast<UStringTrieResult>(USTRINGTRIE_INTERMEDIATE_VALUE - (node & kValueIsFinal));
  443|  3.30k|    }

_ZNK6icu_7814ConstChar16PtrcvPKDsEv:
  205|   139k|    inline operator const char16_t *() const { return get(); }
_ZNK6icu_7814ConstChar16Ptr3getEv:
  241|   139k|const char16_t *ConstChar16Ptr::get() const { return p_; }
_ZN6icu_7814ConstChar16PtrC2EPKDs:
  229|   139k|ConstChar16Ptr::ConstChar16Ptr(const char16_t *p) : p_(p) {}
_ZN6icu_7814ConstChar16PtrD2Ev:
  237|   139k|ConstChar16Ptr::~ConstChar16Ptr() {
  238|   139k|    U_ALIASING_BARRIER(p_);
  ------------------
  |  |   35|   139k|#   define U_ALIASING_BARRIER(ptr) asm volatile("" : : "rm"(ptr) : "memory")
  ------------------
  239|   139k|}

_ZN6icu_789ErrorCodeC2Ev:
   90|    886|    ErrorCode() : errorCode(U_ZERO_ERROR) {}
_ZN6icu_789ErrorCodecvR10UErrorCodeEv:
   94|    886|    operator UErrorCode & () { return errorCode; }
_ZNK6icu_789ErrorCode9isFailureEv:
  100|    886|    UBool isFailure() const { return U_FAILURE(errorCode); }

_ZN6icu_7812LocalPointerINS_8CollatorEEC2EPS1_R10UErrorCode:
  214|  7.96k|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|  7.96k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 7.96k]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|  7.96k|    }
_ZN6icu_7816LocalPointerBaseINS_8CollatorEEC2EPS1_:
   82|  7.96k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_8CollatorEED2Ev:
  245|  7.96k|    ~LocalPointer() {
  246|  7.96k|        delete LocalPointerBase<T>::ptr;
  247|  7.96k|    }
_ZN6icu_7816LocalPointerBaseINS_8CollatorEED2Ev:
   88|  7.96k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseINS_8CollatorEEptEv:
  134|  15.9k|    T *operator->() const { return ptr; }
_ZN6icu_7812LocalPointerINS_8CollatorEE12adoptInsteadEPS1_:
  300|  7.96k|    void adoptInstead(T *p) {
  301|  7.96k|        delete LocalPointerBase<T>::ptr;
  302|  7.96k|        LocalPointerBase<T>::ptr=p;
  303|  7.96k|    }
_ZN6icu_7812LocalPointerINS_18CollationTailoringEEC2EPS1_:
  200|    184|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7816LocalPointerBaseINS_18CollationTailoringEEC2EPS1_:
   82|    184|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_18CollationTailoringEED2Ev:
  245|    184|    ~LocalPointer() {
  246|    184|        delete LocalPointerBase<T>::ptr;
  247|    184|    }
_ZN6icu_7816LocalPointerBaseINS_18CollationTailoringEED2Ev:
   88|    184|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseINS_18CollationTailoringEE6isNullEv:
   94|    184|    UBool isNull() const { return ptr==nullptr; }
_ZNK6icu_7816LocalPointerBaseINS_18CollationTailoringEEptEv:
  134|    751|    T *operator->() const { return ptr; }
_ZNK6icu_7816LocalPointerBaseINS_18CollationTailoringEEdeEv:
  128|    184|    T &operator*() const { return *ptr; }
_ZNK6icu_7816LocalPointerBaseINS_18CollationTailoringEE8getAliasEv:
  122|    181|    T *getAlias() const { return ptr; }
_ZN6icu_7816LocalPointerBaseINS_18CollationTailoringEE6orphanEv:
  141|    181|    T *orphan() {
  142|    181|        T *p=ptr;
  143|    181|        ptr=nullptr;
  144|    181|        return p;
  145|    181|    }
_ZN6icu_788internal16LocalOpenPointerI15UResourceBundleXadL_Z13ures_close_78EEEC2EPS2_:
  567|  4.17k|    explicit LocalOpenPointer(Type *p=nullptr) : LocalPointerBase<Type>(p) {}
_ZN6icu_7816LocalPointerBaseI15UResourceBundleEC2EPS1_:
   82|  4.17k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_788internal16LocalOpenPointerI15UResourceBundleXadL_Z13ures_close_78EEED2Ev:
  575|  4.17k|    ~LocalOpenPointer() { if (ptr != nullptr) { closeFunction(ptr); } }
  ------------------
  |  Branch (575:31): [True: 3.50k, False: 670]
  ------------------
_ZN6icu_7816LocalPointerBaseI15UResourceBundleED2Ev:
   88|  4.17k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseI15UResourceBundleE8getAliasEv:
  122|   246k|    T *getAlias() const { return ptr; }
_ZN6icu_7816LocalPointerBaseI15UResourceBundleE6orphanEv:
  141|  80.1k|    T *orphan() {
  142|  80.1k|        T *p=ptr;
  143|  80.1k|        ptr=nullptr;
  144|  80.1k|        return p;
  145|  80.1k|    }
_ZN6icu_7816LocalPointerBaseIPKcEC2EPS2_:
   82|      5|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7816LocalPointerBaseIiEC2EPi:
   82|      5|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7816LocalPointerBaseIiED2Ev:
   88|      5|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7816LocalPointerBaseIPKcED2Ev:
   88|      5|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_788internal16LocalOpenPointerI10UHashtableXadL_Z14uhash_close_78EEEC2EPS2_:
  567|     38|    explicit LocalOpenPointer(Type *p=nullptr) : LocalPointerBase<Type>(p) {}
_ZN6icu_7816LocalPointerBaseI10UHashtableEC2EPS1_:
   82|     38|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZNK6icu_7816LocalPointerBaseI10UHashtableE8getAliasEv:
  122|  4.74k|    T *getAlias() const { return ptr; }
_ZN6icu_7816LocalPointerBaseI10UHashtableE6orphanEv:
  141|      1|    T *orphan() {
  142|      1|        T *p=ptr;
  143|      1|        ptr=nullptr;
  144|      1|        return p;
  145|      1|    }
_ZN6icu_788internal16LocalOpenPointerI10UHashtableXadL_Z14uhash_close_78EEED2Ev:
  575|      1|    ~LocalOpenPointer() { if (ptr != nullptr) { closeFunction(ptr); } }
  ------------------
  |  Branch (575:31): [True: 0, False: 1]
  ------------------
_ZN6icu_7816LocalPointerBaseI10UHashtableED2Ev:
   88|      1|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_788internal16LocalOpenPointerI15UResourceBundleXadL_Z13ures_close_78EEE12adoptInsteadEPS2_:
  595|  79.8k|    void adoptInstead(Type *p) {
  596|  79.8k|        if (ptr != nullptr) { closeFunction(ptr); }
  ------------------
  |  Branch (596:13): [True: 0, False: 79.8k]
  ------------------
  597|  79.8k|        ptr=p;
  598|  79.8k|    }
_ZNK6icu_7816LocalPointerBaseI15UResourceBundleE7isValidEv:
  100|  2.17k|    UBool isValid() const { return ptr!=nullptr; }
_ZN6icu_788internal16LocalOpenPointerI10UHashtableXadL_Z14uhash_close_78EEE12adoptInsteadEPS2_:
  595|     37|    void adoptInstead(Type *p) {
  596|     37|        if (ptr != nullptr) { closeFunction(ptr); }
  ------------------
  |  Branch (596:13): [True: 0, False: 37]
  ------------------
  597|     37|        ptr=p;
  598|     37|    }
uloc_tag.cpp:_ZN6icu_7812LocalPointerIN12_GLOBAL__N_116VariantListEntryEEC2EPS2_R10UErrorCode:
  214|  3.91k|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|  3.91k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 3.91k]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|  3.91k|    }
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_116VariantListEntryEEC2EPS2_:
   82|  7.83k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_116VariantListEntryEEptEv:
  134|  56.8k|    T *operator->() const { return ptr; }
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_116VariantListEntryEE6orphanEv:
  141|  3.91k|    T *orphan() {
  142|  3.91k|        T *p=ptr;
  143|  3.91k|        ptr=nullptr;
  144|  3.91k|        return p;
  145|  3.91k|    }
uloc_tag.cpp:_ZN6icu_7812LocalPointerIN12_GLOBAL__N_116VariantListEntryEEC2EOS3_:
  224|  3.91k|    LocalPointer(LocalPointer<T> &&src) noexcept : LocalPointerBase<T>(src.ptr) {
  225|  3.91k|        src.ptr=nullptr;
  226|  3.91k|    }
uloc_tag.cpp:_ZN6icu_7812LocalPointerIN12_GLOBAL__N_116VariantListEntryEED2Ev:
  245|  7.83k|    ~LocalPointer() {
  246|  7.83k|        delete LocalPointerBase<T>::ptr;
  247|  7.83k|    }
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_116VariantListEntryEED2Ev:
   88|  7.83k|    ~LocalPointerBase() { /* delete ptr; */ }
uloc_tag.cpp:_ZN6icu_7812LocalPointerIN12_GLOBAL__N_118ExtensionListEntryEEC2EPS2_:
  200|  4.87k|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_118ExtensionListEntryEEC2EPS2_:
   82|  4.87k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_112ULanguageTagEE6isNullEv:
   94|  4.87k|    UBool isNull() const { return ptr==nullptr; }
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_112ULanguageTagEEptEv:
  134|  14.9k|    T *operator->() const { return ptr; }
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_112ULanguageTagEE6orphanEv:
  141|  4.87k|    T *orphan() {
  142|  4.87k|        T *p=ptr;
  143|  4.87k|        ptr=nullptr;
  144|  4.87k|        return p;
  145|  4.87k|    }
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_118ExtensionListEntryEE7isValidEv:
  100|  7.61k|    UBool isValid() const { return ptr!=nullptr; }
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_118ExtensionListEntryEE6orphanEv:
  141|  3.19k|    T *orphan() {
  142|  3.19k|        T *p=ptr;
  143|  3.19k|        ptr=nullptr;
  144|  3.19k|        return p;
  145|  3.19k|    }
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_118ExtensionListEntryEEptEv:
  134|  9.36k|    T *operator->() const { return ptr; }
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_118ExtensionListEntryEE8getAliasEv:
  122|  2.98k|    T *getAlias() const { return ptr; }
uloc_tag.cpp:_ZN6icu_7812LocalPointerIN12_GLOBAL__N_118ExtensionListEntryEE29adoptInsteadAndCheckErrorCodeEPS2_R10UErrorCode:
  319|  3.19k|    void adoptInsteadAndCheckErrorCode(T *p, UErrorCode &errorCode) {
  320|  3.19k|        if(U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (320:12): [True: 3.19k, False: 0]
  ------------------
  321|  3.19k|            delete LocalPointerBase<T>::ptr;
  322|  3.19k|            LocalPointerBase<T>::ptr=p;
  323|  3.19k|            if(p==nullptr) {
  ------------------
  |  Branch (323:16): [True: 0, False: 3.19k]
  ------------------
  324|      0|                errorCode=U_MEMORY_ALLOCATION_ERROR;
  325|      0|            }
  326|  3.19k|        } else {
  327|      0|            delete p;
  328|      0|        }
  329|  3.19k|    }
uloc_tag.cpp:_ZN6icu_7812LocalPointerIN12_GLOBAL__N_118ExtensionListEntryEED2Ev:
  245|  4.87k|    ~LocalPointer() {
  246|  4.87k|        delete LocalPointerBase<T>::ptr;
  247|  4.87k|    }
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_118ExtensionListEntryEED2Ev:
   88|  4.87k|    ~LocalPointerBase() { /* delete ptr; */ }
uloc_tag.cpp:_ZN6icu_788internal16LocalOpenPointerIN12_GLOBAL__N_112ULanguageTagEXadL_ZNS2_11ultag_closeEPS3_EEEC2ES4_:
  567|  9.74k|    explicit LocalOpenPointer(Type *p=nullptr) : LocalPointerBase<Type>(p) {}
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_112ULanguageTagEEC2EPS2_:
   82|  9.74k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
uloc_tag.cpp:_ZN6icu_788internal16LocalOpenPointerIN12_GLOBAL__N_112ULanguageTagEXadL_ZNS2_11ultag_closeEPS3_EEED2Ev:
  575|  9.74k|    ~LocalOpenPointer() { if (ptr != nullptr) { closeFunction(ptr); } }
  ------------------
  |  Branch (575:31): [True: 4.87k, False: 4.87k]
  ------------------
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_112ULanguageTagEED2Ev:
   88|  9.74k|    ~LocalPointerBase() { /* delete ptr; */ }
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_112ULanguageTagEE8getAliasEv:
  122|  49.7k|    T *getAlias() const { return ptr; }
_ZNK6icu_7816LocalPointerBaseI15UResourceBundleEptEv:
  134|      3|    T *operator->() const { return ptr; }

_ZN6icu_786Locale15setKeywordValueEPKcS2_R10UErrorCode:
  735|  2.00k|    void setKeywordValue(const char* keywordName, const char* keywordValue, UErrorCode &status) {
  736|  2.00k|        setKeywordValue(StringPiece{keywordName}, StringPiece{keywordValue}, status);
  737|  2.00k|    }
_ZNK6icu_786LocaleneERKS0_:
 1188|  6.32k|{
 1189|  6.32k|    return !operator==(other);
 1190|  6.32k|}
_ZNK6icu_786Locale10getCountryEv:
 1204|    717|{
 1205|    717|    return country;
 1206|    717|}
_ZNK6icu_786Locale11getLanguageEv:
 1210|    717|{
 1211|    717|    return language;
 1212|    717|}
_ZNK6icu_786Locale9getScriptEv:
 1216|    717|{
 1217|    717|    return script;
 1218|    717|}
_ZNK6icu_786Locale10getVariantEv:
 1222|    717|{
 1223|    717|    return fIsBogus ? "" : &baseName[variantBegin];
  ------------------
  |  Branch (1223:12): [True: 0, False: 717]
  ------------------
 1224|    717|}
_ZNK6icu_786Locale7getNameEv:
 1228|  49.8k|{
 1229|  49.8k|    return fullName;
 1230|  49.8k|}
_ZNK6icu_786Locale7isBogusEv:
 1289|  32.0k|Locale::isBogus() const {
 1290|  32.0k|    return fIsBogus;
 1291|  32.0k|}

_ZN6icu_7811ReplaceableC2Ev:
  243|  12.0k|inline Replaceable::Replaceable() {}

_ZN6icu_7811StringPieceC2Ev:
   71|      1|  StringPiece() : ptr_(nullptr), length_(0) { }
_ZN6icu_7811StringPieceC2EPKci:
  151|  4.34k|  StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { }
_ZNK6icu_7811StringPiececvNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEv:
  185|  27.3k|  inline operator std::string_view() const {
  186|  27.3k|    return {data(), static_cast<std::string_view::size_type>(size())};
  187|  27.3k|  }
_ZNK6icu_7811StringPiece4dataEv:
  200|   147k|  const char* data() const { return ptr_; }
_ZNK6icu_7811StringPiece4sizeEv:
  206|  27.3k|  int32_t size() const { return length_; }
_ZNK6icu_7811StringPiece6lengthEv:
  212|   128k|  int32_t length() const { return length_; }
_ZNK6icu_7811StringPiece5emptyEv:
  218|  2.00k|  UBool empty() const { return length_ == 0; }
_ZN6icu_7811StringPieceC2INSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEvEET_:
  142|  2.14k|      : ptr_(reinterpret_cast<const char*>(str.data())),
  143|  2.14k|        length_(static_cast<int32_t>(str.size())) {}

_ZN6icu_7810UCharsTrieC2ENS_14ConstChar16PtrE:
   70|   136k|            : ownedArray_(nullptr), uchars_(trieUChars),
   71|   136k|              pos_(uchars_), remainingMatchLength_(-1) {}
_ZNK6icu_7810UCharsTrie8getValueEv:
  258|  57.3k|    inline int32_t getValue() const {
  259|  57.3k|        const char16_t *pos=pos_;
  260|  57.3k|        int32_t leadUnit=*pos++;
  261|       |        // U_ASSERT(leadUnit>=kMinValueLead);
  262|  57.3k|        return leadUnit&kValueIsFinal ?
  ------------------
  |  Branch (262:16): [True: 56.1k, False: 1.28k]
  ------------------
  263|  56.1k|            readValue(pos, leadUnit&0x7fff) : readNodeValue(pos, leadUnit);
  264|  57.3k|    }
_ZN6icu_7810UCharsTrie9readValueEPKDsi:
  420|  56.1k|    static inline int32_t readValue(const char16_t *pos, int32_t leadUnit) {
  421|  56.1k|        int32_t value;
  422|  56.1k|        if(leadUnit<kMinTwoUnitValueLead) {
  ------------------
  |  Branch (422:12): [True: 550, False: 55.5k]
  ------------------
  423|    550|            value=leadUnit;
  424|  55.5k|        } else if(leadUnit<kThreeUnitValueLead) {
  ------------------
  |  Branch (424:19): [True: 770, False: 54.7k]
  ------------------
  425|    770|            value=((leadUnit-kMinTwoUnitValueLead)<<16)|*pos;
  426|  54.7k|        } else {
  427|  54.7k|            value=(pos[0]<<16)|pos[1];
  428|  54.7k|        }
  429|  56.1k|        return value;
  430|  56.1k|    }
_ZN6icu_7810UCharsTrie13readNodeValueEPKDsi:
  446|  1.28k|    static inline int32_t readNodeValue(const char16_t *pos, int32_t leadUnit) {
  447|       |        // U_ASSERT(kMinValueLead<=leadUnit && leadUnit<kValueIsFinal);
  448|  1.28k|        int32_t value;
  449|  1.28k|        if(leadUnit<kMinTwoUnitNodeValueLead) {
  ------------------
  |  Branch (449:12): [True: 0, False: 1.28k]
  ------------------
  450|      0|            value=(leadUnit>>6)-1;
  451|  1.28k|        } else if(leadUnit<kThreeUnitNodeValueLead) {
  ------------------
  |  Branch (451:19): [True: 548, False: 740]
  ------------------
  452|    548|            value=(((leadUnit&0x7fc0)-kMinTwoUnitNodeValueLead)<<10)|*pos;
  453|    740|        } else {
  454|    740|            value=(pos[0]<<16)|pos[1];
  455|    740|        }
  456|  1.28k|        return value;
  457|  1.28k|    }
_ZNK6icu_7810UCharsTrie9saveStateERNS0_5StateE:
  160|   125k|    const UCharsTrie &saveState(State &state) const {
  161|   125k|        state.uchars=uchars_;
  162|   125k|        state.pos=pos_;
  163|   125k|        state.remainingMatchLength=remainingMatchLength_;
  164|   125k|        return *this;
  165|   125k|    }
_ZN6icu_7810UCharsTrie5StateC2Ev:
  144|  2.25k|        State() { uchars=nullptr; }
_ZN6icu_7810UCharsTrie5resetEv:
   94|  14.1k|    UCharsTrie &reset() {
   95|  14.1k|        pos_=uchars_;
   96|  14.1k|        remainingMatchLength_=-1;
   97|  14.1k|        return *this;
   98|  14.1k|    }
_ZN6icu_7810UCharsTrie12resetToStateERKNS0_5StateE:
  177|  47.9M|    UCharsTrie &resetToState(const State &state) {
  178|  47.9M|        if(uchars_==state.uchars && uchars_!=nullptr) {
  ------------------
  |  Branch (178:12): [True: 47.9M, False: 0]
  |  Branch (178:37): [True: 47.9M, False: 0]
  ------------------
  179|  47.9M|            pos_=state.pos;
  180|  47.9M|            remainingMatchLength_=state.remainingMatchLength;
  181|  47.9M|        }
  182|  47.9M|        return *this;
  183|  47.9M|    }
_ZN6icu_7810UCharsTrie5firstEi:
  200|   134k|    inline UStringTrieResult first(int32_t uchar) {
  201|   134k|        remainingMatchLength_=-1;
  202|   134k|        return nextImpl(uchars_, uchar);
  203|   134k|    }
_ZN6icu_7810UCharsTrie4stopEv:
  414|   280k|    inline void stop() {
  415|   280k|        pos_=nullptr;
  416|   280k|    }
_ZN6icu_7810UCharsTrie9skipValueEPKDsi:
  431|   558k|    static inline const char16_t *skipValue(const char16_t *pos, int32_t leadUnit) {
  432|   558k|        if(leadUnit>=kMinTwoUnitValueLead) {
  ------------------
  |  Branch (432:12): [True: 552k, False: 5.87k]
  ------------------
  433|   552k|            if(leadUnit<kThreeUnitValueLead) {
  ------------------
  |  Branch (433:16): [True: 7.84k, False: 544k]
  ------------------
  434|  7.84k|                ++pos;
  435|   544k|            } else {
  436|   544k|                pos+=2;
  437|   544k|            }
  438|   552k|        }
  439|   558k|        return pos;
  440|   558k|    }
_ZN6icu_7810UCharsTrie9skipValueEPKDs:
  441|   558k|    static inline const char16_t *skipValue(const char16_t *pos) {
  442|   558k|        int32_t leadUnit=*pos++;
  443|   558k|        return skipValue(pos, leadUnit&0x7fff);
  444|   558k|    }
_ZN6icu_7810UCharsTrie13skipNodeValueEPKDsi:
  458|  1.98k|    static inline const char16_t *skipNodeValue(const char16_t *pos, int32_t leadUnit) {
  459|       |        // U_ASSERT(kMinValueLead<=leadUnit && leadUnit<kValueIsFinal);
  460|  1.98k|        if(leadUnit>=kMinTwoUnitNodeValueLead) {
  ------------------
  |  Branch (460:12): [True: 1.98k, False: 0]
  ------------------
  461|  1.98k|            if(leadUnit<kThreeUnitNodeValueLead) {
  ------------------
  |  Branch (461:16): [True: 681, False: 1.29k]
  ------------------
  462|    681|                ++pos;
  463|  1.29k|            } else {
  464|  1.29k|                pos+=2;
  465|  1.29k|            }
  466|  1.98k|        }
  467|  1.98k|        return pos;
  468|  1.98k|    }
_ZN6icu_7810UCharsTrie11jumpByDeltaEPKDs:
  470|  6.39k|    static inline const char16_t *jumpByDelta(const char16_t *pos) {
  471|  6.39k|        int32_t delta=*pos++;
  472|  6.39k|        if(delta>=kMinTwoUnitDeltaLead) {
  ------------------
  |  Branch (472:12): [True: 0, False: 6.39k]
  ------------------
  473|      0|            if(delta==kThreeUnitDeltaLead) {
  ------------------
  |  Branch (473:16): [True: 0, False: 0]
  ------------------
  474|      0|                delta=(pos[0]<<16)|pos[1];
  475|      0|                pos+=2;
  476|      0|            } else {
  477|      0|                delta=((delta-kMinTwoUnitDeltaLead)<<16)|*pos++;
  478|      0|            }
  479|      0|        }
  480|  6.39k|        return pos+delta;
  481|  6.39k|    }
_ZN6icu_7810UCharsTrie9skipDeltaEPKDs:
  483|  3.86k|    static const char16_t *skipDelta(const char16_t *pos) {
  484|  3.86k|        int32_t delta=*pos++;
  485|  3.86k|        if(delta>=kMinTwoUnitDeltaLead) {
  ------------------
  |  Branch (485:12): [True: 0, False: 3.86k]
  ------------------
  486|      0|            if(delta==kThreeUnitDeltaLead) {
  ------------------
  |  Branch (486:16): [True: 0, False: 0]
  ------------------
  487|      0|                pos+=2;
  488|      0|            } else {
  489|      0|                ++pos;
  490|      0|            }
  491|      0|        }
  492|  3.86k|        return pos;
  493|  3.86k|    }
_ZN6icu_7810UCharsTrie11valueResultEi:
  495|  3.91k|    static inline UStringTrieResult valueResult(int32_t node) {
  496|  3.91k|        return static_cast<UStringTrieResult>(USTRINGTRIE_INTERMEDIATE_VALUE - (node >> 15));
  497|  3.91k|    }

_ZNK6icu_7810UnicodeSet8isFrozenEv:
 1848|  1.55k|inline UBool UnicodeSet::isFrozen() const {
 1849|  1.55k|    return bmpSet != nullptr || stringSpan != nullptr;
  ------------------
  |  Branch (1849:12): [True: 0, False: 1.55k]
  |  Branch (1849:33): [True: 0, False: 1.55k]
  ------------------
 1850|  1.55k|}
_ZNK6icu_7810UnicodeSet7isBogusEv:
 1864|  1.55k|inline UBool UnicodeSet::isBogus() const {
 1865|  1.55k|    return fFlags & kIsBogus;
 1866|  1.55k|}

_ZNK6icu_7813UnicodeString10pinIndicesERiS1_:
 4150|   353k|{
 4151|       |  // pin indices
 4152|   353k|  int32_t len = length();
 4153|   353k|  if(start < 0) {
  ------------------
  |  Branch (4153:6): [True: 0, False: 353k]
  ------------------
 4154|      0|    start = 0;
 4155|   353k|  } else if(start > len) {
  ------------------
  |  Branch (4155:13): [True: 0, False: 353k]
  ------------------
 4156|      0|    start = len;
 4157|      0|  }
 4158|   353k|  if(_length < 0) {
  ------------------
  |  Branch (4158:6): [True: 0, False: 353k]
  ------------------
 4159|      0|    _length = 0;
 4160|   353k|  } else if(_length > (len - start)) {
  ------------------
  |  Branch (4160:13): [True: 33.9k, False: 319k]
  ------------------
 4161|  33.9k|    _length = (len - start);
 4162|  33.9k|  }
 4163|   353k|}
_ZN6icu_7813UnicodeString13getArrayStartEv:
 4166|  48.3M|UnicodeString::getArrayStart() {
 4167|  48.3M|  return (fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) ?
  ------------------
  |  Branch (4167:10): [True: 133k, False: 48.2M]
  ------------------
 4168|  48.2M|    fUnion.fStackFields.fBuffer : fUnion.fFields.fArray;
 4169|  48.3M|}
_ZNK6icu_7813UnicodeString13getArrayStartEv:
 4172|  46.0M|UnicodeString::getArrayStart() const {
 4173|  46.0M|  return (fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) ?
  ------------------
  |  Branch (4173:10): [True: 58.7k, False: 46.0M]
  ------------------
 4174|  46.0M|    fUnion.fStackFields.fBuffer : fUnion.fFields.fArray;
 4175|  46.0M|}
_ZNK6icu_7813UnicodeString14hasShortLengthEv:
 4202|   143M|UnicodeString::hasShortLength() const {
 4203|   143M|  return fUnion.fFields.fLengthAndFlags>=0;
 4204|   143M|}
_ZNK6icu_7813UnicodeString14getShortLengthEv:
 4207|   116M|UnicodeString::getShortLength() const {
 4208|       |  // fLengthAndFlags must be non-negative -> short length >= 0
 4209|       |  // and arithmetic or logical shift does not matter.
 4210|   116M|  return fUnion.fFields.fLengthAndFlags>>kLengthShift;
 4211|   116M|}
_ZNK6icu_7813UnicodeString6lengthEv:
 4214|   143M|UnicodeString::length() const {
 4215|   143M|  return hasShortLength() ? getShortLength() : fUnion.fFields.fLength;
  ------------------
  |  Branch (4215:10): [True: 116M, False: 26.1M]
  ------------------
 4216|   143M|}
_ZNK6icu_7813UnicodeString11getCapacityEv:
 4219|  48.2M|UnicodeString::getCapacity() const {
 4220|  48.2M|  return (fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) ?
  ------------------
  |  Branch (4220:10): [True: 154k, False: 48.0M]
  ------------------
 4221|  48.0M|    US_STACKBUF_SIZE : fUnion.fFields.fCapacity;
 4222|  48.2M|}
_ZNK6icu_7813UnicodeString7isBogusEv:
 4230|  38.3k|{ return fUnion.fFields.fLengthAndFlags & kIsBogus; }
_ZNK6icu_7813UnicodeString10isWritableEv:
 4234|  48.3M|{ return !(fUnion.fFields.fLengthAndFlags & (kOpenGetBuffer | kIsBogus)); }
_ZNK6icu_7813UnicodeString16isBufferWritableEv:
 4238|  48.0M|{
 4239|  48.0M|  return
 4240|  48.0M|      !(fUnion.fFields.fLengthAndFlags&(kOpenGetBuffer|kIsBogus|kBufferIsReadonly)) &&
  ------------------
  |  Branch (4240:7): [True: 48.0M, False: 0]
  ------------------
 4241|  48.0M|      (!(fUnion.fFields.fLengthAndFlags&kRefCounted) || refCount()==1);
  ------------------
  |  Branch (4241:8): [True: 98.0k, False: 47.9M]
  |  Branch (4241:57): [True: 47.9M, False: 0]
  ------------------
 4242|  48.0M|}
_ZNK6icu_7813UnicodeString9getBufferEv:
 4245|  36.1k|UnicodeString::getBuffer() const {
 4246|  36.1k|  if(fUnion.fFields.fLengthAndFlags&(kIsBogus|kOpenGetBuffer)) {
  ------------------
  |  Branch (4246:6): [True: 0, False: 36.1k]
  ------------------
 4247|      0|    return nullptr;
 4248|  36.1k|  } else if(fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) {
  ------------------
  |  Branch (4248:13): [True: 17.2k, False: 18.8k]
  ------------------
 4249|  17.2k|    return fUnion.fStackFields.fBuffer;
 4250|  18.8k|  } else {
 4251|  18.8k|    return fUnion.fFields.fArray;
 4252|  18.8k|  }
 4253|  36.1k|}
_ZN6icu_7813UnicodeString7replaceEiiRKS0_ii:
 4741|   123k|{ return doReplace(start, _length, srcText, srcStart, srcLength); }
_ZNK6icu_7813UnicodeString7isEmptyEv:
 4863|  2.88M|UnicodeString::isEmpty() const {
 4864|       |  // Arithmetic or logical right shift does not matter: only testing for 0.
 4865|  2.88M|  return (fUnion.fFields.fLengthAndFlags>>kLengthShift) == 0;
 4866|  2.88M|}
_ZN6icu_7813UnicodeString13setZeroLengthEv:
 4872|  75.3k|UnicodeString::setZeroLength() {
 4873|  75.3k|  fUnion.fFields.fLengthAndFlags &= kAllStorageFlags;
 4874|  75.3k|}
_ZN6icu_7813UnicodeString14setShortLengthEi:
 4877|  45.9M|UnicodeString::setShortLength(int32_t len) {
 4878|       |  // requires 0 <= len <= kMaxShortLength
 4879|  45.9M|  fUnion.fFields.fLengthAndFlags =
 4880|  45.9M|    static_cast<int16_t>((fUnion.fFields.fLengthAndFlags & kAllStorageFlags) | (len << kLengthShift));
 4881|  45.9M|}
_ZN6icu_7813UnicodeString9setLengthEi:
 4884|  48.1M|UnicodeString::setLength(int32_t len) {
 4885|  48.1M|  if(len <= kMaxShortLength) {
  ------------------
  |  Branch (4885:6): [True: 45.9M, False: 2.21M]
  ------------------
 4886|  45.9M|    setShortLength(len);
 4887|  45.9M|  } else {
 4888|  2.21M|    fUnion.fFields.fLengthAndFlags |= kLengthIsLarge;
 4889|  2.21M|    fUnion.fFields.fLength = len;
 4890|  2.21M|  }
 4891|  48.1M|}
_ZN6icu_7813UnicodeString8setArrayEPDsii:
 4899|  1.26k|UnicodeString::setArray(char16_t *array, int32_t len, int32_t capacity) {
 4900|  1.26k|  setLength(len);
 4901|  1.26k|  fUnion.fFields.fArray = array;
 4902|  1.26k|  fUnion.fFields.fCapacity = capacity;
 4903|  1.26k|}
_ZN6icu_7813UnicodeString5setToEPKDsi:
 4940|    728|{
 4941|    728|  unBogus();
 4942|    728|  return doReplace(0, length(), srcChars, 0, srcLength);
 4943|    728|}
_ZN6icu_7813UnicodeString5setToEi:
 4954|   123k|{
 4955|   123k|  unBogus();
 4956|   123k|  return replace(0, length(), srcChar);
 4957|   123k|}
_ZN6icu_7813UnicodeString6removeEv:
 5035|  38.3k|{
 5036|       |  // remove() of a bogus string makes the string empty and non-bogus
 5037|  38.3k|  if(isBogus()) {
  ------------------
  |  Branch (5037:6): [True: 0, False: 38.3k]
  ------------------
 5038|      0|    setToEmpty();
 5039|  38.3k|  } else {
 5040|  38.3k|    setZeroLength();
 5041|  38.3k|  }
 5042|  38.3k|  return *this;
 5043|  38.3k|}
_ZN6icu_7813UnicodeStringC2Ev:
 4182|  12.0k|UnicodeString::UnicodeString() {
 4183|  12.0k|  fUnion.fStackFields.fLengthAndFlags=kShortString;
 4184|  12.0k|}

_ZN6icu_7821ures_getUnicodeStringEPK15UResourceBundleP10UErrorCode:
  813|  1.08k|ures_getUnicodeString(const UResourceBundle *resB, UErrorCode* status) {
  814|  1.08k|    UnicodeString result;
  815|  1.08k|    int32_t len = 0;
  816|  1.08k|    const char16_t *r = ConstChar16Ptr(ures_getString(resB, &len, status));
  ------------------
  |  | 1675|  1.08k|#define ures_getString U_ICU_ENTRY_POINT_RENAME(ures_getString)
  |  |  ------------------
  |  |  |  |  123|  1.08k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.08k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.08k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  817|  1.08k|    if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (817:8): [True: 1.08k, False: 0]
  ------------------
  818|  1.08k|        result.setTo(true, r, len);
  819|  1.08k|    } else {
  820|      0|        result.setToBogus();
  821|      0|    }
  822|  1.08k|    return result;
  823|  1.08k|}

collator_compare_fuzzer.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  7.96k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
coll.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  76.8k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
coll.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  14.3k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
collationdata.cpp:_ZL9U_FAILURE10UErrorCode:
  737|    192|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
collationroot.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  43.1k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
collationtailoring.cpp:_ZL9U_FAILURE10UErrorCode:
  737|    318|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
rulebasedcollator.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  33.2k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
rulebasedcollator.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|    728|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
ucol_res.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  72.0k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
ucol_res.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  21.0k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
utf16collationiterator.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  75.7k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
collationcompare.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  8.17k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
collationdatareader.cpp:_ZL9U_FAILURE10UErrorCode:
  737|    344|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
collationiterator.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   128k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
collationiterator.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|   132k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
collationsettings.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  14.4k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
charstr.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  1.37M|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
locavailable.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  2.66k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
locid.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   132k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
locid.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  3.48k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
normalizer2.cpp:_ZL9U_FAILURE10UErrorCode:
  737|    478|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
normalizer2impl.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  8.13k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
putil.cpp:_ZL9U_FAILURE10UErrorCode:
  737|      4|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
putil.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|      2|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
udata.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   102k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
udata.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  50.7k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
udatamem.cpp:_ZL9U_FAILURE10UErrorCode:
  737|    163|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uhash.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  23.8k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uloc.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   366k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uloc.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  6.71k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uloc_keytype.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   169k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uloc_keytype.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  79.7k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uloc_tag.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  59.0k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uloc_tag.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  9.30k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
unifiedcache.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  54.6k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
unifiedcache.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  6.59k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uniset.cpp:_ZL9U_FAILURE10UErrorCode:
  737|      1|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uresbund.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   393k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uresbund.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  31.4k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uresdata.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  12.8k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
ustring.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  38.1k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
utrie2.cpp:_ZL9U_FAILURE10UErrorCode:
  737|    159|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uvector.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  1.43k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uvector.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|    717|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uvectr32.cpp:_ZL9U_FAILURE10UErrorCode:
  737|     23|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
bytesinkutil.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  51.3k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uarrsort.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  3.65k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
ucmndata.cpp:_ZL9U_FAILURE10UErrorCode:
  737|      2|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }

_ZN6icu_7815ucache_hashKeysE8UElement:
   49|  33.0k|ucache_hashKeys(const UHashTok key) {
   50|  33.0k|    const CacheKeyBase* ckey = static_cast<const CacheKeyBase*>(key.pointer);
   51|  33.0k|    return ckey->hashCode();
   52|  33.0k|}
_ZN6icu_7818ucache_compareKeysE8UElementS0_:
   55|  20.9k|ucache_compareKeys(const UHashTok key1, const UHashTok key2) {
   56|  20.9k|    const CacheKeyBase* p1 = static_cast<const CacheKeyBase*>(key1.pointer);
   57|  20.9k|    const CacheKeyBase* p2 = static_cast<const CacheKeyBase*>(key2.pointer);
   58|  20.9k|    return *p1 == *p2;
   59|  20.9k|}
_ZN6icu_7816ucache_deleteKeyEPv:
   62|  5.59k|ucache_deleteKey(void *obj) {
   63|  5.59k|    CacheKeyBase* p = static_cast<CacheKeyBase*>(obj);
   64|  5.59k|    delete p;
   65|  5.59k|}
_ZN6icu_7812CacheKeyBaseD2Ev:
   67|  25.7k|CacheKeyBase::~CacheKeyBase() {
   68|  25.7k|}
_ZN6icu_7812UnifiedCache11getInstanceER10UErrorCode:
   88|  13.8k|UnifiedCache *UnifiedCache::getInstance(UErrorCode &status) {
   89|  13.8k|    umtx_initOnce(gCacheInitOnce, &cacheInit, status);
   90|  13.8k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (90:9): [True: 0, False: 13.8k]
  ------------------
   91|      0|        return nullptr;
   92|      0|    }
   93|  13.8k|    U_ASSERT(gCache != nullptr);
  ------------------
  |  |   35|  13.8k|#   define U_ASSERT(exp) (void)0
  ------------------
   94|  13.8k|    return gCache;
   95|  13.8k|}
_ZN6icu_7812UnifiedCacheC2ER10UErrorCode:
   98|      1|        fHashtable(nullptr),
   99|      1|        fEvictPos(UHASH_FIRST),
  ------------------
  |  |  610|      1|#define UHASH_FIRST (-1)
  ------------------
  100|      1|        fNumValuesTotal(0),
  101|      1|        fNumValuesInUse(0),
  102|      1|        fMaxUnused(DEFAULT_MAX_UNUSED),
  103|      1|        fMaxPercentageOfInUse(DEFAULT_PERCENTAGE_OF_IN_USE),
  104|      1|        fAutoEvictedCount(0),
  105|      1|        fNoValue(nullptr) {
  106|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (106:9): [True: 0, False: 1]
  ------------------
  107|      0|        return;
  108|      0|    }
  109|      1|    fNoValue = new SharedObject();
  110|      1|    if (fNoValue == nullptr) {
  ------------------
  |  Branch (110:9): [True: 0, False: 1]
  ------------------
  111|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  112|      0|        return;
  113|      0|    }
  114|      1|    fNoValue->softRefCount = 1;  // Add fake references to prevent fNoValue from being deleted
  115|      1|    fNoValue->hardRefCount = 1;  // when other references to it are removed.
  116|      1|    fNoValue->cachePtr = this;
  117|       |
  118|      1|    fHashtable = uhash_open(
  ------------------
  |  | 1030|      1|#define uhash_open U_ICU_ENTRY_POINT_RENAME(uhash_open)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  119|      1|            &ucache_hashKeys,
  120|      1|            &ucache_compareKeys,
  121|      1|            nullptr,
  122|      1|            &status);
  123|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (123:9): [True: 0, False: 1]
  ------------------
  124|      0|        return;
  125|      0|    }
  126|      1|    uhash_setKeyDeleter(fHashtable, &ucache_deleteKey);
  ------------------
  |  | 1040|      1|#define uhash_setKeyDeleter U_ICU_ENTRY_POINT_RENAME(uhash_setKeyDeleter)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  127|      1|}
_ZNK6icu_7812UnifiedCache24handleUnreferencedObjectEv:
  167|  7.02k|void UnifiedCache::handleUnreferencedObject() const {
  168|  7.02k|    std::lock_guard<std::mutex> lock(*gCacheMutex);
  169|  7.02k|    --fNumValuesInUse;
  170|  7.02k|    _runEvictionSlice();
  171|  7.02k|}
_ZNK6icu_7812UnifiedCache12_nextElementEv:
  237|  6.06k|UnifiedCache::_nextElement() const {
  238|  6.06k|    const UHashElement *element = uhash_nextElement(fHashtable, &fEvictPos);
  ------------------
  |  | 1029|  6.06k|#define uhash_nextElement U_ICU_ENTRY_POINT_RENAME(uhash_nextElement)
  |  |  ------------------
  |  |  |  |  123|  6.06k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.06k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.06k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  239|  6.06k|    if (element == nullptr) {
  ------------------
  |  Branch (239:9): [True: 4, False: 6.05k]
  ------------------
  240|      4|        fEvictPos = UHASH_FIRST;
  ------------------
  |  |  610|      4|#define UHASH_FIRST (-1)
  ------------------
  241|      4|        return uhash_nextElement(fHashtable, &fEvictPos);
  ------------------
  |  | 1029|      4|#define uhash_nextElement U_ICU_ENTRY_POINT_RENAME(uhash_nextElement)
  |  |  ------------------
  |  |  |  |  123|      4|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      4|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      4|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  242|      4|    }
  243|  6.05k|    return element;
  244|  6.06k|}
_ZNK6icu_7812UnifiedCache27_computeCountOfItemsToEvictEv:
  266|  13.6k|int32_t UnifiedCache::_computeCountOfItemsToEvict() const {
  267|  13.6k|    int32_t totalItems = uhash_count(fHashtable);
  ------------------
  |  | 1001|  13.6k|#define uhash_count U_ICU_ENTRY_POINT_RENAME(uhash_count)
  |  |  ------------------
  |  |  |  |  123|  13.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  268|  13.6k|    int32_t evictableItems = totalItems - fNumValuesInUse;
  269|       |
  270|  13.6k|    int32_t unusedLimitByPercentage = fNumValuesInUse * fMaxPercentageOfInUse / 100;
  271|  13.6k|    int32_t unusedLimit = std::max(unusedLimitByPercentage, fMaxUnused);
  272|  13.6k|    int32_t countOfItemsToEvict = std::max<int32_t>(0, evictableItems - unusedLimit);
  273|  13.6k|    return countOfItemsToEvict;
  274|  13.6k|}
_ZNK6icu_7812UnifiedCache17_runEvictionSliceEv:
  276|  13.6k|void UnifiedCache::_runEvictionSlice() const {
  277|  13.6k|    int32_t maxItemsToEvict = _computeCountOfItemsToEvict();
  278|  13.6k|    if (maxItemsToEvict <= 0) {
  ------------------
  |  Branch (278:9): [True: 8.14k, False: 5.46k]
  ------------------
  279|  8.14k|        return;
  280|  8.14k|    }
  281|  6.06k|    for (int32_t i = 0; i < MAX_EVICT_ITERATIONS; ++i) {
  ------------------
  |  Branch (281:25): [True: 6.06k, False: 0]
  ------------------
  282|  6.06k|        const UHashElement *element = _nextElement();
  283|  6.06k|        if (element == nullptr) {
  ------------------
  |  Branch (283:13): [True: 0, False: 6.06k]
  ------------------
  284|      0|            break;
  285|      0|        }
  286|  6.06k|        if (_isEvictable(element)) {
  ------------------
  |  Branch (286:13): [True: 5.59k, False: 466]
  ------------------
  287|  5.59k|            const SharedObject *sharedObject =
  288|  5.59k|                    static_cast<const SharedObject*>(element->value.pointer);
  289|  5.59k|            uhash_removeElement(fHashtable, element);
  ------------------
  |  | 1037|  5.59k|#define uhash_removeElement U_ICU_ENTRY_POINT_RENAME(uhash_removeElement)
  |  |  ------------------
  |  |  |  |  123|  5.59k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.59k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.59k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  290|  5.59k|            removeSoftRef(sharedObject);   // Deletes sharedObject when SoftRefCount goes to zero.
  291|  5.59k|            ++fAutoEvictedCount;
  292|  5.59k|            if (--maxItemsToEvict == 0) {
  ------------------
  |  Branch (292:17): [True: 5.46k, False: 128]
  ------------------
  293|  5.46k|                break;
  294|  5.46k|            }
  295|  5.59k|        }
  296|  6.06k|    }
  297|  5.46k|}
_ZNK6icu_7812UnifiedCache7_putNewERKNS_12CacheKeyBaseEPKNS_12SharedObjectE10UErrorCodeRS7_:
  303|  6.59k|        UErrorCode &status) const {
  304|  6.59k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (304:9): [True: 0, False: 6.59k]
  ------------------
  305|      0|        return;
  306|      0|    }
  307|  6.59k|    CacheKeyBase *keyToAdopt = key.clone();
  308|  6.59k|    if (keyToAdopt == nullptr) {
  ------------------
  |  Branch (308:9): [True: 0, False: 6.59k]
  ------------------
  309|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  310|      0|        return;
  311|      0|    }
  312|  6.59k|    keyToAdopt->fCreationStatus = creationStatus;
  313|  6.59k|    if (value->softRefCount == 0) {
  ------------------
  |  Branch (313:9): [True: 0, False: 6.59k]
  ------------------
  314|      0|        _registerPrimary(keyToAdopt, value);
  315|      0|    }
  316|  6.59k|    void *oldValue = uhash_put(fHashtable, keyToAdopt, (void *) value, &status);
  ------------------
  |  | 1032|  6.59k|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|  6.59k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.59k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.59k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  317|  6.59k|    U_ASSERT(oldValue == nullptr);
  ------------------
  |  |   35|  6.59k|#   define U_ASSERT(exp) (void)0
  ------------------
  318|  6.59k|    (void)oldValue;
  319|  6.59k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (319:9): [True: 6.59k, False: 0]
  ------------------
  320|  6.59k|        value->softRefCount++;
  321|  6.59k|    }
  322|  6.59k|}
_ZNK6icu_7812UnifiedCache18_putIfAbsentAndGetERKNS_12CacheKeyBaseERPKNS_12SharedObjectER10UErrorCode:
  327|  6.59k|        UErrorCode &status) const {
  328|  6.59k|    std::lock_guard<std::mutex> lock(*gCacheMutex);
  329|  6.59k|    const UHashElement *element = uhash_find(fHashtable, &key);
  ------------------
  |  | 1006|  6.59k|#define uhash_find U_ICU_ENTRY_POINT_RENAME(uhash_find)
  |  |  ------------------
  |  |  |  |  123|  6.59k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.59k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.59k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  330|  6.59k|    if (element != nullptr && !_inProgress(element)) {
  ------------------
  |  Branch (330:9): [True: 6.59k, False: 0]
  |  Branch (330:31): [True: 0, False: 6.59k]
  ------------------
  331|      0|        _fetch(element, value, status);
  332|      0|        return;
  333|      0|    }
  334|  6.59k|    if (element == nullptr) {
  ------------------
  |  Branch (334:9): [True: 0, False: 6.59k]
  ------------------
  335|      0|        UErrorCode putError = U_ZERO_ERROR;
  336|       |        // best-effort basis only.
  337|      0|        _putNew(key, value, status, putError);
  338|  6.59k|    } else {
  339|  6.59k|        _put(element, value, status);
  340|  6.59k|    }
  341|       |    // Run an eviction slice. This will run even if we added a primary entry
  342|       |    // which doesn't increase the unused count, but that is still o.k
  343|  6.59k|    _runEvictionSlice();
  344|  6.59k|}
_ZNK6icu_7812UnifiedCache5_pollERKNS_12CacheKeyBaseERPKNS_12SharedObjectER10UErrorCode:
  350|  19.8k|        UErrorCode &status) const {
  351|  19.8k|    U_ASSERT(value == nullptr);
  ------------------
  |  |   35|  19.8k|#   define U_ASSERT(exp) (void)0
  ------------------
  352|  19.8k|    U_ASSERT(status == U_ZERO_ERROR);
  ------------------
  |  |   35|  19.8k|#   define U_ASSERT(exp) (void)0
  ------------------
  353|  19.8k|    std::unique_lock<std::mutex> lock(*gCacheMutex);
  354|  19.8k|    const UHashElement *element = uhash_find(fHashtable, &key);
  ------------------
  |  | 1006|  19.8k|#define uhash_find U_ICU_ENTRY_POINT_RENAME(uhash_find)
  |  |  ------------------
  |  |  |  |  123|  19.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  19.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  19.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  355|       |
  356|       |    // If the hash table contains an inProgress placeholder entry for this key,
  357|       |    // this means that another thread is currently constructing the value object.
  358|       |    // Loop, waiting for that construction to complete.
  359|  19.8k|     while (element != nullptr && _inProgress(element)) {
  ------------------
  |  Branch (359:13): [True: 13.2k, False: 6.59k]
  |  Branch (359:35): [True: 0, False: 13.2k]
  ------------------
  360|      0|         gInProgressValueAddedCond->wait(lock);
  361|      0|         element = uhash_find(fHashtable, &key);
  ------------------
  |  | 1006|      0|#define uhash_find U_ICU_ENTRY_POINT_RENAME(uhash_find)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  362|      0|    }
  363|       |
  364|       |    // If the hash table contains an entry for the key,
  365|       |    // fetch out the contents and return them.
  366|  19.8k|    if (element != nullptr) {
  ------------------
  |  Branch (366:9): [True: 13.2k, False: 6.59k]
  ------------------
  367|  13.2k|         _fetch(element, value, status);
  368|  13.2k|        return true;
  369|  13.2k|    }
  370|       |
  371|       |    // The hash table contained nothing for this key.
  372|       |    // Insert an inProgress place holder value.
  373|       |    // Our caller will create the final value and update the hash table.
  374|  6.59k|    _putNew(key, fNoValue, U_ZERO_ERROR, status);
  375|  6.59k|    return false;
  376|  19.8k|}
_ZNK6icu_7812UnifiedCache4_getERKNS_12CacheKeyBaseERPKNS_12SharedObjectEPKvR10UErrorCode:
  382|  19.8k|        UErrorCode &status) const {
  383|  19.8k|    U_ASSERT(value == nullptr);
  ------------------
  |  |   35|  19.8k|#   define U_ASSERT(exp) (void)0
  ------------------
  384|  19.8k|    U_ASSERT(status == U_ZERO_ERROR);
  ------------------
  |  |   35|  19.8k|#   define U_ASSERT(exp) (void)0
  ------------------
  385|  19.8k|    if (_poll(key, value, status)) {
  ------------------
  |  Branch (385:9): [True: 13.2k, False: 6.59k]
  ------------------
  386|  13.2k|        if (value == fNoValue) {
  ------------------
  |  Branch (386:13): [True: 6, False: 13.2k]
  ------------------
  387|      6|            SharedObject::clearPtr(value);
  388|      6|        }
  389|  13.2k|        return;
  390|  13.2k|    }
  391|  6.59k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (391:9): [True: 0, False: 6.59k]
  ------------------
  392|      0|        return;
  393|      0|    }
  394|  6.59k|    value = key.createObject(creationContext, status);
  395|  6.59k|    U_ASSERT(value == nullptr || value->hasHardReferences());
  ------------------
  |  |   35|  6.59k|#   define U_ASSERT(exp) (void)0
  ------------------
  396|  6.59k|    U_ASSERT(value != nullptr || status != U_ZERO_ERROR);
  ------------------
  |  |   35|  6.59k|#   define U_ASSERT(exp) (void)0
  ------------------
  397|  6.59k|    if (value == nullptr) {
  ------------------
  |  Branch (397:9): [True: 15, False: 6.58k]
  ------------------
  398|     15|        SharedObject::copyPtr(fNoValue, value);
  399|     15|    }
  400|  6.59k|    _putIfAbsentAndGet(key, value, status);
  401|  6.59k|    if (value == fNoValue) {
  ------------------
  |  Branch (401:9): [True: 15, False: 6.58k]
  ------------------
  402|     15|        SharedObject::clearPtr(value);
  403|     15|    }
  404|  6.59k|}
_ZNK6icu_7812UnifiedCache16_registerPrimaryEPKNS_12CacheKeyBaseEPKNS_12SharedObjectE:
  407|    247|            const CacheKeyBase *theKey, const SharedObject *value) const {
  408|    247|    theKey->fIsPrimary = true;
  409|    247|    value->cachePtr = this;
  410|    247|    ++fNumValuesTotal;
  411|    247|    ++fNumValuesInUse;
  412|    247|}
_ZNK6icu_7812UnifiedCache4_putEPK12UHashElementPKNS_12SharedObjectE10UErrorCode:
  417|  6.59k|        const UErrorCode status) const {
  418|  6.59k|    U_ASSERT(_inProgress(element));
  ------------------
  |  |   35|  6.59k|#   define U_ASSERT(exp) (void)0
  ------------------
  419|  6.59k|    const CacheKeyBase* theKey = static_cast<const CacheKeyBase*>(element->key.pointer);
  420|  6.59k|    const SharedObject* oldValue = static_cast<const SharedObject*>(element->value.pointer);
  421|  6.59k|    theKey->fCreationStatus = status;
  422|  6.59k|    if (value->softRefCount == 0) {
  ------------------
  |  Branch (422:9): [True: 247, False: 6.34k]
  ------------------
  423|    247|        _registerPrimary(theKey, value);
  424|    247|    }
  425|  6.59k|    value->softRefCount++;
  426|  6.59k|    UHashElement *ptr = const_cast<UHashElement *>(element);
  427|  6.59k|    ptr->value.pointer = (void *) value;
  428|  6.59k|    U_ASSERT(oldValue == fNoValue);
  ------------------
  |  |   35|  6.59k|#   define U_ASSERT(exp) (void)0
  ------------------
  429|  6.59k|    removeSoftRef(oldValue);
  430|       |
  431|       |    // Tell waiting threads that we replace in-progress status with
  432|       |    // an error.
  433|  6.59k|    gInProgressValueAddedCond->notify_all();
  434|  6.59k|}
_ZNK6icu_7812UnifiedCache6_fetchEPK12UHashElementRPKNS_12SharedObjectER10UErrorCode:
  439|  33.0k|        UErrorCode &status) const {
  440|  33.0k|    const CacheKeyBase* theKey = static_cast<const CacheKeyBase*>(element->key.pointer);
  441|  33.0k|    status = theKey->fCreationStatus;
  442|       |
  443|       |    // Since we have the cache lock, calling regular SharedObject add/removeRef
  444|       |    // could cause us to deadlock on ourselves since they may need to lock
  445|       |    // the cache mutex.
  446|  33.0k|    removeHardRef(value);
  447|  33.0k|    value = static_cast<const SharedObject *>(element->value.pointer);
  448|  33.0k|    addHardRef(value);
  449|  33.0k|}
_ZNK6icu_7812UnifiedCache11_inProgressEPK12UHashElement:
  452|  19.8k|UBool UnifiedCache::_inProgress(const UHashElement* element) const {
  453|  19.8k|    UErrorCode status = U_ZERO_ERROR;
  454|  19.8k|    const SharedObject * value = nullptr;
  455|  19.8k|    _fetch(element, value, status);
  456|  19.8k|    UBool result = _inProgress(value, status);
  457|  19.8k|    removeHardRef(value);
  458|  19.8k|    return result;
  459|  19.8k|}
_ZNK6icu_7812UnifiedCache11_inProgressEPKNS_12SharedObjectE10UErrorCode:
  462|  25.8k|        const SharedObject* theValue, UErrorCode creationStatus) const {
  463|  25.8k|    return (theValue == fNoValue && creationStatus == U_ZERO_ERROR);
  ------------------
  |  Branch (463:13): [True: 6.61k, False: 19.2k]
  |  Branch (463:37): [True: 6.59k, False: 19]
  ------------------
  464|  25.8k|}
_ZNK6icu_7812UnifiedCache12_isEvictableEPK12UHashElement:
  467|  6.06k|{
  468|  6.06k|    const CacheKeyBase* theKey = static_cast<const CacheKeyBase*>(element->key.pointer);
  469|  6.06k|    const SharedObject* theValue = static_cast<const SharedObject*>(element->value.pointer);
  470|       |
  471|       |    // Entries that are under construction are never evictable
  472|  6.06k|    if (_inProgress(theValue, theKey->fCreationStatus)) {
  ------------------
  |  Branch (472:9): [True: 0, False: 6.06k]
  ------------------
  473|      0|        return false;
  474|      0|    }
  475|       |
  476|       |    // We can evict entries that are either not a primary or have just
  477|       |    // one reference (The one reference being from the cache itself).
  478|  6.06k|    return (!theKey->fIsPrimary || (theValue->softRefCount == 1 && theValue->noHardReferences()));
  ------------------
  |  Branch (478:13): [True: 5.48k, False: 574]
  |  Branch (478:37): [True: 108, False: 466]
  |  Branch (478:68): [True: 108, False: 0]
  ------------------
  479|  6.06k|}
_ZNK6icu_7812UnifiedCache13removeSoftRefEPKNS_12SharedObjectE:
  481|  12.1k|void UnifiedCache::removeSoftRef(const SharedObject *value) const {
  482|  12.1k|    U_ASSERT(value->cachePtr == this);
  ------------------
  |  |   35|  12.1k|#   define U_ASSERT(exp) (void)0
  ------------------
  483|  12.1k|    U_ASSERT(value->softRefCount > 0);
  ------------------
  |  |   35|  12.1k|#   define U_ASSERT(exp) (void)0
  ------------------
  484|  12.1k|    if (--value->softRefCount == 0) {
  ------------------
  |  Branch (484:9): [True: 108, False: 12.0k]
  ------------------
  485|    108|        --fNumValuesTotal;
  486|    108|        if (value->noHardReferences()) {
  ------------------
  |  Branch (486:13): [True: 108, False: 0]
  ------------------
  487|    108|            delete value;
  488|    108|        } else {
  489|       |            // This path only happens from flush(all). Which only happens from the
  490|       |            // UnifiedCache destructor.  Nulling out value.cacheptr changes the behavior
  491|       |            // of value.removeRef(), causing the deletion to be done there.
  492|      0|            value->cachePtr = nullptr;
  493|      0|        }
  494|    108|    }
  495|  12.1k|}
_ZNK6icu_7812UnifiedCache13removeHardRefEPKNS_12SharedObjectE:
  497|  52.8k|int32_t UnifiedCache::removeHardRef(const SharedObject *value) const {
  498|  52.8k|    int refCount = 0;
  499|  52.8k|    if (value) {
  ------------------
  |  Branch (499:9): [True: 19.8k, False: 33.0k]
  ------------------
  500|  19.8k|        refCount = umtx_atomic_dec(&value->hardRefCount);
  501|  19.8k|        U_ASSERT(refCount >= 0);
  ------------------
  |  |   35|  19.8k|#   define U_ASSERT(exp) (void)0
  ------------------
  502|  19.8k|        if (refCount == 0) {
  ------------------
  |  Branch (502:13): [True: 6.77k, False: 13.0k]
  ------------------
  503|  6.77k|            --fNumValuesInUse;
  504|  6.77k|        }
  505|  19.8k|    }
  506|  52.8k|    return refCount;
  507|  52.8k|}
_ZNK6icu_7812UnifiedCache10addHardRefEPKNS_12SharedObjectE:
  509|  33.0k|int32_t UnifiedCache::addHardRef(const SharedObject *value) const {
  510|  33.0k|    int refCount = 0;
  511|  33.0k|    if (value) {
  ------------------
  |  Branch (511:9): [True: 33.0k, False: 0]
  ------------------
  512|  33.0k|        refCount = umtx_atomic_inc(&value->hardRefCount);
  513|  33.0k|        U_ASSERT(refCount >= 1);
  ------------------
  |  |   35|  33.0k|#   define U_ASSERT(exp) (void)0
  ------------------
  514|  33.0k|        if (refCount == 1) {
  ------------------
  |  Branch (514:13): [True: 13.5k, False: 19.4k]
  ------------------
  515|  13.5k|            fNumValuesInUse++;
  516|  13.5k|        }
  517|  33.0k|    }
  518|  33.0k|    return refCount;
  519|  33.0k|}
unifiedcache.cpp:_ZN6icu_78L9cacheInitER10UErrorCode:
   70|      1|static void U_CALLCONV cacheInit(UErrorCode &status) {
   71|      1|    U_ASSERT(gCache == nullptr);
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
   72|      1|    ucln_common_registerCleanup(
  ------------------
  |  |  617|      1|#define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   73|      1|            UCLN_COMMON_UNIFIED_CACHE, unifiedcache_cleanup);
   74|       |
   75|      1|    gCacheMutex = STATIC_NEW(std::mutex);
  ------------------
  |  |  144|      1|#define STATIC_NEW(type) [] () { \
  |  |  145|      1|    alignas(type) static char storage[sizeof(type)]; \
  |  |  146|      1|    return new(storage) type();} ()
  ------------------
   76|      1|    gInProgressValueAddedCond = STATIC_NEW(std::condition_variable);
  ------------------
  |  |  144|      1|#define STATIC_NEW(type) [] () { \
  |  |  145|      1|    alignas(type) static char storage[sizeof(type)]; \
  |  |  146|      1|    return new(storage) type();} ()
  ------------------
   77|      1|    gCache = new UnifiedCache(status);
   78|      1|    if (gCache == nullptr) {
  ------------------
  |  Branch (78:9): [True: 0, False: 1]
  ------------------
   79|      0|        status = U_MEMORY_ALLOCATION_ERROR;
   80|      0|    }
   81|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (81:9): [True: 0, False: 1]
  ------------------
   82|      0|        delete gCache;
   83|      0|        gCache = nullptr;
   84|      0|        return;
   85|      0|    }
   86|      1|}

_ZN6icu_7812CacheKeyBaseC2Ev:
   37|  20.2k|   CacheKeyBase() : fCreationStatus(U_ZERO_ERROR), fIsPrimary(false) {}
_ZN6icu_7812CacheKeyBaseC2ERKS0_:
   43|  6.59k|           : UObject(other), fCreationStatus(other.fCreationStatus), fIsPrimary(false) { }
_ZN6icu_78eqERKNS_12CacheKeyBaseES2_:
   79|  20.9k|                                 const CacheKeyBase& rhs) {
   80|  20.9k|       return lhs.equals(rhs);
   81|  20.9k|   }
_ZN6icu_7814LocaleCacheKeyINS_19CollationCacheEntryEEC2ERKNS_6LocaleE:
  151|  20.2k|   LocaleCacheKey(const Locale &loc) : fLoc(loc) {}
_ZNK6icu_788CacheKeyINS_19CollationCacheEntryEE8hashCodeEv:
  110|  33.0k|   virtual int32_t hashCode() const override {
  111|  33.0k|       const char *s = typeid(T).name();
  112|  33.0k|       return ustr_hashCharsN(s, static_cast<int32_t>(uprv_strlen(s)));
  ------------------
  |  | 1878|  33.0k|#define ustr_hashCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashCharsN)
  |  |  ------------------
  |  |  |  |  123|  33.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  33.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  33.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                     return ustr_hashCharsN(s, static_cast<int32_t>(uprv_strlen(s)));
  ------------------
  |  |   37|  33.0k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  33.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  113|  33.0k|   }
_ZNK6icu_788CacheKeyINS_19CollationCacheEntryEE6equalsERKNS_12CacheKeyBaseE:
  129|  20.9k|   virtual bool equals(const CacheKeyBase &other) const override {
  130|  20.9k|       return this == &other || typeid(*this) == typeid(other);
  ------------------
  |  Branch (130:15): [True: 0, False: 20.9k]
  |  Branch (130:33): [True: 20.9k, False: 0]
  ------------------
  131|  20.9k|   }
_ZNK6icu_7814LocaleCacheKeyINS_19CollationCacheEntryEE8hashCodeEv:
  155|  33.0k|   virtual int32_t hashCode() const override {
  156|  33.0k|       return (int32_t)(37u * (uint32_t)CacheKey<T>::hashCode() + (uint32_t)fLoc.hashCode());
  157|  33.0k|   }
_ZNK6icu_7814LocaleCacheKeyINS_19CollationCacheEntryEE5cloneEv:
  161|  6.59k|   virtual CacheKeyBase *clone() const override {
  162|  6.59k|       return new LocaleCacheKey<T>(*this);
  163|  6.59k|   }
_ZN6icu_7814LocaleCacheKeyINS_19CollationCacheEntryEEC2ERKS2_:
  153|  6.59k|           : CacheKey<T>(other), fLoc(other.fLoc) { }
_ZNK6icu_7814LocaleCacheKeyINS_19CollationCacheEntryEE6equalsERKNS_12CacheKeyBaseE:
  142|  20.9k|   virtual bool equals(const CacheKeyBase &other) const override {
  143|  20.9k|       if (!CacheKey<T>::equals(other)) {
  ------------------
  |  Branch (143:12): [True: 0, False: 20.9k]
  ------------------
  144|      0|           return false;
  145|      0|       }
  146|       |       // We know this and other are of same class because equals() on
  147|       |       // CacheKey returned true.
  148|  20.9k|       return operator==(static_cast<const LocaleCacheKey<T> &>(other));
  149|  20.9k|   }
_ZNK6icu_7814LocaleCacheKeyINS_19CollationCacheEntryEEeqERKS2_:
  158|  20.9k|   inline bool operator == (const LocaleCacheKey<T> &other) const {
  159|  20.9k|       return fLoc == other.fLoc;
  160|  20.9k|   }
_ZN6icu_7814LocaleCacheKeyINS_19CollationCacheEntryEED2Ev:
  154|  25.7k|   virtual ~LocaleCacheKey() { }
_ZNK6icu_7812UnifiedCache3getINS_19CollationCacheEntryEEEvRKNS_8CacheKeyIT_EEPKvRPKS4_R10UErrorCode:
  228|  20.2k|           UErrorCode &status) const {
  229|  20.2k|       if (U_FAILURE(status)) {
  ------------------
  |  Branch (229:12): [True: 388, False: 19.8k]
  ------------------
  230|    388|           return;
  231|    388|       }
  232|  19.8k|       UErrorCode creationStatus = U_ZERO_ERROR;
  233|  19.8k|       const SharedObject *value = nullptr;
  234|  19.8k|       _get(key, value, creationContext, creationStatus);
  235|  19.8k|       const T *tvalue = (const T *) value;
  236|  19.8k|       if (U_SUCCESS(creationStatus)) {
  ------------------
  |  Branch (236:12): [True: 19.7k, False: 21]
  ------------------
  237|  19.7k|           SharedObject::copyPtr(tvalue, ptr);
  238|  19.7k|       }
  239|  19.8k|       SharedObject::clearPtr(tvalue);
  240|       |       // Take care not to overwrite a warning status passed in with
  241|       |       // another warning or U_ZERO_ERROR.
  242|  19.8k|       if (status == U_ZERO_ERROR || U_FAILURE(creationStatus)) {
  ------------------
  |  Branch (242:12): [True: 14.0k, False: 5.73k]
  |  Branch (242:38): [True: 7, False: 5.72k]
  ------------------
  243|  14.0k|           status = creationStatus;
  244|  14.0k|       }
  245|  19.8k|   }

_ZN6icu_7814UnicodeMatcherD2Ev:
   23|     22|UnicodeMatcher::~UnicodeMatcher() {}
_ZN6icu_7813UnicodeFilterD2Ev:
   25|     22|UnicodeFilter::~UnicodeFilter() {}

_ZN6icu_7814UnicodeFunctorD2Ev:
   16|     22|UnicodeFunctor::~UnicodeFunctor() {}

_ZN6icu_7817UniqueCharStringsC2ER10UErrorCode:
   27|      1|    UniqueCharStrings(UErrorCode &errorCode) : strings(nullptr) {
   28|       |        // Note: We hash on string contents but store stable char16_t * pointers.
   29|       |        // If the strings are stored in resource bundles which should be built with
   30|       |        // duplicate elimination, then we should be able to hash on just the pointer values.
   31|      1|        uhash_init(&map, uhash_hashUChars, uhash_compareUChars, uhash_compareLong, &errorCode);
  ------------------
  |  | 1022|      1|#define uhash_init U_ICU_ENTRY_POINT_RENAME(uhash_init)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      uhash_init(&map, uhash_hashUChars, uhash_compareUChars, uhash_compareLong, &errorCode);
  ------------------
  |  | 1016|      1|#define uhash_hashUChars U_ICU_ENTRY_POINT_RENAME(uhash_hashUChars)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      uhash_init(&map, uhash_hashUChars, uhash_compareUChars, uhash_compareLong, &errorCode);
  ------------------
  |  |  998|      1|#define uhash_compareUChars U_ICU_ENTRY_POINT_RENAME(uhash_compareUChars)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      uhash_init(&map, uhash_hashUChars, uhash_compareUChars, uhash_compareLong, &errorCode);
  ------------------
  |  |  996|      1|#define uhash_compareLong U_ICU_ENTRY_POINT_RENAME(uhash_compareLong)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   32|      1|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (32:13): [True: 0, False: 1]
  ------------------
   33|      1|        strings = new CharString();
   34|      1|        if (strings == nullptr) {
  ------------------
  |  Branch (34:13): [True: 0, False: 1]
  ------------------
   35|      0|            errorCode = U_MEMORY_ALLOCATION_ERROR;
   36|      0|        }
   37|      1|    }
_ZN6icu_7817UniqueCharStrings3addEPKDsR10UErrorCode:
   58|  1.29k|    int32_t add(const char16_t*p, UErrorCode &errorCode) {
   59|  1.29k|        if (U_FAILURE(errorCode)) { return -1; }
  ------------------
  |  Branch (59:13): [True: 0, False: 1.29k]
  ------------------
   60|  1.29k|        if (isFrozen) {
  ------------------
  |  Branch (60:13): [True: 0, False: 1.29k]
  ------------------
   61|      0|            errorCode = U_NO_WRITE_PERMISSION;
   62|      0|            return -1;
   63|      0|        }
   64|       |        // The string points into the resource bundle.
   65|  1.29k|        int32_t oldIndex = uhash_geti(&map, p);
  ------------------
  |  | 1008|  1.29k|#define uhash_geti U_ICU_ENTRY_POINT_RENAME(uhash_geti)
  |  |  ------------------
  |  |  |  |  123|  1.29k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.29k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.29k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   66|  1.29k|        if (oldIndex != 0) {  // found duplicate
  ------------------
  |  Branch (66:13): [True: 476, False: 814]
  ------------------
   67|    476|            return oldIndex;
   68|    476|        }
   69|       |        // Explicit NUL terminator for the previous string.
   70|       |        // The strings object is also terminated with one implicit NUL.
   71|    814|        strings->append(0, errorCode);
   72|    814|        int32_t newIndex = strings->length();
   73|    814|        strings->appendInvariantChars(p, u_strlen(p), errorCode);
  ------------------
  |  |  393|    814|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|    814|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    814|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    814|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   74|    814|        uhash_puti(&map, const_cast<char16_t *>(p), newIndex, &errorCode);
  ------------------
  |  | 1033|    814|#define uhash_puti U_ICU_ENTRY_POINT_RENAME(uhash_puti)
  |  |  ------------------
  |  |  |  |  123|    814|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    814|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    814|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   75|    814|        return newIndex;
   76|  1.29k|    }
_ZN6icu_7817UniqueCharStrings6freezeEv:
  100|      1|    void freeze() { isFrozen = true; }
_ZNK6icu_7817UniqueCharStrings3getEi:
  106|  1.29k|    const char *get(int32_t i) const {
  107|  1.29k|        U_ASSERT(isFrozen);
  ------------------
  |  |   35|  1.29k|#   define U_ASSERT(exp) (void)0
  ------------------
  108|  1.29k|        return isFrozen && i > 0 ? strings->data() + i : nullptr;
  ------------------
  |  Branch (108:16): [True: 1.29k, False: 0]
  |  Branch (108:28): [True: 1.29k, False: 0]
  ------------------
  109|  1.29k|    }
_ZN6icu_7817UniqueCharStrings17orphanCharStringsEv:
   44|      1|    CharString *orphanCharStrings() {
   45|      1|        CharString *result = strings;
   46|      1|        strings = nullptr;
   47|      1|        return result;
   48|      1|    }
_ZN6icu_7817UniqueCharStringsD2Ev:
   38|      1|    ~UniqueCharStrings() {
   39|      1|        uhash_close(&map);
  ------------------
  |  |  991|      1|#define uhash_close U_ICU_ENTRY_POINT_RENAME(uhash_close)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   40|      1|        delete strings;
   41|      1|    }

_ZNK6icu_7810UnicodeSet10hasStringsEv:
  120|    131|UBool UnicodeSet::hasStrings() const {
  121|    131|    return strings_ != nullptr && !strings_->isEmpty();
  ------------------
  |  Branch (121:12): [True: 0, False: 131]
  |  Branch (121:35): [True: 0, False: 0]
  ------------------
  122|    131|}
_ZN6icu_7810UnicodeSetC2ERKS0_a:
  166|     65|UnicodeSet::UnicodeSet(const UnicodeSet& o, UBool /* asThawed */) : UnicodeFilter(o) {
  167|     65|    if (ensureCapacity(o.len)) {
  ------------------
  |  Branch (167:9): [True: 65, False: 0]
  ------------------
  168|       |        // *this = o except for bmpSet and stringSpan
  169|     65|        len = o.len;
  170|     65|        uprv_memcpy(list, o.list, (size_t)len*sizeof(UChar32));
  ------------------
  |  |   42|     65|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|     65|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|     65|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|     65|    _Pragma("clang diagnostic push") \
  |  |   45|     65|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|     65|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|     65|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|     65|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|     65|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|     65|    _Pragma("clang diagnostic pop") \
  |  |   49|     65|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|     65|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|     65|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|     65|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  171|     65|        if (o.hasStrings()) {
  ------------------
  |  Branch (171:13): [True: 0, False: 65]
  ------------------
  172|      0|            UErrorCode status = U_ZERO_ERROR;
  173|      0|            if (!allocateStrings(status) ||
  ------------------
  |  Branch (173:17): [True: 0, False: 0]
  ------------------
  174|      0|                    (strings_->assign(*o.strings_, cloneUnicodeString, status), U_FAILURE(status))) {
  ------------------
  |  Branch (174:21): [True: 0, False: 0]
  ------------------
  175|      0|                setToBogus();
  176|      0|                return;
  177|      0|            }
  178|      0|        }
  179|     65|        if (o.pat) {
  ------------------
  |  Branch (179:13): [True: 0, False: 65]
  ------------------
  180|      0|            setPattern(o.pat, o.patLen);
  181|      0|        }
  182|     65|        _dbgct(this);
  183|     65|    }
  184|     65|}
_ZN6icu_7810UnicodeSetD2Ev:
  189|     22|UnicodeSet::~UnicodeSet() {
  190|     22|    _dbgdt(this); // first!
  191|     22|    if (list != stackList) {
  ------------------
  |  Branch (191:9): [True: 22, False: 0]
  ------------------
  192|     22|        uprv_free(list);
  ------------------
  |  | 1503|     22|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|     22|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     22|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     22|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  193|     22|    }
  194|     22|    delete bmpSet;
  195|     22|    if (buffer != stackList) {
  ------------------
  |  Branch (195:9): [True: 22, False: 0]
  ------------------
  196|     22|        uprv_free(buffer);
  ------------------
  |  | 1503|     22|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|     22|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     22|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     22|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  197|     22|    }
  198|     22|    delete strings_;
  199|     22|    delete stringSpan;
  200|     22|    releasePattern();
  201|     22|}
_ZNK6icu_7810UnicodeSet13cloneAsThawedEv:
  267|     65|UnicodeSet *UnicodeSet::cloneAsThawed() const {
  268|     65|    return new UnicodeSet(*this, true);
  269|     65|}
_ZNK6icu_7810UnicodeSet8containsEi:
  340|  8.36k|UBool UnicodeSet::contains(UChar32 c) const {
  341|       |    // Set i to the index of the start item greater than ch
  342|       |    // We know we will terminate without length test!
  343|       |    // LATER: for large sets, add binary search
  344|       |    //int32_t i = -1;
  345|       |    //for (;;) {
  346|       |    //    if (c < list[++i]) break;
  347|       |    //}
  348|  8.36k|    if (bmpSet != nullptr) {
  ------------------
  |  Branch (348:9): [True: 8.36k, False: 0]
  ------------------
  349|  8.36k|        return bmpSet->contains(c);
  350|  8.36k|    }
  351|      0|    if (stringSpan != nullptr) {
  ------------------
  |  Branch (351:9): [True: 0, False: 0]
  ------------------
  352|      0|        return stringSpan->contains(c);
  353|      0|    }
  354|      0|    if (c >= UNICODESET_HIGH) { // Don't need to check LOW bound
  ------------------
  |  |   34|      0|#define UNICODESET_HIGH 0x0110000
  ------------------
  |  Branch (354:9): [True: 0, False: 0]
  ------------------
  355|      0|        return false;
  356|      0|    }
  357|      0|    int32_t i = findCodePoint(c);
  358|      0|    return i & 1; // return true if odd
  359|      0|}
_ZNK6icu_7810UnicodeSet13findCodePointEi:
  370|  70.3k|int32_t UnicodeSet::findCodePoint(UChar32 c) const {
  371|       |    /* Examples:
  372|       |                                       findCodePoint(c)
  373|       |       set              list[]         c=0 1 3 4 7 8
  374|       |       ===              ==============   ===========
  375|       |       []               [110000]         0 0 0 0 0 0
  376|       |       [\u0000-\u0003]  [0, 4, 110000]   1 1 1 2 2 2
  377|       |       [\u0004-\u0007]  [4, 8, 110000]   0 0 0 1 1 2
  378|       |       [:Any:]          [0, 110000]      1 1 1 1 1 1
  379|       |     */
  380|       |
  381|       |    // Return the smallest i such that c < list[i].  Assume
  382|       |    // list[len - 1] == HIGH and that c is legal (0..HIGH-1).
  383|  70.3k|    if (c < list[0])
  ------------------
  |  Branch (383:9): [True: 3, False: 70.3k]
  ------------------
  384|      3|        return 0;
  385|       |    // High runner test.  c is often after the last range, so an
  386|       |    // initial check for this condition pays off.
  387|  70.3k|    int32_t lo = 0;
  388|  70.3k|    int32_t hi = len - 1;
  389|  70.3k|    if (lo >= hi || c >= list[hi-1])
  ------------------
  |  Branch (389:9): [True: 0, False: 70.3k]
  |  Branch (389:21): [True: 62.0k, False: 8.24k]
  ------------------
  390|  62.0k|        return hi;
  391|       |    // invariant: c >= list[lo]
  392|       |    // invariant: c < list[hi]
  393|  89.0k|    for (;;) {
  394|  89.0k|        int32_t i = (lo + hi) >> 1;
  395|  89.0k|        if (i == lo) {
  ------------------
  |  Branch (395:13): [True: 8.24k, False: 80.7k]
  ------------------
  396|  8.24k|            break; // Found!
  397|  80.7k|        } else if (c < list[i]) {
  ------------------
  |  Branch (397:20): [True: 30.2k, False: 50.4k]
  ------------------
  398|  30.2k|            hi = i;
  399|  50.4k|        } else {
  400|  50.4k|            lo = i;
  401|  50.4k|        }
  402|  89.0k|    }
  403|  8.24k|    return hi;
  404|  70.3k|}
_ZNK6icu_7810UnicodeSet12containsNoneEii:
  473|  67.5k|UBool UnicodeSet::containsNone(UChar32 start, UChar32 end) const {
  474|       |    //int32_t i = -1;
  475|       |    //for (;;) {
  476|       |    //    if (start < list[++i]) break;
  477|       |    //}
  478|  67.5k|    int32_t i = findCodePoint(start);
  479|  67.5k|    return ((i & 1) == 0 && end < list[i]);
  ------------------
  |  Branch (479:13): [True: 67.2k, False: 330]
  |  Branch (479:29): [True: 66.0k, False: 1.19k]
  ------------------
  480|  67.5k|}
_ZN6icu_7810UnicodeSet3addEii:
  765|  1.57k|UnicodeSet& UnicodeSet::add(UChar32 start, UChar32 end) {
  766|  1.57k|    if (pinCodePoint(start) < pinCodePoint(end)) {
  ------------------
  |  Branch (766:9): [True: 346, False: 1.22k]
  ------------------
  767|    346|        UChar32 limit = end + 1;
  768|       |        // Fast path for adding a new range after the last one.
  769|       |        // Odd list length: [..., lastStart, lastLimit, HIGH]
  770|    346|        if ((len & 1) != 0) {
  ------------------
  |  Branch (770:13): [True: 346, False: 0]
  ------------------
  771|       |            // If the list is empty, set lastLimit low enough to not be adjacent to 0.
  772|    346|            UChar32 lastLimit = len == 1 ? -2 : list[len - 2];
  ------------------
  |  Branch (772:33): [True: 0, False: 346]
  ------------------
  773|    346|            if (lastLimit <= start && !isFrozen() && !isBogus()) {
  ------------------
  |  Branch (773:17): [True: 15, False: 331]
  |  Branch (773:39): [True: 15, False: 0]
  |  Branch (773:54): [True: 15, False: 0]
  ------------------
  774|     15|                if (lastLimit == start) {
  ------------------
  |  Branch (774:21): [True: 1, False: 14]
  ------------------
  775|       |                    // Extend the last range.
  776|      1|                    list[len - 2] = limit;
  777|      1|                    if (limit == UNICODESET_HIGH) {
  ------------------
  |  |   34|      1|#define UNICODESET_HIGH 0x0110000
  ------------------
  |  Branch (777:25): [True: 0, False: 1]
  ------------------
  778|      0|                        --len;
  779|      0|                    }
  780|     14|                } else {
  781|     14|                    list[len - 1] = start;
  782|     14|                    if (limit < UNICODESET_HIGH) {
  ------------------
  |  |   34|     14|#define UNICODESET_HIGH 0x0110000
  ------------------
  |  Branch (782:25): [True: 14, False: 0]
  ------------------
  783|     14|                        if (ensureCapacity(len + 2)) {
  ------------------
  |  Branch (783:29): [True: 14, False: 0]
  ------------------
  784|     14|                            list[len++] = limit;
  785|     14|                            list[len++] = UNICODESET_HIGH;
  ------------------
  |  |   34|     14|#define UNICODESET_HIGH 0x0110000
  ------------------
  786|     14|                        }
  787|     14|                    } else {  // limit == UNICODESET_HIGH
  788|      0|                        if (ensureCapacity(len + 1)) {
  ------------------
  |  Branch (788:29): [True: 0, False: 0]
  ------------------
  789|      0|                            list[len++] = UNICODESET_HIGH;
  ------------------
  |  |   34|      0|#define UNICODESET_HIGH 0x0110000
  ------------------
  790|      0|                        }
  791|      0|                    }
  792|     14|                }
  793|     15|                releasePattern();
  794|     15|                return *this;
  795|     15|            }
  796|    346|        }
  797|       |        // This is slow. Could be much faster using findCodePoint(start)
  798|       |        // and modifying the list, dealing with adjacent & overlapping ranges.
  799|    331|        UChar32 range[3] = { start, limit, UNICODESET_HIGH };
  ------------------
  |  |   34|    331|#define UNICODESET_HIGH 0x0110000
  ------------------
  800|    331|        add(range, 2, 0);
  801|  1.22k|    } else if (start == end) {
  ------------------
  |  Branch (801:16): [True: 1.22k, False: 0]
  ------------------
  802|  1.22k|        add(start);
  803|  1.22k|    }
  804|  1.55k|    return *this;
  805|  1.57k|}
_ZN6icu_7810UnicodeSet3addEi:
  833|  2.75k|UnicodeSet& UnicodeSet::add(UChar32 c) {
  834|       |    // find smallest i such that c < list[i]
  835|       |    // if odd, then it is IN the set
  836|       |    // if even, then it is OUT of the set
  837|  2.75k|    int32_t i = findCodePoint(pinCodePoint(c));
  838|       |
  839|       |    // already in set?
  840|  2.75k|    if ((i & 1) != 0  || isFrozen() || isBogus()) return *this;
  ------------------
  |  Branch (840:9): [True: 1.67k, False: 1.07k]
  |  Branch (840:26): [True: 0, False: 1.07k]
  |  Branch (840:40): [True: 0, False: 1.07k]
  ------------------
  841|       |
  842|       |    // HIGH is 0x110000
  843|       |    // assert(list[len-1] == HIGH);
  844|       |
  845|       |    // empty = [HIGH]
  846|       |    // [start_0, limit_0, start_1, limit_1, HIGH]
  847|       |
  848|       |    // [..., start_k-1, limit_k-1, start_k, limit_k, ..., HIGH]
  849|       |    //                             ^
  850|       |    //                             list[i]
  851|       |
  852|       |    // i == 0 means c is before the first range
  853|       |
  854|       |#ifdef DEBUG_US_ADD
  855|       |    printf("Add of ");
  856|       |    dump(c);
  857|       |    printf(" found at %d", i);
  858|       |    printf(": ");
  859|       |    dump(list, len);
  860|       |    printf(" => ");
  861|       |#endif
  862|       |
  863|  1.07k|    if (c == list[i]-1) {
  ------------------
  |  Branch (863:9): [True: 4, False: 1.07k]
  ------------------
  864|       |        // c is before start of next range
  865|      4|        list[i] = c;
  866|       |        // if we touched the HIGH mark, then add a new one
  867|      4|        if (c == (UNICODESET_HIGH - 1)) {
  ------------------
  |  |   34|      4|#define UNICODESET_HIGH 0x0110000
  ------------------
  |  Branch (867:13): [True: 0, False: 4]
  ------------------
  868|      0|            if (!ensureCapacity(len+1)) {
  ------------------
  |  Branch (868:17): [True: 0, False: 0]
  ------------------
  869|       |                // ensureCapacity will mark the object as Bogus if OOM failure happens.
  870|      0|                return *this;
  871|      0|            }
  872|      0|            list[len++] = UNICODESET_HIGH;
  ------------------
  |  |   34|      0|#define UNICODESET_HIGH 0x0110000
  ------------------
  873|      0|        }
  874|      4|        if (i > 0 && c == list[i-1]) {
  ------------------
  |  Branch (874:13): [True: 4, False: 0]
  |  Branch (874:22): [True: 1, False: 3]
  ------------------
  875|       |            // collapse adjacent ranges
  876|       |
  877|       |            // [..., start_k-1, c, c, limit_k, ..., HIGH]
  878|       |            //                     ^
  879|       |            //                     list[i]
  880|       |
  881|       |            //for (int32_t k=i-1; k<len-2; ++k) {
  882|       |            //    list[k] = list[k+2];
  883|       |            //}
  884|      1|            UChar32* dst = list + i - 1;
  885|      1|            UChar32* src = dst + 2;
  886|      1|            UChar32* srclimit = list + len;
  887|    537|            while (src < srclimit) *(dst++) = *(src++);
  ------------------
  |  Branch (887:20): [True: 536, False: 1]
  ------------------
  888|       |
  889|      1|            len -= 2;
  890|      1|        }
  891|      4|    }
  892|       |
  893|  1.07k|    else if (i > 0 && c == list[i-1]) {
  ------------------
  |  Branch (893:14): [True: 1.07k, False: 3]
  |  Branch (893:23): [True: 7, False: 1.06k]
  ------------------
  894|       |        // c is after end of prior range
  895|      7|        list[i-1]++;
  896|       |        // no need to check for collapse here
  897|      7|    }
  898|       |
  899|  1.06k|    else {
  900|       |        // At this point we know the new char is not adjacent to
  901|       |        // any existing ranges, and it is not 10FFFF.
  902|       |
  903|       |
  904|       |        // [..., start_k-1, limit_k-1, start_k, limit_k, ..., HIGH]
  905|       |        //                             ^
  906|       |        //                             list[i]
  907|       |
  908|       |        // [..., start_k-1, limit_k-1, c, c+1, start_k, limit_k, ..., HIGH]
  909|       |        //                             ^
  910|       |        //                             list[i]
  911|       |
  912|  1.06k|        if (!ensureCapacity(len+2)) {
  ------------------
  |  Branch (912:13): [True: 0, False: 1.06k]
  ------------------
  913|       |            // ensureCapacity will mark the object as Bogus if OOM failure happens.
  914|      0|            return *this;
  915|      0|        }
  916|       |
  917|  1.06k|        UChar32 *p = list + i;
  918|  1.06k|        uprv_memmove(p + 2, p, (len - i) * sizeof(*p));
  ------------------
  |  |   51|  1.06k|#define uprv_memmove(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  1.06k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   52|  1.06k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   53|  1.06k|    _Pragma("clang diagnostic push") \
  |  |   54|  1.06k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   55|  1.06k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.06k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   56|  1.06k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.06k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   57|  1.06k|    _Pragma("clang diagnostic pop") \
  |  |   58|  1.06k|    U_STANDARD_CPP_NAMESPACE memmove(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  1.06k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   59|  1.06k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  1.06k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  919|  1.06k|        list[i] = c;
  920|  1.06k|        list[i+1] = c+1;
  921|  1.06k|        len += 2;
  922|  1.06k|    }
  923|       |
  924|       |#ifdef DEBUG_US_ADD
  925|       |    dump(list, len);
  926|       |    printf("\n");
  927|       |
  928|       |    for (i=1; i<len; ++i) {
  929|       |        if (list[i] <= list[i-1]) {
  930|       |            // Corrupt array!
  931|       |            printf("ERROR: list has been corrupted\n");
  932|       |            exit(1);
  933|       |        }
  934|       |    }
  935|       |#endif
  936|       |
  937|  1.07k|    releasePattern();
  938|  1.07k|    return *this;
  939|  1.07k|}
_ZN6icu_7810UnicodeSet7compactEv:
 1415|     66|UnicodeSet& UnicodeSet::compact() {
 1416|     66|    if (isFrozen() || isBogus()) {
  ------------------
  |  Branch (1416:9): [True: 0, False: 66]
  |  Branch (1416:23): [True: 0, False: 66]
  ------------------
 1417|      0|        return *this;
 1418|      0|    }
 1419|       |    // Delete buffer first to defragment memory less.
 1420|     66|    if (buffer != stackList) {
  ------------------
  |  Branch (1420:9): [True: 66, False: 0]
  ------------------
 1421|     66|        uprv_free(buffer);
  ------------------
  |  | 1503|     66|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|     66|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     66|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     66|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1422|     66|        buffer = nullptr;
 1423|     66|        bufferCapacity = 0;
 1424|     66|    }
 1425|     66|    if (list == stackList) {
  ------------------
  |  Branch (1425:9): [True: 0, False: 66]
  ------------------
 1426|       |        // pass
 1427|     66|    } else if (len <= INITIAL_CAPACITY) {
  ------------------
  |  Branch (1427:16): [True: 0, False: 66]
  ------------------
 1428|      0|        uprv_memcpy(stackList, list, len * sizeof(UChar32));
  ------------------
  |  |   42|      0|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      0|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|      0|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|      0|    _Pragma("clang diagnostic push") \
  |  |   45|      0|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|      0|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|      0|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|      0|    _Pragma("clang diagnostic pop") \
  |  |   49|      0|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|      0|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      0|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1429|      0|        uprv_free(list);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1430|      0|        list = stackList;
 1431|      0|        capacity = INITIAL_CAPACITY;
 1432|     66|    } else if ((len + 7) < capacity) {
  ------------------
  |  Branch (1432:16): [True: 66, False: 0]
  ------------------
 1433|       |        // If we have more than a little unused capacity, shrink it to len.
 1434|     66|        UChar32* temp = static_cast<UChar32*>(uprv_realloc(list, sizeof(UChar32) * len));
  ------------------
  |  | 1536|     66|#define uprv_realloc U_ICU_ENTRY_POINT_RENAME(uprv_realloc)
  |  |  ------------------
  |  |  |  |  123|     66|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     66|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     66|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1435|     66|        if (temp) {
  ------------------
  |  Branch (1435:13): [True: 66, False: 0]
  ------------------
 1436|     66|            list = temp;
 1437|     66|            capacity = len;
 1438|     66|        }
 1439|       |        // else what the heck happened?! We allocated less memory!
 1440|       |        // Oh well. We'll keep our original array.
 1441|     66|    }
 1442|     66|    if (strings_ != nullptr && strings_->isEmpty()) {
  ------------------
  |  Branch (1442:9): [True: 0, False: 66]
  |  Branch (1442:32): [True: 0, False: 0]
  ------------------
 1443|      0|        delete strings_;
 1444|      0|        strings_ = nullptr;
 1445|      0|    }
 1446|     66|    return *this;
 1447|     66|}
_ZN6icu_7810UnicodeSetC2EPKtiNS0_14ESerializationER10UErrorCode:
 1457|      1|                       UErrorCode &ec) {
 1458|       |
 1459|      1|  if(U_FAILURE(ec)) {
  ------------------
  |  Branch (1459:6): [True: 0, False: 1]
  ------------------
 1460|      0|    setToBogus();
 1461|      0|    return;
 1462|      0|  }
 1463|       |
 1464|      1|  if( (serialization != kSerialized)
  ------------------
  |  Branch (1464:7): [True: 0, False: 1]
  ------------------
 1465|      1|      || (data==nullptr)
  ------------------
  |  Branch (1465:10): [True: 0, False: 1]
  ------------------
 1466|      1|      || (dataLen < 1)) {
  ------------------
  |  Branch (1466:10): [True: 0, False: 1]
  ------------------
 1467|      0|    ec = U_ILLEGAL_ARGUMENT_ERROR;
 1468|      0|    setToBogus();
 1469|      0|    return;
 1470|      0|  }
 1471|       |
 1472|       |  // bmp?
 1473|      1|  int32_t headerSize = ((data[0]&0x8000)) ?2:1;
  ------------------
  |  Branch (1473:24): [True: 1, False: 0]
  ------------------
 1474|      1|  int32_t bmpLength = (headerSize==1)?data[0]:data[1];
  ------------------
  |  Branch (1474:23): [True: 0, False: 1]
  ------------------
 1475|       |
 1476|      1|  int32_t newLength = (((data[0]&0x7FFF)-bmpLength)/2)+bmpLength;
 1477|       |#ifdef DEBUG_SERIALIZE
 1478|       |  printf("dataLen %d headerSize %d bmpLen %d len %d. data[0]=%X/%X/%X/%X\n", dataLen,headerSize,bmpLength,newLength, data[0],data[1],data[2],data[3]);
 1479|       |#endif
 1480|      1|  if(!ensureCapacity(newLength + 1)) {  // +1 for HIGH
  ------------------
  |  Branch (1480:6): [True: 0, False: 1]
  ------------------
 1481|      0|    return;
 1482|      0|  }
 1483|       |  // copy bmp
 1484|      1|  int32_t i;
 1485|    441|  for(i = 0; i< bmpLength;i++) {
  ------------------
  |  Branch (1485:14): [True: 440, False: 1]
  ------------------
 1486|    440|    list[i] = data[i+headerSize];
 1487|       |#ifdef DEBUG_SERIALIZE
 1488|       |    printf("<<16@%d[%d] %X\n", i+headerSize, i, list[i]);
 1489|       |#endif
 1490|    440|  }
 1491|       |  // copy smp
 1492|    205|  for(i=bmpLength;i<newLength;i++) {
  ------------------
  |  Branch (1492:19): [True: 204, False: 1]
  ------------------
 1493|    204|    list[i] = (static_cast<UChar32>(data[headerSize + bmpLength + (i - bmpLength) * 2 + 0]) << 16) +
 1494|    204|               static_cast<UChar32>(data[headerSize + bmpLength + (i - bmpLength) * 2 + 1]);
 1495|       |#ifdef DEBUG_SERIALIZE
 1496|       |    printf("<<32@%d+[%d] %lX\n", headerSize+bmpLength+i, i, list[i]);
 1497|       |#endif
 1498|    204|  }
 1499|      1|  U_ASSERT(i == newLength);
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
 1500|      1|  if (i == 0 || list[i - 1] != UNICODESET_HIGH) {
  ------------------
  |  |   34|      1|#define UNICODESET_HIGH 0x0110000
  ------------------
  |  Branch (1500:7): [True: 0, False: 1]
  |  Branch (1500:17): [True: 1, False: 0]
  ------------------
 1501|      1|    list[i++] = UNICODESET_HIGH;
  ------------------
  |  |   34|      1|#define UNICODESET_HIGH 0x0110000
  ------------------
 1502|      1|  }
 1503|      1|  len = i;
 1504|      1|}
_ZN6icu_7810UnicodeSet12nextCapacityEi:
 1624|    120|int32_t UnicodeSet::nextCapacity(int32_t minCapacity) {
 1625|       |    // Grow exponentially to reduce the frequency of allocations.
 1626|    120|    if (minCapacity < INITIAL_CAPACITY) {
  ------------------
  |  Branch (1626:9): [True: 0, False: 120]
  ------------------
 1627|      0|        return minCapacity + INITIAL_CAPACITY;
 1628|    120|    } else if (minCapacity <= 2500) {
  ------------------
  |  Branch (1628:16): [True: 120, False: 0]
  ------------------
 1629|    120|        return 5 * minCapacity;
 1630|    120|    } else {
 1631|      0|        int32_t newCapacity = 2 * minCapacity;
 1632|      0|        if (newCapacity > MAX_LENGTH) {
  ------------------
  |  Branch (1632:13): [True: 0, False: 0]
  ------------------
 1633|      0|            newCapacity = MAX_LENGTH;
 1634|      0|        }
 1635|      0|        return newCapacity;
 1636|      0|    }
 1637|    120|}
_ZN6icu_7810UnicodeSet14ensureCapacityEi:
 1639|  1.14k|bool UnicodeSet::ensureCapacity(int32_t newLen) {
 1640|  1.14k|    if (newLen > MAX_LENGTH) {
  ------------------
  |  Branch (1640:9): [True: 0, False: 1.14k]
  ------------------
 1641|      0|        newLen = MAX_LENGTH;
 1642|      0|    }
 1643|  1.14k|    if (newLen <= capacity) {
  ------------------
  |  Branch (1643:9): [True: 1.08k, False: 66]
  ------------------
 1644|  1.08k|        return true;
 1645|  1.08k|    }
 1646|     66|    int32_t newCapacity = nextCapacity(newLen);
 1647|     66|    UChar32* temp = static_cast<UChar32*>(uprv_malloc(newCapacity * sizeof(UChar32)));
  ------------------
  |  | 1524|     66|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|     66|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     66|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     66|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1648|     66|    if (temp == nullptr) {
  ------------------
  |  Branch (1648:9): [True: 0, False: 66]
  ------------------
 1649|      0|        setToBogus(); // set the object to bogus state if an OOM failure occurred.
 1650|      0|        return false;
 1651|      0|    }
 1652|       |    // Copy only the actual contents.
 1653|     66|    uprv_memcpy(temp, list, len * sizeof(UChar32));
  ------------------
  |  |   42|     66|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|     66|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|     66|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|     66|    _Pragma("clang diagnostic push") \
  |  |   45|     66|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|     66|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|     66|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|     66|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|     66|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|     66|    _Pragma("clang diagnostic pop") \
  |  |   49|     66|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|     66|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|     66|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|     66|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1654|     66|    if (list != stackList) {
  ------------------
  |  Branch (1654:9): [True: 0, False: 66]
  ------------------
 1655|      0|        uprv_free(list);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1656|      0|    }
 1657|     66|    list = temp;
 1658|     66|    capacity = newCapacity;
 1659|     66|    return true;
 1660|     66|}
_ZN6icu_7810UnicodeSet20ensureBufferCapacityEi:
 1662|    331|bool UnicodeSet::ensureBufferCapacity(int32_t newLen) {
 1663|    331|    if (newLen > MAX_LENGTH) {
  ------------------
  |  Branch (1663:9): [True: 0, False: 331]
  ------------------
 1664|      0|        newLen = MAX_LENGTH;
 1665|      0|    }
 1666|    331|    if (newLen <= bufferCapacity) {
  ------------------
  |  Branch (1666:9): [True: 277, False: 54]
  ------------------
 1667|    277|        return true;
 1668|    277|    }
 1669|     54|    int32_t newCapacity = nextCapacity(newLen);
 1670|     54|    UChar32* temp = static_cast<UChar32*>(uprv_malloc(newCapacity * sizeof(UChar32)));
  ------------------
  |  | 1524|     54|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|     54|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     54|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     54|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1671|     54|    if (temp == nullptr) {
  ------------------
  |  Branch (1671:9): [True: 0, False: 54]
  ------------------
 1672|      0|        setToBogus();
 1673|      0|        return false;
 1674|      0|    }
 1675|       |    // The buffer has no contents to be copied.
 1676|       |    // It is always filled from scratch after this call.
 1677|     54|    if (buffer != stackList) {
  ------------------
  |  Branch (1677:9): [True: 54, False: 0]
  ------------------
 1678|     54|        uprv_free(buffer);
  ------------------
  |  | 1503|     54|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|     54|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     54|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     54|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1679|     54|    }
 1680|     54|    buffer = temp;
 1681|     54|    bufferCapacity = newCapacity;
 1682|     54|    return true;
 1683|     54|}
_ZN6icu_7810UnicodeSet11swapBuffersEv:
 1688|    331|void UnicodeSet::swapBuffers() {
 1689|       |    // swap list and buffer
 1690|    331|    UChar32* temp = list;
 1691|    331|    list = buffer;
 1692|    331|    buffer = temp;
 1693|       |
 1694|    331|    int32_t c = capacity;
 1695|    331|    capacity = bufferCapacity;
 1696|    331|    bufferCapacity = c;
 1697|    331|}
_ZN6icu_7810UnicodeSet3addEPKiia:
 1763|    331|void UnicodeSet::add(const UChar32* other, int32_t otherLen, int8_t polarity) {
 1764|    331|    if (isFrozen() || isBogus() || other==nullptr) {
  ------------------
  |  Branch (1764:9): [True: 0, False: 331]
  |  Branch (1764:23): [True: 0, False: 331]
  |  Branch (1764:36): [True: 0, False: 331]
  ------------------
 1765|      0|        return;
 1766|      0|    }
 1767|    331|    if (!ensureBufferCapacity(len + otherLen)) {
  ------------------
  |  Branch (1767:9): [True: 0, False: 331]
  ------------------
 1768|      0|        return;
 1769|      0|    }
 1770|       |
 1771|    331|    int32_t i = 0, j = 0, k = 0;
 1772|    331|    UChar32 a = list[i++];
 1773|    331|    UChar32 b = other[j++];
 1774|       |    // change from xor is that we have to check overlapping pairs
 1775|       |    // polarity bit 1 means a is second, bit 2 means b is.
 1776|   252k|    for (;;) {
 1777|   252k|        switch (polarity) {
  ------------------
  |  Branch (1777:17): [True: 0, False: 252k]
  ------------------
 1778|   126k|          case 0: // both first; take lower if unequal
  ------------------
  |  Branch (1778:11): [True: 126k, False: 126k]
  ------------------
 1779|   126k|            if (a < b) { // take a
  ------------------
  |  Branch (1779:17): [True: 125k, False: 650]
  ------------------
 1780|       |                // Back up over overlapping ranges in buffer[]
 1781|   125k|                if (k > 0 && a <= buffer[k-1]) {
  ------------------
  |  Branch (1781:21): [True: 125k, False: 331]
  |  Branch (1781:30): [True: 7, False: 125k]
  ------------------
 1782|       |                    // Pick latter end value in buffer[] vs. list[]
 1783|      7|                    a = max(list[i], buffer[--k]);
 1784|   125k|                } else {
 1785|       |                    // No overlap
 1786|   125k|                    buffer[k++] = a;
 1787|   125k|                    a = list[i];
 1788|   125k|                }
 1789|   125k|                i++; // Common if/else code factored out
 1790|   125k|                polarity ^= 1;
 1791|   125k|            } else if (b < a) { // take b
  ------------------
  |  Branch (1791:24): [True: 307, False: 343]
  ------------------
 1792|    307|                if (k > 0 && b <= buffer[k-1]) {
  ------------------
  |  Branch (1792:21): [True: 307, False: 0]
  |  Branch (1792:30): [True: 0, False: 307]
  ------------------
 1793|      0|                    b = max(other[j], buffer[--k]);
 1794|    307|                } else {
 1795|    307|                    buffer[k++] = b;
 1796|    307|                    b = other[j];
 1797|    307|                }
 1798|    307|                j++;
 1799|    307|                polarity ^= 2;
 1800|    343|            } else { // a == b, take a, drop b
 1801|    343|                if (a == UNICODESET_HIGH) goto loop_end;
  ------------------
  |  |   34|    343|#define UNICODESET_HIGH 0x0110000
  ------------------
  |  Branch (1801:21): [True: 331, False: 12]
  ------------------
 1802|       |                // This is symmetrical; it doesn't matter if
 1803|       |                // we backtrack with a or b. - liu
 1804|     12|                if (k > 0 && a <= buffer[k-1]) {
  ------------------
  |  Branch (1804:21): [True: 12, False: 0]
  |  Branch (1804:30): [True: 0, False: 12]
  ------------------
 1805|      0|                    a = max(list[i], buffer[--k]);
 1806|     12|                } else {
 1807|       |                    // No overlap
 1808|     12|                    buffer[k++] = a;
 1809|     12|                    a = list[i];
 1810|     12|                }
 1811|     12|                i++;
 1812|     12|                polarity ^= 1;
 1813|     12|                b = other[j++];
 1814|     12|                polarity ^= 2;
 1815|     12|            }
 1816|   126k|            break;
 1817|   126k|          case 3: // both second; take higher if unequal, and drop other
  ------------------
  |  Branch (1817:11): [True: 18, False: 252k]
  ------------------
 1818|     18|            if (b <= a) { // take a
  ------------------
  |  Branch (1818:17): [True: 14, False: 4]
  ------------------
 1819|     14|                if (a == UNICODESET_HIGH) goto loop_end;
  ------------------
  |  |   34|     14|#define UNICODESET_HIGH 0x0110000
  ------------------
  |  Branch (1819:21): [True: 0, False: 14]
  ------------------
 1820|     14|                buffer[k++] = a;
 1821|     14|            } else { // take b
 1822|      4|                if (b == UNICODESET_HIGH) goto loop_end;
  ------------------
  |  |   34|      4|#define UNICODESET_HIGH 0x0110000
  ------------------
  |  Branch (1822:21): [True: 0, False: 4]
  ------------------
 1823|      4|                buffer[k++] = b;
 1824|      4|            }
 1825|     18|            a = list[i++];
 1826|     18|            polarity ^= 1;   // factored common code
 1827|     18|            b = other[j++];
 1828|     18|            polarity ^= 2;
 1829|     18|            break;
 1830|   125k|          case 1: // a second, b first; if b < a, overlap
  ------------------
  |  Branch (1830:11): [True: 125k, False: 126k]
  ------------------
 1831|   125k|            if (a < b) { // no overlap, take a
  ------------------
  |  Branch (1831:17): [True: 125k, False: 12]
  ------------------
 1832|   125k|                buffer[k++] = a; a = list[i++]; polarity ^= 1;
 1833|   125k|            } else if (b < a) { // OVERLAP, drop b
  ------------------
  |  Branch (1833:24): [True: 2, False: 10]
  ------------------
 1834|      2|                b = other[j++];
 1835|      2|                polarity ^= 2;
 1836|     10|            } else { // a == b, drop both!
 1837|     10|                if (a == UNICODESET_HIGH) goto loop_end;
  ------------------
  |  |   34|     10|#define UNICODESET_HIGH 0x0110000
  ------------------
  |  Branch (1837:21): [True: 0, False: 10]
  ------------------
 1838|     10|                a = list[i++];
 1839|     10|                polarity ^= 1;
 1840|     10|                b = other[j++];
 1841|     10|                polarity ^= 2;
 1842|     10|            }
 1843|   125k|            break;
 1844|   125k|          case 2: // a first, b second; if a < b, overlap
  ------------------
  |  Branch (1844:11): [True: 317, False: 252k]
  ------------------
 1845|    317|            if (b < a) { // no overlap, take b
  ------------------
  |  Branch (1845:17): [True: 309, False: 8]
  ------------------
 1846|    309|                buffer[k++] = b;
 1847|    309|                b = other[j++];
 1848|    309|                polarity ^= 2;
 1849|    309|            } else  if (a < b) { // OVERLAP, drop a
  ------------------
  |  Branch (1849:25): [True: 4, False: 4]
  ------------------
 1850|      4|                a = list[i++];
 1851|      4|                polarity ^= 1;
 1852|      4|            } else { // a == b, drop both!
 1853|      4|                if (a == UNICODESET_HIGH) goto loop_end;
  ------------------
  |  |   34|      4|#define UNICODESET_HIGH 0x0110000
  ------------------
  |  Branch (1853:21): [True: 0, False: 4]
  ------------------
 1854|      4|                a = list[i++];
 1855|      4|                polarity ^= 1;
 1856|      4|                b = other[j++];
 1857|      4|                polarity ^= 2;
 1858|      4|            }
 1859|    317|            break;
 1860|   252k|        }
 1861|   252k|    }
 1862|    331| loop_end:
 1863|    331|    buffer[k++] = UNICODESET_HIGH;    // terminate
  ------------------
  |  |   34|    331|#define UNICODESET_HIGH 0x0110000
  ------------------
 1864|    331|    len = k;
 1865|    331|    swapBuffers();
 1866|    331|    releasePattern();
 1867|    331|}
_ZN6icu_7810UnicodeSet14releasePatternEv:
 2149|  1.44k|void UnicodeSet::releasePattern() {
 2150|  1.44k|    if (pat) {
  ------------------
  |  Branch (2150:9): [True: 0, False: 1.44k]
  ------------------
 2151|      0|        uprv_free(pat);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2152|      0|        pat = nullptr;
 2153|      0|        patLen = 0;
 2154|      0|    }
 2155|  1.44k|}
_ZN6icu_7810UnicodeSet6freezeEv:
 2172|     66|UnicodeSet *UnicodeSet::freeze() {
 2173|     66|    if(!isFrozen() && !isBogus()) {
  ------------------
  |  Branch (2173:8): [True: 66, False: 0]
  |  Branch (2173:23): [True: 66, False: 0]
  ------------------
 2174|     66|        compact();
 2175|       |
 2176|       |        // Optimize contains() and span() and similar functions.
 2177|     66|        if (hasStrings()) {
  ------------------
  |  Branch (2177:13): [True: 0, False: 66]
  ------------------
 2178|      0|            stringSpan = new UnicodeSetStringSpan(*this, *strings_, UnicodeSetStringSpan::ALL);
 2179|      0|            if (stringSpan == nullptr) {
  ------------------
  |  Branch (2179:17): [True: 0, False: 0]
  ------------------
 2180|      0|                setToBogus();
 2181|      0|                return this;
 2182|      0|            } else if (!stringSpan->needsStringSpanUTF16()) {
  ------------------
  |  Branch (2182:24): [True: 0, False: 0]
  ------------------
 2183|       |                // All strings are irrelevant for span() etc. because
 2184|       |                // all of each string's code points are contained in this set.
 2185|       |                // Do not check needsStringSpanUTF8() because UTF-8 has at most as
 2186|       |                // many relevant strings as UTF-16.
 2187|       |                // (Thus needsStringSpanUTF8() implies needsStringSpanUTF16().)
 2188|      0|                delete stringSpan;
 2189|      0|                stringSpan = nullptr;
 2190|      0|            }
 2191|      0|        }
 2192|     66|        if (stringSpan == nullptr) {
  ------------------
  |  Branch (2192:13): [True: 66, False: 0]
  ------------------
 2193|       |            // No span-relevant strings: Optimize for code point spans.
 2194|     66|            bmpSet=new BMPSet(list, len);
 2195|     66|            if (bmpSet == nullptr) { // Check for memory allocation error.
  ------------------
  |  Branch (2195:17): [True: 0, False: 66]
  ------------------
 2196|      0|                setToBogus();
 2197|      0|            }
 2198|     66|        }
 2199|     66|    }
 2200|     66|    return this;
 2201|     66|}
uniset.cpp:_ZN6icu_78L12pinCodePointERi:
   54|  5.90k|static inline UChar32 pinCodePoint(UChar32& c) {
   55|  5.90k|    if (c < UNICODESET_LOW) {
  ------------------
  |  |   37|  5.90k|#define UNICODESET_LOW 0x000000
  ------------------
  |  Branch (55:9): [True: 0, False: 5.90k]
  ------------------
   56|      0|        c = UNICODESET_LOW;
  ------------------
  |  |   37|      0|#define UNICODESET_LOW 0x000000
  ------------------
   57|  5.90k|    } else if (c > (UNICODESET_HIGH-1)) {
  ------------------
  |  |   34|  5.90k|#define UNICODESET_HIGH 0x0110000
  ------------------
  |  Branch (57:16): [True: 0, False: 5.90k]
  ------------------
   58|      0|        c = (UNICODESET_HIGH-1);
  ------------------
  |  |   34|      0|#define UNICODESET_HIGH 0x0110000
  ------------------
   59|      0|    }
   60|  5.90k|    return c;
   61|  5.90k|}
uniset.cpp:_ZN6icu_78L3maxEii:
 1708|      7|static inline UChar32 max(UChar32 a, UChar32 b) {
 1709|      7|    return (a > b) ? a : b;
  ------------------
  |  Branch (1709:12): [True: 0, False: 7]
  ------------------
 1710|      7|}

_ZN6icu_7811ReplaceableD2Ev:
  106|  11.9k|Replaceable::~Replaceable() {}
_ZN6icu_7813UnicodeString9removeRefEv:
  151|  2.16k|UnicodeString::removeRef() {
  152|  2.16k|  return umtx_atomic_dec(reinterpret_cast<u_atomic_int32_t*>(fUnion.fFields.fArray) - 1);
  153|  2.16k|}
_ZNK6icu_7813UnicodeString8refCountEv:
  156|  48.2M|UnicodeString::refCount() const {
  157|  48.2M|  return umtx_loadAcquire(*(reinterpret_cast<u_atomic_int32_t*>(fUnion.fFields.fArray) - 1));
  158|  48.2M|}
_ZN6icu_7813UnicodeString12releaseArrayEv:
  161|  13.2k|UnicodeString::releaseArray() {
  162|  13.2k|  if((fUnion.fFields.fLengthAndFlags & kRefCounted) && removeRef() == 0) {
  ------------------
  |  Branch (162:6): [True: 2.16k, False: 11.0k]
  |  Branch (162:56): [True: 2.16k, False: 0]
  ------------------
  163|  2.16k|    uprv_free(reinterpret_cast<int32_t*>(fUnion.fFields.fArray) - 1);
  ------------------
  |  | 1503|  2.16k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  2.16k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.16k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.16k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  164|  2.16k|  }
  165|  13.2k|}
_ZN6icu_7813UnicodeString8allocateEi:
  409|  3.73k|UnicodeString::allocate(int32_t capacity) {
  410|  3.73k|  if(capacity <= US_STACKBUF_SIZE) {
  ------------------
  |  Branch (410:6): [True: 0, False: 3.73k]
  ------------------
  411|      0|    fUnion.fFields.fLengthAndFlags = kShortString;
  412|      0|    return true;
  413|      0|  }
  414|  3.73k|  if(capacity <= kMaxCapacity) {
  ------------------
  |  Branch (414:6): [True: 3.73k, False: 0]
  ------------------
  415|  3.73k|    ++capacity;  // for the NUL
  416|       |    // Switch to size_t which is unsigned so that we can allocate up to 4GB.
  417|       |    // Reference counter + UChars.
  418|  3.73k|    size_t numBytes = sizeof(int32_t) + static_cast<size_t>(capacity) * U_SIZEOF_UCHAR;
  ------------------
  |  |  352|  3.73k|#define U_SIZEOF_UCHAR 2
  ------------------
  419|       |    // Round up to a multiple of 16.
  420|  3.73k|    numBytes = (numBytes + 15) & ~15;
  421|  3.73k|    int32_t* array = static_cast<int32_t*>(uprv_malloc(numBytes));
  ------------------
  |  | 1524|  3.73k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  3.73k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.73k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.73k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  422|  3.73k|    if(array != nullptr) {
  ------------------
  |  Branch (422:8): [True: 3.73k, False: 0]
  ------------------
  423|       |      // set initial refCount and point behind the refCount
  424|  3.73k|      *array++ = 1;
  425|  3.73k|      numBytes -= sizeof(int32_t);
  426|       |
  427|       |      // have fArray point to the first char16_t
  428|  3.73k|      fUnion.fFields.fArray = reinterpret_cast<char16_t*>(array);
  429|  3.73k|      fUnion.fFields.fCapacity = static_cast<int32_t>(numBytes / U_SIZEOF_UCHAR);
  ------------------
  |  |  352|  3.73k|#define U_SIZEOF_UCHAR 2
  ------------------
  430|  3.73k|      fUnion.fFields.fLengthAndFlags = kLongString;
  431|  3.73k|      return true;
  432|  3.73k|    }
  433|  3.73k|  }
  434|      0|  fUnion.fFields.fLengthAndFlags = kIsBogus;
  435|      0|  fUnion.fFields.fArray = nullptr;
  436|      0|  fUnion.fFields.fCapacity = 0;
  437|      0|  return false;
  438|  3.73k|}
_ZN6icu_7813UnicodeStringD2Ev:
  462|  11.9k|{
  463|       |#ifdef UNISTR_COUNT_FINAL_STRING_LENGTHS
  464|       |  // Count lengths of strings at the end of their lifetime.
  465|       |  // Useful for discussion of a desirable stack buffer size.
  466|       |  // Count the contents length, not the optional NUL terminator nor further capacity.
  467|       |  // Ignore open-buffer strings and strings which alias external storage.
  468|       |  if((fUnion.fFields.fLengthAndFlags&(kOpenGetBuffer|kReadonlyAlias|kWritableAlias)) == 0) {
  469|       |    if(hasShortLength()) {
  470|       |      umtx_atomic_inc(finalLengthCounts + getShortLength());
  471|       |    } else {
  472|       |      umtx_atomic_inc(&beyondCount);
  473|       |    }
  474|       |  }
  475|       |#endif
  476|       |
  477|  11.9k|  releaseArray();
  478|  11.9k|}
_ZNK6icu_7813UnicodeString8char32AtEi:
  871|  45.9M|{
  872|  45.9M|  int32_t len = length();
  873|  45.9M|  if (static_cast<uint32_t>(offset) < static_cast<uint32_t>(len)) {
  ------------------
  |  Branch (873:7): [True: 45.9M, False: 0]
  ------------------
  874|  45.9M|    const char16_t *array = getArrayStart();
  875|  45.9M|    UChar32 c;
  876|  45.9M|    U16_GET(array, 0, offset, len, c);
  ------------------
  |  |  201|  45.9M|#define U16_GET(s, start, i, length, c) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  45.9M|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  202|  45.9M|    (c)=(s)[i]; \
  |  |  203|  45.9M|    if(U16_IS_SURROGATE(c)) { \
  |  |  ------------------
  |  |  |  |   75|  45.9M|#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
  |  |  |  |  ------------------
  |  |  |  |  |  |  193|  45.9M|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (193:27): [True: 74.4k, False: 45.8M]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  204|  74.4k|        uint16_t __c2; \
  |  |  205|  74.4k|        if(U16_IS_SURROGATE_LEAD(c)) { \
  |  |  ------------------
  |  |  |  |   84|  74.4k|#define U16_IS_SURROGATE_LEAD(c) (((c)&0x400)==0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (84:34): [True: 74.4k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  206|  74.4k|            if((i)+1!=(length) && U16_IS_TRAIL(__c2=(s)[(i)+1])) { \
  |  |  ------------------
  |  |  |  |   67|  74.4k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:25): [True: 74.4k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (206:16): [True: 74.4k, False: 0]
  |  |  ------------------
  |  |  207|  74.4k|                (c)=U16_GET_SUPPLEMENTARY((c), __c2); \
  |  |  ------------------
  |  |  |  |  113|  74.4k|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |   99|  74.4k|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  208|  74.4k|            } \
  |  |  209|  74.4k|        } else { \
  |  |  210|      0|            if((i)>(start) && U16_IS_LEAD(__c2=(s)[(i)-1])) { \
  |  |  ------------------
  |  |  |  |   59|      0|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (59:24): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (210:16): [True: 0, False: 0]
  |  |  ------------------
  |  |  211|      0|                (c)=U16_GET_SUPPLEMENTARY(__c2, (c)); \
  |  |  ------------------
  |  |  |  |  113|      0|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |   99|      0|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  212|      0|            } \
  |  |  213|      0|        } \
  |  |  214|  74.4k|    } \
  |  |  215|  45.9M|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  45.9M|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  877|  45.9M|    return c;
  878|  45.9M|  } else {
  879|      0|    return kInvalidUChar;
  880|      0|  }
  881|  45.9M|}
_ZNK6icu_7813UnicodeString11moveIndex32Eii:
  921|  75.5k|UnicodeString::moveIndex32(int32_t index, int32_t delta) const {
  922|       |  // pin index
  923|  75.5k|  int32_t len = length();
  924|  75.5k|  if(index<0) {
  ------------------
  |  Branch (924:6): [True: 0, False: 75.5k]
  ------------------
  925|      0|    index=0;
  926|  75.5k|  } else if(index>len) {
  ------------------
  |  Branch (926:13): [True: 0, False: 75.5k]
  ------------------
  927|      0|    index=len;
  928|      0|  }
  929|       |
  930|  75.5k|  const char16_t *array = getArrayStart();
  931|  75.5k|  if(delta>0) {
  ------------------
  |  Branch (931:6): [True: 0, False: 75.5k]
  ------------------
  932|      0|    U16_FWD_N(array, index, len, delta);
  ------------------
  |  |  474|      0|#define U16_FWD_N(s, i, length, n) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      0|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  475|      0|    int32_t __N=(n); \
  |  |  476|      0|    while(__N>0 && ((i)<(length) || ((length)<0 && (s)[i]!=0))) { \
  |  |  ------------------
  |  |  |  Branch (476:11): [True: 0, False: 0]
  |  |  |  Branch (476:21): [True: 0, False: 0]
  |  |  |  Branch (476:38): [True: 0, False: 0]
  |  |  |  Branch (476:52): [True: 0, False: 0]
  |  |  ------------------
  |  |  477|      0|        U16_FWD_1(s, i, length); \
  |  |  ------------------
  |  |  |  |  433|      0|#define U16_FWD_1(s, i, length) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  |  |  ------------------
  |  |  |  |  |  |  169|      0|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  |  |  ------------------
  |  |  |  |  434|      0|    if(U16_IS_LEAD((s)[(i)++]) && (i)!=(length) && U16_IS_TRAIL((s)[i])) { \
  |  |  |  |  ------------------
  |  |  |  |  |  |   59|      0|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (59:24): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |                   if(U16_IS_LEAD((s)[(i)++]) && (i)!=(length) && U16_IS_TRAIL((s)[i])) { \
  |  |  |  |  ------------------
  |  |  |  |  |  |   67|      0|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (67:25): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (434:35): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  435|      0|        ++(i); \
  |  |  |  |  436|      0|    } \
  |  |  |  |  437|      0|} UPRV_BLOCK_MACRO_END
  |  |  |  |  ------------------
  |  |  |  |  |  |  178|      0|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  478|      0|        --__N; \
  |  |  479|      0|    } \
  |  |  480|      0|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      0|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  933|  75.5k|  } else {
  934|  75.5k|    U16_BACK_N(array, 0, index, -delta);
  ------------------
  |  |  684|  75.5k|#define U16_BACK_N(s, start, i, n) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  75.5k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  685|  75.5k|    int32_t __N=(n); \
  |  |  686|  34.8M|    while(__N>0 && (i)>(start)) { \
  |  |  ------------------
  |  |  |  Branch (686:11): [True: 34.7M, False: 75.5k]
  |  |  |  Branch (686:20): [True: 34.7M, False: 0]
  |  |  ------------------
  |  |  687|  34.7M|        U16_BACK_1(s, start, i); \
  |  |  ------------------
  |  |  |  |  643|  34.7M|#define U16_BACK_1(s, start, i) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  |  |  ------------------
  |  |  |  |  |  |  169|  34.7M|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  |  |  ------------------
  |  |  |  |  644|  34.7M|    if(U16_IS_TRAIL((s)[--(i)]) && (i)>(start) && U16_IS_LEAD((s)[(i)-1])) { \
  |  |  |  |  ------------------
  |  |  |  |  |  |   67|  69.5M|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (67:25): [True: 68.4k, False: 34.6M]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |                   if(U16_IS_TRAIL((s)[--(i)]) && (i)>(start) && U16_IS_LEAD((s)[(i)-1])) { \
  |  |  |  |  ------------------
  |  |  |  |  |  |   59|  68.4k|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (59:24): [True: 68.4k, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:36): [True: 68.4k, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  645|  68.4k|        --(i); \
  |  |  |  |  646|  68.4k|    } \
  |  |  |  |  647|  34.7M|} UPRV_BLOCK_MACRO_END
  |  |  |  |  ------------------
  |  |  |  |  |  |  178|  34.7M|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  688|  34.7M|        --__N; \
  |  |  689|  34.7M|    } \
  |  |  690|  75.5k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  75.5k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  935|  75.5k|  }
  936|       |
  937|  75.5k|  return index;
  938|  75.5k|}
_ZN6icu_7813UnicodeString7unBogusEv:
 1293|   124k|UnicodeString::unBogus() {
 1294|   124k|  if(fUnion.fFields.fLengthAndFlags & kIsBogus) {
  ------------------
  |  Branch (1294:6): [True: 0, False: 124k]
  ------------------
 1295|      0|    setToEmpty();
 1296|      0|  }
 1297|   124k|}
_ZN6icu_7813UnicodeString19getTerminatedBufferEv:
 1300|    184|UnicodeString::getTerminatedBuffer() {
 1301|    184|  if(!isWritable()) {
  ------------------
  |  Branch (1301:6): [True: 0, False: 184]
  ------------------
 1302|      0|    return nullptr;
 1303|      0|  }
 1304|    184|  char16_t *array = getArrayStart();
 1305|    184|  int32_t len = length();
 1306|    184|  if(len < getCapacity()) {
  ------------------
  |  Branch (1306:6): [True: 184, False: 0]
  ------------------
 1307|    184|    if(fUnion.fFields.fLengthAndFlags & kBufferIsReadonly) {
  ------------------
  |  Branch (1307:8): [True: 0, False: 184]
  ------------------
 1308|       |      // If len<capacity on a read-only alias, then array[len] is
 1309|       |      // either the original NUL (if constructed with (true, s, length))
 1310|       |      // or one of the original string contents characters (if later truncated),
 1311|       |      // therefore we can assume that array[len] is initialized memory.
 1312|      0|      if(array[len] == 0) {
  ------------------
  |  Branch (1312:10): [True: 0, False: 0]
  ------------------
 1313|      0|        return array;
 1314|      0|      }
 1315|    184|    } else if(((fUnion.fFields.fLengthAndFlags & kRefCounted) == 0 || refCount() == 1)) {
  ------------------
  |  Branch (1315:16): [True: 184, False: 0]
  |  Branch (1315:71): [True: 0, False: 0]
  ------------------
 1316|       |      // kRefCounted: Do not write the NUL if the buffer is shared.
 1317|       |      // That is mostly safe, except when the length of one copy was modified
 1318|       |      // without copy-on-write, e.g., via truncate(newLength) or remove().
 1319|       |      // Then the NUL would be written into the middle of another copy's string.
 1320|       |
 1321|       |      // Otherwise, the buffer is fully writable and it is anyway safe to write the NUL.
 1322|       |      // Do not test if there is a NUL already because it might be uninitialized memory.
 1323|       |      // (That would be safe, but tools like valgrind & Purify would complain.)
 1324|    184|      array[len] = 0;
 1325|    184|      return array;
 1326|    184|    }
 1327|    184|  }
 1328|      0|  if(len<INT32_MAX && cloneArrayIfNeeded(len+1)) {
  ------------------
  |  Branch (1328:6): [True: 0, False: 0]
  |  Branch (1328:23): [True: 0, False: 0]
  ------------------
 1329|      0|    array = getArrayStart();
 1330|      0|    array[len] = 0;
 1331|      0|    return array;
 1332|      0|  } else {
 1333|      0|    return nullptr;
 1334|      0|  }
 1335|      0|}
_ZN6icu_7813UnicodeString5setToEaNS_14ConstChar16PtrEi:
 1342|  1.26k|{
 1343|  1.26k|  if(fUnion.fFields.fLengthAndFlags & kOpenGetBuffer) {
  ------------------
  |  Branch (1343:6): [True: 0, False: 1.26k]
  ------------------
 1344|       |    // do not modify a string that has an "open" getBuffer(minCapacity)
 1345|      0|    return *this;
 1346|      0|  }
 1347|       |
 1348|  1.26k|  const char16_t *text = textPtr;
 1349|  1.26k|  if(text == nullptr) {
  ------------------
  |  Branch (1349:6): [True: 0, False: 1.26k]
  ------------------
 1350|       |    // treat as an empty string, do not alias
 1351|      0|    releaseArray();
 1352|      0|    setToEmpty();
 1353|      0|    return *this;
 1354|      0|  }
 1355|       |
 1356|  1.26k|  if( textLength < -1 ||
  ------------------
  |  Branch (1356:7): [True: 0, False: 1.26k]
  ------------------
 1357|  1.26k|      (textLength == -1 && !isTerminated) ||
  ------------------
  |  Branch (1357:8): [True: 0, False: 1.26k]
  |  Branch (1357:28): [True: 0, False: 0]
  ------------------
 1358|  1.26k|      (textLength >= 0 && isTerminated && text[textLength] != 0)
  ------------------
  |  Branch (1358:8): [True: 1.26k, False: 0]
  |  Branch (1358:27): [True: 1.26k, False: 0]
  |  Branch (1358:43): [True: 0, False: 1.26k]
  ------------------
 1359|  1.26k|  ) {
 1360|      0|    setToBogus();
 1361|      0|    return *this;
 1362|      0|  }
 1363|       |
 1364|  1.26k|  releaseArray();
 1365|       |
 1366|  1.26k|  if(textLength == -1) {
  ------------------
  |  Branch (1366:6): [True: 0, False: 1.26k]
  ------------------
 1367|       |    // text is terminated, or else it would have failed the above test
 1368|      0|    textLength = u_strlen(text);
  ------------------
  |  |  393|      0|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1369|      0|  }
 1370|  1.26k|  fUnion.fFields.fLengthAndFlags = kReadonlyAlias;
 1371|  1.26k|  setArray(const_cast<char16_t*>(text), textLength, isTerminated ? textLength + 1 : textLength);
  ------------------
  |  Branch (1371:53): [True: 1.26k, False: 0]
  ------------------
 1372|  1.26k|  return *this;
 1373|  1.26k|}
_ZN6icu_7813UnicodeString7replaceEiii:
 1456|   123k|               UChar32 srcChar) {
 1457|   123k|  char16_t buffer[U16_MAX_LENGTH];
 1458|   123k|  int32_t count = 0;
 1459|   123k|  UBool isError = false;
 1460|   123k|  U16_APPEND(buffer, count, U16_MAX_LENGTH, srcChar, isError);
  ------------------
  |  |  393|   123k|#define U16_APPEND(s, i, capacity, c, isError) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   123k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  394|   123k|    if((uint32_t)(c)<=0xffff) { \
  |  |  ------------------
  |  |  |  Branch (394:8): [True: 121k, False: 2.07k]
  |  |  ------------------
  |  |  395|   121k|        (s)[(i)++]=(uint16_t)(c); \
  |  |  396|   121k|    } else if((uint32_t)(c)<=0x10ffff && (i)+1<(capacity)) { \
  |  |  ------------------
  |  |  |  Branch (396:15): [True: 2.07k, False: 0]
  |  |  |  Branch (396:42): [True: 2.07k, False: 0]
  |  |  ------------------
  |  |  397|  2.07k|        (s)[(i)++]=(uint16_t)(((c)>>10)+0xd7c0); \
  |  |  398|  2.07k|        (s)[(i)++]=(uint16_t)(((c)&0x3ff)|0xdc00); \
  |  |  399|  2.07k|    } else /* c>0x10ffff or not enough space */ { \
  |  |  400|      0|        (isError)=true; \
  |  |  401|      0|    } \
  |  |  402|   123k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   123k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1461|       |  // We test isError so that the compiler does not complain that we don't.
 1462|       |  // If isError (srcChar is not a valid code point) then count==0 which means
 1463|       |  // we remove the source segment rather than replacing it with srcChar.
 1464|   123k|  return doReplace(start, _length, buffer, 0, isError ? 0 : count);
  ------------------
  |  Branch (1464:47): [True: 0, False: 123k]
  ------------------
 1465|   123k|}
_ZN6icu_7813UnicodeString6appendEi:
 1468|  47.8M|UnicodeString::append(UChar32 srcChar) {
 1469|  47.8M|  char16_t buffer[U16_MAX_LENGTH];
 1470|  47.8M|  int32_t _length = 0;
 1471|  47.8M|  UBool isError = false;
 1472|  47.8M|  U16_APPEND(buffer, _length, U16_MAX_LENGTH, srcChar, isError);
  ------------------
  |  |  393|  47.8M|#define U16_APPEND(s, i, capacity, c, isError) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  47.8M|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  394|  47.8M|    if((uint32_t)(c)<=0xffff) { \
  |  |  ------------------
  |  |  |  Branch (394:8): [True: 47.7M, False: 86.0k]
  |  |  ------------------
  |  |  395|  47.7M|        (s)[(i)++]=(uint16_t)(c); \
  |  |  396|  47.7M|    } else if((uint32_t)(c)<=0x10ffff && (i)+1<(capacity)) { \
  |  |  ------------------
  |  |  |  Branch (396:15): [True: 86.0k, False: 0]
  |  |  |  Branch (396:42): [True: 86.0k, False: 0]
  |  |  ------------------
  |  |  397|  86.0k|        (s)[(i)++]=(uint16_t)(((c)>>10)+0xd7c0); \
  |  |  398|  86.0k|        (s)[(i)++]=(uint16_t)(((c)&0x3ff)|0xdc00); \
  |  |  399|  86.0k|    } else /* c>0x10ffff or not enough space */ { \
  |  |  400|      0|        (isError)=true; \
  |  |  401|      0|    } \
  |  |  402|  47.8M|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  47.8M|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1473|       |  // We test isError so that the compiler does not complain that we don't.
 1474|       |  // If isError then _length==0 which turns the doAppend() into a no-op anyway.
 1475|  47.8M|  return isError ? *this : doAppend(buffer, 0, _length);
  ------------------
  |  Branch (1475:10): [True: 0, False: 47.8M]
  ------------------
 1476|  47.8M|}
_ZN6icu_7813UnicodeString9doReplaceEiiRKS0_ii:
 1484|   123k|{
 1485|       |  // pin the indices to legal values
 1486|   123k|  src.pinIndices(srcStart, srcLength);
 1487|       |
 1488|       |  // get the characters from src
 1489|       |  // and replace the range in ourselves with them
 1490|   123k|  return doReplace(start, length, src.getArrayStart(), srcStart, srcLength);
 1491|   123k|}
_ZN6icu_7813UnicodeString9doReplaceEiiPKDsii:
 1499|   247k|{
 1500|   247k|  if(!isWritable()) {
  ------------------
  |  Branch (1500:6): [True: 0, False: 247k]
  ------------------
 1501|      0|    return *this;
 1502|      0|  }
 1503|       |
 1504|   247k|  int32_t oldLength = this->length();
 1505|       |
 1506|       |  // optimize (read-only alias).remove(0, start) and .remove(start, end)
 1507|   247k|  if((fUnion.fFields.fLengthAndFlags&kBufferIsReadonly) && srcLength == 0) {
  ------------------
  |  Branch (1507:6): [True: 0, False: 247k]
  |  Branch (1507:60): [True: 0, False: 0]
  ------------------
 1508|      0|    if(start == 0) {
  ------------------
  |  Branch (1508:8): [True: 0, False: 0]
  ------------------
 1509|       |      // remove prefix by adjusting the array pointer
 1510|      0|      pinIndex(length);
 1511|      0|      fUnion.fFields.fArray += length;
 1512|      0|      fUnion.fFields.fCapacity -= length;
 1513|      0|      setLength(oldLength - length);
 1514|      0|      return *this;
 1515|      0|    } else {
 1516|      0|      pinIndex(start);
 1517|      0|      if(length >= (oldLength - start)) {
  ------------------
  |  Branch (1517:10): [True: 0, False: 0]
  ------------------
 1518|       |        // remove suffix by reducing the length (like truncate())
 1519|      0|        setLength(start);
 1520|      0|        fUnion.fFields.fCapacity = start;  // not NUL-terminated any more
 1521|      0|        return *this;
 1522|      0|      }
 1523|      0|    }
 1524|      0|  }
 1525|       |
 1526|   247k|  if(start == oldLength) {
  ------------------
  |  Branch (1526:6): [True: 17.1k, False: 230k]
  ------------------
 1527|  17.1k|    return doAppend(srcChars, srcStart, srcLength);
 1528|  17.1k|  }
 1529|       |
 1530|   230k|  if (srcChars == nullptr) {
  ------------------
  |  Branch (1530:7): [True: 0, False: 230k]
  ------------------
 1531|      0|    srcLength = 0;
 1532|   230k|  } else {
 1533|       |    // Perform all remaining operations relative to srcChars + srcStart.
 1534|       |    // From this point forward, do not use srcStart.
 1535|   230k|    srcChars += srcStart;
 1536|   230k|    if (srcLength < 0) {
  ------------------
  |  Branch (1536:9): [True: 0, False: 230k]
  ------------------
 1537|       |      // get the srcLength if necessary
 1538|      0|      srcLength = u_strlen(srcChars);
  ------------------
  |  |  393|      0|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1539|      0|    }
 1540|   230k|  }
 1541|       |
 1542|       |  // pin the indices to legal values
 1543|   230k|  pinIndices(start, length);
 1544|       |
 1545|       |  // Calculate the size of the string after the replace.
 1546|       |  // Avoid int32_t overflow.
 1547|   230k|  int32_t newLength = oldLength - length;
 1548|   230k|  if(srcLength > (INT32_MAX - newLength)) {
  ------------------
  |  Branch (1548:6): [True: 0, False: 230k]
  ------------------
 1549|      0|    setToBogus();
 1550|      0|    return *this;
 1551|      0|  }
 1552|   230k|  newLength += srcLength;
 1553|       |
 1554|       |  // Check for insertion into ourself
 1555|   230k|  const char16_t *oldArray = getArrayStart();
 1556|   230k|  if (isBufferWritable() &&
  ------------------
  |  Branch (1556:7): [True: 230k, False: 0]
  ------------------
 1557|   230k|      oldArray < srcChars + srcLength &&
  ------------------
  |  Branch (1557:7): [True: 152k, False: 77.5k]
  ------------------
 1558|   230k|      srcChars < oldArray + oldLength) {
  ------------------
  |  Branch (1558:7): [True: 0, False: 152k]
  ------------------
 1559|       |    // Copy into a new UnicodeString and start over
 1560|      0|    UnicodeString copy(srcChars, srcLength);
 1561|      0|    if (copy.isBogus()) {
  ------------------
  |  Branch (1561:9): [True: 0, False: 0]
  ------------------
 1562|      0|      setToBogus();
 1563|      0|      return *this;
 1564|      0|    }
 1565|      0|    return doReplace(start, length, copy.getArrayStart(), 0, srcLength);
 1566|      0|  }
 1567|       |
 1568|       |  // cloneArrayIfNeeded(doCopyArray=false) may change fArray but will not copy the current contents;
 1569|       |  // therefore we need to keep the current fArray
 1570|   230k|  char16_t oldStackBuffer[US_STACKBUF_SIZE];
 1571|   230k|  if((fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) && (newLength > US_STACKBUF_SIZE)) {
  ------------------
  |  Branch (1571:6): [True: 17.9k, False: 212k]
  |  Branch (1571:60): [True: 24, False: 17.9k]
  ------------------
 1572|       |    // copy the stack buffer contents because it will be overwritten with
 1573|       |    // fUnion.fFields values
 1574|     24|    u_memcpy(oldStackBuffer, oldArray, oldLength);
  ------------------
  |  |  334|     24|#define u_memcpy U_ICU_ENTRY_POINT_RENAME(u_memcpy)
  |  |  ------------------
  |  |  |  |  123|     24|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     24|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     24|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1575|     24|    oldArray = oldStackBuffer;
 1576|     24|  }
 1577|       |
 1578|       |  // clone our array and allocate a bigger array if needed
 1579|   230k|  int32_t *bufferToDelete = nullptr;
 1580|   230k|  if(!cloneArrayIfNeeded(newLength, getGrowCapacity(newLength),
  ------------------
  |  Branch (1580:6): [True: 0, False: 230k]
  ------------------
 1581|   230k|                         false, &bufferToDelete)
 1582|   230k|  ) {
 1583|      0|    return *this;
 1584|      0|  }
 1585|       |
 1586|       |  // now do the replace
 1587|       |
 1588|   230k|  char16_t *newArray = getArrayStart();
 1589|   230k|  if(newArray != oldArray) {
  ------------------
  |  Branch (1589:6): [True: 73, False: 230k]
  ------------------
 1590|       |    // if fArray changed, then we need to copy everything except what will change
 1591|     73|    us_arrayCopy(oldArray, 0, newArray, 0, start);
 1592|     73|    us_arrayCopy(oldArray, start + length,
 1593|     73|                 newArray, start + srcLength,
 1594|     73|                 oldLength - (start + length));
 1595|   230k|  } else if(length != srcLength) {
  ------------------
  |  Branch (1595:13): [True: 227k, False: 2.44k]
  ------------------
 1596|       |    // fArray did not change; copy only the portion that isn't changing, leaving a hole
 1597|   227k|    us_arrayCopy(oldArray, start + length,
 1598|   227k|                 newArray, start + srcLength,
 1599|   227k|                 oldLength - (start + length));
 1600|   227k|  }
 1601|       |
 1602|       |  // now fill in the hole with the new string
 1603|   230k|  us_arrayCopy(srcChars, 0, newArray, start, srcLength);
 1604|       |
 1605|   230k|  setLength(newLength);
 1606|       |
 1607|       |  // delayed delete in case srcChars == fArray when we started, and
 1608|       |  // to keep oldArray alive for the above operations
 1609|   230k|  if (bufferToDelete) {
  ------------------
  |  Branch (1609:7): [True: 49, False: 230k]
  ------------------
 1610|     49|    uprv_free(bufferToDelete);
  ------------------
  |  | 1503|     49|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|     49|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     49|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     49|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1611|     49|  }
 1612|       |
 1613|   230k|  return *this;
 1614|   230k|}
_ZN6icu_7813UnicodeString8doAppendEPKDsii:
 1643|  47.8M|UnicodeString::doAppend(const char16_t *srcChars, int32_t srcStart, int32_t srcLength) {
 1644|  47.8M|  if(!isWritable() || srcLength == 0 || srcChars == nullptr) {
  ------------------
  |  Branch (1644:6): [True: 0, False: 47.8M]
  |  Branch (1644:23): [True: 11.2k, False: 47.8M]
  |  Branch (1644:41): [True: 0, False: 47.8M]
  ------------------
 1645|  11.2k|    return *this;
 1646|  11.2k|  }
 1647|       |
 1648|       |  // Perform all remaining operations relative to srcChars + srcStart.
 1649|       |  // From this point forward, do not use srcStart.
 1650|  47.8M|  srcChars += srcStart;
 1651|       |
 1652|  47.8M|  if(srcLength < 0) {
  ------------------
  |  Branch (1652:6): [True: 0, False: 47.8M]
  ------------------
 1653|       |    // get the srcLength if necessary
 1654|      0|    if((srcLength = u_strlen(srcChars)) == 0) {
  ------------------
  |  |  393|      0|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1654:8): [True: 0, False: 0]
  ------------------
 1655|      0|      return *this;
 1656|      0|    }
 1657|      0|  }
 1658|       |
 1659|  47.8M|  int32_t oldLength = length();
 1660|  47.8M|  int32_t newLength;
 1661|       |
 1662|  47.8M|  if (srcLength <= getCapacity() - oldLength && isBufferWritable()) {
  ------------------
  |  Branch (1662:7): [True: 47.8M, False: 1.79k]
  |  Branch (1662:49): [True: 47.8M, False: 0]
  ------------------
 1663|  47.8M|    newLength = oldLength + srcLength;
 1664|       |    // Faster than a memmove
 1665|  47.8M|    if (srcLength <= 4) {
  ------------------
  |  Branch (1665:9): [True: 47.8M, False: 1.11k]
  ------------------
 1666|  47.8M|      char16_t *arr = getArrayStart();
 1667|  47.8M|      arr[oldLength] = srcChars[0];
 1668|  47.8M|      if (srcLength > 1) arr[oldLength+1] = srcChars[1];
  ------------------
  |  Branch (1668:11): [True: 86.6k, False: 47.7M]
  ------------------
 1669|  47.8M|      if (srcLength > 2) arr[oldLength+2] = srcChars[2];
  ------------------
  |  Branch (1669:11): [True: 229, False: 47.8M]
  ------------------
 1670|  47.8M|      if (srcLength > 3) arr[oldLength+3] = srcChars[3];
  ------------------
  |  Branch (1670:11): [True: 120, False: 47.8M]
  ------------------
 1671|  47.8M|      setLength(newLength);
 1672|  47.8M|      return *this;
 1673|  47.8M|    }
 1674|  47.8M|  } else {
 1675|  1.79k|    if (uprv_add32_overflow(oldLength, srcLength, &newLength)) {
  ------------------
  |  | 1394|  1.79k|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  123|  1.79k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.79k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.79k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1675:9): [True: 0, False: 1.79k]
  ------------------
 1676|      0|      setToBogus();
 1677|      0|      return *this;
 1678|      0|    }
 1679|       |
 1680|       |    // Check for append onto ourself
 1681|  1.79k|    const char16_t* oldArray = getArrayStart();
 1682|  1.79k|    if (isBufferWritable() &&
  ------------------
  |  Branch (1682:9): [True: 1.79k, False: 0]
  ------------------
 1683|  1.79k|        oldArray < srcChars + srcLength &&
  ------------------
  |  Branch (1683:9): [True: 1.48k, False: 306]
  ------------------
 1684|  1.79k|        srcChars < oldArray + oldLength) {
  ------------------
  |  Branch (1684:9): [True: 0, False: 1.48k]
  ------------------
 1685|       |      // Copy into a new UnicodeString and start over
 1686|      0|      UnicodeString copy(srcChars, srcLength);
 1687|      0|      if (copy.isBogus()) {
  ------------------
  |  Branch (1687:11): [True: 0, False: 0]
  ------------------
 1688|      0|        setToBogus();
 1689|      0|        return *this;
 1690|      0|      }
 1691|      0|      return doAppend(copy.getArrayStart(), 0, srcLength);
 1692|      0|    }
 1693|       |
 1694|       |    // optimize append() onto a large-enough, owned string
 1695|  1.79k|    if (!cloneArrayIfNeeded(newLength, getGrowCapacity(newLength))) {
  ------------------
  |  Branch (1695:9): [True: 0, False: 1.79k]
  ------------------
 1696|      0|      return *this;
 1697|      0|    }
 1698|  1.79k|  }
 1699|       |
 1700|  2.90k|  char16_t *newArray = getArrayStart();
 1701|       |  // Do not copy characters when
 1702|       |  //   char16_t *buffer=str.getAppendBuffer(...);
 1703|       |  // is followed by
 1704|       |  //   str.append(buffer, length);
 1705|       |  // or
 1706|       |  //   str.appendString(buffer, length)
 1707|       |  // or similar.
 1708|  2.90k|  if(srcChars != newArray + oldLength) {
  ------------------
  |  Branch (1708:6): [True: 2.90k, False: 0]
  ------------------
 1709|  2.90k|    us_arrayCopy(srcChars, 0, newArray, oldLength, srcLength);
 1710|  2.90k|  }
 1711|  2.90k|  setLength(newLength);
 1712|       |
 1713|  2.90k|  return *this;
 1714|  47.8M|}
_ZN6icu_7813UnicodeString9getBufferEi:
 1879|  36.9k|UnicodeString::getBuffer(int32_t minCapacity) {
 1880|  36.9k|  if(minCapacity>=-1 && cloneArrayIfNeeded(minCapacity)) {
  ------------------
  |  Branch (1880:6): [True: 36.9k, False: 0]
  |  Branch (1880:25): [True: 36.9k, False: 0]
  ------------------
 1881|  36.9k|    fUnion.fFields.fLengthAndFlags|=kOpenGetBuffer;
 1882|  36.9k|    setZeroLength();
 1883|  36.9k|    return getArrayStart();
 1884|  36.9k|  } else {
 1885|      0|    return nullptr;
 1886|      0|  }
 1887|  36.9k|}
_ZN6icu_7813UnicodeString13releaseBufferEi:
 1890|  36.9k|UnicodeString::releaseBuffer(int32_t newLength) {
 1891|  36.9k|  if(fUnion.fFields.fLengthAndFlags&kOpenGetBuffer && newLength>=-1) {
  ------------------
  |  Branch (1891:6): [True: 36.9k, False: 0]
  |  Branch (1891:55): [True: 36.9k, False: 0]
  ------------------
 1892|       |    // set the new fLength
 1893|  36.9k|    int32_t capacity=getCapacity();
 1894|  36.9k|    if(newLength==-1) {
  ------------------
  |  Branch (1894:8): [True: 0, False: 36.9k]
  ------------------
 1895|       |      // the new length is the string length, capped by fCapacity
 1896|      0|      const char16_t *array=getArrayStart(), *p=array, *limit=array+capacity;
 1897|      0|      while(p<limit && *p!=0) {
  ------------------
  |  Branch (1897:13): [True: 0, False: 0]
  |  Branch (1897:24): [True: 0, False: 0]
  ------------------
 1898|      0|        ++p;
 1899|      0|      }
 1900|      0|      newLength = static_cast<int32_t>(p - array);
 1901|  36.9k|    } else if(newLength>capacity) {
  ------------------
  |  Branch (1901:15): [True: 0, False: 36.9k]
  ------------------
 1902|      0|      newLength=capacity;
 1903|      0|    }
 1904|  36.9k|    setLength(newLength);
 1905|  36.9k|    fUnion.fFields.fLengthAndFlags&=~kOpenGetBuffer;
 1906|  36.9k|  }
 1907|  36.9k|}
_ZN6icu_7813UnicodeString18cloneArrayIfNeededEiiaPPia:
 1917|   269k|                                  UBool forceClone) {
 1918|       |  // default parameters need to be static, therefore
 1919|       |  // the defaults are -1 to have convenience defaults
 1920|   269k|  if(newCapacity == -1) {
  ------------------
  |  Branch (1920:6): [True: 0, False: 269k]
  ------------------
 1921|      0|    newCapacity = getCapacity();
 1922|      0|  }
 1923|       |
 1924|       |  // while a getBuffer(minCapacity) is "open",
 1925|       |  // prevent any modifications of the string by returning false here
 1926|       |  // if the string is bogus, then only an assignment or similar can revive it
 1927|   269k|  if(!isWritable()) {
  ------------------
  |  Branch (1927:6): [True: 0, False: 269k]
  ------------------
 1928|      0|    return false;
 1929|      0|  }
 1930|       |
 1931|       |  /*
 1932|       |   * We need to make a copy of the array if
 1933|       |   * the buffer is read-only, or
 1934|       |   * the buffer is refCounted (shared), and refCount>1, or
 1935|       |   * the buffer is too small.
 1936|       |   * Return false if memory could not be allocated.
 1937|       |   */
 1938|   269k|  if(forceClone ||
  ------------------
  |  Branch (1938:6): [True: 0, False: 269k]
  ------------------
 1939|   269k|     fUnion.fFields.fLengthAndFlags & kBufferIsReadonly ||
  ------------------
  |  Branch (1939:6): [True: 0, False: 269k]
  ------------------
 1940|   269k|     (fUnion.fFields.fLengthAndFlags & kRefCounted && refCount() > 1) ||
  ------------------
  |  Branch (1940:7): [True: 231k, False: 37.8k]
  |  Branch (1940:55): [True: 0, False: 231k]
  ------------------
 1941|   269k|     newCapacity > getCapacity()
  ------------------
  |  Branch (1941:6): [True: 3.73k, False: 265k]
  ------------------
 1942|   269k|  ) {
 1943|       |    // check growCapacity for default value and use of the stack buffer
 1944|  3.73k|    if(growCapacity < 0) {
  ------------------
  |  Branch (1944:8): [True: 1.86k, False: 1.86k]
  ------------------
 1945|  1.86k|      growCapacity = newCapacity;
 1946|  1.86k|    } else if(newCapacity <= US_STACKBUF_SIZE && growCapacity > US_STACKBUF_SIZE) {
  ------------------
  |  Branch (1946:15): [True: 0, False: 1.86k]
  |  Branch (1946:50): [True: 0, False: 0]
  ------------------
 1947|      0|      growCapacity = US_STACKBUF_SIZE;
 1948|  1.86k|    } else if(newCapacity > growCapacity) {
  ------------------
  |  Branch (1948:15): [True: 0, False: 1.86k]
  ------------------
 1949|      0|      setToBogus();
 1950|      0|      return false;  // bad inputs
 1951|      0|    }
 1952|  3.73k|    if(growCapacity > kMaxCapacity) {
  ------------------
  |  Branch (1952:8): [True: 0, False: 3.73k]
  ------------------
 1953|      0|      setToBogus();
 1954|      0|      return false;
 1955|      0|    }
 1956|       |
 1957|       |    // save old values
 1958|  3.73k|    char16_t oldStackBuffer[US_STACKBUF_SIZE];
 1959|  3.73k|    char16_t *oldArray;
 1960|  3.73k|    int32_t oldLength = length();
 1961|  3.73k|    int16_t flags = fUnion.fFields.fLengthAndFlags;
 1962|       |
 1963|  3.73k|    if(flags&kUsingStackBuffer) {
  ------------------
  |  Branch (1963:8): [True: 2.16k, False: 1.56k]
  ------------------
 1964|  2.16k|      U_ASSERT(!(flags&kRefCounted)); /* kRefCounted and kUsingStackBuffer are mutally exclusive */
  ------------------
  |  |   35|  2.16k|#   define U_ASSERT(exp) (void)0
  ------------------
 1965|  2.16k|      if(doCopyArray && growCapacity > US_STACKBUF_SIZE) {
  ------------------
  |  Branch (1965:10): [True: 2.14k, False: 24]
  |  Branch (1965:25): [True: 2.14k, False: 0]
  ------------------
 1966|       |        // copy the stack buffer contents because it will be overwritten with
 1967|       |        // fUnion.fFields values
 1968|  2.14k|        us_arrayCopy(fUnion.fStackFields.fBuffer, 0, oldStackBuffer, 0, oldLength);
 1969|  2.14k|        oldArray = oldStackBuffer;
 1970|  2.14k|      } else {
 1971|     24|        oldArray = nullptr; // no need to copy from the stack buffer to itself
 1972|     24|      }
 1973|  2.16k|    } else {
 1974|  1.56k|      oldArray = fUnion.fFields.fArray;
 1975|  1.56k|      U_ASSERT(oldArray!=nullptr); /* when stack buffer is not used, oldArray must have a non-nullptr reference */
  ------------------
  |  |   35|  1.56k|#   define U_ASSERT(exp) (void)0
  ------------------
 1976|  1.56k|    }
 1977|       |
 1978|       |    // allocate a new array
 1979|  3.73k|    if(allocate(growCapacity) ||
  ------------------
  |  Branch (1979:8): [True: 3.73k, False: 0]
  ------------------
 1980|  3.73k|       (newCapacity < growCapacity && allocate(newCapacity))
  ------------------
  |  Branch (1980:9): [True: 0, False: 0]
  |  Branch (1980:39): [True: 0, False: 0]
  ------------------
 1981|  3.73k|    ) {
 1982|  3.73k|      if(doCopyArray) {
  ------------------
  |  Branch (1982:10): [True: 3.65k, False: 73]
  ------------------
 1983|       |        // copy the contents
 1984|       |        // do not copy more than what fits - it may be smaller than before
 1985|  3.65k|        int32_t minLength = oldLength;
 1986|  3.65k|        newCapacity = getCapacity();
 1987|  3.65k|        if(newCapacity < minLength) {
  ------------------
  |  Branch (1987:12): [True: 0, False: 3.65k]
  ------------------
 1988|      0|          minLength = newCapacity;
 1989|      0|        }
 1990|  3.65k|        if(oldArray != nullptr) {
  ------------------
  |  Branch (1990:12): [True: 3.65k, False: 0]
  ------------------
 1991|  3.65k|          us_arrayCopy(oldArray, 0, getArrayStart(), 0, minLength);
 1992|  3.65k|        }
 1993|  3.65k|        setLength(minLength);
 1994|  3.65k|      } else {
 1995|     73|        setZeroLength();
 1996|     73|      }
 1997|       |
 1998|       |      // release the old array
 1999|  3.73k|      if(flags & kRefCounted) {
  ------------------
  |  Branch (1999:10): [True: 1.56k, False: 2.16k]
  ------------------
 2000|       |        // the array is refCounted; decrement and release if 0
 2001|  1.56k|        u_atomic_int32_t* pRefCount = reinterpret_cast<u_atomic_int32_t*>(oldArray) - 1;
 2002|  1.56k|        if(umtx_atomic_dec(pRefCount) == 0) {
  ------------------
  |  Branch (2002:12): [True: 1.56k, False: 0]
  ------------------
 2003|  1.56k|          if (pBufferToDelete == nullptr) {
  ------------------
  |  Branch (2003:15): [True: 1.51k, False: 49]
  ------------------
 2004|       |              // Note: cast to (void *) is needed with MSVC, where u_atomic_int32_t
 2005|       |              // is defined as volatile. (Volatile has useful non-standard behavior
 2006|       |              //   with this compiler.)
 2007|  1.51k|            uprv_free((void *)pRefCount);
  ------------------
  |  | 1503|  1.51k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  1.51k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.51k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.51k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2008|  1.51k|          } else {
 2009|       |            // the caller requested to delete it himself
 2010|     49|            *pBufferToDelete = reinterpret_cast<int32_t*>(pRefCount);
 2011|     49|          }
 2012|  1.56k|        }
 2013|  1.56k|      }
 2014|  3.73k|    } else {
 2015|       |      // not enough memory for growCapacity and not even for the smaller newCapacity
 2016|       |      // reset the old values for setToBogus() to release the array
 2017|      0|      if(!(flags&kUsingStackBuffer)) {
  ------------------
  |  Branch (2017:10): [True: 0, False: 0]
  ------------------
 2018|      0|        fUnion.fFields.fArray = oldArray;
 2019|      0|      }
 2020|      0|      fUnion.fFields.fLengthAndFlags = flags;
 2021|      0|      setToBogus();
 2022|      0|      return false;
 2023|      0|    }
 2024|  3.73k|  }
 2025|   269k|  return true;
 2026|   269k|}
unistr.cpp:_ZL12us_arrayCopyPKDsiPDsii:
   87|   466k|{
   88|   466k|  if(count>0) {
  ------------------
  |  Branch (88:6): [True: 251k, False: 214k]
  ------------------
   89|   251k|    uprv_memmove(dst+dstStart, src+srcStart, (size_t)count*sizeof(*src));
  ------------------
  |  |   51|   251k|#define uprv_memmove(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   251k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   52|   251k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   53|   251k|    _Pragma("clang diagnostic push") \
  |  |   54|   251k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   55|   251k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|   251k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   56|   251k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|   251k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   57|   251k|    _Pragma("clang diagnostic pop") \
  |  |   58|   251k|    U_STANDARD_CPP_NAMESPACE memmove(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|   251k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   59|   251k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   251k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   90|   251k|  }
   91|   466k|}
unistr.cpp:_ZN6icu_7812_GLOBAL__N_115getGrowCapacityEi:
  397|   232k|int32_t getGrowCapacity(int32_t newLength) {
  398|   232k|  int32_t growSize = (newLength >> 2) + kGrowSize;
  399|   232k|  if(growSize <= (kMaxCapacity - newLength)) {
  ------------------
  |  Branch (399:6): [True: 232k, False: 0]
  ------------------
  400|   232k|    return newLength + growSize;
  401|   232k|  } else {
  402|      0|    return kMaxCapacity;
  403|      0|  }
  404|   232k|}

_ZN6icu_787UMemorynwEm:
   61|  96.9k|void * U_EXPORT2 UMemory::operator new(size_t size) noexcept {
   62|  96.9k|    return uprv_malloc(size);
  ------------------
  |  | 1524|  96.9k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  96.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  96.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  96.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   63|  96.9k|}
_ZN6icu_787UMemorydlEPv:
   65|  93.0k|void U_EXPORT2 UMemory::operator delete(void *p) noexcept {
   66|  93.0k|    if(p!=nullptr) {
  ------------------
  |  Branch (66:8): [True: 93.0k, False: 0]
  ------------------
   67|  93.0k|        uprv_free(p);
  ------------------
  |  | 1503|  93.0k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  93.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  93.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  93.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   68|  93.0k|    }
   69|  93.0k|}
_ZN6icu_787UMemorynaEm:
   71|      2|void * U_EXPORT2 UMemory::operator new[](size_t size) noexcept {
   72|      2|    return uprv_malloc(size);
  ------------------
  |  | 1524|      2|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      2|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      2|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      2|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   73|      2|}
_ZN6icu_787UObjectD2Ev:
   94|   166k|UObject::~UObject() {}

ures_initStackObject_78:
  726|      1|U_CFUNC void ures_initStackObject(UResourceBundle* resB) {
  727|      1|  uprv_memset(resB, 0, sizeof(UResourceBundle));
  ------------------
  |  |  100|      1|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  728|      1|  ures_setIsStackObject(resB, true);
  729|      1|}
_ZN6icu_7820StackUResourceBundleC2Ev:
  733|      1|StackUResourceBundle::StackUResourceBundle() {
  734|      1|    ures_initStackObject(&bundle);
  ------------------
  |  | 1690|      1|#define ures_initStackObject U_ICU_ENTRY_POINT_RENAME(ures_initStackObject)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  735|      1|}
_ZN6icu_7820StackUResourceBundleD2Ev:
  737|      1|StackUResourceBundle::~StackUResourceBundle() {
  738|      1|    ures_close(&bundle);
  ------------------
  |  | 1652|      1|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  739|      1|}
ures_close_78:
 1147|  46.6k|{
 1148|  46.6k|    ures_closeBundle(resB, true);
 1149|  46.6k|}
ures_getString_78:
 1524|  80.7k|U_CAPI const char16_t* U_EXPORT2 ures_getString(const UResourceBundle* resB, int32_t* len, UErrorCode* status) {
 1525|  80.7k|    const char16_t *s;
 1526|  80.7k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1526:9): [True: 0, False: 80.7k]
  |  Branch (1526:28): [True: 0, False: 80.7k]
  ------------------
 1527|      0|        return nullptr;
 1528|      0|    }
 1529|  80.7k|    if(resB == nullptr) {
  ------------------
  |  Branch (1529:8): [True: 0, False: 80.7k]
  ------------------
 1530|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 1531|      0|        return nullptr;
 1532|      0|    }
 1533|  80.7k|    s = res_getString({resB}, &resB->getResData(), resB->fRes, len);
 1534|  80.7k|    if (s == nullptr) {
  ------------------
  |  Branch (1534:9): [True: 0, False: 80.7k]
  ------------------
 1535|      0|        *status = U_RESOURCE_TYPE_MISMATCH;
 1536|      0|    }
 1537|  80.7k|    return s;
 1538|  80.7k|}
ures_getBinary_78:
 1613|    183|                                               UErrorCode*               status) {
 1614|    183|  const uint8_t *p;
 1615|    183|  if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1615:7): [True: 0, False: 183]
  |  Branch (1615:26): [True: 3, False: 180]
  ------------------
 1616|      3|    return nullptr;
 1617|      3|  }
 1618|    180|  if(resB == nullptr) {
  ------------------
  |  Branch (1618:6): [True: 0, False: 180]
  ------------------
 1619|      0|    *status = U_ILLEGAL_ARGUMENT_ERROR;
 1620|      0|    return nullptr;
 1621|      0|  }
 1622|    180|  p = res_getBinary({resB}, &resB->getResData(), resB->fRes, len);
 1623|    180|  if (p == nullptr) {
  ------------------
  |  Branch (1623:7): [True: 0, False: 180]
  ------------------
 1624|      0|    *status = U_RESOURCE_TYPE_MISMATCH;
 1625|      0|  }
 1626|    180|  return p;
 1627|    180|}
ures_getKey_78:
 1685|  2.55k|U_CAPI const char * U_EXPORT2 ures_getKey(const UResourceBundle *resB) {
 1686|       |  //
 1687|       |  // TODO: Trace ures_getKey? I guess not usually.
 1688|       |  //
 1689|       |  // We usually get the key string to decide whether we want the value, or to
 1690|       |  // make a key-value pair. Tracing the value should suffice.
 1691|       |  //
 1692|       |  // However, I believe we have some data (e.g., in res_index) where the key
 1693|       |  // strings are the data. Tracing the enclosing table should suffice.
 1694|       |  //
 1695|  2.55k|  if(resB == nullptr) {
  ------------------
  |  Branch (1695:6): [True: 0, False: 2.55k]
  ------------------
 1696|      0|    return nullptr;
 1697|      0|  }
 1698|  2.55k|  return(resB->fKey);
 1699|  2.55k|}
ures_getSize_78:
 1701|      5|U_CAPI int32_t U_EXPORT2 ures_getSize(const UResourceBundle *resB) {
 1702|      5|  if(resB == nullptr) {
  ------------------
  |  Branch (1702:6): [True: 0, False: 5]
  ------------------
 1703|      0|    return 0;
 1704|      0|  }
 1705|       |  
 1706|      5|  return resB->fSize;
 1707|      5|}
ures_resetIterator_78:
 1721|    917|U_CAPI void U_EXPORT2 ures_resetIterator(UResourceBundle *resB){
 1722|    917|  if(resB == nullptr) {
  ------------------
  |  Branch (1722:6): [True: 0, False: 917]
  ------------------
 1723|      0|    return;
 1724|      0|  }
 1725|    917|  resB->fIndex = -1;
 1726|    917|}
ures_hasNext_78:
 1728|  82.0k|U_CAPI UBool U_EXPORT2 ures_hasNext(const UResourceBundle *resB) {
 1729|  82.0k|  if(resB == nullptr) {
  ------------------
  |  Branch (1729:6): [True: 0, False: 82.0k]
  ------------------
 1730|      0|    return false;
 1731|      0|  }
 1732|  82.0k|  return resB->fIndex < resB->fSize-1;
 1733|  82.0k|}
ures_getNextResource_78:
 1784|  81.0k|U_CAPI UResourceBundle* U_EXPORT2 ures_getNextResource(UResourceBundle *resB, UResourceBundle *fillIn, UErrorCode *status) {
 1785|  81.0k|    const char *key = nullptr;
 1786|  81.0k|    Resource r = RES_BOGUS;
  ------------------
  |  |   65|  81.0k|#define RES_BOGUS 0xffffffff
  ------------------
 1787|       |
 1788|  81.0k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1788:9): [True: 0, False: 81.0k]
  |  Branch (1788:28): [True: 0, False: 81.0k]
  ------------------
 1789|       |            /*return nullptr;*/
 1790|      0|            return fillIn;
 1791|      0|    }
 1792|  81.0k|    if(resB == nullptr) {
  ------------------
  |  Branch (1792:8): [True: 0, False: 81.0k]
  ------------------
 1793|      0|            *status = U_ILLEGAL_ARGUMENT_ERROR;
 1794|       |            /*return nullptr;*/
 1795|      0|            return fillIn;
 1796|      0|    }
 1797|       |
 1798|  81.0k|    if(resB->fIndex == resB->fSize-1) {
  ------------------
  |  Branch (1798:8): [True: 0, False: 81.0k]
  ------------------
 1799|      0|      *status = U_INDEX_OUTOFBOUNDS_ERROR;
 1800|       |      /*return nullptr;*/
 1801|  81.0k|    } else {
 1802|  81.0k|        resB->fIndex++;
 1803|  81.0k|        switch(RES_GET_TYPE(resB->fRes)) {
  ------------------
  |  |   68|  81.0k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 1804|      0|        case URES_INT:
  ------------------
  |  Branch (1804:9): [True: 0, False: 81.0k]
  ------------------
 1805|      0|        case URES_BINARY:
  ------------------
  |  Branch (1805:9): [True: 0, False: 81.0k]
  ------------------
 1806|      0|        case URES_STRING:
  ------------------
  |  Branch (1806:9): [True: 0, False: 81.0k]
  ------------------
 1807|      0|        case URES_STRING_V2:
  ------------------
  |  Branch (1807:9): [True: 0, False: 81.0k]
  ------------------
 1808|      0|        case URES_INT_VECTOR:
  ------------------
  |  Branch (1808:9): [True: 0, False: 81.0k]
  ------------------
 1809|      0|            return ures_copyResb(fillIn, resB, status);
  ------------------
  |  | 1653|      0|#define ures_copyResb U_ICU_ENTRY_POINT_RENAME(ures_copyResb)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1810|  1.29k|        case URES_TABLE:
  ------------------
  |  Branch (1810:9): [True: 1.29k, False: 79.7k]
  ------------------
 1811|  81.0k|        case URES_TABLE16:
  ------------------
  |  Branch (1811:9): [True: 79.7k, False: 1.29k]
  ------------------
 1812|  81.0k|        case URES_TABLE32:
  ------------------
  |  Branch (1812:9): [True: 0, False: 81.0k]
  ------------------
 1813|  81.0k|            r = res_getTableItemByIndex(&resB->getResData(), resB->fRes, resB->fIndex, &key);
  ------------------
  |  |  206|  81.0k|#define res_getTableItemByIndex U_ICU_ENTRY_POINT_RENAME(res_getTableItemByIndex)
  |  |  ------------------
  |  |  |  |  123|  81.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  81.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  81.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1814|  81.0k|            if(r == RES_BOGUS && resB->fHasFallback) {
  ------------------
  |  |   65|   162k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1814:16): [True: 0, False: 81.0k]
  |  Branch (1814:34): [True: 0, False: 0]
  ------------------
 1815|       |                /* TODO: do the fallback */
 1816|      0|            }
 1817|  81.0k|            return init_resb_result(resB->fData, r, key, resB->fIndex, resB, fillIn, status);
 1818|      0|        case URES_ARRAY:
  ------------------
  |  Branch (1818:9): [True: 0, False: 81.0k]
  ------------------
 1819|      0|        case URES_ARRAY16:
  ------------------
  |  Branch (1819:9): [True: 0, False: 81.0k]
  ------------------
 1820|      0|            r = res_getArrayItem(&resB->getResData(), resB->fRes, resB->fIndex);
  ------------------
  |  |  200|      0|#define res_getArrayItem U_ICU_ENTRY_POINT_RENAME(res_getArrayItem)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1821|      0|            if(r == RES_BOGUS && resB->fHasFallback) {
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1821:16): [True: 0, False: 0]
  |  Branch (1821:34): [True: 0, False: 0]
  ------------------
 1822|       |                /* TODO: do the fallback */
 1823|      0|            }
 1824|      0|            return init_resb_result(resB->fData, r, key, resB->fIndex, resB, fillIn, status);
 1825|      0|        default:
  ------------------
  |  Branch (1825:9): [True: 0, False: 81.0k]
  ------------------
 1826|       |            /*return nullptr;*/
 1827|      0|            return fillIn;
 1828|  81.0k|        }
 1829|  81.0k|    }
 1830|       |    /*return nullptr;*/
 1831|      0|    return fillIn;
 1832|  81.0k|}
ures_getByKeyWithFallback_78:
 2164|  1.61k|                          UErrorCode *status) {
 2165|  1.61k|    Resource res = RES_BOGUS, rootRes = RES_BOGUS;
  ------------------
  |  |   65|  1.61k|#define RES_BOGUS 0xffffffff
  ------------------
                  Resource res = RES_BOGUS, rootRes = RES_BOGUS;
  ------------------
  |  |   65|  1.61k|#define RES_BOGUS 0xffffffff
  ------------------
 2166|  1.61k|    UResourceBundle *helper = nullptr;
 2167|       |
 2168|  1.61k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (2168:9): [True: 0, False: 1.61k]
  |  Branch (2168:28): [True: 0, False: 1.61k]
  ------------------
 2169|      0|        return fillIn;
 2170|      0|    }
 2171|  1.61k|    if(resB == nullptr) {
  ------------------
  |  Branch (2171:8): [True: 0, False: 1.61k]
  ------------------
 2172|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 2173|      0|        return fillIn;
 2174|      0|    }
 2175|       |
 2176|  1.61k|    int32_t type = RES_GET_TYPE(resB->fRes);
  ------------------
  |  |   68|  1.61k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2177|  1.61k|    if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|  1.61k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 1.45k, False: 154]
  |  |  |  Branch (84:61): [True: 154, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2178|  1.61k|        const char* origResPath = resB->fResPath;
 2179|  1.61k|        int32_t origResPathLen = resB->fResPathLen;
 2180|  1.61k|        res = getTableItemByKeyPath(&resB->getResData(), resB->fRes, inKey);
 2181|  1.61k|        const char* key = inKey;
 2182|  1.61k|        bool didRootOnce = false;
 2183|  1.61k|        if(res == RES_BOGUS) {
  ------------------
  |  |   65|  1.61k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2183:12): [True: 983, False: 627]
  ------------------
 2184|    983|            UResourceDataEntry *dataEntry = resB->fData;
 2185|    983|            CharString path;
 2186|    983|            char *myPath = nullptr;
 2187|    983|            const char* resPath = resB->fResPath;
 2188|    983|            int32_t len = resB->fResPathLen;
 2189|  2.25k|            while(res == RES_BOGUS && (dataEntry->fParent != nullptr || !didRootOnce)) { /* Otherwise, we'll look in parents */
  ------------------
  |  |   65|  4.51k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2189:19): [True: 1.59k, False: 661]
  |  Branch (2189:40): [True: 952, False: 645]
  |  Branch (2189:73): [True: 323, False: 322]
  ------------------
 2190|  1.27k|                if (dataEntry->fParent != nullptr) {
  ------------------
  |  Branch (2190:21): [True: 952, False: 323]
  ------------------
 2191|    952|                    dataEntry = dataEntry->fParent;
 2192|    952|                } else {
 2193|       |                    // We can't just stop when we get to a bundle whose fParent is nullptr.  That'll work most of the time,
 2194|       |                    // but if the bundle that the caller passed to us was "root" (which happens in getAllItemsWithFallback(),
 2195|       |                    // this function will drop right out without doing anything if "root" doesn't contain the exact key path
 2196|       |                    // specified.  In that case, we need one extra time through this loop to make sure we follow any
 2197|       |                    // applicable aliases at the root level.
 2198|    323|                    didRootOnce = true;
 2199|    323|                }
 2200|  1.27k|                rootRes = dataEntry->fData.rootRes;
 2201|       |
 2202|  1.27k|                if(dataEntry->fBogus == U_ZERO_ERROR) {
  ------------------
  |  Branch (2202:20): [True: 1.27k, False: 0]
  ------------------
 2203|  1.27k|                    createPath(origResPath, origResPathLen, resPath, len, inKey, path, status);
 2204|  1.27k|                    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (2204:25): [True: 0, False: 1.27k]
  ------------------
 2205|      0|                        ures_close(helper);
  ------------------
  |  | 1652|      0|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2206|      0|                        return fillIn;
 2207|      0|                    }
 2208|  1.27k|                    myPath = path.data();
 2209|  1.27k|                    key = inKey;
 2210|  1.28k|                    do {
 2211|  1.28k|                        res = res_findResource(&(dataEntry->fData), rootRes, &myPath, &key);
  ------------------
  |  |  198|  1.28k|#define res_findResource U_ICU_ENTRY_POINT_RENAME(res_findResource)
  |  |  ------------------
  |  |  |  |  123|  1.28k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.28k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.28k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2212|  1.28k|                        if (RES_GET_TYPE(res) == URES_ALIAS && *myPath) {
  ------------------
  |  |   68|  1.28k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (2212:29): [True: 0, False: 1.28k]
  |  Branch (2212:64): [True: 0, False: 0]
  ------------------
 2213|       |                            /* We hit an alias, but we didn't finish following the path. */
 2214|      0|                            helper = init_resb_result(dataEntry, res, nullptr, -1, resB, helper, status);
 2215|       |                            /*helper = init_resb_result(dataEntry, res, inKey, -1, resB, helper, status);*/
 2216|      0|                            if(helper) {
  ------------------
  |  Branch (2216:32): [True: 0, False: 0]
  ------------------
 2217|      0|                              dataEntry = helper->fData;
 2218|      0|                              rootRes = helper->fRes;
 2219|      0|                              resPath = helper->fResPath;
 2220|      0|                              len = helper->fResPathLen;
 2221|       |
 2222|      0|                            } else {
 2223|      0|                              break;
 2224|      0|                            }
 2225|  1.28k|                        } else if (res == RES_BOGUS) {
  ------------------
  |  |   65|  1.28k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2225:36): [True: 614, False: 669]
  ------------------
 2226|    614|                            break;
 2227|    614|                        }
 2228|  1.28k|                    } while(*myPath); /* Continue until the whole path is consumed */
  ------------------
  |  Branch (2228:29): [True: 8, False: 661]
  ------------------
 2229|  1.27k|                }
 2230|  1.27k|            }
 2231|       |            /*dataEntry = getFallbackData(resB, &key, &res, status);*/
 2232|    983|            if(res != RES_BOGUS) {
  ------------------
  |  |   65|    983|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2232:16): [True: 661, False: 322]
  ------------------
 2233|       |              /* check if resB->fResPath gives the right name here */
 2234|    661|                if(uprv_strcmp(dataEntry->fName, uloc_getDefault())==0 || uprv_strcmp(dataEntry->fName, kRootLocaleName)==0) {
  ------------------
  |  |   38|    661|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    661|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                              if(uprv_strcmp(dataEntry->fName, uloc_getDefault())==0 || uprv_strcmp(dataEntry->fName, kRootLocaleName)==0) {
  ------------------
  |  |   38|    661|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    661|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (2234:20): [True: 0, False: 661]
  |  Branch (2234:75): [True: 642, False: 19]
  ------------------
 2235|    642|                    *status = U_USING_DEFAULT_WARNING;
 2236|    642|                } else {
 2237|     19|                    *status = U_USING_FALLBACK_WARNING;
 2238|     19|                }
 2239|       |
 2240|    661|                fillIn = init_resb_result(dataEntry, res, key, -1, resB, fillIn, status);
 2241|    661|                if (resPath != nullptr) {
  ------------------
  |  Branch (2241:21): [True: 655, False: 6]
  ------------------
 2242|    655|                    createPath(origResPath, origResPathLen, resPath, len, inKey, path, status);
 2243|    655|                } else {
 2244|      6|                    const char* separator = nullptr;
 2245|      6|                    if (fillIn->fResPath != nullptr) {
  ------------------
  |  Branch (2245:25): [True: 6, False: 0]
  ------------------
 2246|      6|                        separator = uprv_strchr(fillIn->fResPath, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|      6|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|      6|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2247|      6|                    }
 2248|      6|                    if (separator != nullptr && separator[1] != '\0') {
  ------------------
  |  Branch (2248:25): [True: 6, False: 0]
  |  Branch (2248:49): [True: 0, False: 6]
  ------------------
 2249|      0|                        createPath(origResPath, origResPathLen, fillIn->fResPath,
 2250|      0|                                   static_cast<int32_t>(uprv_strlen(fillIn->fResPath)), inKey, path, status);
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2251|      6|                    } else {
 2252|      6|                        createPath(origResPath, origResPathLen, "", 0, inKey, path, status);
 2253|      6|                    }
 2254|      6|                }
 2255|    661|                ures_freeResPath(fillIn);
 2256|    661|                ures_appendResPath(fillIn, path.data(), path.length(), status);
 2257|    661|                if(fillIn->fResPath[fillIn->fResPathLen-1] != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|    661|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2257:20): [True: 657, False: 4]
  ------------------
 2258|    657|                    ures_appendResPath(fillIn, RES_PATH_SEPARATOR_S, 1, status);
  ------------------
  |  |   61|    657|#define RES_PATH_SEPARATOR_S   "/"
  ------------------
 2259|    657|                }
 2260|    661|            } else {
 2261|    322|                *status = U_MISSING_RESOURCE_ERROR;
 2262|    322|            }
 2263|    983|        } else {
 2264|    627|            fillIn = init_resb_result(resB->fData, res, key, -1, resB, fillIn, status);
 2265|    627|        }
 2266|  1.61k|    } 
 2267|      0|    else {
 2268|      0|        *status = U_RESOURCE_TYPE_MISMATCH;
 2269|      0|    }
 2270|  1.61k|    ures_close(helper);
  ------------------
  |  | 1652|  1.61k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  1.61k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.61k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.61k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2271|  1.61k|    return fillIn;
 2272|  1.61k|}
ures_getAllItemsWithFallback_78:
 2471|      1|                             icu::ResourceSink &sink, UErrorCode &errorCode) {
 2472|      1|    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (2472:9): [True: 0, False: 1]
  ------------------
 2473|      1|    if (path == nullptr) {
  ------------------
  |  Branch (2473:9): [True: 0, False: 1]
  ------------------
 2474|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
 2475|      0|        return;
 2476|      0|    }
 2477|      1|    StackUResourceBundle stackBundle;
 2478|      1|    const UResourceBundle *rb;
 2479|      1|    if (*path == 0) {
  ------------------
  |  Branch (2479:9): [True: 1, False: 0]
  ------------------
 2480|       |        // empty path
 2481|      1|        rb = bundle;
 2482|      1|    } else {
 2483|      0|        rb = ures_getByKeyWithFallback(bundle, path, stackBundle.getAlias(), &errorCode);
  ------------------
  |  | 1662|      0|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2484|      0|        if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (2484:13): [True: 0, False: 0]
  ------------------
 2485|      0|            return;
 2486|      0|        }
 2487|      0|    }
 2488|       |    // Get all table items with fallback.
 2489|      1|    ResourceDataValue value;
 2490|      1|    getAllItemsWithFallback(rb, value, sink, errorCode);
 2491|      1|}
ures_getByKey_78:
 2493|  1.30k|U_CAPI UResourceBundle* U_EXPORT2 ures_getByKey(const UResourceBundle *resB, const char* inKey, UResourceBundle *fillIn, UErrorCode *status) {
 2494|  1.30k|    Resource res = RES_BOGUS;
  ------------------
  |  |   65|  1.30k|#define RES_BOGUS 0xffffffff
  ------------------
 2495|  1.30k|    UResourceDataEntry *dataEntry = nullptr;
 2496|  1.30k|    const char *key = inKey;
 2497|       |
 2498|  1.30k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (2498:9): [True: 0, False: 1.30k]
  |  Branch (2498:28): [True: 0, False: 1.30k]
  ------------------
 2499|      0|        return fillIn;
 2500|      0|    }
 2501|  1.30k|    if(resB == nullptr) {
  ------------------
  |  Branch (2501:8): [True: 0, False: 1.30k]
  ------------------
 2502|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 2503|      0|        return fillIn;
 2504|      0|    }
 2505|       |
 2506|  1.30k|    int32_t type = RES_GET_TYPE(resB->fRes);
  ------------------
  |  |   68|  1.30k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2507|  1.30k|    if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|  1.30k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 1.23k, False: 67]
  |  |  |  Branch (84:61): [True: 65, False: 2]
  |  |  |  Branch (84:94): [True: 0, False: 2]
  |  |  ------------------
  ------------------
 2508|  1.30k|        int32_t t;
 2509|  1.30k|        res = res_getTableItemByKey(&resB->getResData(), resB->fRes, &t, &key);
  ------------------
  |  |  207|  1.30k|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|  1.30k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.30k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.30k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2510|  1.30k|        if(res == RES_BOGUS) {
  ------------------
  |  |   65|  1.30k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2510:12): [True: 273, False: 1.02k]
  ------------------
 2511|    273|            key = inKey;
 2512|    273|            if(resB->fHasFallback) {
  ------------------
  |  Branch (2512:16): [True: 202, False: 71]
  ------------------
 2513|    202|                dataEntry = getFallbackData(resB, &key, &res, status);
 2514|    202|                if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (2514:20): [True: 202, False: 0]
  ------------------
 2515|       |                    /* check if resB->fResPath gives the right name here */
 2516|    202|                    return init_resb_result(dataEntry, res, key, -1, resB, fillIn, status);
 2517|    202|                } else {
 2518|      0|                    *status = U_MISSING_RESOURCE_ERROR;
 2519|      0|                }
 2520|    202|            } else {
 2521|     71|                *status = U_MISSING_RESOURCE_ERROR;
 2522|     71|            }
 2523|  1.02k|        } else {
 2524|  1.02k|            return init_resb_result(resB->fData, res, key, -1, resB, fillIn, status);
 2525|  1.02k|        }
 2526|  1.30k|    } 
 2527|       |#if 0
 2528|       |    /* this is a kind of TODO item. If we have an array with an index table, we could do this. */
 2529|       |    /* not currently */
 2530|       |    else if(RES_GET_TYPE(resB->fRes) == URES_ARRAY && resB->fHasFallback == true) {
 2531|       |        /* here should go a first attempt to locate the key using index table */
 2532|       |        dataEntry = getFallbackData(resB, &key, &res, status);
 2533|       |        if(U_SUCCESS(*status)) {
 2534|       |            return init_resb_result(dataEntry, res, key, resB, fillIn, status);
 2535|       |        } else {
 2536|       |            *status = U_MISSING_RESOURCE_ERROR;
 2537|       |        }
 2538|       |    }
 2539|       |#endif    
 2540|      2|    else {
 2541|      2|        *status = U_RESOURCE_TYPE_MISMATCH;
 2542|      2|    }
 2543|     73|    return fillIn;
 2544|  1.30k|}
ures_getStringByKey_78:
 2546|  1.47k|U_CAPI const char16_t* U_EXPORT2 ures_getStringByKey(const UResourceBundle *resB, const char* inKey, int32_t* len, UErrorCode *status) {
 2547|  1.47k|    Resource res = RES_BOGUS;
  ------------------
  |  |   65|  1.47k|#define RES_BOGUS 0xffffffff
  ------------------
 2548|  1.47k|    UResourceDataEntry *dataEntry = nullptr;
 2549|  1.47k|    const char* key = inKey;
 2550|       |
 2551|  1.47k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (2551:9): [True: 0, False: 1.47k]
  |  Branch (2551:28): [True: 0, False: 1.47k]
  ------------------
 2552|      0|        return nullptr;
 2553|      0|    }
 2554|  1.47k|    if(resB == nullptr) {
  ------------------
  |  Branch (2554:8): [True: 0, False: 1.47k]
  ------------------
 2555|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 2556|      0|        return nullptr;
 2557|      0|    }
 2558|       |
 2559|  1.47k|    int32_t type = RES_GET_TYPE(resB->fRes);
  ------------------
  |  |   68|  1.47k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2560|  1.47k|    if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|  1.47k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 180, False: 1.29k]
  |  |  |  Branch (84:61): [True: 1.29k, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2561|  1.47k|        int32_t t=0;
 2562|       |
 2563|  1.47k|        res = res_getTableItemByKey(&resB->getResData(), resB->fRes, &t, &key);
  ------------------
  |  |  207|  1.47k|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|  1.47k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.47k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.47k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2564|       |
 2565|  1.47k|        if(res == RES_BOGUS) {
  ------------------
  |  |   65|  1.47k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2565:12): [True: 0, False: 1.47k]
  ------------------
 2566|      0|            key = inKey;
 2567|      0|            if(resB->fHasFallback) {
  ------------------
  |  Branch (2567:16): [True: 0, False: 0]
  ------------------
 2568|      0|                dataEntry = getFallbackData(resB, &key, &res, status);
 2569|      0|                if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (2569:20): [True: 0, False: 0]
  ------------------
 2570|      0|                    switch (RES_GET_TYPE(res)) {
  ------------------
  |  |   68|      0|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2571|      0|                    case URES_STRING:
  ------------------
  |  Branch (2571:21): [True: 0, False: 0]
  ------------------
 2572|      0|                    case URES_STRING_V2:
  ------------------
  |  Branch (2572:21): [True: 0, False: 0]
  ------------------
 2573|      0|                        return res_getString({resB, key}, &dataEntry->fData, res, len);
 2574|      0|                    case URES_ALIAS:
  ------------------
  |  Branch (2574:21): [True: 0, False: 0]
  ------------------
 2575|      0|                      {
 2576|      0|                        const char16_t* result = nullptr;
 2577|      0|                        UResourceBundle *tempRes = ures_getByKey(resB, inKey, nullptr, status);
  ------------------
  |  | 1661|      0|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2578|      0|                        result = ures_getString(tempRes, len, status);
  ------------------
  |  | 1675|      0|#define ures_getString U_ICU_ENTRY_POINT_RENAME(ures_getString)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2579|      0|                        ures_close(tempRes);
  ------------------
  |  | 1652|      0|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2580|      0|                        return result;
 2581|      0|                      }
 2582|      0|                    default:
  ------------------
  |  Branch (2582:21): [True: 0, False: 0]
  ------------------
 2583|      0|                        *status = U_RESOURCE_TYPE_MISMATCH;
 2584|      0|                    }
 2585|      0|                } else {
 2586|      0|                    *status = U_MISSING_RESOURCE_ERROR;
 2587|      0|                }
 2588|      0|            } else {
 2589|      0|                *status = U_MISSING_RESOURCE_ERROR;
 2590|      0|            }
 2591|  1.47k|        } else {
 2592|  1.47k|            switch (RES_GET_TYPE(res)) {
  ------------------
  |  |   68|  1.47k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2593|      1|            case URES_STRING:
  ------------------
  |  Branch (2593:13): [True: 1, False: 1.46k]
  ------------------
 2594|  1.47k|            case URES_STRING_V2:
  ------------------
  |  Branch (2594:13): [True: 1.46k, False: 1]
  ------------------
 2595|  1.47k|                return res_getString({resB, key}, &resB->getResData(), res, len);
 2596|      0|            case URES_ALIAS:
  ------------------
  |  Branch (2596:13): [True: 0, False: 1.47k]
  ------------------
 2597|      0|              {
 2598|      0|                const char16_t* result = nullptr;
 2599|      0|                UResourceBundle *tempRes = ures_getByKey(resB, inKey, nullptr, status);
  ------------------
  |  | 1661|      0|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2600|      0|                result = ures_getString(tempRes, len, status);
  ------------------
  |  | 1675|      0|#define ures_getString U_ICU_ENTRY_POINT_RENAME(ures_getString)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2601|      0|                ures_close(tempRes);
  ------------------
  |  | 1652|      0|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2602|      0|                return result;
 2603|      1|              }
 2604|      0|            default:
  ------------------
  |  Branch (2604:13): [True: 0, False: 1.47k]
  ------------------
 2605|      0|                *status = U_RESOURCE_TYPE_MISMATCH;
 2606|  1.47k|            }
 2607|  1.47k|        }
 2608|  1.47k|    } 
 2609|       |#if 0 
 2610|       |    /* this is a kind of TODO item. If we have an array with an index table, we could do this. */
 2611|       |    /* not currently */   
 2612|       |    else if(RES_GET_TYPE(resB->fRes) == URES_ARRAY && resB->fHasFallback == true) {
 2613|       |        /* here should go a first attempt to locate the key using index table */
 2614|       |        dataEntry = getFallbackData(resB, &key, &res, status);
 2615|       |        if(U_SUCCESS(*status)) {
 2616|       |            // TODO: Tracing
 2617|       |            return res_getString(rd, res, len);
 2618|       |        } else {
 2619|       |            *status = U_MISSING_RESOURCE_ERROR;
 2620|       |        }
 2621|       |    } 
 2622|       |#endif    
 2623|      0|    else {
 2624|      0|        *status = U_RESOURCE_TYPE_MISMATCH;
 2625|      0|    }
 2626|      0|    return nullptr;
 2627|  1.47k|}
ures_getLocaleByType_78:
 2671|  6.14k|                     UErrorCode* status) {
 2672|  6.14k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (2672:9): [True: 0, False: 6.14k]
  |  Branch (2672:28): [True: 3, False: 6.14k]
  ------------------
 2673|      3|        return nullptr;
 2674|      3|    }
 2675|  6.14k|    if (!resourceBundle) {
  ------------------
  |  Branch (2675:9): [True: 0, False: 6.14k]
  ------------------
 2676|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 2677|      0|        return nullptr;
 2678|  6.14k|    } else {
 2679|  6.14k|        switch(type) {
 2680|  6.14k|        case ULOC_ACTUAL_LOCALE:
  ------------------
  |  Branch (2680:9): [True: 6.14k, False: 0]
  ------------------
 2681|  6.14k|            return resourceBundle->fData->fName;
 2682|      0|        case ULOC_VALID_LOCALE:
  ------------------
  |  Branch (2682:9): [True: 0, False: 6.14k]
  ------------------
 2683|      0|            return resourceBundle->fValidLocaleDataEntry->fName;
 2684|      0|        case ULOC_REQUESTED_LOCALE:
  ------------------
  |  Branch (2684:9): [True: 0, False: 6.14k]
  ------------------
 2685|      0|        default:
  ------------------
  |  Branch (2685:9): [True: 0, False: 6.14k]
  ------------------
 2686|      0|            *status = U_ILLEGAL_ARGUMENT_ERROR;
 2687|      0|            return nullptr;
 2688|  6.14k|        }
 2689|  6.14k|    }
 2690|  6.14k|}
ures_open_78:
 2769|     13|ures_open(const char* path, const char* localeID, UErrorCode* status) {
 2770|     13|    return ures_openWithType(nullptr, path, localeID, URES_OPEN_LOCALE_DEFAULT_ROOT, status);
 2771|     13|}
ures_openNoDefault_78:
 2774|  5.87k|ures_openNoDefault(const char* path, const char* localeID, UErrorCode* status) {
 2775|  5.87k|    return ures_openWithType(nullptr, path, localeID, URES_OPEN_LOCALE_ROOT, status);
 2776|  5.87k|}
ures_openDirect_78:
 2783|      6|ures_openDirect(const char* path, const char* localeID, UErrorCode* status) {
 2784|      6|    return ures_openWithType(nullptr, path, localeID, URES_OPEN_DIRECT, status);
 2785|      6|}
uresbund.cpp:_ZL21ures_setIsStackObjectP15UResourceBundlea:
  711|  10.6k|static void ures_setIsStackObject( UResourceBundle* resB, UBool state) {
  712|  10.6k|    if(state) {
  ------------------
  |  Branch (712:8): [True: 1, False: 10.6k]
  ------------------
  713|      1|        resB->fMagic1 = 0;
  714|      1|        resB->fMagic2 = 0;
  715|  10.6k|    } else {
  716|  10.6k|        resB->fMagic1 = MAGIC1;
  ------------------
  |  |   30|  10.6k|#define MAGIC1 19700503
  ------------------
  717|  10.6k|        resB->fMagic2 = MAGIC2;
  ------------------
  |  |   31|  10.6k|#define MAGIC2 19641227
  ------------------
  718|  10.6k|    }
  719|  10.6k|}
uresbund.cpp:_ZL16ures_closeBundleP15UResourceBundlea:
 1123|  46.6k|{
 1124|  46.6k|    if(resB != nullptr) {
  ------------------
  |  Branch (1124:8): [True: 10.5k, False: 36.1k]
  ------------------
 1125|  10.5k|        if(resB->fData != nullptr) {
  ------------------
  |  Branch (1125:12): [True: 10.5k, False: 1]
  ------------------
 1126|  10.5k|            entryClose(resB->fData);
 1127|  10.5k|        }
 1128|  10.5k|        if(resB->fVersion != nullptr) {
  ------------------
  |  Branch (1128:12): [True: 0, False: 10.5k]
  ------------------
 1129|      0|            uprv_free(resB->fVersion);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1130|      0|        }
 1131|  10.5k|        ures_freeResPath(resB);
 1132|       |
 1133|  10.5k|        if(ures_isStackObject(resB) == false && freeBundleObj) {
  ------------------
  |  Branch (1133:12): [True: 10.5k, False: 1]
  |  Branch (1133:49): [True: 10.5k, False: 0]
  ------------------
 1134|  10.5k|            uprv_free(resB);
  ------------------
  |  | 1503|  10.5k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  10.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  10.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  10.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1135|  10.5k|        }
 1136|       |#if 0 /*U_DEBUG*/
 1137|       |        else {
 1138|       |            /* poison the data */
 1139|       |            uprv_memset(resB, -1, sizeof(UResourceBundle));
 1140|       |        }
 1141|       |#endif
 1142|  10.5k|    }
 1143|  46.6k|}
uresbund.cpp:_ZL10entryCloseP18UResourceDataEntry:
 1061|  89.3k|static void entryClose(UResourceDataEntry *resB) {
 1062|  89.3k|  Mutex lock(&resbMutex);
 1063|  89.3k|  entryCloseInt(resB);
 1064|  89.3k|}
uresbund.cpp:_ZL13entryCloseIntP18UResourceDataEntry:
 1028|  89.3k|static void entryCloseInt(UResourceDataEntry *resB) {
 1029|  89.3k|    UResourceDataEntry *p = resB;
 1030|       |
 1031|   182k|    while(resB != nullptr) {
  ------------------
  |  Branch (1031:11): [True: 93.0k, False: 89.3k]
  ------------------
 1032|  93.0k|        p = resB->fParent;
 1033|  93.0k|        resB->fCountExisting--;
 1034|       |
 1035|       |        /* Entries are left in the cache. TODO: add ures_flushCache() to force a flush
 1036|       |         of the cache. */
 1037|       |/*
 1038|       |        if(resB->fCountExisting <= 0) {
 1039|       |            uhash_remove(cache, resB);
 1040|       |            if(resB->fBogus == U_ZERO_ERROR) {
 1041|       |                res_unload(&(resB->fData));
 1042|       |            }
 1043|       |            if(resB->fName != nullptr) {
 1044|       |                uprv_free(resB->fName);
 1045|       |            }
 1046|       |            if(resB->fPath != nullptr) {
 1047|       |                uprv_free(resB->fPath);
 1048|       |            }
 1049|       |            uprv_free(resB);
 1050|       |        }
 1051|       |*/
 1052|       |
 1053|  93.0k|        resB = p;
 1054|  93.0k|    }
 1055|  89.3k|}
uresbund.cpp:_ZL18ures_isStackObjectPK15UResourceBundle:
  721|  10.5k|static UBool ures_isStackObject(const UResourceBundle* resB) {
  722|  10.5k|  return((resB->fMagic1 == MAGIC1 && resB->fMagic2 == MAGIC2)?false:true);
  ------------------
  |  |   30|  21.0k|#define MAGIC1 19700503
  ------------------
                return((resB->fMagic1 == MAGIC1 && resB->fMagic2 == MAGIC2)?false:true);
  ------------------
  |  |   31|  10.5k|#define MAGIC2 19641227
  ------------------
  |  Branch (722:11): [True: 10.5k, False: 1]
  |  Branch (722:38): [True: 10.5k, False: 0]
  ------------------
  723|  10.5k|}
uresbund.cpp:_ZL18ures_appendResPathP15UResourceBundlePKciP10UErrorCode:
 1083|   251k|static void ures_appendResPath(UResourceBundle *resB, const char* toAdd, int32_t lenToAdd, UErrorCode *status) {
 1084|   251k|    int32_t resPathLenOrig = resB->fResPathLen;
 1085|   251k|    if(resB->fResPath == nullptr) {
  ------------------
  |  Branch (1085:8): [True: 84.2k, False: 166k]
  ------------------
 1086|  84.2k|        resB->fResPath = resB->fResBuf;
 1087|  84.2k|        *(resB->fResPath) = 0;
 1088|  84.2k|        resB->fResPathLen = 0;
 1089|  84.2k|    } 
 1090|   251k|    resB->fResPathLen += lenToAdd;
 1091|   251k|    if(RES_BUFSIZE <= resB->fResPathLen+1) {
  ------------------
  |  |   59|   251k|#define RES_BUFSIZE 64
  ------------------
  |  Branch (1091:8): [True: 0, False: 251k]
  ------------------
 1092|      0|        if(resB->fResPath == resB->fResBuf) {
  ------------------
  |  Branch (1092:12): [True: 0, False: 0]
  ------------------
 1093|      0|            resB->fResPath = static_cast<char*>(uprv_malloc((resB->fResPathLen + 1) * sizeof(char)));
  ------------------
  |  | 1524|      0|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1094|       |            /* Check that memory was allocated correctly. */
 1095|      0|            if (resB->fResPath == nullptr) {
  ------------------
  |  Branch (1095:17): [True: 0, False: 0]
  ------------------
 1096|      0|                *status = U_MEMORY_ALLOCATION_ERROR;
 1097|      0|                return;
 1098|      0|            }
 1099|      0|            uprv_strcpy(resB->fResPath, resB->fResBuf);
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1100|      0|        } else {
 1101|      0|            char* temp = static_cast<char*>(uprv_realloc(resB->fResPath, (resB->fResPathLen + 1) * sizeof(char)));
  ------------------
  |  | 1536|      0|#define uprv_realloc U_ICU_ENTRY_POINT_RENAME(uprv_realloc)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1102|       |            /* Check that memory was reallocated correctly. */
 1103|      0|            if (temp == nullptr) {
  ------------------
  |  Branch (1103:17): [True: 0, False: 0]
  ------------------
 1104|      0|                *status = U_MEMORY_ALLOCATION_ERROR;
 1105|      0|                return;
 1106|      0|            }
 1107|      0|            resB->fResPath = temp;
 1108|      0|        }
 1109|      0|    }
 1110|   251k|    uprv_strcpy(resB->fResPath + resPathLenOrig, toAdd);
  ------------------
  |  |   36|   251k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|   251k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1111|   251k|}
uresbund.cpp:_ZL13entryIncreaseP18UResourceDataEntry:
  304|  83.5k|static void entryIncrease(UResourceDataEntry *entry) {
  305|  83.5k|    Mutex lock(&resbMutex);
  306|  83.5k|    entry->fCountExisting++;
  307|  85.1k|    while(entry->fParent != nullptr) {
  ------------------
  |  Branch (307:11): [True: 1.51k, False: 83.5k]
  ------------------
  308|  1.51k|      entry = entry->fParent;
  309|  1.51k|      entry->fCountExisting++;
  310|  1.51k|    }
  311|  83.5k|}
uresbund.cpp:_ZN12_GLOBAL__N_116init_resb_resultEP18UResourceDataEntryjPKciPK15UResourceBundlePS4_P10UErrorCode:
 1480|  83.5k|        UResourceBundle *resB, UErrorCode *status) {
 1481|  83.5k|    return init_resb_result(
 1482|  83.5k|        dataEntry, r, key, idx,
 1483|  83.5k|        container->fValidLocaleDataEntry, container->fResPath, 0, resB, status);
 1484|  83.5k|}
uresbund.cpp:_ZN12_GLOBAL__N_116init_resb_resultEP18UResourceDataEntryjPKciS1_S3_iP15UResourceBundleP10UErrorCode:
 1389|  83.5k|        UResourceBundle *resB, UErrorCode *status) {
 1390|       |    // TODO: When an error occurs: Should we return nullptr vs. resB?
 1391|  83.5k|    if(status == nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1391:8): [True: 0, False: 83.5k]
  |  Branch (1391:29): [True: 0, False: 83.5k]
  ------------------
 1392|      0|        return resB;
 1393|      0|    }
 1394|  83.5k|    if (validLocaleDataEntry == nullptr) {
  ------------------
  |  Branch (1394:9): [True: 0, False: 83.5k]
  ------------------
 1395|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 1396|      0|        return nullptr;
 1397|      0|    }
 1398|  83.5k|    if(RES_GET_TYPE(r) == URES_ALIAS) {
  ------------------
  |  |   68|  83.5k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (1398:8): [True: 3, False: 83.5k]
  ------------------
 1399|       |        // This is an alias, need to exchange with real data.
 1400|      3|        if(recursionDepth >= URES_MAX_ALIAS_LEVEL) {
  ------------------
  |  |   33|      3|#define URES_MAX_ALIAS_LEVEL 256
  ------------------
  |  Branch (1400:12): [True: 0, False: 3]
  ------------------
 1401|      0|            *status = U_TOO_MANY_ALIASES_ERROR;
 1402|      0|            return resB;
 1403|      0|        }
 1404|      3|        return getAliasTargetAsResourceBundle(
 1405|      3|            dataEntry->fData, r, key, idx,
 1406|      3|            validLocaleDataEntry, containerResPath, recursionDepth, resB, status);
 1407|      3|    }
 1408|  83.5k|    if(resB == nullptr) {
  ------------------
  |  Branch (1408:8): [True: 4.76k, False: 78.8k]
  ------------------
 1409|  4.76k|        resB = static_cast<UResourceBundle*>(uprv_malloc(sizeof(UResourceBundle)));
  ------------------
  |  | 1524|  4.76k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  4.76k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.76k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.76k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1410|  4.76k|        if (resB == nullptr) {
  ------------------
  |  Branch (1410:13): [True: 0, False: 4.76k]
  ------------------
 1411|      0|            *status = U_MEMORY_ALLOCATION_ERROR;
 1412|      0|            return nullptr;
 1413|      0|        }
 1414|  4.76k|        ures_setIsStackObject(resB, false);
 1415|  4.76k|        resB->fResPath = nullptr;
 1416|  4.76k|        resB->fResPathLen = 0;
 1417|  78.8k|    } else {
 1418|  78.8k|        if(resB->fData != nullptr) {
  ------------------
  |  Branch (1418:12): [True: 78.8k, False: 0]
  ------------------
 1419|  78.8k|            entryClose(resB->fData);
 1420|  78.8k|        }
 1421|  78.8k|        if(resB->fVersion != nullptr) {
  ------------------
  |  Branch (1421:12): [True: 0, False: 78.8k]
  ------------------
 1422|      0|            uprv_free(resB->fVersion);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1423|      0|        }
 1424|       |        /* 
 1425|       |        weiv: if stack object was passed in, it doesn't really need to be reinited,
 1426|       |        since the purpose of initing is to remove stack junk. However, at this point 
 1427|       |        we would not do anything to an allocated object, so stack object should be
 1428|       |        treated the same
 1429|       |        */
 1430|       |        /*
 1431|       |        if(ures_isStackObject(resB) != false) {
 1432|       |        ures_initStackObject(resB);
 1433|       |        }
 1434|       |        */
 1435|  78.8k|        if(containerResPath != resB->fResPath) {
  ------------------
  |  Branch (1435:12): [True: 78.8k, False: 0]
  ------------------
 1436|  78.8k|            ures_freeResPath(resB);
 1437|  78.8k|        }
 1438|  78.8k|    }
 1439|  83.5k|    resB->fData = dataEntry;
 1440|  83.5k|    entryIncrease(resB->fData);
 1441|  83.5k|    resB->fHasFallback = false;
 1442|  83.5k|    resB->fIsTopLevel = false;
 1443|  83.5k|    resB->fIndex = -1;
 1444|  83.5k|    resB->fKey = key; 
 1445|  83.5k|    resB->fValidLocaleDataEntry = validLocaleDataEntry;
 1446|  83.5k|    if(containerResPath != resB->fResPath) {
  ------------------
  |  Branch (1446:8): [True: 82.5k, False: 1.02k]
  ------------------
 1447|  82.5k|        ures_appendResPath(
 1448|  82.5k|            resB, containerResPath, static_cast<int32_t>(uprv_strlen(containerResPath)), status);
  ------------------
  |  |   37|  82.5k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  82.5k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1449|  82.5k|    }
 1450|  83.5k|    if(key != nullptr) {
  ------------------
  |  Branch (1450:8): [True: 83.5k, False: 0]
  ------------------
 1451|  83.5k|        ures_appendResPath(resB, key, static_cast<int32_t>(uprv_strlen(key)), status);
  ------------------
  |  |   37|  83.5k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  83.5k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1452|  83.5k|        if(resB->fResPath[resB->fResPathLen-1] != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|  83.5k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (1452:12): [True: 83.5k, False: 3]
  ------------------
 1453|  83.5k|            ures_appendResPath(resB, RES_PATH_SEPARATOR_S, 1, status);
  ------------------
  |  |   61|  83.5k|#define RES_PATH_SEPARATOR_S   "/"
  ------------------
 1454|  83.5k|        }
 1455|  83.5k|    } else if(idx >= 0) {
  ------------------
  |  Branch (1455:15): [True: 0, False: 0]
  ------------------
 1456|      0|        char buf[256];
 1457|      0|        int32_t len = T_CString_integerToString(buf, idx, 10);
  ------------------
  |  |   67|      0|#define T_CString_integerToString U_ICU_ENTRY_POINT_RENAME(T_CString_integerToString)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1458|      0|        ures_appendResPath(resB, buf, len, status);
 1459|      0|        if(resB->fResPath[resB->fResPathLen-1] != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|      0|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (1459:12): [True: 0, False: 0]
  ------------------
 1460|      0|            ures_appendResPath(resB, RES_PATH_SEPARATOR_S, 1, status);
  ------------------
  |  |   61|      0|#define RES_PATH_SEPARATOR_S   "/"
  ------------------
 1461|      0|        }
 1462|      0|    }
 1463|       |    /* Make sure that Purify doesn't complain about uninitialized memory copies. */
 1464|  83.5k|    {
 1465|  83.5k|        int32_t usedLen = ((resB->fResBuf == resB->fResPath) ? resB->fResPathLen : 0);
  ------------------
  |  Branch (1465:28): [True: 83.5k, False: 0]
  ------------------
 1466|  83.5k|        uprv_memset(resB->fResBuf + usedLen, 0, sizeof(resB->fResBuf) - usedLen);
  ------------------
  |  |  100|  83.5k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  83.5k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1467|  83.5k|    }
 1468|       |
 1469|  83.5k|    resB->fVersion = nullptr;
 1470|  83.5k|    resB->fRes = r;
 1471|  83.5k|    resB->fSize = res_countArrayItems(&resB->getResData(), resB->fRes);
  ------------------
  |  |  197|  83.5k|#define res_countArrayItems U_ICU_ENTRY_POINT_RENAME(res_countArrayItems)
  |  |  ------------------
  |  |  |  |  123|  83.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  83.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  83.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1472|  83.5k|    ResourceTracer(resB).trace("get");
 1473|  83.5k|    return resB;
 1474|  83.5k|}
uresbund.cpp:_ZN12_GLOBAL__N_130getAliasTargetAsResourceBundleERK12ResourceDatajPKciP18UResourceDataEntryS4_iP15UResourceBundleP10UErrorCode:
 1166|      3|        UResourceBundle *resB, UErrorCode *status) {
 1167|       |    // TODO: When an error occurs: Should we return nullptr vs. resB?
 1168|      3|    if (U_FAILURE(*status)) { return resB; }
  ------------------
  |  Branch (1168:9): [True: 0, False: 3]
  ------------------
 1169|      3|    U_ASSERT(RES_GET_TYPE(r) == URES_ALIAS);
  ------------------
  |  |   35|      3|#   define U_ASSERT(exp) (void)0
  ------------------
 1170|      3|    int32_t len = 0;
 1171|      3|    const char16_t *alias = res_getAlias(&resData, r, &len);
  ------------------
  |  |  199|      3|#define res_getAlias U_ICU_ENTRY_POINT_RENAME(res_getAlias)
  |  |  ------------------
  |  |  |  |  123|      3|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      3|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      3|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1172|      3|    if(len <= 0) {
  ------------------
  |  Branch (1172:8): [True: 0, False: 3]
  ------------------
 1173|       |        // bad alias
 1174|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 1175|      0|        return resB;
 1176|      0|    }
 1177|       |
 1178|       |    // Copy the UTF-16 alias string into an invariant-character string.
 1179|       |    //
 1180|       |    // We do this so that res_findResource() can modify the path,
 1181|       |    // which allows us to remove redundant _res_findResource() variants
 1182|       |    // in uresdata.c.
 1183|       |    // res_findResource() now NUL-terminates each segment so that table keys
 1184|       |    // can always be compared with strcmp() instead of strncmp().
 1185|       |    // Saves code there and simplifies testing and code coverage.
 1186|       |    //
 1187|       |    // markus 2003oct17
 1188|      3|    CharString chAlias;
 1189|      3|    chAlias.appendInvariantChars(alias, len, *status);
 1190|      3|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (1190:9): [True: 0, False: 3]
  ------------------
 1191|      0|        return nullptr;
 1192|      0|    }
 1193|       |
 1194|       |    // We have an alias, now let's cut it up.
 1195|      3|    const char *path = nullptr, *locale = nullptr, *keyPath = nullptr;
 1196|      3|    if(chAlias[0] == RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|      3|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (1196:8): [True: 3, False: 0]
  ------------------
 1197|       |        // There is a path included.
 1198|      3|        char *chAliasData = chAlias.data();
 1199|      3|        char *sep = chAliasData + 1;
 1200|      3|        path = sep;
 1201|      3|        sep = uprv_strchr(sep, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|      3|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|      3|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1202|      3|        if(sep != nullptr) {
  ------------------
  |  Branch (1202:12): [True: 3, False: 0]
  ------------------
 1203|      3|            *sep++ = 0;
 1204|      3|        }
 1205|      3|        if(uprv_strcmp(path, "LOCALE") == 0) {
  ------------------
  |  |   38|      3|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      3|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1205:12): [True: 0, False: 3]
  ------------------
 1206|       |            // This is an XPath alias, starting with "/LOCALE/".
 1207|       |            // It contains the path to a resource which should be looked up
 1208|       |            // starting in the valid locale.
 1209|       |            // TODO: Can/should we forbid a /LOCALE alias without key path?
 1210|       |            //   It seems weird to alias to the same path, just starting from the valid locale.
 1211|       |            //   That will often yield an infinite loop.
 1212|      0|            keyPath = sep;
 1213|       |            // Read from the valid locale which we already have.
 1214|      0|            path = locale = nullptr;
 1215|      3|        } else {
 1216|      3|            if(uprv_strcmp(path, "ICUDATA") == 0) { /* want ICU data */
  ------------------
  |  |   38|      3|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      3|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1216:16): [True: 3, False: 0]
  ------------------
 1217|      3|                path = nullptr;
 1218|      3|            }
 1219|      3|            if (sep == nullptr) {
  ------------------
  |  Branch (1219:17): [True: 0, False: 3]
  ------------------
 1220|       |                // TODO: This ends up using the root bundle. Can/should we forbid this?
 1221|      0|                locale = "";
 1222|      3|            } else {
 1223|      3|                locale = sep;
 1224|      3|                sep = uprv_strchr(sep, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|      3|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|      3|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1225|      3|                if(sep != nullptr) {
  ------------------
  |  Branch (1225:20): [True: 3, False: 0]
  ------------------
 1226|      3|                    *sep++ = 0;
 1227|      3|                }
 1228|      3|                keyPath = sep;
 1229|      3|            }
 1230|      3|        }
 1231|      3|    } else {
 1232|       |        // No path, start with a locale.
 1233|      0|        char *sep = chAlias.data();
 1234|      0|        locale = sep;
 1235|      0|        sep = uprv_strchr(sep, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|      0|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1236|      0|        if(sep != nullptr) {
  ------------------
  |  Branch (1236:12): [True: 0, False: 0]
  ------------------
 1237|      0|            *sep++ = 0;
 1238|      0|        }
 1239|      0|        keyPath = sep;
 1240|      0|        path = validLocaleDataEntry->fPath;
 1241|      0|    }
 1242|       |
 1243|       |    // Got almost everything, let's try to open.
 1244|       |    // First, open the bundle with real data.
 1245|      3|    LocalUResourceBundlePointer mainRes;
 1246|      3|    UResourceDataEntry *dataEntry;
 1247|      3|    if (locale == nullptr) {
  ------------------
  |  Branch (1247:9): [True: 0, False: 3]
  ------------------
 1248|       |        // alias = /LOCALE/keyPath
 1249|       |        // Read from the valid locale which we already have.
 1250|      0|        dataEntry = validLocaleDataEntry;
 1251|      3|    } else {
 1252|      3|        UErrorCode intStatus = U_ZERO_ERROR;
 1253|       |        // TODO: Shouldn't we use ures_open() for locale data bundles (!noFallback)?
 1254|      3|        mainRes.adoptInstead(ures_openDirect(path, locale, &intStatus));
  ------------------
  |  | 1693|      3|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|      3|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      3|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      3|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1255|      3|        if(U_FAILURE(intStatus)) {
  ------------------
  |  Branch (1255:12): [True: 0, False: 3]
  ------------------
 1256|       |            // We failed to open the resource bundle we're aliasing to.
 1257|      0|            *status = intStatus;
 1258|      0|            return resB;
 1259|      0|        }
 1260|      3|        dataEntry = mainRes->fData;
 1261|      3|    }
 1262|       |
 1263|      3|    const char* temp = nullptr;
 1264|      3|    if(keyPath == nullptr) {
  ------------------
  |  Branch (1264:8): [True: 0, False: 3]
  ------------------
 1265|       |        // No key path. This means that we are going to to use the corresponding resource from
 1266|       |        // another bundle.
 1267|       |        // TODO: Why the special code path?
 1268|       |        //   Why not put together a key path from containerResPath + key or idx,
 1269|       |        //   as a comment below suggests, and go into the regular code branch?
 1270|       |        // First, we are going to get a corresponding container
 1271|       |        // resource to the one we are searching.
 1272|      0|        r = dataEntry->fData.rootRes;
 1273|      0|        if(containerResPath) {
  ------------------
  |  Branch (1273:12): [True: 0, False: 0]
  ------------------
 1274|      0|            chAlias.clear().append(containerResPath, *status);
 1275|      0|            if (U_FAILURE(*status)) {
  ------------------
  |  Branch (1275:17): [True: 0, False: 0]
  ------------------
 1276|      0|                return nullptr;
 1277|      0|            }
 1278|      0|            char *aKey = chAlias.data();
 1279|       |            // TODO: should res_findResource() return a new dataEntry, too?
 1280|      0|            r = res_findResource(&dataEntry->fData, r, &aKey, &temp);
  ------------------
  |  |  198|      0|#define res_findResource U_ICU_ENTRY_POINT_RENAME(res_findResource)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1281|      0|        }
 1282|      0|        if(key) {
  ------------------
  |  Branch (1282:12): [True: 0, False: 0]
  ------------------
 1283|       |            // We need to make keyPath from the containerResPath and
 1284|       |            // current key, if there is a key associated.
 1285|      0|            chAlias.clear().append(key, *status);
 1286|      0|            if (U_FAILURE(*status)) {
  ------------------
  |  Branch (1286:17): [True: 0, False: 0]
  ------------------
 1287|      0|                return nullptr;
 1288|      0|            }
 1289|      0|            char *aKey = chAlias.data();
 1290|      0|            r = res_findResource(&dataEntry->fData, r, &aKey, &temp);
  ------------------
  |  |  198|      0|#define res_findResource U_ICU_ENTRY_POINT_RENAME(res_findResource)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1291|      0|        } else if(idx != -1) {
  ------------------
  |  Branch (1291:19): [True: 0, False: 0]
  ------------------
 1292|       |            // If there is no key, but there is an index, try to get by the index.
 1293|       |            // Here we have either a table or an array, so get the element.
 1294|      0|            int32_t type = RES_GET_TYPE(r);
  ------------------
  |  |   68|      0|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 1295|      0|            if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|      0|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 0, False: 0]
  |  |  |  Branch (84:61): [True: 0, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1296|      0|                const char *aKey;
 1297|      0|                r = res_getTableItemByIndex(&dataEntry->fData, r, idx, &aKey);
  ------------------
  |  |  206|      0|#define res_getTableItemByIndex U_ICU_ENTRY_POINT_RENAME(res_getTableItemByIndex)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1298|      0|            } else { /* array */
 1299|      0|                r = res_getArrayItem(&dataEntry->fData, r, idx);
  ------------------
  |  |  200|      0|#define res_getArrayItem U_ICU_ENTRY_POINT_RENAME(res_getArrayItem)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1300|      0|            }
 1301|      0|        }
 1302|      0|        if(r != RES_BOGUS) {
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1302:12): [True: 0, False: 0]
  ------------------
 1303|      0|            resB = init_resb_result(
 1304|      0|                dataEntry, r, temp, -1, validLocaleDataEntry, nullptr, recursionDepth+1,
 1305|      0|                resB, status);
 1306|      0|        } else {
 1307|      0|            *status = U_MISSING_RESOURCE_ERROR;
 1308|      0|        }
 1309|      3|    } else {
 1310|       |        // This one is a bit trickier.
 1311|       |        // We start finding keys, but after we resolve one alias, the path might continue.
 1312|       |        // Consider:
 1313|       |        //     aliastest:alias { "testtypes/anotheralias/Sequence" }
 1314|       |        //     anotheralias:alias { "/ICUDATA/sh/CollationElements" }
 1315|       |        // aliastest resource should finally have the sequence, not collation elements.
 1316|      3|        CharString pathBuf(keyPath, *status);
 1317|      3|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (1317:13): [True: 0, False: 3]
  ------------------
 1318|      0|            return nullptr;
 1319|      0|        }
 1320|      3|        char *myPath = pathBuf.data();
 1321|      3|        containerResPath = nullptr;
 1322|       |        // Now we have fallback following here.
 1323|      3|        for(;;) {
 1324|      3|            r = dataEntry->fData.rootRes;
 1325|       |            // TODO: Move  containerResPath = nullptr  to here,
 1326|       |            // consistent with restarting from the rootRes of another bundle?!
 1327|       |
 1328|       |            // This loop handles 'found' resources over several levels.
 1329|      6|            while(*myPath && U_SUCCESS(*status)) {
  ------------------
  |  Branch (1329:19): [True: 3, False: 3]
  |  Branch (1329:30): [True: 3, False: 0]
  ------------------
 1330|      3|                r = res_findResource(&(dataEntry->fData), r, &myPath, &temp);
  ------------------
  |  |  198|      3|#define res_findResource U_ICU_ENTRY_POINT_RENAME(res_findResource)
  |  |  ------------------
  |  |  |  |  123|      3|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      3|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      3|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1331|      3|                if(r == RES_BOGUS) {
  ------------------
  |  |   65|      3|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1331:20): [True: 0, False: 3]
  ------------------
 1332|       |                    // No resource found, we don't really want to look anymore on this level.
 1333|      0|                    break;
 1334|      0|                }
 1335|       |                // Found a resource, but it might be an indirection.
 1336|      3|                resB = init_resb_result(
 1337|      3|                    dataEntry, r, temp, -1,
 1338|      3|                    validLocaleDataEntry, containerResPath, recursionDepth+1,
 1339|      3|                    resB, status);
 1340|      3|                if (U_FAILURE(*status)) {
  ------------------
  |  Branch (1340:21): [True: 0, False: 3]
  ------------------
 1341|      0|                    break;
 1342|      0|                }
 1343|      3|                if (temp == nullptr || uprv_strcmp(keyPath, temp) != 0) {
  ------------------
  |  |   38|      3|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      3|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1343:21): [True: 0, False: 3]
  |  Branch (1343:40): [True: 3, False: 0]
  ------------------
 1344|       |                    // The call to init_resb_result() above will set resB->fKeyPath to be
 1345|       |                    // the same as resB->fKey,
 1346|       |                    // throwing away any additional path elements if we had them --
 1347|       |                    // if the key path wasn't just a single resource ID, clear out
 1348|       |                    // the bundle's key path and re-set it to be equal to keyPath.
 1349|      3|                    ures_freeResPath(resB);
 1350|      3|                    ures_appendResPath(resB, keyPath, static_cast<int32_t>(uprv_strlen(keyPath)), status);
  ------------------
  |  |   37|      3|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      3|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1351|      3|                    if(resB->fResPath[resB->fResPathLen-1] != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|      3|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (1351:24): [True: 3, False: 0]
  ------------------
 1352|      3|                        ures_appendResPath(resB, RES_PATH_SEPARATOR_S, 1, status);
  ------------------
  |  |   61|      3|#define RES_PATH_SEPARATOR_S   "/"
  ------------------
 1353|      3|                    }
 1354|      3|                    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (1354:25): [True: 0, False: 3]
  ------------------
 1355|      0|                        break;
 1356|      0|                    }
 1357|      3|                }
 1358|      3|                r = resB->fRes; /* switch to a new resource, possibly a new tree */
 1359|      3|                dataEntry = resB->fData;
 1360|      3|                containerResPath = resB->fResPath;
 1361|      3|            }
 1362|      3|            if (U_FAILURE(*status) || r != RES_BOGUS) {
  ------------------
  |  |   65|      3|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1362:17): [True: 0, False: 3]
  |  Branch (1362:39): [True: 3, False: 0]
  ------------------
 1363|      3|                break;
 1364|      3|            }
 1365|       |            // Fall back to the parent bundle, if there is one.
 1366|      0|            dataEntry = dataEntry->fParent;
 1367|      0|            if (dataEntry == nullptr) {
  ------------------
  |  Branch (1367:17): [True: 0, False: 0]
  ------------------
 1368|      0|                *status = U_MISSING_RESOURCE_ERROR;
 1369|      0|                break;
 1370|      0|            }
 1371|       |            // Copy the same keyPath again.
 1372|      0|            myPath = pathBuf.data();
 1373|      0|            uprv_strcpy(myPath, keyPath);
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1374|      0|        }
 1375|      3|    }
 1376|      3|    if(mainRes.getAlias() == resB) {
  ------------------
  |  Branch (1376:8): [True: 0, False: 3]
  ------------------
 1377|      0|        mainRes.orphan();
 1378|      0|    }
 1379|      3|    ResourceTracer(resB).maybeTrace("getalias");
 1380|      3|    return resB;
 1381|      3|}
uresbund.cpp:_ZL21getTableItemByKeyPathPK12ResourceDatajPKc:
 2059|  1.61k|static Resource getTableItemByKeyPath(const ResourceData *pResData, Resource table, const char *key) {
 2060|  1.61k|  Resource resource = table;  /* The current resource */
 2061|  1.61k|  icu::CharString path;
 2062|  1.61k|  UErrorCode errorCode = U_ZERO_ERROR;
 2063|  1.61k|  path.append(key, errorCode);
 2064|  1.61k|  if (U_FAILURE(errorCode)) { return RES_BOGUS; }
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2064:7): [True: 0, False: 1.61k]
  ------------------
 2065|  1.61k|  char *pathPart = path.data();  /* Path from current resource to desired resource */
 2066|  1.61k|  UResType type = static_cast<UResType>(RES_GET_TYPE(resource)); /* the current resource type */
  ------------------
  |  |   68|  1.61k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2067|  3.23k|  while (*pathPart && resource != RES_BOGUS && URES_IS_CONTAINER(type)) {
  ------------------
  |  |   65|  4.87k|#define RES_BOGUS 0xffffffff
  ------------------
                while (*pathPart && resource != RES_BOGUS && URES_IS_CONTAINER(type)) {
  ------------------
  |  |   85|  1.62k|#define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   84|  3.25k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (84:30): [True: 1.46k, False: 158]
  |  |  |  |  |  Branch (84:61): [True: 154, False: 4]
  |  |  |  |  |  Branch (84:94): [True: 0, False: 4]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   83|      4|#define URES_IS_ARRAY(type) ((int32_t)(type)==URES_ARRAY || (int32_t)(type)==URES_ARRAY16)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (83:30): [True: 0, False: 4]
  |  |  |  |  |  Branch (83:61): [True: 0, False: 4]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2067:10): [True: 1.63k, False: 1.59k]
  |  Branch (2067:23): [True: 1.62k, False: 10]
  ------------------
 2068|  1.62k|    char *nextPathPart = uprv_strchr(pathPart, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|  1.62k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  1.62k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2069|  1.62k|    if (nextPathPart != nullptr) {
  ------------------
  |  Branch (2069:9): [True: 43, False: 1.58k]
  ------------------
 2070|     43|      *nextPathPart = 0;  /* Terminating null for this part of path. */
 2071|     43|      nextPathPart++;
 2072|  1.58k|    } else {
 2073|  1.58k|      nextPathPart = uprv_strchr(pathPart, 0);
  ------------------
  |  |   40|  1.58k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  1.58k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2074|  1.58k|    }
 2075|  1.62k|    int32_t t;
 2076|  1.62k|    const char *pathP = pathPart;
 2077|  1.62k|    resource = res_getTableItemByKey(pResData, resource, &t, &pathP);
  ------------------
  |  |  207|  1.62k|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|  1.62k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.62k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.62k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2078|  1.62k|    type = static_cast<UResType>(RES_GET_TYPE(resource));
  ------------------
  |  |   68|  1.62k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2079|  1.62k|    pathPart = nextPathPart; 
 2080|  1.62k|  }
 2081|  1.61k|  if (*pathPart) {
  ------------------
  |  Branch (2081:7): [True: 14, False: 1.59k]
  ------------------
 2082|     14|    return RES_BOGUS;
  ------------------
  |  |   65|     14|#define RES_BOGUS 0xffffffff
  ------------------
 2083|     14|  }
 2084|  1.59k|  return resource;
 2085|  1.61k|}
uresbund.cpp:_ZL10createPathPKciS0_iS0_RN6icu_7810CharStringEP10UErrorCode:
 2093|  1.93k|                       UErrorCode* status) {
 2094|       |    // This is a utility function used by ures_getByKeyWithFallback() below.  This function builds a path from
 2095|       |    // resPath and inKey, returning the result in `path`.  Originally, this function just cleared `path` and
 2096|       |    // appended resPath and inKey to it, but that caused problems for horizontal inheritance.
 2097|       |    //
 2098|       |    // In normal cases, resPath is the same as origResPath, but if ures_getByKeyWithFallback() has followed an
 2099|       |    // alias, resPath may be different from origResPath.  Not only may the existing path elements be different,
 2100|       |    // but resPath may also have MORE path elements than origResPath did.  If it does, those additional path
 2101|       |    // elements SUPERSEDE the corresponding elements of inKey.  So this code counts the number of elements in
 2102|       |    // resPath and origResPath and, for each path element in resPath that doesn't have a counterpart in origResPath,
 2103|       |    // deletes a path element from the beginning of inKey.  The remainder of inKey is then appended to
 2104|       |    // resPath to form the result.  (We're not using uprv_strchr() here because resPath and origResPath may
 2105|       |    // not be zero-terminated.)
 2106|  1.93k|    path.clear();
 2107|  1.93k|    const char* key = inKey;
 2108|  1.93k|    if (resPathLen > 0) {
  ------------------
  |  Branch (2108:9): [True: 1.92k, False: 13]
  ------------------
 2109|  1.92k|        path.append(resPath, resPathLen, *status);
 2110|  1.92k|        if (U_SUCCESS(*status)) {
  ------------------
  |  Branch (2110:13): [True: 1.92k, False: 0]
  ------------------
 2111|  1.92k|            const char* resPathLimit = resPath + resPathLen;
 2112|  1.92k|            const char* origResPathLimit = origResPath + origResPathLen;
 2113|  1.92k|            const char* resPathPtr = resPath;
 2114|  1.92k|            const char* origResPathPtr = origResPath;
 2115|       |            
 2116|       |            // Remove from the beginning of resPath the number of segments that are contained in origResPath.
 2117|       |            // If origResPath has MORE segments than resPath, this will leave resPath as the empty string.
 2118|  3.84k|            while (origResPathPtr < origResPathLimit && resPathPtr < resPathLimit) {
  ------------------
  |  Branch (2118:20): [True: 1.92k, False: 1.92k]
  |  Branch (2118:57): [True: 1.92k, False: 0]
  ------------------
 2119|  21.1k|                while (origResPathPtr < origResPathLimit && *origResPathPtr != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|  21.1k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2119:24): [True: 21.1k, False: 0]
  |  Branch (2119:61): [True: 19.2k, False: 1.92k]
  ------------------
 2120|  19.2k|                    ++origResPathPtr;
 2121|  19.2k|                }
 2122|  1.92k|                if (origResPathPtr < origResPathLimit && *origResPathPtr == RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|  1.92k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2122:21): [True: 1.92k, False: 0]
  |  Branch (2122:58): [True: 1.92k, False: 0]
  ------------------
 2123|  1.92k|                    ++origResPathPtr;
 2124|  1.92k|                }
 2125|  21.1k|                while (resPathPtr < resPathLimit && *resPathPtr != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|  21.1k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2125:24): [True: 21.1k, False: 0]
  |  Branch (2125:53): [True: 19.2k, False: 1.92k]
  ------------------
 2126|  19.2k|                    ++resPathPtr;
 2127|  19.2k|                }
 2128|  1.92k|                if (resPathPtr < resPathLimit && *resPathPtr == RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|  1.92k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2128:21): [True: 1.92k, False: 0]
  |  Branch (2128:50): [True: 1.92k, False: 0]
  ------------------
 2129|  1.92k|                    ++resPathPtr;
 2130|  1.92k|                }
 2131|  1.92k|            }
 2132|       |            
 2133|       |            // New remove from the beginning of `key` the number of segments remaining in resPath.
 2134|       |            // If resPath has more segments than `key` does, `key` will end up empty.
 2135|  1.92k|            while (resPathPtr < resPathLimit && *key != '\0') {
  ------------------
  |  Branch (2135:20): [True: 0, False: 1.92k]
  |  Branch (2135:49): [True: 0, False: 0]
  ------------------
 2136|      0|                while (resPathPtr < resPathLimit && *resPathPtr != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|      0|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2136:24): [True: 0, False: 0]
  |  Branch (2136:53): [True: 0, False: 0]
  ------------------
 2137|      0|                    ++resPathPtr;
 2138|      0|                }
 2139|      0|                if (resPathPtr < resPathLimit && *resPathPtr == RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|      0|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2139:21): [True: 0, False: 0]
  |  Branch (2139:50): [True: 0, False: 0]
  ------------------
 2140|      0|                    ++resPathPtr;
 2141|      0|                }
 2142|      0|                while (*key != '\0' && *key != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|      0|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2142:24): [True: 0, False: 0]
  |  Branch (2142:40): [True: 0, False: 0]
  ------------------
 2143|      0|                    ++key;
 2144|      0|                }
 2145|      0|                if (*key == RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|      0|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2145:21): [True: 0, False: 0]
  ------------------
 2146|      0|                    ++key;
 2147|      0|                }
 2148|      0|            }
 2149|  1.92k|        }
 2150|       |        // Finally, append what's left of `key` to `path`.  What you end up with here is `resPath`, plus
 2151|       |        // any pieces of `key` that aren't superseded by `resPath`.
 2152|       |        // Or, to put it another way, calculate <#-segments-in-key> - (<#-segments-in-resPath> - <#-segments-in-origResPath>),
 2153|       |        // and append that many segments from the end of `key` to `resPath` to produce the result.
 2154|  1.92k|        path.append(key, *status);
 2155|  1.92k|    } else {
 2156|     13|        path.append(inKey, *status);
 2157|     13|    }
 2158|  1.93k|}
uresbund.cpp:_ZL16ures_freeResPathP15UResourceBundle:
 1113|  90.0k|static void ures_freeResPath(UResourceBundle *resB) {
 1114|  90.0k|    if (resB->fResPath && resB->fResPath != resB->fResBuf) {
  ------------------
  |  Branch (1114:9): [True: 84.2k, False: 5.78k]
  |  Branch (1114:27): [True: 0, False: 84.2k]
  ------------------
 1115|      0|        uprv_free(resB->fResPath);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1116|      0|    }
 1117|  90.0k|    resB->fResPath = nullptr;
 1118|  90.0k|    resB->fResPathLen = 0;
 1119|  90.0k|}
uresbund.cpp:_ZN12_GLOBAL__N_123getAllItemsWithFallbackEPK15UResourceBundleRN6icu_7817ResourceDataValueERNS3_12ResourceSinkER10UErrorCode:
 2278|      1|        ResourceSink &sink, UErrorCode &errorCode) {
 2279|      1|    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (2279:9): [True: 0, False: 1]
  ------------------
 2280|       |    // We recursively enumerate child-first,
 2281|       |    // only storing parent items in the absence of child items.
 2282|       |    // The sink needs to store a placeholder value for the no-fallback/no-inheritance marker
 2283|       |    // to prevent a parent item from being stored.
 2284|       |    //
 2285|       |    // It would be possible to recursively enumerate parent-first,
 2286|       |    // overriding parent items with child items.
 2287|       |    // When the sink sees the no-fallback/no-inheritance marker,
 2288|       |    // then it would remove the parent's item.
 2289|       |    // We would deserialize parent values even though they are overridden in a child bundle.
 2290|      1|    value.setData(bundle->getResData());
 2291|      1|    value.setValidLocaleDataEntry(bundle->fValidLocaleDataEntry);
 2292|      1|    UResourceDataEntry *parentEntry = bundle->fData->fParent;
 2293|      1|    UBool hasParent = parentEntry != nullptr && U_SUCCESS(parentEntry->fBogus);
  ------------------
  |  Branch (2293:23): [True: 0, False: 1]
  |  Branch (2293:49): [True: 0, False: 0]
  ------------------
 2294|      1|    value.setResource(bundle->fRes, ResourceTracer(bundle));
 2295|      1|    sink.put(bundle->fKey, value, !hasParent, errorCode);
 2296|      1|    if (hasParent) {
  ------------------
  |  Branch (2296:9): [True: 0, False: 1]
  ------------------
 2297|       |        // We might try to query the sink whether
 2298|       |        // any fallback from the parent bundle is still possible.
 2299|       |
 2300|       |        // Turn the parent UResourceDataEntry into a UResourceBundle,
 2301|       |        // much like in ures_openWithType().
 2302|       |        // TODO: See if we can refactor ures_getByKeyWithFallback()
 2303|       |        // and pull out an inner function that takes and returns a UResourceDataEntry
 2304|       |        // so that we need not create UResourceBundle objects.
 2305|      0|        StackUResourceBundle parentBundle;
 2306|      0|        UResourceBundle &parentRef = parentBundle.ref();
 2307|      0|        parentRef.fData = parentEntry;
 2308|      0|        parentRef.fValidLocaleDataEntry = bundle->fValidLocaleDataEntry;
 2309|      0|        parentRef.fHasFallback = !parentRef.getResData().noFallback;
 2310|      0|        parentRef.fIsTopLevel = true;
 2311|      0|        parentRef.fRes = parentRef.getResData().rootRes;
 2312|      0|        parentRef.fSize = res_countArrayItems(&parentRef.getResData(), parentRef.fRes);
  ------------------
  |  |  197|      0|#define res_countArrayItems U_ICU_ENTRY_POINT_RENAME(res_countArrayItems)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2313|      0|        parentRef.fIndex = -1;
 2314|      0|        entryIncrease(parentEntry);
 2315|       |
 2316|       |        // Look up the container item in the parent bundle.
 2317|      0|        StackUResourceBundle containerBundle;
 2318|      0|        const UResourceBundle *rb;
 2319|      0|        UErrorCode pathErrorCode = U_ZERO_ERROR;  // Ignore if parents up to root do not have this path.
 2320|      0|        if (bundle->fResPath == nullptr || *bundle->fResPath == 0) {
  ------------------
  |  Branch (2320:13): [True: 0, False: 0]
  |  Branch (2320:44): [True: 0, False: 0]
  ------------------
 2321|      0|            rb = parentBundle.getAlias();
 2322|      0|        } else {
 2323|      0|            rb = ures_getByKeyWithFallback(parentBundle.getAlias(), bundle->fResPath,
  ------------------
  |  | 1662|      0|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2324|      0|                                           containerBundle.getAlias(), &pathErrorCode);
 2325|      0|        }
 2326|      0|        if (U_SUCCESS(pathErrorCode)) {
  ------------------
  |  Branch (2326:13): [True: 0, False: 0]
  ------------------
 2327|      0|            getAllItemsWithFallback(rb, value, sink, errorCode);
 2328|      0|        }
 2329|      0|    }
 2330|      1|}
uresbund.cpp:_ZL15getFallbackDataPK15UResourceBundlePPKcPjP10UErrorCode:
  319|    202|        const char **resTag, Resource *res, UErrorCode *status) {
  320|    202|    UResourceDataEntry *dataEntry = resBundle->fData;
  321|    202|    int32_t indexR = -1;
  322|    202|    int32_t i = 0;
  323|    202|    *res = RES_BOGUS;
  ------------------
  |  |   65|    202|#define RES_BOGUS 0xffffffff
  ------------------
  324|    202|    if(dataEntry == nullptr) {
  ------------------
  |  Branch (324:8): [True: 0, False: 202]
  ------------------
  325|      0|        *status = U_MISSING_RESOURCE_ERROR;
  326|      0|        return nullptr;
  327|      0|    }
  328|    202|    if(dataEntry->fBogus == U_ZERO_ERROR) { /* if this resource is real, */
  ------------------
  |  Branch (328:8): [True: 202, False: 0]
  ------------------
  329|    202|        *res = res_getTableItemByKey(&(dataEntry->fData), dataEntry->fData.rootRes, &indexR, resTag); /* try to get data from there */
  ------------------
  |  |  207|    202|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|    202|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    202|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    202|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  330|    202|        i++;
  331|    202|    }
  332|    202|    if(resBundle->fHasFallback) {
  ------------------
  |  Branch (332:8): [True: 202, False: 0]
  ------------------
  333|       |        // Otherwise, we'll look in parents.
  334|    433|        while(*res == RES_BOGUS && dataEntry->fParent != nullptr) {
  ------------------
  |  |   65|    866|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (334:15): [True: 231, False: 202]
  |  Branch (334:36): [True: 231, False: 0]
  ------------------
  335|    231|            dataEntry = dataEntry->fParent;
  336|    231|            if(dataEntry->fBogus == U_ZERO_ERROR) {
  ------------------
  |  Branch (336:16): [True: 231, False: 0]
  ------------------
  337|    231|                i++;
  338|    231|                *res = res_getTableItemByKey(&(dataEntry->fData), dataEntry->fData.rootRes, &indexR, resTag);
  ------------------
  |  |  207|    231|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|    231|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    231|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    231|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  339|    231|            }
  340|    231|        }
  341|    202|    }
  342|       |
  343|    202|    if(*res == RES_BOGUS) {
  ------------------
  |  |   65|    202|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (343:8): [True: 0, False: 202]
  ------------------
  344|       |        // If the resource is not found, we need to give an error.
  345|      0|        *status = U_MISSING_RESOURCE_ERROR;
  346|      0|        return nullptr;
  347|      0|    }
  348|       |    // If the resource is found in parents, we need to adjust the error.
  349|    202|    if(i>1) {
  ------------------
  |  Branch (349:8): [True: 202, False: 0]
  ------------------
  350|    202|        if(uprv_strcmp(dataEntry->fName, uloc_getDefault())==0 || uprv_strcmp(dataEntry->fName, kRootLocaleName)==0) {
  ------------------
  |  |   38|    202|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    202|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                      if(uprv_strcmp(dataEntry->fName, uloc_getDefault())==0 || uprv_strcmp(dataEntry->fName, kRootLocaleName)==0) {
  ------------------
  |  |   38|    202|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    202|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (350:12): [True: 0, False: 202]
  |  Branch (350:67): [True: 115, False: 87]
  ------------------
  351|    115|            *status = U_USING_DEFAULT_WARNING;
  352|    115|        } else {
  353|     87|            *status = U_USING_FALLBACK_WARNING;
  354|     87|        }
  355|    202|    }
  356|    202|    return dataEntry;
  357|    202|}
uresbund.cpp:_ZL17ures_openWithTypeP15UResourceBundlePKcS2_12UResOpenTypeP10UErrorCode:
 2712|  5.88k|                  UResOpenType openType, UErrorCode* status) {
 2713|  5.88k|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (2713:8): [True: 0, False: 5.88k]
  ------------------
 2714|      0|        return nullptr;
 2715|      0|    }
 2716|       |
 2717|  5.88k|    UResourceDataEntry *entry;
 2718|  5.88k|    if(openType != URES_OPEN_DIRECT) {
  ------------------
  |  Branch (2718:8): [True: 5.88k, False: 6]
  ------------------
 2719|  5.88k|        if (localeID == nullptr) {
  ------------------
  |  Branch (2719:13): [True: 0, False: 5.88k]
  ------------------
 2720|      0|            localeID = uloc_getDefault();
  ------------------
  |  | 1118|      0|#define uloc_getDefault U_ICU_ENTRY_POINT_RENAME(uloc_getDefault)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2721|      0|        }
 2722|       |        /* first "canonicalize" the locale ID */
 2723|  5.88k|        CharString canonLocaleID = ulocimp_getBaseName(localeID, *status);
  ------------------
  |  | 1199|  5.88k|#define ulocimp_getBaseName U_ICU_ENTRY_POINT_RENAME(ulocimp_getBaseName)
  |  |  ------------------
  |  |  |  |  123|  5.88k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.88k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.88k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2724|  5.88k|        if(U_FAILURE(*status)) {
  ------------------
  |  Branch (2724:12): [True: 3, False: 5.88k]
  ------------------
 2725|      3|            *status = U_ILLEGAL_ARGUMENT_ERROR;
 2726|      3|            return nullptr;
 2727|      3|        }
 2728|  5.88k|        entry = entryOpen(path, canonLocaleID.data(), openType, status);
 2729|  5.88k|    } else {
 2730|      6|        entry = entryOpenDirect(path, localeID, status);
 2731|      6|    }
 2732|  5.88k|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (2732:8): [True: 0, False: 5.88k]
  ------------------
 2733|      0|        return nullptr;
 2734|      0|    }
 2735|  5.88k|    if(entry == nullptr) {
  ------------------
  |  Branch (2735:8): [True: 0, False: 5.88k]
  ------------------
 2736|      0|        *status = U_MISSING_RESOURCE_ERROR;
 2737|      0|        return nullptr;
 2738|      0|    }
 2739|       |
 2740|  5.88k|    UBool isStackObject;
 2741|  5.88k|    if(r == nullptr) {
  ------------------
  |  Branch (2741:8): [True: 5.88k, False: 0]
  ------------------
 2742|  5.88k|        r = static_cast<UResourceBundle*>(uprv_malloc(sizeof(UResourceBundle)));
  ------------------
  |  | 1524|  5.88k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  5.88k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.88k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.88k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2743|  5.88k|        if(r == nullptr) {
  ------------------
  |  Branch (2743:12): [True: 0, False: 5.88k]
  ------------------
 2744|      0|            entryClose(entry);
 2745|      0|            *status = U_MEMORY_ALLOCATION_ERROR;
 2746|      0|            return nullptr;
 2747|      0|        }
 2748|  5.88k|        isStackObject = false;
 2749|  5.88k|    } else {  // fill-in
 2750|      0|        isStackObject = ures_isStackObject(r);
 2751|      0|        ures_closeBundle(r, false);
 2752|      0|    }
 2753|  5.88k|    uprv_memset(r, 0, sizeof(UResourceBundle));
  ------------------
  |  |  100|  5.88k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  5.88k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2754|  5.88k|    ures_setIsStackObject(r, isStackObject);
 2755|       |
 2756|  5.88k|    r->fValidLocaleDataEntry = r->fData = entry;
 2757|  5.88k|    r->fHasFallback = openType != URES_OPEN_DIRECT && !r->getResData().noFallback;
  ------------------
  |  Branch (2757:23): [True: 5.88k, False: 6]
  |  Branch (2757:55): [True: 5.88k, False: 0]
  ------------------
 2758|  5.88k|    r->fIsTopLevel = true;
 2759|  5.88k|    r->fRes = r->getResData().rootRes;
 2760|  5.88k|    r->fSize = res_countArrayItems(&r->getResData(), r->fRes);
  ------------------
  |  |  197|  5.88k|#define res_countArrayItems U_ICU_ENTRY_POINT_RENAME(res_countArrayItems)
  |  |  ------------------
  |  |  |  |  123|  5.88k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.88k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.88k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2761|  5.88k|    r->fIndex = -1;
 2762|       |
 2763|  5.88k|    ResourceTracer(r).traceOpen();
 2764|       |
 2765|  5.88k|    return r;
 2766|  5.88k|}
uresbund.cpp:_ZL9entryOpenPKcS0_12UResOpenTypeP10UErrorCode:
  812|  5.88k|                                     UResOpenType openType, UErrorCode* status) {
  813|  5.88k|    U_ASSERT(openType != URES_OPEN_DIRECT);
  ------------------
  |  |   35|  5.88k|#   define U_ASSERT(exp) (void)0
  ------------------
  814|  5.88k|    UErrorCode intStatus = U_ZERO_ERROR;
  815|  5.88k|    UResourceDataEntry *r = nullptr;
  816|  5.88k|    UResourceDataEntry *t1 = nullptr;
  817|  5.88k|    UBool isDefault = false;
  818|  5.88k|    UBool isRoot = false;
  819|  5.88k|    UBool hasRealData = false;
  820|  5.88k|    UBool hasChopped = true;
  821|  5.88k|    UBool usingUSRData = U_USE_USRDATA && ( path == nullptr || uprv_strncmp(path,U_ICUDATA_NAME,8) == 0);
  ------------------
  |  |  157|  11.7k|#define U_USE_USRDATA     0  /**< @internal */
  |  |  ------------------
  |  |  |  Branch (157:27): [Folded - Ignored]
  |  |  ------------------
  ------------------
                  UBool usingUSRData = U_USE_USRDATA && ( path == nullptr || uprv_strncmp(path,U_ICUDATA_NAME,8) == 0);
  ------------------
  |  |   44|      0|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (821:45): [True: 0, False: 0]
  |  Branch (821:64): [True: 0, False: 0]
  ------------------
  822|       |
  823|  5.88k|    char name[ULOC_FULLNAME_CAPACITY];
  824|  5.88k|    char usrDataPath[96];
  825|       |
  826|  5.88k|    initCache(status);
  827|       |
  828|  5.88k|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (828:8): [True: 0, False: 5.88k]
  ------------------
  829|      0|        return nullptr;
  830|      0|    }
  831|       |
  832|  5.88k|    uprv_strncpy(name, localeID, sizeof(name) - 1);
  ------------------
  |  |   43|  5.88k|#define uprv_strncpy(dst, src, size) U_STANDARD_CPP_NAMESPACE strncpy(dst, src, size)
  |  |  ------------------
  |  |  |  |  393|  5.88k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  833|  5.88k|    name[sizeof(name) - 1] = 0;
  834|       |
  835|  5.88k|    if ( usingUSRData ) {
  ------------------
  |  Branch (835:10): [True: 0, False: 5.88k]
  ------------------
  836|      0|        if ( path == nullptr ) {
  ------------------
  |  Branch (836:14): [True: 0, False: 0]
  ------------------
  837|      0|            uprv_strcpy(usrDataPath, U_USRDATA_NAME);
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  838|      0|        } else {
  839|      0|            uprv_strncpy(usrDataPath, path, sizeof(usrDataPath) - 1);
  ------------------
  |  |   43|      0|#define uprv_strncpy(dst, src, size) U_STANDARD_CPP_NAMESPACE strncpy(dst, src, size)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  840|      0|            usrDataPath[0] = 'u';
  841|      0|            usrDataPath[1] = 's';
  842|      0|            usrDataPath[2] = 'r';
  843|      0|            usrDataPath[sizeof(usrDataPath) - 1] = 0;
  844|      0|        }
  845|      0|    }
  846|       | 
  847|       |    // Note: We need to query the default locale *before* locking resbMutex.
  848|  5.88k|    const char *defaultLocale = uloc_getDefault();
  ------------------
  |  | 1118|  5.88k|#define uloc_getDefault U_ICU_ENTRY_POINT_RENAME(uloc_getDefault)
  |  |  ------------------
  |  |  |  |  123|  5.88k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.88k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.88k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  849|       |
  850|  5.88k|    Mutex lock(&resbMutex);    // Lock resbMutex until the end of this function.
  851|       |
  852|       |    /* We're going to skip all the locales that do not have any data */
  853|  5.88k|    r = findFirstExisting(path, name, defaultLocale, openType, &isRoot, &hasChopped, &isDefault, &intStatus);
  854|       |
  855|       |    // If we failed due to out-of-memory, report the failure and exit early.
  856|  5.88k|    if (intStatus == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (856:9): [True: 0, False: 5.88k]
  ------------------
  857|      0|        *status = intStatus;
  858|      0|        goto finish;
  859|      0|    }
  860|       |
  861|  5.88k|    if(r != nullptr) { /* if there is one real locale, we can look for parents. */
  ------------------
  |  Branch (861:8): [True: 1.97k, False: 3.90k]
  ------------------
  862|  1.97k|        t1 = r;
  863|  1.97k|        hasRealData = true;
  864|  1.97k|        if ( usingUSRData ) {  /* This code inserts user override data into the inheritance chain */
  ------------------
  |  Branch (864:14): [True: 0, False: 1.97k]
  ------------------
  865|      0|            UErrorCode usrStatus = U_ZERO_ERROR;
  866|      0|            UResourceDataEntry *u1 = init_entry(t1->fName, usrDataPath, &usrStatus);
  867|       |            // If we failed due to out-of-memory, report the failure and exit early.
  868|      0|            if (intStatus == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (868:17): [True: 0, False: 0]
  ------------------
  869|      0|                *status = intStatus;
  870|      0|                goto finish;
  871|      0|            }
  872|      0|            if ( u1 != nullptr ) {
  ------------------
  |  Branch (872:18): [True: 0, False: 0]
  ------------------
  873|      0|                if(u1->fBogus == U_ZERO_ERROR) {
  ------------------
  |  Branch (873:20): [True: 0, False: 0]
  ------------------
  874|      0|                    u1->fParent = t1;
  875|      0|                    r = u1;
  876|      0|                } else {
  877|       |                    /* the USR override data wasn't found, set it to be deleted */
  878|      0|                    u1->fCountExisting = 0;
  879|      0|                }
  880|      0|            }
  881|      0|        }
  882|  1.97k|        if ((hasChopped || mayHaveParent(name)) && !isRoot) {
  ------------------
  |  Branch (882:14): [True: 284, False: 1.69k]
  |  Branch (882:28): [True: 32, False: 1.65k]
  |  Branch (882:52): [True: 316, False: 0]
  ------------------
  883|    316|            if (!loadParentsExceptRoot(t1, name, UPRV_LENGTHOF(name), usingUSRData, usrDataPath, status)) {
  ------------------
  |  |   99|    316|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (883:17): [True: 0, False: 316]
  ------------------
  884|      0|                goto finish;
  885|      0|            }
  886|    316|        }
  887|  1.97k|    }
  888|       |
  889|       |    /* we could have reached this point without having any real data */
  890|       |    /* if that is the case, we need to chain in the default locale   */
  891|  5.88k|    if(r==nullptr && openType == URES_OPEN_LOCALE_DEFAULT_ROOT && !isDefault && !isRoot) {
  ------------------
  |  Branch (891:8): [True: 3.90k, False: 1.97k]
  |  Branch (891:22): [True: 0, False: 3.90k]
  |  Branch (891:67): [True: 0, False: 0]
  |  Branch (891:81): [True: 0, False: 0]
  ------------------
  892|       |        /* insert default locale */
  893|      0|        uprv_strcpy(name, defaultLocale);
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  894|      0|        r = findFirstExisting(path, name, defaultLocale, openType, &isRoot, &hasChopped, &isDefault, &intStatus);
  895|       |        // If we failed due to out-of-memory, report the failure and exit early.
  896|      0|        if (intStatus == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (896:13): [True: 0, False: 0]
  ------------------
  897|      0|            *status = intStatus;
  898|      0|            goto finish;
  899|      0|        }
  900|      0|        intStatus = U_USING_DEFAULT_WARNING;
  901|      0|        if(r != nullptr) { /* the default locale exists */
  ------------------
  |  Branch (901:12): [True: 0, False: 0]
  ------------------
  902|      0|            t1 = r;
  903|      0|            hasRealData = true;
  904|      0|            isDefault = true;
  905|       |            // TODO: Why not if (usingUSRData) { ... } like in the non-default-locale code path?
  906|      0|            if ((hasChopped || mayHaveParent(name)) && !isRoot) {
  ------------------
  |  Branch (906:18): [True: 0, False: 0]
  |  Branch (906:32): [True: 0, False: 0]
  |  Branch (906:56): [True: 0, False: 0]
  ------------------
  907|      0|                if (!loadParentsExceptRoot(t1, name, UPRV_LENGTHOF(name), usingUSRData, usrDataPath, status)) {
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (907:21): [True: 0, False: 0]
  ------------------
  908|      0|                    goto finish;
  909|      0|                }
  910|      0|            }
  911|      0|        }
  912|      0|    }
  913|       |
  914|       |    /* we could still have r == nullptr at this point - maybe even default locale is not */
  915|       |    /* present */
  916|  5.88k|    if(r == nullptr) {
  ------------------
  |  Branch (916:8): [True: 3.90k, False: 1.97k]
  ------------------
  917|  3.90k|        uprv_strcpy(name, kRootLocaleName);
  ------------------
  |  |   36|  3.90k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  3.90k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  918|  3.90k|        r = findFirstExisting(path, name, defaultLocale, openType, &isRoot, &hasChopped, &isDefault, &intStatus);
  919|       |        // If we failed due to out-of-memory, report the failure and exit early.
  920|  3.90k|        if (intStatus == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (920:13): [True: 0, False: 3.90k]
  ------------------
  921|      0|            *status = intStatus;
  922|      0|            goto finish;
  923|      0|        }
  924|  3.90k|        if(r != nullptr) {
  ------------------
  |  Branch (924:12): [True: 3.90k, False: 0]
  ------------------
  925|  3.90k|            t1 = r;
  926|  3.90k|            intStatus = U_USING_DEFAULT_WARNING;
  927|  3.90k|            hasRealData = true;
  928|  3.90k|        } else { /* we don't even have the root locale */
  929|      0|            *status = U_MISSING_RESOURCE_ERROR;
  930|      0|            goto finish;
  931|      0|        }
  932|  3.90k|    } else if(!isRoot && uprv_strcmp(t1->fName, kRootLocaleName) != 0 &&
  ------------------
  |  |   38|  1.92k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  1.92k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (932:15): [True: 1.92k, False: 46]
  |  Branch (932:26): [True: 1.92k, False: 0]
  ------------------
  933|  1.97k|            t1->fParent == nullptr && !r->fData.noFallback) {
  ------------------
  |  Branch (933:13): [True: 116, False: 1.81k]
  |  Branch (933:39): [True: 116, False: 0]
  ------------------
  934|    116|        if (!insertRootBundle(t1, status)) {
  ------------------
  |  Branch (934:13): [True: 0, False: 116]
  ------------------
  935|      0|            goto finish;
  936|      0|        }
  937|    116|        if(!hasRealData) {
  ------------------
  |  Branch (937:12): [True: 0, False: 116]
  ------------------
  938|      0|            r->fBogus = U_USING_DEFAULT_WARNING;
  939|      0|        }
  940|    116|    }
  941|       |
  942|       |    // TODO: Does this ever loop?
  943|  8.02k|    while(r != nullptr && !isRoot && t1->fParent != nullptr) {
  ------------------
  |  Branch (943:11): [True: 8.02k, False: 0]
  |  Branch (943:27): [True: 4.07k, False: 3.95k]
  |  Branch (943:38): [True: 2.14k, False: 1.92k]
  ------------------
  944|  2.14k|        t1->fParent->fCountExisting++;
  945|  2.14k|        t1 = t1->fParent;
  946|  2.14k|    }
  947|       |
  948|  5.88k|finish:
  949|  5.88k|    if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (949:8): [True: 5.88k, False: 0]
  ------------------
  950|  5.88k|        if(intStatus != U_ZERO_ERROR) {
  ------------------
  |  Branch (950:12): [True: 5.21k, False: 662]
  ------------------
  951|  5.21k|            *status = intStatus;  
  952|  5.21k|        }
  953|  5.88k|        return r;
  954|  5.88k|    } else {
  955|      0|        return nullptr;
  956|      0|    }
  957|  5.88k|}
uresbund.cpp:_ZL9initCacheP10UErrorCode:
  483|  5.88k|static void initCache(UErrorCode *status) {
  484|  5.88k|    umtx_initOnce(gCacheInitOnce, &createCache, *status);
  485|  5.88k|}
uresbund.cpp:_ZL11createCacheR10UErrorCode:
  477|      1|static void U_CALLCONV createCache(UErrorCode &status) {
  478|      1|    U_ASSERT(cache == nullptr);
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
  479|      1|    cache = uhash_open(hashEntry, compareEntries, nullptr, &status);
  ------------------
  |  | 1030|      1|#define uhash_open U_ICU_ENTRY_POINT_RENAME(uhash_open)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  480|      1|    ucln_common_registerCleanup(UCLN_COMMON_URES, ures_cleanup);
  ------------------
  |  |  617|      1|#define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  481|      1|}
uresbund.cpp:_ZL9hashEntry8UElement:
   58|  51.0k|static int32_t U_CALLCONV hashEntry(const UHashTok parm) {
   59|  51.0k|    UResourceDataEntry* b = static_cast<UResourceDataEntry*>(parm.pointer);
   60|  51.0k|    UHashTok namekey, pathkey;
   61|  51.0k|    namekey.pointer = b->fName;
   62|  51.0k|    pathkey.pointer = b->fPath;
   63|  51.0k|    return uhash_hashChars(namekey)+37u*uhash_hashChars(pathkey);
  ------------------
  |  | 1011|  51.0k|#define uhash_hashChars U_ICU_ENTRY_POINT_RENAME(uhash_hashChars)
  |  |  ------------------
  |  |  |  |  123|  51.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  51.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  51.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  return uhash_hashChars(namekey)+37u*uhash_hashChars(pathkey);
  ------------------
  |  | 1011|  51.0k|#define uhash_hashChars U_ICU_ENTRY_POINT_RENAME(uhash_hashChars)
  |  |  ------------------
  |  |  |  |  123|  51.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  51.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  51.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   64|  51.0k|}
uresbund.cpp:_ZL14compareEntries8UElementS_:
   67|  24.4k|static UBool U_CALLCONV compareEntries(const UHashTok p1, const UHashTok p2) {
   68|  24.4k|    UResourceDataEntry* b1 = static_cast<UResourceDataEntry*>(p1.pointer);
   69|  24.4k|    UResourceDataEntry* b2 = static_cast<UResourceDataEntry*>(p2.pointer);
   70|  24.4k|    UHashTok name1, name2, path1, path2;
   71|  24.4k|    name1.pointer = b1->fName;
   72|  24.4k|    name2.pointer = b2->fName;
   73|  24.4k|    path1.pointer = b1->fPath;
   74|  24.4k|    path2.pointer = b2->fPath;
   75|  24.4k|    return uhash_compareChars(name1, name2) && uhash_compareChars(path1, path2);
  ------------------
  |  |  993|  24.4k|#define uhash_compareChars U_ICU_ENTRY_POINT_RENAME(uhash_compareChars)
  |  |  ------------------
  |  |  |  |  123|  24.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  24.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  24.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  return uhash_compareChars(name1, name2) && uhash_compareChars(path1, path2);
  ------------------
  |  |  993|  12.5k|#define uhash_compareChars U_ICU_ENTRY_POINT_RENAME(uhash_compareChars)
  |  |  ------------------
  |  |  |  |  123|  12.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (75:12): [True: 12.5k, False: 11.9k]
  |  Branch (75:48): [True: 12.5k, False: 0]
  ------------------
   76|  24.4k|}
uresbund.cpp:_ZL17findFirstExistingPKcPcS0_12UResOpenTypePaS3_S3_P10UErrorCode:
  665|  9.78k|                  UBool *isRoot, UBool *foundParent, UBool *isDefault, UErrorCode* status) {
  666|  9.78k|    UResourceDataEntry *r = nullptr;
  667|  9.78k|    UBool hasRealData = false;
  668|  9.78k|    *foundParent = true; /* we're starting with a fresh name */
  669|  9.78k|    char origName[ULOC_FULLNAME_CAPACITY];
  670|       |
  671|  9.78k|    uprv_strcpy(origName, name);
  ------------------
  |  |   36|  9.78k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  9.78k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  672|  34.9k|    while(*foundParent && !hasRealData) {
  ------------------
  |  Branch (672:11): [True: 25.4k, False: 9.50k]
  |  Branch (672:27): [True: 25.2k, False: 284]
  ------------------
  673|  25.2k|        r = init_entry(name, path, status);
  674|       |        /* Null pointer test */
  675|  25.2k|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (675:13): [True: 0, False: 25.2k]
  ------------------
  676|      0|            return nullptr;
  677|      0|        }
  678|  25.2k|        *isDefault = static_cast<UBool>(uprv_strncmp(name, defaultLocale, uprv_strlen(name)) == 0);
  ------------------
  |  |   44|  25.2k|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|  25.2k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  679|  25.2k|        hasRealData = static_cast<UBool>(r->fBogus == U_ZERO_ERROR);
  680|  25.2k|        if(!hasRealData) {
  ------------------
  |  Branch (680:12): [True: 19.3k, False: 5.88k]
  ------------------
  681|       |            /* this entry is not real. We will discard it. */
  682|       |            /* However, the parent line for this entry is  */
  683|       |            /* not to be used - as there might be parent   */
  684|       |            /* lines in cache from previous openings that  */
  685|       |            /* are not updated yet. */
  686|  19.3k|            r->fCountExisting--;
  687|       |            /*entryCloseInt(r);*/
  688|  19.3k|            r = nullptr;
  689|  19.3k|            *status = U_USING_FALLBACK_WARNING;
  690|  19.3k|        } else {
  691|  5.88k|            uprv_strcpy(name, r->fName); /* this is needed for supporting aliases */
  ------------------
  |  |   36|  5.88k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  5.88k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  692|  5.88k|        }
  693|       |
  694|  25.2k|        *isRoot = static_cast<UBool>(uprv_strcmp(name, kRootLocaleName) == 0);
  ------------------
  |  |   38|  25.2k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  25.2k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  695|       |
  696|       |        /*Fallback data stuff*/
  697|  25.2k|        if (!hasRealData) {
  ------------------
  |  Branch (697:13): [True: 19.3k, False: 5.88k]
  ------------------
  698|  19.3k|            *foundParent = getParentLocaleID(name, origName, openType);
  699|  19.3k|        } else {
  700|       |            // we've already found a real resource file; what we return to the caller is the parent
  701|       |            // locale ID for inheritance, which should come from chopLocale(), not getParentLocaleID()
  702|  5.88k|            *foundParent = chopLocale(name);
  703|  5.88k|        }
  704|  25.2k|        if (*foundParent && *name == '\0') {
  ------------------
  |  Branch (704:13): [True: 15.7k, False: 9.50k]
  |  Branch (704:29): [True: 368, False: 15.3k]
  ------------------
  705|    368|            uprv_strcpy(name, "und");
  ------------------
  |  |   36|    368|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|    368|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  706|    368|        }
  707|  25.2k|    }
  708|  9.78k|    return r;
  709|  9.78k|}
uresbund.cpp:_ZL17getParentLocaleIDPcPKc12UResOpenType:
  211|  19.3k|static bool getParentLocaleID(char *name, const char *origName, UResOpenType openType) {
  212|       |    // early out if the locale ID has a variant code or ends with _
  213|  19.3k|    size_t nameLen = uprv_strlen(name);
  ------------------
  |  |   37|  19.3k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  19.3k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  214|  19.3k|    if (!nameLen || name[nameLen - 1] == '_' || hasVariant(name)) {
  ------------------
  |  Branch (214:9): [True: 0, False: 19.3k]
  |  Branch (214:21): [True: 6.45k, False: 12.8k]
  |  Branch (214:49): [True: 5.10k, False: 7.77k]
  ------------------
  215|  11.5k|        return chopLocale(name);
  216|  11.5k|    }
  217|       |    
  218|  7.77k|    UErrorCode err = U_ZERO_ERROR;
  219|  7.77k|    CharString language;
  220|  7.77k|    CharString script;
  221|  7.77k|    CharString region;
  222|  7.77k|    ulocimp_getSubtags(name, &language, &script, &region, nullptr, nullptr, err);
  ------------------
  |  | 1209|  7.77k|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|  7.77k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.77k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.77k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  223|       |
  224|  7.77k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (224:9): [True: 0, False: 7.77k]
  ------------------
  225|       |        // hopefully this never happens...
  226|      0|        return chopLocale(name);
  227|      0|    }
  228|       |    
  229|       |    // if the open type is URES_OPEN_LOCALE_DEFAULT_ROOT, first look the locale ID up in the parent locale table;
  230|       |    // if that table specifies a parent for it, return that  (we don't do this for the other open types-- if we're not
  231|       |    // falling back through the system default locale, we also want to do straight truncation fallback instead
  232|       |    // of looking things up in the parent locale table-- see https://www.unicode.org/reports/tr35/tr35.html#Parent_Locales:
  233|       |    // "Collation data, however, is an exception...")
  234|  7.77k|    if (openType == URES_OPEN_LOCALE_DEFAULT_ROOT) {
  ------------------
  |  Branch (234:9): [True: 0, False: 7.77k]
  ------------------
  235|      0|        const char* parentID = performFallbackLookup(name, parentLocaleChars, parentLocaleChars, parentLocaleTable, UPRV_LENGTHOF(parentLocaleTable));
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  236|      0|        if (parentID != nullptr) {
  ------------------
  |  Branch (236:13): [True: 0, False: 0]
  ------------------
  237|      0|            uprv_strcpy(name, parentID);
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  238|      0|            return true;
  239|      0|        }
  240|      0|    }
  241|       |
  242|  7.77k|    CharString workingLocale;
  243|       |
  244|       |    // if it's not in the parent locale table, figure out the fallback script algorithmically
  245|       |    // (see CLDR-15265 for an explanation of the algorithm)
  246|  7.77k|    if (!script.isEmpty() && !region.isEmpty()) {
  ------------------
  |  Branch (246:9): [True: 2.13k, False: 5.64k]
  |  Branch (246:30): [True: 176, False: 1.95k]
  ------------------
  247|       |        // if "name" has both script and region, is the script the default script?
  248|       |        // - if so, remove it and keep the region
  249|       |        // - if not, remove the region and keep the script
  250|    176|        if (getDefaultScript(language, region) == script) {
  ------------------
  |  Branch (250:13): [True: 86, False: 90]
  ------------------
  251|     86|            workingLocale.append(language, err).append("_", err).append(region, err);
  252|     90|        } else {
  253|     90|            workingLocale.append(language, err).append("_", err).append(script, err);
  254|     90|        }
  255|  7.59k|    } else if (!region.isEmpty()) {
  ------------------
  |  Branch (255:16): [True: 1.83k, False: 5.75k]
  ------------------
  256|       |        // if "name" has region but not script, did the original locale ID specify a script?
  257|       |        // - if yes, replace the region with the script from the original locale ID
  258|       |        // - if no, replace the region with the default script for that language and region
  259|  1.83k|        UErrorCode err = U_ZERO_ERROR;
  260|  1.83k|        CharString origNameLanguage;
  261|  1.83k|        CharString origNameScript;
  262|  1.83k|        ulocimp_getSubtags(origName, &origNameLanguage, &origNameScript, nullptr, nullptr, nullptr, err);
  ------------------
  |  | 1209|  1.83k|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|  1.83k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.83k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.83k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  263|  1.83k|        if (!origNameScript.isEmpty()) {
  ------------------
  |  Branch (263:13): [True: 86, False: 1.75k]
  ------------------
  264|     86|            workingLocale.append(language, err).append("_", err).append(origNameScript, err);
  265|  1.75k|        } else {
  266|  1.75k|            workingLocale.append(language, err).append("_", err).append(getDefaultScript(language, region), err);
  267|  1.75k|        }
  268|  5.75k|    } else if (!script.isEmpty()) {
  ------------------
  |  Branch (268:16): [True: 1.95k, False: 3.80k]
  ------------------
  269|       |        // if "name" has script but not region (and our open type if URES_OPEN_LOCALE_DEFAULT_ROOT), is the script
  270|       |        // the default script for the language?
  271|       |        // - if so, remove it from the locale ID
  272|       |        // - if not, return false to continue up the chain
  273|       |        // (we don't do this for other open types for the same reason we don't look things up in the parent
  274|       |        // locale table for other open types-- see the reference to UTS #35 above)
  275|  1.95k|        if (openType != URES_OPEN_LOCALE_DEFAULT_ROOT || getDefaultScript(language, CharString()) == script) {
  ------------------
  |  Branch (275:13): [True: 1.95k, False: 0]
  |  Branch (275:13): [True: 1.95k, False: 0]
  |  Branch (275:58): [True: 0, False: 0]
  ------------------
  276|  1.95k|            workingLocale.append(language, err);
  277|  1.95k|        } else {
  278|      0|            return false;
  279|      0|        }
  280|  3.80k|    } else {
  281|       |        // if "name" just contains a language code, return false so the calling code falls back to "root"
  282|  3.80k|        return false;
  283|  3.80k|    }
  284|  3.96k|    if (U_SUCCESS(err) && !workingLocale.isEmpty()) {
  ------------------
  |  Branch (284:9): [True: 3.96k, False: 0]
  |  Branch (284:27): [True: 3.86k, False: 102]
  ------------------
  285|  3.86k|        uprv_strcpy(name, workingLocale.data());
  ------------------
  |  |   36|  3.86k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  3.86k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  286|  3.86k|        return true;
  287|  3.86k|    } else {
  288|    102|        return false;
  289|    102|    }
  290|  3.96k|}
uresbund.cpp:_ZL10hasVariantPKc:
   94|  12.8k|static UBool hasVariant(const char* localeID) {
   95|  12.8k|    UErrorCode err = U_ZERO_ERROR;
   96|  12.8k|    CheckedArrayByteSink sink(nullptr, 0);
   97|  12.8k|    ulocimp_getSubtags(
  ------------------
  |  | 1209|  12.8k|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|  12.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   98|  12.8k|            localeID,
   99|  12.8k|            nullptr,
  100|  12.8k|            nullptr,
  101|  12.8k|            nullptr,
  102|  12.8k|            &sink,
  103|  12.8k|            nullptr,
  104|  12.8k|            err);
  105|  12.8k|    return sink.NumberOfBytesAppended() != 0;
  106|  12.8k|}
uresbund.cpp:_ZL21performFallbackLookupPKcS0_S0_PKii:
  118|  3.83k|                                         int32_t lookupTableLength) {
  119|  3.83k|    const int32_t* bottom = lookupTable;
  120|  3.83k|    const int32_t* top = lookupTable + lookupTableLength;
  121|       |
  122|  41.7k|    while (bottom < top) {
  ------------------
  |  Branch (122:12): [True: 38.4k, False: 3.34k]
  ------------------
  123|       |        // Effectively, divide by 2 and round down to an even index
  124|  38.4k|        const int32_t* middle = bottom + (((top - bottom) / 4) * 2);
  125|  38.4k|        const char* entryKey = &(keyStrs[*middle]);
  126|  38.4k|        int32_t strcmpResult = uprv_strcmp(key, entryKey);
  ------------------
  |  |   38|  38.4k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  38.4k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  127|  38.4k|        if (strcmpResult == 0) {
  ------------------
  |  Branch (127:13): [True: 483, False: 37.9k]
  ------------------
  128|    483|            return &(valueStrs[middle[1]]);
  129|  37.9k|        } else if (strcmpResult < 0) {
  ------------------
  |  Branch (129:20): [True: 19.5k, False: 18.4k]
  ------------------
  130|  19.5k|            top = middle;
  131|  19.5k|        } else {
  132|  18.4k|            bottom = middle + 2;
  133|  18.4k|        }
  134|  38.4k|    }
  135|  3.34k|    return nullptr;
  136|  3.83k|}
uresbund.cpp:_ZL16getDefaultScriptRKN6icu_7810CharStringES2_:
  138|  1.92k|static CharString getDefaultScript(const CharString& language, const CharString& region) {
  139|  1.92k|    const char* defaultScript = nullptr;
  140|  1.92k|    UErrorCode err = U_ZERO_ERROR;
  141|       |    
  142|       |    // the default script will be "Latn" if we don't find the locale ID in the tables
  143|  1.92k|    CharString result("Latn", err);
  144|       |    
  145|       |    // if we were passed both language and region, make them into a locale ID and look that up in the default
  146|       |    // script table
  147|  1.92k|    if (!region.isEmpty()) {
  ------------------
  |  Branch (147:9): [True: 1.92k, False: 0]
  ------------------
  148|  1.92k|        CharString localeID;
  149|  1.92k|        localeID.append(language, err).append("_", err).append(region, err);
  150|  1.92k|        if (U_FAILURE(err)) {
  ------------------
  |  Branch (150:13): [True: 0, False: 1.92k]
  ------------------
  151|      0|            return result;
  152|      0|        }
  153|  1.92k|        defaultScript = performFallbackLookup(localeID.data(), dsLocaleIDChars, scriptCodeChars, defaultScriptTable, UPRV_LENGTHOF(defaultScriptTable));
  ------------------
  |  |   99|  1.92k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  154|  1.92k|    }
  155|       |    
  156|       |    // if we didn't find anything, look up just the language in the default script table
  157|  1.92k|    if (defaultScript == nullptr) {
  ------------------
  |  Branch (157:9): [True: 1.90k, False: 23]
  ------------------
  158|  1.90k|        defaultScript = performFallbackLookup(language.data(), dsLocaleIDChars, scriptCodeChars, defaultScriptTable, UPRV_LENGTHOF(defaultScriptTable));
  ------------------
  |  |   99|  1.90k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  159|  1.90k|    }
  160|       |    
  161|       |    // if either lookup above succeeded, copy the result from "defaultScript" into "result"; otherwise, return "Latn"
  162|  1.92k|    if (defaultScript != nullptr) {
  ------------------
  |  Branch (162:9): [True: 483, False: 1.44k]
  ------------------
  163|    483|        result.clear();
  164|    483|        result.append(defaultScript, err);
  165|    483|    }
  166|  1.92k|    return result;
  167|  1.92k|}
uresbund.cpp:_ZL10chopLocalePc:
   83|  17.4k|static UBool chopLocale(char *name) {
   84|  17.4k|    char *i = uprv_strrchr(name, '_');
  ------------------
  |  |   42|  17.4k|#define uprv_strrchr(s, c) U_STANDARD_CPP_NAMESPACE strrchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  17.4k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
   85|       |
   86|  17.4k|    if(i != nullptr) {
  ------------------
  |  Branch (86:8): [True: 11.8k, False: 5.61k]
  ------------------
   87|  11.8k|        *i = '\0';
   88|  11.8k|        return true;
   89|  11.8k|    }
   90|       |
   91|  5.61k|    return false;
   92|  17.4k|}
uresbund.cpp:_ZL10init_entryPKcS0_P10UErrorCode:
  514|  25.3k|static UResourceDataEntry *init_entry(const char *localeID, const char *path, UErrorCode *status) {
  515|  25.3k|    UResourceDataEntry *r = nullptr;
  516|  25.3k|    UResourceDataEntry find;
  517|       |    /*int32_t hashValue;*/
  518|  25.3k|    const char *name;
  519|  25.3k|    char aliasName[100] = { 0 };
  520|  25.3k|    int32_t aliasLen = 0;
  521|       |    /*UBool isAlias = false;*/
  522|       |    /*UHashTok hashkey; */
  523|       |
  524|  25.3k|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (524:8): [True: 0, False: 25.3k]
  ------------------
  525|      0|        return nullptr;
  526|      0|    }
  527|       |
  528|       |    /* here we try to deduce the right locale name */
  529|  25.3k|    if(localeID == nullptr) { /* if localeID is nullptr, we're trying to open default locale */
  ------------------
  |  Branch (529:8): [True: 0, False: 25.3k]
  ------------------
  530|      0|        name = uloc_getDefault();
  ------------------
  |  | 1118|      0|#define uloc_getDefault U_ICU_ENTRY_POINT_RENAME(uloc_getDefault)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  531|  25.3k|    } else if(*localeID == 0) { /* if localeID is "" then we try to open root locale */
  ------------------
  |  Branch (531:15): [True: 46, False: 25.3k]
  ------------------
  532|     46|        name = kRootLocaleName;
  ------------------
  |  |   18|     46|#define kRootLocaleName         "root"
  ------------------
  533|  25.3k|    } else { /* otherwise, we'll open what we're given */
  534|  25.3k|        name = localeID;
  535|  25.3k|    }
  536|       |
  537|  25.3k|    find.fName = const_cast<char*>(name);
  538|  25.3k|    find.fPath = const_cast<char*>(path);
  539|       |
  540|       |    /* calculate the hash value of the entry */
  541|       |    /*hashkey.pointer = (void *)&find;*/
  542|       |    /*hashValue = hashEntry(hashkey);*/
  543|       |
  544|       |    /* check to see if we already have this entry */
  545|  25.3k|    r = static_cast<UResourceDataEntry*>(uhash_get(cache, &find));
  ------------------
  |  | 1007|  25.3k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  25.3k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  25.3k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  25.3k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  546|  25.3k|    if(r == nullptr) {
  ------------------
  |  Branch (546:8): [True: 12.8k, False: 12.5k]
  ------------------
  547|       |        /* if the entry is not yet in the hash table, we'll try to construct a new one */
  548|  12.8k|        r = static_cast<UResourceDataEntry*>(uprv_malloc(sizeof(UResourceDataEntry)));
  ------------------
  |  | 1524|  12.8k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  12.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  549|  12.8k|        if(r == nullptr) {
  ------------------
  |  Branch (549:12): [True: 0, False: 12.8k]
  ------------------
  550|      0|            *status = U_MEMORY_ALLOCATION_ERROR;
  551|      0|            return nullptr;
  552|      0|        }
  553|       |
  554|  12.8k|        uprv_memset(r, 0, sizeof(UResourceDataEntry));
  ------------------
  |  |  100|  12.8k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  12.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  555|       |        /*r->fHashKey = hashValue;*/
  556|       |
  557|  12.8k|        setEntryName(r, name, status);
  558|  12.8k|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (558:13): [True: 0, False: 12.8k]
  ------------------
  559|      0|            uprv_free(r);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  560|      0|            return nullptr;
  561|      0|        }
  562|       |
  563|  12.8k|        if(path != nullptr) {
  ------------------
  |  Branch (563:12): [True: 12.8k, False: 4]
  ------------------
  564|  12.8k|            r->fPath = uprv_strdup(path);
  ------------------
  |  | 1541|  12.8k|#define uprv_strdup U_ICU_ENTRY_POINT_RENAME(uprv_strdup)
  |  |  ------------------
  |  |  |  |  123|  12.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  565|  12.8k|            if(r->fPath == nullptr) {
  ------------------
  |  Branch (565:16): [True: 0, False: 12.8k]
  ------------------
  566|      0|                *status = U_MEMORY_ALLOCATION_ERROR;
  567|      0|                uprv_free(r);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  568|      0|                return nullptr;
  569|      0|            }
  570|  12.8k|        }
  571|       |
  572|       |        /* this is the actual loading */
  573|  12.8k|        res_load(&(r->fData), r->fPath, r->fName, status);
  ------------------
  |  |  208|  12.8k|#define res_load U_ICU_ENTRY_POINT_RENAME(res_load)
  |  |  ------------------
  |  |  |  |  123|  12.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  574|       |
  575|  12.8k|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (575:13): [True: 12.6k, False: 161]
  ------------------
  576|       |            /* if we failed to load due to an out-of-memory error, exit early. */
  577|  12.6k|            if (*status == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (577:17): [True: 0, False: 12.6k]
  ------------------
  578|      0|                uprv_free(r);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  579|      0|                return nullptr;
  580|      0|            }
  581|       |            /* we have no such entry in dll, so it will always use fallback */
  582|  12.6k|            *status = U_USING_FALLBACK_WARNING;
  583|  12.6k|            r->fBogus = U_USING_FALLBACK_WARNING;
  584|  12.6k|        } else { /* if we have a regular entry */
  585|    161|            Resource aliasres;
  586|    161|            if (r->fData.usesPoolBundle) {
  ------------------
  |  Branch (586:17): [True: 0, False: 161]
  ------------------
  587|      0|                r->fPool = getPoolEntry(r->fPath, status);
  588|      0|                if (U_SUCCESS(*status)) {
  ------------------
  |  Branch (588:21): [True: 0, False: 0]
  ------------------
  589|      0|                    const int32_t *poolIndexes = r->fPool->fData.pRoot + 1;
  590|      0|                    if(r->fData.pRoot[1 + URES_INDEX_POOL_CHECKSUM] == poolIndexes[URES_INDEX_POOL_CHECKSUM]) {
  ------------------
  |  Branch (590:24): [True: 0, False: 0]
  ------------------
  591|      0|                        r->fData.poolBundleKeys = reinterpret_cast<const char*>(poolIndexes + (poolIndexes[URES_INDEX_LENGTH] & 0xff));
  592|      0|                        r->fData.poolBundleStrings = r->fPool->fData.p16BitUnits;
  593|      0|                    } else {
  594|      0|                        r->fBogus = *status = U_INVALID_FORMAT_ERROR;
  595|      0|                    }
  596|      0|                } else {
  597|      0|                    r->fBogus = *status;
  598|      0|                }
  599|      0|            }
  600|    161|            if (U_SUCCESS(*status)) {
  ------------------
  |  Branch (600:17): [True: 161, False: 0]
  ------------------
  601|       |                /* handle the alias by trying to get out the %%Alias tag.*/
  602|       |                /* We'll try to get alias string from the bundle */
  603|    161|                aliasres = res_getResource(&(r->fData), "%%ALIAS");
  ------------------
  |  |  204|    161|#define res_getResource U_ICU_ENTRY_POINT_RENAME(res_getResource)
  |  |  ------------------
  |  |  |  |  123|    161|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    161|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    161|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  604|    161|                if (aliasres != RES_BOGUS) {
  ------------------
  |  |   65|    161|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (604:21): [True: 9, False: 152]
  ------------------
  605|       |                    // No tracing: called during initial data loading
  606|      9|                    const char16_t *alias = res_getStringNoTrace(&(r->fData), aliasres, &aliasLen);
  ------------------
  |  |  205|      9|#define res_getStringNoTrace U_ICU_ENTRY_POINT_RENAME(res_getStringNoTrace)
  |  |  ------------------
  |  |  |  |  123|      9|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      9|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      9|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  607|      9|                    if(alias != nullptr && aliasLen > 0) { /* if there is actual alias - unload and load new data */
  ------------------
  |  Branch (607:24): [True: 9, False: 0]
  |  Branch (607:44): [True: 9, False: 0]
  ------------------
  608|      9|                        u_UCharsToChars(alias, aliasName, aliasLen+1);
  ------------------
  |  |  211|      9|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|      9|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      9|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      9|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  609|      9|                        r->fAlias = init_entry(aliasName, path, status);
  610|      9|                    }
  611|      9|                }
  612|    161|            }
  613|    161|        }
  614|       |
  615|  12.8k|        {
  616|  12.8k|            UResourceDataEntry *oldR = nullptr;
  617|  12.8k|            if ((oldR = static_cast<UResourceDataEntry*>(uhash_get(cache, r))) == nullptr) { /* if the data is not cached */
  ------------------
  |  | 1007|  12.8k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  12.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (617:17): [True: 12.8k, False: 0]
  ------------------
  618|       |                /* just insert it in the cache */
  619|  12.8k|                UErrorCode cacheStatus = U_ZERO_ERROR;
  620|  12.8k|                uhash_put(cache, (void *)r, r, &cacheStatus);
  ------------------
  |  | 1032|  12.8k|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|  12.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  621|  12.8k|                if (U_FAILURE(cacheStatus)) {
  ------------------
  |  Branch (621:21): [True: 0, False: 12.8k]
  ------------------
  622|      0|                    *status = cacheStatus;
  623|      0|                    free_entry(r);
  624|      0|                    r = nullptr;
  625|      0|                }
  626|  12.8k|            } else {
  627|       |                /* somebody have already inserted it while we were working, discard newly opened data */
  628|       |                /* Also, we could get here IF we opened an alias */
  629|      0|                free_entry(r);
  630|      0|                r = oldR;
  631|      0|            }
  632|  12.8k|        }
  633|       |
  634|  12.8k|    }
  635|  25.3k|    if(r != nullptr) {
  ------------------
  |  Branch (635:8): [True: 25.3k, False: 0]
  ------------------
  636|       |        /* return the real bundle */
  637|  25.4k|        while(r->fAlias != nullptr) {
  ------------------
  |  Branch (637:15): [True: 111, False: 25.3k]
  ------------------
  638|    111|            r = r->fAlias;
  639|    111|        }
  640|  25.3k|        r->fCountExisting++; /* we increase its reference count */
  641|       |        /* if the resource has a warning */
  642|       |        /* we don't want to overwrite a status with no error */
  643|  25.3k|        if(r->fBogus != U_ZERO_ERROR && U_SUCCESS(*status)) {
  ------------------
  |  Branch (643:12): [True: 19.3k, False: 6.04k]
  |  Branch (643:41): [True: 19.3k, False: 0]
  ------------------
  644|  19.3k|             *status = r->fBogus; /* set the returning status */
  645|  19.3k|        }
  646|  25.3k|    }
  647|  25.3k|    return r;
  648|  25.3k|}
uresbund.cpp:_ZL12setEntryNameP18UResourceDataEntryPKcP10UErrorCode:
  489|  12.8k|static void setEntryName(UResourceDataEntry *res, const char *name, UErrorCode *status) {
  490|  12.8k|    int32_t len = static_cast<int32_t>(uprv_strlen(name));
  ------------------
  |  |   37|  12.8k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  12.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  491|  12.8k|    if(res->fName != nullptr && res->fName != res->fNameBuffer) {
  ------------------
  |  Branch (491:8): [True: 0, False: 12.8k]
  |  Branch (491:33): [True: 0, False: 0]
  ------------------
  492|      0|        uprv_free(res->fName);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  493|      0|    }
  494|  12.8k|    if (len < static_cast<int32_t>(sizeof(res->fNameBuffer))) {
  ------------------
  |  Branch (494:9): [True: 778, False: 12.0k]
  ------------------
  495|    778|        res->fName = res->fNameBuffer;
  496|    778|    }
  497|  12.0k|    else {
  498|  12.0k|        res->fName = static_cast<char*>(uprv_malloc(len + 1));
  ------------------
  |  | 1524|  12.0k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  12.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  499|  12.0k|    }
  500|  12.8k|    if(res->fName == nullptr) {
  ------------------
  |  Branch (500:8): [True: 0, False: 12.8k]
  ------------------
  501|      0|        *status = U_MEMORY_ALLOCATION_ERROR;
  502|  12.8k|    } else {
  503|  12.8k|        uprv_strcpy(res->fName, name);
  ------------------
  |  |   36|  12.8k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  12.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  504|  12.8k|    }
  505|  12.8k|}
uresbund.cpp:_ZL13mayHaveParentPc:
  297|  1.70k|static UBool mayHaveParent(char *name) {
  298|  1.70k|    return (name[0] != 0 && uprv_strstr("nb nn",name) != nullptr);
  ------------------
  |  |   41|  1.70k|#define uprv_strstr(s, c) U_STANDARD_CPP_NAMESPACE strstr(s, c)
  |  |  ------------------
  |  |  |  |  393|  1.70k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (298:13): [True: 1.70k, False: 0]
  |  Branch (298:29): [True: 33, False: 1.67k]
  ------------------
  299|  1.70k|}
uresbund.cpp:_ZL21loadParentsExceptRootRP18UResourceDataEntryPciaS2_P10UErrorCode:
  746|    316|                      UBool usingUSRData, char usrDataPath[], UErrorCode *status) {
  747|    316|    if (U_FAILURE(*status)) { return false; }
  ------------------
  |  Branch (747:9): [True: 0, False: 316]
  ------------------
  748|    316|    UBool checkParent = true;
  749|    347|    while (checkParent && t1->fParent == nullptr && !t1->fData.noFallback &&
  ------------------
  |  Branch (749:12): [True: 330, False: 17]
  |  Branch (749:27): [True: 32, False: 298]
  |  Branch (749:53): [True: 32, False: 0]
  ------------------
  750|    347|            res_getResource(&t1->fData,"%%ParentIsRoot") == RES_BOGUS) {
  ------------------
  |  |  204|     32|#define res_getResource U_ICU_ENTRY_POINT_RENAME(res_getResource)
  |  |  ------------------
  |  |  |  |  123|     32|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     32|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     32|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          res_getResource(&t1->fData,"%%ParentIsRoot") == RES_BOGUS) {
  ------------------
  |  |   65|     32|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (750:13): [True: 32, False: 0]
  ------------------
  751|     32|        Resource parentRes = res_getResource(&t1->fData, "%%Parent");
  ------------------
  |  |  204|     32|#define res_getResource U_ICU_ENTRY_POINT_RENAME(res_getResource)
  |  |  ------------------
  |  |  |  |  123|     32|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     32|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     32|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  752|     32|        if (parentRes != RES_BOGUS) {  // An explicit parent was found.
  ------------------
  |  |   65|     32|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (752:13): [True: 3, False: 29]
  ------------------
  753|      3|            int32_t parentLocaleLen = 0;
  754|       |            // No tracing: called during initial data loading
  755|      3|            const char16_t *parentLocaleName = res_getStringNoTrace(&(t1->fData), parentRes, &parentLocaleLen);
  ------------------
  |  |  205|      3|#define res_getStringNoTrace U_ICU_ENTRY_POINT_RENAME(res_getStringNoTrace)
  |  |  ------------------
  |  |  |  |  123|      3|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      3|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      3|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  756|      3|            if(parentLocaleName != nullptr && 0 < parentLocaleLen && parentLocaleLen < nameCapacity) {
  ------------------
  |  Branch (756:16): [True: 3, False: 0]
  |  Branch (756:47): [True: 3, False: 0]
  |  Branch (756:70): [True: 3, False: 0]
  ------------------
  757|      3|                u_UCharsToChars(parentLocaleName, name, parentLocaleLen + 1);
  ------------------
  |  |  211|      3|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|      3|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      3|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      3|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  758|      3|                if (uprv_strcmp(name, kRootLocaleName) == 0) {
  ------------------
  |  |   38|      3|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      3|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (758:21): [True: 1, False: 2]
  ------------------
  759|      1|                    return true;
  760|      1|                }
  761|      3|            }
  762|      3|        }
  763|       |        // Insert regular parents.
  764|     31|        UErrorCode parentStatus = U_ZERO_ERROR;
  765|     31|        UResourceDataEntry *t2 = init_entry(name, t1->fPath, &parentStatus);
  766|     31|        if (U_FAILURE(parentStatus)) {
  ------------------
  |  Branch (766:13): [True: 0, False: 31]
  ------------------
  767|      0|            *status = parentStatus;
  768|      0|            return false;
  769|      0|        }
  770|     31|        UResourceDataEntry *u2 = nullptr;
  771|     31|        UErrorCode usrStatus = U_ZERO_ERROR;
  772|     31|        if (usingUSRData) {  // This code inserts user override data into the inheritance chain.
  ------------------
  |  Branch (772:13): [True: 0, False: 31]
  ------------------
  773|      0|            u2 = init_entry(name, usrDataPath, &usrStatus);
  774|       |            // If we failed due to out-of-memory, report that to the caller and exit early.
  775|      0|            if (usrStatus == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (775:17): [True: 0, False: 0]
  ------------------
  776|      0|                *status = usrStatus;
  777|      0|                return false;
  778|      0|            }
  779|      0|        }
  780|       |
  781|     31|        if (usingUSRData && U_SUCCESS(usrStatus) && u2->fBogus == U_ZERO_ERROR) {
  ------------------
  |  Branch (781:13): [True: 0, False: 31]
  |  Branch (781:29): [True: 0, False: 0]
  |  Branch (781:53): [True: 0, False: 0]
  ------------------
  782|      0|            t1->fParent = u2;
  783|      0|            u2->fParent = t2;
  784|     31|        } else {
  785|     31|            t1->fParent = t2;
  786|     31|            if (usingUSRData) {
  ------------------
  |  Branch (786:17): [True: 0, False: 31]
  ------------------
  787|       |                // The USR override data wasn't found, set it to be deleted.
  788|      0|                u2->fCountExisting = 0;
  789|      0|            }
  790|     31|        }
  791|     31|        t1 = t2;
  792|     31|        checkParent = chopLocale(name) || mayHaveParent(name);
  ------------------
  |  Branch (792:23): [True: 13, False: 18]
  |  Branch (792:43): [True: 1, False: 17]
  ------------------
  793|     31|    }
  794|    315|    return true;
  795|    316|}
uresbund.cpp:_ZL16insertRootBundleRP18UResourceDataEntryP10UErrorCode:
  798|    116|insertRootBundle(UResourceDataEntry *&t1, UErrorCode *status) {
  799|    116|    if (U_FAILURE(*status)) { return false; }
  ------------------
  |  Branch (799:9): [True: 0, False: 116]
  ------------------
  800|    116|    UErrorCode parentStatus = U_ZERO_ERROR;
  801|    116|    UResourceDataEntry *t2 = init_entry(kRootLocaleName, t1->fPath, &parentStatus);
  ------------------
  |  |   18|    116|#define kRootLocaleName         "root"
  ------------------
  802|    116|    if (U_FAILURE(parentStatus)) {
  ------------------
  |  Branch (802:9): [True: 0, False: 116]
  ------------------
  803|      0|        *status = parentStatus;
  804|      0|        return false;
  805|      0|    }
  806|    116|    t1->fParent = t2;
  807|    116|    t1 = t2;
  808|    116|    return true;
  809|    116|}
uresbund.cpp:_ZL15entryOpenDirectPKcS0_P10UErrorCode:
  966|      6|entryOpenDirect(const char* path, const char* localeID, UErrorCode* status) {
  967|      6|    initCache(status);
  968|      6|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (968:8): [True: 0, False: 6]
  ------------------
  969|      0|        return nullptr;
  970|      0|    }
  971|       |
  972|       |    // Note: We need to query the default locale *before* locking resbMutex.
  973|       |    // If the localeID is nullptr, then we want to use the default locale.
  974|      6|    if (localeID == nullptr) {
  ------------------
  |  Branch (974:9): [True: 0, False: 6]
  ------------------
  975|      0|        localeID = uloc_getDefault();
  ------------------
  |  | 1118|      0|#define uloc_getDefault U_ICU_ENTRY_POINT_RENAME(uloc_getDefault)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  976|      6|    } else if (*localeID == 0) {
  ------------------
  |  Branch (976:16): [True: 0, False: 6]
  ------------------
  977|       |        // If the localeID is "", then we want to use the root locale.
  978|      0|        localeID = kRootLocaleName;
  ------------------
  |  |   18|      0|#define kRootLocaleName         "root"
  ------------------
  979|      0|    }
  980|       |
  981|      6|    Mutex lock(&resbMutex);
  982|       |
  983|       |    // findFirstExisting() without fallbacks.
  984|      6|    UResourceDataEntry *r = init_entry(localeID, path, status);
  985|      6|    if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (985:8): [True: 6, False: 0]
  ------------------
  986|      6|        if(r->fBogus != U_ZERO_ERROR) {
  ------------------
  |  Branch (986:12): [True: 0, False: 6]
  ------------------
  987|      0|            r->fCountExisting--;
  988|      0|            r = nullptr;
  989|      0|        }
  990|      6|    } else {
  991|      0|        r = nullptr;
  992|      0|    }
  993|       |
  994|       |    // Some code depends on the ures_openDirect() bundle to have a parent bundle chain,
  995|       |    // unless it is marked with "nofallback".
  996|      6|    UResourceDataEntry *t1 = r;
  997|      6|    if(r != nullptr && uprv_strcmp(localeID, kRootLocaleName) != 0 &&  // not root
  ------------------
  |  |   38|      6|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      6|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (997:8): [True: 6, False: 0]
  |  Branch (997:24): [True: 6, False: 0]
  ------------------
  998|      6|            r->fParent == nullptr && !r->fData.noFallback &&
  ------------------
  |  Branch (998:13): [True: 6, False: 0]
  |  Branch (998:38): [True: 0, False: 6]
  ------------------
  999|      6|            uprv_strlen(localeID) < ULOC_FULLNAME_CAPACITY) {
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                          uprv_strlen(localeID) < ULOC_FULLNAME_CAPACITY) {
  ------------------
  |  |  264|      0|#define ULOC_FULLNAME_CAPACITY 157
  ------------------
  |  Branch (999:13): [True: 0, False: 0]
  ------------------
 1000|      0|        char name[ULOC_FULLNAME_CAPACITY];
 1001|      0|        uprv_strcpy(name, localeID);
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1002|      0|        if(!chopLocale(name) || uprv_strcmp(name, kRootLocaleName) == 0 ||
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1002:12): [True: 0, False: 0]
  |  Branch (1002:33): [True: 0, False: 0]
  ------------------
 1003|      0|                loadParentsExceptRoot(t1, name, UPRV_LENGTHOF(name), false, nullptr, status)) {
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1003:17): [True: 0, False: 0]
  ------------------
 1004|      0|            if(uprv_strcmp(t1->fName, kRootLocaleName) != 0 && t1->fParent == nullptr) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1004:16): [True: 0, False: 0]
  |  Branch (1004:64): [True: 0, False: 0]
  ------------------
 1005|      0|                insertRootBundle(t1, status);
 1006|      0|            }
 1007|      0|        }
 1008|      0|        if(U_FAILURE(*status)) {
  ------------------
  |  Branch (1008:12): [True: 0, False: 0]
  ------------------
 1009|      0|            r = nullptr;
 1010|      0|        }
 1011|      0|    }
 1012|       |
 1013|      6|    if(r != nullptr) {
  ------------------
  |  Branch (1013:8): [True: 6, False: 0]
  ------------------
 1014|       |        // TODO: Does this ever loop?
 1015|      6|        while(t1->fParent != nullptr) {
  ------------------
  |  Branch (1015:15): [True: 0, False: 6]
  ------------------
 1016|      0|            t1->fParent->fCountExisting++;
 1017|      0|            t1 = t1->fParent;
 1018|      0|        }
 1019|      6|    }
 1020|      6|    return r;
 1021|      6|}

res_load_78:
  260|  12.8k|         const char *path, const char *name, UErrorCode *errorCode) {
  261|  12.8k|    UVersionInfo formatVersion;
  262|       |
  263|  12.8k|    uprv_memset(pResData, 0, sizeof(ResourceData));
  ------------------
  |  |  100|  12.8k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  12.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  264|       |
  265|       |    /* load the ResourceBundle file */
  266|  12.8k|    pResData->data=udata_openChoice(path, "res", name, isAcceptable, formatVersion, errorCode);
  ------------------
  |  |  894|  12.8k|#define udata_openChoice U_ICU_ENTRY_POINT_RENAME(udata_openChoice)
  |  |  ------------------
  |  |  |  |  123|  12.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  267|  12.8k|    if(U_FAILURE(*errorCode)) {
  ------------------
  |  Branch (267:8): [True: 12.6k, False: 161]
  ------------------
  268|  12.6k|        return;
  269|  12.6k|    }
  270|       |
  271|       |    /* get its memory and initialize *pResData */
  272|    161|    res_init(pResData, formatVersion, udata_getMemory(pResData->data), -1, errorCode);
  ------------------
  |  |  891|    161|#define udata_getMemory U_ICU_ENTRY_POINT_RENAME(udata_getMemory)
  |  |  ------------------
  |  |  |  |  123|    161|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    161|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    161|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  273|    161|}
res_getStringNoTrace_78:
  311|  82.2k|res_getStringNoTrace(const ResourceData *pResData, Resource res, int32_t *pLength) {
  312|  82.2k|    const char16_t *p;
  313|  82.2k|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|  82.2k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  314|  82.2k|    int32_t length;
  315|  82.2k|    if(RES_GET_TYPE(res)==URES_STRING_V2) {
  ------------------
  |  |   68|  82.2k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (315:8): [True: 82.2k, False: 1]
  ------------------
  316|  82.2k|        int32_t first;
  317|  82.2k|        if((int32_t)offset<pResData->poolStringIndexLimit) {
  ------------------
  |  Branch (317:12): [True: 0, False: 82.2k]
  ------------------
  318|      0|            p=(const char16_t *)pResData->poolBundleStrings+offset;
  319|  82.2k|        } else {
  320|  82.2k|            p=(const char16_t *)pResData->p16BitUnits+(offset-pResData->poolStringIndexLimit);
  321|  82.2k|        }
  322|  82.2k|        first=*p;
  323|  82.2k|        if(!U16_IS_TRAIL(first)) {
  ------------------
  |  |   67|  82.2k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  ------------------
  |  Branch (323:12): [True: 82.1k, False: 126]
  ------------------
  324|  82.1k|            length=u_strlen(p);
  ------------------
  |  |  393|  82.1k|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|  82.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  82.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  82.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  325|  82.1k|        } else if(first<0xdfef) {
  ------------------
  |  Branch (325:19): [True: 112, False: 14]
  ------------------
  326|    112|            length=first&0x3ff;
  327|    112|            ++p;
  328|    112|        } else if(first<0xdfff) {
  ------------------
  |  Branch (328:19): [True: 14, False: 0]
  ------------------
  329|     14|            length=((first-0xdfef)<<16)|p[1];
  330|     14|            p+=2;
  331|     14|        } else {
  332|      0|            length=((int32_t)p[1]<<16)|p[2];
  333|      0|            p+=3;
  334|      0|        }
  335|  82.2k|    } else if(res==offset) /* RES_GET_TYPE(res)==URES_STRING */ {
  ------------------
  |  Branch (335:15): [True: 1, False: 0]
  ------------------
  336|      1|        const int32_t *p32= res==0 ? &gEmptyString.length : pResData->pRoot+res;
  ------------------
  |  Branch (336:29): [True: 1, False: 0]
  ------------------
  337|      1|        length=*p32++;
  338|      1|        p=(const char16_t *)p32;
  339|      1|    } else {
  340|      0|        p=nullptr;
  341|      0|        length=0;
  342|      0|    }
  343|  82.2k|    if(pLength) {
  ------------------
  |  Branch (343:8): [True: 80.9k, False: 1.29k]
  ------------------
  344|  80.9k|        *pLength=length;
  345|  80.9k|    }
  346|  82.2k|    return p;
  347|  82.2k|}
res_getAlias_78:
  420|      3|res_getAlias(const ResourceData *pResData, Resource res, int32_t *pLength) {
  421|      3|    const char16_t *p;
  422|      3|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|      3|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  423|      3|    int32_t length;
  424|      3|    if(RES_GET_TYPE(res)==URES_ALIAS) {
  ------------------
  |  |   68|      3|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (424:8): [True: 3, False: 0]
  ------------------
  425|      3|        const int32_t *p32= offset==0 ? &gEmptyString.length : pResData->pRoot+offset;
  ------------------
  |  Branch (425:29): [True: 0, False: 3]
  ------------------
  426|      3|        length=*p32++;
  427|      3|        p=(const char16_t *)p32;
  428|      3|    } else {
  429|      0|        p=nullptr;
  430|      0|        length=0;
  431|      0|    }
  432|      3|    if(pLength) {
  ------------------
  |  Branch (432:8): [True: 3, False: 0]
  ------------------
  433|      3|        *pLength=length;
  434|      3|    }
  435|      3|    return p;
  436|      3|}
res_getBinaryNoTrace_78:
  439|    180|res_getBinaryNoTrace(const ResourceData *pResData, Resource res, int32_t *pLength) {
  440|    180|    const uint8_t *p;
  441|    180|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|    180|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  442|    180|    int32_t length;
  443|    180|    if(RES_GET_TYPE(res)==URES_BINARY) {
  ------------------
  |  |   68|    180|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (443:8): [True: 180, False: 0]
  ------------------
  444|    180|        const int32_t *p32= offset==0 ? (const int32_t*)&gEmpty32 : pResData->pRoot+offset;
  ------------------
  |  Branch (444:29): [True: 0, False: 180]
  ------------------
  445|    180|        length=*p32++;
  446|    180|        p=(const uint8_t *)p32;
  447|    180|    } else {
  448|      0|        p=nullptr;
  449|      0|        length=0;
  450|      0|    }
  451|    180|    if(pLength) {
  ------------------
  |  Branch (451:8): [True: 180, False: 0]
  ------------------
  452|    180|        *pLength=length;
  453|    180|    }
  454|    180|    return p;
  455|    180|}
res_countArrayItems_78:
  477|  89.4k|res_countArrayItems(const ResourceData *pResData, Resource res) {
  478|  89.4k|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|  89.4k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  479|  89.4k|    switch(RES_GET_TYPE(res)) {
  ------------------
  |  |   68|  89.4k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  480|      0|    case URES_STRING:
  ------------------
  |  Branch (480:5): [True: 0, False: 89.4k]
  ------------------
  481|  80.8k|    case URES_STRING_V2:
  ------------------
  |  Branch (481:5): [True: 80.8k, False: 8.67k]
  ------------------
  482|  80.9k|    case URES_BINARY:
  ------------------
  |  Branch (482:5): [True: 180, False: 89.3k]
  ------------------
  483|  80.9k|    case URES_ALIAS:
  ------------------
  |  Branch (483:5): [True: 0, False: 89.4k]
  ------------------
  484|  80.9k|    case URES_INT:
  ------------------
  |  Branch (484:5): [True: 0, False: 89.4k]
  ------------------
  485|  80.9k|    case URES_INT_VECTOR:
  ------------------
  |  Branch (485:5): [True: 0, False: 89.4k]
  ------------------
  486|  80.9k|        return 1;
  487|      0|    case URES_ARRAY:
  ------------------
  |  Branch (487:5): [True: 0, False: 89.4k]
  ------------------
  488|      0|    case URES_TABLE32:
  ------------------
  |  Branch (488:5): [True: 0, False: 89.4k]
  ------------------
  489|      0|        return offset==0 ? 0 : *(pResData->pRoot+offset);
  ------------------
  |  Branch (489:16): [True: 0, False: 0]
  ------------------
  490|  6.99k|    case URES_TABLE:
  ------------------
  |  Branch (490:5): [True: 6.99k, False: 82.4k]
  ------------------
  491|  6.99k|        return offset==0 ? 0 : *((const uint16_t *)(pResData->pRoot+offset));
  ------------------
  |  Branch (491:16): [True: 604, False: 6.38k]
  ------------------
  492|      0|    case URES_ARRAY16:
  ------------------
  |  Branch (492:5): [True: 0, False: 89.4k]
  ------------------
  493|  1.50k|    case URES_TABLE16:
  ------------------
  |  Branch (493:5): [True: 1.50k, False: 87.9k]
  ------------------
  494|  1.50k|        return pResData->p16BitUnits[offset];
  495|      0|    default:
  ------------------
  |  Branch (495:5): [True: 0, False: 89.4k]
  ------------------
  496|      0|        return 0;
  497|  89.4k|    }
  498|  89.4k|}
_ZN6icu_7817ResourceDataValueD2Ev:
  502|      1|ResourceDataValue::~ResourceDataValue() {}
_ZNK6icu_7817ResourceDataValue8getTableER10UErrorCode:
  598|      3|ResourceTable ResourceDataValue::getTable(UErrorCode &errorCode) const {
  599|      3|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (599:8): [True: 0, False: 3]
  ------------------
  600|      0|        return {};
  601|      0|    }
  602|      3|    const uint16_t *keys16 = nullptr;
  603|      3|    const int32_t *keys32 = nullptr;
  604|      3|    const uint16_t *items16 = nullptr;
  605|      3|    const Resource *items32 = nullptr;
  606|      3|    uint32_t offset = RES_GET_OFFSET(res);
  ------------------
  |  |   69|      3|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  607|      3|    int32_t length = 0;
  608|      3|    switch(RES_GET_TYPE(res)) {
  ------------------
  |  |   68|      3|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  609|      1|    case URES_TABLE:
  ------------------
  |  Branch (609:5): [True: 1, False: 2]
  ------------------
  610|      1|        if (offset != 0) {  // empty if offset==0
  ------------------
  |  Branch (610:13): [True: 1, False: 0]
  ------------------
  611|      1|            keys16 = reinterpret_cast<const uint16_t*>(getData().pRoot + offset);
  612|      1|            length = *keys16++;
  613|      1|            items32 = reinterpret_cast<const Resource*>(keys16 + length + (~length & 1));
  614|      1|        }
  615|      1|        break;
  616|      2|    case URES_TABLE16:
  ------------------
  |  Branch (616:5): [True: 2, False: 1]
  ------------------
  617|      2|        keys16 = getData().p16BitUnits+offset;
  618|      2|        length = *keys16++;
  619|      2|        items16 = keys16 + length;
  620|      2|        break;
  621|      0|    case URES_TABLE32:
  ------------------
  |  Branch (621:5): [True: 0, False: 3]
  ------------------
  622|      0|        if (offset != 0) {  // empty if offset==0
  ------------------
  |  Branch (622:13): [True: 0, False: 0]
  ------------------
  623|      0|            keys32 = getData().pRoot+offset;
  624|      0|            length = *keys32++;
  625|      0|            items32 = reinterpret_cast<const Resource*>(keys32) + length;
  626|      0|        }
  627|      0|        break;
  628|      0|    default:
  ------------------
  |  Branch (628:5): [True: 0, False: 3]
  ------------------
  629|      0|        errorCode = U_RESOURCE_TYPE_MISMATCH;
  630|      0|        return {};
  631|      3|    }
  632|      3|    return ResourceTable(keys16, keys32, items16, items32, length, fTraceInfo);
  633|      3|}
res_getTableItemByKey_78:
  713|  7.55k|                      int32_t *indexR, const char **key) {
  714|  7.55k|    uint32_t offset=RES_GET_OFFSET(table);
  ------------------
  |  |   69|  7.55k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  715|  7.55k|    int32_t length;
  716|  7.55k|    int32_t idx;
  717|  7.55k|    if(key == nullptr || *key == nullptr) {
  ------------------
  |  Branch (717:8): [True: 0, False: 7.55k]
  |  Branch (717:26): [True: 0, False: 7.55k]
  ------------------
  718|      0|        return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  719|      0|    }
  720|  7.55k|    switch(RES_GET_TYPE(table)) {
  ------------------
  |  |   68|  7.55k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  721|  5.90k|    case URES_TABLE: {
  ------------------
  |  Branch (721:5): [True: 5.90k, False: 1.64k]
  ------------------
  722|  5.90k|        if (offset!=0) { /* empty if offset==0 */
  ------------------
  |  Branch (722:13): [True: 5.53k, False: 372]
  ------------------
  723|  5.53k|            const uint16_t *p= (const uint16_t *)(pResData->pRoot+offset);
  724|  5.53k|            length=*p++;
  725|  5.53k|            *indexR=idx=_res_findTableItem(pResData, p, length, *key, key);
  726|  5.53k|            if(idx>=0) {
  ------------------
  |  Branch (726:16): [True: 3.87k, False: 1.65k]
  ------------------
  727|  3.87k|                const Resource *p32=(const Resource *)(p+length+(~length&1));
  728|  3.87k|                return p32[idx];
  729|  3.87k|            }
  730|  5.53k|        }
  731|  2.02k|        break;
  732|  5.90k|    }
  733|  2.02k|    case URES_TABLE16: {
  ------------------
  |  Branch (733:5): [True: 1.64k, False: 5.90k]
  ------------------
  734|  1.64k|        const uint16_t *p=pResData->p16BitUnits+offset;
  735|  1.64k|        length=*p++;
  736|  1.64k|        *indexR=idx=_res_findTableItem(pResData, p, length, *key, key);
  737|  1.64k|        if(idx>=0) {
  ------------------
  |  Branch (737:12): [True: 1.38k, False: 265]
  ------------------
  738|  1.38k|            return makeResourceFrom16(pResData, p[length+idx]);
  739|  1.38k|        }
  740|    265|        break;
  741|  1.64k|    }
  742|    265|    case URES_TABLE32: {
  ------------------
  |  Branch (742:5): [True: 0, False: 7.55k]
  ------------------
  743|      0|        if (offset!=0) { /* empty if offset==0 */
  ------------------
  |  Branch (743:13): [True: 0, False: 0]
  ------------------
  744|      0|            const int32_t *p= pResData->pRoot+offset;
  745|      0|            length=*p++;
  746|      0|            *indexR=idx=_res_findTable32Item(pResData, p, length, *key, key);
  747|      0|            if(idx>=0) {
  ------------------
  |  Branch (747:16): [True: 0, False: 0]
  ------------------
  748|      0|                return (Resource)p[length+idx];
  749|      0|            }
  750|      0|        }
  751|      0|        break;
  752|      0|    }
  753|      0|    default:
  ------------------
  |  Branch (753:5): [True: 0, False: 7.55k]
  ------------------
  754|      0|        break;
  755|  7.55k|    }
  756|  2.29k|    return RES_BOGUS;
  ------------------
  |  |   65|  2.29k|#define RES_BOGUS 0xffffffff
  ------------------
  757|  7.55k|}
res_getTableItemByIndex_78:
  761|  81.0k|                        int32_t indexR, const char **key) {
  762|  81.0k|    uint32_t offset=RES_GET_OFFSET(table);
  ------------------
  |  |   69|  81.0k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  763|  81.0k|    int32_t length;
  764|  81.0k|    if (indexR < 0) {
  ------------------
  |  Branch (764:9): [True: 0, False: 81.0k]
  ------------------
  765|      0|        return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  766|      0|    }
  767|  81.0k|    switch(RES_GET_TYPE(table)) {
  ------------------
  |  |   68|  81.0k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  768|  1.29k|    case URES_TABLE: {
  ------------------
  |  Branch (768:5): [True: 1.29k, False: 79.7k]
  ------------------
  769|  1.29k|        if (offset != 0) { /* empty if offset==0 */
  ------------------
  |  Branch (769:13): [True: 1.29k, False: 0]
  ------------------
  770|  1.29k|            const uint16_t *p= (const uint16_t *)(pResData->pRoot+offset);
  771|  1.29k|            length=*p++;
  772|  1.29k|            if(indexR<length) {
  ------------------
  |  Branch (772:16): [True: 1.29k, False: 0]
  ------------------
  773|  1.29k|                const Resource *p32=(const Resource *)(p+length+(~length&1));
  774|  1.29k|                if(key!=nullptr) {
  ------------------
  |  Branch (774:20): [True: 1.29k, False: 0]
  ------------------
  775|  1.29k|                    *key=RES_GET_KEY16(pResData, p[indexR]);
  ------------------
  |  |   44|  1.29k|    ((keyOffset)<(pResData)->localKeyLimit ? \
  |  |  ------------------
  |  |  |  Branch (44:6): [True: 1.29k, False: 0]
  |  |  ------------------
  |  |   45|  1.29k|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   46|  1.29k|        (pResData)->poolBundleKeys+(keyOffset)-(pResData)->localKeyLimit)
  ------------------
  776|  1.29k|                }
  777|  1.29k|                return p32[indexR];
  778|  1.29k|            }
  779|  1.29k|        }
  780|      0|        break;
  781|  1.29k|    }
  782|  79.7k|    case URES_TABLE16: {
  ------------------
  |  Branch (782:5): [True: 79.7k, False: 1.29k]
  ------------------
  783|  79.7k|        const uint16_t *p=pResData->p16BitUnits+offset;
  784|  79.7k|        length=*p++;
  785|  79.7k|        if(indexR<length) {
  ------------------
  |  Branch (785:12): [True: 79.7k, False: 0]
  ------------------
  786|  79.7k|            if(key!=nullptr) {
  ------------------
  |  Branch (786:16): [True: 79.7k, False: 0]
  ------------------
  787|  79.7k|                *key=RES_GET_KEY16(pResData, p[indexR]);
  ------------------
  |  |   44|  79.7k|    ((keyOffset)<(pResData)->localKeyLimit ? \
  |  |  ------------------
  |  |  |  Branch (44:6): [True: 79.7k, False: 0]
  |  |  ------------------
  |  |   45|  79.7k|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   46|  79.7k|        (pResData)->poolBundleKeys+(keyOffset)-(pResData)->localKeyLimit)
  ------------------
  788|  79.7k|            }
  789|  79.7k|            return makeResourceFrom16(pResData, p[length+indexR]);
  790|  79.7k|        }
  791|      0|        break;
  792|  79.7k|    }
  793|      0|    case URES_TABLE32: {
  ------------------
  |  Branch (793:5): [True: 0, False: 81.0k]
  ------------------
  794|      0|        if (offset != 0) { /* empty if offset==0 */
  ------------------
  |  Branch (794:13): [True: 0, False: 0]
  ------------------
  795|      0|            const int32_t *p= pResData->pRoot+offset;
  796|      0|            length=*p++;
  797|      0|            if(indexR<length) {
  ------------------
  |  Branch (797:16): [True: 0, False: 0]
  ------------------
  798|      0|                if(key!=nullptr) {
  ------------------
  |  Branch (798:20): [True: 0, False: 0]
  ------------------
  799|      0|                    *key=RES_GET_KEY32(pResData, p[indexR]);
  ------------------
  |  |   49|      0|    ((keyOffset)>=0 ? \
  |  |  ------------------
  |  |  |  Branch (49:6): [True: 0, False: 0]
  |  |  ------------------
  |  |   50|      0|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   51|      0|        (pResData)->poolBundleKeys+((keyOffset)&0x7fffffff))
  ------------------
  800|      0|                }
  801|      0|                return (Resource)p[length+indexR];
  802|      0|            }
  803|      0|        }
  804|      0|        break;
  805|      0|    }
  806|      0|    default:
  ------------------
  |  Branch (806:5): [True: 0, False: 81.0k]
  ------------------
  807|      0|        break;
  808|  81.0k|    }
  809|      0|    return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  810|  81.0k|}
res_getResource_78:
  813|    225|res_getResource(const ResourceData *pResData, const char *key) {
  814|    225|    const char *realKey=key;
  815|    225|    int32_t idx;
  816|    225|    return res_getTableItemByKey(pResData, pResData->rootRes, &idx, &realKey);
  ------------------
  |  |  207|    225|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|    225|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    225|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    225|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  817|    225|}
_ZNK6icu_7813ResourceTable14getKeyAndValueEiRPKcRNS_13ResourceValueE:
  821|    944|                                         const char *&key, icu::ResourceValue &value) const {
  822|    944|    if(0 <= i && i < length) {
  ------------------
  |  Branch (822:8): [True: 944, False: 0]
  |  Branch (822:18): [True: 941, False: 3]
  ------------------
  823|    941|        icu::ResourceDataValue &rdValue = static_cast<icu::ResourceDataValue &>(value);
  824|    941|        if (keys16 != nullptr) {
  ------------------
  |  Branch (824:13): [True: 941, False: 0]
  ------------------
  825|    941|            key = RES_GET_KEY16(&rdValue.getData(), keys16[i]);
  ------------------
  |  |   44|    941|    ((keyOffset)<(pResData)->localKeyLimit ? \
  |  |  ------------------
  |  |  |  Branch (44:6): [True: 941, False: 0]
  |  |  ------------------
  |  |   45|    941|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   46|    941|        (pResData)->poolBundleKeys+(keyOffset)-(pResData)->localKeyLimit)
  ------------------
  826|    941|        } else {
  827|      0|            key = RES_GET_KEY32(&rdValue.getData(), keys32[i]);
  ------------------
  |  |   49|      0|    ((keyOffset)>=0 ? \
  |  |  ------------------
  |  |  |  Branch (49:6): [True: 0, False: 0]
  |  |  ------------------
  |  |   50|      0|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   51|      0|        (pResData)->poolBundleKeys+((keyOffset)&0x7fffffff))
  ------------------
  828|      0|        }
  829|    941|        Resource res;
  830|    941|        if (items16 != nullptr) {
  ------------------
  |  Branch (830:13): [True: 938, False: 3]
  ------------------
  831|    938|            res = makeResourceFrom16(&rdValue.getData(), items16[i]);
  832|    938|        } else {
  833|      3|            res = items32[i];
  834|      3|        }
  835|       |        // Note: the ResourceTracer keeps a reference to the field of this
  836|       |        // ResourceTable. This is OK because the ResourceTable should remain
  837|       |        // alive for the duration that fields are being read from it
  838|       |        // (including nested fields).
  839|    941|        rdValue.setResource(res, ResourceTracer(fTraceInfo, key));
  840|    941|        return true;
  841|    941|    }
  842|      3|    return false;
  843|    944|}
res_findResource_78:
  921|  1.28k|res_findResource(const ResourceData *pResData, Resource r, char** path, const char** key) {
  922|  1.28k|  char *pathP = *path, *nextSepP = *path;
  923|  1.28k|  char *closeIndex = nullptr;
  924|  1.28k|  Resource t1 = r;
  925|  1.28k|  Resource t2;
  926|  1.28k|  int32_t indexR = 0;
  927|  1.28k|  UResType type = (UResType)RES_GET_TYPE(t1);
  ------------------
  |  |   68|  1.28k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  928|       |
  929|       |  /* if you come in with an empty path, you'll be getting back the same resource */
  930|  1.28k|  if(!uprv_strlen(pathP)) {
  ------------------
  |  |   37|  1.28k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  1.28k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (930:6): [True: 0, False: 1.28k]
  ------------------
  931|      0|      return r;
  932|      0|  }
  933|       |
  934|       |  /* one needs to have an aggregate resource in order to search in it */
  935|  1.28k|  if(!URES_IS_CONTAINER(type)) {
  ------------------
  |  |   85|  1.28k|#define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   84|  2.57k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (84:30): [True: 1.27k, False: 14]
  |  |  |  |  |  Branch (84:61): [True: 14, False: 0]
  |  |  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   83|      0|#define URES_IS_ARRAY(type) ((int32_t)(type)==URES_ARRAY || (int32_t)(type)==URES_ARRAY16)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (83:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (83:61): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  936|      0|      return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  937|      0|  }
  938|       |  
  939|  3.78k|  while(nextSepP && *pathP && t1 != RES_BOGUS && URES_IS_CONTAINER(type)) {
  ------------------
  |  |   65|  6.36k|#define RES_BOGUS 0xffffffff
  ------------------
                while(nextSepP && *pathP && t1 != RES_BOGUS && URES_IS_CONTAINER(type)) {
  ------------------
  |  |   85|  2.52k|#define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   84|  5.05k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (84:30): [True: 2.50k, False: 22]
  |  |  |  |  |  Branch (84:61): [True: 14, False: 8]
  |  |  |  |  |  Branch (84:94): [True: 0, False: 8]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   83|      8|#define URES_IS_ARRAY(type) ((int32_t)(type)==URES_ARRAY || (int32_t)(type)==URES_ARRAY16)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (83:30): [True: 0, False: 8]
  |  |  |  |  |  Branch (83:61): [True: 0, False: 8]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (939:9): [True: 2.59k, False: 1.19k]
  |  Branch (939:21): [True: 2.57k, False: 15]
  |  Branch (939:31): [True: 2.52k, False: 50]
  ------------------
  940|       |    /* Iteration stops if: the path has been consumed, we found a non-existing
  941|       |     * resource (t1 == RES_BOGUS) or we found a scalar resource (including alias)
  942|       |     */
  943|  2.51k|    nextSepP = uprv_strchr(pathP, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|  2.51k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  2.51k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  944|       |    /* if there are more separators, terminate string 
  945|       |     * and set path to the remaining part of the string
  946|       |     */
  947|  2.51k|    if(nextSepP != nullptr) {
  ------------------
  |  Branch (947:8): [True: 1.32k, False: 1.19k]
  ------------------
  948|  1.32k|      if(nextSepP == pathP) {
  ------------------
  |  Branch (948:10): [True: 19, False: 1.30k]
  ------------------
  949|       |        // Empty key string.
  950|     19|        return RES_BOGUS;
  ------------------
  |  |   65|     19|#define RES_BOGUS 0xffffffff
  ------------------
  951|     19|      }
  952|  1.30k|      *nextSepP = 0; /* overwrite the separator with a NUL to terminate the key */
  953|  1.30k|      *path = nextSepP+1;
  954|  1.30k|    } else {
  955|  1.19k|      *path = uprv_strchr(pathP, 0);
  ------------------
  |  |   40|  1.19k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  1.19k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  956|  1.19k|    }
  957|       |
  958|       |    /* if the resource is a table */
  959|       |    /* try the key based access */
  960|  2.49k|    if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|  2.49k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 2.48k, False: 14]
  |  |  |  Branch (84:61): [True: 14, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  961|  2.49k|      *key = pathP;
  962|  2.49k|      t2 = res_getTableItemByKey(pResData, t1, &indexR, key);
  ------------------
  |  |  207|  2.49k|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|  2.49k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.49k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.49k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  963|  2.49k|    } else if(URES_IS_ARRAY(type)) {
  ------------------
  |  |   83|      0|#define URES_IS_ARRAY(type) ((int32_t)(type)==URES_ARRAY || (int32_t)(type)==URES_ARRAY16)
  |  |  ------------------
  |  |  |  Branch (83:30): [True: 0, False: 0]
  |  |  |  Branch (83:61): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  964|      0|      indexR = uprv_strtol(pathP, &closeIndex, 10);
  ------------------
  |  |   77|      0|#define uprv_strtol(str, end, base) U_STANDARD_CPP_NAMESPACE strtol(str, end, base)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  965|      0|      if(indexR >= 0 && *closeIndex == 0) {
  ------------------
  |  Branch (965:10): [True: 0, False: 0]
  |  Branch (965:25): [True: 0, False: 0]
  ------------------
  966|      0|        t2 = res_getArrayItem(pResData, t1, indexR);
  ------------------
  |  |  200|      0|#define res_getArrayItem U_ICU_ENTRY_POINT_RENAME(res_getArrayItem)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  967|      0|      } else {
  968|      0|        t2 = RES_BOGUS; /* have an array, but don't have a valid index */
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  969|      0|      }
  970|      0|      *key = nullptr;
  971|      0|    } else { /* can't do much here, except setting t2 to bogus */
  972|      0|      t2 = RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  973|      0|    }
  974|  2.49k|    t1 = t2;
  975|  2.49k|    type = (UResType)RES_GET_TYPE(t1);
  ------------------
  |  |   68|  2.49k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  976|       |    /* position pathP to next resource key/index */
  977|  2.49k|    pathP = *path;
  978|  2.49k|  }
  979|       |
  980|  1.26k|  return t1;
  981|  1.28k|}
uresdata.cpp:_ZL12isAcceptablePvPKcS1_PK9UDataInfo:
  141|    161|             const UDataInfo *pInfo) {
  142|    161|    uprv_memcpy(context, pInfo->formatVersion, 4);
  ------------------
  |  |   42|    161|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    161|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    161|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    161|    _Pragma("clang diagnostic push") \
  |  |   45|    161|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    161|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    161|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    161|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    161|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    161|    _Pragma("clang diagnostic pop") \
  |  |   49|    161|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    161|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    161|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    161|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  143|    161|    return
  144|    161|        pInfo->size>=20 &&
  ------------------
  |  Branch (144:9): [True: 161, False: 0]
  ------------------
  145|    161|        pInfo->isBigEndian==U_IS_BIG_ENDIAN &&
  ------------------
  |  |  353|    322|#   define U_IS_BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
  ------------------
  |  Branch (145:9): [True: 161, False: 0]
  ------------------
  146|    161|        pInfo->charsetFamily==U_CHARSET_FAMILY &&
  ------------------
  |  |  588|    161|#   define U_CHARSET_FAMILY U_ASCII_FAMILY
  |  |  ------------------
  |  |  |  |  531|    322|#define U_ASCII_FAMILY 0
  |  |  ------------------
  ------------------
  |  Branch (146:9): [True: 161, False: 0]
  ------------------
  147|    161|        pInfo->sizeofUChar==U_SIZEOF_UCHAR &&
  ------------------
  |  |  352|    322|#define U_SIZEOF_UCHAR 2
  ------------------
  |  Branch (147:9): [True: 161, False: 0]
  ------------------
  148|    161|        pInfo->dataFormat[0]==0x52 &&   /* dataFormat="ResB" */
  ------------------
  |  Branch (148:9): [True: 161, False: 0]
  ------------------
  149|    161|        pInfo->dataFormat[1]==0x65 &&
  ------------------
  |  Branch (149:9): [True: 161, False: 0]
  ------------------
  150|    161|        pInfo->dataFormat[2]==0x73 &&
  ------------------
  |  Branch (150:9): [True: 161, False: 0]
  ------------------
  151|    161|        pInfo->dataFormat[3]==0x42 &&
  ------------------
  |  Branch (151:9): [True: 161, False: 0]
  ------------------
  152|    161|        (1<=pInfo->formatVersion[0] && pInfo->formatVersion[0]<=3);
  ------------------
  |  Branch (152:10): [True: 161, False: 0]
  |  Branch (152:40): [True: 161, False: 0]
  ------------------
  153|    161|}
uresdata.cpp:_ZL8res_initP12ResourceDataPhPKviP10UErrorCode:
  160|    161|         UErrorCode *errorCode) {
  161|    161|    UResType rootType;
  162|       |
  163|       |    /* get the root resource */
  164|    161|    pResData->pRoot = static_cast<const int32_t*>(inBytes);
  165|    161|    pResData->rootRes = static_cast<Resource>(*pResData->pRoot);
  166|    161|    pResData->p16BitUnits=&gEmpty16;
  167|       |
  168|       |    /* formatVersion 1.1 must have a root item and at least 5 indexes */
  169|    161|    if(length>=0 && (length/4)<((formatVersion[0]==1 && formatVersion[1]==0) ? 1 : 1+5)) {
  ------------------
  |  Branch (169:8): [True: 0, False: 161]
  |  Branch (169:21): [True: 0, False: 0]
  |  Branch (169:34): [True: 0, False: 0]
  |  Branch (169:57): [True: 0, False: 0]
  ------------------
  170|      0|        *errorCode=U_INVALID_FORMAT_ERROR;
  171|      0|        res_unload(pResData);
  ------------------
  |  |  210|      0|#define res_unload U_ICU_ENTRY_POINT_RENAME(res_unload)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  172|      0|        return;
  173|      0|    }
  174|       |
  175|       |    /* currently, we accept only resources that have a Table as their roots */
  176|    161|    rootType = static_cast<UResType>(RES_GET_TYPE(pResData->rootRes));
  ------------------
  |  |   68|    161|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  177|    161|    if(!URES_IS_TABLE(rootType)) {
  ------------------
  |  |   84|    161|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 136, False: 25]
  |  |  |  Branch (84:61): [True: 25, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  178|      0|        *errorCode=U_INVALID_FORMAT_ERROR;
  179|      0|        res_unload(pResData);
  ------------------
  |  |  210|      0|#define res_unload U_ICU_ENTRY_POINT_RENAME(res_unload)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  180|      0|        return;
  181|      0|    }
  182|       |
  183|    161|    if(formatVersion[0]==1 && formatVersion[1]==0) {
  ------------------
  |  Branch (183:8): [True: 0, False: 161]
  |  Branch (183:31): [True: 0, False: 0]
  ------------------
  184|      0|        pResData->localKeyLimit=0x10000;  /* greater than any 16-bit key string offset */
  185|    161|    } else {
  186|       |        /* bundles with formatVersion 1.1 and later contain an indexes[] array */
  187|    161|        const int32_t *indexes=pResData->pRoot+1;
  188|    161|        int32_t indexLength=indexes[URES_INDEX_LENGTH]&0xff;
  189|    161|        if(indexLength<=URES_INDEX_MAX_TABLE_LENGTH) {
  ------------------
  |  Branch (189:12): [True: 0, False: 161]
  ------------------
  190|      0|            *errorCode=U_INVALID_FORMAT_ERROR;
  191|      0|            res_unload(pResData);
  ------------------
  |  |  210|      0|#define res_unload U_ICU_ENTRY_POINT_RENAME(res_unload)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  192|      0|            return;
  193|      0|        }
  194|    161|        if( length>=0 &&
  ------------------
  |  Branch (194:13): [True: 0, False: 161]
  ------------------
  195|    161|            (length<((1+indexLength)<<2) ||
  ------------------
  |  Branch (195:14): [True: 0, False: 0]
  ------------------
  196|      0|             length<(indexes[URES_INDEX_BUNDLE_TOP]<<2))
  ------------------
  |  Branch (196:14): [True: 0, False: 0]
  ------------------
  197|    161|        ) {
  198|      0|            *errorCode=U_INVALID_FORMAT_ERROR;
  199|      0|            res_unload(pResData);
  ------------------
  |  |  210|      0|#define res_unload U_ICU_ENTRY_POINT_RENAME(res_unload)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  200|      0|            return;
  201|      0|        }
  202|    161|        if(indexes[URES_INDEX_KEYS_TOP]>(1+indexLength)) {
  ------------------
  |  Branch (202:12): [True: 136, False: 25]
  ------------------
  203|    136|            pResData->localKeyLimit=indexes[URES_INDEX_KEYS_TOP]<<2;
  204|    136|        }
  205|    161|        if(formatVersion[0]>=3) {
  ------------------
  |  Branch (205:12): [True: 0, False: 161]
  ------------------
  206|       |            // In formatVersion 1, the indexLength took up this whole int.
  207|       |            // In version 2, bits 31..8 were reserved and always 0.
  208|       |            // In version 3, they contain bits 23..0 of the poolStringIndexLimit.
  209|       |            // Bits 27..24 are in indexes[URES_INDEX_ATTRIBUTES] bits 15..12.
  210|      0|            pResData->poolStringIndexLimit = static_cast<int32_t>(static_cast<uint32_t>(indexes[URES_INDEX_LENGTH]) >> 8);
  211|      0|        }
  212|    161|        if(indexLength>URES_INDEX_ATTRIBUTES) {
  ------------------
  |  Branch (212:12): [True: 161, False: 0]
  ------------------
  213|    161|            int32_t att=indexes[URES_INDEX_ATTRIBUTES];
  214|    161|            pResData->noFallback = static_cast<UBool>(att & URES_ATT_NO_FALLBACK);
  ------------------
  |  |  148|    161|#define URES_ATT_NO_FALLBACK 1
  ------------------
  215|    161|            pResData->isPoolBundle = static_cast<UBool>((att & URES_ATT_IS_POOL_BUNDLE) != 0);
  ------------------
  |  |  156|    161|#define URES_ATT_IS_POOL_BUNDLE 2
  ------------------
  216|    161|            pResData->usesPoolBundle = static_cast<UBool>((att & URES_ATT_USES_POOL_BUNDLE) != 0);
  ------------------
  |  |  157|    161|#define URES_ATT_USES_POOL_BUNDLE 4
  ------------------
  217|    161|            pResData->poolStringIndexLimit|=(att&0xf000)<<12;  // bits 15..12 -> 27..24
  218|    161|            pResData->poolStringIndex16Limit = static_cast<int32_t>(static_cast<uint32_t>(att) >> 16);
  219|    161|        }
  220|    161|        if((pResData->isPoolBundle || pResData->usesPoolBundle) && indexLength<=URES_INDEX_POOL_CHECKSUM) {
  ------------------
  |  Branch (220:13): [True: 0, False: 161]
  |  Branch (220:39): [True: 0, False: 161]
  |  Branch (220:68): [True: 0, False: 0]
  ------------------
  221|      0|            *errorCode=U_INVALID_FORMAT_ERROR;
  222|      0|            res_unload(pResData);
  ------------------
  |  |  210|      0|#define res_unload U_ICU_ENTRY_POINT_RENAME(res_unload)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  223|      0|            return;
  224|      0|        }
  225|    161|        if( indexLength>URES_INDEX_16BIT_TOP &&
  ------------------
  |  Branch (225:13): [True: 161, False: 0]
  ------------------
  226|    161|            indexes[URES_INDEX_16BIT_TOP]>indexes[URES_INDEX_KEYS_TOP]
  ------------------
  |  Branch (226:13): [True: 161, False: 0]
  ------------------
  227|    161|        ) {
  228|    161|            pResData->p16BitUnits = reinterpret_cast<const uint16_t*>(pResData->pRoot + indexes[URES_INDEX_KEYS_TOP]);
  229|    161|        }
  230|    161|    }
  231|       |
  232|    161|    if(formatVersion[0]==1 || U_CHARSET_FAMILY==U_ASCII_FAMILY) {
  ------------------
  |  |  588|    161|#   define U_CHARSET_FAMILY U_ASCII_FAMILY
  |  |  ------------------
  |  |  |  |  531|    161|#define U_ASCII_FAMILY 0
  |  |  ------------------
  ------------------
                  if(formatVersion[0]==1 || U_CHARSET_FAMILY==U_ASCII_FAMILY) {
  ------------------
  |  |  531|    161|#define U_ASCII_FAMILY 0
  ------------------
  |  Branch (232:8): [True: 0, False: 161]
  |  Branch (232:31): [Folded - Ignored]
  ------------------
  233|       |        /*
  234|       |         * formatVersion 1: compare key strings in native-charset order
  235|       |         * formatVersion 2 and up: compare key strings in ASCII order
  236|       |         */
  237|    161|        pResData->useNativeStrcmp=true;
  238|    161|    }
  239|    161|}
uresdata.cpp:_ZL18_res_findTableItemPK12ResourceDataPKtiPKcPS5_:
   76|  7.18k|                   const char *key, const char **realKey) {
   77|  7.18k|    const char *tableKey;
   78|  7.18k|    int32_t mid, start, limit;
   79|  7.18k|    int result;
   80|       |
   81|       |    /* do a binary search for the key */
   82|  7.18k|    start=0;
   83|  7.18k|    limit=length;
   84|  15.8k|    while(start<limit) {
  ------------------
  |  Branch (84:11): [True: 13.8k, False: 1.91k]
  ------------------
   85|  13.8k|        mid = (start + limit) / 2;
   86|  13.8k|        tableKey = RES_GET_KEY16(pResData, keyOffsets[mid]);
  ------------------
  |  |   44|  13.8k|    ((keyOffset)<(pResData)->localKeyLimit ? \
  |  |  ------------------
  |  |  |  Branch (44:6): [True: 13.8k, False: 0]
  |  |  ------------------
  |  |   45|  13.8k|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   46|  13.8k|        (pResData)->poolBundleKeys+(keyOffset)-(pResData)->localKeyLimit)
  ------------------
   87|  13.8k|        if (pResData->useNativeStrcmp) {
  ------------------
  |  Branch (87:13): [True: 13.8k, False: 0]
  ------------------
   88|  13.8k|            result = uprv_strcmp(key, tableKey);
  ------------------
  |  |   38|  13.8k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  13.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
   89|  13.8k|        } else {
   90|      0|            result = uprv_compareInvCharsAsAscii(key, tableKey);
  ------------------
  |  |  153|      0|#   define uprv_compareInvCharsAsAscii(s1, s2) uprv_strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  |  |  ------------------
  |  |  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   91|      0|        }
   92|  13.8k|        if (result < 0) {
  ------------------
  |  Branch (92:13): [True: 6.10k, False: 7.78k]
  ------------------
   93|  6.10k|            limit = mid;
   94|  7.78k|        } else if (result > 0) {
  ------------------
  |  Branch (94:20): [True: 2.52k, False: 5.26k]
  ------------------
   95|  2.52k|            start = mid + 1;
   96|  5.26k|        } else {
   97|       |            /* We found it! */
   98|  5.26k|            *realKey=tableKey;
   99|  5.26k|            return mid;
  100|  5.26k|        }
  101|  13.8k|    }
  102|  1.91k|    return URESDATA_ITEM_NOT_FOUND;  /* not found or table is empty. */
  ------------------
  |  |   53|  1.91k|#define URESDATA_ITEM_NOT_FOUND -1
  ------------------
  103|  7.18k|}
uresdata.cpp:_ZL18makeResourceFrom16PK12ResourceDatai:
  700|  82.1k|makeResourceFrom16(const ResourceData *pResData, int32_t res16) {
  701|  82.1k|    if(res16<pResData->poolStringIndex16Limit) {
  ------------------
  |  Branch (701:8): [True: 0, False: 82.1k]
  ------------------
  702|       |        // Pool string, nothing to do.
  703|  82.1k|    } else {
  704|       |        // Local string, adjust the 16-bit offset to a regular one,
  705|       |        // with a larger pool string index limit.
  706|  82.1k|        res16=res16-pResData->poolStringIndex16Limit+pResData->poolStringIndexLimit;
  707|  82.1k|    }
  708|  82.1k|    return URES_MAKE_RESOURCE(URES_STRING_V2, res16);
  ------------------
  |  |   87|  82.1k|#define URES_MAKE_RESOURCE(type, offset) (((Resource)(type)<<28)|(Resource)(offset))
  ------------------
  709|  82.1k|}

_ZN6icu_7817ResourceDataValueC2Ev:
  516|      1|        pResData(nullptr),
  517|      1|        validLocaleDataEntry(nullptr),
  518|      1|        res(static_cast<Resource>(URES_NONE)),
  519|      1|        fTraceInfo() {}
_ZN6icu_7817ResourceDataValue7setDataERK12ResourceData:
  522|      1|    void setData(const ResourceData &data) {
  523|      1|        pResData = &data;
  524|      1|    }
_ZN6icu_7817ResourceDataValue23setValidLocaleDataEntryEP18UResourceDataEntry:
  526|      1|    void setValidLocaleDataEntry(UResourceDataEntry *entry) {
  527|      1|        validLocaleDataEntry = entry;
  528|      1|    }
_ZN6icu_7817ResourceDataValue11setResourceEjONS_14ResourceTracerE:
  530|    942|    void setResource(Resource r, ResourceTracer&& traceInfo) {
  531|    942|        res = r;
  532|    942|        fTraceInfo = traceInfo;
  533|    942|    }
_ZNK6icu_7817ResourceDataValue7getDataEv:
  535|  2.82k|    const ResourceData &getData() const { return *pResData; }
_ZN6icu_7813res_getStringERKNS_14ResourceTracerEPK12ResourceDatajPi:
  486|  82.2k|        const ResourceData *pResData, Resource res, int32_t *pLength) {
  487|  82.2k|    traceInfo.trace("string");
  488|  82.2k|    return res_getStringNoTrace(pResData, res, pLength);
  ------------------
  |  |  205|  82.2k|#define res_getStringNoTrace U_ICU_ENTRY_POINT_RENAME(res_getStringNoTrace)
  |  |  ------------------
  |  |  |  |  123|  82.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  82.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  82.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  489|  82.2k|}
_ZN6icu_7813res_getBinaryERKNS_14ResourceTracerEPK12ResourceDatajPi:
  492|    180|        const ResourceData *pResData, Resource res, int32_t *pLength) {
  493|    180|    traceInfo.trace("binary");
  494|    180|    return res_getBinaryNoTrace(pResData, res, pLength);
  ------------------
  |  |  201|    180|#define res_getBinaryNoTrace U_ICU_ENTRY_POINT_RENAME(res_getBinaryNoTrace)
  |  |  ------------------
  |  |  |  |  123|    180|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    180|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    180|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  495|    180|}

_ZNK15UResourceBundle10getResDataEv:
   94|   269k|    inline const ResourceData &getResData() const { return fData->fData; }

uset_getSerializedSet_78:
  404|     66|uset_getSerializedSet(USerializedSet* fillSet, const uint16_t* src, int32_t srcLength) {
  405|     66|    int32_t length;
  406|       |
  407|     66|    if(fillSet==nullptr) {
  ------------------
  |  Branch (407:8): [True: 0, False: 66]
  ------------------
  408|      0|        return false;
  409|      0|    }
  410|     66|    if(src==nullptr || srcLength<=0) {
  ------------------
  |  Branch (410:8): [True: 0, False: 66]
  |  Branch (410:24): [True: 0, False: 66]
  ------------------
  411|      0|        fillSet->length=fillSet->bmpLength=0;
  412|      0|        return false;
  413|      0|    }
  414|       |
  415|     66|    length=*src++;
  416|     66|    if(length&0x8000) {
  ------------------
  |  Branch (416:8): [True: 6, False: 60]
  ------------------
  417|       |        /* there are supplementary values */
  418|      6|        length&=0x7fff;
  419|      6|        if(srcLength<(2+length)) {
  ------------------
  |  Branch (419:12): [True: 0, False: 6]
  ------------------
  420|      0|            fillSet->length=fillSet->bmpLength=0;
  421|      0|            return false;
  422|      0|        }
  423|      6|        fillSet->bmpLength=*src++;
  424|     60|    } else {
  425|       |        /* only BMP values */
  426|     60|        if(srcLength<(1+length)) {
  ------------------
  |  Branch (426:12): [True: 0, False: 60]
  ------------------
  427|      0|            fillSet->length=fillSet->bmpLength=0;
  428|      0|            return false;
  429|      0|        }
  430|     60|        fillSet->bmpLength=length;
  431|     60|    }
  432|     66|    fillSet->array=src;
  433|     66|    fillSet->length=length;
  434|     66|    return true;
  435|     66|}
uset_getSerializedRangeCount_78:
  529|     66|uset_getSerializedRangeCount(const USerializedSet* set) {
  530|     66|    if(set==nullptr) {
  ------------------
  |  Branch (530:8): [True: 0, False: 66]
  ------------------
  531|      0|        return 0;
  532|      0|    }
  533|       |
  534|     66|    return (set->bmpLength+(set->length-set->bmpLength)/2+1)/2;
  535|     66|}
uset_getSerializedRange_78:
  539|  1.57k|                        UChar32* pStart, UChar32* pEnd) {
  540|  1.57k|    const uint16_t* array;
  541|  1.57k|    int32_t bmpLength, length;
  542|       |
  543|  1.57k|    if(set==nullptr || rangeIndex<0 || pStart==nullptr || pEnd==nullptr) {
  ------------------
  |  Branch (543:8): [True: 0, False: 1.57k]
  |  Branch (543:24): [True: 0, False: 1.57k]
  |  Branch (543:40): [True: 0, False: 1.57k]
  |  Branch (543:59): [True: 0, False: 1.57k]
  ------------------
  544|      0|        return false;
  545|      0|    }
  546|       |
  547|  1.57k|    array=set->array;
  548|  1.57k|    length=set->length;
  549|  1.57k|    bmpLength=set->bmpLength;
  550|       |
  551|  1.57k|    rangeIndex*=2; /* address start/limit pairs */
  552|  1.57k|    if(rangeIndex<bmpLength) {
  ------------------
  |  Branch (552:8): [True: 1.36k, False: 214]
  ------------------
  553|  1.36k|        *pStart=array[rangeIndex++];
  554|  1.36k|        if(rangeIndex<bmpLength) {
  ------------------
  |  Branch (554:12): [True: 1.36k, False: 0]
  ------------------
  555|  1.36k|            *pEnd=array[rangeIndex]-1;
  556|  1.36k|        } else if(rangeIndex<length) {
  ------------------
  |  Branch (556:19): [True: 0, False: 0]
  ------------------
  557|      0|            *pEnd=((((int32_t)array[rangeIndex])<<16)|array[rangeIndex+1])-1;
  558|      0|        } else {
  559|      0|            *pEnd=0x10ffff;
  560|      0|        }
  561|  1.36k|        return true;
  562|  1.36k|    } else {
  563|    214|        rangeIndex-=bmpLength;
  564|    214|        rangeIndex*=2; /* address pairs of pairs of units */
  565|    214|        length-=bmpLength;
  566|    214|        if(rangeIndex<length) {
  ------------------
  |  Branch (566:12): [True: 214, False: 0]
  ------------------
  567|    214|            array+=bmpLength;
  568|    214|            *pStart=(((int32_t)array[rangeIndex])<<16)|array[rangeIndex+1];
  569|    214|            rangeIndex+=2;
  570|    214|            if(rangeIndex<length) {
  ------------------
  |  Branch (570:16): [True: 214, False: 0]
  ------------------
  571|    214|                *pEnd=((((int32_t)array[rangeIndex])<<16)|array[rangeIndex+1])-1;
  572|    214|            } else {
  573|      0|                *pEnd=0x10ffff;
  574|      0|            }
  575|    214|            return true;
  576|    214|        } else {
  577|      0|            return false;
  578|      0|        }
  579|    214|    }
  580|  1.57k|}

u_strlen_78:
  995|  85.0k|{
  996|       |#if U_SIZEOF_WCHAR_T == U_SIZEOF_UCHAR
  997|       |    return (int32_t)uprv_wcslen((const wchar_t *)s);
  998|       |#else
  999|  85.0k|    const char16_t *t = s;
 1000|  1.13M|    while(*t != 0) {
  ------------------
  |  Branch (1000:11): [True: 1.05M, False: 85.0k]
  ------------------
 1001|  1.05M|      ++t;
 1002|  1.05M|    }
 1003|  85.0k|    return t - s;
 1004|  85.0k|#endif
 1005|  85.0k|}
u_memcpy_78:
 1117|  4.24k|u_memcpy(char16_t *dest, const char16_t *src, int32_t count) {
 1118|  4.24k|    if(count > 0) {
  ------------------
  |  Branch (1118:8): [True: 4.24k, False: 0]
  ------------------
 1119|  4.24k|        uprv_memcpy(dest, src, (size_t)count*U_SIZEOF_UCHAR);
  ------------------
  |  |   42|  4.24k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  4.24k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  4.24k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  4.24k|    _Pragma("clang diagnostic push") \
  |  |   45|  4.24k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  4.24k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  4.24k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  4.24k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  4.24k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  4.24k|    _Pragma("clang diagnostic pop") \
  |  |   49|  4.24k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  4.24k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  4.24k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  4.24k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1120|  4.24k|    }
 1121|  4.24k|    return dest;
 1122|  4.24k|}
u_terminateChars_78:
 1475|  38.1k|u_terminateChars(char *dest, int32_t destCapacity, int32_t length, UErrorCode *pErrorCode) {
 1476|  38.1k|    __TERMINATE_STRING(dest, destCapacity, length, pErrorCode);
  ------------------
  |  | 1437|  38.1k|#define __TERMINATE_STRING(dest, destCapacity, length, pErrorCode) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  38.1k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  | 1438|  38.1k|    if(pErrorCode!=nullptr && U_SUCCESS(*pErrorCode)) {                    \
  |  |  ------------------
  |  |  |  Branch (1438:8): [True: 38.1k, False: 0]
  |  |  |  Branch (1438:31): [True: 38.1k, False: 0]
  |  |  ------------------
  |  | 1439|  38.1k|        /* not a public function, so no complete argument checking */   \
  |  | 1440|  38.1k|                                                                        \
  |  | 1441|  38.1k|        if(length<0) {                                                  \
  |  |  ------------------
  |  |  |  Branch (1441:12): [True: 0, False: 38.1k]
  |  |  ------------------
  |  | 1442|      0|            /* assume that the caller handles this */                   \
  |  | 1443|  38.1k|        } else if(length<destCapacity) {                                \
  |  |  ------------------
  |  |  |  Branch (1443:19): [True: 37.8k, False: 258]
  |  |  ------------------
  |  | 1444|  37.8k|            /* NUL-terminate the string, the NUL fits */                \
  |  | 1445|  37.8k|            dest[length]=0;                                             \
  |  | 1446|  37.8k|            /* unset the not-terminated warning but leave all others */ \
  |  | 1447|  37.8k|            if(*pErrorCode==U_STRING_NOT_TERMINATED_WARNING) {          \
  |  |  ------------------
  |  |  |  Branch (1447:16): [True: 0, False: 37.8k]
  |  |  ------------------
  |  | 1448|      0|                *pErrorCode=U_ZERO_ERROR;                               \
  |  | 1449|      0|            }                                                           \
  |  | 1450|  37.8k|        } else if(length==destCapacity) {                               \
  |  |  ------------------
  |  |  |  Branch (1450:19): [True: 258, False: 0]
  |  |  ------------------
  |  | 1451|    258|            /* unable to NUL-terminate, but the string itself fit - set a warning code */ \
  |  | 1452|    258|            *pErrorCode=U_STRING_NOT_TERMINATED_WARNING;                \
  |  | 1453|    258|        } else /* length>destCapacity */ {                              \
  |  | 1454|      0|            /* even the string itself did not fit - set an error code */ \
  |  | 1455|      0|            *pErrorCode=U_BUFFER_OVERFLOW_ERROR;                        \
  |  | 1456|      0|        }                                                               \
  |  | 1457|  38.1k|    } \
  |  | 1458|  38.1k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  38.1k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1477|  38.1k|    return length;
 1478|  38.1k|}
ustr_hashUCharsN_78:
 1523|  2.10k|ustr_hashUCharsN(const char16_t *str, int32_t length) {
 1524|  2.10k|    STRING_HASH(char16_t, str, length, *p);
  ------------------
  |  | 1506|  2.10k|#define STRING_HASH(TYPE, STR, STRLEN, DEREF) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  2.10k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  | 1507|  2.10k|    uint32_t hash = 0;                        \
  |  | 1508|  2.10k|    const TYPE *p = (const TYPE*) STR;        \
  |  | 1509|  2.10k|    if (p != nullptr) {                          \
  |  |  ------------------
  |  |  |  Branch (1509:9): [True: 2.10k, False: 0]
  |  |  ------------------
  |  | 1510|  2.10k|        int32_t len = (int32_t)(STRLEN);      \
  |  | 1511|  2.10k|        int32_t inc = ((len - 32) / 32) + 1;  \
  |  | 1512|  2.10k|        const TYPE *limit = p + len;          \
  |  | 1513|  8.18k|        while (p<limit) {                     \
  |  |  ------------------
  |  |  |  Branch (1513:16): [True: 6.08k, False: 2.10k]
  |  |  ------------------
  |  | 1514|  6.08k|            hash = (hash * 37) + DEREF;       \
  |  | 1515|  6.08k|            p += inc;                         \
  |  | 1516|  6.08k|        }                                     \
  |  | 1517|  2.10k|    }                                         \
  |  | 1518|  2.10k|    return static_cast<int32_t>(hash);        \
  |  | 1519|  2.10k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  2.10k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1525|  2.10k|}
ustr_hashCharsN_78:
 1528|   184k|ustr_hashCharsN(const char *str, int32_t length) {
 1529|   184k|    STRING_HASH(uint8_t, str, length, *p);
  ------------------
  |  | 1506|   184k|#define STRING_HASH(TYPE, STR, STRLEN, DEREF) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   184k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  | 1507|   184k|    uint32_t hash = 0;                        \
  |  | 1508|   184k|    const TYPE *p = (const TYPE*) STR;        \
  |  | 1509|   184k|    if (p != nullptr) {                          \
  |  |  ------------------
  |  |  |  Branch (1509:9): [True: 184k, False: 0]
  |  |  ------------------
  |  | 1510|   184k|        int32_t len = (int32_t)(STRLEN);      \
  |  | 1511|   184k|        int32_t inc = ((len - 32) / 32) + 1;  \
  |  | 1512|   184k|        const TYPE *limit = p + len;          \
  |  | 1513|  3.18M|        while (p<limit) {                     \
  |  |  ------------------
  |  |  |  Branch (1513:16): [True: 3.00M, False: 184k]
  |  |  ------------------
  |  | 1514|  3.00M|            hash = (hash * 37) + DEREF;       \
  |  | 1515|  3.00M|            p += inc;                         \
  |  | 1516|  3.00M|        }                                     \
  |  | 1517|   184k|    }                                         \
  |  | 1518|   184k|    return static_cast<int32_t>(hash);        \
  |  | 1519|   184k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   184k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1530|   184k|}
ustr_hashICharsN_78:
 1533|  34.7k|ustr_hashICharsN(const char *str, int32_t length) {
 1534|  34.7k|    STRING_HASH(char, str, length, (uint8_t)uprv_tolower(*p));
  ------------------
  |  | 1506|  34.7k|#define STRING_HASH(TYPE, STR, STRLEN, DEREF) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  34.7k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  | 1507|  34.7k|    uint32_t hash = 0;                        \
  |  | 1508|  34.7k|    const TYPE *p = (const TYPE*) STR;        \
  |  | 1509|  34.7k|    if (p != nullptr) {                          \
  |  |  ------------------
  |  |  |  Branch (1509:9): [True: 34.7k, False: 0]
  |  |  ------------------
  |  | 1510|  34.7k|        int32_t len = (int32_t)(STRLEN);      \
  |  | 1511|  34.7k|        int32_t inc = ((len - 32) / 32) + 1;  \
  |  | 1512|  34.7k|        const TYPE *limit = p + len;          \
  |  | 1513|   169k|        while (p<limit) {                     \
  |  |  ------------------
  |  |  |  Branch (1513:16): [True: 135k, False: 34.7k]
  |  |  ------------------
  |  | 1514|   135k|            hash = (hash * 37) + DEREF;       \
  |  | 1515|   135k|            p += inc;                         \
  |  | 1516|   135k|        }                                     \
  |  | 1517|  34.7k|    }                                         \
  |  | 1518|  34.7k|    return static_cast<int32_t>(hash);        \
  |  | 1519|  34.7k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  34.7k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1535|  34.7k|}

utrie2_openFromSerialized_78:
  131|    159|                          UErrorCode *pErrorCode) {
  132|    159|    const UTrie2Header *header;
  133|    159|    const uint16_t *p16;
  134|    159|    int32_t actualLength;
  135|       |
  136|    159|    UTrie2 tempTrie;
  137|    159|    UTrie2 *trie;
  138|       |
  139|    159|    if(U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (139:8): [True: 0, False: 159]
  ------------------
  140|      0|        return nullptr;
  141|      0|    }
  142|       |
  143|    159|    if( length<=0 || (U_POINTER_MASK_LSB(data, 3)!=0) ||
  ------------------
  |  |  123|    159|#define U_POINTER_MASK_LSB(ptr, mask) ((uintptr_t)(ptr) & (mask))
  ------------------
  |  Branch (143:9): [True: 0, False: 159]
  |  Branch (143:22): [True: 0, False: 159]
  ------------------
  144|    159|        valueBits<0 || UTRIE2_COUNT_VALUE_BITS<=valueBits
  ------------------
  |  Branch (144:9): [True: 0, False: 159]
  |  Branch (144:24): [True: 0, False: 159]
  ------------------
  145|    159|    ) {
  146|      0|        *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
  147|      0|        return nullptr;
  148|      0|    }
  149|       |
  150|       |    /* enough data for a trie header? */
  151|    159|    if(length<(int32_t)sizeof(UTrie2Header)) {
  ------------------
  |  Branch (151:8): [True: 0, False: 159]
  ------------------
  152|      0|        *pErrorCode=U_INVALID_FORMAT_ERROR;
  153|      0|        return nullptr;
  154|      0|    }
  155|       |
  156|       |    /* check the signature */
  157|    159|    header=(const UTrie2Header *)data;
  158|    159|    if(header->signature!=UTRIE2_SIG) {
  ------------------
  |  |   39|    159|#define UTRIE2_SIG      0x54726932
  ------------------
  |  Branch (158:8): [True: 0, False: 159]
  ------------------
  159|      0|        *pErrorCode=U_INVALID_FORMAT_ERROR;
  160|      0|        return nullptr;
  161|      0|    }
  162|       |
  163|       |    /* get the options */
  164|    159|    if(valueBits!=(UTrie2ValueBits)(header->options&UTRIE2_OPTIONS_VALUE_BITS_MASK)) {
  ------------------
  |  Branch (164:8): [True: 0, False: 159]
  ------------------
  165|      0|        *pErrorCode=U_INVALID_FORMAT_ERROR;
  166|      0|        return nullptr;
  167|      0|    }
  168|       |
  169|       |    /* get the length values and offsets */
  170|    159|    uprv_memset(&tempTrie, 0, sizeof(tempTrie));
  ------------------
  |  |  100|    159|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|    159|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  171|    159|    tempTrie.indexLength=header->indexLength;
  172|    159|    tempTrie.dataLength=header->shiftedDataLength<<UTRIE2_INDEX_SHIFT;
  173|    159|    tempTrie.index2NullOffset=header->index2NullOffset;
  174|    159|    tempTrie.dataNullOffset=header->dataNullOffset;
  175|       |
  176|    159|    tempTrie.highStart=header->shiftedHighStart<<UTRIE2_SHIFT_1;
  177|    159|    tempTrie.highValueIndex=tempTrie.dataLength-UTRIE2_DATA_GRANULARITY;
  178|    159|    if(valueBits==UTRIE2_16_VALUE_BITS) {
  ------------------
  |  Branch (178:8): [True: 0, False: 159]
  ------------------
  179|      0|        tempTrie.highValueIndex+=tempTrie.indexLength;
  180|      0|    }
  181|       |
  182|       |    /* calculate the actual length */
  183|    159|    actualLength=(int32_t)sizeof(UTrie2Header)+tempTrie.indexLength*2;
  184|    159|    if(valueBits==UTRIE2_16_VALUE_BITS) {
  ------------------
  |  Branch (184:8): [True: 0, False: 159]
  ------------------
  185|      0|        actualLength+=tempTrie.dataLength*2;
  186|    159|    } else {
  187|    159|        actualLength+=tempTrie.dataLength*4;
  188|    159|    }
  189|    159|    if(length<actualLength) {
  ------------------
  |  Branch (189:8): [True: 0, False: 159]
  ------------------
  190|      0|        *pErrorCode=U_INVALID_FORMAT_ERROR;  /* not enough bytes */
  191|      0|        return nullptr;
  192|      0|    }
  193|       |
  194|       |    /* allocate the trie */
  195|    159|    trie=(UTrie2 *)uprv_malloc(sizeof(UTrie2));
  ------------------
  |  | 1524|    159|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    159|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    159|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    159|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  196|    159|    if(trie==nullptr) {
  ------------------
  |  Branch (196:8): [True: 0, False: 159]
  ------------------
  197|      0|        *pErrorCode=U_MEMORY_ALLOCATION_ERROR;
  198|      0|        return nullptr;
  199|      0|    }
  200|    159|    uprv_memcpy(trie, &tempTrie, sizeof(tempTrie));
  ------------------
  |  |   42|    159|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    159|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    159|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    159|    _Pragma("clang diagnostic push") \
  |  |   45|    159|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    159|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    159|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    159|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    159|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    159|    _Pragma("clang diagnostic pop") \
  |  |   49|    159|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    159|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    159|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    159|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  201|    159|    trie->memory=(uint32_t *)data;
  202|    159|    trie->length=actualLength;
  203|    159|    trie->isMemoryOwned=false;
  204|       |#ifdef UTRIE2_DEBUG
  205|       |    trie->name="fromSerialized";
  206|       |#endif
  207|       |
  208|       |    /* set the pointers to its index and data arrays */
  209|    159|    p16=(const uint16_t *)(header+1);
  210|    159|    trie->index=p16;
  211|    159|    p16+=trie->indexLength;
  212|       |
  213|       |    /* get the data */
  214|    159|    switch(valueBits) {
  215|      0|    case UTRIE2_16_VALUE_BITS:
  ------------------
  |  Branch (215:5): [True: 0, False: 159]
  ------------------
  216|      0|        trie->data16=p16;
  217|      0|        trie->data32=nullptr;
  218|      0|        trie->initialValue=trie->index[trie->dataNullOffset];
  219|      0|        trie->errorValue=trie->data16[UTRIE2_BAD_UTF8_DATA_OFFSET];
  220|      0|        break;
  221|    159|    case UTRIE2_32_VALUE_BITS:
  ------------------
  |  Branch (221:5): [True: 159, False: 0]
  ------------------
  222|    159|        trie->data16=nullptr;
  223|    159|        trie->data32=(const uint32_t *)p16;
  224|    159|        trie->initialValue=trie->data32[trie->dataNullOffset];
  225|    159|        trie->errorValue=trie->data32[UTRIE2_BAD_UTF8_DATA_OFFSET];
  226|    159|        break;
  227|      0|    default:
  ------------------
  |  Branch (227:5): [True: 0, False: 159]
  ------------------
  228|      0|        *pErrorCode=U_INVALID_FORMAT_ERROR;
  229|      0|        return nullptr;
  230|    159|    }
  231|       |
  232|    159|    if(pActualLength!=nullptr) {
  ------------------
  |  Branch (232:8): [True: 0, False: 159]
  ------------------
  233|      0|        *pActualLength=actualLength;
  234|      0|    }
  235|    159|    return trie;
  236|    159|}
utrie2_close_78:
  374|     79|utrie2_close(UTrie2 *trie) {
  375|     79|    if(trie!=nullptr) {
  ------------------
  |  Branch (375:8): [True: 65, False: 14]
  ------------------
  376|     65|        if(trie->isMemoryOwned) {
  ------------------
  |  Branch (376:12): [True: 0, False: 65]
  ------------------
  377|      0|            uprv_free(trie->memory);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  378|      0|        }
  379|     65|        if(trie->newTrie!=nullptr) {
  ------------------
  |  Branch (379:12): [True: 0, False: 65]
  ------------------
  380|      0|            uprv_free(trie->newTrie->data);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  381|       |#ifdef UCPTRIE_DEBUG
  382|       |            umutablecptrie_close(trie->newTrie->t3);
  383|       |#endif
  384|      0|            uprv_free(trie->newTrie);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  385|      0|        }
  386|     65|        uprv_free(trie);
  ------------------
  |  | 1503|     65|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|     65|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     65|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     65|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  387|     65|    }
  388|     79|}

_ZN6icu_787UVectorC2EPFvPvEPFa8UElementS4_ER10UErrorCode:
   41|    717|        UVector(d, c, DEFAULT_CAPACITY, status) {
   42|    717|}
_ZN6icu_787UVectorC2EPFvPvEPFa8UElementS4_EiR10UErrorCode:
   45|  1.43k|    deleter(d),
   46|  1.43k|    comparer(c)
   47|  1.43k|{
   48|  1.43k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (48:9): [True: 0, False: 1.43k]
  ------------------
   49|      0|        return;
   50|      0|    }
   51|       |    // Fix bogus initialCapacity values; avoid malloc(0) and integer overflow
   52|  1.43k|    if ((initialCapacity < 1) || (initialCapacity > static_cast<int32_t>(INT32_MAX / sizeof(UElement)))) {
  ------------------
  |  Branch (52:9): [True: 0, False: 1.43k]
  |  Branch (52:34): [True: 0, False: 1.43k]
  ------------------
   53|      0|        initialCapacity = DEFAULT_CAPACITY;
   54|      0|    }
   55|  1.43k|    elements = static_cast<UElement*>(uprv_malloc(sizeof(UElement) * initialCapacity));
  ------------------
  |  | 1524|  1.43k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  1.43k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.43k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.43k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   56|  1.43k|    if (elements == nullptr) {
  ------------------
  |  Branch (56:9): [True: 0, False: 1.43k]
  ------------------
   57|      0|        status = U_MEMORY_ALLOCATION_ERROR;
   58|  1.43k|    } else {
   59|  1.43k|        capacity = initialCapacity;
   60|  1.43k|    }
   61|  1.43k|}
_ZN6icu_787UVectorD2Ev:
   63|  1.43k|UVector::~UVector() {
   64|  1.43k|    removeAllElements();
   65|  1.43k|    uprv_free(elements);
  ------------------
  |  | 1503|  1.43k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  1.43k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.43k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.43k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   66|  1.43k|    elements = nullptr;
   67|  1.43k|}
_ZN6icu_787UVector10addElementEPvR10UErrorCode:
  102|      1|void UVector::addElement(void* obj, UErrorCode &status) {
  103|      1|    U_ASSERT(deleter == nullptr);
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
  104|      1|    if (ensureCapacity(count + 1, status)) {
  ------------------
  |  Branch (104:9): [True: 1, False: 0]
  ------------------
  105|      1|        elements[count++].pointer = obj;
  106|      1|    }
  107|      1|}
_ZNK6icu_787UVector9elementAtEi:
  185|      4|void* UVector::elementAt(int32_t index) const {
  186|      4|    return (0 <= index && index < count) ? elements[index].pointer : nullptr;
  ------------------
  |  Branch (186:13): [True: 4, False: 0]
  |  Branch (186:27): [True: 4, False: 0]
  ------------------
  187|      4|}
_ZN6icu_787UVector17removeAllElementsEv:
  251|  1.43k|void UVector::removeAllElements() {
  252|  1.43k|    if (deleter != nullptr) {
  ------------------
  |  Branch (252:9): [True: 717, False: 717]
  ------------------
  253|    717|        for (int32_t i=0; i<count; ++i) {
  ------------------
  |  Branch (253:27): [True: 0, False: 717]
  ------------------
  254|      0|            if (elements[i].pointer != nullptr) {
  ------------------
  |  Branch (254:17): [True: 0, False: 0]
  ------------------
  255|      0|                (*deleter)(elements[i].pointer);
  256|      0|            }
  257|      0|        }
  258|    717|    }
  259|  1.43k|    count = 0;
  260|  1.43k|}
_ZNK6icu_787UVector7indexOfEPvi:
  288|      1|int32_t UVector::indexOf(void* obj, int32_t startIndex) const {
  289|      1|    UElement key;
  290|      1|    key.pointer = obj;
  291|      1|    return indexOf(key, startIndex, HINT_KEY_POINTER);
  292|      1|}
_ZNK6icu_787UVector7indexOfE8UElementia:
  300|      1|int32_t UVector::indexOf(UElement key, int32_t startIndex, int8_t hint) const {
  301|      1|    if (comparer != nullptr) {
  ------------------
  |  Branch (301:9): [True: 1, False: 0]
  ------------------
  302|      1|        for (int32_t i=startIndex; i<count; ++i) {
  ------------------
  |  Branch (302:36): [True: 0, False: 1]
  ------------------
  303|      0|            if ((*comparer)(key, elements[i])) {
  ------------------
  |  Branch (303:17): [True: 0, False: 0]
  ------------------
  304|      0|                return i;
  305|      0|            }
  306|      0|        }
  307|      1|    } else {
  308|      0|        for (int32_t i=startIndex; i<count; ++i) {
  ------------------
  |  Branch (308:36): [True: 0, False: 0]
  ------------------
  309|       |            /* Pointers are not always the same size as ints so to perform
  310|       |             * a valid comparison we need to know whether we are being
  311|       |             * provided an int or a pointer. */
  312|      0|            if (hint & HINT_KEY_POINTER) {
  ------------------
  |  Branch (312:17): [True: 0, False: 0]
  ------------------
  313|      0|                if (key.pointer == elements[i].pointer) {
  ------------------
  |  Branch (313:21): [True: 0, False: 0]
  ------------------
  314|      0|                    return i;
  315|      0|                }
  316|      0|            } else {
  317|      0|                if (key.integer == elements[i].integer) {
  ------------------
  |  Branch (317:21): [True: 0, False: 0]
  ------------------
  318|      0|                    return i;
  319|      0|                }
  320|      0|            }
  321|      0|        }
  322|      0|    }
  323|      1|    return -1;
  324|      1|}
_ZN6icu_787UVector14ensureCapacityEiR10UErrorCode:
  326|      1|UBool UVector::ensureCapacity(int32_t minimumCapacity, UErrorCode &status) {
  327|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (327:9): [True: 0, False: 1]
  ------------------
  328|      0|        return false;
  329|      0|    }
  330|      1|    if (minimumCapacity < 0) {
  ------------------
  |  Branch (330:9): [True: 0, False: 1]
  ------------------
  331|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  332|      0|        return false;
  333|      0|    }
  334|      1|    if (capacity < minimumCapacity) {
  ------------------
  |  Branch (334:9): [True: 0, False: 1]
  ------------------
  335|      0|        if (capacity > (INT32_MAX - 1) / 2) {        	// integer overflow check
  ------------------
  |  Branch (335:13): [True: 0, False: 0]
  ------------------
  336|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  337|      0|            return false;
  338|      0|        }
  339|      0|        int32_t newCap = capacity * 2;
  340|      0|        if (newCap < minimumCapacity) {
  ------------------
  |  Branch (340:13): [True: 0, False: 0]
  ------------------
  341|      0|            newCap = minimumCapacity;
  342|      0|        }
  343|      0|        if (newCap > static_cast<int32_t>(INT32_MAX / sizeof(UElement))) { // integer overflow check
  ------------------
  |  Branch (343:13): [True: 0, False: 0]
  ------------------
  344|       |            // We keep the original memory contents on bad minimumCapacity.
  345|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  346|      0|            return false;
  347|      0|        }
  348|      0|        UElement* newElems = static_cast<UElement*>(uprv_realloc(elements, sizeof(UElement) * newCap));
  ------------------
  |  | 1536|      0|#define uprv_realloc U_ICU_ENTRY_POINT_RENAME(uprv_realloc)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  349|      0|        if (newElems == nullptr) {
  ------------------
  |  Branch (349:13): [True: 0, False: 0]
  ------------------
  350|       |            // We keep the original contents on the memory failure on realloc or bad minimumCapacity.
  351|      0|            status = U_MEMORY_ALLOCATION_ERROR;
  352|      0|            return false;
  353|      0|        }
  354|      0|        elements = newElems;
  355|      0|        capacity = newCap;
  356|      0|    }
  357|      1|    return true;
  358|      1|}
_ZN6icu_787UVector4sortEPFi8UElementS1_ER10UErrorCode:
  547|    717|void UVector::sort(UElementComparator *compare, UErrorCode &ec) {
  548|    717|    if (U_SUCCESS(ec)) {
  ------------------
  |  Branch (548:9): [True: 717, False: 0]
  ------------------
  549|    717|        uprv_sortArray(elements, count, sizeof(UElement),
  ------------------
  |  | 1538|    717|#define uprv_sortArray U_ICU_ENTRY_POINT_RENAME(uprv_sortArray)
  |  |  ------------------
  |  |  |  |  123|    717|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    717|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    717|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  550|    717|                       sortComparator, &compare, false, &ec);
  551|    717|    }
  552|    717|}

_ZNK6icu_787UVector8containsEPv:
  174|      1|    inline UBool contains(void* obj) const {return indexOf(obj) >= 0;}
_ZNK6icu_787UVector4sizeEv:
  190|  3.40k|    inline int32_t size() const {return count;}

_ZN6icu_789UVector32C2ER10UErrorCode:
   30|    185|    count(0),
   31|    185|    capacity(0),
   32|    185|    maxCapacity(0),
   33|    185|    elements(nullptr)
   34|    185|{
   35|    185|    _init(DEFAULT_CAPACITY, status);
  ------------------
  |  |   19|    185|#define DEFAULT_CAPACITY 8
  ------------------
   36|    185|}
_ZN6icu_789UVector325_initEiR10UErrorCode:
   49|    185|void UVector32::_init(int32_t initialCapacity, UErrorCode &status) {
   50|       |    // Fix bogus initialCapacity values; avoid malloc(0)
   51|    185|    if (initialCapacity < 1) {
  ------------------
  |  Branch (51:9): [True: 0, False: 185]
  ------------------
   52|      0|        initialCapacity = DEFAULT_CAPACITY;
  ------------------
  |  |   19|      0|#define DEFAULT_CAPACITY 8
  ------------------
   53|      0|    }
   54|    185|    if (maxCapacity>0 && maxCapacity<initialCapacity) {
  ------------------
  |  Branch (54:9): [True: 0, False: 185]
  |  Branch (54:26): [True: 0, False: 0]
  ------------------
   55|      0|        initialCapacity = maxCapacity;
   56|      0|    }
   57|    185|    if (initialCapacity > static_cast<int32_t>(INT32_MAX / sizeof(int32_t))) {
  ------------------
  |  Branch (57:9): [True: 0, False: 185]
  ------------------
   58|      0|        initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity);
  ------------------
  |  | 1529|      0|#define uprv_min U_ICU_ENTRY_POINT_RENAME(uprv_min)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity);
  ------------------
  |  |   19|      0|#define DEFAULT_CAPACITY 8
  ------------------
   59|      0|    }
   60|    185|    elements = static_cast<int32_t*>(uprv_malloc(sizeof(int32_t) * initialCapacity));
  ------------------
  |  | 1524|    185|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    185|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    185|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    185|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   61|    185|    if (elements == nullptr) {
  ------------------
  |  Branch (61:9): [True: 0, False: 185]
  ------------------
   62|      0|        status = U_MEMORY_ALLOCATION_ERROR;
   63|    185|    } else {
   64|    185|        capacity = initialCapacity;
   65|    185|    }
   66|    185|}
_ZN6icu_789UVector32D2Ev:
   68|    185|UVector32::~UVector32() {
   69|    185|    uprv_free(elements);
  ------------------
  |  | 1503|    185|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    185|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    185|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    185|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   70|    185|    elements = nullptr;
   71|    185|}
_ZN6icu_789UVector3217removeAllElementsEv:
  168|    192|void UVector32::removeAllElements() {
  169|    192|    count = 0;
  170|    192|}
_ZN6icu_789UVector3214expandCapacityEiR10UErrorCode:
  200|     23|UBool UVector32::expandCapacity(int32_t minimumCapacity, UErrorCode &status) {
  201|     23|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (201:9): [True: 0, False: 23]
  ------------------
  202|      0|        return false;
  203|      0|    }
  204|     23|    if (minimumCapacity < 0) {
  ------------------
  |  Branch (204:9): [True: 0, False: 23]
  ------------------
  205|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  206|      0|        return false;
  207|      0|    }
  208|     23|    if (capacity >= minimumCapacity) {
  ------------------
  |  Branch (208:9): [True: 0, False: 23]
  ------------------
  209|      0|        return true;
  210|      0|    }
  211|     23|    if (maxCapacity>0 && minimumCapacity>maxCapacity) {
  ------------------
  |  Branch (211:9): [True: 0, False: 23]
  |  Branch (211:26): [True: 0, False: 0]
  ------------------
  212|      0|        status = U_BUFFER_OVERFLOW_ERROR;
  213|      0|        return false;
  214|      0|    }
  215|     23|    if (capacity > (INT32_MAX - 1) / 2) {  // integer overflow check
  ------------------
  |  Branch (215:9): [True: 0, False: 23]
  ------------------
  216|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  217|      0|        return false;
  218|      0|    }
  219|     23|    int32_t newCap = capacity * 2;
  220|     23|    if (newCap < minimumCapacity) {
  ------------------
  |  Branch (220:9): [True: 0, False: 23]
  ------------------
  221|      0|        newCap = minimumCapacity;
  222|      0|    }
  223|     23|    if (maxCapacity > 0 && newCap > maxCapacity) {
  ------------------
  |  Branch (223:9): [True: 0, False: 23]
  |  Branch (223:28): [True: 0, False: 0]
  ------------------
  224|      0|        newCap = maxCapacity;
  225|      0|    }
  226|     23|    if (newCap > static_cast<int32_t>(INT32_MAX / sizeof(int32_t))) { // integer overflow check
  ------------------
  |  Branch (226:9): [True: 0, False: 23]
  ------------------
  227|       |        // We keep the original memory contents on bad minimumCapacity/maxCapacity.
  228|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  229|      0|        return false;
  230|      0|    }
  231|     23|    int32_t* newElems = static_cast<int32_t*>(uprv_realloc(elements, sizeof(int32_t) * newCap));
  ------------------
  |  | 1536|     23|#define uprv_realloc U_ICU_ENTRY_POINT_RENAME(uprv_realloc)
  |  |  ------------------
  |  |  |  |  123|     23|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     23|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     23|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  232|     23|    if (newElems == nullptr) {
  ------------------
  |  Branch (232:9): [True: 0, False: 23]
  ------------------
  233|       |        // We keep the original contents on the memory failure on realloc.
  234|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  235|      0|        return false;
  236|      0|    }
  237|     23|    elements = newElems;
  238|     23|    capacity = newCap;
  239|     23|    return true;
  240|     23|}

_ZN6icu_789UVector3210addElementEiR10UErrorCode:
  228|    529|inline void UVector32::addElement(int32_t elem, UErrorCode &status) {
  229|    529|    if (ensureCapacity(count + 1, status)) {
  ------------------
  |  Branch (229:9): [True: 529, False: 0]
  ------------------
  230|    529|        elements[count] = elem;
  231|    529|        count++;
  232|    529|    }
  233|    529|}
_ZN6icu_789UVector3214ensureCapacityEiR10UErrorCode:
  215|    529|inline UBool UVector32::ensureCapacity(int32_t minimumCapacity, UErrorCode &status) {
  216|    529|    if ((minimumCapacity >= 0) && (capacity >= minimumCapacity)) {
  ------------------
  |  Branch (216:9): [True: 529, False: 0]
  |  Branch (216:35): [True: 506, False: 23]
  ------------------
  217|    506|        return true;
  218|    506|    } else {
  219|     23|        return expandCapacity(minimumCapacity, status);
  220|     23|    }
  221|    529|}
_ZNK6icu_789UVector324sizeEv:
  255|    118|inline int32_t UVector32::size() const {
  256|    118|    return count;
  257|    118|}
_ZNK6icu_789UVector329getBufferEv:
  275|     99|inline int32_t *UVector32::getBuffer() const {
  276|     99|    return elements;
  277|     99|}

_ZN6icu_788Collator14createInstanceERKNS_6LocaleER10UErrorCode:
  432|  15.9k|{
  433|  15.9k|    if (U_FAILURE(status)) 
  ------------------
  |  Branch (433:9): [True: 0, False: 15.9k]
  ------------------
  434|      0|        return nullptr;
  435|  15.9k|    if (desiredLocale.isBogus()) {
  ------------------
  |  Branch (435:9): [True: 1.55k, False: 14.3k]
  ------------------
  436|       |        // Locale constructed from malformed locale ID or language tag.
  437|  1.55k|        status = U_ILLEGAL_ARGUMENT_ERROR;
  438|  1.55k|        return nullptr;
  439|  1.55k|    }
  440|       |
  441|  14.3k|    Collator* coll;
  442|  14.3k|#if !UCONFIG_NO_SERVICE
  443|  14.3k|    if (hasService()) {
  ------------------
  |  Branch (443:9): [True: 0, False: 14.3k]
  ------------------
  444|      0|        Locale actualLoc;
  445|      0|        coll = (Collator*)gService->get(desiredLocale, &actualLoc, status);
  446|      0|    } else
  447|  14.3k|#endif
  448|  14.3k|    {
  449|  14.3k|        coll = makeInstance(desiredLocale, status);
  450|       |        // Either returns nullptr with U_FAILURE(status), or non-nullptr with U_SUCCESS(status)
  451|  14.3k|    }
  452|       |    // The use of *coll in setAttributesFromKeywords can cause the nullptr check to be
  453|       |    // optimized out of the delete even though setAttributesFromKeywords returns
  454|       |    // immediately if U_FAILURE(status), so we add a check here.
  455|  14.3k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (455:9): [True: 400, False: 13.9k]
  ------------------
  456|    400|        return nullptr;
  457|    400|    }
  458|  13.9k|    setAttributesFromKeywords(desiredLocale, *coll, status);
  459|  13.9k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (459:9): [True: 592, False: 13.3k]
  ------------------
  460|    592|        delete coll;
  461|    592|        return nullptr;
  462|    592|    }
  463|  13.3k|    return coll;
  464|  13.9k|}
_ZN6icu_788Collator12makeInstanceERKNS_6LocaleER10UErrorCode:
  467|  14.3k|Collator* Collator::makeInstance(const Locale&  desiredLocale, UErrorCode& status) {
  468|  14.3k|    const CollationCacheEntry *entry = CollationLoader::loadTailoring(desiredLocale, status);
  469|  14.3k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (469:9): [True: 13.9k, False: 400]
  ------------------
  470|  13.9k|        Collator *result = new RuleBasedCollator(entry);
  471|  13.9k|        if (result != nullptr) {
  ------------------
  |  Branch (471:13): [True: 13.9k, False: 0]
  ------------------
  472|       |            // Both the unified cache's get() and the RBC constructor
  473|       |            // did addRef(). Undo one of them.
  474|  13.9k|            entry->removeRef();
  475|  13.9k|            return result;
  476|  13.9k|        }
  477|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  478|      0|    }
  479|    400|    if (entry != nullptr) {
  ------------------
  |  Branch (479:9): [True: 0, False: 400]
  ------------------
  480|       |        // Undo the addRef() from the cache.get().
  481|      0|        entry->removeRef();
  482|      0|    }
  483|    400|    return nullptr;
  484|  14.3k|}
_ZNK6icu_788Collator7compareEPKDsiS2_i:
  512|  7.96k|{
  513|  7.96k|    UErrorCode ec = U_ZERO_ERROR;
  514|  7.96k|    return static_cast<EComparisonResult>(compare(source, sourceLength, target, targetLength, ec));
  515|  7.96k|}
_ZN6icu_788CollatorC2Ev:
  612|  13.9k|: UObject()
  613|  13.9k|{
  614|  13.9k|}
_ZN6icu_788CollatorD2Ev:
  632|  13.9k|{
  633|  13.9k|}
_ZN6icu_788Collator11setStrengthENS0_18ECollationStrengthE:
  922|  7.96k|Collator::setStrength(ECollationStrength newStrength) {
  923|  7.96k|    UErrorCode intStatus = U_ZERO_ERROR;
  924|  7.96k|    setAttribute(UCOL_STRENGTH, static_cast<UColAttributeValue>(newStrength), intStatus);
  925|  7.96k|}
coll.cpp:_ZN6icu_78L10hasServiceEv:
  217|  14.3k|{
  218|  14.3k|    UBool retVal = !gServiceInitOnce.isReset() && (getService() != nullptr);
  ------------------
  |  Branch (218:20): [True: 0, False: 14.3k]
  |  Branch (218:51): [True: 0, False: 0]
  ------------------
  219|  14.3k|    return retVal;
  220|  14.3k|}
coll.cpp:_ZN6icu_7812_GLOBAL__N_125setAttributesFromKeywordsERKNS_6LocaleERNS_8CollatorER10UErrorCode:
  319|  13.9k|void setAttributesFromKeywords(const Locale &loc, Collator &coll, UErrorCode &errorCode) {
  320|  13.9k|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (320:9): [True: 0, False: 13.9k]
  ------------------
  321|      0|        return;
  322|      0|    }
  323|  13.9k|    if (uprv_strcmp(loc.getName(), loc.getBaseName()) == 0) {
  ------------------
  |  |   38|  13.9k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  13.9k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (323:9): [True: 12.1k, False: 1.84k]
  ------------------
  324|       |        // No keywords.
  325|  12.1k|        return;
  326|  12.1k|    }
  327|  1.84k|    char value[1024];  // The reordering value could be long.
  328|       |    // Check for collation keywords that were already deprecated
  329|       |    // before any were supported in createInstance() (except for "collation").
  330|  1.84k|    int32_t length = loc.getKeywordValue("colHiraganaQuaternary", value, UPRV_LENGTHOF(value), errorCode);
  ------------------
  |  |   99|  1.84k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  331|  1.84k|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (331:9): [True: 2, False: 1.84k]
  ------------------
  332|      2|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  333|      2|        return;
  334|      2|    }
  335|  1.84k|    if (length != 0) {
  ------------------
  |  Branch (335:9): [True: 160, False: 1.68k]
  ------------------
  336|    160|        errorCode = U_UNSUPPORTED_ERROR;
  337|    160|        return;
  338|    160|    }
  339|  1.68k|    length = loc.getKeywordValue("variableTop", value, UPRV_LENGTHOF(value), errorCode);
  ------------------
  |  |   99|  1.68k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  340|  1.68k|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (340:9): [True: 2, False: 1.68k]
  ------------------
  341|      2|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  342|      2|        return;
  343|      2|    }
  344|  1.68k|    if (length != 0) {
  ------------------
  |  Branch (344:9): [True: 95, False: 1.58k]
  ------------------
  345|     95|        errorCode = U_UNSUPPORTED_ERROR;
  346|     95|        return;
  347|     95|    }
  348|       |    // Parse known collation keywords, ignore others.
  349|  1.58k|    if (errorCode == U_STRING_NOT_TERMINATED_WARNING) {
  ------------------
  |  Branch (349:9): [True: 0, False: 1.58k]
  ------------------
  350|      0|        errorCode = U_ZERO_ERROR;
  351|      0|    }
  352|  12.4k|    for (int32_t i = 0; i < UPRV_LENGTHOF(collAttributes); ++i) {
  ------------------
  |  |   99|  12.4k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (352:25): [True: 10.9k, False: 1.52k]
  ------------------
  353|  10.9k|        length = loc.getKeywordValue(collAttributes[i].name, value, UPRV_LENGTHOF(value), errorCode);
  ------------------
  |  |   99|  10.9k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  354|  10.9k|        if (U_FAILURE(errorCode) || errorCode == U_STRING_NOT_TERMINATED_WARNING) {
  ------------------
  |  Branch (354:13): [True: 44, False: 10.8k]
  |  Branch (354:37): [True: 1, False: 10.8k]
  ------------------
  355|     45|            errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  356|     45|            return;
  357|     45|        }
  358|  10.8k|        if (length == 0) { continue; }
  ------------------
  |  Branch (358:13): [True: 10.6k, False: 207]
  ------------------
  359|  1.55k|        for (int32_t j = 0;; ++j) {
  360|  1.55k|            if (j == UPRV_LENGTHOF(collAttributeValues)) {
  ------------------
  |  |   99|  1.55k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (360:17): [True: 19, False: 1.53k]
  ------------------
  361|     19|                errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  362|     19|                return;
  363|     19|            }
  364|  1.53k|            if (uprv_stricmp(value, collAttributeValues[j].name) == 0) {
  ------------------
  |  | 1542|  1.53k|#define uprv_stricmp U_ICU_ENTRY_POINT_RENAME(uprv_stricmp)
  |  |  ------------------
  |  |  |  |  123|  1.53k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.53k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.53k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (364:17): [True: 188, False: 1.34k]
  ------------------
  365|    188|                coll.setAttribute(collAttributes[i].attr, collAttributeValues[j].value, errorCode);
  366|    188|                break;
  367|    188|            }
  368|  1.53k|        }
  369|    207|    }
  370|  1.52k|    length = loc.getKeywordValue("colReorder", value, UPRV_LENGTHOF(value), errorCode);
  ------------------
  |  |   99|  1.52k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  371|  1.52k|    if (U_FAILURE(errorCode) || errorCode == U_STRING_NOT_TERMINATED_WARNING) {
  ------------------
  |  Branch (371:9): [True: 1, False: 1.52k]
  |  Branch (371:33): [True: 1, False: 1.52k]
  ------------------
  372|      2|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  373|      2|        return;
  374|      2|    }
  375|  1.52k|    if (length != 0) {
  ------------------
  |  Branch (375:9): [True: 315, False: 1.20k]
  ------------------
  376|    315|        int32_t codes[USCRIPT_CODE_LIMIT + (UCOL_REORDER_CODE_LIMIT - UCOL_REORDER_CODE_FIRST)];
  377|    315|        int32_t codesLength = 0;
  378|    315|        char *scriptName = value;
  379|  4.02k|        for (;;) {
  380|  4.02k|            if (codesLength == UPRV_LENGTHOF(codes)) {
  ------------------
  |  |   99|  4.02k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (380:17): [True: 0, False: 4.02k]
  ------------------
  381|      0|                errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  382|      0|                return;
  383|      0|            }
  384|  4.02k|            char *limit = scriptName;
  385|  4.02k|            char c;
  386|  21.1k|            while ((c = *limit) != 0 && c != '-') { ++limit; }
  ------------------
  |  Branch (386:20): [True: 20.8k, False: 297]
  |  Branch (386:41): [True: 17.1k, False: 3.72k]
  ------------------
  387|  4.02k|            *limit = 0;
  388|  4.02k|            int32_t code;
  389|  4.02k|            if ((limit - scriptName) == 4) {
  ------------------
  |  Branch (389:17): [True: 3.15k, False: 871]
  ------------------
  390|       |                // Strict parsing, accept only 4-letter script codes, not long names.
  391|  3.15k|                code = u_getPropertyValueEnum(UCHAR_SCRIPT, scriptName);
  ------------------
  |  |  285|  3.15k|#define u_getPropertyValueEnum U_ICU_ENTRY_POINT_RENAME(u_getPropertyValueEnum)
  |  |  ------------------
  |  |  |  |  123|  3.15k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.15k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.15k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  392|  3.15k|            } else {
  393|    871|                code = getReorderCode(scriptName);
  394|    871|            }
  395|  4.02k|            if (code < 0) {
  ------------------
  |  Branch (395:17): [True: 128, False: 3.89k]
  ------------------
  396|    128|                errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  397|    128|                return;
  398|    128|            }
  399|  3.89k|            codes[codesLength++] = code;
  400|  3.89k|            if (c == 0) { break; }
  ------------------
  |  Branch (400:17): [True: 187, False: 3.71k]
  ------------------
  401|  3.71k|            scriptName = limit + 1;
  402|  3.71k|        }
  403|    187|        coll.setReorderCodes(codes, codesLength, errorCode);
  404|    187|    }
  405|  1.39k|    length = loc.getKeywordValue("kv", value, UPRV_LENGTHOF(value), errorCode);
  ------------------
  |  |   99|  1.39k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  406|  1.39k|    if (U_FAILURE(errorCode) || errorCode == U_STRING_NOT_TERMINATED_WARNING) {
  ------------------
  |  Branch (406:9): [True: 84, False: 1.31k]
  |  Branch (406:33): [True: 1, False: 1.30k]
  ------------------
  407|     85|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  408|     85|        return;
  409|     85|    }
  410|  1.30k|    if (length != 0) {
  ------------------
  |  Branch (410:9): [True: 69, False: 1.24k]
  ------------------
  411|     69|        int32_t code = getReorderCode(value);
  412|     69|        if (code < 0) {
  ------------------
  |  Branch (412:13): [True: 53, False: 16]
  ------------------
  413|     53|            errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  414|     53|            return;
  415|     53|        }
  416|     16|        coll.setMaxVariable(static_cast<UColReorderCode>(code), errorCode);
  417|     16|    }
  418|  1.25k|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (418:9): [True: 1, False: 1.25k]
  ------------------
  419|      1|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  420|      1|    }
  421|  1.25k|}
coll.cpp:_ZN6icu_7812_GLOBAL__N_114getReorderCodeEPKc:
  299|    940|int32_t getReorderCode(const char *s) {
  300|  3.14k|    for (int32_t i = 0; i < UPRV_LENGTHOF(collReorderCodes); ++i) {
  ------------------
  |  |   99|  3.14k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (300:25): [True: 3.00k, False: 138]
  ------------------
  301|  3.00k|        if (uprv_stricmp(s, collReorderCodes[i]) == 0) {
  ------------------
  |  | 1542|  3.00k|#define uprv_stricmp U_ICU_ENTRY_POINT_RENAME(uprv_stricmp)
  |  |  ------------------
  |  |  |  |  123|  3.00k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.00k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.00k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (301:13): [True: 802, False: 2.20k]
  ------------------
  302|    802|            return UCOL_REORDER_CODE_FIRST + i;
  303|    802|        }
  304|  3.00k|    }
  305|       |    // Not supporting "others" = UCOL_REORDER_CODE_OTHERS
  306|       |    // as a synonym for Zzzz = USCRIPT_UNKNOWN for now:
  307|       |    // Avoid introducing synonyms/aliases.
  308|    138|    return -1;
  309|    940|}

_ZN6icu_789Collation27incThreeBytePrimaryByOffsetEjai:
   43|  6.02k|Collation::incThreeBytePrimaryByOffset(uint32_t basePrimary, UBool isCompressible, int32_t offset) {
   44|       |    // Extract the third byte, minus the minimum byte value,
   45|       |    // plus the offset, modulo the number of usable byte values, plus the minimum.
   46|  6.02k|    offset += (static_cast<int32_t>(basePrimary >> 8) & 0xff) - 2;
   47|  6.02k|    uint32_t primary = static_cast<uint32_t>((offset % 254) + 2) << 8;
   48|  6.02k|    offset /= 254;
   49|       |    // Same with the second byte,
   50|       |    // but reserve the PRIMARY_COMPRESSION_LOW_BYTE and high byte if necessary.
   51|  6.02k|    if(isCompressible) {
  ------------------
  |  Branch (51:8): [True: 735, False: 5.28k]
  ------------------
   52|    735|        offset += (static_cast<int32_t>(basePrimary >> 16) & 0xff) - 4;
   53|    735|        primary |= static_cast<uint32_t>((offset % 251) + 4) << 16;
   54|    735|        offset /= 251;
   55|  5.28k|    } else {
   56|  5.28k|        offset += (static_cast<int32_t>(basePrimary >> 16) & 0xff) - 2;
   57|  5.28k|        primary |= static_cast<uint32_t>((offset % 254) + 2) << 16;
   58|  5.28k|        offset /= 254;
   59|  5.28k|    }
   60|       |    // First byte, assume no further overflow.
   61|  6.02k|    return primary | ((basePrimary & 0xff000000) + static_cast<uint32_t>(offset << 24));
   62|  6.02k|}
_ZN6icu_789Collation32getThreeBytePrimaryForOffsetDataEil:
  115|  6.02k|Collation::getThreeBytePrimaryForOffsetData(UChar32 c, int64_t dataCE) {
  116|  6.02k|    uint32_t p = static_cast<uint32_t>(dataCE >> 32); // three-byte primary pppppp00
  117|  6.02k|    int32_t lower32 = static_cast<int32_t>(dataCE); // base code point b & step s: bbbbbbss (bit 7: isCompressible)
  118|  6.02k|    int32_t offset = (c - (lower32 >> 8)) * (lower32 & 0x7f);  // delta * increment
  119|  6.02k|    UBool isCompressible = (lower32 & 0x80) != 0;
  120|  6.02k|    return Collation::incThreeBytePrimaryByOffset(p, isCompressible, offset);
  121|  6.02k|}
_ZN6icu_789Collation30unassignedPrimaryFromCodePointEi:
  124|  7.97k|Collation::unassignedPrimaryFromCodePoint(UChar32 c) {
  125|       |    // Create a gap before U+0000. Use c=-1 for [first unassigned].
  126|  7.97k|    ++c;
  127|       |    // Fourth byte: 18 values, every 14th byte value (gap of 13).
  128|  7.97k|    uint32_t primary = 2 + (c % 18) * 14;
  129|  7.97k|    c /= 18;
  130|       |    // Third byte: 254 values.
  131|  7.97k|    primary |= (2 + (c % 254)) << 8;
  132|  7.97k|    c /= 254;
  133|       |    // Second byte: 251 values 04..FE excluding the primary compression bytes.
  134|  7.97k|    primary |= (4 + (c % 251)) << 16;
  135|       |    // One lead byte covers all code points (c < 0x1182B4 = 1*251*254*18).
  136|  7.97k|    return primary | (UNASSIGNED_IMPLICIT_BYTE << 24);
  137|  7.97k|}

_ZN6icu_789Collation21ceFromLongPrimaryCE32Ej:
  319|   122k|    static inline int64_t ceFromLongPrimaryCE32(uint32_t ce32) {
  320|   122k|        return (static_cast<int64_t>(ce32 & 0xffffff00) << 32) | COMMON_SEC_AND_TER_CE;
  321|   122k|    }
_ZN6icu_789Collation23ceFromLongSecondaryCE32Ej:
  326|  4.81k|    static inline int64_t ceFromLongSecondaryCE32(uint32_t ce32) {
  327|  4.81k|        return ce32 & 0xffffff00;
  328|  4.81k|    }
_ZN6icu_789Collation13isSpecialCE32Ej:
  339|   468k|    static inline UBool isSpecialCE32(uint32_t ce32) {
  340|   468k|        return (ce32 & 0xff) >= SPECIAL_CE32_LOW_BYTE;
  341|   468k|    }
_ZN6icu_789Collation11tagFromCE32Ej:
  343|   376k|    static inline int32_t tagFromCE32(uint32_t ce32) {
  344|   376k|        return static_cast<int32_t>(ce32 & 0xf);
  345|   376k|    }
_ZN6icu_789Collation16latinCE0FromCE32Ej:
  389|  3.54k|    static inline int64_t latinCE0FromCE32(uint32_t ce32) {
  390|  3.54k|        return (static_cast<int64_t>(ce32 & 0xff000000) << 32) | COMMON_SECONDARY_CE | ((ce32 & 0xff0000) >> 8);
  391|  3.54k|    }
_ZN6icu_789Collation16latinCE1FromCE32Ej:
  397|  3.54k|    static inline int64_t latinCE1FromCE32(uint32_t ce32) {
  398|  3.54k|        return ((ce32 & 0xff00) << 16) | COMMON_TERTIARY_CE;
  399|  3.54k|    }
_ZN6icu_789Collation13indexFromCE32Ej:
  404|   204k|    static inline int32_t indexFromCE32(uint32_t ce32) {
  405|   204k|        return static_cast<int32_t>(ce32 >> 13);
  406|   204k|    }
_ZN6icu_789Collation14lengthFromCE32Ej:
  411|  59.0k|    static inline int32_t lengthFromCE32(uint32_t ce32) {
  412|  59.0k|        return (ce32 >> 8) & 31;
  413|  59.0k|    }
_ZN6icu_789Collation16ceFromSimpleCE32Ej:
  423|  91.4k|    static inline int64_t ceFromSimpleCE32(uint32_t ce32) {
  424|       |        // normal form ppppsstt -> pppp0000ss00tt00
  425|       |        // assert (ce32 & 0xff) < SPECIAL_CE32_LOW_BYTE
  426|  91.4k|        return (static_cast<int64_t>(ce32 & 0xffff0000) << 32) | ((ce32 & 0xff00) << 16) | ((ce32 & 0xff) << 8);
  427|  91.4k|    }
_ZN6icu_789Collation10ceFromCE32Ej:
  430|   958k|    static inline int64_t ceFromCE32(uint32_t ce32) {
  431|   958k|        uint32_t tertiary = ce32 & 0xff;
  432|   958k|        if(tertiary < SPECIAL_CE32_LOW_BYTE) {
  ------------------
  |  Branch (432:12): [True: 957k, False: 613]
  ------------------
  433|       |            // normal form ppppsstt -> pppp0000ss00tt00
  434|   957k|            return (static_cast<int64_t>(ce32 & 0xffff0000) << 32) | ((ce32 & 0xff00) << 16) | (tertiary << 8);
  435|   957k|        } else {
  436|    613|            ce32 -= tertiary;
  437|    613|            if((tertiary & 0xf) == LONG_PRIMARY_TAG) {
  ------------------
  |  Branch (437:16): [True: 217, False: 396]
  ------------------
  438|       |                // long-primary form ppppppC1 -> pppppp00050000500
  439|    217|                return (static_cast<int64_t>(ce32) << 32) | COMMON_SEC_AND_TER_CE;
  440|    396|            } else {
  441|       |                // long-secondary form ssssttC2 -> 00000000sssstt00
  442|       |                // assert (tertiary & 0xf) == LONG_SECONDARY_TAG
  443|    396|                return ce32;
  444|    396|            }
  445|    613|        }
  446|   958k|    }
_ZN6icu_789Collation6makeCEEj:
  449|  14.0k|    static inline int64_t makeCE(uint32_t p) {
  450|  14.0k|        return (static_cast<int64_t>(p) << 32) | COMMON_SEC_AND_TER_CE;
  451|  14.0k|    }
_ZN6icu_789Collation25unassignedCEFromCodePointEi:
  492|  7.97k|    static inline int64_t unassignedCEFromCodePoint(UChar32 c) {
  493|  7.97k|        return makeCE(unassignedPrimaryFromCodePoint(c));
  494|  7.97k|    }

_ZN6icu_7816CollationCompare21compareUpToQuaternaryERNS_17CollationIteratorES2_RKNS_17CollationSettingsER10UErrorCode:
   31|  7.07k|                                        UErrorCode &errorCode) {
   32|  7.07k|    if(U_FAILURE(errorCode)) { return UCOL_EQUAL; }
  ------------------
  |  Branch (32:8): [True: 0, False: 7.07k]
  ------------------
   33|       |
   34|  7.07k|    int32_t options = settings.options;
   35|  7.07k|    uint32_t variableTop;
   36|  7.07k|    if((options & CollationSettings::ALTERNATE_MASK) == 0) {
  ------------------
  |  Branch (36:8): [True: 6.77k, False: 308]
  ------------------
   37|  6.77k|        variableTop = 0;
   38|  6.77k|    } else {
   39|       |        // +1 so that we can use "<" and primary ignorables test out early.
   40|    308|        variableTop = settings.variableTop + 1;
   41|    308|    }
   42|  7.07k|    UBool anyVariable = false;
   43|       |
   44|       |    // Fetch CEs, compare primaries, store secondary & tertiary weights.
   45|   516k|    for(;;) {
   46|       |        // We fetch CEs until we get a non-ignorable primary or reach the end.
   47|   516k|        uint32_t leftPrimary;
   48|   548k|        do {
   49|   548k|            int64_t ce = left.nextCE(errorCode);
   50|   548k|            leftPrimary = static_cast<uint32_t>(ce >> 32);
   51|   548k|            if(leftPrimary < variableTop && leftPrimary > Collation::MERGE_SEPARATOR_PRIMARY) {
  ------------------
  |  Branch (51:16): [True: 2.39k, False: 545k]
  |  Branch (51:45): [True: 1.62k, False: 776]
  ------------------
   52|       |                // Variable CE, shift it to quaternary level.
   53|       |                // Ignore all following primary ignorables, and shift further variable CEs.
   54|  1.62k|                anyVariable = true;
   55|  5.08k|                do {
   56|       |                    // Store only the primary of the variable CE.
   57|  5.08k|                    left.setCurrentCE(ce & INT64_C(0xffffffff00000000));
   58|  6.02k|                    for(;;) {
   59|  6.02k|                        ce = left.nextCE(errorCode);
   60|  6.02k|                        leftPrimary = static_cast<uint32_t>(ce >> 32);
   61|  6.02k|                        if(leftPrimary == 0) {
  ------------------
  |  Branch (61:28): [True: 943, False: 5.08k]
  ------------------
   62|    943|                            left.setCurrentCE(0);
   63|  5.08k|                        } else {
   64|  5.08k|                            break;
   65|  5.08k|                        }
   66|  6.02k|                    }
   67|  5.08k|                } while(leftPrimary < variableTop &&
  ------------------
  |  Branch (67:25): [True: 3.57k, False: 1.51k]
  ------------------
   68|  5.08k|                        leftPrimary > Collation::MERGE_SEPARATOR_PRIMARY);
  ------------------
  |  Branch (68:25): [True: 3.46k, False: 110]
  ------------------
   69|  1.62k|            }
   70|   548k|        } while(leftPrimary == 0);
  ------------------
  |  Branch (70:17): [True: 31.7k, False: 516k]
  ------------------
   71|       |
   72|   516k|        uint32_t rightPrimary;
   73|   549k|        do {
   74|   549k|            int64_t ce = right.nextCE(errorCode);
   75|   549k|            rightPrimary = static_cast<uint32_t>(ce >> 32);
   76|   549k|            if(rightPrimary < variableTop && rightPrimary > Collation::MERGE_SEPARATOR_PRIMARY) {
  ------------------
  |  Branch (76:16): [True: 2.52k, False: 546k]
  |  Branch (76:46): [True: 1.60k, False: 914]
  ------------------
   77|       |                // Variable CE, shift it to quaternary level.
   78|       |                // Ignore all following primary ignorables, and shift further variable CEs.
   79|  1.60k|                anyVariable = true;
   80|  4.89k|                do {
   81|       |                    // Store only the primary of the variable CE.
   82|  4.89k|                    right.setCurrentCE(ce & INT64_C(0xffffffff00000000));
   83|  5.67k|                    for(;;) {
   84|  5.67k|                        ce = right.nextCE(errorCode);
   85|  5.67k|                        rightPrimary = static_cast<uint32_t>(ce >> 32);
   86|  5.67k|                        if(rightPrimary == 0) {
  ------------------
  |  Branch (86:28): [True: 786, False: 4.89k]
  ------------------
   87|    786|                            right.setCurrentCE(0);
   88|  4.89k|                        } else {
   89|  4.89k|                            break;
   90|  4.89k|                        }
   91|  5.67k|                    }
   92|  4.89k|                } while(rightPrimary < variableTop &&
  ------------------
  |  Branch (92:25): [True: 3.38k, False: 1.50k]
  ------------------
   93|  4.89k|                        rightPrimary > Collation::MERGE_SEPARATOR_PRIMARY);
  ------------------
  |  Branch (93:25): [True: 3.28k, False: 102]
  ------------------
   94|  1.60k|            }
   95|   549k|        } while(rightPrimary == 0);
  ------------------
  |  Branch (95:17): [True: 33.2k, False: 516k]
  ------------------
   96|       |
   97|   516k|        if(leftPrimary != rightPrimary) {
  ------------------
  |  Branch (97:12): [True: 5.98k, False: 510k]
  ------------------
   98|       |            // Return the primary difference, with script reordering.
   99|  5.98k|            if(settings.hasReordering()) {
  ------------------
  |  Branch (99:16): [True: 2.42k, False: 3.55k]
  ------------------
  100|  2.42k|                leftPrimary = settings.reorder(leftPrimary);
  101|  2.42k|                rightPrimary = settings.reorder(rightPrimary);
  102|  2.42k|            }
  103|  5.98k|            return (leftPrimary < rightPrimary) ? UCOL_LESS : UCOL_GREATER;
  ------------------
  |  Branch (103:20): [True: 2.97k, False: 3.00k]
  ------------------
  104|  5.98k|        }
  105|   510k|        if(leftPrimary == Collation::NO_CE_PRIMARY) { break; }
  ------------------
  |  Branch (105:12): [True: 1.09k, False: 509k]
  ------------------
  106|   510k|    }
  107|  1.09k|    if(U_FAILURE(errorCode)) { return UCOL_EQUAL; }
  ------------------
  |  Branch (107:8): [True: 0, False: 1.09k]
  ------------------
  108|       |
  109|       |    // Compare the buffered secondary & tertiary weights.
  110|       |    // We might skip the secondary level but continue with the case level
  111|       |    // which is turned on separately.
  112|  1.09k|    if(CollationSettings::getStrength(options) >= UCOL_SECONDARY) {
  ------------------
  |  Branch (112:8): [True: 1.06k, False: 29]
  ------------------
  113|  1.06k|        if((options & CollationSettings::BACKWARD_SECONDARY) == 0) {
  ------------------
  |  Branch (113:12): [True: 1.00k, False: 66]
  ------------------
  114|  1.00k|            int32_t leftIndex = 0;
  115|  1.00k|            int32_t rightIndex = 0;
  116|  42.9k|            for(;;) {
  117|  42.9k|                uint32_t leftSecondary;
  118|  56.9k|                do {
  119|  56.9k|                    leftSecondary = static_cast<uint32_t>(left.getCE(leftIndex++)) >> 16;
  120|  56.9k|                } while(leftSecondary == 0);
  ------------------
  |  Branch (120:25): [True: 13.9k, False: 42.9k]
  ------------------
  121|       |
  122|  42.9k|                uint32_t rightSecondary;
  123|  56.9k|                do {
  124|  56.9k|                    rightSecondary = static_cast<uint32_t>(right.getCE(rightIndex++)) >> 16;
  125|  56.9k|                } while(rightSecondary == 0);
  ------------------
  |  Branch (125:25): [True: 14.0k, False: 42.9k]
  ------------------
  126|       |
  127|  42.9k|                if(leftSecondary != rightSecondary) {
  ------------------
  |  Branch (127:20): [True: 89, False: 42.8k]
  ------------------
  128|     89|                    return (leftSecondary < rightSecondary) ? UCOL_LESS : UCOL_GREATER;
  ------------------
  |  Branch (128:28): [True: 29, False: 60]
  ------------------
  129|     89|                }
  130|  42.8k|                if(leftSecondary == Collation::NO_CE_WEIGHT16) { break; }
  ------------------
  |  Branch (130:20): [True: 914, False: 41.9k]
  ------------------
  131|  42.8k|            }
  132|  1.00k|        } else {
  133|       |            // The backwards secondary level compares secondary weights backwards
  134|       |            // within segments separated by the merge separator (U+FFFE, weight 02).
  135|     66|            int32_t leftStart = 0;
  136|     66|            int32_t rightStart = 0;
  137|    261|            for(;;) {
  138|       |                // Find the merge separator or the NO_CE terminator.
  139|    261|                uint32_t p;
  140|    261|                int32_t leftLimit = leftStart;
  141|  9.28k|                while ((p = static_cast<uint32_t>(left.getCE(leftLimit) >> 32)) >
  ------------------
  |  Branch (141:24): [True: 2.45k, False: 6.83k]
  ------------------
  142|  9.28k|                            Collation::MERGE_SEPARATOR_PRIMARY ||
  143|  9.28k|                        p == 0) {
  ------------------
  |  Branch (143:25): [True: 6.57k, False: 261]
  ------------------
  144|  9.02k|                    ++leftLimit;
  145|  9.02k|                }
  146|    261|                int32_t rightLimit = rightStart;
  147|  9.28k|                while ((p = static_cast<uint32_t>(right.getCE(rightLimit) >> 32)) >
  ------------------
  |  Branch (147:24): [True: 2.45k, False: 6.83k]
  ------------------
  148|  9.28k|                            Collation::MERGE_SEPARATOR_PRIMARY ||
  149|  9.28k|                        p == 0) {
  ------------------
  |  Branch (149:25): [True: 6.57k, False: 261]
  ------------------
  150|  9.02k|                    ++rightLimit;
  151|  9.02k|                }
  152|       |
  153|       |                // Compare the segments.
  154|    261|                int32_t leftIndex = leftLimit;
  155|    261|                int32_t rightIndex = rightLimit;
  156|  8.77k|                for(;;) {
  157|  8.77k|                    int32_t leftSecondary = 0;
  158|  17.3k|                    while(leftSecondary == 0 && leftIndex > leftStart) {
  ------------------
  |  Branch (158:27): [True: 8.83k, False: 8.54k]
  |  Branch (158:49): [True: 8.59k, False: 236]
  ------------------
  159|  8.59k|                        leftSecondary = static_cast<uint32_t>(left.getCE(--leftIndex)) >> 16;
  160|  8.59k|                    }
  161|       |
  162|  8.77k|                    int32_t rightSecondary = 0;
  163|  17.3k|                    while(rightSecondary == 0 && rightIndex > rightStart) {
  ------------------
  |  Branch (163:27): [True: 8.82k, False: 8.53k]
  |  Branch (163:50): [True: 8.58k, False: 239]
  ------------------
  164|  8.58k|                        rightSecondary = static_cast<uint32_t>(right.getCE(--rightIndex)) >> 16;
  165|  8.58k|                    }
  166|       |
  167|  8.77k|                    if(leftSecondary != rightSecondary) {
  ------------------
  |  Branch (167:24): [True: 28, False: 8.74k]
  ------------------
  168|     28|                        return (leftSecondary < rightSecondary) ? UCOL_LESS : UCOL_GREATER;
  ------------------
  |  Branch (168:32): [True: 11, False: 17]
  ------------------
  169|     28|                    }
  170|  8.74k|                    if(leftSecondary == 0) { break; }
  ------------------
  |  Branch (170:24): [True: 233, False: 8.51k]
  ------------------
  171|  8.74k|                }
  172|       |
  173|       |                // Did we reach the end of either string?
  174|       |                // Both strings have the same number of merge separators,
  175|       |                // or else there would have been a primary-level difference.
  176|    233|                U_ASSERT(left.getCE(leftLimit) == right.getCE(rightLimit));
  ------------------
  |  |   35|    233|#   define U_ASSERT(exp) (void)0
  ------------------
  177|    233|                if(p == Collation::NO_CE_PRIMARY) { break; }
  ------------------
  |  Branch (177:20): [True: 38, False: 195]
  ------------------
  178|       |                // Skip both merge separators and continue.
  179|    195|                leftStart = leftLimit + 1;
  180|    195|                rightStart = rightLimit + 1;
  181|    195|            }
  182|     66|        }
  183|  1.06k|    }
  184|       |
  185|    981|    if((options & CollationSettings::CASE_LEVEL) != 0) {
  ------------------
  |  Branch (185:8): [True: 0, False: 981]
  ------------------
  186|      0|        int32_t strength = CollationSettings::getStrength(options);
  187|      0|        int32_t leftIndex = 0;
  188|      0|        int32_t rightIndex = 0;
  189|      0|        for(;;) {
  190|      0|            uint32_t leftCase, leftLower32, rightCase;
  191|      0|            if(strength == UCOL_PRIMARY) {
  ------------------
  |  Branch (191:16): [True: 0, False: 0]
  ------------------
  192|       |                // Primary+caseLevel: Ignore case level weights of primary ignorables.
  193|       |                // Otherwise we would get a-umlaut > a
  194|       |                // which is not desirable for accent-insensitive sorting.
  195|       |                // Check for (lower 32 bits) == 0 as well because variable CEs are stored
  196|       |                // with only primary weights.
  197|      0|                int64_t ce;
  198|      0|                do {
  199|      0|                    ce = left.getCE(leftIndex++);
  200|      0|                    leftCase = static_cast<uint32_t>(ce);
  201|      0|                } while (static_cast<uint32_t>(ce >> 32) == 0 || leftCase == 0);
  ------------------
  |  Branch (201:26): [True: 0, False: 0]
  |  Branch (201:66): [True: 0, False: 0]
  ------------------
  202|      0|                leftLower32 = leftCase;
  203|      0|                leftCase &= 0xc000;
  204|       |
  205|      0|                do {
  206|      0|                    ce = right.getCE(rightIndex++);
  207|      0|                    rightCase = static_cast<uint32_t>(ce);
  208|      0|                } while (static_cast<uint32_t>(ce >> 32) == 0 || rightCase == 0);
  ------------------
  |  Branch (208:26): [True: 0, False: 0]
  |  Branch (208:66): [True: 0, False: 0]
  ------------------
  209|      0|                rightCase &= 0xc000;
  210|      0|            } else {
  211|       |                // Secondary+caseLevel: By analogy with the above,
  212|       |                // ignore case level weights of secondary ignorables.
  213|       |                //
  214|       |                // Note: A tertiary CE has uppercase case bits (0.0.ut)
  215|       |                // to keep tertiary+caseFirst well-formed.
  216|       |                //
  217|       |                // Tertiary+caseLevel: Also ignore case level weights of secondary ignorables.
  218|       |                // Otherwise a tertiary CE's uppercase would be no greater than
  219|       |                // a primary/secondary CE's uppercase.
  220|       |                // (See UCA well-formedness condition 2.)
  221|       |                // We could construct a special case weight higher than uppercase,
  222|       |                // but it's simpler to always ignore case weights of secondary ignorables,
  223|       |                // turning 0.0.ut into 0.0.0.t.
  224|       |                // (See LDML Collation, Case Parameters.)
  225|      0|                do {
  226|      0|                    leftCase = static_cast<uint32_t>(left.getCE(leftIndex++));
  227|      0|                } while(leftCase <= 0xffff);
  ------------------
  |  Branch (227:25): [True: 0, False: 0]
  ------------------
  228|      0|                leftLower32 = leftCase;
  229|      0|                leftCase &= 0xc000;
  230|       |
  231|      0|                do {
  232|      0|                    rightCase = static_cast<uint32_t>(right.getCE(rightIndex++));
  233|      0|                } while(rightCase <= 0xffff);
  ------------------
  |  Branch (233:25): [True: 0, False: 0]
  ------------------
  234|      0|                rightCase &= 0xc000;
  235|      0|            }
  236|       |
  237|       |            // No need to handle NO_CE and MERGE_SEPARATOR specially:
  238|       |            // There is one case weight for each previous-level weight,
  239|       |            // so level length differences were handled there.
  240|      0|            if(leftCase != rightCase) {
  ------------------
  |  Branch (240:16): [True: 0, False: 0]
  ------------------
  241|      0|                if((options & CollationSettings::UPPER_FIRST) == 0) {
  ------------------
  |  Branch (241:20): [True: 0, False: 0]
  ------------------
  242|      0|                    return (leftCase < rightCase) ? UCOL_LESS : UCOL_GREATER;
  ------------------
  |  Branch (242:28): [True: 0, False: 0]
  ------------------
  243|      0|                } else {
  244|      0|                    return (leftCase < rightCase) ? UCOL_GREATER : UCOL_LESS;
  ------------------
  |  Branch (244:28): [True: 0, False: 0]
  ------------------
  245|      0|                }
  246|      0|            }
  247|      0|            if((leftLower32 >> 16) == Collation::NO_CE_WEIGHT16) { break; }
  ------------------
  |  Branch (247:16): [True: 0, False: 0]
  ------------------
  248|      0|        }
  249|      0|    }
  250|    981|    if(CollationSettings::getStrength(options) <= UCOL_SECONDARY) { return UCOL_EQUAL; }
  ------------------
  |  Branch (250:8): [True: 62, False: 919]
  ------------------
  251|       |
  252|    919|    uint32_t tertiaryMask = CollationSettings::getTertiaryMask(options);
  253|       |
  254|    919|    int32_t leftIndex = 0;
  255|    919|    int32_t rightIndex = 0;
  256|    919|    uint32_t anyQuaternaries = 0;
  257|  41.8k|    for(;;) {
  258|  41.8k|        uint32_t leftLower32, leftTertiary;
  259|  55.7k|        do {
  260|  55.7k|            leftLower32 = static_cast<uint32_t>(left.getCE(leftIndex++));
  261|  55.7k|            anyQuaternaries |= leftLower32;
  262|  55.7k|            U_ASSERT((leftLower32 & Collation::ONLY_TERTIARY_MASK) != 0 ||
  ------------------
  |  |   35|  55.7k|#   define U_ASSERT(exp) (void)0
  ------------------
  263|  55.7k|                     (leftLower32 & 0xc0c0) == 0);
  264|  55.7k|            leftTertiary = leftLower32 & tertiaryMask;
  265|  55.7k|        } while(leftTertiary == 0);
  ------------------
  |  Branch (265:17): [True: 13.8k, False: 41.8k]
  ------------------
  266|       |
  267|  41.8k|        uint32_t rightLower32, rightTertiary;
  268|  55.8k|        do {
  269|  55.8k|            rightLower32 = static_cast<uint32_t>(right.getCE(rightIndex++));
  270|  55.8k|            anyQuaternaries |= rightLower32;
  271|  55.8k|            U_ASSERT((rightLower32 & Collation::ONLY_TERTIARY_MASK) != 0 ||
  ------------------
  |  |   35|  55.8k|#   define U_ASSERT(exp) (void)0
  ------------------
  272|  55.8k|                     (rightLower32 & 0xc0c0) == 0);
  273|  55.8k|            rightTertiary = rightLower32 & tertiaryMask;
  274|  55.8k|        } while(rightTertiary == 0);
  ------------------
  |  Branch (274:17): [True: 13.9k, False: 41.8k]
  ------------------
  275|       |
  276|  41.8k|        if(leftTertiary != rightTertiary) {
  ------------------
  |  Branch (276:12): [True: 70, False: 41.8k]
  ------------------
  277|     70|            if(CollationSettings::sortsTertiaryUpperCaseFirst(options)) {
  ------------------
  |  Branch (277:16): [True: 16, False: 54]
  ------------------
  278|       |                // Pass through NO_CE and keep real tertiary weights larger than that.
  279|       |                // Do not change the artificial uppercase weight of a tertiary CE (0.0.ut),
  280|       |                // to keep tertiary CEs well-formed.
  281|       |                // Their case+tertiary weights must be greater than those of
  282|       |                // primary and secondary CEs.
  283|     16|                if(leftTertiary > Collation::NO_CE_WEIGHT16) {
  ------------------
  |  Branch (283:20): [True: 16, False: 0]
  ------------------
  284|     16|                    if(leftLower32 > 0xffff) {
  ------------------
  |  Branch (284:24): [True: 16, False: 0]
  ------------------
  285|     16|                        leftTertiary ^= 0xc000;
  286|     16|                    } else {
  287|      0|                        leftTertiary += 0x4000;
  288|      0|                    }
  289|     16|                }
  290|     16|                if(rightTertiary > Collation::NO_CE_WEIGHT16) {
  ------------------
  |  Branch (290:20): [True: 16, False: 0]
  ------------------
  291|     16|                    if(rightLower32 > 0xffff) {
  ------------------
  |  Branch (291:24): [True: 16, False: 0]
  ------------------
  292|     16|                        rightTertiary ^= 0xc000;
  293|     16|                    } else {
  294|      0|                        rightTertiary += 0x4000;
  295|      0|                    }
  296|     16|                }
  297|     16|            }
  298|     70|            return (leftTertiary < rightTertiary) ? UCOL_LESS : UCOL_GREATER;
  ------------------
  |  Branch (298:20): [True: 30, False: 40]
  ------------------
  299|     70|        }
  300|  41.8k|        if(leftTertiary == Collation::NO_CE_WEIGHT16) { break; }
  ------------------
  |  Branch (300:12): [True: 849, False: 40.9k]
  ------------------
  301|  41.8k|    }
  302|    849|    if(CollationSettings::getStrength(options) <= UCOL_TERTIARY) { return UCOL_EQUAL; }
  ------------------
  |  Branch (302:8): [True: 20, False: 829]
  ------------------
  303|       |
  304|    829|    if(!anyVariable && (anyQuaternaries & 0xc0) == 0) {
  ------------------
  |  Branch (304:8): [True: 722, False: 107]
  |  Branch (304:24): [True: 721, False: 1]
  ------------------
  305|       |        // If there are no "variable" CEs and no non-zero quaternary weights,
  306|       |        // then there are no quaternary differences.
  307|    721|        return UCOL_EQUAL;
  308|    721|    }
  309|       |
  310|    108|    leftIndex = 0;
  311|    108|    rightIndex = 0;
  312|  1.21k|    for(;;) {
  313|  1.21k|        uint32_t leftQuaternary;
  314|  1.59k|        do {
  315|  1.59k|            int64_t ce = left.getCE(leftIndex++);
  316|  1.59k|            leftQuaternary = static_cast<uint32_t>(ce) & 0xffff;
  317|  1.59k|            if(leftQuaternary <= Collation::NO_CE_WEIGHT16) {
  ------------------
  |  Branch (317:16): [True: 881, False: 711]
  ------------------
  318|       |                // Variable primary or completely ignorable or NO_CE.
  319|    881|                leftQuaternary = static_cast<uint32_t>(ce >> 32);
  320|    881|            } else {
  321|       |                // Regular CE, not tertiary ignorable.
  322|       |                // Preserve the quaternary weight in bits 7..6.
  323|    711|                leftQuaternary |= 0xffffff3f;
  324|    711|            }
  325|  1.59k|        } while(leftQuaternary == 0);
  ------------------
  |  Branch (325:17): [True: 377, False: 1.21k]
  ------------------
  326|       |
  327|  1.21k|        uint32_t rightQuaternary;
  328|  1.64k|        do {
  329|  1.64k|            int64_t ce = right.getCE(rightIndex++);
  330|  1.64k|            rightQuaternary = static_cast<uint32_t>(ce) & 0xffff;
  331|  1.64k|            if(rightQuaternary <= Collation::NO_CE_WEIGHT16) {
  ------------------
  |  Branch (331:16): [True: 927, False: 722]
  ------------------
  332|       |                // Variable primary or completely ignorable or NO_CE.
  333|    927|                rightQuaternary = static_cast<uint32_t>(ce >> 32);
  334|    927|            } else {
  335|       |                // Regular CE, not tertiary ignorable.
  336|       |                // Preserve the quaternary weight in bits 7..6.
  337|    722|                rightQuaternary |= 0xffffff3f;
  338|    722|            }
  339|  1.64k|        } while(rightQuaternary == 0);
  ------------------
  |  Branch (339:17): [True: 434, False: 1.21k]
  ------------------
  340|       |
  341|  1.21k|        if(leftQuaternary != rightQuaternary) {
  ------------------
  |  Branch (341:12): [True: 87, False: 1.12k]
  ------------------
  342|       |            // Return the difference, with script reordering.
  343|     87|            if(settings.hasReordering()) {
  ------------------
  |  Branch (343:16): [True: 87, False: 0]
  ------------------
  344|     87|                leftQuaternary = settings.reorder(leftQuaternary);
  345|     87|                rightQuaternary = settings.reorder(rightQuaternary);
  346|     87|            }
  347|     87|            return (leftQuaternary < rightQuaternary) ? UCOL_LESS : UCOL_GREATER;
  ------------------
  |  Branch (347:20): [True: 41, False: 46]
  ------------------
  348|     87|        }
  349|  1.12k|        if(leftQuaternary == Collation::NO_CE_PRIMARY) { break; }
  ------------------
  |  Branch (349:12): [True: 21, False: 1.10k]
  ------------------
  350|  1.12k|    }
  351|     21|    return UCOL_EQUAL;
  352|    108|}

_ZNK6icu_7813CollationData23getFirstPrimaryForGroupEi:
  119|  29.3k|CollationData::getFirstPrimaryForGroup(int32_t script) const {
  120|  29.3k|    int32_t index = getScriptIndex(script);
  121|  29.3k|    return index == 0 ? 0 : static_cast<uint32_t>(scriptStarts[index]) << 16;
  ------------------
  |  Branch (121:12): [True: 9.76k, False: 19.6k]
  ------------------
  122|  29.3k|}
_ZNK6icu_7813CollationData22getLastPrimaryForGroupEi:
  125|    190|CollationData::getLastPrimaryForGroup(int32_t script) const {
  126|    190|    int32_t index = getScriptIndex(script);
  127|    190|    if(index == 0) {
  ------------------
  |  Branch (127:8): [True: 0, False: 190]
  ------------------
  128|      0|        return 0;
  129|      0|    }
  130|    190|    uint32_t limit = scriptStarts[index + 1];
  131|    190|    return (limit << 16) - 1;
  132|    190|}
_ZNK6icu_7813CollationData14getScriptIndexEi:
  156|  31.1k|CollationData::getScriptIndex(int32_t script) const {
  157|  31.1k|    if(script < 0) {
  ------------------
  |  Branch (157:8): [True: 0, False: 31.1k]
  ------------------
  158|      0|        return 0;
  159|  31.1k|    } else if(script < numScripts) {
  ------------------
  |  Branch (159:15): [True: 4.77k, False: 26.3k]
  ------------------
  160|  4.77k|        return scriptsIndex[script];
  161|  26.3k|    } else if(script < UCOL_REORDER_CODE_FIRST) {
  ------------------
  |  Branch (161:15): [True: 0, False: 26.3k]
  ------------------
  162|      0|        return 0;
  163|  26.3k|    } else {
  164|  26.3k|        script -= UCOL_REORDER_CODE_FIRST;
  165|  26.3k|        if(script < MAX_NUM_SPECIAL_REORDER_CODES) {
  ------------------
  |  Branch (165:12): [True: 26.3k, False: 0]
  ------------------
  166|  26.3k|            return scriptsIndex[numScripts + script];
  167|  26.3k|        } else {
  168|      0|            return 0;
  169|      0|        }
  170|  26.3k|    }
  171|  31.1k|}
_ZNK6icu_7813CollationData17makeReorderRangesEPKiiRNS_9UVector32ER10UErrorCode:
  207|    185|                                 UVector32 &ranges, UErrorCode &errorCode) const {
  208|    185|    makeReorderRanges(reorder, length, false, ranges, errorCode);
  209|    185|}
_ZNK6icu_7813CollationData17makeReorderRangesEPKiiaRNS_9UVector32ER10UErrorCode:
  214|    192|                                 UVector32 &ranges, UErrorCode &errorCode) const {
  215|    192|    if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (215:8): [True: 0, False: 192]
  ------------------
  216|    192|    ranges.removeAllElements();
  217|    192|    if(length == 0 || (length == 1 && reorder[0] == USCRIPT_UNKNOWN)) {
  ------------------
  |  Branch (217:8): [True: 0, False: 192]
  |  Branch (217:24): [True: 35, False: 157]
  |  Branch (217:39): [True: 0, False: 35]
  ------------------
  218|      0|        return;
  219|      0|    }
  220|       |
  221|       |    // Maps each script-or-group range to a new lead byte.
  222|    192|    uint8_t table[MAX_NUM_SCRIPT_RANGES];
  223|    192|    uprv_memset(table, 0, sizeof(table));
  ------------------
  |  |  100|    192|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|    192|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  224|       |
  225|    192|    {
  226|       |        // Set "don't care" values for reserved ranges.
  227|    192|        int32_t index = scriptsIndex[
  228|    192|                numScripts + REORDER_RESERVED_BEFORE_LATIN - UCOL_REORDER_CODE_FIRST];
  229|    192|        if(index != 0) {
  ------------------
  |  Branch (229:12): [True: 192, False: 0]
  ------------------
  230|    192|            table[index] = 0xff;
  231|    192|        }
  232|    192|        index = scriptsIndex[
  233|    192|                numScripts + REORDER_RESERVED_AFTER_LATIN - UCOL_REORDER_CODE_FIRST];
  234|    192|        if(index != 0) {
  ------------------
  |  Branch (234:12): [True: 192, False: 0]
  ------------------
  235|    192|            table[index] = 0xff;
  236|    192|        }
  237|    192|    }
  238|       |
  239|       |    // Never reorder special low and high primary lead bytes.
  240|    192|    U_ASSERT(scriptStartsLength >= 2);
  ------------------
  |  |   35|    192|#   define U_ASSERT(exp) (void)0
  ------------------
  241|    192|    U_ASSERT(scriptStarts[0] == 0);
  ------------------
  |  |   35|    192|#   define U_ASSERT(exp) (void)0
  ------------------
  242|    192|    int32_t lowStart = scriptStarts[1];
  243|    192|    U_ASSERT(lowStart == ((Collation::MERGE_SEPARATOR_BYTE + 1) << 8));
  ------------------
  |  |   35|    192|#   define U_ASSERT(exp) (void)0
  ------------------
  244|    192|    int32_t highLimit = scriptStarts[scriptStartsLength - 1];
  245|    192|    U_ASSERT(highLimit == (Collation::TRAIL_WEIGHT_BYTE << 8));
  ------------------
  |  |   35|    192|#   define U_ASSERT(exp) (void)0
  ------------------
  246|       |
  247|       |    // Get the set of special reorder codes in the input list.
  248|       |    // This supports a fixed number of special reorder codes;
  249|       |    // it works for data with codes beyond UCOL_REORDER_CODE_LIMIT.
  250|    192|    uint32_t specials = 0;
  251|  3.31k|    for(int32_t i = 0; i < length; ++i) {
  ------------------
  |  Branch (251:24): [True: 3.12k, False: 192]
  ------------------
  252|  3.12k|        int32_t reorderCode = reorder[i] - UCOL_REORDER_CODE_FIRST;
  253|  3.12k|        if(0 <= reorderCode && reorderCode < MAX_NUM_SPECIAL_REORDER_CODES) {
  ------------------
  |  Branch (253:12): [True: 301, False: 2.82k]
  |  Branch (253:32): [True: 301, False: 0]
  ------------------
  254|    301|            specials |= static_cast<uint32_t>(1) << reorderCode;
  255|    301|        }
  256|  3.12k|    }
  257|       |
  258|       |    // Start the reordering with the special low reorder codes that do not occur in the input.
  259|  1.72k|    for(int32_t i = 0; i < MAX_NUM_SPECIAL_REORDER_CODES; ++i) {
  ------------------
  |  Branch (259:24): [True: 1.53k, False: 192]
  ------------------
  260|  1.53k|        int32_t index = scriptsIndex[numScripts + i];
  261|  1.53k|        if (index != 0 && (specials & (static_cast<uint32_t>(1) << i)) == 0) {
  ------------------
  |  Branch (261:13): [True: 960, False: 576]
  |  Branch (261:27): [True: 906, False: 54]
  ------------------
  262|    906|            lowStart = addLowScriptRange(table, index, lowStart);
  263|    906|        }
  264|  1.53k|    }
  265|       |
  266|       |    // Skip the reserved range before Latin if Latin is the first script,
  267|       |    // so that we do not move it unnecessarily.
  268|    192|    int32_t skippedReserved = 0;
  269|    192|    if(specials == 0 && reorder[0] == USCRIPT_LATIN && !latinMustMove) {
  ------------------
  |  Branch (269:8): [True: 149, False: 43]
  |  Branch (269:25): [True: 21, False: 128]
  |  Branch (269:56): [True: 14, False: 7]
  ------------------
  270|     14|        int32_t index = scriptsIndex[USCRIPT_LATIN];
  271|     14|        U_ASSERT(index != 0);
  ------------------
  |  |   35|     14|#   define U_ASSERT(exp) (void)0
  ------------------
  272|     14|        int32_t start = scriptStarts[index];
  273|     14|        U_ASSERT(lowStart <= start);
  ------------------
  |  |   35|     14|#   define U_ASSERT(exp) (void)0
  ------------------
  274|     14|        skippedReserved = start - lowStart;
  275|     14|        lowStart = start;
  276|     14|    }
  277|       |
  278|       |    // Reorder according to the input scripts, continuing from the bottom of the primary range.
  279|    192|    int32_t originalLength = length;  // length will be decremented if "others" is in the list.
  280|    192|    UBool hasReorderToEnd = false;
  281|  1.21k|    for(int32_t i = 0; i < length;) {
  ------------------
  |  Branch (281:24): [True: 1.13k, False: 85]
  ------------------
  282|  1.13k|        int32_t script = reorder[i++];
  283|  1.13k|        if(script == USCRIPT_UNKNOWN) {
  ------------------
  |  Branch (283:12): [True: 46, False: 1.08k]
  ------------------
  284|       |            // Put the remaining scripts at the top.
  285|     46|            hasReorderToEnd = true;
  286|    544|            while(i < length) {
  ------------------
  |  Branch (286:19): [True: 503, False: 41]
  ------------------
  287|    503|                script = reorder[--length];
  288|    503|                if(script == USCRIPT_UNKNOWN ||  // Must occur at most once.
  ------------------
  |  Branch (288:20): [True: 3, False: 500]
  ------------------
  289|    503|                        script == UCOL_REORDER_CODE_DEFAULT) {
  ------------------
  |  Branch (289:25): [True: 0, False: 500]
  ------------------
  290|      3|                    errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  291|      3|                    return;
  292|      3|                }
  293|    500|                int32_t index = getScriptIndex(script);
  294|    500|                if(index == 0) { continue; }
  ------------------
  |  Branch (294:20): [True: 439, False: 61]
  ------------------
  295|     61|                if(table[index] != 0) {  // Duplicate or equivalent script.
  ------------------
  |  Branch (295:20): [True: 2, False: 59]
  ------------------
  296|      2|                    errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  297|      2|                    return;
  298|      2|                }
  299|     59|                highLimit = addHighScriptRange(table, index, highLimit);
  300|     59|            }
  301|     41|            break;
  302|     46|        }
  303|  1.08k|        if(script == UCOL_REORDER_CODE_DEFAULT) {
  ------------------
  |  Branch (303:12): [True: 0, False: 1.08k]
  ------------------
  304|       |            // The default code must be the only one in the list, and that is handled by the caller.
  305|       |            // Otherwise it must not be used.
  306|      0|            errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  307|      0|            return;
  308|      0|        }
  309|  1.08k|        int32_t index = getScriptIndex(script);
  310|  1.08k|        if(index == 0) { continue; }
  ------------------
  |  Branch (310:12): [True: 768, False: 317]
  ------------------
  311|    317|        if(table[index] != 0) {  // Duplicate or equivalent script.
  ------------------
  |  Branch (311:12): [True: 61, False: 256]
  ------------------
  312|     61|            errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  313|     61|            return;
  314|     61|        }
  315|    256|        lowStart = addLowScriptRange(table, index, lowStart);
  316|    256|    }
  317|       |
  318|       |    // Put all remaining scripts into the middle.
  319|  21.7k|    for(int32_t i = 1; i < scriptStartsLength - 1; ++i) {
  ------------------
  |  Branch (319:24): [True: 21.6k, False: 126]
  ------------------
  320|  21.6k|        int32_t leadByte = table[i];
  321|  21.6k|        if(leadByte != 0) { continue; }
  ------------------
  |  Branch (321:12): [True: 1.08k, False: 20.5k]
  ------------------
  322|  20.5k|        int32_t start = scriptStarts[i];
  323|  20.5k|        if(!hasReorderToEnd && start > lowStart) {
  ------------------
  |  Branch (323:12): [True: 13.8k, False: 6.70k]
  |  Branch (323:32): [True: 195, False: 13.6k]
  ------------------
  324|       |            // No need to move this script.
  325|    195|            lowStart = start;
  326|    195|        }
  327|  20.5k|        lowStart = addLowScriptRange(table, i, lowStart);
  328|  20.5k|    }
  329|    126|    if(lowStart > highLimit) {
  ------------------
  |  Branch (329:8): [True: 8, False: 118]
  ------------------
  330|      8|        if((lowStart - (skippedReserved & 0xff00)) <= highLimit) {
  ------------------
  |  Branch (330:12): [True: 7, False: 1]
  ------------------
  331|       |            // Try not skipping the before-Latin reserved range.
  332|      7|            makeReorderRanges(reorder, originalLength, true, ranges, errorCode);
  333|      7|            return;
  334|      7|        }
  335|       |        // We need more primary lead bytes than available, despite the reserved ranges.
  336|      1|        errorCode = U_BUFFER_OVERFLOW_ERROR;
  337|      1|        return;
  338|      8|    }
  339|       |
  340|       |    // Turn lead bytes into a list of (limit, offset) pairs.
  341|       |    // Encode each pair in one list element:
  342|       |    // Upper 16 bits = limit, lower 16 = signed lead byte offset.
  343|    118|    int32_t offset = 0;
  344|    606|    for(int32_t i = 1;; ++i) {
  345|    606|        int32_t nextOffset = offset;
  346|  20.4k|        while(i < scriptStartsLength - 1) {
  ------------------
  |  Branch (346:15): [True: 20.2k, False: 118]
  ------------------
  347|  20.2k|            int32_t newLeadByte = table[i];
  348|  20.2k|            if(newLeadByte == 0xff) {
  ------------------
  |  Branch (348:16): [True: 300, False: 19.9k]
  ------------------
  349|       |                // "Don't care" lead byte for reserved range, continue with current offset.
  350|  19.9k|            } else {
  351|  19.9k|                nextOffset = newLeadByte - (scriptStarts[i] >> 8);
  352|  19.9k|                if(nextOffset != offset) { break; }
  ------------------
  |  Branch (352:20): [True: 488, False: 19.5k]
  ------------------
  353|  19.9k|            }
  354|  19.8k|            ++i;
  355|  19.8k|        }
  356|    606|        if(offset != 0 || i < scriptStartsLength - 1) {
  ------------------
  |  Branch (356:12): [True: 396, False: 210]
  |  Branch (356:27): [True: 133, False: 77]
  ------------------
  357|    529|            ranges.addElement((static_cast<int32_t>(scriptStarts[i]) << 16) | (offset & 0xffff), errorCode);
  358|    529|        }
  359|    606|        if(i == scriptStartsLength - 1) { break; }
  ------------------
  |  Branch (359:12): [True: 118, False: 488]
  ------------------
  360|    488|        offset = nextOffset;
  361|    488|    }
  362|    118|}
_ZNK6icu_7813CollationData17addLowScriptRangeEPhii:
  365|  21.7k|CollationData::addLowScriptRange(uint8_t table[], int32_t index, int32_t lowStart) const {
  366|  21.7k|    int32_t start = scriptStarts[index];
  367|  21.7k|    if((start & 0xff) < (lowStart & 0xff)) {
  ------------------
  |  Branch (367:8): [True: 107, False: 21.6k]
  ------------------
  368|    107|        lowStart += 0x100;
  369|    107|    }
  370|  21.7k|    table[index] = static_cast<uint8_t>(lowStart >> 8);
  371|  21.7k|    int32_t limit = scriptStarts[index + 1];
  372|  21.7k|    lowStart = ((lowStart & 0xff00) + ((limit & 0xff00) - (start & 0xff00))) | (limit & 0xff);
  373|  21.7k|    return lowStart;
  374|  21.7k|}
_ZNK6icu_7813CollationData18addHighScriptRangeEPhii:
  377|     59|CollationData::addHighScriptRange(uint8_t table[], int32_t index, int32_t highLimit) const {
  378|     59|    int32_t limit = scriptStarts[index + 1];
  379|     59|    if((limit & 0xff) > (highLimit & 0xff)) {
  ------------------
  |  Branch (379:8): [True: 33, False: 26]
  ------------------
  380|     33|        highLimit -= 0x100;
  381|     33|    }
  382|     59|    int32_t start = scriptStarts[index];
  383|     59|    highLimit = ((highLimit & 0xff00) - ((limit & 0xff00) - (start & 0xff00))) | (start & 0xff);
  384|     59|    table[index] = static_cast<uint8_t>(highLimit >> 8);
  385|     59|    return highLimit;
  386|     59|}

_ZN6icu_7813CollationDataC2ERKNS_15Normalizer2ImplE:
   52|    159|            : trie(nullptr),
   53|    159|              ce32s(nullptr), ces(nullptr), contexts(nullptr), base(nullptr),
   54|    159|              jamoCE32s(nullptr),
   55|    159|              nfcImpl(nfc),
   56|    159|              numericPrimary(0x12000000),
   57|    159|              ce32sLength(0), cesLength(0), contextsLength(0),
   58|    159|              compressibleBytes(nullptr),
   59|    159|              unsafeBackwardSet(nullptr),
   60|    159|              fastLatinTable(nullptr), fastLatinTableLength(0),
   61|    159|              numScripts(0), scriptsIndex(nullptr), scriptStarts(nullptr), scriptStartsLength(0),
   62|    159|              rootElements(nullptr), rootElementsLength(0) {}
_ZNK6icu_7813CollationData7getCE32Ei:
   64|   267k|    uint32_t getCE32(UChar32 c) const {
   65|   267k|        return UTRIE2_GET32(trie, c);
  ------------------
  |  |  370|   267k|#define UTRIE2_GET32(trie, c) _UTRIE2_GET((trie), data32, 0, (c))
  |  |  ------------------
  |  |  |  |  871|   267k|    (trie)->data[_UTRIE2_INDEX_FROM_CP(trie, asciiOffset, c)]
  |  |  |  |  ------------------
  |  |  |  |  |  |  845|   267k|    ((uint32_t)(c)<0xd800 ? \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (845:6): [True: 257k, False: 10.2k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  846|   267k|        _UTRIE2_INDEX_RAW(0, (trie)->index, c) : \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  815|   257k|    (((int32_t)((trieIndex)[(offset)+((c)>>UTRIE2_SHIFT_2)]) \
  |  |  |  |  |  |  |  |  816|   257k|    <<UTRIE2_INDEX_SHIFT)+ \
  |  |  |  |  |  |  |  |  817|   257k|    ((c)&UTRIE2_DATA_MASK))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  847|   267k|        (uint32_t)(c)<=0xffff ? \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (847:9): [True: 8.59k, False: 1.64k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  848|  10.2k|            _UTRIE2_INDEX_RAW( \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  815|  17.1k|    (((int32_t)((trieIndex)[(offset)+((c)>>UTRIE2_SHIFT_2)]) \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (815:30): [True: 0, False: 8.59k]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  816|  8.59k|    <<UTRIE2_INDEX_SHIFT)+ \
  |  |  |  |  |  |  |  |  817|  8.59k|    ((c)&UTRIE2_DATA_MASK))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  849|  10.2k|                (c)<=0xdbff ? UTRIE2_LSCP_INDEX_2_OFFSET-(0xd800>>UTRIE2_SHIFT_2) : 0, \
  |  |  |  |  |  |  850|  10.2k|                (trie)->index, c) : \
  |  |  |  |  |  |  851|  10.2k|            (uint32_t)(c)>0x10ffff ? \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (851:13): [True: 0, False: 1.64k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  852|  1.64k|                (asciiOffset)+UTRIE2_BAD_UTF8_DATA_OFFSET : \
  |  |  |  |  |  |  853|  1.64k|                (c)>=(trie)->highStart ? \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (853:17): [True: 580, False: 1.06k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  854|  1.64k|                    (trie)->highValueIndex : \
  |  |  |  |  |  |  855|  1.64k|                    _UTRIE2_INDEX_FROM_SUPP((trie)->index, c))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  833|  1.06k|    (((int32_t)((trieIndex)[ \
  |  |  |  |  |  |  |  |  834|  1.06k|        (trieIndex)[(UTRIE2_INDEX_1_OFFSET-UTRIE2_OMITTED_BMP_INDEX_1_LENGTH)+ \
  |  |  |  |  |  |  |  |  835|  1.06k|                      ((c)>>UTRIE2_SHIFT_1)]+ \
  |  |  |  |  |  |  |  |  836|  1.06k|        (((c)>>UTRIE2_SHIFT_2)&UTRIE2_INDEX_2_MASK)]) \
  |  |  |  |  |  |  |  |  837|  1.06k|    <<UTRIE2_INDEX_SHIFT)+ \
  |  |  |  |  |  |  |  |  838|  1.06k|    ((c)&UTRIE2_DATA_MASK))
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   66|   267k|    }
_ZNK6icu_7813CollationData24getCE32FromSupplementaryEi:
   68|  7.66k|    uint32_t getCE32FromSupplementary(UChar32 c) const {
   69|  7.66k|        return UTRIE2_GET32_FROM_SUPP(trie, c);
  ------------------
  |  |  586|  7.66k|#define UTRIE2_GET32_FROM_SUPP(trie, c) _UTRIE2_GET_FROM_SUPP((trie), data32, c)
  |  |  ------------------
  |  |  |  |  863|  7.66k|    (trie)->data[(c)>=(trie)->highStart ? (trie)->highValueIndex : \
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (863:18): [True: 225, False: 7.43k]
  |  |  |  |  ------------------
  |  |  |  |  864|  7.66k|                 _UTRIE2_INDEX_FROM_SUPP((trie)->index, c)]
  |  |  |  |  ------------------
  |  |  |  |  |  |  833|  7.43k|    (((int32_t)((trieIndex)[ \
  |  |  |  |  |  |  834|  7.43k|        (trieIndex)[(UTRIE2_INDEX_1_OFFSET-UTRIE2_OMITTED_BMP_INDEX_1_LENGTH)+ \
  |  |  |  |  |  |  835|  7.43k|                      ((c)>>UTRIE2_SHIFT_1)]+ \
  |  |  |  |  |  |  836|  7.43k|        (((c)>>UTRIE2_SHIFT_2)&UTRIE2_INDEX_2_MASK)]) \
  |  |  |  |  |  |  837|  7.43k|    <<UTRIE2_INDEX_SHIFT)+ \
  |  |  |  |  |  |  838|  7.43k|    ((c)&UTRIE2_DATA_MASK))
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   70|  7.66k|    }
_ZNK6icu_7813CollationData16isUnsafeBackwardEia:
   77|  8.36k|    UBool isUnsafeBackward(UChar32 c, UBool numeric) const {
   78|  8.36k|        return unsafeBackwardSet->contains(c) || (numeric && isDigit(c));
  ------------------
  |  Branch (78:16): [True: 7.85k, False: 508]
  |  Branch (78:51): [True: 0, False: 508]
  |  Branch (78:62): [True: 0, False: 0]
  ------------------
   79|  8.36k|    }
_ZN6icu_7813CollationData8readCE32EPKDs:
   93|   139k|    static uint32_t readCE32(const char16_t *p) {
   94|   139k|        return (static_cast<uint32_t>(p[0]) << 16) | p[1];
   95|   139k|    }
_ZNK6icu_7813CollationData19getCEFromOffsetCE32Eij:
  111|  6.02k|    int64_t getCEFromOffsetCE32(UChar32 c, uint32_t ce32) const {
  112|  6.02k|        int64_t dataCE = ces[Collation::indexFromCE32(ce32)];
  113|  6.02k|        return Collation::makeCE(Collation::getThreeBytePrimaryForOffsetData(c, dataCE));
  114|  6.02k|    }
_ZNK6icu_7813CollationData8getFCD16Ei:
  125|  48.1M|    uint16_t getFCD16(UChar32 c) const {
  126|  48.1M|        return nfcImpl.getFCD16(c);
  127|  48.1M|    }

_ZN6icu_7819CollationDataReader4readEPKNS_18CollationTailoringEPKhiRS1_R10UErrorCode:
   48|    184|                          CollationTailoring &tailoring, UErrorCode &errorCode) {
   49|    184|    if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (49:8): [True: 3, False: 181]
  ------------------
   50|    181|    if(base != nullptr) {
  ------------------
  |  Branch (50:8): [True: 180, False: 1]
  ------------------
   51|    180|        if(inBytes == nullptr || (0 <= inLength && inLength < 24)) {
  ------------------
  |  Branch (51:12): [True: 0, False: 180]
  |  Branch (51:35): [True: 180, False: 0]
  |  Branch (51:52): [True: 0, False: 180]
  ------------------
   52|      0|            errorCode = U_ILLEGAL_ARGUMENT_ERROR;
   53|      0|            return;
   54|      0|        }
   55|    180|        const DataHeader *header = reinterpret_cast<const DataHeader *>(inBytes);
   56|    180|        if(!(header->dataHeader.magic1 == 0xda && header->dataHeader.magic2 == 0x27 &&
  ------------------
  |  Branch (56:14): [True: 180, False: 0]
  |  Branch (56:51): [True: 180, False: 0]
  ------------------
   57|    180|                isAcceptable(tailoring.version, nullptr, nullptr, &header->info))) {
  ------------------
  |  Branch (57:17): [True: 180, False: 0]
  ------------------
   58|      0|            errorCode = U_INVALID_FORMAT_ERROR;
   59|      0|            return;
   60|      0|        }
   61|    180|        if(base->getUCAVersion() != tailoring.getUCAVersion()) {
  ------------------
  |  Branch (61:12): [True: 0, False: 180]
  ------------------
   62|      0|            errorCode = U_COLLATOR_VERSION_MISMATCH;
   63|      0|            return;
   64|      0|        }
   65|    180|        int32_t headerLength = header->dataHeader.headerSize;
   66|    180|        inBytes += headerLength;
   67|    180|        if(inLength >= 0) {
  ------------------
  |  Branch (67:12): [True: 180, False: 0]
  ------------------
   68|    180|            inLength -= headerLength;
   69|    180|        }
   70|    180|    }
   71|       |
   72|    181|    if(inBytes == nullptr || (0 <= inLength && inLength < 8)) {
  ------------------
  |  Branch (72:8): [True: 0, False: 181]
  |  Branch (72:31): [True: 181, False: 0]
  |  Branch (72:48): [True: 0, False: 181]
  ------------------
   73|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
   74|      0|        return;
   75|      0|    }
   76|    181|    const int32_t *inIndexes = reinterpret_cast<const int32_t *>(inBytes);
   77|    181|    int32_t indexesLength = inIndexes[IX_INDEXES_LENGTH];
   78|    181|    if(indexesLength < 2 || (0 <= inLength && inLength < indexesLength * 4)) {
  ------------------
  |  Branch (78:8): [True: 0, False: 181]
  |  Branch (78:30): [True: 181, False: 0]
  |  Branch (78:47): [True: 0, False: 181]
  ------------------
   79|      0|        errorCode = U_INVALID_FORMAT_ERROR;  // Not enough indexes.
   80|      0|        return;
   81|      0|    }
   82|       |
   83|       |    // Assume that the tailoring data is in initial state,
   84|       |    // with nullptr pointers and 0 lengths.
   85|       |
   86|       |    // Set pointers to non-empty data parts.
   87|       |    // Do this in order of their byte offsets. (Should help porting to Java.)
   88|       |
   89|    181|    int32_t index;  // one of the indexes[] slots
   90|    181|    int32_t offset;  // byte offset for the index part
   91|    181|    int32_t length;  // number of bytes in the index part
   92|       |
   93|    181|    if(indexesLength > IX_TOTAL_SIZE) {
  ------------------
  |  Branch (93:8): [True: 1, False: 180]
  ------------------
   94|      1|        length = inIndexes[IX_TOTAL_SIZE];
   95|    180|    } else if(indexesLength > IX_REORDER_CODES_OFFSET) {
  ------------------
  |  Branch (95:15): [True: 178, False: 2]
  ------------------
   96|    178|        length = inIndexes[indexesLength - 1];
   97|    178|    } else {
   98|      2|        length = 0;  // only indexes, and inLength was already checked for them
   99|      2|    }
  100|    181|    if(0 <= inLength && inLength < length) {
  ------------------
  |  Branch (100:8): [True: 181, False: 0]
  |  Branch (100:25): [True: 0, False: 181]
  ------------------
  101|      0|        errorCode = U_INVALID_FORMAT_ERROR;
  102|      0|        return;
  103|      0|    }
  104|       |
  105|    181|    const CollationData *baseData = base == nullptr ? nullptr : base->data;
  ------------------
  |  Branch (105:37): [True: 1, False: 180]
  ------------------
  106|    181|    const int32_t *reorderCodes = nullptr;
  107|    181|    int32_t reorderCodesLength = 0;
  108|    181|    const uint32_t *reorderRanges = nullptr;
  109|    181|    int32_t reorderRangesLength = 0;
  110|    181|    index = IX_REORDER_CODES_OFFSET;
  111|    181|    offset = getIndex(inIndexes, indexesLength, index);
  112|    181|    length = getIndex(inIndexes, indexesLength, index + 1) - offset;
  113|    181|    if(length >= 4) {
  ------------------
  |  Branch (113:8): [True: 84, False: 97]
  ------------------
  114|     84|        if(baseData == nullptr) {
  ------------------
  |  Branch (114:12): [True: 0, False: 84]
  ------------------
  115|       |            // We assume for collation settings that
  116|       |            // the base data does not have a reordering.
  117|      0|            errorCode = U_INVALID_FORMAT_ERROR;
  118|      0|            return;
  119|      0|        }
  120|     84|        reorderCodes = reinterpret_cast<const int32_t *>(inBytes + offset);
  121|     84|        reorderCodesLength = length / 4;
  122|       |
  123|       |        // The reorderRanges (if any) are the trailing reorderCodes entries.
  124|       |        // Split the array at the boundary.
  125|       |        // Script or reorder codes do not exceed 16-bit values.
  126|       |        // Range limits are stored in the upper 16 bits, and are never 0.
  127|    258|        while(reorderRangesLength < reorderCodesLength &&
  ------------------
  |  Branch (127:15): [True: 258, False: 0]
  ------------------
  128|    258|                (reorderCodes[reorderCodesLength - reorderRangesLength - 1] & 0xffff0000) != 0) {
  ------------------
  |  Branch (128:17): [True: 174, False: 84]
  ------------------
  129|    174|            ++reorderRangesLength;
  130|    174|        }
  131|     84|        U_ASSERT(reorderRangesLength < reorderCodesLength);
  ------------------
  |  |   35|     84|#   define U_ASSERT(exp) (void)0
  ------------------
  132|     84|        if(reorderRangesLength != 0) {
  ------------------
  |  Branch (132:12): [True: 40, False: 44]
  ------------------
  133|     40|            reorderCodesLength -= reorderRangesLength;
  134|     40|            reorderRanges = reinterpret_cast<const uint32_t *>(reorderCodes + reorderCodesLength);
  135|     40|        }
  136|     84|    }
  137|       |
  138|       |    // There should be a reorder table only if there are reorder codes.
  139|       |    // However, when there are reorder codes the reorder table may be omitted to reduce
  140|       |    // the data size.
  141|    181|    const uint8_t *reorderTable = nullptr;
  142|    181|    index = IX_REORDER_TABLE_OFFSET;
  143|    181|    offset = getIndex(inIndexes, indexesLength, index);
  144|    181|    length = getIndex(inIndexes, indexesLength, index + 1) - offset;
  145|    181|    if(length >= 256) {
  ------------------
  |  Branch (145:8): [True: 84, False: 97]
  ------------------
  146|     84|        if(reorderCodesLength == 0) {
  ------------------
  |  Branch (146:12): [True: 0, False: 84]
  ------------------
  147|      0|            errorCode = U_INVALID_FORMAT_ERROR;  // Reordering table without reordering codes.
  148|      0|            return;
  149|      0|        }
  150|     84|        reorderTable = inBytes + offset;
  151|     97|    } else {
  152|       |        // If we have reorder codes, then build the reorderTable at the end,
  153|       |        // when the CollationData is otherwise complete.
  154|     97|    }
  155|       |
  156|    181|    if(baseData != nullptr && baseData->numericPrimary != (inIndexes[IX_OPTIONS] & 0xff000000)) {
  ------------------
  |  Branch (156:8): [True: 180, False: 1]
  |  Branch (156:31): [True: 0, False: 180]
  ------------------
  157|      0|        errorCode = U_INVALID_FORMAT_ERROR;
  158|      0|        return;
  159|      0|    }
  160|    181|    CollationData *data = nullptr;  // Remains nullptr if there are no mappings.
  161|       |
  162|    181|    index = IX_TRIE_OFFSET;
  163|    181|    offset = getIndex(inIndexes, indexesLength, index);
  164|    181|    length = getIndex(inIndexes, indexesLength, index + 1) - offset;
  165|    181|    if(length >= 8) {
  ------------------
  |  Branch (165:8): [True: 159, False: 22]
  ------------------
  166|    159|        if(!tailoring.ensureOwnedData(errorCode)) { return; }
  ------------------
  |  Branch (166:12): [True: 0, False: 159]
  ------------------
  167|    159|        data = tailoring.ownedData;
  168|    159|        data->base = baseData;
  169|    159|        data->numericPrimary = inIndexes[IX_OPTIONS] & 0xff000000;
  170|    159|        data->trie = tailoring.trie = utrie2_openFromSerialized(
  ------------------
  |  | 1973|    159|#define utrie2_openFromSerialized U_ICU_ENTRY_POINT_RENAME(utrie2_openFromSerialized)
  |  |  ------------------
  |  |  |  |  123|    159|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    159|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    159|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  171|    159|            UTRIE2_32_VALUE_BITS, inBytes + offset, length, nullptr,
  172|    159|            &errorCode);
  173|    159|        if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (173:12): [True: 0, False: 159]
  ------------------
  174|    159|    } else if(baseData != nullptr) {
  ------------------
  |  Branch (174:15): [True: 22, False: 0]
  ------------------
  175|       |        // Use the base data. Only the settings are tailored.
  176|     22|        tailoring.data = baseData;
  177|     22|    } else {
  178|      0|        errorCode = U_INVALID_FORMAT_ERROR;  // No mappings.
  179|      0|        return;
  180|      0|    }
  181|       |
  182|    181|    index = IX_CES_OFFSET;
  183|    181|    offset = getIndex(inIndexes, indexesLength, index);
  184|    181|    length = getIndex(inIndexes, indexesLength, index + 1) - offset;
  185|    181|    if(length >= 8) {
  ------------------
  |  Branch (185:8): [True: 45, False: 136]
  ------------------
  186|     45|        if(data == nullptr) {
  ------------------
  |  Branch (186:12): [True: 0, False: 45]
  ------------------
  187|      0|            errorCode = U_INVALID_FORMAT_ERROR;  // Tailored ces without tailored trie.
  188|      0|            return;
  189|      0|        }
  190|     45|        data->ces = reinterpret_cast<const int64_t *>(inBytes + offset);
  191|     45|        data->cesLength = length / 8;
  192|     45|    }
  193|       |
  194|    181|    index = IX_CE32S_OFFSET;
  195|    181|    offset = getIndex(inIndexes, indexesLength, index);
  196|    181|    length = getIndex(inIndexes, indexesLength, index + 1) - offset;
  197|    181|    if(length >= 4) {
  ------------------
  |  Branch (197:8): [True: 159, False: 22]
  ------------------
  198|    159|        if(data == nullptr) {
  ------------------
  |  Branch (198:12): [True: 0, False: 159]
  ------------------
  199|      0|            errorCode = U_INVALID_FORMAT_ERROR;  // Tailored ce32s without tailored trie.
  200|      0|            return;
  201|      0|        }
  202|    159|        data->ce32s = reinterpret_cast<const uint32_t *>(inBytes + offset);
  203|    159|        data->ce32sLength = length / 4;
  204|    159|    }
  205|       |
  206|    181|    int32_t jamoCE32sStart = getIndex(inIndexes, indexesLength, IX_JAMO_CE32S_START);
  207|    181|    if(jamoCE32sStart >= 0) {
  ------------------
  |  Branch (207:8): [True: 7, False: 174]
  ------------------
  208|      7|        if(data == nullptr || data->ce32s == nullptr) {
  ------------------
  |  Branch (208:12): [True: 0, False: 7]
  |  Branch (208:31): [True: 0, False: 7]
  ------------------
  209|      0|            errorCode = U_INVALID_FORMAT_ERROR;  // Index into non-existent ce32s[].
  210|      0|            return;
  211|      0|        }
  212|      7|        data->jamoCE32s = data->ce32s + jamoCE32sStart;
  213|    174|    } else if(data == nullptr) {
  ------------------
  |  Branch (213:15): [True: 22, False: 152]
  ------------------
  214|       |        // Nothing to do.
  215|    152|    } else if(baseData != nullptr) {
  ------------------
  |  Branch (215:15): [True: 152, False: 0]
  ------------------
  216|    152|        data->jamoCE32s = baseData->jamoCE32s;
  217|    152|    } else {
  218|      0|        errorCode = U_INVALID_FORMAT_ERROR;  // No Jamo CE32s for Hangul processing.
  219|      0|        return;
  220|      0|    }
  221|       |
  222|    181|    index = IX_ROOT_ELEMENTS_OFFSET;
  223|    181|    offset = getIndex(inIndexes, indexesLength, index);
  224|    181|    length = getIndex(inIndexes, indexesLength, index + 1) - offset;
  225|    181|    if(length >= 4) {
  ------------------
  |  Branch (225:8): [True: 1, False: 180]
  ------------------
  226|      1|        length /= 4;
  227|      1|        if(data == nullptr || length <= CollationRootElements::IX_SEC_TER_BOUNDARIES) {
  ------------------
  |  Branch (227:12): [True: 0, False: 1]
  |  Branch (227:31): [True: 0, False: 1]
  ------------------
  228|      0|            errorCode = U_INVALID_FORMAT_ERROR;
  229|      0|            return;
  230|      0|        }
  231|      1|        data->rootElements = reinterpret_cast<const uint32_t *>(inBytes + offset);
  232|      1|        data->rootElementsLength = length;
  233|      1|        uint32_t commonSecTer = data->rootElements[CollationRootElements::IX_COMMON_SEC_AND_TER_CE];
  234|      1|        if(commonSecTer != Collation::COMMON_SEC_AND_TER_CE) {
  ------------------
  |  Branch (234:12): [True: 0, False: 1]
  ------------------
  235|      0|            errorCode = U_INVALID_FORMAT_ERROR;
  236|      0|            return;
  237|      0|        }
  238|      1|        uint32_t secTerBoundaries = data->rootElements[CollationRootElements::IX_SEC_TER_BOUNDARIES];
  239|      1|        if((secTerBoundaries >> 24) < CollationKeys::SEC_COMMON_HIGH) {
  ------------------
  |  Branch (239:12): [True: 0, False: 1]
  ------------------
  240|       |            // [fixed last secondary common byte] is too low,
  241|       |            // and secondary weights would collide with compressed common secondaries.
  242|      0|            errorCode = U_INVALID_FORMAT_ERROR;
  243|      0|            return;
  244|      0|        }
  245|      1|    }
  246|       |
  247|    181|    index = IX_CONTEXTS_OFFSET;
  248|    181|    offset = getIndex(inIndexes, indexesLength, index);
  249|    181|    length = getIndex(inIndexes, indexesLength, index + 1) - offset;
  250|    181|    if(length >= 2) {
  ------------------
  |  Branch (250:8): [True: 133, False: 48]
  ------------------
  251|    133|        if(data == nullptr) {
  ------------------
  |  Branch (251:12): [True: 0, False: 133]
  ------------------
  252|      0|            errorCode = U_INVALID_FORMAT_ERROR;  // Tailored contexts without tailored trie.
  253|      0|            return;
  254|      0|        }
  255|    133|        data->contexts = reinterpret_cast<const char16_t *>(inBytes + offset);
  256|    133|        data->contextsLength = length / 2;
  257|    133|    }
  258|       |
  259|    181|    index = IX_UNSAFE_BWD_OFFSET;
  260|    181|    offset = getIndex(inIndexes, indexesLength, index);
  261|    181|    length = getIndex(inIndexes, indexesLength, index + 1) - offset;
  262|    181|    if(length >= 2) {
  ------------------
  |  Branch (262:8): [True: 66, False: 115]
  ------------------
  263|     66|        if(data == nullptr) {
  ------------------
  |  Branch (263:12): [True: 0, False: 66]
  ------------------
  264|      0|            errorCode = U_INVALID_FORMAT_ERROR;
  265|      0|            return;
  266|      0|        }
  267|     66|        if(baseData == nullptr) {
  ------------------
  |  Branch (267:12): [True: 1, False: 65]
  ------------------
  268|      1|#if defined(COLLUNSAFE_COLL_VERSION) && defined (COLLUNSAFE_SERIALIZE)
  269|      1|          tailoring.unsafeBackwardSet = new UnicodeSet(unsafe_serializedData, unsafe_serializedCount, UnicodeSet::kSerialized, errorCode);
  270|      1|          if(tailoring.unsafeBackwardSet == nullptr) {
  ------------------
  |  Branch (270:14): [True: 0, False: 1]
  ------------------
  271|      0|            errorCode = U_MEMORY_ALLOCATION_ERROR;
  272|      0|            return;
  273|      1|          } else if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (273:22): [True: 0, False: 1]
  ------------------
  274|      0|            return;
  275|      0|          }
  276|       |#else
  277|       |            // Create the unsafe-backward set for the root collator.
  278|       |            // Include all non-zero combining marks and trail surrogates.
  279|       |            // We do this at load time, rather than at build time,
  280|       |            // to simplify Unicode version bootstrapping:
  281|       |            // The root data builder only needs the new FractionalUCA.txt data,
  282|       |            // but it need not be built with a version of ICU already updated to
  283|       |            // the corresponding new Unicode Character Database.
  284|       |            //
  285|       |            // The following is an optimized version of
  286|       |            // new UnicodeSet("[[:^lccc=0:][\\udc00-\\udfff]]").
  287|       |            // It is faster and requires fewer code dependencies.
  288|       |            tailoring.unsafeBackwardSet = new UnicodeSet(0xdc00, 0xdfff);  // trail surrogates
  289|       |            if(tailoring.unsafeBackwardSet == nullptr) {
  290|       |                errorCode = U_MEMORY_ALLOCATION_ERROR;
  291|       |                return;
  292|       |            }
  293|       |            data->nfcImpl.addLcccChars(*tailoring.unsafeBackwardSet);
  294|       |#endif // !COLLUNSAFE_SERIALIZE || !COLLUNSAFE_COLL_VERSION
  295|     65|        } else {
  296|       |            // Clone the root collator's set contents.
  297|     65|            tailoring.unsafeBackwardSet = static_cast<UnicodeSet *>(
  298|     65|                baseData->unsafeBackwardSet->cloneAsThawed());
  299|     65|            if(tailoring.unsafeBackwardSet == nullptr) {
  ------------------
  |  Branch (299:16): [True: 0, False: 65]
  ------------------
  300|      0|                errorCode = U_MEMORY_ALLOCATION_ERROR;
  301|      0|                return;
  302|      0|            }
  303|     65|        }
  304|       |        // Add the ranges from the data file to the unsafe-backward set.
  305|     66|        USerializedSet sset;
  306|     66|        const uint16_t *unsafeData = reinterpret_cast<const uint16_t *>(inBytes + offset);
  307|     66|        if(!uset_getSerializedSet(&sset, unsafeData, length / 2)) {
  ------------------
  |  | 1782|     66|#define uset_getSerializedSet U_ICU_ENTRY_POINT_RENAME(uset_getSerializedSet)
  |  |  ------------------
  |  |  |  |  123|     66|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     66|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     66|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (307:12): [True: 0, False: 66]
  ------------------
  308|      0|            errorCode = U_INVALID_FORMAT_ERROR;
  309|      0|            return;
  310|      0|        }
  311|     66|        int32_t count = uset_getSerializedRangeCount(&sset);
  ------------------
  |  | 1781|     66|#define uset_getSerializedRangeCount U_ICU_ENTRY_POINT_RENAME(uset_getSerializedRangeCount)
  |  |  ------------------
  |  |  |  |  123|     66|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     66|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     66|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  312|  1.64k|        for(int32_t i = 0; i < count; ++i) {
  ------------------
  |  Branch (312:28): [True: 1.57k, False: 66]
  ------------------
  313|  1.57k|            UChar32 start, end;
  314|  1.57k|            uset_getSerializedRange(&sset, i, &start, &end);
  ------------------
  |  | 1780|  1.57k|#define uset_getSerializedRange U_ICU_ENTRY_POINT_RENAME(uset_getSerializedRange)
  |  |  ------------------
  |  |  |  |  123|  1.57k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.57k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.57k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  315|  1.57k|            tailoring.unsafeBackwardSet->add(start, end);
  316|  1.57k|        }
  317|       |        // Mark each lead surrogate as "unsafe"
  318|       |        // if any of its 1024 associated supplementary code points is "unsafe".
  319|     66|        UChar32 c = 0x10000;
  320|  67.6k|        for(char16_t lead = 0xd800; lead < 0xdc00; ++lead, c += 0x400) {
  ------------------
  |  Branch (320:37): [True: 67.5k, False: 66]
  ------------------
  321|  67.5k|            if(!tailoring.unsafeBackwardSet->containsNone(c, c + 0x3ff)) {
  ------------------
  |  Branch (321:16): [True: 1.52k, False: 66.0k]
  ------------------
  322|  1.52k|                tailoring.unsafeBackwardSet->add(lead);
  323|  1.52k|            }
  324|  67.5k|        }
  325|     66|        tailoring.unsafeBackwardSet->freeze();
  326|     66|        data->unsafeBackwardSet = tailoring.unsafeBackwardSet;
  327|    115|    } else if(data == nullptr) {
  ------------------
  |  Branch (327:15): [True: 22, False: 93]
  ------------------
  328|       |        // Nothing to do.
  329|     93|    } else if(baseData != nullptr) {
  ------------------
  |  Branch (329:15): [True: 93, False: 0]
  ------------------
  330|       |        // No tailoring-specific data: Alias the root collator's set.
  331|     93|        data->unsafeBackwardSet = baseData->unsafeBackwardSet;
  332|     93|    } else {
  333|      0|        errorCode = U_INVALID_FORMAT_ERROR;  // No unsafeBackwardSet.
  334|      0|        return;
  335|      0|    }
  336|       |
  337|       |    // If the fast Latin format version is different,
  338|       |    // or the version is set to 0 for "no fast Latin table",
  339|       |    // then just always use the normal string comparison path.
  340|    181|    if(data != nullptr) {
  ------------------
  |  Branch (340:8): [True: 159, False: 22]
  ------------------
  341|    159|        data->fastLatinTable = nullptr;
  342|    159|        data->fastLatinTableLength = 0;
  343|    159|        if(((inIndexes[IX_OPTIONS] >> 16) & 0xff) == CollationFastLatin::VERSION) {
  ------------------
  |  Branch (343:12): [True: 151, False: 8]
  ------------------
  344|    151|            index = IX_FAST_LATIN_TABLE_OFFSET;
  345|    151|            offset = getIndex(inIndexes, indexesLength, index);
  346|    151|            length = getIndex(inIndexes, indexesLength, index + 1) - offset;
  347|    151|            if(length >= 2) {
  ------------------
  |  Branch (347:16): [True: 101, False: 50]
  ------------------
  348|    101|                data->fastLatinTable = reinterpret_cast<const uint16_t *>(inBytes + offset);
  349|    101|                data->fastLatinTableLength = length / 2;
  350|    101|                if((*data->fastLatinTable >> 8) != CollationFastLatin::VERSION) {
  ------------------
  |  Branch (350:20): [True: 0, False: 101]
  ------------------
  351|      0|                    errorCode = U_INVALID_FORMAT_ERROR;  // header vs. table version mismatch
  352|      0|                    return;
  353|      0|                }
  354|    101|            } else if(baseData != nullptr) {
  ------------------
  |  Branch (354:23): [True: 50, False: 0]
  ------------------
  355|     50|                data->fastLatinTable = baseData->fastLatinTable;
  356|     50|                data->fastLatinTableLength = baseData->fastLatinTableLength;
  357|     50|            }
  358|    151|        }
  359|    159|    }
  360|       |
  361|    181|    index = IX_SCRIPTS_OFFSET;
  362|    181|    offset = getIndex(inIndexes, indexesLength, index);
  363|    181|    length = getIndex(inIndexes, indexesLength, index + 1) - offset;
  364|    181|    if(length >= 2) {
  ------------------
  |  Branch (364:8): [True: 1, False: 180]
  ------------------
  365|      1|        if(data == nullptr) {
  ------------------
  |  Branch (365:12): [True: 0, False: 1]
  ------------------
  366|      0|            errorCode = U_INVALID_FORMAT_ERROR;
  367|      0|            return;
  368|      0|        }
  369|      1|        const uint16_t *scripts = reinterpret_cast<const uint16_t *>(inBytes + offset);
  370|      1|        int32_t scriptsLength = length / 2;
  371|      1|        data->numScripts = scripts[0];
  372|       |        // There must be enough entries for both arrays, including more than two range starts.
  373|      1|        data->scriptStartsLength = scriptsLength - (1 + data->numScripts + 16);
  374|      1|        if(data->scriptStartsLength <= 2 ||
  ------------------
  |  Branch (374:12): [True: 0, False: 1]
  ------------------
  375|      1|                CollationData::MAX_NUM_SCRIPT_RANGES < data->scriptStartsLength) {
  ------------------
  |  Branch (375:17): [True: 0, False: 1]
  ------------------
  376|      0|            errorCode = U_INVALID_FORMAT_ERROR;
  377|      0|            return;
  378|      0|        }
  379|      1|        data->scriptsIndex = scripts + 1;
  380|      1|        data->scriptStarts = scripts + 1 + data->numScripts + 16;
  381|      1|        if(!(data->scriptStarts[0] == 0 &&
  ------------------
  |  Branch (381:14): [True: 1, False: 0]
  ------------------
  382|      1|                data->scriptStarts[1] == ((Collation::MERGE_SEPARATOR_BYTE + 1) << 8) &&
  ------------------
  |  Branch (382:17): [True: 1, False: 0]
  ------------------
  383|      1|                data->scriptStarts[data->scriptStartsLength - 1] ==
  ------------------
  |  Branch (383:17): [True: 1, False: 0]
  ------------------
  384|      1|                        (Collation::TRAIL_WEIGHT_BYTE << 8))) {
  385|      0|            errorCode = U_INVALID_FORMAT_ERROR;
  386|      0|            return;
  387|      0|        }
  388|    180|    } else if(data == nullptr) {
  ------------------
  |  Branch (388:15): [True: 22, False: 158]
  ------------------
  389|       |        // Nothing to do.
  390|    158|    } else if(baseData != nullptr) {
  ------------------
  |  Branch (390:15): [True: 158, False: 0]
  ------------------
  391|    158|        data->numScripts = baseData->numScripts;
  392|    158|        data->scriptsIndex = baseData->scriptsIndex;
  393|    158|        data->scriptStarts = baseData->scriptStarts;
  394|    158|        data->scriptStartsLength = baseData->scriptStartsLength;
  395|    158|    }
  396|       |
  397|    181|    index = IX_COMPRESSIBLE_BYTES_OFFSET;
  398|    181|    offset = getIndex(inIndexes, indexesLength, index);
  399|    181|    length = getIndex(inIndexes, indexesLength, index + 1) - offset;
  400|    181|    if(length >= 256) {
  ------------------
  |  Branch (400:8): [True: 1, False: 180]
  ------------------
  401|      1|        if(data == nullptr) {
  ------------------
  |  Branch (401:12): [True: 0, False: 1]
  ------------------
  402|      0|            errorCode = U_INVALID_FORMAT_ERROR;
  403|      0|            return;
  404|      0|        }
  405|      1|        data->compressibleBytes = reinterpret_cast<const UBool *>(inBytes + offset);
  406|    180|    } else if(data == nullptr) {
  ------------------
  |  Branch (406:15): [True: 22, False: 158]
  ------------------
  407|       |        // Nothing to do.
  408|    158|    } else if(baseData != nullptr) {
  ------------------
  |  Branch (408:15): [True: 158, False: 0]
  ------------------
  409|    158|        data->compressibleBytes = baseData->compressibleBytes;
  410|    158|    } else {
  411|      0|        errorCode = U_INVALID_FORMAT_ERROR;  // No compressibleBytes[].
  412|      0|        return;
  413|      0|    }
  414|       |
  415|    181|    const CollationSettings &ts = *tailoring.settings;
  416|    181|    int32_t options = inIndexes[IX_OPTIONS] & 0xffff;
  417|    181|    uint16_t fastLatinPrimaries[CollationFastLatin::LATIN_LIMIT];
  418|    181|    int32_t fastLatinOptions = CollationFastLatin::getOptions(
  419|    181|            tailoring.data, ts, fastLatinPrimaries, UPRV_LENGTHOF(fastLatinPrimaries));
  ------------------
  |  |   99|    181|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  420|    181|    if(options == ts.options && ts.variableTop != 0 &&
  ------------------
  |  Branch (420:8): [True: 130, False: 51]
  |  Branch (420:33): [True: 129, False: 1]
  ------------------
  421|    181|            reorderCodesLength == ts.reorderCodesLength &&
  ------------------
  |  Branch (421:13): [True: 80, False: 49]
  ------------------
  422|    181|            (reorderCodesLength == 0 ||
  ------------------
  |  Branch (422:14): [True: 80, False: 0]
  ------------------
  423|     80|                uprv_memcmp(reorderCodes, ts.reorderCodes, reorderCodesLength * 4) == 0) &&
  ------------------
  |  |  101|      0|#define uprv_memcmp(buffer1, buffer2, size) U_STANDARD_CPP_NAMESPACE memcmp(buffer1, buffer2,size)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (423:17): [True: 0, False: 0]
  ------------------
  424|    181|            fastLatinOptions == ts.fastLatinOptions &&
  ------------------
  |  Branch (424:13): [True: 78, False: 2]
  ------------------
  425|    181|            (fastLatinOptions < 0 ||
  ------------------
  |  Branch (425:14): [True: 0, False: 78]
  ------------------
  426|     78|                uprv_memcmp(fastLatinPrimaries, ts.fastLatinPrimaries,
  ------------------
  |  |  101|     78|#define uprv_memcmp(buffer1, buffer2, size) U_STANDARD_CPP_NAMESPACE memcmp(buffer1, buffer2,size)
  |  |  ------------------
  |  |  |  |  393|     78|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (426:17): [True: 4, False: 74]
  ------------------
  427|     78|                            sizeof(fastLatinPrimaries)) == 0)) {
  428|      4|        return;
  429|      4|    }
  430|       |
  431|    177|    CollationSettings *settings = SharedObject::copyOnWrite(tailoring.settings);
  432|    177|    if(settings == nullptr) {
  ------------------
  |  Branch (432:8): [True: 0, False: 177]
  ------------------
  433|      0|        errorCode = U_MEMORY_ALLOCATION_ERROR;
  434|      0|        return;
  435|      0|    }
  436|    177|    settings->options = options;
  437|       |    // Set variableTop from options and scripts data.
  438|    177|    settings->variableTop = tailoring.data->getLastPrimaryForGroup(
  439|    177|            UCOL_REORDER_CODE_FIRST + int32_t{settings->getMaxVariable()});
  440|    177|    if(settings->variableTop == 0) {
  ------------------
  |  Branch (440:8): [True: 0, False: 177]
  ------------------
  441|      0|        errorCode = U_INVALID_FORMAT_ERROR;
  442|      0|        return;
  443|      0|    }
  444|       |
  445|    177|    if(reorderCodesLength != 0) {
  ------------------
  |  Branch (445:8): [True: 84, False: 93]
  ------------------
  446|     84|        settings->aliasReordering(*baseData, reorderCodes, reorderCodesLength,
  447|     84|                                  reorderRanges, reorderRangesLength,
  448|     84|                                  reorderTable, errorCode);
  449|     84|    }
  450|       |
  451|    177|    settings->fastLatinOptions = CollationFastLatin::getOptions(
  452|    177|        tailoring.data, *settings,
  453|    177|        settings->fastLatinPrimaries, UPRV_LENGTHOF(settings->fastLatinPrimaries));
  ------------------
  |  |   99|    177|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  454|    177|}
_ZN6icu_7819CollationDataReader12isAcceptableEPvPKcS3_PK9UDataInfo:
  459|    181|                                  const UDataInfo *pInfo) {
  460|    181|    if(
  461|    181|        pInfo->size >= 20 &&
  ------------------
  |  Branch (461:9): [True: 181, False: 0]
  ------------------
  462|    181|        pInfo->isBigEndian == U_IS_BIG_ENDIAN &&
  ------------------
  |  |  353|    362|#   define U_IS_BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
  ------------------
  |  Branch (462:9): [True: 181, False: 0]
  ------------------
  463|    181|        pInfo->charsetFamily == U_CHARSET_FAMILY &&
  ------------------
  |  |  588|    181|#   define U_CHARSET_FAMILY U_ASCII_FAMILY
  |  |  ------------------
  |  |  |  |  531|    362|#define U_ASCII_FAMILY 0
  |  |  ------------------
  ------------------
  |  Branch (463:9): [True: 181, False: 0]
  ------------------
  464|    181|        pInfo->dataFormat[0] == 0x55 &&  // dataFormat="UCol"
  ------------------
  |  Branch (464:9): [True: 181, False: 0]
  ------------------
  465|    181|        pInfo->dataFormat[1] == 0x43 &&
  ------------------
  |  Branch (465:9): [True: 181, False: 0]
  ------------------
  466|    181|        pInfo->dataFormat[2] == 0x6f &&
  ------------------
  |  Branch (466:9): [True: 181, False: 0]
  ------------------
  467|    181|        pInfo->dataFormat[3] == 0x6c &&
  ------------------
  |  Branch (467:9): [True: 181, False: 0]
  ------------------
  468|    181|        pInfo->formatVersion[0] == 5
  ------------------
  |  Branch (468:9): [True: 181, False: 0]
  ------------------
  469|    181|    ) {
  470|    181|        UVersionInfo *version = static_cast<UVersionInfo *>(context);
  471|    181|        if(version != nullptr) {
  ------------------
  |  Branch (471:12): [True: 181, False: 0]
  ------------------
  472|    181|            uprv_memcpy(version, pInfo->dataVersion, 4);
  ------------------
  |  |   42|    181|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    181|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    181|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    181|    _Pragma("clang diagnostic push") \
  |  |   45|    181|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    181|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    181|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    181|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    181|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    181|    _Pragma("clang diagnostic pop") \
  |  |   49|    181|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    181|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    181|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    181|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  473|    181|        }
  474|    181|        return true;
  475|    181|    } else {
  476|      0|        return false;
  477|      0|    }
  478|    181|}
collationdatareader.cpp:_ZN6icu_7812_GLOBAL__N_18getIndexEPKiii:
   40|  4.10k|int32_t getIndex(const int32_t *indexes, int32_t length, int32_t i) {
   41|  4.10k|    return (i < length) ? indexes[i] : -1;
  ------------------
  |  Branch (41:12): [True: 3.03k, False: 1.06k]
  ------------------
   42|  4.10k|}

_ZN6icu_7818CollationFastLatin10getOptionsEPKNS_13CollationDataERKNS_17CollationSettingsEPti:
   28|  7.29k|                               uint16_t *primaries, int32_t capacity) {
   29|  7.29k|    const uint16_t *table = data->fastLatinTable;
   30|  7.29k|    if(table == nullptr) { return -1; }
  ------------------
  |  Branch (30:8): [True: 67, False: 7.22k]
  ------------------
   31|  7.22k|    U_ASSERT(capacity == LATIN_LIMIT);
  ------------------
  |  |   35|  7.22k|#   define U_ASSERT(exp) (void)0
  ------------------
   32|  7.22k|    if(capacity != LATIN_LIMIT) { return -1; }
  ------------------
  |  Branch (32:8): [True: 0, False: 7.22k]
  ------------------
   33|       |
   34|  7.22k|    uint32_t miniVarTop;
   35|  7.22k|    if((settings.options & CollationSettings::ALTERNATE_MASK) == 0) {
  ------------------
  |  Branch (35:8): [True: 6.81k, False: 410]
  ------------------
   36|       |        // No mini primaries are variable, set a variableTop just below the
   37|       |        // lowest long mini primary.
   38|  6.81k|        miniVarTop = MIN_LONG - 1;
   39|  6.81k|    } else {
   40|    410|        int32_t headerLength = *table & 0xff;
   41|    410|        int32_t i = 1 + settings.getMaxVariable();
   42|    410|        if(i >= headerLength) {
  ------------------
  |  Branch (42:12): [True: 0, False: 410]
  ------------------
   43|      0|            return -1;  // variableTop >= digits, should not occur
   44|      0|        }
   45|    410|        miniVarTop = table[i];
   46|    410|    }
   47|       |
   48|  7.22k|    UBool digitsAreReordered = false;
   49|  7.22k|    if(settings.hasReordering()) {
  ------------------
  |  Branch (49:8): [True: 3.28k, False: 3.94k]
  ------------------
   50|  3.28k|        uint32_t prevStart = 0;
   51|  3.28k|        uint32_t beforeDigitStart = 0;
   52|  3.28k|        uint32_t digitStart = 0;
   53|  3.28k|        uint32_t afterDigitStart = 0;
   54|  3.28k|        for(int32_t group = UCOL_REORDER_CODE_FIRST;
   55|  29.3k|                group < UCOL_REORDER_CODE_FIRST + CollationData::MAX_NUM_SPECIAL_REORDER_CODES;
  ------------------
  |  Branch (55:17): [True: 26.1k, False: 3.25k]
  ------------------
   56|  26.1k|                ++group) {
   57|  26.1k|            uint32_t start = data->getFirstPrimaryForGroup(group);
   58|  26.1k|            start = settings.reorder(start);
   59|  26.1k|            if(group == UCOL_REORDER_CODE_DIGIT) {
  ------------------
  |  Branch (59:16): [True: 3.25k, False: 22.8k]
  ------------------
   60|  3.25k|                beforeDigitStart = prevStart;
   61|  3.25k|                digitStart = start;
   62|  22.8k|            } else if(start != 0) {
  ------------------
  |  Branch (62:23): [True: 13.0k, False: 9.76k]
  ------------------
   63|  13.0k|                if(start < prevStart) {
  ------------------
  |  Branch (63:20): [True: 26, False: 13.0k]
  ------------------
   64|       |                    // The permutation affects the groups up to Latin.
   65|     26|                    return -1;
   66|     26|                }
   67|       |                // In the future, there might be a special group between digits & Latin.
   68|  13.0k|                if(digitStart != 0 && afterDigitStart == 0 && prevStart == beforeDigitStart) {
  ------------------
  |  Branch (68:20): [True: 0, False: 13.0k]
  |  Branch (68:39): [True: 0, False: 0]
  |  Branch (68:63): [True: 0, False: 0]
  ------------------
   69|      0|                    afterDigitStart = start;
   70|      0|                }
   71|  13.0k|                prevStart = start;
   72|  13.0k|            }
   73|  26.1k|        }
   74|  3.25k|        uint32_t latinStart = data->getFirstPrimaryForGroup(USCRIPT_LATIN);
   75|  3.25k|        latinStart = settings.reorder(latinStart);
   76|  3.25k|        if(latinStart < prevStart) {
  ------------------
  |  Branch (76:12): [True: 3, False: 3.25k]
  ------------------
   77|      3|            return -1;
   78|      3|        }
   79|  3.25k|        if(afterDigitStart == 0) {
  ------------------
  |  Branch (79:12): [True: 3.25k, False: 0]
  ------------------
   80|  3.25k|            afterDigitStart = latinStart;
   81|  3.25k|        }
   82|  3.25k|        if(!(beforeDigitStart < digitStart && digitStart < afterDigitStart)) {
  ------------------
  |  Branch (82:14): [True: 3.25k, False: 3]
  |  Branch (82:47): [True: 3.24k, False: 4]
  ------------------
   83|      7|            digitsAreReordered = true;
   84|      7|        }
   85|  3.25k|    }
   86|       |
   87|  7.19k|    table += (table[0] & 0xff);  // skip the header
   88|  2.76M|    for(UChar32 c = 0; c < LATIN_LIMIT; ++c) {
  ------------------
  |  Branch (88:24): [True: 2.76M, False: 7.19k]
  ------------------
   89|  2.76M|        uint32_t p = table[c];
   90|  2.76M|        if(p >= MIN_SHORT) {
  ------------------
  |  Branch (90:12): [True: 1.76M, False: 994k]
  ------------------
   91|  1.76M|            p &= SHORT_PRIMARY_MASK;
   92|  1.76M|        } else if(p > miniVarTop) {
  ------------------
  |  Branch (92:19): [True: 430k, False: 563k]
  ------------------
   93|   430k|            p &= LONG_PRIMARY_MASK;
   94|   563k|        } else {
   95|   563k|            p = 0;
   96|   563k|        }
   97|  2.76M|        primaries[c] = static_cast<uint16_t>(p);
   98|  2.76M|    }
   99|  7.19k|    if(digitsAreReordered || (settings.options & CollationSettings::NUMERIC) != 0) {
  ------------------
  |  Branch (99:8): [True: 7, False: 7.18k]
  |  Branch (99:30): [True: 37, False: 7.15k]
  ------------------
  100|       |        // Bail out for digits.
  101|    484|        for(UChar32 c = 0x30; c <= 0x39; ++c) { primaries[c] = 0; }
  ------------------
  |  Branch (101:31): [True: 440, False: 44]
  ------------------
  102|     44|    }
  103|       |
  104|       |    // Shift the miniVarTop above other options.
  105|  7.19k|    return (static_cast<int32_t>(miniVarTop) << 16) | settings.options;
  106|  7.22k|}
_ZN6icu_7818CollationFastLatin12compareUTF16EPKtS2_iPKDsiS4_i:
  111|    820|                                 const char16_t *right, int32_t rightLength) {
  112|       |    // This is a modified copy of CollationCompare::compareUpToQuaternary(),
  113|       |    // optimized for common Latin text.
  114|       |    // Keep them in sync!
  115|       |    // Keep compareUTF16() and compareUTF8() in sync very closely!
  116|       |
  117|    820|    U_ASSERT((table[0] >> 8) == VERSION);
  ------------------
  |  |   35|    820|#   define U_ASSERT(exp) (void)0
  ------------------
  118|    820|    table += (table[0] & 0xff);  // skip the header
  119|    820|    uint32_t variableTop = static_cast<uint32_t>(options) >> 16; // see getOptions()
  120|    820|    options &= 0xffff;  // needed for CollationSettings::getStrength() to work
  121|       |
  122|       |    // Check for supported characters, fetch mini CEs, and compare primaries.
  123|    820|    int32_t leftIndex = 0, rightIndex = 0;
  124|       |    /**
  125|       |     * Single mini CE or a pair.
  126|       |     * The current mini CE is in the lower 16 bits, the next one is in the upper 16 bits.
  127|       |     * If there is only one, then it is in the lower bits, and the upper bits are 0.
  128|       |     */
  129|    820|    uint32_t leftPair = 0, rightPair = 0;
  130|  5.97k|    for(;;) {
  131|       |        // We fetch CEs until we get a non-ignorable primary or reach the end.
  132|  14.2k|        while(leftPair == 0) {
  ------------------
  |  Branch (132:15): [True: 10.9k, False: 3.30k]
  ------------------
  133|  10.9k|            if(leftIndex == leftLength) {
  ------------------
  |  Branch (133:16): [True: 444, False: 10.5k]
  ------------------
  134|    444|                leftPair = EOS;
  135|    444|                break;
  136|    444|            }
  137|  10.5k|            UChar32 c = left[leftIndex++];
  138|  10.5k|            if(c <= LATIN_MAX) {
  ------------------
  |  Branch (138:16): [True: 7.51k, False: 3.01k]
  ------------------
  139|  7.51k|                leftPair = primaries[c];
  140|  7.51k|                if(leftPair != 0) { break; }
  ------------------
  |  Branch (140:20): [True: 1.37k, False: 6.14k]
  ------------------
  141|  6.14k|                if(c <= 0x39 && c >= 0x30 && (options & CollationSettings::NUMERIC) != 0) {
  ------------------
  |  Branch (141:20): [True: 4.41k, False: 1.73k]
  |  Branch (141:33): [True: 0, False: 4.41k]
  |  Branch (141:46): [True: 0, False: 0]
  ------------------
  142|      0|                    return BAIL_OUT_RESULT;
  143|      0|                }
  144|  6.14k|                leftPair = table[c];
  145|  6.14k|            } else if(PUNCT_START <= c && c < PUNCT_LIMIT) {
  ------------------
  |  Branch (145:23): [True: 2.94k, False: 70]
  |  Branch (145:43): [True: 2.41k, False: 528]
  ------------------
  146|  2.41k|                leftPair = table[c - PUNCT_START + LATIN_LIMIT];
  147|  2.41k|            } else {
  148|    598|                leftPair = lookup(table, c);
  149|    598|            }
  150|  9.16k|            if(leftPair >= MIN_SHORT) {
  ------------------
  |  Branch (150:16): [True: 220, False: 8.94k]
  ------------------
  151|    220|                leftPair &= SHORT_PRIMARY_MASK;
  152|    220|                break;
  153|  8.94k|            } else if(leftPair > variableTop) {
  ------------------
  |  Branch (153:23): [True: 380, False: 8.56k]
  ------------------
  154|    380|                leftPair &= LONG_PRIMARY_MASK;
  155|    380|                break;
  156|  8.56k|            } else {
  157|  8.56k|                leftPair = nextPair(table, c, leftPair, left, nullptr, leftIndex, leftLength);
  158|  8.56k|                if(leftPair == BAIL_OUT) { return BAIL_OUT_RESULT; }
  ------------------
  |  Branch (158:20): [True: 259, False: 8.30k]
  ------------------
  159|  8.30k|                leftPair = getPrimaries(variableTop, leftPair);
  160|  8.30k|            }
  161|  9.16k|        }
  162|       |
  163|  12.6k|        while(rightPair == 0) {
  ------------------
  |  Branch (163:15): [True: 9.40k, False: 3.25k]
  ------------------
  164|  9.40k|            if(rightIndex == rightLength) {
  ------------------
  |  Branch (164:16): [True: 397, False: 9.00k]
  ------------------
  165|    397|                rightPair = EOS;
  166|    397|                break;
  167|    397|            }
  168|  9.00k|            UChar32 c = right[rightIndex++];
  169|  9.00k|            if(c <= LATIN_MAX) {
  ------------------
  |  Branch (169:16): [True: 6.21k, False: 2.79k]
  ------------------
  170|  6.21k|                rightPair = primaries[c];
  171|  6.21k|                if(rightPair != 0) { break; }
  ------------------
  |  Branch (171:20): [True: 1.33k, False: 4.87k]
  ------------------
  172|  4.87k|                if(c <= 0x39 && c >= 0x30 && (options & CollationSettings::NUMERIC) != 0) {
  ------------------
  |  Branch (172:20): [True: 3.30k, False: 1.56k]
  |  Branch (172:33): [True: 0, False: 3.30k]
  |  Branch (172:46): [True: 0, False: 0]
  ------------------
  173|      0|                    return BAIL_OUT_RESULT;
  174|      0|                }
  175|  4.87k|                rightPair = table[c];
  176|  4.87k|            } else if(PUNCT_START <= c && c < PUNCT_LIMIT) {
  ------------------
  |  Branch (176:23): [True: 2.77k, False: 23]
  |  Branch (176:43): [True: 2.24k, False: 527]
  ------------------
  177|  2.24k|                rightPair = table[c - PUNCT_START + LATIN_LIMIT];
  178|  2.24k|            } else {
  179|    550|                rightPair = lookup(table, c);
  180|    550|            }
  181|  7.67k|            if(rightPair >= MIN_SHORT) {
  ------------------
  |  Branch (181:16): [True: 221, False: 7.45k]
  ------------------
  182|    221|                rightPair &= SHORT_PRIMARY_MASK;
  183|    221|                break;
  184|  7.45k|            } else if(rightPair > variableTop) {
  ------------------
  |  Branch (184:23): [True: 392, False: 7.06k]
  ------------------
  185|    392|                rightPair &= LONG_PRIMARY_MASK;
  186|    392|                break;
  187|  7.06k|            } else {
  188|  7.06k|                rightPair = nextPair(table, c, rightPair, right, nullptr, rightIndex, rightLength);
  189|  7.06k|                if(rightPair == BAIL_OUT) { return BAIL_OUT_RESULT; }
  ------------------
  |  Branch (189:20): [True: 115, False: 6.94k]
  ------------------
  190|  6.94k|                rightPair = getPrimaries(variableTop, rightPair);
  191|  6.94k|            }
  192|  7.67k|        }
  193|       |
  194|  5.60k|        if(leftPair == rightPair) {
  ------------------
  |  Branch (194:12): [True: 4.18k, False: 1.41k]
  ------------------
  195|  4.18k|            if(leftPair == EOS) { break; }
  ------------------
  |  Branch (195:16): [True: 379, False: 3.81k]
  ------------------
  196|  3.81k|            leftPair = rightPair = 0;
  197|  3.81k|            continue;
  198|  4.18k|        }
  199|  1.41k|        uint32_t leftPrimary = leftPair & 0xffff;
  200|  1.41k|        uint32_t rightPrimary = rightPair & 0xffff;
  201|  1.41k|        if(leftPrimary != rightPrimary) {
  ------------------
  |  Branch (201:12): [True: 67, False: 1.34k]
  ------------------
  202|       |            // Return the primary difference.
  203|     67|            return (leftPrimary < rightPrimary) ? UCOL_LESS : UCOL_GREATER;
  ------------------
  |  Branch (203:20): [True: 27, False: 40]
  ------------------
  204|     67|        }
  205|  1.34k|        if(leftPair == EOS) { break; }
  ------------------
  |  Branch (205:12): [True: 0, False: 1.34k]
  ------------------
  206|  1.34k|        leftPair >>= 16;
  207|  1.34k|        rightPair >>= 16;
  208|  1.34k|    }
  209|       |    // In the following, we need to re-fetch each character because we did not buffer the CEs,
  210|       |    // but we know that the string is well-formed and
  211|       |    // only contains supported characters and mappings.
  212|       |
  213|       |    // We might skip the secondary level but continue with the case level
  214|       |    // which is turned on separately.
  215|    379|    if(CollationSettings::getStrength(options) >= UCOL_SECONDARY) {
  ------------------
  |  Branch (215:8): [True: 375, False: 4]
  ------------------
  216|    375|        leftIndex = rightIndex = 0;
  217|    375|        leftPair = rightPair = 0;
  218|  4.64k|        for(;;) {
  219|  10.7k|            while(leftPair == 0) {
  ------------------
  |  Branch (219:19): [True: 8.16k, False: 2.55k]
  ------------------
  220|  8.16k|                if(leftIndex == leftLength) {
  ------------------
  |  Branch (220:20): [True: 351, False: 7.81k]
  ------------------
  221|    351|                    leftPair = EOS;
  222|    351|                    break;
  223|    351|                }
  224|  7.81k|                UChar32 c = left[leftIndex++];
  225|  7.81k|                if(c <= LATIN_MAX) {
  ------------------
  |  Branch (225:20): [True: 5.24k, False: 2.56k]
  ------------------
  226|  5.24k|                    leftPair = table[c];
  227|  5.24k|                } else if(PUNCT_START <= c && c < PUNCT_LIMIT) {
  ------------------
  |  Branch (227:27): [True: 2.56k, False: 0]
  |  Branch (227:47): [True: 2.11k, False: 455]
  ------------------
  228|  2.11k|                    leftPair = table[c - PUNCT_START + LATIN_LIMIT];
  229|  2.11k|                } else {
  230|    455|                    leftPair = lookup(table, c);
  231|    455|                }
  232|  7.81k|                if(leftPair >= MIN_SHORT) {
  ------------------
  |  Branch (232:20): [True: 1.17k, False: 6.63k]
  ------------------
  233|  1.17k|                    leftPair = getSecondariesFromOneShortCE(leftPair);
  234|  1.17k|                    break;
  235|  6.63k|                } else if(leftPair > variableTop) {
  ------------------
  |  Branch (235:27): [True: 565, False: 6.07k]
  ------------------
  236|    565|                    leftPair = COMMON_SEC_PLUS_OFFSET;
  237|    565|                    break;
  238|  6.07k|                } else {
  239|  6.07k|                    leftPair = nextPair(table, c, leftPair, left, nullptr, leftIndex, leftLength);
  240|  6.07k|                    leftPair = getSecondaries(variableTop, leftPair);
  241|  6.07k|                }
  242|  7.81k|            }
  243|       |
  244|  10.7k|            while(rightPair == 0) {
  ------------------
  |  Branch (244:19): [True: 8.16k, False: 2.54k]
  ------------------
  245|  8.16k|                if(rightIndex == rightLength) {
  ------------------
  |  Branch (245:20): [True: 352, False: 7.81k]
  ------------------
  246|    352|                    rightPair = EOS;
  247|    352|                    break;
  248|    352|                }
  249|  7.81k|                UChar32 c = right[rightIndex++];
  250|  7.81k|                if(c <= LATIN_MAX) {
  ------------------
  |  Branch (250:20): [True: 5.23k, False: 2.57k]
  ------------------
  251|  5.23k|                    rightPair = table[c];
  252|  5.23k|                } else if(PUNCT_START <= c && c < PUNCT_LIMIT) {
  ------------------
  |  Branch (252:27): [True: 2.57k, False: 0]
  |  Branch (252:47): [True: 2.12k, False: 455]
  ------------------
  253|  2.12k|                    rightPair = table[c - PUNCT_START + LATIN_LIMIT];
  254|  2.12k|                } else {
  255|    455|                    rightPair = lookup(table, c);
  256|    455|                }
  257|  7.81k|                if(rightPair >= MIN_SHORT) {
  ------------------
  |  Branch (257:20): [True: 1.17k, False: 6.63k]
  ------------------
  258|  1.17k|                    rightPair = getSecondariesFromOneShortCE(rightPair);
  259|  1.17k|                    break;
  260|  6.63k|                } else if(rightPair > variableTop) {
  ------------------
  |  Branch (260:27): [True: 567, False: 6.06k]
  ------------------
  261|    567|                    rightPair = COMMON_SEC_PLUS_OFFSET;
  262|    567|                    break;
  263|  6.06k|                } else {
  264|  6.06k|                    rightPair = nextPair(table, c, rightPair, right, nullptr, rightIndex, rightLength);
  265|  6.06k|                    rightPair = getSecondaries(variableTop, rightPair);
  266|  6.06k|                }
  267|  7.81k|            }
  268|       |
  269|  4.64k|            if(leftPair == rightPair) {
  ------------------
  |  Branch (269:16): [True: 3.60k, False: 1.04k]
  ------------------
  270|  3.60k|                if(leftPair == EOS) { break; }
  ------------------
  |  Branch (270:20): [True: 349, False: 3.25k]
  ------------------
  271|  3.25k|                leftPair = rightPair = 0;
  272|  3.25k|                continue;
  273|  3.60k|            }
  274|  1.04k|            uint32_t leftSecondary = leftPair & 0xffff;
  275|  1.04k|            uint32_t rightSecondary = rightPair & 0xffff;
  276|  1.04k|            if(leftSecondary != rightSecondary) {
  ------------------
  |  Branch (276:16): [True: 26, False: 1.01k]
  ------------------
  277|     26|                if((options & CollationSettings::BACKWARD_SECONDARY) != 0) {
  ------------------
  |  Branch (277:20): [True: 3, False: 23]
  ------------------
  278|       |                    // Full support for backwards secondary requires backwards contraction matching
  279|       |                    // and moving backwards between merge separators.
  280|      3|                    return BAIL_OUT_RESULT;
  281|      3|                }
  282|     23|                return (leftSecondary < rightSecondary) ? UCOL_LESS : UCOL_GREATER;
  ------------------
  |  Branch (282:24): [True: 8, False: 15]
  ------------------
  283|     26|            }
  284|  1.01k|            if(leftPair == EOS) { break; }
  ------------------
  |  Branch (284:16): [True: 0, False: 1.01k]
  ------------------
  285|  1.01k|            leftPair >>= 16;
  286|  1.01k|            rightPair >>= 16;
  287|  1.01k|        }
  288|    375|    }
  289|       |
  290|    353|    if((options & CollationSettings::CASE_LEVEL) != 0) {
  ------------------
  |  Branch (290:8): [True: 0, False: 353]
  ------------------
  291|      0|        UBool strengthIsPrimary = CollationSettings::getStrength(options) == UCOL_PRIMARY;
  292|      0|        leftIndex = rightIndex = 0;
  293|      0|        leftPair = rightPair = 0;
  294|      0|        for(;;) {
  295|      0|            while(leftPair == 0) {
  ------------------
  |  Branch (295:19): [True: 0, False: 0]
  ------------------
  296|      0|                if(leftIndex == leftLength) {
  ------------------
  |  Branch (296:20): [True: 0, False: 0]
  ------------------
  297|      0|                    leftPair = EOS;
  298|      0|                    break;
  299|      0|                }
  300|      0|                UChar32 c = left[leftIndex++];
  301|      0|                leftPair = (c <= LATIN_MAX) ? table[c] : lookup(table, c);
  ------------------
  |  Branch (301:28): [True: 0, False: 0]
  ------------------
  302|      0|                if(leftPair < MIN_LONG) {
  ------------------
  |  Branch (302:20): [True: 0, False: 0]
  ------------------
  303|      0|                    leftPair = nextPair(table, c, leftPair, left, nullptr, leftIndex, leftLength);
  304|      0|                }
  305|      0|                leftPair = getCases(variableTop, strengthIsPrimary, leftPair);
  306|      0|            }
  307|       |
  308|      0|            while(rightPair == 0) {
  ------------------
  |  Branch (308:19): [True: 0, False: 0]
  ------------------
  309|      0|                if(rightIndex == rightLength) {
  ------------------
  |  Branch (309:20): [True: 0, False: 0]
  ------------------
  310|      0|                    rightPair = EOS;
  311|      0|                    break;
  312|      0|                }
  313|      0|                UChar32 c = right[rightIndex++];
  314|      0|                rightPair = (c <= LATIN_MAX) ? table[c] : lookup(table, c);
  ------------------
  |  Branch (314:29): [True: 0, False: 0]
  ------------------
  315|      0|                if(rightPair < MIN_LONG) {
  ------------------
  |  Branch (315:20): [True: 0, False: 0]
  ------------------
  316|      0|                    rightPair = nextPair(table, c, rightPair, right, nullptr, rightIndex, rightLength);
  317|      0|                }
  318|      0|                rightPair = getCases(variableTop, strengthIsPrimary, rightPair);
  319|      0|            }
  320|       |
  321|      0|            if(leftPair == rightPair) {
  ------------------
  |  Branch (321:16): [True: 0, False: 0]
  ------------------
  322|      0|                if(leftPair == EOS) { break; }
  ------------------
  |  Branch (322:20): [True: 0, False: 0]
  ------------------
  323|      0|                leftPair = rightPair = 0;
  324|      0|                continue;
  325|      0|            }
  326|      0|            uint32_t leftCase = leftPair & 0xffff;
  327|      0|            uint32_t rightCase = rightPair & 0xffff;
  328|      0|            if(leftCase != rightCase) {
  ------------------
  |  Branch (328:16): [True: 0, False: 0]
  ------------------
  329|      0|                if((options & CollationSettings::UPPER_FIRST) == 0) {
  ------------------
  |  Branch (329:20): [True: 0, False: 0]
  ------------------
  330|      0|                    return (leftCase < rightCase) ? UCOL_LESS : UCOL_GREATER;
  ------------------
  |  Branch (330:28): [True: 0, False: 0]
  ------------------
  331|      0|                } else {
  332|      0|                    return (leftCase < rightCase) ? UCOL_GREATER : UCOL_LESS;
  ------------------
  |  Branch (332:28): [True: 0, False: 0]
  ------------------
  333|      0|                }
  334|      0|            }
  335|      0|            if(leftPair == EOS) { break; }
  ------------------
  |  Branch (335:16): [True: 0, False: 0]
  ------------------
  336|      0|            leftPair >>= 16;
  337|      0|            rightPair >>= 16;
  338|      0|        }
  339|      0|    }
  340|    353|    if(CollationSettings::getStrength(options) <= UCOL_SECONDARY) { return UCOL_EQUAL; }
  ------------------
  |  Branch (340:8): [True: 13, False: 340]
  ------------------
  341|       |
  342|       |    // Remove the case bits from the tertiary weight when caseLevel is on or caseFirst is off.
  343|    340|    UBool withCaseBits = CollationSettings::isTertiaryWithCaseBits(options);
  344|       |
  345|    340|    leftIndex = rightIndex = 0;
  346|    340|    leftPair = rightPair = 0;
  347|  3.92k|    for(;;) {
  348|  11.2k|        while(leftPair == 0) {
  ------------------
  |  Branch (348:15): [True: 7.53k, False: 3.68k]
  ------------------
  349|  7.53k|            if(leftIndex == leftLength) {
  ------------------
  |  Branch (349:16): [True: 247, False: 7.28k]
  ------------------
  350|    247|                leftPair = EOS;
  351|    247|                break;
  352|    247|            }
  353|  7.28k|            UChar32 c = left[leftIndex++];
  354|  7.28k|            leftPair = (c <= LATIN_MAX) ? table[c] : lookup(table, c);
  ------------------
  |  Branch (354:24): [True: 4.81k, False: 2.46k]
  ------------------
  355|  7.28k|            if(leftPair < MIN_LONG) {
  ------------------
  |  Branch (355:16): [True: 5.01k, False: 2.26k]
  ------------------
  356|  5.01k|                leftPair = nextPair(table, c, leftPair, left, nullptr, leftIndex, leftLength);
  357|  5.01k|            }
  358|  7.28k|            leftPair = getTertiaries(variableTop, withCaseBits, leftPair);
  359|  7.28k|        }
  360|       |
  361|  11.2k|        while(rightPair == 0) {
  ------------------
  |  Branch (361:15): [True: 7.52k, False: 3.68k]
  ------------------
  362|  7.52k|            if(rightIndex == rightLength) {
  ------------------
  |  Branch (362:16): [True: 247, False: 7.28k]
  ------------------
  363|    247|                rightPair = EOS;
  364|    247|                break;
  365|    247|            }
  366|  7.28k|            UChar32 c = right[rightIndex++];
  367|  7.28k|            rightPair = (c <= LATIN_MAX) ? table[c] : lookup(table, c);
  ------------------
  |  Branch (367:25): [True: 4.80k, False: 2.48k]
  ------------------
  368|  7.28k|            if(rightPair < MIN_LONG) {
  ------------------
  |  Branch (368:16): [True: 5.04k, False: 2.23k]
  ------------------
  369|  5.04k|                rightPair = nextPair(table, c, rightPair, right, nullptr, rightIndex, rightLength);
  370|  5.04k|            }
  371|  7.28k|            rightPair = getTertiaries(variableTop, withCaseBits, rightPair);
  372|  7.28k|        }
  373|       |
  374|  3.92k|        if(leftPair == rightPair) {
  ------------------
  |  Branch (374:12): [True: 2.99k, False: 936]
  ------------------
  375|  2.99k|            if(leftPair == EOS) { break; }
  ------------------
  |  Branch (375:16): [True: 247, False: 2.74k]
  ------------------
  376|  2.74k|            leftPair = rightPair = 0;
  377|  2.74k|            continue;
  378|  2.99k|        }
  379|    936|        uint32_t leftTertiary = leftPair & 0xffff;
  380|    936|        uint32_t rightTertiary = rightPair & 0xffff;
  381|    936|        if(leftTertiary != rightTertiary) {
  ------------------
  |  Branch (381:12): [True: 93, False: 843]
  ------------------
  382|     93|            if(CollationSettings::sortsTertiaryUpperCaseFirst(options)) {
  ------------------
  |  Branch (382:16): [True: 24, False: 69]
  ------------------
  383|       |                // Pass through EOS and MERGE_WEIGHT
  384|       |                // and keep real tertiary weights larger than the MERGE_WEIGHT.
  385|       |                // Tertiary CEs (secondary ignorables) are not supported in fast Latin.
  386|     24|                if(leftTertiary > MERGE_WEIGHT) {
  ------------------
  |  Branch (386:20): [True: 24, False: 0]
  ------------------
  387|     24|                    leftTertiary ^= CASE_MASK;
  388|     24|                }
  389|     24|                if(rightTertiary > MERGE_WEIGHT) {
  ------------------
  |  Branch (389:20): [True: 24, False: 0]
  ------------------
  390|     24|                    rightTertiary ^= CASE_MASK;
  391|     24|                }
  392|     24|            }
  393|     93|            return (leftTertiary < rightTertiary) ? UCOL_LESS : UCOL_GREATER;
  ------------------
  |  Branch (393:20): [True: 45, False: 48]
  ------------------
  394|     93|        }
  395|    843|        if(leftPair == EOS) { break; }
  ------------------
  |  Branch (395:12): [True: 0, False: 843]
  ------------------
  396|    843|        leftPair >>= 16;
  397|    843|        rightPair >>= 16;
  398|    843|    }
  399|    247|    if(CollationSettings::getStrength(options) <= UCOL_TERTIARY) { return UCOL_EQUAL; }
  ------------------
  |  Branch (399:8): [True: 14, False: 233]
  ------------------
  400|       |
  401|    233|    leftIndex = rightIndex = 0;
  402|    233|    leftPair = rightPair = 0;
  403|  4.03k|    for(;;) {
  404|  9.76k|        while(leftPair == 0) {
  ------------------
  |  Branch (404:15): [True: 5.91k, False: 3.85k]
  ------------------
  405|  5.91k|            if(leftIndex == leftLength) {
  ------------------
  |  Branch (405:16): [True: 182, False: 5.73k]
  ------------------
  406|    182|                leftPair = EOS;
  407|    182|                break;
  408|    182|            }
  409|  5.73k|            UChar32 c = left[leftIndex++];
  410|  5.73k|            leftPair = (c <= LATIN_MAX) ? table[c] : lookup(table, c);
  ------------------
  |  Branch (410:24): [True: 3.62k, False: 2.10k]
  ------------------
  411|  5.73k|            if(leftPair < MIN_LONG) {
  ------------------
  |  Branch (411:16): [True: 4.08k, False: 1.65k]
  ------------------
  412|  4.08k|                leftPair = nextPair(table, c, leftPair, left, nullptr, leftIndex, leftLength);
  413|  4.08k|            }
  414|  5.73k|            leftPair = getQuaternaries(variableTop, leftPair);
  415|  5.73k|        }
  416|       |
  417|  10.0k|        while(rightPair == 0) {
  ------------------
  |  Branch (417:15): [True: 6.22k, False: 3.85k]
  ------------------
  418|  6.22k|            if(rightIndex == rightLength) {
  ------------------
  |  Branch (418:16): [True: 177, False: 6.04k]
  ------------------
  419|    177|                rightPair = EOS;
  420|    177|                break;
  421|    177|            }
  422|  6.04k|            UChar32 c = right[rightIndex++];
  423|  6.04k|            rightPair = (c <= LATIN_MAX) ? table[c] : lookup(table, c);
  ------------------
  |  Branch (423:25): [True: 3.92k, False: 2.12k]
  ------------------
  424|  6.04k|            if(rightPair < MIN_LONG) {
  ------------------
  |  Branch (424:16): [True: 4.41k, False: 1.63k]
  ------------------
  425|  4.41k|                rightPair = nextPair(table, c, rightPair, right, nullptr, rightIndex, rightLength);
  426|  4.41k|            }
  427|  6.04k|            rightPair = getQuaternaries(variableTop, rightPair);
  428|  6.04k|        }
  429|       |
  430|  4.03k|        if(leftPair == rightPair) {
  ------------------
  |  Branch (430:12): [True: 2.96k, False: 1.07k]
  ------------------
  431|  2.96k|            if(leftPair == EOS) { break; }
  ------------------
  |  Branch (431:16): [True: 166, False: 2.79k]
  ------------------
  432|  2.79k|            leftPair = rightPair = 0;
  433|  2.79k|            continue;
  434|  2.96k|        }
  435|  1.07k|        uint32_t leftQuaternary = leftPair & 0xffff;
  436|  1.07k|        uint32_t rightQuaternary = rightPair & 0xffff;
  437|  1.07k|        if(leftQuaternary != rightQuaternary) {
  ------------------
  |  Branch (437:12): [True: 67, False: 1.00k]
  ------------------
  438|     67|            return (leftQuaternary < rightQuaternary) ? UCOL_LESS : UCOL_GREATER;
  ------------------
  |  Branch (438:20): [True: 28, False: 39]
  ------------------
  439|     67|        }
  440|  1.00k|        if(leftPair == EOS) { break; }
  ------------------
  |  Branch (440:12): [True: 0, False: 1.00k]
  ------------------
  441|  1.00k|        leftPair >>= 16;
  442|  1.00k|        rightPair >>= 16;
  443|  1.00k|    }
  444|    166|    return UCOL_EQUAL;
  445|    233|}
_ZN6icu_7818CollationFastLatin6lookupEPKti:
  799|  11.2k|CollationFastLatin::lookup(const uint16_t *table, UChar32 c) {
  800|  11.2k|    U_ASSERT(c > LATIN_MAX);
  ------------------
  |  |   35|  11.2k|#   define U_ASSERT(exp) (void)0
  ------------------
  801|  11.2k|    if(PUNCT_START <= c && c < PUNCT_LIMIT) {
  ------------------
  |  Branch (801:8): [True: 11.1k, False: 93]
  |  Branch (801:28): [True: 7.36k, False: 3.77k]
  ------------------
  802|  7.36k|        return table[c - PUNCT_START + LATIN_LIMIT];
  803|  7.36k|    } else if(c == 0xfffe) {
  ------------------
  |  Branch (803:15): [True: 1.94k, False: 1.92k]
  ------------------
  804|  1.94k|        return MERGE_WEIGHT;
  805|  1.94k|    } else if(c == 0xffff) {
  ------------------
  |  Branch (805:15): [True: 1.74k, False: 171]
  ------------------
  806|  1.74k|        return MAX_SHORT | COMMON_SEC | LOWER_CASE | COMMON_TER;
  807|  1.74k|    } else {
  808|    171|        return BAIL_OUT;
  809|    171|    }
  810|  11.2k|}
_ZN6icu_7818CollationFastLatin8nextPairEPKtijPKDsPKhRiS7_:
  857|  46.3k|                             const char16_t *s16, const uint8_t *s8, int32_t &sIndex, int32_t &sLength) {
  858|  46.3k|    if(ce >= MIN_LONG || ce < CONTRACTION) {
  ------------------
  |  Branch (858:8): [True: 2.49k, False: 43.8k]
  |  Branch (858:26): [True: 4.66k, False: 39.1k]
  ------------------
  859|  7.16k|        return ce;  // simple or special mini CE
  860|  39.1k|    } else if(ce >= EXPANSION) {
  ------------------
  |  Branch (860:15): [True: 14.5k, False: 24.6k]
  ------------------
  861|  14.5k|        int32_t index = NUM_FAST_CHARS + (ce & INDEX_MASK);
  862|  14.5k|        return (static_cast<uint32_t>(table[index + 1]) << 16) | table[index];
  863|  24.6k|    } else /* ce >= CONTRACTION */ {
  864|  24.6k|        if(c == 0 && sLength < 0) {
  ------------------
  |  Branch (864:12): [True: 21.1k, False: 3.49k]
  |  Branch (864:22): [True: 0, False: 21.1k]
  ------------------
  865|      0|            sLength = sIndex - 1;
  866|      0|            return EOS;
  867|      0|        }
  868|       |        // Contraction list: Default mapping followed by
  869|       |        // 0 or more single-character contraction suffix mappings.
  870|  24.6k|        int32_t index = NUM_FAST_CHARS + (ce & INDEX_MASK);
  871|  24.6k|        if(sIndex != sLength) {
  ------------------
  |  Branch (871:12): [True: 23.9k, False: 682]
  ------------------
  872|       |            // Read the next character.
  873|  23.9k|            int32_t c2;
  874|  23.9k|            int32_t nextIndex = sIndex;
  875|  23.9k|            if(s16 != nullptr) {
  ------------------
  |  Branch (875:16): [True: 23.9k, False: 0]
  ------------------
  876|  23.9k|                c2 = s16[nextIndex++];
  877|  23.9k|                if(c2 > LATIN_MAX) {
  ------------------
  |  Branch (877:20): [True: 1.81k, False: 22.1k]
  ------------------
  878|  1.81k|                    if(PUNCT_START <= c2 && c2 < PUNCT_LIMIT) {
  ------------------
  |  Branch (878:24): [True: 1.73k, False: 86]
  |  Branch (878:45): [True: 1.21k, False: 516]
  ------------------
  879|  1.21k|                        c2 = c2 - PUNCT_START + LATIN_LIMIT;  // 2000..203F -> 0180..01BF
  880|  1.21k|                    } else if(c2 == 0xfffe || c2 == 0xffff) {
  ------------------
  |  Branch (880:31): [True: 224, False: 378]
  |  Branch (880:47): [True: 223, False: 155]
  ------------------
  881|    447|                        c2 = -1;  // U+FFFE & U+FFFF cannot occur in contractions.
  882|    447|                    } else {
  883|    155|                        return BAIL_OUT;
  884|    155|                    }
  885|  1.81k|                }
  886|  23.9k|            } else {
  887|      0|                c2 = s8[nextIndex++];
  888|      0|                if(c2 > 0x7f) {
  ------------------
  |  Branch (888:20): [True: 0, False: 0]
  ------------------
  889|      0|                    uint8_t t;
  890|      0|                    if(c2 <= 0xc5 && 0xc2 <= c2 && nextIndex != sLength &&
  ------------------
  |  Branch (890:24): [True: 0, False: 0]
  |  Branch (890:38): [True: 0, False: 0]
  |  Branch (890:52): [True: 0, False: 0]
  ------------------
  891|      0|                            0x80 <= (t = s8[nextIndex]) && t <= 0xbf) {
  ------------------
  |  Branch (891:29): [True: 0, False: 0]
  |  Branch (891:60): [True: 0, False: 0]
  ------------------
  892|      0|                        c2 = ((c2 - 0xc2) << 6) + t;  // 0080..017F
  893|      0|                        ++nextIndex;
  894|      0|                    } else {
  895|      0|                        int32_t i2 = nextIndex + 1;
  896|      0|                        if(i2 < sLength || sLength < 0) {
  ------------------
  |  Branch (896:28): [True: 0, False: 0]
  |  Branch (896:44): [True: 0, False: 0]
  ------------------
  897|      0|                            if(c2 == 0xe2 && s8[nextIndex] == 0x80 &&
  ------------------
  |  Branch (897:32): [True: 0, False: 0]
  |  Branch (897:46): [True: 0, False: 0]
  ------------------
  898|      0|                                    0x80 <= (t = s8[i2]) && t <= 0xbf) {
  ------------------
  |  Branch (898:37): [True: 0, False: 0]
  |  Branch (898:61): [True: 0, False: 0]
  ------------------
  899|      0|                                c2 = (LATIN_LIMIT - 0x80) + t;  // 2000..203F -> 0180..01BF
  900|      0|                            } else if(c2 == 0xef && s8[nextIndex] == 0xbf &&
  ------------------
  |  Branch (900:39): [True: 0, False: 0]
  |  Branch (900:53): [True: 0, False: 0]
  ------------------
  901|      0|                                    ((t = s8[i2]) == 0xbe || t == 0xbf)) {
  ------------------
  |  Branch (901:38): [True: 0, False: 0]
  |  Branch (901:62): [True: 0, False: 0]
  ------------------
  902|      0|                                c2 = -1;  // U+FFFE & U+FFFF cannot occur in contractions.
  903|      0|                            } else {
  904|      0|                                return BAIL_OUT;
  905|      0|                            }
  906|      0|                        } else {
  907|      0|                            return BAIL_OUT;
  908|      0|                        }
  909|      0|                        nextIndex += 2;
  910|      0|                    }
  911|      0|                }
  912|      0|            }
  913|  23.7k|            if(c2 == 0 && sLength < 0) {
  ------------------
  |  Branch (913:16): [True: 18.6k, False: 5.12k]
  |  Branch (913:27): [True: 0, False: 18.6k]
  ------------------
  914|      0|                sLength = sIndex;
  915|      0|                c2 = -1;
  916|      0|            }
  917|       |            // Look for the next character in the contraction suffix list,
  918|       |            // which is in ascending order of single suffix characters.
  919|  23.7k|            int32_t i = index;
  920|  23.7k|            int32_t head = table[i];  // first skip the default mapping
  921|  23.7k|            int32_t x;
  922|  25.5k|            do {
  923|  25.5k|                i += head >> CONTR_LENGTH_SHIFT;
  924|  25.5k|                head = table[i];
  925|  25.5k|                x = head & CONTR_CHAR_MASK;
  926|  25.5k|            } while(x < c2);
  ------------------
  |  Branch (926:21): [True: 1.74k, False: 23.7k]
  ------------------
  927|  23.7k|            if(x == c2) {
  ------------------
  |  Branch (927:16): [True: 615, False: 23.1k]
  ------------------
  928|    615|                index = i;
  929|    615|                sIndex = nextIndex;
  930|    615|            }
  931|  23.7k|        }
  932|       |        // Return the CE or CEs for the default or contraction mapping.
  933|  24.4k|        int32_t length = table[index] >> CONTR_LENGTH_SHIFT;
  934|  24.4k|        if(length == 1) {
  ------------------
  |  Branch (934:12): [True: 21, False: 24.4k]
  ------------------
  935|     21|            return BAIL_OUT;
  936|     21|        }
  937|  24.4k|        ce = table[index + 1];
  938|  24.4k|        if(length == 2) {
  ------------------
  |  Branch (938:12): [True: 24.3k, False: 66]
  ------------------
  939|  24.3k|            return ce;
  940|  24.3k|        } else {
  941|     66|            return (static_cast<uint32_t>(table[index + 2]) << 16) | ce;
  942|     66|        }
  943|  24.4k|    }
  944|  46.3k|}
_ZN6icu_7818CollationFastLatin14getSecondariesEjj:
  947|  12.1k|CollationFastLatin::getSecondaries(uint32_t variableTop, uint32_t pair) {
  948|  12.1k|    if(pair <= 0xffff) {
  ------------------
  |  Branch (948:8): [True: 8.25k, False: 3.88k]
  ------------------
  949|       |        // one mini CE
  950|  8.25k|        if(pair >= MIN_SHORT) {
  ------------------
  |  Branch (950:12): [True: 923, False: 7.33k]
  ------------------
  951|    923|            pair = getSecondariesFromOneShortCE(pair);
  952|  7.33k|        } else if(pair > variableTop) {
  ------------------
  |  Branch (952:19): [True: 132, False: 7.20k]
  ------------------
  953|    132|            pair = COMMON_SEC_PLUS_OFFSET;
  954|  7.20k|        } else if(pair >= MIN_LONG) {
  ------------------
  |  Branch (954:19): [True: 1.09k, False: 6.11k]
  ------------------
  955|  1.09k|            pair = 0;  // variable
  956|  1.09k|        }
  957|       |        // else special mini CE
  958|  8.25k|    } else {
  959|  3.88k|        uint32_t ce = pair & 0xffff;
  960|  3.88k|        if(ce >= MIN_SHORT) {
  ------------------
  |  Branch (960:12): [True: 960, False: 2.92k]
  ------------------
  961|    960|            pair = (pair & TWO_SECONDARIES_MASK) + TWO_SEC_OFFSETS;
  962|  2.92k|        } else if(ce > variableTop) {
  ------------------
  |  Branch (962:19): [True: 1.58k, False: 1.33k]
  ------------------
  963|  1.58k|            pair = TWO_COMMON_SEC_PLUS_OFFSET;
  964|  1.58k|        } else {
  965|  1.33k|            U_ASSERT(ce >= MIN_LONG);
  ------------------
  |  |   35|  1.33k|#   define U_ASSERT(exp) (void)0
  ------------------
  966|  1.33k|            pair = 0;  // variable
  967|  1.33k|        }
  968|  3.88k|    }
  969|  12.1k|    return pair;
  970|  12.1k|}
_ZN6icu_7818CollationFastLatin13getTertiariesEjaj:
 1014|  14.5k|CollationFastLatin::getTertiaries(uint32_t variableTop, UBool withCaseBits, uint32_t pair) {
 1015|  14.5k|    if(pair <= 0xffff) {
  ------------------
  |  Branch (1015:8): [True: 10.9k, False: 3.60k]
  ------------------
 1016|       |        // one mini CE
 1017|  10.9k|        if(pair >= MIN_SHORT) {
  ------------------
  |  Branch (1017:12): [True: 2.55k, False: 8.40k]
  ------------------
 1018|       |            // A high secondary weight means we really have two CEs,
 1019|       |            // a primary CE and a secondary CE.
 1020|  2.55k|            uint32_t ce = pair;
 1021|  2.55k|            if(withCaseBits) {
  ------------------
  |  Branch (1021:16): [True: 786, False: 1.77k]
  ------------------
 1022|    786|                pair = (pair & CASE_AND_TERTIARY_MASK) + TER_OFFSET;
 1023|    786|                if((ce & SECONDARY_MASK) >= MIN_SEC_HIGH) {
  ------------------
  |  Branch (1023:20): [True: 392, False: 394]
  ------------------
 1024|    392|                    pair |= (LOWER_CASE | COMMON_TER_PLUS_OFFSET) << 16;
 1025|    392|                }
 1026|  1.77k|            } else {
 1027|  1.77k|                pair = (pair & TERTIARY_MASK) + TER_OFFSET;
 1028|  1.77k|                if((ce & SECONDARY_MASK) >= MIN_SEC_HIGH) {
  ------------------
  |  Branch (1028:20): [True: 480, False: 1.29k]
  ------------------
 1029|    480|                    pair |= COMMON_TER_PLUS_OFFSET << 16;
 1030|    480|                }
 1031|  1.77k|            }
 1032|  8.40k|        } else if(pair > variableTop) {
  ------------------
  |  Branch (1032:19): [True: 1.22k, False: 7.17k]
  ------------------
 1033|  1.22k|            pair = (pair & TERTIARY_MASK) + TER_OFFSET;
 1034|  1.22k|            if(withCaseBits) {
  ------------------
  |  Branch (1034:16): [True: 134, False: 1.09k]
  ------------------
 1035|    134|                pair |= LOWER_CASE;
 1036|    134|            }
 1037|  7.17k|        } else if(pair >= MIN_LONG) {
  ------------------
  |  Branch (1037:19): [True: 1.09k, False: 6.08k]
  ------------------
 1038|  1.09k|            pair = 0;  // variable
 1039|  1.09k|        }
 1040|       |        // else special mini CE
 1041|  10.9k|    } else {
 1042|       |        // two mini CEs, same primary groups, neither expands like above
 1043|  3.60k|        uint32_t ce = pair & 0xffff;
 1044|  3.60k|        if(ce >= MIN_SHORT) {
  ------------------
  |  Branch (1044:12): [True: 838, False: 2.76k]
  ------------------
 1045|    838|            if(withCaseBits) {
  ------------------
  |  Branch (1045:16): [True: 390, False: 448]
  ------------------
 1046|    390|                pair &= TWO_CASES_MASK | TWO_TERTIARIES_MASK;
 1047|    448|            } else {
 1048|    448|                pair &= TWO_TERTIARIES_MASK;
 1049|    448|            }
 1050|    838|            pair += TWO_TER_OFFSETS;
 1051|  2.76k|        } else if(ce > variableTop) {
  ------------------
  |  Branch (1051:19): [True: 1.43k, False: 1.33k]
  ------------------
 1052|  1.43k|            pair = (pair & TWO_TERTIARIES_MASK) + TWO_TER_OFFSETS;
 1053|  1.43k|            if(withCaseBits) {
  ------------------
  |  Branch (1053:16): [True: 83, False: 1.35k]
  ------------------
 1054|     83|                pair |= TWO_LOWER_CASES;
 1055|     83|            }
 1056|  1.43k|        } else {
 1057|  1.33k|            U_ASSERT(ce >= MIN_LONG);
  ------------------
  |  |   35|  1.33k|#   define U_ASSERT(exp) (void)0
  ------------------
 1058|  1.33k|            pair = 0;  // variable
 1059|  1.33k|        }
 1060|  3.60k|    }
 1061|  14.5k|    return pair;
 1062|  14.5k|}
_ZN6icu_7818CollationFastLatin15getQuaternariesEjj:
 1065|  11.7k|CollationFastLatin::getQuaternaries(uint32_t variableTop, uint32_t pair) {
 1066|       |    // Return the primary weight of a variable CE,
 1067|       |    // or the maximum primary weight for a non-variable, not-completely-ignorable CE.
 1068|  11.7k|    if(pair <= 0xffff) {
  ------------------
  |  Branch (1068:8): [True: 9.02k, False: 2.75k]
  ------------------
 1069|       |        // one mini CE
 1070|  9.02k|        if(pair >= MIN_SHORT) {
  ------------------
  |  Branch (1070:12): [True: 1.41k, False: 7.61k]
  ------------------
 1071|       |            // A high secondary weight means we really have two CEs,
 1072|       |            // a primary CE and a secondary CE.
 1073|  1.41k|            if((pair & SECONDARY_MASK) >= MIN_SEC_HIGH) {
  ------------------
  |  Branch (1073:16): [True: 406, False: 1.01k]
  ------------------
 1074|    406|                pair = TWO_SHORT_PRIMARIES_MASK;
 1075|  1.01k|            } else {
 1076|  1.01k|                pair = SHORT_PRIMARY_MASK;
 1077|  1.01k|            }
 1078|  7.61k|        } else if(pair > variableTop) {
  ------------------
  |  Branch (1078:19): [True: 1.12k, False: 6.48k]
  ------------------
 1079|  1.12k|            pair = SHORT_PRIMARY_MASK;
 1080|  6.48k|        } else if(pair >= MIN_LONG) {
  ------------------
  |  Branch (1080:19): [True: 939, False: 5.54k]
  ------------------
 1081|    939|            pair &= LONG_PRIMARY_MASK;  // variable
 1082|    939|        }
 1083|       |        // else special mini CE
 1084|  9.02k|    } else {
 1085|       |        // two mini CEs, same primary groups, neither expands like above
 1086|  2.75k|        uint32_t ce = pair & 0xffff;
 1087|  2.75k|        if(ce > variableTop) {
  ------------------
  |  Branch (1087:12): [True: 1.88k, False: 867]
  ------------------
 1088|  1.88k|            pair = TWO_SHORT_PRIMARIES_MASK;
 1089|  1.88k|        } else {
 1090|    867|            U_ASSERT(ce >= MIN_LONG);
  ------------------
  |  |   35|    867|#   define U_ASSERT(exp) (void)0
  ------------------
 1091|    867|            pair &= TWO_LONG_PRIMARIES_MASK;  // variable
 1092|    867|        }
 1093|  2.75k|    }
 1094|  11.7k|    return pair;
 1095|  11.7k|}

_ZN6icu_7818CollationFastLatin12getPrimariesEjj:
  231|  15.2k|    static inline uint32_t getPrimaries(uint32_t variableTop, uint32_t pair) {
  232|  15.2k|        uint32_t ce = pair & 0xffff;
  233|  15.2k|        if(ce >= MIN_SHORT) { return pair & TWO_SHORT_PRIMARIES_MASK; }
  ------------------
  |  Branch (233:12): [True: 2.86k, False: 12.3k]
  ------------------
  234|  12.3k|        if(ce > variableTop) { return pair & TWO_LONG_PRIMARIES_MASK; }
  ------------------
  |  Branch (234:12): [True: 1.80k, False: 10.5k]
  ------------------
  235|  10.5k|        if(ce >= MIN_LONG) { return 0; }  // variable
  ------------------
  |  Branch (235:12): [True: 2.79k, False: 7.77k]
  ------------------
  236|  7.77k|        return pair;  // special mini CE
  237|  10.5k|    }
_ZN6icu_7818CollationFastLatin28getSecondariesFromOneShortCEEj:
  238|  3.27k|    static inline uint32_t getSecondariesFromOneShortCE(uint32_t ce) {
  239|  3.27k|        ce &= SECONDARY_MASK;
  240|  3.27k|        if(ce < MIN_SEC_HIGH) {
  ------------------
  |  Branch (240:12): [True: 1.98k, False: 1.28k]
  ------------------
  241|  1.98k|            return ce + SEC_OFFSET;
  242|  1.98k|        } else {
  243|  1.28k|            return ((ce + SEC_OFFSET) << 16) | COMMON_SEC_PLUS_OFFSET;
  244|  1.28k|        }
  245|  3.27k|    }

_ZN6icu_7812CollationFCD7hasTcccEi:
   71|  72.1k|    static inline UBool hasTccc(UChar32 c) {
   72|       |        // assert c <= 0xffff
   73|       |        // c can be negative, e.g., U_SENTINEL from UCharIterator;
   74|       |        // that is handled in the first test.
   75|  72.1k|        int32_t i;
   76|  72.1k|        return
   77|       |            // U+00C0 is the first character with tccc!=0.
   78|  72.1k|            c >= 0xc0 &&
  ------------------
  |  Branch (78:13): [True: 54.9k, False: 17.2k]
  ------------------
   79|  72.1k|            (i = tcccIndex[c >> 5]) != 0 &&
  ------------------
  |  Branch (79:13): [True: 33.4k, False: 21.5k]
  ------------------
   80|  72.1k|            (tcccBits[i] & (static_cast<uint32_t>(1) << (c & 0x1f))) != 0;
  ------------------
  |  Branch (80:13): [True: 28.8k, False: 4.56k]
  ------------------
   81|  72.1k|    }
_ZN6icu_7812CollationFCD26maybeTibetanCompositeVowelEi:
  106|  48.6k|    static inline UBool maybeTibetanCompositeVowel(UChar32 c) {
  107|  48.6k|        return (c & 0x1fff01) == 0xf01;
  108|  48.6k|    }
_ZN6icu_7812CollationFCD7hasLcccEi:
   59|  43.7k|    static inline UBool hasLccc(UChar32 c) {
   60|       |        // assert c <= 0xffff
   61|       |        // c can be negative, e.g., U_SENTINEL from UCharIterator;
   62|       |        // that is handled in the first test.
   63|  43.7k|        int32_t i;
   64|  43.7k|        return
   65|       |            // U+0300 is the first character with lccc!=0.
   66|  43.7k|            c >= 0x300 &&
  ------------------
  |  Branch (66:13): [True: 40.5k, False: 3.18k]
  ------------------
   67|  43.7k|            (i = lcccIndex[c >> 5]) != 0 &&
  ------------------
  |  Branch (67:13): [True: 37.5k, False: 3.02k]
  ------------------
   68|  43.7k|            (lcccBits[i] & (static_cast<uint32_t>(1) << (c & 0x1f))) != 0;
  ------------------
  |  Branch (68:13): [True: 37.2k, False: 325]
  ------------------
   69|  43.7k|    }
_ZN6icu_7812CollationFCD30isFCD16OfTibetanCompositeVowelEt:
  121|   197k|    static inline UBool isFCD16OfTibetanCompositeVowel(uint16_t fcd16) {
  122|   197k|        return fcd16 == 0x8182 || fcd16 == 0x8184;
  ------------------
  |  Branch (122:16): [True: 11.5k, False: 186k]
  |  Branch (122:35): [True: 2.30k, False: 184k]
  ------------------
  123|   197k|    }
_ZN6icu_7812CollationFCD11mayHaveLcccEi:
   83|   130k|    static inline UBool mayHaveLccc(UChar32 c) {
   84|       |        // Handles all of Unicode 0..10FFFF.
   85|       |        // c can be negative, e.g., U_SENTINEL.
   86|       |        // U+0300 is the first character with lccc!=0.
   87|   130k|        if(c < 0x300) { return false; }
  ------------------
  |  Branch (87:12): [True: 551, False: 130k]
  ------------------
   88|   130k|        if(c > 0xffff) { c = U16_LEAD(c); }
  ------------------
  |  |  123|  2.87k|#define U16_LEAD(supplementary) (UChar)(((supplementary)>>10)+0xd7c0)
  ------------------
  |  Branch (88:12): [True: 2.87k, False: 127k]
  ------------------
   89|   130k|        int32_t i;
   90|   130k|        return
   91|   130k|            (i = lcccIndex[c >> 5]) != 0 &&
  ------------------
  |  Branch (91:13): [True: 128k, False: 1.54k]
  ------------------
   92|   130k|            (lcccBits[i] & (static_cast<uint32_t>(1) << (c & 0x1f))) != 0;
  ------------------
  |  Branch (92:13): [True: 128k, False: 57]
  ------------------
   93|   130k|    }

_ZN6icu_7817CollationIterator8CEBufferD2Ev:
   34|  14.1k|CollationIterator::CEBuffer::~CEBuffer() {}
_ZN6icu_7817CollationIterator8CEBuffer20ensureAppendCapacityEiR10UErrorCode:
   37|   351k|CollationIterator::CEBuffer::ensureAppendCapacity(int32_t appCap, UErrorCode &errorCode) {
   38|   351k|    int32_t capacity = buffer.getCapacity();
   39|   351k|    if((length + appCap) <= capacity) { return true; }
  ------------------
  |  Branch (39:8): [True: 349k, False: 2.50k]
  ------------------
   40|  2.50k|    if(U_FAILURE(errorCode)) { return false; }
  ------------------
  |  Branch (40:8): [True: 0, False: 2.50k]
  ------------------
   41|  2.50k|    do {
   42|  2.50k|        if(capacity < 1000) {
  ------------------
  |  Branch (42:12): [True: 2.27k, False: 229]
  ------------------
   43|  2.27k|            capacity *= 4;
   44|  2.27k|        } else {
   45|    229|            capacity *= 2;
   46|    229|        }
   47|  2.50k|    } while(capacity < (length + appCap));
  ------------------
  |  Branch (47:13): [True: 0, False: 2.50k]
  ------------------
   48|  2.50k|    int64_t *p = buffer.resize(capacity, length);
   49|  2.50k|    if(p == nullptr) {
  ------------------
  |  Branch (49:8): [True: 0, False: 2.50k]
  ------------------
   50|      0|        errorCode = U_MEMORY_ALLOCATION_ERROR;
   51|      0|        return false;
   52|      0|    }
   53|  2.50k|    return true;
   54|  2.50k|}
_ZN6icu_7817CollationIteratorD2Ev:
  167|  14.1k|CollationIterator::~CollationIterator() {
  168|  14.1k|    delete skipped;
  169|  14.1k|}
_ZNK6icu_7817CollationIterator25forbidSurrogateCodePointsEv:
  223|  5.49k|CollationIterator::forbidSurrogateCodePoints() const {
  224|  5.49k|    return false;
  225|  5.49k|}
_ZNK6icu_7817CollationIterator11getDataCE32Ei:
  228|   167k|CollationIterator::getDataCE32(UChar32 c) const {
  229|   167k|    return data->getCE32(c);
  230|   167k|}
_ZN6icu_7817CollationIterator14nextCEFromCE32EPKNS_13CollationDataEijR10UErrorCode:
  240|   132k|                                  UErrorCode &errorCode) {
  241|   132k|    --ceBuffer.length;  // Undo ceBuffer.incLength().
  242|   132k|    appendCEsFromCE32(d, c, ce32, true, errorCode);
  243|   132k|    if(U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (243:8): [True: 132k, False: 0]
  ------------------
  244|   132k|        return ceBuffer.get(cesIndex++);
  245|   132k|    } else {
  246|      0|        return Collation::NO_CE_PRIMARY;
  247|      0|    }
  248|   132k|}
_ZN6icu_7817CollationIterator17appendCEsFromCE32EPKNS_13CollationDataEijaR10UErrorCode:
  252|   302k|                                     UBool forward, UErrorCode &errorCode) {
  253|   468k|    while(Collation::isSpecialCE32(ce32)) {
  ------------------
  |  Branch (253:11): [True: 376k, False: 91.4k]
  ------------------
  254|   376k|        switch(Collation::tagFromCE32(ce32)) {
  ------------------
  |  Branch (254:16): [True: 0, False: 376k]
  ------------------
  255|      0|        case Collation::FALLBACK_TAG:
  ------------------
  |  Branch (255:9): [True: 0, False: 376k]
  ------------------
  256|      0|        case Collation::RESERVED_TAG_3:
  ------------------
  |  Branch (256:9): [True: 0, False: 376k]
  ------------------
  257|      0|            if(U_SUCCESS(errorCode)) { errorCode = U_INTERNAL_PROGRAM_ERROR; }
  ------------------
  |  Branch (257:16): [True: 0, False: 0]
  ------------------
  258|      0|            return;
  259|   122k|        case Collation::LONG_PRIMARY_TAG:
  ------------------
  |  Branch (259:9): [True: 122k, False: 254k]
  ------------------
  260|   122k|            ceBuffer.append(Collation::ceFromLongPrimaryCE32(ce32), errorCode);
  261|   122k|            return;
  262|  4.81k|        case Collation::LONG_SECONDARY_TAG:
  ------------------
  |  Branch (262:9): [True: 4.81k, False: 371k]
  ------------------
  263|  4.81k|            ceBuffer.append(Collation::ceFromLongSecondaryCE32(ce32), errorCode);
  264|  4.81k|            return;
  265|  3.54k|        case Collation::LATIN_EXPANSION_TAG:
  ------------------
  |  Branch (265:9): [True: 3.54k, False: 373k]
  ------------------
  266|  3.54k|            if(ceBuffer.ensureAppendCapacity(2, errorCode)) {
  ------------------
  |  Branch (266:16): [True: 3.54k, False: 0]
  ------------------
  267|  3.54k|                ceBuffer.set(ceBuffer.length, Collation::latinCE0FromCE32(ce32));
  268|  3.54k|                ceBuffer.set(ceBuffer.length + 1, Collation::latinCE1FromCE32(ce32));
  269|  3.54k|                ceBuffer.length += 2;
  270|  3.54k|            }
  271|  3.54k|            return;
  272|  51.8k|        case Collation::EXPANSION32_TAG: {
  ------------------
  |  Branch (272:9): [True: 51.8k, False: 324k]
  ------------------
  273|  51.8k|            const uint32_t *ce32s = d->ce32s + Collation::indexFromCE32(ce32);
  274|  51.8k|            int32_t length = Collation::lengthFromCE32(ce32);
  275|  51.8k|            if(ceBuffer.ensureAppendCapacity(length, errorCode)) {
  ------------------
  |  Branch (275:16): [True: 51.8k, False: 0]
  ------------------
  276|   945k|                do {
  277|   945k|                    ceBuffer.appendUnsafe(Collation::ceFromCE32(*ce32s++));
  278|   945k|                } while(--length > 0);
  ------------------
  |  Branch (278:25): [True: 893k, False: 51.8k]
  ------------------
  279|  51.8k|            }
  280|  51.8k|            return;
  281|      0|        }
  282|  7.22k|        case Collation::EXPANSION_TAG: {
  ------------------
  |  Branch (282:9): [True: 7.22k, False: 369k]
  ------------------
  283|  7.22k|            const int64_t *ces = d->ces + Collation::indexFromCE32(ce32);
  284|  7.22k|            int32_t length = Collation::lengthFromCE32(ce32);
  285|  7.22k|            if(ceBuffer.ensureAppendCapacity(length, errorCode)) {
  ------------------
  |  Branch (285:16): [True: 7.22k, False: 0]
  ------------------
  286|  19.6k|                do {
  287|  19.6k|                    ceBuffer.appendUnsafe(*ces++);
  288|  19.6k|                } while(--length > 0);
  ------------------
  |  Branch (288:25): [True: 12.4k, False: 7.22k]
  ------------------
  289|  7.22k|            }
  290|  7.22k|            return;
  291|      0|        }
  292|      0|        case Collation::BUILDER_DATA_TAG:
  ------------------
  |  Branch (292:9): [True: 0, False: 376k]
  ------------------
  293|      0|            ce32 = getCE32FromBuilderData(ce32, errorCode);
  294|      0|            if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (294:16): [True: 0, False: 0]
  ------------------
  295|      0|            if(ce32 == Collation::FALLBACK_CE32) {
  ------------------
  |  Branch (295:16): [True: 0, False: 0]
  ------------------
  296|      0|                d = data->base;
  297|      0|                ce32 = d->getCE32(c);
  298|      0|            }
  299|      0|            break;
  300|  2.62k|        case Collation::PREFIX_TAG:
  ------------------
  |  Branch (300:9): [True: 2.62k, False: 374k]
  ------------------
  301|  2.62k|            if(forward) { backwardNumCodePoints(1, errorCode); }
  ------------------
  |  Branch (301:16): [True: 2.62k, False: 0]
  ------------------
  302|  2.62k|            ce32 = getCE32FromPrefix(d, ce32, errorCode);
  303|  2.62k|            if(forward) { forwardNumCodePoints(1, errorCode); }
  ------------------
  |  Branch (303:16): [True: 2.62k, False: 0]
  ------------------
  304|  2.62k|            break;
  305|   136k|        case Collation::CONTRACTION_TAG: {
  ------------------
  |  Branch (305:9): [True: 136k, False: 239k]
  ------------------
  306|   136k|            const char16_t *p = d->contexts + Collation::indexFromCE32(ce32);
  307|   136k|            uint32_t defaultCE32 = CollationData::readCE32(p);  // Default if no suffix match.
  308|   136k|            if(!forward) {
  ------------------
  |  Branch (308:16): [True: 0, False: 136k]
  ------------------
  309|       |                // Backward contractions are handled by previousCEUnsafe().
  310|       |                // c has contractions but they were not found.
  311|      0|                ce32 = defaultCE32;
  312|      0|                break;
  313|      0|            }
  314|   136k|            UChar32 nextCp;
  315|   136k|            if(skipped == nullptr && numCpFwd < 0) {
  ------------------
  |  Branch (315:16): [True: 9.74k, False: 126k]
  |  Branch (315:38): [True: 9.74k, False: 0]
  ------------------
  316|       |                // Some portion of nextCE32FromContraction() pulled out here as an ASCII fast path,
  317|       |                // avoiding the function call and the nextSkippedCodePoint() overhead.
  318|  9.74k|                nextCp = nextCodePoint(errorCode);
  319|  9.74k|                if(nextCp < 0) {
  ------------------
  |  Branch (319:20): [True: 183, False: 9.56k]
  ------------------
  320|       |                    // No more text.
  321|    183|                    ce32 = defaultCE32;
  322|    183|                    break;
  323|  9.56k|                } else if((ce32 & Collation::CONTRACT_NEXT_CCC) != 0 &&
  ------------------
  |  Branch (323:27): [True: 5.84k, False: 3.72k]
  ------------------
  324|  9.56k|                        !CollationFCD::mayHaveLccc(nextCp)) {
  ------------------
  |  Branch (324:25): [True: 1.07k, False: 4.76k]
  ------------------
  325|       |                    // All contraction suffixes start with characters with lccc!=0
  326|       |                    // but the next code point has lccc==0.
  327|  1.07k|                    backwardNumCodePoints(1, errorCode);
  328|  1.07k|                    ce32 = defaultCE32;
  329|  1.07k|                    break;
  330|  1.07k|                }
  331|   126k|            } else {
  332|   126k|                nextCp = nextSkippedCodePoint(errorCode);
  333|   126k|                if(nextCp < 0) {
  ------------------
  |  Branch (333:20): [True: 142, False: 126k]
  ------------------
  334|       |                    // No more text.
  335|    142|                    ce32 = defaultCE32;
  336|    142|                    break;
  337|   126k|                } else if((ce32 & Collation::CONTRACT_NEXT_CCC) != 0 &&
  ------------------
  |  Branch (337:27): [True: 124k, False: 1.83k]
  ------------------
  338|   126k|                        !CollationFCD::mayHaveLccc(nextCp)) {
  ------------------
  |  Branch (338:25): [True: 1.07k, False: 123k]
  ------------------
  339|       |                    // All contraction suffixes start with characters with lccc!=0
  340|       |                    // but the next code point has lccc==0.
  341|  1.07k|                    backwardNumSkipped(1, errorCode);
  342|  1.07k|                    ce32 = defaultCE32;
  343|  1.07k|                    break;
  344|  1.07k|                }
  345|   126k|            }
  346|   134k|            ce32 = nextCE32FromContraction(d, ce32, p + 2, defaultCE32, nextCp, errorCode);
  347|   134k|            if(ce32 == Collation::NO_CE32) {
  ------------------
  |  Branch (347:16): [True: 3.48k, False: 130k]
  ------------------
  348|       |                // CEs from a discontiguous contraction plus the skipped combining marks
  349|       |                // have been appended already.
  350|  3.48k|                return;
  351|  3.48k|            }
  352|   130k|            break;
  353|   134k|        }
  354|   130k|        case Collation::DIGIT_TAG:
  ------------------
  |  Branch (354:9): [True: 236, False: 376k]
  ------------------
  355|    236|            if(isNumeric) {
  ------------------
  |  Branch (355:16): [True: 0, False: 236]
  ------------------
  356|      0|                appendNumericCEs(ce32, forward, errorCode);
  357|      0|                return;
  358|    236|            } else {
  359|       |                // Fetch the non-numeric-collation CE32 and continue.
  360|    236|                ce32 = d->ce32s[Collation::indexFromCE32(ce32)];
  361|    236|                break;
  362|    236|            }
  363|  19.1k|        case Collation::U0000_TAG:
  ------------------
  |  Branch (363:9): [True: 19.1k, False: 357k]
  ------------------
  364|  19.1k|            U_ASSERT(c == 0);
  ------------------
  |  |   35|  19.1k|#   define U_ASSERT(exp) (void)0
  ------------------
  365|  19.1k|            if(forward && foundNULTerminator()) {
  ------------------
  |  Branch (365:16): [True: 19.1k, False: 0]
  |  Branch (365:27): [True: 0, False: 19.1k]
  ------------------
  366|       |                // Handle NUL-termination. (Not needed in Java.)
  367|      0|                ceBuffer.append(Collation::NO_CE, errorCode);
  368|      0|                return;
  369|  19.1k|            } else {
  370|       |                // Fetch the normal ce32 for U+0000 and continue.
  371|  19.1k|                ce32 = d->ce32s[0];
  372|  19.1k|                break;
  373|  19.1k|            }
  374|  4.35k|        case Collation::HANGUL_TAG: {
  ------------------
  |  Branch (374:9): [True: 4.35k, False: 372k]
  ------------------
  375|  4.35k|            const uint32_t *jamoCE32s = d->jamoCE32s;
  376|  4.35k|            c -= Hangul::HANGUL_BASE;
  377|  4.35k|            UChar32 t = c % Hangul::JAMO_T_COUNT;
  378|  4.35k|            c /= Hangul::JAMO_T_COUNT;
  379|  4.35k|            UChar32 v = c % Hangul::JAMO_V_COUNT;
  380|  4.35k|            c /= Hangul::JAMO_V_COUNT;
  381|  4.35k|            if((ce32 & Collation::HANGUL_NO_SPECIAL_JAMO) != 0) {
  ------------------
  |  Branch (381:16): [True: 4.35k, False: 0]
  ------------------
  382|       |                // None of the Jamo CE32s are isSpecialCE32().
  383|       |                // Avoid recursive function calls and per-Jamo tests.
  384|  4.35k|                if(ceBuffer.ensureAppendCapacity(t == 0 ? 2 : 3, errorCode)) {
  ------------------
  |  Branch (384:20): [True: 4.35k, False: 0]
  |  Branch (384:50): [True: 342, False: 4.01k]
  ------------------
  385|  4.35k|                    ceBuffer.set(ceBuffer.length, Collation::ceFromCE32(jamoCE32s[c]));
  386|  4.35k|                    ceBuffer.set(ceBuffer.length + 1, Collation::ceFromCE32(jamoCE32s[19 + v]));
  387|  4.35k|                    ceBuffer.length += 2;
  388|  4.35k|                    if(t != 0) {
  ------------------
  |  Branch (388:24): [True: 4.01k, False: 342]
  ------------------
  389|  4.01k|                        ceBuffer.appendUnsafe(Collation::ceFromCE32(jamoCE32s[39 + t]));
  390|  4.01k|                    }
  391|  4.35k|                }
  392|  4.35k|                return;
  393|  4.35k|            } else {
  394|       |                // We should not need to compute each Jamo code point.
  395|       |                // In particular, there should be no offset or implicit ce32.
  396|      0|                appendCEsFromCE32(d, U_SENTINEL, jamoCE32s[c], forward, errorCode);
  ------------------
  |  |  469|      0|#define U_SENTINEL (-1)
  ------------------
  397|      0|                appendCEsFromCE32(d, U_SENTINEL, jamoCE32s[19 + v], forward, errorCode);
  ------------------
  |  |  469|      0|#define U_SENTINEL (-1)
  ------------------
  398|      0|                if(t == 0) { return; }
  ------------------
  |  Branch (398:20): [True: 0, False: 0]
  ------------------
  399|       |                // offset 39 = 19 + 21 - 1:
  400|       |                // 19 = JAMO_L_COUNT
  401|       |                // 21 = JAMO_T_COUNT
  402|       |                // -1 = omit t==0
  403|      0|                ce32 = jamoCE32s[39 + t];
  404|      0|                c = U_SENTINEL;
  ------------------
  |  |  469|      0|#define U_SENTINEL (-1)
  ------------------
  405|      0|                break;
  406|      0|            }
  407|  4.35k|        }
  408|  9.96k|        case Collation::LEAD_SURROGATE_TAG: {
  ------------------
  |  Branch (408:9): [True: 9.96k, False: 366k]
  ------------------
  409|  9.96k|            U_ASSERT(forward);  // Backward iteration should never see lead surrogate code _unit_ data.
  ------------------
  |  |   35|  9.96k|#   define U_ASSERT(exp) (void)0
  ------------------
  410|  9.96k|            U_ASSERT(U16_IS_LEAD(c));
  ------------------
  |  |   35|  9.96k|#   define U_ASSERT(exp) (void)0
  ------------------
  411|  9.96k|            char16_t trail;
  412|  9.96k|            if(U16_IS_TRAIL(trail = handleGetTrailSurrogate())) {
  ------------------
  |  |   67|  9.96k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 7.87k, False: 2.08k]
  |  |  ------------------
  ------------------
  413|  7.87k|                c = U16_GET_SUPPLEMENTARY(c, trail);
  ------------------
  |  |  113|  7.87k|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  ------------------
  |  |  |  |   99|  7.87k|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  ------------------
  ------------------
  414|  7.87k|                ce32 &= Collation::LEAD_TYPE_MASK;
  415|  7.87k|                if(ce32 == Collation::LEAD_ALL_UNASSIGNED) {
  ------------------
  |  Branch (415:20): [True: 283, False: 7.59k]
  ------------------
  416|    283|                    ce32 = Collation::UNASSIGNED_CE32;  // unassigned-implicit
  417|  7.59k|                } else if(ce32 == Collation::LEAD_ALL_FALLBACK ||
  ------------------
  |  Branch (417:27): [True: 6.45k, False: 1.14k]
  ------------------
  418|  7.59k|                        (ce32 = d->getCE32FromSupplementary(c)) == Collation::FALLBACK_CE32) {
  ------------------
  |  Branch (418:25): [True: 67, False: 1.07k]
  ------------------
  419|       |                    // fall back to the base data
  420|  6.51k|                    d = d->base;
  421|  6.51k|                    ce32 = d->getCE32FromSupplementary(c);
  422|  6.51k|                }
  423|  7.87k|            } else {
  424|       |                // c is an unpaired surrogate.
  425|  2.08k|                ce32 = Collation::UNASSIGNED_CE32;
  426|  2.08k|            }
  427|  9.96k|            break;
  428|  4.35k|        }
  429|  6.02k|        case Collation::OFFSET_TAG:
  ------------------
  |  Branch (429:9): [True: 6.02k, False: 370k]
  ------------------
  430|  6.02k|            U_ASSERT(c >= 0);
  ------------------
  |  |   35|  6.02k|#   define U_ASSERT(exp) (void)0
  ------------------
  431|  6.02k|            ceBuffer.append(d->getCEFromOffsetCE32(c, ce32), errorCode);
  432|  6.02k|            return;
  433|  7.97k|        case Collation::IMPLICIT_TAG:
  ------------------
  |  Branch (433:9): [True: 7.97k, False: 368k]
  ------------------
  434|  7.97k|            U_ASSERT(c >= 0);
  ------------------
  |  |   35|  7.97k|#   define U_ASSERT(exp) (void)0
  ------------------
  435|  7.97k|            if(U_IS_SURROGATE(c) && forbidSurrogateCodePoints()) {
  ------------------
  |  |  193|  15.9k|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  ------------------
  |  |  |  Branch (193:27): [True: 5.49k, False: 2.48k]
  |  |  ------------------
  ------------------
  |  Branch (435:37): [True: 0, False: 5.49k]
  ------------------
  436|      0|                ce32 = Collation::FFFD_CE32;
  437|      0|                break;
  438|  7.97k|            } else {
  439|  7.97k|                ceBuffer.append(Collation::unassignedCEFromCodePoint(c), errorCode);
  440|  7.97k|                return;
  441|  7.97k|            }
  442|   376k|        }
  443|   376k|    }
  444|  91.4k|    ceBuffer.append(Collation::ceFromSimpleCE32(ce32), errorCode);
  445|  91.4k|}
_ZN6icu_7817CollationIterator17getCE32FromPrefixEPKNS_13CollationDataEjR10UErrorCode:
  449|  2.62k|                                     UErrorCode &errorCode) {
  450|  2.62k|    const char16_t *p = d->contexts + Collation::indexFromCE32(ce32);
  451|  2.62k|    ce32 = CollationData::readCE32(p);  // Default if no prefix match.
  452|  2.62k|    p += 2;
  453|       |    // Number of code points read before the original code point.
  454|  2.62k|    int32_t lookBehind = 0;
  455|  2.62k|    UCharsTrie prefixes(p);
  456|  2.62k|    for(;;) {
  457|  2.62k|        UChar32 c = previousCodePoint(errorCode);
  458|  2.62k|        if(c < 0) { break; }
  ------------------
  |  Branch (458:12): [True: 85, False: 2.54k]
  ------------------
  459|  2.54k|        ++lookBehind;
  460|  2.54k|        UStringTrieResult match = prefixes.nextForCodePoint(c);
  461|  2.54k|        if(USTRINGTRIE_HAS_VALUE(match)) {
  ------------------
  |  |   86|  2.54k|#define USTRINGTRIE_HAS_VALUE(result) ((result)>=USTRINGTRIE_FINAL_VALUE)
  |  |  ------------------
  |  |  |  Branch (86:39): [True: 194, False: 2.34k]
  |  |  ------------------
  ------------------
  462|    194|            ce32 = static_cast<uint32_t>(prefixes.getValue());
  463|    194|        }
  464|  2.54k|        if(!USTRINGTRIE_HAS_NEXT(match)) { break; }
  ------------------
  |  |   95|  2.54k|#define USTRINGTRIE_HAS_NEXT(result) ((result)&1)
  ------------------
  |  Branch (464:12): [True: 2.54k, False: 0]
  ------------------
  465|  2.54k|    }
  466|  2.62k|    forwardNumCodePoints(lookBehind, errorCode);
  467|  2.62k|    return ce32;
  468|  2.62k|}
_ZN6icu_7817CollationIterator20nextSkippedCodePointER10UErrorCode:
  471|  48.1M|CollationIterator::nextSkippedCodePoint(UErrorCode &errorCode) {
  472|  48.1M|    if(skipped != nullptr && skipped->hasNext()) { return skipped->next(); }
  ------------------
  |  Branch (472:8): [True: 48.1M, False: 7.09k]
  |  Branch (472:30): [True: 45.7M, False: 2.37M]
  ------------------
  473|  2.38M|    if(numCpFwd == 0) { return U_SENTINEL; }
  ------------------
  |  |  469|      0|#define U_SENTINEL (-1)
  ------------------
  |  Branch (473:8): [True: 0, False: 2.38M]
  ------------------
  474|  2.38M|    UChar32 c = nextCodePoint(errorCode);
  475|  2.38M|    if(skipped != nullptr && !skipped->isEmpty() && c >= 0) { skipped->incBeyond(); }
  ------------------
  |  Branch (475:8): [True: 2.37M, False: 7.09k]
  |  Branch (475:30): [True: 877k, False: 1.49M]
  |  Branch (475:53): [True: 832k, False: 45.5k]
  ------------------
  476|  2.38M|    if(numCpFwd > 0 && c >= 0) { --numCpFwd; }
  ------------------
  |  Branch (476:8): [True: 0, False: 2.38M]
  |  Branch (476:24): [True: 0, False: 0]
  ------------------
  477|  2.38M|    return c;
  478|  2.38M|}
_ZN6icu_7817CollationIterator18backwardNumSkippedEiR10UErrorCode:
  481|   133k|CollationIterator::backwardNumSkipped(int32_t n, UErrorCode &errorCode) {
  482|   133k|    if(skipped != nullptr && !skipped->isEmpty()) {
  ------------------
  |  Branch (482:8): [True: 127k, False: 5.72k]
  |  Branch (482:30): [True: 110k, False: 17.1k]
  ------------------
  483|   110k|        n = skipped->backwardNumCodePoints(n);
  484|   110k|    }
  485|   133k|    backwardNumCodePoints(n, errorCode);
  486|   133k|    if(numCpFwd >= 0) { numCpFwd += n; }
  ------------------
  |  Branch (486:8): [True: 0, False: 133k]
  ------------------
  487|   133k|}
_ZN6icu_7817CollationIterator23nextCE32FromContractionEPKNS_13CollationDataEjPKDsjiR10UErrorCode:
  492|   134k|                                           UErrorCode &errorCode) {
  493|       |    // c: next code point after the original one
  494|       |
  495|       |    // Number of code points read beyond the original code point.
  496|       |    // Needed for discontiguous contraction matching.
  497|   134k|    int32_t lookAhead = 1;
  498|       |    // Number of code points read since the last match (initially only c).
  499|   134k|    int32_t sinceMatch = 1;
  500|       |    // Normally we only need a contiguous match,
  501|       |    // and therefore need not remember the suffixes state from before a mismatch for retrying.
  502|       |    // If we are already processing skipped combining marks, then we do track the state.
  503|   134k|    UCharsTrie suffixes(p);
  504|   134k|    if(skipped != nullptr && !skipped->isEmpty()) { skipped->saveTrieState(suffixes); }
  ------------------
  |  Branch (504:8): [True: 125k, False: 8.48k]
  |  Branch (504:30): [True: 111k, False: 14.5k]
  ------------------
  505|   134k|    UStringTrieResult match = suffixes.firstForCodePoint(c);
  506|   137k|    for(;;) {
  507|   137k|        UChar32 nextCp;
  508|   137k|        if(USTRINGTRIE_HAS_VALUE(match)) {
  ------------------
  |  |   86|   137k|#define USTRINGTRIE_HAS_VALUE(result) ((result)>=USTRINGTRIE_FINAL_VALUE)
  |  |  ------------------
  |  |  |  Branch (86:39): [True: 4.32k, False: 133k]
  |  |  ------------------
  ------------------
  509|  4.32k|            ce32 = static_cast<uint32_t>(suffixes.getValue());
  510|  4.32k|            if(!USTRINGTRIE_HAS_NEXT(match) || (c = nextSkippedCodePoint(errorCode)) < 0) {
  ------------------
  |  |   95|  8.65k|#define USTRINGTRIE_HAS_NEXT(result) ((result)&1)
  ------------------
  |  Branch (510:16): [True: 3.21k, False: 1.11k]
  |  Branch (510:48): [True: 19, False: 1.09k]
  ------------------
  511|  3.22k|                return ce32;
  512|  3.22k|            }
  513|  1.09k|            if(skipped != nullptr && !skipped->isEmpty()) { skipped->saveTrieState(suffixes); }
  ------------------
  |  Branch (513:16): [True: 631, False: 468]
  |  Branch (513:38): [True: 0, False: 631]
  ------------------
  514|  1.09k|            sinceMatch = 1;
  515|   133k|        } else if(match == USTRINGTRIE_NO_MATCH || (nextCp = nextSkippedCodePoint(errorCode)) < 0) {
  ------------------
  |  Branch (515:19): [True: 130k, False: 2.49k]
  |  Branch (515:52): [True: 76, False: 2.41k]
  ------------------
  516|       |            // No match for c, or partial match (USTRINGTRIE_NO_VALUE) and no further text.
  517|       |            // Back up if necessary, and try a discontiguous contraction.
  518|   130k|            if((contractionCE32 & Collation::CONTRACT_TRAILING_CCC) != 0 &&
  ------------------
  |  Branch (518:16): [True: 128k, False: 2.41k]
  ------------------
  519|       |                    // Discontiguous contraction matching extends an existing match.
  520|       |                    // If there is no match yet, then there is nothing to do.
  521|   130k|                    ((contractionCE32 & Collation::CONTRACT_SINGLE_CP_NO_MATCH) == 0 ||
  ------------------
  |  Branch (521:22): [True: 128k, False: 0]
  ------------------
  522|   128k|                        sinceMatch < lookAhead)) {
  ------------------
  |  Branch (522:25): [True: 0, False: 0]
  ------------------
  523|       |                // The last character of at least one suffix has lccc!=0,
  524|       |                // allowing for discontiguous contractions.
  525|       |                // UCA S2.1.1 only processes non-starters immediately following
  526|       |                // "a match in the table" (sinceMatch=1).
  527|   128k|                if(sinceMatch > 1) {
  ------------------
  |  Branch (527:20): [True: 1.32k, False: 127k]
  ------------------
  528|       |                    // Return to the state after the last match.
  529|       |                    // (Return to sinceMatch=0 and re-fetch the first partially-matched character.)
  530|  1.32k|                    backwardNumSkipped(sinceMatch, errorCode);
  531|  1.32k|                    c = nextSkippedCodePoint(errorCode);
  532|  1.32k|                    lookAhead -= sinceMatch - 1;
  533|  1.32k|                    sinceMatch = 1;
  534|  1.32k|                }
  535|   128k|                if(d->getFCD16(c) > 0xff) {
  ------------------
  |  Branch (535:20): [True: 126k, False: 2.15k]
  ------------------
  536|   126k|                    return nextCE32FromDiscontiguousContraction(
  537|   126k|                        d, suffixes, ce32, lookAhead, c, errorCode);
  538|   126k|                }
  539|   128k|            }
  540|  4.56k|            break;
  541|   130k|        } else {
  542|       |            // Continue after partial match (USTRINGTRIE_NO_VALUE) for c.
  543|       |            // It does not have a result value, therefore it is not itself "a match in the table".
  544|       |            // If a partially-matched c has ccc!=0 then
  545|       |            // it might be skipped in discontiguous contraction.
  546|  2.41k|            c = nextCp;
  547|  2.41k|            ++sinceMatch;
  548|  2.41k|        }
  549|  3.51k|        ++lookAhead;
  550|  3.51k|        match = suffixes.nextForCodePoint(c);
  551|  3.51k|    }
  552|  4.56k|    backwardNumSkipped(sinceMatch, errorCode);
  553|  4.56k|    return ce32;
  554|   134k|}
_ZN6icu_7817CollationIterator36nextCE32FromDiscontiguousContractionEPKNS_13CollationDataERNS_10UCharsTrieEjiiR10UErrorCode:
  560|   126k|        UErrorCode &errorCode) {
  561|   126k|    if(U_FAILURE(errorCode)) { return 0; }
  ------------------
  |  Branch (561:8): [True: 0, False: 126k]
  ------------------
  562|       |
  563|       |    // UCA section 3.3.2 Contractions:
  564|       |    // Contractions that end with non-starter characters
  565|       |    // are known as discontiguous contractions.
  566|       |    // ... discontiguous contractions must be detected in input text
  567|       |    // whenever the final sequence of non-starter characters could be rearranged
  568|       |    // so as to make a contiguous matching sequence that is canonically equivalent.
  569|       |
  570|       |    // UCA: http://www.unicode.org/reports/tr10/#S2.1
  571|       |    // S2.1 Find the longest initial substring S at each point that has a match in the table.
  572|       |    // S2.1.1 If there are any non-starters following S, process each non-starter C.
  573|       |    // S2.1.2 If C is not blocked from S, find if S + C has a match in the table.
  574|       |    //     Note: A non-starter in a string is called blocked
  575|       |    //     if there is another non-starter of the same canonical combining class or zero
  576|       |    //     between it and the last character of canonical combining class 0.
  577|       |    // S2.1.3 If there is a match, replace S by S + C, and remove C.
  578|       |
  579|       |    // First: Is a discontiguous contraction even possible?
  580|   126k|    uint16_t fcd16 = d->getFCD16(c);
  581|   126k|    U_ASSERT(fcd16 > 0xff);  // The caller checked this already, as a shortcut.
  ------------------
  |  |   35|   126k|#   define U_ASSERT(exp) (void)0
  ------------------
  582|   126k|    UChar32 nextCp = nextSkippedCodePoint(errorCode);
  583|   126k|    if(nextCp < 0) {
  ------------------
  |  Branch (583:8): [True: 355, False: 126k]
  ------------------
  584|       |        // No further text.
  585|    355|        backwardNumSkipped(1, errorCode);
  586|    355|        return ce32;
  587|    355|    }
  588|   126k|    ++lookAhead;
  589|   126k|    uint8_t prevCC = static_cast<uint8_t>(fcd16);
  590|   126k|    fcd16 = d->getFCD16(nextCp);
  591|   126k|    if(fcd16 <= 0xff) {
  ------------------
  |  Branch (591:8): [True: 2.68k, False: 123k]
  ------------------
  592|       |        // The next code point after c is a starter (S2.1.1 "process each non-starter").
  593|  2.68k|        backwardNumSkipped(2, errorCode);
  594|  2.68k|        return ce32;
  595|  2.68k|    }
  596|       |
  597|       |    // We have read and matched (lookAhead-2) code points,
  598|       |    // read non-matching c and peeked ahead at nextCp.
  599|       |    // Return to the state before the mismatch and continue matching with nextCp.
  600|   123k|    if(skipped == nullptr || skipped->isEmpty()) {
  ------------------
  |  Branch (600:8): [True: 2.25k, False: 121k]
  |  Branch (600:30): [True: 11.9k, False: 109k]
  ------------------
  601|  14.1k|        if(skipped == nullptr) {
  ------------------
  |  Branch (601:12): [True: 2.25k, False: 11.9k]
  ------------------
  602|  2.25k|            skipped = new SkippedState();
  603|  2.25k|            if(skipped == nullptr) {
  ------------------
  |  Branch (603:16): [True: 0, False: 2.25k]
  ------------------
  604|      0|                errorCode = U_MEMORY_ALLOCATION_ERROR;
  605|      0|                return 0;
  606|      0|            }
  607|  2.25k|        }
  608|  14.1k|        suffixes.reset();
  609|  14.1k|        if(lookAhead > 2) {
  ------------------
  |  Branch (609:12): [True: 687, False: 13.5k]
  ------------------
  610|       |            // Replay the partial match so far.
  611|    687|            backwardNumCodePoints(lookAhead, errorCode);
  612|    687|            suffixes.firstForCodePoint(nextCodePoint(errorCode));
  613|    687|            for(int32_t i = 3; i < lookAhead; ++i) {
  ------------------
  |  Branch (613:32): [True: 0, False: 687]
  ------------------
  614|      0|                suffixes.nextForCodePoint(nextCodePoint(errorCode));
  615|      0|            }
  616|       |            // Skip c (which did not match) and nextCp (which we will try now).
  617|    687|            forwardNumCodePoints(2, errorCode);
  618|    687|        }
  619|  14.1k|        skipped->saveTrieState(suffixes);
  620|   109k|    } else {
  621|       |        // Reset to the trie state before the failed match of c.
  622|   109k|        skipped->resetToTrieState(suffixes);
  623|   109k|    }
  624|       |
  625|   123k|    skipped->setFirstSkipped(c);
  626|       |    // Number of code points read since the last match (at this point: c and nextCp).
  627|   123k|    int32_t sinceMatch = 2;
  628|   123k|    c = nextCp;
  629|  47.9M|    for(;;) {
  630|  47.9M|        UStringTrieResult match;
  631|       |        // "If C is not blocked from S, find if S + C has a match in the table." (S2.1.2)
  632|  47.9M|        if(prevCC < (fcd16 >> 8) && USTRINGTRIE_HAS_VALUE(match = suffixes.nextForCodePoint(c))) {
  ------------------
  |  |   86|   200k|#define USTRINGTRIE_HAS_VALUE(result) ((result)>=USTRINGTRIE_FINAL_VALUE)
  |  |  ------------------
  |  |  |  Branch (86:39): [True: 52.8k, False: 147k]
  |  |  ------------------
  ------------------
  |  Branch (632:12): [True: 200k, False: 47.7M]
  ------------------
  633|       |            // "If there is a match, replace S by S + C, and remove C." (S2.1.3)
  634|       |            // Keep prevCC unchanged.
  635|  52.8k|            ce32 = static_cast<uint32_t>(suffixes.getValue());
  636|  52.8k|            sinceMatch = 0;
  637|  52.8k|            skipped->recordMatch();
  638|  52.8k|            if(!USTRINGTRIE_HAS_NEXT(match)) { break; }
  ------------------
  |  |   95|  52.8k|#define USTRINGTRIE_HAS_NEXT(result) ((result)&1)
  ------------------
  |  Branch (638:16): [True: 52.7k, False: 170]
  ------------------
  639|    170|            skipped->saveTrieState(suffixes);
  640|  47.8M|        } else {
  641|       |            // No match for "S + C", skip C.
  642|  47.8M|            skipped->skip(c);
  643|  47.8M|            skipped->resetToTrieState(suffixes);
  644|  47.8M|            prevCC = static_cast<uint8_t>(fcd16);
  645|  47.8M|        }
  646|  47.8M|        if((c = nextSkippedCodePoint(errorCode)) < 0) { break; }
  ------------------
  |  Branch (646:12): [True: 49.7k, False: 47.8M]
  ------------------
  647|  47.8M|        ++sinceMatch;
  648|  47.8M|        fcd16 = d->getFCD16(c);
  649|  47.8M|        if(fcd16 <= 0xff) {
  ------------------
  |  Branch (649:12): [True: 20.9k, False: 47.7M]
  ------------------
  650|       |            // The next code point after c is a starter (S2.1.1 "process each non-starter").
  651|  20.9k|            break;
  652|  20.9k|        }
  653|  47.8M|    }
  654|   123k|    backwardNumSkipped(sinceMatch, errorCode);
  655|   123k|    UBool isTopDiscontiguous = skipped->isEmpty();
  656|   123k|    skipped->replaceMatch();
  657|   123k|    if(isTopDiscontiguous && !skipped->isEmpty()) {
  ------------------
  |  Branch (657:8): [True: 14.1k, False: 109k]
  |  Branch (657:30): [True: 3.48k, False: 10.7k]
  ------------------
  658|       |        // We did get a match after skipping one or more combining marks,
  659|       |        // and we are not in a recursive discontiguous contraction.
  660|       |        // Append CEs from the contraction ce32
  661|       |        // and then from the combining marks that we skipped before the match.
  662|  3.48k|        c = U_SENTINEL;
  ------------------
  |  |  469|  3.48k|#define U_SENTINEL (-1)
  ------------------
  663|   170k|        for(;;) {
  664|   170k|            appendCEsFromCE32(d, c, ce32, true, errorCode);
  665|       |            // Fetch CE32s for skipped combining marks from the normal data, with fallback,
  666|       |            // rather than from the CollationData where we found the contraction.
  667|   170k|            if(!skipped->hasNext()) { break; }
  ------------------
  |  Branch (667:16): [True: 3.48k, False: 167k]
  ------------------
  668|   167k|            c = skipped->next();
  669|   167k|            ce32 = getDataCE32(c);
  670|   167k|            if(ce32 == Collation::FALLBACK_CE32) {
  ------------------
  |  Branch (670:16): [True: 48.3k, False: 118k]
  ------------------
  671|  48.3k|                d = data->base;
  672|  48.3k|                ce32 = d->getCE32(c);
  673|   118k|            } else {
  674|   118k|                d = data;
  675|   118k|            }
  676|       |            // Note: A nested discontiguous-contraction match
  677|       |            // replaces consumed combining marks with newly skipped ones
  678|       |            // and resets the reading position to the beginning.
  679|   167k|        }
  680|  3.48k|        skipped->clear();
  681|  3.48k|        ce32 = Collation::NO_CE32;  // Signal to the caller that the result is in the ceBuffer.
  682|  3.48k|    }
  683|   123k|    return ce32;
  684|   123k|}
_ZN6icu_7812SkippedState5clearEv:
   62|  3.48k|    void clear() {
   63|  3.48k|        oldBuffer.remove();
   64|  3.48k|        pos = 0;
   65|       |        // The newBuffer is reset by setFirstSkipped().
   66|  3.48k|    }
_ZNK6icu_7812SkippedState7hasNextEv:
   70|  48.2M|    UBool hasNext() const { return pos < oldBuffer.length(); }
_ZN6icu_7812SkippedState4nextEv:
   73|  45.9M|    UChar32 next() {
   74|  45.9M|        UChar32 c = oldBuffer.char32At(pos);
   75|  45.9M|        pos += U16_LENGTH(c);
  ------------------
  |  |  141|  45.9M|#define U16_LENGTH(c) ((uint32_t)(c)<=0xffff ? 1 : 2)
  |  |  ------------------
  |  |  |  Branch (141:24): [True: 45.8M, False: 74.4k]
  |  |  ------------------
  ------------------
   76|  45.9M|        return c;
   77|  45.9M|    }
_ZNK6icu_7812SkippedState7isEmptyEv:
   68|  2.88M|    UBool isEmpty() const { return oldBuffer.isEmpty(); }
_ZN6icu_7812SkippedState9incBeyondEv:
   80|   832k|    void incBeyond() {
   81|   832k|        U_ASSERT(!hasNext());
  ------------------
  |  |   35|   832k|#   define U_ASSERT(exp) (void)0
  ------------------
   82|   832k|        ++pos;
   83|   832k|    }
_ZN6icu_7812SkippedState21backwardNumCodePointsEi:
   88|   110k|    int32_t backwardNumCodePoints(int32_t n) {
   89|   110k|        int32_t length = oldBuffer.length();
   90|   110k|        int32_t beyond = pos - length;
   91|   110k|        if(beyond > 0) {
  ------------------
  |  Branch (91:12): [True: 57.0k, False: 53.4k]
  ------------------
   92|  57.0k|            if(beyond >= n) {
  ------------------
  |  Branch (92:16): [True: 34.9k, False: 22.0k]
  ------------------
   93|       |                // Not back far enough to re-enter the oldBuffer.
   94|  34.9k|                pos -= n;
   95|  34.9k|                return n;
   96|  34.9k|            } else {
   97|       |                // Back out all beyond-oldBuffer code points and re-enter the buffer.
   98|  22.0k|                pos = oldBuffer.moveIndex32(length, beyond - n);
   99|  22.0k|                return beyond;
  100|  22.0k|            }
  101|  57.0k|        } else {
  102|       |            // Go backwards from inside the oldBuffer.
  103|  53.4k|            pos = oldBuffer.moveIndex32(pos, -n);
  104|  53.4k|            return 0;
  105|  53.4k|        }
  106|   110k|    }
_ZN6icu_7812SkippedState13saveTrieStateERKNS_10UCharsTrieE:
  126|   125k|    void saveTrieState(const UCharsTrie &trie) { trie.saveState(state); }
_ZN6icu_7812SkippedStateC2Ev:
   61|  2.25k|    SkippedState() : pos(0), skipLengthAtMatch(0) {}
_ZNK6icu_7812SkippedState16resetToTrieStateERNS_10UCharsTrieE:
  127|  47.9M|    void resetToTrieState(UCharsTrie &trie) const { trie.resetToState(state); }
_ZN6icu_7812SkippedState15setFirstSkippedEi:
  108|   123k|    void setFirstSkipped(UChar32 c) {
  109|   123k|        skipLengthAtMatch = 0;
  110|   123k|        newBuffer.setTo(c);
  111|   123k|    }
_ZN6icu_7812SkippedState11recordMatchEv:
  117|  52.8k|    void recordMatch() { skipLengthAtMatch = newBuffer.length(); }
_ZN6icu_7812SkippedState4skipEi:
  113|  47.8M|    void skip(UChar32 c) {
  114|  47.8M|        newBuffer.append(c);
  115|  47.8M|    }
_ZN6icu_7812SkippedState12replaceMatchEv:
  120|   123k|    void replaceMatch() {
  121|       |        // Note: UnicodeString.replace() pins pos to at most length().
  122|   123k|        oldBuffer.replace(0, pos, newBuffer, 0, skipLengthAtMatch);
  123|   123k|        pos = 0;
  124|   123k|    }

_ZN6icu_7817CollationIteratorC2EPKNS_13CollationDataEa:
  103|  14.1k|            : trie(d->trie),
  104|  14.1k|              data(d),
  105|  14.1k|              cesIndex(0),
  106|  14.1k|              skipped(nullptr),
  107|  14.1k|              numCpFwd(-1),
  108|  14.1k|              isNumeric(numeric) {}
_ZN6icu_7817CollationIterator8CEBufferC2Ev:
   59|  14.1k|        CEBuffer() : length(0) {}
_ZN6icu_7817CollationIterator6nextCEER10UErrorCode:
  129|  1.10M|    inline int64_t nextCE(UErrorCode &errorCode) {
  130|  1.10M|        if(cesIndex < ceBuffer.length) {
  ------------------
  |  Branch (130:12): [True: 945k, False: 163k]
  ------------------
  131|       |            // Return the next buffered CE.
  132|   945k|            return ceBuffer.get(cesIndex++);
  133|   945k|        }
  134|       |        // assert cesIndex == ceBuffer.length;
  135|   163k|        if(!ceBuffer.incLength(errorCode)) {
  ------------------
  |  Branch (135:12): [True: 0, False: 163k]
  ------------------
  136|      0|            return Collation::NO_CE;
  137|      0|        }
  138|   163k|        UChar32 c;
  139|   163k|        uint32_t ce32 = handleNextCE32(c, errorCode);
  140|   163k|        uint32_t t = ce32 & 0xff;
  141|   163k|        if(t < Collation::SPECIAL_CE32_LOW_BYTE) {  // Forced-inline of isSpecialCE32(ce32).
  ------------------
  |  Branch (141:12): [True: 6.03k, False: 157k]
  ------------------
  142|       |            // Normal CE from the main data.
  143|       |            // Forced-inline of ceFromSimpleCE32(ce32).
  144|  6.03k|            return ceBuffer.set(cesIndex++,
  145|  6.03k|                    (static_cast<int64_t>(ce32 & 0xffff0000) << 32) | ((ce32 & 0xff00) << 16) | (t << 8));
  146|  6.03k|        }
  147|   157k|        const CollationData *d;
  148|       |        // The compiler should be able to optimize the previous and the following
  149|       |        // comparisons of t with the same constant.
  150|   157k|        if(t == Collation::SPECIAL_CE32_LOW_BYTE) {
  ------------------
  |  Branch (150:12): [True: 55.1k, False: 102k]
  ------------------
  151|  55.1k|            if(c < 0) {
  ------------------
  |  Branch (151:16): [True: 2.65k, False: 52.5k]
  ------------------
  152|  2.65k|                return ceBuffer.set(cesIndex++, Collation::NO_CE);
  153|  2.65k|            }
  154|  52.5k|            d = data->base;
  155|  52.5k|            ce32 = d->getCE32(c);
  156|  52.5k|            t = ce32 & 0xff;
  157|  52.5k|            if(t < Collation::SPECIAL_CE32_LOW_BYTE) {
  ------------------
  |  Branch (157:16): [True: 16.5k, False: 35.9k]
  ------------------
  158|       |                // Normal CE from the base data.
  159|  16.5k|                return ceBuffer.set(cesIndex++,
  160|  16.5k|                        (static_cast<int64_t>(ce32 & 0xffff0000) << 32) | ((ce32 & 0xff00) << 16) | (t << 8));
  161|  16.5k|            }
  162|   102k|        } else {
  163|   102k|            d = data;
  164|   102k|        }
  165|   138k|        if(t == Collation::LONG_PRIMARY_CE32_LOW_BYTE) {
  ------------------
  |  Branch (165:12): [True: 6.07k, False: 132k]
  ------------------
  166|       |            // Forced-inline of ceFromLongPrimaryCE32(ce32).
  167|  6.07k|            return ceBuffer.set(cesIndex++,
  168|  6.07k|                    (static_cast<int64_t>(ce32 - t) << 32) | Collation::COMMON_SEC_AND_TER_CE);
  169|  6.07k|        }
  170|   132k|        return nextCEFromCE32(d, c, ce32, errorCode);
  171|   138k|    }
_ZNK6icu_7817CollationIterator8CEBuffer3getEi:
   88|  1.34M|        inline int64_t get(int32_t i) const { return buffer[i]; }
_ZN6icu_7817CollationIterator8CEBuffer9incLengthER10UErrorCode:
   74|   163k|        inline UBool incLength(UErrorCode &errorCode) {
   75|       |            // Use INITIAL_CAPACITY for a very simple fastpath.
   76|       |            // (Rather than buffer.getCapacity().)
   77|   163k|            if(length < INITIAL_CAPACITY || ensureAppendCapacity(1, errorCode)) {
  ------------------
  |  Branch (77:16): [True: 54.7k, False: 108k]
  |  Branch (77:45): [True: 108k, False: 0]
  ------------------
   78|   163k|                ++length;
   79|   163k|                return true;
   80|   163k|            } else {
   81|      0|                return false;
   82|      0|            }
   83|   163k|        }
_ZN6icu_7817CollationIterator8CEBuffer3setEil:
   85|  58.7k|        inline int64_t set(int32_t i, int64_t ce) {
   86|  58.7k|            return buffer[i] = ce;
   87|  58.7k|        }
_ZN6icu_7817CollationIterator8CEBuffer6appendElR10UErrorCode:
   62|   232k|        inline void append(int64_t ce, UErrorCode &errorCode) {
   63|   232k|            if(length < INITIAL_CAPACITY || ensureAppendCapacity(1, errorCode)) {
  ------------------
  |  Branch (63:16): [True: 56.4k, False: 176k]
  |  Branch (63:45): [True: 176k, False: 0]
  ------------------
   64|   232k|                buffer[length++] = ce;
   65|   232k|            }
   66|   232k|        }
_ZN6icu_7817CollationIterator8CEBuffer12appendUnsafeEl:
   68|   969k|        inline void appendUnsafe(int64_t ce) {
   69|   969k|            buffer[length++] = ce;
   70|   969k|        }
_ZN6icu_7817CollationIterator12setCurrentCEEl:
  182|  11.7k|    void setCurrentCE(int64_t ce) {
  183|       |        // assert cesIndex > 0;
  184|  11.7k|        ceBuffer.set(cesIndex - 1, ce);
  185|  11.7k|    }
_ZNK6icu_7817CollationIterator5getCEEi:
  196|   264k|    inline int64_t getCE(int32_t i) const {
  197|   264k|        return ceBuffer.get(i);
  198|   264k|    }

_ZN6icu_7813CollationRoot4loadEPKcR10UErrorCode:
   79|      1|CollationRoot::load(const char* ucadataPath, UErrorCode &errorCode) {
   80|      1|    if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (80:8): [True: 0, False: 1]
  ------------------
   81|      1|    LocalPointer<CollationTailoring> t(new CollationTailoring(nullptr));
   82|      1|    if(t.isNull() || t->isBogus()) {
  ------------------
  |  Branch (82:8): [True: 0, False: 1]
  |  Branch (82:22): [True: 0, False: 1]
  ------------------
   83|      0|        errorCode = U_MEMORY_ALLOCATION_ERROR;
   84|      0|        return;
   85|      0|    }
   86|      1|    t->memory = ucadataPath ? CollationRoot::loadFromFile(ucadataPath, errorCode) :
  ------------------
  |  Branch (86:17): [True: 0, False: 1]
  ------------------
   87|      1|                              udata_openChoice(U_ICUDATA_NAME U_TREE_SEPARATOR_STRING "coll",
  ------------------
  |  |  894|      1|#define udata_openChoice U_ICU_ENTRY_POINT_RENAME(udata_openChoice)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                                            udata_openChoice(U_ICUDATA_NAME U_TREE_SEPARATOR_STRING "coll",
  ------------------
  |  |  154|      1|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  ------------------
   88|      1|                                               "icu", "ucadata",
   89|      1|                                               CollationDataReader::isAcceptable,
   90|      1|                                               t->version, &errorCode);
   91|      1|    if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (91:8): [True: 0, False: 1]
  ------------------
   92|      1|    const uint8_t *inBytes = static_cast<const uint8_t *>(udata_getMemory(t->memory));
  ------------------
  |  |  891|      1|#define udata_getMemory U_ICU_ENTRY_POINT_RENAME(udata_getMemory)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   93|      1|    CollationDataReader::read(nullptr, inBytes, udata_getLength(t->memory), *t, errorCode);
  ------------------
  |  |  890|      1|#define udata_getLength U_ICU_ENTRY_POINT_RENAME(udata_getLength)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   94|      1|    if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (94:8): [True: 0, False: 1]
  ------------------
   95|      1|    ucln_i18n_registerCleanup(UCLN_I18N_COLLATION_ROOT, uprv_collation_root_cleanup);
  ------------------
  |  |  618|      1|#define ucln_i18n_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_i18n_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   96|      1|    CollationCacheEntry *entry = new CollationCacheEntry(Locale::getRoot(), t.getAlias());
   97|      1|    if(entry != nullptr) {
  ------------------
  |  Branch (97:8): [True: 1, False: 0]
  ------------------
   98|      1|        t.orphan();  // The rootSingleton took ownership of the tailoring.
   99|      1|        entry->addRef();
  100|      1|        rootSingleton = entry;
  101|      1|    }
  102|      1|}
_ZN6icu_7813CollationRoot17getRootCacheEntryER10UErrorCode:
  105|  14.3k|CollationRoot::getRootCacheEntry(UErrorCode &errorCode) {
  106|  14.3k|    umtx_initOnce(initOnce, CollationRoot::load, static_cast<const char*>(nullptr), errorCode);
  107|  14.3k|    if(U_FAILURE(errorCode)) { return nullptr; }
  ------------------
  |  Branch (107:8): [True: 0, False: 14.3k]
  ------------------
  108|  14.3k|    return rootSingleton;
  109|  14.3k|}

_ZN6icu_7817CollationSettingsC2ERKS0_:
   31|  7.05k|        : SharedObject(other),
   32|  7.05k|          options(other.options), variableTop(other.variableTop),
   33|  7.05k|          reorderTable(nullptr),
   34|  7.05k|          minHighNoReorder(other.minHighNoReorder),
   35|  7.05k|          reorderRanges(nullptr), reorderRangesLength(0),
   36|  7.05k|          reorderCodes(nullptr), reorderCodesLength(0), reorderCodesCapacity(0),
   37|  7.05k|          fastLatinOptions(other.fastLatinOptions) {
   38|  7.05k|    UErrorCode errorCode = U_ZERO_ERROR;
   39|  7.05k|    copyReorderingFrom(other, errorCode);
   40|  7.05k|    if(fastLatinOptions >= 0) {
  ------------------
  |  Branch (40:8): [True: 7.00k, False: 51]
  ------------------
   41|  7.00k|        uprv_memcpy(fastLatinPrimaries, other.fastLatinPrimaries, sizeof(fastLatinPrimaries));
  ------------------
  |  |   42|  7.00k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  7.00k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  7.00k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  7.00k|    _Pragma("clang diagnostic push") \
  |  |   45|  7.00k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  7.00k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  7.00k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  7.00k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  7.00k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  7.00k|    _Pragma("clang diagnostic pop") \
  |  |   49|  7.00k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  7.00k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  7.00k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  7.00k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   42|  7.00k|    }
   43|  7.05k|}
_ZN6icu_7817CollationSettingsD2Ev:
   45|  6.95k|CollationSettings::~CollationSettings() {
   46|  6.95k|    if(reorderCodesCapacity != 0) {
  ------------------
  |  Branch (46:8): [True: 99, False: 6.85k]
  ------------------
   47|     99|        uprv_free(const_cast<int32_t *>(reorderCodes));
  ------------------
  |  | 1503|     99|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|     99|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     99|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     99|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   48|     99|    }
   49|  6.95k|}
_ZN6icu_7817CollationSettings15resetReorderingEv:
   74|  3.99k|CollationSettings::resetReordering() {
   75|       |    // When we turn off reordering, we want to set a nullptr permutation
   76|       |    // rather than a no-op permutation.
   77|       |    // Keep the memory via reorderCodes and its capacity.
   78|  3.99k|    reorderTable = nullptr;
   79|  3.99k|    minHighNoReorder = 0;
   80|  3.99k|    reorderRangesLength = 0;
   81|  3.99k|    reorderCodesLength = 0;
   82|  3.99k|}
_ZN6icu_7817CollationSettings15aliasReorderingERKNS_13CollationDataEPKiiPKjiPKhR10UErrorCode:
   87|     84|                                   const uint8_t *table, UErrorCode &errorCode) {
   88|     84|    if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (88:8): [True: 0, False: 84]
  ------------------
   89|     84|    if(table != nullptr &&
  ------------------
  |  Branch (89:8): [True: 84, False: 0]
  ------------------
   90|     84|            (rangesLength == 0 ?
  ------------------
  |  Branch (90:13): [True: 84, False: 0]
  |  Branch (90:14): [True: 44, False: 40]
  ------------------
   91|     44|                    !reorderTableHasSplitBytes(table) :
   92|     84|                    rangesLength >= 2 &&
  ------------------
  |  Branch (92:21): [True: 40, False: 0]
  ------------------
   93|       |                    // The first offset must be 0. The last offset must not be 0.
   94|     84|                    (ranges[0] & 0xffff) == 0 && (ranges[rangesLength - 1] & 0xffff) != 0)) {
  ------------------
  |  Branch (94:21): [True: 40, False: 0]
  |  Branch (94:50): [True: 40, False: 0]
  ------------------
   95|       |        // We need to release the memory before setting the alias pointer.
   96|     84|        if(reorderCodesCapacity != 0) {
  ------------------
  |  Branch (96:12): [True: 0, False: 84]
  ------------------
   97|      0|            uprv_free(const_cast<int32_t *>(reorderCodes));
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   98|      0|            reorderCodesCapacity = 0;
   99|      0|        }
  100|     84|        reorderTable = table;
  101|     84|        reorderCodes = codes;
  102|     84|        reorderCodesLength = length;
  103|       |        // Drop ranges before the first split byte. They are reordered by the table.
  104|       |        // This then speeds up reordering of the remaining ranges.
  105|     84|        int32_t firstSplitByteRangeIndex = 0;
  106|    201|        while(firstSplitByteRangeIndex < rangesLength &&
  ------------------
  |  Branch (106:15): [True: 157, False: 44]
  ------------------
  107|    201|                (ranges[firstSplitByteRangeIndex] & 0xff0000) == 0) {
  ------------------
  |  Branch (107:17): [True: 117, False: 40]
  ------------------
  108|       |            // The second byte of the primary limit is 0.
  109|    117|            ++firstSplitByteRangeIndex;
  110|    117|        }
  111|     84|        if(firstSplitByteRangeIndex == rangesLength) {
  ------------------
  |  Branch (111:12): [True: 44, False: 40]
  ------------------
  112|     44|            U_ASSERT(!reorderTableHasSplitBytes(table));
  ------------------
  |  |   35|     44|#   define U_ASSERT(exp) (void)0
  ------------------
  113|     44|            minHighNoReorder = 0;
  114|     44|            reorderRanges = nullptr;
  115|     44|            reorderRangesLength = 0;
  116|     44|        } else {
  117|     40|            U_ASSERT(table[ranges[firstSplitByteRangeIndex] >> 24] == 0);
  ------------------
  |  |   35|     40|#   define U_ASSERT(exp) (void)0
  ------------------
  118|     40|            minHighNoReorder = ranges[rangesLength - 1] & 0xffff0000;
  119|     40|            reorderRanges = ranges + firstSplitByteRangeIndex;
  120|     40|            reorderRangesLength = rangesLength - firstSplitByteRangeIndex;
  121|     40|        }
  122|     84|        return;
  123|     84|    }
  124|       |    // Regenerate missing data.
  125|      0|    setReordering(data, codes, length, errorCode);
  126|      0|}
_ZN6icu_7817CollationSettings13setReorderingERKNS_13CollationDataEPKiiR10UErrorCode:
  131|    186|                                 UErrorCode &errorCode) {
  132|    186|    if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (132:8): [True: 0, False: 186]
  ------------------
  133|    186|    if(codesLength == 0 || (codesLength == 1 && codes[0] == UCOL_REORDER_CODE_NONE)) {
  ------------------
  |  Branch (133:8): [True: 1, False: 185]
  |  Branch (133:29): [True: 35, False: 150]
  |  Branch (133:49): [True: 0, False: 35]
  ------------------
  134|      1|        resetReordering();
  135|      1|        return;
  136|      1|    }
  137|    185|    UVector32 rangesList(errorCode);
  138|    185|    data.makeReorderRanges(codes, codesLength, rangesList, errorCode);
  139|    185|    if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (139:8): [True: 67, False: 118]
  ------------------
  140|    118|    int32_t rangesLength = rangesList.size();
  141|    118|    if(rangesLength == 0) {
  ------------------
  |  Branch (141:8): [True: 19, False: 99]
  ------------------
  142|     19|        resetReordering();
  143|     19|        return;
  144|     19|    }
  145|     99|    const uint32_t *ranges = reinterpret_cast<uint32_t *>(rangesList.getBuffer());
  146|       |    // ranges[] contains at least two (limit, offset) pairs.
  147|       |    // The first offset must be 0. The last offset must not be 0.
  148|       |    // Separators (at the low end) and trailing weights (at the high end)
  149|       |    // are never reordered.
  150|     99|    U_ASSERT(rangesLength >= 2);
  ------------------
  |  |   35|     99|#   define U_ASSERT(exp) (void)0
  ------------------
  151|     99|    U_ASSERT((ranges[0] & 0xffff) == 0 && (ranges[rangesLength - 1] & 0xffff) != 0);
  ------------------
  |  |   35|     99|#   define U_ASSERT(exp) (void)0
  ------------------
  152|     99|    minHighNoReorder = ranges[rangesLength - 1] & 0xffff0000;
  153|       |
  154|       |    // Write the lead byte permutation table.
  155|       |    // Set a 0 for each lead byte that has a range boundary in the middle.
  156|     99|    uint8_t table[256];
  157|     99|    int32_t b = 0;
  158|     99|    int32_t firstSplitByteRangeIndex = -1;
  159|    628|    for(int32_t i = 0; i < rangesLength; ++i) {
  ------------------
  |  Branch (159:24): [True: 529, False: 99]
  ------------------
  160|    529|        uint32_t pair = ranges[i];
  161|    529|        int32_t limit1 = static_cast<int32_t>(pair >> 24);
  162|  17.6k|        while(b < limit1) {
  ------------------
  |  Branch (162:15): [True: 17.1k, False: 529]
  ------------------
  163|  17.1k|            table[b] = static_cast<uint8_t>(b + pair);
  164|  17.1k|            ++b;
  165|  17.1k|        }
  166|       |        // Check the second byte of the limit.
  167|    529|        if((pair & 0xff0000) != 0) {
  ------------------
  |  Branch (167:12): [True: 239, False: 290]
  ------------------
  168|    239|            table[limit1] = 0;
  169|    239|            b = limit1 + 1;
  170|    239|            if(firstSplitByteRangeIndex < 0) {
  ------------------
  |  Branch (170:16): [True: 72, False: 167]
  ------------------
  171|     72|                firstSplitByteRangeIndex = i;
  172|     72|            }
  173|    239|        }
  174|    529|    }
  175|  8.17k|    while(b <= 0xff) {
  ------------------
  |  Branch (175:11): [True: 8.07k, False: 99]
  ------------------
  176|  8.07k|        table[b] = static_cast<uint8_t>(b);
  177|  8.07k|        ++b;
  178|  8.07k|    }
  179|     99|    if(firstSplitByteRangeIndex < 0) {
  ------------------
  |  Branch (179:8): [True: 27, False: 72]
  ------------------
  180|       |        // The lead byte permutation table alone suffices for reordering.
  181|     27|        rangesLength = 0;
  182|     72|    } else {
  183|       |        // Remove the ranges below the first split byte.
  184|     72|        ranges += firstSplitByteRangeIndex;
  185|     72|        rangesLength -= firstSplitByteRangeIndex;
  186|     72|    }
  187|     99|    setReorderArrays(codes, codesLength, ranges, rangesLength, table, errorCode);
  188|     99|}
_ZN6icu_7817CollationSettings16setReorderArraysEPKiiPKjiPKhR10UErrorCode:
  193|     99|                                    const uint8_t *table, UErrorCode &errorCode) {
  194|     99|    if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (194:8): [True: 0, False: 99]
  ------------------
  195|     99|    int32_t *ownedCodes;
  196|     99|    int32_t totalLength = codesLength + rangesLength;
  197|     99|    U_ASSERT(totalLength > 0);
  ------------------
  |  |   35|     99|#   define U_ASSERT(exp) (void)0
  ------------------
  198|     99|    if(totalLength <= reorderCodesCapacity) {
  ------------------
  |  Branch (198:8): [True: 0, False: 99]
  ------------------
  199|      0|        ownedCodes = const_cast<int32_t *>(reorderCodes);
  200|     99|    } else {
  201|       |        // Allocate one memory block for the codes, the ranges, and the 16-aligned table.
  202|     99|        int32_t capacity = (totalLength + 3) & ~3;  // round up to a multiple of 4 ints
  203|     99|        ownedCodes = static_cast<int32_t*>(uprv_malloc(capacity * 4 + 256));
  ------------------
  |  | 1524|     99|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|     99|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     99|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     99|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  204|     99|        if(ownedCodes == nullptr) {
  ------------------
  |  Branch (204:12): [True: 0, False: 99]
  ------------------
  205|      0|            resetReordering();
  206|      0|            errorCode = U_MEMORY_ALLOCATION_ERROR;
  207|      0|            return;
  208|      0|        }
  209|     99|        if(reorderCodesCapacity != 0) {
  ------------------
  |  Branch (209:12): [True: 0, False: 99]
  ------------------
  210|      0|            uprv_free(const_cast<int32_t *>(reorderCodes));
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  211|      0|        }
  212|     99|        reorderCodes = ownedCodes;
  213|     99|        reorderCodesCapacity = capacity;
  214|     99|    }
  215|     99|    uprv_memcpy(ownedCodes + reorderCodesCapacity, table, 256);
  ------------------
  |  |   42|     99|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|     99|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|     99|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|     99|    _Pragma("clang diagnostic push") \
  |  |   45|     99|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|     99|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|     99|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|     99|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|     99|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|     99|    _Pragma("clang diagnostic pop") \
  |  |   49|     99|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|     99|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|     99|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|     99|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  216|     99|    uprv_memcpy(ownedCodes, codes, codesLength * 4);
  ------------------
  |  |   42|     99|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|     99|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|     99|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|     99|    _Pragma("clang diagnostic push") \
  |  |   45|     99|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|     99|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|     99|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|     99|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|     99|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|     99|    _Pragma("clang diagnostic pop") \
  |  |   49|     99|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|     99|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|     99|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|     99|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  217|     99|    uprv_memcpy(ownedCodes + codesLength, ranges, rangesLength * 4);
  ------------------
  |  |   42|     99|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|     99|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|     99|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|     99|    _Pragma("clang diagnostic push") \
  |  |   45|     99|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|     99|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|     99|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|     99|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|     99|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|     99|    _Pragma("clang diagnostic pop") \
  |  |   49|     99|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|     99|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|     99|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|     99|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  218|     99|    reorderTable = reinterpret_cast<const uint8_t *>(reorderCodes + reorderCodesCapacity);
  219|     99|    reorderCodesLength = codesLength;
  220|     99|    reorderRanges = reinterpret_cast<uint32_t *>(ownedCodes) + codesLength;
  221|     99|    reorderRangesLength = rangesLength;
  222|     99|}
_ZN6icu_7817CollationSettings18copyReorderingFromERKS0_R10UErrorCode:
  225|  7.05k|CollationSettings::copyReorderingFrom(const CollationSettings &other, UErrorCode &errorCode) {
  226|  7.05k|    if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (226:8): [True: 0, False: 7.05k]
  ------------------
  227|  7.05k|    if(!other.hasReordering()) {
  ------------------
  |  Branch (227:8): [True: 3.97k, False: 3.08k]
  ------------------
  228|  3.97k|        resetReordering();
  229|  3.97k|        return;
  230|  3.97k|    }
  231|  3.08k|    minHighNoReorder = other.minHighNoReorder;
  232|  3.08k|    if(other.reorderCodesCapacity == 0) {
  ------------------
  |  Branch (232:8): [True: 3.08k, False: 0]
  ------------------
  233|       |        // The reorder arrays are aliased to memory-mapped data.
  234|  3.08k|        reorderTable = other.reorderTable;
  235|  3.08k|        reorderRanges = other.reorderRanges;
  236|  3.08k|        reorderRangesLength = other.reorderRangesLength;
  237|  3.08k|        reorderCodes = other.reorderCodes;
  238|  3.08k|        reorderCodesLength = other.reorderCodesLength;
  239|  3.08k|    } else {
  240|      0|        setReorderArrays(other.reorderCodes, other.reorderCodesLength,
  241|      0|                         other.reorderRanges, other.reorderRangesLength,
  242|      0|                         other.reorderTable, errorCode);
  243|      0|    }
  244|  3.08k|}
_ZN6icu_7817CollationSettings25reorderTableHasSplitBytesEPKh:
  247|     44|CollationSettings::reorderTableHasSplitBytes(const uint8_t table[256]) {
  248|     44|    U_ASSERT(table[0] == 0);
  ------------------
  |  |   35|     44|#   define U_ASSERT(exp) (void)0
  ------------------
  249|  11.2k|    for(int32_t i = 1; i < 256; ++i) {
  ------------------
  |  Branch (249:24): [True: 11.2k, False: 44]
  ------------------
  250|  11.2k|        if(table[i] == 0) {
  ------------------
  |  Branch (250:12): [True: 0, False: 11.2k]
  ------------------
  251|      0|            return true;
  252|      0|        }
  253|  11.2k|    }
  254|     44|    return false;
  255|     44|}
_ZNK6icu_7817CollationSettings9reorderExEj:
  258|  1.01k|CollationSettings::reorderEx(uint32_t p) const {
  259|  1.01k|    if(p >= minHighNoReorder) { return p; }
  ------------------
  |  Branch (259:8): [True: 4, False: 1.01k]
  ------------------
  260|       |    // Round up p so that its lower 16 bits are >= any offset bits.
  261|       |    // Then compare q directly with (limit, offset) pairs.
  262|  1.01k|    uint32_t q = p | 0xffff;
  263|  1.01k|    uint32_t r;
  264|  1.01k|    const uint32_t *ranges = reorderRanges;
  265|  1.10k|    while(q >= (r = *ranges)) { ++ranges; }
  ------------------
  |  Branch (265:11): [True: 90, False: 1.01k]
  ------------------
  266|  1.01k|    return p + (r << 24);
  267|  1.01k|}
_ZN6icu_7817CollationSettings11setStrengthEiiR10UErrorCode:
  270|  6.60k|CollationSettings::setStrength(int32_t value, int32_t defaultOptions, UErrorCode &errorCode) {
  271|  6.60k|    if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (271:8): [True: 0, False: 6.60k]
  ------------------
  272|  6.60k|    int32_t noStrength = options & ~STRENGTH_MASK;
  273|  6.60k|    switch(value) {
  274|  1.42k|    case UCOL_PRIMARY:
  ------------------
  |  Branch (274:5): [True: 1.42k, False: 5.18k]
  ------------------
  275|  2.71k|    case UCOL_SECONDARY:
  ------------------
  |  Branch (275:5): [True: 1.28k, False: 5.32k]
  ------------------
  276|  2.71k|    case UCOL_TERTIARY:
  ------------------
  |  Branch (276:5): [True: 0, False: 6.60k]
  ------------------
  277|  4.20k|    case UCOL_QUATERNARY:
  ------------------
  |  Branch (277:5): [True: 1.49k, False: 5.11k]
  ------------------
  278|  6.59k|    case UCOL_IDENTICAL:
  ------------------
  |  Branch (278:5): [True: 2.38k, False: 4.22k]
  ------------------
  279|  6.59k|        options = noStrength | (value << STRENGTH_SHIFT);
  280|  6.59k|        break;
  281|      0|    case UCOL_DEFAULT:
  ------------------
  |  Branch (281:5): [True: 0, False: 6.60k]
  ------------------
  282|      0|        options = noStrength | (defaultOptions & STRENGTH_MASK);
  283|      0|        break;
  284|     17|    default:
  ------------------
  |  Branch (284:5): [True: 17, False: 6.59k]
  ------------------
  285|     17|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  286|     17|        break;
  287|  6.60k|    }
  288|  6.60k|}
_ZN6icu_7817CollationSettings7setFlagEi18UColAttributeValueiR10UErrorCode:
  292|    142|                           int32_t defaultOptions, UErrorCode &errorCode) {
  293|    142|    if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (293:8): [True: 0, False: 142]
  ------------------
  294|    142|    switch(value) {
  295|    141|    case UCOL_ON:
  ------------------
  |  Branch (295:5): [True: 141, False: 1]
  ------------------
  296|    141|        options |= bit;
  297|    141|        break;
  298|      0|    case UCOL_OFF:
  ------------------
  |  Branch (298:5): [True: 0, False: 142]
  ------------------
  299|      0|        options &= ~bit;
  300|      0|        break;
  301|      0|    case UCOL_DEFAULT:
  ------------------
  |  Branch (301:5): [True: 0, False: 142]
  ------------------
  302|      0|        options = (options & ~bit) | (defaultOptions & bit);
  303|      0|        break;
  304|      1|    default:
  ------------------
  |  Branch (304:5): [True: 1, False: 141]
  ------------------
  305|      1|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  306|      1|        break;
  307|    142|    }
  308|    142|}
_ZN6icu_7817CollationSettings12setCaseFirstE18UColAttributeValueiR10UErrorCode:
  312|     20|                                int32_t defaultOptions, UErrorCode &errorCode) {
  313|     20|    if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (313:8): [True: 0, False: 20]
  ------------------
  314|     20|    int32_t noCaseFirst = options & ~CASE_FIRST_AND_UPPER_MASK;
  315|     20|    switch(value) {
  316|      0|    case UCOL_OFF:
  ------------------
  |  Branch (316:5): [True: 0, False: 20]
  ------------------
  317|      0|        options = noCaseFirst;
  318|      0|        break;
  319|      0|    case UCOL_LOWER_FIRST:
  ------------------
  |  Branch (319:5): [True: 0, False: 20]
  ------------------
  320|      0|        options = noCaseFirst | CASE_FIRST;
  321|      0|        break;
  322|      1|    case UCOL_UPPER_FIRST:
  ------------------
  |  Branch (322:5): [True: 1, False: 19]
  ------------------
  323|      1|        options = noCaseFirst | CASE_FIRST_AND_UPPER_MASK;
  324|      1|        break;
  325|      0|    case UCOL_DEFAULT:
  ------------------
  |  Branch (325:5): [True: 0, False: 20]
  ------------------
  326|      0|        options = noCaseFirst | (defaultOptions & CASE_FIRST_AND_UPPER_MASK);
  327|      0|        break;
  328|     19|    default:
  ------------------
  |  Branch (328:5): [True: 19, False: 1]
  ------------------
  329|     19|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  330|     19|        break;
  331|     20|    }
  332|     20|}
_ZN6icu_7817CollationSettings20setAlternateHandlingE18UColAttributeValueiR10UErrorCode:
  336|      7|                                        int32_t defaultOptions, UErrorCode &errorCode) {
  337|      7|    if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (337:8): [True: 0, False: 7]
  ------------------
  338|      7|    int32_t noAlternate = options & ~ALTERNATE_MASK;
  339|      7|    switch(value) {
  340|      0|    case UCOL_NON_IGNORABLE:
  ------------------
  |  Branch (340:5): [True: 0, False: 7]
  ------------------
  341|      0|        options = noAlternate;
  342|      0|        break;
  343|      0|    case UCOL_SHIFTED:
  ------------------
  |  Branch (343:5): [True: 0, False: 7]
  ------------------
  344|      0|        options = noAlternate | SHIFTED;
  345|      0|        break;
  346|      0|    case UCOL_DEFAULT:
  ------------------
  |  Branch (346:5): [True: 0, False: 7]
  ------------------
  347|      0|        options = noAlternate | (defaultOptions & ALTERNATE_MASK);
  348|      0|        break;
  349|      7|    default:
  ------------------
  |  Branch (349:5): [True: 7, False: 0]
  ------------------
  350|      7|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  351|      7|        break;
  352|      7|    }
  353|      7|}
_ZN6icu_7817CollationSettings14setMaxVariableEiiR10UErrorCode:
  356|     13|CollationSettings::setMaxVariable(int32_t value, int32_t defaultOptions, UErrorCode &errorCode) {
  357|     13|    if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (357:8): [True: 0, False: 13]
  ------------------
  358|     13|    int32_t noMax = options & ~MAX_VARIABLE_MASK;
  359|     13|    switch(value) {
  360|     10|    case MAX_VAR_SPACE:
  ------------------
  |  Branch (360:5): [True: 10, False: 3]
  ------------------
  361|     10|    case MAX_VAR_PUNCT:
  ------------------
  |  Branch (361:5): [True: 0, False: 13]
  ------------------
  362|     10|    case MAX_VAR_SYMBOL:
  ------------------
  |  Branch (362:5): [True: 0, False: 13]
  ------------------
  363|     13|    case MAX_VAR_CURRENCY:
  ------------------
  |  Branch (363:5): [True: 3, False: 10]
  ------------------
  364|     13|        options = noMax | (value << MAX_VARIABLE_SHIFT);
  365|     13|        break;
  366|      0|    case UCOL_DEFAULT:
  ------------------
  |  Branch (366:5): [True: 0, False: 13]
  ------------------
  367|      0|        options = noMax | (defaultOptions & MAX_VARIABLE_MASK);
  368|      0|        break;
  369|      0|    default:
  ------------------
  |  Branch (369:5): [True: 0, False: 13]
  ------------------
  370|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  371|      0|        break;
  372|     13|    }
  373|     13|}

_ZN6icu_7817CollationSettingsC2Ev:
  106|      1|            : options((UCOL_DEFAULT_STRENGTH << STRENGTH_SHIFT) |
  107|      1|                      (MAX_VAR_PUNCT << MAX_VARIABLE_SHIFT)),
  108|      1|              variableTop(0),
  109|      1|              reorderTable(nullptr),
  110|      1|              minHighNoReorder(0),
  111|      1|              reorderRanges(nullptr), reorderRangesLength(0),
  112|      1|              reorderCodes(nullptr), reorderCodesLength(0), reorderCodesCapacity(0),
  113|      1|              fastLatinOptions(-1) {}
_ZNK6icu_7817CollationSettings13hasReorderingEv:
  134|  20.3k|    inline UBool hasReordering() const { return reorderTable != nullptr; }
_ZNK6icu_7817CollationSettings7reorderEj:
  136|  34.3k|    inline uint32_t reorder(uint32_t p) const {
  137|  34.3k|        uint8_t b = reorderTable[p >> 24];
  138|  34.3k|        if(b != 0 || p <= Collation::NO_CE_PRIMARY) {
  ------------------
  |  Branch (138:12): [True: 23.2k, False: 11.1k]
  |  Branch (138:22): [True: 10.1k, False: 1.01k]
  ------------------
  139|  33.3k|            return (static_cast<uint32_t>(b) << 24) | (p & 0xffffff);
  140|  33.3k|        } else {
  141|  1.01k|            return reorderEx(p);
  142|  1.01k|        }
  143|  34.3k|    }
_ZN6icu_7817CollationSettings11getStrengthEi:
  147|  12.9k|    static int32_t getStrength(int32_t options) {
  148|  12.9k|        return options >> STRENGTH_SHIFT;
  149|  12.9k|    }
_ZNK6icu_7817CollationSettings11getStrengthEv:
  151|  9.00k|    int32_t getStrength() const {
  152|  9.00k|        return getStrength(options);
  153|  9.00k|    }
_ZNK6icu_7817CollationSettings12getCaseFirstEv:
  165|     20|    UColAttributeValue getCaseFirst() const {
  166|     20|        int32_t option = options & CASE_FIRST_AND_UPPER_MASK;
  167|     20|        return (option == 0) ? UCOL_OFF :
  ------------------
  |  Branch (167:16): [True: 18, False: 2]
  ------------------
  168|     20|                (option == CASE_FIRST) ? UCOL_LOWER_FIRST : UCOL_UPPER_FIRST;
  ------------------
  |  Branch (168:17): [True: 0, False: 2]
  ------------------
  169|     20|    }
_ZNK6icu_7817CollationSettings20getAlternateHandlingEv:
  174|      7|    UColAttributeValue getAlternateHandling() const {
  175|      7|        return ((options & ALTERNATE_MASK) == 0) ? UCOL_NON_IGNORABLE : UCOL_SHIFTED;
  ------------------
  |  Branch (175:16): [True: 6, False: 1]
  ------------------
  176|      7|    }
_ZNK6icu_7817CollationSettings14getMaxVariableEv:
  180|    602|    MaxVariable getMaxVariable() const {
  181|    602|        return static_cast<MaxVariable>((options & MAX_VARIABLE_MASK) >> MAX_VARIABLE_SHIFT);
  182|    602|    }
_ZN6icu_7817CollationSettings22isTertiaryWithCaseBitsEi:
  187|  1.25k|    static inline UBool isTertiaryWithCaseBits(int32_t options) {
  188|  1.25k|        return (options & (CASE_LEVEL | CASE_FIRST)) == CASE_FIRST;
  189|  1.25k|    }
_ZN6icu_7817CollationSettings15getTertiaryMaskEi:
  190|    919|    static uint32_t getTertiaryMask(int32_t options) {
  191|       |        // Remove the case bits from the tertiary weight when caseLevel is on or caseFirst is off.
  192|    919|        return isTertiaryWithCaseBits(options) ?
  ------------------
  |  Branch (192:16): [True: 16, False: 903]
  ------------------
  193|    903|                Collation::CASE_AND_TERTIARY_MASK : Collation::ONLY_TERTIARY_MASK;
  194|    919|    }
_ZN6icu_7817CollationSettings27sortsTertiaryUpperCaseFirstEi:
  196|    163|    static UBool sortsTertiaryUpperCaseFirst(int32_t options) {
  197|       |        // On tertiary level, consider case bits and sort uppercase first
  198|       |        // if caseLevel is off and caseFirst==upperFirst.
  199|    163|        return (options & (CASE_LEVEL | CASE_FIRST_AND_UPPER_MASK)) == CASE_FIRST_AND_UPPER_MASK;
  200|    163|    }
_ZNK6icu_7817CollationSettings12dontCheckFCDEv:
  202|  7.87k|    inline UBool dontCheckFCD() const {
  203|  7.87k|        return (options & CHECK_FCD) == 0;
  204|  7.87k|    }
_ZNK6icu_7817CollationSettings9isNumericEv:
  210|  7.52k|    inline UBool isNumeric() const {
  211|  7.52k|        return (options & NUMERIC) != 0;
  212|  7.52k|    }

_ZN6icu_7818CollationTailoringC2EPKNS_17CollationSettingsE:
   36|    184|        : data(nullptr), settings(baseSettings),
   37|    184|          actualLocale(""),
   38|    184|          ownedData(nullptr),
   39|    184|          builder(nullptr), memory(nullptr), bundle(nullptr),
   40|    184|          trie(nullptr), unsafeBackwardSet(nullptr),
   41|    184|          maxExpansions(nullptr) {
   42|    184|    if(baseSettings != nullptr) {
  ------------------
  |  Branch (42:8): [True: 183, False: 1]
  ------------------
   43|    183|        U_ASSERT(baseSettings->reorderCodesLength == 0);
  ------------------
  |  |   35|    183|#   define U_ASSERT(exp) (void)0
  ------------------
   44|    183|        U_ASSERT(baseSettings->reorderTable == nullptr);
  ------------------
  |  |   35|    183|#   define U_ASSERT(exp) (void)0
  ------------------
   45|    183|        U_ASSERT(baseSettings->minHighNoReorder == 0);
  ------------------
  |  |   35|    183|#   define U_ASSERT(exp) (void)0
  ------------------
   46|    183|    } else {
   47|      1|        settings = new CollationSettings();
   48|      1|    }
   49|    184|    if(settings != nullptr) {
  ------------------
  |  Branch (49:8): [True: 184, False: 0]
  ------------------
   50|    184|        settings->addRef();
   51|    184|    }
   52|    184|    rules.getTerminatedBuffer();  // ensure NUL-termination
   53|    184|    version[0] = version[1] = version[2] = version[3] = 0;
   54|    184|    maxExpansionsInitOnce.reset();
   55|    184|}
_ZN6icu_7818CollationTailoringD2Ev:
   57|     79|CollationTailoring::~CollationTailoring() {
   58|     79|    SharedObject::clearPtr(settings);
   59|     79|    delete ownedData;
   60|     79|    delete builder;
   61|     79|    udata_close(memory);
  ------------------
  |  |  885|     79|#define udata_close U_ICU_ENTRY_POINT_RENAME(udata_close)
  |  |  ------------------
  |  |  |  |  123|     79|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     79|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     79|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   62|     79|    ures_close(bundle);
  ------------------
  |  | 1652|     79|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|     79|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     79|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     79|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   63|     79|    utrie2_close(trie);
  ------------------
  |  | 1961|     79|#define utrie2_close U_ICU_ENTRY_POINT_RENAME(utrie2_close)
  |  |  ------------------
  |  |  |  |  123|     79|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     79|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     79|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   64|     79|    delete unsafeBackwardSet;
   65|     79|    uhash_close(maxExpansions);
  ------------------
  |  |  991|     79|#define uhash_close U_ICU_ENTRY_POINT_RENAME(uhash_close)
  |  |  ------------------
  |  |  |  |  123|     79|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     79|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     79|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   66|     79|    maxExpansionsInitOnce.reset();
   67|     79|}
_ZN6icu_7818CollationTailoring15ensureOwnedDataER10UErrorCode:
   70|    159|CollationTailoring::ensureOwnedData(UErrorCode &errorCode) {
   71|    159|    if(U_FAILURE(errorCode)) { return false; }
  ------------------
  |  Branch (71:8): [True: 0, False: 159]
  ------------------
   72|    159|    if(ownedData == nullptr) {
  ------------------
  |  Branch (72:8): [True: 159, False: 0]
  ------------------
   73|    159|        const Normalizer2Impl *nfcImpl = Normalizer2Factory::getNFCImpl(errorCode);
   74|    159|        if(U_FAILURE(errorCode)) { return false; }
  ------------------
  |  Branch (74:12): [True: 0, False: 159]
  ------------------
   75|    159|        ownedData = new CollationData(*nfcImpl);
   76|    159|        if(ownedData == nullptr) {
  ------------------
  |  Branch (76:12): [True: 0, False: 159]
  ------------------
   77|      0|            errorCode = U_MEMORY_ALLOCATION_ERROR;
   78|      0|            return false;
   79|      0|        }
   80|    159|    }
   81|    159|    data = ownedData;
   82|    159|    return true;
   83|    159|}
_ZNK6icu_7818CollationTailoring13getUCAVersionEv:
  103|    360|CollationTailoring::getUCAVersion() const {
  104|    360|    return (static_cast<int32_t>(version[1]) << 4) | (version[2] >> 6);
  105|    360|}
_ZN6icu_7819CollationCacheEntryD2Ev:
  107|    108|CollationCacheEntry::~CollationCacheEntry() {
  108|    108|    SharedObject::clearPtr(tailoring);
  109|    108|}

_ZN6icu_7818CollationTailoring7isBogusEv:
   57|    184|    UBool isBogus() { return settings == nullptr; }
_ZN6icu_7819CollationCacheEntryC2ERKNS_6LocaleEPKNS_18CollationTailoringE:
   99|    247|            : validLocale(loc), tailoring(t) {
  100|    247|        if(t != nullptr) {
  ------------------
  |  Branch (100:12): [True: 247, False: 0]
  ------------------
  101|    247|            t->addRef();
  102|    247|        }
  103|    247|    }

_ZN6icu_7817RuleBasedCollatorC2EPKNS_19CollationCacheEntryE:
  186|  13.9k|        : data(entry->tailoring->data),
  187|  13.9k|          settings(entry->tailoring->settings),
  188|  13.9k|          tailoring(entry->tailoring),
  189|  13.9k|          cacheEntry(entry),
  190|  13.9k|          validLocale(entry->validLocale),
  191|  13.9k|          explicitlySetAttributes(0),
  192|  13.9k|          actualLocaleIsSameAsValid(false) {
  193|  13.9k|    settings->addRef();
  194|  13.9k|    cacheEntry->addRef();
  195|  13.9k|}
_ZN6icu_7817RuleBasedCollatorD2Ev:
  197|  13.9k|RuleBasedCollator::~RuleBasedCollator() {
  198|  13.9k|    SharedObject::clearPtr(settings);
  199|  13.9k|    SharedObject::clearPtr(cacheEntry);
  200|  13.9k|}
_ZNK6icu_7817RuleBasedCollator18getDefaultSettingsEv:
  407|  6.97k|RuleBasedCollator::getDefaultSettings() const {
  408|  6.97k|    return *tailoring->settings;
  409|  6.97k|}
_ZNK6icu_7817RuleBasedCollator12getAttributeE13UColAttributeR10UErrorCode:
  412|  8.15k|RuleBasedCollator::getAttribute(UColAttribute attr, UErrorCode &errorCode) const {
  413|  8.15k|    if(U_FAILURE(errorCode)) { return UCOL_DEFAULT; }
  ------------------
  |  Branch (413:8): [True: 0, False: 8.15k]
  ------------------
  414|  8.15k|    int32_t option;
  415|  8.15k|    switch(attr) {
  416|     39|    case UCOL_FRENCH_COLLATION:
  ------------------
  |  Branch (416:5): [True: 39, False: 8.11k]
  ------------------
  417|     39|        option = CollationSettings::BACKWARD_SECONDARY;
  418|     39|        break;
  419|      7|    case UCOL_ALTERNATE_HANDLING:
  ------------------
  |  Branch (419:5): [True: 7, False: 8.14k]
  ------------------
  420|      7|        return settings->getAlternateHandling();
  421|     20|    case UCOL_CASE_FIRST:
  ------------------
  |  Branch (421:5): [True: 20, False: 8.13k]
  ------------------
  422|     20|        return settings->getCaseFirst();
  423|     36|    case UCOL_CASE_LEVEL:
  ------------------
  |  Branch (423:5): [True: 36, False: 8.11k]
  ------------------
  424|     36|        option = CollationSettings::CASE_LEVEL;
  425|     36|        break;
  426|     41|    case UCOL_NORMALIZATION_MODE:
  ------------------
  |  Branch (426:5): [True: 41, False: 8.11k]
  ------------------
  427|     41|        option = CollationSettings::CHECK_FCD;
  428|     41|        break;
  429|  7.98k|    case UCOL_STRENGTH:
  ------------------
  |  Branch (429:5): [True: 7.98k, False: 171]
  ------------------
  430|  7.98k|        return static_cast<UColAttributeValue>(settings->getStrength());
  431|      0|    case UCOL_HIRAGANA_QUATERNARY_MODE:
  ------------------
  |  Branch (431:5): [True: 0, False: 8.15k]
  ------------------
  432|       |        // Deprecated attribute, unsettable.
  433|      0|        return UCOL_OFF;
  434|     28|    case UCOL_NUMERIC_COLLATION:
  ------------------
  |  Branch (434:5): [True: 28, False: 8.12k]
  ------------------
  435|     28|        option = CollationSettings::NUMERIC;
  436|     28|        break;
  437|      0|    default:
  ------------------
  |  Branch (437:5): [True: 0, False: 8.15k]
  ------------------
  438|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  439|      0|        return UCOL_DEFAULT;
  440|  8.15k|    }
  441|    144|    return ((settings->options & option) == 0) ? UCOL_OFF : UCOL_ON;
  ------------------
  |  Branch (441:12): [True: 142, False: 2]
  ------------------
  442|  8.15k|}
_ZN6icu_7817RuleBasedCollator12setAttributeE13UColAttribute18UColAttributeValueR10UErrorCode:
  446|  8.15k|                                UErrorCode &errorCode) {
  447|  8.15k|    UColAttributeValue oldValue = getAttribute(attr, errorCode);
  448|  8.15k|    if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (448:8): [True: 0, False: 8.15k]
  ------------------
  449|  8.15k|    if(value == oldValue) {
  ------------------
  |  Branch (449:8): [True: 1.37k, False: 6.77k]
  ------------------
  450|  1.37k|        setAttributeExplicitly(attr);
  451|  1.37k|        return;
  452|  1.37k|    }
  453|  6.77k|    const CollationSettings &defaultSettings = getDefaultSettings();
  454|  6.77k|    if(settings == &defaultSettings) {
  ------------------
  |  Branch (454:8): [True: 6.70k, False: 74]
  ------------------
  455|  6.70k|        if(value == UCOL_DEFAULT) {
  ------------------
  |  Branch (455:12): [True: 0, False: 6.70k]
  ------------------
  456|      0|            setAttributeDefault(attr);
  457|      0|            return;
  458|      0|        }
  459|  6.70k|    }
  460|  6.77k|    CollationSettings *ownedSettings = SharedObject::copyOnWrite(settings);
  461|  6.77k|    if(ownedSettings == nullptr) {
  ------------------
  |  Branch (461:8): [True: 0, False: 6.77k]
  ------------------
  462|      0|        errorCode = U_MEMORY_ALLOCATION_ERROR;
  463|      0|        return;
  464|      0|    }
  465|       |
  466|  6.77k|    switch(attr) {
  467|     39|    case UCOL_FRENCH_COLLATION:
  ------------------
  |  Branch (467:5): [True: 39, False: 6.73k]
  ------------------
  468|     39|        ownedSettings->setFlag(CollationSettings::BACKWARD_SECONDARY, value,
  469|     39|                               defaultSettings.options, errorCode);
  470|     39|        break;
  471|      7|    case UCOL_ALTERNATE_HANDLING:
  ------------------
  |  Branch (471:5): [True: 7, False: 6.77k]
  ------------------
  472|      7|        ownedSettings->setAlternateHandling(value, defaultSettings.options, errorCode);
  473|      7|        break;
  474|     20|    case UCOL_CASE_FIRST:
  ------------------
  |  Branch (474:5): [True: 20, False: 6.75k]
  ------------------
  475|     20|        ownedSettings->setCaseFirst(value, defaultSettings.options, errorCode);
  476|     20|        break;
  477|     36|    case UCOL_CASE_LEVEL:
  ------------------
  |  Branch (477:5): [True: 36, False: 6.74k]
  ------------------
  478|     36|        ownedSettings->setFlag(CollationSettings::CASE_LEVEL, value,
  479|     36|                               defaultSettings.options, errorCode);
  480|     36|        break;
  481|     39|    case UCOL_NORMALIZATION_MODE:
  ------------------
  |  Branch (481:5): [True: 39, False: 6.73k]
  ------------------
  482|     39|        ownedSettings->setFlag(CollationSettings::CHECK_FCD, value,
  483|     39|                               defaultSettings.options, errorCode);
  484|     39|        break;
  485|  6.60k|    case UCOL_STRENGTH:
  ------------------
  |  Branch (485:5): [True: 6.60k, False: 169]
  ------------------
  486|  6.60k|        ownedSettings->setStrength(value, defaultSettings.options, errorCode);
  487|  6.60k|        break;
  488|      0|    case UCOL_HIRAGANA_QUATERNARY_MODE:
  ------------------
  |  Branch (488:5): [True: 0, False: 6.77k]
  ------------------
  489|       |        // Deprecated attribute. Check for valid values but do not change anything.
  490|      0|        if(value != UCOL_OFF && value != UCOL_ON && value != UCOL_DEFAULT) {
  ------------------
  |  Branch (490:12): [True: 0, False: 0]
  |  Branch (490:33): [True: 0, False: 0]
  |  Branch (490:53): [True: 0, False: 0]
  ------------------
  491|      0|            errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  492|      0|        }
  493|      0|        break;
  494|     28|    case UCOL_NUMERIC_COLLATION:
  ------------------
  |  Branch (494:5): [True: 28, False: 6.74k]
  ------------------
  495|     28|        ownedSettings->setFlag(CollationSettings::NUMERIC, value, defaultSettings.options, errorCode);
  496|     28|        break;
  497|      0|    default:
  ------------------
  |  Branch (497:5): [True: 0, False: 6.77k]
  ------------------
  498|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  499|      0|        break;
  500|  6.77k|    }
  501|  6.77k|    if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (501:8): [True: 44, False: 6.73k]
  ------------------
  502|  6.73k|    setFastLatinOptions(*ownedSettings);
  503|  6.73k|    if(value == UCOL_DEFAULT) {
  ------------------
  |  Branch (503:8): [True: 0, False: 6.73k]
  ------------------
  504|      0|        setAttributeDefault(attr);
  505|  6.73k|    } else {
  506|  6.73k|        setAttributeExplicitly(attr);
  507|  6.73k|    }
  508|  6.73k|}
_ZN6icu_7817RuleBasedCollator14setMaxVariableE15UColReorderCodeR10UErrorCode:
  511|     16|RuleBasedCollator::setMaxVariable(UColReorderCode group, UErrorCode &errorCode) {
  512|     16|    if(U_FAILURE(errorCode)) { return *this; }
  ------------------
  |  Branch (512:8): [True: 0, False: 16]
  ------------------
  513|       |    // Convert the reorder code into a MaxVariable number, or UCOL_DEFAULT=-1.
  514|     16|    int32_t value;
  515|     16|    if(group == UCOL_REORDER_CODE_DEFAULT) {
  ------------------
  |  Branch (515:8): [True: 0, False: 16]
  ------------------
  516|      0|        value = UCOL_DEFAULT;
  517|     16|    } else if(UCOL_REORDER_CODE_FIRST <= group && group <= UCOL_REORDER_CODE_CURRENCY) {
  ------------------
  |  Branch (517:15): [True: 16, False: 0]
  |  Branch (517:51): [True: 15, False: 1]
  ------------------
  518|     15|        value = group - UCOL_REORDER_CODE_FIRST;
  519|     15|    } else {
  520|      1|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  521|      1|        return *this;
  522|      1|    }
  523|     15|    CollationSettings::MaxVariable oldValue = settings->getMaxVariable();
  524|     15|    if(value == oldValue) {
  ------------------
  |  Branch (524:8): [True: 2, False: 13]
  ------------------
  525|      2|        setAttributeExplicitly(ATTR_VARIABLE_TOP);
  526|      2|        return *this;
  527|      2|    }
  528|     13|    const CollationSettings &defaultSettings = getDefaultSettings();
  529|     13|    if(settings == &defaultSettings) {
  ------------------
  |  Branch (529:8): [True: 3, False: 10]
  ------------------
  530|      3|        if(value == UCOL_DEFAULT) {
  ------------------
  |  Branch (530:12): [True: 0, False: 3]
  ------------------
  531|      0|            setAttributeDefault(ATTR_VARIABLE_TOP);
  532|      0|            return *this;
  533|      0|        }
  534|      3|    }
  535|     13|    CollationSettings *ownedSettings = SharedObject::copyOnWrite(settings);
  536|     13|    if(ownedSettings == nullptr) {
  ------------------
  |  Branch (536:8): [True: 0, False: 13]
  ------------------
  537|      0|        errorCode = U_MEMORY_ALLOCATION_ERROR;
  538|      0|        return *this;
  539|      0|    }
  540|       |
  541|     13|    if(group == UCOL_REORDER_CODE_DEFAULT) {
  ------------------
  |  Branch (541:8): [True: 0, False: 13]
  ------------------
  542|      0|        group = static_cast<UColReorderCode>(
  543|      0|            UCOL_REORDER_CODE_FIRST + int32_t{defaultSettings.getMaxVariable()});
  544|      0|    }
  545|     13|    uint32_t varTop = data->getLastPrimaryForGroup(group);
  546|     13|    U_ASSERT(varTop != 0);
  ------------------
  |  |   35|     13|#   define U_ASSERT(exp) (void)0
  ------------------
  547|     13|    ownedSettings->setMaxVariable(value, defaultSettings.options, errorCode);
  548|     13|    if(U_FAILURE(errorCode)) { return *this; }
  ------------------
  |  Branch (548:8): [True: 0, False: 13]
  ------------------
  549|     13|    ownedSettings->variableTop = varTop;
  550|     13|    setFastLatinOptions(*ownedSettings);
  551|     13|    if(value == UCOL_DEFAULT) {
  ------------------
  |  Branch (551:8): [True: 0, False: 13]
  ------------------
  552|      0|        setAttributeDefault(ATTR_VARIABLE_TOP);
  553|     13|    } else {
  554|     13|        setAttributeExplicitly(ATTR_VARIABLE_TOP);
  555|     13|    }
  556|     13|    return *this;
  557|     13|}
_ZN6icu_7817RuleBasedCollator15setReorderCodesEPKiiR10UErrorCode:
  659|    187|                                   UErrorCode &errorCode) {
  660|    187|    if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (660:8): [True: 0, False: 187]
  ------------------
  661|    187|    if(length < 0 || (reorderCodes == nullptr && length > 0)) {
  ------------------
  |  Branch (661:8): [True: 0, False: 187]
  |  Branch (661:23): [True: 0, False: 187]
  |  Branch (661:50): [True: 0, False: 0]
  ------------------
  662|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  663|      0|        return;
  664|      0|    }
  665|    187|    if(length == 1 && reorderCodes[0] == UCOL_REORDER_CODE_NONE) {
  ------------------
  |  Branch (665:8): [True: 37, False: 150]
  |  Branch (665:23): [True: 2, False: 35]
  ------------------
  666|      2|        length = 0;
  667|      2|    }
  668|    187|    if(length == settings->reorderCodesLength &&
  ------------------
  |  Branch (668:8): [True: 11, False: 176]
  ------------------
  669|    187|            uprv_memcmp(reorderCodes, settings->reorderCodes, length * 4) == 0) {
  ------------------
  |  |  101|     11|#define uprv_memcmp(buffer1, buffer2, size) U_STANDARD_CPP_NAMESPACE memcmp(buffer1, buffer2,size)
  |  |  ------------------
  |  |  |  |  393|     11|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (669:13): [True: 1, False: 10]
  ------------------
  670|      1|        return;
  671|      1|    }
  672|    186|    const CollationSettings &defaultSettings = getDefaultSettings();
  673|    186|    if(length == 1 && reorderCodes[0] == UCOL_REORDER_CODE_DEFAULT) {
  ------------------
  |  Branch (673:8): [True: 35, False: 151]
  |  Branch (673:23): [True: 0, False: 35]
  ------------------
  674|      0|        if(settings != &defaultSettings) {
  ------------------
  |  Branch (674:12): [True: 0, False: 0]
  ------------------
  675|      0|            CollationSettings *ownedSettings = SharedObject::copyOnWrite(settings);
  676|      0|            if(ownedSettings == nullptr) {
  ------------------
  |  Branch (676:16): [True: 0, False: 0]
  ------------------
  677|      0|                errorCode = U_MEMORY_ALLOCATION_ERROR;
  678|      0|                return;
  679|      0|            }
  680|      0|            ownedSettings->copyReorderingFrom(defaultSettings, errorCode);
  681|      0|            setFastLatinOptions(*ownedSettings);
  682|      0|        }
  683|      0|        return;
  684|      0|    }
  685|    186|    CollationSettings *ownedSettings = SharedObject::copyOnWrite(settings);
  686|    186|    if(ownedSettings == nullptr) {
  ------------------
  |  Branch (686:8): [True: 0, False: 186]
  ------------------
  687|      0|        errorCode = U_MEMORY_ALLOCATION_ERROR;
  688|      0|        return;
  689|      0|    }
  690|    186|    ownedSettings->setReordering(*data, reorderCodes, length, errorCode);
  691|    186|    setFastLatinOptions(*ownedSettings);
  692|    186|}
_ZNK6icu_7817RuleBasedCollator19setFastLatinOptionsERNS_17CollationSettingsE:
  695|  6.93k|RuleBasedCollator::setFastLatinOptions(CollationSettings &ownedSettings) const {
  696|  6.93k|    ownedSettings.fastLatinOptions = CollationFastLatin::getOptions(
  697|  6.93k|            data, ownedSettings,
  698|  6.93k|            ownedSettings.fastLatinPrimaries, UPRV_LENGTHOF(ownedSettings.fastLatinPrimaries));
  ------------------
  |  |   99|  6.93k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  699|  6.93k|}
_ZNK6icu_7817RuleBasedCollator7compareEPKDsiS2_iR10UErrorCode:
  728|  7.96k|                           UErrorCode &errorCode) const {
  729|  7.96k|    if(U_FAILURE(errorCode)) { return UCOL_EQUAL; }
  ------------------
  |  Branch (729:8): [True: 0, False: 7.96k]
  ------------------
  730|  7.96k|    if((left == nullptr && leftLength != 0) || (right == nullptr && rightLength != 0)) {
  ------------------
  |  Branch (730:9): [True: 0, False: 7.96k]
  |  Branch (730:28): [True: 0, False: 0]
  |  Branch (730:49): [True: 0, False: 7.96k]
  |  Branch (730:69): [True: 0, False: 0]
  ------------------
  731|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  732|      0|        return UCOL_EQUAL;
  733|      0|    }
  734|       |    // Make sure both or neither strings have a known length.
  735|       |    // We do not optimize for mixed length/termination.
  736|  7.96k|    if(leftLength >= 0) {
  ------------------
  |  Branch (736:8): [True: 7.96k, False: 0]
  ------------------
  737|  7.96k|        if(rightLength < 0) { rightLength = u_strlen(right); }
  ------------------
  |  |  393|      0|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (737:12): [True: 0, False: 7.96k]
  ------------------
  738|  7.96k|    } else {
  739|      0|        if(rightLength >= 0) { leftLength = u_strlen(left); }
  ------------------
  |  |  393|      0|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (739:12): [True: 0, False: 0]
  ------------------
  740|      0|    }
  741|  7.96k|    return doCompare(left, leftLength, right, rightLength, errorCode);
  742|  7.96k|}
_ZNK6icu_7817RuleBasedCollator9doCompareEPKDsiS2_iR10UErrorCode:
  972|  7.96k|                             UErrorCode &errorCode) const {
  973|       |    // U_FAILURE(errorCode) checked by caller.
  974|  7.96k|    if(left == right && leftLength == rightLength) {
  ------------------
  |  Branch (974:8): [True: 0, False: 7.96k]
  |  Branch (974:25): [True: 0, False: 0]
  ------------------
  975|      0|        return UCOL_EQUAL;
  976|      0|    }
  977|       |
  978|       |    // Identical-prefix test.
  979|  7.96k|    const char16_t *leftLimit;
  980|  7.96k|    const char16_t *rightLimit;
  981|  7.96k|    int32_t equalPrefixLength = 0;
  982|  7.96k|    if(leftLength < 0) {
  ------------------
  |  Branch (982:8): [True: 0, False: 7.96k]
  ------------------
  983|      0|        leftLimit = nullptr;
  984|      0|        rightLimit = nullptr;
  985|      0|        char16_t c;
  986|      0|        while((c = left[equalPrefixLength]) == right[equalPrefixLength]) {
  ------------------
  |  Branch (986:15): [True: 0, False: 0]
  ------------------
  987|      0|            if(c == 0) { return UCOL_EQUAL; }
  ------------------
  |  Branch (987:16): [True: 0, False: 0]
  ------------------
  988|      0|            ++equalPrefixLength;
  989|      0|        }
  990|  7.96k|    } else {
  991|  7.96k|        leftLimit = left + leftLength;
  992|  7.96k|        rightLimit = right + rightLength;
  993|  20.2k|        for(;;) {
  994|  20.2k|            if(equalPrefixLength == leftLength) {
  ------------------
  |  Branch (994:16): [True: 446, False: 19.8k]
  ------------------
  995|    446|                if(equalPrefixLength == rightLength) { return UCOL_EQUAL; }
  ------------------
  |  Branch (995:20): [True: 446, False: 0]
  ------------------
  996|      0|                break;
  997|  19.8k|            } else if(equalPrefixLength == rightLength ||
  ------------------
  |  Branch (997:23): [True: 0, False: 19.8k]
  ------------------
  998|  19.8k|                      left[equalPrefixLength] != right[equalPrefixLength]) {
  ------------------
  |  Branch (998:23): [True: 7.52k, False: 12.3k]
  ------------------
  999|  7.52k|                break;
 1000|  7.52k|            }
 1001|  12.3k|            ++equalPrefixLength;
 1002|  12.3k|        }
 1003|  7.96k|    }
 1004|       |
 1005|  7.52k|    UBool numeric = settings->isNumeric();
 1006|  7.52k|    if(equalPrefixLength > 0) {
  ------------------
  |  Branch (1006:8): [True: 1.01k, False: 6.50k]
  ------------------
 1007|  1.01k|        if((equalPrefixLength != leftLength &&
  ------------------
  |  Branch (1007:13): [True: 1.01k, False: 0]
  ------------------
 1008|  1.01k|                    data->isUnsafeBackward(left[equalPrefixLength], numeric)) ||
  ------------------
  |  Branch (1008:21): [True: 696, False: 319]
  ------------------
 1009|  1.01k|                (equalPrefixLength != rightLength &&
  ------------------
  |  Branch (1009:18): [True: 319, False: 0]
  ------------------
 1010|    856|                    data->isUnsafeBackward(right[equalPrefixLength], numeric))) {
  ------------------
  |  Branch (1010:21): [True: 160, False: 159]
  ------------------
 1011|       |            // Identical prefix: Back up to the start of a contraction or reordering sequence.
 1012|  7.85k|            while(--equalPrefixLength > 0 &&
  ------------------
  |  Branch (1012:19): [True: 7.02k, False: 826]
  ------------------
 1013|  7.85k|                    data->isUnsafeBackward(left[equalPrefixLength], numeric)) {}
  ------------------
  |  Branch (1013:21): [True: 6.99k, False: 30]
  ------------------
 1014|    856|        }
 1015|       |        // Notes:
 1016|       |        // - A longer string can compare equal to a prefix of it if only ignorables follow.
 1017|       |        // - With a backward level, a longer string can compare less-than a prefix of it.
 1018|       |
 1019|       |        // Pass the actual start of each string into the CollationIterators,
 1020|       |        // plus the equalPrefixLength position,
 1021|       |        // so that prefix matches back into the equal prefix work.
 1022|  1.01k|    }
 1023|       |
 1024|  7.52k|    int32_t result;
 1025|  7.52k|    int32_t fastLatinOptions = settings->fastLatinOptions;
 1026|  7.52k|    if(fastLatinOptions >= 0 &&
  ------------------
  |  Branch (1026:8): [True: 7.47k, False: 49]
  ------------------
 1027|  7.52k|            (equalPrefixLength == leftLength ||
  ------------------
  |  Branch (1027:14): [True: 0, False: 7.47k]
  ------------------
 1028|  7.47k|                left[equalPrefixLength] <= CollationFastLatin::LATIN_MAX) &&
  ------------------
  |  Branch (1028:17): [True: 1.28k, False: 6.18k]
  ------------------
 1029|  7.52k|            (equalPrefixLength == rightLength ||
  ------------------
  |  Branch (1029:14): [True: 0, False: 1.28k]
  ------------------
 1030|  1.28k|                right[equalPrefixLength] <= CollationFastLatin::LATIN_MAX)) {
  ------------------
  |  Branch (1030:17): [True: 820, False: 468]
  ------------------
 1031|    820|        if(leftLength >= 0) {
  ------------------
  |  Branch (1031:12): [True: 820, False: 0]
  ------------------
 1032|    820|            result = CollationFastLatin::compareUTF16(data->fastLatinTable,
 1033|    820|                                                      settings->fastLatinPrimaries,
 1034|    820|                                                      fastLatinOptions,
 1035|    820|                                                      left + equalPrefixLength,
 1036|    820|                                                      leftLength - equalPrefixLength,
 1037|    820|                                                      right + equalPrefixLength,
 1038|    820|                                                      rightLength - equalPrefixLength);
 1039|    820|        } else {
 1040|      0|            result = CollationFastLatin::compareUTF16(data->fastLatinTable,
 1041|      0|                                                      settings->fastLatinPrimaries,
 1042|      0|                                                      fastLatinOptions,
 1043|      0|                                                      left + equalPrefixLength, -1,
 1044|      0|                                                      right + equalPrefixLength, -1);
 1045|      0|        }
 1046|  6.70k|    } else {
 1047|  6.70k|        result = CollationFastLatin::BAIL_OUT_RESULT;
 1048|  6.70k|    }
 1049|       |
 1050|  7.52k|    if(result == CollationFastLatin::BAIL_OUT_RESULT) {
  ------------------
  |  Branch (1050:8): [True: 7.07k, False: 443]
  ------------------
 1051|  7.07k|        if(settings->dontCheckFCD()) {
  ------------------
  |  Branch (1051:12): [True: 4.51k, False: 2.56k]
  ------------------
 1052|  4.51k|            UTF16CollationIterator leftIter(data, numeric,
 1053|  4.51k|                                            left, left + equalPrefixLength, leftLimit);
 1054|  4.51k|            UTF16CollationIterator rightIter(data, numeric,
 1055|  4.51k|                                            right, right + equalPrefixLength, rightLimit);
 1056|  4.51k|            result = CollationCompare::compareUpToQuaternary(leftIter, rightIter, *settings, errorCode);
 1057|  4.51k|        } else {
 1058|  2.56k|            FCDUTF16CollationIterator leftIter(data, numeric,
 1059|  2.56k|                                              left, left + equalPrefixLength, leftLimit);
 1060|  2.56k|            FCDUTF16CollationIterator rightIter(data, numeric,
 1061|  2.56k|                                                right, right + equalPrefixLength, rightLimit);
 1062|  2.56k|            result = CollationCompare::compareUpToQuaternary(leftIter, rightIter, *settings, errorCode);
 1063|  2.56k|        }
 1064|  7.07k|    }
 1065|  7.52k|    if(result != UCOL_EQUAL || settings->getStrength() < UCOL_IDENTICAL || U_FAILURE(errorCode)) {
  ------------------
  |  Branch (1065:8): [True: 6.50k, False: 1.01k]
  |  Branch (1065:32): [True: 221, False: 796]
  |  Branch (1065:76): [True: 0, False: 796]
  ------------------
 1066|  6.72k|        return static_cast<UCollationResult>(result);
 1067|  6.72k|    }
 1068|       |
 1069|       |    // Note: If NUL-terminated, we could get the actual limits from the iterators now.
 1070|       |    // That would complicate the iterators a bit, NUL-terminated strings are only a C convenience,
 1071|       |    // and the benefit seems unlikely to be measurable.
 1072|       |
 1073|       |    // Compare identical level.
 1074|    796|    const Normalizer2Impl &nfcImpl = data->nfcImpl;
 1075|    796|    left += equalPrefixLength;
 1076|    796|    right += equalPrefixLength;
 1077|    796|    if(settings->dontCheckFCD()) {
  ------------------
  |  Branch (1077:8): [True: 229, False: 567]
  ------------------
 1078|    229|        UTF16NFDIterator leftIter(left, leftLimit);
 1079|    229|        UTF16NFDIterator rightIter(right, rightLimit);
 1080|    229|        return compareNFDIter(nfcImpl, leftIter, rightIter);
 1081|    567|    } else {
 1082|    567|        FCDUTF16NFDIterator leftIter(nfcImpl, left, leftLimit);
 1083|    567|        FCDUTF16NFDIterator rightIter(nfcImpl, right, rightLimit);
 1084|    567|        return compareNFDIter(nfcImpl, leftIter, rightIter);
 1085|    567|    }
 1086|    796|}
rulebasedcollator.cpp:_ZN6icu_7812_GLOBAL__N_116UTF16NFDIteratorC2EPKDsS3_:
  833|  1.59k|    UTF16NFDIterator(const char16_t *text, const char16_t *textLimit) : s(text), limit(textLimit) {}
rulebasedcollator.cpp:_ZN6icu_7812_GLOBAL__N_111NFDIteratorC2Ev:
  785|  1.59k|    NFDIterator() : index(-1), length(0) {}
rulebasedcollator.cpp:_ZN6icu_7812_GLOBAL__N_116UTF16NFDIterator16nextRawCodePointEv:
  835|  21.3k|    virtual UChar32 nextRawCodePoint() override {
  836|  21.3k|        if(s == limit) { return U_SENTINEL; }
  ------------------
  |  |  469|    308|#define U_SENTINEL (-1)
  ------------------
  |  Branch (836:12): [True: 308, False: 21.0k]
  ------------------
  837|  21.0k|        UChar32 c = *s++;
  838|  21.0k|        if(limit == nullptr && c == 0) {
  ------------------
  |  Branch (838:12): [True: 0, False: 21.0k]
  |  Branch (838:32): [True: 0, False: 0]
  ------------------
  839|      0|            s = nullptr;
  840|      0|            return U_SENTINEL;
  ------------------
  |  |  469|      0|#define U_SENTINEL (-1)
  ------------------
  841|      0|        }
  842|  21.0k|        char16_t trail;
  843|  21.0k|        if(U16_IS_LEAD(c) && s != limit && U16_IS_TRAIL(trail = *s)) {
  ------------------
  |  |   59|  42.0k|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 1.04k, False: 19.9k]
  |  |  ------------------
  ------------------
                      if(U16_IS_LEAD(c) && s != limit && U16_IS_TRAIL(trail = *s)) {
  ------------------
  |  |   67|  1.03k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 803, False: 233]
  |  |  ------------------
  ------------------
  |  Branch (843:30): [True: 1.03k, False: 6]
  ------------------
  844|    803|            ++s;
  845|    803|            c = U16_GET_SUPPLEMENTARY(c, trail);
  ------------------
  |  |  113|    803|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  ------------------
  |  |  |  |   99|    803|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  ------------------
  ------------------
  846|    803|        }
  847|  21.0k|        return c;
  848|  21.0k|    }
rulebasedcollator.cpp:_ZN6icu_7812_GLOBAL__N_114compareNFDIterERKNS_15Normalizer2ImplERNS0_11NFDIteratorES5_:
  937|    796|                                NFDIterator &left, NFDIterator &right) {
  938|  10.7k|    for(;;) {
  939|       |        // Fetch the next FCD code point from each string.
  940|  10.7k|        UChar32 leftCp = left.nextCodePoint();
  941|  10.7k|        UChar32 rightCp = right.nextCodePoint();
  942|  10.7k|        if(leftCp == rightCp) {
  ------------------
  |  Branch (942:12): [True: 8.61k, False: 2.12k]
  ------------------
  943|  8.61k|            if(leftCp < 0) { break; }
  ------------------
  |  Branch (943:16): [True: 142, False: 8.47k]
  ------------------
  944|  8.47k|            continue;
  945|  8.61k|        }
  946|       |        // If they are different, then decompose each and compare again.
  947|  2.12k|        if(leftCp < 0) {
  ------------------
  |  Branch (947:12): [True: 6, False: 2.11k]
  ------------------
  948|      6|            leftCp = -2;  // end of string
  949|  2.11k|        } else if(leftCp == 0xfffe) {
  ------------------
  |  Branch (949:19): [True: 1, False: 2.11k]
  ------------------
  950|      1|            leftCp = -1;  // U+FFFE: merge separator
  951|  2.11k|        } else {
  952|  2.11k|            leftCp = left.nextDecomposedCodePoint(nfcImpl, leftCp);
  953|  2.11k|        }
  954|  2.12k|        if(rightCp < 0) {
  ------------------
  |  Branch (954:12): [True: 18, False: 2.10k]
  ------------------
  955|     18|            rightCp = -2;  // end of string
  956|  2.10k|        } else if(rightCp == 0xfffe) {
  ------------------
  |  Branch (956:19): [True: 2, False: 2.10k]
  ------------------
  957|      2|            rightCp = -1;  // U+FFFE: merge separator
  958|  2.10k|        } else {
  959|  2.10k|            rightCp = right.nextDecomposedCodePoint(nfcImpl, rightCp);
  960|  2.10k|        }
  961|  2.12k|        if(leftCp < rightCp) { return UCOL_LESS; }
  ------------------
  |  Branch (961:12): [True: 273, False: 1.84k]
  ------------------
  962|  1.84k|        if(leftCp > rightCp) { return UCOL_GREATER; }
  ------------------
  |  Branch (962:12): [True: 381, False: 1.46k]
  ------------------
  963|  1.84k|    }
  964|    142|    return UCOL_EQUAL;
  965|    796|}
rulebasedcollator.cpp:_ZN6icu_7812_GLOBAL__N_111NFDIterator13nextCodePointEv:
  792|  21.4k|    UChar32 nextCodePoint() {
  793|  21.4k|        if(index >= 0) {
  ------------------
  |  Branch (793:12): [True: 1.59k, False: 19.8k]
  ------------------
  794|  1.59k|            if(index == length) {
  ------------------
  |  Branch (794:16): [True: 1.46k, False: 134]
  ------------------
  795|  1.46k|                index = -1;
  796|  1.46k|            } else {
  797|    134|                UChar32 c;
  798|    134|                U16_NEXT_UNSAFE(decomp, index, c);
  ------------------
  |  |  281|    134|#define U16_NEXT_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    134|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  282|    134|    (c)=(s)[(i)++]; \
  |  |  283|    134|    if(U16_IS_LEAD(c)) { \
  |  |  ------------------
  |  |  |  |   59|    134|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (59:24): [True: 97, False: 37]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  284|     97|        (c)=U16_GET_SUPPLEMENTARY((c), (s)[(i)++]); \
  |  |  ------------------
  |  |  |  |  113|     97|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |   99|     97|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  285|     97|    } \
  |  |  286|    134|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    134|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  799|    134|                return c;
  800|    134|            }
  801|  1.59k|        }
  802|  21.3k|        return nextRawCodePoint();
  803|  21.4k|    }
rulebasedcollator.cpp:_ZN6icu_7812_GLOBAL__N_111NFDIterator23nextDecomposedCodePointERKNS_15Normalizer2ImplEi:
  810|  4.21k|    UChar32 nextDecomposedCodePoint(const Normalizer2Impl &nfcImpl, UChar32 c) {
  811|  4.21k|        if(index >= 0) { return c; }
  ------------------
  |  Branch (811:12): [True: 40, False: 4.17k]
  ------------------
  812|  4.17k|        decomp = nfcImpl.getDecomposition(c, buffer, length);
  813|  4.17k|        if(decomp == nullptr) { return c; }
  ------------------
  |  Branch (813:12): [True: 2.62k, False: 1.54k]
  ------------------
  814|  1.54k|        index = 0;
  815|  1.54k|        U16_NEXT_UNSAFE(decomp, index, c);
  ------------------
  |  |  281|  1.54k|#define U16_NEXT_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  1.54k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  282|  1.54k|    (c)=(s)[(i)++]; \
  |  |  283|  1.54k|    if(U16_IS_LEAD(c)) { \
  |  |  ------------------
  |  |  |  |   59|  1.54k|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (59:24): [True: 68, False: 1.48k]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  284|     68|        (c)=U16_GET_SUPPLEMENTARY((c), (s)[(i)++]); \
  |  |  ------------------
  |  |  |  |  113|     68|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |   99|     68|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  285|     68|    } \
  |  |  286|  1.54k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  1.54k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  816|  1.54k|        return c;
  817|  4.17k|    }
rulebasedcollator.cpp:_ZN6icu_7812_GLOBAL__N_119FCDUTF16NFDIteratorC2ERKNS_15Normalizer2ImplEPKDsS6_:
  857|  1.13k|            : UTF16NFDIterator(nullptr, nullptr) {
  858|  1.13k|        UErrorCode errorCode = U_ZERO_ERROR;
  859|  1.13k|        const char16_t *spanLimit = nfcImpl.makeFCD(text, textLimit, nullptr, errorCode);
  860|  1.13k|        if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (860:12): [True: 0, False: 1.13k]
  ------------------
  861|  1.13k|        if(spanLimit == textLimit || (textLimit == nullptr && *spanLimit == 0)) {
  ------------------
  |  Branch (861:12): [True: 406, False: 728]
  |  Branch (861:39): [True: 0, False: 728]
  |  Branch (861:63): [True: 0, False: 0]
  ------------------
  862|    406|            s = text;
  863|    406|            limit = spanLimit;
  864|    728|        } else {
  865|    728|            str.setTo(text, static_cast<int32_t>(spanLimit - text));
  866|    728|            {
  867|    728|                ReorderingBuffer r_buffer(nfcImpl, str);
  868|    728|                if(r_buffer.init(str.length(), errorCode)) {
  ------------------
  |  Branch (868:20): [True: 728, False: 0]
  ------------------
  869|    728|                    nfcImpl.makeFCD(spanLimit, textLimit, &r_buffer, errorCode);
  870|    728|                }
  871|    728|            }
  872|    728|            if(U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (872:16): [True: 728, False: 0]
  ------------------
  873|    728|                s = str.getBuffer();
  874|    728|                limit = s + str.length();
  875|    728|            }
  876|    728|        }
  877|  1.13k|    }

ucln_i18n_registerCleanup_78:
   52|      1|                               cleanupFunc *func) {
   53|      1|    U_ASSERT(UCLN_I18N_START < type && type < UCLN_I18N_COUNT);
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
   54|      1|    {
   55|      1|        icu::Mutex m;   // See ticket 10295 for discussion.
   56|      1|        ucln_registerCleanup(UCLN_I18N, i18n_cleanup);
  ------------------
  |  |  621|      1|#define ucln_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   57|      1|        if (UCLN_I18N_START < type && type < UCLN_I18N_COUNT) {
  ------------------
  |  Branch (57:13): [True: 1, False: 0]
  |  Branch (57:39): [True: 1, False: 0]
  ------------------
   58|      1|            gCleanupFunctions[type] = func;
   59|      1|        }
   60|      1|    }
   61|       |#if !UCLN_NO_AUTO_CLEANUP && (defined(UCLN_AUTO_ATEXIT) || defined(UCLN_AUTO_LOCAL))
   62|       |    ucln_registerAutomaticCleanup();
   63|       |#endif
   64|      1|}

_ZNK6icu_7814LocaleCacheKeyINS_19CollationCacheEntryEE12createObjectEPKvR10UErrorCode:
  140|  6.59k|                                                  UErrorCode &errorCode) const {
  141|  6.59k|    CollationLoader *loader =
  142|  6.59k|            reinterpret_cast<CollationLoader *>(
  143|  6.59k|                    const_cast<void *>(creationContext));
  144|  6.59k|    return loader->createCacheEntry(errorCode);
  145|  6.59k|}
_ZN6icu_7815CollationLoader13loadTailoringERKNS_6LocaleER10UErrorCode:
  148|  14.3k|CollationLoader::loadTailoring(const Locale &locale, UErrorCode &errorCode) {
  149|  14.3k|    const CollationCacheEntry *rootEntry = CollationRoot::getRootCacheEntry(errorCode);
  150|  14.3k|    if(U_FAILURE(errorCode)) { return nullptr; }
  ------------------
  |  Branch (150:8): [True: 0, False: 14.3k]
  ------------------
  151|  14.3k|    const char *name = locale.getName();
  152|  14.3k|    if(*name == 0 || uprv_strcmp(name, "root") == 0) {
  ------------------
  |  |   38|  13.8k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  13.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (152:8): [True: 545, False: 13.8k]
  |  Branch (152:22): [True: 1, False: 13.8k]
  ------------------
  153|       |
  154|       |        // Have to add a ref.
  155|    546|        rootEntry->addRef();
  156|    546|        return rootEntry;
  157|    546|    }
  158|       |
  159|       |    // Clear warning codes before loading where they get cached.
  160|  13.8k|    errorCode = U_ZERO_ERROR;
  161|  13.8k|    CollationLoader loader(rootEntry, locale, errorCode);
  162|       |
  163|       |    // getCacheEntry adds a ref for us.
  164|  13.8k|    return loader.getCacheEntry(errorCode);
  165|  14.3k|}
_ZN6icu_7815CollationLoaderC2EPKNS_19CollationCacheEntryERKNS_6LocaleER10UErrorCode:
  169|  13.8k|        : cache(UnifiedCache::getInstance(errorCode)), rootEntry(re),
  170|  13.8k|          validLocale(re->validLocale), locale(requested),
  171|  13.8k|          typesTried(0), typeFallback(false),
  172|  13.8k|          bundle(nullptr), collations(nullptr), data(nullptr) {
  173|  13.8k|    type[0] = 0;
  174|  13.8k|    defaultType[0] = 0;
  175|  13.8k|    if(U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (175:8): [True: 0, False: 13.8k]
  ------------------
  176|       |
  177|  13.8k|    if (locale.isBogus()) {
  ------------------
  |  Branch (177:9): [True: 0, False: 13.8k]
  ------------------
  178|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  179|      0|        return;
  180|      0|    }
  181|       |    // Canonicalize the locale ID: Ignore all irrelevant keywords.
  182|  13.8k|    const char *baseName = locale.getBaseName();
  183|  13.8k|    if(uprv_strcmp(locale.getName(), baseName) != 0) {
  ------------------
  |  |   38|  13.8k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  13.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (183:8): [True: 2.24k, False: 11.5k]
  ------------------
  184|  2.24k|        locale = Locale(baseName);
  185|       |        // Due to ICU-22416, we may have bogus locale constructed from
  186|       |        // a string of getBaseName().
  187|  2.24k|        if (locale.isBogus()) {
  ------------------
  |  Branch (187:13): [True: 1, False: 2.24k]
  ------------------
  188|      1|            errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  189|      1|            return;
  190|      1|        }
  191|       |
  192|       |        // Fetch the collation type from the locale ID.
  193|  2.24k|        int32_t typeLength = requested.getKeywordValue("collation",
  194|  2.24k|                type, UPRV_LENGTHOF(type) - 1, errorCode);
  ------------------
  |  |   99|  2.24k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  195|  2.24k|        if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (195:12): [True: 387, False: 1.85k]
  ------------------
  196|    387|            errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  197|    387|            return;
  198|    387|        }
  199|  1.85k|        type[typeLength] = 0;  // in case of U_NOT_TERMINATED_WARNING
  200|  1.85k|        if(typeLength == 0) {
  ------------------
  |  Branch (200:12): [True: 1.39k, False: 466]
  ------------------
  201|       |            // No collation type.
  202|  1.39k|        } else if(uprv_stricmp(type, "default") == 0) {
  ------------------
  |  | 1542|    466|#define uprv_stricmp U_ICU_ENTRY_POINT_RENAME(uprv_stricmp)
  |  |  ------------------
  |  |  |  |  123|    466|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    466|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    466|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (202:19): [True: 1, False: 465]
  ------------------
  203|       |            // Ignore "default" (case-insensitive).
  204|      1|            type[0] = 0;
  205|    465|        } else {
  206|       |            // Copy the collation type.
  207|    465|            T_CString_toLowerCase(type);
  ------------------
  |  |   69|    465|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  123|    465|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    465|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    465|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  208|    465|            locale.setKeywordValue("collation", type, errorCode);
  209|    465|        }
  210|  1.85k|    }
  211|  13.8k|}
_ZN6icu_7815CollationLoaderD2Ev:
  213|  13.8k|CollationLoader::~CollationLoader() {
  214|  13.8k|    ures_close(data);
  ------------------
  |  | 1652|  13.8k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  13.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  215|  13.8k|    ures_close(collations);
  ------------------
  |  | 1652|  13.8k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  13.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  216|  13.8k|    ures_close(bundle);
  ------------------
  |  | 1652|  13.8k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  13.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  217|  13.8k|}
_ZN6icu_7815CollationLoader16createCacheEntryER10UErrorCode:
  220|  6.59k|CollationLoader::createCacheEntry(UErrorCode &errorCode) {
  221|       |    // This is a linear lookup and fallback flow turned into a state machine.
  222|       |    // Most local variables have been turned into instance fields.
  223|       |    // In a cache miss, cache.get() calls CacheKey::createObject(),
  224|       |    // which means that we progress via recursion.
  225|       |    // loadFromCollations() will recurse to itself as well for collation type fallback.
  226|  6.59k|    if(bundle == nullptr) {
  ------------------
  |  Branch (226:8): [True: 5.87k, False: 726]
  ------------------
  227|  5.87k|        return loadFromLocale(errorCode);
  228|  5.87k|    } else if(collations == nullptr) {
  ------------------
  |  Branch (228:15): [True: 463, False: 263]
  ------------------
  229|    463|        return loadFromBundle(errorCode);
  230|    463|    } else if(data == nullptr) {
  ------------------
  |  Branch (230:15): [True: 249, False: 14]
  ------------------
  231|    249|        return loadFromCollations(errorCode);
  232|    249|    } else {
  233|     14|        return loadFromData(errorCode);
  234|     14|    }
  235|  6.59k|}
_ZN6icu_7815CollationLoader14loadFromLocaleER10UErrorCode:
  238|  5.87k|CollationLoader::loadFromLocale(UErrorCode &errorCode) {
  239|  5.87k|    if(U_FAILURE(errorCode)) { return nullptr; }
  ------------------
  |  Branch (239:8): [True: 0, False: 5.87k]
  ------------------
  240|  5.87k|    U_ASSERT(bundle == nullptr);
  ------------------
  |  |   35|  5.87k|#   define U_ASSERT(exp) (void)0
  ------------------
  241|  5.87k|    bundle = ures_openNoDefault(U_ICUDATA_COLL, locale.getBaseName(), &errorCode);
  ------------------
  |  | 1696|  5.87k|#define ures_openNoDefault U_ICU_ENTRY_POINT_RENAME(ures_openNoDefault)
  |  |  ------------------
  |  |  |  |  123|  5.87k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.87k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.87k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  bundle = ures_openNoDefault(U_ICUDATA_COLL, locale.getBaseName(), &errorCode);
  ------------------
  |  |   53|  5.87k|#define U_ICUDATA_COLL U_ICUDATA_NAME U_TREE_SEPARATOR_STRING "coll"
  |  |  ------------------
  |  |  |  |  154|  5.87k|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  ------------------
  242|  5.87k|    if(errorCode == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (242:8): [True: 0, False: 5.87k]
  ------------------
  243|      0|        errorCode = U_USING_DEFAULT_WARNING;
  244|       |
  245|       |        // Have to add that ref that we promise.
  246|      0|        rootEntry->addRef();
  247|      0|        return rootEntry;
  248|      0|    }
  249|  5.87k|    Locale requestedLocale(locale);
  250|  5.87k|    const char *vLocale = ures_getLocaleByType(bundle, ULOC_ACTUAL_LOCALE, &errorCode);
  ------------------
  |  | 1669|  5.87k|#define ures_getLocaleByType U_ICU_ENTRY_POINT_RENAME(ures_getLocaleByType)
  |  |  ------------------
  |  |  |  |  123|  5.87k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.87k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.87k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  251|  5.87k|    if(U_FAILURE(errorCode)) { return nullptr; }
  ------------------
  |  Branch (251:8): [True: 3, False: 5.86k]
  ------------------
  252|  5.86k|    locale = validLocale = Locale(vLocale);  // no type until loadFromCollations()
  253|  5.86k|    if(type[0] != 0) {
  ------------------
  |  Branch (253:8): [True: 446, False: 5.42k]
  ------------------
  254|    446|        locale.setKeywordValue("collation", type, errorCode);
  255|    446|    }
  256|  5.86k|    if(locale != requestedLocale) {
  ------------------
  |  Branch (256:8): [True: 5.33k, False: 537]
  ------------------
  257|  5.33k|        return getCacheEntry(errorCode);
  258|  5.33k|    } else {
  259|    537|        return loadFromBundle(errorCode);
  260|    537|    }
  261|  5.86k|}
_ZN6icu_7815CollationLoader14loadFromBundleER10UErrorCode:
  264|  1.00k|CollationLoader::loadFromBundle(UErrorCode &errorCode) {
  265|  1.00k|    if(U_FAILURE(errorCode)) { return nullptr; }
  ------------------
  |  Branch (265:8): [True: 0, False: 1.00k]
  ------------------
  266|  1.00k|    U_ASSERT(collations == nullptr);
  ------------------
  |  |   35|  1.00k|#   define U_ASSERT(exp) (void)0
  ------------------
  267|       |    // There are zero or more tailorings in the collations table.
  268|  1.00k|    collations = ures_getByKey(bundle, "collations", nullptr, &errorCode);
  ------------------
  |  | 1661|  1.00k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  1.00k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.00k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.00k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  269|  1.00k|    if(errorCode == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (269:8): [True: 0, False: 1.00k]
  ------------------
  270|      0|        errorCode = U_USING_DEFAULT_WARNING;
  271|       |        // Return the root tailoring with the validLocale, without collation type.
  272|      0|        return makeCacheEntryFromRoot(validLocale, errorCode);
  273|      0|    }
  274|  1.00k|    if(U_FAILURE(errorCode)) { return nullptr; }
  ------------------
  |  Branch (274:8): [True: 0, False: 1.00k]
  ------------------
  275|       |
  276|       |    // Fetch the default type from the data.
  277|  1.00k|    {
  278|  1.00k|        UErrorCode internalErrorCode = U_ZERO_ERROR;
  279|  1.00k|        LocalUResourceBundlePointer def(
  280|  1.00k|                ures_getByKeyWithFallback(collations, "default", nullptr, &internalErrorCode));
  ------------------
  |  | 1662|  1.00k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  1.00k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.00k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.00k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  281|  1.00k|        int32_t length;
  282|  1.00k|        const char16_t *s = ures_getString(def.getAlias(), &length, &internalErrorCode);
  ------------------
  |  | 1675|  1.00k|#define ures_getString U_ICU_ENTRY_POINT_RENAME(ures_getString)
  |  |  ------------------
  |  |  |  |  123|  1.00k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.00k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.00k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  283|  1.00k|        if(U_SUCCESS(internalErrorCode) && 0 < length && length < UPRV_LENGTHOF(defaultType)) {
  ------------------
  |  |   99|  1.00k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (283:12): [True: 1.00k, False: 0]
  |  Branch (283:44): [True: 1.00k, False: 0]
  |  Branch (283:58): [True: 1.00k, False: 0]
  ------------------
  284|  1.00k|            u_UCharsToChars(s, defaultType, length + 1);
  ------------------
  |  |  211|  1.00k|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|  1.00k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.00k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.00k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  285|  1.00k|        } else {
  286|      0|            uprv_strcpy(defaultType, "standard");
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  287|      0|        }
  288|  1.00k|    }
  289|       |
  290|       |    // Record which collation types we have looked for already,
  291|       |    // so that we do not deadlock in the cache.
  292|       |    //
  293|       |    // If there is no explicit type, then we look in the cache
  294|       |    // for the entry with the default type.
  295|       |    // If the explicit type is the default type, then we do not look in the cache
  296|       |    // for the entry with an empty type.
  297|       |    // Otherwise, two concurrent requests with opposite fallbacks would deadlock each other.
  298|       |    // Also, it is easier to always enter the next method with a non-empty type.
  299|  1.00k|    if(type[0] == 0) {
  ------------------
  |  Branch (299:8): [True: 652, False: 348]
  ------------------
  300|    652|        uprv_strcpy(type, defaultType);
  ------------------
  |  |   36|    652|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|    652|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  301|    652|        typesTried |= TRIED_DEFAULT;
  302|    652|        if(uprv_strcmp(type, "search") == 0) {
  ------------------
  |  |   38|    652|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    652|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (302:12): [True: 0, False: 652]
  ------------------
  303|      0|            typesTried |= TRIED_SEARCH;
  304|      0|        }
  305|    652|        if(uprv_strcmp(type, "standard") == 0) {
  ------------------
  |  |   38|    652|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    652|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (305:12): [True: 612, False: 40]
  ------------------
  306|    612|            typesTried |= TRIED_STANDARD;
  307|    612|        }
  308|    652|        locale.setKeywordValue("collation", type, errorCode);
  309|    652|        return getCacheEntry(errorCode);
  310|    652|    } else {
  311|    348|        if(uprv_strcmp(type, defaultType) == 0) {
  ------------------
  |  |   38|    348|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    348|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (311:12): [True: 0, False: 348]
  ------------------
  312|      0|            typesTried |= TRIED_DEFAULT;
  313|      0|        }
  314|    348|        if(uprv_strcmp(type, "search") == 0) {
  ------------------
  |  |   38|    348|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    348|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (314:12): [True: 4, False: 344]
  ------------------
  315|      4|            typesTried |= TRIED_SEARCH;
  316|      4|        }
  317|    348|        if(uprv_strcmp(type, "standard") == 0) {
  ------------------
  |  |   38|    348|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    348|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (317:12): [True: 1, False: 347]
  ------------------
  318|      1|            typesTried |= TRIED_STANDARD;
  319|      1|        }
  320|    348|        return loadFromCollations(errorCode);
  321|    348|    }
  322|  1.00k|}
_ZN6icu_7815CollationLoader18loadFromCollationsER10UErrorCode:
  325|    597|CollationLoader::loadFromCollations(UErrorCode &errorCode) {
  326|    597|    if(U_FAILURE(errorCode)) { return nullptr; }
  ------------------
  |  Branch (326:8): [True: 0, False: 597]
  ------------------
  327|    597|    U_ASSERT(data == nullptr);
  ------------------
  |  |   35|    597|#   define U_ASSERT(exp) (void)0
  ------------------
  328|       |    // Load the collations/type tailoring, with type fallback.
  329|    597|    LocalUResourceBundlePointer localData(
  330|    597|            ures_getByKeyWithFallback(collations, type, nullptr, &errorCode));
  ------------------
  |  | 1662|    597|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|    597|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    597|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    597|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  331|    597|    int32_t typeLength = static_cast<int32_t>(uprv_strlen(type));
  ------------------
  |  |   37|    597|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    597|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  332|    597|    if(errorCode == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (332:8): [True: 322, False: 275]
  ------------------
  333|    322|        errorCode = U_USING_DEFAULT_WARNING;
  334|    322|        typeFallback = true;
  335|    322|        if((typesTried & TRIED_SEARCH) == 0 &&
  ------------------
  |  Branch (335:12): [True: 322, False: 0]
  ------------------
  336|    322|                typeLength > 6 && uprv_strncmp(type, "search", 6) == 0) {
  ------------------
  |  |   44|    134|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|    134|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (336:17): [True: 134, False: 188]
  |  Branch (336:35): [True: 4, False: 130]
  ------------------
  337|       |            // fall back from something like "searchjl" to "search"
  338|      4|            typesTried |= TRIED_SEARCH;
  339|      4|            type[6] = 0;
  340|    318|        } else if((typesTried & TRIED_DEFAULT) == 0) {
  ------------------
  |  Branch (340:19): [True: 318, False: 0]
  ------------------
  341|       |            // fall back to the default type
  342|    318|            typesTried |= TRIED_DEFAULT;
  343|    318|            uprv_strcpy(type, defaultType);
  ------------------
  |  |   36|    318|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|    318|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  344|    318|        } else if((typesTried & TRIED_STANDARD) == 0) {
  ------------------
  |  Branch (344:19): [True: 0, False: 0]
  ------------------
  345|       |            // fall back to the "standard" type
  346|      0|            typesTried |= TRIED_STANDARD;
  347|      0|            uprv_strcpy(type, "standard");
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  348|      0|        } else {
  349|       |            // Return the root tailoring with the validLocale, without collation type.
  350|      0|            return makeCacheEntryFromRoot(validLocale, errorCode);
  351|      0|        }
  352|    322|        locale.setKeywordValue("collation", type, errorCode);
  353|    322|        return getCacheEntry(errorCode);
  354|    322|    }
  355|    275|    if(U_FAILURE(errorCode)) { return nullptr; }
  ------------------
  |  Branch (355:8): [True: 0, False: 275]
  ------------------
  356|       |
  357|    275|    data = localData.orphan();
  358|    275|    const char *actualLocale = ures_getLocaleByType(data, ULOC_ACTUAL_LOCALE, &errorCode);
  ------------------
  |  | 1669|    275|#define ures_getLocaleByType U_ICU_ENTRY_POINT_RENAME(ures_getLocaleByType)
  |  |  ------------------
  |  |  |  |  123|    275|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    275|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    275|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  359|    275|    if(U_FAILURE(errorCode)) { return nullptr; }
  ------------------
  |  Branch (359:8): [True: 0, False: 275]
  ------------------
  360|    275|    const char *vLocale = validLocale.getBaseName();
  361|    275|    UBool actualAndValidLocalesAreDifferent = Locale(actualLocale) != Locale(vLocale);
  362|       |
  363|       |    // Set the collation types on the informational locales,
  364|       |    // except when they match the default types (for brevity and backwards compatibility).
  365|       |    // For the valid locale, suppress the default type.
  366|    275|    if(uprv_strcmp(type, defaultType) != 0) {
  ------------------
  |  |   38|    275|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    275|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (366:8): [True: 30, False: 245]
  ------------------
  367|     30|        validLocale.setKeywordValue("collation", type, errorCode);
  368|     30|        if(U_FAILURE(errorCode)) { return nullptr; }
  ------------------
  |  Branch (368:12): [True: 0, False: 30]
  ------------------
  369|     30|    }
  370|       |
  371|       |    // Is this the same as the root collator? If so, then use that instead.
  372|    275|    if((*actualLocale == 0 || uprv_strcmp(actualLocale, "root") == 0) &&
  ------------------
  |  |   38|    275|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    275|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (372:9): [True: 0, False: 275]
  |  Branch (372:31): [True: 53, False: 222]
  ------------------
  373|    275|            uprv_strcmp(type, "standard") == 0) {
  ------------------
  |  |   38|     53|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|     53|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (373:13): [True: 36, False: 17]
  ------------------
  374|     36|        if(typeFallback) {
  ------------------
  |  Branch (374:12): [True: 0, False: 36]
  ------------------
  375|      0|            errorCode = U_USING_DEFAULT_WARNING;
  376|      0|        }
  377|     36|        return makeCacheEntryFromRoot(validLocale, errorCode);
  378|     36|    }
  379|       |
  380|    239|    locale = Locale(actualLocale);
  381|    239|    if(actualAndValidLocalesAreDifferent) {
  ------------------
  |  Branch (381:8): [True: 70, False: 169]
  ------------------
  382|     70|        locale.setKeywordValue("collation", type, errorCode);
  383|     70|        const CollationCacheEntry *entry = getCacheEntry(errorCode);
  384|     70|        return makeCacheEntry(validLocale, entry, errorCode);
  385|    169|    } else {
  386|    169|        return loadFromData(errorCode);
  387|    169|    }
  388|    239|}
_ZN6icu_7815CollationLoader12loadFromDataER10UErrorCode:
  391|    183|CollationLoader::loadFromData(UErrorCode &errorCode) {
  392|    183|    if(U_FAILURE(errorCode)) { return nullptr; }
  ------------------
  |  Branch (392:8): [True: 0, False: 183]
  ------------------
  393|    183|    LocalPointer<CollationTailoring> t(new CollationTailoring(rootEntry->tailoring->settings));
  394|    183|    if(t.isNull() || t->isBogus()) {
  ------------------
  |  Branch (394:8): [True: 0, False: 183]
  |  Branch (394:22): [True: 0, False: 183]
  ------------------
  395|      0|        errorCode = U_MEMORY_ALLOCATION_ERROR;
  396|      0|        return nullptr;
  397|      0|    }
  398|       |
  399|       |    // deserialize
  400|    183|    LocalUResourceBundlePointer binary(ures_getByKey(data, "%%CollationBin", nullptr, &errorCode));
  ------------------
  |  | 1661|    183|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|    183|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    183|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    183|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  401|       |    // Note: U_MISSING_RESOURCE_ERROR --> The old code built from rules if available
  402|       |    // but that created undesirable dependencies.
  403|    183|    int32_t length = 0;
  404|    183|    const uint8_t *inBytes = ures_getBinary(binary.getAlias(), &length, &errorCode);
  ------------------
  |  | 1659|    183|#define ures_getBinary U_ICU_ENTRY_POINT_RENAME(ures_getBinary)
  |  |  ------------------
  |  |  |  |  123|    183|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    183|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    183|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  405|    183|    CollationDataReader::read(rootEntry->tailoring, inBytes, length, *t, errorCode);
  406|       |    // Note: U_COLLATOR_VERSION_MISMATCH --> The old code built from rules if available
  407|       |    // but that created undesirable dependencies.
  408|    183|    if(U_FAILURE(errorCode)) { return nullptr; }
  ------------------
  |  Branch (408:8): [True: 3, False: 180]
  ------------------
  409|       |
  410|       |    // Try to fetch the optional rules string.
  411|    180|    {
  412|    180|        UErrorCode internalErrorCode = U_ZERO_ERROR;
  413|    180|        int32_t len;
  414|    180|        const char16_t *s = ures_getStringByKey(data, "Sequence", &len,
  ------------------
  |  | 1677|    180|#define ures_getStringByKey U_ICU_ENTRY_POINT_RENAME(ures_getStringByKey)
  |  |  ------------------
  |  |  |  |  123|    180|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    180|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    180|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  415|    180|                                             &internalErrorCode);
  416|    180|        if(U_SUCCESS(internalErrorCode)) {
  ------------------
  |  Branch (416:12): [True: 180, False: 0]
  ------------------
  417|    180|            t->rules.setTo(true, s, len);
  418|    180|        }
  419|    180|    }
  420|       |
  421|    180|    const char *actualLocale = locale.getBaseName();  // without type
  422|    180|    const char *vLocale = validLocale.getBaseName();
  423|    180|    UBool actualAndValidLocalesAreDifferent = Locale(actualLocale) != Locale(vLocale);
  424|       |
  425|       |    // For the actual locale, suppress the default type *according to the actual locale*.
  426|       |    // For example, zh has default=pinyin and contains all of the Chinese tailorings.
  427|       |    // zh_Hant has default=stroke but has no other data.
  428|       |    // For the valid locale "zh_Hant" we need to suppress stroke.
  429|       |    // For the actual locale "zh" we need to suppress pinyin instead.
  430|    180|    if(actualAndValidLocalesAreDifferent) {
  ------------------
  |  Branch (430:8): [True: 13, False: 167]
  ------------------
  431|       |        // Opening a bundle for the actual locale should always succeed.
  432|     13|        LocalUResourceBundlePointer actualBundle(
  433|     13|                ures_open(U_ICUDATA_COLL, actualLocale, &errorCode));
  ------------------
  |  | 1691|     13|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|     13|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     13|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     13|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                              ures_open(U_ICUDATA_COLL, actualLocale, &errorCode));
  ------------------
  |  |   53|     13|#define U_ICUDATA_COLL U_ICUDATA_NAME U_TREE_SEPARATOR_STRING "coll"
  |  |  ------------------
  |  |  |  |  154|     13|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  ------------------
  434|     13|        if(U_FAILURE(errorCode)) { return nullptr; }
  ------------------
  |  Branch (434:12): [True: 0, False: 13]
  ------------------
  435|     13|        UErrorCode internalErrorCode = U_ZERO_ERROR;
  436|     13|        LocalUResourceBundlePointer def(
  437|     13|                ures_getByKeyWithFallback(actualBundle.getAlias(), "collations/default", nullptr,
  ------------------
  |  | 1662|     13|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|     13|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     13|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     13|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  438|     13|                                          &internalErrorCode));
  439|     13|        int32_t len;
  440|     13|        const char16_t *s = ures_getString(def.getAlias(), &len, &internalErrorCode);
  ------------------
  |  | 1675|     13|#define ures_getString U_ICU_ENTRY_POINT_RENAME(ures_getString)
  |  |  ------------------
  |  |  |  |  123|     13|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     13|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     13|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  441|     13|        if(U_SUCCESS(internalErrorCode) && len < UPRV_LENGTHOF(defaultType)) {
  ------------------
  |  |   99|     13|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (441:12): [True: 13, False: 0]
  |  Branch (441:44): [True: 13, False: 0]
  ------------------
  442|     13|            u_UCharsToChars(s, defaultType, len + 1);
  ------------------
  |  |  211|     13|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|     13|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     13|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     13|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  443|     13|        } else {
  444|      0|            uprv_strcpy(defaultType, "standard");
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  445|      0|        }
  446|     13|    }
  447|    180|    t->actualLocale = locale;
  448|    180|    if(uprv_strcmp(type, defaultType) != 0) {
  ------------------
  |  |   38|    180|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    180|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (448:8): [True: 19, False: 161]
  ------------------
  449|     19|        t->actualLocale.setKeywordValue("collation", type, errorCode);
  450|    161|    } else if(uprv_strcmp(locale.getName(), locale.getBaseName()) != 0) {
  ------------------
  |  |   38|    161|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    161|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (450:15): [True: 4, False: 157]
  ------------------
  451|       |        // Remove the collation keyword if it was set.
  452|      4|        t->actualLocale.setKeywordValue("collation", nullptr, errorCode);
  453|      4|    }
  454|    180|    if(U_FAILURE(errorCode)) { return nullptr; }
  ------------------
  |  Branch (454:8): [True: 0, False: 180]
  ------------------
  455|       |
  456|    180|    if(typeFallback) {
  ------------------
  |  Branch (456:8): [True: 4, False: 176]
  ------------------
  457|      4|        errorCode = U_USING_DEFAULT_WARNING;
  458|      4|    }
  459|    180|    t->bundle = bundle;
  460|    180|    bundle = nullptr;
  461|    180|    const CollationCacheEntry *entry = new CollationCacheEntry(validLocale, t.getAlias());
  462|    180|    if(entry == nullptr) {
  ------------------
  |  Branch (462:8): [True: 0, False: 180]
  ------------------
  463|      0|        errorCode = U_MEMORY_ALLOCATION_ERROR;
  464|      0|        return nullptr;
  465|    180|    } else {
  466|    180|        t.orphan();
  467|    180|    }
  468|       |    // Have to add that reference that we promise.
  469|    180|    entry->addRef();
  470|    180|    return entry;
  471|    180|}
_ZN6icu_7815CollationLoader13getCacheEntryER10UErrorCode:
  474|  20.2k|CollationLoader::getCacheEntry(UErrorCode &errorCode) {
  475|  20.2k|    LocaleCacheKey<CollationCacheEntry> key(locale);
  476|  20.2k|    const CollationCacheEntry *entry = nullptr;
  477|  20.2k|    cache->get(key, this, entry, errorCode);
  478|  20.2k|    return entry;
  479|  20.2k|}
_ZNK6icu_7815CollationLoader22makeCacheEntryFromRootERKNS_6LocaleER10UErrorCode:
  484|     36|        UErrorCode &errorCode) const {
  485|     36|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (485:9): [True: 0, False: 36]
  ------------------
  486|      0|        return nullptr;
  487|      0|    }
  488|     36|    rootEntry->addRef();
  489|     36|    return makeCacheEntry(validLocale, rootEntry, errorCode);
  490|     36|}
_ZN6icu_7815CollationLoader14makeCacheEntryERKNS_6LocaleEPKNS_19CollationCacheEntryER10UErrorCode:
  496|    106|        UErrorCode &errorCode) {
  497|    106|    if(U_FAILURE(errorCode) || loc == entryFromCache->validLocale) {
  ------------------
  |  Branch (497:8): [True: 5, False: 101]
  |  Branch (497:32): [True: 35, False: 66]
  ------------------
  498|     40|        return entryFromCache;
  499|     40|    }
  500|     66|    CollationCacheEntry *entry = new CollationCacheEntry(loc, entryFromCache->tailoring);
  501|     66|    if(entry == nullptr) {
  ------------------
  |  Branch (501:8): [True: 0, False: 66]
  ------------------
  502|      0|        errorCode = U_MEMORY_ALLOCATION_ERROR;
  503|      0|        entryFromCache->removeRef();
  504|      0|        return nullptr;
  505|      0|    }
  506|     66|    entry->addRef();
  507|     66|    entryFromCache->removeRef();
  508|     66|    return entry;
  509|     66|}

_ZN6icu_7817RuleBasedCollator22setAttributeExplicitlyEi:
  848|  8.12k|    void setAttributeExplicitly(int32_t attribute) {
  849|  8.12k|        explicitlySetAttributes |= static_cast<uint32_t>(1) << attribute;
  850|  8.12k|    }

_ZN6icu_7822UTF16CollationIteratorD2Ev:
   38|  14.1k|UTF16CollationIterator::~UTF16CollationIterator() {}
_ZN6icu_7822UTF16CollationIterator14handleNextCE32ERiR10UErrorCode:
   60|  86.5k|UTF16CollationIterator::handleNextCE32(UChar32 &c, UErrorCode & /*errorCode*/) {
   61|  86.5k|    if(pos == limit) {
  ------------------
  |  Branch (61:8): [True: 950, False: 85.5k]
  ------------------
   62|    950|        c = U_SENTINEL;
  ------------------
  |  |  469|    950|#define U_SENTINEL (-1)
  ------------------
   63|    950|        return Collation::FALLBACK_CE32;
   64|    950|    }
   65|  85.5k|    c = *pos++;
   66|  85.5k|    return UTRIE2_GET32_FROM_U16_SINGLE_LEAD(trie, c);
  ------------------
  |  |  568|  85.5k|#define UTRIE2_GET32_FROM_U16_SINGLE_LEAD(trie, c) _UTRIE2_GET_FROM_U16_SINGLE_LEAD((trie), data32, c)
  |  |  ------------------
  |  |  |  |  859|  85.5k|    (trie)->data[_UTRIE2_INDEX_FROM_U16_SINGLE_LEAD((trie)->index, c)]
  |  |  |  |  ------------------
  |  |  |  |  |  |  820|  85.5k|#define _UTRIE2_INDEX_FROM_U16_SINGLE_LEAD(trieIndex, c) _UTRIE2_INDEX_RAW(0, trieIndex, c)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  815|  85.5k|    (((int32_t)((trieIndex)[(offset)+((c)>>UTRIE2_SHIFT_2)]) \
  |  |  |  |  |  |  |  |  816|  85.5k|    <<UTRIE2_INDEX_SHIFT)+ \
  |  |  |  |  |  |  |  |  817|  85.5k|    ((c)&UTRIE2_DATA_MASK))
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   67|  86.5k|}
_ZN6icu_7822UTF16CollationIterator23handleGetTrailSurrogateEv:
   70|  9.96k|UTF16CollationIterator::handleGetTrailSurrogate() {
   71|  9.96k|    if(pos == limit) { return 0; }
  ------------------
  |  Branch (71:8): [True: 750, False: 9.21k]
  ------------------
   72|  9.21k|    char16_t trail;
   73|  9.21k|    if(U16_IS_TRAIL(trail = *pos)) { ++pos; }
  ------------------
  |  |   67|  9.21k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 7.87k, False: 1.33k]
  |  |  ------------------
  ------------------
   74|  9.21k|    return trail;
   75|  9.96k|}
_ZN6icu_7822UTF16CollationIterator18foundNULTerminatorEv:
   78|  4.95k|UTF16CollationIterator::foundNULTerminator() {
   79|  4.95k|    if(limit == nullptr) {
  ------------------
  |  Branch (79:8): [True: 0, False: 4.95k]
  ------------------
   80|      0|        limit = --pos;
   81|      0|        return true;
   82|  4.95k|    } else {
   83|  4.95k|        return false;
   84|  4.95k|    }
   85|  4.95k|}
_ZN6icu_7822UTF16CollationIterator13nextCodePointER10UErrorCode:
   88|  79.2k|UTF16CollationIterator::nextCodePoint(UErrorCode & /*errorCode*/) {
   89|  79.2k|    if(pos == limit) {
  ------------------
  |  Branch (89:8): [True: 1.91k, False: 77.3k]
  ------------------
   90|  1.91k|        return U_SENTINEL;
  ------------------
  |  |  469|  1.91k|#define U_SENTINEL (-1)
  ------------------
   91|  1.91k|    }
   92|  77.3k|    UChar32 c = *pos;
   93|  77.3k|    if(c == 0 && limit == nullptr) {
  ------------------
  |  Branch (93:8): [True: 214, False: 77.1k]
  |  Branch (93:18): [True: 0, False: 214]
  ------------------
   94|      0|        limit = pos;
   95|      0|        return U_SENTINEL;
  ------------------
  |  |  469|      0|#define U_SENTINEL (-1)
  ------------------
   96|      0|    }
   97|  77.3k|    ++pos;
   98|  77.3k|    char16_t trail;
   99|  77.3k|    if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(trail = *pos)) {
  ------------------
  |  |   59|   154k|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 5.78k, False: 71.5k]
  |  |  ------------------
  ------------------
                  if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(trail = *pos)) {
  ------------------
  |  |   67|  5.59k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 5.19k, False: 402]
  |  |  ------------------
  ------------------
  |  Branch (99:26): [True: 5.59k, False: 196]
  ------------------
  100|  5.19k|        ++pos;
  101|  5.19k|        return U16_GET_SUPPLEMENTARY(c, trail);
  ------------------
  |  |  113|  5.19k|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  ------------------
  |  |  |  |   99|  5.19k|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  ------------------
  ------------------
  102|  72.1k|    } else {
  103|  72.1k|        return c;
  104|  72.1k|    }
  105|  77.3k|}
_ZN6icu_7822UTF16CollationIterator17previousCodePointER10UErrorCode:
  108|  2.06k|UTF16CollationIterator::previousCodePoint(UErrorCode & /*errorCode*/) {
  109|  2.06k|    if(pos == start) {
  ------------------
  |  Branch (109:8): [True: 53, False: 2.01k]
  ------------------
  110|     53|        return U_SENTINEL;
  ------------------
  |  |  469|     53|#define U_SENTINEL (-1)
  ------------------
  111|     53|    }
  112|  2.01k|    UChar32 c = *--pos;
  113|  2.01k|    char16_t lead;
  114|  2.01k|    if(U16_IS_TRAIL(c) && pos != start && U16_IS_LEAD(lead = *(pos - 1))) {
  ------------------
  |  |   67|  4.03k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 396, False: 1.62k]
  |  |  ------------------
  ------------------
                  if(U16_IS_TRAIL(c) && pos != start && U16_IS_LEAD(lead = *(pos - 1))) {
  ------------------
  |  |   59|    392|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 194, False: 198]
  |  |  ------------------
  ------------------
  |  Branch (114:27): [True: 392, False: 4]
  ------------------
  115|    194|        --pos;
  116|    194|        return U16_GET_SUPPLEMENTARY(lead, c);
  ------------------
  |  |  113|    194|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  ------------------
  |  |  |  |   99|    194|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  ------------------
  ------------------
  117|  1.82k|    } else {
  118|  1.82k|        return c;
  119|  1.82k|    }
  120|  2.01k|}
_ZN6icu_7822UTF16CollationIterator20forwardNumCodePointsEiR10UErrorCode:
  123|  4.14k|UTF16CollationIterator::forwardNumCodePoints(int32_t num, UErrorCode & /*errorCode*/) {
  124|  8.22k|    while(num > 0 && pos != limit) {
  ------------------
  |  Branch (124:11): [True: 4.08k, False: 4.14k]
  |  Branch (124:22): [True: 4.08k, False: 0]
  ------------------
  125|  4.08k|        UChar32 c = *pos;
  126|  4.08k|        if(c == 0 && limit == nullptr) {
  ------------------
  |  Branch (126:12): [True: 321, False: 3.76k]
  |  Branch (126:22): [True: 0, False: 321]
  ------------------
  127|      0|            limit = pos;
  128|      0|            break;
  129|      0|        }
  130|  4.08k|        ++pos;
  131|  4.08k|        --num;
  132|  4.08k|        if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(*pos)) {
  ------------------
  |  |   59|  8.17k|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 388, False: 3.70k]
  |  |  ------------------
  ------------------
                      if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(*pos)) {
  ------------------
  |  |   67|    388|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 194, False: 194]
  |  |  ------------------
  ------------------
  |  Branch (132:30): [True: 388, False: 0]
  ------------------
  133|    194|            ++pos;
  134|    194|        }
  135|  4.08k|    }
  136|  4.14k|}
_ZN6icu_7822UTF16CollationIterator21backwardNumCodePointsEiR10UErrorCode:
  139|  11.5k|UTF16CollationIterator::backwardNumCodePoints(int32_t num, UErrorCode & /*errorCode*/) {
  140|  80.9k|    while(num > 0 && pos != start) {
  ------------------
  |  Branch (140:11): [True: 69.3k, False: 11.5k]
  |  Branch (140:22): [True: 69.3k, False: 0]
  ------------------
  141|  69.3k|        UChar32 c = *--pos;
  142|  69.3k|        --num;
  143|  69.3k|        if(U16_IS_TRAIL(c) && pos != start && U16_IS_LEAD(*(pos-1))) {
  ------------------
  |  |   67|   138k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 4.75k, False: 64.6k]
  |  |  ------------------
  ------------------
                      if(U16_IS_TRAIL(c) && pos != start && U16_IS_LEAD(*(pos-1))) {
  ------------------
  |  |   59|  4.75k|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 4.01k, False: 747]
  |  |  ------------------
  ------------------
  |  Branch (143:31): [True: 4.75k, False: 0]
  ------------------
  144|  4.01k|            --pos;
  145|  4.01k|        }
  146|  69.3k|    }
  147|  11.5k|}
_ZN6icu_7825FCDUTF16CollationIteratorD2Ev:
  172|  5.12k|FCDUTF16CollationIterator::~FCDUTF16CollationIterator() {}
_ZN6icu_7825FCDUTF16CollationIterator14handleNextCE32ERiR10UErrorCode:
  210|  77.1k|FCDUTF16CollationIterator::handleNextCE32(UChar32 &c, UErrorCode &errorCode) {
  211|  87.8k|    for(;;) {
  212|  87.8k|        if(checkDir > 0) {
  ------------------
  |  Branch (212:12): [True: 50.1k, False: 37.7k]
  ------------------
  213|  50.1k|            if(pos == limit) {
  ------------------
  |  Branch (213:16): [True: 1.70k, False: 48.4k]
  ------------------
  214|  1.70k|                c = U_SENTINEL;
  ------------------
  |  |  469|  1.70k|#define U_SENTINEL (-1)
  ------------------
  215|  1.70k|                return Collation::FALLBACK_CE32;
  216|  1.70k|            }
  217|  48.4k|            c = *pos++;
  218|  48.4k|            if(CollationFCD::hasTccc(c)) {
  ------------------
  |  Branch (218:16): [True: 14.0k, False: 34.3k]
  ------------------
  219|  14.0k|                if(CollationFCD::maybeTibetanCompositeVowel(c) ||
  ------------------
  |  Branch (219:20): [True: 2.91k, False: 11.1k]
  ------------------
  220|  14.0k|                        (pos != limit && CollationFCD::hasLccc(*pos))) {
  ------------------
  |  Branch (220:26): [True: 10.9k, False: 268]
  |  Branch (220:42): [True: 7.34k, False: 3.57k]
  ------------------
  221|  10.2k|                    --pos;
  222|  10.2k|                    if(!nextSegment(errorCode)) {
  ------------------
  |  Branch (222:24): [True: 0, False: 10.2k]
  ------------------
  223|      0|                        c = U_SENTINEL;
  ------------------
  |  |  469|      0|#define U_SENTINEL (-1)
  ------------------
  224|      0|                        return Collation::FALLBACK_CE32;
  225|      0|                    }
  226|  10.2k|                    c = *pos++;
  227|  10.2k|                }
  228|  14.0k|            }
  229|  48.4k|            break;
  230|  48.4k|        } else if(checkDir == 0 && pos != limit) {
  ------------------
  |  Branch (230:19): [True: 37.5k, False: 202]
  |  Branch (230:36): [True: 26.9k, False: 10.5k]
  ------------------
  231|  26.9k|            c = *pos++;
  232|  26.9k|            break;
  233|  26.9k|        } else {
  234|  10.7k|            switchToForward();
  235|  10.7k|        }
  236|  87.8k|    }
  237|  75.4k|    return UTRIE2_GET32_FROM_U16_SINGLE_LEAD(trie, c);
  ------------------
  |  |  568|  75.4k|#define UTRIE2_GET32_FROM_U16_SINGLE_LEAD(trie, c) _UTRIE2_GET_FROM_U16_SINGLE_LEAD((trie), data32, c)
  |  |  ------------------
  |  |  |  |  859|  75.4k|    (trie)->data[_UTRIE2_INDEX_FROM_U16_SINGLE_LEAD((trie)->index, c)]
  |  |  |  |  ------------------
  |  |  |  |  |  |  820|  75.4k|#define _UTRIE2_INDEX_FROM_U16_SINGLE_LEAD(trieIndex, c) _UTRIE2_INDEX_RAW(0, trieIndex, c)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  815|  75.4k|    (((int32_t)((trieIndex)[(offset)+((c)>>UTRIE2_SHIFT_2)]) \
  |  |  |  |  |  |  |  |  816|  75.4k|    <<UTRIE2_INDEX_SHIFT)+ \
  |  |  |  |  |  |  |  |  817|  75.4k|    ((c)&UTRIE2_DATA_MASK))
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  238|  77.1k|}
_ZN6icu_7825FCDUTF16CollationIterator18foundNULTerminatorEv:
  241|  14.1k|FCDUTF16CollationIterator::foundNULTerminator() {
  242|  14.1k|    if(limit == nullptr) {
  ------------------
  |  Branch (242:8): [True: 0, False: 14.1k]
  ------------------
  243|      0|        limit = rawLimit = --pos;
  244|      0|        return true;
  245|  14.1k|    } else {
  246|  14.1k|        return false;
  247|  14.1k|    }
  248|  14.1k|}
_ZN6icu_7825FCDUTF16CollationIterator13nextCodePointER10UErrorCode:
  251|  2.31M|FCDUTF16CollationIterator::nextCodePoint(UErrorCode &errorCode) {
  252|  2.31M|    UChar32 c;
  253|  2.34M|    for(;;) {
  254|  2.34M|        if(checkDir > 0) {
  ------------------
  |  Branch (254:12): [True: 67.7k, False: 2.27M]
  ------------------
  255|  67.7k|            if(pos == limit) {
  ------------------
  |  Branch (255:16): [True: 48.5k, False: 19.2k]
  ------------------
  256|  48.5k|                return U_SENTINEL;
  ------------------
  |  |  469|  48.5k|#define U_SENTINEL (-1)
  ------------------
  257|  48.5k|            }
  258|  19.2k|            c = *pos++;
  259|  19.2k|            if(CollationFCD::hasTccc(c)) {
  ------------------
  |  Branch (259:16): [True: 11.2k, False: 7.95k]
  ------------------
  260|  11.2k|                if(CollationFCD::maybeTibetanCompositeVowel(c) ||
  ------------------
  |  Branch (260:20): [True: 1.75k, False: 9.50k]
  ------------------
  261|  11.2k|                        (pos != limit && CollationFCD::hasLccc(*pos))) {
  ------------------
  |  Branch (261:26): [True: 8.97k, False: 527]
  |  Branch (261:42): [True: 6.60k, False: 2.37k]
  ------------------
  262|  8.35k|                    --pos;
  263|  8.35k|                    if(!nextSegment(errorCode)) {
  ------------------
  |  Branch (263:24): [True: 0, False: 8.35k]
  ------------------
  264|      0|                        return U_SENTINEL;
  ------------------
  |  |  469|      0|#define U_SENTINEL (-1)
  ------------------
  265|      0|                    }
  266|  8.35k|                    c = *pos++;
  267|  8.35k|                }
  268|  11.2k|            } else if(c == 0 && limit == nullptr) {
  ------------------
  |  Branch (268:23): [True: 605, False: 7.35k]
  |  Branch (268:33): [True: 0, False: 605]
  ------------------
  269|      0|                limit = rawLimit = --pos;
  270|      0|                return U_SENTINEL;
  ------------------
  |  |  469|      0|#define U_SENTINEL (-1)
  ------------------
  271|      0|            }
  272|  19.2k|            break;
  273|  2.27M|        } else if(checkDir == 0 && pos != limit) {
  ------------------
  |  Branch (273:19): [True: 2.27M, False: 714]
  |  Branch (273:36): [True: 2.24M, False: 26.2k]
  ------------------
  274|  2.24M|            c = *pos++;
  275|  2.24M|            break;
  276|  2.24M|        } else {
  277|  27.0k|            switchToForward();
  278|  27.0k|        }
  279|  2.34M|    }
  280|  2.26M|    char16_t trail;
  281|  2.26M|    if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(trail = *pos)) {
  ------------------
  |  |   59|  4.53M|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 14.4k, False: 2.25M]
  |  |  ------------------
  ------------------
                  if(U16_IS_LEAD(c) && pos != limit && U16_IS_TRAIL(trail = *pos)) {
  ------------------
  |  |   67|  13.5k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 13.2k, False: 281]
  |  |  ------------------
  ------------------
  |  Branch (281:26): [True: 13.5k, False: 949]
  ------------------
  282|  13.2k|        ++pos;
  283|  13.2k|        return U16_GET_SUPPLEMENTARY(c, trail);
  ------------------
  |  |  113|  13.2k|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  ------------------
  |  |  |  |   99|  13.2k|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  ------------------
  ------------------
  284|  2.25M|    } else {
  285|  2.25M|        return c;
  286|  2.25M|    }
  287|  2.26M|}
_ZN6icu_7825FCDUTF16CollationIterator17previousCodePointER10UErrorCode:
  290|  2.05M|FCDUTF16CollationIterator::previousCodePoint(UErrorCode &errorCode) {
  291|  2.05M|    UChar32 c;
  292|  2.08M|    for(;;) {
  293|  2.08M|        if(checkDir < 0) {
  ------------------
  |  Branch (293:12): [True: 23.9k, False: 2.06M]
  ------------------
  294|  23.9k|            if(pos == start) {
  ------------------
  |  Branch (294:16): [True: 35, False: 23.8k]
  ------------------
  295|     35|                return U_SENTINEL;
  ------------------
  |  |  469|     35|#define U_SENTINEL (-1)
  ------------------
  296|     35|            }
  297|  23.8k|            c = *--pos;
  298|  23.8k|            if(CollationFCD::hasLccc(c)) {
  ------------------
  |  Branch (298:16): [True: 23.2k, False: 588]
  ------------------
  299|  23.2k|                if(CollationFCD::maybeTibetanCompositeVowel(c) ||
  ------------------
  |  Branch (299:20): [True: 18.7k, False: 4.54k]
  ------------------
  300|  23.2k|                        (pos != start && CollationFCD::hasTccc(*(pos - 1)))) {
  ------------------
  |  Branch (300:26): [True: 4.54k, False: 3]
  |  Branch (300:42): [True: 3.50k, False: 1.04k]
  ------------------
  301|  22.2k|                    ++pos;
  302|  22.2k|                    if(!previousSegment(errorCode)) {
  ------------------
  |  Branch (302:24): [True: 0, False: 22.2k]
  ------------------
  303|      0|                        return U_SENTINEL;
  ------------------
  |  |  469|      0|#define U_SENTINEL (-1)
  ------------------
  304|      0|                    }
  305|  22.2k|                    c = *--pos;
  306|  22.2k|                }
  307|  23.2k|            }
  308|  23.8k|            break;
  309|  2.06M|        } else if(checkDir == 0 && pos != start) {
  ------------------
  |  Branch (309:19): [True: 2.04M, False: 19.7k]
  |  Branch (309:36): [True: 2.02M, False: 12.7k]
  ------------------
  310|  2.02M|            c = *--pos;
  311|  2.02M|            break;
  312|  2.02M|        } else {
  313|  32.5k|            switchToBackward();
  314|  32.5k|        }
  315|  2.08M|    }
  316|  2.05M|    char16_t lead;
  317|  2.05M|    if(U16_IS_TRAIL(c) && pos != start && U16_IS_LEAD(lead = *(pos - 1))) {
  ------------------
  |  |   67|  4.10M|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 14.0k, False: 2.03M]
  |  |  ------------------
  ------------------
                  if(U16_IS_TRAIL(c) && pos != start && U16_IS_LEAD(lead = *(pos - 1))) {
  ------------------
  |  |   59|  13.5k|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 13.0k, False: 433]
  |  |  ------------------
  ------------------
  |  Branch (317:27): [True: 13.5k, False: 544]
  ------------------
  318|  13.0k|        --pos;
  319|  13.0k|        return U16_GET_SUPPLEMENTARY(lead, c);
  ------------------
  |  |  113|  13.0k|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  ------------------
  |  |  |  |   99|  13.0k|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  ------------------
  ------------------
  320|  2.04M|    } else {
  321|  2.04M|        return c;
  322|  2.04M|    }
  323|  2.05M|}
_ZN6icu_7825FCDUTF16CollationIterator20forwardNumCodePointsEiR10UErrorCode:
  326|  1.79k|FCDUTF16CollationIterator::forwardNumCodePoints(int32_t num, UErrorCode &errorCode) {
  327|       |    // Specify the class to avoid a virtual-function indirection.
  328|       |    // In Java, we would declare this class final.
  329|  4.24k|    while(num > 0 && FCDUTF16CollationIterator::nextCodePoint(errorCode) >= 0) {
  ------------------
  |  Branch (329:11): [True: 2.45k, False: 1.79k]
  |  Branch (329:22): [True: 2.45k, False: 0]
  ------------------
  330|  2.45k|        --num;
  331|  2.45k|    }
  332|  1.79k|}
_ZN6icu_7825FCDUTF16CollationIterator21backwardNumCodePointsEiR10UErrorCode:
  335|   126k|FCDUTF16CollationIterator::backwardNumCodePoints(int32_t num, UErrorCode &errorCode) {
  336|       |    // Specify the class to avoid a virtual-function indirection.
  337|       |    // In Java, we would declare this class final.
  338|  2.17M|    while(num > 0 && FCDUTF16CollationIterator::previousCodePoint(errorCode) >= 0) {
  ------------------
  |  Branch (338:11): [True: 2.05M, False: 126k]
  |  Branch (338:22): [True: 2.05M, False: 3]
  ------------------
  339|  2.05M|        --num;
  340|  2.05M|    }
  341|   126k|}
_ZN6icu_7825FCDUTF16CollationIterator15switchToForwardEv:
  344|  37.7k|FCDUTF16CollationIterator::switchToForward() {
  345|  37.7k|    U_ASSERT(checkDir < 0 || (checkDir == 0 && pos == limit));
  ------------------
  |  |   35|  37.7k|#   define U_ASSERT(exp) (void)0
  ------------------
  346|  37.7k|    if(checkDir < 0) {
  ------------------
  |  Branch (346:8): [True: 916, False: 36.8k]
  ------------------
  347|       |        // Turn around from backward checking.
  348|    916|        start = segmentStart = pos;
  349|    916|        if(pos == segmentLimit) {
  ------------------
  |  Branch (349:12): [True: 0, False: 916]
  ------------------
  350|      0|            limit = rawLimit;
  351|      0|            checkDir = 1;  // Check forward.
  352|    916|        } else {  // pos < segmentLimit
  353|    916|            checkDir = 0;  // Stay in FCD segment.
  354|    916|        }
  355|  36.8k|    } else {
  356|       |        // Reached the end of the FCD segment.
  357|  36.8k|        if(start == segmentStart) {
  ------------------
  |  Branch (357:12): [True: 8.24k, False: 28.5k]
  ------------------
  358|       |            // The input text segment is FCD, extend it forward.
  359|  28.5k|        } else {
  360|       |            // The input text segment needed to be normalized.
  361|       |            // Switch to checking forward from it.
  362|  28.5k|            pos = start = segmentStart = segmentLimit;
  363|       |            // Note: If this segment is at the end of the input text,
  364|       |            // then it might help to return false to indicate that, so that
  365|       |            // we do not have to re-check and normalize when we turn around and go backwards.
  366|       |            // However, that would complicate the call sites for an optimization of an unusual case.
  367|  28.5k|        }
  368|  36.8k|        limit = rawLimit;
  369|  36.8k|        checkDir = 1;
  370|  36.8k|    }
  371|  37.7k|}
_ZN6icu_7825FCDUTF16CollationIterator11nextSegmentER10UErrorCode:
  374|  18.6k|FCDUTF16CollationIterator::nextSegment(UErrorCode &errorCode) {
  375|  18.6k|    if(U_FAILURE(errorCode)) { return false; }
  ------------------
  |  Branch (375:8): [True: 0, False: 18.6k]
  ------------------
  376|  18.6k|    U_ASSERT(checkDir > 0 && pos != limit);
  ------------------
  |  |   35|  18.6k|#   define U_ASSERT(exp) (void)0
  ------------------
  377|       |    // The input text [segmentStart..pos[ passes the FCD check.
  378|  18.6k|    const char16_t *p = pos;
  379|  18.6k|    uint8_t prevCC = 0;
  380|  41.3k|    for(;;) {
  381|       |        // Fetch the next character's fcd16 value.
  382|  41.3k|        const char16_t *q = p;
  383|  41.3k|        uint16_t fcd16 = nfcImpl.nextFCD16(p, rawLimit);
  384|  41.3k|        uint8_t leadCC = static_cast<uint8_t>(fcd16 >> 8);
  385|  41.3k|        if(leadCC == 0 && q != pos) {
  ------------------
  |  Branch (385:12): [True: 13.3k, False: 28.0k]
  |  Branch (385:27): [True: 2.45k, False: 10.8k]
  ------------------
  386|       |            // FCD boundary before the [q, p[ character.
  387|  2.45k|            limit = segmentLimit = q;
  388|  2.45k|            break;
  389|  2.45k|        }
  390|  38.9k|        if(leadCC != 0 && (prevCC > leadCC || CollationFCD::isFCD16OfTibetanCompositeVowel(fcd16))) {
  ------------------
  |  Branch (390:12): [True: 28.0k, False: 10.8k]
  |  Branch (390:28): [True: 10.7k, False: 17.3k]
  |  Branch (390:47): [True: 3.78k, False: 13.5k]
  ------------------
  391|       |            // Fails FCD check. Find the next FCD boundary and normalize.
  392|   421k|            do {
  393|   421k|                q = p;
  394|   421k|            } while(p != rawLimit && nfcImpl.nextFCD16(p, rawLimit) > 0xff);
  ------------------
  |  Branch (394:21): [True: 418k, False: 3.18k]
  |  Branch (394:38): [True: 407k, False: 11.3k]
  ------------------
  395|  14.4k|            if(!normalize(pos, q, errorCode)) { return false; }
  ------------------
  |  Branch (395:16): [True: 0, False: 14.4k]
  ------------------
  396|  14.4k|            pos = start;
  397|  14.4k|            break;
  398|  14.4k|        }
  399|  24.4k|        prevCC = static_cast<uint8_t>(fcd16);
  400|  24.4k|        if(p == rawLimit || prevCC == 0) {
  ------------------
  |  Branch (400:12): [True: 613, False: 23.8k]
  |  Branch (400:29): [True: 1.05k, False: 22.7k]
  ------------------
  401|       |            // FCD boundary after the last character.
  402|  1.66k|            limit = segmentLimit = p;
  403|  1.66k|            break;
  404|  1.66k|        }
  405|  24.4k|    }
  406|  18.6k|    U_ASSERT(pos != limit);
  ------------------
  |  |   35|  18.6k|#   define U_ASSERT(exp) (void)0
  ------------------
  407|  18.6k|    checkDir = 0;
  408|  18.6k|    return true;
  409|  18.6k|}
_ZN6icu_7825FCDUTF16CollationIterator16switchToBackwardEv:
  412|  32.5k|FCDUTF16CollationIterator::switchToBackward() {
  413|  32.5k|    U_ASSERT(checkDir > 0 || (checkDir == 0 && pos == start));
  ------------------
  |  |   35|  32.5k|#   define U_ASSERT(exp) (void)0
  ------------------
  414|  32.5k|    if(checkDir > 0) {
  ------------------
  |  Branch (414:8): [True: 19.7k, False: 12.7k]
  ------------------
  415|       |        // Turn around from forward checking.
  416|  19.7k|        limit = segmentLimit = pos;
  417|  19.7k|        if(pos == segmentStart) {
  ------------------
  |  Branch (417:12): [True: 10.4k, False: 9.33k]
  ------------------
  418|  10.4k|            start = rawStart;
  419|  10.4k|            checkDir = -1;  // Check backward.
  420|  10.4k|        } else {  // pos > segmentStart
  421|  9.33k|            checkDir = 0;  // Stay in FCD segment.
  422|  9.33k|        }
  423|  19.7k|    } else {
  424|       |        // Reached the start of the FCD segment.
  425|  12.7k|        if(start == segmentStart) {
  ------------------
  |  Branch (425:12): [True: 7.41k, False: 5.37k]
  ------------------
  426|       |            // The input text segment is FCD, extend it backward.
  427|  7.41k|        } else {
  428|       |            // The input text segment needed to be normalized.
  429|       |            // Switch to checking backward from it.
  430|  5.37k|            pos = limit = segmentLimit = segmentStart;
  431|  5.37k|        }
  432|  12.7k|        start = rawStart;
  433|  12.7k|        checkDir = -1;
  434|  12.7k|    }
  435|  32.5k|}
_ZN6icu_7825FCDUTF16CollationIterator15previousSegmentER10UErrorCode:
  438|  22.2k|FCDUTF16CollationIterator::previousSegment(UErrorCode &errorCode) {
  439|  22.2k|    if(U_FAILURE(errorCode)) { return false; }
  ------------------
  |  Branch (439:8): [True: 0, False: 22.2k]
  ------------------
  440|  22.2k|    U_ASSERT(checkDir < 0 && pos != start);
  ------------------
  |  |   35|  22.2k|#   define U_ASSERT(exp) (void)0
  ------------------
  441|       |    // The input text [pos..segmentLimit[ passes the FCD check.
  442|  22.2k|    const char16_t *p = pos;
  443|  22.2k|    uint8_t nextCC = 0;
  444|   191k|    for(;;) {
  445|       |        // Fetch the previous character's fcd16 value.
  446|   191k|        const char16_t *q = p;
  447|   191k|        uint16_t fcd16 = nfcImpl.previousFCD16(rawStart, p);
  448|   191k|        uint8_t trailCC = static_cast<uint8_t>(fcd16);
  449|   191k|        if(trailCC == 0 && q != pos) {
  ------------------
  |  Branch (449:12): [True: 763, False: 190k]
  |  Branch (449:28): [True: 760, False: 3]
  ------------------
  450|       |            // FCD boundary after the [p, q[ character.
  451|    760|            start = segmentStart = q;
  452|    760|            break;
  453|    760|        }
  454|   190k|        if(trailCC != 0 && ((nextCC != 0 && trailCC > nextCC) ||
  ------------------
  |  Branch (454:12): [True: 190k, False: 3]
  |  Branch (454:30): [True: 168k, False: 22.2k]
  |  Branch (454:45): [True: 10.3k, False: 158k]
  ------------------
  455|   190k|                            CollationFCD::isFCD16OfTibetanCompositeVowel(fcd16))) {
  ------------------
  |  Branch (455:29): [True: 10.0k, False: 170k]
  ------------------
  456|       |            // Fails FCD check. Find the previous FCD boundary and normalize.
  457|  4.50M|            do {
  458|  4.50M|                q = p;
  459|  4.50M|            } while(fcd16 > 0xff && p != rawStart &&
  ------------------
  |  Branch (459:21): [True: 4.50M, False: 3.12k]
  |  Branch (459:37): [True: 4.48M, False: 13.7k]
  ------------------
  460|  4.50M|                    (fcd16 = nfcImpl.previousFCD16(rawStart, p)) != 0);
  ------------------
  |  Branch (460:21): [True: 4.48M, False: 3.46k]
  ------------------
  461|  20.3k|            if(!normalize(q, pos, errorCode)) { return false; }
  ------------------
  |  Branch (461:16): [True: 0, False: 20.3k]
  ------------------
  462|  20.3k|            pos = limit;
  463|  20.3k|            break;
  464|  20.3k|        }
  465|   170k|        nextCC = static_cast<uint8_t>(fcd16 >> 8);
  466|   170k|        if(p == rawStart || nextCC == 0) {
  ------------------
  |  Branch (466:12): [True: 484, False: 169k]
  |  Branch (466:29): [True: 628, False: 169k]
  ------------------
  467|       |            // FCD boundary before the following character.
  468|  1.11k|            start = segmentStart = p;
  469|  1.11k|            break;
  470|  1.11k|        }
  471|   170k|    }
  472|  22.2k|    U_ASSERT(pos != start);
  ------------------
  |  |   35|  22.2k|#   define U_ASSERT(exp) (void)0
  ------------------
  473|  22.2k|    checkDir = 0;
  474|  22.2k|    return true;
  475|  22.2k|}
_ZN6icu_7825FCDUTF16CollationIterator9normalizeEPKDsS2_R10UErrorCode:
  478|  34.8k|FCDUTF16CollationIterator::normalize(const char16_t *from, const char16_t *to, UErrorCode &errorCode) {
  479|       |    // NFD without argument checking.
  480|  34.8k|    U_ASSERT(U_SUCCESS(errorCode));
  ------------------
  |  |   35|  34.8k|#   define U_ASSERT(exp) (void)0
  ------------------
  481|  34.8k|    nfcImpl.decompose(from, to, normalized, static_cast<int32_t>(to - from), errorCode);
  482|  34.8k|    if(U_FAILURE(errorCode)) { return false; }
  ------------------
  |  Branch (482:8): [True: 0, False: 34.8k]
  ------------------
  483|       |    // Switch collation processing into the FCD buffer
  484|       |    // with the result of normalizing [segmentStart, segmentLimit[.
  485|  34.8k|    segmentStart = from;
  486|  34.8k|    segmentLimit = to;
  487|  34.8k|    start = normalized.getBuffer();
  488|  34.8k|    limit = start + normalized.length();
  489|  34.8k|    return true;
  490|  34.8k|}

_ZN6icu_7822UTF16CollationIteratorC2EPKNS_13CollationDataEaPKDsS5_S5_:
   38|  14.1k|            : CollationIterator(d, numeric),
   39|  14.1k|              start(s), pos(p), limit(lim) {}
_ZN6icu_7825FCDUTF16CollationIteratorC2EPKNS_13CollationDataEaPKDsS5_S5_:
   89|  5.12k|            : UTF16CollationIterator(data, numeric, s, p, lim),
   90|  5.12k|              rawStart(s), segmentStart(p), segmentLimit(nullptr), rawLimit(lim),
   91|  5.12k|              nfcImpl(data->nfcImpl),
   92|  5.12k|              checkDir(1) {}

LLVMFuzzerTestOneInput:
   22|  7.96k|extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
   23|  7.96k|  UErrorCode status = U_ZERO_ERROR;
   24|       |
   25|  7.96k|  uint16_t rnd16;
   26|       |
   27|  7.96k|  if (size < 2 + sizeof(rnd16))
  ------------------
  |  Branch (27:7): [True: 2, False: 7.96k]
  ------------------
   28|      2|    return 0;
   29|       |
   30|  7.96k|  std::memcpy(&rnd16, data, sizeof(rnd16));
   31|  7.96k|  size -= sizeof(rnd16);
   32|  7.96k|  data += sizeof(rnd16);
   33|  7.96k|  icu::Collator::ECollationStrength strength = kStrength[rnd16 % kStrength.size()];
   34|  7.96k|  const icu::Locale& locale = GetRandomLocale(rnd16 / kStrength.size());
   35|       |
   36|       |  // Limit the comparison size to 4096 to avoid unnecessary timeout
   37|  7.96k|  if (size > 4096) {
  ------------------
  |  Branch (37:7): [True: 37, False: 7.93k]
  ------------------
   38|     37|      size = 4096;
   39|     37|  }
   40|  7.96k|  std::unique_ptr<char16_t[]> compbuff1(new char16_t[size/4]);
   41|  7.96k|  std::memcpy(compbuff1.get(), data, (size/4)*2);
   42|  7.96k|  std::unique_ptr<char16_t[]> compbuff2(new char16_t[size/4]);
   43|  7.96k|  std::memcpy(compbuff2.get(), data + size/2, (size/4)*2);
   44|       |
   45|       |
   46|  7.96k|  icu::LocalPointer<icu::Collator> fuzzCollator(
   47|  7.96k|      icu::Collator::createInstance(locale, status), status);
   48|  7.96k|  if (U_SUCCESS(status)) {
  ------------------
  |  Branch (48:7): [True: 7.96k, False: 0]
  ------------------
   49|       |
   50|  7.96k|    fuzzCollator->setStrength(strength);
   51|       |
   52|  7.96k|    fuzzCollator->compare(compbuff1.get(), size/4,
   53|  7.96k|                          compbuff2.get(), size/4);
   54|  7.96k|  }
   55|  7.96k|  status = U_ZERO_ERROR;
   56|       |
   57|  7.96k|  std::string str(reinterpret_cast<const char*>(data), size);
   58|  7.96k|  fuzzCollator.adoptInstead(
   59|  7.96k|      icu::Collator::createInstance(icu::Locale(str.c_str()), status));
   60|  7.96k|  return 0;
   61|  7.96k|}

_Z15GetRandomLocalet:
   19|  7.96k|const icu::Locale& GetRandomLocale(uint16_t rnd) {
   20|  7.96k|  int32_t num_locales = 0;
   21|  7.96k|  const icu::Locale* locales = icu::Locale::getAvailableLocales(num_locales);
   22|  7.96k|  assert(num_locales > 0);
   23|  7.96k|  return locales[rnd % num_locales];
   24|  7.96k|}
_ZN14IcuEnvironmentC2Ev:
   14|      2|  IcuEnvironment() {
   15|       |    // nothing to initialize yet;
   16|      2|  }

