_ZN6icu_7810AppendableD2Ev:
   23|   100k|Appendable::~Appendable() {}

_ZN6icu_786BMPSetC2EPKii:
   30|      1|        list(parentList), listLength(parentListLength) {
   31|      1|    uprv_memset(latin1Contains, 0, sizeof(latin1Contains));
  ------------------
  |  |  100|      1|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
   32|      1|    uprv_memset(table7FF, 0, sizeof(table7FF));
  ------------------
  |  |  100|      1|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
   33|      1|    uprv_memset(bmpBlockBits, 0, sizeof(bmpBlockBits));
  ------------------
  |  |  100|      1|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|      1|#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|      1|    list4kStarts[0]=findCodePoint(0x800, 0, listLength-1);
   43|      1|    int32_t i;
   44|     17|    for(i=1; i<=0x10; ++i) {
  ------------------
  |  Branch (44:14): [True: 16, False: 1]
  ------------------
   45|     16|        list4kStarts[i]=findCodePoint(i<<12, list4kStarts[i-1], listLength-1);
   46|     16|    }
   47|      1|    list4kStarts[0x11]=listLength-1;
   48|      1|    containsFFFD=containsSlow(0xfffd, list4kStarts[0xf], list4kStarts[0x10]);
   49|       |
   50|      1|    initBits();
   51|      1|    overrideIllegal();
   52|      1|}
_ZN6icu_786BMPSet8initBitsEv:
  121|      1|void BMPSet::initBits() {
  122|      1|    UChar32 start, limit;
  123|      1|    int32_t listIndex=0;
  124|       |
  125|       |    // Set latin1Contains[].
  126|      1|    do {
  127|      1|        start=list[listIndex++];
  128|      1|        if(listIndex<listLength) {
  ------------------
  |  Branch (128:12): [True: 1, False: 0]
  ------------------
  129|      1|            limit=list[listIndex++];
  130|      1|        } else {
  131|      0|            limit=0x110000;
  132|      0|        }
  133|      1|        if(start>=0x100) {
  ------------------
  |  Branch (133:12): [True: 1, False: 0]
  ------------------
  134|      1|            break;
  135|      1|        }
  136|      0|        do {
  137|      0|            latin1Contains[start++]=1;
  138|      0|        } while(start<limit && start<0x100);
  ------------------
  |  Branch (138:17): [True: 0, False: 0]
  |  Branch (138:32): [True: 0, False: 0]
  ------------------
  139|      0|    } while(limit<=0x100);
  ------------------
  |  Branch (139:13): [True: 0, False: 0]
  ------------------
  140|       |
  141|       |    // Find the first range overlapping with (or after) 80..FF again,
  142|       |    // to include them in table7FF as well.
  143|      1|    for(listIndex=0;;) {
  144|      1|        start=list[listIndex++];
  145|      1|        if(listIndex<listLength) {
  ------------------
  |  Branch (145:12): [True: 1, False: 0]
  ------------------
  146|      1|            limit=list[listIndex++];
  147|      1|        } else {
  148|      0|            limit=0x110000;
  149|      0|        }
  150|      1|        if(limit>0x80) {
  ------------------
  |  Branch (150:12): [True: 1, False: 0]
  ------------------
  151|      1|            if(start<0x80) {
  ------------------
  |  Branch (151:16): [True: 0, False: 1]
  ------------------
  152|      0|                start=0x80;
  153|      0|            }
  154|      1|            break;
  155|      1|        }
  156|      1|    }
  157|       |
  158|       |    // Set table7FF[].
  159|     16|    while(start<0x800) {
  ------------------
  |  Branch (159:11): [True: 15, False: 1]
  ------------------
  160|     15|        set32x64Bits(table7FF, start, limit<=0x800 ? limit : 0x800);
  ------------------
  |  Branch (160:39): [True: 15, False: 0]
  ------------------
  161|     15|        if(limit>0x800) {
  ------------------
  |  Branch (161:12): [True: 0, False: 15]
  ------------------
  162|      0|            start=0x800;
  163|      0|            break;
  164|      0|        }
  165|       |
  166|     15|        start=list[listIndex++];
  167|     15|        if(listIndex<listLength) {
  ------------------
  |  Branch (167:12): [True: 15, False: 0]
  ------------------
  168|     15|            limit=list[listIndex++];
  169|     15|        } else {
  170|      0|            limit=0x110000;
  171|      0|        }
  172|     15|    }
  173|       |
  174|       |    // Set bmpBlockBits[].
  175|      1|    int32_t minStart=0x800;
  176|     64|    while(start<0x10000) {
  ------------------
  |  Branch (176:11): [True: 63, False: 1]
  ------------------
  177|     63|        if(limit>0x10000) {
  ------------------
  |  Branch (177:12): [True: 0, False: 63]
  ------------------
  178|      0|            limit=0x10000;
  179|      0|        }
  180|       |
  181|     63|        if(start<minStart) {
  ------------------
  |  Branch (181:12): [True: 48, False: 15]
  ------------------
  182|     48|            start=minStart;
  183|     48|        }
  184|     63|        if(start<limit) {  // Else: Another range entirely in a known mixed-value block.
  ------------------
  |  Branch (184:12): [True: 15, False: 48]
  ------------------
  185|     15|            if(start&0x3f) {
  ------------------
  |  Branch (185:16): [True: 12, False: 3]
  ------------------
  186|       |                // Mixed-value block of 64 code points.
  187|     12|                start>>=6;
  188|     12|                bmpBlockBits[start&0x3f]|=0x10001<<(start>>6);
  189|     12|                start=(start+1)<<6;  // Round up to the next block boundary.
  190|     12|                minStart=start;      // Ignore further ranges in this block.
  191|     12|            }
  192|     15|            if(start<limit) {
  ------------------
  |  Branch (192:16): [True: 3, False: 12]
  ------------------
  193|      3|                if(start<(limit&~0x3f)) {
  ------------------
  |  Branch (193:20): [True: 0, False: 3]
  ------------------
  194|       |                    // Multiple all-ones blocks of 64 code points each.
  195|      0|                    set32x64Bits(bmpBlockBits, start>>6, limit>>6);
  196|      0|                }
  197|       |
  198|      3|                if(limit&0x3f) {
  ------------------
  |  Branch (198:20): [True: 3, False: 0]
  ------------------
  199|       |                    // Mixed-value block of 64 code points.
  200|      3|                    limit>>=6;
  201|      3|                    bmpBlockBits[limit&0x3f]|=0x10001<<(limit>>6);
  202|      3|                    limit=(limit+1)<<6;  // Round up to the next block boundary.
  203|      3|                    minStart=limit;      // Ignore further ranges in this block.
  204|      3|                }
  205|      3|            }
  206|     15|        }
  207|       |
  208|     63|        if(limit==0x10000) {
  ------------------
  |  Branch (208:12): [True: 0, False: 63]
  ------------------
  209|      0|            break;
  210|      0|        }
  211|       |
  212|     63|        start=list[listIndex++];
  213|     63|        if(listIndex<listLength) {
  ------------------
  |  Branch (213:12): [True: 62, False: 1]
  ------------------
  214|     62|            limit=list[listIndex++];
  215|     62|        } else {
  216|      1|            limit=0x110000;
  217|      1|        }
  218|     63|    }
  219|      1|}
_ZN6icu_786BMPSet15overrideIllegalEv:
  229|      1|void BMPSet::overrideIllegal() {
  230|      1|    uint32_t bits, mask;
  231|      1|    int32_t i;
  232|       |
  233|      1|    if(containsFFFD) {
  ------------------
  |  Branch (233:8): [True: 0, False: 1]
  ------------------
  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|      1|    } else {
  250|      1|        mask= static_cast<uint32_t>(~(0x10001<<0xd));   // Lead byte 0xED.
  251|     33|        for(i=32; i<64; ++i) {  // Second half of 4k block.
  ------------------
  |  Branch (251:19): [True: 32, False: 1]
  ------------------
  252|     32|            bmpBlockBits[i]&=mask;
  253|     32|        }
  254|      1|    }
  255|      1|}
_ZNK6icu_786BMPSet13findCodePointEiii:
  257|    417|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|    417|    if (c < list[lo])
  ------------------
  |  Branch (270:9): [True: 277, False: 140]
  ------------------
  271|    277|        return lo;
  272|       |    // High runner test.  c is often after the last range, so an
  273|       |    // initial check for this condition pays off.
  274|    140|    if (lo >= hi || c >= list[hi-1])
  ------------------
  |  Branch (274:9): [True: 0, False: 140]
  |  Branch (274:21): [True: 22, False: 118]
  ------------------
  275|     22|        return hi;
  276|       |    // invariant: c >= list[lo]
  277|       |    // invariant: c < list[hi]
  278|    927|    for (;;) {
  279|    927|        int32_t i = (lo + hi) >> 1;
  280|    927|        if (i == lo) {
  ------------------
  |  Branch (280:13): [True: 118, False: 809]
  ------------------
  281|    118|            break; // Found!
  282|    809|        } else if (c < list[i]) {
  ------------------
  |  Branch (282:20): [True: 450, False: 359]
  ------------------
  283|    450|            hi = i;
  284|    450|        } else {
  285|    359|            lo = i;
  286|    359|        }
  287|    927|    }
  288|    118|    return hi;
  289|    140|}
_ZNK6icu_786BMPSet8containsEi:
  292|  2.38k|BMPSet::contains(UChar32 c) const {
  293|  2.38k|    if (static_cast<uint32_t>(c) <= 0xff) {
  ------------------
  |  Branch (293:9): [True: 0, False: 2.38k]
  ------------------
  294|      0|        return latin1Contains[c];
  295|  2.38k|    } else if (static_cast<uint32_t>(c) <= 0x7ff) {
  ------------------
  |  Branch (295:16): [True: 60, False: 2.32k]
  ------------------
  296|     60|        return (table7FF[c & 0x3f] & (static_cast<uint32_t>(1) << (c >> 6))) != 0;
  297|  2.32k|    } else if (static_cast<uint32_t>(c) < 0xd800 || (c >= 0xe000 && c <= 0xffff)) {
  ------------------
  |  Branch (297:16): [True: 270, False: 2.05k]
  |  Branch (297:54): [True: 2.00k, False: 51]
  |  Branch (297:69): [True: 66, False: 1.93k]
  ------------------
  298|    336|        int lead=c>>12;
  299|    336|        uint32_t twoBits=(bmpBlockBits[(c>>6)&0x3f]>>lead)&0x10001;
  300|    336|        if(twoBits<=1) {
  ------------------
  |  Branch (300:12): [True: 166, False: 170]
  ------------------
  301|       |            // All 64 code points with the same bits 15..6
  302|       |            // are either in the set or not.
  303|    166|            return twoBits;
  304|    170|        } else {
  305|       |            // Look up the code point in its 4k block of code points.
  306|    170|            return containsSlow(c, list4kStarts[lead], list4kStarts[lead+1]);
  307|    170|        }
  308|  1.98k|    } else if (static_cast<uint32_t>(c) <= 0x10ffff) {
  ------------------
  |  Branch (308:16): [True: 229, False: 1.75k]
  ------------------
  309|       |        // surrogate or supplementary code point
  310|    229|        return containsSlow(c, list4kStarts[0xd], list4kStarts[0x11]);
  311|  1.75k|    } else {
  312|       |        // Out-of-range code points get false, consistent with long-standing
  313|       |        // behavior of UnicodeSet::contains(c).
  314|  1.75k|        return false;
  315|  1.75k|    }
  316|  2.38k|}
bmpset.cpp:_ZN6icu_78L12set32x64BitsEPjii:
   70|     15|static void set32x64Bits(uint32_t table[64], int32_t start, int32_t limit) {
   71|     15|    U_ASSERT(start<limit);
  ------------------
  |  |   35|     15|#   define U_ASSERT(exp) (void)0
  ------------------
   72|     15|    U_ASSERT(limit<=0x800);
  ------------------
  |  |   35|     15|#   define U_ASSERT(exp) (void)0
  ------------------
   73|       |
   74|     15|    int32_t lead=start>>6;  // Named for UTF-8 2-byte lead byte with upper 5 bits.
   75|     15|    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|     15|    uint32_t bits = static_cast<uint32_t>(1) << lead;
   79|     15|    if((start+1)==limit) {  // Single-character shortcut.
  ------------------
  |  Branch (79:8): [True: 15, False: 0]
  ------------------
   80|     15|        table[trail]|=bits;
   81|     15|        return;
   82|     15|    }
   83|       |
   84|      0|    int32_t limitLead=limit>>6;
   85|      0|    int32_t limitTrail=limit&0x3f;
   86|       |
   87|      0|    if(lead==limitLead) {
  ------------------
  |  Branch (87:8): [True: 0, False: 0]
  ------------------
   88|       |        // Partial vertical bit column.
   89|      0|        while(trail<limitTrail) {
  ------------------
  |  Branch (89:15): [True: 0, False: 0]
  ------------------
   90|      0|            table[trail++]|=bits;
   91|      0|        }
   92|      0|    } else {
   93|       |        // Partial vertical bit column,
   94|       |        // followed by a bit rectangle,
   95|       |        // followed by another partial vertical bit column.
   96|      0|        if(trail>0) {
  ------------------
  |  Branch (96:12): [True: 0, False: 0]
  ------------------
   97|      0|            do {
   98|      0|                table[trail++]|=bits;
   99|      0|            } while(trail<64);
  ------------------
  |  Branch (99:21): [True: 0, False: 0]
  ------------------
  100|      0|            ++lead;
  101|      0|        }
  102|      0|        if(lead<limitLead) {
  ------------------
  |  Branch (102:12): [True: 0, False: 0]
  ------------------
  103|      0|            bits = ~((static_cast<unsigned>(1) << lead) - 1);
  104|      0|            if(limitLead<0x20) {
  ------------------
  |  Branch (104:16): [True: 0, False: 0]
  ------------------
  105|      0|                bits &= (static_cast<unsigned>(1) << limitLead) - 1;
  106|      0|            }
  107|      0|            for(trail=0; trail<64; ++trail) {
  ------------------
  |  Branch (107:26): [True: 0, False: 0]
  ------------------
  108|      0|                table[trail]|=bits;
  109|      0|            }
  110|      0|        }
  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|      0|        bits = static_cast<uint32_t>(1) << ((limitLead == 0x20) ? (limitLead - 1) : limitLead);
  ------------------
  |  Branch (114:45): [True: 0, False: 0]
  ------------------
  115|      0|        for(trail=0; trail<limitTrail; ++trail) {
  ------------------
  |  Branch (115:22): [True: 0, False: 0]
  ------------------
  116|      0|            table[trail]|=bits;
  117|      0|        }
  118|      0|    }
  119|      0|}

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

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

locid.cpp:_ZN6icu_7812ByteSinkUtil28viaByteSinkToTerminatedCharsIZZNS_6Locale4initENS_11StringPieceEaENK3$_0clENSt3__117basic_string_viewIcNS5_11char_traitsIcEEEEPciR10UErrorCodeEUlRNS_8ByteSinkESC_E_vEEiSA_iOT_SC_:
  112|   118k|                                                UErrorCode& status) {
  113|   118k|        if (U_FAILURE(status)) { return 0; }
  ------------------
  |  Branch (113:13): [True: 0, False: 118k]
  ------------------
  114|   118k|        CheckedArrayByteSink sink(buffer, capacity);
  115|   118k|        lambda(sink, status);
  116|   118k|        if (U_FAILURE(status)) { return 0; }
  ------------------
  |  Branch (116:13): [True: 1.68k, False: 116k]
  ------------------
  117|       |
  118|   116k|        int32_t reslen = sink.NumberOfBytesAppended();
  119|       |
  120|   116k|        if (sink.Overflowed()) {
  ------------------
  |  Branch (120:13): [True: 3.10k, False: 113k]
  ------------------
  121|  3.10k|            status = U_BUFFER_OVERFLOW_ERROR;
  122|  3.10k|            return reslen;
  123|  3.10k|        }
  124|       |
  125|   113k|        return u_terminateChars(buffer, capacity, reslen, &status);
  ------------------
  |  |  406|   113k|#define u_terminateChars U_ICU_ENTRY_POINT_RENAME(u_terminateChars)
  |  |  ------------------
  |  |  |  |  123|   113k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   113k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   113k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  126|   116k|    }
loclikely.cpp:_ZN6icu_7812ByteSinkUtil23viaByteSinkToCharStringIZ27ulocimp_addLikelySubtags_78PKcR10UErrorCodeE3$_0vEENS_10CharStringEOT_S5_:
  141|  21.6k|    static CharString viaByteSinkToCharString(F&& lambda, UErrorCode& status) {
  142|  21.6k|        if (U_FAILURE(status)) { return {}; }
  ------------------
  |  Branch (142:13): [True: 0, False: 21.6k]
  ------------------
  143|  21.6k|        CharString result;
  144|  21.6k|        CharStringByteSink sink(&result);
  145|  21.6k|        lambda(sink, status);
  146|  21.6k|        return result;
  147|  21.6k|    }
loclikely.cpp:_ZN6icu_7812ByteSinkUtil23viaByteSinkToCharStringIZ26ulocimp_minimizeSubtags_78PKcbR10UErrorCodeE3$_0vEENS_10CharStringEOT_S5_:
  141|  9.48k|    static CharString viaByteSinkToCharString(F&& lambda, UErrorCode& status) {
  142|  9.48k|        if (U_FAILURE(status)) { return {}; }
  ------------------
  |  Branch (142:13): [True: 0, False: 9.48k]
  ------------------
  143|  9.48k|        CharString result;
  144|  9.48k|        CharStringByteSink sink(&result);
  145|  9.48k|        lambda(sink, status);
  146|  9.48k|        return result;
  147|  9.48k|    }
uloc.cpp:_ZN6icu_7812ByteSinkUtil28viaByteSinkToTerminatedCharsIZ23uloc_getKeywordValue_78E3$_0vEEiPciOT_R10UErrorCode:
  112|   221k|                                                UErrorCode& status) {
  113|   221k|        if (U_FAILURE(status)) { return 0; }
  ------------------
  |  Branch (113:13): [True: 0, False: 221k]
  ------------------
  114|   221k|        CheckedArrayByteSink sink(buffer, capacity);
  115|   221k|        lambda(sink, status);
  116|   221k|        if (U_FAILURE(status)) { return 0; }
  ------------------
  |  Branch (116:13): [True: 11.8k, False: 209k]
  ------------------
  117|       |
  118|   209k|        int32_t reslen = sink.NumberOfBytesAppended();
  119|       |
  120|   209k|        if (sink.Overflowed()) {
  ------------------
  |  Branch (120:13): [True: 150, False: 209k]
  ------------------
  121|    150|            status = U_BUFFER_OVERFLOW_ERROR;
  122|    150|            return reslen;
  123|    150|        }
  124|       |
  125|   209k|        return u_terminateChars(buffer, capacity, reslen, &status);
  ------------------
  |  |  406|   209k|#define u_terminateChars U_ICU_ENTRY_POINT_RENAME(u_terminateChars)
  |  |  ------------------
  |  |  |  |  123|   209k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   209k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   209k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  126|   209k|    }
uloc.cpp:_ZN6icu_7812ByteSinkUtil23viaByteSinkToCharStringIZ26ulocimp_getKeywordValue_78PKcNSt3__117basic_string_viewIcNS4_11char_traitsIcEEEER10UErrorCodeE3$_0vEENS_10CharStringEOT_SA_:
  141|   227k|    static CharString viaByteSinkToCharString(F&& lambda, UErrorCode& status) {
  142|   227k|        if (U_FAILURE(status)) { return {}; }
  ------------------
  |  Branch (142:13): [True: 0, False: 227k]
  ------------------
  143|   227k|        CharString result;
  144|   227k|        CharStringByteSink sink(&result);
  145|   227k|        lambda(sink, status);
  146|   227k|        return result;
  147|   227k|    }
uloc.cpp:_ZN6icu_7812ByteSinkUtil23viaByteSinkToCharStringIZ20ulocimp_getRegion_78NSt3__117basic_string_viewIcNS2_11char_traitsIcEEEER10UErrorCodeE3$_0vEENS_10CharStringEOT_S8_:
  141|   102k|    static CharString viaByteSinkToCharString(F&& lambda, UErrorCode& status) {
  142|   102k|        if (U_FAILURE(status)) { return {}; }
  ------------------
  |  Branch (142:13): [True: 0, False: 102k]
  ------------------
  143|   102k|        CharString result;
  144|   102k|        CharStringByteSink sink(&result);
  145|   102k|        lambda(sink, status);
  146|   102k|        return result;
  147|   102k|    }
uloc.cpp:_ZN6icu_7812ByteSinkUtil23viaByteSinkToCharStringIZ20ulocimp_getParent_78PKcR10UErrorCodeE3$_0vEENS_10CharStringEOT_S5_:
  141|   129k|    static CharString viaByteSinkToCharString(F&& lambda, UErrorCode& status) {
  142|   129k|        if (U_FAILURE(status)) { return {}; }
  ------------------
  |  Branch (142:13): [True: 0, False: 129k]
  ------------------
  143|   129k|        CharString result;
  144|   129k|        CharStringByteSink sink(&result);
  145|   129k|        lambda(sink, status);
  146|   129k|        return result;
  147|   129k|    }
uloc.cpp:_ZN6icu_7812ByteSinkUtil28viaByteSinkToTerminatedCharsIZ18uloc_getCountry_78E3$_0vEEiPciOT_R10UErrorCode:
  112|  1.66k|                                                UErrorCode& status) {
  113|  1.66k|        if (U_FAILURE(status)) { return 0; }
  ------------------
  |  Branch (113:13): [True: 0, False: 1.66k]
  ------------------
  114|  1.66k|        CheckedArrayByteSink sink(buffer, capacity);
  115|  1.66k|        lambda(sink, status);
  116|  1.66k|        if (U_FAILURE(status)) { return 0; }
  ------------------
  |  Branch (116:13): [True: 0, False: 1.66k]
  ------------------
  117|       |
  118|  1.66k|        int32_t reslen = sink.NumberOfBytesAppended();
  119|       |
  120|  1.66k|        if (sink.Overflowed()) {
  ------------------
  |  Branch (120:13): [True: 0, False: 1.66k]
  ------------------
  121|      0|            status = U_BUFFER_OVERFLOW_ERROR;
  122|      0|            return reslen;
  123|      0|        }
  124|       |
  125|  1.66k|        return u_terminateChars(buffer, capacity, reslen, &status);
  ------------------
  |  |  406|  1.66k|#define u_terminateChars U_ICU_ENTRY_POINT_RENAME(u_terminateChars)
  |  |  ------------------
  |  |  |  |  123|  1.66k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.66k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.66k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  126|  1.66k|    }
uloc.cpp:_ZN6icu_7812ByteSinkUtil23viaByteSinkToCharStringIZ18ulocimp_getName_78NSt3__117basic_string_viewIcNS2_11char_traitsIcEEEER10UErrorCodeE3$_0vEENS_10CharStringEOT_S8_:
  141|  53.4k|    static CharString viaByteSinkToCharString(F&& lambda, UErrorCode& status) {
  142|  53.4k|        if (U_FAILURE(status)) { return {}; }
  ------------------
  |  Branch (142:13): [True: 0, False: 53.4k]
  ------------------
  143|  53.4k|        CharString result;
  144|  53.4k|        CharStringByteSink sink(&result);
  145|  53.4k|        lambda(sink, status);
  146|  53.4k|        return result;
  147|  53.4k|    }
uloc.cpp:_ZN6icu_7812ByteSinkUtil23viaByteSinkToCharStringIZ22ulocimp_getBaseName_78NSt3__117basic_string_viewIcNS2_11char_traitsIcEEEER10UErrorCodeE3$_0vEENS_10CharStringEOT_S8_:
  141|   756k|    static CharString viaByteSinkToCharString(F&& lambda, UErrorCode& status) {
  142|   756k|        if (U_FAILURE(status)) { return {}; }
  ------------------
  |  Branch (142:13): [True: 324, False: 756k]
  ------------------
  143|   756k|        CharString result;
  144|   756k|        CharStringByteSink sink(&result);
  145|   756k|        lambda(sink, status);
  146|   756k|        return result;
  147|   756k|    }
uloc.cpp:_ZN6icu_7812ByteSinkUtil23viaByteSinkToCharStringIZ23ulocimp_canonicalize_78NSt3__117basic_string_viewIcNS2_11char_traitsIcEEEER10UErrorCodeE3$_0vEENS_10CharStringEOT_S8_:
  141|  40.5k|    static CharString viaByteSinkToCharString(F&& lambda, UErrorCode& status) {
  142|  40.5k|        if (U_FAILURE(status)) { return {}; }
  ------------------
  |  Branch (142:13): [True: 0, False: 40.5k]
  ------------------
  143|  40.5k|        CharString result;
  144|  40.5k|        CharStringByteSink sink(&result);
  145|  40.5k|        lambda(sink, status);
  146|  40.5k|        return result;
  147|  40.5k|    }
uloc_tag.cpp:_ZN6icu_7812ByteSinkUtil23viaByteSinkToCharStringIZ25ulocimp_forLanguageTag_78PKciPiR10UErrorCodeE3$_0vEENS_10CharStringEOT_S6_:
  141|   111k|    static CharString viaByteSinkToCharString(F&& lambda, UErrorCode& status) {
  142|   111k|        if (U_FAILURE(status)) { return {}; }
  ------------------
  |  Branch (142:13): [True: 0, False: 111k]
  ------------------
  143|   111k|        CharString result;
  144|   111k|        CharStringByteSink sink(&result);
  145|   111k|        lambda(sink, status);
  146|   111k|        return result;
  147|   111k|    }

_ZN6icu_788ByteSinkD2Ev:
   15|  8.55M|ByteSink::~ByteSink() {}
_ZN6icu_7820CheckedArrayByteSinkC2EPci:
   32|  1.17M|    : outbuf_(outbuf), capacity_(capacity < 0 ? 0 : capacity),
  ------------------
  |  Branch (32:34): [True: 0, False: 1.17M]
  ------------------
   33|  1.17M|      size_(0), appended_(0), overflowed_(false) {
   34|  1.17M|}
_ZN6icu_7820CheckedArrayByteSink6AppendEPKci:
   44|  4.85M|void CheckedArrayByteSink::Append(const char* bytes, int32_t n) {
   45|  4.85M|  if (n <= 0) {
  ------------------
  |  Branch (45:7): [True: 584k, False: 4.26M]
  ------------------
   46|   584k|    return;
   47|   584k|  }
   48|  4.26M|  if (n > (INT32_MAX - appended_)) {
  ------------------
  |  Branch (48:7): [True: 0, False: 4.26M]
  ------------------
   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|  4.26M|  appended_ += n;
   55|  4.26M|  int32_t available = capacity_ - size_;
   56|  4.26M|  if (n > available) {
  ------------------
  |  Branch (56:7): [True: 3.96M, False: 299k]
  ------------------
   57|  3.96M|    n = available;
   58|  3.96M|    overflowed_ = true;
   59|  3.96M|  }
   60|  4.26M|  if (n > 0 && bytes != (outbuf_ + size_)) {
  ------------------
  |  Branch (60:7): [True: 302k, False: 3.96M]
  |  Branch (60:16): [True: 300k, False: 1.66k]
  ------------------
   61|   300k|    uprv_memcpy(outbuf_ + size_, bytes, n);
  ------------------
  |  |   42|   300k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   300k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|   300k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|   300k|    _Pragma("clang diagnostic push") \
  |  |   45|   300k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|   300k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|   300k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|   300k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|   300k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|   300k|    _Pragma("clang diagnostic pop") \
  |  |   49|   300k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|   300k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|   300k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   300k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   62|   300k|  }
   63|  4.26M|  size_ += n;
   64|  4.26M|}
_ZN6icu_7820CheckedArrayByteSink15GetAppendBufferEiiPciPi:
   70|  1.81M|                                            int32_t* result_capacity) {
   71|  1.81M|  if (min_capacity < 1 || scratch_capacity < min_capacity) {
  ------------------
  |  Branch (71:7): [True: 556k, False: 1.25M]
  |  Branch (71:27): [True: 0, False: 1.25M]
  ------------------
   72|   556k|    *result_capacity = 0;
   73|   556k|    return nullptr;
   74|   556k|  }
   75|  1.25M|  int32_t available = capacity_ - size_;
   76|  1.25M|  if (available >= min_capacity) {
  ------------------
  |  Branch (76:7): [True: 1.66k, False: 1.25M]
  ------------------
   77|  1.66k|    *result_capacity = available;
   78|  1.66k|    return outbuf_ + size_;
   79|  1.25M|  } else {
   80|  1.25M|    *result_capacity = scratch_capacity;
   81|  1.25M|    return scratch;
   82|  1.25M|  }
   83|  1.25M|}

_ZN6icu_789BytesTrieD2Ev:
   26|  38.4k|BytesTrie::~BytesTrie() {
   27|  38.4k|    uprv_free(ownedArray_);
  ------------------
  |  | 1503|  38.4k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  38.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  38.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  38.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   28|  38.4k|}
_ZN6icu_789BytesTrie9readValueEPKhi:
   32|  38.4k|BytesTrie::readValue(const uint8_t *pos, int32_t leadByte) {
   33|  38.4k|    int32_t value;
   34|  38.4k|    if(leadByte<kMinTwoByteValueLead) {
  ------------------
  |  Branch (34:8): [True: 60, False: 38.3k]
  ------------------
   35|     60|        value=leadByte-kMinOneByteValueLead;
   36|  38.3k|    } else if(leadByte<kMinThreeByteValueLead) {
  ------------------
  |  Branch (36:15): [True: 37.7k, False: 644]
  ------------------
   37|  37.7k|        value=((leadByte-kMinTwoByteValueLead)<<8)|*pos;
   38|  37.7k|    } else if(leadByte<kFourByteValueLead) {
  ------------------
  |  Branch (38:15): [True: 644, False: 0]
  ------------------
   39|    644|        value=((leadByte-kMinThreeByteValueLead)<<16)|(pos[0]<<8)|pos[1];
   40|    644|    } 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|  38.4k|    return value;
   46|  38.4k|}
_ZN6icu_789BytesTrie11jumpByDeltaEPKh:
   49|   147k|BytesTrie::jumpByDelta(const uint8_t *pos) {
   50|   147k|    int32_t delta=*pos++;
   51|   147k|    if(delta<kMinTwoByteDeltaLead) {
  ------------------
  |  Branch (51:8): [True: 45.1k, False: 101k]
  ------------------
   52|       |        // nothing to do
   53|   101k|    } else if(delta<kMinThreeByteDeltaLead) {
  ------------------
  |  Branch (53:15): [True: 94.7k, False: 7.14k]
  ------------------
   54|  94.7k|        delta=((delta-kMinTwoByteDeltaLead)<<8)|*pos++;
   55|  94.7k|    } else if(delta<kFourByteDeltaLead) {
  ------------------
  |  Branch (55:15): [True: 7.14k, False: 0]
  ------------------
   56|  7.14k|        delta=((delta-kMinThreeByteDeltaLead)<<16)|(pos[0]<<8)|pos[1];
   57|  7.14k|        pos+=2;
   58|  7.14k|    } 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|   147k|    return pos+delta;
   66|   147k|}
_ZN6icu_789BytesTrie10branchNextEPKhii:
   81|  87.7k|BytesTrie::branchNext(const uint8_t *pos, int32_t length, int32_t inByte) {
   82|       |    // Branch according to the current byte.
   83|  87.7k|    if(length==0) {
  ------------------
  |  Branch (83:8): [True: 72.9k, False: 14.7k]
  ------------------
   84|  72.9k|        length=*pos++;
   85|  72.9k|    }
   86|  87.7k|    ++length;
   87|       |    // The length of the branch is the number of bytes to select from.
   88|       |    // The data structure encodes a binary search.
   89|   310k|    while(length>kMaxBranchLinearSubNodeLength) {
  ------------------
  |  Branch (89:11): [True: 222k, False: 87.7k]
  ------------------
   90|   222k|        if(inByte<*pos++) {
  ------------------
  |  Branch (90:12): [True: 147k, False: 75.8k]
  ------------------
   91|   147k|            length>>=1;
   92|   147k|            pos=jumpByDelta(pos);
   93|   147k|        } else {
   94|  75.8k|            length=length-(length>>1);
   95|  75.8k|            pos=skipDelta(pos);
   96|  75.8k|        }
   97|   222k|    }
   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|   151k|    do {
  102|   151k|        if(inByte==*pos++) {
  ------------------
  |  Branch (102:12): [True: 63.7k, False: 88.0k]
  ------------------
  103|  63.7k|            UStringTrieResult result;
  104|  63.7k|            int32_t node=*pos;
  105|  63.7k|            U_ASSERT(node>=kMinValueLead);
  ------------------
  |  |   35|  63.7k|#   define U_ASSERT(exp) (void)0
  ------------------
  106|  63.7k|            if(node&kValueIsFinal) {
  ------------------
  |  Branch (106:16): [True: 32.1k, False: 31.5k]
  ------------------
  107|       |                // Leave the final value for getValue() to read.
  108|  32.1k|                result=USTRINGTRIE_FINAL_VALUE;
  109|  32.1k|            } else {
  110|       |                // Use the non-final value as the jump delta.
  111|  31.5k|                ++pos;
  112|       |                // int32_t delta=readValue(pos, node>>1);
  113|  31.5k|                node>>=1;
  114|  31.5k|                int32_t delta;
  115|  31.5k|                if(node<kMinTwoByteValueLead) {
  ------------------
  |  Branch (115:20): [True: 6.33k, False: 25.2k]
  ------------------
  116|  6.33k|                    delta=node-kMinOneByteValueLead;
  117|  25.2k|                } else if(node<kMinThreeByteValueLead) {
  ------------------
  |  Branch (117:27): [True: 25.0k, False: 196]
  ------------------
  118|  25.0k|                    delta=((node-kMinTwoByteValueLead)<<8)|*pos++;
  119|  25.0k|                } else if(node<kFourByteValueLead) {
  ------------------
  |  Branch (119:27): [True: 196, False: 0]
  ------------------
  120|    196|                    delta=((node-kMinThreeByteValueLead)<<16)|(pos[0]<<8)|pos[1];
  121|    196|                    pos+=2;
  122|    196|                } 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|  31.5k|                pos+=delta;
  131|  31.5k|                node=*pos;
  132|  31.5k|                result= node>=kMinValueLead ? valueResult(node) : USTRINGTRIE_NO_VALUE;
  ------------------
  |  Branch (132:25): [True: 316, False: 31.2k]
  ------------------
  133|  31.5k|            }
  134|  63.7k|            pos_=pos;
  135|  63.7k|            return result;
  136|  63.7k|        }
  137|  88.0k|        --length;
  138|  88.0k|        pos=skipValue(pos);
  139|  88.0k|    } while(length>1);
  ------------------
  |  Branch (139:13): [True: 64.0k, False: 23.9k]
  ------------------
  140|  23.9k|    if(inByte==*pos++) {
  ------------------
  |  Branch (140:8): [True: 14.7k, False: 9.28k]
  ------------------
  141|  14.7k|        pos_=pos;
  142|  14.7k|        int32_t node=*pos;
  143|  14.7k|        return node>=kMinValueLead ? valueResult(node) : USTRINGTRIE_NO_VALUE;
  ------------------
  |  Branch (143:16): [True: 5.69k, False: 9.01k]
  ------------------
  144|  14.7k|    } else {
  145|  9.28k|        stop();
  146|  9.28k|        return USTRINGTRIE_NO_MATCH;
  147|  9.28k|    }
  148|  23.9k|}
_ZN6icu_789BytesTrie8nextImplEPKhi:
  151|  89.1k|BytesTrie::nextImpl(const uint8_t *pos, int32_t inByte) {
  152|  89.7k|    for(;;) {
  153|  89.7k|        int32_t node=*pos++;
  154|  89.7k|        if(node<kMinLinearMatch) {
  ------------------
  |  Branch (154:12): [True: 87.7k, False: 1.97k]
  ------------------
  155|  87.7k|            return branchNext(pos, node, inByte);
  156|  87.7k|        } else if(node<kMinValueLead) {
  ------------------
  |  Branch (156:19): [True: 1.40k, False: 573]
  ------------------
  157|       |            // Match the first of length+1 bytes.
  158|  1.40k|            int32_t length=node-kMinLinearMatch;  // Actual match length minus 1.
  159|  1.40k|            if(inByte==*pos++) {
  ------------------
  |  Branch (159:16): [True: 1.08k, False: 315]
  ------------------
  160|  1.08k|                remainingMatchLength_=--length;
  161|  1.08k|                pos_=pos;
  162|  1.08k|                return (length<0 && (node=*pos)>=kMinValueLead) ?
  ------------------
  |  Branch (162:25): [True: 321, False: 765]
  |  Branch (162:37): [True: 275, False: 46]
  ------------------
  163|    811|                        valueResult(node) : USTRINGTRIE_NO_VALUE;
  164|  1.08k|            } else {
  165|       |                // No match.
  166|    315|                break;
  167|    315|            }
  168|  1.40k|        } else if(node&kValueIsFinal) {
  ------------------
  |  Branch (168:19): [True: 0, False: 573]
  ------------------
  169|       |            // No further matching bytes.
  170|      0|            break;
  171|    573|        } else {
  172|       |            // Skip intermediate value.
  173|    573|            pos=skipValue(pos, node);
  174|       |            // The next node must not also be a value node.
  175|    573|            U_ASSERT(*pos<kMinValueLead);
  ------------------
  |  |   35|    573|#   define U_ASSERT(exp) (void)0
  ------------------
  176|    573|        }
  177|  89.7k|    }
  178|    315|    stop();
  179|    315|    return USTRINGTRIE_NO_MATCH;
  180|  89.1k|}
_ZN6icu_789BytesTrie4nextEi:
  183|  90.4k|BytesTrie::next(int32_t inByte) {
  184|  90.4k|    const uint8_t *pos=pos_;
  185|  90.4k|    if(pos==nullptr) {
  ------------------
  |  Branch (185:8): [True: 0, False: 90.4k]
  ------------------
  186|      0|        return USTRINGTRIE_NO_MATCH;
  187|      0|    }
  188|  90.4k|    if(inByte<0) {
  ------------------
  |  Branch (188:8): [True: 0, False: 90.4k]
  ------------------
  189|      0|        inByte+=0x100;
  190|      0|    }
  191|  90.4k|    int32_t length=remainingMatchLength_;  // Actual remaining match length minus 1.
  192|  90.4k|    if(length>=0) {
  ------------------
  |  Branch (192:8): [True: 1.26k, False: 89.1k]
  ------------------
  193|       |        // Remaining part of a linear-match node.
  194|  1.26k|        if(inByte==*pos++) {
  ------------------
  |  Branch (194:12): [True: 1.13k, False: 130]
  ------------------
  195|  1.13k|            remainingMatchLength_=--length;
  196|  1.13k|            pos_=pos;
  197|  1.13k|            int32_t node;
  198|  1.13k|            return (length<0 && (node=*pos)>=kMinValueLead) ?
  ------------------
  |  Branch (198:21): [True: 635, False: 503]
  |  Branch (198:33): [True: 438, False: 197]
  ------------------
  199|    700|                    valueResult(node) : USTRINGTRIE_NO_VALUE;
  200|  1.13k|        } else {
  201|    130|            stop();
  202|    130|            return USTRINGTRIE_NO_MATCH;
  203|    130|        }
  204|  1.26k|    }
  205|  89.1k|    return nextImpl(pos, inByte);
  206|  90.4k|}

_ZN6icu_7810CharStringC2EOS0_:
   30|   449k|        : buffer(std::move(src.buffer)), len(src.len) {
   31|   449k|    src.len = 0;  // not strictly necessary because we make no guarantees on the source string
   32|   449k|}
_ZN6icu_7810CharStringaSEOS0_:
   34|   456k|CharString& CharString::operator=(CharString&& src) noexcept {
   35|   456k|    buffer = std::move(src.buffer);
   36|   456k|    len = src.len;
   37|   456k|    src.len = 0;  // not strictly necessary because we make no guarantees on the source string
   38|   456k|    return *this;
   39|   456k|}
_ZNK6icu_7810CharString9cloneDataER10UErrorCode:
   41|  48.5k|char *CharString::cloneData(UErrorCode &errorCode) const {
   42|  48.5k|    if (U_FAILURE(errorCode)) { return nullptr; }
  ------------------
  |  Branch (42:9): [True: 0, False: 48.5k]
  ------------------
   43|  48.5k|    char *p = static_cast<char *>(uprv_malloc(len + 1));
  ------------------
  |  | 1524|  48.5k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  48.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  48.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  48.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   44|  48.5k|    if (p == nullptr) {
  ------------------
  |  Branch (44:9): [True: 0, False: 48.5k]
  ------------------
   45|      0|        errorCode = U_MEMORY_ALLOCATION_ERROR;
   46|      0|        return nullptr;
   47|      0|    }
   48|  48.5k|    uprv_memcpy(p, buffer.getAlias(), len + 1);
  ------------------
  |  |   42|  48.5k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  48.5k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  48.5k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  48.5k|    _Pragma("clang diagnostic push") \
  |  |   45|  48.5k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  48.5k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  48.5k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  48.5k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  48.5k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  48.5k|    _Pragma("clang diagnostic pop") \
  |  |   49|  48.5k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  48.5k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  48.5k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  48.5k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   49|  48.5k|    return p;
   50|  48.5k|}
_ZNK6icu_7810CharString7extractEPciR10UErrorCode:
   52|  24.0k|int32_t CharString::extract(char *dest, int32_t capacity, UErrorCode &errorCode) const {
   53|  24.0k|    if (U_FAILURE(errorCode)) { return len; }
  ------------------
  |  Branch (53:9): [True: 0, False: 24.0k]
  ------------------
   54|  24.0k|    if (capacity < 0 || (capacity > 0 && dest == nullptr)) {
  ------------------
  |  Branch (54:9): [True: 0, False: 24.0k]
  |  Branch (54:26): [True: 24.0k, False: 0]
  |  Branch (54:42): [True: 0, False: 24.0k]
  ------------------
   55|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
   56|      0|        return len;
   57|      0|    }
   58|  24.0k|    const char *src = buffer.getAlias();
   59|  24.0k|    if (0 < len && len <= capacity && src != dest) {
  ------------------
  |  Branch (59:9): [True: 24.0k, False: 0]
  |  Branch (59:20): [True: 24.0k, False: 7]
  |  Branch (59:39): [True: 24.0k, False: 0]
  ------------------
   60|  24.0k|        uprv_memcpy(dest, src, len);
  ------------------
  |  |   42|  24.0k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  24.0k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  24.0k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  24.0k|    _Pragma("clang diagnostic push") \
  |  |   45|  24.0k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  24.0k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  24.0k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  24.0k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  24.0k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  24.0k|    _Pragma("clang diagnostic pop") \
  |  |   49|  24.0k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  24.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  24.0k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  24.0k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   61|  24.0k|    }
   62|  24.0k|    return u_terminateChars(dest, capacity, len, &errorCode);
  ------------------
  |  |  406|  24.0k|#define u_terminateChars U_ICU_ENTRY_POINT_RENAME(u_terminateChars)
  |  |  ------------------
  |  |  |  |  123|  24.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  24.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  24.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   63|  24.0k|}
_ZN6icu_7810CharString8copyFromERKS0_R10UErrorCode:
   65|  1.19M|CharString &CharString::copyFrom(const CharString &s, UErrorCode &errorCode) {
   66|  1.19M|    if(U_SUCCESS(errorCode) && this!=&s && ensureCapacity(s.len+1, 0, errorCode)) {
  ------------------
  |  Branch (66:8): [True: 1.19M, False: 648]
  |  Branch (66:32): [True: 1.19M, False: 0]
  |  Branch (66:44): [True: 1.19M, False: 0]
  ------------------
   67|  1.19M|        len=s.len;
   68|  1.19M|        uprv_memcpy(buffer.getAlias(), s.buffer.getAlias(), len+1);
  ------------------
  |  |   42|  1.19M|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  1.19M|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  1.19M|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  1.19M|    _Pragma("clang diagnostic push") \
  |  |   45|  1.19M|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  1.19M|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.19M|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  1.19M|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.19M|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  1.19M|    _Pragma("clang diagnostic pop") \
  |  |   49|  1.19M|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  1.19M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  1.19M|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  1.19M|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   69|  1.19M|    }
   70|  1.19M|    return *this;
   71|  1.19M|}
_ZN6icu_7810CharString8copyFromENS_11StringPieceER10UErrorCode:
   73|    528|CharString &CharString::copyFrom(StringPiece s, UErrorCode &errorCode) {
   74|    528|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (74:9): [True: 0, False: 528]
  ------------------
   75|      0|        return *this;
   76|      0|    }
   77|    528|    len = 0;
   78|    528|    append(s, errorCode);
   79|    528|    return *this;
   80|    528|}
_ZN6icu_7810CharString6appendEcR10UErrorCode:
  113|  5.34M|CharString &CharString::append(char c, UErrorCode &errorCode) {
  114|  5.34M|    if(ensureCapacity(len+2, 0, errorCode)) {
  ------------------
  |  Branch (114:8): [True: 5.19M, False: 145k]
  ------------------
  115|  5.19M|        buffer[len++]=c;
  116|  5.19M|        buffer[len]=0;
  117|  5.19M|    }
  118|  5.34M|    return *this;
  119|  5.34M|}
_ZN6icu_7810CharString6appendEPKciR10UErrorCode:
  121|  32.3M|CharString &CharString::append(const char *s, int32_t sLength, UErrorCode &errorCode) {
  122|  32.3M|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (122:8): [True: 213k, False: 32.0M]
  ------------------
  123|   213k|        return *this;
  124|   213k|    }
  125|  32.0M|    if(sLength<-1 || (s==nullptr && sLength!=0)) {
  ------------------
  |  Branch (125:8): [True: 0, False: 32.0M]
  |  Branch (125:23): [True: 522k, False: 31.5M]
  |  Branch (125:37): [True: 0, False: 522k]
  ------------------
  126|      0|        errorCode=U_ILLEGAL_ARGUMENT_ERROR;
  127|      0|        return *this;
  128|      0|    }
  129|  32.0M|    if(sLength<0) {
  ------------------
  |  Branch (129:8): [True: 933k, False: 31.1M]
  ------------------
  130|   933k|        sLength= static_cast<int32_t>(uprv_strlen(s));
  ------------------
  |  |   37|   933k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|   933k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  131|   933k|    }
  132|  32.0M|    if(sLength>0) {
  ------------------
  |  Branch (132:8): [True: 31.4M, False: 690k]
  ------------------
  133|  31.4M|        if(s==(buffer.getAlias()+len)) {
  ------------------
  |  Branch (133:12): [True: 3.17M, False: 28.2M]
  ------------------
  134|       |            // The caller wrote into the getAppendBuffer().
  135|  3.17M|            if(sLength>=(buffer.getCapacity()-len)) {
  ------------------
  |  Branch (135:16): [True: 0, False: 3.17M]
  ------------------
  136|       |                // The caller wrote too much.
  137|      0|                errorCode=U_INTERNAL_PROGRAM_ERROR;
  138|  3.17M|            } else {
  139|  3.17M|                buffer[len+=sLength]=0;
  140|  3.17M|            }
  141|  28.2M|        } else if(buffer.getAlias()<=s && s<(buffer.getAlias()+len) &&
  ------------------
  |  Branch (141:19): [True: 12.1M, False: 16.0M]
  |  Branch (141:43): [True: 0, False: 12.1M]
  ------------------
  142|  28.2M|                  sLength>=(buffer.getCapacity()-len)
  ------------------
  |  Branch (142:19): [True: 0, False: 0]
  ------------------
  143|  28.2M|        ) {
  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|  28.2M|        } else if(ensureCapacity(len+sLength+1, 0, errorCode)) {
  ------------------
  |  Branch (147:19): [True: 28.2M, False: 0]
  ------------------
  148|  28.2M|            uprv_memcpy(buffer.getAlias()+len, s, sLength);
  ------------------
  |  |   42|  28.2M|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  28.2M|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  28.2M|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  28.2M|    _Pragma("clang diagnostic push") \
  |  |   45|  28.2M|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  28.2M|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  28.2M|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  28.2M|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  28.2M|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  28.2M|    _Pragma("clang diagnostic pop") \
  |  |   49|  28.2M|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  28.2M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  28.2M|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  28.2M|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  149|  28.2M|            buffer[len+=sLength]=0;
  150|  28.2M|        }
  151|  31.4M|    }
  152|  32.0M|    return *this;
  153|  32.0M|}
_ZN6icu_7810CharString15getAppendBufferEiiRiR10UErrorCode:
  190|  3.30M|                                  UErrorCode &errorCode) {
  191|  3.30M|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (191:8): [True: 0, False: 3.30M]
  ------------------
  192|      0|        resultCapacity=0;
  193|      0|        return nullptr;
  194|      0|    }
  195|  3.30M|    int32_t appendCapacity=buffer.getCapacity()-len-1;  // -1 for NUL
  196|  3.30M|    if(appendCapacity>=minCapacity) {
  ------------------
  |  Branch (196:8): [True: 3.29M, False: 13.8k]
  ------------------
  197|  3.29M|        resultCapacity=appendCapacity;
  198|  3.29M|        return buffer.getAlias()+len;
  199|  3.29M|    }
  200|  13.8k|    if(ensureCapacity(len+minCapacity+1, len+desiredCapacityHint+1, errorCode)) {
  ------------------
  |  Branch (200:8): [True: 13.8k, False: 0]
  ------------------
  201|  13.8k|        resultCapacity=buffer.getCapacity()-len-1;
  202|  13.8k|        return buffer.getAlias()+len;
  203|  13.8k|    }
  204|      0|    resultCapacity=0;
  205|      0|    return nullptr;
  206|  13.8k|}
_ZN6icu_7810CharString20appendInvariantCharsERKNS_13UnicodeStringER10UErrorCode:
  208|  10.8k|CharString &CharString::appendInvariantChars(const UnicodeString &s, UErrorCode &errorCode) {
  209|  10.8k|    return appendInvariantChars(s.getBuffer(), s.length(), errorCode);
  210|  10.8k|}
_ZN6icu_7810CharString20appendInvariantCharsEPKDsiR10UErrorCode:
  212|   996k|CharString &CharString::appendInvariantChars(const char16_t* uchars, int32_t ucharsLen, UErrorCode &errorCode) {
  213|   996k|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (213:8): [True: 0, False: 996k]
  ------------------
  214|      0|        return *this;
  215|      0|    }
  216|   996k|    if (!uprv_isInvariantUString(uchars, ucharsLen)) {
  ------------------
  |  | 1518|   996k|#define uprv_isInvariantUString U_ICU_ENTRY_POINT_RENAME(uprv_isInvariantUString)
  |  |  ------------------
  |  |  |  |  123|   996k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   996k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   996k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (216:9): [True: 0, False: 996k]
  ------------------
  217|      0|        errorCode = U_INVARIANT_CONVERSION_ERROR;
  218|      0|        return *this;
  219|      0|    }
  220|   996k|    if(ensureCapacity(len+ucharsLen+1, 0, errorCode)) {
  ------------------
  |  Branch (220:8): [True: 996k, False: 0]
  ------------------
  221|   996k|        u_UCharsToChars(uchars, buffer.getAlias()+len, ucharsLen);
  ------------------
  |  |  211|   996k|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|   996k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   996k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   996k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  222|   996k|        len += ucharsLen;
  223|   996k|        buffer[len] = 0;
  224|   996k|    }
  225|   996k|    return *this;
  226|   996k|}
_ZN6icu_7810CharString14ensureCapacityEiiR10UErrorCode:
  230|  35.7M|                                 UErrorCode &errorCode) {
  231|  35.7M|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (231:8): [True: 145k, False: 35.6M]
  ------------------
  232|   145k|        return false;
  233|   145k|    }
  234|  35.6M|    if(capacity>buffer.getCapacity()) {
  ------------------
  |  Branch (234:8): [True: 340k, False: 35.2M]
  ------------------
  235|   340k|        if(desiredCapacityHint==0) {
  ------------------
  |  Branch (235:12): [True: 326k, False: 13.8k]
  ------------------
  236|   326k|            desiredCapacityHint=capacity+buffer.getCapacity();
  237|   326k|        }
  238|   340k|        if( (desiredCapacityHint<=capacity || buffer.resize(desiredCapacityHint, len+1)==nullptr) &&
  ------------------
  |  Branch (238:14): [True: 13.8k, False: 326k]
  |  Branch (238:47): [True: 0, False: 326k]
  ------------------
  239|   340k|            buffer.resize(capacity, len+1)==nullptr
  ------------------
  |  Branch (239:13): [True: 0, False: 13.8k]
  ------------------
  240|   340k|        ) {
  241|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  242|      0|            return false;
  243|      0|        }
  244|   340k|    }
  245|  35.6M|    return true;
  246|  35.6M|}

_ZN6icu_7810CharString4dataEv:
   85|  11.9M|    char *data() { return buffer.getAlias(); }
_ZN6icu_7810CharStringD2Ev:
   56|  20.8M|    ~CharString() {}
_ZN6icu_7810CharStringC2Ev:
   43|  15.5M|    CharString() : len(0) { buffer[0]=0; }
_ZN6icu_7810CharString5clearEv:
  127|  2.08M|    CharString &clear() { len=0; buffer[0]=0; return *this; }
_ZN6icu_7810CharString6appendENS_11StringPieceER10UErrorCode:
  131|  6.03M|    CharString &append(StringPiece s, UErrorCode &errorCode) {
  132|  6.03M|        return append(s.data(), s.length(), errorCode);
  133|  6.03M|    }
_ZN6icu_7810CharString6appendERKS0_R10UErrorCode:
  134|  3.39M|    CharString &append(const CharString &s, UErrorCode &errorCode) {
  135|  3.39M|        return append(s.data(), s.length(), errorCode);
  136|  3.39M|    }
_ZNK6icu_7810CharString4dataEv:
   84|  4.42M|    const char *data() const { return buffer.getAlias(); }
_ZNK6icu_7810CharString6lengthEv:
   80|  6.57M|    int32_t length() const { return len; }
_ZN6icu_7810CharStringC2ENS_11StringPieceER10UErrorCode:
   44|  1.66M|    CharString(StringPiece s, UErrorCode &errorCode) : len(0) {
   45|  1.66M|        buffer[0]=0;
   46|  1.66M|        append(s, errorCode);
   47|  1.66M|    }
_ZN6icu_7810CharStringC2ERKS0_R10UErrorCode:
   48|  1.11M|    CharString(const CharString &s, UErrorCode &errorCode) : len(0) {
   49|  1.11M|        buffer[0]=0;
   50|  1.11M|        append(s, errorCode);
   51|  1.11M|    }
_ZN6icu_7810CharStringC2EPKciR10UErrorCode:
   52|  2.00M|    CharString(const char *s, int32_t sLength, UErrorCode &errorCode) : len(0) {
   53|  2.00M|        buffer[0]=0;
   54|  2.00M|        append(s, sLength, errorCode);
   55|  2.00M|    }
_ZNK6icu_7810CharString7isEmptyEv:
   79|  8.34M|    UBool isEmpty() const { return len==0; }
_ZNK6icu_7810CharStringixEi:
   81|   939k|    char operator[](int32_t index) const { return buffer[index]; }
_ZNK6icu_7810CharString13toStringPieceEv:
   82|  97.5k|    StringPiece toStringPiece() const { return StringPiece(buffer.getAlias(), len); }
_ZNK6icu_7810CharStringeqERKS0_:
  108|   364k|    bool operator==(const CharString& other) const {
  109|   364k|        return len == other.length() && (len == 0 || uprv_memcmp(data(), other.data(), len) == 0);
  ------------------
  |  |  101|   297k|#define uprv_memcmp(buffer1, buffer2, size) U_STANDARD_CPP_NAMESPACE memcmp(buffer1, buffer2,size)
  |  |  ------------------
  |  |  |  |  393|   297k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (109:16): [True: 297k, False: 67.0k]
  |  Branch (109:42): [True: 49, False: 297k]
  |  Branch (109:54): [True: 283k, False: 13.3k]
  ------------------
  110|   364k|    }
_ZNK6icu_7810CharStringneERKS0_:
  111|  81.5k|    bool operator!=(const CharString& other) const {
  112|  81.5k|        return !operator==(other);
  113|  81.5k|    }
_ZNK6icu_7810CharStringeqENS_11StringPieceE:
  115|   491k|    bool operator==(StringPiece other) const {
  116|   491k|        return len == other.length() && (len == 0 || uprv_memcmp(data(), other.data(), len) == 0);
  ------------------
  |  |  101|  15.2k|#define uprv_memcmp(buffer1, buffer2, size) U_STANDARD_CPP_NAMESPACE memcmp(buffer1, buffer2,size)
  |  |  ------------------
  |  |  |  |  393|  15.2k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (116:16): [True: 15.2k, False: 476k]
  |  Branch (116:42): [True: 0, False: 15.2k]
  |  Branch (116:54): [True: 87, False: 15.1k]
  ------------------
  117|   491k|    }
_ZNK6icu_7810CharStringneENS_11StringPieceE:
  118|  57.8k|    bool operator!=(StringPiece other) const {
  119|  57.8k|        return !operator==(other);
  120|  57.8k|    }

_ZN6icu_7813CharStringMapD2Ev:
   33|     14|    ~CharStringMap() {
   34|     14|        uhash_close(map);
  ------------------
  |  |  991|     14|#define uhash_close U_ICU_ENTRY_POINT_RENAME(uhash_close)
  |  |  ------------------
  |  |  |  |  123|     14|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     14|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     14|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   35|     14|    }
_ZN6icu_7813CharStringMapC2EiR10UErrorCode:
   25|      7|    CharStringMap(int32_t size, UErrorCode &errorCode) {
   26|      7|        map = uhash_openSize(uhash_hashChars, uhash_compareChars, uhash_compareChars,
  ------------------
  |  | 1031|      7|#define uhash_openSize U_ICU_ENTRY_POINT_RENAME(uhash_openSize)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      map = uhash_openSize(uhash_hashChars, uhash_compareChars, uhash_compareChars,
  ------------------
  |  | 1011|      7|#define uhash_hashChars U_ICU_ENTRY_POINT_RENAME(uhash_hashChars)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      map = uhash_openSize(uhash_hashChars, uhash_compareChars, uhash_compareChars,
  ------------------
  |  |  993|      7|#define uhash_compareChars U_ICU_ENTRY_POINT_RENAME(uhash_compareChars)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      map = uhash_openSize(uhash_hashChars, uhash_compareChars, uhash_compareChars,
  ------------------
  |  |  993|      7|#define uhash_compareChars U_ICU_ENTRY_POINT_RENAME(uhash_compareChars)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   27|      7|                             size, &errorCode);
   28|      7|    }
_ZN6icu_7813CharStringMap3putEPKcS2_R10UErrorCode:
   45|  1.57k|    void put(const char *key, const char *value, UErrorCode &errorCode) {
   46|  1.57k|        uhash_put(map, const_cast<char *>(key), const_cast<char *>(value), &errorCode);
  ------------------
  |  | 1032|  1.57k|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   47|  1.57k|    }
_ZN6icu_7813CharStringMapC2EOS0_:
   29|     12|    CharStringMap(CharStringMap &&other) noexcept : map(other.map) {
   30|     12|        other.map = nullptr;
   31|     12|    }
_ZNK6icu_7813CharStringMap3getEPKc:
   44|  42.0k|    const char *get(const char *key) const { return static_cast<const char *>(uhash_get(map, key)); }
  ------------------
  |  | 1007|  42.0k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  42.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  42.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  42.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
_ZN6icu_7813CharStringMapC2Ev:
   24|      2|    CharStringMap() : map(nullptr) {}
_ZN6icu_7813CharStringMapaSEOS0_:
   37|      2|    CharStringMap &operator=(CharStringMap &&other) noexcept {
   38|      2|        map = other.map;
   39|      2|        other.map = nullptr;
   40|      2|        return *this;
   41|      2|    }

uprv_malloc_78:
   45|  19.7M|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|  19.7M|    if (s > 0) {
  ------------------
  |  Branch (54:9): [True: 19.7M, False: 0]
  ------------------
   55|  19.7M|        if (pAlloc) {
  ------------------
  |  Branch (55:13): [True: 0, False: 19.7M]
  ------------------
   56|      0|            return (*pAlloc)(pContext, s);
   57|  19.7M|        } else {
   58|  19.7M|            return uprv_default_malloc(s);
  ------------------
  |  |  615|  19.7M|# define uprv_default_malloc(x) malloc(x)
  ------------------
   59|  19.7M|        }
   60|  19.7M|    } else {
   61|      0|        return (void *)zeroMem;
   62|      0|    }
   63|  19.7M|}
uprv_realloc_78:
   66|   196k|uprv_realloc(void * buffer, size_t size) {
   67|       |#if U_DEBUG && defined(UPRV_MALLOC_COUNT)
   68|       |  putchar('~');
   69|       |  fflush(stdout);
   70|       |#endif
   71|   196k|    if (buffer == zeroMem) {
  ------------------
  |  Branch (71:9): [True: 0, False: 196k]
  ------------------
   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|   196k|    } else if (size == 0) {
  ------------------
  |  Branch (73:16): [True: 0, False: 196k]
  ------------------
   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|   196k|    } else {
   81|   196k|        if (pRealloc) {
  ------------------
  |  Branch (81:13): [True: 0, False: 196k]
  ------------------
   82|      0|            return (*pRealloc)(pContext, buffer, size);
   83|   196k|        } else {
   84|   196k|            return uprv_default_realloc(buffer, size);
  ------------------
  |  |  616|   196k|# define uprv_default_realloc(x,y) realloc(x,y)
  ------------------
   85|   196k|        }
   86|   196k|    }
   87|   196k|}
uprv_free_78:
   90|  21.9M|uprv_free(void *buffer) {
   91|       |#if U_DEBUG && defined(UPRV_MALLOC_COUNT)
   92|       |  putchar('<');
   93|       |  fflush(stdout);
   94|       |#endif
   95|  21.9M|    if (buffer != zeroMem) {
  ------------------
  |  Branch (95:9): [True: 21.9M, False: 0]
  ------------------
   96|  21.9M|        if (pFree) {
  ------------------
  |  Branch (96:13): [True: 0, False: 21.9M]
  ------------------
   97|      0|            (*pFree)(pContext, buffer);
   98|  21.9M|        } else {
   99|  21.9M|            uprv_default_free(buffer);
  ------------------
  |  |  617|  21.9M|# define uprv_default_free(x) free(x)
  ------------------
  100|  21.9M|        }
  101|  21.9M|    }
  102|  21.9M|}

_ZN6icu_7815MaybeStackArrayIcLi40EEC2Ev:
  344|  20.3M|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZN6icu_7815MaybeStackArrayIcLi40EED2Ev:
  363|  20.8M|    ~MaybeStackArray() { releaseArray(); }
_ZN6icu_7815MaybeStackArrayIcLi40EEC2EOS1_:
  479|   449k|        : ptr(src.ptr), capacity(src.capacity), needToRelease(src.needToRelease) {
  480|   449k|    if (src.ptr == src.stackArray) {
  ------------------
  |  Branch (480:9): [True: 449k, False: 0]
  ------------------
  481|   449k|        ptr = stackArray;
  482|   449k|        uprv_memcpy(stackArray, src.stackArray, sizeof(T) * src.capacity);
  ------------------
  |  |   42|   449k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   449k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|   449k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|   449k|    _Pragma("clang diagnostic push") \
  |  |   45|   449k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|   449k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|   449k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|   449k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|   449k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|   449k|    _Pragma("clang diagnostic pop") \
  |  |   49|   449k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|   449k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|   449k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   449k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  483|   449k|    } else {
  484|      0|        src.resetToStackArray();  // take ownership away from src
  485|      0|    }
  486|   449k|}
_ZN6icu_7815MaybeStackArrayIcLi40EEaSEOS1_:
  490|   456k|MaybeStackArray<T, stackCapacity>::operator=(MaybeStackArray <T, stackCapacity>&& src) noexcept {
  491|   456k|    releaseArray();  // in case this instance had its own memory allocated
  492|   456k|    capacity = src.capacity;
  493|   456k|    needToRelease = src.needToRelease;
  494|   456k|    if (src.ptr == src.stackArray) {
  ------------------
  |  Branch (494:9): [True: 440k, False: 15.9k]
  ------------------
  495|   440k|        ptr = stackArray;
  496|   440k|        uprv_memcpy(stackArray, src.stackArray, sizeof(T) * src.capacity);
  ------------------
  |  |   42|   440k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   440k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|   440k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|   440k|    _Pragma("clang diagnostic push") \
  |  |   45|   440k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|   440k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|   440k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|   440k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|   440k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|   440k|    _Pragma("clang diagnostic pop") \
  |  |   49|   440k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|   440k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|   440k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   440k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  497|   440k|    } else {
  498|  15.9k|        ptr = src.ptr;
  499|  15.9k|        src.resetToStackArray();  // take ownership away from src
  500|  15.9k|    }
  501|   456k|    return *this;
  502|   456k|}
_ZNK6icu_7815MaybeStackArrayIcLi40EE11getCapacityEv:
  376|  42.4M|    int32_t getCapacity() const { return capacity; }
_ZNK6icu_7815MaybeStackArrayIcLi40EE8getAliasEv:
  381|   123M|    T *getAlias() const { return ptr; }
_ZNK6icu_7815MaybeStackArrayIcLi40EEixEl:
  395|   939k|    const T &operator[](ptrdiff_t i) const { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIcLi40EEixEl:
  402|  65.2M|    T &operator[](ptrdiff_t i) { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIcLi40EE6resizeEii:
  505|   340k|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|   340k|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 340k, 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|   340k|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|   340k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|   340k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   340k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   340k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|   340k|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 340k, False: 0]
  ------------------
  512|   340k|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 340k, False: 0]
  ------------------
  513|   340k|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 340k]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|   340k|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 340k]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|   340k|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|   340k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   340k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|   340k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|   340k|    _Pragma("clang diagnostic push") \
  |  |   45|   340k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|   340k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|   340k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|   340k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|   340k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|   340k|    _Pragma("clang diagnostic pop") \
  |  |   49|   340k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|   340k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|   340k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   340k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|   340k|            }
  521|   340k|            releaseArray();
  522|   340k|            ptr=p;
  523|   340k|            capacity=newCapacity;
  524|   340k|            needToRelease=true;
  525|   340k|        }
  526|   340k|        return p;
  527|   340k|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|   340k|}
_ZN6icu_7815MaybeStackArrayIcLi40EE12releaseArrayEv:
  458|  21.6M|    void releaseArray() {
  459|  21.6M|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 340k, False: 21.2M]
  ------------------
  460|   340k|            uprv_free(ptr);
  ------------------
  |  | 1503|   340k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|   340k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   340k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   340k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|   340k|        }
  462|  21.6M|    }
_ZN6icu_7815MaybeStackArrayIcLi40EE17resetToStackArrayEv:
  463|  15.9k|    void resetToStackArray() {
  464|  15.9k|        ptr=stackArray;
  465|  15.9k|        capacity=stackCapacity;
  466|  15.9k|        needToRelease=false;
  467|  15.9k|    }
_ZN6icu_7811LocalMemoryIiEC2EPi:
  195|    286|    explicit LocalMemory(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7811LocalMemoryIiE23allocateInsteadAndResetEi:
  278|    276|inline T *LocalMemory<T>::allocateInsteadAndReset(int32_t newCapacity) {
  279|    276|    if(newCapacity>0) {
  ------------------
  |  Branch (279:8): [True: 276, False: 0]
  ------------------
  280|    276|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|    276|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    276|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    276|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    276|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  281|    276|        if(p!=nullptr) {
  ------------------
  |  Branch (281:12): [True: 276, False: 0]
  ------------------
  282|    276|            uprv_memset(p, 0, newCapacity*sizeof(T));
  ------------------
  |  |  100|    276|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|    276|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  283|    276|            uprv_free(LocalPointerBase<T>::ptr);
  ------------------
  |  | 1503|    276|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    276|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    276|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    276|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  284|    276|            LocalPointerBase<T>::ptr=p;
  285|    276|        }
  286|    276|        return p;
  287|    276|    } else {
  288|      0|        return nullptr;
  289|      0|    }
  290|    276|}
_ZNK6icu_7811LocalMemoryIiEixEl:
  274|  25.8k|    T &operator[](ptrdiff_t i) const { return LocalPointerBase<T>::ptr[i]; }
_ZN6icu_7811LocalMemoryIiED2Ev:
  206|    286|    ~LocalMemory() {
  207|    286|        uprv_free(LocalPointerBase<T>::ptr);
  ------------------
  |  | 1503|    286|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    286|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    286|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    286|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  208|    286|    }
_ZN6icu_7810MemoryPoolINS_9HashtableELi8EEC2Ev:
  760|  9.77k|    MemoryPool() : fCount(0), fPool() {}
_ZN6icu_7815MaybeStackArrayIPNS_9HashtableELi8EEC2Ev:
  344|  9.77k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZN6icu_7810MemoryPoolINS_9HashtableELi8EED2Ev:
  762|  9.77k|    ~MemoryPool() {
  763|  45.4k|        for (int32_t i = 0; i < fCount; ++i) {
  ------------------
  |  Branch (763:29): [True: 35.6k, False: 9.77k]
  ------------------
  764|  35.6k|            delete fPool[i];
  765|  35.6k|        }
  766|  9.77k|    }
_ZN6icu_7815MaybeStackArrayIPNS_9HashtableELi8EEixEl:
  402|  71.3k|    T &operator[](ptrdiff_t i) { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIPNS_9HashtableELi8EED2Ev:
  363|  9.77k|    ~MaybeStackArray() { releaseArray(); }
_ZN6icu_7815MaybeStackArrayIPNS_9HashtableELi8EE12releaseArrayEv:
  458|  9.77k|    void releaseArray() {
  459|  9.77k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 0, False: 9.77k]
  ------------------
  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|  9.77k|    }
_ZN6icu_7810MemoryPoolINS_9HashtableELi8EE6createIJbR10UErrorCodeEEEPS1_DpOT_:
  796|  35.6k|    T* create(Args&&... args) {
  797|  35.6k|        int32_t capacity = fPool.getCapacity();
  798|  35.6k|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 0, False: 35.6k]
  ------------------
  799|  35.6k|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 0]
  |  Branch (799:26): [True: 0, False: 0]
  ------------------
  800|      0|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|  35.6k|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|  35.6k|    }
_ZNK6icu_7815MaybeStackArrayIPNS_9HashtableELi8EE11getCapacityEv:
  376|  35.6k|    int32_t getCapacity() const { return capacity; }
_ZN6icu_7815MaybeStackArrayINS_8SpanInfoELi8EEC2Ev:
  344|   100k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZN6icu_7815MaybeStackArrayINS_8SpanInfoELi8EED2Ev:
  363|   100k|    ~MaybeStackArray() { releaseArray(); }
_ZN6icu_7815MaybeStackArrayINS_8SpanInfoELi8EE12releaseArrayEv:
  458|   100k|    void releaseArray() {
  459|   100k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 0, False: 100k]
  ------------------
  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|   100k|    }
_ZN6icu_7810MemoryPoolINS_13UnicodeStringELi8EEC2Ev:
  760|      2|    MemoryPool() : fCount(0), fPool() {}
_ZN6icu_7815MaybeStackArrayIPNS_13UnicodeStringELi8EEC2Ev:
  344|      2|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZN6icu_7810MemoryPoolINS_13UnicodeStringELi8EED2Ev:
  762|      2|    ~MemoryPool() {
  763|  7.36k|        for (int32_t i = 0; i < fCount; ++i) {
  ------------------
  |  Branch (763:29): [True: 7.36k, False: 2]
  ------------------
  764|  7.36k|            delete fPool[i];
  765|  7.36k|        }
  766|      2|    }
_ZN6icu_7815MaybeStackArrayIPNS_13UnicodeStringELi8EEixEl:
  402|  14.7k|    T &operator[](ptrdiff_t i) { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIPNS_13UnicodeStringELi8EED2Ev:
  363|      2|    ~MaybeStackArray() { releaseArray(); }
_ZN6icu_7815MaybeStackArrayIPNS_13UnicodeStringELi8EE12releaseArrayEv:
  458|     11|    void releaseArray() {
  459|     11|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 9, False: 2]
  ------------------
  460|      9|            uprv_free(ptr);
  ------------------
  |  | 1503|      9|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|      9|        }
  462|     11|    }
_ZN6icu_7811LocalMemoryIPKcEC2EPS2_:
  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|     10|inline T *LocalMemory<T>::allocateInsteadAndCopy(int32_t newCapacity, int32_t length) {
  295|     10|    if(newCapacity>0) {
  ------------------
  |  Branch (295:8): [True: 10, False: 0]
  ------------------
  296|     10|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|     10|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  297|     10|        if(p!=nullptr) {
  ------------------
  |  Branch (297:12): [True: 10, False: 0]
  ------------------
  298|     10|            if(length>0) {
  ------------------
  |  Branch (298:16): [True: 0, False: 10]
  ------------------
  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|     10|            uprv_free(LocalPointerBase<T>::ptr);
  ------------------
  |  | 1503|     10|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  305|     10|            LocalPointerBase<T>::ptr=p;
  306|     10|        }
  307|     10|        return p;
  308|     10|    } else {
  309|      0|        return nullptr;
  310|      0|    }
  311|     10|}
_ZNK6icu_7811LocalMemoryIPKcEixEl:
  274|  1.29k|    T &operator[](ptrdiff_t i) const { return LocalPointerBase<T>::ptr[i]; }
_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_7810MemoryPoolINS_13UnicodeStringELi8EE6createIJRS1_EEEPS1_DpOT_:
  796|  7.36k|    T* create(Args&&... args) {
  797|  7.36k|        int32_t capacity = fPool.getCapacity();
  798|  7.36k|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 9, False: 7.35k]
  ------------------
  799|  7.36k|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 9]
  |  Branch (799:26): [True: 1, False: 8]
  ------------------
  800|      9|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|  7.36k|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|  7.36k|    }
_ZNK6icu_7815MaybeStackArrayIPNS_13UnicodeStringELi8EE11getCapacityEv:
  376|  7.36k|    int32_t getCapacity() const { return capacity; }
_ZN6icu_7815MaybeStackArrayIPNS_13UnicodeStringELi8EE6resizeEii:
  505|      9|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|      9|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 9, 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|      9|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|      9|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|      9|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 9, False: 0]
  ------------------
  512|      9|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 9, False: 0]
  ------------------
  513|      9|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 9]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|      9|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 9]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|      9|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|      9|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      9|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|      9|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|      9|    _Pragma("clang diagnostic push") \
  |  |   45|      9|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|      9|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|      9|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|      9|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|      9|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|      9|    _Pragma("clang diagnostic pop") \
  |  |   49|      9|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|      9|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|      9|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      9|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|      9|            }
  521|      9|            releaseArray();
  522|      9|            ptr=p;
  523|      9|            capacity=newCapacity;
  524|      9|            needToRelease=true;
  525|      9|        }
  526|      9|        return p;
  527|      9|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|      9|}
_ZN6icu_7815MaybeStackArrayI11max_align_tLi7EEC2Ev:
  344|  4.95k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZNK6icu_7815MaybeStackArrayI11max_align_tLi7EE11getCapacityEv:
  376|  4.95k|    int32_t getCapacity() const { return capacity; }
_ZN6icu_7815MaybeStackArrayI11max_align_tLi7EE12releaseArrayEv:
  458|  4.95k|    void releaseArray() {
  459|  4.95k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 0, False: 4.95k]
  ------------------
  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|  4.95k|    }
_ZNK6icu_7815MaybeStackArrayI11max_align_tLi7EE8getAliasEv:
  381|  4.95k|    T *getAlias() const { return ptr; }
_ZN6icu_7815MaybeStackArrayI11max_align_tLi7EED2Ev:
  363|  4.95k|    ~MaybeStackArray() { releaseArray(); }
_ZN6icu_7815MaybeStackArrayI11max_align_tLi14EEC2Ev:
  344|  2.81k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZNK6icu_7815MaybeStackArrayI11max_align_tLi14EE11getCapacityEv:
  376|  2.81k|    int32_t getCapacity() const { return capacity; }
_ZN6icu_7815MaybeStackArrayI11max_align_tLi14EE12releaseArrayEv:
  458|  2.81k|    void releaseArray() {
  459|  2.81k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 0, False: 2.81k]
  ------------------
  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|  2.81k|    }
_ZNK6icu_7815MaybeStackArrayI11max_align_tLi14EE8getAliasEv:
  381|  5.62k|    T *getAlias() const { return ptr; }
_ZN6icu_7815MaybeStackArrayI11max_align_tLi14EED2Ev:
  363|  2.81k|    ~MaybeStackArray() { releaseArray(); }
_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|  29.7k|    ~MemoryPool() {
  763|  1.96M|        for (int32_t i = 0; i < fCount; ++i) {
  ------------------
  |  Branch (763:29): [True: 1.93M, False: 29.7k]
  ------------------
  764|  1.93M|            delete fPool[i];
  765|  1.93M|        }
  766|  29.7k|    }
_ZN6icu_7815MaybeStackArrayIPNS_10CharStringELi8EEixEl:
  402|  3.86M|    T &operator[](ptrdiff_t i) { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIPNS_10CharStringELi8EED2Ev:
  363|  29.7k|    ~MaybeStackArray() { releaseArray(); }
_ZN6icu_7815MaybeStackArrayIPNS_10CharStringELi8EE12releaseArrayEv:
  458|  33.2k|    void releaseArray() {
  459|  33.2k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 3.58k, False: 29.7k]
  ------------------
  460|  3.58k|            uprv_free(ptr);
  ------------------
  |  | 1503|  3.58k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  3.58k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.58k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.58k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|  3.58k|        }
  462|  33.2k|    }
_ZN6icu_7810MemoryPoolINS_10CharStringELi8EEC2Ev:
  760|  29.7k|    MemoryPool() : fCount(0), fPool() {}
_ZN6icu_7815MaybeStackArrayIPNS_10CharStringELi8EEC2Ev:
  344|  29.7k|    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|  3.07k|    T* create(Args&&... args) {
  797|  3.07k|        int32_t capacity = fPool.getCapacity();
  798|  3.07k|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 5, False: 3.06k]
  ------------------
  799|  3.07k|            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|  3.07k|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|  3.07k|    }
_ZNK6icu_7815MaybeStackArrayIPNS_10CharStringELi8EE11getCapacityEv:
  376|  1.93M|    int32_t getCapacity() const { return capacity; }
_ZN6icu_7815MaybeStackArrayIPNS_10CharStringELi8EE6resizeEii:
  505|  3.58k|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|  3.58k|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 3.58k, 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|  3.58k|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|  3.58k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  3.58k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.58k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.58k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|  3.58k|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 3.58k, False: 0]
  ------------------
  512|  3.58k|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 3.58k, False: 0]
  ------------------
  513|  3.58k|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 3.58k]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|  3.58k|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 3.58k]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|  3.58k|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|  3.58k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  3.58k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  3.58k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  3.58k|    _Pragma("clang diagnostic push") \
  |  |   45|  3.58k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  3.58k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.58k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  3.58k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.58k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  3.58k|    _Pragma("clang diagnostic pop") \
  |  |   49|  3.58k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  3.58k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  3.58k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  3.58k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|  3.58k|            }
  521|  3.58k|            releaseArray();
  522|  3.58k|            ptr=p;
  523|  3.58k|            capacity=newCapacity;
  524|  3.58k|            needToRelease=true;
  525|  3.58k|        }
  526|  3.58k|        return p;
  527|  3.58k|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|  3.58k|}
_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|  13.2k|    MemoryPool() : fCount(0), fPool() {}
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118AttributeListEntryELi8EEC2Ev:
  344|  13.2k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
uloc_tag.cpp:_ZN6icu_7810MemoryPoolIN12_GLOBAL__N_118ExtensionListEntryELi8EEC2Ev:
  760|  16.4k|    MemoryPool() : fCount(0), fPool() {}
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118ExtensionListEntryELi8EEC2Ev:
  344|  16.4k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
uloc_tag.cpp:_ZN6icu_7810MemoryPoolIN12_GLOBAL__N_118AttributeListEntryELi8EE6createIJEEEPS2_DpOT_:
  796|  1.81M|    T* create(Args&&... args) {
  797|  1.81M|        int32_t capacity = fPool.getCapacity();
  798|  1.81M|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 918, False: 1.81M]
  ------------------
  799|  1.81M|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 918]
  |  Branch (799:26): [True: 389, False: 529]
  ------------------
  800|    918|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|  1.81M|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|  1.81M|    }
uloc_tag.cpp:_ZNK6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118AttributeListEntryELi8EE11getCapacityEv:
  376|  1.81M|    int32_t getCapacity() const { return capacity; }
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118AttributeListEntryELi8EE6resizeEii:
  505|    918|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|    918|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 918, 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|    918|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|    918|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    918|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    918|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    918|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|    918|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 918, False: 0]
  ------------------
  512|    918|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 918, False: 0]
  ------------------
  513|    918|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 918]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|    918|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 918]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|    918|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|    918|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    918|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    918|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    918|    _Pragma("clang diagnostic push") \
  |  |   45|    918|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    918|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    918|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    918|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    918|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    918|    _Pragma("clang diagnostic pop") \
  |  |   49|    918|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    918|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    918|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    918|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|    918|            }
  521|    918|            releaseArray();
  522|    918|            ptr=p;
  523|    918|            capacity=newCapacity;
  524|    918|            needToRelease=true;
  525|    918|        }
  526|    918|        return p;
  527|    918|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|    918|}
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118AttributeListEntryELi8EE12releaseArrayEv:
  458|  14.1k|    void releaseArray() {
  459|  14.1k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 918, False: 13.2k]
  ------------------
  460|    918|            uprv_free(ptr);
  ------------------
  |  | 1503|    918|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    918|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    918|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    918|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|    918|        }
  462|  14.1k|    }
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118AttributeListEntryELi8EEixEl:
  402|  3.63M|    T &operator[](ptrdiff_t i) { return ptr[i]; }
uloc_tag.cpp:_ZN6icu_7810MemoryPoolIN12_GLOBAL__N_118ExtensionListEntryELi8EE6createIJEEEPS2_DpOT_:
  796|   122k|    T* create(Args&&... args) {
  797|   122k|        int32_t capacity = fPool.getCapacity();
  798|   122k|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 3.36k, False: 119k]
  ------------------
  799|   122k|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 3.36k]
  |  Branch (799:26): [True: 2.56k, False: 799]
  ------------------
  800|  3.36k|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|   122k|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|   122k|    }
uloc_tag.cpp:_ZNK6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118ExtensionListEntryELi8EE11getCapacityEv:
  376|   122k|    int32_t getCapacity() const { return capacity; }
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118ExtensionListEntryELi8EE6resizeEii:
  505|  3.36k|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|  3.36k|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 3.36k, 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|  3.36k|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|  3.36k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  3.36k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.36k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.36k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|  3.36k|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 3.36k, False: 0]
  ------------------
  512|  3.36k|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 3.36k, False: 0]
  ------------------
  513|  3.36k|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 3.36k]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|  3.36k|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 3.36k]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|  3.36k|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|  3.36k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  3.36k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  3.36k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  3.36k|    _Pragma("clang diagnostic push") \
  |  |   45|  3.36k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  3.36k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.36k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  3.36k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.36k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  3.36k|    _Pragma("clang diagnostic pop") \
  |  |   49|  3.36k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  3.36k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  3.36k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  3.36k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|  3.36k|            }
  521|  3.36k|            releaseArray();
  522|  3.36k|            ptr=p;
  523|  3.36k|            capacity=newCapacity;
  524|  3.36k|            needToRelease=true;
  525|  3.36k|        }
  526|  3.36k|        return p;
  527|  3.36k|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|  3.36k|}
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118ExtensionListEntryELi8EE12releaseArrayEv:
  458|  19.7k|    void releaseArray() {
  459|  19.7k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 3.36k, False: 16.4k]
  ------------------
  460|  3.36k|            uprv_free(ptr);
  ------------------
  |  | 1503|  3.36k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  3.36k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.36k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.36k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|  3.36k|        }
  462|  19.7k|    }
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118ExtensionListEntryELi8EEixEl:
  402|   244k|    T &operator[](ptrdiff_t i) { return ptr[i]; }
uloc_tag.cpp:_ZN6icu_7810MemoryPoolIN12_GLOBAL__N_118ExtensionListEntryELi8EED2Ev:
  762|  16.4k|    ~MemoryPool() {
  763|   138k|        for (int32_t i = 0; i < fCount; ++i) {
  ------------------
  |  Branch (763:29): [True: 122k, False: 16.4k]
  ------------------
  764|   122k|            delete fPool[i];
  765|   122k|        }
  766|  16.4k|    }
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118ExtensionListEntryELi8EED2Ev:
  363|  16.4k|    ~MaybeStackArray() { releaseArray(); }
uloc_tag.cpp:_ZN6icu_7810MemoryPoolIN12_GLOBAL__N_118AttributeListEntryELi8EED2Ev:
  762|  13.2k|    ~MemoryPool() {
  763|  1.83M|        for (int32_t i = 0; i < fCount; ++i) {
  ------------------
  |  Branch (763:29): [True: 1.81M, False: 13.2k]
  ------------------
  764|  1.81M|            delete fPool[i];
  765|  1.81M|        }
  766|  13.2k|    }
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118AttributeListEntryELi8EED2Ev:
  363|  13.2k|    ~MaybeStackArray() { releaseArray(); }
_ZN6icu_7810MemoryPoolINS_10CharStringELi8EE6createIJRPKcRiR10UErrorCodeEEEPS1_DpOT_:
  796|  1.92M|    T* create(Args&&... args) {
  797|  1.92M|        int32_t capacity = fPool.getCapacity();
  798|  1.92M|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 3.58k, False: 1.92M]
  ------------------
  799|  1.92M|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 3.58k]
  |  Branch (799:26): [True: 2.32k, False: 1.25k]
  ------------------
  800|  3.58k|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|  1.92M|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|  1.92M|    }
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();} ()

calendar.cpp:_ZL14uprv_arrayCopyPKiPii:
   56|   117k|{ uprv_memcpy(dst, src, (size_t)count * sizeof(*src)); }
  ------------------
  |  |   42|   117k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   117k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|   117k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|   117k|    _Pragma("clang diagnostic push") \
  |  |   45|   117k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|   117k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|   117k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|   117k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|   117k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|   117k|    _Pragma("clang diagnostic pop") \
  |  |   49|   117k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|   117k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|   117k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   117k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
calendar.cpp:_ZL14uprv_arrayCopyPKaPai:
   38|   117k|    { uprv_memcpy(dst, src, (size_t)count * sizeof(*src)); }
  ------------------
  |  |   42|   117k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   117k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|   117k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|   117k|    _Pragma("clang diagnostic push") \
  |  |   45|   117k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|   117k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|   117k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|   117k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|   117k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|   117k|    _Pragma("clang diagnostic pop") \
  |  |   49|   117k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|   117k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|   117k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   117k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
dtfmtsym.cpp:_ZL14uprv_arrayCopyPKN6icu_7813UnicodeStringEPS0_i:
   75|  1.13M|{ while(count-- > 0) *dst++ = *src++; }
  ------------------
  |  Branch (75:9): [True: 991k, False: 144k]
  ------------------
dtfmtsym.cpp:_ZL14uprv_arrayCopyPKN6icu_7813UnicodeStringEiPS0_ii:
   84|  77.6k|{ uprv_arrayCopy(src+srcStart, dst+dstStart, count); }

uprv_isASCIILetter_78:
   52|  47.1M|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|  47.1M|    return ('a'<=c && c<='z') || ('A'<=c && c<='Z');
  ------------------
  |  Branch (58:13): [True: 13.4M, False: 33.6M]
  |  Branch (58:23): [True: 13.4M, False: 2.13k]
  |  Branch (58:35): [True: 12.1M, False: 21.5M]
  |  Branch (58:45): [True: 12.0M, False: 18.9k]
  ------------------
   59|  47.1M|#endif
   60|  47.1M|}
uprv_toupper_78:
   63|  10.1M|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|  10.1M|    if('a'<=c && c<='z') {
  ------------------
  |  Branch (69:8): [True: 128k, False: 9.98M]
  |  Branch (69:18): [True: 62.1k, False: 66.3k]
  ------------------
   70|  62.1k|        c=(char)(c+('A'-'a'));
   71|  62.1k|    }
   72|  10.1M|#endif
   73|  10.1M|    return c;
   74|  10.1M|}
uprv_asciitolower_78:
  103|  44.9M|uprv_asciitolower(char c) {
  104|  44.9M|    if(0x41<=c && c<=0x5a) {
  ------------------
  |  Branch (104:8): [True: 24.8M, False: 20.1M]
  |  Branch (104:19): [True: 2.29M, False: 22.5M]
  ------------------
  105|  2.29M|        c=(char)(c+0x20);
  106|  2.29M|    }
  107|  44.9M|    return c;
  108|  44.9M|}
T_CString_toLowerCase_78:
  124|   184k|{
  125|   184k|    char* origPtr = str;
  126|       |
  127|   184k|    if (str) {
  ------------------
  |  Branch (127:9): [True: 184k, False: 0]
  ------------------
  128|   184k|        do
  129|  25.0M|            *str = uprv_tolower(*str);
  ------------------
  |  |   68|  25.0M|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  25.0M|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  25.0M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  25.0M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  25.0M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  130|  25.0M|        while (*(str++));
  ------------------
  |  Branch (130:16): [True: 24.9M, False: 184k]
  ------------------
  131|   184k|    }
  132|       |
  133|   184k|    return origPtr;
  134|   184k|}
T_CString_toUpperCase_78:
  138|  73.3k|{
  139|  73.3k|    char* origPtr = str;
  140|       |
  141|  73.3k|    if (str) {
  ------------------
  |  Branch (141:9): [True: 73.3k, False: 0]
  ------------------
  142|  73.3k|        do
  143|   279k|            *str = uprv_toupper(*str);
  ------------------
  |  | 1547|   279k|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|   279k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   279k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   279k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  144|   279k|        while (*(str++));
  ------------------
  |  Branch (144:16): [True: 206k, False: 73.3k]
  ------------------
  145|  73.3k|    }
  146|       |
  147|  73.3k|    return origPtr;
  148|  73.3k|}
T_CString_integerToString_78:
  158|   155k|{
  159|   155k|    char      tbuf[30];
  160|   155k|    int32_t   tbx    = sizeof(tbuf);
  161|   155k|    uint8_t   digit;
  162|   155k|    int32_t   length = 0;
  163|   155k|    uint32_t  uval;
  164|       |    
  165|   155k|    U_ASSERT(radix>=2 && radix<=16);
  ------------------
  |  |   35|   155k|#   define U_ASSERT(exp) (void)0
  ------------------
  166|   155k|    uval = (uint32_t) v;
  167|   155k|    if(v<0 && radix == 10) {
  ------------------
  |  Branch (167:8): [True: 0, False: 155k]
  |  Branch (167:15): [True: 0, False: 0]
  ------------------
  168|       |        /* Only in base 10 do we conside numbers to be signed. */
  169|      0|        uval = (uint32_t)(-v); 
  170|      0|        buffer[length++] = '-';
  171|      0|    }
  172|       |    
  173|   155k|    tbx = sizeof(tbuf)-1;
  174|   155k|    tbuf[tbx] = 0;   /* We are generating the digits backwards.  Null term the end. */
  175|   158k|    do {
  176|   158k|        digit = (uint8_t)(uval % radix);
  177|   158k|        tbuf[--tbx] = (char)(T_CString_itosOffset(digit));
  ------------------
  |  |   81|   158k|#define T_CString_itosOffset(a) ((a)<=9?('0'+(a)):('A'+(a)-10))
  |  |  ------------------
  |  |  |  Branch (81:34): [True: 158k, False: 0]
  |  |  ------------------
  ------------------
  178|   158k|        uval  = uval / radix;
  179|   158k|    } while (uval != 0);
  ------------------
  |  Branch (179:14): [True: 2.50k, False: 155k]
  ------------------
  180|       |    
  181|       |    /* copy converted number into user buffer  */
  182|   155k|    uprv_strcpy(buffer+length, tbuf+tbx);
  ------------------
  |  |   36|   155k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|   155k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  183|   155k|    length += sizeof(tbuf) - tbx -1;
  184|   155k|    return length;
  185|   155k|}
uprv_stricmp_78:
  235|   166k|uprv_stricmp(const char *str1, const char *str2) {
  236|   166k|    if(str1==nullptr) {
  ------------------
  |  Branch (236:8): [True: 0, False: 166k]
  ------------------
  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|   166k|    } else if(str2==nullptr) {
  ------------------
  |  Branch (242:15): [True: 0, False: 166k]
  ------------------
  243|      0|        return 1;
  244|   166k|    } else {
  245|       |        /* compare non-nullptr strings lexically with lowercase */
  246|   166k|        int rc;
  247|   166k|        unsigned char c1, c2;
  248|       |
  249|   245k|        for(;;) {
  250|   245k|            c1=(unsigned char)*str1;
  251|   245k|            c2=(unsigned char)*str2;
  252|   245k|            if(c1==0) {
  ------------------
  |  Branch (252:16): [True: 161k, False: 84.2k]
  ------------------
  253|   161k|                if(c2==0) {
  ------------------
  |  Branch (253:20): [True: 8.74k, False: 152k]
  ------------------
  254|  8.74k|                    return 0;
  255|   152k|                } else {
  256|   152k|                    return -1;
  257|   152k|                }
  258|   161k|            } else if(c2==0) {
  ------------------
  |  Branch (258:23): [True: 10, False: 84.2k]
  ------------------
  259|     10|                return 1;
  260|  84.2k|            } else {
  261|       |                /* compare non-zero characters with lowercase */
  262|  84.2k|                rc=(int)(unsigned char)uprv_tolower(c1)-(int)(unsigned char)uprv_tolower(c2);
  ------------------
  |  |   68|  84.2k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  84.2k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  84.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  84.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  84.2k|#       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|  84.2k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  84.2k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  84.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  84.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  84.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  263|  84.2k|                if(rc!=0) {
  ------------------
  |  Branch (263:20): [True: 5.67k, False: 78.5k]
  ------------------
  264|  5.67k|                    return rc;
  265|  5.67k|                }
  266|  84.2k|            }
  267|  78.5k|            ++str1;
  268|  78.5k|            ++str2;
  269|  78.5k|        }
  270|   166k|    }
  271|   166k|}
uprv_strnicmp_78:
  274|  5.44M|uprv_strnicmp(const char *str1, const char *str2, uint32_t n) {
  275|  5.44M|    if(str1==nullptr) {
  ------------------
  |  Branch (275:8): [True: 0, False: 5.44M]
  ------------------
  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|  5.44M|    } else if(str2==nullptr) {
  ------------------
  |  Branch (281:15): [True: 0, False: 5.44M]
  ------------------
  282|      0|        return 1;
  283|  5.44M|    } else {
  284|       |        /* compare non-nullptr strings lexically with lowercase */
  285|  5.44M|        int rc;
  286|  5.44M|        unsigned char c1, c2;
  287|       |
  288|  5.69M|        for(; n--;) {
  ------------------
  |  Branch (288:15): [True: 5.65M, False: 45.9k]
  ------------------
  289|  5.65M|            c1=(unsigned char)*str1;
  290|  5.65M|            c2=(unsigned char)*str2;
  291|  5.65M|            if(c1==0) {
  ------------------
  |  Branch (291:16): [True: 0, False: 5.65M]
  ------------------
  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|  5.65M|            } else if(c2==0) {
  ------------------
  |  Branch (297:23): [True: 0, False: 5.65M]
  ------------------
  298|      0|                return 1;
  299|  5.65M|            } else {
  300|       |                /* compare non-zero characters with lowercase */
  301|  5.65M|                rc=(int)(unsigned char)uprv_tolower(c1)-(int)(unsigned char)uprv_tolower(c2);
  ------------------
  |  |   68|  5.65M|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  5.65M|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  5.65M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  5.65M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  5.65M|#       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|  5.65M|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  5.65M|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  5.65M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  5.65M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  5.65M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  302|  5.65M|                if(rc!=0) {
  ------------------
  |  Branch (302:20): [True: 5.39M, False: 256k]
  ------------------
  303|  5.39M|                    return rc;
  304|  5.39M|                }
  305|  5.65M|            }
  306|   256k|            ++str1;
  307|   256k|            ++str2;
  308|   256k|        }
  309|  5.44M|    }
  310|       |
  311|  45.9k|    return 0;
  312|  5.44M|}
uprv_strdup_78:
  315|   411k|uprv_strdup(const char *src) {
  316|   411k|    size_t len = uprv_strlen(src) + 1;
  ------------------
  |  |   37|   411k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|   411k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  317|   411k|    char *dup = (char *) uprv_malloc(len);
  ------------------
  |  | 1524|   411k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|   411k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   411k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   411k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  318|       |
  319|   411k|    if (dup) {
  ------------------
  |  Branch (319:9): [True: 411k, False: 0]
  ------------------
  320|   411k|        uprv_memcpy(dup, src, len);
  ------------------
  |  |   42|   411k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   411k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|   411k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|   411k|    _Pragma("clang diagnostic push") \
  |  |   45|   411k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|   411k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|   411k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|   411k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|   411k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|   411k|    _Pragma("clang diagnostic pop") \
  |  |   49|   411k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|   411k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|   411k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   411k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  321|   411k|    }
  322|       |
  323|   411k|    return dup;
  324|   411k|}

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

_ZN6icu_789HashtableD2Ev:
  190|  78.4k|inline Hashtable::~Hashtable() {
  191|  78.4k|    if (hash != nullptr) {
  ------------------
  |  Branch (191:9): [True: 78.4k, False: 0]
  ------------------
  192|  78.4k|        uhash_close(hash);
  ------------------
  |  |  991|  78.4k|#define uhash_close U_ICU_ENTRY_POINT_RENAME(uhash_close)
  |  |  ------------------
  |  |  |  |  123|  78.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  78.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  78.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  193|  78.4k|    }
  194|  78.4k|}
_ZN6icu_789HashtableC2EaR10UErrorCode:
  156|  78.4k| : hash(nullptr)
  157|  78.4k|{
  158|  78.4k|    init(ignoreKeyCase ? uhash_hashCaselessUnicodeString
  ------------------
  |  | 1010|  78.4k|#define uhash_hashCaselessUnicodeString U_ICU_ENTRY_POINT_RENAME(uhash_hashCaselessUnicodeString)
  |  |  ------------------
  |  |  |  |  123|  78.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  78.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  78.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (158:10): [True: 0, False: 78.4k]
  ------------------
  159|  78.4k|                        : uhash_hashUnicodeString,
  ------------------
  |  | 1017|  78.4k|#define uhash_hashUnicodeString U_ICU_ENTRY_POINT_RENAME(uhash_hashUnicodeString)
  |  |  ------------------
  |  |  |  |  123|  78.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  78.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  78.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  160|  78.4k|            ignoreKeyCase ? uhash_compareCaselessUnicodeString
  ------------------
  |  |  992|  78.4k|#define uhash_compareCaselessUnicodeString U_ICU_ENTRY_POINT_RENAME(uhash_compareCaselessUnicodeString)
  |  |  ------------------
  |  |  |  |  123|  78.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  78.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  78.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (160:13): [True: 0, False: 78.4k]
  ------------------
  161|  78.4k|                        : uhash_compareUnicodeString,
  ------------------
  |  |  999|  78.4k|#define uhash_compareUnicodeString U_ICU_ENTRY_POINT_RENAME(uhash_compareUnicodeString)
  |  |  ------------------
  |  |  |  |  123|  78.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  78.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  78.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  162|  78.4k|            nullptr,
  163|  78.4k|            status);
  164|  78.4k|}
_ZN6icu_789Hashtable4initEPFi8UElementEPFaS1_S1_ES5_R10UErrorCode:
  127|  78.4k|                            UValueComparator *valueComp, UErrorCode& status) {
  128|  78.4k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (128:9): [True: 0, False: 78.4k]
  ------------------
  129|      0|        return;
  130|      0|    }
  131|  78.4k|    uhash_init(&hashObj, keyHash, keyComp, valueComp, &status);
  ------------------
  |  | 1022|  78.4k|#define uhash_init U_ICU_ENTRY_POINT_RENAME(uhash_init)
  |  |  ------------------
  |  |  |  |  123|  78.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  78.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  78.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  132|  78.4k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (132:9): [True: 78.4k, False: 0]
  ------------------
  133|  78.4k|        hash = &hashObj;
  134|  78.4k|        uhash_setKeyDeleter(hash, uprv_deleteUObject);
  ------------------
  |  | 1040|  78.4k|#define uhash_setKeyDeleter U_ICU_ENTRY_POINT_RENAME(uhash_setKeyDeleter)
  |  |  ------------------
  |  |  |  |  123|  78.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  78.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  78.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      uhash_setKeyDeleter(hash, uprv_deleteUObject);
  ------------------
  |  | 1489|  78.4k|#define uprv_deleteUObject U_ICU_ENTRY_POINT_RENAME(uprv_deleteUObject)
  |  |  ------------------
  |  |  |  |  123|  78.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  78.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  78.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  135|  78.4k|    }
  136|  78.4k|}
_ZN6icu_789Hashtable4putiERKNS_13UnicodeStringEiR10UErrorCode:
  208|   889k|inline int32_t Hashtable::puti(const UnicodeString& key, int32_t value, UErrorCode& status) {
  209|   889k|    return uhash_puti(hash, new UnicodeString(key), value, &status);
  ------------------
  |  | 1033|   889k|#define uhash_puti U_ICU_ENTRY_POINT_RENAME(uhash_puti)
  |  |  ------------------
  |  |  |  |  123|   889k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   889k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   889k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  210|   889k|}
_ZNK6icu_789Hashtable4getiERKNS_13UnicodeStringE:
  221|  1.45M|inline int32_t Hashtable::geti(const UnicodeString& key) const {
  222|  1.45M|    return uhash_geti(hash, &key);
  ------------------
  |  | 1008|  1.45M|#define uhash_geti U_ICU_ENTRY_POINT_RENAME(uhash_geti)
  |  |  ------------------
  |  |  |  |  123|  1.45M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.45M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.45M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  223|  1.45M|}
_ZN6icu_789Hashtable15setValueDeleterEPFvPvE:
  196|  45.4k|inline UObjectDeleter *Hashtable::setValueDeleter(UObjectDeleter *fn) {
  197|  45.4k|    return uhash_setValueDeleter(hash, fn);
  ------------------
  |  | 1044|  45.4k|#define uhash_setValueDeleter U_ICU_ENTRY_POINT_RENAME(uhash_setValueDeleter)
  |  |  ------------------
  |  |  |  |  123|  45.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  45.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  45.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  198|  45.4k|}
_ZN6icu_789Hashtable3putERKNS_13UnicodeStringEPvR10UErrorCode:
  204|   510k|inline void* Hashtable::put(const UnicodeString& key, void* value, UErrorCode& status) {
  205|   510k|    return uhash_put(hash, new UnicodeString(key), value, &status);
  ------------------
  |  | 1032|   510k|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|   510k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   510k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   510k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  206|   510k|}
_ZNK6icu_789Hashtable3getERKNS_13UnicodeStringE:
  217|  1.78M|inline void* Hashtable::get(const UnicodeString& key) const {
  218|  1.78M|    return uhash_get(hash, &key);
  ------------------
  |  | 1007|  1.78M|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  1.78M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.78M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.78M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  219|  1.78M|}
_ZN6icu_789Hashtable6removeERKNS_13UnicodeStringE:
  229|   163k|inline void* Hashtable::remove(const UnicodeString& key) {
  230|   163k|    return uhash_remove(hash, &key);
  ------------------
  |  | 1035|   163k|#define uhash_remove U_ICU_ENTRY_POINT_RENAME(uhash_remove)
  |  |  ------------------
  |  |  |  |  123|   163k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   163k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   163k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  231|   163k|}

_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.75k|{
   80|  7.75k|    umtx_initOnce(gInitOnceLocale, &locale_available_init);
   81|  7.75k|    count = availableLocaleListCount;
   82|  7.75k|    return availableLocaleList;
   83|  7.75k|}
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_7811LocaleBased9getLocaleEPKNS_10CharStringES3_18ULocDataLocaleTypeR10UErrorCode:
   20|  11.1k|                              ULocDataLocaleType type, UErrorCode& status) {
   21|  11.1k|    const char* id = getLocaleID(valid, actual, type, status);
   22|  11.1k|    return Locale(id != nullptr ? id : "");
  ------------------
  |  Branch (22:19): [True: 11.1k, False: 0]
  ------------------
   23|  11.1k|}
_ZN6icu_7811LocaleBased11getLocaleIDEPKNS_10CharStringES3_18ULocDataLocaleTypeR10UErrorCode:
   26|  11.1k|                                     ULocDataLocaleType type, UErrorCode& status) {
   27|  11.1k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (27:9): [True: 0, False: 11.1k]
  ------------------
   28|      0|        return nullptr;
   29|      0|    }
   30|       |
   31|  11.1k|    switch(type) {
   32|  11.1k|    case ULOC_VALID_LOCALE:
  ------------------
  |  Branch (32:5): [True: 11.1k, False: 0]
  ------------------
   33|  11.1k|        return valid == nullptr ? "" : valid->data();
  ------------------
  |  Branch (33:16): [True: 0, False: 11.1k]
  ------------------
   34|      0|    case ULOC_ACTUAL_LOCALE:
  ------------------
  |  Branch (34:5): [True: 0, False: 11.1k]
  ------------------
   35|      0|        return actual == nullptr ? "" : actual->data();
  ------------------
  |  Branch (35:16): [True: 0, False: 0]
  ------------------
   36|      0|    default:
  ------------------
  |  Branch (36:5): [True: 0, False: 11.1k]
  ------------------
   37|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
   38|      0|        return nullptr;
   39|  11.1k|    }
   40|  11.1k|}
_ZN6icu_7811LocaleBased12setLocaleIDsEPKNS_10CharStringES3_R10UErrorCode:
   42|   619k|void LocaleBased::setLocaleIDs(const CharString* validID, const CharString* actualID, UErrorCode& status) {
   43|   619k|    setValidLocaleID(validID, status);
   44|   619k|    setActualLocaleID(actualID,status);
   45|   619k|}
_ZN6icu_7811LocaleBased12setLocaleIDsEPKcS2_R10UErrorCode:
   46|   129k|void LocaleBased::setLocaleIDs(const char* validID, const char* actualID, UErrorCode& status) {
   47|   129k|    setValidLocaleID(validID, status);
   48|   129k|    setActualLocaleID(actualID,status);
   49|   129k|}
_ZN6icu_7811LocaleBased11setLocaleIDEPKcRPNS_10CharStringER10UErrorCode:
   51|   258k|void LocaleBased::setLocaleID(const char* id, CharString*& dest, UErrorCode& status) {
   52|   258k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (52:9): [True: 0, False: 258k]
  ------------------
   53|   258k|    if (id == nullptr || *id == 0) {
  ------------------
  |  Branch (53:9): [True: 0, False: 258k]
  |  Branch (53:26): [True: 0, False: 258k]
  ------------------
   54|      0|        delete dest;
   55|      0|        dest = nullptr;
   56|   258k|    } else {
   57|   258k|        if (dest == nullptr) {
  ------------------
  |  Branch (57:13): [True: 257k, False: 528]
  ------------------
   58|   257k|            dest = new CharString(id, status);
   59|   257k|            if (dest == nullptr) {
  ------------------
  |  Branch (59:17): [True: 0, False: 257k]
  ------------------
   60|      0|                status = U_MEMORY_ALLOCATION_ERROR;
   61|      0|                return;
   62|      0|            }
   63|   257k|        } else {
   64|    528|            dest->copyFrom(id, status);
   65|    528|        }
   66|   258k|    }
   67|   258k|}
_ZN6icu_7811LocaleBased11setLocaleIDEPKNS_10CharStringERPS1_R10UErrorCode:
   69|  1.23M|void LocaleBased::setLocaleID(const CharString* id, CharString*& dest, UErrorCode& status) {
   70|  1.23M|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (70:9): [True: 0, False: 1.23M]
  ------------------
   71|  1.23M|    if (id == nullptr || id->isEmpty()) {
  ------------------
  |  Branch (71:9): [True: 962, False: 1.23M]
  |  Branch (71:26): [True: 0, False: 1.23M]
  ------------------
   72|    962|        delete dest;
   73|    962|        dest = nullptr;
   74|  1.23M|    } else {
   75|  1.23M|        if (dest == nullptr) {
  ------------------
  |  Branch (75:13): [True: 1.11M, False: 122k]
  ------------------
   76|  1.11M|            dest = new CharString(*id, status);
   77|  1.11M|            if (dest == nullptr) {
  ------------------
  |  Branch (77:17): [True: 0, False: 1.11M]
  ------------------
   78|      0|                status = U_MEMORY_ALLOCATION_ERROR;
   79|      0|                return;
   80|      0|            }
   81|  1.11M|        } else {
   82|   122k|            dest->copyFrom(*id, status);
   83|   122k|        }
   84|  1.23M|    }
   85|  1.23M|}

_ZN6icu_7811LocaleBased16setValidLocaleIDEPKNS_10CharStringER10UErrorCode:
  104|   619k|inline void LocaleBased::setValidLocaleID(const CharString* id, UErrorCode& status) {
  105|   619k|    setLocaleID(id, valid, status);
  106|   619k|}
_ZN6icu_7811LocaleBased17setActualLocaleIDEPKNS_10CharStringER10UErrorCode:
  107|   619k|inline void LocaleBased::setActualLocaleID(const CharString* id, UErrorCode& status) {
  108|   619k|    setLocaleID(id, actual, status);
  109|   619k|}
_ZN6icu_7811LocaleBased16setValidLocaleIDEPKcR10UErrorCode:
  110|   129k|inline void LocaleBased::setValidLocaleID(const char* id, UErrorCode& status) {
  111|   129k|    setLocaleID(id, valid, status);
  112|   129k|}
_ZN6icu_7811LocaleBased17setActualLocaleIDEPKcR10UErrorCode:
  113|   129k|inline void LocaleBased::setActualLocaleID(const char* id, UErrorCode& status) {
  114|   129k|    setLocaleID(id, actual, status);
  115|   129k|}
_ZN6icu_7811LocaleBasedC2ERPNS_10CharStringES3_:
  101|   748k|    valid(validAlias), actual(actualAlias) {
  102|   748k|}

_ZN6icu_7812ICUDataTableC2EPKcRKNS_6LocaleE:
   71|    556|    : path(path), locale(locale)
   72|    556|{
   73|    556|    U_ASSERT(path != nullptr);
  ------------------
  |  |   35|    556|#   define U_ASSERT(exp) (void)0
  ------------------
   74|    556|}
_ZN6icu_7812ICUDataTable9getLocaleEv:
   77|    556|ICUDataTable::getLocale() {
   78|    556|  return locale;
   79|    556|}
_ZNK6icu_7812ICUDataTable3getEPKcS2_S2_RNS_13UnicodeStringE:
   83|    278|                  UnicodeString &result) const {
   84|    278|  UErrorCode status = U_ZERO_ERROR;
   85|    278|  int32_t len = 0;
   86|       |
   87|    278|  const char16_t *s = uloc_getTableStringWithFallback(path, locale.getName(),
  ------------------
  |  | 1138|    278|#define uloc_getTableStringWithFallback U_ICU_ENTRY_POINT_RENAME(uloc_getTableStringWithFallback)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   88|    278|                                                   tableKey, subTableKey, itemKey,
   89|    278|                                                   &len, &status);
   90|    278|  if (U_SUCCESS(status) && len > 0) {
  ------------------
  |  Branch (90:7): [True: 278, False: 0]
  |  Branch (90:28): [True: 278, False: 0]
  ------------------
   91|    278|    return result.setTo(s, len);
   92|    278|  }
   93|      0|  return result.setTo(UnicodeString(itemKey, -1, US_INV));
  ------------------
  |  |   98|      0|#define US_INV icu::UnicodeString::kInvariant
  ------------------
   94|    278|}
_ZNK6icu_7812ICUDataTable13getNoFallbackEPKcS2_S2_RNS_13UnicodeStringE:
   98|    556|                            UnicodeString& result) const {
   99|    556|  UErrorCode status = U_ZERO_ERROR;
  100|    556|  int32_t len = 0;
  101|       |
  102|    556|  const char16_t *s = uloc_getTableStringWithFallback(path, locale.getName(),
  ------------------
  |  | 1138|    556|#define uloc_getTableStringWithFallback U_ICU_ENTRY_POINT_RENAME(uloc_getTableStringWithFallback)
  |  |  ------------------
  |  |  |  |  123|    556|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    556|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    556|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  103|    556|                                                   tableKey, subTableKey, itemKey,
  104|    556|                                                   &len, &status);
  105|    556|  if (U_SUCCESS(status)) {
  ------------------
  |  Branch (105:7): [True: 556, False: 0]
  ------------------
  106|    556|    return result.setTo(s, len);
  107|    556|  }
  108|       |
  109|      0|  result.setToBogus();
  110|      0|  return result;
  111|    556|}
_ZN6icu_7822LocaleDisplayNamesImplC2ERKNS_6LocaleE16UDialectHandling:
  316|    278|    : dialectHandling(dialectHandling)
  317|    278|    , langData(U_ICUDATA_LANG, locale)
  ------------------
  |  |   19|    278|#define U_ICUDATA_LANG U_ICUDATA_NAME U_TREE_SEPARATOR_STRING "lang"
  |  |  ------------------
  |  |  |  |  154|    278|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  ------------------
  318|    278|    , regionData(U_ICUDATA_REGION, locale)
  ------------------
  |  |   20|    278|#define U_ICUDATA_REGION U_ICUDATA_NAME U_TREE_SEPARATOR_STRING "region"
  |  |  ------------------
  |  |  |  |  154|    278|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  ------------------
  319|    278|    , capitalizationContext(UDISPCTX_CAPITALIZATION_NONE)
  320|    278|    , capitalizationBrkIter(nullptr)
  321|    278|    , nameLength(UDISPCTX_LENGTH_FULL)
  322|    278|    , substitute(UDISPCTX_SUBSTITUTE)
  323|    278|{
  324|    278|    initialize();
  325|    278|}
_ZN6icu_7822LocaleDisplayNamesImpl10initializeEv:
  410|    278|LocaleDisplayNamesImpl::initialize() {
  411|    278|    LocaleDisplayNamesImpl* nonConstThis = this;
  412|    278|    nonConstThis->locale = langData.getLocale() == Locale::getRoot()
  ------------------
  |  Branch (412:28): [True: 0, False: 278]
  ------------------
  413|    278|        ? regionData.getLocale()
  414|    278|        : langData.getLocale();
  415|       |
  416|    278|    UnicodeString sep;
  417|    278|    langData.getNoFallback("localeDisplayPattern", "separator", sep);
  418|    278|    if (sep.isBogus()) {
  ------------------
  |  Branch (418:9): [True: 0, False: 278]
  ------------------
  419|      0|        sep = UnicodeString("{0}, {1}", -1, US_INV);
  ------------------
  |  |   98|      0|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  420|      0|    }
  421|    278|    UErrorCode status = U_ZERO_ERROR;
  422|    278|    separatorFormat.applyPatternMinMaxArguments(sep, 2, 2, status);
  423|       |
  424|    278|    UnicodeString pattern;
  425|    278|    langData.getNoFallback("localeDisplayPattern", "pattern", pattern);
  426|    278|    if (pattern.isBogus()) {
  ------------------
  |  Branch (426:9): [True: 0, False: 278]
  ------------------
  427|      0|        pattern = UnicodeString("{0} ({1})", -1, US_INV);
  ------------------
  |  |   98|      0|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  428|      0|    }
  429|    278|    format.applyPatternMinMaxArguments(pattern, 2, 2, status);
  430|    278|    if (pattern.indexOf(static_cast<char16_t>(0xFF08)) >= 0) {
  ------------------
  |  Branch (430:9): [True: 8, False: 270]
  ------------------
  431|      8|        formatOpenParen.setTo(static_cast<char16_t>(0xFF08));         // fullwidth (
  432|      8|        formatReplaceOpenParen.setTo(static_cast<char16_t>(0xFF3B));  // fullwidth [
  433|      8|        formatCloseParen.setTo(static_cast<char16_t>(0xFF09));        // fullwidth )
  434|      8|        formatReplaceCloseParen.setTo(static_cast<char16_t>(0xFF3D)); // fullwidth ]
  435|    270|    } else {
  436|    270|        formatOpenParen.setTo(static_cast<char16_t>(0x0028));         // (
  437|    270|        formatReplaceOpenParen.setTo(static_cast<char16_t>(0x005B));  // [
  438|    270|        formatCloseParen.setTo(static_cast<char16_t>(0x0029));        // )
  439|    270|        formatReplaceCloseParen.setTo(static_cast<char16_t>(0x005D)); // ]
  440|    270|    }
  441|       |
  442|    278|    UnicodeString ktPattern;
  443|    278|    langData.get("localeDisplayPattern", "keyTypePattern", ktPattern);
  444|    278|    if (ktPattern.isBogus()) {
  ------------------
  |  Branch (444:9): [True: 0, False: 278]
  ------------------
  445|      0|        ktPattern = UnicodeString("{0}={1}", -1, US_INV);
  ------------------
  |  |   98|      0|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  446|      0|    }
  447|    278|    keyTypeFormat.applyPatternMinMaxArguments(ktPattern, 2, 2, status);
  448|       |
  449|    278|    uprv_memset(fCapitalization, 0, sizeof(fCapitalization));
  ------------------
  |  |  100|    278|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|    278|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  450|    278|#if !UCONFIG_NO_BREAK_ITERATION
  451|       |    // Only get the context data if we need it! This is a const object so we know now...
  452|       |    // Also check whether we will need a break iterator (depends on the data)
  453|    278|    bool needBrkIter = false;
  454|    278|    if (capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU || capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_STANDALONE) {
  ------------------
  |  Branch (454:9): [True: 0, False: 278]
  |  Branch (454:81): [True: 0, False: 278]
  ------------------
  455|      0|        LocalUResourceBundlePointer resource(ures_open(nullptr, locale.getName(), &status));
  ------------------
  |  | 1691|      0|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  456|      0|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (456:13): [True: 0, False: 0]
  ------------------
  457|      0|        CapitalizationContextSink sink(*this);
  458|      0|        ures_getAllItemsWithFallback(resource.getAlias(), "contextTransforms", sink, status);
  ------------------
  |  | 1658|      0|#define ures_getAllItemsWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getAllItemsWithFallback)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  459|      0|        if (status == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (459:13): [True: 0, False: 0]
  ------------------
  460|       |            // Silently ignore.  Not every locale has contextTransforms.
  461|      0|            status = U_ZERO_ERROR;
  462|      0|        } else if (U_FAILURE(status)) {
  ------------------
  |  Branch (462:20): [True: 0, False: 0]
  ------------------
  463|      0|            return;
  464|      0|        }
  465|      0|        needBrkIter = sink.hasCapitalizationUsage;
  466|      0|    }
  467|       |    // Get a sentence break iterator if we will need it
  468|    278|    if (needBrkIter || capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE) {
  ------------------
  |  Branch (468:9): [True: 0, False: 278]
  |  Branch (468:24): [True: 0, False: 278]
  ------------------
  469|      0|        status = U_ZERO_ERROR;
  470|      0|        capitalizationBrkIter = BreakIterator::createSentenceInstance(locale, status);
  471|      0|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (471:13): [True: 0, False: 0]
  ------------------
  472|      0|            delete capitalizationBrkIter;
  473|      0|            capitalizationBrkIter = nullptr;
  474|      0|        }
  475|      0|    }
  476|    278|#endif
  477|    278|}
_ZN6icu_7818LocaleDisplayNames14createInstanceERKNS_6LocaleE16UDialectHandling:
  891|    278|                                   UDialectHandling dialectHandling) {
  892|    278|    return new LocaleDisplayNamesImpl(locale, dialectHandling);
  893|    278|}
_ZNK6icu_7812ICUDataTable13getNoFallbackEPKcS2_RNS_13UnicodeStringE:
   66|    556|ICUDataTable::getNoFallback(const char* tableKey, const char* itemKey, UnicodeString& result) const {
   67|    556|    return getNoFallback(tableKey, nullptr, itemKey, result);
   68|    556|}
_ZNK6icu_7812ICUDataTable3getEPKcS2_RNS_13UnicodeStringE:
   61|    278|ICUDataTable::get(const char* tableKey, const char* itemKey, UnicodeString& result) const {
   62|    278|    return get(tableKey, nullptr, itemKey, result);
   63|    278|}

_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|  1.22M|{
  231|  1.22M|    U_NAMESPACE_USE
  ------------------
  |  |  112|  1.22M|#   define U_NAMESPACE_USE using namespace U_ICU_NAMESPACE;
  ------------------
  232|  1.22M|    return Locale::getDefault().getName();
  233|  1.22M|}
_ZN6icu_786LocaleD2Ev:
  247|  2.37M|{
  248|  2.37M|    if ((baseName != fullName) && (baseName != fullNameBuffer)) {
  ------------------
  |  Branch (248:9): [True: 364k, False: 2.01M]
  |  Branch (248:35): [True: 364k, False: 0]
  ------------------
  249|   364k|        uprv_free(baseName);
  ------------------
  |  | 1503|   364k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|   364k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   364k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   364k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  250|   364k|    }
  251|  2.37M|    baseName = nullptr;
  252|       |    /*if fullName is on the heap, we free it*/
  253|  2.37M|    if (fullName != fullNameBuffer)
  ------------------
  |  Branch (253:9): [True: 46.9k, False: 2.33M]
  ------------------
  254|  46.9k|    {
  255|  46.9k|        uprv_free(fullName);
  ------------------
  |  | 1503|  46.9k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  46.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  46.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  46.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  256|  46.9k|        fullName = nullptr;
  257|  46.9k|    }
  258|  2.37M|}
_ZN6icu_786LocaleC2Ev:
  261|  1.19M|    : UObject(), fullName(fullNameBuffer), baseName(nullptr)
  262|  1.19M|{
  263|  1.19M|    init(nullptr, false);
  264|  1.19M|}
_ZN6icu_786LocaleC2ENS0_11ELocaleTypeE:
  272|      1|    : UObject(), fullName(fullNameBuffer), baseName(nullptr)
  273|      1|{
  274|      1|    setToBogus();
  275|      1|}
_ZN6icu_786LocaleC2EPKcS2_S2_S2_:
  282|  75.0k|    : UObject(), fullName(fullNameBuffer), baseName(nullptr)
  283|  75.0k|{
  284|  75.0k|    if( (newLanguage==nullptr) && (newCountry == nullptr) && (newVariant == nullptr) )
  ------------------
  |  Branch (284:9): [True: 0, False: 75.0k]
  |  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|  75.0k|    else
  289|  75.0k|    {
  290|  75.0k|        UErrorCode status = U_ZERO_ERROR;
  291|  75.0k|        int32_t lsize = 0;
  292|  75.0k|        int32_t csize = 0;
  293|  75.0k|        int32_t vsize = 0;
  294|  75.0k|        int32_t ksize = 0;
  295|       |
  296|       |        // Check the sizes of the input strings.
  297|       |
  298|       |        // Language
  299|  75.0k|        if ( newLanguage != nullptr )
  ------------------
  |  Branch (299:14): [True: 75.0k, False: 0]
  ------------------
  300|  75.0k|        {
  301|  75.0k|            lsize = static_cast<int32_t>(uprv_strlen(newLanguage));
  ------------------
  |  |   37|  75.0k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  75.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  302|  75.0k|            if ( lsize < 0 || lsize > ULOC_STRING_LIMIT ) { // int32 wrap
  ------------------
  |  |   76|  75.0k|#define ULOC_STRING_LIMIT 357913941
  ------------------
  |  Branch (302:18): [True: 0, False: 75.0k]
  |  Branch (302:31): [True: 0, False: 75.0k]
  ------------------
  303|      0|                setToBogus();
  304|      0|                return;
  305|      0|            }
  306|  75.0k|        }
  307|       |
  308|  75.0k|        CharString togo(newLanguage, lsize, status); // start with newLanguage
  309|       |
  310|       |        // _Country
  311|  75.0k|        if ( newCountry != nullptr )
  ------------------
  |  Branch (311:14): [True: 7.38k, False: 67.6k]
  ------------------
  312|  7.38k|        {
  313|  7.38k|            csize = static_cast<int32_t>(uprv_strlen(newCountry));
  ------------------
  |  |   37|  7.38k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  7.38k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  314|  7.38k|            if ( csize < 0 || csize > ULOC_STRING_LIMIT ) { // int32 wrap
  ------------------
  |  |   76|  7.38k|#define ULOC_STRING_LIMIT 357913941
  ------------------
  |  Branch (314:18): [True: 0, False: 7.38k]
  |  Branch (314:31): [True: 0, False: 7.38k]
  ------------------
  315|      0|                setToBogus();
  316|      0|                return;
  317|      0|            }
  318|  7.38k|        }
  319|       |
  320|       |        // _Variant
  321|  75.0k|        if ( newVariant != nullptr )
  ------------------
  |  Branch (321:14): [True: 1.48k, False: 73.5k]
  ------------------
  322|  1.48k|        {
  323|       |            // remove leading _'s
  324|  1.68k|            while(newVariant[0] == SEP_CHAR)
  ------------------
  |  |  243|  1.68k|#define SEP_CHAR '_'
  ------------------
  |  Branch (324:19): [True: 206, False: 1.48k]
  ------------------
  325|    206|            {
  326|    206|                newVariant++;
  327|    206|            }
  328|       |
  329|       |            // remove trailing _'s
  330|  1.48k|            vsize = static_cast<int32_t>(uprv_strlen(newVariant));
  ------------------
  |  |   37|  1.48k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  1.48k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  331|  1.48k|            if ( vsize < 0 || vsize > ULOC_STRING_LIMIT ) { // int32 wrap
  ------------------
  |  |   76|  1.48k|#define ULOC_STRING_LIMIT 357913941
  ------------------
  |  Branch (331:18): [True: 0, False: 1.48k]
  |  Branch (331:31): [True: 0, False: 1.48k]
  ------------------
  332|      0|                setToBogus();
  333|      0|                return;
  334|      0|            }
  335|  1.74k|            while( (vsize>1) && (newVariant[vsize-1] == SEP_CHAR) )
  ------------------
  |  |  243|    653|#define SEP_CHAR '_'
  ------------------
  |  Branch (335:20): [True: 653, False: 1.09k]
  |  Branch (335:33): [True: 261, False: 392]
  ------------------
  336|    261|            {
  337|    261|                vsize--;
  338|    261|            }
  339|  1.48k|        }
  340|       |
  341|  75.0k|        if ( newKeywords != nullptr)
  ------------------
  |  Branch (341:14): [True: 1.48k, False: 73.5k]
  ------------------
  342|  1.48k|        {
  343|  1.48k|            ksize = static_cast<int32_t>(uprv_strlen(newKeywords));
  ------------------
  |  |   37|  1.48k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  1.48k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  344|  1.48k|            if ( ksize < 0 || ksize > ULOC_STRING_LIMIT ) {
  ------------------
  |  |   76|  1.48k|#define ULOC_STRING_LIMIT 357913941
  ------------------
  |  Branch (344:18): [True: 0, False: 1.48k]
  |  Branch (344:31): [True: 0, False: 1.48k]
  ------------------
  345|      0|              setToBogus();
  346|      0|              return;
  347|      0|            }
  348|  1.48k|        }
  349|       |
  350|       |        // We've checked the input sizes, now build up the full locale string..
  351|       |
  352|       |        // newLanguage is already copied
  353|       |
  354|  75.0k|        if ( ( vsize != 0 ) || (csize != 0) )  // at least:  __v
  ------------------
  |  Branch (354:14): [True: 434, False: 74.5k]
  |  Branch (354:32): [True: 4.28k, False: 70.3k]
  ------------------
  355|  4.71k|        {                                      //            ^
  356|  4.71k|            togo.append(SEP_CHAR, status);
  ------------------
  |  |  243|  4.71k|#define SEP_CHAR '_'
  ------------------
  357|  4.71k|        }
  358|       |
  359|  75.0k|        if ( csize != 0 )
  ------------------
  |  Branch (359:14): [True: 4.30k, False: 70.7k]
  ------------------
  360|  4.30k|        {
  361|  4.30k|            togo.append(newCountry, status);
  362|  4.30k|        }
  363|       |
  364|  75.0k|        if ( vsize != 0)
  ------------------
  |  Branch (364:14): [True: 434, False: 74.5k]
  ------------------
  365|    434|        {
  366|    434|            togo.append(SEP_CHAR, status)
  ------------------
  |  |  243|    434|#define SEP_CHAR '_'
  ------------------
  367|    434|                .append(newVariant, vsize, status);
  368|    434|        }
  369|       |
  370|  75.0k|        if ( ksize != 0)
  ------------------
  |  Branch (370:14): [True: 1.48k, False: 73.5k]
  ------------------
  371|  1.48k|        {
  372|  1.48k|            if (uprv_strchr(newKeywords, '=')) {
  ------------------
  |  |   40|  1.48k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  1.48k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |  |  Branch (40:27): [True: 1.48k, False: 0]
  |  |  ------------------
  ------------------
  373|  1.48k|                togo.append('@', status); /* keyword parsing */
  374|  1.48k|            }
  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|  1.48k|            togo.append(newKeywords, status);
  382|  1.48k|        }
  383|       |
  384|  75.0k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (384:13): [True: 0, False: 75.0k]
  ------------------
  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|  75.0k|        init(togo.data(), false);
  392|  75.0k|    }
  393|  75.0k|}
_ZN6icu_786LocaleC2ERKS0_:
  396|   909k|    : UObject(other), fullName(fullNameBuffer), baseName(nullptr)
  397|   909k|{
  398|   909k|    *this = other;
  399|   909k|}
_ZN6icu_786LocaleC2EOS0_:
  402|   202k|    : UObject(other), fullName(fullNameBuffer), baseName(fullName) {
  403|   202k|  *this = std::move(other);
  404|   202k|}
_ZN6icu_786LocaleaSERKS0_:
  406|  2.71M|Locale& Locale::operator=(const Locale& other) {
  407|  2.71M|    if (this == &other) {
  ------------------
  |  Branch (407:9): [True: 0, False: 2.71M]
  ------------------
  408|      0|        return *this;
  409|      0|    }
  410|       |
  411|  2.71M|    setToBogus();
  412|       |
  413|  2.71M|    if (other.fullName == other.fullNameBuffer) {
  ------------------
  |  Branch (413:9): [True: 2.66M, False: 48.1k]
  ------------------
  414|  2.66M|        uprv_strcpy(fullNameBuffer, other.fullNameBuffer);
  ------------------
  |  |   36|  2.66M|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  2.66M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  415|  2.66M|    } else if (other.fullName == nullptr) {
  ------------------
  |  Branch (415:16): [True: 0, False: 48.1k]
  ------------------
  416|      0|        fullName = nullptr;
  417|  48.1k|    } else {
  418|  48.1k|        fullName = uprv_strdup(other.fullName);
  ------------------
  |  | 1541|  48.1k|#define uprv_strdup U_ICU_ENTRY_POINT_RENAME(uprv_strdup)
  |  |  ------------------
  |  |  |  |  123|  48.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  48.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  48.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  419|  48.1k|        if (fullName == nullptr) return *this;
  ------------------
  |  Branch (419:13): [True: 0, False: 48.1k]
  ------------------
  420|  48.1k|    }
  421|       |
  422|  2.71M|    if (other.baseName == other.fullName) {
  ------------------
  |  Branch (422:9): [True: 2.34M, False: 361k]
  ------------------
  423|  2.34M|        baseName = fullName;
  424|  2.34M|    } else if (other.baseName != nullptr) {
  ------------------
  |  Branch (424:16): [True: 344k, False: 17.0k]
  ------------------
  425|   344k|        baseName = uprv_strdup(other.baseName);
  ------------------
  |  | 1541|   344k|#define uprv_strdup U_ICU_ENTRY_POINT_RENAME(uprv_strdup)
  |  |  ------------------
  |  |  |  |  123|   344k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   344k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   344k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  426|   344k|        if (baseName == nullptr) return *this;
  ------------------
  |  Branch (426:13): [True: 0, False: 344k]
  ------------------
  427|   344k|    }
  428|       |
  429|  2.71M|    uprv_strcpy(language, other.language);
  ------------------
  |  |   36|  2.71M|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  2.71M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  430|  2.71M|    uprv_strcpy(script, other.script);
  ------------------
  |  |   36|  2.71M|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  2.71M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  431|  2.71M|    uprv_strcpy(country, other.country);
  ------------------
  |  |   36|  2.71M|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  2.71M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  432|       |
  433|  2.71M|    variantBegin = other.variantBegin;
  434|  2.71M|    fIsBogus = other.fIsBogus;
  435|       |
  436|  2.71M|    return *this;
  437|  2.71M|}
_ZN6icu_786LocaleaSEOS0_:
  439|   816k|Locale& Locale::operator=(Locale&& other) noexcept {
  440|   816k|    if ((baseName != fullName) && (baseName != fullNameBuffer)) uprv_free(baseName);
  ------------------
  |  | 1503|  9.63k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  9.63k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.63k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.63k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (440:9): [True: 9.63k, False: 806k]
  |  Branch (440:35): [True: 9.63k, False: 0]
  ------------------
  441|   816k|    if (fullName != fullNameBuffer) uprv_free(fullName);
  ------------------
  |  | 1503|  3.03k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  3.03k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.03k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.03k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (441:9): [True: 3.03k, False: 813k]
  ------------------
  442|       |
  443|   816k|    if (other.fullName == other.fullNameBuffer || other.baseName == other.fullNameBuffer) {
  ------------------
  |  Branch (443:9): [True: 810k, False: 6.19k]
  |  Branch (443:51): [True: 0, False: 6.19k]
  ------------------
  444|   810k|        uprv_strcpy(fullNameBuffer, other.fullNameBuffer);
  ------------------
  |  |   36|   810k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|   810k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  445|   810k|    }
  446|   816k|    if (other.fullName == other.fullNameBuffer) {
  ------------------
  |  Branch (446:9): [True: 810k, False: 6.19k]
  ------------------
  447|   810k|        fullName = fullNameBuffer;
  448|   810k|    } else {
  449|  6.19k|        fullName = other.fullName;
  450|  6.19k|    }
  451|       |
  452|   816k|    if (other.baseName == other.fullNameBuffer) {
  ------------------
  |  Branch (452:9): [True: 757k, False: 59.1k]
  ------------------
  453|   757k|        baseName = fullNameBuffer;
  454|   757k|    } else if (other.baseName == other.fullName) {
  ------------------
  |  Branch (454:16): [True: 3.19k, False: 55.9k]
  ------------------
  455|  3.19k|        baseName = fullName;
  456|  55.9k|    } else {
  457|  55.9k|        baseName = other.baseName;
  458|  55.9k|    }
  459|       |
  460|   816k|    uprv_strcpy(language, other.language);
  ------------------
  |  |   36|   816k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|   816k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  461|   816k|    uprv_strcpy(script, other.script);
  ------------------
  |  |   36|   816k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|   816k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  462|   816k|    uprv_strcpy(country, other.country);
  ------------------
  |  |   36|   816k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|   816k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  463|       |
  464|   816k|    variantBegin = other.variantBegin;
  465|   816k|    fIsBogus = other.fIsBogus;
  466|       |
  467|   816k|    other.baseName = other.fullName = other.fullNameBuffer;
  468|       |
  469|   816k|    return *this;
  470|   816k|}
_ZNK6icu_786LocaleeqERKS0_:
  479|   289k|{
  480|   289k|    return (uprv_strcmp(other.fullName, fullName) == 0);
  ------------------
  |  |   38|   289k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   289k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  481|   289k|}
_ZN6icu_786Locale4initEPKca:
 1832|  1.31M|{
 1833|  1.31M|    return localeID == nullptr ? *this = getDefault() : init(StringPiece{localeID}, canonicalize);
  ------------------
  |  Branch (1833:12): [True: 1.19M, False: 114k]
  ------------------
 1834|  1.31M|}
_ZN6icu_786Locale4initENS_11StringPieceEa:
 1838|   114k|{
 1839|   114k|    fIsBogus = false;
 1840|       |    /* Free our current storage */
 1841|   114k|    if ((baseName != fullName) && (baseName != fullNameBuffer)) {
  ------------------
  |  Branch (1841:9): [True: 78.8k, False: 35.9k]
  |  Branch (1841:35): [True: 78.8k, False: 0]
  ------------------
 1842|  78.8k|        uprv_free(baseName);
  ------------------
  |  | 1503|  78.8k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  78.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  78.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  78.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1843|  78.8k|    }
 1844|   114k|    baseName = nullptr;
 1845|   114k|    if(fullName != fullNameBuffer) {
  ------------------
  |  Branch (1845:8): [True: 587, False: 114k]
  ------------------
 1846|    587|        uprv_free(fullName);
  ------------------
  |  | 1503|    587|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    587|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    587|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    587|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1847|    587|        fullName = fullNameBuffer;
 1848|    587|    }
 1849|       |
 1850|       |    // not a loop:
 1851|       |    // just an easy way to have a common error-exit
 1852|       |    // without goto and without another function
 1853|   114k|    do {
 1854|   114k|        char *separator;
 1855|   114k|        char *field[5] = {nullptr};
 1856|   114k|        int32_t fieldLen[5] = {0};
 1857|   114k|        int32_t fieldIdx;
 1858|   114k|        int32_t variantField;
 1859|   114k|        int32_t length;
 1860|   114k|        UErrorCode err;
 1861|       |
 1862|       |        /* preset all fields to empty */
 1863|   114k|        language[0] = script[0] = country[0] = 0;
 1864|       |
 1865|   114k|        const auto parse = [canonicalize](std::string_view localeID,
 1866|   114k|                                          char* name,
 1867|   114k|                                          int32_t nameCapacity,
 1868|   114k|                                          UErrorCode& status) {
 1869|   114k|            return ByteSinkUtil::viaByteSinkToTerminatedChars(
 1870|   114k|                name, nameCapacity,
 1871|   114k|                [&](ByteSink& sink, UErrorCode& status) {
 1872|   114k|                    if (canonicalize) {
 1873|   114k|                        ulocimp_canonicalize(localeID, sink, status);
 1874|   114k|                    } else {
 1875|   114k|                        ulocimp_getName(localeID, sink, status);
 1876|   114k|                    }
 1877|   114k|                },
 1878|   114k|                status);
 1879|   114k|        };
 1880|       |
 1881|       |        // "canonicalize" the locale ID to ICU/Java format
 1882|   114k|        err = U_ZERO_ERROR;
 1883|   114k|        length = parse(localeID, fullName, sizeof fullNameBuffer, err);
 1884|       |
 1885|   114k|        if (err == U_BUFFER_OVERFLOW_ERROR || length >= static_cast<int32_t>(sizeof(fullNameBuffer))) {
  ------------------
  |  Branch (1885:13): [True: 3.10k, False: 111k]
  |  Branch (1885:47): [True: 223, False: 111k]
  ------------------
 1886|  3.32k|            U_ASSERT(baseName == nullptr);
  ------------------
  |  |   35|  3.32k|#   define U_ASSERT(exp) (void)0
  ------------------
 1887|       |            /*Go to heap for the fullName if necessary*/
 1888|  3.32k|            char* newFullName = static_cast<char*>(uprv_malloc(sizeof(char) * (length + 1)));
  ------------------
  |  | 1524|  3.32k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  3.32k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.32k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.32k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1889|  3.32k|            if (newFullName == nullptr) {
  ------------------
  |  Branch (1889:17): [True: 0, False: 3.32k]
  ------------------
 1890|      0|                break; // error: out of memory
 1891|      0|            }
 1892|  3.32k|            fullName = newFullName;
 1893|  3.32k|            err = U_ZERO_ERROR;
 1894|  3.32k|            length = parse(localeID, fullName, length + 1, err);
 1895|  3.32k|        }
 1896|   114k|        if(U_FAILURE(err) || err == U_STRING_NOT_TERMINATED_WARNING) {
  ------------------
  |  Branch (1896:12): [True: 1.68k, False: 113k]
  |  Branch (1896:30): [True: 0, False: 113k]
  ------------------
 1897|       |            /* should never occur */
 1898|  1.68k|            break;
 1899|  1.68k|        }
 1900|       |
 1901|   113k|        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|   113k|        separator = field[0] = fullName;
 1906|   113k|        fieldIdx = 1;
 1907|   113k|        char* at = uprv_strchr(fullName, '@');
  ------------------
  |  |   40|   113k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|   113k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1908|   194k|        while ((separator = uprv_strchr(field[fieldIdx-1], SEP_CHAR)) != nullptr &&
  ------------------
  |  |   40|   194k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|   194k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1908:16): [True: 89.7k, False: 104k]
  ------------------
 1909|   194k|               fieldIdx < UPRV_LENGTHOF(field)-1 &&
  ------------------
  |  |   99|  89.7k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1909:16): [True: 82.4k, False: 7.35k]
  ------------------
 1910|   194k|               (at == nullptr || separator < at)) {
  ------------------
  |  Branch (1910:17): [True: 64.2k, False: 18.1k]
  |  Branch (1910:34): [True: 17.0k, False: 1.15k]
  ------------------
 1911|  81.2k|            field[fieldIdx] = separator + 1;
 1912|  81.2k|            fieldLen[fieldIdx - 1] = static_cast<int32_t>(separator - field[fieldIdx - 1]);
 1913|  81.2k|            fieldIdx++;
 1914|  81.2k|        }
 1915|       |        // variant may contain @foo or .foo POSIX cruft; remove it
 1916|   113k|        separator = uprv_strchr(field[fieldIdx-1], '@');
  ------------------
  |  |   40|   113k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|   113k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1917|   113k|        char* sep2 = uprv_strchr(field[fieldIdx-1], '.');
  ------------------
  |  |   40|   113k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|   113k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1918|   113k|        if (separator!=nullptr || sep2!=nullptr) {
  ------------------
  |  Branch (1918:13): [True: 19.9k, False: 93.2k]
  |  Branch (1918:35): [True: 386, False: 92.8k]
  ------------------
 1919|  20.2k|            if (separator==nullptr || (sep2!=nullptr && separator > sep2)) {
  ------------------
  |  Branch (1919:17): [True: 386, False: 19.9k]
  |  Branch (1919:40): [True: 958, False: 18.9k]
  |  Branch (1919:57): [True: 364, False: 594]
  ------------------
 1920|    750|                separator = sep2;
 1921|    750|            }
 1922|  20.2k|            fieldLen[fieldIdx - 1] = static_cast<int32_t>(separator - field[fieldIdx - 1]);
 1923|  92.8k|        } else {
 1924|  92.8k|            fieldLen[fieldIdx - 1] = length - static_cast<int32_t>(field[fieldIdx - 1] - fullName);
 1925|  92.8k|        }
 1926|       |
 1927|   113k|        if (fieldLen[0] >= static_cast<int32_t>(sizeof(language)))
  ------------------
  |  Branch (1927:13): [True: 4, False: 113k]
  ------------------
 1928|      4|        {
 1929|      4|            break; // error: the language field is too long
 1930|      4|        }
 1931|       |
 1932|   113k|        variantField = 1; /* Usually the 2nd one, except when a script or country is also used. */
 1933|   113k|        if (fieldLen[0] > 0) {
  ------------------
  |  Branch (1933:13): [True: 78.9k, False: 34.2k]
  ------------------
 1934|       |            /* We have a language */
 1935|  78.9k|            uprv_memcpy(language, fullName, fieldLen[0]);
  ------------------
  |  |   42|  78.9k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  78.9k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  78.9k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  78.9k|    _Pragma("clang diagnostic push") \
  |  |   45|  78.9k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  78.9k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  78.9k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  78.9k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  78.9k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  78.9k|    _Pragma("clang diagnostic pop") \
  |  |   49|  78.9k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  78.9k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  78.9k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  78.9k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1936|  78.9k|            language[fieldLen[0]] = 0;
 1937|  78.9k|        }
 1938|   113k|        if (fieldLen[1] == 4 && uprv_isASCIILetter(field[1][0]) &&
  ------------------
  |  | 1514|  12.8k|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  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 (1938:13): [True: 12.8k, False: 100k]
  |  Branch (1938:33): [True: 12.7k, False: 33]
  ------------------
 1939|   113k|                uprv_isASCIILetter(field[1][1]) && uprv_isASCIILetter(field[1][2]) &&
  ------------------
  |  | 1514|  12.7k|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|  12.7k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.7k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.7k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                              uprv_isASCIILetter(field[1][1]) && uprv_isASCIILetter(field[1][2]) &&
  ------------------
  |  | 1514|  12.7k|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|  12.7k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.7k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.7k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1939:17): [True: 12.7k, False: 15]
  |  Branch (1939:52): [True: 12.7k, False: 45]
  ------------------
 1940|   113k|                uprv_isASCIILetter(field[1][3])) {
  ------------------
  |  | 1514|  12.7k|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|  12.7k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.7k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.7k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1940:17): [True: 12.7k, False: 15]
  ------------------
 1941|       |            /* We have at least a script */
 1942|  12.7k|            uprv_memcpy(script, field[1], fieldLen[1]);
  ------------------
  |  |   42|  12.7k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  12.7k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  12.7k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  12.7k|    _Pragma("clang diagnostic push") \
  |  |   45|  12.7k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  12.7k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  12.7k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  12.7k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  12.7k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  12.7k|    _Pragma("clang diagnostic pop") \
  |  |   49|  12.7k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  12.7k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  12.7k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  12.7k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1943|  12.7k|            script[fieldLen[1]] = 0;
 1944|  12.7k|            variantField++;
 1945|  12.7k|        }
 1946|       |
 1947|   113k|        if (fieldLen[variantField] == 2 || fieldLen[variantField] == 3) {
  ------------------
  |  Branch (1947:13): [True: 31.4k, False: 81.6k]
  |  Branch (1947:44): [True: 1.54k, False: 80.1k]
  ------------------
 1948|       |            /* We have a country */
 1949|  33.0k|            uprv_memcpy(country, field[variantField], fieldLen[variantField]);
  ------------------
  |  |   42|  33.0k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  33.0k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  33.0k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  33.0k|    _Pragma("clang diagnostic push") \
  |  |   45|  33.0k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  33.0k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  33.0k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  33.0k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  33.0k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  33.0k|    _Pragma("clang diagnostic pop") \
  |  |   49|  33.0k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  33.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  33.0k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  33.0k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1950|  33.0k|            country[fieldLen[variantField]] = 0;
 1951|  33.0k|            variantField++;
 1952|  80.1k|        } else if (fieldLen[variantField] == 0) {
  ------------------
  |  Branch (1952:20): [True: 79.9k, False: 167]
  ------------------
 1953|  79.9k|            variantField++; /* script or country empty but variant in next field (i.e. en__POSIX) */
 1954|  79.9k|        }
 1955|       |
 1956|   113k|        if (fieldLen[variantField] > 0) {
  ------------------
  |  Branch (1956:13): [True: 15.5k, False: 97.6k]
  ------------------
 1957|       |            /* We have a variant */
 1958|  15.5k|            variantBegin = static_cast<int32_t>(field[variantField] - fullName);
 1959|  15.5k|        }
 1960|       |
 1961|   113k|        err = U_ZERO_ERROR;
 1962|   113k|        initBaseName(err);
 1963|   113k|        if (U_FAILURE(err)) {
  ------------------
  |  Branch (1963:13): [True: 0, False: 113k]
  ------------------
 1964|      0|            break;
 1965|      0|        }
 1966|       |
 1967|   113k|        if (canonicalize) {
  ------------------
  |  Branch (1967:13): [True: 885, False: 112k]
  ------------------
 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|   113k|        return *this;
 1984|   113k|    } 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.68k|    setToBogus();
 1988|       |
 1989|  1.68k|    return *this;
 1990|   114k|}
_ZN6icu_786Locale12initBaseNameER10UErrorCode:
 1999|   113k|Locale::initBaseName(UErrorCode &status) {
 2000|   113k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2000:9): [True: 0, False: 113k]
  ------------------
 2001|      0|        return;
 2002|      0|    }
 2003|   113k|    U_ASSERT(baseName==nullptr || baseName==fullName);
  ------------------
  |  |   35|   113k|#   define U_ASSERT(exp) (void)0
  ------------------
 2004|   113k|    const char *atPtr = uprv_strchr(fullName, '@');
  ------------------
  |  |   40|   113k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|   113k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2005|   113k|    const char *eqPtr = uprv_strchr(fullName, '=');
  ------------------
  |  |   40|   113k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|   113k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2006|   113k|    if (atPtr && eqPtr && atPtr < eqPtr) {
  ------------------
  |  Branch (2006:9): [True: 19.9k, False: 93.2k]
  |  Branch (2006:18): [True: 17.3k, False: 2.53k]
  |  Branch (2006:27): [True: 16.5k, False: 866]
  ------------------
 2007|       |        // Key words exist.
 2008|  16.5k|        int32_t baseNameLength = static_cast<int32_t>(atPtr - fullName);
 2009|  16.5k|        char* newBaseName = static_cast<char*>(uprv_malloc(baseNameLength + 1));
  ------------------
  |  | 1524|  16.5k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  16.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  16.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  16.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2010|  16.5k|        if (newBaseName == nullptr) {
  ------------------
  |  Branch (2010:13): [True: 0, False: 16.5k]
  ------------------
 2011|      0|            status = U_MEMORY_ALLOCATION_ERROR;
 2012|      0|            return;
 2013|      0|        }
 2014|  16.5k|        baseName = newBaseName;
 2015|  16.5k|        uprv_strncpy(baseName, fullName, baseNameLength);
  ------------------
  |  |   43|  16.5k|#define uprv_strncpy(dst, src, size) U_STANDARD_CPP_NAMESPACE strncpy(dst, src, size)
  |  |  ------------------
  |  |  |  |  393|  16.5k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2016|  16.5k|        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|  16.5k|        if (variantBegin > baseNameLength) {
  ------------------
  |  Branch (2021:13): [True: 14.4k, False: 2.09k]
  ------------------
 2022|  14.4k|            variantBegin = baseNameLength;
 2023|  14.4k|        }
 2024|  96.6k|    } else {
 2025|  96.6k|        baseName = fullName;
 2026|  96.6k|    }
 2027|   113k|}
_ZNK6icu_786Locale8hashCodeEv:
 2032|   347k|{
 2033|   347k|    return ustr_hashCharsN(fullName, static_cast<int32_t>(uprv_strlen(fullName)));
  ------------------
  |  | 1878|   347k|#define ustr_hashCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashCharsN)
  |  |  ------------------
  |  |  |  |  123|   347k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   347k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   347k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  return ustr_hashCharsN(fullName, static_cast<int32_t>(uprv_strlen(fullName)));
  ------------------
  |  |   37|   347k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|   347k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2034|   347k|}
_ZN6icu_786Locale10setToBogusEv:
 2037|  2.71M|Locale::setToBogus() {
 2038|       |    /* Free our current storage */
 2039|  2.71M|    if((baseName != fullName) && (baseName != fullNameBuffer)) {
  ------------------
  |  Branch (2039:8): [True: 2.11M, False: 603k]
  |  Branch (2039:34): [True: 2.11M, False: 0]
  ------------------
 2040|  2.11M|        uprv_free(baseName);
  ------------------
  |  | 1503|  2.11M|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  2.11M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.11M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.11M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2041|  2.11M|    }
 2042|  2.71M|    baseName = nullptr;
 2043|  2.71M|    if(fullName != fullNameBuffer) {
  ------------------
  |  Branch (2043:8): [True: 19, False: 2.71M]
  ------------------
 2044|     19|        uprv_free(fullName);
  ------------------
  |  | 1503|     19|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|     19|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     19|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     19|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2045|     19|        fullName = fullNameBuffer;
 2046|     19|    }
 2047|  2.71M|    *fullNameBuffer = 0;
 2048|  2.71M|    *language = 0;
 2049|  2.71M|    *script = 0;
 2050|  2.71M|    *country = 0;
 2051|  2.71M|    fIsBogus = true;
 2052|  2.71M|    variantBegin = 0;
 2053|  2.71M|}
_ZN6icu_786Locale10getDefaultEv:
 2057|  2.42M|{
 2058|  2.42M|    {
 2059|  2.42M|        Mutex lock(&gDefaultLocaleMutex);
 2060|  2.42M|        if (gDefaultLocale != nullptr) {
  ------------------
  |  Branch (2060:13): [True: 2.42M, False: 1]
  ------------------
 2061|  2.42M|            return *gDefaultLocale;
 2062|  2.42M|        }
 2063|  2.42M|    }
 2064|      1|    UErrorCode status = U_ZERO_ERROR;
 2065|      1|    return *locale_set_default_internal(nullptr, status);
 2066|  2.42M|}
_ZN6icu_786Locale16addLikelySubtagsER10UErrorCode:
 2086|  10.4k|Locale::addLikelySubtags(UErrorCode& status) {
 2087|  10.4k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2087:9): [True: 0, False: 10.4k]
  ------------------
 2088|      0|        return;
 2089|      0|    }
 2090|       |
 2091|  10.4k|    CharString maximizedLocaleID = ulocimp_addLikelySubtags(fullName, status);
  ------------------
  |  | 1196|  10.4k|#define ulocimp_addLikelySubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_addLikelySubtags)
  |  |  ------------------
  |  |  |  |  123|  10.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  10.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  10.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2092|       |
 2093|  10.4k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2093:9): [True: 782, False: 9.71k]
  ------------------
 2094|    782|        return;
 2095|    782|    }
 2096|       |
 2097|  9.71k|    init(maximizedLocaleID.data(), /*canonicalize=*/false);
 2098|  9.71k|    if (isBogus()) {
  ------------------
  |  Branch (2098:9): [True: 11, False: 9.70k]
  ------------------
 2099|     11|        status = U_ILLEGAL_ARGUMENT_ERROR;
 2100|     11|    }
 2101|  9.71k|}
_ZN6icu_786Locale15minimizeSubtagsER10UErrorCode:
 2104|  9.48k|Locale::minimizeSubtags(UErrorCode& status) {
 2105|  9.48k|    Locale::minimizeSubtags(false, status);
 2106|  9.48k|}
_ZN6icu_786Locale15minimizeSubtagsEbR10UErrorCode:
 2108|  9.48k|Locale::minimizeSubtags(bool favorScript, UErrorCode& status) {
 2109|  9.48k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2109:9): [True: 0, False: 9.48k]
  ------------------
 2110|      0|        return;
 2111|      0|    }
 2112|       |
 2113|  9.48k|    CharString minimizedLocaleID = ulocimp_minimizeSubtags(fullName, favorScript, status);
  ------------------
  |  | 1212|  9.48k|#define ulocimp_minimizeSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_minimizeSubtags)
  |  |  ------------------
  |  |  |  |  123|  9.48k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.48k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.48k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2114|       |
 2115|  9.48k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2115:9): [True: 413, False: 9.07k]
  ------------------
 2116|    413|        return;
 2117|    413|    }
 2118|       |
 2119|  9.07k|    init(minimizedLocaleID.data(), /*canonicalize=*/false);
 2120|  9.07k|    if (isBogus()) {
  ------------------
  |  Branch (2120:9): [True: 3, False: 9.06k]
  ------------------
 2121|      3|        status = U_ILLEGAL_ARGUMENT_ERROR;
 2122|      3|    }
 2123|  9.07k|}
_ZN6icu_786Locale14createFromNameEPKc:
 2204|  20.1k|{
 2205|  20.1k|    if (name) {
  ------------------
  |  Branch (2205:9): [True: 20.1k, False: 0]
  ------------------
 2206|  20.1k|        Locale l("");
 2207|  20.1k|        l.init(name, false);
 2208|  20.1k|        return l;
 2209|  20.1k|    }
 2210|      0|    else {
 2211|      0|        return getDefault();
 2212|      0|    }
 2213|  20.1k|}
_ZN6icu_786Locale14setFromPOSIXIDEPKc:
 2267|    885|{
 2268|    885|    init(posixID, true);
 2269|    885|}
_ZN6icu_786Locale7getRootEv:
 2273|    278|{
 2274|    278|    return getLocale(eROOT);
 2275|    278|}
_ZN6icu_786Locale9getLocaleEi:
 2406|    278|{
 2407|    278|    Locale *localeCache = getLocaleCache();
 2408|    278|    U_ASSERT((locid < eMAX_LOCALES)&&(locid>=0));
  ------------------
  |  |   35|    278|#   define U_ASSERT(exp) (void)0
  ------------------
 2409|    278|    if (localeCache == nullptr) {
  ------------------
  |  Branch (2409:9): [True: 0, False: 278]
  ------------------
 2410|       |        // Failure allocating the locale cache.
 2411|       |        //   The best we can do is return a nullptr reference.
 2412|      0|        locid = 0;
 2413|      0|    }
 2414|    278|    return localeCache[locid]; /*operating on nullptr*/
 2415|    278|}
_ZN6icu_786Locale14getLocaleCacheEv:
 2423|    278|{
 2424|    278|    UErrorCode status = U_ZERO_ERROR;
 2425|    278|    umtx_initOnce(gLocaleCacheInitOnce, locale_init, status);
 2426|    278|    return gLocaleCache;
 2427|    278|}
_ZNK6icu_786Locale15getKeywordValueEPKcPciR10UErrorCode:
 2606|   221k|{
 2607|   221k|    return uloc_getKeywordValue(fullName, keywordName, buffer, bufLen, &status);
  ------------------
  |  | 1130|   221k|#define uloc_getKeywordValue U_ICU_ENTRY_POINT_RENAME(uloc_getKeywordValue)
  |  |  ------------------
  |  |  |  |  123|   221k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   221k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   221k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2608|   221k|}
_ZNK6icu_786Locale11getBaseNameEv:
 2748|   104k|Locale::getBaseName() const {
 2749|   104k|    return baseName;
 2750|   104k|}
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|   118k|                                          UErrorCode& status) {
 1869|   118k|            return ByteSinkUtil::viaByteSinkToTerminatedChars(
 1870|   118k|                name, nameCapacity,
 1871|   118k|                [&](ByteSink& sink, UErrorCode& status) {
 1872|   118k|                    if (canonicalize) {
 1873|   118k|                        ulocimp_canonicalize(localeID, sink, status);
 1874|   118k|                    } else {
 1875|   118k|                        ulocimp_getName(localeID, sink, status);
 1876|   118k|                    }
 1877|   118k|                },
 1878|   118k|                status);
 1879|   118k|        };
locid.cpp:_ZZZN6icu_786Locale4initENS_11StringPieceEaENK3$_0clENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEPciR10UErrorCodeENKUlRNS_8ByteSinkESA_E_clESC_SA_:
 1871|   118k|                [&](ByteSink& sink, UErrorCode& status) {
 1872|   118k|                    if (canonicalize) {
  ------------------
  |  Branch (1872:25): [True: 885, False: 117k]
  ------------------
 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|   117k|                    } else {
 1875|   117k|                        ulocimp_getName(localeID, sink, status);
  ------------------
  |  | 1204|   117k|#define ulocimp_getName U_ICU_ENTRY_POINT_RENAME(ulocimp_getName)
  |  |  ------------------
  |  |  |  |  123|   117k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   117k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   117k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1876|   117k|                    }
 1877|   118k|                },
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|}

_Z27ulocimp_addLikelySubtags_78PKcR10UErrorCode:
  290|  21.6k|                         UErrorCode& status) {
  291|  21.6k|    return icu::ByteSinkUtil::viaByteSinkToCharString(
  292|  21.6k|        [&](icu::ByteSink& sink, UErrorCode& status) {
  293|  21.6k|            ulocimp_addLikelySubtags(localeID, sink, status);
  294|  21.6k|        },
  295|  21.6k|        status);
  296|  21.6k|}
_Z27ulocimp_addLikelySubtags_78PKcRN6icu_788ByteSinkER10UErrorCode:
  301|  21.6k|                         UErrorCode& status) {
  302|  21.6k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (302:9): [True: 0, False: 21.6k]
  ------------------
  303|  21.6k|    if (localeID == nullptr) {
  ------------------
  |  Branch (303:9): [True: 0, False: 21.6k]
  ------------------
  304|      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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  305|      0|    }
  306|  21.6k|    icu::CharString localeBuffer = ulocimp_canonicalize(localeID, status);
  ------------------
  |  | 1197|  21.6k|#define ulocimp_canonicalize U_ICU_ENTRY_POINT_RENAME(ulocimp_canonicalize)
  |  |  ------------------
  |  |  |  |  123|  21.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  21.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  21.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  307|  21.6k|    _uloc_addLikelySubtags(localeBuffer.data(), sink, status);
  308|  21.6k|}
_Z26ulocimp_minimizeSubtags_78PKcbR10UErrorCode:
  326|  9.48k|                        UErrorCode& status) {
  327|  9.48k|    return icu::ByteSinkUtil::viaByteSinkToCharString(
  328|  9.48k|        [&](icu::ByteSink& sink, UErrorCode& status) {
  329|  9.48k|            ulocimp_minimizeSubtags(localeID, sink, favorScript, status);
  330|  9.48k|        },
  331|  9.48k|        status);
  332|  9.48k|}
_Z26ulocimp_minimizeSubtags_78PKcRN6icu_788ByteSinkEbR10UErrorCode:
  338|  9.48k|                        UErrorCode& status) {
  339|  9.48k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (339:9): [True: 0, False: 9.48k]
  ------------------
  340|  9.48k|    if (localeID == nullptr) {
  ------------------
  |  Branch (340:9): [True: 0, False: 9.48k]
  ------------------
  341|      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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  342|      0|    }
  343|  9.48k|    icu::CharString localeBuffer = ulocimp_canonicalize(localeID, status);
  ------------------
  |  | 1197|  9.48k|#define ulocimp_canonicalize U_ICU_ENTRY_POINT_RENAME(ulocimp_canonicalize)
  |  |  ------------------
  |  |  |  |  123|  9.48k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.48k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.48k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  344|  9.48k|    _uloc_minimizeSubtags(localeBuffer.data(), sink, favorScript, status);
  345|  9.48k|}
_Z39ulocimp_getRegionForSupplementalData_78PKcbR10UErrorCode:
  434|  97.2k|                                     UErrorCode& status) {
  435|  97.2k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (435:9): [True: 0, False: 97.2k]
  ------------------
  436|      0|        return {};
  437|      0|    }
  438|  97.2k|    icu::CharString rgBuf = GetRegionFromKey(localeID, "rg", status);
  439|  97.2k|    if (U_SUCCESS(status) && rgBuf.isEmpty()) {
  ------------------
  |  Branch (439:9): [True: 94.2k, False: 3.02k]
  |  Branch (439:30): [True: 94.1k, False: 69]
  ------------------
  440|       |        // No valid rg keyword value, try for unicode_region_subtag
  441|  94.1k|        rgBuf = ulocimp_getRegion(localeID == nullptr ? uloc_getDefault() : localeID, status);
  ------------------
  |  | 1206|  94.1k|#define ulocimp_getRegion U_ICU_ENTRY_POINT_RENAME(ulocimp_getRegion)
  |  |  ------------------
  |  |  |  |  123|  94.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  94.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  94.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      rgBuf = ulocimp_getRegion(localeID == nullptr ? uloc_getDefault() : localeID, status);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (441:35): [True: 0, False: 94.1k]
  ------------------
  442|  94.1k|        if (U_SUCCESS(status) && rgBuf.isEmpty() && inferRegion) {
  ------------------
  |  Branch (442:13): [True: 94.1k, False: 0]
  |  Branch (442:34): [True: 22.6k, False: 71.4k]
  |  Branch (442:53): [True: 9.38k, False: 13.2k]
  ------------------
  443|       |            // Second check for sd keyword value
  444|  9.38k|            rgBuf = GetRegionFromKey(localeID, "sd", status);
  445|  9.38k|            if (U_SUCCESS(status) && rgBuf.isEmpty()) {
  ------------------
  |  Branch (445:17): [True: 9.38k, False: 3]
  |  Branch (445:38): [True: 9.38k, False: 2]
  ------------------
  446|       |                // no unicode_region_subtag but inferRegion true, try likely subtags
  447|  9.38k|                UErrorCode rgStatus = U_ZERO_ERROR;
  448|  9.38k|                icu::CharString locBuf = ulocimp_addLikelySubtags(localeID, rgStatus);
  ------------------
  |  | 1196|  9.38k|#define ulocimp_addLikelySubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_addLikelySubtags)
  |  |  ------------------
  |  |  |  |  123|  9.38k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.38k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.38k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  449|  9.38k|                if (U_SUCCESS(rgStatus)) {
  ------------------
  |  Branch (449:21): [True: 8.62k, False: 761]
  ------------------
  450|  8.62k|                    rgBuf = ulocimp_getRegion(locBuf.toStringPiece(), status);
  ------------------
  |  | 1206|  8.62k|#define ulocimp_getRegion U_ICU_ENTRY_POINT_RENAME(ulocimp_getRegion)
  |  |  ------------------
  |  |  |  |  123|  8.62k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  8.62k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  8.62k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  451|  8.62k|                }
  452|  9.38k|            }
  453|  9.38k|        }
  454|  94.1k|    }
  455|       |
  456|  97.2k|    return rgBuf;
  457|  97.2k|}
_ZN6icu_7817RegionValidateMapC2Ev:
  476|      1|RegionValidateMap::RegionValidateMap() {
  477|      1|    uprv_memcpy(map, gValidRegionMap, sizeof(map));
  ------------------
  |  |   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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  478|      1|}
_ZN6icu_7817RegionValidateMapD2Ev:
  480|      1|RegionValidateMap::~RegionValidateMap() {
  481|      1|}
_ZNK6icu_7817RegionValidateMap5isSetEPKc:
  483|     99|bool RegionValidateMap::isSet(const char* region) const {
  484|     99|    int32_t index = value(region);
  485|     99|    if (index < 0) {
  ------------------
  |  Branch (485:9): [True: 0, False: 99]
  ------------------
  486|      0|        return false;
  487|      0|    }
  488|     99|    return 0 != (map[index / 32] & (1L << (index % 32)));
  489|     99|}
_ZNK6icu_7817RegionValidateMap5valueEPKc:
  500|     99|int32_t RegionValidateMap::value(const char* region) const {
  501|     99|    if (uprv_isASCIILetter(region[0]) && uprv_isASCIILetter(region[1]) &&
  ------------------
  |  | 1514|     99|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  if (uprv_isASCIILetter(region[0]) && uprv_isASCIILetter(region[1]) &&
  ------------------
  |  | 1514|     99|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (501:9): [True: 99, False: 0]
  |  Branch (501:42): [True: 99, False: 0]
  ------------------
  502|     99|        region[2] == '\0') {
  ------------------
  |  Branch (502:9): [True: 99, False: 0]
  ------------------
  503|     99|        return (uprv_toupper(region[0])-'A') * 26 +
  ------------------
  |  | 1547|     99|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  504|     99|               (uprv_toupper(region[1])-'A');
  ------------------
  |  | 1547|     99|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  505|     99|    }
  506|      0|    return -1;
  507|     99|}
loclikely.cpp:_ZN12_GLOBAL__N_122_uloc_addLikelySubtagsEPKcRN6icu_788ByteSinkER10UErrorCode:
  136|  21.6k|                       UErrorCode& err) {
  137|  21.6k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (137:9): [True: 162, False: 21.4k]
  ------------------
  138|    162|        return;
  139|    162|    }
  140|       |
  141|  21.4k|    if (localeID == nullptr) {
  ------------------
  |  Branch (141:9): [True: 0, False: 21.4k]
  ------------------
  142|      0|        err = U_ILLEGAL_ARGUMENT_ERROR;
  143|      0|        return;
  144|      0|    }
  145|       |
  146|  21.4k|    icu::CharString lang;
  147|  21.4k|    icu::CharString script;
  148|  21.4k|    icu::CharString region;
  149|  21.4k|    icu::CharString variant;
  150|  21.4k|    const char* trailing = nullptr;
  151|  21.4k|    ulocimp_getSubtags(localeID, &lang, &script, &region, &variant, &trailing, err);
  ------------------
  |  | 1209|  21.4k|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|  21.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  21.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  21.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  152|  21.4k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (152:9): [True: 5, False: 21.4k]
  ------------------
  153|      5|        return;
  154|      5|    }
  155|       |
  156|  21.4k|    if (!CHECK_TRAILING_VARIANT_SIZE(variant.data(), variant.length())) {
  ------------------
  |  Branch (156:9): [True: 626, False: 20.8k]
  ------------------
  157|    626|        err = U_ILLEGAL_ARGUMENT_ERROR;
  158|    626|        return;
  159|    626|    }
  160|       |
  161|  20.8k|    if (lang.length() == 4) {
  ------------------
  |  Branch (161:9): [True: 651, False: 20.1k]
  ------------------
  162|    651|        if (script.isEmpty()) {
  ------------------
  |  Branch (162:13): [True: 636, False: 15]
  ------------------
  163|    636|            script = std::move(lang);
  164|    636|            lang.clear();
  165|    636|        } else {
  166|     15|            err = U_ILLEGAL_ARGUMENT_ERROR;
  167|     15|            return;
  168|     15|        }
  169|  20.1k|    } else if (lang.length() > 8) {
  ------------------
  |  Branch (169:16): [True: 733, False: 19.4k]
  ------------------
  170|    733|        err = U_ILLEGAL_ARGUMENT_ERROR;
  171|    733|        return;
  172|    733|    }
  173|       |
  174|  20.0k|    int32_t trailingLength = static_cast<int32_t>(uprv_strlen(trailing));
  ------------------
  |  |   37|  20.0k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  20.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  175|       |
  176|  20.0k|    const icu::LikelySubtags* likelySubtags = icu::LikelySubtags::getSingleton(err);
  177|  20.0k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (177:9): [True: 0, False: 20.0k]
  ------------------
  178|      0|        return;
  179|      0|    }
  180|       |    // We need to keep l on the stack because lsr may point into internal
  181|       |    // memory of l.
  182|  20.0k|    icu::Locale l = icu::Locale::createFromName(localeID);
  183|  20.0k|    if (l.isBogus()) {
  ------------------
  |  Branch (183:9): [True: 2, False: 20.0k]
  ------------------
  184|      2|        err = U_ILLEGAL_ARGUMENT_ERROR;
  185|      2|        return;
  186|      2|    }
  187|  20.0k|    icu::LSR lsr = likelySubtags->makeMaximizedLsrFrom(l, true, err);
  188|  20.0k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (188:9): [True: 0, False: 20.0k]
  ------------------
  189|      0|        return;
  190|      0|    }
  191|  20.0k|    const char* language = lsr.language;
  192|  20.0k|    if (uprv_strcmp(language, "und") == 0) {
  ------------------
  |  |   38|  20.0k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  20.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (192:9): [True: 18, False: 20.0k]
  ------------------
  193|     18|        language = "";
  194|     18|    }
  195|  20.0k|    createTagStringWithAlternates(
  196|  20.0k|        language,
  197|  20.0k|        static_cast<int32_t>(uprv_strlen(language)),
  ------------------
  |  |   37|  20.0k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  20.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  198|  20.0k|        lsr.script,
  199|  20.0k|        static_cast<int32_t>(uprv_strlen(lsr.script)),
  ------------------
  |  |   37|  20.0k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  20.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  200|  20.0k|        lsr.region,
  201|  20.0k|        static_cast<int32_t>(uprv_strlen(lsr.region)),
  ------------------
  |  |   37|  20.0k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  20.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  202|  20.0k|        variant.data(),
  203|  20.0k|        variant.length(),
  204|  20.0k|        trailing,
  205|  20.0k|        trailingLength,
  206|  20.0k|        sink,
  207|  20.0k|        err);
  208|  20.0k|}
loclikely.cpp:_ZN12_GLOBAL__N_127CHECK_TRAILING_VARIANT_SIZEEPKci:
  119|  30.7k|bool CHECK_TRAILING_VARIANT_SIZE(const char* variant, int32_t variantLength) {
  120|  30.7k|    int32_t count = 0;
  121|   118k|    for (int32_t i = 0; i < variantLength; i++) {
  ------------------
  |  Branch (121:25): [True: 88.2k, False: 29.9k]
  ------------------
  122|  88.2k|        if (_isIDSeparator(variant[i])) {
  ------------------
  |  Branch (122:13): [True: 40.1k, False: 48.0k]
  ------------------
  123|  40.1k|            count = 0;
  124|  48.0k|        } else if (count == 8) {
  ------------------
  |  Branch (124:20): [True: 870, False: 47.2k]
  ------------------
  125|    870|            return false;
  126|  47.2k|        } else {
  127|  47.2k|            count++;
  128|  47.2k|        }
  129|  88.2k|    }
  130|  29.9k|    return true;
  131|  30.7k|}
loclikely.cpp:_ZN12_GLOBAL__N_129createTagStringWithAlternatesEPKciS1_iS1_iS1_iS1_iRN6icu_788ByteSinkER10UErrorCode:
   76|  29.1k|    UErrorCode& err) {
   77|  29.1k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (77:9): [True: 0, False: 29.1k]
  ------------------
   78|      0|        return;
   79|      0|    }
   80|       |
   81|  29.1k|    if (langLength >= ULOC_LANG_CAPACITY ||
  ------------------
  |  |  251|  58.3k|#define ULOC_LANG_CAPACITY 12
  ------------------
  |  Branch (81:9): [True: 0, False: 29.1k]
  ------------------
   82|  29.1k|            scriptLength >= ULOC_SCRIPT_CAPACITY ||
  ------------------
  |  |  271|  58.3k|#define ULOC_SCRIPT_CAPACITY 6
  ------------------
  |  Branch (82:13): [True: 0, False: 29.1k]
  ------------------
   83|  29.1k|            regionLength >= ULOC_COUNTRY_CAPACITY) {
  ------------------
  |  |  258|  29.1k|#define ULOC_COUNTRY_CAPACITY 4
  ------------------
  |  Branch (83:13): [True: 0, False: 29.1k]
  ------------------
   84|      0|        err = U_ILLEGAL_ARGUMENT_ERROR;
   85|      0|        return;
   86|      0|    }
   87|       |
   88|  29.1k|    if (langLength > 0) {
  ------------------
  |  Branch (88:9): [True: 29.1k, False: 24]
  ------------------
   89|  29.1k|        sink.Append(lang, langLength);
   90|  29.1k|    }
   91|       |
   92|  29.1k|    if (scriptLength > 0) {
  ------------------
  |  Branch (92:9): [True: 14.8k, False: 14.2k]
  ------------------
   93|  14.8k|        sink.Append("_", 1);
   94|  14.8k|        sink.Append(script, scriptLength);
   95|  14.8k|    }
   96|       |
   97|  29.1k|    if (regionLength > 0) {
  ------------------
  |  Branch (97:9): [True: 17.1k, False: 11.9k]
  ------------------
   98|  17.1k|        sink.Append("_", 1);
   99|  17.1k|        sink.Append(region, regionLength);
  100|  17.1k|    }
  101|       |
  102|  29.1k|    if (variantLength > 0) {
  ------------------
  |  Branch (102:9): [True: 5.31k, False: 23.8k]
  ------------------
  103|  5.31k|        if (regionLength == 0) {
  ------------------
  |  Branch (103:13): [True: 1.97k, False: 3.34k]
  ------------------
  104|       |            /* extra separator is required */
  105|  1.97k|            sink.Append("_", 1);
  106|  1.97k|        }
  107|  5.31k|        sink.Append("_", 1);
  108|  5.31k|        sink.Append(variant, variantLength);
  109|  5.31k|    }
  110|       |
  111|  29.1k|    if (trailingLength > 0) {
  ------------------
  |  Branch (111:9): [True: 6.22k, False: 22.9k]
  ------------------
  112|       |        /*
  113|       |         * Copy the trailing data into the supplied buffer.
  114|       |         */
  115|  6.22k|        sink.Append(trailing, trailingLength);
  116|  6.22k|    }
  117|  29.1k|}
loclikely.cpp:_ZN12_GLOBAL__N_121_uloc_minimizeSubtagsEPKcRN6icu_788ByteSinkEbR10UErrorCode:
  214|  9.48k|                      UErrorCode& err) {
  215|  9.48k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (215:9): [True: 164, False: 9.32k]
  ------------------
  216|    164|        return;
  217|    164|    }
  218|       |
  219|  9.32k|    if (localeID == nullptr) {
  ------------------
  |  Branch (219:9): [True: 0, False: 9.32k]
  ------------------
  220|      0|        err = U_ILLEGAL_ARGUMENT_ERROR;
  221|      0|        return;
  222|      0|    }
  223|       |
  224|  9.32k|    icu::CharString lang;
  225|  9.32k|    icu::CharString script;
  226|  9.32k|    icu::CharString region;
  227|  9.32k|    icu::CharString variant;
  228|  9.32k|    const char* trailing = nullptr;
  229|  9.32k|    ulocimp_getSubtags(localeID, &lang, &script, &region, &variant, &trailing, err);
  ------------------
  |  | 1209|  9.32k|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|  9.32k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.32k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.32k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  230|  9.32k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (230:9): [True: 5, False: 9.31k]
  ------------------
  231|      5|        return;
  232|      5|    }
  233|       |
  234|  9.31k|    if (!CHECK_TRAILING_VARIANT_SIZE(variant.data(), variant.length())) {
  ------------------
  |  Branch (234:9): [True: 244, False: 9.07k]
  ------------------
  235|    244|        err = U_ILLEGAL_ARGUMENT_ERROR;
  236|    244|        return;
  237|    244|    }
  238|       |
  239|  9.07k|    int32_t trailingLength = static_cast<int32_t>(uprv_strlen(trailing));
  ------------------
  |  |   37|  9.07k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  9.07k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  240|       |
  241|  9.07k|    const icu::LikelySubtags* likelySubtags = icu::LikelySubtags::getSingleton(err);
  242|  9.07k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (242:9): [True: 0, False: 9.07k]
  ------------------
  243|      0|        return;
  244|      0|    }
  245|  9.07k|    icu::LSR lsr = likelySubtags->minimizeSubtags(
  246|  9.07k|        lang.toStringPiece(),
  247|  9.07k|        script.toStringPiece(),
  248|  9.07k|        region.toStringPiece(),
  249|  9.07k|        favorScript,
  250|  9.07k|        err);
  251|  9.07k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (251:9): [True: 0, False: 9.07k]
  ------------------
  252|      0|        return;
  253|      0|    }
  254|  9.07k|    const char* language = lsr.language;
  255|  9.07k|    if (uprv_strcmp(language, "und") == 0) {
  ------------------
  |  |   38|  9.07k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  9.07k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (255:9): [True: 6, False: 9.06k]
  ------------------
  256|      6|        language = "";
  257|      6|    }
  258|  9.07k|    createTagStringWithAlternates(
  259|  9.07k|        language,
  260|  9.07k|        static_cast<int32_t>(uprv_strlen(language)),
  ------------------
  |  |   37|  9.07k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  9.07k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  261|  9.07k|        lsr.script,
  262|  9.07k|        static_cast<int32_t>(uprv_strlen(lsr.script)),
  ------------------
  |  |   37|  9.07k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  9.07k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  263|  9.07k|        lsr.region,
  264|  9.07k|        static_cast<int32_t>(uprv_strlen(lsr.region)),
  ------------------
  |  |   37|  9.07k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  9.07k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  265|  9.07k|        variant.data(),
  266|  9.07k|        variant.length(),
  267|  9.07k|        trailing,
  268|  9.07k|        trailingLength,
  269|  9.07k|        sink,
  270|  9.07k|        err);
  271|  9.07k|}
loclikely.cpp:_ZN12_GLOBAL__N_116GetRegionFromKeyEPKcNSt3__117basic_string_viewIcNS2_11char_traitsIcEEEER10UErrorCode:
  400|   106k|GetRegionFromKey(const char* localeID, std::string_view key, UErrorCode& status) {
  401|   106k|    icu::CharString result;
  402|       |    // First check for keyword value
  403|   106k|    icu::CharString kw = ulocimp_getKeywordValue(localeID, key, status);
  ------------------
  |  | 1200|   106k|#define ulocimp_getKeywordValue U_ICU_ENTRY_POINT_RENAME(ulocimp_getKeywordValue)
  |  |  ------------------
  |  |  |  |  123|   106k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   106k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   106k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  404|   106k|    int32_t len = kw.length();
  405|       |    // In UTS35
  406|       |    //   type = alphanum{3,8} (sep alphanum{3,8})* ;
  407|       |    // so we know the subdivision must fit the type already.
  408|       |    //
  409|       |    //   unicode_subdivision_id = unicode_region_subtag unicode_subdivision_suffix ;
  410|       |    //   unicode_region_subtag = (alpha{2} | digit{3}) ;
  411|       |    //   unicode_subdivision_suffix = alphanum{1,4} ;
  412|       |    // But we also know there are no id in start with digit{3} in
  413|       |    // https://github.com/unicode-org/cldr/blob/main/common/validity/subdivision.xml
  414|       |    // Therefore we can simplify as
  415|       |    // unicode_subdivision_id = alpha{2} alphanum{1,4}
  416|       |    //
  417|       |    // and only need to accept/reject the code based on the alpha{2} and the length.
  418|   106k|    if (U_SUCCESS(status) && len >= 3 && len <= 6 &&
  ------------------
  |  Branch (418:9): [True: 103k, False: 3.03k]
  |  Branch (418:30): [True: 315, False: 103k]
  |  Branch (418:42): [True: 172, False: 143]
  ------------------
  419|   106k|        uprv_isASCIILetter(kw[0]) && uprv_isASCIILetter(kw[1])) {
  ------------------
  |  | 1514|    172|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      uprv_isASCIILetter(kw[0]) && uprv_isASCIILetter(kw[1])) {
  ------------------
  |  | 1514|    117|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|    117|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    117|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    117|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (419:9): [True: 117, False: 55]
  |  Branch (419:38): [True: 99, False: 18]
  ------------------
  420|       |        // Additional Check
  421|     99|        static icu::RegionValidateMap valid;
  422|     99|        const char region[] = {kw[0], kw[1], '\0'};
  423|     99|        if (valid.isSet(region)) {
  ------------------
  |  Branch (423:13): [True: 71, False: 28]
  ------------------
  424|     71|            result.append(uprv_toupper(kw[0]), status);
  ------------------
  |  | 1547|     71|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|     71|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     71|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     71|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  425|     71|            result.append(uprv_toupper(kw[1]), status);
  ------------------
  |  | 1547|     71|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|     71|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     71|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     71|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  426|     71|        }
  427|     99|    }
  428|   106k|    return result;
  429|   106k|}
loclikely.cpp:_ZZ27ulocimp_addLikelySubtags_78PKcR10UErrorCodeENK3$_0clERN6icu_788ByteSinkES2_:
  292|  21.6k|        [&](icu::ByteSink& sink, UErrorCode& status) {
  293|  21.6k|            ulocimp_addLikelySubtags(localeID, sink, status);
  ------------------
  |  | 1196|  21.6k|#define ulocimp_addLikelySubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_addLikelySubtags)
  |  |  ------------------
  |  |  |  |  123|  21.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  21.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  21.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  294|  21.6k|        },
loclikely.cpp:_ZZ26ulocimp_minimizeSubtags_78PKcbR10UErrorCodeENK3$_0clERN6icu_788ByteSinkES2_:
  328|  9.48k|        [&](icu::ByteSink& sink, UErrorCode& status) {
  329|  9.48k|            ulocimp_minimizeSubtags(localeID, sink, favorScript, status);
  ------------------
  |  | 1212|  9.48k|#define ulocimp_minimizeSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_minimizeSubtags)
  |  |  ------------------
  |  |  |  |  123|  9.48k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.48k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.48k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  330|  9.48k|        },

_ZN6icu_7818LocaleDistanceDataC2EOS0_:
   40|      1|        distanceTrieBytes(data.distanceTrieBytes),
   41|      1|        regionToPartitions(data.regionToPartitions),
   42|      1|        partitions(data.partitions),
   43|      1|        paradigms(data.paradigms), paradigmsLength(data.paradigmsLength),
   44|      1|        distances(data.distances) {
   45|      1|    data.partitions = nullptr;
   46|      1|    data.paradigms = nullptr;
   47|      1|}
_ZN6icu_7818LocaleDistanceDataD2Ev:
   49|      1|LocaleDistanceData::~LocaleDistanceData() {
   50|      1|    uprv_free(partitions);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   51|      1|    delete[] paradigms;
   52|      1|}
_ZN6icu_7813LikelySubtags17initLikelySubtagsER10UErrorCode:
  451|      1|void U_CALLCONV LikelySubtags::initLikelySubtags(UErrorCode &errorCode) {
  452|       |    // This function is invoked only via umtx_initOnce().
  453|      1|    U_ASSERT(gLikelySubtags == nullptr);
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
  454|      1|    LikelySubtagsData data(errorCode);
  455|      1|    data.load(errorCode);
  456|      1|    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (456:9): [True: 0, False: 1]
  ------------------
  457|      1|    gLikelySubtags = new LikelySubtags(data);
  458|      1|    gMacroregions = getStaticMacroregions(errorCode);
  459|       |#if U_DEBUG
  460|       |    auto macroregionsFromData = loadMacroregions(errorCode);
  461|       |    U_ASSERT((*gMacroregions) == (*macroregionsFromData));
  462|       |    delete macroregionsFromData;
  463|       |#endif
  464|      1|    if (U_FAILURE(errorCode) || gLikelySubtags == nullptr || gMacroregions == nullptr) {
  ------------------
  |  Branch (464:9): [True: 0, False: 1]
  |  Branch (464:33): [True: 0, False: 1]
  |  Branch (464:62): [True: 0, False: 1]
  ------------------
  465|      0|        delete gLikelySubtags;
  466|      0|        delete gMacroregions;
  467|      0|        errorCode = U_MEMORY_ALLOCATION_ERROR;
  468|      0|        return;
  469|      0|    }
  470|       |
  471|      1|    ucln_common_registerCleanup(UCLN_COMMON_LIKELY_SUBTAGS, 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  472|      1|}
_ZN6icu_7813LikelySubtags12getSingletonER10UErrorCode:
  474|  29.1k|const LikelySubtags *LikelySubtags::getSingleton(UErrorCode &errorCode) {
  475|  29.1k|    if (U_FAILURE(errorCode)) { return nullptr; }
  ------------------
  |  Branch (475:9): [True: 0, False: 29.1k]
  ------------------
  476|  29.1k|    umtx_initOnce(gInitOnce, &LikelySubtags::initLikelySubtags, errorCode);
  477|  29.1k|    return gLikelySubtags;
  478|  29.1k|}
_ZN6icu_7813LikelySubtagsC2ERNS_17LikelySubtagsDataE:
  481|      1|        langInfoBundle(data.langInfoBundle),
  482|      1|        strings(data.strings.orphanCharStrings()),
  483|      1|        languageAliases(std::move(data.languageAliases)),
  484|      1|        regionAliases(std::move(data.regionAliases)),
  485|      1|        trie(data.trieBytes),
  486|      1|        lsrs(data.lsrs),
  487|       |#if U_DEBUG
  488|       |        lsrsLength(data.lsrsLength),
  489|       |#endif // U_DEBUG
  490|      1|        distanceData(std::move(data.distanceData)) {
  491|      1|    data.langInfoBundle = nullptr;
  492|      1|    data.lsrs = nullptr;
  493|       |
  494|       |    // Cache the result of looking up language="und" encoded as "*", and "und-Zzzz" ("**").
  495|      1|    UStringTrieResult result = trie.next(u'*');
  496|      1|    U_ASSERT(USTRINGTRIE_HAS_NEXT(result));
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
  497|      1|    trieUndState = trie.getState64();
  498|      1|    result = trie.next(u'*');
  499|      1|    U_ASSERT(USTRINGTRIE_HAS_NEXT(result));
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
  500|      1|    trieUndZzzzState = trie.getState64();
  501|      1|    result = trie.next(u'*');
  502|      1|    U_ASSERT(USTRINGTRIE_HAS_VALUE(result));
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
  503|      1|    defaultLsrIndex = trie.getValue();
  504|      1|    trie.reset();
  505|       |
  506|     27|    for (char16_t c = u'a'; c <= u'z'; ++c) {
  ------------------
  |  Branch (506:29): [True: 26, False: 1]
  ------------------
  507|     26|        result = trie.next(c);
  508|     26|        if (result == USTRINGTRIE_NO_VALUE) {
  ------------------
  |  Branch (508:13): [True: 26, False: 0]
  ------------------
  509|     26|            trieFirstLetterStates[c - u'a'] = trie.getState64();
  510|     26|        }
  511|     26|        trie.reset();
  512|     26|    }
  513|      1|}
_ZNK6icu_7813LikelySubtags20makeMaximizedLsrFromERKNS_6LocaleEbR10UErrorCode:
  523|  20.0k|                                         UErrorCode &errorCode) const {
  524|  20.0k|    if (U_FAILURE(errorCode)) { return {}; }
  ------------------
  |  Branch (524:9): [True: 0, False: 20.0k]
  ------------------
  525|  20.0k|    if (locale.isBogus()) {
  ------------------
  |  Branch (525:9): [True: 0, False: 20.0k]
  ------------------
  526|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  527|      0|        return {};
  528|      0|    }
  529|  20.0k|    const char *name = locale.getName();
  530|  20.0k|    if (!returnInputIfUnmatch && uprv_isAtSign(name[0]) && name[1] == 'x' && name[2] == '=') {  // name.startsWith("@x=")
  ------------------
  |  |  133|  20.0k|#   define uprv_isAtSign(c) ((c)=='@')
  |  |  ------------------
  |  |  |  Branch (133:29): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (530:9): [True: 0, False: 20.0k]
  |  Branch (530:60): [True: 0, False: 0]
  |  Branch (530:78): [True: 0, False: 0]
  ------------------
  531|       |        // Private use language tag x-subtag-subtag... which CLDR changes to
  532|       |        // und-x-subtag-subtag...
  533|      0|        return LSR(name, "", "", LSR::EXPLICIT_LSR);
  534|      0|    }
  535|  20.0k|    LSR max = makeMaximizedLsr(locale.getLanguage(), locale.getScript(), locale.getCountry(),
  536|  20.0k|                            locale.getVariant(), returnInputIfUnmatch, errorCode);
  537|       |
  538|  20.0k|    if (uprv_strlen(max.language) == 0 &&
  ------------------
  |  |   37|  20.0k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  20.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (538:9): [True: 5.61k, False: 14.4k]
  ------------------
  539|  20.0k|        uprv_strlen(max.script) == 0 &&
  ------------------
  |  |   37|  5.61k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  5.61k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (539:9): [True: 5.61k, False: 0]
  ------------------
  540|  20.0k|        uprv_strlen(max.region) == 0) {
  ------------------
  |  |   37|  5.61k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  5.61k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (540:9): [True: 5.61k, False: 0]
  ------------------
  541|       |        // No match. ICU API mandate us to
  542|       |        // If the provided ULocale instance is already in the maximal form, or
  543|       |        // there is no data available available for maximization, it will be
  544|       |        // returned.
  545|  5.61k|        return LSR(locale.getLanguage(), locale.getScript(), locale.getCountry(), LSR::EXPLICIT_LSR, errorCode);
  546|  5.61k|    }
  547|  14.4k|    return max;
  548|  20.0k|}
_ZNK6icu_7813LikelySubtags16makeMaximizedLsrEPKcS2_S2_S2_bR10UErrorCode:
  562|  20.0k|                                     UErrorCode &errorCode) const {
  563|  20.0k|    if (U_FAILURE(errorCode)) { return {}; }
  ------------------
  |  Branch (563:9): [True: 0, False: 20.0k]
  ------------------
  564|       |    // Handle pseudolocales like en-XA, ar-XB, fr-PSCRACK.
  565|       |    // They should match only themselves,
  566|       |    // not other locales with what looks like the same language and script subtags.
  567|  20.0k|    if (!returnInputIfUnmatch) {
  ------------------
  |  Branch (567:9): [True: 0, False: 20.0k]
  ------------------
  568|      0|        char c1;
  569|      0|        if (region[0] == 'X' && (c1 = region[1]) != 0 && region[2] == 0) {
  ------------------
  |  Branch (569:13): [True: 0, False: 0]
  |  Branch (569:33): [True: 0, False: 0]
  |  Branch (569:58): [True: 0, False: 0]
  ------------------
  570|      0|            switch (c1) {
  571|      0|            case 'A':
  ------------------
  |  Branch (571:13): [True: 0, False: 0]
  ------------------
  572|      0|                return LSR(PSEUDO_ACCENTS_PREFIX, language, script, region,
  573|      0|                           LSR::EXPLICIT_LSR, errorCode);
  574|      0|            case 'B':
  ------------------
  |  Branch (574:13): [True: 0, False: 0]
  ------------------
  575|      0|                return LSR(PSEUDO_BIDI_PREFIX, language, script, region,
  576|      0|                           LSR::EXPLICIT_LSR, errorCode);
  577|      0|            case 'C':
  ------------------
  |  Branch (577:13): [True: 0, False: 0]
  ------------------
  578|      0|                return LSR(PSEUDO_CRACKED_PREFIX, language, script, region,
  579|      0|                           LSR::EXPLICIT_LSR, errorCode);
  580|      0|            default:  // normal locale
  ------------------
  |  Branch (580:13): [True: 0, False: 0]
  ------------------
  581|      0|                break;
  582|      0|            }
  583|      0|        }
  584|       |
  585|      0|        if (variant[0] == 'P' && variant[1] == 'S') {
  ------------------
  |  Branch (585:13): [True: 0, False: 0]
  |  Branch (585:34): [True: 0, False: 0]
  ------------------
  586|      0|            int32_t lsrFlags = *region == 0 ?
  ------------------
  |  Branch (586:32): [True: 0, False: 0]
  ------------------
  587|      0|                LSR::EXPLICIT_LANGUAGE | LSR::EXPLICIT_SCRIPT : LSR::EXPLICIT_LSR;
  588|      0|            if (uprv_strcmp(variant, "PSACCENT") == 0) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (588:17): [True: 0, False: 0]
  ------------------
  589|      0|                return LSR(PSEUDO_ACCENTS_PREFIX, language, script,
  590|      0|                           *region == 0 ? "XA" : region, lsrFlags, errorCode);
  ------------------
  |  Branch (590:28): [True: 0, False: 0]
  ------------------
  591|      0|            } else if (uprv_strcmp(variant, "PSBIDI") == 0) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (591:24): [True: 0, False: 0]
  ------------------
  592|      0|                return LSR(PSEUDO_BIDI_PREFIX, language, script,
  593|      0|                           *region == 0 ? "XB" : region, lsrFlags, errorCode);
  ------------------
  |  Branch (593:28): [True: 0, False: 0]
  ------------------
  594|      0|            } else if (uprv_strcmp(variant, "PSCRACK") == 0) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (594:24): [True: 0, False: 0]
  ------------------
  595|      0|                return LSR(PSEUDO_CRACKED_PREFIX, language, script,
  596|      0|                           *region == 0 ? "XC" : region, lsrFlags, errorCode);
  ------------------
  |  Branch (596:28): [True: 0, False: 0]
  ------------------
  597|      0|            }
  598|       |            // else normal locale
  599|      0|        }
  600|      0|    } // end of if (!returnInputIfUnmatch)
  601|       |
  602|  20.0k|    language = getCanonical(languageAliases, language);
  603|       |    // (We have no script mappings.)
  604|  20.0k|    region = getCanonical(regionAliases, region);
  605|  20.0k|    return maximize(language, script, region, returnInputIfUnmatch, errorCode);
  606|  20.0k|}
_ZNK6icu_7813LikelySubtags8maximizeEPKcS2_S2_bR10UErrorCode:
  610|  30.0k|                             UErrorCode &errorCode) const {
  611|  30.0k|    if (U_FAILURE(errorCode)) { return {}; }
  ------------------
  |  Branch (611:9): [True: 0, False: 30.0k]
  ------------------
  612|  30.0k|    return maximize({language, static_cast<int32_t>(uprv_strlen(language))},
  ------------------
  |  |   37|  30.0k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  30.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  613|  30.0k|                    {script, static_cast<int32_t>(uprv_strlen(script))},
  ------------------
  |  |   37|  30.0k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  30.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  614|  30.0k|                    {region, static_cast<int32_t>(uprv_strlen(region))},
  ------------------
  |  |   37|  30.0k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  30.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  615|  30.0k|                    returnInputIfUnmatch,
  616|  30.0k|                    errorCode);
  617|  30.0k|}
_ZNK6icu_7813LikelySubtags13isMacroregionERNS_11StringPieceER10UErrorCode:
  619|    390|bool LikelySubtags::isMacroregion(StringPiece& region, UErrorCode& errorCode) const {
  620|    390|    if (U_FAILURE(errorCode)) { return false; }
  ------------------
  |  Branch (620:9): [True: 0, False: 390]
  ------------------
  621|       |    // In Java, we use Region class. In C++, since Region is under i18n,
  622|       |    // we read the same data used by Region into gMacroregions avoid dependency
  623|       |    // from common to i18n/region.cpp
  624|    390|    umtx_initOnce(gInitOnce, &LikelySubtags::initLikelySubtags, errorCode);
  625|    390|    if (U_FAILURE(errorCode)) { return false; }
  ------------------
  |  Branch (625:9): [True: 0, False: 390]
  ------------------
  626|    390|    UnicodeString str(UnicodeString::fromUTF8(region));
  627|    390|    return gMacroregions->contains((void *)&str);
  628|    390|}
_ZNK6icu_7813LikelySubtags8maximizeENS_11StringPieceES1_S1_bR10UErrorCode:
  632|  39.0k|                             UErrorCode &errorCode) const {
  633|  39.0k|    if (U_FAILURE(errorCode)) { return {}; }
  ------------------
  |  Branch (633:9): [True: 0, False: 39.0k]
  ------------------
  634|  39.0k|    if (language.compare("und") == 0) {
  ------------------
  |  Branch (634:9): [True: 18, False: 39.0k]
  ------------------
  635|     18|        language = "";
  636|     18|    }
  637|  39.0k|    if (script.compare("Zzzz") == 0) {
  ------------------
  |  Branch (637:9): [True: 20, False: 39.0k]
  ------------------
  638|     20|        script = "";
  639|     20|    }
  640|  39.0k|    if (region.compare("ZZ") == 0) {
  ------------------
  |  Branch (640:9): [True: 30, False: 39.0k]
  ------------------
  641|     30|        region = "";
  642|     30|    }
  643|  39.0k|    if (!script.empty() && !region.empty() && !language.empty()) {
  ------------------
  |  Branch (643:9): [True: 3.18k, False: 35.9k]
  |  Branch (643:28): [True: 712, False: 2.46k]
  |  Branch (643:47): [True: 654, False: 58]
  ------------------
  644|    654|        return LSR(language, script, region, LSR::EXPLICIT_LSR, errorCode);  // already maximized
  645|    654|    }
  646|  38.4k|    bool retainLanguage = false;
  647|  38.4k|    bool retainScript = false;
  648|  38.4k|    bool retainRegion = false;
  649|       |
  650|  38.4k|    BytesTrie iter(trie);
  651|  38.4k|    uint64_t state;
  652|  38.4k|    int32_t value;
  653|       |    // Small optimization: Array lookup for first language letter.
  654|  38.4k|    int32_t c0;
  655|  38.4k|    if (0 <= (c0 = uprv_lowerOrdinal(language.data()[0])) && c0 <= 25 &&
  ------------------
  |  Branch (655:9): [True: 30.4k, False: 8.00k]
  |  Branch (655:62): [True: 30.4k, False: 34]
  ------------------
  656|  38.4k|            language.length() >= 2 &&
  ------------------
  |  Branch (656:13): [True: 29.5k, False: 884]
  ------------------
  657|  38.4k|            (state = trieFirstLetterStates[c0]) != 0) {
  ------------------
  |  Branch (657:13): [True: 29.5k, False: 0]
  ------------------
  658|  29.5k|        value = trieNext(iter.resetToState64(state), language, 1);
  659|  29.5k|    } else {
  660|  8.91k|        value = trieNext(iter, language, 0);
  661|  8.91k|    }
  662|  38.4k|    bool matchLanguage = (value >= 0);
  663|  38.4k|    bool matchScript = false;
  664|  38.4k|    if (value >= 0) {
  ------------------
  |  Branch (664:9): [True: 30.7k, False: 7.73k]
  ------------------
  665|  30.7k|        retainLanguage = !language.empty();
  666|  30.7k|        state = iter.getState64();
  667|  30.7k|    } else {
  668|  7.73k|        retainLanguage = true;
  669|  7.73k|        iter.resetToState64(trieUndState);  // "und" ("*")
  670|  7.73k|        state = 0;
  671|  7.73k|    }
  672|       |
  673|  38.4k|    if (value >= 0 && !script.empty()) {
  ------------------
  |  Branch (673:9): [True: 30.7k, False: 7.73k]
  |  Branch (673:23): [True: 2.44k, False: 28.2k]
  ------------------
  674|  2.44k|        matchScript = true;
  675|  2.44k|    }
  676|  38.4k|    if (value > 0) {
  ------------------
  |  Branch (676:9): [True: 17.8k, False: 20.5k]
  ------------------
  677|       |        // Intermediate or final value from just language.
  678|  17.8k|        if (value == SKIP_SCRIPT) {
  ------------------
  |  Branch (678:13): [True: 464, False: 17.4k]
  ------------------
  679|    464|            value = 0;
  680|    464|        }
  681|  17.8k|        retainScript = !script.empty();
  682|  20.5k|    } else {
  683|  20.5k|        value = trieNext(iter, script, 0);
  684|  20.5k|        if (value >= 0) {
  ------------------
  |  Branch (684:13): [True: 19.6k, False: 958]
  ------------------
  685|  19.6k|            retainScript = !script.empty();
  686|  19.6k|            state = iter.getState64();
  687|  19.6k|        } else {
  688|    958|            retainScript = true;
  689|    958|            if (state == 0) {
  ------------------
  |  Branch (689:17): [True: 60, False: 898]
  ------------------
  690|     60|                iter.resetToState64(trieUndZzzzState);  // "und-Zzzz" ("**")
  691|    898|            } else {
  692|    898|                iter.resetToState64(state);
  693|    898|                value = trieNext(iter, "", 0);
  694|    898|                U_ASSERT(value >= 0);
  ------------------
  |  |   35|    898|#   define U_ASSERT(exp) (void)0
  ------------------
  695|    898|                state = iter.getState64();
  696|    898|            }
  697|    958|        }
  698|  20.5k|    }
  699|       |
  700|  38.4k|    bool matchRegion = false;
  701|  38.4k|    if (value > 0) {
  ------------------
  |  Branch (701:9): [True: 22.1k, False: 16.2k]
  ------------------
  702|       |        // Final value from just language or language+script.
  703|  22.1k|        retainRegion = !region.empty();
  704|  22.1k|    } else {
  705|  16.2k|        value = trieNext(iter, region, 0);
  706|  16.2k|        if (value >= 0) {
  ------------------
  |  Branch (706:13): [True: 15.2k, False: 975]
  ------------------
  707|  15.2k|            if (!region.empty() && !isMacroregion(region, errorCode)) {
  ------------------
  |  Branch (707:17): [True: 390, False: 14.8k]
  |  Branch (707:36): [True: 384, False: 6]
  ------------------
  708|    384|                retainRegion = true;
  709|    384|                matchRegion = true;
  710|    384|            }
  711|  15.2k|        } else {
  712|    975|            retainRegion = true;
  713|    975|            if (state == 0) {
  ------------------
  |  Branch (713:17): [True: 0, False: 975]
  ------------------
  714|      0|                value = defaultLsrIndex;
  715|    975|            } else {
  716|    975|                iter.resetToState64(state);
  717|    975|                value = trieNext(iter, "", 0);
  718|    975|                U_ASSERT(value != 0);
  ------------------
  |  |   35|    975|#   define U_ASSERT(exp) (void)0
  ------------------
  719|       |                // For the case of und_Latn
  720|    975|                if (value < 0) {
  ------------------
  |  Branch (720:21): [True: 39, False: 936]
  ------------------
  721|     39|                    retainLanguage = !language.empty();
  722|     39|                    retainScript = !script.empty();
  723|     39|                    retainRegion = !region.empty();
  724|       |                    // Fallback to und_$region =>
  725|     39|                    iter.resetToState64(trieUndState);  // "und" ("*")
  726|     39|                    value = trieNext(iter, "", 0);
  727|     39|                    U_ASSERT(value == 0);
  ------------------
  |  |   35|     39|#   define U_ASSERT(exp) (void)0
  ------------------
  728|     39|                    int64_t trieUndEmptyState = iter.getState64();
  729|     39|                    value = trieNext(iter, region, 0);
  730|       |                    // Fallback to und =>
  731|     39|                    if (value < 0) {
  ------------------
  |  Branch (731:25): [True: 27, False: 12]
  ------------------
  732|     27|                        iter.resetToState64(trieUndEmptyState);
  733|     27|                        value = trieNext(iter, "", 0);
  734|     27|                        U_ASSERT(value > 0);
  ------------------
  |  |   35|     27|#   define U_ASSERT(exp) (void)0
  ------------------
  735|     27|                    }
  736|     39|                }
  737|    975|            }
  738|    975|        }
  739|  16.2k|    }
  740|  38.4k|    U_ASSERT(value < lsrsLength);
  ------------------
  |  |   35|  38.4k|#   define U_ASSERT(exp) (void)0
  ------------------
  741|  38.4k|    if (returnInputIfUnmatch &&
  ------------------
  |  Branch (741:9): [True: 38.4k, False: 0]
  ------------------
  742|  38.4k|        (!(matchLanguage || matchScript || (matchRegion && language.empty())))) {
  ------------------
  |  Branch (742:12): [True: 30.7k, False: 7.73k]
  |  Branch (742:29): [True: 0, False: 7.73k]
  |  Branch (742:45): [True: 111, False: 7.62k]
  |  Branch (742:60): [True: 0, False: 111]
  ------------------
  743|  7.73k|      return LSR("", "", "", LSR::EXPLICIT_LSR, errorCode);  // no matching.
  744|  7.73k|    }
  745|  30.7k|    if (language.empty()) {
  ------------------
  |  Branch (745:9): [True: 6.00k, False: 24.7k]
  ------------------
  746|  6.00k|        language = StringPiece("und");
  747|  6.00k|    }
  748|       |
  749|  30.7k|    if (!(retainLanguage || retainScript || retainRegion)) {
  ------------------
  |  Branch (749:11): [True: 24.7k, False: 6.00k]
  |  Branch (749:29): [True: 262, False: 5.74k]
  |  Branch (749:45): [True: 459, False: 5.28k]
  ------------------
  750|  5.28k|        U_ASSERT(value >= 0);
  ------------------
  |  |   35|  5.28k|#   define U_ASSERT(exp) (void)0
  ------------------
  751|       |        // Quickly return a copy of the lookup-result LSR
  752|       |        // without new allocation of the subtags.
  753|  5.28k|        const LSR &matched = lsrs[value];
  754|  5.28k|        return LSR(matched.language, matched.script, matched.region, matched.flags);
  755|  5.28k|    }
  756|  25.4k|    if (!retainLanguage) {
  ------------------
  |  Branch (756:9): [True: 721, False: 24.7k]
  ------------------
  757|    721|        U_ASSERT(value >= 0);
  ------------------
  |  |   35|    721|#   define U_ASSERT(exp) (void)0
  ------------------
  758|    721|        language = lsrs[value].language;
  759|    721|    }
  760|  25.4k|    if (!retainScript) {
  ------------------
  |  Branch (760:9): [True: 22.9k, False: 2.44k]
  ------------------
  761|  22.9k|        U_ASSERT(value >= 0);
  ------------------
  |  |   35|  22.9k|#   define U_ASSERT(exp) (void)0
  ------------------
  762|  22.9k|        script = lsrs[value].script;
  763|  22.9k|    }
  764|  25.4k|    if (!retainRegion) {
  ------------------
  |  Branch (764:9): [True: 19.4k, False: 5.98k]
  ------------------
  765|  19.4k|        U_ASSERT(value >= 0);
  ------------------
  |  |   35|  19.4k|#   define U_ASSERT(exp) (void)0
  ------------------
  766|  19.4k|        region = lsrs[value].region;
  767|  19.4k|    }
  768|  25.4k|    int32_t retainMask = (retainLanguage ? 4 : 0) + (retainScript ? 2 : 0) + (retainRegion ? 1 : 0);
  ------------------
  |  Branch (768:27): [True: 24.7k, False: 721]
  |  Branch (768:54): [True: 2.44k, False: 22.9k]
  |  Branch (768:79): [True: 5.98k, False: 19.4k]
  ------------------
  769|       |    // retainOldMask flags = LSR explicit-subtag flags
  770|  25.4k|    return LSR(language, script, region, retainMask, errorCode);
  771|  30.7k|}
_ZN6icu_7813LikelySubtags8trieNextERNS_9BytesTrieEPKci:
  873|  1.93k|int32_t LikelySubtags::trieNext(BytesTrie &iter, const char *s, int32_t i) {
  874|  1.93k|    UStringTrieResult result;
  875|  1.93k|    uint8_t c;
  876|  1.93k|    if ((c = s[i]) == 0) {
  ------------------
  |  Branch (876:9): [True: 1.93k, False: 0]
  ------------------
  877|  1.93k|        result = iter.next(u'*');
  878|  1.93k|    } else {
  879|      0|        for (;;) {
  880|      0|            c = uprv_invCharToAscii(c);
  ------------------
  |  |  173|      0|#   define uprv_invCharToAscii(c) (c)
  ------------------
  881|       |            // EBCDIC: If s[i] is not an invariant character,
  882|       |            // then c is now 0 and will simply not match anything, which is harmless.
  883|      0|            uint8_t next = s[++i];
  884|      0|            if (next != 0) {
  ------------------
  |  Branch (884:17): [True: 0, False: 0]
  ------------------
  885|      0|                if (!USTRINGTRIE_HAS_NEXT(iter.next(c))) {
  ------------------
  |  |   95|      0|#define USTRINGTRIE_HAS_NEXT(result) ((result)&1)
  ------------------
  |  Branch (885:21): [True: 0, False: 0]
  ------------------
  886|      0|                    return -1;
  887|      0|                }
  888|      0|            } else {
  889|       |                // last character of this subtag
  890|      0|                result = iter.next(c | 0x80);
  891|      0|                break;
  892|      0|            }
  893|      0|            c = next;
  894|      0|        }
  895|      0|    }
  896|  1.93k|    switch (result) {
  897|     39|    case USTRINGTRIE_NO_MATCH: return -1;
  ------------------
  |  Branch (897:5): [True: 39, False: 1.90k]
  ------------------
  898|    805|    case USTRINGTRIE_NO_VALUE: return 0;
  ------------------
  |  Branch (898:5): [True: 805, False: 1.13k]
  ------------------
  899|      0|    case USTRINGTRIE_INTERMEDIATE_VALUE:
  ------------------
  |  Branch (899:5): [True: 0, False: 1.93k]
  ------------------
  900|      0|        U_ASSERT(iter.getValue() == SKIP_SCRIPT);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
  901|      0|        return SKIP_SCRIPT;
  902|  1.09k|    case USTRINGTRIE_FINAL_VALUE: return iter.getValue();
  ------------------
  |  Branch (902:5): [True: 1.09k, False: 844]
  ------------------
  903|      0|    default: return -1;
  ------------------
  |  Branch (903:5): [True: 0, False: 1.93k]
  ------------------
  904|  1.93k|    }
  905|  1.93k|}
_ZN6icu_7813LikelySubtags8trieNextERNS_9BytesTrieENS_11StringPieceEi:
  906|  75.3k|int32_t LikelySubtags::trieNext(BytesTrie &iter, StringPiece s, int32_t i) {
  907|  75.3k|    UStringTrieResult result;
  908|  75.3k|    uint8_t c;
  909|  75.3k|    if (s.length() == i) {
  ------------------
  |  Branch (909:9): [True: 39.8k, False: 35.4k]
  ------------------
  910|  39.8k|        result = iter.next(u'*');
  911|  39.8k|    } else {
  912|  35.4k|        c = s.data()[i];
  913|  48.5k|        for (;;) {
  914|  48.5k|            c = uprv_invCharToAscii(c);
  ------------------
  |  |  173|  48.5k|#   define uprv_invCharToAscii(c) (c)
  ------------------
  915|       |            // EBCDIC: If s[i] is not an invariant character,
  916|       |            // then c is now 0 and will simply not match anything, which is harmless.
  917|  48.5k|            if (i+1 != s.length()) {
  ------------------
  |  Branch (917:17): [True: 17.9k, False: 30.5k]
  ------------------
  918|  17.9k|                if (!USTRINGTRIE_HAS_NEXT(iter.next(c))) {
  ------------------
  |  |   95|  17.9k|#define USTRINGTRIE_HAS_NEXT(result) ((result)&1)
  ------------------
  |  Branch (918:21): [True: 4.86k, False: 13.1k]
  ------------------
  919|  4.86k|                    return -1;
  920|  4.86k|                }
  921|  13.1k|                c = s.data()[++i];
  922|  30.5k|            } else {
  923|       |                // last character of this subtag
  924|  30.5k|                result = iter.next(c | 0x80);
  925|  30.5k|                break;
  926|  30.5k|            }
  927|  48.5k|        }
  928|  35.4k|    }
  929|  70.4k|    switch (result) {
  930|  4.83k|    case USTRINGTRIE_NO_MATCH: return -1;
  ------------------
  |  Branch (930:5): [True: 4.83k, False: 65.6k]
  ------------------
  931|  27.8k|    case USTRINGTRIE_NO_VALUE: return 0;
  ------------------
  |  Branch (931:5): [True: 27.8k, False: 42.6k]
  ------------------
  932|    464|    case USTRINGTRIE_INTERMEDIATE_VALUE:
  ------------------
  |  Branch (932:5): [True: 464, False: 69.9k]
  ------------------
  933|    464|        U_ASSERT(iter.getValue() == SKIP_SCRIPT);
  ------------------
  |  |   35|    464|#   define U_ASSERT(exp) (void)0
  ------------------
  934|    464|        return SKIP_SCRIPT;
  935|  37.3k|    case USTRINGTRIE_FINAL_VALUE: return iter.getValue();
  ------------------
  |  Branch (935:5): [True: 37.3k, False: 33.0k]
  ------------------
  936|      0|    default: return -1;
  ------------------
  |  Branch (936:5): [True: 0, False: 70.4k]
  ------------------
  937|  70.4k|    }
  938|  70.4k|}
_ZNK6icu_7813LikelySubtags15minimizeSubtagsENS_11StringPieceES1_S1_bR10UErrorCode:
  943|  9.07k|                                    UErrorCode &errorCode) const {
  944|  9.07k|    if (U_FAILURE(errorCode)) { return {}; }
  ------------------
  |  Branch (944:9): [True: 0, False: 9.07k]
  ------------------
  945|  9.07k|    LSR max = maximize(language, script, region, true, errorCode);
  946|  9.07k|    if (U_FAILURE(errorCode)) { return {}; }
  ------------------
  |  Branch (946:9): [True: 0, False: 9.07k]
  ------------------
  947|       |    // If no match, return it.
  948|  9.07k|    if (uprv_strlen(max.language) == 0 &&
  ------------------
  |  |   37|  9.07k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  9.07k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (948:9): [True: 2.08k, False: 6.98k]
  ------------------
  949|  9.07k|        uprv_strlen(max.script) == 0 &&
  ------------------
  |  |   37|  2.08k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  2.08k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (949:9): [True: 2.08k, False: 0]
  ------------------
  950|  9.07k|        uprv_strlen(max.region) == 0) {
  ------------------
  |  |   37|  2.08k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  2.08k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (950:9): [True: 2.08k, False: 0]
  ------------------
  951|       |        // No match. ICU API mandate us to
  952|       |        // "If this Locale is already in the minimal form, or not valid, or
  953|       |        // there is no data available for minimization, the Locale will be
  954|       |        // unchanged."
  955|  2.08k|        return LSR(language, script, region, LSR::EXPLICIT_LSR, errorCode);
  956|  2.08k|    }
  957|       |    // try language
  958|  6.98k|    LSR test = maximize(max.language, "", "", true, errorCode);
  959|  6.98k|    if (U_FAILURE(errorCode)) { return {}; }
  ------------------
  |  Branch (959:9): [True: 0, False: 6.98k]
  ------------------
  960|  6.98k|    if (test.isEquivalentTo(max)) {
  ------------------
  |  Branch (960:9): [True: 4.38k, False: 2.60k]
  ------------------
  961|  4.38k|        return LSR(max.language, "", "", LSR::DONT_CARE_FLAGS, errorCode);
  962|  4.38k|    }
  963|       |
  964|  2.60k|    if (!favorScript) {
  ------------------
  |  Branch (964:9): [True: 2.60k, False: 0]
  ------------------
  965|       |        // favor Region
  966|       |        // try language and region
  967|  2.60k|        test = maximize(max.language, "", max.region, true, errorCode);
  968|  2.60k|        if (U_FAILURE(errorCode)) { return {}; }
  ------------------
  |  Branch (968:13): [True: 0, False: 2.60k]
  ------------------
  969|  2.60k|        if (test.isEquivalentTo(max)) {
  ------------------
  |  Branch (969:13): [True: 2.26k, False: 342]
  ------------------
  970|  2.26k|            return LSR(max.language, "", max.region, LSR::DONT_CARE_FLAGS, errorCode);
  971|  2.26k|        }
  972|  2.60k|    }
  973|       |    // try language and script
  974|    342|    test = maximize(max.language, max.script, "", true, errorCode);
  975|    342|    if (U_FAILURE(errorCode)) { return {}; }
  ------------------
  |  Branch (975:9): [True: 0, False: 342]
  ------------------
  976|    342|    if (test.isEquivalentTo(max)) {
  ------------------
  |  Branch (976:9): [True: 207, False: 135]
  ------------------
  977|    207|        return LSR(max.language, max.script, "", LSR::DONT_CARE_FLAGS, errorCode);
  978|    207|    }
  979|    135|    if (favorScript) {
  ------------------
  |  Branch (979:9): [True: 0, False: 135]
  ------------------
  980|       |        // try language and region
  981|      0|        test = maximize(max.language, "", max.region, true, errorCode);
  982|      0|        if (U_FAILURE(errorCode)) { return {}; }
  ------------------
  |  Branch (982:13): [True: 0, False: 0]
  ------------------
  983|      0|        if (test.isEquivalentTo(max)) {
  ------------------
  |  Branch (983:13): [True: 0, False: 0]
  ------------------
  984|      0|            return LSR(max.language, "", max.region, LSR::DONT_CARE_FLAGS, errorCode);
  985|      0|        }
  986|      0|    }
  987|    135|    return LSR(max.language, max.script, max.region, LSR::DONT_CARE_FLAGS, errorCode);
  988|    135|}
_ZN6icu_7817LikelySubtagsDataC2ER10UErrorCode:
   65|      1|    LikelySubtagsData(UErrorCode &errorCode) : strings(errorCode) {}
_ZN6icu_7817LikelySubtagsData4loadER10UErrorCode:
   72|      1|    void load(UErrorCode &errorCode) {
   73|      1|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (73:13): [True: 0, False: 1]
  ------------------
   74|      1|        langInfoBundle = ures_openDirect(nullptr, "langInfo", &errorCode);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   75|      1|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (75:13): [True: 0, False: 1]
  ------------------
   76|      1|        StackUResourceBundle stackTempBundle;
   77|      1|        ResourceDataValue value;
   78|      1|        ures_getValueWithFallback(langInfoBundle, "likely", stackTempBundle.getAlias(),
  ------------------
  |  | 1684|      1|#define ures_getValueWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getValueWithFallback)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   79|      1|                                  value, errorCode);
   80|      1|        ResourceTable likelyTable = value.getTable(errorCode);
   81|      1|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (81:13): [True: 0, False: 1]
  ------------------
   82|       |
   83|       |        // Read all strings in the resource bundle and convert them to invariant char *.
   84|      1|        LocalMemory<int32_t> languageIndexes, regionIndexes, lsrSubtagIndexes;
   85|      1|        int32_t languagesLength = 0, regionsLength = 0, lsrSubtagsLength = 0;
   86|      1|        ResourceArray m49Array;
   87|      1|        if (likelyTable.findValue("m49", value)) {
  ------------------
  |  Branch (87:13): [True: 1, False: 0]
  ------------------
   88|      1|            m49Array = value.getArray(errorCode);
   89|      1|        } else {
   90|      0|            errorCode = U_MISSING_RESOURCE_ERROR;
   91|      0|            return;
   92|      0|        }
   93|      1|        if (!readStrings(likelyTable, "languageAliases", value,
  ------------------
  |  Branch (93:13): [True: 0, False: 1]
  ------------------
   94|      1|                         languageIndexes, languagesLength, errorCode) ||
   95|      1|                !readStrings(likelyTable, "regionAliases", value,
  ------------------
  |  Branch (95:17): [True: 0, False: 1]
  ------------------
   96|      1|                             regionIndexes, regionsLength, errorCode) ||
   97|      1|                !readLSREncodedStrings(likelyTable, "lsrnum", value, m49Array,
  ------------------
  |  Branch (97:17): [True: 0, False: 1]
  ------------------
   98|      1|                             lsrSubtagIndexes,lsrSubtagsLength, errorCode)) {
   99|      0|            return;
  100|      0|        }
  101|      1|        if ((languagesLength & 1) != 0 ||
  ------------------
  |  Branch (101:13): [True: 0, False: 1]
  ------------------
  102|      1|                (regionsLength & 1) != 0 ||
  ------------------
  |  Branch (102:17): [True: 0, False: 1]
  ------------------
  103|      1|                (lsrSubtagsLength % 3) != 0) {
  ------------------
  |  Branch (103:17): [True: 0, False: 1]
  ------------------
  104|      0|            errorCode = U_INVALID_FORMAT_ERROR;
  105|      0|            return;
  106|      0|        }
  107|      1|        if (lsrSubtagsLength == 0) {
  ------------------
  |  Branch (107:13): [True: 0, False: 1]
  ------------------
  108|      0|            errorCode = U_MISSING_RESOURCE_ERROR;
  109|      0|            return;
  110|      0|        }
  111|       |
  112|      1|        if (!likelyTable.findValue("trie", value)) {
  ------------------
  |  Branch (112:13): [True: 0, False: 1]
  ------------------
  113|      0|            errorCode = U_MISSING_RESOURCE_ERROR;
  114|      0|            return;
  115|      0|        }
  116|      1|        int32_t length;
  117|      1|        trieBytes = value.getBinary(length, errorCode);
  118|      1|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (118:13): [True: 0, False: 1]
  ------------------
  119|       |
  120|       |        // Also read distance/matcher data if available,
  121|       |        // to open & keep only one resource bundle pointer
  122|       |        // and to use one single UniqueCharStrings.
  123|      1|        UErrorCode matchErrorCode = U_ZERO_ERROR;
  124|      1|        ures_getValueWithFallback(langInfoBundle, "match", stackTempBundle.getAlias(),
  ------------------
  |  | 1684|      1|#define ures_getValueWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getValueWithFallback)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  125|      1|                                  value, matchErrorCode);
  126|      1|        LocalMemory<int32_t> partitionIndexes, paradigmSubtagIndexes;
  127|      1|        int32_t partitionsLength = 0, paradigmSubtagsLength = 0;
  128|      1|        if (U_SUCCESS(matchErrorCode)) {
  ------------------
  |  Branch (128:13): [True: 1, False: 0]
  ------------------
  129|      1|            ResourceTable matchTable = value.getTable(errorCode);
  130|      1|            if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (130:17): [True: 0, False: 1]
  ------------------
  131|       |
  132|      1|            if (matchTable.findValue("trie", value)) {
  ------------------
  |  Branch (132:17): [True: 1, False: 0]
  ------------------
  133|      1|                distanceData.distanceTrieBytes = value.getBinary(length, errorCode);
  134|      1|                if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (134:21): [True: 0, False: 1]
  ------------------
  135|      1|            }
  136|       |
  137|      1|            if (matchTable.findValue("regionToPartitions", value)) {
  ------------------
  |  Branch (137:17): [True: 1, False: 0]
  ------------------
  138|      1|                distanceData.regionToPartitions = value.getBinary(length, errorCode);
  139|      1|                if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (139:21): [True: 0, False: 1]
  ------------------
  140|      1|                if (length < LSR::REGION_INDEX_LIMIT) {
  ------------------
  |  Branch (140:21): [True: 0, False: 1]
  ------------------
  141|      0|                    errorCode = U_INVALID_FORMAT_ERROR;
  142|      0|                    return;
  143|      0|                }
  144|      1|            }
  145|       |
  146|      1|            if (!readStrings(matchTable, "partitions", value,
  ------------------
  |  Branch (146:17): [True: 0, False: 1]
  ------------------
  147|      1|                             partitionIndexes, partitionsLength, errorCode) ||
  148|      1|                    !readLSREncodedStrings(matchTable, "paradigmnum", value, m49Array,
  ------------------
  |  Branch (148:21): [True: 0, False: 1]
  ------------------
  149|      1|                                 paradigmSubtagIndexes, paradigmSubtagsLength, errorCode)) {
  150|      0|                return;
  151|      0|            }
  152|      1|            if ((paradigmSubtagsLength % 3) != 0) {
  ------------------
  |  Branch (152:17): [True: 0, False: 1]
  ------------------
  153|      0|                errorCode = U_INVALID_FORMAT_ERROR;
  154|      0|                return;
  155|      0|            }
  156|       |
  157|      1|            if (matchTable.findValue("distances", value)) {
  ------------------
  |  Branch (157:17): [True: 1, False: 0]
  ------------------
  158|      1|                distanceData.distances = value.getIntVector(length, errorCode);
  159|      1|                if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (159:21): [True: 0, False: 1]
  ------------------
  160|      1|                if (length < 4) {  // LocaleDistance IX_LIMIT
  ------------------
  |  Branch (160:21): [True: 0, False: 1]
  ------------------
  161|      0|                    errorCode = U_INVALID_FORMAT_ERROR;
  162|      0|                    return;
  163|      0|                }
  164|      1|            }
  165|      1|        } else if (matchErrorCode == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (165:20): [True: 0, False: 0]
  ------------------
  166|       |            // ok for likely subtags
  167|      0|        } else {  // error other than missing resource
  168|      0|            errorCode = matchErrorCode;
  169|      0|            return;
  170|      0|        }
  171|       |
  172|       |        // Fetch & store invariant-character versions of strings
  173|       |        // only after we have collected and de-duplicated all of them.
  174|      1|        strings.freeze();
  175|       |
  176|      1|        languageAliases = CharStringMap(languagesLength / 2, errorCode);
  177|    244|        for (int32_t i = 0; i < languagesLength; i += 2) {
  ------------------
  |  Branch (177:29): [True: 243, False: 1]
  ------------------
  178|    243|            languageAliases.put(strings.get(languageIndexes[i]),
  179|    243|                                strings.get(languageIndexes[i + 1]), errorCode);
  180|    243|        }
  181|       |
  182|      1|        regionAliases = CharStringMap(regionsLength / 2, errorCode);
  183|     39|        for (int32_t i = 0; i < regionsLength; i += 2) {
  ------------------
  |  Branch (183:29): [True: 38, False: 1]
  ------------------
  184|     38|            regionAliases.put(strings.get(regionIndexes[i]),
  185|     38|                              strings.get(regionIndexes[i + 1]), errorCode);
  186|     38|        }
  187|      1|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (187:13): [True: 0, False: 1]
  ------------------
  188|       |
  189|      1|        lsrsLength = lsrSubtagsLength / 3;
  190|      1|        lsrs = new LSR[lsrsLength];
  191|      1|        if (lsrs == nullptr) {
  ------------------
  |  Branch (191:13): [True: 0, False: 1]
  ------------------
  192|      0|            errorCode = U_MEMORY_ALLOCATION_ERROR;
  193|      0|            return;
  194|      0|        }
  195|  7.50k|        for (int32_t i = 0, j = 0; i < lsrSubtagsLength; i += 3, ++j) {
  ------------------
  |  Branch (195:36): [True: 7.49k, False: 1]
  ------------------
  196|  7.49k|            lsrs[j] = LSR(strings.get(lsrSubtagIndexes[i]),
  197|  7.49k|                          strings.get(lsrSubtagIndexes[i + 1]),
  198|  7.49k|                          strings.get(lsrSubtagIndexes[i + 2]),
  199|  7.49k|                          LSR::IMPLICIT_LSR);
  200|  7.49k|        }
  201|       |
  202|      1|        if (partitionsLength > 0) {
  ------------------
  |  Branch (202:13): [True: 1, False: 0]
  ------------------
  203|      1|            distanceData.partitions = static_cast<const char **>(
  204|      1|                uprv_malloc(partitionsLength * sizeof(const char *)));
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  205|      1|            if (distanceData.partitions == nullptr) {
  ------------------
  |  Branch (205:17): [True: 0, False: 1]
  ------------------
  206|      0|                errorCode = U_MEMORY_ALLOCATION_ERROR;
  207|      0|                return;
  208|      0|            }
  209|     17|            for (int32_t i = 0; i < partitionsLength; ++i) {
  ------------------
  |  Branch (209:33): [True: 16, False: 1]
  ------------------
  210|     16|                distanceData.partitions[i] = strings.get(partitionIndexes[i]);
  211|     16|            }
  212|      1|        }
  213|       |
  214|      1|        if (paradigmSubtagsLength > 0) {
  ------------------
  |  Branch (214:13): [True: 1, False: 0]
  ------------------
  215|      1|            distanceData.paradigmsLength = paradigmSubtagsLength / 3;
  216|      1|            LSR *paradigms = new LSR[distanceData.paradigmsLength];
  217|      1|            if (paradigms == nullptr) {
  ------------------
  |  Branch (217:17): [True: 0, False: 1]
  ------------------
  218|      0|                errorCode = U_MEMORY_ALLOCATION_ERROR;
  219|      0|                return;
  220|      0|            }
  221|      7|            for (int32_t i = 0, j = 0; i < paradigmSubtagsLength; i += 3, ++j) {
  ------------------
  |  Branch (221:40): [True: 6, False: 1]
  ------------------
  222|      6|                paradigms[j] = LSR(strings.get(paradigmSubtagIndexes[i]),
  223|      6|                                   strings.get(paradigmSubtagIndexes[i + 1]),
  224|      6|                                   strings.get(paradigmSubtagIndexes[i + 2]),
  225|      6|                                   LSR::DONT_CARE_FLAGS);
  226|      6|            }
  227|      1|            distanceData.paradigms = paradigms;
  228|      1|        }
  229|      1|    }
_ZN6icu_7817LikelySubtagsData11readStringsERKNS_13ResourceTableEPKcRNS_13ResourceValueERNS_11LocalMemoryIiEERiR10UErrorCode:
  233|      3|                     LocalMemory<int32_t> &indexes, int32_t &length, UErrorCode &errorCode) {
  234|      3|        if (U_FAILURE(errorCode)) { return false; }
  ------------------
  |  Branch (234:13): [True: 0, False: 3]
  ------------------
  235|      3|        if (table.findValue(key, value)) {
  ------------------
  |  Branch (235:13): [True: 3, False: 0]
  ------------------
  236|      3|            ResourceArray stringArray = value.getArray(errorCode);
  237|      3|            if (U_FAILURE(errorCode)) { return false; }
  ------------------
  |  Branch (237:17): [True: 0, False: 3]
  ------------------
  238|      3|            length = stringArray.getSize();
  239|      3|            if (length == 0) { return true; }
  ------------------
  |  Branch (239:17): [True: 0, False: 3]
  ------------------
  240|      3|            int32_t *rawIndexes = indexes.allocateInsteadAndCopy(length);
  241|      3|            if (rawIndexes == nullptr) {
  ------------------
  |  Branch (241:17): [True: 0, False: 3]
  ------------------
  242|      0|                errorCode = U_MEMORY_ALLOCATION_ERROR;
  243|      0|                return false;
  244|      0|            }
  245|    581|            for (int i = 0; i < length; ++i) {
  ------------------
  |  Branch (245:29): [True: 578, False: 3]
  ------------------
  246|    578|                if (stringArray.getValue(i, value)) {  // returns true because i < length
  ------------------
  |  Branch (246:21): [True: 578, False: 0]
  ------------------
  247|    578|                    int32_t strLength = 0;
  248|    578|                    rawIndexes[i] = strings.add(value.getString(strLength, errorCode), errorCode);
  249|    578|                    if (U_FAILURE(errorCode)) { return false; }
  ------------------
  |  Branch (249:25): [True: 0, False: 578]
  ------------------
  250|    578|                }
  251|    578|            }
  252|      3|        }
  253|      3|        return true;
  254|      3|    }
_ZN6icu_7817LikelySubtagsData21readLSREncodedStringsERKNS_13ResourceTableEPKcRNS_13ResourceValueERKNS_13ResourceArrayERNS_11LocalMemoryIiEERiR10UErrorCode:
  318|      2|                     LocalMemory<int32_t> &indexes, int32_t &length, UErrorCode &errorCode) {
  319|      2|        if (U_FAILURE(errorCode)) { return false; }
  ------------------
  |  Branch (319:13): [True: 0, False: 2]
  ------------------
  320|      2|        if (table.findValue(key, value)) {
  ------------------
  |  Branch (320:13): [True: 2, False: 0]
  ------------------
  321|      2|            const int32_t* vectors = value.getIntVector(length, errorCode);
  322|      2|            if (U_FAILURE(errorCode)) { return false; }
  ------------------
  |  Branch (322:17): [True: 0, False: 2]
  ------------------
  323|      2|            if (length == 0) { return true; }
  ------------------
  |  Branch (323:17): [True: 0, False: 2]
  ------------------
  324|      2|            int32_t *rawIndexes = indexes.allocateInsteadAndCopy(length * 3);
  325|      2|            if (rawIndexes == nullptr) {
  ------------------
  |  Branch (325:17): [True: 0, False: 2]
  ------------------
  326|      0|                errorCode = U_MEMORY_ALLOCATION_ERROR;
  327|      0|                return false;
  328|      0|            }
  329|  7.50k|            for (int i = 0; i < length; ++i) {
  ------------------
  |  Branch (329:29): [True: 7.50k, False: 2]
  ------------------
  330|  7.50k|                rawIndexes[i*3] = strings.addByValue(toLanguage(vectors[i]), errorCode);
  331|  7.50k|                rawIndexes[i*3+1] = strings.addByValue(toScript(vectors[i]), errorCode);
  332|  7.50k|                rawIndexes[i*3+2] = strings.addByValue(
  333|  7.50k|                    toRegion(m49Array, value, vectors[i], errorCode), errorCode);
  334|  7.50k|                if (U_FAILURE(errorCode)) { return false; }
  ------------------
  |  Branch (334:21): [True: 0, False: 7.50k]
  ------------------
  335|  7.50k|            }
  336|      2|            length *= 3;
  337|      2|        }
  338|      2|        return true;
  339|      2|    }
_ZN6icu_7817LikelySubtagsData10toLanguageEi:
  255|  7.50k|    UnicodeString toLanguage(int encoded) {
  256|  7.50k|        if (encoded == 0) {
  ------------------
  |  Branch (256:13): [True: 1, False: 7.50k]
  ------------------
  257|      1|            return UNICODE_STRING_SIMPLE("");
  ------------------
  |  |  135|      1|#define UNICODE_STRING_SIMPLE(cs) UNICODE_STRING(cs, -1)
  |  |  ------------------
  |  |  |  |  121|      1|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  |  |  ------------------
  ------------------
  258|      1|        }
  259|  7.50k|        if (encoded == 1) {
  ------------------
  |  Branch (259:13): [True: 1, False: 7.50k]
  ------------------
  260|      1|            return UNICODE_STRING_SIMPLE("skip");
  ------------------
  |  |  135|      1|#define UNICODE_STRING_SIMPLE(cs) UNICODE_STRING(cs, -1)
  |  |  ------------------
  |  |  |  |  121|      1|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  |  |  ------------------
  ------------------
  261|      1|        }
  262|  7.50k|        encoded &= 0x00ffffff;
  263|  7.50k|        encoded %= 27*27*27;
  264|  7.50k|        char lang[3];
  265|  7.50k|        lang[0] = 'a' + ((encoded % 27) - 1);
  266|  7.50k|        lang[1] = 'a' + (((encoded / 27 ) % 27) - 1);
  267|  7.50k|        if (encoded / (27 * 27) == 0) {
  ------------------
  |  Branch (267:13): [True: 438, False: 7.06k]
  ------------------
  268|    438|            return UnicodeString(lang, 2, US_INV);
  ------------------
  |  |   98|    438|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  269|    438|        }
  270|  7.06k|        lang[2] = 'a' + ((encoded / (27 * 27)) - 1);
  271|  7.06k|        return UnicodeString(lang, 3, US_INV);
  ------------------
  |  |   98|  7.06k|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  272|  7.50k|    }
_ZN6icu_7817LikelySubtagsData8toScriptEi:
  273|  7.50k|    UnicodeString toScript(int encoded) {
  274|  7.50k|        if (encoded == 0) {
  ------------------
  |  Branch (274:13): [True: 1, False: 7.50k]
  ------------------
  275|      1|            return UNICODE_STRING_SIMPLE("");
  ------------------
  |  |  135|      1|#define UNICODE_STRING_SIMPLE(cs) UNICODE_STRING(cs, -1)
  |  |  ------------------
  |  |  |  |  121|      1|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  |  |  ------------------
  ------------------
  276|      1|        }
  277|  7.50k|        if (encoded == 1) {
  ------------------
  |  Branch (277:13): [True: 1, False: 7.50k]
  ------------------
  278|      1|            return UNICODE_STRING_SIMPLE("script");
  ------------------
  |  |  135|      1|#define UNICODE_STRING_SIMPLE(cs) UNICODE_STRING(cs, -1)
  |  |  ------------------
  |  |  |  |  121|      1|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  |  |  ------------------
  ------------------
  279|      1|        }
  280|  7.50k|        encoded = (encoded >> 24) & 0x000000ff;
  281|  7.50k|        const char* script = uscript_getShortName(static_cast<UScriptCode>(encoded));
  ------------------
  |  | 1708|  7.50k|#define uscript_getShortName U_ICU_ENTRY_POINT_RENAME(uscript_getShortName)
  |  |  ------------------
  |  |  |  |  123|  7.50k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.50k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.50k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  282|  7.50k|        if (script == nullptr) {
  ------------------
  |  Branch (282:13): [True: 0, False: 7.50k]
  ------------------
  283|      0|            return UNICODE_STRING_SIMPLE("");
  ------------------
  |  |  135|      0|#define UNICODE_STRING_SIMPLE(cs) UNICODE_STRING(cs, -1)
  |  |  ------------------
  |  |  |  |  121|      0|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  |  |  ------------------
  ------------------
  284|      0|        }
  285|  7.50k|        U_ASSERT(uprv_strlen(script) == 4);
  ------------------
  |  |   35|  7.50k|#   define U_ASSERT(exp) (void)0
  ------------------
  286|  7.50k|        return UnicodeString(script, 4, US_INV);
  ------------------
  |  |   98|  7.50k|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  287|  7.50k|    }
_ZN6icu_7817LikelySubtagsData8toRegionERKNS_13ResourceArrayERNS_13ResourceValueEiR10UErrorCode:
  300|  7.50k|    UnicodeString toRegion(const ResourceArray& m49Array, ResourceValue &value, int encoded, UErrorCode &errorCode) {
  301|  7.50k|        if (U_FAILURE(errorCode) || encoded == 0 || encoded == 1) {
  ------------------
  |  Branch (301:13): [True: 0, False: 7.50k]
  |  Branch (301:37): [True: 1, False: 7.50k]
  |  Branch (301:53): [True: 1, False: 7.50k]
  ------------------
  302|      2|            return UNICODE_STRING_SIMPLE("");
  ------------------
  |  |  135|      2|#define UNICODE_STRING_SIMPLE(cs) UNICODE_STRING(cs, -1)
  |  |  ------------------
  |  |  |  |  121|      2|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  |  |  ------------------
  ------------------
  303|      2|        }
  304|  7.50k|        encoded &= 0x00ffffff;
  305|  7.50k|        encoded /= 27 * 27 * 27;
  306|  7.50k|        encoded %= 27 * 27;
  307|  7.50k|        if (encoded < 27) {
  ------------------
  |  Branch (307:13): [True: 19, False: 7.48k]
  ------------------
  308|       |            // Selected M49 code index, find the code from "m49" resource.
  309|     19|            return  m49IndexToCode(m49Array, value, encoded, errorCode);
  310|     19|        }
  311|  7.48k|        char region[2];
  312|  7.48k|        region[0] = 'A' + ((encoded % 27) - 1);
  313|  7.48k|        region[1] = 'A' + (((encoded / 27) % 27) - 1);
  314|  7.48k|        return UnicodeString(region, 2, US_INV);
  ------------------
  |  |   98|  7.48k|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  315|  7.50k|    }
_ZN6icu_7817LikelySubtagsData14m49IndexToCodeERKNS_13ResourceArrayERNS_13ResourceValueEiR10UErrorCode:
  288|     19|    UnicodeString m49IndexToCode(const ResourceArray &m49Array, ResourceValue &value, int index, UErrorCode &errorCode) {
  289|     19|        if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (289:13): [True: 0, False: 19]
  ------------------
  290|      0|            return UNICODE_STRING_SIMPLE("");
  ------------------
  |  |  135|      0|#define UNICODE_STRING_SIMPLE(cs) UNICODE_STRING(cs, -1)
  |  |  ------------------
  |  |  |  |  121|      0|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  |  |  ------------------
  ------------------
  291|      0|        }
  292|     19|        if (m49Array.getValue(index, value)) {
  ------------------
  |  Branch (292:13): [True: 19, False: 0]
  ------------------
  293|     19|            return value.getUnicodeString(errorCode);
  294|     19|        }
  295|       |        // "m49" does not include the index.
  296|      0|        errorCode = U_MISSING_RESOURCE_ERROR;
  297|      0|        return UNICODE_STRING_SIMPLE("");
  ------------------
  |  |  135|      0|#define UNICODE_STRING_SIMPLE(cs) UNICODE_STRING(cs, -1)
  |  |  ------------------
  |  |  |  |  121|      0|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  |  |  ------------------
  ------------------
  298|     19|    }
loclikelysubtags.cpp:_ZN6icu_7812_GLOBAL__N_121getStaticMacroregionsER10UErrorCode:
  430|      1|UVector* getStaticMacroregions(UErrorCode &status) {
  431|      1|    if (U_FAILURE(status)) { return nullptr; }
  ------------------
  |  Branch (431:9): [True: 0, False: 1]
  ------------------
  432|      1|    LocalPointer<UVector> newMacroRegions(new UVector(uprv_deleteUObject, uhash_compareUnicodeString, status), status);
  ------------------
  |  | 1489|      1|#define uprv_deleteUObject U_ICU_ENTRY_POINT_RENAME(uprv_deleteUObject)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  LocalPointer<UVector> newMacroRegions(new UVector(uprv_deleteUObject, uhash_compareUnicodeString, status), status);
  ------------------
  |  |  999|      1|#define uhash_compareUnicodeString U_ICU_ENTRY_POINT_RENAME(uhash_compareUnicodeString)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  433|       |
  434|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (434:9): [True: 0, False: 1]
  ------------------
  435|      0|        return nullptr;
  436|      0|    }
  437|       |
  438|     24|    for (const auto *region : MACROREGION_HARDCODE) {
  ------------------
  |  Branch (438:29): [True: 24, False: 1]
  ------------------
  439|     24|        UnicodeString regionName(region);
  440|     24|        processMacroregionRange(regionName, newMacroRegions.getAlias(), status);
  441|     24|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (441:13): [True: 0, False: 24]
  ------------------
  442|      0|            return nullptr;
  443|      0|        }
  444|     24|    }
  445|       |
  446|      1|    return newMacroRegions.orphan();
  447|      1|}
loclikelysubtags.cpp:_ZN6icu_7812_GLOBAL__N_123processMacroregionRangeERKNS_13UnicodeStringEPNS_7UVectorER10UErrorCode:
  385|     24|void processMacroregionRange(const UnicodeString& regionName, UVector* newMacroRegions, UErrorCode& status) {
  386|     24|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (386:9): [True: 0, False: 24]
  ------------------
  387|     24|    int32_t rangeMarkerLocation = regionName.indexOf(RANGE_MARKER);
  388|     24|    char16_t buf[6];
  389|     24|    regionName.extract(buf,6,status);
  390|     24|    if ( rangeMarkerLocation > 0 ) {
  ------------------
  |  Branch (390:10): [True: 8, False: 16]
  ------------------
  391|      8|        char16_t endRange = regionName.charAt(rangeMarkerLocation+1);
  392|      8|        buf[rangeMarkerLocation] = 0;
  393|     27|        while ( buf[rangeMarkerLocation-1] <= endRange && U_SUCCESS(status)) {
  ------------------
  |  Branch (393:17): [True: 19, False: 8]
  |  Branch (393:59): [True: 19, False: 0]
  ------------------
  394|     19|            LocalPointer<UnicodeString> newRegion(new UnicodeString(buf), status);
  395|     19|            newMacroRegions->adoptElement(newRegion.orphan(),status);
  396|     19|            buf[rangeMarkerLocation-1]++;
  397|     19|        }
  398|     16|    } else {
  399|     16|        LocalPointer<UnicodeString> newRegion(new UnicodeString(regionName), status);
  400|     16|        newMacroRegions->adoptElement(newRegion.orphan(),status);
  401|     16|    }
  402|     24|}
_ZN6icu_7817LikelySubtagsDataD2Ev:
   67|      1|    ~LikelySubtagsData() {
   68|      1|        ures_close(langInfoBundle);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   69|      1|        delete[] lsrs;
   70|      1|    }
loclikelysubtags.cpp:_ZN6icu_7812_GLOBAL__N_112getCanonicalERKNS_13CharStringMapEPKc:
  552|  40.1k|const char *getCanonical(const CharStringMap &aliases, const char *alias) {
  553|  40.1k|    const char *canonical = aliases.get(alias);
  554|  40.1k|    return canonical == nullptr ? alias : canonical;
  ------------------
  |  Branch (554:12): [True: 40.0k, False: 113]
  ------------------
  555|  40.1k|}

_ZN6icu_7818LocaleDistanceDataC2Ev:
   25|      1|    LocaleDistanceData() = default;

uloc_getTableStringWithFallback_78:
   51|    834|{
   52|    834|    if (U_FAILURE(*pErrorCode)) { return nullptr; }
  ------------------
  |  Branch (52:9): [True: 0, False: 834]
  ------------------
   53|       |/*    char localeBuffer[ULOC_FULLNAME_CAPACITY*4];*/
   54|    834|    const char16_t *item=nullptr;
   55|    834|    UErrorCode errorCode;
   56|       |
   57|       |    /*
   58|       |     * open the bundle for the current locale
   59|       |     * this falls back through the locale's chain to root
   60|       |     */
   61|    834|    errorCode=U_ZERO_ERROR;
   62|    834|    icu::LocalUResourceBundlePointer rb(ures_open(path, locale, &errorCode));
  ------------------
  |  | 1691|    834|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|    834|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    834|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    834|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   63|       |
   64|    834|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (64:8): [True: 0, False: 834]
  ------------------
   65|       |        /* total failure, not even root could be opened */
   66|      0|        *pErrorCode=errorCode;
   67|      0|        return nullptr;
   68|    834|    } else if(errorCode==U_USING_DEFAULT_WARNING ||
  ------------------
  |  Branch (68:15): [True: 0, False: 834]
  ------------------
   69|    834|                (errorCode==U_USING_FALLBACK_WARNING && *pErrorCode!=U_USING_DEFAULT_WARNING)
  ------------------
  |  Branch (69:18): [True: 330, False: 504]
  |  Branch (69:57): [True: 330, False: 0]
  ------------------
   70|    834|    ) {
   71|       |        /* set the "strongest" error code (success->fallback->default->failure) */
   72|    330|        *pErrorCode=errorCode;
   73|    330|    }
   74|       |
   75|    834|    for(;;){
   76|    834|        icu::StackUResourceBundle table;
   77|    834|        icu::StackUResourceBundle subTable;
   78|    834|        ures_getByKeyWithFallback(rb.getAlias(), tableKey, table.getAlias(), &errorCode);
  ------------------
  |  | 1662|    834|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|    834|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    834|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    834|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   79|       |
   80|    834|        if (subTableKey != nullptr) {
  ------------------
  |  Branch (80:13): [True: 0, False: 834]
  ------------------
   81|       |            /*
   82|       |            ures_getByKeyWithFallback(table.getAlias(), subTableKey, subTable.getAlias(), &errorCode);
   83|       |            item = ures_getStringByKeyWithFallback(subTable.getAlias(), itemKey, pLength, &errorCode);
   84|       |            if(U_FAILURE(errorCode)){
   85|       |                *pErrorCode = errorCode;
   86|       |            }
   87|       |            
   88|       |            break;*/
   89|       |            
   90|      0|            ures_getByKeyWithFallback(table.getAlias(), subTableKey, table.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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   91|      0|        }
   92|    834|        if(U_SUCCESS(errorCode)){
  ------------------
  |  Branch (92:12): [True: 834, False: 0]
  ------------------
   93|    834|            item = ures_getStringByKeyWithFallback(table.getAlias(), itemKey, pLength, &errorCode);
  ------------------
  |  | 1678|    834|#define ures_getStringByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getStringByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|    834|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    834|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    834|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   94|    834|            if(U_FAILURE(errorCode)){
  ------------------
  |  Branch (94:16): [True: 0, False: 834]
  ------------------
   95|      0|                const char* replacement = nullptr;
   96|      0|                *pErrorCode = errorCode; /*save the errorCode*/
   97|      0|                errorCode = U_ZERO_ERROR;
   98|       |                /* may be a deprecated code */
   99|      0|                if(uprv_strcmp(tableKey, "Countries")==0){
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (99:20): [True: 0, False: 0]
  ------------------
  100|      0|                    replacement =  uloc_getCurrentCountryID(itemKey);
  ------------------
  |  | 1116|      0|#define uloc_getCurrentCountryID U_ICU_ENTRY_POINT_RENAME(uloc_getCurrentCountryID)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  101|      0|                }else if(uprv_strcmp(tableKey, "Languages")==0){
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (101:26): [True: 0, False: 0]
  ------------------
  102|      0|                    replacement =  uloc_getCurrentLanguageID(itemKey);
  ------------------
  |  | 1117|      0|#define uloc_getCurrentLanguageID U_ICU_ENTRY_POINT_RENAME(uloc_getCurrentLanguageID)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  103|      0|                }
  104|       |                /*pointer comparison is ok since uloc_getCurrentCountryID & uloc_getCurrentLanguageID return the key itself is replacement is not found*/
  105|      0|                if(replacement!=nullptr && itemKey != replacement){
  ------------------
  |  Branch (105:20): [True: 0, False: 0]
  |  Branch (105:44): [True: 0, False: 0]
  ------------------
  106|      0|                    item = ures_getStringByKeyWithFallback(table.getAlias(), replacement, pLength, &errorCode);
  ------------------
  |  | 1678|      0|#define ures_getStringByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getStringByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  107|      0|                    if(U_SUCCESS(errorCode)){
  ------------------
  |  Branch (107:24): [True: 0, False: 0]
  ------------------
  108|      0|                        *pErrorCode = errorCode;
  109|      0|                        break;
  110|      0|                    }
  111|      0|                }
  112|    834|            }else{
  113|    834|                break;
  114|    834|            }
  115|    834|        }
  116|       |        
  117|      0|        if(U_FAILURE(errorCode)){    
  ------------------
  |  Branch (117:12): [True: 0, False: 0]
  ------------------
  118|       |
  119|       |            /* still can't figure out ?.. try the fallback mechanism */
  120|      0|            int32_t len = 0;
  121|      0|            const char16_t* fallbackLocale =  nullptr;
  122|      0|            *pErrorCode = errorCode;
  123|      0|            errorCode = U_ZERO_ERROR;
  124|       |
  125|      0|            fallbackLocale = ures_getStringByKeyWithFallback(table.getAlias(), "Fallback", &len, &errorCode);
  ------------------
  |  | 1678|      0|#define ures_getStringByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getStringByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  126|      0|            if(U_FAILURE(errorCode)){
  ------------------
  |  Branch (126:16): [True: 0, False: 0]
  ------------------
  127|      0|               *pErrorCode = errorCode;
  128|      0|                break;
  129|      0|            }
  130|       |
  131|      0|            icu::CharString explicitFallbackName;
  132|      0|            explicitFallbackName.appendInvariantChars(fallbackLocale, len, errorCode);
  133|       |
  134|       |            /* guard against recursive fallback */
  135|      0|            if (explicitFallbackName == locale) {
  ------------------
  |  Branch (135:17): [True: 0, False: 0]
  ------------------
  136|      0|                *pErrorCode = U_INTERNAL_PROGRAM_ERROR;
  137|      0|                break;
  138|      0|            }
  139|      0|            rb.adoptInstead(ures_open(path, explicitFallbackName.data(), &errorCode));
  ------------------
  |  | 1691|      0|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  140|      0|            if(U_FAILURE(errorCode)){
  ------------------
  |  Branch (140:16): [True: 0, False: 0]
  ------------------
  141|      0|                *pErrorCode = errorCode;
  142|      0|                break;
  143|      0|            }
  144|       |            /* succeeded in opening the fallback bundle .. continue and try to fetch the item */
  145|      0|        }else{
  146|      0|            break;
  147|      0|        }
  148|      0|    }
  149|       |
  150|    834|    return item;
  151|    834|}

_ZN6icu_783LSRC2ENS_11StringPieceES1_S1_iR10UErrorCode:
   36|  48.5k|        language(nullptr), script(nullptr), region(nullptr),
   37|  48.5k|        regionIndex(indexForRegion(r.data())), flags(f) {
   38|  48.5k|    if (U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (38:9): [True: 48.5k, False: 0]
  ------------------
   39|  48.5k|        CharString data;
   40|  48.5k|        data.append(lang, errorCode).append('\0', errorCode);
   41|  48.5k|        int32_t scriptOffset = data.length();
   42|  48.5k|        data.append(scr, errorCode).append('\0', errorCode);
   43|  48.5k|        int32_t regionOffset = data.length();
   44|  48.5k|        data.append(r, errorCode);
   45|  48.5k|        owned = data.cloneData(errorCode);
   46|  48.5k|        if (U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (46:13): [True: 48.5k, False: 0]
  ------------------
   47|  48.5k|            language = owned;
   48|  48.5k|            script = owned + scriptOffset;
   49|  48.5k|            region = owned + regionOffset;
   50|  48.5k|        }
   51|  48.5k|    }
   52|  48.5k|}
_ZN6icu_783LSRC2EOS0_:
   55|  14.4k|        language(other.language), script(other.script), region(other.region), owned(other.owned),
   56|  14.4k|        regionIndex(other.regionIndex), flags(other.flags),
   57|  14.4k|        hashCode(other.hashCode) {
   58|  14.4k|    if (owned != nullptr) {
  ------------------
  |  Branch (58:9): [True: 10.6k, False: 3.86k]
  ------------------
   59|  10.6k|        other.language = other.script = "";
   60|  10.6k|        other.owned = nullptr;
   61|  10.6k|        other.hashCode = 0;
   62|  10.6k|    }
   63|  14.4k|}
_ZN6icu_783LSR11deleteOwnedEv:
   65|  48.5k|void LSR::deleteOwned() {
   66|  48.5k|    uprv_free(owned);
  ------------------
  |  | 1503|  48.5k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  48.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  48.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  48.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   67|  48.5k|}
_ZN6icu_783LSRaSEOS0_:
   69|  10.4k|LSR &LSR::operator=(LSR &&other) noexcept {
   70|  10.4k|    this->~LSR();
   71|  10.4k|    language = other.language;
   72|  10.4k|    script = other.script;
   73|  10.4k|    region = other.region;
   74|  10.4k|    regionIndex = other.regionIndex;
   75|  10.4k|    flags = other.flags;
   76|  10.4k|    owned = other.owned;
   77|  10.4k|    hashCode = other.hashCode;
   78|  10.4k|    if (owned != nullptr) {
  ------------------
  |  Branch (78:9): [True: 2.95k, False: 7.50k]
  ------------------
   79|  2.95k|        other.language = other.script = "";
   80|  2.95k|        other.owned = nullptr;
   81|  2.95k|        other.hashCode = 0;
   82|  2.95k|    }
   83|  10.4k|    return *this;
   84|  10.4k|}
_ZNK6icu_783LSR14isEquivalentToERKS0_:
   86|  9.93k|UBool LSR::isEquivalentTo(const LSR &other) const {
   87|  9.93k|    return
   88|  9.93k|        uprv_strcmp(language, other.language) == 0 &&
  ------------------
  |  |   38|  9.93k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  9.93k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (88:9): [True: 9.89k, False: 48]
  ------------------
   89|  9.93k|        uprv_strcmp(script, other.script) == 0 &&
  ------------------
  |  |   38|  9.89k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  9.89k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (89:9): [True: 9.14k, False: 745]
  ------------------
   90|  9.93k|        regionIndex == other.regionIndex &&
  ------------------
  |  Branch (90:9): [True: 6.85k, False: 2.29k]
  ------------------
   91|       |        // Compare regions if both are ill-formed (and their indexes are 0).
   92|  9.93k|        (regionIndex > 0 || uprv_strcmp(region, other.region) == 0);
  ------------------
  |  |   38|    289|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    289|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (92:10): [True: 6.56k, False: 289]
  |  Branch (92:29): [True: 289, False: 0]
  ------------------
   93|  9.93k|}
_ZN6icu_783LSR14indexForRegionEPKc:
  105|  61.2k|int32_t LSR::indexForRegion(const char *region) {
  106|  61.2k|    int32_t c = region[0];
  107|  61.2k|    int32_t a = c - '0';
  108|  61.2k|    if (0 <= a && a <= 9) {  // digits: "419"
  ------------------
  |  Branch (108:9): [True: 41.3k, False: 19.9k]
  |  Branch (108:19): [True: 575, False: 40.8k]
  ------------------
  109|    575|        int32_t b = region[1] - '0';
  110|    575|        if (b < 0 || 9 < b) { return 0; }
  ------------------
  |  Branch (110:13): [True: 34, False: 541]
  |  Branch (110:22): [True: 64, False: 477]
  ------------------
  111|    477|        c = region[2] - '0';
  112|    477|        if (c < 0 || 9 < c || region[3] != 0) { return 0; }
  ------------------
  |  Branch (112:13): [True: 50, False: 427]
  |  Branch (112:22): [True: 27, False: 400]
  |  Branch (112:31): [True: 0, False: 400]
  ------------------
  113|    400|        return (10 * a + b) * 10 + c + 1;
  114|  60.7k|    } else {  // letters: "DE"
  115|  60.7k|        a = uprv_upperOrdinal(c);
  116|  60.7k|        if (a < 0 || 25 < a) { return 0; }
  ------------------
  |  Branch (116:13): [True: 19.9k, False: 40.7k]
  |  Branch (116:22): [True: 56, False: 40.7k]
  ------------------
  117|  40.7k|        int32_t b = uprv_upperOrdinal(region[1]);
  118|  40.7k|        if (b < 0 || 25 < b || region[2] != 0) { return 0; }
  ------------------
  |  Branch (118:13): [True: 285, False: 40.4k]
  |  Branch (118:22): [True: 36, False: 40.3k]
  |  Branch (118:32): [True: 408, False: 39.9k]
  ------------------
  119|  39.9k|        return 26 * a + b + 1001;
  120|  40.7k|    }
  121|      0|    return 0;
  122|  61.2k|}

_ZN6icu_783LSRD2Ev:
   53|  86.2k|    inline ~LSR() {
   54|       |        // Pure inline code for almost all instances.
   55|  86.2k|        if (owned != nullptr) {
  ------------------
  |  Branch (55:13): [True: 48.5k, False: 37.7k]
  ------------------
   56|  48.5k|            deleteOwned();
   57|  48.5k|        }
   58|  86.2k|    }
_ZN6icu_783LSRC2Ev:
   37|  7.50k|    LSR() : language("und"), script(""), region("") {}
_ZN6icu_783LSRC2EPKcS2_S2_i:
   41|  12.7k|            language(lang),  script(scr), region(r),
   42|  12.7k|            regionIndex(indexForRegion(region)), flags(f) {}

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

_ZN6icu_7812PatternProps12isWhiteSpaceEi:
  155|  3.47M|PatternProps::isWhiteSpace(UChar32 c) {
  156|  3.47M|    if(c<0) {
  ------------------
  |  Branch (156:8): [True: 0, False: 3.47M]
  ------------------
  157|      0|        return false;
  158|  3.47M|    } else if(c<=0xff) {
  ------------------
  |  Branch (158:15): [True: 2.59M, False: 874k]
  ------------------
  159|  2.59M|        return (latin1[c] >> 2) & 1;
  160|  2.59M|    } else if(0x200e<=c && c<=0x2029) {
  ------------------
  |  Branch (160:15): [True: 98.8k, False: 775k]
  |  Branch (160:28): [True: 0, False: 98.8k]
  ------------------
  161|      0|        return c<=0x200f || 0x2028<=c;
  ------------------
  |  Branch (161:16): [True: 0, False: 0]
  |  Branch (161:29): [True: 0, False: 0]
  ------------------
  162|   874k|    } else {
  163|   874k|        return false;
  164|   874k|    }
  165|  3.47M|}

_ZN6icu_7812PropNameData12findPropertyEi:
  148|  7.50k|int32_t PropNameData::findProperty(int32_t property) {
  149|  7.50k|    int32_t i=1;  // valueMaps index, initially after numRanges
  150|  15.0k|    for(int32_t numRanges=valueMaps[0]; numRanges>0; --numRanges) {
  ------------------
  |  Branch (150:41): [True: 15.0k, False: 0]
  ------------------
  151|       |        // Read and skip the start and limit of this range.
  152|  15.0k|        int32_t start=valueMaps[i];
  153|  15.0k|        int32_t limit=valueMaps[i+1];
  154|  15.0k|        i+=2;
  155|  15.0k|        if(property<start) {
  ------------------
  |  Branch (155:12): [True: 0, False: 15.0k]
  ------------------
  156|      0|            break;
  157|      0|        }
  158|  15.0k|        if(property<limit) {
  ------------------
  |  Branch (158:12): [True: 7.50k, False: 7.50k]
  ------------------
  159|  7.50k|            return i+(property-start)*2;
  160|  7.50k|        }
  161|  7.50k|        i+=(limit-start)*2;  // Skip all entries for this range.
  162|  7.50k|    }
  163|      0|    return 0;
  164|  7.50k|}
_ZN6icu_7812PropNameData26findPropertyValueNameGroupEii:
  166|  7.50k|int32_t PropNameData::findPropertyValueNameGroup(int32_t valueMapIndex, int32_t value) {
  167|  7.50k|    if(valueMapIndex==0) {
  ------------------
  |  Branch (167:8): [True: 0, False: 7.50k]
  ------------------
  168|      0|        return 0;  // The property does not have named values.
  169|      0|    }
  170|  7.50k|    ++valueMapIndex;  // Skip the BytesTrie offset.
  171|  7.50k|    int32_t numRanges=valueMaps[valueMapIndex++];
  172|  7.50k|    if(numRanges<0x10) {
  ------------------
  |  Branch (172:8): [True: 7.50k, False: 0]
  ------------------
  173|       |        // Ranges of values.
  174|  7.50k|        for(; numRanges>0; --numRanges) {
  ------------------
  |  Branch (174:15): [True: 7.50k, False: 0]
  ------------------
  175|       |            // Read and skip the start and limit of this range.
  176|  7.50k|            int32_t start=valueMaps[valueMapIndex];
  177|  7.50k|            int32_t limit=valueMaps[valueMapIndex+1];
  178|  7.50k|            valueMapIndex+=2;
  179|  7.50k|            if(value<start) {
  ------------------
  |  Branch (179:16): [True: 0, False: 7.50k]
  ------------------
  180|      0|                break;
  181|      0|            }
  182|  7.50k|            if(value<limit) {
  ------------------
  |  Branch (182:16): [True: 7.50k, False: 0]
  ------------------
  183|  7.50k|                return valueMaps[valueMapIndex+value-start];
  184|  7.50k|            }
  185|      0|            valueMapIndex+=limit-start;  // Skip all entries for this range.
  186|      0|        }
  187|  7.50k|    } else {
  188|       |        // List of values.
  189|      0|        int32_t valuesStart=valueMapIndex;
  190|      0|        int32_t nameGroupOffsetsStart=valueMapIndex+numRanges-0x10;
  191|      0|        do {
  192|      0|            int32_t v=valueMaps[valueMapIndex];
  193|      0|            if(value<v) {
  ------------------
  |  Branch (193:16): [True: 0, False: 0]
  ------------------
  194|      0|                break;
  195|      0|            }
  196|      0|            if(value==v) {
  ------------------
  |  Branch (196:16): [True: 0, False: 0]
  ------------------
  197|      0|                return valueMaps[nameGroupOffsetsStart+valueMapIndex-valuesStart];
  198|      0|            }
  199|      0|        } while(++valueMapIndex<nameGroupOffsetsStart);
  ------------------
  |  Branch (199:17): [True: 0, False: 0]
  ------------------
  200|      0|    }
  201|      0|    return 0;
  202|  7.50k|}
_ZN6icu_7812PropNameData7getNameEPKci:
  204|  7.50k|const char *PropNameData::getName(const char *nameGroup, int32_t nameIndex) {
  205|  7.50k|    int32_t numNames=*nameGroup++;
  206|  7.50k|    if(nameIndex<0 || numNames<=nameIndex) {
  ------------------
  |  Branch (206:8): [True: 0, False: 7.50k]
  |  Branch (206:23): [True: 0, False: 7.50k]
  ------------------
  207|      0|        return nullptr;
  208|      0|    }
  209|       |    // Skip nameIndex names.
  210|  7.50k|    for(; nameIndex>0; --nameIndex) {
  ------------------
  |  Branch (210:11): [True: 0, False: 7.50k]
  ------------------
  211|      0|        nameGroup=uprv_strchr(nameGroup, 0)+1;
  ------------------
  |  |   40|      0|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  212|      0|    }
  213|  7.50k|    if(*nameGroup==0) {
  ------------------
  |  Branch (213:8): [True: 0, False: 7.50k]
  ------------------
  214|      0|        return nullptr;  // no name (Property[Value]Aliases.txt has "n/a")
  215|      0|    }
  216|  7.50k|    return nameGroup;
  217|  7.50k|}
_ZN6icu_7812PropNameData20getPropertyValueNameEiii:
  247|  7.50k|const char *PropNameData::getPropertyValueName(int32_t property, int32_t value, int32_t nameChoice) {
  248|  7.50k|    int32_t valueMapIndex=findProperty(property);
  249|  7.50k|    if(valueMapIndex==0) {
  ------------------
  |  Branch (249:8): [True: 0, False: 7.50k]
  ------------------
  250|      0|        return nullptr;  // Not a known property.
  251|      0|    }
  252|  7.50k|    int32_t nameGroupOffset=findPropertyValueNameGroup(valueMaps[valueMapIndex+1], value);
  253|  7.50k|    if(nameGroupOffset==0) {
  ------------------
  |  Branch (253:8): [True: 0, False: 7.50k]
  ------------------
  254|      0|        return nullptr;
  255|      0|    }
  256|  7.50k|    return getName(nameGroups+nameGroupOffset, nameChoice);
  257|  7.50k|}
u_getPropertyValueName_78:
  309|  7.50k|                       UPropertyNameChoice nameChoice) UPRV_NO_SANITIZE_UNDEFINED {
  310|       |    // The nameChoice is really an integer with a couple of named constants.
  311|       |    // Unicode allows for names other than short and long ones.
  312|       |    // If present, these will be returned for U_LONG_PROPERTY_NAME + i, where i=1, 2,...
  313|  7.50k|    U_NAMESPACE_USE
  ------------------
  |  |  112|  7.50k|#   define U_NAMESPACE_USE using namespace U_ICU_NAMESPACE;
  ------------------
  314|  7.50k|    return PropNameData::getPropertyValueName(property, value, nameChoice);
  315|  7.50k|}
uscript_getShortName_78:
  331|  7.50k|uscript_getShortName(UScriptCode scriptCode){
  332|  7.50k|    return u_getPropertyValueName(UCHAR_SCRIPT, scriptCode,
  ------------------
  |  |  286|  7.50k|#define u_getPropertyValueName U_ICU_ENTRY_POINT_RENAME(u_getPropertyValueName)
  |  |  ------------------
  |  |  |  |  123|  7.50k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.50k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.50k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  333|  7.50k|                                  U_SHORT_PROPERTY_NAME);
  334|  7.50k|}

uprv_getUTCtime_78:
  296|   104k|{
  297|       |#if defined(U_DEBUG_FAKETIME)
  298|       |    return getUTCtime_fake(); /* Hook for overriding the clock */
  299|       |#else
  300|   104k|    return uprv_getRawUTCtime();
  ------------------
  |  | 1510|   104k|#define uprv_getRawUTCtime U_ICU_ENTRY_POINT_RENAME(uprv_getRawUTCtime)
  |  |  ------------------
  |  |  |  |  123|   104k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   104k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   104k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  301|   104k|#endif
  302|   104k|}
uprv_getRawUTCtime_78:
  307|   104k|{
  308|       |#if U_PLATFORM_USES_ONLY_WIN32_API
  309|       |
  310|       |    FileTimeConversion winTime;
  311|       |    GetSystemTimeAsFileTime(&winTime.fileTime);
  312|       |    return (UDate)((winTime.int64 - EPOCH_BIAS) / HECTONANOSECOND_PER_MILLISECOND);
  313|       |#else
  314|       |
  315|   104k|#if HAVE_GETTIMEOFDAY
  316|   104k|    struct timeval posixTime;
  317|   104k|    gettimeofday(&posixTime, nullptr);
  318|   104k|    return (UDate)(((int64_t)posixTime.tv_sec * U_MILLIS_PER_SECOND) + (posixTime.tv_usec/1000));
  ------------------
  |  |  221|   104k|#define U_MILLIS_PER_SECOND        (1000)
  ------------------
  319|       |#else
  320|       |    time_t epochtime;
  321|       |    time(&epochtime);
  322|       |    return (UDate)epochtime * U_MILLIS_PER_SECOND;
  323|       |#endif
  324|       |
  325|   104k|#endif
  326|   104k|}
uprv_isNaN_78:
  340|   109k|{
  341|   109k|#if IEEE_754
  342|   109k|    BitPatternConversion convertedNumber;
  343|   109k|    convertedNumber.d64 = number;
  344|       |    /* Infinity is 0x7FF0000000000000U. Anything greater than that is a NaN */
  345|   109k|    return (convertedNumber.i64 & U_INT64_MAX) > gInf.i64;
  ------------------
  |  |  249|   109k|#     define U_INT64_MAX       ((int64_t)(INT64_C(9223372036854775807)))
  ------------------
  346|       |
  347|       |#elif U_PLATFORM == U_PF_OS390
  348|       |    uint32_t highBits = *(uint32_t*)u_topNBytesOfDouble(&number,
  349|       |                        sizeof(uint32_t));
  350|       |    uint32_t lowBits  = *(uint32_t*)u_bottomNBytesOfDouble(&number,
  351|       |                        sizeof(uint32_t));
  352|       |
  353|       |    return ((highBits & 0x7F080000L) == 0x7F080000L) &&
  354|       |      (lowBits == 0x00000000L);
  355|       |
  356|       |#else
  357|       |    /* If your platform doesn't support IEEE 754 but *does* have an NaN value,*/
  358|       |    /* you'll need to replace this default implementation with what's correct*/
  359|       |    /* for your platform.*/
  360|       |    return number != number;
  361|       |#endif
  362|   109k|}
uprv_floor_78:
  440|  62.9k|{
  441|  62.9k|    return floor(x);
  442|  62.9k|}
uprv_add32_overflow_78:
  524|   607k|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|   607k|    auto a64 = static_cast<int64_t>(a);
  528|   607k|    auto b64 = static_cast<int64_t>(b);
  529|   607k|    int64_t res64 = a64 + b64;
  530|   607k|    *res = static_cast<int32_t>(res64);
  531|   607k|    return res64 != *res;
  532|   607k|}
uprv_log_78:
  585|  2.13M|{
  586|  2.13M|    return log(d);
  587|  2.13M|}
uprv_tzset_78:
  633|      1|{
  634|      1|#if defined(U_TZSET)
  635|      1|    U_TZSET();
  ------------------
  |  |  111|      1|#   define U_TZSET tzset
  ------------------
  636|       |#else
  637|       |    /* no initialization*/
  638|       |#endif
  639|      1|}
uprv_timezone_78:
  643|      1|{
  644|      1|#ifdef U_TIMEZONE
  645|      1|    return U_TIMEZONE;
  ------------------
  |  |  124|      1|#   define U_TIMEZONE __timezone
  ------------------
  646|       |#else
  647|       |    time_t t, t1, t2;
  648|       |    struct tm tmrec;
  649|       |    int32_t tdiff = 0;
  650|       |
  651|       |    time(&t);
  652|       |    uprv_memcpy( &tmrec, localtime(&t), sizeof(tmrec) );
  653|       |#if U_PLATFORM != U_PF_IPHONE
  654|       |    UBool dst_checked = (tmrec.tm_isdst != 0); /* daylight savings time is checked*/
  655|       |#endif
  656|       |    t1 = mktime(&tmrec);                 /* local time in seconds*/
  657|       |    uprv_memcpy( &tmrec, gmtime(&t), sizeof(tmrec) );
  658|       |    t2 = mktime(&tmrec);                 /* GMT (or UTC) in seconds*/
  659|       |    tdiff = t2 - t1;
  660|       |
  661|       |#if U_PLATFORM != U_PF_IPHONE
  662|       |    /* imitate NT behaviour, which returns same timezone offset to GMT for
  663|       |       winter and summer.
  664|       |       This does not work on all platforms. For instance, on glibc on Linux
  665|       |       and on Mac OS 10.5, tdiff calculated above remains the same
  666|       |       regardless of whether DST is in effect or not. iOS is another
  667|       |       platform where this does not work. Linux + glibc and Mac OS 10.5
  668|       |       have U_TIMEZONE defined so that this code is not reached.
  669|       |    */
  670|       |    if (dst_checked)
  671|       |        tdiff += 3600;
  672|       |#endif
  673|       |    return tdiff;
  674|       |#endif
  675|      1|}
uprv_tzname_clear_cache_78:
 1073|      1|{
 1074|       |#if U_PLATFORM == U_PF_ANDROID
 1075|       |    /* Android's timezone is stored in system property. */
 1076|       |    gAndroidTimeZone[0] = '\0';
 1077|       |    void* libc = dlopen("libc.so", RTLD_NOLOAD);
 1078|       |    if (libc) {
 1079|       |        /* Android API 26+ has new API to get system property and old API
 1080|       |         * (__system_property_get) is deprecated */
 1081|       |        system_property_read_callback* property_read_callback =
 1082|       |            (system_property_read_callback*)dlsym(
 1083|       |                libc, "__system_property_read_callback");
 1084|       |        if (property_read_callback) {
 1085|       |            const prop_info* info =
 1086|       |                __system_property_find("persist.sys.timezone");
 1087|       |            if (info) {
 1088|       |                property_read_callback(info, &u_property_read, gAndroidTimeZone);
 1089|       |            }
 1090|       |        } else {
 1091|       |            system_property_get* property_get =
 1092|       |                (system_property_get*)dlsym(libc, "__system_property_get");
 1093|       |            if (property_get) {
 1094|       |                property_get("persist.sys.timezone", gAndroidTimeZone);
 1095|       |            }
 1096|       |        }
 1097|       |        dlclose(libc);
 1098|       |    }
 1099|       |#endif
 1100|       |
 1101|      1|#if defined(CHECK_LOCALTIME_LINK) && !defined(DEBUG_SKIP_LOCALTIME_LINK)
 1102|      1|    gTimeZoneBufferPtr = nullptr;
 1103|      1|#endif
 1104|      1|}
uprv_tzname_78:
 1108|      1|{
 1109|      1|    (void)n; // Avoid unreferenced parameter warning.
 1110|      1|    const char *tzid = nullptr;
 1111|       |#if U_PLATFORM_USES_ONLY_WIN32_API
 1112|       |    tzid = uprv_detectWindowsTimeZone();
 1113|       |
 1114|       |    if (tzid != nullptr) {
 1115|       |        return tzid;
 1116|       |    }
 1117|       |
 1118|       |#ifndef U_TZNAME
 1119|       |    // The return value is free'd in timezone.cpp on Windows because
 1120|       |    // the other code path returns a pointer to a heap location.
 1121|       |    // If we don't have a name already, then tzname wouldn't be any
 1122|       |    // better, so just fall back.
 1123|       |    return uprv_strdup("");
 1124|       |#endif // !U_TZNAME
 1125|       |
 1126|       |#else
 1127|       |
 1128|       |/*#if U_PLATFORM_IS_DARWIN_BASED
 1129|       |    int ret;
 1130|       |
 1131|       |    tzid = getenv("TZFILE");
 1132|       |    if (tzid != nullptr) {
 1133|       |        return tzid;
 1134|       |    }
 1135|       |#endif*/
 1136|       |
 1137|       |/* This code can be temporarily disabled to test tzname resolution later on. */
 1138|      1|#ifndef DEBUG_TZNAME
 1139|       |#if U_PLATFORM == U_PF_ANDROID
 1140|       |    tzid = gAndroidTimeZone;
 1141|       |#else
 1142|      1|    tzid = getenv("TZ");
 1143|      1|#endif
 1144|      1|    if (tzid != nullptr && isValidOlsonID(tzid)
  ------------------
  |  Branch (1144:9): [True: 0, False: 1]
  |  Branch (1144:28): [True: 0, False: 0]
  ------------------
 1145|       |#if U_PLATFORM == U_PF_SOLARIS
 1146|       |    /* Don't misinterpret TZ "localtime" on Solaris as a time zone name. */
 1147|       |        && uprv_strcmp(tzid, TZ_ENV_CHECK) != 0
 1148|       |#endif
 1149|      1|    ) {
 1150|       |        /* The colon forces tzset() to treat the remainder as zoneinfo path */
 1151|      0|        if (tzid[0] == ':') {
  ------------------
  |  Branch (1151:13): [True: 0, False: 0]
  ------------------
 1152|      0|            tzid++;
 1153|      0|        }
 1154|       |        /* This might be a good Olson ID. */
 1155|      0|        skipZoneIDPrefix(&tzid);
 1156|      0|        return tzid;
 1157|      0|    }
 1158|       |    /* else U_TZNAME will give a better result. */
 1159|      1|#endif
 1160|       |
 1161|      1|#if defined(CHECK_LOCALTIME_LINK) && !defined(DEBUG_SKIP_LOCALTIME_LINK)
 1162|       |    /* Caller must handle threading issues */
 1163|      1|    if (gTimeZoneBufferPtr == nullptr) {
  ------------------
  |  Branch (1163:9): [True: 1, False: 0]
  ------------------
 1164|       |        /*
 1165|       |        This is a trick to look at the name of the link to get the Olson ID
 1166|       |        because the tzfile contents is underspecified.
 1167|       |        This isn't guaranteed to work because it may not be a symlink.
 1168|       |        */
 1169|      1|        char *ret = realpath(TZDEFAULT, gTimeZoneBuffer);
  ------------------
  |  |  706|      1|#define TZDEFAULT       "/etc/localtime"
  ------------------
 1170|      1|        if (ret != nullptr && uprv_strcmp(TZDEFAULT, gTimeZoneBuffer) != 0) {
  ------------------
  |  |   38|      1|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1170:13): [True: 1, False: 0]
  |  Branch (1170:31): [True: 1, False: 0]
  ------------------
 1171|      1|            int32_t tzZoneInfoTailLen = uprv_strlen(TZZONEINFOTAIL);
  ------------------
  |  |   37|      1|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1172|      1|            const char *tzZoneInfoTailPtr = uprv_strstr(gTimeZoneBuffer, TZZONEINFOTAIL);
  ------------------
  |  |   41|      1|#define uprv_strstr(s, c) U_STANDARD_CPP_NAMESPACE strstr(s, c)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1173|       |            // MacOS14 has the realpath as something like
 1174|       |            // /usr/share/zoneinfo.default/Australia/Melbourne
 1175|       |            // which will not have "/zoneinfo/" in the path.
 1176|       |            // Therefore if we fail, we fall back to read the link which is
 1177|       |            // /var/db/timezone/zoneinfo/Australia/Melbourne
 1178|       |            // We also fall back to reading the link if the realpath leads to something like
 1179|       |            // /usr/share/zoneinfo/posixrules
 1180|      1|            if (tzZoneInfoTailPtr == nullptr ||
  ------------------
  |  Branch (1180:17): [True: 0, False: 1]
  ------------------
 1181|      1|                    uprv_strcmp(tzZoneInfoTailPtr + tzZoneInfoTailLen, "posixrules") == 0) {
  ------------------
  |  |   38|      1|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1181:21): [True: 0, False: 1]
  ------------------
 1182|      0|                ssize_t size = readlink(TZDEFAULT, gTimeZoneBuffer, sizeof(gTimeZoneBuffer)-1);
  ------------------
  |  |  706|      0|#define TZDEFAULT       "/etc/localtime"
  ------------------
 1183|      0|                if (size > 0) {
  ------------------
  |  Branch (1183:21): [True: 0, False: 0]
  ------------------
 1184|      0|                    gTimeZoneBuffer[size] = 0;
 1185|      0|                    tzZoneInfoTailPtr = uprv_strstr(gTimeZoneBuffer, TZZONEINFOTAIL);
  ------------------
  |  |   41|      0|#define uprv_strstr(s, c) U_STANDARD_CPP_NAMESPACE strstr(s, c)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1186|      0|                }
 1187|      0|            }
 1188|      1|            if (tzZoneInfoTailPtr != nullptr) {
  ------------------
  |  Branch (1188:17): [True: 1, False: 0]
  ------------------
 1189|      1|                tzZoneInfoTailPtr += tzZoneInfoTailLen;
 1190|      1|                skipZoneIDPrefix(&tzZoneInfoTailPtr);
 1191|      1|                if (isValidOlsonID(tzZoneInfoTailPtr)) {
  ------------------
  |  Branch (1191:21): [True: 1, False: 0]
  ------------------
 1192|      1|                    return (gTimeZoneBufferPtr = tzZoneInfoTailPtr);
 1193|      1|                }
 1194|      1|            }
 1195|      1|        } else {
 1196|      0|#if defined(SEARCH_TZFILE)
 1197|      0|            DefaultTZInfo* tzInfo = (DefaultTZInfo*)uprv_malloc(sizeof(DefaultTZInfo));
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1198|      0|            if (tzInfo != nullptr) {
  ------------------
  |  Branch (1198:17): [True: 0, False: 0]
  ------------------
 1199|      0|                tzInfo->defaultTZBuffer = nullptr;
 1200|      0|                tzInfo->defaultTZFileSize = 0;
 1201|      0|                tzInfo->defaultTZFilePtr = nullptr;
 1202|      0|                tzInfo->defaultTZstatus = false;
 1203|      0|                tzInfo->defaultTZPosition = 0;
 1204|       |
 1205|      0|                gTimeZoneBufferPtr = searchForTZFile(TZZONEINFO, tzInfo);
  ------------------
  |  |  707|      0|#define TZZONEINFO      "/usr/share/zoneinfo/"
  ------------------
 1206|       |
 1207|       |                /* Free previously allocated memory */
 1208|      0|                if (tzInfo->defaultTZBuffer != nullptr) {
  ------------------
  |  Branch (1208:21): [True: 0, False: 0]
  ------------------
 1209|      0|                    uprv_free(tzInfo->defaultTZBuffer);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1210|      0|                }
 1211|      0|                if (tzInfo->defaultTZFilePtr != nullptr) {
  ------------------
  |  Branch (1211:21): [True: 0, False: 0]
  ------------------
 1212|      0|                    fclose(tzInfo->defaultTZFilePtr);
 1213|      0|                }
 1214|      0|                uprv_free(tzInfo);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1215|      0|            }
 1216|       |
 1217|      0|            if (gTimeZoneBufferPtr != nullptr && isValidOlsonID(gTimeZoneBufferPtr)) {
  ------------------
  |  Branch (1217:17): [True: 0, False: 0]
  |  Branch (1217:50): [True: 0, False: 0]
  ------------------
 1218|      0|                return gTimeZoneBufferPtr;
 1219|      0|            }
 1220|      0|#endif
 1221|      0|        }
 1222|      1|    }
 1223|      0|    else {
 1224|      0|        return gTimeZoneBufferPtr;
 1225|      0|    }
 1226|      0|#endif
 1227|      0|#endif
 1228|       |
 1229|      0|#ifdef U_TZNAME
 1230|       |#if U_PLATFORM_USES_ONLY_WIN32_API
 1231|       |    /* The return value is free'd in timezone.cpp on Windows because
 1232|       |     * the other code path returns a pointer to a heap location. */
 1233|       |    return uprv_strdup(U_TZNAME[n]);
 1234|       |#else
 1235|       |    /*
 1236|       |    U_TZNAME is usually a non-unique abbreviation, which isn't normally usable.
 1237|       |    So we remap the abbreviation to an olson ID.
 1238|       |
 1239|       |    Since Windows exposes a little more timezone information,
 1240|       |    we normally don't use this code on Windows because
 1241|       |    uprv_detectWindowsTimeZone should have already given the correct answer.
 1242|       |    */
 1243|      0|    {
 1244|      0|        struct tm juneSol, decemberSol;
 1245|      0|        int daylightType;
 1246|      0|        static const time_t juneSolstice=1182478260; /*2007-06-21 18:11 UT*/
 1247|      0|        static const time_t decemberSolstice=1198332540; /*2007-12-22 06:09 UT*/
 1248|       |
 1249|       |        /* This probing will tell us when daylight savings occurs.  */
 1250|      0|        localtime_r(&juneSolstice, &juneSol);
 1251|      0|        localtime_r(&decemberSolstice, &decemberSol);
 1252|      0|        if(decemberSol.tm_isdst > 0) {
  ------------------
  |  Branch (1252:12): [True: 0, False: 0]
  ------------------
 1253|      0|          daylightType = U_DAYLIGHT_DECEMBER;
 1254|      0|        } else if(juneSol.tm_isdst > 0) {
  ------------------
  |  Branch (1254:19): [True: 0, False: 0]
  ------------------
 1255|      0|          daylightType = U_DAYLIGHT_JUNE;
 1256|      0|        } else {
 1257|      0|          daylightType = U_DAYLIGHT_NONE;
 1258|      0|        }
 1259|      0|        tzid = remapShortTimeZone(U_TZNAME[0], U_TZNAME[1], daylightType, uprv_timezone());
  ------------------
  |  |  151|      0|#   define U_TZNAME tzname
  ------------------
                      tzid = remapShortTimeZone(U_TZNAME[0], U_TZNAME[1], daylightType, uprv_timezone());
  ------------------
  |  |  151|      0|#   define U_TZNAME tzname
  ------------------
                      tzid = remapShortTimeZone(U_TZNAME[0], U_TZNAME[1], daylightType, uprv_timezone());
  ------------------
  |  | 1546|      0|#define uprv_timezone U_ICU_ENTRY_POINT_RENAME(uprv_timezone)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1260|      0|        if (tzid != nullptr) {
  ------------------
  |  Branch (1260:13): [True: 0, False: 0]
  ------------------
 1261|      0|            return tzid;
 1262|      0|        }
 1263|      0|    }
 1264|      0|    return U_TZNAME[n];
  ------------------
  |  |  151|      0|#   define U_TZNAME tzname
  ------------------
 1265|      0|#endif
 1266|       |#else
 1267|       |    return "";
 1268|       |#endif
 1269|      0|}
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|  18.3k|{
 1356|  18.3k|  if(!path || !*path) {
  ------------------
  |  Branch (1356:6): [True: 0, False: 18.3k]
  |  Branch (1356:15): [True: 0, False: 18.3k]
  ------------------
 1357|      0|    return false;
 1358|      0|  }
 1359|       |
 1360|  18.3k|  if(*path == U_FILE_SEP_CHAR) {
  ------------------
  |  |  130|  18.3k|#   define U_FILE_SEP_CHAR '/'
  ------------------
  |  Branch (1360:6): [True: 0, False: 18.3k]
  ------------------
 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|  18.3k|  return false;
 1379|  18.3k|}
u_getDataDirectory_78:
 1499|  36.1k|u_getDataDirectory() {
 1500|  36.1k|    umtx_initOnce(gDataDirInitOnce, &dataDirectoryInitFn);
 1501|  36.1k|    return gDataDirectory;
 1502|  36.1k|}
u_getTimeZoneFilesDirectory_78:
 1575|      3|u_getTimeZoneFilesDirectory(UErrorCode *status) {
 1576|      3|    umtx_initOnce(gTimeZoneFilesInitOnce, &TimeZoneDataDirInitFn, *status);
  ------------------
  |  |  122|      3|#define gTimeZoneFilesInitOnce U_ICU_ENTRY_POINT_RENAME(gTimeZoneFilesInitOnce)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1577|      3|    return U_SUCCESS(*status) ? gTimeZoneFilesDirectory->data() : "";
  ------------------
  |  Branch (1577:12): [True: 3, False: 0]
  ------------------
 1578|      3|}
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:_ZL14isValidOlsonIDPKc:
  726|      1|static UBool isValidOlsonID(const char *id) {
  727|      1|    int32_t idx = 0;
  728|      1|    int32_t idxMax = 0;
  729|       |
  730|       |    /* Determine if this is something like Iceland (Olson ID)
  731|       |    or AST4ADT (non-Olson ID) */
  732|      8|    while (id[idx] && isNonDigit(id[idx]) && id[idx] != ',') {
  ------------------
  |  |  724|     15|#define isNonDigit(ch) (ch < '0' || '9' < ch)
  |  |  ------------------
  |  |  |  Branch (724:25): [True: 1, False: 6]
  |  |  |  Branch (724:37): [True: 6, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (732:12): [True: 7, False: 1]
  |  Branch (732:46): [True: 7, False: 0]
  ------------------
  733|      7|        idx++;
  734|      7|    }
  735|       |
  736|       |    /* Allow at maximum 2 numbers at the end of the id to support zone id's
  737|       |    like GMT+11. */
  738|      1|    idxMax = idx + 2;
  739|      1|    while (id[idx] && isDigit(id[idx]) && idx < idxMax) {
  ------------------
  |  |  725|      1|#define isDigit(ch) ('0' <= ch && ch <= '9')
  |  |  ------------------
  |  |  |  Branch (725:22): [True: 0, False: 0]
  |  |  |  Branch (725:35): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (739:12): [True: 0, False: 1]
  |  Branch (739:43): [True: 0, False: 0]
  ------------------
  740|      0|        idx++;
  741|      0|    }
  742|       |
  743|       |    /* If we went through the whole string, then it might be okay.
  744|       |    The timezone is sometimes set to "CST-7CDT", "CST6CDT5,J129,J131/19:30",
  745|       |    "GRNLNDST3GRNLNDDT" or similar, so we cannot use it.
  746|       |    The rest of the time it could be an Olson ID. George */
  747|      1|    return id[idx] == 0
  ------------------
  |  Branch (747:12): [True: 1, False: 0]
  ------------------
  748|      1|        || uprv_strcmp(id, "PST8PDT") == 0
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (748:12): [True: 0, False: 0]
  ------------------
  749|      1|        || uprv_strcmp(id, "MST7MDT") == 0
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (749:12): [True: 0, False: 0]
  ------------------
  750|      1|        || uprv_strcmp(id, "CST6CDT") == 0
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (750:12): [True: 0, False: 0]
  ------------------
  751|      1|        || uprv_strcmp(id, "EST5EDT") == 0;
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (751:12): [True: 0, False: 0]
  ------------------
  752|      1|}
putil.cpp:_ZL16skipZoneIDPrefixPPKc:
  766|      1|static void skipZoneIDPrefix(const char** id) {
  767|      1|    if (uprv_strncmp(*id, "posix/", 6) == 0
  ------------------
  |  |   44|      1|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (767:9): [True: 0, False: 1]
  ------------------
  768|      1|        || uprv_strncmp(*id, "right/", 6) == 0)
  ------------------
  |  |   44|      1|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (768:12): [True: 0, False: 1]
  ------------------
  769|      0|    {
  770|      0|        *id += 6;
  771|      0|    }
  772|      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|   780k|ResourceValue::~ResourceValue() {}
_ZN6icu_7812ResourceSinkD2Ev:
   20|   226k|ResourceSink::~ResourceSink() {}

_ZN6icu_7812ResourceSinkC2Ev:
  266|   226k|    ResourceSink() {}
_ZNK6icu_7813ResourceValue16getUnicodeStringER10UErrorCode:
  141|  3.60M|    inline UnicodeString getUnicodeString(UErrorCode &errorCode) const {
  142|  3.60M|        int32_t len = 0;
  143|  3.60M|        const char16_t *r = getString(len, errorCode);
  144|  3.60M|        return UnicodeString(true, r, len);
  145|  3.60M|    }
_ZNK6icu_7813ResourceArray7getSizeEv:
   59|   360k|    int32_t getSize() const { return length; }
_ZN6icu_7813ResourceArrayC2Ev:
   48|      1|    ResourceArray() : items16(nullptr), items32(nullptr), length(0) {}
_ZN6icu_7813ResourceArrayC2EPKtPKjiRKNS_14ResourceTracerE:
   53|   360k|            items16(i16), items32(i32), length(len),
   54|   360k|            fTraceInfo(traceInfo) {}
_ZN6icu_7813ResourceTableC2EPKtPKiS2_PKjiRKNS_14ResourceTracerE:
   89|  2.37M|            keys16(k16), keys32(k32), items16(i16), items32(i32), length(len),
   90|  2.37M|            fTraceInfo(traceInfo) {}
_ZNK6icu_7813ResourceTable7getSizeEv:
   95|      2|    int32_t getSize() const { return length; }
_ZN6icu_7813ResourceValueC2Ev:
  254|   780k|    ResourceValue() {}

_ZN6icu_7814ResourceTracerC2Ev:
  116|   780k|    ResourceTracer() {}
_ZN6icu_7814ResourceTracerC2EPKv:
  118|  7.38M|    ResourceTracer(const void*) {}
_ZN6icu_7814ResourceTracerC2EPKvPKc:
  120|   170k|    ResourceTracer(const void*, const char*) {}
_ZN6icu_7814ResourceTracerC2EPKvi:
  122|   299k|    ResourceTracer(const void*, int32_t) {}
_ZN6icu_7814ResourceTracerC2ERKS0_PKc:
  124|  7.75M|    ResourceTracer(const ResourceTracer&, const char*) {}
_ZN6icu_7814ResourceTracerC2ERKS0_i:
  126|  1.45k|    ResourceTracer(const ResourceTracer&, int32_t) {}
_ZNK6icu_7814ResourceTracer5traceEPKc:
  128|  7.85M|    void trace(const char*) const {}
_ZNK6icu_7814ResourceTracer9traceOpenEv:
  130|   899k|    void traceOpen() const {}
_ZNK6icu_7814ResourceTracer10maybeTraceEPKc:
  132|   938k|    void maybeTrace(const char*) const {}
_ZN6icu_7810FileTracer9traceOpenEPKcS2_S2_:
  140|  36.1k|    static void traceOpen(const char*, const char*, const char*) {}

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

_ZN6icu_7812SharedObjectC2Ev:
   58|  39.7k|            softRefCount(0),
   59|  39.7k|            hardRefCount(0),
   60|  39.7k|            cachePtr(nullptr) {}
_ZN6icu_7812SharedObject7copyPtrINS_18DateFmtBestPatternEEEvPKT_RS5_:
  144|  15.5k|    static void copyPtr(const T *src, const T *&dest) {
  145|  15.5k|        if(src != dest) {
  ------------------
  |  Branch (145:12): [True: 15.5k, False: 0]
  ------------------
  146|  15.5k|            if(dest != nullptr) { dest->removeRef(); }
  ------------------
  |  Branch (146:16): [True: 0, False: 15.5k]
  ------------------
  147|  15.5k|            dest = src;
  148|  15.5k|            if(src != nullptr) { src->addRef(); }
  ------------------
  |  Branch (148:16): [True: 15.5k, False: 0]
  ------------------
  149|  15.5k|        }
  150|  15.5k|    }
_ZN6icu_7812SharedObject8clearPtrINS_18DateFmtBestPatternEEEvRPKT_:
  156|  15.5k|    static void clearPtr(const T *&ptr) {
  157|  15.5k|        if (ptr != nullptr) {
  ------------------
  |  Branch (157:13): [True: 15.5k, False: 0]
  ------------------
  158|  15.5k|            ptr->removeRef();
  159|  15.5k|            ptr = nullptr;
  160|  15.5k|        }
  161|  15.5k|    }
_ZN6icu_7816UnifiedCacheBaseC2Ev:
   30|      1|    UnifiedCacheBase() { }
_ZNK6icu_7812SharedObject16noHardReferencesEv:
   96|  74.4k|    inline UBool noHardReferences() const { return getRefCount() == 0; }
_ZN6icu_7812SharedObject8clearPtrINS_18SharedNumberFormatEEEvRPKT_:
  156|   105k|    static void clearPtr(const T *&ptr) {
  157|   105k|        if (ptr != nullptr) {
  ------------------
  |  Branch (157:13): [True: 60.7k, False: 44.4k]
  ------------------
  158|  60.7k|            ptr->removeRef();
  159|  60.7k|            ptr = nullptr;
  160|  60.7k|        }
  161|   105k|    }
_ZN6icu_7812SharedObject7copyPtrINS_18SharedNumberFormatEEEvPKT_RS5_:
  144|  62.5k|    static void copyPtr(const T *src, const T *&dest) {
  145|  62.5k|        if(src != dest) {
  ------------------
  |  Branch (145:12): [True: 62.5k, False: 7]
  ------------------
  146|  62.5k|            if(dest != nullptr) { dest->removeRef(); }
  ------------------
  |  Branch (146:16): [True: 288, False: 62.2k]
  ------------------
  147|  62.5k|            dest = src;
  148|  62.5k|            if(src != nullptr) { src->addRef(); }
  ------------------
  |  Branch (148:16): [True: 62.5k, False: 0]
  ------------------
  149|  62.5k|        }
  150|  62.5k|    }
_ZN6icu_7812SharedObject7copyPtrINS_14SharedCalendarEEEvPKT_RS5_:
  144|   106k|    static void copyPtr(const T *src, const T *&dest) {
  145|   106k|        if(src != dest) {
  ------------------
  |  Branch (145:12): [True: 106k, False: 0]
  ------------------
  146|   106k|            if(dest != nullptr) { dest->removeRef(); }
  ------------------
  |  Branch (146:16): [True: 0, False: 106k]
  ------------------
  147|   106k|            dest = src;
  148|   106k|            if(src != nullptr) { src->addRef(); }
  ------------------
  |  Branch (148:16): [True: 106k, False: 0]
  ------------------
  149|   106k|        }
  150|   106k|    }
_ZN6icu_7812SharedObject8clearPtrINS_14SharedCalendarEEEvRPKT_:
  156|   106k|    static void clearPtr(const T *&ptr) {
  157|   106k|        if (ptr != nullptr) {
  ------------------
  |  Branch (157:13): [True: 106k, False: 0]
  ------------------
  158|   106k|            ptr->removeRef();
  159|   106k|            ptr = nullptr;
  160|   106k|        }
  161|   106k|    }
_ZN6icu_7812SharedObject7copyPtrINS_23SharedDateFormatSymbolsEEEvPKT_RS5_:
  144|  78.0k|    static void copyPtr(const T *src, const T *&dest) {
  145|  78.0k|        if(src != dest) {
  ------------------
  |  Branch (145:12): [True: 78.0k, False: 0]
  ------------------
  146|  78.0k|            if(dest != nullptr) { dest->removeRef(); }
  ------------------
  |  Branch (146:16): [True: 0, False: 78.0k]
  ------------------
  147|  78.0k|            dest = src;
  148|  78.0k|            if(src != nullptr) { src->addRef(); }
  ------------------
  |  Branch (148:16): [True: 78.0k, False: 0]
  ------------------
  149|  78.0k|        }
  150|  78.0k|    }
_ZN6icu_7812SharedObject8clearPtrINS_23SharedDateFormatSymbolsEEEvRPKT_:
  156|  78.4k|    static void clearPtr(const T *&ptr) {
  157|  78.4k|        if (ptr != nullptr) {
  ------------------
  |  Branch (157:13): [True: 78.0k, False: 406]
  ------------------
  158|  78.0k|            ptr->removeRef();
  159|  78.0k|            ptr = nullptr;
  160|  78.0k|        }
  161|  78.4k|    }
_ZN6icu_7812SharedObject8clearPtrIS0_EEvRPKT_:
  156|  1.34k|    static void clearPtr(const T *&ptr) {
  157|  1.34k|        if (ptr != nullptr) {
  ------------------
  |  Branch (157:13): [True: 1.34k, False: 0]
  ------------------
  158|  1.34k|            ptr->removeRef();
  159|  1.34k|            ptr = nullptr;
  160|  1.34k|        }
  161|  1.34k|    }
_ZN6icu_7812SharedObject7copyPtrIS0_EEvPKT_RS4_:
  144|    270|    static void copyPtr(const T *src, const T *&dest) {
  145|    270|        if(src != dest) {
  ------------------
  |  Branch (145:12): [True: 270, False: 0]
  ------------------
  146|    270|            if(dest != nullptr) { dest->removeRef(); }
  ------------------
  |  Branch (146:16): [True: 0, False: 270]
  ------------------
  147|    270|            dest = src;
  148|    270|            if(src != nullptr) { src->addRef(); }
  ------------------
  |  Branch (148:16): [True: 270, False: 0]
  ------------------
  149|    270|        }
  150|    270|    }

_ZN6icu_7815SimpleFormatterD2Ev:
   61|  23.0k|SimpleFormatter::~SimpleFormatter() {}
_ZN6icu_7815SimpleFormatter27applyPatternMinMaxArgumentsERKNS_13UnicodeStringEiiR10UErrorCode:
   66|  24.4k|        UErrorCode &errorCode) {
   67|  24.4k|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (67:9): [True: 1.25k, False: 23.2k]
  ------------------
   68|  1.25k|        return false;
   69|  1.25k|    }
   70|       |    // Parse consistent with MessagePattern, but
   71|       |    // - support only simple numbered arguments
   72|       |    // - build a simple binary structure into the result string
   73|  23.2k|    const char16_t *patternBuffer = pattern.getBuffer();
   74|  23.2k|    int32_t patternLength = pattern.length();
   75|       |    // Reserve the first char for the number of arguments.
   76|  23.2k|    compiledPattern.setTo(static_cast<char16_t>(0));
   77|  23.2k|    int32_t textLength = 0;
   78|  23.2k|    int32_t maxArg = -1;
   79|  23.2k|    UBool inQuote = false;
   80|   126k|    for (int32_t i = 0; i < patternLength;) {
  ------------------
  |  Branch (80:25): [True: 103k, False: 23.2k]
  ------------------
   81|   103k|        char16_t c = patternBuffer[i++];
   82|   103k|        if (c == APOS) {
  ------------------
  |  Branch (82:13): [True: 2.36k, False: 100k]
  ------------------
   83|  2.36k|            if (i < patternLength && (c = patternBuffer[i]) == APOS) {
  ------------------
  |  Branch (83:17): [True: 2.34k, False: 20]
  |  Branch (83:38): [True: 0, False: 2.34k]
  ------------------
   84|       |                // double apostrophe, skip the second one
   85|      0|                ++i;
   86|  2.36k|            } else if (inQuote) {
  ------------------
  |  Branch (86:24): [True: 0, False: 2.36k]
  ------------------
   87|       |                // skip the quote-ending apostrophe
   88|      0|                inQuote = false;
   89|      0|                continue;
   90|  2.36k|            } else if (c == OPEN_BRACE || c == CLOSE_BRACE) {
  ------------------
  |  Branch (90:24): [True: 0, False: 2.36k]
  |  Branch (90:43): [True: 0, False: 2.36k]
  ------------------
   91|       |                // Skip the quote-starting apostrophe, find the end of the quoted literal text.
   92|      0|                ++i;
   93|      0|                inQuote = true;
   94|  2.36k|            } else {
   95|       |                // The apostrophe is part of literal text.
   96|  2.36k|                c = APOS;
   97|  2.36k|            }
   98|   100k|        } else if (!inQuote && c == OPEN_BRACE) {
  ------------------
  |  Branch (98:20): [True: 100k, False: 0]
  |  Branch (98:32): [True: 49.4k, False: 51.4k]
  ------------------
   99|  49.4k|            if (textLength > 0) {
  ------------------
  |  Branch (99:17): [True: 26.2k, False: 23.1k]
  ------------------
  100|  26.2k|                compiledPattern.setCharAt(compiledPattern.length() - textLength - 1,
  101|  26.2k|                                          static_cast<char16_t>(ARG_NUM_LIMIT + textLength));
  102|  26.2k|                textLength = 0;
  103|  26.2k|            }
  104|  49.4k|            int32_t argNumber;
  105|  49.4k|            if ((i + 1) < patternLength &&
  ------------------
  |  Branch (105:17): [True: 49.4k, False: 0]
  ------------------
  106|  49.4k|                    0 <= (argNumber = patternBuffer[i] - DIGIT_ZERO) && argNumber <= 9 &&
  ------------------
  |  Branch (106:21): [True: 49.4k, False: 0]
  |  Branch (106:73): [True: 49.4k, False: 0]
  ------------------
  107|  49.4k|                    patternBuffer[i + 1] == CLOSE_BRACE) {
  ------------------
  |  Branch (107:21): [True: 49.4k, False: 0]
  ------------------
  108|  49.4k|                i += 2;
  109|  49.4k|            } else {
  110|       |                // Multi-digit argument number (no leading zero) or syntax error.
  111|       |                // MessagePattern permits PatternProps.skipWhiteSpace(pattern, index)
  112|       |                // around the number, but this class does not.
  113|      0|                argNumber = -1;
  114|      0|                if (i < patternLength && DIGIT_ONE <= (c = patternBuffer[i++]) && c <= DIGIT_NINE) {
  ------------------
  |  Branch (114:21): [True: 0, False: 0]
  |  Branch (114:42): [True: 0, False: 0]
  |  Branch (114:83): [True: 0, False: 0]
  ------------------
  115|      0|                    argNumber = c - DIGIT_ZERO;
  116|      0|                    while (i < patternLength &&
  ------------------
  |  Branch (116:28): [True: 0, False: 0]
  ------------------
  117|      0|                            DIGIT_ZERO <= (c = patternBuffer[i++]) && c <= DIGIT_NINE) {
  ------------------
  |  Branch (117:29): [True: 0, False: 0]
  |  Branch (117:71): [True: 0, False: 0]
  ------------------
  118|      0|                        argNumber = argNumber * 10 + (c - DIGIT_ZERO);
  119|      0|                        if (argNumber >= ARG_NUM_LIMIT) {
  ------------------
  |  Branch (119:29): [True: 0, False: 0]
  ------------------
  120|      0|                            break;
  121|      0|                        }
  122|      0|                    }
  123|      0|                }
  124|      0|                if (argNumber < 0 || c != CLOSE_BRACE) {
  ------------------
  |  Branch (124:21): [True: 0, False: 0]
  |  Branch (124:38): [True: 0, False: 0]
  ------------------
  125|      0|                    errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  126|      0|                    return false;
  127|      0|                }
  128|      0|            }
  129|  49.4k|            if (argNumber > maxArg) {
  ------------------
  |  Branch (129:17): [True: 31.0k, False: 18.3k]
  ------------------
  130|  31.0k|                maxArg = argNumber;
  131|  31.0k|            }
  132|  49.4k|            compiledPattern.append(static_cast<char16_t>(argNumber));
  133|  49.4k|            continue;
  134|  49.4k|        }  // else: c is part of literal text
  135|       |        // Append c and track the literal-text segment length.
  136|  53.8k|        if (textLength == 0) {
  ------------------
  |  Branch (136:13): [True: 30.4k, False: 23.4k]
  ------------------
  137|       |            // Reserve a char for the length of a new text segment, preset the maximum length.
  138|  30.4k|            compiledPattern.append(SEGMENT_LENGTH_PLACEHOLDER_CHAR);
  139|  30.4k|        }
  140|  53.8k|        compiledPattern.append(c);
  141|  53.8k|        if (++textLength == MAX_SEGMENT_LENGTH) {
  ------------------
  |  Branch (141:13): [True: 0, False: 53.8k]
  ------------------
  142|      0|            textLength = 0;
  143|      0|        }
  144|  53.8k|    }
  145|  23.2k|    if (textLength > 0) {
  ------------------
  |  Branch (145:9): [True: 4.16k, False: 19.0k]
  ------------------
  146|  4.16k|        compiledPattern.setCharAt(compiledPattern.length() - textLength - 1,
  147|  4.16k|                                  static_cast<char16_t>(ARG_NUM_LIMIT + textLength));
  148|  4.16k|    }
  149|  23.2k|    int32_t argCount = maxArg + 1;
  150|  23.2k|    if (argCount < min || max < argCount) {
  ------------------
  |  Branch (150:9): [True: 33, False: 23.1k]
  |  Branch (150:27): [True: 0, False: 23.1k]
  ------------------
  151|     33|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  152|     33|        return false;
  153|     33|    }
  154|  23.1k|    compiledPattern.setCharAt(0, static_cast<char16_t>(argCount));
  155|  23.1k|    return true;
  156|  23.2k|}
_ZNK6icu_7815SimpleFormatter6formatERKNS_13UnicodeStringES3_RS1_R10UErrorCode:
  168|  13.0k|        UnicodeString &appendTo, UErrorCode &errorCode) const {
  169|  13.0k|    const UnicodeString *values[] = { &value0, &value1 };
  170|  13.0k|    return formatAndAppend(values, 2, appendTo, nullptr, 0, errorCode);
  171|  13.0k|}
_ZNK6icu_7815SimpleFormatter15formatAndAppendEPKPKNS_13UnicodeStringEiRS1_PiiR10UErrorCode:
  185|  13.0k|        int32_t *offsets, int32_t offsetsLength, UErrorCode &errorCode) const {
  186|  13.0k|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (186:9): [True: 1.29k, False: 11.7k]
  ------------------
  187|  1.29k|        return appendTo;
  188|  1.29k|    }
  189|  11.7k|    if (isInvalidArray(values, valuesLength) || isInvalidArray(offsets, offsetsLength) ||
  ------------------
  |  Branch (189:9): [True: 0, False: 11.7k]
  |  Branch (189:49): [True: 0, False: 11.7k]
  ------------------
  190|  11.7k|            valuesLength < getArgumentLimit()) {
  ------------------
  |  Branch (190:13): [True: 0, False: 11.7k]
  ------------------
  191|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  192|      0|        return appendTo;
  193|      0|    }
  194|  11.7k|    return format(compiledPattern.getBuffer(), compiledPattern.length(), values,
  195|  11.7k|                  appendTo, nullptr, true,
  196|  11.7k|                  offsets, offsetsLength, errorCode);
  197|  11.7k|}
_ZNK6icu_7815SimpleFormatter16formatAndReplaceEPKPKNS_13UnicodeStringEiRS1_PiiR10UErrorCode:
  202|  7.25k|        int32_t *offsets, int32_t offsetsLength, UErrorCode &errorCode) const {
  203|  7.25k|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (203:9): [True: 0, False: 7.25k]
  ------------------
  204|      0|        return result;
  205|      0|    }
  206|  7.25k|    if (isInvalidArray(values, valuesLength) || isInvalidArray(offsets, offsetsLength)) {
  ------------------
  |  Branch (206:9): [True: 0, False: 7.25k]
  |  Branch (206:49): [True: 0, False: 7.25k]
  ------------------
  207|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  208|      0|        return result;
  209|      0|    }
  210|  7.25k|    const char16_t *cp = compiledPattern.getBuffer();
  211|  7.25k|    int32_t cpLength = compiledPattern.length();
  212|  7.25k|    if (valuesLength < getArgumentLimit(cp, cpLength)) {
  ------------------
  |  Branch (212:9): [True: 0, False: 7.25k]
  ------------------
  213|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  214|      0|        return result;
  215|      0|    }
  216|       |
  217|       |    // If the pattern starts with an argument whose value is the same object
  218|       |    // as the result, then we keep the result contents and append to it.
  219|       |    // Otherwise we replace its contents.
  220|  7.25k|    int32_t firstArg = -1;
  221|       |    // If any non-initial argument value is the same object as the result,
  222|       |    // then we first copy its contents and use that instead while formatting.
  223|  7.25k|    UnicodeString resultCopy;
  224|  7.25k|    if (getArgumentLimit(cp, cpLength) > 0) {
  ------------------
  |  Branch (224:9): [True: 7.25k, False: 0]
  ------------------
  225|  39.0k|        for (int32_t i = 1; i < cpLength;) {
  ------------------
  |  Branch (225:29): [True: 31.7k, False: 7.25k]
  ------------------
  226|  31.7k|            int32_t n = cp[i++];
  227|  31.7k|            if (n < ARG_NUM_LIMIT) {
  ------------------
  |  Branch (227:17): [True: 17.8k, False: 13.9k]
  ------------------
  228|  17.8k|                if (values[n] == &result) {
  ------------------
  |  Branch (228:21): [True: 7.25k, False: 10.5k]
  ------------------
  229|  7.25k|                    if (i == 2) {
  ------------------
  |  Branch (229:25): [True: 6.86k, False: 390]
  ------------------
  230|  6.86k|                        firstArg = n;
  231|  6.86k|                    } else if (resultCopy.isEmpty() && !result.isEmpty()) {
  ------------------
  |  Branch (231:32): [True: 390, False: 0]
  |  Branch (231:56): [True: 389, False: 1]
  ------------------
  232|    389|                        resultCopy = result;
  233|    389|                    }
  234|  7.25k|                }
  235|  17.8k|            } else {
  236|  13.9k|                i += n - ARG_NUM_LIMIT;
  237|  13.9k|            }
  238|  31.7k|        }
  239|  7.25k|    }
  240|  7.25k|    if (firstArg < 0) {
  ------------------
  |  Branch (240:9): [True: 390, False: 6.86k]
  ------------------
  241|    390|        result.remove();
  242|    390|    }
  243|  7.25k|    return format(cp, cpLength, values,
  244|  7.25k|                  result, &resultCopy, false,
  245|  7.25k|                  offsets, offsetsLength, errorCode);
  246|  7.25k|}
_ZN6icu_7815SimpleFormatter6formatEPKDsiPKPKNS_13UnicodeStringERS3_S5_aPiiR10UErrorCode:
  279|  19.0k|        UErrorCode &errorCode) {
  280|  19.0k|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (280:9): [True: 0, False: 19.0k]
  ------------------
  281|      0|        return result;
  282|      0|    }
  283|  19.0k|    for (int32_t i = 0; i < offsetsLength; i++) {
  ------------------
  |  Branch (283:25): [True: 0, False: 19.0k]
  ------------------
  284|      0|        offsets[i] = -1;
  285|      0|    }
  286|  86.1k|    for (int32_t i = 1; i < compiledPatternLength;) {
  ------------------
  |  Branch (286:25): [True: 67.1k, False: 19.0k]
  ------------------
  287|  67.1k|        int32_t n = compiledPattern[i++];
  288|  67.1k|        if (n < ARG_NUM_LIMIT) {
  ------------------
  |  Branch (288:13): [True: 41.3k, False: 25.7k]
  ------------------
  289|  41.3k|            const UnicodeString *value = values[n];
  290|  41.3k|            if (value == nullptr) {
  ------------------
  |  Branch (290:17): [True: 0, False: 41.3k]
  ------------------
  291|      0|                errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  292|      0|                return result;
  293|      0|            }
  294|  41.3k|            if (value == &result) {
  ------------------
  |  Branch (294:17): [True: 7.25k, False: 34.0k]
  ------------------
  295|  7.25k|                if (forbidResultAsValue) {
  ------------------
  |  Branch (295:21): [True: 0, False: 7.25k]
  ------------------
  296|      0|                    errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  297|      0|                    return result;
  298|      0|                }
  299|  7.25k|                if (i == 2) {
  ------------------
  |  Branch (299:21): [True: 6.86k, False: 390]
  ------------------
  300|       |                    // We are appending to result which is also the first value object.
  301|  6.86k|                    if (n < offsetsLength) {
  ------------------
  |  Branch (301:25): [True: 0, False: 6.86k]
  ------------------
  302|      0|                        offsets[n] = 0;
  303|      0|                    }
  304|  6.86k|                } else {
  305|    390|                    if (n < offsetsLength) {
  ------------------
  |  Branch (305:25): [True: 0, False: 390]
  ------------------
  306|      0|                        offsets[n] = result.length();
  307|      0|                    }
  308|    390|                    result.append(*resultCopy);
  309|    390|                }
  310|  34.0k|            } else {
  311|  34.0k|                if (n < offsetsLength) {
  ------------------
  |  Branch (311:21): [True: 0, False: 34.0k]
  ------------------
  312|      0|                    offsets[n] = result.length();
  313|      0|                }
  314|  34.0k|                result.append(*value);
  315|  34.0k|            }
  316|  41.3k|        } else {
  317|  25.7k|            int32_t length = n - ARG_NUM_LIMIT;
  318|  25.7k|            result.append(compiledPattern + i, length);
  319|  25.7k|            i += length;
  320|  25.7k|        }
  321|  67.1k|    }
  322|  19.0k|    return result;
  323|  19.0k|}
simpleformatter.cpp:_ZN6icu_7812_GLOBAL__N_114isInvalidArrayEPKvi:
   47|  38.0k|inline UBool isInvalidArray(const void *array, int32_t length) {
   48|  38.0k|   return (length < 0 || (array == nullptr && length != 0));
  ------------------
  |  Branch (48:12): [True: 0, False: 38.0k]
  |  Branch (48:27): [True: 19.0k, False: 19.0k]
  |  Branch (48:47): [True: 0, False: 19.0k]
  ------------------
   49|  38.0k|}

_ZN6icu_7811StringPieceC2EPKc:
   19|  11.4M|    : ptr_(str), length_((str == nullptr) ? 0 : static_cast<int32_t>(uprv_strlen(str))) { }
  ------------------
  |  |   37|  11.4M|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  11.4M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (19:26): [True: 0, False: 11.4M]
  ------------------
_ZN6icu_7811StringPiece7compareES0_:
   73|  3.92M|int32_t StringPiece::compare(StringPiece other) {
   74|  3.92M|  int32_t i = 0;
   75|  9.64M|  for (; i < length(); i++) {
  ------------------
  |  Branch (75:10): [True: 8.62M, False: 1.02M]
  ------------------
   76|  8.62M|    if (i == other.length()) {
  ------------------
  |  Branch (76:9): [True: 60, False: 8.61M]
  ------------------
   77|       |      // this is longer
   78|     60|      return 1;
   79|     60|    }
   80|  8.61M|    char a = data()[i];
   81|  8.61M|    char b = other.data()[i];
   82|  8.61M|    if (a < b) {
  ------------------
  |  Branch (82:9): [True: 1.94M, False: 6.67M]
  ------------------
   83|  1.94M|      return -1;
   84|  6.67M|    } else if (a > b) {
  ------------------
  |  Branch (84:16): [True: 957k, False: 5.71M]
  ------------------
   85|   957k|      return 1;
   86|   957k|    }
   87|  8.61M|  }
   88|  1.02M|  if (i < other.length()) {
  ------------------
  |  Branch (88:7): [True: 74.0k, False: 952k]
  ------------------
   89|       |    // other is longer
   90|  74.0k|    return -1;
   91|  74.0k|  }
   92|   952k|  return 0;
   93|  1.02M|}

uprv_stableBinarySearch_78:
   76|  36.4k|                        UComparator *cmp, const void *context) {
   77|  36.4k|    int32_t start=0;
   78|  36.4k|    UBool found=false;
   79|       |
   80|       |    /* Binary search until we get down to a tiny sub-array. */
   81|  36.4k|    while((limit-start)>=MIN_QSORT) {
  ------------------
  |  Branch (81:11): [True: 0, False: 36.4k]
  ------------------
   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|   126k|    while(start<limit) {
  ------------------
  |  Branch (106:11): [True: 93.7k, False: 32.6k]
  ------------------
  107|  93.7k|        int32_t diff=cmp(context, item, array+start*itemSize);
  108|  93.7k|        if(diff==0) {
  ------------------
  |  Branch (108:12): [True: 0, False: 93.7k]
  ------------------
  109|      0|            found=true;
  110|  93.7k|        } else if(diff<0) {
  ------------------
  |  Branch (110:19): [True: 3.78k, False: 89.9k]
  ------------------
  111|  3.78k|            break;
  112|  3.78k|        }
  113|  89.9k|        ++start;
  114|  89.9k|    }
  115|  36.4k|    return found ? (start-1) : ~start;
  ------------------
  |  Branch (115:12): [True: 0, False: 36.4k]
  ------------------
  116|  36.4k|}
uprv_sortArray_78:
  258|  29.9k|               UBool sortStable, UErrorCode *pErrorCode) {
  259|  29.9k|    if(pErrorCode==nullptr || U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (259:8): [True: 0, False: 29.9k]
  |  Branch (259:31): [True: 0, False: 29.9k]
  ------------------
  260|      0|        return;
  261|      0|    }
  262|  29.9k|    if((length>0 && array==nullptr) || length<0 || itemSize<=0 || cmp==nullptr) {
  ------------------
  |  Branch (262:9): [True: 29.2k, False: 716]
  |  Branch (262:21): [True: 0, False: 29.2k]
  |  Branch (262:40): [True: 0, False: 29.9k]
  |  Branch (262:52): [True: 0, False: 29.9k]
  |  Branch (262:67): [True: 0, False: 29.9k]
  ------------------
  263|      0|        *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
  264|      0|        return;
  265|      0|    }
  266|       |
  267|  29.9k|    if(length<=1) {
  ------------------
  |  Branch (267:8): [True: 22.1k, False: 7.77k]
  ------------------
  268|  22.1k|        return;
  269|  22.1k|    } else if(length<MIN_QSORT || sortStable) {
  ------------------
  |  Branch (269:15): [True: 4.95k, False: 2.81k]
  |  Branch (269:35): [True: 0, False: 2.81k]
  ------------------
  270|  4.95k|        insertionSort((char *)array, length, itemSize, cmp, context, pErrorCode);
  271|  4.95k|    } else {
  272|  2.81k|        quickSort((char *)array, length, itemSize, cmp, context, pErrorCode);
  273|  2.81k|    }
  274|  29.9k|}
uarrsort.cpp:_ZL13insertionSortPciiPFiPKvS1_S1_ES1_P10UErrorCode:
  142|  4.95k|              UComparator *cmp, const void *context, UErrorCode *pErrorCode) {
  143|       |
  144|  4.95k|    icu::MaybeStackArray<std::max_align_t, sizeInMaxAlignTs(STACK_ITEM_SIZE)> v;
  145|  4.95k|    if (sizeInMaxAlignTs(itemSize) > v.getCapacity() &&
  ------------------
  |  Branch (145:9): [True: 0, False: 4.95k]
  ------------------
  146|  4.95k|            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|  4.95k|    doInsertionSort(array, length, itemSize, cmp, context, v.getAlias());
  152|  4.95k|}
uarrsort.cpp:_ZL16sizeInMaxAlignTsi:
   39|  10.5k|static constexpr int32_t sizeInMaxAlignTs(int32_t sizeInBytes) {
   40|  10.5k|    return (sizeInBytes + sizeof(std::max_align_t) - 1) / sizeof(std::max_align_t);
   41|  10.5k|}
uarrsort.cpp:_ZL15doInsertionSortPciiPFiPKvS1_S1_ES1_Pv:
  120|  10.9k|                UComparator *cmp, const void *context, void *pv) {
  121|  10.9k|    int32_t j;
  122|       |
  123|  47.3k|    for(j=1; j<length; ++j) {
  ------------------
  |  Branch (123:14): [True: 36.4k, False: 10.9k]
  ------------------
  124|  36.4k|        char *item=array+j*itemSize;
  125|  36.4k|        int32_t insertionPoint=uprv_stableBinarySearch(array, j, item, itemSize, cmp, context);
  ------------------
  |  | 1539|  36.4k|#define uprv_stableBinarySearch U_ICU_ENTRY_POINT_RENAME(uprv_stableBinarySearch)
  |  |  ------------------
  |  |  |  |  123|  36.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  36.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  36.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  126|  36.4k|        if(insertionPoint<0) {
  ------------------
  |  Branch (126:12): [True: 36.4k, False: 0]
  ------------------
  127|  36.4k|            insertionPoint=~insertionPoint;
  128|  36.4k|        } else {
  129|      0|            ++insertionPoint;  /* one past the last equal item */
  130|      0|        }
  131|  36.4k|        if(insertionPoint<j) {
  ------------------
  |  Branch (131:12): [True: 3.78k, False: 32.6k]
  ------------------
  132|  3.78k|            char *dest=array+insertionPoint*itemSize;
  133|  3.78k|            uprv_memcpy(pv, item, itemSize);  /* v=array[j] */
  ------------------
  |  |   42|  3.78k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  3.78k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  3.78k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  3.78k|    _Pragma("clang diagnostic push") \
  |  |   45|  3.78k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  3.78k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.78k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  3.78k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.78k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  3.78k|    _Pragma("clang diagnostic pop") \
  |  |   49|  3.78k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  3.78k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  3.78k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  3.78k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  134|  3.78k|            uprv_memmove(dest+itemSize, dest, (j-insertionPoint)*(size_t)itemSize);
  ------------------
  |  |   51|  3.78k|#define uprv_memmove(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  3.78k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   52|  3.78k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   53|  3.78k|    _Pragma("clang diagnostic push") \
  |  |   54|  3.78k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   55|  3.78k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.78k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   56|  3.78k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.78k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   57|  3.78k|    _Pragma("clang diagnostic pop") \
  |  |   58|  3.78k|    U_STANDARD_CPP_NAMESPACE memmove(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  3.78k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   59|  3.78k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  3.78k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  135|  3.78k|            uprv_memcpy(dest, pv, itemSize);  /* array[insertionPoint]=v */
  ------------------
  |  |   42|  3.78k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  3.78k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  3.78k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  3.78k|    _Pragma("clang diagnostic push") \
  |  |   45|  3.78k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  3.78k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.78k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  3.78k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.78k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  3.78k|    _Pragma("clang diagnostic pop") \
  |  |   49|  3.78k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  3.78k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  3.78k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  3.78k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  136|  3.78k|        }
  137|  36.4k|    }
  138|  10.9k|}
uarrsort.cpp:_ZL9quickSortPciiPFiPKvS1_S1_ES1_P10UErrorCode:
  236|  2.81k|            UComparator *cmp, const void *context, UErrorCode *pErrorCode) {
  237|       |    /* allocate two intermediate item variables (x and w) */
  238|  2.81k|    icu::MaybeStackArray<std::max_align_t, sizeInMaxAlignTs(STACK_ITEM_SIZE) * 2> xw;
  239|  2.81k|    if(sizeInMaxAlignTs(itemSize)*2 > xw.getCapacity() &&
  ------------------
  |  Branch (239:8): [True: 0, False: 2.81k]
  ------------------
  240|  2.81k|            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|  2.81k|    subQuickSort(array, 0, length, itemSize, cmp, context,
  246|  2.81k|                 xw.getAlias(), xw.getAlias() + sizeInMaxAlignTs(itemSize));
  247|  2.81k|}
uarrsort.cpp:_ZL12subQuickSortPciiiPFiPKvS1_S1_ES1_PvS4_:
  171|  5.96k|             void *px, void *pw) {
  172|  5.96k|    int32_t left, right;
  173|       |
  174|       |    /* start and left are inclusive, limit and right are exclusive */
  175|  9.26k|    do {
  176|  9.26k|        if((start+MIN_QSORT)>=limit) {
  ------------------
  |  Branch (176:12): [True: 5.96k, False: 3.30k]
  ------------------
  177|  5.96k|            doInsertionSort(array+start*itemSize, limit-start, itemSize, cmp, context, px);
  178|  5.96k|            break;
  179|  5.96k|        }
  180|       |
  181|  3.30k|        left=start;
  182|  3.30k|        right=limit;
  183|       |
  184|       |        /* x=array[middle] */
  185|  3.30k|        uprv_memcpy(px, array+(size_t)((start+limit)/2)*itemSize, itemSize);
  ------------------
  |  |   42|  3.30k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  3.30k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  3.30k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  3.30k|    _Pragma("clang diagnostic push") \
  |  |   45|  3.30k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  3.30k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.30k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  3.30k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.30k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  3.30k|    _Pragma("clang diagnostic pop") \
  |  |   49|  3.30k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  3.30k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  3.30k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  3.30k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  186|       |
  187|  4.53k|        do {
  188|  4.53k|            while(/* array[left]<x */
  189|  23.0k|                  cmp(context, array+left*itemSize, px)<0
  ------------------
  |  Branch (189:19): [True: 18.5k, False: 4.53k]
  ------------------
  190|  18.5k|            ) {
  191|  18.5k|                ++left;
  192|  18.5k|            }
  193|  4.53k|            while(/* x<array[right-1] */
  194|  20.7k|                  cmp(context, px, array+(right-1)*itemSize)<0
  ------------------
  |  Branch (194:19): [True: 16.1k, False: 4.53k]
  ------------------
  195|  16.1k|            ) {
  196|  16.1k|                --right;
  197|  16.1k|            }
  198|       |
  199|       |            /* swap array[left] and array[right-1] via w; ++left; --right */
  200|  4.53k|            if(left<right) {
  ------------------
  |  Branch (200:16): [True: 4.22k, False: 308]
  ------------------
  201|  4.22k|                --right;
  202|       |
  203|  4.22k|                if(left<right) {
  ------------------
  |  Branch (203:20): [True: 1.37k, False: 2.84k]
  ------------------
  204|  1.37k|                    uprv_memcpy(pw, array+(size_t)left*itemSize, itemSize);
  ------------------
  |  |   42|  1.37k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  1.37k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  1.37k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  1.37k|    _Pragma("clang diagnostic push") \
  |  |   45|  1.37k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  1.37k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.37k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  1.37k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.37k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  1.37k|    _Pragma("clang diagnostic pop") \
  |  |   49|  1.37k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  1.37k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  1.37k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  1.37k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  205|  1.37k|                    uprv_memcpy(array+(size_t)left*itemSize, array+(size_t)right*itemSize, itemSize);
  ------------------
  |  |   42|  1.37k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  1.37k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  1.37k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  1.37k|    _Pragma("clang diagnostic push") \
  |  |   45|  1.37k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  1.37k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.37k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  1.37k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.37k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  1.37k|    _Pragma("clang diagnostic pop") \
  |  |   49|  1.37k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  1.37k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  1.37k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  1.37k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  206|  1.37k|                    uprv_memcpy(array+(size_t)right*itemSize, pw, itemSize);
  ------------------
  |  |   42|  1.37k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  1.37k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  1.37k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  1.37k|    _Pragma("clang diagnostic push") \
  |  |   45|  1.37k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  1.37k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.37k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  1.37k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.37k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  1.37k|    _Pragma("clang diagnostic pop") \
  |  |   49|  1.37k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  1.37k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  1.37k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  1.37k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  207|  1.37k|                }
  208|       |
  209|  4.22k|                ++left;
  210|  4.22k|            }
  211|  4.53k|        } while(left<right);
  ------------------
  |  Branch (211:17): [True: 1.23k, False: 3.30k]
  ------------------
  212|       |
  213|       |        /* sort sub-arrays */
  214|  3.30k|        if((right-start)<(limit-left)) {
  ------------------
  |  Branch (214:12): [True: 184, False: 3.11k]
  ------------------
  215|       |            /* sort [start..right[ */
  216|    184|            if(start<(right-1)) {
  ------------------
  |  Branch (216:16): [True: 122, False: 62]
  ------------------
  217|    122|                subQuickSort(array, start, right, itemSize, cmp, context, px, pw);
  218|    122|            }
  219|       |
  220|       |            /* sort [left..limit[ */
  221|    184|            start=left;
  222|  3.11k|        } else {
  223|       |            /* sort [left..limit[ */
  224|  3.11k|            if(left<(limit-1)) {
  ------------------
  |  Branch (224:16): [True: 3.02k, False: 92]
  ------------------
  225|  3.02k|                subQuickSort(array, left, limit, itemSize, cmp, context, px, pw);
  226|  3.02k|            }
  227|       |
  228|       |            /* sort [start..right[ */
  229|  3.11k|            limit=right;
  230|  3.11k|        }
  231|  3.30k|    } while(start<(limit-1));
  ------------------
  |  Branch (231:13): [True: 3.30k, False: 0]
  ------------------
  232|  5.96k|}

ucase_toFullFolding_78:
 1540|  3.55k|                    uint32_t options) {
 1541|       |    // The sign of the result has meaning, input must be non-negative so that it can be returned as is.
 1542|  3.55k|    U_ASSERT(c >= 0);
  ------------------
  |  |   35|  3.55k|#   define U_ASSERT(exp) (void)0
  ------------------
 1543|  3.55k|    UChar32 result=c;
 1544|       |    // Reset the output pointer in case it was uninitialized.
 1545|  3.55k|    *pString=nullptr;
 1546|  3.55k|    uint16_t props=UTRIE2_GET16(&ucase_props_singleton.trie, c);
  ------------------
  |  |  360|  3.55k|#define UTRIE2_GET16(trie, c) _UTRIE2_GET((trie), index, (trie)->indexLength, (c))
  |  |  ------------------
  |  |  |  |  871|  3.55k|    (trie)->data[_UTRIE2_INDEX_FROM_CP(trie, asciiOffset, c)]
  |  |  |  |  ------------------
  |  |  |  |  |  |  845|  3.55k|    ((uint32_t)(c)<0xd800 ? \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (845:6): [True: 3.55k, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  846|  3.55k|        _UTRIE2_INDEX_RAW(0, (trie)->index, c) : \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  815|  3.55k|    (((int32_t)((trieIndex)[(offset)+((c)>>UTRIE2_SHIFT_2)]) \
  |  |  |  |  |  |  |  |  816|  3.55k|    <<UTRIE2_INDEX_SHIFT)+ \
  |  |  |  |  |  |  |  |  817|  3.55k|    ((c)&UTRIE2_DATA_MASK))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  847|  3.55k|        (uint32_t)(c)<=0xffff ? \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (847:9): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  848|      0|            _UTRIE2_INDEX_RAW( \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  815|      0|    (((int32_t)((trieIndex)[(offset)+((c)>>UTRIE2_SHIFT_2)]) \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (815:30): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  816|      0|    <<UTRIE2_INDEX_SHIFT)+ \
  |  |  |  |  |  |  |  |  817|      0|    ((c)&UTRIE2_DATA_MASK))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  849|      0|                (c)<=0xdbff ? UTRIE2_LSCP_INDEX_2_OFFSET-(0xd800>>UTRIE2_SHIFT_2) : 0, \
  |  |  |  |  |  |  850|      0|                (trie)->index, c) : \
  |  |  |  |  |  |  851|      0|            (uint32_t)(c)>0x10ffff ? \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (851:13): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  852|      0|                (asciiOffset)+UTRIE2_BAD_UTF8_DATA_OFFSET : \
  |  |  |  |  |  |  853|      0|                (c)>=(trie)->highStart ? \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (853:17): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  854|      0|                    (trie)->highValueIndex : \
  |  |  |  |  |  |  855|      0|                    _UTRIE2_INDEX_FROM_SUPP((trie)->index, c))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  833|      0|    (((int32_t)((trieIndex)[ \
  |  |  |  |  |  |  |  |  834|      0|        (trieIndex)[(UTRIE2_INDEX_1_OFFSET-UTRIE2_OMITTED_BMP_INDEX_1_LENGTH)+ \
  |  |  |  |  |  |  |  |  835|      0|                      ((c)>>UTRIE2_SHIFT_1)]+ \
  |  |  |  |  |  |  |  |  836|      0|        (((c)>>UTRIE2_SHIFT_2)&UTRIE2_INDEX_2_MASK)]) \
  |  |  |  |  |  |  |  |  837|      0|    <<UTRIE2_INDEX_SHIFT)+ \
  |  |  |  |  |  |  |  |  838|      0|    ((c)&UTRIE2_DATA_MASK))
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1547|  3.55k|    if(!UCASE_HAS_EXCEPTION(props)) {
  ------------------
  |  |  380|  3.55k|#define UCASE_HAS_EXCEPTION(props) ((props)&UCASE_EXCEPTION)
  |  |  ------------------
  |  |  |  |  377|  3.55k|#define UCASE_EXCEPTION         8
  |  |  ------------------
  ------------------
  |  Branch (1547:8): [True: 3.44k, False: 107]
  ------------------
 1548|  3.44k|        if(UCASE_IS_UPPER_OR_TITLE(props)) {
  ------------------
  |  |  374|  3.44k|#define UCASE_IS_UPPER_OR_TITLE(props) ((props)&2)
  |  |  ------------------
  |  |  |  Branch (374:40): [True: 1.71k, False: 1.73k]
  |  |  ------------------
  ------------------
 1549|  1.71k|            result=c+UCASE_GET_DELTA(props);
  ------------------
  |  |  397|  1.71k|#   define UCASE_GET_DELTA(props) ((int16_t)(props)>>UCASE_DELTA_SHIFT)
  |  |  ------------------
  |  |  |  |  391|  1.71k|#define UCASE_DELTA_SHIFT   7
  |  |  ------------------
  ------------------
 1550|  1.71k|        }
 1551|  3.44k|    } else {
 1552|    107|        const uint16_t *pe=GET_EXCEPTIONS(&ucase_props_singleton, props), *pe2;
  ------------------
  |  |   79|    107|#define GET_EXCEPTIONS(csp, props) ((csp)->exceptions+((props)>>UCASE_EXC_SHIFT))
  |  |  ------------------
  |  |  |  |  403|    107|#define UCASE_EXC_SHIFT     4
  |  |  ------------------
  ------------------
 1553|    107|        uint16_t excWord=*pe++;
 1554|    107|        int32_t full, idx;
 1555|       |
 1556|    107|        pe2=pe;
 1557|       |
 1558|    107|        if(excWord&UCASE_EXC_CONDITIONAL_FOLD) {
  ------------------
  |  |  445|    107|#define UCASE_EXC_CONDITIONAL_FOLD      0x8000
  ------------------
  |  Branch (1558:12): [True: 12, False: 95]
  ------------------
 1559|       |            /* use hardcoded conditions and mappings */
 1560|     12|            if((options&_FOLD_CASE_OPTIONS_MASK)==U_FOLD_CASE_DEFAULT) {
  ------------------
  |  |   83|     12|#define _FOLD_CASE_OPTIONS_MASK 7
  ------------------
                          if((options&_FOLD_CASE_OPTIONS_MASK)==U_FOLD_CASE_DEFAULT) {
  ------------------
  |  |   22|     12|#define U_FOLD_CASE_DEFAULT 0
  ------------------
  |  Branch (1560:16): [True: 12, False: 0]
  ------------------
 1561|       |                /* default mappings */
 1562|     12|                if(c==0x49) {
  ------------------
  |  Branch (1562:20): [True: 12, False: 0]
  ------------------
 1563|       |                    /* 0049; C; 0069; # LATIN CAPITAL LETTER I */
 1564|     12|                    return 0x69;
 1565|     12|                } else if(c==0x130) {
  ------------------
  |  Branch (1565:27): [True: 0, False: 0]
  ------------------
 1566|       |                    /* 0130; F; 0069 0307; # LATIN CAPITAL LETTER I WITH DOT ABOVE */
 1567|      0|                    *pString=iDot;
 1568|      0|                    return 2;
 1569|      0|                }
 1570|     12|            } else {
 1571|       |                /* Turkic mappings */
 1572|      0|                if(c==0x49) {
  ------------------
  |  Branch (1572:20): [True: 0, False: 0]
  ------------------
 1573|       |                    /* 0049; T; 0131; # LATIN CAPITAL LETTER I */
 1574|      0|                    return 0x131;
 1575|      0|                } else if(c==0x130) {
  ------------------
  |  Branch (1575:27): [True: 0, False: 0]
  ------------------
 1576|       |                    /* 0130; T; 0069; # LATIN CAPITAL LETTER I WITH DOT ABOVE */
 1577|      0|                    return 0x69;
 1578|      0|                }
 1579|      0|            }
 1580|     95|        } else if(HAS_SLOT(excWord, UCASE_EXC_FULL_MAPPINGS)) {
  ------------------
  |  |  101|     95|#define HAS_SLOT(flags, idx) ((flags)&(1<<(idx)))
  |  |  ------------------
  |  |  |  Branch (101:30): [True: 0, False: 95]
  |  |  ------------------
  ------------------
 1581|      0|            GET_SLOT_VALUE(excWord, UCASE_EXC_FULL_MAPPINGS, pe, full);
  ------------------
  |  |  113|      0|#define GET_SLOT_VALUE(excWord, idx, pExc16, value) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      0|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  114|      0|    if(((excWord)&UCASE_EXC_DOUBLE_SLOTS)==0) { \
  |  |  ------------------
  |  |  |  |  423|      0|#define UCASE_EXC_DOUBLE_SLOTS      0x100
  |  |  ------------------
  |  |  |  Branch (114:8): [True: 0, False: 0]
  |  |  ------------------
  |  |  115|      0|        (pExc16)+=SLOT_OFFSET(excWord, idx); \
  |  |  ------------------
  |  |  |  |  102|      0|#define SLOT_OFFSET(flags, idx) flagsOffset[(flags)&((1<<(idx))-1)]
  |  |  ------------------
  |  |  116|      0|        (value)=*pExc16; \
  |  |  117|      0|    } else { \
  |  |  118|      0|        (pExc16)+=2*SLOT_OFFSET(excWord, idx); \
  |  |  ------------------
  |  |  |  |  102|      0|#define SLOT_OFFSET(flags, idx) flagsOffset[(flags)&((1<<(idx))-1)]
  |  |  ------------------
  |  |  119|      0|        (value)=*pExc16++; \
  |  |  120|      0|        (value)=((value)<<16)|*pExc16; \
  |  |  121|      0|    } \
  |  |  122|      0|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      0|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1582|       |
 1583|       |            /* start of full case mapping strings */
 1584|      0|            ++pe;
 1585|       |
 1586|       |            /* skip the lowercase result string */
 1587|      0|            pe+=full&UCASE_FULL_LOWER;
  ------------------
  |  |  448|      0|#define UCASE_FULL_LOWER    0xf
  ------------------
 1588|      0|            full=(full>>4)&0xf;
 1589|       |
 1590|      0|            if(full!=0) {
  ------------------
  |  Branch (1590:16): [True: 0, False: 0]
  ------------------
 1591|       |                /* set the output pointer to the result string */
 1592|      0|                *pString=reinterpret_cast<const char16_t *>(pe);
 1593|       |
 1594|       |                /* return the string length */
 1595|      0|                return full;
 1596|      0|            }
 1597|      0|        }
 1598|       |
 1599|     95|        if((excWord&UCASE_EXC_NO_SIMPLE_CASE_FOLDING)!=0) {
  ------------------
  |  Branch (1599:12): [True: 0, False: 95]
  ------------------
 1600|      0|            return ~c;
 1601|      0|        }
 1602|     95|        if(HAS_SLOT(excWord, UCASE_EXC_DELTA) && UCASE_IS_UPPER_OR_TITLE(props)) {
  ------------------
  |  |  101|    190|#define HAS_SLOT(flags, idx) ((flags)&(1<<(idx)))
  |  |  ------------------
  |  |  |  Branch (101:30): [True: 45, False: 50]
  |  |  ------------------
  ------------------
                      if(HAS_SLOT(excWord, UCASE_EXC_DELTA) && UCASE_IS_UPPER_OR_TITLE(props)) {
  ------------------
  |  |  374|     45|#define UCASE_IS_UPPER_OR_TITLE(props) ((props)&2)
  |  |  ------------------
  |  |  |  Branch (374:40): [True: 15, False: 30]
  |  |  ------------------
  ------------------
 1603|     15|            int32_t delta;
 1604|     15|            GET_SLOT_VALUE(excWord, UCASE_EXC_DELTA, pe2, delta);
  ------------------
  |  |  113|     15|#define GET_SLOT_VALUE(excWord, idx, pExc16, value) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|     15|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  114|     15|    if(((excWord)&UCASE_EXC_DOUBLE_SLOTS)==0) { \
  |  |  ------------------
  |  |  |  |  423|     15|#define UCASE_EXC_DOUBLE_SLOTS      0x100
  |  |  ------------------
  |  |  |  Branch (114:8): [True: 15, False: 0]
  |  |  ------------------
  |  |  115|     15|        (pExc16)+=SLOT_OFFSET(excWord, idx); \
  |  |  ------------------
  |  |  |  |  102|     15|#define SLOT_OFFSET(flags, idx) flagsOffset[(flags)&((1<<(idx))-1)]
  |  |  ------------------
  |  |  116|     15|        (value)=*pExc16; \
  |  |  117|     15|    } else { \
  |  |  118|      0|        (pExc16)+=2*SLOT_OFFSET(excWord, idx); \
  |  |  ------------------
  |  |  |  |  102|      0|#define SLOT_OFFSET(flags, idx) flagsOffset[(flags)&((1<<(idx))-1)]
  |  |  ------------------
  |  |  119|      0|        (value)=*pExc16++; \
  |  |  120|      0|        (value)=((value)<<16)|*pExc16; \
  |  |  121|      0|    } \
  |  |  122|     15|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|     15|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1605|     15|            return (excWord&UCASE_EXC_DELTA_IS_NEGATIVE)==0 ? c+delta : c-delta;
  ------------------
  |  Branch (1605:20): [True: 15, False: 0]
  ------------------
 1606|     15|        }
 1607|     80|        if(HAS_SLOT(excWord, UCASE_EXC_FOLD)) {
  ------------------
  |  |  101|     80|#define HAS_SLOT(flags, idx) ((flags)&(1<<(idx)))
  |  |  ------------------
  |  |  |  Branch (101:30): [True: 0, False: 80]
  |  |  ------------------
  ------------------
 1608|      0|            idx=UCASE_EXC_FOLD;
 1609|     80|        } else if(HAS_SLOT(excWord, UCASE_EXC_LOWER)) {
  ------------------
  |  |  101|     80|#define HAS_SLOT(flags, idx) ((flags)&(1<<(idx)))
  |  |  ------------------
  |  |  |  Branch (101:30): [True: 12, False: 68]
  |  |  ------------------
  ------------------
 1610|     12|            idx=UCASE_EXC_LOWER;
 1611|     68|        } else {
 1612|     68|            return ~c;
 1613|     68|        }
 1614|     80|        GET_SLOT_VALUE(excWord, idx, pe2, result);
  ------------------
  |  |  113|     12|#define GET_SLOT_VALUE(excWord, idx, pExc16, value) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|     12|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  114|     12|    if(((excWord)&UCASE_EXC_DOUBLE_SLOTS)==0) { \
  |  |  ------------------
  |  |  |  |  423|     12|#define UCASE_EXC_DOUBLE_SLOTS      0x100
  |  |  ------------------
  |  |  |  Branch (114:8): [True: 12, False: 0]
  |  |  ------------------
  |  |  115|     12|        (pExc16)+=SLOT_OFFSET(excWord, idx); \
  |  |  ------------------
  |  |  |  |  102|     12|#define SLOT_OFFSET(flags, idx) flagsOffset[(flags)&((1<<(idx))-1)]
  |  |  ------------------
  |  |  116|     12|        (value)=*pExc16; \
  |  |  117|     12|    } else { \
  |  |  118|      0|        (pExc16)+=2*SLOT_OFFSET(excWord, idx); \
  |  |  ------------------
  |  |  |  |  102|      0|#define SLOT_OFFSET(flags, idx) flagsOffset[(flags)&((1<<(idx))-1)]
  |  |  ------------------
  |  |  119|      0|        (value)=*pExc16++; \
  |  |  120|      0|        (value)=((value)<<16)|*pExc16; \
  |  |  121|      0|    } \
  |  |  122|     80|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|     80|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1615|     12|    }
 1616|       |
 1617|  3.45k|    return (result==c) ? ~result : result;
  ------------------
  |  Branch (1617:12): [True: 1.73k, False: 1.72k]
  ------------------
 1618|  3.55k|}

u_islower_78:
   91|     26|u_islower(UChar32 c) {
   92|     26|    uint32_t props;
   93|     26|    GET_PROPS(c, props);
  ------------------
  |  |   44|     26|#define GET_PROPS(c, result) ((result)=UTRIE2_GET16(&propsTrie, c))
  |  |  ------------------
  |  |  |  |  360|     26|#define UTRIE2_GET16(trie, c) _UTRIE2_GET((trie), index, (trie)->indexLength, (c))
  |  |  |  |  ------------------
  |  |  |  |  |  |  871|     26|    (trie)->data[_UTRIE2_INDEX_FROM_CP(trie, asciiOffset, c)]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  845|     26|    ((uint32_t)(c)<0xd800 ? \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (845:6): [True: 16, False: 10]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  846|     26|        _UTRIE2_INDEX_RAW(0, (trie)->index, c) : \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  815|     16|    (((int32_t)((trieIndex)[(offset)+((c)>>UTRIE2_SHIFT_2)]) \
  |  |  |  |  |  |  |  |  |  |  816|     16|    <<UTRIE2_INDEX_SHIFT)+ \
  |  |  |  |  |  |  |  |  |  |  817|     16|    ((c)&UTRIE2_DATA_MASK))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  847|     26|        (uint32_t)(c)<=0xffff ? \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (847:9): [True: 0, False: 10]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  848|     10|            _UTRIE2_INDEX_RAW( \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  815|      0|    (((int32_t)((trieIndex)[(offset)+((c)>>UTRIE2_SHIFT_2)]) \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (815:30): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  816|      0|    <<UTRIE2_INDEX_SHIFT)+ \
  |  |  |  |  |  |  |  |  |  |  817|      0|    ((c)&UTRIE2_DATA_MASK))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  849|     10|                (c)<=0xdbff ? UTRIE2_LSCP_INDEX_2_OFFSET-(0xd800>>UTRIE2_SHIFT_2) : 0, \
  |  |  |  |  |  |  |  |  850|     10|                (trie)->index, c) : \
  |  |  |  |  |  |  |  |  851|     10|            (uint32_t)(c)>0x10ffff ? \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (851:13): [True: 0, False: 10]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  852|     10|                (asciiOffset)+UTRIE2_BAD_UTF8_DATA_OFFSET : \
  |  |  |  |  |  |  |  |  853|     10|                (c)>=(trie)->highStart ? \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (853:17): [True: 0, False: 10]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  854|     10|                    (trie)->highValueIndex : \
  |  |  |  |  |  |  |  |  855|     10|                    _UTRIE2_INDEX_FROM_SUPP((trie)->index, c))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  833|     10|    (((int32_t)((trieIndex)[ \
  |  |  |  |  |  |  |  |  |  |  834|     10|        (trieIndex)[(UTRIE2_INDEX_1_OFFSET-UTRIE2_OMITTED_BMP_INDEX_1_LENGTH)+ \
  |  |  |  |  |  |  |  |  |  |  835|     10|                      ((c)>>UTRIE2_SHIFT_1)]+ \
  |  |  |  |  |  |  |  |  |  |  836|     10|        (((c)>>UTRIE2_SHIFT_2)&UTRIE2_INDEX_2_MASK)]) \
  |  |  |  |  |  |  |  |  |  |  837|     10|    <<UTRIE2_INDEX_SHIFT)+ \
  |  |  |  |  |  |  |  |  |  |  838|     10|    ((c)&UTRIE2_DATA_MASK))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   94|     26|    return GET_CATEGORY(props)==U_LOWERCASE_LETTER;
  ------------------
  |  |   65|     26|#define GET_CATEGORY(props) ((props)&0x1f)
  ------------------
   95|     26|}
u_charDigitValue_78:
  343|  4.06k|u_charDigitValue(UChar32 c) {
  344|  4.06k|    uint32_t props;
  345|  4.06k|    int32_t value;
  346|  4.06k|    GET_PROPS(c, props);
  ------------------
  |  |   44|  4.06k|#define GET_PROPS(c, result) ((result)=UTRIE2_GET16(&propsTrie, c))
  |  |  ------------------
  |  |  |  |  360|  4.06k|#define UTRIE2_GET16(trie, c) _UTRIE2_GET((trie), index, (trie)->indexLength, (c))
  |  |  |  |  ------------------
  |  |  |  |  |  |  871|  4.06k|    (trie)->data[_UTRIE2_INDEX_FROM_CP(trie, asciiOffset, c)]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  845|  4.06k|    ((uint32_t)(c)<0xd800 ? \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (845:6): [True: 4.06k, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  846|  4.06k|        _UTRIE2_INDEX_RAW(0, (trie)->index, c) : \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  815|  4.06k|    (((int32_t)((trieIndex)[(offset)+((c)>>UTRIE2_SHIFT_2)]) \
  |  |  |  |  |  |  |  |  |  |  816|  4.06k|    <<UTRIE2_INDEX_SHIFT)+ \
  |  |  |  |  |  |  |  |  |  |  817|  4.06k|    ((c)&UTRIE2_DATA_MASK))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  847|  4.06k|        (uint32_t)(c)<=0xffff ? \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (847:9): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  848|      0|            _UTRIE2_INDEX_RAW( \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  815|      0|    (((int32_t)((trieIndex)[(offset)+((c)>>UTRIE2_SHIFT_2)]) \
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  |  Branch (815:30): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  816|      0|    <<UTRIE2_INDEX_SHIFT)+ \
  |  |  |  |  |  |  |  |  |  |  817|      0|    ((c)&UTRIE2_DATA_MASK))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  849|      0|                (c)<=0xdbff ? UTRIE2_LSCP_INDEX_2_OFFSET-(0xd800>>UTRIE2_SHIFT_2) : 0, \
  |  |  |  |  |  |  |  |  850|      0|                (trie)->index, c) : \
  |  |  |  |  |  |  |  |  851|      0|            (uint32_t)(c)>0x10ffff ? \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (851:13): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  852|      0|                (asciiOffset)+UTRIE2_BAD_UTF8_DATA_OFFSET : \
  |  |  |  |  |  |  |  |  853|      0|                (c)>=(trie)->highStart ? \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (853:17): [True: 0, False: 0]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  854|      0|                    (trie)->highValueIndex : \
  |  |  |  |  |  |  |  |  855|      0|                    _UTRIE2_INDEX_FROM_SUPP((trie)->index, c))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  833|      0|    (((int32_t)((trieIndex)[ \
  |  |  |  |  |  |  |  |  |  |  834|      0|        (trieIndex)[(UTRIE2_INDEX_1_OFFSET-UTRIE2_OMITTED_BMP_INDEX_1_LENGTH)+ \
  |  |  |  |  |  |  |  |  |  |  835|      0|                      ((c)>>UTRIE2_SHIFT_1)]+ \
  |  |  |  |  |  |  |  |  |  |  836|      0|        (((c)>>UTRIE2_SHIFT_2)&UTRIE2_INDEX_2_MASK)]) \
  |  |  |  |  |  |  |  |  |  |  837|      0|    <<UTRIE2_INDEX_SHIFT)+ \
  |  |  |  |  |  |  |  |  |  |  838|      0|    ((c)&UTRIE2_DATA_MASK))
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  347|  4.06k|    value=(int32_t)GET_NUMERIC_TYPE_VALUE(props)-UPROPS_NTV_DECIMAL_START;
  ------------------
  |  |   68|  4.06k|#define GET_NUMERIC_TYPE_VALUE(props) ((props)>>UPROPS_NUMERIC_TYPE_VALUE_SHIFT)
  ------------------
  348|  4.06k|    if(value<=9) {
  ------------------
  |  Branch (348:8): [True: 4.06k, False: 0]
  ------------------
  349|  4.06k|        return value;
  350|  4.06k|    } else {
  351|      0|        return -1;
  352|      0|    }
  353|  4.06k|}
u_digit_78:
  449|  4.06k|u_digit(UChar32 ch, int8_t radix) {
  450|  4.06k|    int8_t value;
  451|  4.06k|    if((uint8_t)(radix-2)<=(36-2)) {
  ------------------
  |  Branch (451:8): [True: 4.06k, False: 0]
  ------------------
  452|  4.06k|        value=(int8_t)u_charDigitValue(ch);
  ------------------
  |  |  220|  4.06k|#define u_charDigitValue U_ICU_ENTRY_POINT_RENAME(u_charDigitValue)
  |  |  ------------------
  |  |  |  |  123|  4.06k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.06k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.06k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  453|  4.06k|        if(value<0) {
  ------------------
  |  Branch (453:12): [True: 178, False: 3.88k]
  ------------------
  454|       |            /* ch is not a decimal digit, try latin letters */
  455|    178|            if(ch>=0x61 && ch<=0x7A) {
  ------------------
  |  Branch (455:16): [True: 101, False: 77]
  |  Branch (455:28): [True: 101, False: 0]
  ------------------
  456|    101|                value=(int8_t)(ch-0x57);  /* ch - 'a' + 10 */
  457|    101|            } else if(ch>=0x41 && ch<=0x5A) {
  ------------------
  |  Branch (457:23): [True: 56, False: 21]
  |  Branch (457:35): [True: 44, False: 12]
  ------------------
  458|     44|                value=(int8_t)(ch-0x37);  /* ch - 'A' + 10 */
  459|     44|            } else if(ch>=0xFF41 && ch<=0xFF5A) {
  ------------------
  |  Branch (459:23): [True: 0, False: 33]
  |  Branch (459:37): [True: 0, False: 0]
  ------------------
  460|      0|                value=(int8_t)(ch-0xFF37);  /* fullwidth ASCII a-z */
  461|     33|            } else if(ch>=0xFF21 && ch<=0xFF3A) {
  ------------------
  |  Branch (461:23): [True: 0, False: 33]
  |  Branch (461:37): [True: 0, False: 0]
  ------------------
  462|      0|                value=(int8_t)(ch-0xFF17);  /* fullwidth ASCII A-Z */
  463|      0|            }
  464|    178|        }
  465|  4.06k|    } else {
  466|      0|        value=-1;   /* invalid radix */
  467|      0|    }
  468|  4.06k|    return (int8_t)((value<radix) ? value : -1);
  ------------------
  |  Branch (468:21): [True: 3.91k, False: 145]
  ------------------
  469|  4.06k|}

ucln_common_registerCleanup_78:
   67|  63.8k|{
   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|  63.8k|    U_ASSERT(UCLN_COMMON_START < type && type < UCLN_COMMON_COUNT);
  ------------------
  |  |   35|  63.8k|#   define U_ASSERT(exp) (void)0
  ------------------
   79|  63.8k|    if (type == UCLN_COMMON_MUTEX) {
  ------------------
  |  Branch (79:9): [True: 1, False: 63.8k]
  ------------------
   80|      1|        gCommonCleanupFunctions[type] = func;
   81|  63.8k|    } else if (UCLN_COMMON_START < type && type < UCLN_COMMON_COUNT)  {
  ------------------
  |  Branch (81:16): [True: 63.8k, False: 0]
  |  Branch (81:44): [True: 63.8k, False: 0]
  ------------------
   82|  63.8k|        icu::Mutex m;     // See ticket 10295 for discussion.
   83|  63.8k|        gCommonCleanupFunctions[type] = func;
   84|  63.8k|    }
   85|       |#if !UCLN_NO_AUTO_CLEANUP && (defined(UCLN_AUTO_ATEXIT) || defined(UCLN_AUTO_LOCAL))
   86|       |    ucln_registerAutomaticCleanup();
   87|       |#endif
   88|  63.8k|}
ucln_registerCleanup_78:
   97|     42|{
   98|     42|    U_ASSERT(UCLN_START < type && type < UCLN_COMMON);
  ------------------
  |  |   35|     42|#   define U_ASSERT(exp) (void)0
  ------------------
   99|     42|    if (UCLN_START < type && type < UCLN_COMMON)
  ------------------
  |  Branch (99:9): [True: 42, False: 0]
  |  Branch (99:30): [True: 42, False: 0]
  ------------------
  100|     42|    {
  101|     42|        gLibCleanupFunctions[type] = func;
  102|     42|    }
  103|     42|}

udata_getHeaderSize_78:
   36|  2.17k|udata_getHeaderSize(const DataHeader *udh) {
   37|  2.17k|    if(udh==nullptr) {
  ------------------
  |  Branch (37:8): [True: 0, False: 2.17k]
  ------------------
   38|      0|        return 0;
   39|  2.17k|    } else if(udh->info.isBigEndian==U_IS_BIG_ENDIAN) {
  ------------------
  |  |  353|  2.17k|#   define U_IS_BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
  ------------------
  |  Branch (39:15): [True: 2.17k, False: 0]
  ------------------
   40|       |        /* same endianness */
   41|  2.17k|        return udh->dataHeader.headerSize;
   42|  2.17k|    } else {
   43|       |        /* opposite endianness */
   44|      0|        uint16_t x=udh->dataHeader.headerSize;
   45|      0|        return (uint16_t)((x<<8)|(x>>8));
   46|      0|    }
   47|  2.17k|}
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|  36.1k|                  UErrorCode *pErrorCode) {
  230|  36.1k|    (void)pErrorCode;
  231|  36.1k|    const UDataOffsetTOC  *toc = (UDataOffsetTOC *)pData->toc;
  232|  36.1k|    if(toc!=nullptr) {
  ------------------
  |  Branch (232:8): [True: 36.1k, False: 0]
  ------------------
  233|  36.1k|        const char *base=(const char *)toc;
  234|  36.1k|        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|  36.1k|        number=offsetTOCPrefixBinarySearch(tocEntryName, base, toc->entry, count);
  244|  36.1k|        if(number>=0) {
  ------------------
  |  Branch (244:12): [True: 2.16k, False: 33.9k]
  ------------------
  245|       |            /* found it */
  246|  2.16k|            const UDataOffsetTOCEntry *entry=toc->entry+number;
  247|       |#ifdef UDATA_DEBUG
  248|       |            fprintf(stderr, "%s: Found.\n", tocEntryName);
  249|       |#endif
  250|  2.16k|            if((number+1) < count) {
  ------------------
  |  Branch (250:16): [True: 2.16k, False: 1]
  ------------------
  251|  2.16k|                *pLength = (int32_t)(entry[1].dataOffset - entry->dataOffset);
  252|  2.16k|            } else {
  253|      1|                *pLength = -1;
  254|      1|            }
  255|  2.16k|            return (const DataHeader *)(base+entry->dataOffset);
  256|  33.9k|        } else {
  257|       |#ifdef UDATA_DEBUG
  258|       |            fprintf(stderr, "%s: Not found.\n", tocEntryName);
  259|       |#endif
  260|  33.9k|            return nullptr;
  261|  33.9k|        }
  262|  36.1k|    } else {
  263|       |#ifdef UDATA_DEBUG
  264|       |        fprintf(stderr, "returning header\n");
  265|       |#endif
  266|       |
  267|      0|        return pData->pHeader;
  268|      0|    }
  269|  36.1k|}
ucmndata.cpp:_ZL27offsetTOCPrefixBinarySearchPKcS0_PK19UDataOffsetTOCEntryi:
  125|  36.1k|                            const UDataOffsetTOCEntry *toc, int32_t count) {
  126|  36.1k|    int32_t start=0;
  127|  36.1k|    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|  36.1k|    int32_t startPrefixLength=0;
  134|  36.1k|    int32_t limitPrefixLength=0;
  135|  36.1k|    if(count==0) {
  ------------------
  |  Branch (135:8): [True: 0, False: 36.1k]
  ------------------
  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|  36.1k|    if(0==strcmpAfterPrefix(s, names+toc[0].nameOffset, &startPrefixLength)) {
  ------------------
  |  Branch (144:8): [True: 1, False: 36.1k]
  ------------------
  145|      1|        return 0;
  146|      1|    }
  147|  36.1k|    ++start;
  148|  36.1k|    --limit;
  149|  36.1k|    if(0==strcmpAfterPrefix(s, names+toc[limit].nameOffset, &limitPrefixLength)) {
  ------------------
  |  Branch (149:8): [True: 1, False: 36.1k]
  ------------------
  150|      1|        return limit;
  151|      1|    }
  152|   474k|    while(start<limit) {
  ------------------
  |  Branch (152:11): [True: 440k, False: 33.9k]
  ------------------
  153|   440k|        int32_t i=(start+limit)/2;
  154|   440k|        int32_t prefixLength=MIN(startPrefixLength, limitPrefixLength);
  ------------------
  |  |   97|   440k|#define MIN(a,b) (((a)<(b)) ? (a) : (b))
  |  |  ------------------
  |  |  |  Branch (97:19): [True: 114k, False: 325k]
  |  |  ------------------
  ------------------
  155|   440k|        int32_t cmp=strcmpAfterPrefix(s, names+toc[i].nameOffset, &prefixLength);
  156|   440k|        if(cmp<0) {
  ------------------
  |  Branch (156:12): [True: 274k, False: 165k]
  ------------------
  157|   274k|            limit=i;
  158|   274k|            limitPrefixLength=prefixLength;
  159|   274k|        } else if(cmp==0) {
  ------------------
  |  Branch (159:19): [True: 2.16k, False: 163k]
  ------------------
  160|  2.16k|            return i;
  161|   163k|        } else {
  162|   163k|            start=i+1;
  163|   163k|            startPrefixLength=prefixLength;
  164|   163k|        }
  165|   440k|    }
  166|  33.9k|    return -1;
  167|  36.1k|}
ucmndata.cpp:_ZL17strcmpAfterPrefixPKcS0_Pi:
  105|   512k|strcmpAfterPrefix(const char *s1, const char *s2, int32_t *pPrefixLength) {
  106|   512k|    int32_t pl=*pPrefixLength;
  107|   512k|    int32_t cmp=0;
  108|   512k|    s1+=pl;
  109|   512k|    s2+=pl;
  110|  1.61M|    for(;;) {
  111|  1.61M|        int32_t c1 = static_cast<uint8_t>(*s1++);
  112|  1.61M|        int32_t c2 = static_cast<uint8_t>(*s2++);
  113|  1.61M|        cmp=c1-c2;
  114|  1.61M|        if(cmp!=0 || c1==0) {  /* different or done */
  ------------------
  |  Branch (114:12): [True: 510k, False: 1.10M]
  |  Branch (114:22): [True: 2.16k, False: 1.10M]
  ------------------
  115|   512k|            break;
  116|   512k|        }
  117|  1.10M|        ++pl;  /* increment shared same-prefix length */
  118|  1.10M|    }
  119|   512k|    *pPrefixLength=pl;
  120|   512k|    return cmp;
  121|   512k|}

ucurr_forLocale_78:
  505|  65.1k|                UErrorCode* ec) {
  506|  65.1k|    if (U_FAILURE(*ec)) { return 0; }
  ------------------
  |  Branch (506:9): [True: 0, False: 65.1k]
  ------------------
  507|  65.1k|    if (buffCapacity < 0 || (buff == nullptr && buffCapacity > 0)) {
  ------------------
  |  Branch (507:9): [True: 0, False: 65.1k]
  |  Branch (507:30): [True: 0, False: 65.1k]
  |  Branch (507:49): [True: 0, False: 0]
  ------------------
  508|      0|        *ec = U_ILLEGAL_ARGUMENT_ERROR;
  509|      0|        return 0;
  510|      0|    }
  511|       |
  512|  65.1k|    UErrorCode localStatus = U_ZERO_ERROR;
  513|  65.1k|    CharString currency = ulocimp_getKeywordValue(locale, "currency", localStatus);
  ------------------
  |  | 1200|  65.1k|#define ulocimp_getKeywordValue U_ICU_ENTRY_POINT_RENAME(ulocimp_getKeywordValue)
  |  |  ------------------
  |  |  |  |  123|  65.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  65.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  65.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  514|  65.1k|    int32_t resLen = currency.length();
  515|       |
  516|  65.1k|    if (U_SUCCESS(localStatus) && resLen == 3 && uprv_isInvariantString(currency.data(), resLen)) {
  ------------------
  |  | 1517|     31|#define uprv_isInvariantString U_ICU_ENTRY_POINT_RENAME(uprv_isInvariantString)
  |  |  ------------------
  |  |  |  |  123|     31|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     31|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     31|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (516:9): [True: 63.9k, False: 1.20k]
  |  Branch (516:35): [True: 31, False: 63.8k]
  |  Branch (516:50): [True: 31, False: 0]
  ------------------
  517|     31|        if (resLen < buffCapacity) {
  ------------------
  |  Branch (517:13): [True: 31, False: 0]
  ------------------
  518|     31|            T_CString_toUpperCase(currency.data());
  ------------------
  |  |   70|     31|#define T_CString_toUpperCase U_ICU_ENTRY_POINT_RENAME(T_CString_toUpperCase)
  |  |  ------------------
  |  |  |  |  123|     31|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     31|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     31|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  519|     31|            u_charsToUChars(currency.data(), buff, resLen);
  ------------------
  |  |  226|     31|#define u_charsToUChars U_ICU_ENTRY_POINT_RENAME(u_charsToUChars)
  |  |  ------------------
  |  |  |  |  123|     31|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     31|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     31|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|     31|        }
  521|     31|        return u_terminateUChars(buff, buffCapacity, resLen, ec);
  ------------------
  |  |  408|     31|#define u_terminateUChars U_ICU_ENTRY_POINT_RENAME(u_terminateUChars)
  |  |  ------------------
  |  |  |  |  123|     31|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     31|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     31|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  522|     31|    }
  523|       |
  524|       |    // get country or country_variant in `id'
  525|  65.1k|    CharString id = idForLocale(locale, ec);
  526|  65.1k|    if (U_FAILURE(*ec)) {
  ------------------
  |  Branch (526:9): [True: 1.24k, False: 63.8k]
  ------------------
  527|  1.24k|        return 0;
  528|  1.24k|    }
  529|       |
  530|  63.8k|#if !UCONFIG_NO_SERVICE
  531|  63.8k|    const char16_t* result = CReg::get(id.data());
  532|  63.8k|    if (result) {
  ------------------
  |  Branch (532:9): [True: 0, False: 63.8k]
  ------------------
  533|      0|        if(buffCapacity > u_strlen(result)) {
  ------------------
  |  |  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 (533:12): [True: 0, False: 0]
  ------------------
  534|      0|            u_strcpy(buff, result);
  ------------------
  |  |  390|      0|#define u_strcpy U_ICU_ENTRY_POINT_RENAME(u_strcpy)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  535|      0|        }
  536|      0|        resLen = u_strlen(result);
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  537|      0|        return u_terminateUChars(buff, buffCapacity, resLen, ec);
  ------------------
  |  |  408|      0|#define u_terminateUChars U_ICU_ENTRY_POINT_RENAME(u_terminateUChars)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  538|      0|    }
  539|  63.8k|#endif
  540|       |    // Remove variants, which is only needed for registration.
  541|  63.8k|    char *idDelim = uprv_strchr(id.data(), VAR_DELIM);
  ------------------
  |  |   40|  63.8k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  63.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  542|  63.8k|    if (idDelim) {
  ------------------
  |  Branch (542:9): [True: 0, False: 63.8k]
  ------------------
  543|      0|        id.truncate(idDelim - id.data());
  544|      0|    }
  545|       |
  546|  63.8k|    const char16_t* s = nullptr;  // Currency code from data file.
  547|  63.8k|    if (id.isEmpty()) {
  ------------------
  |  Branch (547:9): [True: 8.97k, False: 54.8k]
  ------------------
  548|       |        // No point looking in the data for an empty string.
  549|       |        // This is what we would get.
  550|  8.97k|        localStatus = U_MISSING_RESOURCE_ERROR;
  551|  54.8k|    } else {
  552|       |        // Look up the CurrencyMap element in the root bundle.
  553|  54.8k|        localStatus = U_ZERO_ERROR;
  554|  54.8k|        UResourceBundle *rb = ures_openDirect(U_ICUDATA_CURR, CURRENCY_DATA, &localStatus);
  ------------------
  |  | 1693|  54.8k|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|  54.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  54.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  54.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      UResourceBundle *rb = ures_openDirect(U_ICUDATA_CURR, CURRENCY_DATA, &localStatus);
  ------------------
  |  |   21|  54.8k|#define U_ICUDATA_CURR U_ICUDATA_NAME U_TREE_SEPARATOR_STRING "curr"
  |  |  ------------------
  |  |  |  |  154|  54.8k|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  ------------------
  555|  54.8k|        UResourceBundle *cm = ures_getByKey(rb, CURRENCY_MAP, rb, &localStatus);
  ------------------
  |  | 1661|  54.8k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  54.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  54.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  54.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  556|  54.8k|        LocalUResourceBundlePointer countryArray(ures_getByKey(rb, id.data(), cm, &localStatus));
  ------------------
  |  | 1661|  54.8k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  54.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  54.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  54.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  557|       |        // https://unicode-org.atlassian.net/browse/ICU-21997
  558|       |        // Prefer to use currencies that are legal tender.
  559|  54.8k|        if (U_SUCCESS(localStatus)) {
  ------------------
  |  Branch (559:13): [True: 53.4k, False: 1.44k]
  ------------------
  560|  53.4k|            int32_t arrayLength = ures_getSize(countryArray.getAlias());
  ------------------
  |  | 1674|  53.4k|#define ures_getSize U_ICU_ENTRY_POINT_RENAME(ures_getSize)
  |  |  ------------------
  |  |  |  |  123|  53.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  53.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  53.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  561|  54.6k|            for (int32_t i = 0; i < arrayLength; ++i) {
  ------------------
  |  Branch (561:33): [True: 54.5k, False: 96]
  ------------------
  562|  54.5k|                LocalUResourceBundlePointer currencyReq(
  563|  54.5k|                    ures_getByIndex(countryArray.getAlias(), i, nullptr, &localStatus));
  ------------------
  |  | 1660|  54.5k|#define ures_getByIndex U_ICU_ENTRY_POINT_RENAME(ures_getByIndex)
  |  |  ------------------
  |  |  |  |  123|  54.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  54.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  54.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  564|       |                // The currency is legal tender if it is *not* marked with tender{"false"}.
  565|  54.5k|                UErrorCode tenderStatus = localStatus;
  566|  54.5k|                const char16_t *tender =
  567|  54.5k|                    ures_getStringByKey(currencyReq.getAlias(), "tender", nullptr, &tenderStatus);
  ------------------
  |  | 1677|  54.5k|#define ures_getStringByKey U_ICU_ENTRY_POINT_RENAME(ures_getStringByKey)
  |  |  ------------------
  |  |  |  |  123|  54.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  54.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  54.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  568|  54.5k|                bool isTender = U_FAILURE(tenderStatus) || u_strcmp(tender, u"false") != 0;
  ------------------
  |  |  387|  1.25k|#define u_strcmp U_ICU_ENTRY_POINT_RENAME(u_strcmp)
  |  |  ------------------
  |  |  |  |  123|  1.25k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.25k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.25k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (568:33): [True: 53.3k, False: 1.25k]
  |  Branch (568:60): [True: 0, False: 1.25k]
  ------------------
  569|  54.5k|                if (!isTender && s != nullptr) {
  ------------------
  |  Branch (569:21): [True: 1.25k, False: 53.3k]
  |  Branch (569:34): [True: 1.15k, False: 96]
  ------------------
  570|       |                    // We already have a non-tender currency. Ignore all following non-tender ones.
  571|  1.15k|                    continue;
  572|  1.15k|                }
  573|       |                // Fetch the currency code.
  574|  53.4k|                s = ures_getStringByKey(currencyReq.getAlias(), "id", &resLen, &localStatus);
  ------------------
  |  | 1677|  53.4k|#define ures_getStringByKey U_ICU_ENTRY_POINT_RENAME(ures_getStringByKey)
  |  |  ------------------
  |  |  |  |  123|  53.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  53.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  53.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  575|  53.4k|                if (isTender) {
  ------------------
  |  Branch (575:21): [True: 53.3k, False: 96]
  ------------------
  576|  53.3k|                    break;
  577|  53.3k|                }
  578|  53.4k|            }
  579|  53.4k|            if (U_SUCCESS(localStatus) && s == nullptr) {
  ------------------
  |  Branch (579:17): [True: 53.4k, False: 0]
  |  Branch (579:43): [True: 0, False: 53.4k]
  ------------------
  580|      0|                localStatus = U_MISSING_RESOURCE_ERROR;
  581|      0|            }
  582|  53.4k|        }
  583|  54.8k|    }
  584|       |
  585|  63.8k|    if ((U_FAILURE(localStatus)) && strchr(id.data(), '_') != nullptr) {
  ------------------
  |  Branch (585:9): [True: 10.4k, False: 53.4k]
  |  Branch (585:37): [True: 0, False: 10.4k]
  ------------------
  586|       |        // We don't know about it.  Check to see if we support the variant.
  587|      0|        CharString parent = ulocimp_getParent(locale, *ec);
  ------------------
  |  | 1205|      0|#define ulocimp_getParent U_ICU_ENTRY_POINT_RENAME(ulocimp_getParent)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  588|      0|        *ec = U_USING_FALLBACK_WARNING;
  589|       |        // TODO: Loop over the parent rather than recursing and
  590|       |        // looking again for a currency keyword.
  591|      0|        return ucurr_forLocale(parent.data(), buff, buffCapacity, ec);
  ------------------
  |  |  832|      0|#define ucurr_forLocale U_ICU_ENTRY_POINT_RENAME(ucurr_forLocale)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  592|      0|    }
  593|  63.8k|    if (*ec == U_ZERO_ERROR || localStatus != U_ZERO_ERROR) {
  ------------------
  |  Branch (593:9): [True: 63.8k, False: 0]
  |  Branch (593:32): [True: 0, False: 0]
  ------------------
  594|       |        // There is nothing to fallback to. Report the failure/warning if possible.
  595|  63.8k|        *ec = localStatus;
  596|  63.8k|    }
  597|  63.8k|    if (U_SUCCESS(*ec)) {
  ------------------
  |  Branch (597:9): [True: 53.4k, False: 10.4k]
  ------------------
  598|  53.4k|        if(buffCapacity > resLen) {
  ------------------
  |  Branch (598:12): [True: 53.4k, False: 0]
  ------------------
  599|  53.4k|            u_strcpy(buff, s);
  ------------------
  |  |  390|  53.4k|#define u_strcpy U_ICU_ENTRY_POINT_RENAME(u_strcpy)
  |  |  ------------------
  |  |  |  |  123|  53.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  53.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  53.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  600|  53.4k|        }
  601|  53.4k|    }
  602|  63.8k|    return u_terminateUChars(buff, buffCapacity, resLen, ec);
  ------------------
  |  |  408|  63.8k|#define u_terminateUChars U_ICU_ENTRY_POINT_RENAME(u_terminateUChars)
  |  |  ------------------
  |  |  |  |  123|  63.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  63.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  63.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  603|  63.8k|}
ucurr_getName_78:
  645|  53.4k|              UErrorCode* ec) {
  646|       |
  647|       |    // Look up the Currencies resource for the given locale.  The
  648|       |    // Currencies locale data looks like this:
  649|       |    //|en {
  650|       |    //|  Currencies {
  651|       |    //|    USD { "US$", "US Dollar" }
  652|       |    //|    CHF { "Sw F", "Swiss Franc" }
  653|       |    //|    INR { "=0#Rs|1#Re|1<Rs", "=0#Rupees|1#Rupee|1<Rupees" }
  654|       |    //|    //...
  655|       |    //|  }
  656|       |    //|}
  657|       |
  658|  53.4k|    if (U_FAILURE(*ec)) {
  ------------------
  |  Branch (658:9): [True: 0, False: 53.4k]
  ------------------
  659|      0|        return nullptr;
  660|      0|    }
  661|       |
  662|  53.4k|    int32_t choice = (int32_t) nameStyle;
  663|  53.4k|    if (choice < 0 || choice > 4) {
  ------------------
  |  Branch (663:9): [True: 0, False: 53.4k]
  |  Branch (663:23): [True: 0, False: 53.4k]
  ------------------
  664|      0|        *ec = U_ILLEGAL_ARGUMENT_ERROR;
  665|      0|        return nullptr;
  666|      0|    }
  667|       |
  668|       |    // In the future, resource bundles may implement multi-level
  669|       |    // fallback.  That is, if a currency is not found in the en_US
  670|       |    // Currencies data, then the en Currencies data will be searched.
  671|       |    // Currently, if a Currencies datum exists in en_US and en, the
  672|       |    // en_US entry hides that in en.
  673|       |
  674|       |    // We want multi-level fallback for this resource, so we implement
  675|       |    // it manually.
  676|       |
  677|       |    // Use a separate UErrorCode here that does not propagate out of
  678|       |    // this function.
  679|  53.4k|    UErrorCode ec2 = U_ZERO_ERROR;
  680|       |
  681|  53.4k|    if (locale == nullptr) {
  ------------------
  |  Branch (681:9): [True: 0, False: 53.4k]
  ------------------
  682|      0|        locale = 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  683|      0|    }
  684|  53.4k|    CharString loc = ulocimp_getName(locale, ec2);
  ------------------
  |  | 1204|  53.4k|#define ulocimp_getName U_ICU_ENTRY_POINT_RENAME(ulocimp_getName)
  |  |  ------------------
  |  |  |  |  123|  53.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  53.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  53.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  685|  53.4k|    if (U_FAILURE(ec2)) {
  ------------------
  |  Branch (685:9): [True: 4, False: 53.4k]
  ------------------
  686|      4|        *ec = U_ILLEGAL_ARGUMENT_ERROR;
  687|      4|        return nullptr;
  688|      4|    }
  689|       |
  690|  53.4k|    char buf[ISO_CURRENCY_CODE_LENGTH+1];
  691|  53.4k|    myUCharsToChars(buf, currency);
  692|       |    
  693|       |    /* Normalize the keyword value to uppercase */
  694|  53.4k|    T_CString_toUpperCase(buf);
  ------------------
  |  |   70|  53.4k|#define T_CString_toUpperCase U_ICU_ENTRY_POINT_RENAME(T_CString_toUpperCase)
  |  |  ------------------
  |  |  |  |  123|  53.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  53.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  53.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  695|       |    
  696|  53.4k|    const char16_t* s = nullptr;
  697|  53.4k|    ec2 = U_ZERO_ERROR;
  698|  53.4k|    LocalUResourceBundlePointer rb(ures_open(U_ICUDATA_CURR, loc.data(), &ec2));
  ------------------
  |  | 1691|  53.4k|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|  53.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  53.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  53.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  LocalUResourceBundlePointer rb(ures_open(U_ICUDATA_CURR, loc.data(), &ec2));
  ------------------
  |  |   21|  53.4k|#define U_ICUDATA_CURR U_ICUDATA_NAME U_TREE_SEPARATOR_STRING "curr"
  |  |  ------------------
  |  |  |  |  154|  53.4k|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  ------------------
  699|       |
  700|  53.4k|    if (nameStyle == UCURR_NARROW_SYMBOL_NAME || nameStyle == UCURR_FORMAL_SYMBOL_NAME || nameStyle == UCURR_VARIANT_SYMBOL_NAME) {
  ------------------
  |  Branch (700:9): [True: 0, False: 53.4k]
  |  Branch (700:50): [True: 0, False: 53.4k]
  |  Branch (700:91): [True: 0, False: 53.4k]
  ------------------
  701|      0|        CharString key;
  702|      0|        switch (nameStyle) {
  703|      0|        case UCURR_NARROW_SYMBOL_NAME:
  ------------------
  |  Branch (703:9): [True: 0, False: 0]
  ------------------
  704|      0|            key.append(CURRENCIES_NARROW, ec2);
  705|      0|            break;
  706|      0|        case UCURR_FORMAL_SYMBOL_NAME:
  ------------------
  |  Branch (706:9): [True: 0, False: 0]
  ------------------
  707|      0|            key.append(CURRENCIES_FORMAL, ec2);
  708|      0|            break;
  709|      0|        case UCURR_VARIANT_SYMBOL_NAME:
  ------------------
  |  Branch (709:9): [True: 0, False: 0]
  ------------------
  710|      0|            key.append(CURRENCIES_VARIANT, ec2);
  711|      0|            break;
  712|      0|        default:
  ------------------
  |  Branch (712:9): [True: 0, False: 0]
  ------------------
  713|      0|            *ec = U_UNSUPPORTED_ERROR;
  714|      0|            return nullptr;
  715|      0|        }
  716|      0|        key.append("/", ec2);
  717|      0|        key.append(buf, ec2);
  718|      0|        s = ures_getStringByKeyWithFallback(rb.getAlias(), key.data(), len, &ec2);
  ------------------
  |  | 1678|      0|#define ures_getStringByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getStringByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  719|      0|        if (ec2 == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (719:13): [True: 0, False: 0]
  ------------------
  720|      0|            *ec = U_USING_FALLBACK_WARNING;
  721|      0|            ec2 = U_ZERO_ERROR;
  722|      0|            choice = UCURR_SYMBOL_NAME;
  723|      0|        }
  724|      0|    }
  725|  53.4k|    if (s == nullptr) {
  ------------------
  |  Branch (725:9): [True: 53.4k, False: 0]
  ------------------
  726|  53.4k|        ures_getByKey(rb.getAlias(), CURRENCIES, rb.getAlias(), &ec2);
  ------------------
  |  | 1661|  53.4k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  53.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  53.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  53.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  727|  53.4k|        ures_getByKeyWithFallback(rb.getAlias(), buf, rb.getAlias(), &ec2);
  ------------------
  |  | 1662|  53.4k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  53.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  53.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  53.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  728|  53.4k|        s = ures_getStringByIndex(rb.getAlias(), choice, len, &ec2);
  ------------------
  |  | 1676|  53.4k|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|  53.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  53.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  53.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  729|  53.4k|    }
  730|       |
  731|       |    // If we've succeeded we're done.  Otherwise, try to fallback.
  732|       |    // If that fails (because we are already at root) then exit.
  733|  53.4k|    if (U_SUCCESS(ec2)) {
  ------------------
  |  Branch (733:9): [True: 53.1k, False: 304]
  ------------------
  734|  53.1k|        if (ec2 == U_USING_DEFAULT_WARNING
  ------------------
  |  Branch (734:13): [True: 592, False: 52.5k]
  ------------------
  735|  53.1k|            || (ec2 == U_USING_FALLBACK_WARNING && *ec != U_USING_DEFAULT_WARNING)) {
  ------------------
  |  Branch (735:17): [True: 50.6k, False: 1.88k]
  |  Branch (735:52): [True: 9.42k, False: 41.2k]
  ------------------
  736|  10.0k|            *ec = ec2;
  737|  10.0k|        }
  738|  53.1k|    }
  739|       |
  740|       |    // We no longer support choice format data in names.  Data should not contain
  741|       |    // choice patterns.
  742|  53.4k|    if (isChoiceFormat != nullptr) {
  ------------------
  |  Branch (742:9): [True: 0, False: 53.4k]
  ------------------
  743|      0|        *isChoiceFormat = false;
  744|      0|    }
  745|  53.4k|    if (U_SUCCESS(ec2)) {
  ------------------
  |  Branch (745:9): [True: 53.1k, False: 304]
  ------------------
  746|  53.1k|        U_ASSERT(s != nullptr);
  ------------------
  |  |   35|  53.1k|#   define U_ASSERT(exp) (void)0
  ------------------
  747|  53.1k|        return s;
  748|  53.1k|    }
  749|       |
  750|       |    // If we fail to find a match, use the ISO 4217 code
  751|    304|    *len = u_strlen(currency); // Should == ISO_CURRENCY_CODE_LENGTH, but maybe not...?
  ------------------
  |  |  393|    304|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|    304|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    304|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    304|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  752|    304|    *ec = U_USING_DEFAULT_WARNING;
  753|    304|    return currency;
  754|  53.4k|}
uprv_getStaticCurrencyName_78:
 1633|  53.4k|{
 1634|  53.4k|    U_NAMESPACE_USE
  ------------------
  |  |  112|  53.4k|#   define U_NAMESPACE_USE using namespace U_ICU_NAMESPACE;
  ------------------
 1635|       |
 1636|  53.4k|    int32_t len;
 1637|  53.4k|    const char16_t* currname = ucurr_getName(iso, loc, UCURR_SYMBOL_NAME,
  ------------------
  |  |  837|  53.4k|#define ucurr_getName U_ICU_ENTRY_POINT_RENAME(ucurr_getName)
  |  |  ------------------
  |  |  |  |  123|  53.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  53.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  53.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1638|  53.4k|                                          nullptr /* isChoiceFormat */, &len, &ec);
 1639|  53.4k|    if (U_SUCCESS(ec)) {
  ------------------
  |  Branch (1639:9): [True: 53.4k, False: 4]
  ------------------
 1640|  53.4k|        result.setTo(currname, len);
 1641|  53.4k|    }
 1642|  53.4k|}
ucurr.cpp:_ZL11idForLocalePKcP10UErrorCode:
  345|  65.1k|{
  346|  65.1k|    return ulocimp_getRegionForSupplementalData(locale, false, *ec);
  ------------------
  |  | 1207|  65.1k|#define ulocimp_getRegionForSupplementalData U_ICU_ENTRY_POINT_RENAME(ulocimp_getRegionForSupplementalData)
  |  |  ------------------
  |  |  |  |  123|  65.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  65.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  65.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  347|  65.1k|}
_ZN4CReg3getEPKc:
  420|  63.8k|    static const char16_t* get(const char* id) {
  421|  63.8k|        const char16_t* result = nullptr;
  422|  63.8k|        umtx_lock(&gCRegLock);
  ------------------
  |  | 1250|  63.8k|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  123|  63.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  63.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  63.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  423|  63.8k|        CReg* p = gCRegHead;
  424|       |
  425|       |        /* register cleanup of the mutex */
  426|  63.8k|        ucln_common_registerCleanup(UCLN_COMMON_CURRENCY, currency_cleanup);
  ------------------
  |  |  617|  63.8k|#define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|  63.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  63.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  63.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  427|  63.8k|        while (p) {
  ------------------
  |  Branch (427:16): [True: 0, False: 63.8k]
  ------------------
  428|      0|            if (uprv_strcmp(id, p->id) == 0) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (428:17): [True: 0, False: 0]
  ------------------
  429|      0|                result = p->iso;
  430|      0|                break;
  431|      0|            }
  432|      0|            p = p->next;
  433|      0|        }
  434|  63.8k|        umtx_unlock(&gCRegLock);
  ------------------
  |  | 1251|  63.8k|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  123|  63.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  63.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  63.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  435|  63.8k|        return result;
  436|  63.8k|    }
ucurr.cpp:_ZL15myUCharsToCharsPcPKDs:
  281|  53.4k|myUCharsToChars(char* resultOfLen4, const char16_t* currency) {
  282|  53.4k|    u_UCharsToChars(currency, resultOfLen4, ISO_CURRENCY_CODE_LENGTH);
  ------------------
  |  |  211|  53.4k|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|  53.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  53.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  53.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  u_UCharsToChars(currency, resultOfLen4, ISO_CURRENCY_CODE_LENGTH);
  ------------------
  |  |   74|  53.4k|#define ISO_CURRENCY_CODE_LENGTH 3
  ------------------
  283|  53.4k|    resultOfLen4[ISO_CURRENCY_CODE_LENGTH] = 0;
  ------------------
  |  |   74|  53.4k|#define ISO_CURRENCY_CODE_LENGTH 3
  ------------------
  284|  53.4k|    return resultOfLen4;
  285|  53.4k|}

_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|  36.1k|                 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|  36.1k|    if(pErrorCode==nullptr || U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (1411:8): [True: 0, False: 36.1k]
  |  Branch (1411:31): [True: 0, False: 36.1k]
  ------------------
 1412|      0|        return nullptr;
 1413|  36.1k|    } else if(name==nullptr || *name==0 || isAcceptable==nullptr) {
  ------------------
  |  Branch (1413:15): [True: 0, False: 36.1k]
  |  Branch (1413:32): [True: 0, False: 36.1k]
  |  Branch (1413:44): [True: 0, False: 36.1k]
  ------------------
 1414|      0|        *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
 1415|      0|        return nullptr;
 1416|  36.1k|    } else {
 1417|  36.1k|        return doOpenChoice(path, type, name, isAcceptable, context, pErrorCode);
 1418|  36.1k|    }
 1419|  36.1k|}
udata.cpp:_ZL12findBasenamePKc:
  225|  33.9k|findBasename(const char *path) {
  226|  33.9k|    const char *basename=uprv_strrchr(path, U_FILE_SEP_CHAR);
  ------------------
  |  |   42|  33.9k|#define uprv_strrchr(s, c) U_STANDARD_CPP_NAMESPACE strrchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  33.9k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  227|  33.9k|    if(basename==nullptr) {
  ------------------
  |  Branch (227:8): [True: 33.9k, False: 0]
  ------------------
  228|  33.9k|        return path;
  229|  33.9k|    } else {
  230|      0|        return basename+1;
  231|      0|    }
  232|  33.9k|}
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|  33.9k|static UHashtable *udata_getHashTable(UErrorCode &err) {
  299|  33.9k|    umtx_initOnce(gCommonDataCacheInitOnce, &udata_initHashTable, err);
  300|  33.9k|    return gCommonDataCache;
  301|  33.9k|}
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|  36.1k|{
 1152|  36.1k|    UDataMemory         *retVal = nullptr;
 1153|       |
 1154|  36.1k|    const char         *dataPath;
 1155|       |
 1156|  36.1k|    int32_t             tocEntrySuffixIndex;
 1157|  36.1k|    const char         *tocEntryPathSuffix;
 1158|  36.1k|    UErrorCode          subErrorCode=U_ZERO_ERROR;
 1159|  36.1k|    const char         *treeChar;
 1160|       |
 1161|  36.1k|    UBool               isICUData = false;
 1162|       |
 1163|       |
 1164|  36.1k|    FileTracer::traceOpen(path, type, name);
 1165|       |
 1166|       |
 1167|       |    /* Is this path ICU data? */
 1168|  36.1k|    if(path == nullptr ||
  ------------------
  |  Branch (1168:8): [True: 17.7k, False: 18.3k]
  ------------------
 1169|  36.1k|       !strcmp(path, U_ICUDATA_ALIAS) ||  /* "ICUDATA" */
  ------------------
  |  |   74|  18.3k|#define U_ICUDATA_ALIAS "ICUDATA"
  ------------------
  |  Branch (1169:8): [True: 0, False: 18.3k]
  ------------------
 1170|  36.1k|       !uprv_strncmp(path, U_ICUDATA_NAME U_TREE_SEPARATOR_STRING, /* "icudt26e-" */
  ------------------
  |  |   44|  18.3k|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|  18.3k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1170:8): [True: 18.3k, False: 0]
  ------------------
 1171|  36.1k|                     uprv_strlen(U_ICUDATA_NAME U_TREE_SEPARATOR_STRING)) ||  
 1172|  36.1k|       !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|  36.1k|                     uprv_strlen(U_ICUDATA_ALIAS U_TREE_SEPARATOR_STRING))) {
 1174|  36.1k|      isICUData = true;
 1175|  36.1k|    }
 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|  36.1k|    CharString tocEntryName; /* entry name in tree format. ex:  'icudt28b/coll/ar.res' */
 1196|  36.1k|    CharString tocEntryPath; /* entry name in path format. ex:  'icudt28b\\coll\\ar.res' */
 1197|       |
 1198|  36.1k|    CharString pkgName;
 1199|  36.1k|    CharString treeName;
 1200|       |
 1201|       |    /* ======= Set up strings */
 1202|  36.1k|    if(path==nullptr) {
  ------------------
  |  Branch (1202:8): [True: 17.7k, False: 18.3k]
  ------------------
 1203|  17.7k|        pkgName.append(U_ICUDATA_NAME, *pErrorCode);
  ------------------
  |  |  154|  17.7k|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  |  |  |  |  144|  17.7k|#     define U_ICUDATA_TYPE_LETTER "l"
  |  |  ------------------
  ------------------
 1204|  18.3k|    } else {
 1205|  18.3k|        const char *pkg;
 1206|  18.3k|        const char *first;
 1207|  18.3k|        pkg = uprv_strrchr(path, U_FILE_SEP_CHAR);
  ------------------
  |  |   42|  18.3k|#define uprv_strrchr(s, c) U_STANDARD_CPP_NAMESPACE strrchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  18.3k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1208|  18.3k|        first = uprv_strchr(path, U_FILE_SEP_CHAR);
  ------------------
  |  |   40|  18.3k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  18.3k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1209|  18.3k|        if(uprv_pathIsAbsolute(path) || (pkg != first)) { /* more than one slash in the path- not a tree name */
  ------------------
  |  | 1533|  18.3k|#define uprv_pathIsAbsolute U_ICU_ENTRY_POINT_RENAME(uprv_pathIsAbsolute)
  |  |  ------------------
  |  |  |  |  123|  18.3k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  18.3k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  18.3k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1209:12): [True: 0, False: 18.3k]
  |  Branch (1209:41): [True: 0, False: 18.3k]
  ------------------
 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|  18.3k|        } else {
 1217|  18.3k|            treeChar = uprv_strchr(path, U_TREE_SEPARATOR);
  ------------------
  |  |   40|  18.3k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  18.3k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1218|  18.3k|            if(treeChar) { 
  ------------------
  |  Branch (1218:16): [True: 18.3k, False: 0]
  ------------------
 1219|  18.3k|                treeName.append(treeChar+1, *pErrorCode); /* following '-' */
 1220|  18.3k|                if(isICUData) {
  ------------------
  |  Branch (1220:20): [True: 18.3k, False: 0]
  ------------------
 1221|  18.3k|                    pkgName.append(U_ICUDATA_NAME, *pErrorCode);
  ------------------
  |  |  154|  18.3k|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  |  |  |  |  144|  18.3k|#     define U_ICUDATA_TYPE_LETTER "l"
  |  |  ------------------
  ------------------
 1222|  18.3k|                } 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|  18.3k|            } 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|  18.3k|        }
 1240|  18.3k|    }
 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|  36.1k|    tocEntryName.append(pkgName, *pErrorCode);
 1253|  36.1k|    tocEntryPath.append(pkgName, *pErrorCode);
 1254|  36.1k|    tocEntrySuffixIndex = tocEntryName.length();
 1255|       |
 1256|  36.1k|    if(!treeName.isEmpty()) {
  ------------------
  |  Branch (1256:8): [True: 18.3k, False: 17.7k]
  ------------------
 1257|  18.3k|        tocEntryName.append(U_TREE_ENTRY_SEP_CHAR, *pErrorCode).append(treeName, *pErrorCode);
  ------------------
  |  |   62|  18.3k|#define U_TREE_ENTRY_SEP_CHAR '/'
  ------------------
 1258|  18.3k|        tocEntryPath.append(U_FILE_SEP_CHAR, *pErrorCode).append(treeName, *pErrorCode);
  ------------------
  |  |  130|  18.3k|#   define U_FILE_SEP_CHAR '/'
  ------------------
 1259|  18.3k|    }
 1260|       |
 1261|  36.1k|    tocEntryName.append(U_TREE_ENTRY_SEP_CHAR, *pErrorCode).append(name, *pErrorCode);
  ------------------
  |  |   62|  36.1k|#define U_TREE_ENTRY_SEP_CHAR '/'
  ------------------
 1262|  36.1k|    tocEntryPath.append(U_FILE_SEP_CHAR, *pErrorCode).append(name, *pErrorCode);
  ------------------
  |  |  130|  36.1k|#   define U_FILE_SEP_CHAR '/'
  ------------------
 1263|  36.1k|    if(type!=nullptr && *type!=0) {
  ------------------
  |  Branch (1263:8): [True: 36.1k, False: 0]
  |  Branch (1263:25): [True: 36.1k, False: 0]
  ------------------
 1264|  36.1k|        tocEntryName.append(".", *pErrorCode).append(type, *pErrorCode);
 1265|  36.1k|        tocEntryPath.append(".", *pErrorCode).append(type, *pErrorCode);
 1266|  36.1k|    }
 1267|       |    // The +1 is for the U_FILE_SEP_CHAR that is always appended above.
 1268|  36.1k|    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|  36.1k|#if !defined(ICU_DATA_DIR_WINDOWS)
 1276|  36.1k|    if(path == nullptr) {
  ------------------
  |  Branch (1276:8): [True: 17.7k, False: 18.3k]
  ------------------
 1277|  17.7k|        path = COMMON_DATA_NAME; /* "icudt26e" */
  ------------------
  |  |   34|  17.7k|#define COMMON_DATA_NAME U_ICUDATA_NAME
  |  |  ------------------
  |  |  |  |  154|  17.7k|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  |  |  ------------------
  |  |  |  |  |  |  144|  17.7k|#     define U_ICUDATA_TYPE_LETTER "l"
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1278|  17.7k|    }
 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|  36.1k|    dataPath = u_getDataDirectory();
  ------------------
  |  |  271|  36.1k|#define u_getDataDirectory U_ICU_ENTRY_POINT_RENAME(u_getDataDirectory)
  |  |  ------------------
  |  |  |  |  123|  36.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  36.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  36.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1291|       |
 1292|       |    /****    Time zone individual files override  */
 1293|  36.1k|    if (isICUData && isTimeZoneFile(name, type)) {
  ------------------
  |  Branch (1293:9): [True: 36.1k, False: 0]
  |  Branch (1293:22): [True: 3, False: 36.1k]
  ------------------
 1294|      3|        const char *tzFilesDir = u_getTimeZoneFilesDirectory(pErrorCode);
  ------------------
  |  |  287|      3|#define u_getTimeZoneFilesDirectory U_ICU_ENTRY_POINT_RENAME(u_getTimeZoneFilesDirectory)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1295|      3|        if (tzFilesDir[0] != 0) {
  ------------------
  |  Branch (1295:13): [True: 0, False: 3]
  ------------------
 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|      3|    }
 1306|       |
 1307|       |    /****    COMMON PACKAGE  - only if packages are first. */
 1308|  36.1k|    if(gDataFileAccess == UDATA_PACKAGES_FIRST) {
  ------------------
  |  Branch (1308:8): [True: 0, False: 36.1k]
  ------------------
 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|  36.1k|    if((gDataFileAccess==UDATA_PACKAGES_FIRST) ||
  ------------------
  |  Branch (1322:8): [True: 0, False: 36.1k]
  ------------------
 1323|  36.1k|       (gDataFileAccess==UDATA_FILES_FIRST)) {
  ------------------
  |  Branch (1323:8): [True: 36.1k, 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|  36.1k|        if ((dataPath && *dataPath) || !isICUData) {
  ------------------
  |  Branch (1328:14): [True: 36.1k, False: 0]
  |  Branch (1328:26): [True: 0, False: 36.1k]
  |  Branch (1328:40): [True: 0, False: 36.1k]
  ------------------
 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|  36.1k|    }
 1336|       |
 1337|       |    /****    COMMON PACKAGE  */
 1338|  36.1k|    if((gDataFileAccess==UDATA_ONLY_PACKAGES) || 
  ------------------
  |  Branch (1338:8): [True: 0, False: 36.1k]
  ------------------
 1339|  36.1k|       (gDataFileAccess==UDATA_FILES_FIRST)) {
  ------------------
  |  Branch (1339:8): [True: 36.1k, False: 0]
  ------------------
 1340|       |#ifdef UDATA_DEBUG
 1341|       |        fprintf(stderr, "Trying packages (UDATA_ONLY_PACKAGES || UDATA_FILES_FIRST)\n");
 1342|       |#endif
 1343|  36.1k|        retVal = doLoadFromCommonData(isICUData,
 1344|  36.1k|                            pkgName.data(), dataPath, tocEntryPathSuffix, tocEntryName.data(),
 1345|  36.1k|                            path, type, name, isAcceptable, context, &subErrorCode, pErrorCode);
 1346|  36.1k|        if((retVal != nullptr) || U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (1346:12): [True: 2.16k, False: 33.9k]
  |  Branch (1346:35): [True: 0, False: 33.9k]
  ------------------
 1347|  2.16k|            return retVal;
 1348|  2.16k|        }
 1349|  36.1k|    }
 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|  33.9k|    if(gDataFileAccess==UDATA_NO_FILES) {
  ------------------
  |  Branch (1354:8): [True: 0, False: 33.9k]
  ------------------
 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|  33.9k|    if(U_SUCCESS(*pErrorCode)) {
  ------------------
  |  Branch (1367:8): [True: 33.9k, False: 0]
  ------------------
 1368|  33.9k|        if(U_SUCCESS(subErrorCode)) {
  ------------------
  |  Branch (1368:12): [True: 33.9k, False: 1]
  ------------------
 1369|       |            /* file not found */
 1370|  33.9k|            *pErrorCode=U_FILE_ACCESS_ERROR;
 1371|  33.9k|        } else {
 1372|       |            /* entry point not found or rejected */
 1373|      1|            *pErrorCode=subErrorCode;
 1374|      1|        }
 1375|  33.9k|    }
 1376|  33.9k|    return retVal;
 1377|  33.9k|}
udata.cpp:_ZL14isTimeZoneFilePKcS0_:
 1107|  36.1k|static UBool isTimeZoneFile(const char *name, const char *type) {
 1108|  36.1k|    return ((uprv_strcmp(type, "res") == 0) &&
  ------------------
  |  |   38|  36.1k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  36.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1108:13): [True: 36.1k, False: 0]
  ------------------
 1109|  36.1k|            (uprv_strcmp(name, "zoneinfo64") == 0 ||
  ------------------
  |  |   38|  36.1k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  36.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1109:14): [True: 1, False: 36.1k]
  ------------------
 1110|  36.1k|             uprv_strcmp(name, "timezoneTypes") == 0 ||
  ------------------
  |  |   38|  36.1k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  36.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1110:14): [True: 1, False: 36.1k]
  ------------------
 1111|  36.1k|             uprv_strcmp(name, "windowsZones") == 0 ||
  ------------------
  |  |   38|  36.1k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  36.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1111:14): [True: 0, False: 36.1k]
  ------------------
 1112|  36.1k|             uprv_strcmp(name, "metaZones") == 0));
  ------------------
  |  |   38|  36.1k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  36.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1112:14): [True: 1, False: 36.1k]
  ------------------
 1113|  36.1k|}
udata.cpp:_ZL13checkDataItemPK10DataHeaderPFaPvPKcS4_PK9UDataInfoES2_S4_S4_P10UErrorCodeSB_:
  949|  2.16k|{
  950|  2.16k|    UDataMemory  *rDataMem = nullptr;          /* the new UDataMemory, to be returned.        */
  951|       |
  952|  2.16k|    if (U_FAILURE(*fatalErr)) {
  ------------------
  |  Branch (952:9): [True: 0, False: 2.16k]
  ------------------
  953|      0|        return nullptr;
  954|      0|    }
  955|       |
  956|  2.16k|    if(pHeader->dataHeader.magic1==0xda &&
  ------------------
  |  Branch (956:8): [True: 2.16k, False: 0]
  ------------------
  957|  2.16k|        pHeader->dataHeader.magic2==0x27 &&
  ------------------
  |  Branch (957:9): [True: 2.16k, False: 0]
  ------------------
  958|  2.16k|        (isAcceptable==nullptr || isAcceptable(context, type, name, &pHeader->info))
  ------------------
  |  Branch (958:10): [True: 0, False: 2.16k]
  |  Branch (958:35): [True: 2.16k, False: 0]
  ------------------
  959|  2.16k|    ) {
  960|  2.16k|        rDataMem=UDataMemory_createNewInstance(fatalErr);
  ------------------
  |  |   79|  2.16k|#define UDataMemory_createNewInstance U_ICU_ENTRY_POINT_RENAME(UDataMemory_createNewInstance)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  961|  2.16k|        if (U_FAILURE(*fatalErr)) {
  ------------------
  |  Branch (961:13): [True: 0, False: 2.16k]
  ------------------
  962|      0|            return nullptr;
  963|      0|        }
  964|  2.16k|        rDataMem->pHeader = pHeader;
  965|  2.16k|    } 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|  2.16k|    return rDataMem;
  972|  2.16k|}
udata.cpp:_ZL20doLoadFromCommonDataaPKcS0_S0_S0_S0_S0_S0_PFaPvS0_S0_PK9UDataInfoES1_P10UErrorCodeS8_:
 1042|  36.1k|{
 1043|  36.1k|    UDataMemory        *pEntryData;
 1044|  36.1k|    const DataHeader   *pHeader;
 1045|  36.1k|    UDataMemory        *pCommonData;
 1046|  36.1k|    int32_t            commonDataIndex;
 1047|  36.1k|    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|  70.1k|    for (commonDataIndex = isICUData ? 0 : -1;;) {
  ------------------
  |  Branch (1057:28): [True: 36.1k, False: 0]
  ------------------
 1058|  70.1k|        pCommonData=openCommonData(path, commonDataIndex, subErrorCode); /** search for pkg **/
 1059|       |
 1060|  70.1k|        if(U_SUCCESS(*subErrorCode) && pCommonData!=nullptr) {
  ------------------
  |  Branch (1060:12): [True: 70.1k, False: 0]
  |  Branch (1060:40): [True: 36.1k, False: 33.9k]
  ------------------
 1061|  36.1k|            int32_t length;
 1062|       |
 1063|       |            /* look up the data piece in the common data */
 1064|  36.1k|            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|  36.1k|            if(pHeader!=nullptr) {
  ------------------
  |  Branch (1069:16): [True: 2.16k, False: 33.9k]
  ------------------
 1070|  2.16k|                pEntryData = checkDataItem(pHeader, isAcceptable, context, type, name, subErrorCode, pErrorCode);
 1071|       |#ifdef UDATA_DEBUG
 1072|       |                fprintf(stderr, "pEntryData=%p\n", (void*) pEntryData);
 1073|       |#endif
 1074|  2.16k|                if (U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (1074:21): [True: 0, False: 2.16k]
  ------------------
 1075|      0|                    return nullptr;
 1076|      0|                }
 1077|  2.16k|                if (pEntryData != nullptr) {
  ------------------
  |  Branch (1077:21): [True: 2.16k, False: 0]
  ------------------
 1078|  2.16k|                    pEntryData->length = length;
 1079|  2.16k|                    return pEntryData;
 1080|  2.16k|                }
 1081|  2.16k|            }
 1082|  36.1k|        }
 1083|       |        // If we failed due to being out-of-memory, then stop early and report the error.
 1084|  67.9k|        if (*subErrorCode == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (1084:13): [True: 0, False: 67.9k]
  ------------------
 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|  67.9k|        if (!isICUData) {
  ------------------
  |  Branch (1091:13): [True: 0, False: 67.9k]
  ------------------
 1092|      0|            return nullptr;
 1093|  67.9k|        } else if (pCommonData != nullptr) {
  ------------------
  |  Branch (1093:20): [True: 33.9k, False: 33.9k]
  ------------------
 1094|  33.9k|            ++commonDataIndex;  /* try the next data package */
 1095|  33.9k|        } else if ((!checkedExtendedICUData) && extendICUData(subErrorCode)) {
  ------------------
  |  Branch (1095:20): [True: 33.9k, False: 0]
  |  Branch (1095:49): [True: 0, False: 33.9k]
  ------------------
 1096|      0|            checkedExtendedICUData = true;
 1097|       |            /* try this data package slot again: it changed from nullptr to non-nullptr */
 1098|  33.9k|        } else {
 1099|  33.9k|            return nullptr;
 1100|  33.9k|        }
 1101|  67.9k|    }
 1102|  36.1k|}
udata.cpp:_ZL14openCommonDataPKciP10UErrorCode:
  673|  70.1k|{
  674|  70.1k|    UDataMemory tData;
  675|  70.1k|    const char *pathBuffer;
  676|  70.1k|    const char *inBasename;
  677|       |
  678|  70.1k|    if (U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (678:9): [True: 0, False: 70.1k]
  ------------------
  679|      0|        return nullptr;
  680|      0|    }
  681|       |
  682|  70.1k|    UDataMemory_init(&tData);
  ------------------
  |  |   80|  70.1k|#define UDataMemory_init U_ICU_ENTRY_POINT_RENAME(UDataMemory_init)
  |  |  ------------------
  |  |  |  |  123|  70.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  70.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  70.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  683|       |
  684|       |    /* ??????? TODO revisit this */ 
  685|  70.1k|    if (commonDataIndex >= 0) {
  ------------------
  |  Branch (685:9): [True: 70.1k, False: 1]
  ------------------
  686|       |        /* "mini-cache" for common ICU data */
  687|  70.1k|        if(commonDataIndex >= UPRV_LENGTHOF(gCommonICUDataArray)) {
  ------------------
  |  |   99|  70.1k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (687:12): [True: 0, False: 70.1k]
  ------------------
  688|      0|            return nullptr;
  689|      0|        }
  690|  70.1k|        {
  691|  70.1k|            Mutex lock;
  692|  70.1k|            if(gCommonICUDataArray[commonDataIndex] != nullptr) {
  ------------------
  |  Branch (692:16): [True: 36.1k, False: 33.9k]
  ------------------
  693|  36.1k|                return gCommonICUDataArray[commonDataIndex];
  694|  36.1k|            }
  695|  33.9k|#if !defined(ICU_DATA_DIR_WINDOWS)
  696|       |// When using the Windows system data, we expect only a single data file.
  697|  33.9k|            int32_t i;
  698|  33.9k|            for(i = 0; i < commonDataIndex; ++i) {
  ------------------
  |  Branch (698:24): [True: 33.9k, False: 1]
  ------------------
  699|  33.9k|                if(gCommonICUDataArray[i]->pHeader == &U_ICUDATA_ENTRY_POINT) {
  ------------------
  |  |  171|  33.9k|#define U_ICUDATA_ENTRY_POINT  U_DEF2_ICUDATA_ENTRY_POINT(U_ICU_VERSION_MAJOR_NUM,U_LIB_SUFFIX_C_NAME)
  |  |  ------------------
  |  |  |  |  178|  33.9k|#define U_DEF2_ICUDATA_ENTRY_POINT(major,suff) U_DEF_ICUDATA_ENTRY_POINT(major,suff)
  |  |  |  |  ------------------
  |  |  |  |  |  |  187|  33.9k|#define U_DEF_ICUDATA_ENTRY_POINT(major, suff) icudt##major##_dat
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (699:20): [True: 33.9k, False: 0]
  ------------------
  700|       |                    /* The linked-in data is already in the list. */
  701|  33.9k|                    return nullptr;
  702|  33.9k|                }
  703|  33.9k|            }
  704|  33.9k|#endif
  705|  33.9k|        }
  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|  33.9k|        }
  727|  33.9k|#endif
  728|  33.9k|    }
  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|  33.9k|{
  307|  33.9k|    UHashtable        *htable;
  308|  33.9k|    UDataMemory       *retVal = nullptr;
  309|  33.9k|    DataCacheElement  *el;
  310|  33.9k|    const char        *baseName;
  311|       |
  312|  33.9k|    htable = udata_getHashTable(err);
  313|  33.9k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (313:9): [True: 1, False: 33.9k]
  ------------------
  314|      1|        return nullptr;
  315|      1|    }
  316|       |
  317|  33.9k|    baseName = findBasename(path);   /* Cache remembers only the base name, not the full path. */
  318|  33.9k|    umtx_lock(nullptr);
  ------------------
  |  | 1250|  33.9k|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  123|  33.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  33.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  33.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  319|  33.9k|    el = static_cast<DataCacheElement*>(uhash_get(htable, baseName));
  ------------------
  |  | 1007|  33.9k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  33.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  33.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  33.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  320|  33.9k|    umtx_unlock(nullptr);
  ------------------
  |  | 1251|  33.9k|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  123|  33.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  33.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  33.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  321|  33.9k|    if (el != nullptr) {
  ------------------
  |  Branch (321:9): [True: 0, False: 33.9k]
  ------------------
  322|      0|        retVal = el->item;
  323|      0|    }
  324|       |#ifdef UDATA_DEBUG
  325|       |    fprintf(stderr, "Cache: [%s] -> %p\n", baseName, (void*) retVal);
  326|       |#endif
  327|  33.9k|    return retVal;
  328|  33.9k|}
udata.cpp:_ZL13extendICUDataP10UErrorCode:
  811|  33.9k|{
  812|  33.9k|    UDataMemory   *pData;
  813|  33.9k|    UDataMemory   copyPData;
  814|  33.9k|    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|  33.9k|    if(!umtx_loadAcquire(gHaveTriedToLoadCommonData)) {
  ------------------
  |  Branch (830:8): [True: 1, False: 33.9k]
  ------------------
  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|  33.9k|    didUpdate = findCommonICUDataByName(U_ICUDATA_NAME, *pErr);  /* Return 'true' when a racing writes out the extended                 */
  ------------------
  |  |  154|  33.9k|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  |  |  |  |  144|  33.9k|#     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|  33.9k|    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|  33.9k|}
udata.cpp:_ZL23findCommonICUDataByNamePKcR10UErrorCode:
  144|  33.9k|{
  145|  33.9k|    UBool found = false;
  146|  33.9k|    int32_t i;
  147|       |
  148|  33.9k|    UDataMemory  *pData = udata_findCachedData(inBasename, err);
  149|  33.9k|    if (U_FAILURE(err) || pData == nullptr)
  ------------------
  |  Branch (149:9): [True: 1, False: 33.9k]
  |  Branch (149:27): [True: 33.9k, False: 0]
  ------------------
  150|  33.9k|        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|  33.9k|}

UDataMemory_init_78:
   28|  72.2k|U_CFUNC void UDataMemory_init(UDataMemory *This) {
   29|  72.2k|    uprv_memset(This, 0, sizeof(UDataMemory));
  ------------------
  |  |  100|  72.2k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  72.2k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
   30|  72.2k|    This->length=-1;
   31|  72.2k|}
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|  2.17k|U_CFUNC UDataMemory *UDataMemory_createNewInstance(UErrorCode *pErr) {
   42|  2.17k|    UDataMemory *This;
   43|       |
   44|  2.17k|    if (U_FAILURE(*pErr)) {
  ------------------
  |  Branch (44:9): [True: 0, False: 2.17k]
  ------------------
   45|      0|        return nullptr;
   46|      0|    }
   47|  2.17k|    This = (UDataMemory *)uprv_malloc(sizeof(UDataMemory));
  ------------------
  |  | 1524|  2.17k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  2.17k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.17k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.17k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   48|  2.17k|    if (This == nullptr) {
  ------------------
  |  Branch (48:9): [True: 0, False: 2.17k]
  ------------------
   49|      0|        *pErr = U_MEMORY_ALLOCATION_ERROR; }
   50|  2.17k|    else {
   51|  2.17k|        UDataMemory_init(This);
  ------------------
  |  |   80|  2.17k|#define UDataMemory_init U_ICU_ENTRY_POINT_RENAME(UDataMemory_init)
  |  |  ------------------
  |  |  |  |  123|  2.17k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.17k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.17k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   52|  2.17k|        This->heapAllocated = true;
   53|  2.17k|    }
   54|  2.17k|    return This;
   55|  2.17k|}
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_getMemory_78:
  104|  2.16k|udata_getMemory(UDataMemory *pData) {
  105|  2.16k|    if(pData!=nullptr && pData->pHeader!=nullptr) {
  ------------------
  |  Branch (105:8): [True: 2.16k, False: 0]
  |  Branch (105:26): [True: 2.16k, False: 0]
  ------------------
  106|  2.16k|        return (char *)(pData->pHeader)+udata_getHeaderSize(pData->pHeader);
  ------------------
  |  |  887|  2.16k|#define udata_getHeaderSize U_ICU_ENTRY_POINT_RENAME(udata_getHeaderSize)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  107|  2.16k|    } else {
  108|      0|        return nullptr;
  109|      0|    }
  110|  2.16k|}
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|  2.32k|           UErrorCode *status) {
  548|       |
  549|  2.32k|    return _uhash_create(keyHash, keyComp, valueComp, DEFAULT_PRIME_INDEX, status);
  ------------------
  |  |   91|  2.32k|#define DEFAULT_PRIME_INDEX 4
  ------------------
  550|  2.32k|}
uhash_openSize_78:
  557|      8|               UErrorCode *status) {
  558|       |
  559|       |    /* Find the smallest index i for which PRIMES[i] >= size. */
  560|      8|    int32_t i = 0;
  561|     32|    while (i<(PRIMES_LENGTH-1) && PRIMES[i]<size) {
  ------------------
  |  |   90|     32|#define PRIMES_LENGTH UPRV_LENGTHOF(PRIMES)
  |  |  ------------------
  |  |  |  |   99|     32|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  |  |  ------------------
  ------------------
  |  Branch (561:12): [True: 32, False: 0]
  |  Branch (561:35): [True: 24, False: 8]
  ------------------
  562|     24|        ++i;
  563|     24|    }
  564|       |
  565|      8|    return _uhash_create(keyHash, keyComp, valueComp, i, status);
  566|      8|}
uhash_init_78:
  573|  78.4k|           UErrorCode *status) {
  574|       |
  575|  78.4k|    return _uhash_init(fillinResult, keyHash, keyComp, valueComp, DEFAULT_PRIME_INDEX, status);
  ------------------
  |  |   91|  78.4k|#define DEFAULT_PRIME_INDEX 4
  ------------------
  576|  78.4k|}
uhash_close_78:
  595|  78.4k|uhash_close(UHashtable *hash) {
  596|  78.4k|    if (hash == nullptr) {
  ------------------
  |  Branch (596:9): [True: 14, False: 78.4k]
  ------------------
  597|     14|        return;
  598|     14|    }
  599|  78.4k|    if (hash->elements != nullptr) {
  ------------------
  |  Branch (599:9): [True: 78.4k, False: 0]
  ------------------
  600|  78.4k|        if (hash->keyDeleter != nullptr || hash->valueDeleter != nullptr) {
  ------------------
  |  Branch (600:13): [True: 78.4k, False: 2]
  |  Branch (600:44): [True: 0, False: 2]
  ------------------
  601|  78.4k|            int32_t pos=UHASH_FIRST;
  ------------------
  |  |  610|  78.4k|#define UHASH_FIRST (-1)
  ------------------
  602|  78.4k|            UHashElement *e;
  603|  1.31M|            while ((e = (UHashElement*) uhash_nextElement(hash, &pos)) != nullptr) {
  ------------------
  |  | 1029|  1.31M|#define uhash_nextElement U_ICU_ENTRY_POINT_RENAME(uhash_nextElement)
  |  |  ------------------
  |  |  |  |  123|  1.31M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.31M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.31M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (603:20): [True: 1.23M, False: 78.4k]
  ------------------
  604|  1.23M|                HASH_DELETE_KEY_VALUE(hash, e->key.pointer, e->value.pointer);
  ------------------
  |  |  124|  1.23M|#define HASH_DELETE_KEY_VALUE(hash, keypointer, valuepointer) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  1.23M|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  125|  1.23M|    if (hash->keyDeleter != nullptr && keypointer != nullptr) { \
  |  |  ------------------
  |  |  |  Branch (125:9): [True: 1.23M, False: 0]
  |  |  |  Branch (125:40): [True: 1.23M, False: 0]
  |  |  ------------------
  |  |  126|  1.23M|        (*hash->keyDeleter)(keypointer); \
  |  |  127|  1.23M|    } \
  |  |  128|  1.23M|    if (hash->valueDeleter != nullptr && valuepointer != nullptr) { \
  |  |  ------------------
  |  |  |  Branch (128:9): [True: 310k, False: 925k]
  |  |  |  Branch (128:42): [True: 310k, False: 0]
  |  |  ------------------
  |  |  129|   310k|        (*hash->valueDeleter)(valuepointer); \
  |  |  130|   310k|    } \
  |  |  131|  1.23M|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  1.23M|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  605|  1.23M|            }
  606|  78.4k|        }
  607|  78.4k|        uprv_free(hash->elements);
  ------------------
  |  | 1503|  78.4k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  78.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  78.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  78.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  608|  78.4k|        hash->elements = nullptr;
  609|  78.4k|    }
  610|  78.4k|    if (hash->allocated) {
  ------------------
  |  Branch (610:9): [True: 0, False: 78.4k]
  ------------------
  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|  78.4k|}
uhash_setKeyDeleter_78:
  636|  78.7k|uhash_setKeyDeleter(UHashtable *hash, UObjectDeleter *fn) {
  637|  78.7k|    UObjectDeleter *result = hash->keyDeleter;
  638|  78.7k|    hash->keyDeleter = fn;
  639|  78.7k|    return result;
  640|  78.7k|}
uhash_setValueDeleter_78:
  643|  46.8k|uhash_setValueDeleter(UHashtable *hash, UObjectDeleter *fn) {
  644|  46.8k|    UObjectDeleter *result = hash->valueDeleter;
  645|  46.8k|    hash->valueDeleter = fn;
  646|  46.8k|    return result;
  647|  46.8k|}
uhash_count_78:
  659|   297k|uhash_count(const UHashtable *hash) {
  660|   297k|    return hash->count;
  661|   297k|}
uhash_get_78:
  665|  4.24M|          const void* key) {
  666|  4.24M|    UHashTok keyholder;
  667|  4.24M|    keyholder.pointer = (void*) key;
  668|  4.24M|    return _uhash_find(hash, keyholder, hash->keyHasher(keyholder))->value.pointer;
  669|  4.24M|}
uhash_iget_78:
  673|  9.70k|           int32_t key) {
  674|  9.70k|    UHashTok keyholder;
  675|  9.70k|    keyholder.integer = key;
  676|  9.70k|    return _uhash_find(hash, keyholder, hash->keyHasher(keyholder))->value.pointer;
  677|  9.70k|}
uhash_geti_78:
  681|  1.49M|           const void* key) {
  682|  1.49M|    UHashTok keyholder;
  683|  1.49M|    keyholder.pointer = (void*) key;
  684|  1.49M|    return _uhash_find(hash, keyholder, hash->keyHasher(keyholder))->value.integer;
  685|  1.49M|}
uhash_igeti_78:
  689|     30|           int32_t key) {
  690|     30|    UHashTok keyholder;
  691|     30|    keyholder.integer = key;
  692|     30|    return _uhash_find(hash, keyholder, hash->keyHasher(keyholder))->value.integer;
  693|     30|}
uhash_put_78:
  721|   591k|          UErrorCode *status) {
  722|   591k|    UHashTok keyholder, valueholder;
  723|   591k|    keyholder.pointer = key;
  724|   591k|    valueholder.pointer = value;
  725|   591k|    return _uhash_put(hash, keyholder, valueholder,
  726|   591k|                      HINT_KEY_POINTER | HINT_VALUE_POINTER,
  ------------------
  |  |  139|   591k|#define HINT_KEY_POINTER   (1)
  ------------------
                                    HINT_KEY_POINTER | HINT_VALUE_POINTER,
  ------------------
  |  |  140|   591k|#define HINT_VALUE_POINTER (2)
  ------------------
  727|   591k|                      status).pointer;
  728|   591k|}
uhash_iput_78:
  734|  6.22k|           UErrorCode *status) {
  735|  6.22k|    UHashTok keyholder, valueholder;
  736|  6.22k|    keyholder.integer = key;
  737|  6.22k|    valueholder.pointer = value;
  738|  6.22k|    return _uhash_put(hash, keyholder, valueholder,
  739|  6.22k|                      HINT_VALUE_POINTER,
  ------------------
  |  |  140|  6.22k|#define HINT_VALUE_POINTER (2)
  ------------------
  740|  6.22k|                      status).pointer;
  741|  6.22k|}
uhash_puti_78:
  747|   898k|           UErrorCode *status) {
  748|   898k|    UHashTok keyholder, valueholder;
  749|   898k|    keyholder.pointer = key;
  750|   898k|    valueholder.integer = value;
  751|   898k|    return _uhash_put(hash, keyholder, valueholder,
  752|   898k|                      HINT_KEY_POINTER,
  ------------------
  |  |  139|   898k|#define HINT_KEY_POINTER   (1)
  ------------------
  753|   898k|                      status).integer;
  754|   898k|}
uhash_iputi_78:
  761|      4|           UErrorCode *status) {
  762|      4|    UHashTok keyholder, valueholder;
  763|      4|    keyholder.integer = key;
  764|      4|    valueholder.integer = value;
  765|      4|    return _uhash_put(hash, keyholder, valueholder,
  766|      4|                      HINT_BOTH_INTEGERS,
  ------------------
  |  |  138|      4|#define HINT_BOTH_INTEGERS (0)
  ------------------
  767|      4|                      status).integer;
  768|      4|}
uhash_remove_78:
  799|   163k|             const void* key) {
  800|   163k|    UHashTok keyholder;
  801|   163k|    keyholder.pointer = (void*) key;
  802|   163k|    return _uhash_remove(hash, keyholder).pointer;
  803|   163k|}
uhash_find_78:
  866|   299k|uhash_find(const UHashtable *hash, const void* key) {
  867|   299k|    UHashTok keyholder;
  868|   299k|    const UHashElement *e;
  869|   299k|    keyholder.pointer = (void*) key;
  870|   299k|    e = _uhash_find(hash, keyholder, hash->keyHasher(keyholder));
  871|   299k|    return IS_EMPTY_OR_DELETED(e->hashcode) ? nullptr : e;
  ------------------
  |  |  120|   299k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  |  |  ------------------
  |  |  |  Branch (120:32): [True: 38.4k, False: 260k]
  |  |  ------------------
  ------------------
  872|   299k|}
uhash_nextElement_78:
  875|  1.39M|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|  1.39M|    int32_t i;
  880|  1.39M|    U_ASSERT(hash != nullptr);
  ------------------
  |  |   35|  1.39M|#   define U_ASSERT(exp) (void)0
  ------------------
  881|  10.2M|    for (i = *pos + 1; i < hash->length; ++i) {
  ------------------
  |  Branch (881:24): [True: 10.1M, False: 78.5k]
  ------------------
  882|  10.1M|        if (!IS_EMPTY_OR_DELETED(hash->elements[i].hashcode)) {
  ------------------
  |  |  120|  10.1M|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  ------------------
  |  Branch (882:13): [True: 1.32M, False: 8.83M]
  ------------------
  883|  1.32M|            *pos = i;
  884|  1.32M|            return &(hash->elements[i]);
  885|  1.32M|        }
  886|  10.1M|    }
  887|       |
  888|       |    /* No more elements */
  889|  78.5k|    return nullptr;
  890|  1.39M|}
uhash_removeElement_78:
  893|  37.4k|uhash_removeElement(UHashtable *hash, const UHashElement* e) {
  894|  37.4k|    U_ASSERT(hash != nullptr);
  ------------------
  |  |   35|  37.4k|#   define U_ASSERT(exp) (void)0
  ------------------
  895|  37.4k|    U_ASSERT(e != nullptr);
  ------------------
  |  |   35|  37.4k|#   define U_ASSERT(exp) (void)0
  ------------------
  896|  37.4k|    if (!IS_EMPTY_OR_DELETED(e->hashcode)) {
  ------------------
  |  |  120|  37.4k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  ------------------
  |  Branch (896:9): [True: 37.4k, False: 0]
  ------------------
  897|  37.4k|        UHashElement *nce = (UHashElement *)e;
  898|  37.4k|        return _uhash_internalRemoveElement(hash, nce).pointer;
  899|  37.4k|    }
  900|      0|    return nullptr;
  901|  37.4k|}
uhash_hashUChars_78:
  932|  54.9k|uhash_hashUChars(const UHashTok key) {
  933|  54.9k|    const char16_t *s = (const char16_t *)key.pointer;
  934|  54.9k|    return s == nullptr ? 0 : ustr_hashUCharsN(s, u_strlen(s));
  ------------------
  |  | 1880|  54.9k|#define ustr_hashUCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashUCharsN)
  |  |  ------------------
  |  |  |  |  123|  54.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  54.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  54.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  return s == nullptr ? 0 : ustr_hashUCharsN(s, u_strlen(s));
  ------------------
  |  |  393|  54.9k|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|  54.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  54.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  54.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (934:12): [True: 0, False: 54.9k]
  ------------------
  935|  54.9k|}
uhash_hashChars_78:
  938|  4.59M|uhash_hashChars(const UHashTok key) {
  939|  4.59M|    const char *s = (const char *)key.pointer;
  940|  4.59M|    return s == nullptr ? 0 : static_cast<int32_t>(ustr_hashCharsN(s, static_cast<int32_t>(uprv_strlen(s))));
  ------------------
  |  | 1878|  3.16M|#define ustr_hashCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashCharsN)
  |  |  ------------------
  |  |  |  |  123|  3.16M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.16M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.16M|#       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|  3.16M|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  3.16M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (940:12): [True: 1.43M, False: 3.16M]
  ------------------
  941|  4.59M|}
uhash_hashIStringView_78:
  950|   127k|uhash_hashIStringView(const UHashTok key) {
  951|   127k|    const std::string_view* s = static_cast<std::string_view*>(key.pointer);
  952|   127k|    return s == nullptr ? 0 : ustr_hashICharsN(s->data(), static_cast<int32_t>(s->size()));
  ------------------
  |  | 1879|   127k|#define ustr_hashICharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashICharsN)
  |  |  ------------------
  |  |  |  |  123|   127k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   127k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   127k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (952:12): [True: 0, False: 127k]
  ------------------
  953|   127k|}
uhash_compareUChars_78:
 1012|  25.1k|uhash_compareUChars(const UHashTok key1, const UHashTok key2) {
 1013|  25.1k|    const char16_t *p1 = (const char16_t*) key1.pointer;
 1014|  25.1k|    const char16_t *p2 = (const char16_t*) key2.pointer;
 1015|  25.1k|    if (p1 == p2) {
  ------------------
  |  Branch (1015:9): [True: 515, False: 24.6k]
  ------------------
 1016|    515|        return true;
 1017|    515|    }
 1018|  24.6k|    if (p1 == nullptr || p2 == nullptr) {
  ------------------
  |  Branch (1018:9): [True: 0, False: 24.6k]
  |  Branch (1018:26): [True: 0, False: 24.6k]
  ------------------
 1019|      0|        return false;
 1020|      0|    }
 1021|   136k|    while (*p1 != 0 && *p1 == *p2) {
  ------------------
  |  Branch (1021:12): [True: 111k, False: 24.6k]
  |  Branch (1021:24): [True: 111k, False: 0]
  ------------------
 1022|   111k|        ++p1;
 1023|   111k|        ++p2;
 1024|   111k|    }
 1025|  24.6k|    return *p1 == *p2;
 1026|  24.6k|}
uhash_compareChars_78:
 1029|  4.34M|uhash_compareChars(const UHashTok key1, const UHashTok key2) {
 1030|  4.34M|    const char *p1 = (const char*) key1.pointer;
 1031|  4.34M|    const char *p2 = (const char*) key2.pointer;
 1032|  4.34M|    if (p1 == p2) {
  ------------------
  |  Branch (1032:9): [True: 1.37M, False: 2.96M]
  ------------------
 1033|  1.37M|        return true;
 1034|  1.37M|    }
 1035|  2.96M|    if (p1 == nullptr || p2 == nullptr) {
  ------------------
  |  Branch (1035:9): [True: 0, False: 2.96M]
  |  Branch (1035:26): [True: 0, False: 2.96M]
  ------------------
 1036|      0|        return false;
 1037|      0|    }
 1038|  48.4M|    while (*p1 != 0 && *p1 == *p2) {
  ------------------
  |  Branch (1038:12): [True: 45.4M, False: 2.94M]
  |  Branch (1038:24): [True: 45.4M, False: 22.8k]
  ------------------
 1039|  45.4M|        ++p1;
 1040|  45.4M|        ++p2;
 1041|  45.4M|    }
 1042|  2.96M|    return *p1 == *p2;
 1043|  2.96M|}
uhash_compareIStringView_78:
 1063|  18.5k|uhash_compareIStringView(const UHashTok key1, const UHashTok key2) {
 1064|  18.5k|    const std::string_view* p1 = static_cast<std::string_view*>(key1.pointer);
 1065|  18.5k|    const std::string_view* p2 = static_cast<std::string_view*>(key2.pointer);
 1066|  18.5k|    if (p1 == p2) {
  ------------------
  |  Branch (1066:9): [True: 0, False: 18.5k]
  ------------------
 1067|      0|        return true;
 1068|      0|    }
 1069|  18.5k|    if (p1 == nullptr || p2 == nullptr) {
  ------------------
  |  Branch (1069:9): [True: 0, False: 18.5k]
  |  Branch (1069:26): [True: 0, False: 18.5k]
  ------------------
 1070|      0|        return false;
 1071|      0|    }
 1072|  18.5k|    const std::string_view& v1 = *p1;
 1073|  18.5k|    const std::string_view& v2 = *p2;
 1074|  18.5k|    if (v1.size() != v2.size()) {
  ------------------
  |  Branch (1074:9): [True: 0, False: 18.5k]
  ------------------
 1075|      0|        return false;
 1076|      0|    }
 1077|  85.6k|    for (size_t i = 0; i < v1.size(); ++i) {
  ------------------
  |  Branch (1077:24): [True: 67.6k, False: 18.0k]
  ------------------
 1078|  67.6k|        if (uprv_tolower(v1[i]) != uprv_tolower(v2[i])) {
  ------------------
  |  |   68|  67.6k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  67.6k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  67.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  67.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  67.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      if (uprv_tolower(v1[i]) != uprv_tolower(v2[i])) {
  ------------------
  |  |   68|  67.6k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  67.6k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  67.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  67.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  67.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1078:13): [True: 491, False: 67.1k]
  ------------------
 1079|    491|            return false;
 1080|    491|        }
 1081|  67.6k|    }
 1082|  18.0k|    return true;
 1083|  18.5k|}
uhash_hashLong_78:
 1090|  15.7k|uhash_hashLong(const UHashTok key) {
 1091|  15.7k|    return key.integer;
 1092|  15.7k|}
uhash_compareLong_78:
 1095|  3.85k|uhash_compareLong(const UHashTok key1, const UHashTok key2) {
 1096|  3.85k|    return key1.integer == key2.integer;
 1097|  3.85k|}
uhash.cpp:_ZL13_uhash_createPFi8UElementEPFaS_S_ES3_iP10UErrorCode:
  287|  2.33k|              UErrorCode *status) {
  288|  2.33k|    UHashtable *result;
  289|       |
  290|  2.33k|    if (U_FAILURE(*status)) return nullptr;
  ------------------
  |  Branch (290:9): [True: 0, False: 2.33k]
  ------------------
  291|       |
  292|  2.33k|    result = static_cast<UHashtable*>(uprv_malloc(sizeof(UHashtable)));
  ------------------
  |  | 1524|  2.33k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  293|  2.33k|    if (result == nullptr) {
  ------------------
  |  Branch (293:9): [True: 0, False: 2.33k]
  ------------------
  294|      0|        *status = U_MEMORY_ALLOCATION_ERROR;
  295|      0|        return nullptr;
  296|      0|    }
  297|       |
  298|  2.33k|    _uhash_init(result, keyHash, keyComp, valueComp, primeIndex, status);
  299|  2.33k|    result->allocated       = true;
  300|       |
  301|  2.33k|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (301:9): [True: 0, False: 2.33k]
  ------------------
  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|  2.33k|    return result;
  307|  2.33k|}
uhash.cpp:_ZL11_uhash_initP10UHashtablePFi8UElementEPFaS1_S1_ES5_iP10UErrorCode:
  260|  80.7k|{
  261|  80.7k|    if (U_FAILURE(*status)) return nullptr;
  ------------------
  |  Branch (261:9): [True: 0, False: 80.7k]
  ------------------
  262|  80.7k|    U_ASSERT(keyHash != nullptr);
  ------------------
  |  |   35|  80.7k|#   define U_ASSERT(exp) (void)0
  ------------------
  263|  80.7k|    U_ASSERT(keyComp != nullptr);
  ------------------
  |  |   35|  80.7k|#   define U_ASSERT(exp) (void)0
  ------------------
  264|       |
  265|  80.7k|    result->keyHasher       = keyHash;
  266|  80.7k|    result->keyComparator   = keyComp;
  267|  80.7k|    result->valueComparator = valueComp;
  268|  80.7k|    result->keyDeleter      = nullptr;
  269|  80.7k|    result->valueDeleter    = nullptr;
  270|  80.7k|    result->allocated       = false;
  271|  80.7k|    _uhash_internalSetResizePolicy(result, U_GROW);
  272|       |
  273|  80.7k|    _uhash_allocate(result, primeIndex, status);
  274|       |
  275|  80.7k|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (275:9): [True: 0, False: 80.7k]
  ------------------
  276|      0|        return nullptr;
  277|      0|    }
  278|       |
  279|  80.7k|    return result;
  280|  80.7k|}
uhash.cpp:_ZL15_uhash_allocateP10UHashtableiP10UErrorCode:
  217|  80.8k|                UErrorCode *status) {
  218|       |
  219|  80.8k|    UHashElement *p, *limit;
  220|  80.8k|    UHashTok emptytok;
  221|       |
  222|  80.8k|    if (U_FAILURE(*status)) return;
  ------------------
  |  Branch (222:9): [True: 0, False: 80.8k]
  ------------------
  223|       |
  224|  80.8k|    U_ASSERT(primeIndex >= 0 && primeIndex < PRIMES_LENGTH);
  ------------------
  |  |   35|  80.8k|#   define U_ASSERT(exp) (void)0
  ------------------
  225|       |
  226|  80.8k|    hash->primeIndex = static_cast<int8_t>(primeIndex);
  227|  80.8k|    hash->length = PRIMES[primeIndex];
  228|       |
  229|  80.8k|    p = hash->elements = static_cast<UHashElement*>(
  230|  80.8k|        uprv_malloc(sizeof(UHashElement) * hash->length));
  ------------------
  |  | 1524|  80.8k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  80.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  80.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  80.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  231|       |
  232|  80.8k|    if (hash->elements == nullptr) {
  ------------------
  |  Branch (232:9): [True: 0, False: 80.8k]
  ------------------
  233|      0|        *status = U_MEMORY_ALLOCATION_ERROR;
  234|      0|        return;
  235|      0|    }
  236|       |
  237|  80.8k|    emptytok.pointer = nullptr; /* Only one of these two is needed */
  238|  80.8k|    emptytok.integer = 0;    /* but we don't know which one. */
  239|       |
  240|  80.8k|    limit = p + hash->length;
  241|  10.7M|    while (p < limit) {
  ------------------
  |  Branch (241:12): [True: 10.6M, False: 80.8k]
  ------------------
  242|  10.6M|        p->key = emptytok;
  243|  10.6M|        p->value = emptytok;
  244|  10.6M|        p->hashcode = HASH_EMPTY;
  ------------------
  |  |  118|  10.6M|#define HASH_EMPTY      ((int32_t) HASH_DELETED + 1)
  |  |  ------------------
  |  |  |  |  117|  10.6M|#define HASH_DELETED    ((int32_t) 0x80000000)
  |  |  ------------------
  ------------------
  245|  10.6M|        ++p;
  246|  10.6M|    }
  247|       |
  248|  80.8k|    hash->count = 0;
  249|  80.8k|    hash->lowWaterMark = static_cast<int32_t>(hash->length * hash->lowWaterRatio);
  250|  80.8k|    hash->highWaterMark = static_cast<int32_t>(hash->length * hash->highWaterRatio);
  251|  80.8k|}
uhash.cpp:_ZL30_uhash_internalSetResizePolicyP10UHashtable17UHashResizePolicy:
  197|  80.7k|_uhash_internalSetResizePolicy(UHashtable *hash, enum UHashResizePolicy policy) {
  198|  80.7k|    U_ASSERT(hash != nullptr);
  ------------------
  |  |   35|  80.7k|#   define U_ASSERT(exp) (void)0
  ------------------
  199|  80.7k|    U_ASSERT(((int32_t)policy) >= 0);
  ------------------
  |  |   35|  80.7k|#   define U_ASSERT(exp) (void)0
  ------------------
  200|  80.7k|    U_ASSERT(((int32_t)policy) < 3);
  ------------------
  |  |   35|  80.7k|#   define U_ASSERT(exp) (void)0
  ------------------
  201|  80.7k|    hash->lowWaterRatio  = RESIZE_POLICY_RATIO_TABLE[policy * 2];
  202|  80.7k|    hash->highWaterRatio = RESIZE_POLICY_RATIO_TABLE[policy * 2 + 1];
  203|  80.7k|}
uhash.cpp:_ZL13_uhash_rehashP10UHashtableP10UErrorCode:
  399|     74|_uhash_rehash(UHashtable *hash, UErrorCode *status) {
  400|       |
  401|     74|    UHashElement *old = hash->elements;
  402|     74|    int32_t oldLength = hash->length;
  403|     74|    int32_t newPrimeIndex = hash->primeIndex;
  404|     74|    int32_t i;
  405|       |
  406|     74|    if (hash->count > hash->highWaterMark) {
  ------------------
  |  Branch (406:9): [True: 74, False: 0]
  ------------------
  407|     74|        if (++newPrimeIndex >= PRIMES_LENGTH) {
  ------------------
  |  |   90|     74|#define PRIMES_LENGTH UPRV_LENGTHOF(PRIMES)
  |  |  ------------------
  |  |  |  |   99|     74|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  |  |  ------------------
  ------------------
  |  Branch (407:13): [True: 0, False: 74]
  ------------------
  408|      0|            return;
  409|      0|        }
  410|     74|    } 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|     74|    _uhash_allocate(hash, newPrimeIndex, status);
  419|       |
  420|     74|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (420:9): [True: 0, False: 74]
  ------------------
  421|      0|        hash->elements = old;
  422|      0|        hash->length = oldLength;
  423|      0|        return;
  424|      0|    }
  425|       |
  426|   182k|    for (i = oldLength - 1; i >= 0; --i) {
  ------------------
  |  Branch (426:29): [True: 182k, False: 74]
  ------------------
  427|   182k|        if (!IS_EMPTY_OR_DELETED(old[i].hashcode)) {
  ------------------
  |  |  120|   182k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  ------------------
  |  Branch (427:13): [True: 91.1k, False: 91.1k]
  ------------------
  428|  91.1k|            UHashElement *e = _uhash_find(hash, old[i].key, old[i].hashcode);
  429|  91.1k|            U_ASSERT(e != nullptr);
  ------------------
  |  |   35|  91.1k|#   define U_ASSERT(exp) (void)0
  ------------------
  430|  91.1k|            U_ASSERT(e->hashcode == HASH_EMPTY);
  ------------------
  |  |   35|  91.1k|#   define U_ASSERT(exp) (void)0
  ------------------
  431|  91.1k|            e->key = old[i].key;
  432|  91.1k|            e->value = old[i].value;
  433|  91.1k|            e->hashcode = old[i].hashcode;
  434|  91.1k|            ++hash->count;
  435|  91.1k|        }
  436|   182k|    }
  437|       |
  438|     74|    uprv_free(old);
  ------------------
  |  | 1503|     74|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|     74|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     74|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     74|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  439|     74|}
uhash.cpp:_ZL11_uhash_findPK10UHashtable8UElementi:
  339|  7.79M|            int32_t hashcode) {
  340|       |
  341|  7.79M|    int32_t firstDeleted = -1;  /* assume invalid index */
  342|  7.79M|    int32_t theIndex, startIndex;
  343|  7.79M|    int32_t jump = 0; /* lazy evaluate */
  344|  7.79M|    int32_t tableHash;
  345|  7.79M|    UHashElement *elements = hash->elements;
  346|       |
  347|  7.79M|    hashcode &= 0x7FFFFFFF; /* must be positive */
  348|  7.79M|    startIndex = theIndex = (hashcode ^ 0x4000000) % hash->length;
  349|       |
  350|   125M|    do {
  351|   125M|        tableHash = elements[theIndex].hashcode;
  352|   125M|        if (tableHash == hashcode) {          /* quick check */
  ------------------
  |  Branch (352:13): [True: 4.24M, False: 120M]
  ------------------
  353|  4.24M|            if ((*hash->keyComparator)(key, elements[theIndex].key)) {
  ------------------
  |  Branch (353:17): [True: 4.16M, False: 82.2k]
  ------------------
  354|  4.16M|                return &(elements[theIndex]);
  355|  4.16M|            }
  356|   120M|        } else if (!IS_EMPTY_OR_DELETED(tableHash)) {
  ------------------
  |  |  120|   120M|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  ------------------
  |  Branch (356:20): [True: 58.3M, False: 62.5M]
  ------------------
  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|  62.5M|        } else if (tableHash == HASH_EMPTY) { /* empty, end o' the line */
  ------------------
  |  |  118|  62.5M|#define HASH_EMPTY      ((int32_t) HASH_DELETED + 1)
  |  |  ------------------
  |  |  |  |  117|  62.5M|#define HASH_DELETED    ((int32_t) 0x80000000)
  |  |  ------------------
  ------------------
  |  Branch (361:20): [True: 3.58M, False: 59.0M]
  ------------------
  362|  3.58M|            break;
  363|  59.0M|        } else if (firstDeleted < 0) { /* remember first deleted */
  ------------------
  |  Branch (363:20): [True: 83.9k, False: 58.9M]
  ------------------
  364|  83.9k|            firstDeleted = theIndex;
  365|  83.9k|        }
  366|   117M|        if (jump == 0) { /* lazy compute jump */
  ------------------
  |  Branch (366:13): [True: 1.19M, False: 116M]
  ------------------
  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|  1.19M|            jump = (hashcode % (hash->length - 1)) + 1;
  372|  1.19M|        }
  373|   117M|        theIndex = (theIndex + jump) % hash->length;
  374|   117M|    } while (theIndex != startIndex);
  ------------------
  |  Branch (374:14): [True: 117M, False: 53.9k]
  ------------------
  375|       |
  376|  3.63M|    if (firstDeleted >= 0) {
  ------------------
  |  Branch (376:9): [True: 74.2k, False: 3.56M]
  ------------------
  377|  74.2k|        theIndex = firstDeleted; /* reset if had deleted slot */
  378|  3.56M|    } else if (tableHash != HASH_EMPTY) {
  ------------------
  |  |  118|  3.56M|#define HASH_EMPTY      ((int32_t) HASH_DELETED + 1)
  |  |  ------------------
  |  |  |  |  117|  3.56M|#define HASH_DELETED    ((int32_t) 0x80000000)
  |  |  ------------------
  ------------------
  |  Branch (378:16): [True: 0, False: 3.56M]
  ------------------
  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|  3.63M|    return &(elements[theIndex]);
  387|  3.63M|}
uhash.cpp:_ZL10_uhash_putP10UHashtable8UElementS1_aP10UErrorCode:
  471|  1.49M|           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|  1.49M|    int32_t hashcode;
  479|  1.49M|    UHashElement* e;
  480|  1.49M|    UHashTok emptytok;
  481|       |
  482|  1.49M|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (482:9): [True: 176, False: 1.49M]
  ------------------
  483|    176|        goto err;
  484|    176|    }
  485|  1.49M|    U_ASSERT(hash != nullptr);
  ------------------
  |  |   35|  1.49M|#   define U_ASSERT(exp) (void)0
  ------------------
  486|  1.49M|    if ((hint & HINT_VALUE_POINTER) ?
  ------------------
  |  |  140|  1.49M|#define HINT_VALUE_POINTER (2)
  ------------------
  |  Branch (486:9): [True: 597k, False: 898k]
  |  Branch (486:9): [True: 0, False: 1.49M]
  ------------------
  487|   597k|            value.pointer == nullptr :
  488|  1.49M|            value.integer == 0 && (hint & HINT_ALLOW_ZERO) == 0) {
  ------------------
  |  |  141|      0|#define HINT_ALLOW_ZERO    (4)
  ------------------
  |  Branch (488:13): [True: 0, False: 898k]
  |  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|  1.49M|    if (hash->count > hash->highWaterMark) {
  ------------------
  |  Branch (494:9): [True: 74, False: 1.49M]
  ------------------
  495|     74|        _uhash_rehash(hash, status);
  496|     74|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (496:13): [True: 0, False: 74]
  ------------------
  497|      0|            goto err;
  498|      0|        }
  499|     74|    }
  500|       |
  501|  1.49M|    hashcode = (*hash->keyHasher)(key);
  502|  1.49M|    e = _uhash_find(hash, key, hashcode);
  503|  1.49M|    U_ASSERT(e != nullptr);
  ------------------
  |  |   35|  1.49M|#   define U_ASSERT(exp) (void)0
  ------------------
  504|       |
  505|  1.49M|    if (IS_EMPTY_OR_DELETED(e->hashcode)) {
  ------------------
  |  |  120|  1.49M|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  |  |  ------------------
  |  |  |  Branch (120:32): [True: 1.49M, False: 263]
  |  |  ------------------
  ------------------
  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|  1.49M|        ++hash->count;
  514|  1.49M|        if (hash->count == hash->length) {
  ------------------
  |  Branch (514:13): [True: 0, False: 1.49M]
  ------------------
  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|  1.49M|    }
  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|  1.49M|    return _uhash_setElement(hash, e, hashcode & 0x7FFFFFFF, key, value, hint);
  527|       |
  528|    176| 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|    176|    HASH_DELETE_KEY_VALUE(hash, key.pointer, value.pointer);
  ------------------
  |  |  124|    176|#define HASH_DELETE_KEY_VALUE(hash, keypointer, valuepointer) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    176|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  125|    176|    if (hash->keyDeleter != nullptr && keypointer != nullptr) { \
  |  |  ------------------
  |  |  |  Branch (125:9): [True: 0, False: 176]
  |  |  |  Branch (125:40): [True: 0, False: 0]
  |  |  ------------------
  |  |  126|      0|        (*hash->keyDeleter)(keypointer); \
  |  |  127|      0|    } \
  |  |  128|    176|    if (hash->valueDeleter != nullptr && valuepointer != nullptr) { \
  |  |  ------------------
  |  |  |  Branch (128:9): [True: 176, False: 0]
  |  |  |  Branch (128:42): [True: 0, False: 176]
  |  |  ------------------
  |  |  129|      0|        (*hash->valueDeleter)(valuepointer); \
  |  |  130|      0|    } \
  |  |  131|    176|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    176|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  534|    176|    emptytok.pointer = nullptr; emptytok.integer = 0;
  535|    176|    return emptytok;
  536|  1.49M|}
uhash.cpp:_ZL17_uhash_setElementP10UHashtableP12UHashElementi8UElementS3_a:
  150|  1.69M|                  UHashTok key, UHashTok value, int8_t hint) {
  151|       |
  152|  1.69M|    UHashTok oldValue = e->value;
  153|  1.69M|    if (hash->keyDeleter != nullptr && e->key.pointer != nullptr &&
  ------------------
  |  Branch (153:9): [True: 1.64M, False: 56.2k]
  |  Branch (153:40): [True: 201k, False: 1.43M]
  ------------------
  154|  1.69M|        e->key.pointer != key.pointer) { /* Avoid double deletion */
  ------------------
  |  Branch (154:9): [True: 201k, False: 0]
  ------------------
  155|   201k|        (*hash->keyDeleter)(e->key.pointer);
  156|   201k|    }
  157|  1.69M|    if (hash->valueDeleter != nullptr) {
  ------------------
  |  Branch (157:9): [True: 236k, False: 1.46M]
  ------------------
  158|   236k|        if (oldValue.pointer != nullptr &&
  ------------------
  |  Branch (158:13): [True: 0, False: 236k]
  ------------------
  159|   236k|            oldValue.pointer != value.pointer) { /* Avoid double deletion */
  ------------------
  |  Branch (159:13): [True: 0, False: 0]
  ------------------
  160|      0|            (*hash->valueDeleter)(oldValue.pointer);
  161|      0|        }
  162|   236k|        oldValue.pointer = nullptr;
  163|   236k|    }
  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|  1.69M|    if (hint & HINT_KEY_POINTER) {
  ------------------
  |  |  139|  1.69M|#define HINT_KEY_POINTER   (1)
  ------------------
  |  Branch (170:9): [True: 1.49M, False: 207k]
  ------------------
  171|  1.49M|        e->key.pointer = key.pointer;
  172|  1.49M|    } else {
  173|   207k|        e->key = key;
  174|   207k|    }
  175|  1.69M|    if (hint & HINT_VALUE_POINTER) {
  ------------------
  |  |  140|  1.69M|#define HINT_VALUE_POINTER (2)
  ------------------
  |  Branch (175:9): [True: 597k, False: 1.09M]
  ------------------
  176|   597k|        e->value.pointer = value.pointer;
  177|  1.09M|    } else {
  178|  1.09M|        e->value = value;
  179|  1.09M|    }
  180|  1.69M|    e->hashcode = hashcode;
  181|  1.69M|    return oldValue;
  182|  1.69M|}
uhash.cpp:_ZL13_uhash_removeP10UHashtable8UElement:
  443|   163k|              UHashTok key) {
  444|       |    /* First find the position of the key in the table.  If the object
  445|       |     * has not been removed already, remove it.  If the user wanted
  446|       |     * keys deleted, then delete it also.  We have to put a special
  447|       |     * hashcode in that position that means that something has been
  448|       |     * deleted, since when we do a find, we have to continue PAST any
  449|       |     * deleted values.
  450|       |     */
  451|   163k|    UHashTok result;
  452|   163k|    UHashElement* e = _uhash_find(hash, key, hash->keyHasher(key));
  453|   163k|    U_ASSERT(e != nullptr);
  ------------------
  |  |   35|   163k|#   define U_ASSERT(exp) (void)0
  ------------------
  454|   163k|    result.pointer = nullptr;
  455|   163k|    result.integer = 0;
  456|   163k|    if (!IS_EMPTY_OR_DELETED(e->hashcode)) {
  ------------------
  |  |  120|   163k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  ------------------
  |  Branch (456:9): [True: 163k, False: 0]
  ------------------
  457|   163k|        result = _uhash_internalRemoveElement(hash, e);
  458|   163k|        if (hash->count < hash->lowWaterMark) {
  ------------------
  |  Branch (458:13): [True: 0, False: 163k]
  ------------------
  459|      0|            UErrorCode status = U_ZERO_ERROR;
  460|      0|            _uhash_rehash(hash, &status);
  461|      0|        }
  462|   163k|    }
  463|   163k|    return result;
  464|   163k|}
uhash.cpp:_ZL28_uhash_internalRemoveElementP10UHashtableP12UHashElement:
  188|   201k|_uhash_internalRemoveElement(UHashtable *hash, UHashElement* e) {
  189|   201k|    UHashTok empty;
  190|   201k|    U_ASSERT(!IS_EMPTY_OR_DELETED(e->hashcode));
  ------------------
  |  |   35|   201k|#   define U_ASSERT(exp) (void)0
  ------------------
  191|   201k|    --hash->count;
  192|   201k|    empty.pointer = nullptr; empty.integer = 0;
  193|   201k|    return _uhash_setElement(hash, e, HASH_DELETED, empty, empty, 0);
  ------------------
  |  |  117|   201k|#define HASH_DELETED    ((int32_t) 0x80000000)
  ------------------
  194|   201k|}

u_charsToUChars_78:
  185|  2.89M|u_charsToUChars(const char *cs, char16_t *us, int32_t length) {
  186|  2.89M|    char16_t u;
  187|  2.89M|    uint8_t c;
  188|       |
  189|       |    /*
  190|       |     * Allow the entire ASCII repertoire to be mapped _to_ Unicode.
  191|       |     * For EBCDIC systems, this works for characters with codes from
  192|       |     * codepages 37 and 1047 or compatible.
  193|       |     */
  194|  26.5M|    while(length>0) {
  ------------------
  |  Branch (194:11): [True: 23.6M, False: 2.89M]
  ------------------
  195|  23.6M|        c=(uint8_t)(*cs++);
  196|  23.6M|        u=(char16_t)CHAR_TO_UCHAR(c);
  ------------------
  |  |  174|  23.6M|#define CHAR_TO_UCHAR(c) c
  ------------------
  197|  23.6M|        U_ASSERT((u!=0 || c==0)); /* only invariant chars converted? */
  ------------------
  |  |   35|  23.6M|#   define U_ASSERT(exp) (void)0
  ------------------
  198|  23.6M|        *us++=u;
  199|  23.6M|        --length;
  200|  23.6M|    }
  201|  2.89M|}
u_UCharsToChars_78:
  204|  1.67M|u_UCharsToChars(const char16_t *us, char *cs, int32_t length) {
  205|  1.67M|    char16_t u;
  206|       |
  207|  25.7M|    while(length>0) {
  ------------------
  |  Branch (207:11): [True: 24.1M, False: 1.67M]
  ------------------
  208|  24.1M|        u=*us++;
  209|  24.1M|        if(!UCHAR_IS_INVARIANT(u)) {
  ------------------
  |  |  168|  24.1M|#define UCHAR_IS_INVARIANT(c) (((c)<=0x7f) && (invariantChars[(c)>>5]&((uint32_t)1<<((c)&0x1f)))!=0)
  |  |  ------------------
  |  |  |  Branch (168:32): [True: 24.1M, False: 0]
  |  |  |  Branch (168:47): [True: 24.1M, 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|  24.1M|        *cs++=(char)UCHAR_TO_CHAR(u);
  ------------------
  |  |  175|  24.1M|#define UCHAR_TO_CHAR(c) c
  ------------------
  214|  24.1M|        --length;
  215|  24.1M|    }
  216|  1.67M|}
uprv_isInvariantString_78:
  219|     31|uprv_isInvariantString(const char *s, int32_t length) {
  220|     31|    uint8_t c;
  221|       |
  222|    124|    for(;;) {
  223|    124|        if(length<0) {
  ------------------
  |  Branch (223:12): [True: 0, False: 124]
  ------------------
  224|       |            /* NUL-terminated */
  225|      0|            c=(uint8_t)*s++;
  226|      0|            if(c==0) {
  ------------------
  |  Branch (226:16): [True: 0, False: 0]
  ------------------
  227|      0|                break;
  228|      0|            }
  229|    124|        } else {
  230|       |            /* count length */
  231|    124|            if(length==0) {
  ------------------
  |  Branch (231:16): [True: 31, False: 93]
  ------------------
  232|     31|                break;
  233|     31|            }
  234|     93|            --length;
  235|     93|            c=(uint8_t)*s++;
  236|     93|            if(c==0) {
  ------------------
  |  Branch (236:16): [True: 0, False: 93]
  ------------------
  237|      0|                continue; /* NUL is invariant */
  238|      0|            }
  239|     93|        }
  240|       |        /* c!=0 now, one branch below checks c==0 for variant characters */
  241|       |
  242|       |        /*
  243|       |         * no assertions here because these functions are legitimately called
  244|       |         * for strings with variant characters
  245|       |         */
  246|     93|#if U_CHARSET_FAMILY==U_ASCII_FAMILY
  247|     93|        if(!UCHAR_IS_INVARIANT(c)) {
  ------------------
  |  |  168|     93|#define UCHAR_IS_INVARIANT(c) (((c)<=0x7f) && (invariantChars[(c)>>5]&((uint32_t)1<<((c)&0x1f)))!=0)
  |  |  ------------------
  |  |  |  Branch (168:32): [True: 93, False: 0]
  |  |  |  Branch (168:47): [True: 93, False: 0]
  |  |  ------------------
  ------------------
  248|      0|            return false; /* found a variant char */
  249|      0|        }
  250|       |#elif U_CHARSET_FAMILY==U_EBCDIC_FAMILY
  251|       |        c=CHAR_TO_UCHAR(c);
  252|       |        if(c==0 || !UCHAR_IS_INVARIANT(c)) {
  253|       |            return false; /* found a variant char */
  254|       |        }
  255|       |#else
  256|       |#   error U_CHARSET_FAMILY is not valid
  257|       |#endif
  258|     93|    }
  259|     31|    return true;
  260|     31|}
uprv_isInvariantUString_78:
  263|   999k|uprv_isInvariantUString(const char16_t *s, int32_t length) {
  264|   999k|    char16_t c;
  265|       |
  266|  22.5M|    for(;;) {
  267|  22.5M|        if(length<0) {
  ------------------
  |  Branch (267:12): [True: 23.6k, False: 22.4M]
  ------------------
  268|       |            /* NUL-terminated */
  269|  23.6k|            c=*s++;
  270|  23.6k|            if(c==0) {
  ------------------
  |  Branch (270:16): [True: 2.95k, False: 20.7k]
  ------------------
  271|  2.95k|                break;
  272|  2.95k|            }
  273|  22.4M|        } else {
  274|       |            /* count length */
  275|  22.4M|            if(length==0) {
  ------------------
  |  Branch (275:16): [True: 996k, False: 21.4M]
  ------------------
  276|   996k|                break;
  277|   996k|            }
  278|  21.4M|            --length;
  279|  21.4M|            c=*s++;
  280|  21.4M|        }
  281|       |
  282|       |        /*
  283|       |         * no assertions here because these functions are legitimately called
  284|       |         * for strings with variant characters
  285|       |         */
  286|  21.5M|        if(!UCHAR_IS_INVARIANT(c)) {
  ------------------
  |  |  168|  21.5M|#define UCHAR_IS_INVARIANT(c) (((c)<=0x7f) && (invariantChars[(c)>>5]&((uint32_t)1<<((c)&0x1f)))!=0)
  |  |  ------------------
  |  |  |  Branch (168:32): [True: 21.5M, False: 0]
  |  |  |  Branch (168:47): [True: 21.5M, False: 0]
  |  |  ------------------
  ------------------
  287|      0|            return false; /* found a variant char */
  288|      0|        }
  289|  21.5M|    }
  290|   999k|    return true;
  291|   999k|}
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|}

_ZN6icu_7817uprv_upperOrdinalEi:
   79|   101k|inline int32_t uprv_upperOrdinal(int32_t c) {
   80|   101k|#if U_CHARSET_FAMILY==U_ASCII_FAMILY
   81|   101k|    return c - 'A';
   82|       |#elif U_CHARSET_FAMILY==U_EBCDIC_FAMILY
   83|       |    // EBCDIC: A-Z (26 letters) is split into three ranges A-I (9 letters), J-R (9), S-Z (8).
   84|       |    // https://en.wikipedia.org/wiki/EBCDIC_037#Codepage_layout
   85|       |    if (c <= 'I') { return c - 'A'; }  // A-I --> 0-8
   86|       |    if (c < 'J') { return -1; }
   87|       |    if (c <= 'R') { return c - 'J' + 9; }  // J-R --> 9..17
   88|       |    if (c < 'S') { return -1; }
   89|       |    return c - 'S' + 18;  // S-Z --> 18..25
   90|       |#else
   91|       |#   error Unknown charset family!
   92|       |#endif
   93|   101k|}
_ZN6icu_7817uprv_lowerOrdinalEi:
   97|  38.4k|inline int32_t uprv_lowerOrdinal(int32_t c) {
   98|  38.4k|#if U_CHARSET_FAMILY==U_ASCII_FAMILY
   99|  38.4k|    return c - 'a';
  100|       |#elif U_CHARSET_FAMILY==U_EBCDIC_FAMILY
  101|       |    // EBCDIC: a-z (26 letters) is split into three ranges a-i (9 letters), j-r (9), s-z (8).
  102|       |    // https://en.wikipedia.org/wiki/EBCDIC_037#Codepage_layout
  103|       |    if (c <= 'i') { return c - 'a'; }  // a-i --> 0-8
  104|       |    if (c < 'j') { return -1; }
  105|       |    if (c <= 'r') { return c - 'j' + 9; }  // j-r --> 9..17
  106|       |    if (c < 's') { return -1; }
  107|       |    return c - 's' + 18;  // s-z --> 18..25
  108|       |#else
  109|       |#   error Unknown charset family!
  110|       |#endif
  111|  38.4k|}

locale_getKeywordsStart_78:
  526|  1.41M|locale_getKeywordsStart(std::string_view localeID) {
  527|  1.41M|    if (size_t pos = localeID.find('@'); pos != std::string_view::npos) {
  ------------------
  |  Branch (527:42): [True: 170k, False: 1.24M]
  ------------------
  528|   170k|        return localeID.data() + pos;
  529|   170k|    }
  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|  1.24M|    return nullptr;
  546|  1.41M|}
_Z22ulocimp_getKeywords_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEEcRN6icu_788ByteSinkEbR10UErrorCode:
  614|  29.5k|{
  615|  29.5k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (615:9): [True: 0, False: 29.5k]
  ------------------
  616|       |
  617|  29.5k|    KeywordStruct keywordList[ULOC_MAX_NO_KEYWORDS];
  618|       |
  619|  29.5k|    int32_t maxKeywords = ULOC_MAX_NO_KEYWORDS;
  ------------------
  |  |  523|  29.5k|#define ULOC_MAX_NO_KEYWORDS 25
  ------------------
  620|  29.5k|    int32_t numKeywords = 0;
  621|  29.5k|    size_t equalSign = std::string_view::npos;
  622|  29.5k|    size_t semicolon = std::string_view::npos;
  623|  29.5k|    int32_t i = 0, j, n;
  624|       |
  625|  29.5k|    if(prev == '@') { /* start of keyword definition */
  ------------------
  |  Branch (625:8): [True: 29.5k, False: 0]
  ------------------
  626|       |        /* we will grab pairs, trim spaces, lowercase keywords, sort and return */
  627|  75.0k|        do {
  628|  75.0k|            bool duplicate = false;
  629|       |            /* skip leading spaces */
  630|  75.6k|            while (localeID.front() == ' ') {
  ------------------
  |  Branch (630:20): [True: 551, False: 75.0k]
  ------------------
  631|    551|                localeID.remove_prefix(1);
  632|    551|            }
  633|  75.0k|            if (localeID.empty()) { /* handle trailing "; " */
  ------------------
  |  Branch (633:17): [True: 14, False: 75.0k]
  ------------------
  634|     14|                break;
  635|     14|            }
  636|  75.0k|            if(numKeywords == maxKeywords) {
  ------------------
  |  Branch (636:16): [True: 68, False: 74.9k]
  ------------------
  637|     68|                status = U_INTERNAL_PROGRAM_ERROR;
  638|     68|                return;
  639|     68|            }
  640|  74.9k|            equalSign = localeID.find('=');
  641|  74.9k|            semicolon = localeID.find(';');
  642|       |            /* lack of '=' [foo@currency] is illegal */
  643|       |            /* ';' before '=' [foo@currency;collation=pinyin] is illegal */
  644|  74.9k|            if (equalSign == std::string_view::npos ||
  ------------------
  |  Branch (644:17): [True: 12, False: 74.9k]
  ------------------
  645|  74.9k|                (semicolon != std::string_view::npos && semicolon < equalSign)) {
  ------------------
  |  Branch (645:18): [True: 45.6k, False: 29.3k]
  |  Branch (645:57): [True: 8, False: 45.6k]
  ------------------
  646|     20|                status = U_INVALID_FORMAT_ERROR;
  647|     20|                return;
  648|     20|            }
  649|       |            /* zero-length keyword is an error. */
  650|  74.9k|            if (equalSign == 0) {
  ------------------
  |  Branch (650:17): [True: 30, False: 74.9k]
  ------------------
  651|     30|                status = U_INVALID_FORMAT_ERROR;
  652|     30|                return;
  653|     30|            }
  654|       |            /* need to normalize both keyword and keyword name */
  655|  74.9k|            if (equalSign >= ULOC_KEYWORD_BUFFER_LEN) {
  ------------------
  |  |  522|  74.9k|#define ULOC_KEYWORD_BUFFER_LEN 25
  ------------------
  |  Branch (655:17): [True: 157, False: 74.7k]
  ------------------
  656|       |                /* keyword name too long for internal buffer */
  657|    157|                status = U_INTERNAL_PROGRAM_ERROR;
  658|    157|                return;
  659|    157|            }
  660|   473k|            for (i = 0, n = 0; static_cast<size_t>(i) < equalSign; ++i) {
  ------------------
  |  Branch (660:32): [True: 398k, False: 74.7k]
  ------------------
  661|   398k|                if (localeID[i] != ' ') {
  ------------------
  |  Branch (661:21): [True: 398k, False: 237]
  ------------------
  662|   398k|                    keywordList[numKeywords].keyword[n++] = uprv_tolower(localeID[i]);
  ------------------
  |  |   68|   398k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|   398k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|   398k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|   398k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|   398k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  663|   398k|                }
  664|   398k|            }
  665|       |
  666|  74.7k|            keywordList[numKeywords].keyword[n] = 0;
  667|  74.7k|            keywordList[numKeywords].keywordLen = n;
  668|       |            /* now grab the value part. First we skip the '=' */
  669|  74.7k|            equalSign++;
  670|       |            /* then we leading spaces */
  671|  88.9k|            while (equalSign < localeID.length() && localeID[equalSign] == ' ') {
  ------------------
  |  Branch (671:20): [True: 88.8k, False: 24]
  |  Branch (671:53): [True: 14.1k, False: 74.7k]
  ------------------
  672|  14.1k|                equalSign++;
  673|  14.1k|            }
  674|       |
  675|       |            /* Premature end or zero-length value */
  676|  74.7k|            if (equalSign == localeID.length() || equalSign == semicolon) {
  ------------------
  |  Branch (676:17): [True: 24, False: 74.7k]
  |  Branch (676:51): [True: 6, False: 74.7k]
  ------------------
  677|     30|                status = U_INVALID_FORMAT_ERROR;
  678|     30|                return;
  679|     30|            }
  680|       |
  681|  74.7k|            keywordList[numKeywords].valueStart = localeID.data() + equalSign;
  682|       |
  683|  74.7k|            std::string_view value = localeID;
  684|  74.7k|            if (semicolon != std::string_view::npos) {
  ------------------
  |  Branch (684:17): [True: 45.5k, False: 29.1k]
  ------------------
  685|  45.5k|                value.remove_suffix(value.length() - semicolon);
  686|  45.5k|                localeID.remove_prefix(semicolon + 1);
  687|  45.5k|            } else {
  688|  29.1k|                localeID = {};
  689|  29.1k|            }
  690|  74.7k|            value.remove_prefix(equalSign);
  691|  74.7k|            if (size_t last = value.find_last_not_of(' '); last != std::string_view::npos) {
  ------------------
  |  Branch (691:60): [True: 74.7k, False: 0]
  ------------------
  692|  74.7k|                value.remove_suffix(value.length() - last - 1);
  693|  74.7k|            }
  694|  74.7k|            keywordList[numKeywords].valueLen = static_cast<int32_t>(value.length());
  695|       |
  696|       |            /* If this is a duplicate keyword, then ignore it */
  697|   340k|            for (j=0; j<numKeywords; ++j) {
  ------------------
  |  Branch (697:23): [True: 266k, False: 73.6k]
  ------------------
  698|   266k|                if (uprv_strcmp(keywordList[j].keyword, keywordList[numKeywords].keyword) == 0) {
  ------------------
  |  |   38|   266k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   266k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (698:21): [True: 1.12k, False: 265k]
  ------------------
  699|  1.12k|                    duplicate = true;
  700|  1.12k|                    break;
  701|  1.12k|                }
  702|   266k|            }
  703|  74.7k|            if (!duplicate) {
  ------------------
  |  Branch (703:17): [True: 73.6k, False: 1.12k]
  ------------------
  704|  73.6k|                ++numKeywords;
  705|  73.6k|            }
  706|  74.7k|        } while (!localeID.empty());
  ------------------
  |  Branch (706:18): [True: 45.5k, False: 29.2k]
  ------------------
  707|       |
  708|       |        /* now we have a list of keywords */
  709|       |        /* we need to sort it */
  710|  29.2k|        uprv_sortArray(keywordList, numKeywords, sizeof(KeywordStruct), compareKeywordStructs, nullptr, false, &status);
  ------------------
  |  | 1538|  29.2k|#define uprv_sortArray U_ICU_ENTRY_POINT_RENAME(uprv_sortArray)
  |  |  ------------------
  |  |  |  |  123|  29.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  29.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  29.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  711|       |
  712|       |        /* Now construct the keyword part */
  713|   100k|        for(i = 0; i < numKeywords; i++) {
  ------------------
  |  Branch (713:20): [True: 71.7k, False: 29.2k]
  ------------------
  714|  71.7k|            sink.Append(keywordList[i].keyword, keywordList[i].keywordLen);
  715|  71.7k|            if(valuesToo) {
  ------------------
  |  Branch (715:16): [True: 71.7k, False: 0]
  ------------------
  716|  71.7k|                sink.Append("=", 1);
  717|  71.7k|                sink.Append(keywordList[i].valueStart, keywordList[i].valueLen);
  718|  71.7k|                if(i < numKeywords - 1) {
  ------------------
  |  Branch (718:20): [True: 42.5k, False: 29.2k]
  ------------------
  719|  42.5k|                    sink.Append(";", 1);
  720|  42.5k|                }
  721|  71.7k|            } else {
  722|      0|                sink.Append("\0", 1);
  723|      0|            }
  724|  71.7k|        }
  725|  29.2k|    }
  726|  29.5k|}
uloc_getKeywordValue_78:
  733|   221k|{
  734|   221k|    if (U_FAILURE(*status)) { return 0; }
  ------------------
  |  Branch (734:9): [True: 19, False: 221k]
  ------------------
  735|   221k|    if (keywordName == nullptr || *keywordName == '\0') {
  ------------------
  |  Branch (735:9): [True: 0, False: 221k]
  |  Branch (735:35): [True: 0, False: 221k]
  ------------------
  736|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
  737|      0|        return 0;
  738|      0|    }
  739|   221k|    return ByteSinkUtil::viaByteSinkToTerminatedChars(
  740|   221k|        buffer, bufferCapacity,
  741|   221k|        [&](ByteSink& sink, UErrorCode& status) {
  742|   221k|            ulocimp_getKeywordValue(localeID, keywordName, sink, status);
  743|   221k|        },
  744|   221k|        *status);
  745|   221k|}
_Z26ulocimp_getKeywordValue_78PKcNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEER10UErrorCode:
  751|   227k|{
  752|   227k|    return ByteSinkUtil::viaByteSinkToCharString(
  753|   227k|        [&](ByteSink& sink, UErrorCode& status) {
  754|   227k|            ulocimp_getKeywordValue(localeID, keywordName, sink, status);
  755|   227k|        },
  756|   227k|        status);
  757|   227k|}
_Z26ulocimp_getKeywordValue_78PKcNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEERN6icu_788ByteSinkER10UErrorCode:
  764|   449k|{
  765|   449k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (765:9): [True: 0, False: 449k]
  ------------------
  766|       |
  767|   449k|    if (localeID == nullptr || keywordName.empty()) {
  ------------------
  |  Branch (767:9): [True: 0, False: 449k]
  |  Branch (767:32): [True: 0, False: 449k]
  ------------------
  768|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  769|      0|        return;
  770|      0|    }
  771|       |
  772|   449k|    const char* startSearchHere = nullptr;
  773|   449k|    const char* nextSeparator = nullptr;
  774|       |
  775|   449k|    CharString tempBuffer;
  776|   449k|    const char* tmpLocaleID;
  777|       |
  778|   449k|    CharString canonKeywordName = locale_canonKeywordName(keywordName, status);
  779|   449k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (779:9): [True: 0, False: 449k]
  ------------------
  780|      0|      return;
  781|      0|    }
  782|       |
  783|   449k|    if (localeID != nullptr && _hasBCP47Extension(localeID)) {
  ------------------
  |  Branch (783:9): [True: 449k, False: 0]
  |  Branch (783:32): [True: 29.3k, False: 419k]
  ------------------
  784|  29.3k|        tempBuffer = ulocimp_forLanguageTag(localeID, -1, nullptr, status);
  ------------------
  |  | 1198|  29.3k|#define ulocimp_forLanguageTag U_ICU_ENTRY_POINT_RENAME(ulocimp_forLanguageTag)
  |  |  ------------------
  |  |  |  |  123|  29.3k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  29.3k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  29.3k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  785|  29.3k|        tmpLocaleID = U_SUCCESS(status) && !tempBuffer.isEmpty() ? tempBuffer.data() : localeID;
  ------------------
  |  Branch (785:23): [True: 29.3k, False: 0]
  |  Branch (785:44): [True: 653, False: 28.6k]
  ------------------
  786|   419k|    } else {
  787|   419k|        tmpLocaleID=localeID;
  788|   419k|    }
  789|       |
  790|   449k|    startSearchHere = locale_getKeywordsStart(tmpLocaleID);
  ------------------
  |  |  138|   449k|#define locale_getKeywordsStart U_ICU_ENTRY_POINT_RENAME(locale_getKeywordsStart)
  |  |  ------------------
  |  |  |  |  123|   449k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   449k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   449k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  791|   449k|    if(startSearchHere == nullptr) {
  ------------------
  |  Branch (791:8): [True: 373k, False: 75.2k]
  ------------------
  792|       |        /* no keywords, return at once */
  793|   373k|        return;
  794|   373k|    }
  795|       |
  796|       |    /* find the first keyword */
  797|   123k|    while(startSearchHere) {
  ------------------
  |  Branch (797:11): [True: 92.2k, False: 31.2k]
  ------------------
  798|  92.2k|        const char* keyValueTail;
  799|       |
  800|  92.2k|        startSearchHere++; /* skip @ or ; */
  801|  92.2k|        nextSeparator = uprv_strchr(startSearchHere, '=');
  ------------------
  |  |   40|  92.2k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  92.2k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  802|  92.2k|        if(!nextSeparator) {
  ------------------
  |  Branch (802:12): [True: 8.96k, False: 83.2k]
  ------------------
  803|  8.96k|            status = U_ILLEGAL_ARGUMENT_ERROR; /* key must have =value */
  804|  8.96k|            return;
  805|  8.96k|        }
  806|       |        /* strip leading & trailing spaces (TC decided to tolerate these) */
  807|  83.2k|        while(*startSearchHere == ' ') {
  ------------------
  |  Branch (807:15): [True: 0, False: 83.2k]
  ------------------
  808|      0|            startSearchHere++;
  809|      0|        }
  810|  83.2k|        keyValueTail = nextSeparator;
  811|  83.2k|        while (keyValueTail > startSearchHere && *(keyValueTail-1) == ' ') {
  ------------------
  |  Branch (811:16): [True: 83.2k, False: 0]
  |  Branch (811:50): [True: 0, False: 83.2k]
  ------------------
  812|      0|            keyValueTail--;
  813|      0|        }
  814|       |        /* now keyValueTail points to first char after the keyName */
  815|       |        /* copy & normalize keyName from locale */
  816|  83.2k|        if (startSearchHere == keyValueTail) {
  ------------------
  |  Branch (816:13): [True: 0, False: 83.2k]
  ------------------
  817|      0|            status = U_ILLEGAL_ARGUMENT_ERROR; /* empty keyword name in passed-in locale */
  818|      0|            return;
  819|      0|        }
  820|  83.2k|        CharString localeKeywordName;
  821|   572k|        while (startSearchHere < keyValueTail) {
  ------------------
  |  Branch (821:16): [True: 496k, False: 75.4k]
  ------------------
  822|   496k|          if (!UPRV_ISALPHANUM(*startSearchHere)) {
  ------------------
  |  Branch (822:15): [True: 7.84k, False: 488k]
  ------------------
  823|  7.84k|            status = U_ILLEGAL_ARGUMENT_ERROR; /* malformed keyword name */
  824|  7.84k|            return;
  825|  7.84k|          }
  826|   488k|          localeKeywordName.append(uprv_tolower(*startSearchHere++), status);
  ------------------
  |  |   68|   488k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|   488k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|   488k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|   488k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|   488k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  827|   488k|        }
  828|  75.4k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (828:13): [True: 0, False: 75.4k]
  ------------------
  829|      0|            return;
  830|      0|        }
  831|       |
  832|  75.4k|        startSearchHere = uprv_strchr(nextSeparator, ';');
  ------------------
  |  |   40|  75.4k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  75.4k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  833|       |
  834|  75.4k|        if (canonKeywordName == localeKeywordName) {
  ------------------
  |  Branch (834:13): [True: 27.1k, False: 48.2k]
  ------------------
  835|       |             /* current entry matches the keyword. */
  836|  27.1k|           nextSeparator++; /* skip '=' */
  837|       |            /* First strip leading & trailing spaces (TC decided to tolerate these) */
  838|  27.1k|            while(*nextSeparator == ' ') {
  ------------------
  |  Branch (838:19): [True: 0, False: 27.1k]
  ------------------
  839|      0|              nextSeparator++;
  840|      0|            }
  841|  27.1k|            keyValueTail = (startSearchHere)? startSearchHere: nextSeparator + uprv_strlen(nextSeparator);
  ------------------
  |  |   37|  26.9k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  26.9k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (841:28): [True: 234, False: 26.9k]
  ------------------
  842|  27.1k|            while(keyValueTail > nextSeparator && *(keyValueTail-1) == ' ') {
  ------------------
  |  Branch (842:19): [True: 27.1k, False: 0]
  |  Branch (842:51): [True: 0, False: 27.1k]
  ------------------
  843|      0|              keyValueTail--;
  844|      0|            }
  845|       |            /* Now copy the value, but check well-formedness */
  846|  27.1k|            if (nextSeparator == keyValueTail) {
  ------------------
  |  Branch (846:17): [True: 0, False: 27.1k]
  ------------------
  847|      0|              status = U_ILLEGAL_ARGUMENT_ERROR; /* empty key value name in passed-in locale */
  848|      0|              return;
  849|      0|            }
  850|  14.4M|            while (nextSeparator < keyValueTail) {
  ------------------
  |  Branch (850:20): [True: 14.4M, False: 27.0k]
  ------------------
  851|  14.4M|              if (!UPRV_ISALPHANUM(*nextSeparator) && !UPRV_OK_VALUE_PUNCTUATION(*nextSeparator)) {
  ------------------
  |  Branch (851:19): [True: 2.41M, False: 12.0M]
  |  Branch (851:55): [True: 135, False: 2.41M]
  ------------------
  852|    135|                status = U_ILLEGAL_ARGUMENT_ERROR; /* malformed key value */
  853|    135|                return;
  854|    135|              }
  855|       |              /* Should we lowercase value to return here? Tests expect as-is. */
  856|  14.4M|              sink.Append(nextSeparator++, 1);
  857|  14.4M|            }
  858|  27.0k|            return;
  859|  27.1k|        }
  860|  75.4k|    }
  861|  75.2k|}
_Z20ulocimp_getRegion_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEER10UErrorCode:
 1475|   102k|ulocimp_getRegion(std::string_view localeID, UErrorCode& status) {
 1476|   102k|    return ByteSinkUtil::viaByteSinkToCharString(
 1477|   102k|        [&](ByteSink& sink, UErrorCode& status) {
 1478|   102k|            ulocimp_getSubtags(
 1479|   102k|                    localeID,
 1480|   102k|                    nullptr,
 1481|   102k|                    nullptr,
 1482|   102k|                    &sink,
 1483|   102k|                    nullptr,
 1484|   102k|                    nullptr,
 1485|   102k|                    status);
 1486|   102k|        },
 1487|   102k|        status);
 1488|   102k|}
_Z21ulocimp_getSubtags_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEEPN6icu_7810CharStringES6_S6_S6_PPKcR10UErrorCode:
 1514|  1.70M|        UErrorCode& status) {
 1515|  1.70M|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1515:9): [True: 0, False: 1.70M]
  ------------------
 1516|       |
 1517|  1.70M|    std::optional<CharStringByteSink> languageSink;
 1518|  1.70M|    std::optional<CharStringByteSink> scriptSink;
 1519|  1.70M|    std::optional<CharStringByteSink> regionSink;
 1520|  1.70M|    std::optional<CharStringByteSink> variantSink;
 1521|       |
 1522|  1.70M|    if (language != nullptr) { languageSink.emplace(language); }
  ------------------
  |  Branch (1522:9): [True: 1.70M, False: 86]
  ------------------
 1523|  1.70M|    if (script != nullptr) { scriptSink.emplace(script); }
  ------------------
  |  Branch (1523:9): [True: 1.70M, False: 86]
  ------------------
 1524|  1.70M|    if (region != nullptr) { regionSink.emplace(region); }
  ------------------
  |  Branch (1524:9): [True: 1.50M, False: 202k]
  ------------------
 1525|  1.70M|    if (variant != nullptr) { variantSink.emplace(variant); }
  ------------------
  |  Branch (1525:9): [True: 999k, False: 710k]
  ------------------
 1526|       |
 1527|  1.70M|    ulocimp_getSubtags(
  ------------------
  |  | 1209|  1.70M|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|  1.70M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.70M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.70M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1528|  1.70M|            localeID,
 1529|  1.70M|            languageSink.has_value() ? &*languageSink : nullptr,
  ------------------
  |  Branch (1529:13): [True: 1.70M, False: 86]
  ------------------
 1530|  1.70M|            scriptSink.has_value() ? &*scriptSink : nullptr,
  ------------------
  |  Branch (1530:13): [True: 1.70M, False: 86]
  ------------------
 1531|  1.70M|            regionSink.has_value() ? &*regionSink : nullptr,
  ------------------
  |  Branch (1531:13): [True: 1.50M, False: 202k]
  ------------------
 1532|  1.70M|            variantSink.has_value() ? &*variantSink : nullptr,
  ------------------
  |  Branch (1532:13): [True: 999k, False: 710k]
  ------------------
 1533|  1.70M|            pEnd,
 1534|  1.70M|            status);
 1535|  1.70M|}
_Z21ulocimp_getSubtags_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEEPN6icu_788ByteSinkES6_S6_S6_PPKcR10UErrorCode:
 1545|  2.64M|        UErrorCode& status) {
 1546|  2.64M|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1546:9): [True: 0, False: 2.64M]
  ------------------
 1547|       |
 1548|  2.64M|    if (pEnd != nullptr) {
  ------------------
  |  Branch (1548:9): [True: 999k, False: 1.64M]
  ------------------
 1549|   999k|        *pEnd = localeID.data();
 1550|  1.64M|    } else if (language == nullptr &&
  ------------------
  |  Branch (1550:16): [True: 934k, False: 710k]
  ------------------
 1551|  1.64M|               script == nullptr &&
  ------------------
  |  Branch (1551:16): [True: 934k, False: 0]
  ------------------
 1552|  1.64M|               region == nullptr &&
  ------------------
  |  Branch (1552:16): [True: 830k, False: 104k]
  ------------------
 1553|  1.64M|               variant == nullptr) {
  ------------------
  |  Branch (1553:16): [True: 0, False: 830k]
  ------------------
 1554|      0|        return;
 1555|      0|    }
 1556|       |
 1557|  2.64M|    if (localeID.empty()) { return; }
  ------------------
  |  Branch (1557:9): [True: 63.2k, False: 2.58M]
  ------------------
 1558|       |
 1559|  2.58M|    bool hasRegion = false;
 1560|       |
 1561|  2.58M|    {
 1562|  2.58M|        size_t len = _getLanguage(localeID, language, status);
 1563|  2.58M|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1563:13): [True: 1.00k, False: 2.57M]
  ------------------
 1564|  2.57M|        if (len > 0) {
  ------------------
  |  Branch (1564:13): [True: 2.36M, False: 219k]
  ------------------
 1565|  2.36M|            localeID.remove_prefix(len);
 1566|  2.36M|        }
 1567|  2.57M|    }
 1568|       |
 1569|  2.57M|    if (pEnd != nullptr) {
  ------------------
  |  Branch (1569:9): [True: 935k, False: 1.64M]
  ------------------
 1570|   935k|        *pEnd = localeID.data();
 1571|  1.64M|    } else if (script == nullptr &&
  ------------------
  |  Branch (1571:16): [True: 934k, False: 710k]
  ------------------
 1572|  1.64M|               region == nullptr &&
  ------------------
  |  Branch (1572:16): [True: 830k, False: 104k]
  ------------------
 1573|  1.64M|               variant == nullptr) {
  ------------------
  |  Branch (1573:16): [True: 0, False: 830k]
  ------------------
 1574|      0|        return;
 1575|      0|    }
 1576|       |
 1577|  2.57M|    if (localeID.empty()) { return; }
  ------------------
  |  Branch (1577:9): [True: 378k, False: 2.20M]
  ------------------
 1578|       |
 1579|  2.20M|    if (_isIDSeparator(localeID.front())) {
  ------------------
  |  Branch (1579:9): [True: 2.12M, False: 77.5k]
  ------------------
 1580|  2.12M|        std::string_view sub = localeID;
 1581|  2.12M|        sub.remove_prefix(1);
 1582|  2.12M|        size_t len = _getScript(sub, script);
 1583|  2.12M|        if (len > 0) {
  ------------------
  |  Branch (1583:13): [True: 487k, False: 1.63M]
  ------------------
 1584|   487k|            localeID.remove_prefix(len + 1);
 1585|   487k|            if (pEnd != nullptr) { *pEnd = localeID.data(); }
  ------------------
  |  Branch (1585:17): [True: 57.7k, False: 429k]
  ------------------
 1586|   487k|        }
 1587|  2.12M|    }
 1588|       |
 1589|  2.20M|    if ((region == nullptr && variant == nullptr && pEnd == nullptr) || localeID.empty()) { return; }
  ------------------
  |  Branch (1589:10): [True: 942k, False: 1.25M]
  |  Branch (1589:31): [True: 202k, False: 740k]
  |  Branch (1589:53): [True: 202k, False: 0]
  |  Branch (1589:73): [True: 433k, False: 1.56M]
  ------------------
 1590|       |
 1591|  1.56M|    if (_isIDSeparator(localeID.front())) {
  ------------------
  |  Branch (1591:9): [True: 1.48M, False: 80.5k]
  ------------------
 1592|  1.48M|        std::string_view sub = localeID;
 1593|  1.48M|        sub.remove_prefix(1);
 1594|  1.48M|        size_t len = _getRegion(sub, region);
 1595|  1.48M|        if (len > 0) {
  ------------------
  |  Branch (1595:13): [True: 1.29M, False: 191k]
  ------------------
 1596|  1.29M|            hasRegion = true;
 1597|  1.29M|            localeID.remove_prefix(len + 1);
 1598|  1.29M|            if (pEnd != nullptr) { *pEnd = localeID.data(); }
  ------------------
  |  Branch (1598:17): [True: 602k, False: 691k]
  ------------------
 1599|  1.29M|        }
 1600|  1.48M|    }
 1601|       |
 1602|  1.56M|    if ((variant == nullptr && pEnd == nullptr) || localeID.empty()) { return; }
  ------------------
  |  Branch (1602:10): [True: 303k, False: 1.26M]
  |  Branch (1602:32): [True: 303k, False: 0]
  |  Branch (1602:52): [True: 421k, False: 841k]
  ------------------
 1603|       |
 1604|   841k|    bool hasVariant = false;
 1605|       |
 1606|   841k|    if (_isIDSeparator(localeID.front()) && !_isBCP47Extension(localeID)) {
  ------------------
  |  Branch (1606:9): [True: 751k, False: 89.8k]
  |  Branch (1606:45): [True: 748k, False: 2.92k]
  ------------------
 1607|   748k|        std::string_view sub = localeID;
 1608|       |        /* If there was no country ID, skip a possible extra IDSeparator */
 1609|   748k|        size_t skip = !hasRegion && localeID.size() > 1 && _isIDSeparator(localeID[1]) ? 2 : 1;
  ------------------
  |  Branch (1609:23): [True: 185k, False: 562k]
  |  Branch (1609:37): [True: 184k, False: 1.00k]
  |  Branch (1609:60): [True: 180k, False: 3.62k]
  ------------------
 1610|   748k|        sub.remove_prefix(skip);
 1611|   748k|        size_t len = _getVariant(sub, localeID[0], variant, false, status);
 1612|   748k|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1612:13): [True: 565, False: 747k]
  ------------------
 1613|   747k|        if (len > 0) {
  ------------------
  |  Branch (1613:13): [True: 745k, False: 2.12k]
  ------------------
 1614|   745k|            hasVariant = true;
 1615|   745k|            localeID.remove_prefix(skip + len);
 1616|   745k|            if (pEnd != nullptr) { *pEnd = localeID.data(); }
  ------------------
  |  Branch (1616:17): [True: 423k, False: 322k]
  ------------------
 1617|   745k|        }
 1618|   747k|    }
 1619|       |
 1620|   840k|    if ((variant == nullptr && pEnd == nullptr) || localeID.empty()) { return; }
  ------------------
  |  Branch (1620:10): [True: 0, False: 840k]
  |  Branch (1620:32): [True: 0, False: 0]
  |  Branch (1620:52): [True: 708k, False: 132k]
  ------------------
 1621|       |
 1622|   132k|    if (_isBCP47Extension(localeID)) {
  ------------------
  |  Branch (1622:9): [True: 3.47k, False: 128k]
  ------------------
 1623|  3.47k|        localeID.remove_prefix(2);
 1624|  3.47k|        constexpr char vaposix[] = "-va-posix";
 1625|  3.47k|        constexpr size_t length = sizeof vaposix - 1;
 1626|   280k|        for (size_t next;; localeID.remove_prefix(next)) {
 1627|   280k|            next = localeID.find('-', 1);
 1628|   280k|            if (next == std::string_view::npos) { break; }
  ------------------
  |  Branch (1628:17): [True: 1.78k, False: 278k]
  ------------------
 1629|   278k|            next = localeID.find('-', next + 1);
 1630|   278k|            bool finished = next == std::string_view::npos;
 1631|   278k|            std::string_view sub = localeID;
 1632|   278k|            if (!finished) { sub.remove_suffix(sub.length() - next); }
  ------------------
  |  Branch (1632:17): [True: 276k, False: 1.68k]
  ------------------
 1633|       |
 1634|   278k|            if (sub.length() == length && uprv_strnicmp(sub.data(), vaposix, length) == 0) {
  ------------------
  |  | 1544|  1.67k|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  123|  1.67k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.67k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.67k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1634:17): [True: 1.67k, False: 276k]
  |  Branch (1634:43): [True: 682, False: 995]
  ------------------
 1635|    682|                if (variant != nullptr) {
  ------------------
  |  Branch (1635:21): [True: 682, False: 0]
  ------------------
 1636|    682|                    if (hasVariant) { variant->Append("_", 1); }
  ------------------
  |  Branch (1636:25): [True: 485, False: 197]
  ------------------
 1637|    682|                    constexpr char posix[] = "POSIX";
 1638|    682|                    variant->Append(posix, sizeof posix - 1);
 1639|    682|                }
 1640|    682|                if (pEnd != nullptr) { *pEnd = localeID.data() + length; }
  ------------------
  |  Branch (1640:21): [True: 682, False: 0]
  ------------------
 1641|    682|            }
 1642|       |
 1643|   278k|            if (finished) { break; }
  ------------------
  |  Branch (1643:17): [True: 1.68k, False: 276k]
  ------------------
 1644|   278k|        }
 1645|  3.47k|    }
 1646|   132k|}
_Z20ulocimp_getParent_78PKcR10UErrorCode:
 2001|   129k|{
 2002|   129k|    return ByteSinkUtil::viaByteSinkToCharString(
 2003|   129k|        [&](ByteSink& sink, UErrorCode& status) {
 2004|   129k|            ulocimp_getParent(localeID, sink, status);
 2005|   129k|        },
 2006|   129k|        err);
 2007|   129k|}
_Z20ulocimp_getParent_78PKcRN6icu_788ByteSinkER10UErrorCode:
 2013|   129k|{
 2014|   129k|    if (U_FAILURE(err)) { return; }
  ------------------
  |  Branch (2014:9): [True: 0, False: 129k]
  ------------------
 2015|       |
 2016|   129k|    const char *lastUnderscore;
 2017|   129k|    int32_t i;
 2018|       |
 2019|   129k|    if (localeID == nullptr)
  ------------------
  |  Branch (2019:9): [True: 0, False: 129k]
  ------------------
 2020|      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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2021|       |
 2022|   129k|    lastUnderscore=uprv_strrchr(localeID, '_');
  ------------------
  |  |   42|   129k|#define uprv_strrchr(s, c) U_STANDARD_CPP_NAMESPACE strrchr(s, c)
  |  |  ------------------
  |  |  |  |  393|   129k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2023|   129k|    if(lastUnderscore!=nullptr) {
  ------------------
  |  Branch (2023:8): [True: 84.1k, False: 45.0k]
  ------------------
 2024|  84.1k|        i = static_cast<int32_t>(lastUnderscore - localeID);
 2025|  84.1k|    } else {
 2026|  45.0k|        i=0;
 2027|  45.0k|    }
 2028|       |
 2029|   129k|    if (i > 0) {
  ------------------
  |  Branch (2029:9): [True: 83.3k, False: 45.9k]
  ------------------
 2030|  83.3k|        if (uprv_strnicmp(localeID, "und_", 4) == 0) {
  ------------------
  |  | 1544|  83.3k|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  123|  83.3k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  83.3k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  83.3k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2030:13): [True: 0, False: 83.3k]
  ------------------
 2031|      0|            localeID += 3;
 2032|      0|            i -= 3;
 2033|      0|        }
 2034|  83.3k|        sink.Append(localeID, i);
 2035|  83.3k|    }
 2036|   129k|}
uloc_getCountry_78:
 2094|  1.66k|{
 2095|  1.66k|    if (localeID == nullptr) {
  ------------------
  |  Branch (2095:9): [True: 0, False: 1.66k]
  ------------------
 2096|      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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2097|      0|    }
 2098|       |
 2099|  1.66k|    return ByteSinkUtil::viaByteSinkToTerminatedChars(
 2100|  1.66k|        country, countryCapacity,
 2101|  1.66k|        [&](ByteSink& sink, UErrorCode& status) {
 2102|  1.66k|            ulocimp_getSubtags(
 2103|  1.66k|                    localeID,
 2104|  1.66k|                    nullptr,
 2105|  1.66k|                    nullptr,
 2106|  1.66k|                    &sink,
 2107|  1.66k|                    nullptr,
 2108|  1.66k|                    nullptr,
 2109|  1.66k|                    status);
 2110|  1.66k|        },
 2111|  1.66k|        *err);
 2112|  1.66k|}
_Z18ulocimp_getName_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEER10UErrorCode:
 2159|  53.4k|{
 2160|  53.4k|    return ByteSinkUtil::viaByteSinkToCharString(
 2161|  53.4k|        [&](ByteSink& sink, UErrorCode& status) {
 2162|  53.4k|            ulocimp_getName(localeID, sink, status);
 2163|  53.4k|        },
 2164|  53.4k|        err);
 2165|  53.4k|}
_Z18ulocimp_getName_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEERN6icu_788ByteSinkER10UErrorCode:
 2171|   170k|{
 2172|   170k|    _canonicalize(localeID, sink, 0, err);
 2173|   170k|}
_Z22ulocimp_getBaseName_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEER10UErrorCode:
 2195|   756k|{
 2196|   756k|    return ByteSinkUtil::viaByteSinkToCharString(
 2197|   756k|        [&](ByteSink& sink, UErrorCode& status) {
 2198|   756k|            ulocimp_getBaseName(localeID, sink, status);
 2199|   756k|        },
 2200|   756k|        err);
 2201|   756k|}
_Z22ulocimp_getBaseName_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEERN6icu_788ByteSinkER10UErrorCode:
 2207|   756k|{
 2208|   756k|    _canonicalize(localeID, sink, _ULOC_STRIP_KEYWORDS, err);
  ------------------
  |  | 1785|   756k|#define _ULOC_STRIP_KEYWORDS 0x2
  ------------------
 2209|   756k|}
_Z23ulocimp_canonicalize_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEER10UErrorCode:
 2231|  40.5k|{
 2232|  40.5k|    return ByteSinkUtil::viaByteSinkToCharString(
 2233|  40.5k|        [&](ByteSink& sink, UErrorCode& status) {
 2234|  40.5k|            ulocimp_canonicalize(localeID, sink, status);
 2235|  40.5k|        },
 2236|  40.5k|        err);
 2237|  40.5k|}
_Z23ulocimp_canonicalize_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEERN6icu_788ByteSinkER10UErrorCode:
 2243|  41.4k|{
 2244|  41.4k|    _canonicalize(localeID, sink, _ULOC_CANONICALIZE, err);
  ------------------
  |  | 1786|  41.4k|#define _ULOC_CANONICALIZE   0x1
  ------------------
 2245|  41.4k|}
uloc_getDefault_78:
 2336|  1.22M|{
 2337|  1.22M|    return locale_get_default();
  ------------------
  |  |  139|  1.22M|#define locale_get_default U_ICU_ENTRY_POINT_RENAME(locale_get_default)
  |  |  ------------------
  |  |  |  |  123|  1.22M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.22M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.22M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2338|  1.22M|}
_Z34ulocimp_toLegacyKeyWithFallback_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEE:
 2456|   112k|{
 2457|   112k|    std::optional<std::string_view> legacyKey = ulocimp_toLegacyKey(keyword);
  ------------------
  |  | 1219|   112k|#define ulocimp_toLegacyKey U_ICU_ENTRY_POINT_RENAME(ulocimp_toLegacyKey)
  |  |  ------------------
  |  |  |  |  123|   112k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   112k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   112k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2458|   112k|    if (!legacyKey.has_value() && isWellFormedLegacyKey(keyword)) {
  ------------------
  |  Branch (2458:9): [True: 101k, False: 10.8k]
  |  Branch (2458:35): [True: 101k, 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|   101k|        return keyword;
 2467|   101k|    }
 2468|  10.8k|    return legacyKey;
 2469|   112k|}
_Z35ulocimp_toLegacyTypeWithFallback_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEES3_:
 2482|  7.95k|{
 2483|  7.95k|    std::optional<std::string_view> legacyType = ulocimp_toLegacyType(keyword, value);
  ------------------
  |  | 1221|  7.95k|#define ulocimp_toLegacyType U_ICU_ENTRY_POINT_RENAME(ulocimp_toLegacyType)
  |  |  ------------------
  |  |  |  |  123|  7.95k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.95k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.95k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2484|  7.95k|    if (!legacyType.has_value() && isWellFormedLegacyType(value)) {
  ------------------
  |  Branch (2484:9): [True: 6.01k, False: 1.94k]
  |  Branch (2484:36): [True: 6.01k, 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|  6.01k|        return value;
 2494|  6.01k|    }
 2495|  1.94k|    return legacyType;
 2496|  7.95k|}
uloc.cpp:_ZN12_GLOBAL__N_121compareKeywordStructsEPKvS1_S1_:
  583|   137k|compareKeywordStructs(const void * /*context*/, const void *left, const void *right) {
  584|   137k|    const char* leftString = static_cast<const KeywordStruct*>(left)->keyword;
  585|   137k|    const char* rightString = static_cast<const KeywordStruct*>(right)->keyword;
  586|   137k|    return uprv_strcmp(leftString, rightString);
  ------------------
  |  |   38|   137k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   137k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  587|   137k|}
uloc.cpp:_ZN12_GLOBAL__N_123locale_canonKeywordNameENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEER10UErrorCode:
  556|   449k|{
  557|   449k|  if (U_FAILURE(status)) { return {}; }
  ------------------
  |  Branch (557:7): [True: 0, False: 449k]
  ------------------
  558|   449k|  CharString result;
  559|       |
  560|  2.67M|  for (char c : keywordName) {
  ------------------
  |  Branch (560:15): [True: 2.67M, False: 449k]
  ------------------
  561|  2.67M|    if (!UPRV_ISALPHANUM(c)) {
  ------------------
  |  Branch (561:9): [True: 0, False: 2.67M]
  ------------------
  562|      0|      status = U_ILLEGAL_ARGUMENT_ERROR; /* malformed keyword name */
  563|      0|      return {};
  564|      0|    }
  565|  2.67M|    result.append(uprv_tolower(c), status);
  ------------------
  |  |   68|  2.67M|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  2.67M|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  2.67M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  2.67M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  2.67M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  566|  2.67M|  }
  567|   449k|  if (result.isEmpty()) {
  ------------------
  |  Branch (567:7): [True: 0, False: 449k]
  ------------------
  568|      0|    status = U_ILLEGAL_ARGUMENT_ERROR; /* empty keyword name */
  569|      0|    return {};
  570|      0|  }
  571|       |
  572|   449k|  return result;
  573|   449k|}
uloc.cpp:_ZN12_GLOBAL__N_118_hasBCP47ExtensionENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  510|  1.41M|inline bool _hasBCP47Extension(std::string_view id) {
  511|  1.41M|    return id.find('@') == std::string_view::npos && getShortestSubtagLength(id) == 1;
  ------------------
  |  Branch (511:12): [True: 1.26M, False: 154k]
  |  Branch (511:54): [True: 111k, False: 1.15M]
  ------------------
  512|  1.41M|}
uloc.cpp:_ZN12_GLOBAL__N_123getShortestSubtagLengthENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  485|  1.26M|int32_t getShortestSubtagLength(std::string_view localeID) {
  486|  1.26M|    int32_t localeIDLength = static_cast<int32_t>(localeID.length());
  487|  1.26M|    int32_t length = localeIDLength;
  488|  1.26M|    int32_t tmpLength = 0;
  489|  1.26M|    int32_t i;
  490|  1.26M|    bool reset = true;
  491|       |
  492|   165M|    for (i = 0; i < localeIDLength; i++) {
  ------------------
  |  Branch (492:17): [True: 164M, False: 1.26M]
  ------------------
  493|   164M|        if (localeID[i] != '_' && localeID[i] != '-') {
  ------------------
  |  Branch (493:13): [True: 161M, False: 2.62M]
  |  Branch (493:35): [True: 155M, False: 6.47M]
  ------------------
  494|   155M|            if (reset) {
  ------------------
  |  Branch (494:17): [True: 9.43M, False: 145M]
  ------------------
  495|  9.43M|                tmpLength = 0;
  496|  9.43M|                reset = false;
  497|  9.43M|            }
  498|   155M|            tmpLength++;
  499|   155M|        } else {
  500|  9.09M|            if (tmpLength != 0 && tmpLength < length) {
  ------------------
  |  Branch (500:17): [True: 8.98M, False: 116k]
  |  Branch (500:35): [True: 1.00M, False: 7.98M]
  ------------------
  501|  1.00M|                length = tmpLength;
  502|  1.00M|            }
  503|  9.09M|            reset = true;
  504|  9.09M|        }
  505|   164M|    }
  506|       |
  507|  1.26M|    return length;
  508|  1.26M|}
uloc.cpp:_ZN12_GLOBAL__N_115UPRV_ISALPHANUMEc:
  516|  21.8M|inline bool UPRV_ISALPHANUM(char c) { return uprv_isASCIILetter(c) || UPRV_ISDIGIT(c); }
  ------------------
  |  | 1514|  21.8M|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|  21.8M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  21.8M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  21.8M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (516:46): [True: 13.4M, False: 8.36M]
  |  Branch (516:71): [True: 5.93M, False: 2.42M]
  ------------------
uloc.cpp:_ZN12_GLOBAL__N_112UPRV_ISDIGITEc:
  515|  8.36M|inline bool UPRV_ISDIGIT(char c) { return c >= '0' && c <= '9'; }
  ------------------
  |  Branch (515:43): [True: 5.93M, False: 2.42M]
  |  Branch (515:55): [True: 5.93M, False: 1.58k]
  ------------------
uloc.cpp:_ZN12_GLOBAL__N_125UPRV_OK_VALUE_PUNCTUATIONEc:
  518|  2.41M|inline bool UPRV_OK_VALUE_PUNCTUATION(char c) { return c == '_' || c == '-' || c == '+' || c == '/'; }
  ------------------
  |  Branch (518:56): [True: 892, False: 2.41M]
  |  Branch (518:68): [True: 2.41M, False: 1.38k]
  |  Branch (518:80): [True: 558, False: 826]
  |  Branch (518:92): [True: 691, False: 135]
  ------------------
uloc.cpp:_ZN12_GLOBAL__N_110_findIndexEPKPKcS1_:
 1178|   183k|{
 1179|   183k|    const char* const* anchor = list;
 1180|   183k|    int32_t pass = 0;
 1181|       |
 1182|       |    /* Make two passes through two nullptr-terminated arrays at 'list' */
 1183|   283k|    while (pass++ < 2) {
  ------------------
  |  Branch (1183:12): [True: 233k, False: 50.3k]
  ------------------
 1184|  58.5M|        while (*list) {
  ------------------
  |  Branch (1184:16): [True: 58.4M, False: 100k]
  ------------------
 1185|  58.4M|            if (uprv_strcmp(key, *list) == 0) {
  ------------------
  |  |   38|  58.4M|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  58.4M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1185:17): [True: 132k, False: 58.2M]
  ------------------
 1186|   132k|                return static_cast<int16_t>(list - anchor);
 1187|   132k|            }
 1188|  58.2M|            list++;
 1189|  58.2M|        }
 1190|   100k|        ++list;     /* skip final nullptr *CWB*/
 1191|   100k|    }
 1192|  50.3k|    return std::nullopt;
 1193|   183k|}
uloc.cpp:_ZN12_GLOBAL__N_112_getLanguageENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEPN6icu_788ByteSinkER10UErrorCode:
 1219|  2.58M|size_t _getLanguage(std::string_view localeID, ByteSink* sink, UErrorCode& status) {
 1220|  2.58M|    size_t skip = 0;
 1221|  2.58M|    if (localeID.size() == 4 && uprv_strnicmp(localeID.data(), "root", 4) == 0) {
  ------------------
  |  | 1544|  39.1k|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  123|  39.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  39.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  39.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1221:9): [True: 39.1k, False: 2.54M]
  |  Branch (1221:33): [True: 2.42k, False: 36.7k]
  ------------------
 1222|  2.42k|        skip = 4;
 1223|  2.42k|        localeID.remove_prefix(skip);
 1224|  2.57M|    } else if (localeID.size() >= 3 && uprv_strnicmp(localeID.data(), "und", 3) == 0 &&
  ------------------
  |  | 1544|  2.38M|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  123|  2.38M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.38M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.38M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1224:16): [True: 2.38M, False: 196k]
  |  Branch (1224:40): [True: 41.2k, False: 2.34M]
  ------------------
 1225|  2.57M|               (localeID.size() == 3 ||
  ------------------
  |  Branch (1225:17): [True: 36.7k, False: 4.49k]
  ------------------
 1226|  41.2k|                localeID[3] == '-' ||
  ------------------
  |  Branch (1226:17): [True: 63, False: 4.42k]
  ------------------
 1227|  41.2k|                localeID[3] == '_' ||
  ------------------
  |  Branch (1227:17): [True: 594, False: 3.83k]
  ------------------
 1228|  41.2k|                localeID[3] == '@')) {
  ------------------
  |  Branch (1228:17): [True: 79, False: 3.75k]
  ------------------
 1229|  37.5k|        skip = 3;
 1230|  37.5k|        localeID.remove_prefix(skip);
 1231|  37.5k|    }
 1232|       |
 1233|  2.58M|    constexpr int32_t MAXLEN = ULOC_LANG_CAPACITY - 1;  // Minus NUL.
  ------------------
  |  |  251|  2.58M|#define ULOC_LANG_CAPACITY 12
  ------------------
 1234|       |
 1235|       |    /* if it starts with i- or x- then copy that prefix */
 1236|  2.58M|    size_t len = _isIDPrefix(localeID) ? 2 : 0;
  ------------------
  |  Branch (1236:18): [True: 19.4k, False: 2.56M]
  ------------------
 1237|  7.90M|    while (len < localeID.size() && !_isTerminator(localeID[len]) && !_isIDSeparator(localeID[len])) {
  ------------------
  |  Branch (1237:12): [True: 7.52M, False: 378k]
  |  Branch (1237:37): [True: 7.44M, False: 77.5k]
  |  Branch (1237:70): [True: 5.32M, False: 2.12M]
  ------------------
 1238|  5.32M|        if (len == MAXLEN) {
  ------------------
  |  Branch (1238:13): [True: 1.00k, False: 5.32M]
  ------------------
 1239|  1.00k|            status = U_ILLEGAL_ARGUMENT_ERROR;
 1240|  1.00k|            return 0;
 1241|  1.00k|        }
 1242|  5.32M|        len++;
 1243|  5.32M|    }
 1244|       |
 1245|  2.57M|    if (sink == nullptr || len == 0) { return skip + len; }
  ------------------
  |  Branch (1245:9): [True: 934k, False: 1.64M]
  |  Branch (1245:28): [True: 128k, False: 1.51M]
  ------------------
 1246|       |
 1247|  1.51M|    int32_t minCapacity = uprv_max(static_cast<int32_t>(len), 4);  // Minimum 3 letters plus NUL.
  ------------------
  |  | 1526|  1.51M|#define uprv_max U_ICU_ENTRY_POINT_RENAME(uprv_max)
  |  |  ------------------
  |  |  |  |  123|  1.51M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.51M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.51M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1248|  1.51M|    char scratch[MAXLEN];
 1249|  1.51M|    int32_t capacity = 0;
 1250|  1.51M|    char* buffer = sink->GetAppendBuffer(
 1251|  1.51M|            minCapacity, minCapacity, scratch, UPRV_LENGTHOF(scratch), &capacity);
  ------------------
  |  |   99|  1.51M|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1252|       |
 1253|  4.99M|    for (size_t i = 0; i < len; ++i) {
  ------------------
  |  Branch (1253:24): [True: 3.47M, False: 1.51M]
  ------------------
 1254|  3.47M|        buffer[i] = uprv_tolower(localeID[i]);
  ------------------
  |  |   68|  3.47M|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  3.47M|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  3.47M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  3.47M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  3.47M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1255|  3.47M|    }
 1256|  1.51M|    if (localeID.size() >= 2 && _isIDSeparator(localeID[1])) {
  ------------------
  |  Branch (1256:9): [True: 1.49M, False: 25.7k]
  |  Branch (1256:33): [True: 23.6k, False: 1.46M]
  ------------------
 1257|  23.6k|        buffer[1] = '-';
 1258|  23.6k|    }
 1259|       |
 1260|  1.51M|    if (len == 3) {
  ------------------
  |  Branch (1260:9): [True: 158k, False: 1.35M]
  ------------------
 1261|       |        /* convert 3 character code to 2 character code if possible *CWB*/
 1262|   158k|        U_ASSERT(capacity >= 4);
  ------------------
  |  |   35|   158k|#   define U_ASSERT(exp) (void)0
  ------------------
 1263|   158k|        buffer[3] = '\0';
 1264|   158k|        std::optional<int16_t> offset = _findIndex(LANGUAGES_3, buffer);
 1265|   158k|        if (offset.has_value()) {
  ------------------
  |  Branch (1265:13): [True: 132k, False: 26.2k]
  ------------------
 1266|   132k|            const char* const alias = LANGUAGES[*offset];
 1267|   132k|            sink->Append(alias, static_cast<int32_t>(uprv_strlen(alias)));
  ------------------
  |  |   37|   132k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|   132k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1268|   132k|            return skip + len;
 1269|   132k|        }
 1270|   158k|    }
 1271|       |
 1272|  1.38M|    sink->Append(buffer, static_cast<int32_t>(len));
 1273|  1.38M|    return skip + len;
 1274|  1.51M|}
uloc.cpp:_ZN12_GLOBAL__N_111_isIDPrefixENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
 1152|  2.58M|inline bool _isIDPrefix(std::string_view s) {
 1153|  2.58M|    return s.size() >= 2 && _isPrefixLetter(s[0]) && _isIDSeparator(s[1]);
  ------------------
  |  Branch (1153:12): [True: 2.49M, False: 84.8k]
  |  Branch (1153:29): [True: 47.7k, False: 2.44M]
  |  Branch (1153:54): [True: 19.4k, False: 28.3k]
  ------------------
 1154|  2.58M|}
uloc.cpp:_ZN12_GLOBAL__N_115_isPrefixLetterEc:
 1148|  2.49M|inline bool _isPrefixLetter(char a) { return a == 'x' || a == 'X' || a == 'i' || a == 'I'; }
  ------------------
  |  Branch (1148:46): [True: 27.3k, False: 2.46M]
  |  Branch (1148:58): [True: 180, False: 2.46M]
  |  Branch (1148:70): [True: 20.1k, False: 2.44M]
  |  Branch (1148:82): [True: 40, False: 2.44M]
  ------------------
uloc.cpp:_ZN12_GLOBAL__N_113_isTerminatorEc:
 1159|  19.2M|inline bool _isTerminator(char a) { return a == '.' || a == '@'; }
  ------------------
  |  Branch (1159:44): [True: 26.5k, False: 19.2M]
  |  Branch (1159:56): [True: 141k, False: 19.0M]
  ------------------
uloc.cpp:_ZN12_GLOBAL__N_110_getScriptENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEPN6icu_788ByteSinkE:
 1276|  2.12M|size_t _getScript(std::string_view localeID, ByteSink* sink) {
 1277|  2.12M|    constexpr int32_t LENGTH = 4;
 1278|       |
 1279|  2.12M|    size_t len = 0;
 1280|  6.92M|    while (len < localeID.size() && !_isTerminator(localeID[len]) && !_isIDSeparator(localeID[len]) &&
  ------------------
  |  Branch (1280:12): [True: 5.87M, False: 1.04M]
  |  Branch (1280:37): [True: 5.85M, False: 26.2k]
  |  Branch (1280:70): [True: 4.85M, False: 996k]
  ------------------
 1281|  6.92M|            uprv_isASCIILetter(localeID[len])) {
  ------------------
  |  | 1514|  4.85M|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|  4.85M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.85M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.85M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1281:13): [True: 4.80M, False: 53.2k]
  ------------------
 1282|  4.80M|        if (len == LENGTH) { return 0; }
  ------------------
  |  Branch (1282:13): [True: 1.28k, False: 4.79M]
  ------------------
 1283|  4.79M|        len++;
 1284|  4.79M|    }
 1285|  2.12M|    if (len != LENGTH) { return 0; }
  ------------------
  |  Branch (1285:9): [True: 1.63M, False: 487k]
  ------------------
 1286|       |
 1287|   487k|    if (sink == nullptr) { return len; }
  ------------------
  |  Branch (1287:9): [True: 221k, False: 266k]
  ------------------
 1288|       |
 1289|   266k|    char scratch[LENGTH];
 1290|   266k|    int32_t capacity = 0;
 1291|   266k|    char* buffer = sink->GetAppendBuffer(
 1292|   266k|            LENGTH, LENGTH, scratch, UPRV_LENGTHOF(scratch), &capacity);
  ------------------
  |  |   99|   266k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1293|       |
 1294|   266k|    buffer[0] = uprv_toupper(localeID[0]);
  ------------------
  |  | 1547|   266k|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|   266k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   266k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   266k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1295|  1.06M|    for (int32_t i = 1; i < LENGTH; ++i) {
  ------------------
  |  Branch (1295:25): [True: 798k, False: 266k]
  ------------------
 1296|   798k|        buffer[i] = uprv_tolower(localeID[i]);
  ------------------
  |  |   68|   798k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|   798k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|   798k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|   798k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|   798k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1297|   798k|    }
 1298|       |
 1299|   266k|    sink->Append(buffer, LENGTH);
 1300|   266k|    return len;
 1301|   487k|}
uloc.cpp:_ZN12_GLOBAL__N_110_getRegionENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEPN6icu_788ByteSinkE:
 1303|  1.48M|size_t _getRegion(std::string_view localeID, ByteSink* sink) {
 1304|  1.48M|    constexpr int32_t MINLEN = 2;
 1305|  1.48M|    constexpr int32_t MAXLEN = ULOC_COUNTRY_CAPACITY - 1;  // Minus NUL.
  ------------------
  |  |  258|  1.48M|#define ULOC_COUNTRY_CAPACITY 4
  ------------------
 1306|       |
 1307|  1.48M|    size_t len = 0;
 1308|  4.12M|    while (len < localeID.size() && !_isTerminator(localeID[len]) && !_isIDSeparator(localeID[len])) {
  ------------------
  |  Branch (1308:12): [True: 3.47M, False: 647k]
  |  Branch (1308:37): [True: 3.45M, False: 27.4k]
  |  Branch (1308:70): [True: 2.64M, False: 807k]
  ------------------
 1309|  2.64M|        if (len == MAXLEN) { return 0; }
  ------------------
  |  Branch (1309:13): [True: 2.50k, False: 2.64M]
  ------------------
 1310|  2.64M|        len++;
 1311|  2.64M|    }
 1312|  1.48M|    if (len < MINLEN) { return 0; }
  ------------------
  |  Branch (1312:9): [True: 188k, False: 1.29M]
  ------------------
 1313|       |
 1314|  1.29M|    if (sink == nullptr) { return len; }
  ------------------
  |  Branch (1314:9): [True: 407k, False: 886k]
  ------------------
 1315|       |
 1316|   886k|    char scratch[ULOC_COUNTRY_CAPACITY];
 1317|   886k|    int32_t capacity = 0;
 1318|   886k|    char* buffer = sink->GetAppendBuffer(
 1319|   886k|            ULOC_COUNTRY_CAPACITY,
  ------------------
  |  |  258|   886k|#define ULOC_COUNTRY_CAPACITY 4
  ------------------
 1320|   886k|            ULOC_COUNTRY_CAPACITY,
  ------------------
  |  |  258|   886k|#define ULOC_COUNTRY_CAPACITY 4
  ------------------
 1321|   886k|            scratch,
 1322|   886k|            UPRV_LENGTHOF(scratch),
  ------------------
  |  |   99|   886k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1323|   886k|            &capacity);
 1324|       |
 1325|  2.68M|    for (size_t i = 0; i < len; ++i) {
  ------------------
  |  Branch (1325:24): [True: 1.79M, False: 886k]
  ------------------
 1326|  1.79M|        buffer[i] = uprv_toupper(localeID[i]);
  ------------------
  |  | 1547|  1.79M|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|  1.79M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.79M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.79M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1327|  1.79M|    }
 1328|       |
 1329|   886k|    if (len == 3) {
  ------------------
  |  Branch (1329:9): [True: 24.1k, False: 862k]
  ------------------
 1330|       |        /* convert 3 character code to 2 character code if possible *CWB*/
 1331|  24.1k|        U_ASSERT(capacity >= 4);
  ------------------
  |  |   35|  24.1k|#   define U_ASSERT(exp) (void)0
  ------------------
 1332|  24.1k|        buffer[3] = '\0';
 1333|  24.1k|        std::optional<int16_t> offset = _findIndex(COUNTRIES_3, buffer);
 1334|  24.1k|        if (offset.has_value()) {
  ------------------
  |  Branch (1334:13): [True: 18, False: 24.1k]
  ------------------
 1335|     18|            const char* const alias = COUNTRIES[*offset];
 1336|     18|            sink->Append(alias, static_cast<int32_t>(uprv_strlen(alias)));
  ------------------
  |  |   37|     18|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|     18|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1337|     18|            return len;
 1338|     18|        }
 1339|  24.1k|    }
 1340|       |
 1341|   886k|    sink->Append(buffer, static_cast<int32_t>(len));
 1342|   886k|    return len;
 1343|   886k|}
uloc.cpp:_ZN12_GLOBAL__N_117_isBCP47ExtensionENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
 1161|  3.10M|inline bool _isBCP47Extension(std::string_view p) {
 1162|  3.10M|    return p.size() >= 3 &&
  ------------------
  |  Branch (1162:12): [True: 3.03M, False: 72.2k]
  ------------------
 1163|  3.10M|           p[0] == '-' &&
  ------------------
  |  Branch (1163:12): [True: 116k, False: 2.92M]
  ------------------
 1164|  3.10M|           (p[1] == 't' || p[1] == 'T' ||
  ------------------
  |  Branch (1164:13): [True: 362, False: 116k]
  |  Branch (1164:28): [True: 945, False: 115k]
  ------------------
 1165|   116k|            p[1] == 'u' || p[1] == 'U' ||
  ------------------
  |  Branch (1165:13): [True: 518, False: 114k]
  |  Branch (1165:28): [True: 5.09k, False: 109k]
  ------------------
 1166|   116k|            p[1] == 'x' || p[1] == 'X') &&
  ------------------
  |  Branch (1166:13): [True: 492, False: 108k]
  |  Branch (1166:28): [True: 3.39k, False: 105k]
  ------------------
 1167|  3.10M|           p[2] == '-';
  ------------------
  |  Branch (1167:12): [True: 7.36k, False: 3.44k]
  ------------------
 1168|  3.10M|}
uloc.cpp:_ZN12_GLOBAL__N_111_getVariantENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEcPN6icu_788ByteSinkEbR10UErrorCode:
 1354|   750k|            UErrorCode& status) {
 1355|   750k|    if (U_FAILURE(status) || localeID.empty()) return 0;
  ------------------
  |  Branch (1355:9): [True: 0, False: 750k]
  |  Branch (1355:30): [True: 1.85k, False: 748k]
  ------------------
 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|   748k|    constexpr int32_t MAX_VARIANTS_LENGTH = 179;
 1366|       |
 1367|       |    /* get one or more variant tags and separate them with '_' */
 1368|   748k|    size_t index = 0;
 1369|   748k|    if (_isIDSeparator(prev)) {
  ------------------
  |  Branch (1369:9): [True: 746k, False: 1.61k]
  ------------------
 1370|       |        /* get a variant string after a '-' or '_' */
 1371|  2.97M|        for (std::string_view sub = localeID;;) {
 1372|  2.97M|            size_t next = sub.find_first_of(".@_-");
 1373|       |            // For historical reasons, a trailing separator is included in the variant.
 1374|  2.97M|            bool finished = next == std::string_view::npos || next + 1 == sub.length();
  ------------------
  |  Branch (1374:29): [True: 678k, False: 2.29M]
  |  Branch (1374:63): [True: 30.7k, False: 2.26M]
  ------------------
 1375|  2.97M|            size_t limit = finished ? sub.length() : next;
  ------------------
  |  Branch (1375:28): [True: 708k, False: 2.26M]
  ------------------
 1376|  2.97M|            index += limit;
 1377|  2.97M|            if (index > MAX_VARIANTS_LENGTH) {
  ------------------
  |  Branch (1377:17): [True: 565, False: 2.97M]
  ------------------
 1378|    565|                status = U_ILLEGAL_ARGUMENT_ERROR;
 1379|    565|                return 0;
 1380|    565|            }
 1381|       |
 1382|  2.97M|            if (sink != nullptr) {
  ------------------
  |  Branch (1382:17): [True: 2.97M, False: 0]
  ------------------
 1383|  2.97M|                if (needSeparator) {
  ------------------
  |  Branch (1383:21): [True: 2.22M, False: 746k]
  ------------------
 1384|  2.22M|                    sink->Append("_", 1);
 1385|  2.22M|                } else {
 1386|   746k|                    needSeparator = true;
 1387|   746k|                }
 1388|       |
 1389|  2.97M|                int32_t length = static_cast<int32_t>(limit);
 1390|  2.97M|                int32_t minCapacity = uprv_min(length, MAX_VARIANTS_LENGTH);
  ------------------
  |  | 1529|  2.97M|#define uprv_min U_ICU_ENTRY_POINT_RENAME(uprv_min)
  |  |  ------------------
  |  |  |  |  123|  2.97M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.97M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.97M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1391|  2.97M|                char scratch[MAX_VARIANTS_LENGTH];
 1392|  2.97M|                int32_t capacity = 0;
 1393|  2.97M|                char* buffer = sink->GetAppendBuffer(
 1394|  2.97M|                        minCapacity, minCapacity, scratch, UPRV_LENGTHOF(scratch), &capacity);
  ------------------
  |  |   99|  2.97M|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1395|       |
 1396|  10.5M|                for (size_t i = 0; i < limit; ++i) {
  ------------------
  |  Branch (1396:36): [True: 7.62M, False: 2.97M]
  ------------------
 1397|  7.62M|                    buffer[i] = uprv_toupper(sub[i]);
  ------------------
  |  | 1547|  7.62M|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|  7.62M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.62M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.62M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1398|  7.62M|                }
 1399|  2.97M|                sink->Append(buffer, length);
 1400|  2.97M|            }
 1401|       |
 1402|  2.97M|            if (finished) { return index; }
  ------------------
  |  Branch (1402:17): [True: 708k, False: 2.26M]
  ------------------
 1403|  2.26M|            sub.remove_prefix(next);
 1404|  2.26M|            if (_isTerminator(sub.front()) || _isBCP47Extension(sub)) { return index; }
  ------------------
  |  Branch (1404:17): [True: 36.7k, False: 2.22M]
  |  Branch (1404:47): [True: 965, False: 2.22M]
  ------------------
 1405|  2.22M|            sub.remove_prefix(1);
 1406|  2.22M|            index++;
 1407|  2.22M|        }
 1408|   746k|    }
 1409|       |
 1410|  1.61k|    size_t skip = 0;
 1411|       |    /* if there is no variant tag after a '-' or '_' then look for '@' */
 1412|  1.61k|    if (prev == '@') {
  ------------------
  |  Branch (1412:9): [True: 1.61k, False: 0]
  ------------------
 1413|       |        /* keep localeID */
 1414|  1.61k|    } 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|  99.4k|    for (; index < localeID.size() && !_isTerminator(localeID[index]); index++) {
  ------------------
  |  Branch (1420:12): [True: 98.3k, False: 1.11k]
  |  Branch (1420:39): [True: 98.3k, False: 51]
  ------------------
 1421|  98.3k|        if (index >= MAX_VARIANTS_LENGTH) { // same as length > MAX_VARIANTS_LENGTH
  ------------------
  |  Branch (1421:13): [True: 448, False: 97.8k]
  ------------------
 1422|    448|            status = U_ILLEGAL_ARGUMENT_ERROR;
 1423|    448|            return 0;
 1424|    448|        }
 1425|  97.8k|        if (needSeparator) {
  ------------------
  |  Branch (1425:13): [True: 687, False: 97.1k]
  ------------------
 1426|    687|            if (sink != nullptr) {
  ------------------
  |  Branch (1426:17): [True: 687, False: 0]
  ------------------
 1427|    687|                sink->Append("_", 1);
 1428|    687|            }
 1429|    687|            needSeparator = false;
 1430|    687|        }
 1431|  97.8k|        if (sink != nullptr) {
  ------------------
  |  Branch (1431:13): [True: 97.8k, False: 0]
  ------------------
 1432|  97.8k|            char c = uprv_toupper(localeID[index]);
  ------------------
  |  | 1547|  97.8k|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|  97.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  97.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  97.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1433|  97.8k|            if (c == '-' || c == ',') c = '_';
  ------------------
  |  Branch (1433:17): [True: 3.88k, False: 93.9k]
  |  Branch (1433:29): [True: 1.80k, False: 92.1k]
  ------------------
 1434|  97.8k|            sink->Append(&c, 1);
 1435|  97.8k|        }
 1436|  97.8k|    }
 1437|  1.16k|    return skip + index;
 1438|  1.61k|}
uloc.cpp:_ZN12_GLOBAL__N_113_canonicalizeENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEERN6icu_788ByteSinkEjR10UErrorCode:
 1806|   968k|              UErrorCode& err) {
 1807|   968k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (1807:9): [True: 0, False: 968k]
  ------------------
 1808|      0|        return;
 1809|      0|    }
 1810|       |
 1811|   968k|    int32_t j, fieldCount=0;
 1812|   968k|    CharString tempBuffer;  // if localeID has a BCP47 extension, tmpLocaleID points to this
 1813|   968k|    CharString localeIDWithHyphens;  // if localeID has a BPC47 extension and have _, tmpLocaleID points to this
 1814|   968k|    std::string_view origLocaleID;
 1815|   968k|    std::string_view tmpLocaleID;
 1816|   968k|    size_t keywordAssign = std::string_view::npos;
 1817|   968k|    size_t separatorIndicator = std::string_view::npos;
 1818|       |
 1819|   968k|    if (_hasBCP47Extension(localeID)) {
  ------------------
  |  Branch (1819:9): [True: 81.9k, False: 886k]
  ------------------
 1820|  81.9k|        std::string_view localeIDPtr = localeID;
 1821|       |
 1822|       |        // convert all underbars to hyphens, unless the "BCP47 extension" comes at the beginning of the string
 1823|  81.9k|        if (localeID.size() >= 2 && localeID.find('_') != std::string_view::npos && localeID[1] != '-' && localeID[1] != '_') {
  ------------------
  |  Branch (1823:13): [True: 69.8k, False: 12.0k]
  |  Branch (1823:37): [True: 64.8k, False: 5.03k]
  |  Branch (1823:85): [True: 61.9k, False: 2.85k]
  |  Branch (1823:107): [True: 35.3k, False: 26.5k]
  ------------------
 1824|  35.3k|            localeIDWithHyphens.append(localeID, err);
 1825|  35.3k|            if (U_SUCCESS(err)) {
  ------------------
  |  Branch (1825:17): [True: 35.3k, False: 0]
  ------------------
 1826|  54.3M|                for (char* p = localeIDWithHyphens.data(); *p != '\0'; ++p) {
  ------------------
  |  Branch (1826:60): [True: 54.3M, False: 35.3k]
  ------------------
 1827|  54.3M|                    if (*p == '_') {
  ------------------
  |  Branch (1827:25): [True: 624k, False: 53.7M]
  ------------------
 1828|   624k|                        *p = '-';
 1829|   624k|                    }
 1830|  54.3M|                }
 1831|  35.3k|                localeIDPtr = localeIDWithHyphens.toStringPiece();
 1832|  35.3k|            }
 1833|  35.3k|        }
 1834|       |
 1835|  81.9k|        tempBuffer = ulocimp_forLanguageTag(localeIDPtr.data(), static_cast<int32_t>(localeIDPtr.size()), nullptr, err);
  ------------------
  |  | 1198|  81.9k|#define ulocimp_forLanguageTag U_ICU_ENTRY_POINT_RENAME(ulocimp_forLanguageTag)
  |  |  ------------------
  |  |  |  |  123|  81.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  81.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  81.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1836|  81.9k|        tmpLocaleID = U_SUCCESS(err) && !tempBuffer.isEmpty() ? static_cast<std::string_view>(tempBuffer.toStringPiece()) : localeIDPtr;
  ------------------
  |  Branch (1836:23): [True: 81.9k, False: 0]
  |  Branch (1836:41): [True: 26.1k, False: 55.7k]
  ------------------
 1837|   886k|    } else {
 1838|   886k|        tmpLocaleID=localeID;
 1839|   886k|    }
 1840|       |
 1841|   968k|    origLocaleID=tmpLocaleID;
 1842|       |
 1843|       |    /* get all pieces, one after another, and separate with '_' */
 1844|   968k|    CharString tag;
 1845|   968k|    CharString script;
 1846|   968k|    CharString country;
 1847|   968k|    CharString variant;
 1848|   968k|    const char* end = nullptr;
 1849|   968k|    ulocimp_getSubtags(
  ------------------
  |  | 1209|   968k|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|   968k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   968k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   968k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1850|   968k|            tmpLocaleID,
 1851|   968k|            &tag,
 1852|   968k|            &script,
 1853|   968k|            &country,
 1854|   968k|            &variant,
 1855|   968k|            &end,
 1856|   968k|            err);
 1857|   968k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (1857:9): [True: 1.55k, False: 967k]
  ------------------
 1858|  1.55k|        return;
 1859|  1.55k|    }
 1860|   967k|    U_ASSERT(end != nullptr);
  ------------------
  |  |   35|   967k|#   define U_ASSERT(exp) (void)0
  ------------------
 1861|   967k|    if (end > tmpLocaleID.data()) {
  ------------------
  |  Branch (1861:9): [True: 881k, False: 86.0k]
  ------------------
 1862|   881k|        tmpLocaleID.remove_prefix(end - tmpLocaleID.data());
 1863|   881k|    }
 1864|       |
 1865|   967k|    if (tag.length() == I_DEFAULT_LENGTH && origLocaleID.length() >= I_DEFAULT_LENGTH &&
  ------------------
  |  Branch (1865:9): [True: 5.35k, False: 961k]
  |  Branch (1865:45): [True: 5.35k, False: 0]
  ------------------
 1866|   967k|            uprv_strncmp(origLocaleID.data(), i_default, I_DEFAULT_LENGTH) == 0) {
  ------------------
  |  |   44|  5.35k|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|  5.35k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1866:13): [True: 63, False: 5.29k]
  ------------------
 1867|     63|        tag.clear();
 1868|     63|        tag.append(uloc_getDefault(), err);
  ------------------
  |  | 1118|     63|#define uloc_getDefault U_ICU_ENTRY_POINT_RENAME(uloc_getDefault)
  |  |  ------------------
  |  |  |  |  123|     63|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     63|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     63|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1869|   967k|    } else {
 1870|   967k|        if (!script.isEmpty()) {
  ------------------
  |  Branch (1870:13): [True: 54.8k, False: 912k]
  ------------------
 1871|  54.8k|            ++fieldCount;
 1872|  54.8k|            tag.append('_', err);
 1873|  54.8k|            tag.append(script, err);
 1874|  54.8k|        }
 1875|   967k|        if (!country.isEmpty()) {
  ------------------
  |  Branch (1875:13): [True: 598k, False: 368k]
  ------------------
 1876|   598k|            ++fieldCount;
 1877|   598k|            tag.append('_', err);
 1878|   598k|            tag.append(country, err);
 1879|   598k|        }
 1880|   967k|        if (!variant.isEmpty()) {
  ------------------
  |  Branch (1880:13): [True: 417k, False: 549k]
  ------------------
 1881|   417k|            ++fieldCount;
 1882|   417k|            if (country.isEmpty()) {
  ------------------
  |  Branch (1882:17): [True: 57.9k, False: 359k]
  ------------------
 1883|  57.9k|                tag.append('_', err);
 1884|  57.9k|            }
 1885|   417k|            tag.append('_', err);
 1886|   417k|            tag.append(variant, err);
 1887|   417k|        }
 1888|   967k|    }
 1889|       |
 1890|       |    /* Copy POSIX-style charset specifier, if any [mr.utf8] */
 1891|   967k|    if (!OPTION_SET(options, _ULOC_CANONICALIZE) && !tmpLocaleID.empty() && tmpLocaleID.front() == '.') {
  ------------------
  |  | 1786|   967k|#define _ULOC_CANONICALIZE   0x1
  ------------------
  |  Branch (1891:9): [True: 925k, False: 41.4k]
  |  Branch (1891:53): [True: 94.8k, False: 830k]
  |  Branch (1891:77): [True: 8.72k, False: 86.0k]
  ------------------
 1892|  8.72k|        tag.append('.', err);
 1893|  8.72k|        tmpLocaleID.remove_prefix(1);
 1894|  8.72k|        size_t length;
 1895|  8.72k|        if (size_t atPos = tmpLocaleID.find('@'); atPos != std::string_view::npos) {
  ------------------
  |  Branch (1895:51): [True: 3.31k, False: 5.40k]
  ------------------
 1896|  3.31k|            length = atPos;
 1897|  5.40k|        } else {
 1898|  5.40k|            length = tmpLocaleID.length();
 1899|  5.40k|        }
 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|  8.72k|        constexpr size_t kMaxCharsetLength = 64;
 1906|  8.72k|        if (length > kMaxCharsetLength) {
  ------------------
  |  Branch (1906:13): [True: 88, False: 8.63k]
  ------------------
 1907|     88|           err = U_ILLEGAL_ARGUMENT_ERROR; /* malformed keyword name */
 1908|     88|           return;
 1909|     88|        }
 1910|  8.63k|        if (length > 0) {
  ------------------
  |  Branch (1910:13): [True: 5.89k, False: 2.74k]
  ------------------
 1911|  5.89k|            tag.append(tmpLocaleID.data(), static_cast<int32_t>(length), err);
 1912|  5.89k|            tmpLocaleID.remove_prefix(length);
 1913|  5.89k|        }
 1914|  8.63k|    }
 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|   967k|    if (const char* start = locale_getKeywordsStart(tmpLocaleID); start != nullptr) {
  ------------------
  |  |  138|   967k|#define locale_getKeywordsStart U_ICU_ENTRY_POINT_RENAME(locale_getKeywordsStart)
  |  |  ------------------
  |  |  |  |  123|   967k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   967k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   967k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1918:67): [True: 94.8k, False: 872k]
  ------------------
 1919|  94.8k|        if (start > tmpLocaleID.data()) {
  ------------------
  |  Branch (1919:13): [True: 671, False: 94.1k]
  ------------------
 1920|    671|            tmpLocaleID.remove_prefix(start - tmpLocaleID.data());
 1921|    671|        }
 1922|  94.8k|        keywordAssign = tmpLocaleID.find('=');
 1923|  94.8k|        separatorIndicator = tmpLocaleID.find(';');
 1924|   872k|    } else {
 1925|   872k|        tmpLocaleID = {};
 1926|   872k|    }
 1927|       |
 1928|       |    /* Copy POSIX-style variant, if any [mr@FOO] */
 1929|   967k|    if (!OPTION_SET(options, _ULOC_CANONICALIZE) &&
  ------------------
  |  | 1786|   967k|#define _ULOC_CANONICALIZE   0x1
  ------------------
  |  Branch (1929:9): [True: 925k, False: 41.4k]
  ------------------
 1930|   967k|        !tmpLocaleID.empty() && keywordAssign == std::string_view::npos) {
  ------------------
  |  Branch (1930:9): [True: 84.2k, False: 841k]
  |  Branch (1930:33): [True: 15.2k, False: 69.0k]
  ------------------
 1931|  15.2k|        tag.append(tmpLocaleID, err);
 1932|  15.2k|        tmpLocaleID = {};
 1933|  15.2k|    }
 1934|       |
 1935|   967k|    if (OPTION_SET(options, _ULOC_CANONICALIZE)) {
  ------------------
  |  | 1786|   967k|#define _ULOC_CANONICALIZE   0x1
  ------------------
  |  Branch (1935:9): [True: 41.4k, False: 925k]
  ------------------
 1936|       |        /* Handle @FOO variant if @ is present and not followed by = */
 1937|  41.4k|        if (!tmpLocaleID.empty() && keywordAssign == std::string_view::npos) {
  ------------------
  |  Branch (1937:13): [True: 10.5k, False: 30.8k]
  |  Branch (1937:37): [True: 1.81k, False: 8.76k]
  ------------------
 1938|       |            /* Add missing '_' if needed */
 1939|  1.81k|            if (fieldCount < 2 || (fieldCount < 3 && !script.isEmpty())) {
  ------------------
  |  Branch (1939:17): [True: 1.75k, False: 56]
  |  Branch (1939:36): [True: 49, False: 7]
  |  Branch (1939:54): [True: 9, False: 40]
  ------------------
 1940|  2.67k|                do {
 1941|  2.67k|                    tag.append('_', err);
 1942|  2.67k|                    ++fieldCount;
 1943|  2.67k|                } while(fieldCount<2);
  ------------------
  |  Branch (1943:25): [True: 906, False: 1.76k]
  ------------------
 1944|  1.76k|            }
 1945|       |
 1946|  1.81k|            CharStringByteSink s(&tag);
 1947|  1.81k|            std::string_view sub = tmpLocaleID;
 1948|  1.81k|            sub.remove_prefix(1);
 1949|  1.81k|            _getVariant(sub, '@', &s, !variant.isEmpty(), err);
 1950|  1.81k|            if (U_FAILURE(err)) { return; }
  ------------------
  |  Branch (1950:17): [True: 448, False: 1.36k]
  ------------------
 1951|  1.81k|        }
 1952|       |
 1953|       |        /* Look up the ID in the canonicalization map */
 1954|   450k|        for (j=0; j<UPRV_LENGTHOF(CANONICALIZE_MAP); j++) {
  ------------------
  |  |   99|   450k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1954:19): [True: 409k, False: 40.9k]
  ------------------
 1955|   409k|            StringPiece id(CANONICALIZE_MAP[j].id);
 1956|   409k|            if (tag == id) {
  ------------------
  |  Branch (1956:17): [True: 12, False: 409k]
  ------------------
 1957|     12|                if (id.empty() && !tmpLocaleID.empty()) {
  ------------------
  |  Branch (1957:21): [True: 0, False: 12]
  |  Branch (1957:35): [True: 0, False: 0]
  ------------------
 1958|      0|                    break; /* Don't remap "" if keywords present */
 1959|      0|                }
 1960|     12|                tag.clear();
 1961|     12|                tag.append(CANONICALIZE_MAP[j].canonicalID, err);
 1962|     12|                break;
 1963|     12|            }
 1964|   409k|        }
 1965|  41.0k|    }
 1966|       |
 1967|   966k|    sink.Append(tag.data(), tag.length());
 1968|       |
 1969|   966k|    if (!OPTION_SET(options, _ULOC_STRIP_KEYWORDS)) {
  ------------------
  |  | 1785|   966k|#define _ULOC_STRIP_KEYWORDS 0x2
  ------------------
  |  Branch (1969:9): [True: 210k, False: 756k]
  ------------------
 1970|   210k|        if (!tmpLocaleID.empty() && keywordAssign != std::string_view::npos &&
  ------------------
  |  Branch (1970:13): [True: 31.4k, False: 178k]
  |  Branch (1970:37): [True: 30.1k, False: 1.36k]
  ------------------
 1971|   210k|            (separatorIndicator == std::string_view::npos || separatorIndicator > keywordAssign)) {
  ------------------
  |  Branch (1971:14): [True: 21.5k, False: 8.53k]
  |  Branch (1971:62): [True: 7.93k, False: 593]
  ------------------
 1972|  29.5k|            sink.Append("@", 1);
 1973|  29.5k|            ++fieldCount;
 1974|  29.5k|            tmpLocaleID.remove_prefix(1);
 1975|  29.5k|            ulocimp_getKeywords(tmpLocaleID, '@', sink, true, err);
  ------------------
  |  | 1201|  29.5k|#define ulocimp_getKeywords U_ICU_ENTRY_POINT_RENAME(ulocimp_getKeywords)
  |  |  ------------------
  |  |  |  |  123|  29.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  29.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  29.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1976|  29.5k|        }
 1977|   210k|    }
 1978|   966k|}
uloc.cpp:_ZN12_GLOBAL__N_110OPTION_SETEjj:
 1790|  3.86M|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|   101k|{
 2422|   101k|    return std::all_of(key.begin(), key.end(), UPRV_ISALPHANUM);
 2423|   101k|}
uloc.cpp:_ZN12_GLOBAL__N_122isWellFormedLegacyTypeENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
 2427|  6.01k|{
 2428|  6.01k|    int32_t alphaNumLen = 0;
 2429|  6.01M|    for (char c : legacyType) {
  ------------------
  |  Branch (2429:17): [True: 6.01M, False: 6.01k]
  ------------------
 2430|  6.01M|        if (c == '_' || c == '/' || c == '-') {
  ------------------
  |  Branch (2430:13): [True: 0, False: 6.01M]
  |  Branch (2430:25): [True: 0, False: 6.01M]
  |  Branch (2430:37): [True: 1.97M, False: 4.03M]
  ------------------
 2431|  1.97M|            if (alphaNumLen == 0) {
  ------------------
  |  Branch (2431:17): [True: 0, False: 1.97M]
  ------------------
 2432|      0|                return false;
 2433|      0|            }
 2434|  1.97M|            alphaNumLen = 0;
 2435|  4.03M|        } else if (UPRV_ISALPHANUM(c)) {
  ------------------
  |  Branch (2435:20): [True: 4.03M, False: 0]
  ------------------
 2436|  4.03M|            alphaNumLen++;
 2437|  4.03M|        } else {
 2438|      0|            return false;
 2439|      0|        }
 2440|  6.01M|    }
 2441|  6.01k|    return alphaNumLen != 0;
 2442|  6.01k|}
uloc.cpp:_ZZ23uloc_getKeywordValue_78ENK3$_0clERN6icu_788ByteSinkER10UErrorCode:
  741|   221k|        [&](ByteSink& sink, UErrorCode& status) {
  742|   221k|            ulocimp_getKeywordValue(localeID, keywordName, sink, status);
  ------------------
  |  | 1200|   221k|#define ulocimp_getKeywordValue U_ICU_ENTRY_POINT_RENAME(ulocimp_getKeywordValue)
  |  |  ------------------
  |  |  |  |  123|   221k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   221k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   221k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  743|   221k|        },
uloc.cpp:_ZZ26ulocimp_getKeywordValue_78PKcNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEER10UErrorCodeENK3$_0clERN6icu_788ByteSinkES7_:
  753|   227k|        [&](ByteSink& sink, UErrorCode& status) {
  754|   227k|            ulocimp_getKeywordValue(localeID, keywordName, sink, status);
  ------------------
  |  | 1200|   227k|#define ulocimp_getKeywordValue U_ICU_ENTRY_POINT_RENAME(ulocimp_getKeywordValue)
  |  |  ------------------
  |  |  |  |  123|   227k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   227k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   227k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  755|   227k|        },
uloc.cpp:_ZZ20ulocimp_getRegion_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEER10UErrorCodeENK3$_0clERN6icu_788ByteSinkES5_:
 1477|   102k|        [&](ByteSink& sink, UErrorCode& status) {
 1478|   102k|            ulocimp_getSubtags(
  ------------------
  |  | 1209|   102k|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|   102k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   102k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   102k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1479|   102k|                    localeID,
 1480|   102k|                    nullptr,
 1481|   102k|                    nullptr,
 1482|   102k|                    &sink,
 1483|   102k|                    nullptr,
 1484|   102k|                    nullptr,
 1485|   102k|                    status);
 1486|   102k|        },
uloc.cpp:_ZZ20ulocimp_getParent_78PKcR10UErrorCodeENK3$_0clERN6icu_788ByteSinkES2_:
 2003|   129k|        [&](ByteSink& sink, UErrorCode& status) {
 2004|   129k|            ulocimp_getParent(localeID, sink, status);
  ------------------
  |  | 1205|   129k|#define ulocimp_getParent U_ICU_ENTRY_POINT_RENAME(ulocimp_getParent)
  |  |  ------------------
  |  |  |  |  123|   129k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   129k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   129k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2005|   129k|        },
uloc.cpp:_ZZ18uloc_getCountry_78ENK3$_0clERN6icu_788ByteSinkER10UErrorCode:
 2101|  1.66k|        [&](ByteSink& sink, UErrorCode& status) {
 2102|  1.66k|            ulocimp_getSubtags(
  ------------------
  |  | 1209|  1.66k|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|  1.66k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.66k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.66k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2103|  1.66k|                    localeID,
 2104|  1.66k|                    nullptr,
 2105|  1.66k|                    nullptr,
 2106|  1.66k|                    &sink,
 2107|  1.66k|                    nullptr,
 2108|  1.66k|                    nullptr,
 2109|  1.66k|                    status);
 2110|  1.66k|        },
uloc.cpp:_ZZ18ulocimp_getName_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEER10UErrorCodeENK3$_0clERN6icu_788ByteSinkES5_:
 2161|  53.4k|        [&](ByteSink& sink, UErrorCode& status) {
 2162|  53.4k|            ulocimp_getName(localeID, sink, status);
  ------------------
  |  | 1204|  53.4k|#define ulocimp_getName U_ICU_ENTRY_POINT_RENAME(ulocimp_getName)
  |  |  ------------------
  |  |  |  |  123|  53.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  53.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  53.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2163|  53.4k|        },
uloc.cpp:_ZZ22ulocimp_getBaseName_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEER10UErrorCodeENK3$_0clERN6icu_788ByteSinkES5_:
 2197|   756k|        [&](ByteSink& sink, UErrorCode& status) {
 2198|   756k|            ulocimp_getBaseName(localeID, sink, status);
  ------------------
  |  | 1199|   756k|#define ulocimp_getBaseName U_ICU_ENTRY_POINT_RENAME(ulocimp_getBaseName)
  |  |  ------------------
  |  |  |  |  123|   756k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   756k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   756k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2199|   756k|        },
uloc.cpp:_ZZ23ulocimp_canonicalize_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEER10UErrorCodeENK3$_0clERN6icu_788ByteSinkES5_:
 2233|  40.5k|        [&](ByteSink& sink, UErrorCode& status) {
 2234|  40.5k|            ulocimp_canonicalize(localeID, sink, status);
  ------------------
  |  | 1197|  40.5k|#define ulocimp_canonicalize U_ICU_ENTRY_POINT_RENAME(ulocimp_canonicalize)
  |  |  ------------------
  |  |  |  |  123|  40.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  40.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  40.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2235|  40.5k|        },

_Z22ulocimp_toLegacyKey_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEE:
  462|   112k|ulocimp_toLegacyKey(std::string_view key) {
  463|   112k|    if (!init()) {
  ------------------
  |  Branch (463:9): [True: 0, False: 112k]
  ------------------
  464|      0|        return std::nullopt;
  465|      0|    }
  466|       |
  467|   112k|    LocExtKeyData* keyData = static_cast<LocExtKeyData*>(uhash_get(gLocExtKeyMap, &key));
  ------------------
  |  | 1007|   112k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|   112k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   112k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   112k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  468|   112k|    if (keyData != nullptr) {
  ------------------
  |  Branch (468:9): [True: 10.8k, False: 101k]
  ------------------
  469|  10.8k|        return keyData->legacyId;
  470|  10.8k|    }
  471|       |
  472|   101k|    return std::nullopt;
  473|   112k|}
_Z23ulocimp_toLegacyType_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEES3_:
  509|  7.95k|ulocimp_toLegacyType(std::string_view key, std::string_view type) {
  510|  7.95k|    if (!init()) {
  ------------------
  |  Branch (510:9): [True: 0, False: 7.95k]
  ------------------
  511|      0|        return std::nullopt;
  512|      0|    }
  513|       |
  514|  7.95k|    LocExtKeyData* keyData = static_cast<LocExtKeyData*>(uhash_get(gLocExtKeyMap, &key));
  ------------------
  |  | 1007|  7.95k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  7.95k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.95k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.95k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  515|  7.95k|    if (keyData != nullptr) {
  ------------------
  |  Branch (515:9): [True: 5.78k, False: 2.17k]
  ------------------
  516|  5.78k|        LocExtType* t = static_cast<LocExtType*>(uhash_get(keyData->typeMap.getAlias(), &type));
  ------------------
  |  | 1007|  5.78k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  5.78k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.78k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.78k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  517|  5.78k|        if (t != nullptr) {
  ------------------
  |  Branch (517:13): [True: 1.41k, False: 4.37k]
  ------------------
  518|  1.41k|            return t->legacyId;
  519|  1.41k|        }
  520|  4.37k|        if (keyData->specialTypes != SPECIALTYPE_NONE) {
  ------------------
  |  Branch (520:13): [True: 3.19k, False: 1.17k]
  ------------------
  521|  3.19k|            bool matched = false;
  522|  3.19k|            if (keyData->specialTypes & SPECIALTYPE_CODEPOINTS) {
  ------------------
  |  Branch (522:17): [True: 1.78k, False: 1.41k]
  ------------------
  523|  1.78k|                matched = isSpecialTypeCodepoints(type);
  524|  1.78k|            }
  525|  3.19k|            if (!matched && keyData->specialTypes & SPECIALTYPE_REORDER_CODE) {
  ------------------
  |  Branch (525:17): [True: 2.93k, False: 260]
  |  Branch (525:29): [True: 586, False: 2.35k]
  ------------------
  526|    586|                matched = isSpecialTypeReorderCode(type);
  527|    586|            }
  528|  3.19k|            if (!matched && keyData->specialTypes & SPECIALTYPE_RG_KEY_VALUE) {
  ------------------
  |  Branch (528:17): [True: 2.66k, False: 530]
  |  Branch (528:29): [True: 832, False: 1.83k]
  ------------------
  529|    832|                matched = isSpecialTypeRgKeyValue(type);
  530|    832|            }
  531|  3.19k|            if (matched) {
  ------------------
  |  Branch (531:17): [True: 532, False: 2.66k]
  ------------------
  532|    532|                return type;
  533|    532|            }
  534|  3.19k|        }
  535|  4.37k|    }
  536|       |
  537|  6.01k|    return std::nullopt;
  538|  7.95k|}
uloc_keytype.cpp:_ZN12_GLOBAL__N_14initEv:
  384|   120k|init() {
  385|   120k|    UErrorCode sts = U_ZERO_ERROR;
  386|   120k|    umtx_initOnce(gLocExtKeyMapInitOnce, &initFromResourceBundle, sts);
  387|   120k|    if (U_FAILURE(sts)) {
  ------------------
  |  Branch (387:9): [True: 0, False: 120k]
  ------------------
  388|      0|        return false;
  389|      0|    }
  390|   120k|    return true;
  391|   120k|}
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.78k|isSpecialTypeCodepoints(std::string_view val) {
  395|  1.78k|    int32_t subtagLen = 0;
  396|  7.18k|    for (char c : val) {
  ------------------
  |  Branch (396:17): [True: 7.18k, False: 671]
  ------------------
  397|  7.18k|        if (c == '-') {
  ------------------
  |  Branch (397:13): [True: 720, False: 6.46k]
  ------------------
  398|    720|            if (subtagLen < 4 || subtagLen > 6) {
  ------------------
  |  Branch (398:17): [True: 231, False: 489]
  |  Branch (398:34): [True: 283, False: 206]
  ------------------
  399|    514|                return false;
  400|    514|            }
  401|    206|            subtagLen = 0;
  402|  6.46k|        } else if ((c >= '0' && c <= '9') ||
  ------------------
  |  Branch (402:21): [True: 6.46k, False: 0]
  |  Branch (402:33): [True: 4.53k, False: 1.92k]
  ------------------
  403|  6.46k|                    (c >= 'A' && c <= 'F') || // A-F/a-f are contiguous
  ------------------
  |  Branch (403:22): [True: 1.92k, False: 0]
  |  Branch (403:34): [True: 0, False: 1.92k]
  ------------------
  404|  6.46k|                    (c >= 'a' && c <= 'f')) { // also in EBCDIC
  ------------------
  |  Branch (404:22): [True: 1.92k, False: 0]
  |  Branch (404:34): [True: 1.33k, False: 595]
  ------------------
  405|  5.87k|            subtagLen++;
  406|  5.87k|        } else {
  407|    595|            return false;
  408|    595|        }
  409|  7.18k|    }
  410|    671|    return subtagLen >= 4 && subtagLen <= 6;
  ------------------
  |  Branch (410:12): [True: 268, False: 403]
  |  Branch (410:30): [True: 260, False: 8]
  ------------------
  411|  1.78k|}
uloc_keytype.cpp:_ZN12_GLOBAL__N_124isSpecialTypeReorderCodeENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  414|    586|isSpecialTypeReorderCode(std::string_view val) {
  415|    586|    int32_t subtagLen = 0;
  416|  2.49k|    for (char c : val) {
  ------------------
  |  Branch (416:17): [True: 2.49k, False: 270]
  ------------------
  417|  2.49k|        if (c == '-') {
  ------------------
  |  Branch (417:13): [True: 220, False: 2.27k]
  ------------------
  418|    220|            if (subtagLen < 3 || subtagLen > 8) {
  ------------------
  |  Branch (418:17): [True: 0, False: 220]
  |  Branch (418:34): [True: 0, False: 220]
  ------------------
  419|      0|                return false;
  420|      0|            }
  421|    220|            subtagLen = 0;
  422|  2.27k|        } else if (uprv_isASCIILetter(c)) {
  ------------------
  |  | 1514|  2.27k|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|  2.27k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.27k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.27k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (422:20): [True: 1.95k, False: 316]
  ------------------
  423|  1.95k|            subtagLen++;
  424|  1.95k|        } else {
  425|    316|            return false;
  426|    316|        }
  427|  2.49k|    }
  428|    270|    return subtagLen >= 3 && subtagLen <= 8;
  ------------------
  |  Branch (428:12): [True: 270, False: 0]
  |  Branch (428:30): [True: 270, False: 0]
  ------------------
  429|    586|}
uloc_keytype.cpp:_ZN12_GLOBAL__N_123isSpecialTypeRgKeyValueENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  432|    832|isSpecialTypeRgKeyValue(std::string_view val) {
  433|    832|    int32_t subtagLen = 0;
  434|  2.23k|    for (char c : val) {
  ------------------
  |  Branch (434:17): [True: 2.23k, False: 204]
  ------------------
  435|  2.23k|        if ((subtagLen < 2 && uprv_isASCIILetter(c)) ||
  ------------------
  |  | 1514|  1.52k|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|  1.52k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.52k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.52k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (435:14): [True: 1.52k, False: 707]
  |  Branch (435:31): [True: 1.30k, False: 221]
  ------------------
  436|  2.23k|            (subtagLen >= 2 && (c == 'Z' || c == 'z'))) {
  ------------------
  |  Branch (436:14): [True: 707, False: 221]
  |  Branch (436:33): [True: 0, False: 707]
  |  Branch (436:45): [True: 300, False: 407]
  ------------------
  437|  1.60k|            subtagLen++;
  438|  1.60k|        } else {
  439|    628|            return false;
  440|    628|        }
  441|  2.23k|    }
  442|    204|    return subtagLen == 6;
  443|    832|}

_Z25ultag_isLanguageSubtag_78PKci:
  431|  93.8k|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|  93.8k|    if (len < 0) {
  ------------------
  |  Branch (437:9): [True: 0, False: 93.8k]
  ------------------
  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|  93.8k|    if (len >= 2 && len <= 8 && _isAlphaString(s, len)) {
  ------------------
  |  Branch (440:9): [True: 78.2k, False: 15.5k]
  |  Branch (440:21): [True: 45.3k, False: 32.9k]
  |  Branch (440:33): [True: 26.2k, False: 19.1k]
  ------------------
  441|  26.2k|        return true;
  442|  26.2k|    }
  443|  67.6k|    return false;
  444|  93.8k|}
_Z23ultag_isScriptSubtag_78PKci:
  466|  26.1k|ultag_isScriptSubtag(const char* s, int32_t len) {
  467|       |    /*
  468|       |     * script        = 4ALPHA              ; ISO 15924 code
  469|       |     */
  470|  26.1k|    if (len < 0) {
  ------------------
  |  Branch (470:9): [True: 0, False: 26.1k]
  ------------------
  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|  26.1k|    if (len == 4 && _isAlphaString(s, len)) {
  ------------------
  |  Branch (473:9): [True: 2.63k, False: 23.5k]
  |  Branch (473:21): [True: 1.96k, False: 670]
  ------------------
  474|  1.96k|        return true;
  475|  1.96k|    }
  476|  24.1k|    return false;
  477|  26.1k|}
_Z23ultag_isRegionSubtag_78PKci:
  480|  26.1k|ultag_isRegionSubtag(const char* s, int32_t len) {
  481|       |    /*
  482|       |     * region        = 2ALPHA              ; ISO 3166-1 code
  483|       |     *               / 3DIGIT              ; UN M.49 code
  484|       |     */
  485|  26.1k|    if (len < 0) {
  ------------------
  |  Branch (485:9): [True: 0, False: 26.1k]
  ------------------
  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|  26.1k|    if (len == 2 && _isAlphaString(s, len)) {
  ------------------
  |  Branch (488:9): [True: 16.6k, False: 9.52k]
  |  Branch (488:21): [True: 15.0k, False: 1.56k]
  ------------------
  489|  15.0k|        return true;
  490|  15.0k|    }
  491|  11.0k|    if (len == 3 && _isNumericString(s, len)) {
  ------------------
  |  Branch (491:9): [True: 1.02k, False: 10.0k]
  |  Branch (491:21): [True: 490, False: 530]
  ------------------
  492|    490|        return true;
  493|    490|    }
  494|  10.6k|    return false;
  495|  11.0k|}
_Z27ultag_isUnicodeLocaleKey_78PKci:
  631|  3.93M|ultag_isUnicodeLocaleKey(const char* s, int32_t len) {
  632|       |    /*
  633|       |     * key = alphanum alpha ;
  634|       |     */
  635|  3.93M|    if (len < 0) {
  ------------------
  |  Branch (635:9): [True: 0, False: 3.93M]
  ------------------
  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|  3.93M|    if (len == 2 && (ISALPHA(*s) || ISNUMERIC(*s)) && ISALPHA(s[1])) {
  ------------------
  |  Branch (638:9): [True: 3.88M, False: 48.9k]
  |  Branch (638:22): [True: 2.60M, False: 1.28M]
  |  Branch (638:37): [True: 1.28M, False: 0]
  |  Branch (638:55): [True: 123k, False: 3.75M]
  ------------------
  639|   123k|        return true;
  640|   123k|    }
  641|  3.80M|    return false;
  642|  3.93M|}
_Z25ulocimp_forLanguageTag_78PKciPiR10UErrorCode:
 2675|   111k|                       UErrorCode& status) {
 2676|   111k|    return icu::ByteSinkUtil::viaByteSinkToCharString(
 2677|   111k|        [&](icu::ByteSink& sink, UErrorCode& status) {
 2678|   111k|            ulocimp_forLanguageTag(langtag, tagLen, sink, parsedLength, status);
 2679|   111k|        },
 2680|   111k|        status);
 2681|   111k|}
_Z25ulocimp_forLanguageTag_78PKciRN6icu_788ByteSinkEPiR10UErrorCode:
 2688|   111k|                       UErrorCode& status) {
 2689|   111k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (2689:9): [True: 0, False: 111k]
  ------------------
 2690|       |
 2691|   111k|    bool isEmpty = true;
 2692|   111k|    const char *subtag, *p;
 2693|   111k|    int32_t len;
 2694|   111k|    int32_t i, n;
 2695|   111k|    bool noRegion = true;
 2696|       |
 2697|   111k|    icu::LocalULanguageTagPointer lt(ultag_parse(langtag, tagLen, parsedLength, status));
 2698|   111k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2698:9): [True: 0, False: 111k]
  ------------------
 2699|      0|        return;
 2700|      0|    }
 2701|       |
 2702|       |    /* language */
 2703|   111k|    subtag = ultag_getExtlangSize(lt.getAlias()) > 0 ? ultag_getExtlang(lt.getAlias(), 0) : ultag_getLanguage(lt.getAlias());
  ------------------
  |  Branch (2703:14): [True: 3.10k, False: 108k]
  ------------------
 2704|   111k|    if (uprv_compareInvCharsAsAscii(subtag, LANG_UND) != 0) {
  ------------------
  |  |  153|   111k|#   define uprv_compareInvCharsAsAscii(s1, s2) uprv_strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |   38|   111k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  |  |  ------------------
  |  |  |  |  |  |  393|   111k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2704:9): [True: 109k, False: 1.88k]
  ------------------
 2705|   109k|        len = static_cast<int32_t>(uprv_strlen(subtag));
  ------------------
  |  |   37|   109k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|   109k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2706|   109k|        if (len > 0) {
  ------------------
  |  Branch (2706:13): [True: 24.3k, False: 85.0k]
  ------------------
 2707|  24.3k|            sink.Append(subtag, len);
 2708|  24.3k|            isEmpty = false;
 2709|  24.3k|        }
 2710|   109k|    }
 2711|       |
 2712|       |    /* script */
 2713|   111k|    subtag = ultag_getScript(lt.getAlias());
 2714|   111k|    len = static_cast<int32_t>(uprv_strlen(subtag));
  ------------------
  |  |   37|   111k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|   111k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2715|   111k|    if (len > 0) {
  ------------------
  |  Branch (2715:9): [True: 1.96k, False: 109k]
  ------------------
 2716|  1.96k|        sink.Append("_", 1);
 2717|  1.96k|        isEmpty = false;
 2718|       |
 2719|       |        /* write out the script in title case */
 2720|  1.96k|        char c = uprv_toupper(*subtag);
  ------------------
  |  | 1547|  1.96k|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|  1.96k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.96k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.96k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2721|  1.96k|        sink.Append(&c, 1);
 2722|  1.96k|        sink.Append(subtag + 1, len - 1);
 2723|  1.96k|    }
 2724|       |
 2725|       |    /* region */
 2726|   111k|    subtag = ultag_getRegion(lt.getAlias());
 2727|   111k|    len = static_cast<int32_t>(uprv_strlen(subtag));
  ------------------
  |  |   37|   111k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|   111k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2728|   111k|    if (len > 0) {
  ------------------
  |  Branch (2728:9): [True: 15.5k, False: 95.6k]
  ------------------
 2729|  15.5k|        sink.Append("_", 1);
 2730|  15.5k|        isEmpty = false;
 2731|       |
 2732|       |        /* write out the region in upper case */
 2733|  15.5k|        p = subtag;
 2734|  47.0k|        while (*p) {
  ------------------
  |  Branch (2734:16): [True: 31.5k, False: 15.5k]
  ------------------
 2735|  31.5k|            char c = uprv_toupper(*p);
  ------------------
  |  | 1547|  31.5k|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|  31.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  31.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  31.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2736|  31.5k|            sink.Append(&c, 1);
 2737|  31.5k|            p++;
 2738|  31.5k|        }
 2739|  15.5k|        noRegion = false;
 2740|  15.5k|    }
 2741|       |
 2742|       |    /* variants */
 2743|   111k|    _sortVariants(lt.getAlias()->variants);
 2744|   111k|    n = ultag_getVariantsSize(lt.getAlias());
 2745|   111k|    if (n > 0) {
  ------------------
  |  Branch (2745:9): [True: 2.22k, False: 109k]
  ------------------
 2746|  2.22k|        if (noRegion) {
  ------------------
  |  Branch (2746:13): [True: 1.43k, False: 791]
  ------------------
 2747|  1.43k|            sink.Append("_", 1);
 2748|  1.43k|            isEmpty = false;
 2749|  1.43k|        }
 2750|       |
 2751|  6.14k|        for (i = 0; i < n; i++) {
  ------------------
  |  Branch (2751:21): [True: 3.91k, False: 2.22k]
  ------------------
 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.8k|            while (*p) {
  ------------------
  |  Branch (2757:20): [True: 12.9k, False: 3.91k]
  ------------------
 2758|  12.9k|                char c = uprv_toupper(*p);
  ------------------
  |  | 1547|  12.9k|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|  12.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2759|  12.9k|                sink.Append(&c, 1);
 2760|  12.9k|                p++;
 2761|  12.9k|            }
 2762|  3.91k|        }
 2763|  2.22k|    }
 2764|       |
 2765|       |    /* keywords */
 2766|   111k|    n = ultag_getExtensionsSize(lt.getAlias());
 2767|   111k|    subtag = ultag_getPrivateUse(lt.getAlias());
 2768|   111k|    if (n > 0 || uprv_strlen(subtag) > 0) {
  ------------------
  |  |   37|  95.9k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  95.9k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (2768:9): [True: 15.2k, False: 95.9k]
  |  Branch (2768:18): [True: 1.16k, False: 94.8k]
  ------------------
 2769|  16.4k|        if (isEmpty && n > 0) {
  ------------------
  |  Branch (2769:13): [True: 1.09k, False: 15.3k]
  |  Branch (2769:24): [True: 635, False: 459]
  ------------------
 2770|       |            /* need a language */
 2771|    635|            sink.Append(LANG_UND, LANG_UND_LEN);
  ------------------
  |  |   87|    635|#define LANG_UND_LEN 3
  ------------------
 2772|    635|        }
 2773|  16.4k|        _appendKeywords(lt.getAlias(), sink, status);
 2774|  16.4k|    }
 2775|   111k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_114_isAlphaStringEPKci:
  385|  69.1k|_isAlphaString(const char* s, int32_t len) {
  386|  69.1k|    int32_t i;
  387|   183k|    for (i = 0; i < len; i++) {
  ------------------
  |  Branch (387:17): [True: 136k, False: 46.8k]
  ------------------
  388|   136k|        if (!ISALPHA(*(s + i))) {
  ------------------
  |  Branch (388:13): [True: 22.3k, False: 114k]
  ------------------
  389|  22.3k|            return false;
  390|  22.3k|        }
  391|   136k|    }
  392|  46.8k|    return true;
  393|  69.1k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_116_isNumericStringEPKci:
  396|  1.02k|_isNumericString(const char* s, int32_t len) {
  397|  1.02k|    int32_t i;
  398|  2.60k|    for (i = 0; i < len; i++) {
  ------------------
  |  Branch (398:17): [True: 2.11k, False: 490]
  ------------------
  399|  2.11k|        if (!ISNUMERIC(*(s + i))) {
  ------------------
  |  Branch (399:13): [True: 530, False: 1.58k]
  ------------------
  400|    530|            return false;
  401|    530|        }
  402|  2.11k|    }
  403|    490|    return true;
  404|  1.02k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_116_isVariantSubtagEPKci:
  500|  31.6k|_isVariantSubtag(const char* s, int32_t len) {
  501|       |    /*
  502|       |     * variant       = 5*8alphanum         ; registered variants
  503|       |     *               / (DIGIT 3alphanum)
  504|       |     */
  505|  31.6k|    if (len < 0) {
  ------------------
  |  Branch (505:9): [True: 0, False: 31.6k]
  ------------------
  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|  31.6k|    if (_isAlphaNumericStringLimitedLength(s, len, 5, 8)) {
  ------------------
  |  Branch (508:9): [True: 1.54k, False: 30.1k]
  ------------------
  509|  1.54k|        return true;
  510|  1.54k|    }
  511|  30.1k|    if (len == 4 && ISNUMERIC(*s) && _isAlphaNumericString(s + 1, 3)) {
  ------------------
  |  Branch (511:9): [True: 1.65k, False: 28.4k]
  |  Branch (511:21): [True: 1.04k, False: 611]
  |  Branch (511:38): [True: 738, False: 306]
  ------------------
  512|    738|        return true;
  513|    738|    }
  514|  29.4k|    return false;
  515|  30.1k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_121_isAlphaNumericStringEPKci:
  407|  6.18M|_isAlphaNumericString(const char* s, int32_t len) {
  408|  6.18M|    int32_t i;
  409|  18.6M|    for (i = 0; i < len; i++) {
  ------------------
  |  Branch (409:17): [True: 12.4M, False: 6.17M]
  ------------------
  410|  12.4M|        if (!ISALPHA(*(s + i)) && !ISNUMERIC(*(s + i))) {
  ------------------
  |  Branch (410:13): [True: 8.12M, False: 4.34M]
  |  Branch (410:35): [True: 4.83k, False: 8.11M]
  ------------------
  411|  4.83k|            return false;
  412|  4.83k|        }
  413|  12.4M|    }
  414|  6.17M|    return true;
  415|  6.18M|}
uloc_tag.cpp:_ZN12_GLOBAL__N_118_isExtensionSubtagEPKci:
  586|  5.04M|_isExtensionSubtag(const char* s, int32_t len) {
  587|       |    /*
  588|       |     * extension     = singleton 1*("-" (2*8alphanum))
  589|       |     */
  590|  5.04M|    return _isAlphaNumericStringLimitedLength(s, len, 2, 8);
  591|  5.04M|}
uloc_tag.cpp:_ZN12_GLOBAL__N_124_isPrivateuseValueSubtagEPKci:
  603|  1.14M|_isPrivateuseValueSubtag(const char* s, int32_t len) {
  604|       |    /*
  605|       |     * privateuse    = "x" 1*("-" (1*8alphanum))
  606|       |     */
  607|  1.14M|    return _isAlphaNumericStringLimitedLength(s, len, 1, 8);
  608|  1.14M|}
uloc_tag.cpp:_ZN12_GLOBAL__N_134_isAlphaNumericStringLimitedLengthEPKciii:
  418|  6.22M|_isAlphaNumericStringLimitedLength(const char* s, int32_t len, int32_t min, int32_t max) {
  419|  6.22M|    if (len < 0) {
  ------------------
  |  Branch (419:9): [True: 0, False: 6.22M]
  ------------------
  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|  6.22M|    if (len >= min && len <= max && _isAlphaNumericString(s, len)) {
  ------------------
  |  Branch (422:9): [True: 6.18M, False: 39.3k]
  |  Branch (422:23): [True: 6.18M, False: 2.53k]
  |  Branch (422:37): [True: 6.17M, False: 4.53k]
  ------------------
  423|  6.17M|        return true;
  424|  6.17M|    }
  425|  46.4k|    return false;
  426|  6.22M|}
uloc_tag.cpp:_ZN12_GLOBAL__N_19ISNUMERICEc:
   75|  9.41M|inline bool ISNUMERIC(char c) { return c >= '0' && c <= '9'; }
  ------------------
  |  Branch (75:40): [True: 9.40M, False: 5.16k]
  |  Branch (75:52): [True: 9.40M, False: 2.14k]
  ------------------
uloc_tag.cpp:_ZN12_GLOBAL__N_117_addVariantToListEPPNS_16VariantListEntryEN6icu_7812LocalPointerIS0_EE:
  872|  4.32k|_addVariantToList(VariantListEntry **first, icu::LocalPointer<VariantListEntry> var) {
  873|  4.32k|    if (*first == nullptr) {
  ------------------
  |  Branch (873:9): [True: 2.22k, False: 2.10k]
  ------------------
  874|  2.22k|        var->next = nullptr;
  875|  2.22k|        *first = var.orphan();
  876|  2.22k|    } else {
  877|  2.10k|        VariantListEntry *prev, *cur;
  878|  2.10k|        int32_t cmp;
  879|       |
  880|       |        /* variants order should be preserved */
  881|  2.10k|        prev = nullptr;
  882|  2.10k|        cur = *first;
  883|  4.77k|        while (true) {
  ------------------
  |  Branch (883:16): [Folded - Ignored]
  ------------------
  884|  4.77k|            if (cur == nullptr) {
  ------------------
  |  Branch (884:17): [True: 1.69k, False: 3.08k]
  ------------------
  885|  1.69k|                var->next = nullptr;
  886|  1.69k|                prev->next = var.orphan();
  887|  1.69k|                break;
  888|  1.69k|            }
  889|       |
  890|       |            /* Checking for duplicate variant */
  891|  3.08k|            cmp = uprv_compareInvCharsAsAscii(var->variant, cur->variant);
  ------------------
  |  |  153|  3.08k|#   define uprv_compareInvCharsAsAscii(s1, s2) uprv_strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |   38|  3.08k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  |  |  ------------------
  |  |  |  |  |  |  393|  3.08k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  892|  3.08k|            if (cmp == 0) {
  ------------------
  |  Branch (892:17): [True: 409, False: 2.67k]
  ------------------
  893|       |                /* duplicated variant */
  894|    409|                return false;
  895|    409|            }
  896|  2.67k|            prev = cur;
  897|  2.67k|            cur = cur->next;
  898|  2.67k|        }
  899|  2.10k|    }
  900|       |
  901|  3.91k|    return true;
  902|  4.32k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_119_addAttributeToListEPPNS_18AttributeListEntryES1_:
  905|  1.81M|_addAttributeToList(AttributeListEntry **first, AttributeListEntry *attr) {
  906|  1.81M|    bool bAdded = true;
  907|       |
  908|  1.81M|    if (*first == nullptr) {
  ------------------
  |  Branch (908:9): [True: 2.57k, False: 1.81M]
  ------------------
  909|  2.57k|        attr->next = nullptr;
  910|  2.57k|        *first = attr;
  911|  1.81M|    } else {
  912|  1.81M|        AttributeListEntry *prev, *cur;
  913|  1.81M|        int32_t cmp;
  914|       |
  915|       |        /* reorder variants in alphabetical order */
  916|  1.81M|        prev = nullptr;
  917|  1.81M|        cur = *first;
  918|  14.9M|        while (true) {
  ------------------
  |  Branch (918:16): [Folded - Ignored]
  ------------------
  919|  14.9M|            if (cur == nullptr) {
  ------------------
  |  Branch (919:17): [True: 1.66k, False: 14.9M]
  ------------------
  920|  1.66k|                prev->next = attr;
  921|  1.66k|                attr->next = nullptr;
  922|  1.66k|                break;
  923|  1.66k|            }
  924|  14.9M|            cmp = uprv_compareInvCharsAsAscii(attr->attribute, cur->attribute);
  ------------------
  |  |  153|  14.9M|#   define uprv_compareInvCharsAsAscii(s1, s2) uprv_strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |   38|  14.9M|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  |  |  ------------------
  |  |  |  |  |  |  393|  14.9M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  925|  14.9M|            if (cmp < 0) {
  ------------------
  |  Branch (925:17): [True: 2.71k, False: 14.8M]
  ------------------
  926|  2.71k|                if (prev == nullptr) {
  ------------------
  |  Branch (926:21): [True: 894, False: 1.81k]
  ------------------
  927|    894|                    *first = attr;
  928|  1.81k|                } else {
  929|  1.81k|                    prev->next = attr;
  930|  1.81k|                }
  931|  2.71k|                attr->next = cur;
  932|  2.71k|                break;
  933|  2.71k|            }
  934|  14.8M|            if (cmp == 0) {
  ------------------
  |  Branch (934:17): [True: 1.81M, False: 13.0M]
  ------------------
  935|       |                /* duplicated variant */
  936|  1.81M|                bAdded = false;
  937|  1.81M|                break;
  938|  1.81M|            }
  939|  13.0M|            prev = cur;
  940|  13.0M|            cur = cur->next;
  941|  13.0M|        }
  942|  1.81M|    }
  943|       |
  944|  1.81M|    return bAdded;
  945|  1.81M|}
uloc_tag.cpp:_ZN12_GLOBAL__N_121_isExtensionSingletonEPKci:
  566|  5.05M|_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|  5.05M|    if (len < 0) {
  ------------------
  |  Branch (576:9): [True: 0, False: 5.05M]
  ------------------
  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|  5.05M|    if (len == 1 && (ISALPHA(*s) || ISNUMERIC(*s)) && (uprv_tolower(*s) != PRIVATEUSE)) {
  ------------------
  |  |   68|  27.1k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  27.1k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  27.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  27.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  27.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  if (len == 1 && (ISALPHA(*s) || ISNUMERIC(*s)) && (uprv_tolower(*s) != PRIVATEUSE)) {
  ------------------
  |  |   66|  27.1k|#define PRIVATEUSE 'x'
  ------------------
  |  Branch (579:9): [True: 28.4k, False: 5.02M]
  |  Branch (579:22): [True: 25.8k, False: 2.62k]
  |  Branch (579:37): [True: 1.29k, False: 1.32k]
  |  Branch (579:55): [True: 24.5k, False: 2.58k]
  ------------------
  580|  24.5k|        return true;
  581|  24.5k|    }
  582|  5.02M|    return false;
  583|  5.05M|}
uloc_tag.cpp:_ZN12_GLOBAL__N_119_addExtensionToListEPPNS_18ExtensionListEntryES1_b:
  948|   202k|_addExtensionToList(ExtensionListEntry **first, ExtensionListEntry *ext, bool localeToBCP) {
  949|   202k|    bool bAdded = true;
  950|       |
  951|   202k|    if (*first == nullptr) {
  ------------------
  |  Branch (951:9): [True: 43.9k, False: 159k]
  ------------------
  952|  43.9k|        ext->next = nullptr;
  953|  43.9k|        *first = ext;
  954|   159k|    } else {
  955|   159k|        ExtensionListEntry *prev, *cur;
  956|   159k|        int32_t cmp;
  957|       |
  958|       |        /* reorder variants in alphabetical order */
  959|   159k|        prev = nullptr;
  960|   159k|        cur = *first;
  961|  1.54M|        while (true) {
  ------------------
  |  Branch (961:16): [Folded - Ignored]
  ------------------
  962|  1.54M|            if (cur == nullptr) {
  ------------------
  |  Branch (962:17): [True: 52.8k, False: 1.49M]
  ------------------
  963|  52.8k|                prev->next = ext;
  964|  52.8k|                ext->next = nullptr;
  965|  52.8k|                break;
  966|  52.8k|            }
  967|  1.49M|            if (localeToBCP) {
  ------------------
  |  Branch (967:17): [True: 0, False: 1.49M]
  ------------------
  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|  1.49M|            } else {
 1000|  1.49M|                cmp = uprv_compareInvCharsAsAscii(ext->key, cur->key);
  ------------------
  |  |  153|  1.49M|#   define uprv_compareInvCharsAsAscii(s1, s2) uprv_strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |   38|  1.49M|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  |  |  ------------------
  |  |  |  |  |  |  393|  1.49M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1001|  1.49M|            }
 1002|  1.49M|            if (cmp < 0) {
  ------------------
  |  Branch (1002:17): [True: 51.8k, False: 1.43M]
  ------------------
 1003|  51.8k|                if (prev == nullptr) {
  ------------------
  |  Branch (1003:21): [True: 12.8k, False: 38.9k]
  ------------------
 1004|  12.8k|                    *first = ext;
 1005|  38.9k|                } else {
 1006|  38.9k|                    prev->next = ext;
 1007|  38.9k|                }
 1008|  51.8k|                ext->next = cur;
 1009|  51.8k|                break;
 1010|  51.8k|            }
 1011|  1.43M|            if (cmp == 0) {
  ------------------
  |  Branch (1011:17): [True: 54.4k, False: 1.38M]
  ------------------
 1012|       |                /* duplicated extension key */
 1013|  54.4k|                bAdded = false;
 1014|  54.4k|                break;
 1015|  54.4k|            }
 1016|  1.38M|            prev = cur;
 1017|  1.38M|            cur = cur->next;
 1018|  1.38M|        }
 1019|   159k|    }
 1020|       |
 1021|   202k|    return bAdded;
 1022|   202k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_111ultag_parseEPKciPiR10UErrorCode:
 1979|   111k|ultag_parse(const char* tag, int32_t tagLen, int32_t* parsedLen, UErrorCode& status) {
 1980|   111k|    if (U_FAILURE(status)) { return nullptr; }
  ------------------
  |  Branch (1980:9): [True: 0, False: 111k]
  ------------------
 1981|       |
 1982|   111k|    char *tagBuf;
 1983|   111k|    int16_t next;
 1984|   111k|    char *pSubtag, *pNext, *pLastGoodPosition;
 1985|   111k|    int32_t subtagLen;
 1986|   111k|    int32_t extlangIdx;
 1987|   111k|    icu::LocalPointer<ExtensionListEntry> pExtension;
 1988|   111k|    char *pExtValueSubtag, *pExtValueSubtagEnd;
 1989|   111k|    int32_t i;
 1990|   111k|    bool privateuseVar = false;
 1991|   111k|    int32_t legacyLen = 0;
 1992|       |
 1993|   111k|    if (parsedLen != nullptr) {
  ------------------
  |  Branch (1993:9): [True: 0, False: 111k]
  ------------------
 1994|      0|        *parsedLen = 0;
 1995|      0|    }
 1996|       |
 1997|   111k|    if (tagLen < 0) {
  ------------------
  |  Branch (1997:9): [True: 29.3k, False: 81.9k]
  ------------------
 1998|  29.3k|        tagLen = static_cast<int32_t>(uprv_strlen(tag));
  ------------------
  |  |   37|  29.3k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  29.3k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1999|  29.3k|    }
 2000|       |
 2001|       |    /* copy the entire string */
 2002|   111k|    tagBuf = static_cast<char*>(uprv_malloc(tagLen + 1));
  ------------------
  |  | 1524|   111k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|   111k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   111k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   111k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2003|   111k|    if (tagBuf == nullptr) {
  ------------------
  |  Branch (2003:9): [True: 0, False: 111k]
  ------------------
 2004|      0|        status = U_MEMORY_ALLOCATION_ERROR;
 2005|      0|        return nullptr;
 2006|      0|    }
 2007|       |    
 2008|   111k|    if (tagLen > 0) {
  ------------------
  |  Branch (2008:9): [True: 111k, False: 0]
  ------------------
 2009|   111k|        uprv_memcpy(tagBuf, tag, tagLen);
  ------------------
  |  |   42|   111k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   111k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|   111k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|   111k|    _Pragma("clang diagnostic push") \
  |  |   45|   111k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|   111k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|   111k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|   111k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|   111k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|   111k|    _Pragma("clang diagnostic pop") \
  |  |   49|   111k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|   111k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|   111k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   111k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2010|   111k|    }
 2011|   111k|    *(tagBuf + tagLen) = 0;
 2012|       |
 2013|       |    /* create a ULanguageTag */
 2014|   111k|    icu::LocalULanguageTagPointer t(
 2015|   111k|            static_cast<ULanguageTag*>(uprv_malloc(sizeof(ULanguageTag))));
  ------------------
  |  | 1524|   111k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|   111k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   111k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   111k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2016|   111k|    if (t.isNull()) {
  ------------------
  |  Branch (2016:9): [True: 0, False: 111k]
  ------------------
 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|   111k|    _initializeULanguageTag(t.getAlias());
 2022|   111k|    t->buf = tagBuf;
 2023|       |
 2024|   111k|    if (tagLen < MINLEN) {
  ------------------
  |  |   64|   111k|#define MINLEN 2
  ------------------
  |  Branch (2024:9): [True: 17.3k, False: 93.8k]
  ------------------
 2025|       |        /* the input tag is too short - return empty ULanguageTag */
 2026|  17.3k|        return t.orphan();
 2027|  17.3k|    }
 2028|       |
 2029|  93.8k|    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|  2.43M|    for (i = 0; i < UPRV_LENGTHOF(LEGACY); i += 2) {
  ------------------
  |  |   99|  2.43M|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (2034:17): [True: 2.34M, False: 92.8k]
  ------------------
 2035|  2.34M|        int32_t checkLegacyLen = static_cast<int32_t>(uprv_strlen(LEGACY[i]));
  ------------------
  |  |   37|  2.34M|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  2.34M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2036|  2.34M|        if (tagLen < checkLegacyLen) {
  ------------------
  |  Branch (2036:13): [True: 352k, False: 1.98M]
  ------------------
 2037|   352k|            continue;
 2038|   352k|        }
 2039|  1.98M|        if (tagLen > checkLegacyLen && tagBuf[checkLegacyLen] != '-') {
  ------------------
  |  Branch (2039:13): [True: 1.88M, False: 101k]
  |  Branch (2039:40): [True: 1.46M, False: 420k]
  ------------------
 2040|       |            // make sure next char is '-'.
 2041|  1.46M|            continue;
 2042|  1.46M|        }
 2043|   521k|        if (uprv_strnicmp(LEGACY[i], tagBuf, checkLegacyLen) == 0) {
  ------------------
  |  | 1544|   521k|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  123|   521k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   521k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   521k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2043:13): [True: 967, False: 520k]
  ------------------
 2044|    967|            int32_t newTagLength;
 2045|       |
 2046|    967|            legacyLen = checkLegacyLen;  /* back up for output parsedLen */
 2047|    967|            int32_t replacementLen = static_cast<int32_t>(uprv_strlen(LEGACY[i+1]));
  ------------------
  |  |   37|    967|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    967|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2048|    967|            newTagLength = replacementLen + tagLen - checkLegacyLen;
 2049|    967|            int32_t oldTagLength = tagLen;
 2050|    967|            if (tagLen < newTagLength) {
  ------------------
  |  Branch (2050:17): [True: 448, False: 519]
  ------------------
 2051|    448|                uprv_free(tagBuf);
  ------------------
  |  | 1503|    448|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    448|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    448|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    448|#       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|    448|                t->buf = tagBuf = static_cast<char*>(uprv_malloc(newTagLength + 1));
  ------------------
  |  | 1524|    448|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    448|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    448|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    448|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2055|    448|                if (tagBuf == nullptr) {
  ------------------
  |  Branch (2055:21): [True: 0, False: 448]
  ------------------
 2056|      0|                    status = U_MEMORY_ALLOCATION_ERROR;
 2057|      0|                    return nullptr;
 2058|      0|                }
 2059|    448|                tagLen = newTagLength;
 2060|    448|            }
 2061|    967|            parsedLenDelta = checkLegacyLen - replacementLen;
 2062|    967|            uprv_strcpy(t->buf, LEGACY[i + 1]);
  ------------------
  |  |   36|    967|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|    967|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2063|    967|            if (checkLegacyLen != tagLen) {
  ------------------
  |  Branch (2063:17): [True: 872, False: 95]
  ------------------
 2064|    872|                uprv_memcpy(t->buf + replacementLen, tag + checkLegacyLen,
  ------------------
  |  |   42|    872|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    872|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    872|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    872|    _Pragma("clang diagnostic push") \
  |  |   45|    872|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    872|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    872|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    872|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    872|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    872|    _Pragma("clang diagnostic pop") \
  |  |   49|    872|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    872|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    872|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    872|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2065|    872|                            oldTagLength - checkLegacyLen);
 2066|       |                // NUL-terminate after memcpy().
 2067|    872|                t->buf[replacementLen + oldTagLength - checkLegacyLen] = 0;
 2068|    872|            }
 2069|    967|            break;
 2070|    967|        }
 2071|   521k|    }
 2072|       |
 2073|  93.8k|    if (legacyLen == 0) {
  ------------------
  |  Branch (2073:9): [True: 92.8k, False: 967]
  ------------------
 2074|  2.50M|        for (i = 0; i < UPRV_LENGTHOF(REDUNDANT); i += 2) {
  ------------------
  |  |   99|  2.50M|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (2074:21): [True: 2.41M, False: 92.6k]
  ------------------
 2075|  2.41M|            const char* redundantTag = REDUNDANT[i];
 2076|  2.41M|            size_t redundantTagLen = uprv_strlen(redundantTag);
  ------------------
  |  |   37|  2.41M|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  2.41M|#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|  2.41M|            if (uprv_strnicmp(redundantTag, tagBuf, static_cast<uint32_t>(redundantTagLen)) == 0) {
  ------------------
  |  | 1544|  2.41M|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  123|  2.41M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.41M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.41M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2080:17): [True: 566, False: 2.41M]
  ------------------
 2081|    566|                const char* redundantTagEnd = tagBuf + redundantTagLen;
 2082|    566|                if (*redundantTagEnd  == '\0' || *redundantTagEnd == SEP) {
  ------------------
  |  |   65|    566|#define SEP '-'
  ------------------
  |  Branch (2082:21): [True: 0, False: 566]
  |  Branch (2082:50): [True: 204, False: 362]
  ------------------
 2083|    204|                    const char* preferredTag = REDUNDANT[i + 1];
 2084|    204|                    size_t preferredTagLen = uprv_strlen(preferredTag);
  ------------------
  |  |   37|    204|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    204|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2085|    204|                    uprv_memcpy(t->buf, preferredTag, preferredTagLen);
  ------------------
  |  |   42|    204|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    204|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    204|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    204|    _Pragma("clang diagnostic push") \
  |  |   45|    204|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    204|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    204|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    204|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    204|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    204|    _Pragma("clang diagnostic pop") \
  |  |   49|    204|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    204|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    204|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    204|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2086|    204|                    if (*redundantTagEnd == SEP) {
  ------------------
  |  |   65|    204|#define SEP '-'
  ------------------
  |  Branch (2086:25): [True: 204, False: 0]
  ------------------
 2087|    204|                        uprv_memmove(tagBuf + preferredTagLen,
  ------------------
  |  |   51|    204|#define uprv_memmove(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    204|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   52|    204|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   53|    204|    _Pragma("clang diagnostic push") \
  |  |   54|    204|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   55|    204|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    204|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   56|    204|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    204|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   57|    204|    _Pragma("clang diagnostic pop") \
  |  |   58|    204|    U_STANDARD_CPP_NAMESPACE memmove(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    204|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   59|    204|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    204|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2088|    204|                                     redundantTagEnd,
 2089|    204|                                     tagLen - redundantTagLen + 1);
 2090|    204|                    } 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|    204|                    parsedLenDelta = redundantTagLen - preferredTagLen;
 2097|    204|                    break;
 2098|    204|                }
 2099|    566|            }
 2100|  2.41M|        }
 2101|  92.8k|    }
 2102|       |
 2103|       |    /*
 2104|       |     * langtag      =   language
 2105|       |     *                  ["-" script]
 2106|       |     *                  ["-" region]
 2107|       |     *                  *("-" variant)
 2108|       |     *                  *("-" extension)
 2109|       |     *                  ["-" privateuse]
 2110|       |     */
 2111|       |
 2112|  93.8k|    next = LANG | PRIV;
  ------------------
  |  | 1959|  93.8k|#define LANG 0x0001
  ------------------
                  next = LANG | PRIV;
  ------------------
  |  | 1966|  93.8k|#define PRIV 0x0080
  ------------------
 2113|  93.8k|    pNext = pLastGoodPosition = tagBuf;
 2114|  93.8k|    extlangIdx = 0;
 2115|  93.8k|    pExtValueSubtag = nullptr;
 2116|  93.8k|    pExtValueSubtagEnd = nullptr;
 2117|       |
 2118|  5.20M|    while (pNext) {
  ------------------
  |  Branch (2118:12): [True: 5.19M, False: 10.4k]
  ------------------
 2119|  5.19M|        char *pSep;
 2120|       |
 2121|  5.19M|        pSubtag = pNext;
 2122|       |
 2123|       |        /* locate next separator char */
 2124|  5.19M|        pSep = pSubtag;
 2125|  49.2M|        while (*pSep) {
  ------------------
  |  Branch (2125:16): [True: 49.2M, False: 48.4k]
  ------------------
 2126|  49.2M|            if (*pSep == SEP) {
  ------------------
  |  |   65|  49.2M|#define SEP '-'
  ------------------
  |  Branch (2126:17): [True: 5.14M, False: 44.0M]
  ------------------
 2127|  5.14M|                break;
 2128|  5.14M|            }
 2129|  44.0M|            pSep++;
 2130|  44.0M|        }
 2131|  5.19M|        if (*pSep == 0) {
  ------------------
  |  Branch (2131:13): [True: 48.4k, False: 5.14M]
  ------------------
 2132|       |            /* last subtag */
 2133|  48.4k|            pNext = nullptr;
 2134|  5.14M|        } else {
 2135|  5.14M|            pNext = pSep + 1;
 2136|  5.14M|        }
 2137|  5.19M|        subtagLen = static_cast<int32_t>(pSep - pSubtag);
 2138|       |
 2139|  5.19M|        if (next & LANG) {
  ------------------
  |  | 1959|  5.19M|#define LANG 0x0001
  ------------------
  |  Branch (2139:13): [True: 93.8k, False: 5.10M]
  ------------------
 2140|  93.8k|            if (ultag_isLanguageSubtag(pSubtag, subtagLen)) {
  ------------------
  |  | 1225|  93.8k|#define ultag_isLanguageSubtag U_ICU_ENTRY_POINT_RENAME(ultag_isLanguageSubtag)
  |  |  ------------------
  |  |  |  |  123|  93.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  93.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  93.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2140:17): [True: 26.2k, False: 67.6k]
  ------------------
 2141|  26.2k|                *pSep = 0;  /* terminate */
 2142|       |                // TODO: move deprecated language code handling here.
 2143|  26.2k|                t->language = T_CString_toLowerCase(pSubtag);
  ------------------
  |  |   69|  26.2k|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  123|  26.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  26.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  26.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2144|       |
 2145|  26.2k|                pLastGoodPosition = pSep;
 2146|  26.2k|                next = SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1961|  26.2k|#define SCRT 0x0004
  ------------------
                              next = SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1962|  26.2k|#define REGN 0x0008
  ------------------
                              next = SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1963|  26.2k|#define VART 0x0010
  ------------------
                              next = SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1964|  26.2k|#define EXTS 0x0020
  ------------------
                              next = SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1966|  26.2k|#define PRIV 0x0080
  ------------------
 2147|  26.2k|                if (subtagLen <= 3)
  ------------------
  |  Branch (2147:21): [True: 25.5k, False: 649]
  ------------------
 2148|  25.5k|                  next |= EXTL;
  ------------------
  |  | 1960|  25.5k|#define EXTL 0x0002
  ------------------
 2149|  26.2k|                continue;
 2150|  26.2k|            }
 2151|  93.8k|        }
 2152|  5.16M|        if (next & EXTL) {
  ------------------
  |  | 1960|  5.16M|#define EXTL 0x0002
  ------------------
  |  Branch (2152:13): [True: 28.8k, False: 5.13M]
  ------------------
 2153|  28.8k|            if (_isExtlangSubtag(pSubtag, subtagLen)) {
  ------------------
  |  Branch (2153:17): [True: 3.61k, False: 25.2k]
  ------------------
 2154|  3.61k|                *pSep = 0;
 2155|  3.61k|                t->extlang[extlangIdx++] = T_CString_toLowerCase(pSubtag);
  ------------------
  |  |   69|  3.61k|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  123|  3.61k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.61k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.61k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2156|       |
 2157|  3.61k|                pLastGoodPosition = pSep;
 2158|  3.61k|                if (extlangIdx < 3) {
  ------------------
  |  Branch (2158:21): [True: 3.41k, False: 207]
  ------------------
 2159|  3.41k|                    next = EXTL | SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1960|  3.41k|#define EXTL 0x0002
  ------------------
                                  next = EXTL | SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1961|  3.41k|#define SCRT 0x0004
  ------------------
                                  next = EXTL | SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1962|  3.41k|#define REGN 0x0008
  ------------------
                                  next = EXTL | SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1963|  3.41k|#define VART 0x0010
  ------------------
                                  next = EXTL | SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1964|  3.41k|#define EXTS 0x0020
  ------------------
                                  next = EXTL | SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1966|  3.41k|#define PRIV 0x0080
  ------------------
 2160|  3.41k|                } else {
 2161|    207|                    next = SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1961|    207|#define SCRT 0x0004
  ------------------
                                  next = SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1962|    207|#define REGN 0x0008
  ------------------
                                  next = SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1963|    207|#define VART 0x0010
  ------------------
                                  next = SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1964|    207|#define EXTS 0x0020
  ------------------
                                  next = SCRT | REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1966|    207|#define PRIV 0x0080
  ------------------
 2162|    207|                }
 2163|  3.61k|                continue;
 2164|  3.61k|            }
 2165|  28.8k|        }
 2166|  5.16M|        if (next & SCRT) {
  ------------------
  |  | 1961|  5.16M|#define SCRT 0x0004
  ------------------
  |  Branch (2166:13): [True: 26.1k, False: 5.13M]
  ------------------
 2167|  26.1k|            if (ultag_isScriptSubtag(pSubtag, subtagLen)) {
  ------------------
  |  | 1228|  26.1k|#define ultag_isScriptSubtag U_ICU_ENTRY_POINT_RENAME(ultag_isScriptSubtag)
  |  |  ------------------
  |  |  |  |  123|  26.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  26.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  26.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2167:17): [True: 1.96k, False: 24.1k]
  ------------------
 2168|  1.96k|                char *p = pSubtag;
 2169|       |
 2170|  1.96k|                *pSep = 0;
 2171|       |
 2172|       |                /* to title case */
 2173|  1.96k|                *p = uprv_toupper(*p);
  ------------------
  |  | 1547|  1.96k|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|  1.96k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.96k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.96k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2174|  1.96k|                p++;
 2175|  7.84k|                for (; *p; p++) {
  ------------------
  |  Branch (2175:24): [True: 5.88k, False: 1.96k]
  ------------------
 2176|  5.88k|                    *p = uprv_tolower(*p);
  ------------------
  |  |   68|  5.88k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  5.88k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  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
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2177|  5.88k|                }
 2178|       |
 2179|  1.96k|                t->script = pSubtag;
 2180|       |
 2181|  1.96k|                pLastGoodPosition = pSep;
 2182|  1.96k|                next = REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1962|  1.96k|#define REGN 0x0008
  ------------------
                              next = REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1963|  1.96k|#define VART 0x0010
  ------------------
                              next = REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1964|  1.96k|#define EXTS 0x0020
  ------------------
                              next = REGN | VART | EXTS | PRIV;
  ------------------
  |  | 1966|  1.96k|#define PRIV 0x0080
  ------------------
 2183|  1.96k|                continue;
 2184|  1.96k|            }
 2185|  26.1k|        }
 2186|  5.16M|        if (next & REGN) {
  ------------------
  |  | 1962|  5.16M|#define REGN 0x0008
  ------------------
  |  Branch (2186:13): [True: 26.1k, False: 5.13M]
  ------------------
 2187|  26.1k|            if (ultag_isRegionSubtag(pSubtag, subtagLen)) {
  ------------------
  |  | 1227|  26.1k|#define ultag_isRegionSubtag U_ICU_ENTRY_POINT_RENAME(ultag_isRegionSubtag)
  |  |  ------------------
  |  |  |  |  123|  26.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  26.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  26.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2187:17): [True: 15.5k, False: 10.6k]
  ------------------
 2188|  15.5k|                *pSep = 0;
 2189|       |                // TODO: move deprecated region code handling here.
 2190|  15.5k|                t->region = T_CString_toUpperCase(pSubtag);
  ------------------
  |  |   70|  15.5k|#define T_CString_toUpperCase U_ICU_ENTRY_POINT_RENAME(T_CString_toUpperCase)
  |  |  ------------------
  |  |  |  |  123|  15.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  15.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  15.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2191|       |
 2192|  15.5k|                pLastGoodPosition = pSep;
 2193|  15.5k|                next = VART | EXTS | PRIV;
  ------------------
  |  | 1963|  15.5k|#define VART 0x0010
  ------------------
                              next = VART | EXTS | PRIV;
  ------------------
  |  | 1964|  15.5k|#define EXTS 0x0020
  ------------------
                              next = VART | EXTS | PRIV;
  ------------------
  |  | 1966|  15.5k|#define PRIV 0x0080
  ------------------
 2194|  15.5k|                continue;
 2195|  15.5k|            }
 2196|  26.1k|        }
 2197|  5.14M|        if (next & VART) {
  ------------------
  |  | 1963|  5.14M|#define VART 0x0010
  ------------------
  |  Branch (2197:13): [True: 31.6k, False: 5.11M]
  ------------------
 2198|  31.6k|            if (_isVariantSubtag(pSubtag, subtagLen) ||
  ------------------
  |  Branch (2198:17): [True: 2.28k, False: 29.4k]
  ------------------
 2199|  31.6k|               (privateuseVar && _isPrivateuseVariantSubtag(pSubtag, subtagLen))) {
  ------------------
  |  Branch (2199:17): [True: 3.55k, False: 25.8k]
  |  Branch (2199:34): [True: 2.04k, False: 1.50k]
  ------------------
 2200|  4.32k|                icu::LocalPointer<VariantListEntry> var(new VariantListEntry, status);
 2201|  4.32k|                if (U_FAILURE(status)) {
  ------------------
  |  Branch (2201:21): [True: 0, False: 4.32k]
  ------------------
 2202|      0|                    return nullptr;
 2203|      0|                }
 2204|  4.32k|                *pSep = 0;
 2205|  4.32k|                var->variant = T_CString_toUpperCase(pSubtag);
  ------------------
  |  |   70|  4.32k|#define T_CString_toUpperCase U_ICU_ENTRY_POINT_RENAME(T_CString_toUpperCase)
  |  |  ------------------
  |  |  |  |  123|  4.32k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.32k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.32k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2206|  4.32k|                if (!_addVariantToList(&(t->variants), std::move(var))) {
  ------------------
  |  Branch (2206:21): [True: 409, False: 3.91k]
  ------------------
 2207|       |                    /* duplicated variant entry */
 2208|    409|                    break;
 2209|    409|                }
 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|  4.32k|            }
 2214|  31.6k|        }
 2215|  5.14M|        if (next & EXTS) {
  ------------------
  |  | 1964|  5.14M|#define EXTS 0x0020
  ------------------
  |  Branch (2215:13): [True: 5.05M, False: 92.8k]
  ------------------
 2216|  5.05M|            if (_isExtensionSingleton(pSubtag, subtagLen)) {
  ------------------
  |  Branch (2216:17): [True: 24.5k, False: 5.02M]
  ------------------
 2217|  24.5k|                if (pExtension.isValid()) {
  ------------------
  |  Branch (2217:21): [True: 6.62k, False: 17.8k]
  ------------------
 2218|  6.62k|                    if (pExtValueSubtag == nullptr || pExtValueSubtagEnd == nullptr) {
  ------------------
  |  Branch (2218:25): [True: 0, False: 6.62k]
  |  Branch (2218:55): [True: 0, False: 6.62k]
  ------------------
 2219|       |                        /* the previous extension is incomplete */
 2220|      0|                        delete pExtension.orphan();
 2221|      0|                        break;
 2222|      0|                    }
 2223|       |
 2224|       |                    /* terminate the previous extension value */
 2225|  6.62k|                    *pExtValueSubtagEnd = 0;
 2226|  6.62k|                    pExtension->value = T_CString_toLowerCase(pExtValueSubtag);
  ------------------
  |  |   69|  6.62k|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  123|  6.62k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.62k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.62k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2227|       |
 2228|       |                    /* insert the extension to the list */
 2229|  6.62k|                    if (_addExtensionToList(&(t->extensions), pExtension.getAlias(), false)) {
  ------------------
  |  Branch (2229:25): [True: 6.36k, False: 257]
  ------------------
 2230|  6.36k|                        pExtension.orphan();
 2231|  6.36k|                        pLastGoodPosition = pExtValueSubtagEnd;
 2232|  6.36k|                    } else {
 2233|       |                        /* stop parsing here */
 2234|    257|                        delete pExtension.orphan();
 2235|    257|                        break;
 2236|    257|                    }
 2237|  6.62k|                }
 2238|       |
 2239|       |                /* create a new extension */
 2240|  24.2k|                pExtension.adoptInsteadAndCheckErrorCode(new ExtensionListEntry, status);
 2241|  24.2k|                if (U_FAILURE(status)) {
  ------------------
  |  Branch (2241:21): [True: 0, False: 24.2k]
  ------------------
 2242|      0|                    return nullptr;
 2243|      0|                }
 2244|  24.2k|                *pSep = 0;
 2245|  24.2k|                pExtension->key = T_CString_toLowerCase(pSubtag);
  ------------------
  |  |   69|  24.2k|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  123|  24.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  24.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  24.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2246|  24.2k|                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|  24.2k|                pExtValueSubtag = nullptr;
 2253|  24.2k|                pExtValueSubtagEnd = nullptr;
 2254|       |
 2255|  24.2k|                next = EXTV;
  ------------------
  |  | 1965|  24.2k|#define EXTV 0x0040
  ------------------
 2256|  24.2k|                continue;
 2257|  24.2k|            }
 2258|  5.05M|        }
 2259|  5.11M|        if (next & EXTV) {
  ------------------
  |  | 1965|  5.11M|#define EXTV 0x0040
  ------------------
  |  Branch (2259:13): [True: 5.04M, False: 77.0k]
  ------------------
 2260|  5.04M|            if (_isExtensionSubtag(pSubtag, subtagLen)) {
  ------------------
  |  Branch (2260:17): [True: 5.03M, False: 9.47k]
  ------------------
 2261|  5.03M|                if (pExtValueSubtag == nullptr) {
  ------------------
  |  Branch (2261:21): [True: 20.0k, False: 5.01M]
  ------------------
 2262|       |                    /* if the start position of this extension's value is not yet,
 2263|       |                        this one is the first value subtag */
 2264|  20.0k|                    pExtValueSubtag = pSubtag;
 2265|  20.0k|                }
 2266|       |
 2267|       |                /* Mark the end of this subtag */
 2268|  5.03M|                pExtValueSubtagEnd = pSep;
 2269|  5.03M|                next = EXTS | EXTV | PRIV;
  ------------------
  |  | 1964|  5.03M|#define EXTS 0x0020
  ------------------
                              next = EXTS | EXTV | PRIV;
  ------------------
  |  | 1965|  5.03M|#define EXTV 0x0040
  ------------------
                              next = EXTS | EXTV | PRIV;
  ------------------
  |  | 1966|  5.03M|#define PRIV 0x0080
  ------------------
 2270|       |
 2271|  5.03M|                continue;
 2272|  5.03M|            }
 2273|  5.04M|        }
 2274|  86.5k|        if (next & PRIV) {
  ------------------
  |  | 1966|  86.5k|#define PRIV 0x0080
  ------------------
  |  Branch (2274:13): [True: 81.3k, False: 5.23k]
  ------------------
 2275|  81.3k|            if (uprv_tolower(*pSubtag) == PRIVATEUSE && subtagLen == 1) {
  ------------------
  |  |   68|  81.3k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  81.3k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  81.3k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  81.3k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  81.3k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          if (uprv_tolower(*pSubtag) == PRIVATEUSE && subtagLen == 1) {
  ------------------
  |  |   66|   162k|#define PRIVATEUSE 'x'
  ------------------
  |  Branch (2275:17): [True: 11.0k, False: 70.2k]
  |  Branch (2275:57): [True: 10.3k, False: 728]
  ------------------
 2276|  10.3k|                char *pPrivuseVal;
 2277|       |
 2278|  10.3k|                if (pExtension.isValid()) {
  ------------------
  |  Branch (2278:21): [True: 1.69k, False: 8.66k]
  ------------------
 2279|       |                    /* Process the last extension */
 2280|  1.69k|                    if (pExtValueSubtag == nullptr || pExtValueSubtagEnd == nullptr) {
  ------------------
  |  Branch (2280:25): [True: 0, False: 1.69k]
  |  Branch (2280:55): [True: 0, False: 1.69k]
  ------------------
 2281|       |                        /* the previous extension is incomplete */
 2282|      0|                        delete pExtension.orphan();
 2283|      0|                        break;
 2284|  1.69k|                    } else {
 2285|       |                        /* terminate the previous extension value */
 2286|  1.69k|                        *pExtValueSubtagEnd = 0;
 2287|  1.69k|                        pExtension->value = T_CString_toLowerCase(pExtValueSubtag);
  ------------------
  |  |   69|  1.69k|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2288|       |
 2289|       |                        /* insert the extension to the list */
 2290|  1.69k|                        if (_addExtensionToList(&(t->extensions), pExtension.getAlias(), false)) {
  ------------------
  |  Branch (2290:29): [True: 1.47k, False: 215]
  ------------------
 2291|  1.47k|                            pExtension.orphan();
 2292|  1.47k|                            pLastGoodPosition = pExtValueSubtagEnd;
 2293|  1.47k|                        } else {
 2294|       |                        /* stop parsing here */
 2295|    215|                            delete pExtension.orphan();
 2296|    215|                            break;
 2297|    215|                        }
 2298|  1.69k|                    }
 2299|  1.69k|                }
 2300|       |
 2301|       |                /* The rest of part will be private use value subtags */
 2302|  10.1k|                if (pNext == nullptr) {
  ------------------
  |  Branch (2302:21): [True: 189, False: 9.95k]
  ------------------
 2303|       |                    /* empty private use subtag */
 2304|    189|                    break;
 2305|    189|                }
 2306|       |                /* back up the private use value start position */
 2307|  9.95k|                pPrivuseVal = pNext;
 2308|       |
 2309|       |                /* validate private use value subtags */
 2310|  1.15M|                while (pNext) {
  ------------------
  |  Branch (2310:24): [True: 1.14M, False: 859]
  ------------------
 2311|  1.14M|                    pSubtag = pNext;
 2312|  1.14M|                    pSep = pSubtag;
 2313|  12.5M|                    while (*pSep) {
  ------------------
  |  Branch (2313:28): [True: 12.5M, False: 5.54k]
  ------------------
 2314|  12.5M|                        if (*pSep == SEP) {
  ------------------
  |  |   65|  12.5M|#define SEP '-'
  ------------------
  |  Branch (2314:29): [True: 1.14M, False: 11.3M]
  ------------------
 2315|  1.14M|                            break;
 2316|  1.14M|                        }
 2317|  11.3M|                        pSep++;
 2318|  11.3M|                    }
 2319|  1.14M|                    if (*pSep == 0) {
  ------------------
  |  Branch (2319:25): [True: 5.54k, False: 1.14M]
  ------------------
 2320|       |                        /* last subtag */
 2321|  5.54k|                        pNext = nullptr;
 2322|  1.14M|                    } else {
 2323|  1.14M|                        pNext = pSep + 1;
 2324|  1.14M|                    }
 2325|  1.14M|                    subtagLen = static_cast<int32_t>(pSep - pSubtag);
 2326|       |
 2327|  1.14M|                    if (uprv_strncmp(pSubtag, PRIVUSE_VARIANT_PREFIX, uprv_strlen(PRIVUSE_VARIANT_PREFIX)) == 0) {
  ------------------
  |  |   44|  1.14M|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|  1.14M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (2327:25): [True: 3.78k, False: 1.14M]
  ------------------
 2328|  3.78k|                        *pSep = 0;
 2329|  3.78k|                        next = VART;
  ------------------
  |  | 1963|  3.78k|#define VART 0x0010
  ------------------
 2330|  3.78k|                        privateuseVar = true;
 2331|  3.78k|                        break;
 2332|  1.14M|                    } else if (_isPrivateuseValueSubtag(pSubtag, subtagLen)) {
  ------------------
  |  Branch (2332:32): [True: 1.14M, False: 5.31k]
  ------------------
 2333|  1.14M|                        pLastGoodPosition = pSep;
 2334|  1.14M|                    } else {
 2335|  5.31k|                        break;
 2336|  5.31k|                    }
 2337|  1.14M|                }
 2338|       |
 2339|  9.95k|                if (next == VART) {
  ------------------
  |  | 1963|  9.95k|#define VART 0x0010
  ------------------
  |  Branch (2339:21): [True: 3.78k, False: 6.17k]
  ------------------
 2340|  3.78k|                    continue;
 2341|  3.78k|                }
 2342|       |
 2343|  6.17k|                if (pLastGoodPosition - pPrivuseVal > 0) {
  ------------------
  |  Branch (2343:21): [True: 2.27k, False: 3.89k]
  ------------------
 2344|  2.27k|                    *pLastGoodPosition = 0;
 2345|  2.27k|                    t->privateuse = T_CString_toLowerCase(pPrivuseVal);
  ------------------
  |  |   69|  2.27k|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  123|  2.27k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.27k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.27k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2346|  2.27k|                }
 2347|       |                /* No more subtags, exiting the parse loop */
 2348|  6.17k|                break;
 2349|  9.95k|            }
 2350|  70.9k|            break;
 2351|  81.3k|        }
 2352|       |
 2353|       |        /* If we fell through here, it means this subtag is illegal - quit parsing */
 2354|  5.23k|        break;
 2355|  86.5k|    }
 2356|       |
 2357|  93.8k|    if (pExtension.isValid()) {
  ------------------
  |  Branch (2357:9): [True: 15.9k, False: 77.9k]
  ------------------
 2358|       |        /* Process the last extension */
 2359|  15.9k|        if (pExtValueSubtag == nullptr || pExtValueSubtagEnd == nullptr) {
  ------------------
  |  Branch (2359:13): [True: 4.22k, False: 11.7k]
  |  Branch (2359:43): [True: 0, False: 11.7k]
  ------------------
 2360|       |            /* the previous extension is incomplete */
 2361|  4.22k|            delete pExtension.orphan();
 2362|  11.7k|        } else {
 2363|       |            /* terminate the previous extension value */
 2364|  11.7k|            *pExtValueSubtagEnd = 0;
 2365|  11.7k|            pExtension->value = T_CString_toLowerCase(pExtValueSubtag);
  ------------------
  |  |   69|  11.7k|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  123|  11.7k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  11.7k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  11.7k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2366|       |            /* insert the extension to the list */
 2367|  11.7k|            if (_addExtensionToList(&(t->extensions), pExtension.getAlias(), false)) {
  ------------------
  |  Branch (2367:17): [True: 11.4k, False: 226]
  ------------------
 2368|  11.4k|                pExtension.orphan();
 2369|  11.4k|                pLastGoodPosition = pExtValueSubtagEnd;
 2370|  11.4k|            } else {
 2371|    226|                delete pExtension.orphan();
 2372|    226|            }
 2373|  11.7k|        }
 2374|  15.9k|    }
 2375|       |
 2376|  93.8k|    if (parsedLen != nullptr) {
  ------------------
  |  Branch (2376:9): [True: 0, False: 93.8k]
  ------------------
 2377|      0|        *parsedLen = static_cast<int32_t>(pLastGoodPosition - t->buf + parsedLenDelta);
 2378|      0|    }
 2379|       |
 2380|  93.8k|    return t.orphan();
 2381|  93.8k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_123_initializeULanguageTagEPNS_12ULanguageTagE:
 1025|   111k|_initializeULanguageTag(ULanguageTag* langtag) {
 1026|   111k|    int32_t i;
 1027|       |
 1028|   111k|    langtag->buf = nullptr;
 1029|       |
 1030|   111k|    langtag->language = EMPTY;
 1031|   444k|    for (i = 0; i < MAXEXTLANG; i++) {
  ------------------
  |  |   51|   444k|#define MAXEXTLANG 3
  ------------------
  |  Branch (1031:17): [True: 333k, False: 111k]
  ------------------
 1032|   333k|        langtag->extlang[i] = nullptr;
 1033|   333k|    }
 1034|       |
 1035|   111k|    langtag->script = EMPTY;
 1036|   111k|    langtag->region = EMPTY;
 1037|       |
 1038|   111k|    langtag->variants = nullptr;
 1039|   111k|    langtag->extensions = nullptr;
 1040|       |
 1041|   111k|    langtag->legacy = EMPTY;
 1042|   111k|    langtag->privateuse = EMPTY;
 1043|   111k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_116_isExtlangSubtagEPKci:
  449|  28.8k|_isExtlangSubtag(const char* s, int32_t len) {
  450|       |    /*
  451|       |     * extlang       = 3ALPHA              ; selected ISO 639 codes
  452|       |     *                 *2("-" 3ALPHA)      ; permanently reserved
  453|       |     */
  454|  28.8k|    if (len < 0) {
  ------------------
  |  Branch (454:9): [True: 0, False: 28.8k]
  ------------------
  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|  28.8k|    if (len == 3 && _isAlphaString(s, len)) {
  ------------------
  |  Branch (457:9): [True: 4.61k, False: 24.2k]
  |  Branch (457:21): [True: 3.61k, False: 997]
  ------------------
  458|  3.61k|        return true;
  459|  3.61k|    }
  460|  25.2k|    return false;
  461|  28.8k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_126_isPrivateuseVariantSubtagEPKci:
  557|  3.55k|_isPrivateuseVariantSubtag(const char* s, int32_t len) {
  558|       |    /*
  559|       |     * variant       = 1*8alphanum         ; registered variants
  560|       |     *               / (DIGIT 3alphanum)
  561|       |     */
  562|  3.55k|    return _isAlphaNumericStringLimitedLength(s, len , 1, 8);
  563|  3.55k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_120ultag_getExtlangSizeEPKNS_12ULanguageTagE:
 2445|   111k|ultag_getExtlangSize(const ULanguageTag* langtag) {
 2446|   111k|    int32_t size = 0;
 2447|   111k|    int32_t i;
 2448|   444k|    for (i = 0; i < MAXEXTLANG; i++) {
  ------------------
  |  |   51|   444k|#define MAXEXTLANG 3
  ------------------
  |  Branch (2448:17): [True: 333k, False: 111k]
  ------------------
 2449|   333k|        if (langtag->extlang[i]) {
  ------------------
  |  Branch (2449:13): [True: 3.61k, False: 330k]
  ------------------
 2450|  3.61k|            size++;
 2451|  3.61k|        }
 2452|   333k|    }
 2453|   111k|    return size;
 2454|   111k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_116ultag_getExtlangEPKNS_12ULanguageTagEi:
 2437|  3.10k|ultag_getExtlang(const ULanguageTag* langtag, int32_t idx) {
 2438|  3.10k|    if (idx >= 0 && idx < MAXEXTLANG) {
  ------------------
  |  |   51|  3.10k|#define MAXEXTLANG 3
  ------------------
  |  Branch (2438:9): [True: 3.10k, False: 0]
  |  Branch (2438:21): [True: 3.10k, False: 0]
  ------------------
 2439|  3.10k|        return langtag->extlang[idx];
 2440|  3.10k|    }
 2441|      0|    return nullptr;
 2442|  3.10k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_117ultag_getLanguageEPKNS_12ULanguageTagE:
 2419|   108k|ultag_getLanguage(const ULanguageTag* langtag) {
 2420|   108k|    return langtag->language;
 2421|   108k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_115ultag_getScriptEPKNS_12ULanguageTagE:
 2457|   111k|ultag_getScript(const ULanguageTag* langtag) {
 2458|   111k|    return langtag->script;
 2459|   111k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_115ultag_getRegionEPKNS_12ULanguageTagE:
 2462|   111k|ultag_getRegion(const ULanguageTag* langtag) {
 2463|   111k|    return langtag->region;
 2464|   111k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_113_sortVariantsEPNS_16VariantListEntryE:
 1158|   111k|void _sortVariants(VariantListEntry* first) {
 1159|   115k|    for (VariantListEntry* var1 = first; var1 != nullptr; var1 = var1->next) {
  ------------------
  |  Branch (1159:42): [True: 3.91k, False: 111k]
  ------------------
 1160|  6.39k|        for (VariantListEntry* var2 = var1->next; var2 != nullptr; var2 = var2->next) {
  ------------------
  |  Branch (1160:51): [True: 2.47k, False: 3.91k]
  ------------------
 1161|       |            // Swap var1->variant and var2->variant.
 1162|  2.47k|            if (uprv_compareInvCharsAsAscii(var1->variant, var2->variant) > 0) {
  ------------------
  |  |  153|  2.47k|#   define uprv_compareInvCharsAsAscii(s1, s2) uprv_strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |   38|  2.47k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  |  |  ------------------
  |  |  |  |  |  |  393|  2.47k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1162:17): [True: 1.20k, False: 1.27k]
  ------------------
 1163|  1.20k|                const char* temp = var1->variant;
 1164|  1.20k|                var1->variant = var2->variant;
 1165|  1.20k|                var2->variant = temp;
 1166|  1.20k|            }
 1167|  2.47k|        }
 1168|  3.91k|    }
 1169|   111k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_121ultag_getVariantsSizeEPKNS_12ULanguageTagE:
 2483|   124k|ultag_getVariantsSize(const ULanguageTag* langtag) {
 2484|   124k|    int32_t size = 0;
 2485|   124k|    VariantListEntry *cur = langtag->variants;
 2486|   128k|    while (true) {
  ------------------
  |  Branch (2486:12): [Folded - Ignored]
  ------------------
 2487|   128k|        if (cur == nullptr) {
  ------------------
  |  Branch (2487:13): [True: 124k, False: 4.20k]
  ------------------
 2488|   124k|            break;
 2489|   124k|        }
 2490|  4.20k|        size++;
 2491|  4.20k|        cur = cur->next;
 2492|  4.20k|    }
 2493|   124k|    return size;
 2494|   124k|}
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|  6.39k|    while (cur) {
  ------------------
  |  Branch (2471:12): [True: 6.39k, False: 0]
  ------------------
 2472|  6.39k|        if (i == idx) {
  ------------------
  |  Branch (2472:13): [True: 3.91k, False: 2.47k]
  ------------------
 2473|  3.91k|            var = cur->variant;
 2474|  3.91k|            break;
 2475|  3.91k|        }
 2476|  2.47k|        cur = cur->next;
 2477|  2.47k|        i++;
 2478|  2.47k|    }
 2479|  3.91k|    return var;
 2480|  3.91k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_123ultag_getExtensionsSizeEPKNS_12ULanguageTagE:
 2529|   127k|ultag_getExtensionsSize(const ULanguageTag* langtag) {
 2530|   127k|    int32_t size = 0;
 2531|   127k|    ExtensionListEntry *cur = langtag->extensions;
 2532|   166k|    while (true) {
  ------------------
  |  Branch (2532:12): [Folded - Ignored]
  ------------------
 2533|   166k|        if (cur == nullptr) {
  ------------------
  |  Branch (2533:13): [True: 127k, False: 38.6k]
  ------------------
 2534|   127k|            break;
 2535|   127k|        }
 2536|  38.6k|        size++;
 2537|  38.6k|        cur = cur->next;
 2538|  38.6k|    }
 2539|   127k|    return size;
 2540|   127k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_119ultag_getPrivateUseEPKNS_12ULanguageTagE:
 2543|   127k|ultag_getPrivateUse(const ULanguageTag* langtag) {
 2544|   127k|    return langtag->privateuse;
 2545|   127k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_115_appendKeywordsEPNS_12ULanguageTagERN6icu_788ByteSinkER10UErrorCode:
 1781|  16.4k|_appendKeywords(ULanguageTag* langtag, icu::ByteSink& sink, UErrorCode& status) {
 1782|  16.4k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1782:9): [True: 0, False: 16.4k]
  ------------------
 1783|       |
 1784|  16.4k|    int32_t i, n;
 1785|  16.4k|    int32_t len;
 1786|  16.4k|    ExtensionListEntry *kwdFirst = nullptr;
 1787|  16.4k|    ExtensionListEntry *kwd;
 1788|  16.4k|    const char *key, *type;
 1789|  16.4k|    icu::MemoryPool<ExtensionListEntry> extPool;
 1790|  16.4k|    icu::MemoryPool<icu::CharString> kwdBuf;
 1791|  16.4k|    bool posixVariant = false;
 1792|       |
 1793|  16.4k|    n = ultag_getExtensionsSize(langtag);
 1794|       |
 1795|       |    /* resolve locale keywords and reordering keys */
 1796|  35.7k|    for (i = 0; i < n; i++) {
  ------------------
  |  Branch (1796:17): [True: 19.3k, False: 16.4k]
  ------------------
 1797|  19.3k|        key = ultag_getExtensionKey(langtag, i);
 1798|  19.3k|        type = ultag_getExtensionValue(langtag, i);
 1799|  19.3k|        if (*key == LDMLEXT) {
  ------------------
  |  |   67|  19.3k|#define LDMLEXT 'u'
  ------------------
  |  Branch (1799:13): [True: 13.2k, False: 6.06k]
  ------------------
 1800|       |            /* Determine if variants already exists */
 1801|  13.2k|            if (ultag_getVariantsSize(langtag)) {
  ------------------
  |  Branch (1801:17): [True: 288, False: 12.9k]
  ------------------
 1802|    288|                posixVariant = true;
 1803|    288|            }
 1804|       |
 1805|  13.2k|            _appendLDMLExtensionAsKeywords(type, &kwdFirst, extPool, kwdBuf, posixVariant, status);
 1806|  13.2k|            if (U_FAILURE(status)) {
  ------------------
  |  Branch (1806:17): [True: 0, False: 13.2k]
  ------------------
 1807|      0|                break;
 1808|      0|            }
 1809|  13.2k|        } else {
 1810|  6.06k|            kwd = extPool.create();
 1811|  6.06k|            if (kwd == nullptr) {
  ------------------
  |  Branch (1811:17): [True: 0, False: 6.06k]
  ------------------
 1812|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 1813|      0|                break;
 1814|      0|            }
 1815|  6.06k|            kwd->key = key;
 1816|  6.06k|            kwd->value = type;
 1817|  6.06k|            if (!_addExtensionToList(&kwdFirst, kwd, false)) {
  ------------------
  |  Branch (1817:17): [True: 0, False: 6.06k]
  ------------------
 1818|      0|                status = U_ILLEGAL_ARGUMENT_ERROR;
 1819|      0|                break;
 1820|      0|            }
 1821|  6.06k|        }
 1822|  19.3k|    }
 1823|       |
 1824|  16.4k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1824:9): [True: 16.4k, False: 0]
  ------------------
 1825|  16.4k|        type = ultag_getPrivateUse(langtag);
 1826|  16.4k|        if (static_cast<int32_t>(uprv_strlen(type)) > 0) {
  ------------------
  |  |   37|  16.4k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  16.4k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1826:13): [True: 2.27k, False: 14.1k]
  ------------------
 1827|       |            /* add private use as a keyword */
 1828|  2.27k|            kwd = extPool.create();
 1829|  2.27k|            if (kwd == nullptr) {
  ------------------
  |  Branch (1829:17): [True: 0, False: 2.27k]
  ------------------
 1830|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 1831|  2.27k|            } else {
 1832|  2.27k|                kwd->key = PRIVATEUSE_KEY;
 1833|  2.27k|                kwd->value = type;
 1834|  2.27k|                if (!_addExtensionToList(&kwdFirst, kwd, false)) {
  ------------------
  |  Branch (1834:21): [True: 0, False: 2.27k]
  ------------------
 1835|      0|                    status = U_ILLEGAL_ARGUMENT_ERROR;
 1836|      0|                }
 1837|  2.27k|            }
 1838|  2.27k|        }
 1839|  16.4k|    }
 1840|       |
 1841|       |    /* If a POSIX variant was in the extensions, write it out before writing the keywords. */
 1842|       |
 1843|  16.4k|    if (U_SUCCESS(status) && posixVariant) {
  ------------------
  |  Branch (1843:9): [True: 16.4k, False: 0]
  |  Branch (1843:30): [True: 816, False: 15.6k]
  ------------------
 1844|    816|        len = static_cast<int32_t>(uprv_strlen(_POSIX));
  ------------------
  |  |   37|    816|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    816|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1845|    816|        sink.Append(_POSIX, len);
 1846|    816|    }
 1847|       |
 1848|  16.4k|    if (U_SUCCESS(status) && kwdFirst != nullptr) {
  ------------------
  |  Branch (1848:9): [True: 16.4k, False: 0]
  |  Branch (1848:30): [True: 16.1k, False: 242]
  ------------------
 1849|       |        /* write out the sorted keywords */
 1850|  16.1k|        bool firstValue = true;
 1851|  16.1k|        kwd = kwdFirst;
 1852|  68.7k|        do {
 1853|  68.7k|            if (firstValue) {
  ------------------
  |  Branch (1853:17): [True: 16.1k, False: 52.6k]
  ------------------
 1854|  16.1k|                sink.Append("@", 1);
 1855|  16.1k|                firstValue = false;
 1856|  52.6k|            } else {
 1857|  52.6k|                sink.Append(";", 1);
 1858|  52.6k|            }
 1859|       |
 1860|       |            /* key */
 1861|  68.7k|            len = static_cast<int32_t>(uprv_strlen(kwd->key));
  ------------------
  |  |   37|  68.7k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  68.7k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1862|  68.7k|            sink.Append(kwd->key, len);
 1863|  68.7k|            sink.Append("=", 1);
 1864|       |
 1865|       |            /* type */
 1866|  68.7k|            len = static_cast<int32_t>(uprv_strlen(kwd->value));
  ------------------
  |  |   37|  68.7k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  68.7k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1867|  68.7k|            sink.Append(kwd->value, len);
 1868|       |
 1869|  68.7k|            kwd = kwd->next;
 1870|  68.7k|        } while (kwd);
  ------------------
  |  Branch (1870:18): [True: 52.6k, False: 16.1k]
  ------------------
 1871|  16.1k|    }
 1872|  16.4k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_121ultag_getExtensionKeyEPKNS_12ULanguageTagEi:
 2497|  19.3k|ultag_getExtensionKey(const ULanguageTag* langtag, int32_t idx) {
 2498|  19.3k|    const char *key = nullptr;
 2499|  19.3k|    ExtensionListEntry *cur = langtag->extensions;
 2500|  19.3k|    int32_t i = 0;
 2501|  26.8k|    while (cur) {
  ------------------
  |  Branch (2501:12): [True: 26.8k, False: 0]
  ------------------
 2502|  26.8k|        if (i == idx) {
  ------------------
  |  Branch (2502:13): [True: 19.3k, False: 7.54k]
  ------------------
 2503|  19.3k|            key = cur->key;
 2504|  19.3k|            break;
 2505|  19.3k|        }
 2506|  7.54k|        cur = cur->next;
 2507|  7.54k|        i++;
 2508|  7.54k|    }
 2509|  19.3k|    return key;
 2510|  19.3k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_123ultag_getExtensionValueEPKNS_12ULanguageTagEi:
 2513|  19.3k|ultag_getExtensionValue(const ULanguageTag* langtag, int32_t idx) {
 2514|  19.3k|    const char *val = nullptr;
 2515|  19.3k|    ExtensionListEntry *cur = langtag->extensions;
 2516|  19.3k|    int32_t i = 0;
 2517|  26.8k|    while (cur) {
  ------------------
  |  Branch (2517:12): [True: 26.8k, False: 0]
  ------------------
 2518|  26.8k|        if (i == idx) {
  ------------------
  |  Branch (2518:13): [True: 19.3k, False: 7.54k]
  ------------------
 2519|  19.3k|            val = cur->value;
 2520|  19.3k|            break;
 2521|  19.3k|        }
 2522|  7.54k|        cur = cur->next;
 2523|  7.54k|        i++;
 2524|  7.54k|    }
 2525|  19.3k|    return val;
 2526|  19.3k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_130_appendLDMLExtensionAsKeywordsEPKcPPNS_18ExtensionListEntryERN6icu_7810MemoryPoolIS2_Li8EEERNS6_INS5_10CharStringELi8EEERbR10UErrorCode:
 1523|  13.2k|_appendLDMLExtensionAsKeywords(const char* ldmlext, ExtensionListEntry** appendTo, icu::MemoryPool<ExtensionListEntry>& extPool, icu::MemoryPool<icu::CharString>& kwdBuf, bool& posixVariant, UErrorCode& status) {
 1524|  13.2k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1524:9): [True: 0, False: 13.2k]
  ------------------
 1525|       |
 1526|  13.2k|    const char *pTag;   /* beginning of current subtag */
 1527|  13.2k|    const char *pKwds;  /* beginning of key-type pairs */
 1528|  13.2k|    bool variantExists = posixVariant;
 1529|       |
 1530|  13.2k|    ExtensionListEntry *kwdFirst = nullptr;    /* first LDML keyword */
 1531|  13.2k|    ExtensionListEntry *kwd, *nextKwd;
 1532|       |
 1533|  13.2k|    int32_t len;
 1534|       |
 1535|       |    /* Reset the posixVariant value */
 1536|  13.2k|    posixVariant = false;
 1537|       |
 1538|  13.2k|    pTag = ldmlext;
 1539|  13.2k|    pKwds = nullptr;
 1540|       |
 1541|  13.2k|    {
 1542|  13.2k|        AttributeListEntry *attrFirst = nullptr;   /* first attribute */
 1543|  13.2k|        AttributeListEntry *attr, *nextAttr;
 1544|       |
 1545|  13.2k|        icu::MemoryPool<icu::CharString> strPool;
 1546|  13.2k|        icu::MemoryPool<AttributeListEntry> attrPool;
 1547|       |
 1548|       |        /* Iterate through u extension attributes */
 1549|  1.83M|        while (*pTag) {
  ------------------
  |  Branch (1549:16): [True: 1.83M, False: 1.87k]
  ------------------
 1550|       |            /* locate next separator char */
 1551|  5.50M|            for (len = 0; *(pTag + len) && *(pTag + len) != SEP; len++);
  ------------------
  |  |   65|  5.50M|#define SEP '-'
  ------------------
  |  Branch (1551:27): [True: 5.50M, False: 3.86k]
  |  Branch (1551:44): [True: 3.67M, False: 1.82M]
  ------------------
 1552|       |
 1553|  1.83M|            if (ultag_isUnicodeLocaleKey(pTag, len)) {
  ------------------
  |  | 1233|  1.83M|#define ultag_isUnicodeLocaleKey U_ICU_ENTRY_POINT_RENAME(ultag_isUnicodeLocaleKey)
  |  |  ------------------
  |  |  |  |  123|  1.83M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.83M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.83M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1553:17): [True: 11.4k, False: 1.81M]
  ------------------
 1554|  11.4k|                pKwds = pTag;
 1555|  11.4k|                break;
 1556|  11.4k|            }
 1557|       |
 1558|       |            /* add this attribute to the list */
 1559|  1.81M|            attr = attrPool.create();
 1560|  1.81M|            if (attr == nullptr) {
  ------------------
  |  Branch (1560:17): [True: 0, False: 1.81M]
  ------------------
 1561|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 1562|      0|                return;
 1563|      0|            }
 1564|       |
 1565|  1.81M|            if (icu::CharString* str = strPool.create(pTag, len, status)) {
  ------------------
  |  Branch (1565:34): [True: 1.81M, False: 0]
  ------------------
 1566|  1.81M|                if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1566:21): [True: 0, False: 1.81M]
  ------------------
 1567|  1.81M|                attr->attribute = str->data();
 1568|  1.81M|            } else {
 1569|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 1570|      0|                return;
 1571|      0|            }
 1572|       |
 1573|       |            // duplicate attribute is ignored, causes no error.
 1574|  1.81M|            _addAttributeToList(&attrFirst, attr);
 1575|       |
 1576|       |            /* next tag */
 1577|  1.81M|            pTag += len;
 1578|  1.81M|            if (*pTag) {
  ------------------
  |  Branch (1578:17): [True: 1.81M, False: 1.87k]
  ------------------
 1579|       |                /* next to the separator */
 1580|  1.81M|                pTag++;
 1581|  1.81M|            }
 1582|  1.81M|        }
 1583|       |
 1584|  13.2k|        if (attrFirst) {
  ------------------
  |  Branch (1584:13): [True: 2.57k, False: 10.7k]
  ------------------
 1585|       |            /* emit attributes as an LDML keyword, e.g. attribute=attr1-attr2 */
 1586|       |
 1587|  2.57k|            kwd = extPool.create();
 1588|  2.57k|            if (kwd == nullptr) {
  ------------------
  |  Branch (1588:17): [True: 0, False: 2.57k]
  ------------------
 1589|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 1590|      0|                return;
 1591|      0|            }
 1592|       |
 1593|  2.57k|            icu::CharString* value = kwdBuf.create();
 1594|  2.57k|            if (value == nullptr) {
  ------------------
  |  Branch (1594:17): [True: 0, False: 2.57k]
  ------------------
 1595|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 1596|      0|                return;
 1597|      0|            }
 1598|       |
 1599|       |            /* attribute subtags sorted in alphabetical order as type */
 1600|  2.57k|            attr = attrFirst;
 1601|  9.51k|            while (attr != nullptr) {
  ------------------
  |  Branch (1601:20): [True: 6.94k, False: 2.57k]
  ------------------
 1602|  6.94k|                nextAttr = attr->next;
 1603|  6.94k|                if (attr != attrFirst) {
  ------------------
  |  Branch (1603:21): [True: 4.37k, False: 2.57k]
  ------------------
 1604|  4.37k|                    value->append('-', status);
 1605|  4.37k|                }
 1606|  6.94k|                value->append(attr->attribute, status);
 1607|  6.94k|                attr = nextAttr;
 1608|  6.94k|            }
 1609|  2.57k|            if (U_FAILURE(status)) {
  ------------------
  |  Branch (1609:17): [True: 0, False: 2.57k]
  ------------------
 1610|      0|                return;
 1611|      0|            }
 1612|       |
 1613|  2.57k|            kwd->key = LOCALE_ATTRIBUTE_KEY;
 1614|  2.57k|            kwd->value = value->data();
 1615|       |
 1616|  2.57k|            if (!_addExtensionToList(&kwdFirst, kwd, false)) {
  ------------------
  |  Branch (1616:17): [True: 0, False: 2.57k]
  ------------------
 1617|      0|                status = U_ILLEGAL_ARGUMENT_ERROR;
 1618|      0|                return;
 1619|      0|            }
 1620|  2.57k|        }
 1621|  13.2k|    }
 1622|       |
 1623|  13.2k|    if (pKwds) {
  ------------------
  |  Branch (1623:9): [True: 11.4k, False: 1.87k]
  ------------------
 1624|  11.4k|        const char *pBcpKey = nullptr;     /* u extension key subtag */
 1625|  11.4k|        const char *pBcpType = nullptr;    /* beginning of u extension type subtag(s) */
 1626|  11.4k|        int32_t bcpKeyLen = 0;
 1627|  11.4k|        int32_t bcpTypeLen = 0;
 1628|  11.4k|        bool isDone = false;
 1629|       |
 1630|  11.4k|        pTag = pKwds;
 1631|       |        /* BCP47 representation of LDML key/type pairs */
 1632|  2.12M|        while (!isDone) {
  ------------------
  |  Branch (1632:16): [True: 2.11M, False: 11.4k]
  ------------------
 1633|  2.11M|            const char *pNextBcpKey = nullptr;
 1634|  2.11M|            int32_t nextBcpKeyLen = 0;
 1635|  2.11M|            bool emitKeyword = false;
 1636|       |
 1637|  2.11M|            if (*pTag) {
  ------------------
  |  Branch (1637:17): [True: 2.10M, False: 11.4k]
  ------------------
 1638|       |                /* locate next separator char */
 1639|  6.36M|                for (len = 0; *(pTag + len) && *(pTag + len) != SEP; len++);
  ------------------
  |  |   65|  6.35M|#define SEP '-'
  ------------------
  |  Branch (1639:31): [True: 6.35M, False: 11.4k]
  |  Branch (1639:48): [True: 4.26M, False: 2.08M]
  ------------------
 1640|       |
 1641|  2.10M|                if (ultag_isUnicodeLocaleKey(pTag, len)) {
  ------------------
  |  | 1233|  2.10M|#define ultag_isUnicodeLocaleKey U_ICU_ENTRY_POINT_RENAME(ultag_isUnicodeLocaleKey)
  |  |  ------------------
  |  |  |  |  123|  2.10M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.10M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.10M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1641:21): [True: 112k, False: 1.98M]
  ------------------
 1642|   112k|                    if (pBcpKey) {
  ------------------
  |  Branch (1642:25): [True: 101k, False: 11.4k]
  ------------------
 1643|   101k|                        emitKeyword = true;
 1644|   101k|                        pNextBcpKey = pTag;
 1645|   101k|                        nextBcpKeyLen = len;
 1646|   101k|                    } else {
 1647|  11.4k|                        pBcpKey = pTag;
 1648|  11.4k|                        bcpKeyLen = len;
 1649|  11.4k|                    }
 1650|  1.98M|                } else {
 1651|  1.98M|                    U_ASSERT(pBcpKey != nullptr);
  ------------------
  |  |   35|  1.98M|#   define U_ASSERT(exp) (void)0
  ------------------
 1652|       |                    /* within LDML type subtags */
 1653|  1.98M|                    if (pBcpType) {
  ------------------
  |  Branch (1653:25): [True: 1.97M, False: 7.95k]
  ------------------
 1654|  1.97M|                        bcpTypeLen += (len + 1);
 1655|  1.97M|                    } else {
 1656|  7.95k|                        pBcpType = pTag;
 1657|  7.95k|                        bcpTypeLen = len;
 1658|  7.95k|                    }
 1659|  1.98M|                }
 1660|       |
 1661|       |                /* next tag */
 1662|  2.10M|                pTag += len;
 1663|  2.10M|                if (*pTag) {
  ------------------
  |  Branch (1663:21): [True: 2.08M, False: 11.4k]
  ------------------
 1664|       |                    /* next to the separator */
 1665|  2.08M|                    pTag++;
 1666|  2.08M|                }
 1667|  2.10M|            } else {
 1668|       |                /* processing last one */
 1669|  11.4k|                emitKeyword = true;
 1670|  11.4k|                isDone = true;
 1671|  11.4k|            }
 1672|       |
 1673|  2.11M|            if (emitKeyword) {
  ------------------
  |  Branch (1673:17): [True: 112k, False: 1.99M]
  ------------------
 1674|   112k|                const char *pKey = nullptr;    /* LDML key */
 1675|   112k|                const char *pType = nullptr;   /* LDML type */
 1676|       |
 1677|   112k|                U_ASSERT(pBcpKey != nullptr);
  ------------------
  |  |   35|   112k|#   define U_ASSERT(exp) (void)0
  ------------------
 1678|       |
 1679|       |                /* BCP key length is always 2 for now */
 1680|   112k|                if (bcpKeyLen != 2) {
  ------------------
  |  Branch (1680:21): [True: 0, False: 112k]
  ------------------
 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|   112k|                std::optional<std::string_view> legacyKey = ulocimp_toLegacyKeyWithFallback(
  ------------------
  |  | 1220|   112k|#define ulocimp_toLegacyKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ulocimp_toLegacyKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|   112k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   112k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   112k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1688|   112k|                    {pBcpKey, static_cast<std::string_view::size_type>(bcpKeyLen)});
 1689|   112k|                if (!legacyKey.has_value()) {
  ------------------
  |  Branch (1689:21): [True: 0, False: 112k]
  ------------------
 1690|      0|                    status = U_ILLEGAL_ARGUMENT_ERROR;
 1691|      0|                    return;
 1692|      0|                }
 1693|   112k|                if (legacyKey->data() == pBcpKey) {
  ------------------
  |  Branch (1693:21): [True: 101k, False: 10.8k]
  ------------------
 1694|       |                    /*
 1695|       |                    The key returned by toLegacyKey points to the input buffer.
 1696|       |                    We normalize the result key to lower case.
 1697|       |                    */
 1698|   101k|                    icu::CharString* key = kwdBuf.create(pBcpKey, bcpKeyLen, status);
 1699|   101k|                    if (key == nullptr) {
  ------------------
  |  Branch (1699:25): [True: 0, False: 101k]
  ------------------
 1700|      0|                        status = U_MEMORY_ALLOCATION_ERROR;
 1701|      0|                        return;
 1702|      0|                    }
 1703|   101k|                    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1703:25): [True: 0, False: 101k]
  ------------------
 1704|      0|                        return;
 1705|      0|                    }
 1706|   101k|                    T_CString_toLowerCase(key->data());
  ------------------
  |  |   69|   101k|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  123|   101k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   101k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   101k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1707|   101k|                    pKey = key->data();
 1708|   101k|                } else {
 1709|  10.8k|                    pKey = legacyKey->data();
 1710|  10.8k|                }
 1711|       |
 1712|   112k|                if (pBcpType) {
  ------------------
  |  Branch (1712:21): [True: 7.95k, False: 104k]
  ------------------
 1713|       |                    /* BCP type to locale type */
 1714|  7.95k|                    std::optional<std::string_view> legacyType = ulocimp_toLegacyTypeWithFallback(
  ------------------
  |  | 1222|  7.95k|#define ulocimp_toLegacyTypeWithFallback U_ICU_ENTRY_POINT_RENAME(ulocimp_toLegacyTypeWithFallback)
  |  |  ------------------
  |  |  |  |  123|  7.95k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.95k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.95k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1715|  7.95k|                        pKey, {pBcpType, static_cast<std::string_view::size_type>(bcpTypeLen)});
 1716|  7.95k|                    if (!legacyType.has_value()) {
  ------------------
  |  Branch (1716:25): [True: 0, False: 7.95k]
  ------------------
 1717|      0|                        status = U_ILLEGAL_ARGUMENT_ERROR;
 1718|      0|                        return;
 1719|      0|                    }
 1720|  7.95k|                    if (legacyType->data() == pBcpType) {
  ------------------
  |  Branch (1720:25): [True: 6.54k, False: 1.41k]
  ------------------
 1721|       |                        /*
 1722|       |                        The type returned by toLegacyType points to the input buffer.
 1723|       |                        We normalize the result type to lower case.
 1724|       |                        */
 1725|  6.54k|                        icu::CharString* type = kwdBuf.create(pBcpType, bcpTypeLen, status);
 1726|  6.54k|                        if (type == nullptr) {
  ------------------
  |  Branch (1726:29): [True: 0, False: 6.54k]
  ------------------
 1727|      0|                            status = U_MEMORY_ALLOCATION_ERROR;
 1728|      0|                            return;
 1729|      0|                        }
 1730|  6.54k|                        if (U_FAILURE(status)) {
  ------------------
  |  Branch (1730:29): [True: 0, False: 6.54k]
  ------------------
 1731|      0|                            return;
 1732|      0|                        }
 1733|  6.54k|                        T_CString_toLowerCase(type->data());
  ------------------
  |  |   69|  6.54k|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  123|  6.54k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.54k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.54k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1734|  6.54k|                        pType = type->data();
 1735|  6.54k|                    } else {
 1736|  1.41k|                        pType = legacyType->data();
 1737|  1.41k|                    }
 1738|   104k|                } else {
 1739|       |                    /* typeless - default type value is "yes" */
 1740|   104k|                    pType = LOCALE_TYPE_YES;
 1741|   104k|                }
 1742|       |
 1743|       |                /* Special handling for u-va-posix, since we want to treat this as a variant, 
 1744|       |                   not as a keyword */
 1745|   112k|                if (!variantExists && !uprv_strcmp(pKey, POSIX_KEY) && !uprv_strcmp(pType, POSIX_VALUE) ) {
  ------------------
  |  |   38|   111k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   111k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                              if (!variantExists && !uprv_strcmp(pKey, POSIX_KEY) && !uprv_strcmp(pType, POSIX_VALUE) ) {
  ------------------
  |  |   38|  1.78k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  1.78k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1745:21): [True: 111k, False: 500]
  |  Branch (1745:39): [True: 1.78k, False: 110k]
  |  Branch (1745:72): [True: 876, False: 908]
  ------------------
 1746|    876|                    posixVariant = true;
 1747|   111k|                } else {
 1748|       |                    /* create an ExtensionListEntry for this keyword */
 1749|   111k|                    kwd = extPool.create();
 1750|   111k|                    if (kwd == nullptr) {
  ------------------
  |  Branch (1750:25): [True: 0, False: 111k]
  ------------------
 1751|      0|                        status = U_MEMORY_ALLOCATION_ERROR;
 1752|      0|                        return;
 1753|      0|                    }
 1754|       |
 1755|   111k|                    kwd->key = pKey;
 1756|   111k|                    kwd->value = pType;
 1757|       |
 1758|   111k|                    if (!_addExtensionToList(&kwdFirst, kwd, false)) {
  ------------------
  |  Branch (1758:25): [True: 53.7k, False: 57.8k]
  ------------------
 1759|       |                        // duplicate keyword is allowed, Only the first
 1760|       |                        // is honored.
 1761|  53.7k|                    }
 1762|   111k|                }
 1763|       |
 1764|   112k|                pBcpKey = pNextBcpKey;
 1765|   112k|                bcpKeyLen = pNextBcpKey != nullptr ? nextBcpKeyLen : 0;
  ------------------
  |  Branch (1765:29): [True: 101k, False: 11.4k]
  ------------------
 1766|   112k|                pBcpType = nullptr;
 1767|   112k|                bcpTypeLen = 0;
 1768|   112k|            }
 1769|  2.11M|        }
 1770|  11.4k|    }
 1771|       |
 1772|  13.2k|    kwd = kwdFirst;
 1773|  73.7k|    while (kwd != nullptr) {
  ------------------
  |  Branch (1773:12): [True: 60.4k, False: 13.2k]
  ------------------
 1774|  60.4k|        nextKwd = kwd->next;
 1775|  60.4k|        _addExtensionToList(appendTo, kwd, false);
 1776|  60.4k|        kwd = nextKwd;
 1777|  60.4k|    }
 1778|  13.2k|}
uloc_tag.cpp:_ZN12_GLOBAL__N_111ultag_closeEPNS_12ULanguageTagE:
 2389|   111k|ultag_close(ULanguageTag* langtag) {
 2390|       |
 2391|   111k|    if (langtag == nullptr) {
  ------------------
  |  Branch (2391:9): [True: 0, False: 111k]
  ------------------
 2392|      0|        return;
 2393|      0|    }
 2394|       |
 2395|   111k|    uprv_free(langtag->buf);
  ------------------
  |  | 1503|   111k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|   111k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   111k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   111k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2396|       |
 2397|   111k|    if (langtag->variants) {
  ------------------
  |  Branch (2397:9): [True: 2.22k, False: 109k]
  ------------------
 2398|  2.22k|        VariantListEntry *curVar = langtag->variants;
 2399|  6.14k|        while (curVar) {
  ------------------
  |  Branch (2399:16): [True: 3.91k, False: 2.22k]
  ------------------
 2400|  3.91k|            VariantListEntry *nextVar = curVar->next;
 2401|  3.91k|            delete curVar;
 2402|  3.91k|            curVar = nextVar;
 2403|  3.91k|        }
 2404|  2.22k|    }
 2405|       |
 2406|   111k|    if (langtag->extensions) {
  ------------------
  |  Branch (2406:9): [True: 15.2k, False: 95.9k]
  ------------------
 2407|  15.2k|        ExtensionListEntry *curExt = langtag->extensions;
 2408|  34.5k|        while (curExt) {
  ------------------
  |  Branch (2408:16): [True: 19.3k, False: 15.2k]
  ------------------
 2409|  19.3k|            ExtensionListEntry *nextExt = curExt->next;
 2410|  19.3k|            delete curExt;
 2411|  19.3k|            curExt = nextExt;
 2412|  19.3k|        }
 2413|  15.2k|    }
 2414|       |
 2415|   111k|    uprv_free(langtag);
  ------------------
  |  | 1503|   111k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|   111k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   111k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   111k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2416|   111k|}
uloc_tag.cpp:_ZZ25ulocimp_forLanguageTag_78PKciPiR10UErrorCodeENK3$_0clERN6icu_788ByteSinkES3_:
 2677|   111k|        [&](icu::ByteSink& sink, UErrorCode& status) {
 2678|   111k|            ulocimp_forLanguageTag(langtag, tagLen, sink, parsedLength, status);
  ------------------
  |  | 1198|   111k|#define ulocimp_forLanguageTag U_ICU_ENTRY_POINT_RENAME(ulocimp_forLanguageTag)
  |  |  ------------------
  |  |  |  |  123|   111k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   111k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   111k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2679|   111k|        },

loclikely.cpp:_ZN12_GLOBAL__N_114_isIDSeparatorEc:
   49|  88.2k|inline bool _isIDSeparator(char a) { return a == '_' || a == '-'; }
  ------------------
  |  Branch (49:45): [True: 39.2k, False: 49.0k]
  |  Branch (49:57): [True: 940, False: 48.0k]
  ------------------
uloc.cpp:_ZN12_GLOBAL__N_114_isIDSeparatorEc:
   49|  23.8M|inline bool _isIDSeparator(char a) { return a == '_' || a == '-'; }
  ------------------
  |  Branch (49:45): [True: 9.14M, False: 14.6M]
  |  Branch (49:57): [True: 112k, False: 14.5M]
  ------------------

uprv_max_78:
   17|  2.32M|{
   18|  2.32M|    return (x > y ? x : y);
  ------------------
  |  Branch (18:13): [True: 52.0k, False: 2.27M]
  ------------------
   19|  2.32M|}
uprv_min_78:
   23|  3.80M|{
   24|  3.80M|    return (x > y ? y : x);
  ------------------
  |  Branch (24:13): [True: 202k, False: 3.60M]
  ------------------
   25|  3.80M|}

_ZN6icu_786UMutex8getMutexEv:
   80|     14|std::mutex *UMutex::getMutex() {
   81|     14|    std::mutex *retPtr = fMutex.load(std::memory_order_acquire);
   82|     14|    if (retPtr == nullptr) {
  ------------------
  |  Branch (82:9): [True: 14, False: 0]
  ------------------
   83|     14|        std::call_once(*pInitFlag, umtx_init);
   84|     14|        std::lock_guard<std::mutex> guard(*initMutex);
   85|     14|        retPtr = fMutex.load(std::memory_order_acquire);
   86|     14|        if (retPtr == nullptr) {
  ------------------
  |  Branch (86:13): [True: 14, False: 0]
  ------------------
   87|     14|            fMutex = new(fStorage) std::mutex();
   88|     14|            retPtr = fMutex;
   89|     14|            fListLink = gListHead;
   90|     14|            gListHead = this;
   91|     14|        }
   92|     14|    }
   93|     14|    U_ASSERT(retPtr != nullptr);
  ------------------
  |  |   35|     14|#   define U_ASSERT(exp) (void)0
  ------------------
   94|     14|    return retPtr;
   95|     14|}
umtx_lock_78:
  112|  10.7M|umtx_lock(UMutex *mutex) {
  113|  10.7M|    if (mutex == nullptr) {
  ------------------
  |  Branch (113:9): [True: 168k, False: 10.5M]
  ------------------
  114|   168k|        mutex = &globalMutex;
  115|   168k|    }
  116|  10.7M|    mutex->lock();
  117|  10.7M|}
umtx_unlock_78:
  122|  10.7M|{
  123|  10.7M|    if (mutex == nullptr) {
  ------------------
  |  Branch (123:9): [True: 168k, False: 10.5M]
  ------------------
  124|   168k|        mutex = &globalMutex;
  125|   168k|    }
  126|  10.7M|    mutex->unlock();
  127|  10.7M|}
_ZN6icu_7820umtx_initImplPreInitERNS_9UInitOnceE:
  145|     28|umtx_initImplPreInit(UInitOnce &uio) {
  146|     28|    std::call_once(*pInitFlag, umtx_init);
  147|     28|    std::unique_lock<std::mutex> lock(*initMutex);
  148|     28|    if (umtx_loadAcquire(uio.fState) == 0) {
  ------------------
  |  Branch (148:9): [True: 28, False: 0]
  ------------------
  149|     28|        umtx_storeRelease(uio.fState, 1);
  150|     28|        return true;      // Caller will next call the init function.
  151|     28|    } 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|     28|}
_ZN6icu_7821umtx_initImplPostInitERNS_9UInitOnceE:
  170|     28|umtx_initImplPostInit(UInitOnce &uio) {
  171|     28|    {
  172|     28|        std::unique_lock<std::mutex> lock(*initMutex);
  173|     28|        umtx_storeRelease(uio.fState, 2);
  174|     28|    }
  175|     28|    initCondition->notify_all();
  176|     28|}
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_789UInitOnce5resetEv:
  101|   419k|    void reset() {fState = 0;}
_ZN6icu_789UInitOnce7isResetEv:
  102|  19.1k|    UBool isReset() {return umtx_loadAcquire(fState) == 0;}
_ZN6icu_786UMutex4lockEv:
  229|  10.7M|    void lock() {
  230|  10.7M|        std::mutex *m = fMutex.load(std::memory_order_acquire);
  231|  10.7M|        if (m == nullptr) { m = getMutex(); }
  ------------------
  |  Branch (231:13): [True: 14, False: 10.7M]
  ------------------
  232|  10.7M|        m->lock();
  233|  10.7M|    }
_ZN6icu_786UMutex6unlockEv:
  234|  10.7M|    void unlock() { fMutex.load(std::memory_order_relaxed)->unlock(); }
_ZN6icu_7816umtx_loadAcquireERNSt3__16atomicIiEE:
   75|  4.46M|inline int32_t umtx_loadAcquire(u_atomic_int32_t &var) {
   76|  4.46M|    return var.load(std::memory_order_acquire);
   77|  4.46M|}
_ZN6icu_7817umtx_storeReleaseERNSt3__16atomicIiEEi:
   79|   202k|inline void umtx_storeRelease(u_atomic_int32_t &var, int32_t val) {
   80|   202k|    var.store(val, std::memory_order_release);
   81|   202k|}
_ZN6icu_7815umtx_atomic_incEPNSt3__16atomicIiEE:
   83|  1.14M|inline int32_t umtx_atomic_inc(u_atomic_int32_t *var) {
   84|  1.14M|    return var->fetch_add(1) + 1;
   85|  1.14M|}
_ZN6icu_7815umtx_atomic_decEPNSt3__16atomicIiEE:
   87|  1.68M|inline int32_t umtx_atomic_dec(u_atomic_int32_t *var) {
   88|  1.68M|    return var->fetch_sub(1) - 1;
   89|  1.68M|}
_ZN6icu_7813umtx_initOnceERNS_9UInitOnceEPFvvE:
  123|   265k|inline void umtx_initOnce(UInitOnce &uio, void (U_CALLCONV *fp)()) {
  124|   265k|    if (umtx_loadAcquire(uio.fState) == 2) {
  ------------------
  |  Branch (124:9): [True: 265k, False: 12]
  ------------------
  125|   265k|        return;
  126|   265k|    }
  127|     12|    if (umtx_initImplPreInit(uio)) {
  ------------------
  |  Branch (127:9): [True: 12, False: 0]
  ------------------
  128|     12|        (*fp)();
  129|     12|        umtx_initImplPostInit(uio);
  130|     12|    }
  131|     12|}
_ZN6icu_7813umtx_initOnceERNS_9UInitOnceEPFvR10UErrorCodeES3_:
  135|  1.57M|inline void umtx_initOnce(UInitOnce &uio, void (U_CALLCONV *fp)(UErrorCode &), UErrorCode &errCode) {
  136|  1.57M|    if (U_FAILURE(errCode)) {
  ------------------
  |  Branch (136:9): [True: 417, False: 1.56M]
  ------------------
  137|    417|        return;
  138|    417|    }
  139|  1.56M|    if (umtx_loadAcquire(uio.fState) != 2 && umtx_initImplPreInit(uio)) {
  ------------------
  |  Branch (139:9): [True: 16, False: 1.56M]
  |  Branch (139:46): [True: 16, False: 0]
  ------------------
  140|       |        // We run the initialization.
  141|     16|        (*fp)(errCode);
  142|     16|        uio.fErrCode = errCode;
  143|     16|        umtx_initImplPostInit(uio);
  144|  1.56M|    } else {
  145|       |        // Someone else already ran the initialization.
  146|  1.56M|        if (U_FAILURE(uio.fErrCode)) {
  ------------------
  |  Branch (146:13): [True: 0, False: 1.56M]
  ------------------
  147|      0|            errCode = uio.fErrCode;
  148|      0|        }
  149|  1.56M|    }
  150|  1.56M|}

_ZN6icu_7823UnicodeStringAppendableC2ERNS_13UnicodeStringE:
  163|   100k|    explicit UnicodeStringAppendable(UnicodeString &s) : str(s) {}

_ZN6icu_788ByteSinkC2Ev:
   59|  8.55M|  ByteSink() { }
_ZNK6icu_7820CheckedArrayByteSink10OverflowedEv:
  240|   327k|  UBool Overflowed() const { return overflowed_; }
_ZNK6icu_7820CheckedArrayByteSink21NumberOfBytesAppendedEv:
  248|  1.15M|  int32_t NumberOfBytesAppended() const { return appended_; }

_ZN6icu_789BytesTrie5resetEv:
   96|     27|    BytesTrie &reset() {
   97|     27|        pos_=bytes_;
   98|     27|        remainingMatchLength_=-1;
   99|     27|        return *this;
  100|     27|    }
_ZNK6icu_789BytesTrie8getValueEv:
  246|  38.4k|    inline int32_t getValue() const {
  247|  38.4k|        const uint8_t *pos=pos_;
  248|  38.4k|        int32_t leadByte=*pos++;
  249|       |        // U_ASSERT(leadByte>=kMinValueLead);
  250|  38.4k|        return readValue(pos, leadByte>>1);
  251|  38.4k|    }
_ZN6icu_789BytesTrieC2EPKv:
   72|      1|            : ownedArray_(nullptr), bytes_(static_cast<const uint8_t *>(trieBytes)),
   73|      1|              pos_(bytes_), remainingMatchLength_(-1) {}
_ZN6icu_789BytesTrieC2ERKS0_:
   88|  38.4k|            : ownedArray_(nullptr), bytes_(other.bytes_),
   89|  38.4k|              pos_(other.pos_), remainingMatchLength_(other.remainingMatchLength_) {}
_ZNK6icu_789BytesTrie10getState64Ev:
  110|  51.2k|    uint64_t getState64() const {
  111|  51.2k|        return (static_cast<uint64_t>(remainingMatchLength_ + 2) << kState64RemainingShift) |
  112|  51.2k|            static_cast<uint64_t>(pos_ - bytes_);
  113|  51.2k|    }
_ZN6icu_789BytesTrie14resetToState64Em:
  129|  39.2k|    BytesTrie &resetToState64(uint64_t state) {
  130|  39.2k|        remainingMatchLength_ = static_cast<int32_t>(state >> kState64RemainingShift) - 2;
  131|  39.2k|        pos_ = bytes_ + (state & kState64PosMask);
  132|  39.2k|        return *this;
  133|  39.2k|    }
_ZN6icu_789BytesTrie4stopEv:
  399|  9.73k|    inline void stop() {
  400|  9.73k|        pos_=nullptr;
  401|  9.73k|    }
_ZN6icu_789BytesTrie9skipValueEPKhi:
  406|  88.6k|    static inline const uint8_t *skipValue(const uint8_t *pos, int32_t leadByte) {
  407|       |        // U_ASSERT(leadByte>=kMinValueLead);
  408|  88.6k|        if(leadByte>=(kMinTwoByteValueLead<<1)) {
  ------------------
  |  Branch (408:12): [True: 68.3k, False: 20.2k]
  ------------------
  409|  68.3k|            if(leadByte<(kMinThreeByteValueLead<<1)) {
  ------------------
  |  Branch (409:16): [True: 65.3k, False: 3.06k]
  ------------------
  410|  65.3k|                ++pos;
  411|  65.3k|            } else if(leadByte<(kFourByteValueLead<<1)) {
  ------------------
  |  Branch (411:23): [True: 3.06k, False: 0]
  ------------------
  412|  3.06k|                pos+=2;
  413|  3.06k|            } else {
  414|      0|                pos+=3+((leadByte>>1)&1);
  415|      0|            }
  416|  68.3k|        }
  417|  88.6k|        return pos;
  418|  88.6k|    }
_ZN6icu_789BytesTrie9skipValueEPKh:
  419|  88.0k|    static inline const uint8_t *skipValue(const uint8_t *pos) {
  420|  88.0k|        int32_t leadByte=*pos++;
  421|  88.0k|        return skipValue(pos, leadByte);
  422|  88.0k|    }
_ZN6icu_789BytesTrie9skipDeltaEPKh:
  427|  75.8k|    static inline const uint8_t *skipDelta(const uint8_t *pos) {
  428|  75.8k|        int32_t delta=*pos++;
  429|  75.8k|        if(delta>=kMinTwoByteDeltaLead) {
  ------------------
  |  Branch (429:12): [True: 27.1k, False: 48.6k]
  ------------------
  430|  27.1k|            if(delta<kMinThreeByteDeltaLead) {
  ------------------
  |  Branch (430:16): [True: 24.7k, False: 2.44k]
  ------------------
  431|  24.7k|                ++pos;
  432|  24.7k|            } else if(delta<kFourByteDeltaLead) {
  ------------------
  |  Branch (432:23): [True: 2.44k, False: 0]
  ------------------
  433|  2.44k|                pos+=2;
  434|  2.44k|            } else {
  435|      0|                pos+=3+(delta&1);
  436|      0|            }
  437|  27.1k|        }
  438|  75.8k|        return pos;
  439|  75.8k|    }
_ZN6icu_789BytesTrie11valueResultEi:
  441|  6.72k|    static inline UStringTrieResult valueResult(int32_t node) {
  442|  6.72k|        return static_cast<UStringTrieResult>(USTRINGTRIE_INTERMEDIATE_VALUE - (node & kValueIsFinal));
  443|  6.72k|    }

_ZNK6icu_789Char16PtrcvPDsEv:
   97|  54.1k|    inline operator char16_t *() const { return get(); }
_ZNK6icu_7814ConstChar16PtrcvPKDsEv:
  205|  8.48M|    inline operator const char16_t *() const { return get(); }
_ZNK6icu_789Char16Ptr3getEv:
  133|  54.1k|char16_t *Char16Ptr::get() const { return p_; }
_ZNK6icu_7814ConstChar16Ptr3getEv:
  241|  8.48M|const char16_t *ConstChar16Ptr::get() const { return p_; }
_ZN6icu_788internal15toU16StringViewENSt3__117basic_string_viewIDsNS1_11char_traitsIDsEEEE:
  400|   280k|inline std::u16string_view toU16StringView(std::u16string_view sv) { return sv; }
_ZN6icu_7814ConstChar16PtrC2EPKDs:
  229|  8.48M|ConstChar16Ptr::ConstChar16Ptr(const char16_t *p) : p_(p) {}
_ZN6icu_7814ConstChar16PtrD2Ev:
  237|  8.48M|ConstChar16Ptr::~ConstChar16Ptr() {
  238|  8.48M|    U_ALIASING_BARRIER(p_);
  ------------------
  |  |   35|  8.48M|#   define U_ALIASING_BARRIER(ptr) asm volatile("" : : "rm"(ptr) : "memory")
  ------------------
  239|  8.48M|}
_ZN6icu_789Char16PtrC2EPDs:
  121|  13.5k|Char16Ptr::Char16Ptr(char16_t *p) : p_(p) {}
_ZN6icu_789Char16PtrD2Ev:
  129|  13.5k|Char16Ptr::~Char16Ptr() {
  130|  13.5k|    U_ALIASING_BARRIER(p_);
  ------------------
  |  |   35|  13.5k|#   define U_ALIASING_BARRIER(ptr) asm volatile("" : : "rm"(ptr) : "memory")
  ------------------
  131|  13.5k|}
_ZN6icu_788internal23toU16StringViewNullableIA6_DsvEENSt3__117basic_string_viewIDsNS3_11char_traitsIDsEEEERKT_:
  430|    225|inline std::u16string_view toU16StringViewNullable(const T& text) {
  431|    225|    return toU16StringView(text);
  432|    225|}
_ZN6icu_788internal23toU16StringViewNullableIA4_DsvEENSt3__117basic_string_viewIDsNS3_11char_traitsIDsEEEERKT_:
  430|      1|inline std::u16string_view toU16StringViewNullable(const T& text) {
  431|      1|    return toU16StringView(text);
  432|      1|}
_ZN6icu_788internal23toU16StringViewNullableIA3_DsvEENSt3__117basic_string_viewIDsNS3_11char_traitsIDsEEEERKT_:
  430|      2|inline std::u16string_view toU16StringViewNullable(const T& text) {
  431|      2|    return toU16StringView(text);
  432|      2|}
_ZN6icu_788internal23toU16StringViewNullableIA14_DsvEENSt3__117basic_string_viewIDsNS3_11char_traitsIDsEEEERKT_:
  430|  20.1k|inline std::u16string_view toU16StringViewNullable(const T& text) {
  431|  20.1k|    return toU16StringView(text);
  432|  20.1k|}
_ZN6icu_788internal23toU16StringViewNullableIA5_DsvEENSt3__117basic_string_viewIDsNS3_11char_traitsIDsEEEERKT_:
  430|      1|inline std::u16string_view toU16StringViewNullable(const T& text) {
  431|      1|    return toU16StringView(text);
  432|      1|}
_ZN6icu_788internal23toU16StringViewNullableIPKDsvvEENSt3__117basic_string_viewIDsNS4_11char_traitsIDsEEEERKT_:
  441|  57.7k|inline std::u16string_view toU16StringViewNullable(const T& text) {
  442|  57.7k|    if (text == nullptr) return {};  // For backward compatibility.
  ------------------
  |  Branch (442:9): [True: 0, False: 57.7k]
  ------------------
  443|  57.7k|    return toU16StringView(text);
  444|  57.7k|}
_ZN6icu_788internal23toU16StringViewNullableIA2_DsvEENSt3__117basic_string_viewIDsNS3_11char_traitsIDsEEEERKT_:
  430|   202k|inline std::u16string_view toU16StringViewNullable(const T& text) {
  431|   202k|    return toU16StringView(text);
  432|   202k|}

_ZN6icu_787EnumSetI27UDateFormatBooleanAttributeLj0ELj4EEC2Ev:
   36|  89.7k|    inline EnumSet() : fBools(0) {}
_ZN6icu_787EnumSetI27UDateFormatBooleanAttributeLj0ELj4EED2Ev:
   38|  89.7k|    inline ~EnumSet() {}
_ZNK6icu_787EnumSetI27UDateFormatBooleanAttributeLj0ELj4EE12isValidValueEi:
   47|   315k|    inline UBool isValidValue(int32_t v) const { return (v==0||v==1); }
  ------------------
  |  Branch (47:58): [True: 0, False: 315k]
  |  Branch (47:64): [True: 315k, False: 0]
  ------------------
_ZN6icu_787EnumSetI27UDateFormatBooleanAttributeLj0ELj4EE3setES1_i:
   44|   315k|    inline void set(T toSet, int32_t v) { fBools=(fBools&(~flag(toSet)))|(v?(flag(toSet)):0); }
  ------------------
  |  Branch (44:75): [True: 315k, False: 0]
  ------------------
_ZNK6icu_787EnumSetI27UDateFormatBooleanAttributeLj0ELj4EE4flagES1_:
   59|   630k|    inline uint32_t flag(T toCheck) const { return (1<<(toCheck-minValue)); }

_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_24DateTimePatternGeneratorEEC2EPS1_:
  200|  13.8k|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7816LocalPointerBaseINS_24DateTimePatternGeneratorEEC2EPS1_:
   82|  27.6k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZNK6icu_7816LocalPointerBaseINS_24DateTimePatternGeneratorEEptEv:
  134|  13.3k|    T *operator->() const { return ptr; }
_ZN6icu_7812LocalPointerINS_18DateFmtBestPatternEEC2EPS1_R10UErrorCode:
  214|  9.83k|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|  9.83k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 9.83k]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|  9.83k|    }
_ZN6icu_7816LocalPointerBaseINS_18DateFmtBestPatternEEC2EPS1_:
   82|  9.83k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7816LocalPointerBaseINS_18DateFmtBestPatternEE6orphanEv:
  141|  9.83k|    T *orphan() {
  142|  9.83k|        T *p=ptr;
  143|  9.83k|        ptr=nullptr;
  144|  9.83k|        return p;
  145|  9.83k|    }
_ZN6icu_7812LocalPointerINS_18DateFmtBestPatternEED2Ev:
  245|  9.83k|    ~LocalPointer() {
  246|  9.83k|        delete LocalPointerBase<T>::ptr;
  247|  9.83k|    }
_ZN6icu_7816LocalPointerBaseINS_18DateFmtBestPatternEED2Ev:
   88|  9.83k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7812LocalPointerINS_24DateTimePatternGeneratorEED2Ev:
  245|  27.6k|    ~LocalPointer() {
  246|  27.6k|        delete LocalPointerBase<T>::ptr;
  247|  27.6k|    }
_ZN6icu_7816LocalPointerBaseINS_24DateTimePatternGeneratorEED2Ev:
   88|  27.6k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7812LocalPointerINS_8CalendarEEC2EPS1_:
  200|  9.47k|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7816LocalPointerBaseINS_8CalendarEEC2EPS1_:
   82|  9.47k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_8CalendarEED2Ev:
  245|  9.47k|    ~LocalPointer() {
  246|  9.47k|        delete LocalPointerBase<T>::ptr;
  247|  9.47k|    }
_ZN6icu_7816LocalPointerBaseINS_8CalendarEED2Ev:
   88|  9.47k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7816LocalPointerBaseINS_8CalendarEE6orphanEv:
  141|  9.47k|    T *orphan() {
  142|  9.47k|        T *p=ptr;
  143|  9.47k|        ptr=nullptr;
  144|  9.47k|        return p;
  145|  9.47k|    }
_ZN6icu_7812LocalPointerINS_10DateFormatEEC2EPS1_R10UErrorCode:
  214|  15.5k|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|  15.5k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 15.5k]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|  15.5k|    }
_ZN6icu_7816LocalPointerBaseINS_10DateFormatEEC2EPS1_:
   82|  15.5k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_10DateFormatEED2Ev:
  245|  15.5k|    ~LocalPointer() {
  246|  15.5k|        delete LocalPointerBase<T>::ptr;
  247|  15.5k|    }
_ZN6icu_7816LocalPointerBaseINS_10DateFormatEED2Ev:
   88|  15.5k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7816LocalPointerBaseINS_10DateFormatEE6orphanEv:
  141|  15.5k|    T *orphan() {
  142|  15.5k|        T *p=ptr;
  143|  15.5k|        ptr=nullptr;
  144|  15.5k|        return p;
  145|  15.5k|    }
_ZN6icu_7816LocalPointerBaseIiEC2EPi:
   82|    286|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7816LocalPointerBaseIiE6orphanEv:
  141|    276|    T *orphan() {
  142|    276|        T *p=ptr;
  143|    276|        ptr=nullptr;
  144|    276|        return p;
  145|    276|    }
_ZN6icu_7816LocalPointerBaseIiED2Ev:
   88|    286|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7812LocalPointerINS_24DateTimePatternGeneratorEEC2EPS1_R10UErrorCode:
  214|  13.8k|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|  13.8k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 13.8k]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|  13.8k|    }
_ZN6icu_7816LocalPointerBaseINS_24DateTimePatternGeneratorEE6orphanEv:
  141|  13.3k|    T *orphan() {
  142|  13.3k|        T *p=ptr;
  143|  13.3k|        ptr=nullptr;
  144|  13.3k|        return p;
  145|  13.3k|    }
_ZN6icu_788internal16LocalOpenPointerI15UResourceBundleXadL_Z13ures_close_78EEEC2EPS2_:
  567|  2.35M|    explicit LocalOpenPointer(Type *p=nullptr) : LocalPointerBase<Type>(p) {}
_ZN6icu_7816LocalPointerBaseI15UResourceBundleEC2EPS1_:
   82|  2.35M|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_788internal16LocalOpenPointerI15UResourceBundleXadL_Z13ures_close_78EEED2Ev:
  575|  2.35M|    ~LocalOpenPointer() { if (ptr != nullptr) { closeFunction(ptr); } }
  ------------------
  |  Branch (575:31): [True: 1.37M, False: 972k]
  ------------------
_ZN6icu_7816LocalPointerBaseI15UResourceBundleED2Ev:
   88|  2.35M|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseI15UResourceBundleE8getAliasEv:
  122|  4.25M|    T *getAlias() const { return ptr; }
_ZN6icu_7812LocalPointerINS_9HashtableEEC2EPS1_R10UErrorCode:
  214|  13.4k|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|  13.4k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 13.4k]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|  13.4k|    }
_ZN6icu_7816LocalPointerBaseINS_9HashtableEEC2EPS1_:
   82|  13.4k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_9HashtableEED2Ev:
  245|  13.4k|    ~LocalPointer() {
  246|  13.4k|        delete LocalPointerBase<T>::ptr;
  247|  13.4k|    }
_ZN6icu_7816LocalPointerBaseINS_9HashtableEED2Ev:
   88|  13.4k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7816LocalPointerBaseINS_9HashtableEE6orphanEv:
  141|  13.4k|    T *orphan() {
  142|  13.4k|        T *p=ptr;
  143|  13.4k|        ptr=nullptr;
  144|  13.4k|        return p;
  145|  13.4k|    }
_ZN6icu_788internal16LocalOpenPointerI15UResourceBundleXadL_Z13ures_close_78EEE12adoptInsteadEPS2_:
  595|   235k|    void adoptInstead(Type *p) {
  596|   235k|        if (ptr != nullptr) { closeFunction(ptr); }
  ------------------
  |  Branch (596:13): [True: 37.0k, False: 198k]
  ------------------
  597|   235k|        ptr=p;
  598|   235k|    }
_ZNK6icu_7816LocalPointerBaseI15UResourceBundleE6isNullEv:
   94|  26.1k|    UBool isNull() const { return ptr==nullptr; }
_ZN6icu_7816LocalPointerBaseI15UResourceBundleE6orphanEv:
  141|  92.5k|    T *orphan() {
  142|  92.5k|        T *p=ptr;
  143|  92.5k|        ptr=nullptr;
  144|  92.5k|        return p;
  145|  92.5k|    }
_ZN6icu_7816LocalPointerBaseINS_17StringEnumerationEEC2EPS1_:
   82|    721|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_17StringEnumerationEED2Ev:
  245|    721|    ~LocalPointer() {
  246|    721|        delete LocalPointerBase<T>::ptr;
  247|    721|    }
_ZN6icu_7816LocalPointerBaseINS_17StringEnumerationEED2Ev:
   88|    721|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseINS_11PtnSkeletonEEptEv:
  134|  4.75M|    T *operator->() const { return ptr; }
_ZNK6icu_7816LocalPointerBaseINS_7PtnElemEE8getAliasEv:
  122|  12.8M|    T *getAlias() const { return ptr; }
_ZN6icu_7812LocalPointerINS_7PtnElemEEC2EPS1_R10UErrorCode:
  214|   863k|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|   863k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 863k]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|   863k|    }
_ZN6icu_7816LocalPointerBaseINS_7PtnElemEEC2EPS1_:
   82|  1.72M|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_7PtnElemEED2Ev:
  245|  1.72M|    ~LocalPointer() {
  246|  1.72M|        delete LocalPointerBase<T>::ptr;
  247|  1.72M|    }
_ZN6icu_7816LocalPointerBaseINS_7PtnElemEED2Ev:
   88|  1.72M|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseINS_7PtnElemEEptEv:
  134|  1.72M|    T *operator->() const { return ptr; }
_ZN6icu_7812LocalPointerINS_11PtnSkeletonEE29adoptInsteadAndCheckErrorCodeEPS1_R10UErrorCode:
  319|   863k|    void adoptInsteadAndCheckErrorCode(T *p, UErrorCode &errorCode) {
  320|   863k|        if(U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (320:12): [True: 863k, False: 0]
  ------------------
  321|   863k|            delete LocalPointerBase<T>::ptr;
  322|   863k|            LocalPointerBase<T>::ptr=p;
  323|   863k|            if(p==nullptr) {
  ------------------
  |  Branch (323:16): [True: 0, False: 863k]
  ------------------
  324|      0|                errorCode=U_MEMORY_ALLOCATION_ERROR;
  325|      0|            }
  326|   863k|        } else {
  327|      0|            delete p;
  328|      0|        }
  329|   863k|    }
_ZNK6icu_7816LocalPointerBaseINS_11PtnSkeletonEEdeEv:
  128|  2.09M|    T &operator*() const { return *ptr; }
_ZN6icu_7816LocalPointerBaseINS_7PtnElemEE6orphanEv:
  141|   863k|    T *orphan() {
  142|   863k|        T *p=ptr;
  143|   863k|        ptr=nullptr;
  144|   863k|        return p;
  145|   863k|    }
_ZN6icu_7812LocalPointerINS_7PtnElemEE12adoptInsteadEPS1_:
  300|   629k|    void adoptInstead(T *p) {
  301|   629k|        delete LocalPointerBase<T>::ptr;
  302|   629k|        LocalPointerBase<T>::ptr=p;
  303|   629k|    }
_ZNK6icu_7816LocalPointerBaseINS_7PtnElemEEneEPKS1_:
  116|  6.96M|    bool operator!=(const T *other) const { return ptr!=other; }
_ZNK6icu_7816LocalPointerBaseINS_11PtnSkeletonEE8getAliasEv:
  122|   101k|    T *getAlias() const { return ptr; }
_ZN6icu_7812LocalPointerINS_15DateTimeMatcherEEC2EPS1_:
  200|  33.8k|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7816LocalPointerBaseINS_15DateTimeMatcherEEC2EPS1_:
   82|  33.8k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_15DateTimeMatcherEED2Ev:
  245|  33.8k|    ~LocalPointer() {
  246|  33.8k|        delete LocalPointerBase<T>::ptr;
  247|  33.8k|    }
_ZN6icu_7816LocalPointerBaseINS_15DateTimeMatcherEED2Ev:
   88|  33.8k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7812LocalPointerINS_15DateTimeMatcherEE29adoptInsteadAndCheckErrorCodeEPS1_R10UErrorCode:
  319|  33.8k|    void adoptInsteadAndCheckErrorCode(T *p, UErrorCode &errorCode) {
  320|  33.8k|        if(U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (320:12): [True: 33.8k, False: 0]
  ------------------
  321|  33.8k|            delete LocalPointerBase<T>::ptr;
  322|  33.8k|            LocalPointerBase<T>::ptr=p;
  323|  33.8k|            if(p==nullptr) {
  ------------------
  |  Branch (323:16): [True: 0, False: 33.8k]
  ------------------
  324|      0|                errorCode=U_MEMORY_ALLOCATION_ERROR;
  325|      0|            }
  326|  33.8k|        } else {
  327|      0|            delete p;
  328|      0|        }
  329|  33.8k|    }
_ZNK6icu_7816LocalPointerBaseINS_15DateTimeMatcherEEptEv:
  134|  2.09M|    T *operator->() const { return ptr; }
_ZNK6icu_7816LocalPointerBaseINS_15DateTimeMatcherEEdeEv:
  128|  2.09M|    T &operator*() const { return *ptr; }
_ZN6icu_7812LocalPointerINS_11PtnSkeletonEEC2EPS1_:
  200|   863k|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7816LocalPointerBaseINS_11PtnSkeletonEEC2EPS1_:
   82|   863k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_7PtnElemEEC2EPS1_:
  200|   863k|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7812LocalPointerINS_11PtnSkeletonEED2Ev:
  245|   863k|    ~LocalPointer() {
  246|   863k|        delete LocalPointerBase<T>::ptr;
  247|   863k|    }
_ZN6icu_7816LocalPointerBaseINS_11PtnSkeletonEED2Ev:
   88|   863k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7812LocalPointerINS_7UVectorEEC2EPS1_:
  200|  34.8k|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7816LocalPointerBaseINS_7UVectorEEC2EPS1_:
   82|  34.9k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_7UVectorEED2Ev:
  245|  34.9k|    ~LocalPointer() {
  246|  34.9k|        delete LocalPointerBase<T>::ptr;
  247|  34.9k|    }
_ZN6icu_7816LocalPointerBaseINS_7UVectorEED2Ev:
   88|  34.9k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7812LocalPointerINS_7UVectorEE29adoptInsteadAndCheckErrorCodeEPS1_R10UErrorCode:
  319|    238|    void adoptInsteadAndCheckErrorCode(T *p, UErrorCode &errorCode) {
  320|    238|        if(U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (320:12): [True: 238, False: 0]
  ------------------
  321|    238|            delete LocalPointerBase<T>::ptr;
  322|    238|            LocalPointerBase<T>::ptr=p;
  323|    238|            if(p==nullptr) {
  ------------------
  |  Branch (323:16): [True: 0, False: 238]
  ------------------
  324|      0|                errorCode=U_MEMORY_ALLOCATION_ERROR;
  325|      0|            }
  326|    238|        } else {
  327|      0|            delete p;
  328|      0|        }
  329|    238|    }
_ZN6icu_7812LocalPointerINS_13UnicodeStringEEC2EPS1_R10UErrorCode:
  214|   365k|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|   365k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 365k]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|   365k|    }
_ZN6icu_7816LocalPointerBaseINS_13UnicodeStringEEC2EPS1_:
   82|   746k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_13UnicodeStringEED2Ev:
  245|   499k|    ~LocalPointer() {
  246|   499k|        delete LocalPointerBase<T>::ptr;
  247|   499k|    }
_ZN6icu_7816LocalPointerBaseINS_13UnicodeStringEED2Ev:
   88|   746k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseINS_7UVectorEEptEv:
  134|  6.25k|    T *operator->() const { return ptr; }
_ZNK6icu_7816LocalPointerBaseINS_13UnicodeStringEE8getAliasEv:
  122|   247k|    T *getAlias() const { return ptr; }
_ZN6icu_7812LocalPointerINS_7UVectorEE12adoptInsteadEPS1_:
  300|    238|    void adoptInstead(T *p) {
  301|    238|        delete LocalPointerBase<T>::ptr;
  302|    238|        LocalPointerBase<T>::ptr=p;
  303|    238|    }
_ZN6icu_7816LocalPointerBaseINS_13UnicodeStringEE6orphanEv:
  141|   746k|    T *orphan() {
  142|   746k|        T *p=ptr;
  143|   746k|        ptr=nullptr;
  144|   746k|        return p;
  145|   746k|    }
_ZNK6icu_7816LocalPointerBaseINS_7UVectorEE6isNullEv:
   94|   249k|    UBool isNull() const { return ptr==nullptr; }
_ZNK6icu_7816LocalPointerBaseINS_18CurrencyPluralInfoEE6isNullEv:
   94|   665k|    UBool isNull() const { return ptr==nullptr; }
_ZN6icu_7812LocalPointerINS_18CurrencyPluralInfoEE12adoptInsteadEPS1_:
  300|   159k|    void adoptInstead(T *p) {
  301|   159k|        delete LocalPointerBase<T>::ptr;
  302|   159k|        LocalPointerBase<T>::ptr=p;
  303|   159k|    }
_ZN6icu_7812LocalPointerINS_15NumberingSystemEEC2EPS1_R10UErrorCode:
  214|   185k|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|   185k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 169, False: 185k]
  |  Branch (215:26): [True: 0, False: 169]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|   185k|    }
_ZN6icu_7816LocalPointerBaseINS_15NumberingSystemEEC2EPS1_:
   82|   260k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_15NumberingSystemEED2Ev:
  245|   260k|    ~LocalPointer() {
  246|   260k|        delete LocalPointerBase<T>::ptr;
  247|   260k|    }
_ZN6icu_7816LocalPointerBaseINS_15NumberingSystemEED2Ev:
   88|   260k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseINS_15NumberingSystemEEptEv:
  134|   449k|    T *operator->() const { return ptr; }
_ZN6icu_7816LocalPointerBaseINS_15NumberingSystemEE6orphanEv:
  141|   176k|    T *orphan() {
  142|   176k|        T *p=ptr;
  143|   176k|        ptr=nullptr;
  144|   176k|        return p;
  145|   176k|    }
_ZN6icu_7812LocalPointerINS_7UVectorEEC2EPS1_R10UErrorCode:
  214|    145|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|    145|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 145]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|    145|    }
_ZN6icu_7816LocalPointerBaseINS_7UVectorEE6orphanEv:
  141|    143|    T *orphan() {
  142|    143|        T *p=ptr;
  143|    143|        ptr=nullptr;
  144|    143|        return p;
  145|    143|    }
_ZN6icu_788internal16LocalOpenPointerI10UHashtableXadL_Z14uhash_close_78EEEC2EPS2_:
  567|     41|    explicit LocalOpenPointer(Type *p=nullptr) : LocalPointerBase<Type>(p) {}
_ZN6icu_7816LocalPointerBaseI10UHashtableEC2EPS1_:
   82|     41|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_788internal16LocalOpenPointerI10UHashtableXadL_Z14uhash_close_78EEED2Ev:
  575|      4|    ~LocalOpenPointer() { if (ptr != nullptr) { closeFunction(ptr); } }
  ------------------
  |  Branch (575:31): [True: 0, False: 4]
  ------------------
_ZN6icu_7816LocalPointerBaseI10UHashtableED2Ev:
   88|      4|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseI10UHashtableE8getAliasEv:
  122|  9.99k|    T *getAlias() const { return ptr; }
_ZN6icu_7812LocalPointerINS_13UnicodeStringEEC2EPS1_:
  200|   134k|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7812LocalPointerINS_6RegionEEC2EPS1_R10UErrorCode:
  214|    392|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|    392|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 392]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|    392|    }
_ZN6icu_7816LocalPointerBaseINS_6RegionEEC2EPS1_:
   82|    392|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_6RegionEED2Ev:
  245|    392|    ~LocalPointer() {
  246|    392|        delete LocalPointerBase<T>::ptr;
  247|    392|    }
_ZN6icu_7816LocalPointerBaseINS_6RegionEED2Ev:
   88|    392|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseINS_6RegionEEptEv:
  134|  2.40k|    T *operator->() const { return ptr; }
_ZNK6icu_7816LocalPointerBaseINS_6RegionEE8getAliasEv:
  122|     31|    T *getAlias() const { return ptr; }
_ZN6icu_7816LocalPointerBaseINS_6RegionEE6orphanEv:
  141|    392|    T *orphan() {
  142|    392|        T *p=ptr;
  143|    392|        ptr=nullptr;
  144|    392|        return p;
  145|    392|    }
_ZNK6icu_7816LocalPointerBaseINS_13UnicodeStringEEdeEv:
  128|     99|    T &operator*() const { return *ptr; }
_ZNK6icu_7816LocalPointerBaseINS_13UnicodeStringEEptEv:
  134|   135k|    T *operator->() const { return ptr; }
_ZN6icu_7816LocalPointerBaseI10UHashtableE6orphanEv:
  141|      4|    T *orphan() {
  142|      4|        T *p=ptr;
  143|      4|        ptr=nullptr;
  144|      4|        return p;
  145|      4|    }
_ZNK6icu_7816LocalPointerBaseINS_17StringEnumerationEEptEv:
  134|    721|    T *operator->() const { return ptr; }
_ZN6icu_7812LocalPointerINS_17StringEnumerationEEC2EPS1_:
  200|    721|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7812LocalPointerINS_16SimpleDateFormat10NSOverrideEEC2EPS2_:
  200|  1.48k|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7816LocalPointerBaseINS_16SimpleDateFormat10NSOverrideEEC2EPS2_:
   82|  1.48k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_16SimpleDateFormat10NSOverrideEED2Ev:
  245|  1.48k|    ~LocalPointer() {
  246|  1.48k|        delete LocalPointerBase<T>::ptr;
  247|  1.48k|    }
_ZN6icu_7816LocalPointerBaseINS_16SimpleDateFormat10NSOverrideEED2Ev:
   88|  1.48k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseINS_16SimpleDateFormat10NSOverrideEE6isNullEv:
   94|  1.48k|    UBool isNull() const { return ptr==nullptr; }
_ZNK6icu_7816LocalPointerBaseINS_16SimpleDateFormat10NSOverrideEEptEv:
  134|  5.92k|    T *operator->() const { return ptr; }
_ZN6icu_7816LocalPointerBaseINS_16SimpleDateFormat10NSOverrideEE6orphanEv:
  141|  1.47k|    T *orphan() {
  142|  1.47k|        T *p=ptr;
  143|  1.47k|        ptr=nullptr;
  144|  1.47k|        return p;
  145|  1.47k|    }
_ZN6icu_7812LocalPointerINS_12NumberFormatEEC2EPS1_:
  200|  9.49k|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7816LocalPointerBaseINS_12NumberFormatEEC2EPS1_:
   82|  9.49k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_12NumberFormatEED2Ev:
  245|  9.49k|    ~LocalPointer() {
  246|  9.49k|        delete LocalPointerBase<T>::ptr;
  247|  9.49k|    }
_ZN6icu_7816LocalPointerBaseINS_12NumberFormatEED2Ev:
   88|  9.49k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7816LocalPointerBaseINS_12NumberFormatEE6orphanEv:
  141|  9.49k|    T *orphan() {
  142|  9.49k|        T *p=ptr;
  143|  9.49k|        ptr=nullptr;
  144|  9.49k|        return p;
  145|  9.49k|    }
_ZNK6icu_7816LocalPointerBaseINS_12NumberFormatEEptEv:
  134|  9.49k|    T *operator->() const { return ptr; }
_ZN6icu_7812LocalPointerINS_13DecimalFormatEEC2EPS1_:
  200|  66.5k|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7816LocalPointerBaseINS_13DecimalFormatEEC2EPS1_:
   82|  66.5k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_13DecimalFormatEED2Ev:
  245|  66.5k|    ~LocalPointer() {
  246|  66.5k|        delete LocalPointerBase<T>::ptr;
  247|  66.5k|    }
_ZN6icu_7816LocalPointerBaseINS_13DecimalFormatEED2Ev:
   88|  66.5k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseINS_13DecimalFormatEEptEv:
  134|  57.3k|    T *operator->() const { return ptr; }
_ZN6icu_7812LocalPointerINS_20TimeZoneGenericNamesEEC2EPS1_R10UErrorCode:
  214|  1.26k|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|  1.26k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 1.26k]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|  1.26k|    }
_ZN6icu_7816LocalPointerBaseINS_20TimeZoneGenericNamesEEC2EPS1_:
   82|  1.26k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_20TimeZoneGenericNamesEED2Ev:
  245|  1.26k|    ~LocalPointer() {
  246|  1.26k|        delete LocalPointerBase<T>::ptr;
  247|  1.26k|    }
_ZN6icu_7816LocalPointerBaseINS_20TimeZoneGenericNamesEED2Ev:
   88|  1.26k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseINS_20TimeZoneGenericNamesEEptEv:
  134|  1.26k|    T *operator->() const { return ptr; }
_ZN6icu_7816LocalPointerBaseINS_20TimeZoneGenericNamesEE6orphanEv:
  141|  1.26k|    T *orphan() {
  142|  1.26k|        T *p=ptr;
  143|  1.26k|        ptr=nullptr;
  144|  1.26k|        return p;
  145|  1.26k|    }
_ZNK6icu_7816LocalPointerBaseINS_7UVectorEE8getAliasEv:
  122|     24|    T *getAlias() const { return ptr; }
_ZN6icu_7812LocalPointerINS_8CalendarEE29adoptInsteadAndCheckErrorCodeEPS1_R10UErrorCode:
  319|  9.47k|    void adoptInsteadAndCheckErrorCode(T *p, UErrorCode &errorCode) {
  320|  9.47k|        if(U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (320:12): [True: 9.47k, False: 0]
  ------------------
  321|  9.47k|            delete LocalPointerBase<T>::ptr;
  322|  9.47k|            LocalPointerBase<T>::ptr=p;
  323|  9.47k|            if(p==nullptr) {
  ------------------
  |  Branch (323:16): [True: 0, False: 9.47k]
  ------------------
  324|      0|                errorCode=U_MEMORY_ALLOCATION_ERROR;
  325|      0|            }
  326|  9.47k|        } else {
  327|      0|            delete p;
  328|      0|        }
  329|  9.47k|    }
_ZN6icu_7812LocalPointerINS_8TimeZoneEEC2EPS1_R10UErrorCode:
  214|  9.48k|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|  9.48k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 9.48k]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|  9.48k|    }
_ZN6icu_7816LocalPointerBaseINS_8TimeZoneEEC2EPS1_:
   82|  93.1k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_8TimeZoneEED2Ev:
  245|  93.1k|    ~LocalPointer() {
  246|  93.1k|        delete LocalPointerBase<T>::ptr;
  247|  93.1k|    }
_ZN6icu_7816LocalPointerBaseINS_8TimeZoneEED2Ev:
   88|  93.1k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseINS_8TimeZoneEE6isNullEv:
   94|  9.48k|    UBool isNull() const { return ptr==nullptr; }
_ZN6icu_7816LocalPointerBaseINS_8TimeZoneEE6orphanEv:
  141|  93.1k|    T *orphan() {
  142|  93.1k|        T *p=ptr;
  143|  93.1k|        ptr=nullptr;
  144|  93.1k|        return p;
  145|  93.1k|    }
_ZN6icu_7812LocalPointerINS_8TimeZoneEEC2EPS1_:
  200|  83.7k|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7812LocalPointerINS_15NumberingSystemEEC2EPS1_:
  200|  74.9k|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7812LocalPointerINS_15NumberingSystemEE12adoptInsteadEPS1_:
  300|  65.2k|    void adoptInstead(T *p) {
  301|  65.2k|        delete LocalPointerBase<T>::ptr;
  302|  65.2k|        LocalPointerBase<T>::ptr=p;
  303|  65.2k|    }
_ZNK6icu_7816LocalPointerBaseINS_15NumberingSystemEE8getAliasEv:
  122|  65.2k|    T *getAlias() const { return ptr; }
_ZN6icu_7812LocalPointerINS_11PluralRulesEEC2EPS1_:
  200|   108k|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7816LocalPointerBaseINS_11PluralRulesEEC2EPS1_:
   82|   108k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_11PluralRulesEED2Ev:
  245|   108k|    ~LocalPointer() {
  246|   108k|        delete LocalPointerBase<T>::ptr;
  247|   108k|    }
_ZN6icu_7816LocalPointerBaseINS_11PluralRulesEED2Ev:
   88|   108k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7812LocalPointerINS_18CurrencyPluralInfoEEC2EPS1_:
  200|   217k|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7816LocalPointerBaseINS_18CurrencyPluralInfoEEC2EPS1_:
   82|   217k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_18CurrencyPluralInfoEED2Ev:
  245|   216k|    ~LocalPointer() {
  246|   216k|        delete LocalPointerBase<T>::ptr;
  247|   216k|    }
_ZN6icu_7816LocalPointerBaseINS_18CurrencyPluralInfoEED2Ev:
   88|   216k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7812LocalPointerIKNS_20DecimalFormatSymbolsEEC2EPS2_:
  200|   159k|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7816LocalPointerBaseIKNS_20DecimalFormatSymbolsEEC2EPS2_:
   82|   159k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerIKNS_20DecimalFormatSymbolsEED2Ev:
  245|   159k|    ~LocalPointer() {
  246|   159k|        delete LocalPointerBase<T>::ptr;
  247|   159k|    }
_ZN6icu_7816LocalPointerBaseIKNS_20DecimalFormatSymbolsEED2Ev:
   88|   159k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseIKNS_20DecimalFormatSymbolsEE6isNullEv:
   94|   563k|    UBool isNull() const { return ptr==nullptr; }
_ZN6icu_7812LocalPointerIKNS_20DecimalFormatSymbolsEE29adoptInsteadAndCheckErrorCodeEPS2_R10UErrorCode:
  319|   108k|    void adoptInsteadAndCheckErrorCode(T *p, UErrorCode &errorCode) {
  320|   108k|        if(U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (320:12): [True: 108k, False: 0]
  ------------------
  321|   108k|            delete LocalPointerBase<T>::ptr;
  322|   108k|            LocalPointerBase<T>::ptr=p;
  323|   108k|            if(p==nullptr) {
  ------------------
  |  Branch (323:16): [True: 0, False: 108k]
  ------------------
  324|      0|                errorCode=U_MEMORY_ALLOCATION_ERROR;
  325|      0|            }
  326|   108k|        } else {
  327|      0|            delete p;
  328|      0|        }
  329|   108k|    }
_ZN6icu_7816LocalPointerBaseIKNS_20DecimalFormatSymbolsEE6orphanEv:
  141|  9.23k|    T *orphan() {
  142|  9.23k|        T *p=ptr;
  143|  9.23k|        ptr=nullptr;
  144|  9.23k|        return p;
  145|  9.23k|    }
_ZN6icu_7812LocalPointerINS_20DecimalFormatSymbolsEEC2EPS1_R10UErrorCode:
  214|  42.2k|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|  42.2k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 42.2k]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|  42.2k|    }
_ZN6icu_7816LocalPointerBaseINS_20DecimalFormatSymbolsEEC2EPS1_:
   82|  51.7k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_20DecimalFormatSymbolsEED2Ev:
  245|  51.7k|    ~LocalPointer() {
  246|  51.7k|        delete LocalPointerBase<T>::ptr;
  247|  51.7k|    }
_ZN6icu_7816LocalPointerBaseINS_20DecimalFormatSymbolsEED2Ev:
   88|  51.7k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7812LocalPointerIKNS_20DecimalFormatSymbolsEE12adoptInsteadEPS2_:
  300|   244k|    void adoptInstead(T *p) {
  301|   244k|        delete LocalPointerBase<T>::ptr;
  302|   244k|        LocalPointerBase<T>::ptr=p;
  303|   244k|    }
_ZN6icu_7816LocalPointerBaseINS_20DecimalFormatSymbolsEE6orphanEv:
  141|  51.4k|    T *orphan() {
  142|  51.4k|        T *p=ptr;
  143|  51.4k|        ptr=nullptr;
  144|  51.4k|        return p;
  145|  51.4k|    }
_ZNK6icu_7816LocalPointerBaseINS_13DecimalFormatEE7isValidEv:
  100|  66.5k|    UBool isValid() const { return ptr!=nullptr; }
_ZN6icu_7816LocalPointerBaseINS_13DecimalFormatEE6orphanEv:
  141|  66.5k|    T *orphan() {
  142|  66.5k|        T *p=ptr;
  143|  66.5k|        ptr=nullptr;
  144|  66.5k|        return p;
  145|  66.5k|    }
_ZNK6icu_7816LocalPointerBaseIKNS_20DecimalFormatSymbolsEE8getAliasEv:
  122|   108k|    T *getAlias() const { return ptr; }
_ZN6icu_7812LocalPointerINS_20DecimalFormatSymbolsEEC2EPS1_:
  200|  9.52k|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZNK6icu_7816LocalPointerBaseINS_18CurrencyPluralInfoEE8getAliasEv:
  122|   405k|    T *getAlias() const { return ptr; }
_ZN6icu_7810LocalArrayINS_13UnicodeStringEEC2EPS1_R10UErrorCode:
  389|   246k|    LocalArray(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  390|   246k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (390:12): [True: 0, False: 246k]
  |  Branch (390:26): [True: 0, False: 0]
  ------------------
  391|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  392|      0|        }
  393|   246k|    }
_ZN6icu_7810LocalArrayINS_13UnicodeStringEED2Ev:
  420|   246k|    ~LocalArray() {
  421|   246k|        delete[] LocalPointerBase<T>::ptr;
  422|   246k|    }
_ZN6icu_7812LocalPointerINS_7UVectorEEaSEOS2_:
  255|    238|    LocalPointer<T> &operator=(LocalPointer<T> &&src) noexcept {
  256|    238|        delete LocalPointerBase<T>::ptr;
  257|    238|        LocalPointerBase<T>::ptr=src.ptr;
  258|    238|        src.ptr=nullptr;
  259|    238|        return *this;
  260|    238|    }
_ZNK6icu_7816LocalPointerBaseI15UResourceBundleE7isValidEv:
  100|  33.7k|    UBool isValid() const { return ptr!=nullptr; }
_ZNK6icu_7816LocalPointerBaseINS_20DecimalFormatSymbolsEE8getAliasEv:
  122|  9.23k|    T *getAlias() const { return ptr; }
_ZN6icu_7812LocalPointerINS_20DecimalFormatSymbolsEE29adoptInsteadAndCheckErrorCodeEPS1_R10UErrorCode:
  319|  9.52k|    void adoptInsteadAndCheckErrorCode(T *p, UErrorCode &errorCode) {
  320|  9.52k|        if(U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (320:12): [True: 9.49k, False: 34]
  ------------------
  321|  9.49k|            delete LocalPointerBase<T>::ptr;
  322|  9.49k|            LocalPointerBase<T>::ptr=p;
  323|  9.49k|            if(p==nullptr) {
  ------------------
  |  Branch (323:16): [True: 0, False: 9.49k]
  ------------------
  324|      0|                errorCode=U_MEMORY_ALLOCATION_ERROR;
  325|      0|            }
  326|  9.49k|        } else {
  327|     34|            delete p;
  328|     34|        }
  329|  9.52k|    }
_ZN6icu_7812LocalPointerINS_12NumberFormatEE12adoptInsteadEPS1_:
  300|  9.49k|    void adoptInstead(T *p) {
  301|  9.49k|        delete LocalPointerBase<T>::ptr;
  302|  9.49k|        LocalPointerBase<T>::ptr=p;
  303|  9.49k|    }
_ZN6icu_7812LocalPointerINS_6NFRuleEEC2EPS1_R10UErrorCode:
  214|  4.34k|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|  4.34k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 4.34k]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|  4.34k|    }
_ZN6icu_7816LocalPointerBaseINS_6NFRuleEEC2EPS1_:
   82|  1.59M|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_6NFRuleEED2Ev:
  245|  1.59M|    ~LocalPointer() {
  246|  1.59M|        delete LocalPointerBase<T>::ptr;
  247|  1.59M|    }
_ZN6icu_7816LocalPointerBaseINS_6NFRuleEED2Ev:
   88|  1.59M|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7816LocalPointerBaseINS_6NFRuleEE6orphanEv:
  141|  1.58M|    T *orphan() {
  142|  1.58M|        T *p=ptr;
  143|  1.58M|        ptr=nullptr;
  144|  1.58M|        return p;
  145|  1.58M|    }
_ZN6icu_7812LocalPointerINS_6NFRuleEEC2EPS1_:
  200|  1.58M|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZNK6icu_7816LocalPointerBaseINS_6NFRuleEE6isNullEv:
   94|  2.03M|    UBool isNull() const { return ptr==nullptr; }
_ZNK6icu_7816LocalPointerBaseINS_6NFRuleEEptEv:
  134|  11.9M|    T *operator->() const { return ptr; }
_ZN6icu_7812LocalPointerINS_6NFRuleEE12adoptInsteadEPS1_:
  300|   445k|    void adoptInstead(T *p) {
  301|   445k|        delete LocalPointerBase<T>::ptr;
  302|   445k|        LocalPointerBase<T>::ptr=p;
  303|   445k|    }
_ZN6icu_7816LocalPointerBaseIPKcEC2EPS2_:
   82|      5|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7816LocalPointerBaseIPKcED2Ev:
   88|      5|    ~LocalPointerBase() { /* delete ptr; */ }
_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|  4.32k|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|  4.32k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 4.32k]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|  4.32k|    }
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_116VariantListEntryEEC2EPS2_:
   82|  8.65k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_116VariantListEntryEEptEv:
  134|  11.3k|    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|  4.32k|    LocalPointer(LocalPointer<T> &&src) noexcept : LocalPointerBase<T>(src.ptr) {
  225|  4.32k|        src.ptr=nullptr;
  226|  4.32k|    }
uloc_tag.cpp:_ZN6icu_7812LocalPointerIN12_GLOBAL__N_116VariantListEntryEED2Ev:
  245|  8.65k|    ~LocalPointer() {
  246|  8.65k|        delete LocalPointerBase<T>::ptr;
  247|  8.65k|    }
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_116VariantListEntryEED2Ev:
   88|  8.65k|    ~LocalPointerBase() { /* delete ptr; */ }
uloc_tag.cpp:_ZN6icu_7812LocalPointerIN12_GLOBAL__N_118ExtensionListEntryEEC2EPS2_:
  200|   111k|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_118ExtensionListEntryEEC2EPS2_:
   82|   111k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_112ULanguageTagEE6isNullEv:
   94|   111k|    UBool isNull() const { return ptr==nullptr; }
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_112ULanguageTagEEptEv:
  134|   188k|    T *operator->() const { return ptr; }
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_112ULanguageTagEE6orphanEv:
  141|   111k|    T *orphan() {
  142|   111k|        T *p=ptr;
  143|   111k|        ptr=nullptr;
  144|   111k|        return p;
  145|   111k|    }
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_118ExtensionListEntryEE7isValidEv:
  100|   128k|    UBool isValid() const { return ptr!=nullptr; }
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_118ExtensionListEntryEE6orphanEv:
  141|  24.2k|    T *orphan() {
  142|  24.2k|        T *p=ptr;
  143|  24.2k|        ptr=nullptr;
  144|  24.2k|        return p;
  145|  24.2k|    }
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_118ExtensionListEntryEEptEv:
  134|  68.5k|    T *operator->() const { return ptr; }
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_118ExtensionListEntryEE8getAliasEv:
  122|  20.0k|    T *getAlias() const { return ptr; }
uloc_tag.cpp:_ZN6icu_7812LocalPointerIN12_GLOBAL__N_118ExtensionListEntryEE29adoptInsteadAndCheckErrorCodeEPS2_R10UErrorCode:
  319|  24.2k|    void adoptInsteadAndCheckErrorCode(T *p, UErrorCode &errorCode) {
  320|  24.2k|        if(U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (320:12): [True: 24.2k, False: 0]
  ------------------
  321|  24.2k|            delete LocalPointerBase<T>::ptr;
  322|  24.2k|            LocalPointerBase<T>::ptr=p;
  323|  24.2k|            if(p==nullptr) {
  ------------------
  |  Branch (323:16): [True: 0, False: 24.2k]
  ------------------
  324|      0|                errorCode=U_MEMORY_ALLOCATION_ERROR;
  325|      0|            }
  326|  24.2k|        } else {
  327|      0|            delete p;
  328|      0|        }
  329|  24.2k|    }
uloc_tag.cpp:_ZN6icu_7812LocalPointerIN12_GLOBAL__N_118ExtensionListEntryEED2Ev:
  245|   111k|    ~LocalPointer() {
  246|   111k|        delete LocalPointerBase<T>::ptr;
  247|   111k|    }
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_118ExtensionListEntryEED2Ev:
   88|   111k|    ~LocalPointerBase() { /* delete ptr; */ }
uloc_tag.cpp:_ZN6icu_788internal16LocalOpenPointerIN12_GLOBAL__N_112ULanguageTagEXadL_ZNS2_11ultag_closeEPS3_EEEC2ES4_:
  567|   222k|    explicit LocalOpenPointer(Type *p=nullptr) : LocalPointerBase<Type>(p) {}
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_112ULanguageTagEEC2EPS2_:
   82|   222k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
uloc_tag.cpp:_ZN6icu_788internal16LocalOpenPointerIN12_GLOBAL__N_112ULanguageTagEXadL_ZNS2_11ultag_closeEPS3_EEED2Ev:
  575|   222k|    ~LocalOpenPointer() { if (ptr != nullptr) { closeFunction(ptr); } }
  ------------------
  |  Branch (575:31): [True: 111k, False: 111k]
  ------------------
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_112ULanguageTagEED2Ev:
   88|   222k|    ~LocalPointerBase() { /* delete ptr; */ }
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_112ULanguageTagEE8getAliasEv:
  122|  1.02M|    T *getAlias() const { return ptr; }
_ZNK6icu_7816LocalPointerBaseINS_13UnicodeStringEE7isValidEv:
  100|   134k|    UBool isValid() const { return ptr!=nullptr; }
_ZNK6icu_7816LocalPointerBaseI15UResourceBundleEptEv:
  134|    324|    T *operator->() const { return ptr; }

_ZN6icu_7818LocaleDisplayNames14createInstanceERKNS_6LocaleE:
  201|    278|inline LocaleDisplayNames* LocaleDisplayNames::createInstance(const Locale& locale) {
  202|    278|  return LocaleDisplayNames::createInstance(locale, ULDN_STANDARD_NAMES);
  203|    278|}

_ZNK6icu_786LocaleneERKS0_:
 1188|  10.9k|{
 1189|  10.9k|    return !operator==(other);
 1190|  10.9k|}
_ZNK6icu_786Locale10getCountryEv:
 1204|  61.1k|{
 1205|  61.1k|    return country;
 1206|  61.1k|}
_ZNK6icu_786Locale11getLanguageEv:
 1210|  58.1k|{
 1211|  58.1k|    return language;
 1212|  58.1k|}
_ZNK6icu_786Locale9getScriptEv:
 1216|  30.6k|{
 1217|  30.6k|    return script;
 1218|  30.6k|}
_ZNK6icu_786Locale10getVariantEv:
 1222|  22.2k|{
 1223|  22.2k|    return fIsBogus ? "" : &baseName[variantBegin];
  ------------------
  |  Branch (1223:12): [True: 0, False: 22.2k]
  ------------------
 1224|  22.2k|}
_ZNK6icu_786Locale7getNameEv:
 1228|  1.80M|{
 1229|  1.80M|    return fullName;
 1230|  1.80M|}
_ZNK6icu_786Locale7isBogusEv:
 1289|  72.7k|Locale::isBogus() const {
 1290|  72.7k|    return fIsBogus;
 1291|  72.7k|}

_ZN6icu_7811ReplaceableC2Ev:
  243|  68.6M|inline Replaceable::Replaceable() {}

_ZN6icu_7815SimpleFormatterC2ERKNS_13UnicodeStringEiiR10UErrorCode:
   96|  23.0k|                    UErrorCode &errorCode) {
   97|  23.0k|        applyPatternMinMaxArguments(pattern, min, max, errorCode);
   98|  23.0k|    }
_ZN6icu_7815SimpleFormatterC2Ev:
   66|  1.39k|    SimpleFormatter() : compiledPattern(static_cast<char16_t>(0)) {}
_ZNK6icu_7815SimpleFormatter16getArgumentLimitEv:
  155|  11.7k|    int32_t getArgumentLimit() const {
  156|  11.7k|        return getArgumentLimit(compiledPattern.getBuffer(), compiledPattern.length());
  157|  11.7k|    }
_ZN6icu_7815SimpleFormatter16getArgumentLimitEPKDsi:
  314|  26.2k|                                              int32_t compiledPatternLength) {
  315|  26.2k|        return compiledPatternLength == 0 ? 0 : compiledPattern[0];
  ------------------
  |  Branch (315:16): [True: 0, False: 26.2k]
  ------------------
  316|  26.2k|    }

_ZN6icu_7811StringPieceC2EPKci:
  151|   195k|  StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { }
_ZNK6icu_7811StringPiece4dataEv:
  200|  23.6M|  const char* data() const { return ptr_; }
_ZN6icu_7811StringPiece13remove_prefixEi:
  267|  46.5k|  void remove_prefix(int32_t n) {
  268|  46.5k|    if (n >= 0) {
  ------------------
  |  Branch (268:9): [True: 46.5k, False: 0]
  ------------------
  269|  46.5k|      if (n > length_) {
  ------------------
  |  Branch (269:11): [True: 0, False: 46.5k]
  ------------------
  270|      0|        n = length_;
  271|      0|      }
  272|  46.5k|      ptr_ += n;
  273|  46.5k|      length_ -= n;
  274|  46.5k|    }
  275|  46.5k|  }
_ZNK6icu_7811StringPiece4sizeEv:
  206|   196k|  int32_t size() const { return length_; }
_ZN6icu_7811StringPieceC2Ev:
   71|      1|  StringPiece() : ptr_(nullptr), length_(0) { }
_ZNK6icu_7811StringPiececvNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEv:
  185|   188k|  inline operator std::string_view() const {
  186|   188k|    return {data(), static_cast<std::string_view::size_type>(size())};
  187|   188k|  }
_ZNK6icu_7811StringPiece6lengthEv:
  212|  25.9M|  int32_t length() const { return length_; }
_ZNK6icu_7811StringPiece5emptyEv:
  218|   210k|  UBool empty() const { return length_ == 0; }
_ZN6icu_7811StringPieceC2INSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEvEET_:
  142|  50.5k|      : ptr_(reinterpret_cast<const char*>(str.data())),
  143|  50.5k|        length_(static_cast<int32_t>(str.size())) {}

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

_ZN6icu_7813UnicodeStringC2Ev:
 4182|  48.8M|UnicodeString::UnicodeString() {
 4183|  48.8M|  fUnion.fStackFields.fLengthAndFlags=kShortString;
 4184|  48.8M|}
_ZN6icu_7813UnicodeString6removeEv:
 5035|  2.43M|{
 5036|       |  // remove() of a bogus string makes the string empty and non-bogus
 5037|  2.43M|  if(isBogus()) {
  ------------------
  |  Branch (5037:6): [True: 0, False: 2.43M]
  ------------------
 5038|      0|    setToEmpty();
 5039|  2.43M|  } else {
 5040|  2.43M|    setZeroLength();
 5041|  2.43M|  }
 5042|  2.43M|  return *this;
 5043|  2.43M|}
_ZNK6icu_7813UnicodeString7isBogusEv:
 4230|  79.8M|{ return fUnion.fFields.fLengthAndFlags & kIsBogus; }
_ZN6icu_7813UnicodeString10setToEmptyEv:
 4894|  2.80M|UnicodeString::setToEmpty() {
 4895|  2.80M|  fUnion.fFields.fLengthAndFlags = kShortString;
 4896|  2.80M|}
_ZN6icu_7813UnicodeString13setZeroLengthEv:
 4872|  2.91M|UnicodeString::setZeroLength() {
 4873|  2.91M|  fUnion.fFields.fLengthAndFlags &= kAllStorageFlags;
 4874|  2.91M|}
_ZNK6icu_7813UnicodeString9getBufferEv:
 4245|   361k|UnicodeString::getBuffer() const {
 4246|   361k|  if(fUnion.fFields.fLengthAndFlags&(kIsBogus|kOpenGetBuffer)) {
  ------------------
  |  Branch (4246:6): [True: 0, False: 361k]
  ------------------
 4247|      0|    return nullptr;
 4248|   361k|  } else if(fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) {
  ------------------
  |  Branch (4248:13): [True: 61.5k, False: 299k]
  ------------------
 4249|  61.5k|    return fUnion.fStackFields.fBuffer;
 4250|   299k|  } else {
 4251|   299k|    return fUnion.fFields.fArray;
 4252|   299k|  }
 4253|   361k|}
_ZNK6icu_7813UnicodeString6lengthEv:
 4214|   724M|UnicodeString::length() const {
 4215|   724M|  return hasShortLength() ? getShortLength() : fUnion.fFields.fLength;
  ------------------
  |  Branch (4215:10): [True: 246M, False: 478M]
  ------------------
 4216|   724M|}
_ZNK6icu_7813UnicodeString14hasShortLengthEv:
 4202|   733M|UnicodeString::hasShortLength() const {
 4203|   733M|  return fUnion.fFields.fLengthAndFlags>=0;
 4204|   733M|}
_ZNK6icu_7813UnicodeString14getShortLengthEv:
 4207|   276M|UnicodeString::getShortLength() const {
 4208|       |  // fLengthAndFlags must be non-negative -> short length >= 0
 4209|       |  // and arithmetic or logical shift does not matter.
 4210|   276M|  return fUnion.fFields.fLengthAndFlags>>kLengthShift;
 4211|   276M|}
_ZNK6icu_7813UnicodeString8doEqualsERKS0_i:
 3773|  2.30M|  inline UBool doEquals(const UnicodeString &text, int32_t len) const {
 3774|  2.30M|    return doEquals(text.getArrayStart(), len);
 3775|  2.30M|  }
_ZNK6icu_7813UnicodeString8pinIndexERi:
 4138|  5.95M|{
 4139|       |  // pin index
 4140|  5.95M|  if(start < 0) {
  ------------------
  |  Branch (4140:6): [True: 0, False: 5.95M]
  ------------------
 4141|      0|    start = 0;
 4142|  5.95M|  } else if(start > length()) {
  ------------------
  |  Branch (4142:13): [True: 0, False: 5.95M]
  ------------------
 4143|      0|    start = length();
 4144|      0|  }
 4145|  5.95M|}
_ZNK6icu_7813UnicodeString10pinIndicesERiS1_:
 4150|  66.8M|{
 4151|       |  // pin indices
 4152|  66.8M|  int32_t len = length();
 4153|  66.8M|  if(start < 0) {
  ------------------
  |  Branch (4153:6): [True: 443k, False: 66.4M]
  ------------------
 4154|   443k|    start = 0;
 4155|  66.4M|  } else if(start > len) {
  ------------------
  |  Branch (4155:13): [True: 0, False: 66.4M]
  ------------------
 4156|      0|    start = len;
 4157|      0|  }
 4158|  66.8M|  if(_length < 0) {
  ------------------
  |  Branch (4158:6): [True: 0, False: 66.8M]
  ------------------
 4159|      0|    _length = 0;
 4160|  66.8M|  } else if(_length > (len - start)) {
  ------------------
  |  Branch (4160:13): [True: 1.33M, False: 65.5M]
  ------------------
 4161|  1.33M|    _length = (len - start);
 4162|  1.33M|  }
 4163|  66.8M|}
_ZN6icu_7813UnicodeString13getArrayStartEv:
 4166|  36.4M|UnicodeString::getArrayStart() {
 4167|  36.4M|  return (fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) ?
  ------------------
  |  Branch (4167:10): [True: 33.2M, False: 3.24M]
  ------------------
 4168|  33.2M|    fUnion.fStackFields.fBuffer : fUnion.fFields.fArray;
 4169|  36.4M|}
_ZNK6icu_7813UnicodeString13getArrayStartEv:
 4172|   520M|UnicodeString::getArrayStart() const {
 4173|   520M|  return (fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) ?
  ------------------
  |  Branch (4173:10): [True: 96.6M, False: 423M]
  ------------------
 4174|   423M|    fUnion.fStackFields.fBuffer : fUnion.fFields.fArray;
 4175|   520M|}
_ZNK6icu_7813UnicodeString11getCapacityEv:
 4219|  25.8M|UnicodeString::getCapacity() const {
 4220|  25.8M|  return (fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) ?
  ------------------
  |  Branch (4220:10): [True: 23.6M, False: 2.25M]
  ------------------
 4221|  23.6M|    US_STACKBUF_SIZE : fUnion.fFields.fCapacity;
 4222|  25.8M|}
_ZNK6icu_7813UnicodeString8hashCodeEv:
 4226|  4.85M|{ return doHashCode(); }
_ZNK6icu_7813UnicodeString10isWritableEv:
 4234|  39.7M|{ return !(fUnion.fFields.fLengthAndFlags & (kOpenGetBuffer | kIsBogus)); }
_ZNK6icu_7813UnicodeString16isBufferWritableEv:
 4238|  21.5M|{
 4239|  21.5M|  return
 4240|  21.5M|      !(fUnion.fFields.fLengthAndFlags&(kOpenGetBuffer|kIsBogus|kBufferIsReadonly)) &&
  ------------------
  |  Branch (4240:7): [True: 21.5M, False: 60.4k]
  ------------------
 4241|  21.5M|      (!(fUnion.fFields.fLengthAndFlags&kRefCounted) || refCount()==1);
  ------------------
  |  Branch (4241:8): [True: 19.4M, False: 2.04M]
  |  Branch (4241:57): [True: 1.80M, False: 240k]
  ------------------
 4242|  21.5M|}
_ZNK6icu_7813UnicodeString9doCompareEiiRKS0_ii:
 4264|  5.78M|{
 4265|  5.78M|  if(srcText.isBogus()) {
  ------------------
  |  Branch (4265:6): [True: 0, False: 5.78M]
  ------------------
 4266|      0|    return static_cast<int8_t>(!isBogus()); // 0 if both are bogus, 1 otherwise
 4267|  5.78M|  } else {
 4268|  5.78M|    srcText.pinIndices(srcStart, srcLength);
 4269|  5.78M|    return doCompare(start, thisLength, srcText.getArrayStart(), srcStart, srcLength);
 4270|  5.78M|  }
 4271|  5.78M|}
_ZNK6icu_7813UnicodeString17doEqualsSubstringEiiRKS0_ii:
 4279|  2.17k|{
 4280|  2.17k|  if(srcText.isBogus()) {
  ------------------
  |  Branch (4280:6): [True: 0, False: 2.17k]
  ------------------
 4281|      0|    return isBogus();
 4282|  2.17k|  } else {
 4283|  2.17k|    srcText.pinIndices(srcStart, srcLength);
 4284|  2.17k|    return !isBogus() && doEqualsSubstring(start, thisLength, srcText.getArrayStart(), srcStart, srcLength);
  ------------------
  |  Branch (4284:12): [True: 2.17k, False: 0]
  |  Branch (4284:26): [True: 0, False: 2.17k]
  ------------------
 4285|  2.17k|  }
 4286|  2.17k|}
_ZNK6icu_7813UnicodeStringeqERKS0_:
 4290|  5.89M|{
 4291|  5.89M|  if(isBogus()) {
  ------------------
  |  Branch (4291:6): [True: 1.01M, False: 4.88M]
  ------------------
 4292|  1.01M|    return text.isBogus();
 4293|  4.88M|  } else {
 4294|  4.88M|    int32_t len = length(), textLength = text.length();
 4295|  4.88M|    return !text.isBogus() && len == textLength && doEquals(text, len);
  ------------------
  |  Branch (4295:12): [True: 4.88M, False: 0]
  |  Branch (4295:31): [True: 2.30M, False: 2.57M]
  |  Branch (4295:52): [True: 2.01M, False: 290k]
  ------------------
 4296|  4.88M|  }
 4297|  5.89M|}
_ZNK6icu_7813UnicodeStringneERKS0_:
 4301|  87.5k|{ return (! operator==(text)); }
_ZNK6icu_7813UnicodeString7compareERKS0_:
 4321|  5.78M|{ return doCompare(0, length(), text, 0, text.length()); }
_ZNK6icu_7813UnicodeString7compareENS_14ConstChar16PtrEi:
 4332|   809k|{ return doCompare(0, length(), srcChars, 0, srcLength); }
_ZNK6icu_7813UnicodeString7indexOfERKS0_iiii:
 4506|     20|{
 4507|     20|  if(!srcText.isBogus()) {
  ------------------
  |  Branch (4507:6): [True: 20, False: 0]
  ------------------
 4508|     20|    srcText.pinIndices(srcStart, srcLength);
 4509|     20|    if(srcLength > 0) {
  ------------------
  |  Branch (4509:8): [True: 20, False: 0]
  ------------------
 4510|     20|      return indexOf(srcText.getArrayStart(), srcStart, srcLength, start, _length);
 4511|     20|    }
 4512|     20|  }
 4513|      0|  return -1;
 4514|     20|}
_ZNK6icu_7813UnicodeString7indexOfEPKDsii:
 4536|  2.68M|               int32_t start) const {
 4537|  2.68M|  pinIndex(start);
 4538|  2.68M|  return indexOf(srcChars, 0, srcLength, start, length() - start);
 4539|  2.68M|}
_ZNK6icu_7813UnicodeString7indexOfEDs:
 4562|  29.5M|{ return doIndexOf(c, 0, length()); }
_ZNK6icu_7813UnicodeString7indexOfEDsi:
 4570|  3.24M|               int32_t start) const {
 4571|  3.24M|  pinIndex(start);
 4572|  3.24M|  return doIndexOf(c, start, length() - start);
 4573|  3.24M|}
_ZNK6icu_7813UnicodeString11lastIndexOfEPKDsii:
 4592|  15.3k|               int32_t start) const {
 4593|  15.3k|  pinIndex(start);
 4594|  15.3k|  return lastIndexOf(srcChars, 0, srcLength, start, length() - start);
 4595|  15.3k|}
_ZNK6icu_7813UnicodeString11lastIndexOfEDs:
 4645|  15.6k|{ return doLastIndexOf(c, 0, length()); }
_ZNK6icu_7813UnicodeString11lastIndexOfEDsi:
 4654|    802|               int32_t start) const {
 4655|    802|  pinIndex(start);
 4656|    802|  return doLastIndexOf(c, start, length() - start);
 4657|    802|}
_ZNK6icu_7813UnicodeString10startsWithERKS0_:
 4668|  2.17k|{ return doEqualsSubstring(0, text.length(), text, 0, text.length()); }
_ZNK6icu_7813UnicodeString10startsWithENS_14ConstChar16PtrEi:
 4677|   624k|UnicodeString::startsWith(ConstChar16Ptr srcChars, int32_t srcLength) const {
 4678|   624k|  if(srcLength < 0) {
  ------------------
  |  Branch (4678:6): [True: 0, False: 624k]
  ------------------
 4679|      0|    srcLength = u_strlen(toUCharPtr(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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4680|      0|  }
 4681|   624k|  return doEqualsSubstring(0, srcLength, srcChars, 0, srcLength);
 4682|   624k|}
_ZNK6icu_7813UnicodeString8endsWithENS_14ConstChar16PtrEi:
 4708|   836k|            int32_t srcLength) const {
 4709|   836k|  if(srcLength < 0) {
  ------------------
  |  Branch (4709:6): [True: 0, False: 836k]
  ------------------
 4710|      0|    srcLength = u_strlen(toUCharPtr(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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4711|      0|  }
 4712|   836k|  return doEqualsSubstring(length() - srcLength, srcLength, srcChars, 0, srcLength);
 4713|   836k|}
_ZN6icu_7813UnicodeString14findAndReplaceERKS0_S2_:
 4781|     20|{ return findAndReplace(0, length(), oldText, 0, oldText.length(),
 4782|     20|            newText, 0, newText.length()); }
_ZNK6icu_7813UnicodeString20tempSubStringBetweenEii:
 4840|  87.5k|UnicodeString::tempSubStringBetween(int32_t start, int32_t limit) const {
 4841|  87.5k|    return tempSubString(start, limit - start);
 4842|  87.5k|}
_ZNK6icu_7813UnicodeString8doCharAtEi:
 4846|   444M|{
 4847|   444M|  if (static_cast<uint32_t>(offset) < static_cast<uint32_t>(length())) {
  ------------------
  |  Branch (4847:7): [True: 443M, False: 983k]
  ------------------
 4848|   443M|    return getArrayStart()[offset];
 4849|   443M|  } else {
 4850|   983k|    return kInvalidUChar;
 4851|   983k|  }
 4852|   444M|}
_ZNK6icu_7813UnicodeString6charAtEi:
 4856|   270M|{ return doCharAt(offset); }
_ZNK6icu_7813UnicodeStringixEi:
 4860|   173M|{ return doCharAt(offset); }
_ZNK6icu_7813UnicodeString7isEmptyEv:
 4863|  49.2M|UnicodeString::isEmpty() const {
 4864|       |  // Arithmetic or logical right shift does not matter: only testing for 0.
 4865|  49.2M|  return (fUnion.fFields.fLengthAndFlags>>kLengthShift) == 0;
 4866|  49.2M|}
_ZN6icu_7813UnicodeString14setShortLengthEi:
 4877|  33.7M|UnicodeString::setShortLength(int32_t len) {
 4878|       |  // requires 0 <= len <= kMaxShortLength
 4879|  33.7M|  fUnion.fFields.fLengthAndFlags =
 4880|  33.7M|    static_cast<int16_t>((fUnion.fFields.fLengthAndFlags & kAllStorageFlags) | (len << kLengthShift));
 4881|  33.7M|}
_ZN6icu_7813UnicodeString9setLengthEi:
 4884|  34.8M|UnicodeString::setLength(int32_t len) {
 4885|  34.8M|  if(len <= kMaxShortLength) {
  ------------------
  |  Branch (4885:6): [True: 33.7M, False: 1.08M]
  ------------------
 4886|  33.7M|    setShortLength(len);
 4887|  33.7M|  } else {
 4888|  1.08M|    fUnion.fFields.fLengthAndFlags |= kLengthIsLarge;
 4889|  1.08M|    fUnion.fFields.fLength = len;
 4890|  1.08M|  }
 4891|  34.8M|}
_ZN6icu_7813UnicodeString8setArrayEPDsii:
 4899|  5.87M|UnicodeString::setArray(char16_t *array, int32_t len, int32_t capacity) {
 4900|  5.87M|  setLength(len);
 4901|  5.87M|  fUnion.fFields.fArray = array;
 4902|  5.87M|  fUnion.fFields.fCapacity = capacity;
 4903|  5.87M|}
_ZN6icu_7813UnicodeStringaSEDs:
 4907|  1.71M|{ return doReplace(0, length(), &ch, 0, 1); }
_ZN6icu_7813UnicodeString5setToERKS0_ii:
 4917|  6.68M|{
 4918|  6.68M|  unBogus();
 4919|  6.68M|  return doReplace(0, length(), srcText, srcStart, srcLength);
 4920|  6.68M|}
_ZN6icu_7813UnicodeString5setToERKS0_i:
 4925|  1.51k|{
 4926|  1.51k|  unBogus();
 4927|  1.51k|  srcText.pinIndex(srcStart);
 4928|  1.51k|  return doReplace(0, length(), srcText, srcStart, srcText.length() - srcStart);
 4929|  1.51k|}
_ZN6icu_7813UnicodeString5setToERKS0_:
 4933|   245k|{
 4934|   245k|  return copyFrom(srcText);
 4935|   245k|}
_ZN6icu_7813UnicodeString5setToEPKDsi:
 4940|   108k|{
 4941|   108k|  unBogus();
 4942|   108k|  return doReplace(0, length(), srcChars, 0, srcLength);
 4943|   108k|}
_ZN6icu_7813UnicodeString5setToEDs:
 4947|  33.1k|{
 4948|  33.1k|  unBogus();
 4949|  33.1k|  return doReplace(0, length(), &srcChar, 0, 1);
 4950|  33.1k|}
_ZN6icu_7813UnicodeString5setToEi:
 4954|   645k|{
 4955|   645k|  unBogus();
 4956|   645k|  return replace(0, length(), srcChar);
 4957|   645k|}
_ZN6icu_7813UnicodeString6appendERKS0_ii:
 4963|  2.03M|{ return doAppend(srcText, srcStart, srcLength); }
_ZN6icu_7813UnicodeString6appendERKS0_:
 4967|  1.15M|{ return doAppend(srcText, 0, srcText.length()); }
_ZN6icu_7813UnicodeString6appendENS_14ConstChar16PtrEi:
 4978|  41.1k|{ return doAppend(srcChars, 0, srcLength); }
_ZN6icu_7813UnicodeString6appendEDs:
 4982|   994k|{ return doAppend(&srcChar, 0, 1); }
_ZN6icu_7813UnicodeStringpLEDs:
 4986|  3.31M|{ return doAppend(&ch, 0, 1); }
_ZN6icu_7813UnicodeStringpLERKS0_:
 4995|   155k|{ return doAppend(srcText, 0, srcText.length()); }
_ZN6icu_7813UnicodeString6insertEiRKS0_:
 5007|  1.19k|{ return doReplace(start, 0, srcText, 0, srcText.length()); }
_ZN6icu_7813UnicodeString6insertEiDs:
 5025|     20|{ return doReplace(start, 0, &srcChar, 0, 1); }
_ZN6icu_7813UnicodeString6removeEii:
 5048|  1.84M|{
 5049|  1.84M|    if(start <= 0 && _length == INT32_MAX) {
  ------------------
  |  Branch (5049:8): [True: 951k, False: 895k]
  |  Branch (5049:22): [True: 0, False: 951k]
  ------------------
 5050|       |        // remove(guaranteed everything) of a bogus string makes the string empty and non-bogus
 5051|      0|        return remove();
 5052|      0|    }
 5053|  1.84M|    return doReplace(start, _length, nullptr, 0, 0);
 5054|  1.84M|}
_ZN6icu_7813UnicodeString13removeBetweenEii:
 5059|  2.03M|{ return doReplace(start, limit - start, nullptr, 0, 0); }
_ZN6icu_7813UnicodeString13retainBetweenEii:
 5062|   536k|UnicodeString::retainBetween(int32_t start, int32_t limit) {
 5063|   536k|  truncate(limit);
 5064|   536k|  return doReplace(0, start, nullptr, 0, 0);
 5065|   536k|}
_ZN6icu_7813UnicodeString8truncateEi:
 5069|   536k|{
 5070|   536k|  if(isBogus() && targetLength == 0) {
  ------------------
  |  Branch (5070:6): [True: 0, False: 536k]
  |  Branch (5070:19): [True: 0, False: 0]
  ------------------
 5071|       |    // truncate(0) of a bogus string makes the string empty and non-bogus
 5072|      0|    unBogus();
 5073|      0|    return false;
 5074|   536k|  } else if (static_cast<uint32_t>(targetLength) < static_cast<uint32_t>(length())) {
  ------------------
  |  Branch (5074:14): [True: 536k, False: 0]
  ------------------
 5075|   536k|    setLength(targetLength);
 5076|   536k|    return true;
 5077|   536k|  } else {
 5078|      0|    return false;
 5079|      0|  }
 5080|   536k|}
_ZN6icu_7813UnicodeStringC2IA6_DsvEERKT_:
 3274|    225|  UNISTR_FROM_STRING_EXPLICIT UnicodeString(const S &text) {
 3275|    225|    fUnion.fFields.fLengthAndFlags = kShortString;
 3276|    225|    doAppend(internal::toU16StringViewNullable(text));
 3277|    225|  }
_ZN6icu_7813UnicodeStringC2IA4_DsvEERKT_:
 3274|      1|  UNISTR_FROM_STRING_EXPLICIT UnicodeString(const S &text) {
 3275|      1|    fUnion.fFields.fLengthAndFlags = kShortString;
 3276|      1|    doAppend(internal::toU16StringViewNullable(text));
 3277|      1|  }
_ZN6icu_7813UnicodeStringC2IA3_DsvEERKT_:
 3274|      2|  UNISTR_FROM_STRING_EXPLICIT UnicodeString(const S &text) {
 3275|      2|    fUnion.fFields.fLengthAndFlags = kShortString;
 3276|      2|    doAppend(internal::toU16StringViewNullable(text));
 3277|      2|  }
_ZN6icu_7813UnicodeStringC2IA14_DsvEERKT_:
 3274|  20.1k|  UNISTR_FROM_STRING_EXPLICIT UnicodeString(const S &text) {
 3275|  20.1k|    fUnion.fFields.fLengthAndFlags = kShortString;
 3276|  20.1k|    doAppend(internal::toU16StringViewNullable(text));
 3277|  20.1k|  }
_ZN6icu_7813UnicodeStringC2IA5_DsvEERKT_:
 3274|      1|  UNISTR_FROM_STRING_EXPLICIT UnicodeString(const S &text) {
 3275|      1|    fUnion.fFields.fLengthAndFlags = kShortString;
 3276|      1|    doAppend(internal::toU16StringViewNullable(text));
 3277|      1|  }
_ZN6icu_7813UnicodeStringC2IPKDsvEERKT_:
 3274|  57.7k|  UNISTR_FROM_STRING_EXPLICIT UnicodeString(const S &text) {
 3275|  57.7k|    fUnion.fFields.fLengthAndFlags = kShortString;
 3276|  57.7k|    doAppend(internal::toU16StringViewNullable(text));
 3277|  57.7k|  }
_ZN6icu_7813UnicodeStringC2IA2_DsvEERKT_:
 3274|   202k|  UNISTR_FROM_STRING_EXPLICIT UnicodeString(const S &text) {
 3275|   202k|    fUnion.fFields.fLengthAndFlags = kShortString;
 3276|   202k|    doAppend(internal::toU16StringViewNullable(text));
 3277|   202k|  }

_ZN6icu_787UMemorynwEmPv:
  166|      3|    static inline void * U_EXPORT2 operator new(size_t, void *ptr) noexcept { return ptr; }

_ZN6icu_7821ures_getUnicodeStringEPK15UResourceBundleP10UErrorCode:
  813|  79.4k|ures_getUnicodeString(const UResourceBundle *resB, UErrorCode* status) {
  814|  79.4k|    UnicodeString result;
  815|  79.4k|    int32_t len = 0;
  816|  79.4k|    const char16_t *r = ConstChar16Ptr(ures_getString(resB, &len, status));
  ------------------
  |  | 1675|  79.4k|#define ures_getString U_ICU_ENTRY_POINT_RENAME(ures_getString)
  |  |  ------------------
  |  |  |  |  123|  79.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  79.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  79.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  817|  79.4k|    if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (817:8): [True: 79.4k, False: 0]
  ------------------
  818|  79.4k|        result.setTo(true, r, len);
  819|  79.4k|    } else {
  820|      0|        result.setToBogus();
  821|      0|    }
  822|  79.4k|    return result;
  823|  79.4k|}
_ZN6icu_7825ures_getNextUnicodeStringEP15UResourceBundlePPKcP10UErrorCode:
  838|   145k|ures_getNextUnicodeString(UResourceBundle *resB, const char ** key, UErrorCode* status) {
  839|   145k|    UnicodeString result;
  840|   145k|    int32_t len = 0;
  841|   145k|    const char16_t* r = ConstChar16Ptr(ures_getNextString(resB, &len, key, status));
  ------------------
  |  | 1673|   145k|#define ures_getNextString U_ICU_ENTRY_POINT_RENAME(ures_getNextString)
  |  |  ------------------
  |  |  |  |  123|   145k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   145k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   145k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  842|   145k|    if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (842:8): [True: 145k, False: 0]
  ------------------
  843|   145k|        result.setTo(true, r, len);
  844|   145k|    } else {
  845|      0|        result.setToBogus();
  846|      0|    }
  847|   145k|    return result;
  848|   145k|}
_ZN6icu_7828ures_getUnicodeStringByIndexEPK15UResourceBundleiP10UErrorCode:
  860|  2.06k|ures_getUnicodeStringByIndex(const UResourceBundle *resB, int32_t indexS, UErrorCode* status) {
  861|  2.06k|    UnicodeString result;
  862|  2.06k|    int32_t len = 0;
  863|  2.06k|    const char16_t* r = ConstChar16Ptr(ures_getStringByIndex(resB, indexS, &len, status));
  ------------------
  |  | 1676|  2.06k|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  864|  2.06k|    if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (864:8): [True: 2.06k, False: 0]
  ------------------
  865|  2.06k|        result.setTo(true, r, len);
  866|  2.06k|    } else {
  867|      0|        result.setToBogus();
  868|      0|    }
  869|  2.06k|    return result;
  870|  2.06k|}
_ZN6icu_7826ures_getUnicodeStringByKeyEPK15UResourceBundlePKcP10UErrorCode:
  883|  98.6k|ures_getUnicodeStringByKey(const UResourceBundle *resB, const char* key, UErrorCode* status) {
  884|  98.6k|    UnicodeString result;
  885|  98.6k|    int32_t len = 0;
  886|  98.6k|    const char16_t* r = ConstChar16Ptr(ures_getStringByKey(resB, key, &len, status));
  ------------------
  |  | 1677|  98.6k|#define ures_getStringByKey U_ICU_ENTRY_POINT_RENAME(ures_getStringByKey)
  |  |  ------------------
  |  |  |  |  123|  98.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  98.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  98.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  887|  98.6k|    if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (887:8): [True: 91.1k, False: 7.46k]
  ------------------
  888|  91.1k|        result.setTo(true, r, len);
  889|  91.1k|    } else {
  890|  7.46k|        result.setToBogus();
  891|  7.46k|    }
  892|  98.6k|    return result;
  893|  98.6k|}

date_format_fuzzer.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  22.9k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
datefmt.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   117k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
datefmt.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|   128k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
dtptngen.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  6.22M|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
dtptngen.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  2.90M|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
gregocal.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  56.3k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
gregoimp.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  59.2k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
number_utils.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   266k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
numsys.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   529k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
numsys.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  98.6k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
region.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  3.83k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
region.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|   147k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
reldtfmt.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  25.9k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
reldtfmt.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  17.3k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
smpdtfmt.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   913k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
smpdtfmt.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|   585k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
timezone.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   118k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
timezone.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  2.26k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
tzfmt.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   431k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
tzfmt.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|   120k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
tzgnames.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  5.54k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
tzgnames.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  1.66k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
tznames.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  8.66k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
tznames.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  9.39k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
tznames_impl.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  18.5k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
tznames_impl.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  1.72k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
udat.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  15.5k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
zonemeta.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  25.8k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
zonemeta.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  8.48k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
calendar.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  1.09M|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
calendar.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|   436k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
dayperiodrules.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  9.97k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
dcfmtsym.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  1.55M|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
dcfmtsym.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|   237k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
decimfmt.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   455k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
decimfmt.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|   159k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
dtfmtsym.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  3.48M|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
dtfmtsym.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|   554k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
ethpccal.cpp:_ZL9U_FAILURE10UErrorCode:
  737|      3|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
hebrwcal.cpp:_ZL9U_FAILURE10UErrorCode:
  737|     81|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
number_affixutils.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   114k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
number_decimfmtprops.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   405k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
number_grouping.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  57.0k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
number_output.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   100k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
number_patternstring.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  1.32M|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
number_simple.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   573k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
number_simple.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|   100k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
numfmt.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   574k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
numfmt.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  69.6k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
olsontz.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|    979|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
olsontz.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  37.5k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
persncal.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  1.44k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
rbnf.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  13.3k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
rbnf.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|   216k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
simpletz.cpp:_ZL9U_FAILURE10UErrorCode:
  737|    128|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
taiwncal.cpp:_ZL9U_FAILURE10UErrorCode:
  737|      3|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
astro.cpp:_ZL9U_FAILURE10UErrorCode:
  737|     36|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
buddhcal.cpp:_ZL9U_FAILURE10UErrorCode:
  737|      3|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
cecal.cpp:_ZL9U_FAILURE10UErrorCode:
  737|      4|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
formatted_string_builder.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  1.17M|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
nfrs.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   114k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
nfrule.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  5.88M|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
nfsubs.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  41.9k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
bytesinkutil.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  3.30M|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
charstr.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  72.4M|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
charstr.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  1.19M|    inline UBool U_SUCCESS(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; }
locbased.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  1.50M|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
locdspnm.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|    834|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
locid.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   721k|    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; }
loclikely.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   308k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
loclikely.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|   316k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
loclikelysubtags.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   264k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
loclikelysubtags.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|     20|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
locresdata.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  2.50k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
locresdata.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|    834|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
lsr.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  97.0k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
putil.cpp:_ZL9U_FAILURE10UErrorCode:
  737|      6|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
putil.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|      3|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
simpleformatter.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  63.7k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uarrsort.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  29.9k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
ucurr.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   355k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
ucurr.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|   397k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
udata.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   282k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
udata.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|   138k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
udatamem.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  2.17k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uhash.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  1.74M|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uloc.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  13.9M|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uloc.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|   146k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uloc_keytype.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   445k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uloc_keytype.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  78.6k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uloc_tag.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  2.44M|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uloc_tag.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  73.5k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
unifiedcache.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   859k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
unifiedcache.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  38.4k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
unistr.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  8.14k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
unistr.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  13.5k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uresbund.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  30.4M|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uresbund.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  6.75M|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uresdata.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  6.89M|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
ustrcase.cpp:_ZL9U_FAILURE10UErrorCode:
  737|    877|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
ustring.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|   462k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
ustrtrns.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  8.14k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uvector.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   377k|    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; }
ucmndata.cpp:_ZL9U_FAILURE10UErrorCode:
  737|      2|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }

_ZN6icu_7815ucache_hashKeysE8UElement:
   49|   337k|ucache_hashKeys(const UHashTok key) {
   50|   337k|    const CacheKeyBase* ckey = static_cast<const CacheKeyBase*>(key.pointer);
   51|   337k|    return ckey->hashCode();
   52|   337k|}
_ZN6icu_7818ucache_compareKeysE8UElementS0_:
   55|   278k|ucache_compareKeys(const UHashTok key1, const UHashTok key2) {
   56|   278k|    const CacheKeyBase* p1 = static_cast<const CacheKeyBase*>(key1.pointer);
   57|   278k|    const CacheKeyBase* p2 = static_cast<const CacheKeyBase*>(key2.pointer);
   58|   278k|    return *p1 == *p2;
   59|   278k|}
_ZN6icu_7816ucache_deleteKeyEPv:
   62|  37.4k|ucache_deleteKey(void *obj) {
   63|  37.4k|    CacheKeyBase* p = static_cast<CacheKeyBase*>(obj);
   64|  37.4k|    delete p;
   65|  37.4k|}
_ZN6icu_7812CacheKeyBaseD2Ev:
   67|   298k|CacheKeyBase::~CacheKeyBase() {
   68|   298k|}
_ZN6icu_7812UnifiedCache11getInstanceER10UErrorCode:
   88|   260k|UnifiedCache *UnifiedCache::getInstance(UErrorCode &status) {
   89|   260k|    umtx_initOnce(gCacheInitOnce, &cacheInit, status);
   90|   260k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (90:9): [True: 0, False: 260k]
  ------------------
   91|      0|        return nullptr;
   92|      0|    }
   93|   260k|    U_ASSERT(gCache != nullptr);
  ------------------
  |  |   35|   260k|#   define U_ASSERT(exp) (void)0
  ------------------
   94|   260k|    return gCache;
   95|   260k|}
_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|   259k|void UnifiedCache::handleUnreferencedObject() const {
  168|   259k|    std::lock_guard<std::mutex> lock(*gCacheMutex);
  169|   259k|    --fNumValuesInUse;
  170|   259k|    _runEvictionSlice();
  171|   259k|}
_ZNK6icu_7812UnifiedCache12_nextElementEv:
  237|  37.4k|UnifiedCache::_nextElement() const {
  238|  37.4k|    const UHashElement *element = uhash_nextElement(fHashtable, &fEvictPos);
  ------------------
  |  | 1029|  37.4k|#define uhash_nextElement U_ICU_ENTRY_POINT_RENAME(uhash_nextElement)
  |  |  ------------------
  |  |  |  |  123|  37.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  37.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  37.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  239|  37.4k|    if (element == nullptr) {
  ------------------
  |  Branch (239:9): [True: 23, False: 37.4k]
  ------------------
  240|     23|        fEvictPos = UHASH_FIRST;
  ------------------
  |  |  610|     23|#define UHASH_FIRST (-1)
  ------------------
  241|     23|        return uhash_nextElement(fHashtable, &fEvictPos);
  ------------------
  |  | 1029|     23|#define uhash_nextElement U_ICU_ENTRY_POINT_RENAME(uhash_nextElement)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  242|     23|    }
  243|  37.4k|    return element;
  244|  37.4k|}
_ZNK6icu_7812UnifiedCache27_computeCountOfItemsToEvictEv:
  266|   297k|int32_t UnifiedCache::_computeCountOfItemsToEvict() const {
  267|   297k|    int32_t totalItems = uhash_count(fHashtable);
  ------------------
  |  | 1001|   297k|#define uhash_count U_ICU_ENTRY_POINT_RENAME(uhash_count)
  |  |  ------------------
  |  |  |  |  123|   297k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   297k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   297k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  268|   297k|    int32_t evictableItems = totalItems - fNumValuesInUse;
  269|       |
  270|   297k|    int32_t unusedLimitByPercentage = fNumValuesInUse * fMaxPercentageOfInUse / 100;
  271|   297k|    int32_t unusedLimit = std::max(unusedLimitByPercentage, fMaxUnused);
  272|   297k|    int32_t countOfItemsToEvict = std::max<int32_t>(0, evictableItems - unusedLimit);
  273|   297k|    return countOfItemsToEvict;
  274|   297k|}
_ZNK6icu_7812UnifiedCache17_runEvictionSliceEv:
  276|   297k|void UnifiedCache::_runEvictionSlice() const {
  277|   297k|    int32_t maxItemsToEvict = _computeCountOfItemsToEvict();
  278|   297k|    if (maxItemsToEvict <= 0) {
  ------------------
  |  Branch (278:9): [True: 260k, False: 37.4k]
  ------------------
  279|   260k|        return;
  280|   260k|    }
  281|  37.4k|    for (int32_t i = 0; i < MAX_EVICT_ITERATIONS; ++i) {
  ------------------
  |  Branch (281:25): [True: 37.4k, False: 0]
  ------------------
  282|  37.4k|        const UHashElement *element = _nextElement();
  283|  37.4k|        if (element == nullptr) {
  ------------------
  |  Branch (283:13): [True: 0, False: 37.4k]
  ------------------
  284|      0|            break;
  285|      0|        }
  286|  37.4k|        if (_isEvictable(element)) {
  ------------------
  |  Branch (286:13): [True: 37.4k, False: 3]
  ------------------
  287|  37.4k|            const SharedObject *sharedObject =
  288|  37.4k|                    static_cast<const SharedObject*>(element->value.pointer);
  289|  37.4k|            uhash_removeElement(fHashtable, element);
  ------------------
  |  | 1037|  37.4k|#define uhash_removeElement U_ICU_ENTRY_POINT_RENAME(uhash_removeElement)
  |  |  ------------------
  |  |  |  |  123|  37.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  37.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  37.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  290|  37.4k|            removeSoftRef(sharedObject);   // Deletes sharedObject when SoftRefCount goes to zero.
  291|  37.4k|            ++fAutoEvictedCount;
  292|  37.4k|            if (--maxItemsToEvict == 0) {
  ------------------
  |  Branch (292:17): [True: 37.4k, False: 0]
  ------------------
  293|  37.4k|                break;
  294|  37.4k|            }
  295|  37.4k|        }
  296|  37.4k|    }
  297|  37.4k|}
_ZNK6icu_7812UnifiedCache7_putNewERKNS_12CacheKeyBaseEPKNS_12SharedObjectE10UErrorCodeRS7_:
  303|  38.4k|        UErrorCode &status) const {
  304|  38.4k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (304:9): [True: 0, False: 38.4k]
  ------------------
  305|      0|        return;
  306|      0|    }
  307|  38.4k|    CacheKeyBase *keyToAdopt = key.clone();
  308|  38.4k|    if (keyToAdopt == nullptr) {
  ------------------
  |  Branch (308:9): [True: 0, False: 38.4k]
  ------------------
  309|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  310|      0|        return;
  311|      0|    }
  312|  38.4k|    keyToAdopt->fCreationStatus = creationStatus;
  313|  38.4k|    if (value->softRefCount == 0) {
  ------------------
  |  Branch (313:9): [True: 0, False: 38.4k]
  ------------------
  314|      0|        _registerPrimary(keyToAdopt, value);
  315|      0|    }
  316|  38.4k|    void *oldValue = uhash_put(fHashtable, keyToAdopt, (void *) value, &status);
  ------------------
  |  | 1032|  38.4k|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|  38.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  38.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  38.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  317|  38.4k|    U_ASSERT(oldValue == nullptr);
  ------------------
  |  |   35|  38.4k|#   define U_ASSERT(exp) (void)0
  ------------------
  318|  38.4k|    (void)oldValue;
  319|  38.4k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (319:9): [True: 38.4k, False: 0]
  ------------------
  320|  38.4k|        value->softRefCount++;
  321|  38.4k|    }
  322|  38.4k|}
_ZNK6icu_7812UnifiedCache18_putIfAbsentAndGetERKNS_12CacheKeyBaseERPKNS_12SharedObjectER10UErrorCode:
  327|  38.4k|        UErrorCode &status) const {
  328|  38.4k|    std::lock_guard<std::mutex> lock(*gCacheMutex);
  329|  38.4k|    const UHashElement *element = uhash_find(fHashtable, &key);
  ------------------
  |  | 1006|  38.4k|#define uhash_find U_ICU_ENTRY_POINT_RENAME(uhash_find)
  |  |  ------------------
  |  |  |  |  123|  38.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  38.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  38.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  330|  38.4k|    if (element != nullptr && !_inProgress(element)) {
  ------------------
  |  Branch (330:9): [True: 38.4k, False: 0]
  |  Branch (330:31): [True: 0, False: 38.4k]
  ------------------
  331|      0|        _fetch(element, value, status);
  332|      0|        return;
  333|      0|    }
  334|  38.4k|    if (element == nullptr) {
  ------------------
  |  Branch (334:9): [True: 0, False: 38.4k]
  ------------------
  335|      0|        UErrorCode putError = U_ZERO_ERROR;
  336|       |        // best-effort basis only.
  337|      0|        _putNew(key, value, status, putError);
  338|  38.4k|    } else {
  339|  38.4k|        _put(element, value, status);
  340|  38.4k|    }
  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|  38.4k|    _runEvictionSlice();
  344|  38.4k|}
_ZNK6icu_7812UnifiedCache5_pollERKNS_12CacheKeyBaseERPKNS_12SharedObjectER10UErrorCode:
  350|   260k|        UErrorCode &status) const {
  351|   260k|    U_ASSERT(value == nullptr);
  ------------------
  |  |   35|   260k|#   define U_ASSERT(exp) (void)0
  ------------------
  352|   260k|    U_ASSERT(status == U_ZERO_ERROR);
  ------------------
  |  |   35|   260k|#   define U_ASSERT(exp) (void)0
  ------------------
  353|   260k|    std::unique_lock<std::mutex> lock(*gCacheMutex);
  354|   260k|    const UHashElement *element = uhash_find(fHashtable, &key);
  ------------------
  |  | 1006|   260k|#define uhash_find U_ICU_ENTRY_POINT_RENAME(uhash_find)
  |  |  ------------------
  |  |  |  |  123|   260k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   260k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   260k|#       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|   260k|     while (element != nullptr && _inProgress(element)) {
  ------------------
  |  Branch (359:13): [True: 222k, False: 38.4k]
  |  Branch (359:35): [True: 0, False: 222k]
  ------------------
  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|   260k|    if (element != nullptr) {
  ------------------
  |  Branch (366:9): [True: 222k, False: 38.4k]
  ------------------
  367|   222k|         _fetch(element, value, status);
  368|   222k|        return true;
  369|   222k|    }
  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|  38.4k|    _putNew(key, fNoValue, U_ZERO_ERROR, status);
  375|  38.4k|    return false;
  376|   260k|}
_ZNK6icu_7812UnifiedCache4_getERKNS_12CacheKeyBaseERPKNS_12SharedObjectEPKvR10UErrorCode:
  382|   260k|        UErrorCode &status) const {
  383|   260k|    U_ASSERT(value == nullptr);
  ------------------
  |  |   35|   260k|#   define U_ASSERT(exp) (void)0
  ------------------
  384|   260k|    U_ASSERT(status == U_ZERO_ERROR);
  ------------------
  |  |   35|   260k|#   define U_ASSERT(exp) (void)0
  ------------------
  385|   260k|    if (_poll(key, value, status)) {
  ------------------
  |  Branch (385:9): [True: 222k, False: 38.4k]
  ------------------
  386|   222k|        if (value == fNoValue) {
  ------------------
  |  Branch (386:13): [True: 1.07k, False: 221k]
  ------------------
  387|  1.07k|            SharedObject::clearPtr(value);
  388|  1.07k|        }
  389|   222k|        return;
  390|   222k|    }
  391|  38.4k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (391:9): [True: 0, False: 38.4k]
  ------------------
  392|      0|        return;
  393|      0|    }
  394|  38.4k|    value = key.createObject(creationContext, status);
  395|  38.4k|    U_ASSERT(value == nullptr || value->hasHardReferences());
  ------------------
  |  |   35|  38.4k|#   define U_ASSERT(exp) (void)0
  ------------------
  396|  38.4k|    U_ASSERT(value != nullptr || status != U_ZERO_ERROR);
  ------------------
  |  |   35|  38.4k|#   define U_ASSERT(exp) (void)0
  ------------------
  397|  38.4k|    if (value == nullptr) {
  ------------------
  |  Branch (397:9): [True: 270, False: 38.2k]
  ------------------
  398|    270|        SharedObject::copyPtr(fNoValue, value);
  399|    270|    }
  400|  38.4k|    _putIfAbsentAndGet(key, value, status);
  401|  38.4k|    if (value == fNoValue) {
  ------------------
  |  Branch (401:9): [True: 270, False: 38.2k]
  ------------------
  402|    270|        SharedObject::clearPtr(value);
  403|    270|    }
  404|  38.4k|}
_ZNK6icu_7812UnifiedCache16_registerPrimaryEPKNS_12CacheKeyBaseEPKNS_12SharedObjectE:
  407|  38.2k|            const CacheKeyBase *theKey, const SharedObject *value) const {
  408|  38.2k|    theKey->fIsPrimary = true;
  409|  38.2k|    value->cachePtr = this;
  410|  38.2k|    ++fNumValuesTotal;
  411|  38.2k|    ++fNumValuesInUse;
  412|  38.2k|}
_ZNK6icu_7812UnifiedCache4_putEPK12UHashElementPKNS_12SharedObjectE10UErrorCode:
  417|  38.4k|        const UErrorCode status) const {
  418|  38.4k|    U_ASSERT(_inProgress(element));
  ------------------
  |  |   35|  38.4k|#   define U_ASSERT(exp) (void)0
  ------------------
  419|  38.4k|    const CacheKeyBase* theKey = static_cast<const CacheKeyBase*>(element->key.pointer);
  420|  38.4k|    const SharedObject* oldValue = static_cast<const SharedObject*>(element->value.pointer);
  421|  38.4k|    theKey->fCreationStatus = status;
  422|  38.4k|    if (value->softRefCount == 0) {
  ------------------
  |  Branch (422:9): [True: 38.2k, False: 270]
  ------------------
  423|  38.2k|        _registerPrimary(theKey, value);
  424|  38.2k|    }
  425|  38.4k|    value->softRefCount++;
  426|  38.4k|    UHashElement *ptr = const_cast<UHashElement *>(element);
  427|  38.4k|    ptr->value.pointer = (void *) value;
  428|  38.4k|    U_ASSERT(oldValue == fNoValue);
  ------------------
  |  |   35|  38.4k|#   define U_ASSERT(exp) (void)0
  ------------------
  429|  38.4k|    removeSoftRef(oldValue);
  430|       |
  431|       |    // Tell waiting threads that we replace in-progress status with
  432|       |    // an error.
  433|  38.4k|    gInProgressValueAddedCond->notify_all();
  434|  38.4k|}
_ZNK6icu_7812UnifiedCache6_fetchEPK12UHashElementRPKNS_12SharedObjectER10UErrorCode:
  439|   483k|        UErrorCode &status) const {
  440|   483k|    const CacheKeyBase* theKey = static_cast<const CacheKeyBase*>(element->key.pointer);
  441|   483k|    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|   483k|    removeHardRef(value);
  447|   483k|    value = static_cast<const SharedObject *>(element->value.pointer);
  448|   483k|    addHardRef(value);
  449|   483k|}
_ZNK6icu_7812UnifiedCache11_inProgressEPK12UHashElement:
  452|   260k|UBool UnifiedCache::_inProgress(const UHashElement* element) const {
  453|   260k|    UErrorCode status = U_ZERO_ERROR;
  454|   260k|    const SharedObject * value = nullptr;
  455|   260k|    _fetch(element, value, status);
  456|   260k|    UBool result = _inProgress(value, status);
  457|   260k|    removeHardRef(value);
  458|   260k|    return result;
  459|   260k|}
_ZNK6icu_7812UnifiedCache11_inProgressEPKNS_12SharedObjectE10UErrorCode:
  462|   298k|        const SharedObject* theValue, UErrorCode creationStatus) const {
  463|   298k|    return (theValue == fNoValue && creationStatus == U_ZERO_ERROR);
  ------------------
  |  Branch (463:13): [True: 39.8k, False: 258k]
  |  Branch (463:37): [True: 38.4k, False: 1.34k]
  ------------------
  464|   298k|}
_ZNK6icu_7812UnifiedCache12_isEvictableEPK12UHashElement:
  467|  37.4k|{
  468|  37.4k|    const CacheKeyBase* theKey = static_cast<const CacheKeyBase*>(element->key.pointer);
  469|  37.4k|    const SharedObject* theValue = static_cast<const SharedObject*>(element->value.pointer);
  470|       |
  471|       |    // Entries that are under construction are never evictable
  472|  37.4k|    if (_inProgress(theValue, theKey->fCreationStatus)) {
  ------------------
  |  Branch (472:9): [True: 3, False: 37.4k]
  ------------------
  473|      3|        return false;
  474|      3|    }
  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|  37.4k|    return (!theKey->fIsPrimary || (theValue->softRefCount == 1 && theValue->noHardReferences()));
  ------------------
  |  Branch (478:13): [True: 269, False: 37.2k]
  |  Branch (478:37): [True: 37.2k, False: 0]
  |  Branch (478:68): [True: 37.2k, False: 0]
  ------------------
  479|  37.4k|}
_ZNK6icu_7812UnifiedCache13removeSoftRefEPKNS_12SharedObjectE:
  481|  75.9k|void UnifiedCache::removeSoftRef(const SharedObject *value) const {
  482|  75.9k|    U_ASSERT(value->cachePtr == this);
  ------------------
  |  |   35|  75.9k|#   define U_ASSERT(exp) (void)0
  ------------------
  483|  75.9k|    U_ASSERT(value->softRefCount > 0);
  ------------------
  |  |   35|  75.9k|#   define U_ASSERT(exp) (void)0
  ------------------
  484|  75.9k|    if (--value->softRefCount == 0) {
  ------------------
  |  Branch (484:9): [True: 37.2k, False: 38.7k]
  ------------------
  485|  37.2k|        --fNumValuesTotal;
  486|  37.2k|        if (value->noHardReferences()) {
  ------------------
  |  Branch (486:13): [True: 37.2k, False: 0]
  ------------------
  487|  37.2k|            delete value;
  488|  37.2k|        } 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|  37.2k|    }
  495|  75.9k|}
_ZNK6icu_7812UnifiedCache13removeHardRefEPKNS_12SharedObjectE:
  497|   743k|int32_t UnifiedCache::removeHardRef(const SharedObject *value) const {
  498|   743k|    int refCount = 0;
  499|   743k|    if (value) {
  ------------------
  |  Branch (499:9): [True: 260k, False: 483k]
  ------------------
  500|   260k|        refCount = umtx_atomic_dec(&value->hardRefCount);
  501|   260k|        U_ASSERT(refCount >= 0);
  ------------------
  |  |   35|   260k|#   define U_ASSERT(exp) (void)0
  ------------------
  502|   260k|        if (refCount == 0) {
  ------------------
  |  Branch (502:13): [True: 221k, False: 39.5k]
  ------------------
  503|   221k|            --fNumValuesInUse;
  504|   221k|        }
  505|   260k|    }
  506|   743k|    return refCount;
  507|   743k|}
_ZNK6icu_7812UnifiedCache10addHardRefEPKNS_12SharedObjectE:
  509|   483k|int32_t UnifiedCache::addHardRef(const SharedObject *value) const {
  510|   483k|    int refCount = 0;
  511|   483k|    if (value) {
  ------------------
  |  Branch (511:9): [True: 483k, False: 0]
  ------------------
  512|   483k|        refCount = umtx_atomic_inc(&value->hardRefCount);
  513|   483k|        U_ASSERT(refCount >= 1);
  ------------------
  |  |   35|   483k|#   define U_ASSERT(exp) (void)0
  ------------------
  514|   483k|        if (refCount == 1) {
  ------------------
  |  Branch (514:13): [True: 442k, False: 40.6k]
  ------------------
  515|   442k|            fNumValuesInUse++;
  516|   442k|        }
  517|   483k|    }
  518|   483k|    return refCount;
  519|   483k|}
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_7814LocaleCacheKeyINS_18DateFmtBestPatternEEC2ERKNS_6LocaleE:
  151|  15.5k|   LocaleCacheKey(const Locale &loc) : fLoc(loc) {}
_ZN6icu_7812CacheKeyBaseC2Ev:
   37|   260k|   CacheKeyBase() : fCreationStatus(U_ZERO_ERROR), fIsPrimary(false) {}
_ZNK6icu_788CacheKeyINS_18DateFmtBestPatternEE8hashCodeEv:
  110|  35.1k|   virtual int32_t hashCode() const override {
  111|  35.1k|       const char *s = typeid(T).name();
  112|  35.1k|       return ustr_hashCharsN(s, static_cast<int32_t>(uprv_strlen(s)));
  ------------------
  |  | 1878|  35.1k|#define ustr_hashCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashCharsN)
  |  |  ------------------
  |  |  |  |  123|  35.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  35.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  35.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                     return ustr_hashCharsN(s, static_cast<int32_t>(uprv_strlen(s)));
  ------------------
  |  |   37|  35.1k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  35.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  113|  35.1k|   }
_ZNK6icu_788CacheKeyINS_18DateFmtBestPatternEE6equalsERKNS_12CacheKeyBaseE:
  129|  15.5k|   virtual bool equals(const CacheKeyBase &other) const override {
  130|  15.5k|       return this == &other || typeid(*this) == typeid(other);
  ------------------
  |  Branch (130:15): [True: 0, False: 15.5k]
  |  Branch (130:33): [True: 15.5k, False: 0]
  ------------------
  131|  15.5k|   }
_ZNK6icu_7814LocaleCacheKeyINS_18DateFmtBestPatternEE8hashCodeEv:
  155|  35.1k|   virtual int32_t hashCode() const override {
  156|  35.1k|       return (int32_t)(37u * (uint32_t)CacheKey<T>::hashCode() + (uint32_t)fLoc.hashCode());
  157|  35.1k|   }
_ZN6icu_7814LocaleCacheKeyINS_18DateFmtBestPatternEEC2ERKS2_:
  153|  9.83k|           : CacheKey<T>(other), fLoc(other.fLoc) { }
_ZN6icu_7812CacheKeyBaseC2ERKS0_:
   43|  38.4k|           : UObject(other), fCreationStatus(other.fCreationStatus), fIsPrimary(false) { }
_ZNK6icu_7814LocaleCacheKeyINS_18DateFmtBestPatternEE6equalsERKNS_12CacheKeyBaseE:
  142|  15.5k|   virtual bool equals(const CacheKeyBase &other) const override {
  143|  15.5k|       if (!CacheKey<T>::equals(other)) {
  ------------------
  |  Branch (143:12): [True: 0, False: 15.5k]
  ------------------
  144|      0|           return false;
  145|      0|       }
  146|       |       // We know this and other are of same class because equals() on
  147|       |       // CacheKey returned true.
  148|  15.5k|       return operator==(static_cast<const LocaleCacheKey<T> &>(other));
  149|  15.5k|   }
_ZNK6icu_7814LocaleCacheKeyINS_18DateFmtBestPatternEEeqERKS2_:
  158|  15.5k|   inline bool operator == (const LocaleCacheKey<T> &other) const {
  159|  15.5k|       return fLoc == other.fLoc;
  160|  15.5k|   }
_ZN6icu_7814LocaleCacheKeyINS_18DateFmtBestPatternEED2Ev:
  154|  25.0k|   virtual ~LocaleCacheKey() { }
_ZNK6icu_7812UnifiedCache3getINS_18DateFmtBestPatternEEEvRKNS_8CacheKeyIT_EERPKS4_R10UErrorCode:
  205|  15.5k|           UErrorCode &status) const {
  206|  15.5k|       get(key, nullptr, ptr, status);
  207|  15.5k|   }
_ZNK6icu_7812UnifiedCache3getINS_18DateFmtBestPatternEEEvRKNS_8CacheKeyIT_EEPKvRPKS4_R10UErrorCode:
  228|  15.5k|           UErrorCode &status) const {
  229|  15.5k|       if (U_FAILURE(status)) {
  ------------------
  |  Branch (229:12): [True: 0, False: 15.5k]
  ------------------
  230|      0|           return;
  231|      0|       }
  232|  15.5k|       UErrorCode creationStatus = U_ZERO_ERROR;
  233|  15.5k|       const SharedObject *value = nullptr;
  234|  15.5k|       _get(key, value, creationContext, creationStatus);
  235|  15.5k|       const T *tvalue = (const T *) value;
  236|  15.5k|       if (U_SUCCESS(creationStatus)) {
  ------------------
  |  Branch (236:12): [True: 15.5k, False: 0]
  ------------------
  237|  15.5k|           SharedObject::copyPtr(tvalue, ptr);
  238|  15.5k|       }
  239|  15.5k|       SharedObject::clearPtr(tvalue);
  240|       |       // Take care not to overwrite a warning status passed in with
  241|       |       // another warning or U_ZERO_ERROR.
  242|  15.5k|       if (status == U_ZERO_ERROR || U_FAILURE(creationStatus)) {
  ------------------
  |  Branch (242:12): [True: 15.5k, False: 0]
  |  Branch (242:38): [True: 0, False: 0]
  ------------------
  243|  15.5k|           status = creationStatus;
  244|  15.5k|       }
  245|  15.5k|   }
_ZN6icu_78eqERKNS_12CacheKeyBaseES2_:
   79|   278k|                                 const CacheKeyBase& rhs) {
   80|   278k|       return lhs.equals(rhs);
   81|   278k|   }
_ZN6icu_7812UnifiedCache11getByLocaleINS_14SharedCalendarEEEvRKNS_6LocaleERPKT_R10UErrorCode:
  269|   106k|           const Locale &loc, const T *&ptr, UErrorCode &status) {
  270|   106k|       const UnifiedCache *cache = getInstance(status);
  271|   106k|       if (U_FAILURE(status)) {
  ------------------
  |  Branch (271:12): [True: 0, False: 106k]
  ------------------
  272|      0|           return;
  273|      0|       }
  274|   106k|       cache->get(LocaleCacheKey<T>(loc), ptr, status);
  275|   106k|   }
_ZNK6icu_7812UnifiedCache3getINS_14SharedCalendarEEEvRKNS_8CacheKeyIT_EERPKS4_R10UErrorCode:
  205|   106k|           UErrorCode &status) const {
  206|   106k|       get(key, nullptr, ptr, status);
  207|   106k|   }
_ZNK6icu_7812UnifiedCache3getINS_14SharedCalendarEEEvRKNS_8CacheKeyIT_EEPKvRPKS4_R10UErrorCode:
  228|   106k|           UErrorCode &status) const {
  229|   106k|       if (U_FAILURE(status)) {
  ------------------
  |  Branch (229:12): [True: 0, False: 106k]
  ------------------
  230|      0|           return;
  231|      0|       }
  232|   106k|       UErrorCode creationStatus = U_ZERO_ERROR;
  233|   106k|       const SharedObject *value = nullptr;
  234|   106k|       _get(key, value, creationContext, creationStatus);
  235|   106k|       const T *tvalue = (const T *) value;
  236|   106k|       if (U_SUCCESS(creationStatus)) {
  ------------------
  |  Branch (236:12): [True: 106k, False: 0]
  ------------------
  237|   106k|           SharedObject::copyPtr(tvalue, ptr);
  238|   106k|       }
  239|   106k|       SharedObject::clearPtr(tvalue);
  240|       |       // Take care not to overwrite a warning status passed in with
  241|       |       // another warning or U_ZERO_ERROR.
  242|   106k|       if (status == U_ZERO_ERROR || U_FAILURE(creationStatus)) {
  ------------------
  |  Branch (242:12): [True: 81.3k, False: 25.3k]
  |  Branch (242:38): [True: 0, False: 25.3k]
  ------------------
  243|  81.3k|           status = creationStatus;
  244|  81.3k|       }
  245|   106k|   }
_ZN6icu_7814LocaleCacheKeyINS_14SharedCalendarEEC2ERKNS_6LocaleE:
  151|   106k|   LocaleCacheKey(const Locale &loc) : fLoc(loc) {}
_ZNK6icu_788CacheKeyINS_14SharedCalendarEE8hashCodeEv:
  110|   125k|   virtual int32_t hashCode() const override {
  111|   125k|       const char *s = typeid(T).name();
  112|   125k|       return ustr_hashCharsN(s, static_cast<int32_t>(uprv_strlen(s)));
  ------------------
  |  | 1878|   125k|#define ustr_hashCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashCharsN)
  |  |  ------------------
  |  |  |  |  123|   125k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   125k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   125k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                     return ustr_hashCharsN(s, static_cast<int32_t>(uprv_strlen(s)));
  ------------------
  |  |   37|   125k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|   125k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  113|   125k|   }
_ZNK6icu_788CacheKeyINS_14SharedCalendarEE6equalsERKNS_12CacheKeyBaseE:
  129|   113k|   virtual bool equals(const CacheKeyBase &other) const override {
  130|   113k|       return this == &other || typeid(*this) == typeid(other);
  ------------------
  |  Branch (130:15): [True: 0, False: 113k]
  |  Branch (130:33): [True: 113k, False: 0]
  ------------------
  131|   113k|   }
_ZNK6icu_7814LocaleCacheKeyINS_14SharedCalendarEE8hashCodeEv:
  155|   125k|   virtual int32_t hashCode() const override {
  156|   125k|       return (int32_t)(37u * (uint32_t)CacheKey<T>::hashCode() + (uint32_t)fLoc.hashCode());
  157|   125k|   }
_ZNK6icu_7814LocaleCacheKeyINS_14SharedCalendarEE5cloneEv:
  161|  9.47k|   virtual CacheKeyBase *clone() const override {
  162|  9.47k|       return new LocaleCacheKey<T>(*this);
  163|  9.47k|   }
_ZN6icu_7814LocaleCacheKeyINS_14SharedCalendarEEC2ERKS2_:
  153|  9.47k|           : CacheKey<T>(other), fLoc(other.fLoc) { }
_ZNK6icu_7814LocaleCacheKeyINS_14SharedCalendarEE6equalsERKNS_12CacheKeyBaseE:
  142|   113k|   virtual bool equals(const CacheKeyBase &other) const override {
  143|   113k|       if (!CacheKey<T>::equals(other)) {
  ------------------
  |  Branch (143:12): [True: 0, False: 113k]
  ------------------
  144|      0|           return false;
  145|      0|       }
  146|       |       // We know this and other are of same class because equals() on
  147|       |       // CacheKey returned true.
  148|   113k|       return operator==(static_cast<const LocaleCacheKey<T> &>(other));
  149|   113k|   }
_ZNK6icu_7814LocaleCacheKeyINS_14SharedCalendarEEeqERKS2_:
  158|   113k|   inline bool operator == (const LocaleCacheKey<T> &other) const {
  159|   113k|       return fLoc == other.fLoc;
  160|   113k|   }
_ZN6icu_7814LocaleCacheKeyINS_14SharedCalendarEED2Ev:
  154|   115k|   virtual ~LocaleCacheKey() { }
_ZN6icu_7812UnifiedCache11getByLocaleINS_23SharedDateFormatSymbolsEEEvRKNS_6LocaleERPKT_R10UErrorCode:
  269|  78.4k|           const Locale &loc, const T *&ptr, UErrorCode &status) {
  270|  78.4k|       const UnifiedCache *cache = getInstance(status);
  271|  78.4k|       if (U_FAILURE(status)) {
  ------------------
  |  Branch (271:12): [True: 0, False: 78.4k]
  ------------------
  272|      0|           return;
  273|      0|       }
  274|  78.4k|       cache->get(LocaleCacheKey<T>(loc), ptr, status);
  275|  78.4k|   }
_ZNK6icu_7812UnifiedCache3getINS_23SharedDateFormatSymbolsEEEvRKNS_8CacheKeyIT_EERPKS4_R10UErrorCode:
  205|  78.4k|           UErrorCode &status) const {
  206|  78.4k|       get(key, nullptr, ptr, status);
  207|  78.4k|   }
_ZNK6icu_7812UnifiedCache3getINS_23SharedDateFormatSymbolsEEEvRKNS_8CacheKeyIT_EEPKvRPKS4_R10UErrorCode:
  228|  78.4k|           UErrorCode &status) const {
  229|  78.4k|       if (U_FAILURE(status)) {
  ------------------
  |  Branch (229:12): [True: 0, False: 78.4k]
  ------------------
  230|      0|           return;
  231|      0|       }
  232|  78.4k|       UErrorCode creationStatus = U_ZERO_ERROR;
  233|  78.4k|       const SharedObject *value = nullptr;
  234|  78.4k|       _get(key, value, creationContext, creationStatus);
  235|  78.4k|       const T *tvalue = (const T *) value;
  236|  78.4k|       if (U_SUCCESS(creationStatus)) {
  ------------------
  |  Branch (236:12): [True: 78.0k, False: 406]
  ------------------
  237|  78.0k|           SharedObject::copyPtr(tvalue, ptr);
  238|  78.0k|       }
  239|  78.4k|       SharedObject::clearPtr(tvalue);
  240|       |       // Take care not to overwrite a warning status passed in with
  241|       |       // another warning or U_ZERO_ERROR.
  242|  78.4k|       if (status == U_ZERO_ERROR || U_FAILURE(creationStatus)) {
  ------------------
  |  Branch (242:12): [True: 37.4k, False: 41.0k]
  |  Branch (242:38): [True: 334, False: 40.6k]
  ------------------
  243|  37.7k|           status = creationStatus;
  244|  37.7k|       }
  245|  78.4k|   }
_ZN6icu_7814LocaleCacheKeyINS_23SharedDateFormatSymbolsEEC2ERKNS_6LocaleE:
  151|  78.4k|   LocaleCacheKey(const Locale &loc) : fLoc(loc) {}
_ZNK6icu_788CacheKeyINS_23SharedDateFormatSymbolsEE8hashCodeEv:
  110|  97.3k|   virtual int32_t hashCode() const override {
  111|  97.3k|       const char *s = typeid(T).name();
  112|  97.3k|       return ustr_hashCharsN(s, static_cast<int32_t>(uprv_strlen(s)));
  ------------------
  |  | 1878|  97.3k|#define ustr_hashCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashCharsN)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                     return ustr_hashCharsN(s, static_cast<int32_t>(uprv_strlen(s)));
  ------------------
  |  |   37|  97.3k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  97.3k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  113|  97.3k|   }
_ZNK6icu_788CacheKeyINS_23SharedDateFormatSymbolsEE6equalsERKNS_12CacheKeyBaseE:
  129|  83.5k|   virtual bool equals(const CacheKeyBase &other) const override {
  130|  83.5k|       return this == &other || typeid(*this) == typeid(other);
  ------------------
  |  Branch (130:15): [True: 0, False: 83.5k]
  |  Branch (130:33): [True: 83.5k, False: 0]
  ------------------
  131|  83.5k|   }
_ZNK6icu_7814LocaleCacheKeyINS_23SharedDateFormatSymbolsEE8hashCodeEv:
  155|  97.3k|   virtual int32_t hashCode() const override {
  156|  97.3k|       return (int32_t)(37u * (uint32_t)CacheKey<T>::hashCode() + (uint32_t)fLoc.hashCode());
  157|  97.3k|   }
_ZNK6icu_7814LocaleCacheKeyINS_23SharedDateFormatSymbolsEE5cloneEv:
  161|  9.46k|   virtual CacheKeyBase *clone() const override {
  162|  9.46k|       return new LocaleCacheKey<T>(*this);
  163|  9.46k|   }
_ZN6icu_7814LocaleCacheKeyINS_23SharedDateFormatSymbolsEEC2ERKS2_:
  153|  9.46k|           : CacheKey<T>(other), fLoc(other.fLoc) { }
_ZNK6icu_7814LocaleCacheKeyINS_23SharedDateFormatSymbolsEE6equalsERKNS_12CacheKeyBaseE:
  142|  83.5k|   virtual bool equals(const CacheKeyBase &other) const override {
  143|  83.5k|       if (!CacheKey<T>::equals(other)) {
  ------------------
  |  Branch (143:12): [True: 0, False: 83.5k]
  ------------------
  144|      0|           return false;
  145|      0|       }
  146|       |       // We know this and other are of same class because equals() on
  147|       |       // CacheKey returned true.
  148|  83.5k|       return operator==(static_cast<const LocaleCacheKey<T> &>(other));
  149|  83.5k|   }
_ZNK6icu_7814LocaleCacheKeyINS_23SharedDateFormatSymbolsEEeqERKS2_:
  158|  83.5k|   inline bool operator == (const LocaleCacheKey<T> &other) const {
  159|  83.5k|       return fLoc == other.fLoc;
  160|  83.5k|   }
_ZN6icu_7814LocaleCacheKeyINS_23SharedDateFormatSymbolsEED2Ev:
  154|  87.6k|   virtual ~LocaleCacheKey() { }
_ZN6icu_7812UnifiedCache11getByLocaleINS_18SharedNumberFormatEEEvRKNS_6LocaleERPKT_R10UErrorCode:
  269|  60.1k|           const Locale &loc, const T *&ptr, UErrorCode &status) {
  270|  60.1k|       const UnifiedCache *cache = getInstance(status);
  271|  60.1k|       if (U_FAILURE(status)) {
  ------------------
  |  Branch (271:12): [True: 0, False: 60.1k]
  ------------------
  272|      0|           return;
  273|      0|       }
  274|  60.1k|       cache->get(LocaleCacheKey<T>(loc), ptr, status);
  275|  60.1k|   }
_ZNK6icu_7812UnifiedCache3getINS_18SharedNumberFormatEEEvRKNS_8CacheKeyIT_EERPKS4_R10UErrorCode:
  205|  60.1k|           UErrorCode &status) const {
  206|  60.1k|       get(key, nullptr, ptr, status);
  207|  60.1k|   }
_ZNK6icu_7812UnifiedCache3getINS_18SharedNumberFormatEEEvRKNS_8CacheKeyIT_EEPKvRPKS4_R10UErrorCode:
  228|  60.1k|           UErrorCode &status) const {
  229|  60.1k|       if (U_FAILURE(status)) {
  ------------------
  |  Branch (229:12): [True: 0, False: 60.1k]
  ------------------
  230|      0|           return;
  231|      0|       }
  232|  60.1k|       UErrorCode creationStatus = U_ZERO_ERROR;
  233|  60.1k|       const SharedObject *value = nullptr;
  234|  60.1k|       _get(key, value, creationContext, creationStatus);
  235|  60.1k|       const T *tvalue = (const T *) value;
  236|  60.1k|       if (U_SUCCESS(creationStatus)) {
  ------------------
  |  Branch (236:12): [True: 59.2k, False: 937]
  ------------------
  237|  59.2k|           SharedObject::copyPtr(tvalue, ptr);
  238|  59.2k|       }
  239|  60.1k|       SharedObject::clearPtr(tvalue);
  240|       |       // Take care not to overwrite a warning status passed in with
  241|       |       // another warning or U_ZERO_ERROR.
  242|  60.1k|       if (status == U_ZERO_ERROR || U_FAILURE(creationStatus)) {
  ------------------
  |  Branch (242:12): [True: 14.9k, False: 45.1k]
  |  Branch (242:38): [True: 775, False: 44.4k]
  ------------------
  243|  15.7k|           status = creationStatus;
  244|  15.7k|       }
  245|  60.1k|   }
_ZN6icu_7814LocaleCacheKeyINS_18SharedNumberFormatEEC2ERKNS_6LocaleE:
  151|  60.1k|   LocaleCacheKey(const Locale &loc) : fLoc(loc) {}
_ZNK6icu_788CacheKeyINS_18SharedNumberFormatEE8hashCodeEv:
  110|  79.5k|   virtual int32_t hashCode() const override {
  111|  79.5k|       const char *s = typeid(T).name();
  112|  79.5k|       return ustr_hashCharsN(s, static_cast<int32_t>(uprv_strlen(s)));
  ------------------
  |  | 1878|  79.5k|#define ustr_hashCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashCharsN)
  |  |  ------------------
  |  |  |  |  123|  79.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  79.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  79.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                     return ustr_hashCharsN(s, static_cast<int32_t>(uprv_strlen(s)));
  ------------------
  |  |   37|  79.5k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  79.5k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  113|  79.5k|   }
_ZNK6icu_788CacheKeyINS_18SharedNumberFormatEE6equalsERKNS_12CacheKeyBaseE:
  129|  65.4k|   virtual bool equals(const CacheKeyBase &other) const override {
  130|  65.4k|       return this == &other || typeid(*this) == typeid(other);
  ------------------
  |  Branch (130:15): [True: 0, False: 65.4k]
  |  Branch (130:33): [True: 65.4k, False: 0]
  ------------------
  131|  65.4k|   }
_ZNK6icu_7814LocaleCacheKeyINS_18SharedNumberFormatEE8hashCodeEv:
  155|  79.5k|   virtual int32_t hashCode() const override {
  156|  79.5k|       return (int32_t)(37u * (uint32_t)CacheKey<T>::hashCode() + (uint32_t)fLoc.hashCode());
  157|  79.5k|   }
_ZNK6icu_7814LocaleCacheKeyINS_18SharedNumberFormatEE5cloneEv:
  161|  9.70k|   virtual CacheKeyBase *clone() const override {
  162|  9.70k|       return new LocaleCacheKey<T>(*this);
  163|  9.70k|   }
_ZN6icu_7814LocaleCacheKeyINS_18SharedNumberFormatEEC2ERKS2_:
  153|  9.70k|           : CacheKey<T>(other), fLoc(other.fLoc) { }
_ZNK6icu_7814LocaleCacheKeyINS_18SharedNumberFormatEE6equalsERKNS_12CacheKeyBaseE:
  142|  65.4k|   virtual bool equals(const CacheKeyBase &other) const override {
  143|  65.4k|       if (!CacheKey<T>::equals(other)) {
  ------------------
  |  Branch (143:12): [True: 0, False: 65.4k]
  ------------------
  144|      0|           return false;
  145|      0|       }
  146|       |       // We know this and other are of same class because equals() on
  147|       |       // CacheKey returned true.
  148|  65.4k|       return operator==(static_cast<const LocaleCacheKey<T> &>(other));
  149|  65.4k|   }
_ZNK6icu_7814LocaleCacheKeyINS_18SharedNumberFormatEEeqERKS2_:
  158|  65.4k|   inline bool operator == (const LocaleCacheKey<T> &other) const {
  159|  65.4k|       return fLoc == other.fLoc;
  160|  65.4k|   }
_ZN6icu_7814LocaleCacheKeyINS_18SharedNumberFormatEED2Ev:
  154|  69.6k|   virtual ~LocaleCacheKey() { }

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

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

_ZN6icu_7817UniqueCharStringsC2ER10UErrorCode:
   27|      2|    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|      2|        uhash_init(&map, uhash_hashUChars, uhash_compareUChars, uhash_compareLong, &errorCode);
  ------------------
  |  | 1022|      2|#define uhash_init U_ICU_ENTRY_POINT_RENAME(uhash_init)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      uhash_init(&map, uhash_hashUChars, uhash_compareUChars, uhash_compareLong, &errorCode);
  ------------------
  |  | 1016|      2|#define uhash_hashUChars U_ICU_ENTRY_POINT_RENAME(uhash_hashUChars)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      uhash_init(&map, uhash_hashUChars, uhash_compareUChars, uhash_compareLong, &errorCode);
  ------------------
  |  |  998|      2|#define uhash_compareUChars U_ICU_ENTRY_POINT_RENAME(uhash_compareUChars)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      uhash_init(&map, uhash_hashUChars, uhash_compareUChars, uhash_compareLong, &errorCode);
  ------------------
  |  |  996|      2|#define uhash_compareLong U_ICU_ENTRY_POINT_RENAME(uhash_compareLong)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   32|      2|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (32:13): [True: 0, False: 2]
  ------------------
   33|      2|        strings = new CharString();
   34|      2|        if (strings == nullptr) {
  ------------------
  |  Branch (34:13): [True: 0, False: 2]
  ------------------
   35|      0|            errorCode = U_MEMORY_ALLOCATION_ERROR;
   36|      0|        }
   37|      2|    }
_ZN6icu_7817UniqueCharStrings3addEPKDsR10UErrorCode:
   58|  9.23k|    int32_t add(const char16_t*p, UErrorCode &errorCode) {
   59|  9.23k|        if (U_FAILURE(errorCode)) { return -1; }
  ------------------
  |  Branch (59:13): [True: 0, False: 9.23k]
  ------------------
   60|  9.23k|        if (isFrozen) {
  ------------------
  |  Branch (60:13): [True: 0, False: 9.23k]
  ------------------
   61|      0|            errorCode = U_NO_WRITE_PERMISSION;
   62|      0|            return -1;
   63|      0|        }
   64|       |        // The string points into the resource bundle.
   65|  9.23k|        int32_t oldIndex = uhash_geti(&map, p);
  ------------------
  |  | 1008|  9.23k|#define uhash_geti U_ICU_ENTRY_POINT_RENAME(uhash_geti)
  |  |  ------------------
  |  |  |  |  123|  9.23k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.23k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.23k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   66|  9.23k|        if (oldIndex != 0) {  // found duplicate
  ------------------
  |  Branch (66:13): [True: 508, False: 8.72k]
  ------------------
   67|    508|            return oldIndex;
   68|    508|        }
   69|       |        // Explicit NUL terminator for the previous string.
   70|       |        // The strings object is also terminated with one implicit NUL.
   71|  8.72k|        strings->append(0, errorCode);
   72|  8.72k|        int32_t newIndex = strings->length();
   73|  8.72k|        strings->appendInvariantChars(p, u_strlen(p), errorCode);
  ------------------
  |  |  393|  8.72k|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|  8.72k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  8.72k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  8.72k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   74|  8.72k|        uhash_puti(&map, const_cast<char16_t *>(p), newIndex, &errorCode);
  ------------------
  |  | 1033|  8.72k|#define uhash_puti U_ICU_ENTRY_POINT_RENAME(uhash_puti)
  |  |  ------------------
  |  |  |  |  123|  8.72k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  8.72k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  8.72k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   75|  8.72k|        return newIndex;
   76|  9.23k|    }
_ZN6icu_7817UniqueCharStrings6freezeEv:
  100|      2|    void freeze() { isFrozen = true; }
_ZNK6icu_7817UniqueCharStrings3getEi:
  106|  24.3k|    const char *get(int32_t i) const {
  107|  24.3k|        U_ASSERT(isFrozen);
  ------------------
  |  |   35|  24.3k|#   define U_ASSERT(exp) (void)0
  ------------------
  108|  24.3k|        return isFrozen && i > 0 ? strings->data() + i : nullptr;
  ------------------
  |  Branch (108:16): [True: 24.3k, False: 0]
  |  Branch (108:28): [True: 24.3k, False: 0]
  ------------------
  109|  24.3k|    }
_ZN6icu_7817UniqueCharStrings17orphanCharStringsEv:
   44|      2|    CharString *orphanCharStrings() {
   45|      2|        CharString *result = strings;
   46|      2|        strings = nullptr;
   47|      2|        return result;
   48|      2|    }
_ZN6icu_7817UniqueCharStringsD2Ev:
   38|      2|    ~UniqueCharStrings() {
   39|      2|        uhash_close(&map);
  ------------------
  |  |  991|      2|#define uhash_close U_ICU_ENTRY_POINT_RENAME(uhash_close)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   40|      2|        delete strings;
   41|      2|    }
_ZN6icu_7817UniqueCharStrings10addByValueENS_13UnicodeStringER10UErrorCode:
   81|  22.5k|    int32_t addByValue(UnicodeString s, UErrorCode &errorCode) {
   82|  22.5k|        if (U_FAILURE(errorCode)) { return -1; }
  ------------------
  |  Branch (82:13): [True: 0, False: 22.5k]
  ------------------
   83|  22.5k|        if (isFrozen) {
  ------------------
  |  Branch (83:13): [True: 0, False: 22.5k]
  ------------------
   84|      0|            errorCode = U_NO_WRITE_PERMISSION;
   85|      0|            return -1;
   86|      0|        }
   87|  22.5k|        int32_t oldIndex = uhash_geti(&map, s.getTerminatedBuffer());
  ------------------
  |  | 1008|  22.5k|#define uhash_geti U_ICU_ENTRY_POINT_RENAME(uhash_geti)
  |  |  ------------------
  |  |  |  |  123|  22.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  22.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  22.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   88|  22.5k|        if (oldIndex != 0) {  // found duplicate
  ------------------
  |  Branch (88:13): [True: 15.1k, False: 7.36k]
  ------------------
   89|  15.1k|            return oldIndex;
   90|  15.1k|        }
   91|       |        // We need to store the string content of the UnicodeString.
   92|  7.36k|        UnicodeString *key = keyStore.create(s);
   93|  7.36k|        if (key == nullptr) {
  ------------------
  |  Branch (93:13): [True: 0, False: 7.36k]
  ------------------
   94|      0|            errorCode = U_MEMORY_ALLOCATION_ERROR;
   95|      0|            return -1;
   96|      0|        }
   97|  7.36k|        return add(key->getTerminatedBuffer(), errorCode);
   98|  7.36k|    }

_ZNK6icu_7810UnicodeSet10hasStringsEv:
  120|      2|UBool UnicodeSet::hasStrings() const {
  121|      2|    return strings_ != nullptr && !strings_->isEmpty();
  ------------------
  |  Branch (121:12): [True: 0, False: 2]
  |  Branch (121:35): [True: 0, False: 0]
  ------------------
  122|      2|}
_ZN6icu_7810UnicodeSetC2Ev:
  139|      1|UnicodeSet::UnicodeSet() {
  140|      1|    list[0] = UNICODESET_HIGH;
  ------------------
  |  |   34|      1|#define UNICODESET_HIGH 0x0110000
  ------------------
  141|      1|    _dbgct(this);
  142|      1|}
_ZN6icu_7810UnicodeSetC2ERKS0_a:
  166|      1|UnicodeSet::UnicodeSet(const UnicodeSet& o, UBool /* asThawed */) : UnicodeFilter(o) {
  167|      1|    if (ensureCapacity(o.len)) {
  ------------------
  |  Branch (167:9): [True: 1, False: 0]
  ------------------
  168|       |        // *this = o except for bmpSet and stringSpan
  169|      1|        len = o.len;
  170|      1|        uprv_memcpy(list, o.list, (size_t)len*sizeof(UChar32));
  ------------------
  |  |   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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  171|      1|        if (o.hasStrings()) {
  ------------------
  |  Branch (171:13): [True: 0, False: 1]
  ------------------
  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|      1|        if (o.pat) {
  ------------------
  |  Branch (179:13): [True: 0, False: 1]
  ------------------
  180|      0|            setPattern(o.pat, o.patLen);
  181|      0|        }
  182|      1|        _dbgct(this);
  183|      1|    }
  184|      1|}
_ZN6icu_7810UnicodeSetD2Ev:
  189|      1|UnicodeSet::~UnicodeSet() {
  190|      1|    _dbgdt(this); // first!
  191|      1|    if (list != stackList) {
  ------------------
  |  Branch (191:9): [True: 1, False: 0]
  ------------------
  192|      1|        uprv_free(list);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  193|      1|    }
  194|      1|    delete bmpSet;
  195|      1|    if (buffer != stackList) {
  ------------------
  |  Branch (195:9): [True: 1, False: 0]
  ------------------
  196|      1|        uprv_free(buffer);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  197|      1|    }
  198|      1|    delete strings_;
  199|      1|    delete stringSpan;
  200|      1|    releasePattern();
  201|      1|}
_ZNK6icu_7810UnicodeSet13cloneAsThawedEv:
  267|      1|UnicodeSet *UnicodeSet::cloneAsThawed() const {
  268|      1|    return new UnicodeSet(*this, true);
  269|      1|}
_ZNK6icu_7810UnicodeSet8containsEi:
  340|  2.38k|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|  2.38k|    if (bmpSet != nullptr) {
  ------------------
  |  Branch (348:9): [True: 2.38k, False: 0]
  ------------------
  349|  2.38k|        return bmpSet->contains(c);
  350|  2.38k|    }
  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|     78|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|     78|    if (c < list[0])
  ------------------
  |  Branch (383:9): [True: 1, False: 77]
  ------------------
  384|      1|        return 0;
  385|       |    // High runner test.  c is often after the last range, so an
  386|       |    // initial check for this condition pays off.
  387|     77|    int32_t lo = 0;
  388|     77|    int32_t hi = len - 1;
  389|     77|    if (lo >= hi || c >= list[hi-1])
  ------------------
  |  Branch (389:9): [True: 0, False: 77]
  |  Branch (389:21): [True: 77, False: 0]
  ------------------
  390|     77|        return hi;
  391|       |    // invariant: c >= list[lo]
  392|       |    // invariant: c < list[hi]
  393|      0|    for (;;) {
  394|      0|        int32_t i = (lo + hi) >> 1;
  395|      0|        if (i == lo) {
  ------------------
  |  Branch (395:13): [True: 0, False: 0]
  ------------------
  396|      0|            break; // Found!
  397|      0|        } else if (c < list[i]) {
  ------------------
  |  Branch (397:20): [True: 0, False: 0]
  ------------------
  398|      0|            hi = i;
  399|      0|        } else {
  400|      0|            lo = i;
  401|      0|        }
  402|      0|    }
  403|      0|    return hi;
  404|     77|}
_ZN6icu_7810UnicodeSet3addEi:
  833|     78|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|     78|    int32_t i = findCodePoint(pinCodePoint(c));
  838|       |
  839|       |    // already in set?
  840|     78|    if ((i & 1) != 0  || isFrozen() || isBogus()) return *this;
  ------------------
  |  Branch (840:9): [True: 0, False: 78]
  |  Branch (840:26): [True: 0, False: 78]
  |  Branch (840:40): [True: 0, False: 78]
  ------------------
  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|     78|    if (c == list[i]-1) {
  ------------------
  |  Branch (863:9): [True: 0, False: 78]
  ------------------
  864|       |        // c is before start of next range
  865|      0|        list[i] = c;
  866|       |        // if we touched the HIGH mark, then add a new one
  867|      0|        if (c == (UNICODESET_HIGH - 1)) {
  ------------------
  |  |   34|      0|#define UNICODESET_HIGH 0x0110000
  ------------------
  |  Branch (867:13): [True: 0, False: 0]
  ------------------
  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|      0|        if (i > 0 && c == list[i-1]) {
  ------------------
  |  Branch (874:13): [True: 0, False: 0]
  |  Branch (874:22): [True: 0, False: 0]
  ------------------
  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|      0|            UChar32* dst = list + i - 1;
  885|      0|            UChar32* src = dst + 2;
  886|      0|            UChar32* srclimit = list + len;
  887|      0|            while (src < srclimit) *(dst++) = *(src++);
  ------------------
  |  Branch (887:20): [True: 0, False: 0]
  ------------------
  888|       |
  889|      0|            len -= 2;
  890|      0|        }
  891|      0|    }
  892|       |
  893|     78|    else if (i > 0 && c == list[i-1]) {
  ------------------
  |  Branch (893:14): [True: 77, False: 1]
  |  Branch (893:23): [True: 0, False: 77]
  ------------------
  894|       |        // c is after end of prior range
  895|      0|        list[i-1]++;
  896|       |        // no need to check for collapse here
  897|      0|    }
  898|       |
  899|     78|    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|     78|        if (!ensureCapacity(len+2)) {
  ------------------
  |  Branch (912:13): [True: 0, False: 78]
  ------------------
  913|       |            // ensureCapacity will mark the object as Bogus if OOM failure happens.
  914|      0|            return *this;
  915|      0|        }
  916|       |
  917|     78|        UChar32 *p = list + i;
  918|     78|        uprv_memmove(p + 2, p, (len - i) * sizeof(*p));
  ------------------
  |  |   51|     78|#define uprv_memmove(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|     78|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   52|     78|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   53|     78|    _Pragma("clang diagnostic push") \
  |  |   54|     78|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   55|     78|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|     78|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   56|     78|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|     78|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   57|     78|    _Pragma("clang diagnostic pop") \
  |  |   58|     78|    U_STANDARD_CPP_NAMESPACE memmove(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|     78|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   59|     78|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|     78|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  919|     78|        list[i] = c;
  920|     78|        list[i+1] = c+1;
  921|     78|        len += 2;
  922|     78|    }
  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|     78|    releasePattern();
  938|     78|    return *this;
  939|     78|}
_ZN6icu_7810UnicodeSet7compactEv:
 1415|      1|UnicodeSet& UnicodeSet::compact() {
 1416|      1|    if (isFrozen() || isBogus()) {
  ------------------
  |  Branch (1416:9): [True: 0, False: 1]
  |  Branch (1416:23): [True: 0, False: 1]
  ------------------
 1417|      0|        return *this;
 1418|      0|    }
 1419|       |    // Delete buffer first to defragment memory less.
 1420|      1|    if (buffer != stackList) {
  ------------------
  |  Branch (1420:9): [True: 1, False: 0]
  ------------------
 1421|      1|        uprv_free(buffer);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1422|      1|        buffer = nullptr;
 1423|      1|        bufferCapacity = 0;
 1424|      1|    }
 1425|      1|    if (list == stackList) {
  ------------------
  |  Branch (1425:9): [True: 0, False: 1]
  ------------------
 1426|       |        // pass
 1427|      1|    } else if (len <= INITIAL_CAPACITY) {
  ------------------
  |  Branch (1427:16): [True: 0, False: 1]
  ------------------
 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|      1|    } else if ((len + 7) < capacity) {
  ------------------
  |  Branch (1432:16): [True: 1, False: 0]
  ------------------
 1433|       |        // If we have more than a little unused capacity, shrink it to len.
 1434|      1|        UChar32* temp = static_cast<UChar32*>(uprv_realloc(list, sizeof(UChar32) * len));
  ------------------
  |  | 1536|      1|#define uprv_realloc U_ICU_ENTRY_POINT_RENAME(uprv_realloc)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1435|      1|        if (temp) {
  ------------------
  |  Branch (1435:13): [True: 1, False: 0]
  ------------------
 1436|      1|            list = temp;
 1437|      1|            capacity = len;
 1438|      1|        }
 1439|       |        // else what the heck happened?! We allocated less memory!
 1440|       |        // Oh well. We'll keep our original array.
 1441|      1|    }
 1442|      1|    if (strings_ != nullptr && strings_->isEmpty()) {
  ------------------
  |  Branch (1442:9): [True: 0, False: 1]
  |  Branch (1442:32): [True: 0, False: 0]
  ------------------
 1443|      0|        delete strings_;
 1444|      0|        strings_ = nullptr;
 1445|      0|    }
 1446|      1|    return *this;
 1447|      1|}
_ZN6icu_7810UnicodeSet12nextCapacityEi:
 1624|      3|int32_t UnicodeSet::nextCapacity(int32_t minCapacity) {
 1625|       |    // Grow exponentially to reduce the frequency of allocations.
 1626|      3|    if (minCapacity < INITIAL_CAPACITY) {
  ------------------
  |  Branch (1626:9): [True: 0, False: 3]
  ------------------
 1627|      0|        return minCapacity + INITIAL_CAPACITY;
 1628|      3|    } else if (minCapacity <= 2500) {
  ------------------
  |  Branch (1628:16): [True: 3, False: 0]
  ------------------
 1629|      3|        return 5 * minCapacity;
 1630|      3|    } 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|      3|}
_ZN6icu_7810UnicodeSet14ensureCapacityEi:
 1639|     79|bool UnicodeSet::ensureCapacity(int32_t newLen) {
 1640|     79|    if (newLen > MAX_LENGTH) {
  ------------------
  |  Branch (1640:9): [True: 0, False: 79]
  ------------------
 1641|      0|        newLen = MAX_LENGTH;
 1642|      0|    }
 1643|     79|    if (newLen <= capacity) {
  ------------------
  |  Branch (1643:9): [True: 76, False: 3]
  ------------------
 1644|     76|        return true;
 1645|     76|    }
 1646|      3|    int32_t newCapacity = nextCapacity(newLen);
 1647|      3|    UChar32* temp = static_cast<UChar32*>(uprv_malloc(newCapacity * sizeof(UChar32)));
  ------------------
  |  | 1524|      3|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1648|      3|    if (temp == nullptr) {
  ------------------
  |  Branch (1648:9): [True: 0, False: 3]
  ------------------
 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|      3|    uprv_memcpy(temp, list, len * sizeof(UChar32));
  ------------------
  |  |   42|      3|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      3|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|      3|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|      3|    _Pragma("clang diagnostic push") \
  |  |   45|      3|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|      3|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|      3|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|      3|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|      3|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|      3|    _Pragma("clang diagnostic pop") \
  |  |   49|      3|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|      3|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|      3|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      3|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1654|      3|    if (list != stackList) {
  ------------------
  |  Branch (1654:9): [True: 1, False: 2]
  ------------------
 1655|      1|        uprv_free(list);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1656|      1|    }
 1657|      3|    list = temp;
 1658|      3|    capacity = newCapacity;
 1659|      3|    return true;
 1660|      3|}
_ZN6icu_7810UnicodeSet14releasePatternEv:
 2149|     79|void UnicodeSet::releasePattern() {
 2150|     79|    if (pat) {
  ------------------
  |  Branch (2150:9): [True: 0, False: 79]
  ------------------
 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|     79|}
_ZN6icu_7810UnicodeSet6freezeEv:
 2172|      1|UnicodeSet *UnicodeSet::freeze() {
 2173|      1|    if(!isFrozen() && !isBogus()) {
  ------------------
  |  Branch (2173:8): [True: 1, False: 0]
  |  Branch (2173:23): [True: 1, False: 0]
  ------------------
 2174|      1|        compact();
 2175|       |
 2176|       |        // Optimize contains() and span() and similar functions.
 2177|      1|        if (hasStrings()) {
  ------------------
  |  Branch (2177:13): [True: 0, False: 1]
  ------------------
 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|      1|        if (stringSpan == nullptr) {
  ------------------
  |  Branch (2192:13): [True: 1, False: 0]
  ------------------
 2193|       |            // No span-relevant strings: Optimize for code point spans.
 2194|      1|            bmpSet=new BMPSet(list, len);
 2195|      1|            if (bmpSet == nullptr) { // Check for memory allocation error.
  ------------------
  |  Branch (2195:17): [True: 0, False: 1]
  ------------------
 2196|      0|                setToBogus();
 2197|      0|            }
 2198|      1|        }
 2199|      1|    }
 2200|      1|    return this;
 2201|      1|}
uniset.cpp:_ZN6icu_78L12pinCodePointERi:
   54|     78|static inline UChar32 pinCodePoint(UChar32& c) {
   55|     78|    if (c < UNICODESET_LOW) {
  ------------------
  |  |   37|     78|#define UNICODESET_LOW 0x000000
  ------------------
  |  Branch (55:9): [True: 0, False: 78]
  ------------------
   56|      0|        c = UNICODESET_LOW;
  ------------------
  |  |   37|      0|#define UNICODESET_LOW 0x000000
  ------------------
   57|     78|    } else if (c > (UNICODESET_HIGH-1)) {
  ------------------
  |  |   34|     78|#define UNICODESET_HIGH 0x0110000
  ------------------
  |  Branch (57:16): [True: 0, False: 78]
  ------------------
   58|      0|        c = (UNICODESET_HIGH-1);
  ------------------
  |  |   34|      0|#define UNICODESET_HIGH 0x0110000
  ------------------
   59|      0|    }
   60|     78|    return c;
   61|     78|}

_ZN6icu_7811ReplaceableD2Ev:
  106|  68.5M|Replaceable::~Replaceable() {}
_ZN6icu_78plERKNS_13UnicodeStringES2_:
  111|   202k|operator+ (const UnicodeString &s1, const UnicodeString &s2) {
  112|   202k|  int32_t sumLengths;
  113|   202k|  if (uprv_add32_overflow(s1.length(), s2.length(), &sumLengths)) {
  ------------------
  |  | 1394|   202k|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  123|   202k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   202k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   202k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (113:7): [True: 0, False: 202k]
  ------------------
  114|      0|    UnicodeString bogus;
  115|      0|    bogus.setToBogus();
  116|      0|    return bogus;
  117|      0|  }
  118|   202k|  if (sumLengths != INT32_MAX) {
  ------------------
  |  Branch (118:7): [True: 202k, False: 0]
  ------------------
  119|   202k|    ++sumLengths;  // space for a terminating NUL if we need one
  120|   202k|  }
  121|   202k|  return UnicodeString(sumLengths, static_cast<UChar32>(0), 0).append(s1).append(s2);
  122|   202k|}
_ZN6icu_7813UnicodeString6addRefEv:
  146|   361k|UnicodeString::addRef() {
  147|   361k|  umtx_atomic_inc(reinterpret_cast<u_atomic_int32_t*>(fUnion.fFields.fArray) - 1);
  148|   361k|}
_ZN6icu_7813UnicodeString9removeRefEv:
  151|   636k|UnicodeString::removeRef() {
  152|   636k|  return umtx_atomic_dec(reinterpret_cast<u_atomic_int32_t*>(fUnion.fFields.fArray) - 1);
  153|   636k|}
_ZNK6icu_7813UnicodeString8refCountEv:
  156|  2.49M|UnicodeString::refCount() const {
  157|  2.49M|  return umtx_loadAcquire(*(reinterpret_cast<u_atomic_int32_t*>(fUnion.fFields.fArray) - 1));
  158|  2.49M|}
_ZN6icu_7813UnicodeString12releaseArrayEv:
  161|   121M|UnicodeString::releaseArray() {
  162|   121M|  if((fUnion.fFields.fLengthAndFlags & kRefCounted) && removeRef() == 0) {
  ------------------
  |  Branch (162:6): [True: 636k, False: 120M]
  |  Branch (162:56): [True: 516k, False: 120k]
  ------------------
  163|   516k|    uprv_free(reinterpret_cast<int32_t*>(fUnion.fFields.fArray) - 1);
  ------------------
  |  | 1503|   516k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|   516k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   516k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   516k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  164|   516k|  }
  165|   121M|}
_ZN6icu_7813UnicodeStringC2Eiii:
  175|   202k|UnicodeString::UnicodeString(int32_t capacity, UChar32 c, int32_t count) {
  176|   202k|  fUnion.fFields.fLengthAndFlags = 0;
  177|   202k|  if (count <= 0 || static_cast<uint32_t>(c) > 0x10ffff) {
  ------------------
  |  Branch (177:7): [True: 202k, False: 0]
  |  Branch (177:21): [True: 0, False: 0]
  ------------------
  178|       |    // just allocate and do not do anything else
  179|   202k|    allocate(capacity);
  180|   202k|  } else if(c <= 0xffff) {
  ------------------
  |  Branch (180:13): [True: 0, False: 0]
  ------------------
  181|      0|    int32_t length = count;
  182|      0|    if(capacity < length) {
  ------------------
  |  Branch (182:8): [True: 0, False: 0]
  ------------------
  183|      0|      capacity = length;
  184|      0|    }
  185|      0|    if(allocate(capacity)) {
  ------------------
  |  Branch (185:8): [True: 0, False: 0]
  ------------------
  186|      0|      char16_t *array = getArrayStart();
  187|      0|      char16_t unit = static_cast<char16_t>(c);
  188|      0|      for(int32_t i = 0; i < length; ++i) {
  ------------------
  |  Branch (188:26): [True: 0, False: 0]
  ------------------
  189|      0|        array[i] = unit;
  190|      0|      }
  191|      0|      setLength(length);
  192|      0|    }
  193|      0|  } else {  // supplementary code point, write surrogate pairs
  194|      0|    if(count > (INT32_MAX / 2)) {
  ------------------
  |  Branch (194:8): [True: 0, False: 0]
  ------------------
  195|       |      // We would get more than 2G UChars.
  196|      0|      allocate(capacity);
  197|      0|      return;
  198|      0|    }
  199|      0|    int32_t length = count * 2;
  200|      0|    if(capacity < length) {
  ------------------
  |  Branch (200:8): [True: 0, False: 0]
  ------------------
  201|      0|      capacity = length;
  202|      0|    }
  203|      0|    if(allocate(capacity)) {
  ------------------
  |  Branch (203:8): [True: 0, False: 0]
  ------------------
  204|      0|      char16_t *array = getArrayStart();
  205|      0|      char16_t lead = U16_LEAD(c);
  ------------------
  |  |  123|      0|#define U16_LEAD(supplementary) (UChar)(((supplementary)>>10)+0xd7c0)
  ------------------
  206|      0|      char16_t trail = U16_TRAIL(c);
  ------------------
  |  |  132|      0|#define U16_TRAIL(supplementary) (UChar)(((supplementary)&0x3ff)|0xdc00)
  ------------------
  207|      0|      for(int32_t i = 0; i < length; i += 2) {
  ------------------
  |  Branch (207:26): [True: 0, False: 0]
  ------------------
  208|      0|        array[i] = lead;
  209|      0|        array[i + 1] = trail;
  210|      0|      }
  211|      0|      setLength(length);
  212|      0|    }
  213|      0|  }
  214|   202k|}
_ZN6icu_7813UnicodeStringC2EDs:
  216|   222k|UnicodeString::UnicodeString(char16_t ch) {
  217|   222k|  fUnion.fFields.fLengthAndFlags = kLength1 | kShortString;
  218|   222k|  fUnion.fStackFields.fBuffer[0] = ch;
  219|   222k|}
_ZN6icu_7813UnicodeStringC2EPKDsi:
  234|  87.5k|                             int32_t textLength) {
  235|  87.5k|  fUnion.fFields.fLengthAndFlags = kShortString;
  236|  87.5k|  doAppend(text, 0, textLength);
  237|  87.5k|}
_ZN6icu_7813UnicodeStringC2EaNS_14ConstChar16PtrEi:
  241|  4.24M|                             int32_t textLength) {
  242|  4.24M|  fUnion.fFields.fLengthAndFlags = kReadonlyAlias;
  243|  4.24M|  const char16_t *text = textPtr;
  244|  4.24M|  if(text == nullptr) {
  ------------------
  |  Branch (244:6): [True: 27.3k, False: 4.21M]
  ------------------
  245|       |    // treat as an empty string, do not alias
  246|  27.3k|    setToEmpty();
  247|  4.21M|  } else if(textLength < -1 ||
  ------------------
  |  Branch (247:13): [True: 0, False: 4.21M]
  ------------------
  248|  4.21M|            (textLength == -1 && !isTerminated) ||
  ------------------
  |  Branch (248:14): [True: 129k, False: 4.09M]
  |  Branch (248:34): [True: 0, False: 129k]
  ------------------
  249|  4.21M|            (textLength >= 0 && isTerminated && text[textLength] != 0)
  ------------------
  |  Branch (249:14): [True: 4.09M, False: 129k]
  |  Branch (249:33): [True: 3.88M, False: 203k]
  |  Branch (249:49): [True: 0, False: 3.88M]
  ------------------
  250|  4.21M|  ) {
  251|      0|    setToBogus();
  252|  4.21M|  } else {
  253|  4.21M|    if(textLength == -1) {
  ------------------
  |  Branch (253:8): [True: 129k, False: 4.09M]
  ------------------
  254|       |      // text is terminated, or else it would have failed the above test
  255|   129k|      textLength = u_strlen(text);
  ------------------
  |  |  393|   129k|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|   129k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   129k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   129k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  256|   129k|    }
  257|  4.21M|    setArray(const_cast<char16_t *>(text), textLength,
  258|  4.21M|             isTerminated ? textLength + 1 : textLength);
  ------------------
  |  Branch (258:14): [True: 4.01M, False: 203k]
  ------------------
  259|  4.21M|  }
  260|  4.24M|}
_ZN6icu_7813UnicodeStringC2EPDsii:
  264|  55.5k|                             int32_t buffCapacity) {
  265|  55.5k|  fUnion.fFields.fLengthAndFlags = kWritableAlias;
  266|  55.5k|  if(buff == nullptr) {
  ------------------
  |  Branch (266:6): [True: 0, False: 55.5k]
  ------------------
  267|       |    // treat as an empty string, do not alias
  268|      0|    setToEmpty();
  269|  55.5k|  } else if(buffLength < -1 || buffCapacity < 0 || buffLength > buffCapacity) {
  ------------------
  |  Branch (269:13): [True: 0, False: 55.5k]
  |  Branch (269:32): [True: 0, False: 55.5k]
  |  Branch (269:52): [True: 0, False: 55.5k]
  ------------------
  270|      0|    setToBogus();
  271|  55.5k|  } else {
  272|  55.5k|    if(buffLength == -1) {
  ------------------
  |  Branch (272:8): [True: 0, False: 55.5k]
  ------------------
  273|       |      // fLength = u_strlen(buff); but do not look beyond buffCapacity
  274|      0|      const char16_t *p = buff, *limit = buff + buffCapacity;
  275|      0|      while(p != limit && *p != 0) {
  ------------------
  |  Branch (275:13): [True: 0, False: 0]
  |  Branch (275:27): [True: 0, False: 0]
  ------------------
  276|      0|        ++p;
  277|      0|      }
  278|      0|      buffLength = static_cast<int32_t>(p - buff);
  279|      0|    }
  280|  55.5k|    setArray(buff, buffLength, buffCapacity);
  281|  55.5k|  }
  282|  55.5k|}
_ZN6icu_7813UnicodeStringC2EPKciNS0_10EInvariantE:
  284|  2.89M|UnicodeString::UnicodeString(const char *src, int32_t length, EInvariant) {
  285|  2.89M|  fUnion.fFields.fLengthAndFlags = kShortString;
  286|  2.89M|  if(src==nullptr) {
  ------------------
  |  Branch (286:6): [True: 0, False: 2.89M]
  ------------------
  287|       |    // treat as an empty string
  288|  2.89M|  } else {
  289|  2.89M|    if(length<0) {
  ------------------
  |  Branch (289:8): [True: 2.87M, False: 23.5k]
  ------------------
  290|  2.87M|      length = static_cast<int32_t>(uprv_strlen(src));
  ------------------
  |  |   37|  2.87M|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  2.87M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  291|  2.87M|    }
  292|  2.89M|    if(cloneArrayIfNeeded(length, length, false)) {
  ------------------
  |  Branch (292:8): [True: 2.89M, False: 0]
  ------------------
  293|  2.89M|      u_charsToUChars(src, getArrayStart(), length);
  ------------------
  |  |  226|  2.89M|#define u_charsToUChars U_ICU_ENTRY_POINT_RENAME(u_charsToUChars)
  |  |  ------------------
  |  |  |  |  123|  2.89M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.89M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.89M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  294|  2.89M|      setLength(length);
  295|  2.89M|    } else {
  296|      0|      setToBogus();
  297|      0|    }
  298|  2.89M|  }
  299|  2.89M|}
_ZN6icu_7813UnicodeStringC2ERKS0_:
  345|  8.88M|UnicodeString::UnicodeString(const UnicodeString& that) {
  346|  8.88M|  fUnion.fFields.fLengthAndFlags = kShortString;
  347|  8.88M|  copyFrom(that);
  348|  8.88M|}
_ZN6icu_7813UnicodeStringC2EOS0_:
  350|  42.9k|UnicodeString::UnicodeString(UnicodeString &&src) noexcept {
  351|  42.9k|  copyFieldsFrom(src, true);
  352|  42.9k|}
_ZN6icu_7813UnicodeStringC2ERKS0_i:
  355|      1|                             int32_t srcStart) {
  356|      1|  fUnion.fFields.fLengthAndFlags = kShortString;
  357|      1|  setTo(that, srcStart);
  358|      1|}
_ZN6icu_7813UnicodeStringC2ERKS0_ii:
  362|  2.86M|                             int32_t srcLength) {
  363|  2.86M|  fUnion.fFields.fLengthAndFlags = kShortString;
  364|  2.86M|  setTo(that, srcStart, srcLength);
  365|  2.86M|}
_ZNK6icu_7813UnicodeString5cloneEv:
  375|   134k|UnicodeString::clone() const {
  376|   134k|  LocalPointer<UnicodeString> clonedString(new UnicodeString(*this));
  377|   134k|  return clonedString.isValid() && !clonedString->isBogus() ? clonedString.orphan() : nullptr;
  ------------------
  |  Branch (377:10): [True: 134k, False: 0]
  |  Branch (377:36): [True: 134k, False: 0]
  ------------------
  378|   134k|}
_ZN6icu_7813UnicodeString8allocateEi:
  409|  4.66M|UnicodeString::allocate(int32_t capacity) {
  410|  4.66M|  if(capacity <= US_STACKBUF_SIZE) {
  ------------------
  |  Branch (410:6): [True: 4.12M, False: 542k]
  ------------------
  411|  4.12M|    fUnion.fFields.fLengthAndFlags = kShortString;
  412|  4.12M|    return true;
  413|  4.12M|  }
  414|   542k|  if(capacity <= kMaxCapacity) {
  ------------------
  |  Branch (414:6): [True: 542k, False: 0]
  ------------------
  415|   542k|    ++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|   542k|    size_t numBytes = sizeof(int32_t) + static_cast<size_t>(capacity) * U_SIZEOF_UCHAR;
  ------------------
  |  |  352|   542k|#define U_SIZEOF_UCHAR 2
  ------------------
  419|       |    // Round up to a multiple of 16.
  420|   542k|    numBytes = (numBytes + 15) & ~15;
  421|   542k|    int32_t* array = static_cast<int32_t*>(uprv_malloc(numBytes));
  ------------------
  |  | 1524|   542k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|   542k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   542k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   542k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  422|   542k|    if(array != nullptr) {
  ------------------
  |  Branch (422:8): [True: 542k, False: 0]
  ------------------
  423|       |      // set initial refCount and point behind the refCount
  424|   542k|      *array++ = 1;
  425|   542k|      numBytes -= sizeof(int32_t);
  426|       |
  427|       |      // have fArray point to the first char16_t
  428|   542k|      fUnion.fFields.fArray = reinterpret_cast<char16_t*>(array);
  429|   542k|      fUnion.fFields.fCapacity = static_cast<int32_t>(numBytes / U_SIZEOF_UCHAR);
  ------------------
  |  |  352|   542k|#define U_SIZEOF_UCHAR 2
  ------------------
  430|   542k|      fUnion.fFields.fLengthAndFlags = kLongString;
  431|   542k|      return true;
  432|   542k|    }
  433|   542k|  }
  434|      0|  fUnion.fFields.fLengthAndFlags = kIsBogus;
  435|      0|  fUnion.fFields.fArray = nullptr;
  436|      0|  fUnion.fFields.fCapacity = 0;
  437|      0|  return false;
  438|   542k|}
_ZN6icu_7813UnicodeStringD2Ev:
  462|  68.5M|{
  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|  68.5M|  releaseArray();
  478|  68.5M|}
_ZN6icu_7813UnicodeString8fromUTF8ENS_11StringPieceE:
  484|  8.14k|UnicodeString UnicodeString::fromUTF8(StringPiece utf8) {
  485|  8.14k|  UnicodeString result;
  486|  8.14k|  result.setToUTF8(utf8);
  487|  8.14k|  return result;
  488|  8.14k|}
_ZN6icu_7813UnicodeStringaSERKS0_:
  527|  7.02M|UnicodeString::operator=(const UnicodeString &src) {
  528|  7.02M|  return copyFrom(src);
  529|  7.02M|}
_ZN6icu_7813UnicodeString12fastCopyFromERKS0_:
  532|  29.2M|UnicodeString::fastCopyFrom(const UnicodeString &src) {
  533|  29.2M|  return copyFrom(src, true);
  534|  29.2M|}
_ZN6icu_7813UnicodeString8copyFromERKS0_a:
  537|  45.4M|UnicodeString::copyFrom(const UnicodeString &src, UBool fastCopy) {
  538|       |  // if assigning to ourselves, do nothing
  539|  45.4M|  if(this == &src) {
  ------------------
  |  Branch (539:6): [True: 15.5k, False: 45.4M]
  ------------------
  540|  15.5k|    return *this;
  541|  15.5k|  }
  542|       |
  543|       |  // is the right side bogus?
  544|  45.4M|  if(src.isBogus()) {
  ------------------
  |  Branch (544:6): [True: 3.44M, False: 41.9M]
  ------------------
  545|  3.44M|    setToBogus();
  546|  3.44M|    return *this;
  547|  3.44M|  }
  548|       |
  549|       |  // delete the current contents
  550|  41.9M|  releaseArray();
  551|       |
  552|  41.9M|  if(src.isEmpty()) {
  ------------------
  |  Branch (552:6): [True: 2.77M, False: 39.1M]
  ------------------
  553|       |    // empty string - use the stack buffer
  554|  2.77M|    setToEmpty();
  555|  2.77M|    return *this;
  556|  2.77M|  }
  557|       |
  558|       |  // fLength>0 and not an "open" src.getBuffer(minCapacity)
  559|  39.1M|  fUnion.fFields.fLengthAndFlags = src.fUnion.fFields.fLengthAndFlags;
  560|  39.1M|  switch(src.fUnion.fFields.fLengthAndFlags & kAllStorageFlags) {
  561|  26.8M|  case kShortString:
  ------------------
  |  Branch (561:3): [True: 26.8M, False: 12.3M]
  ------------------
  562|       |    // short string using the stack buffer, do the same
  563|  26.8M|    uprv_memcpy(fUnion.fStackFields.fBuffer, src.fUnion.fStackFields.fBuffer,
  ------------------
  |  |   42|  26.8M|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  26.8M|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  26.8M|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  26.8M|    _Pragma("clang diagnostic push") \
  |  |   45|  26.8M|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  26.8M|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  26.8M|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  26.8M|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  26.8M|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  26.8M|    _Pragma("clang diagnostic pop") \
  |  |   49|  26.8M|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  26.8M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  26.8M|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  26.8M|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  564|  26.8M|                getShortLength() * U_SIZEOF_UCHAR);
  565|  26.8M|    break;
  566|   361k|  case kLongString:
  ------------------
  |  Branch (566:3): [True: 361k, False: 38.8M]
  ------------------
  567|       |    // src uses a refCounted string buffer, use that buffer with refCount
  568|       |    // src is const, use a cast - we don't actually change it
  569|   361k|    const_cast<UnicodeString &>(src).addRef();
  570|       |    // copy all fields, share the reference-counted buffer
  571|   361k|    fUnion.fFields.fArray = src.fUnion.fFields.fArray;
  572|   361k|    fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity;
  573|   361k|    if(!hasShortLength()) {
  ------------------
  |  Branch (573:8): [True: 6.19k, False: 355k]
  ------------------
  574|  6.19k|      fUnion.fFields.fLength = src.fUnion.fFields.fLength;
  575|  6.19k|    }
  576|   361k|    break;
  577|  12.0M|  case kReadonlyAlias:
  ------------------
  |  Branch (577:3): [True: 12.0M, False: 27.1M]
  ------------------
  578|  12.0M|    if(fastCopy) {
  ------------------
  |  Branch (578:8): [True: 8.33M, False: 3.67M]
  ------------------
  579|       |      // src is a readonly alias, do the same
  580|       |      // -> maintain the readonly alias as such
  581|  8.33M|      fUnion.fFields.fArray = src.fUnion.fFields.fArray;
  582|  8.33M|      fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity;
  583|  8.33M|      if(!hasShortLength()) {
  ------------------
  |  Branch (583:10): [True: 0, False: 8.33M]
  ------------------
  584|      0|        fUnion.fFields.fLength = src.fUnion.fFields.fLength;
  585|      0|      }
  586|  8.33M|      break;
  587|  8.33M|    }
  588|       |    // else if(!fastCopy) fall through to case kWritableAlias
  589|       |    // -> allocate a new buffer and copy the contents
  590|  3.67M|    U_FALLTHROUGH;
  ------------------
  |  |  511|  3.67M|#       define U_FALLTHROUGH [[clang::fallthrough]]
  ------------------
  591|  3.67M|  case kWritableAlias: {
  ------------------
  |  Branch (591:3): [True: 0, False: 39.1M]
  ------------------
  592|       |    // src is a writable alias; we make a copy of that instead
  593|  3.67M|    int32_t srcLength = src.length();
  594|  3.67M|    if(allocate(srcLength)) {
  ------------------
  |  Branch (594:8): [True: 3.67M, False: 0]
  ------------------
  595|  3.67M|      u_memcpy(getArrayStart(), src.getArrayStart(), srcLength);
  ------------------
  |  |  334|  3.67M|#define u_memcpy U_ICU_ENTRY_POINT_RENAME(u_memcpy)
  |  |  ------------------
  |  |  |  |  123|  3.67M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.67M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.67M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  596|  3.67M|      setLength(srcLength);
  597|  3.67M|      break;
  598|  3.67M|    }
  599|       |    // if there is not enough memory, then fall through to setting to bogus
  600|      0|    U_FALLTHROUGH;
  ------------------
  |  |  511|      0|#       define U_FALLTHROUGH [[clang::fallthrough]]
  ------------------
  601|      0|  }
  602|      0|  default:
  ------------------
  |  Branch (602:3): [True: 0, False: 39.1M]
  ------------------
  603|       |    // if src is bogus, set ourselves to bogus
  604|       |    // do not call setToBogus() here because fArray and flags are not consistent here
  605|      0|    fUnion.fFields.fLengthAndFlags = kIsBogus;
  606|      0|    fUnion.fFields.fArray = nullptr;
  607|      0|    fUnion.fFields.fCapacity = 0;
  608|      0|    break;
  609|  39.1M|  }
  610|       |
  611|  39.1M|  return *this;
  612|  39.1M|}
_ZN6icu_7813UnicodeStringaSEOS0_:
  614|  3.37M|UnicodeString &UnicodeString::operator=(UnicodeString &&src) noexcept {
  615|       |  // No explicit check for self move assignment, consistent with standard library.
  616|       |  // Self move assignment causes no crash nor leak but might make the object bogus.
  617|  3.37M|  releaseArray();
  618|  3.37M|  copyFieldsFrom(src, true);
  619|  3.37M|  return *this;
  620|  3.37M|}
_ZN6icu_7813UnicodeString14copyFieldsFromERS0_a:
  623|  3.41M|void UnicodeString::copyFieldsFrom(UnicodeString &src, UBool setSrcToBogus) noexcept {
  624|  3.41M|  int16_t lengthAndFlags = fUnion.fFields.fLengthAndFlags = src.fUnion.fFields.fLengthAndFlags;
  625|  3.41M|  if(lengthAndFlags & kUsingStackBuffer) {
  ------------------
  |  Branch (625:6): [True: 3.17M, False: 240k]
  ------------------
  626|       |    // Short string using the stack buffer, copy the contents.
  627|       |    // Check for self assignment to prevent "overlap in memcpy" warnings,
  628|       |    // although it should be harmless to copy a buffer to itself exactly.
  629|  3.17M|    if(this != &src) {
  ------------------
  |  Branch (629:8): [True: 3.17M, False: 0]
  ------------------
  630|  3.17M|      uprv_memcpy(fUnion.fStackFields.fBuffer, src.fUnion.fStackFields.fBuffer,
  ------------------
  |  |   42|  3.17M|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  3.17M|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  3.17M|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  3.17M|    _Pragma("clang diagnostic push") \
  |  |   45|  3.17M|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  3.17M|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.17M|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  3.17M|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.17M|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  3.17M|    _Pragma("clang diagnostic pop") \
  |  |   49|  3.17M|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  3.17M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  3.17M|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  3.17M|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  631|  3.17M|                  getShortLength() * U_SIZEOF_UCHAR);
  632|  3.17M|    }
  633|  3.17M|  } else {
  634|       |    // In all other cases, copy all fields.
  635|   240k|    fUnion.fFields.fArray = src.fUnion.fFields.fArray;
  636|   240k|    fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity;
  637|   240k|    if(!hasShortLength()) {
  ------------------
  |  Branch (637:8): [True: 2.97k, False: 237k]
  ------------------
  638|  2.97k|      fUnion.fFields.fLength = src.fUnion.fFields.fLength;
  639|  2.97k|    }
  640|   240k|    if(setSrcToBogus) {
  ------------------
  |  Branch (640:8): [True: 240k, False: 0]
  ------------------
  641|       |      // Set src to bogus without releasing any memory.
  642|   240k|      src.fUnion.fFields.fLengthAndFlags = kIsBogus;
  643|   240k|      src.fUnion.fFields.fArray = nullptr;
  644|   240k|      src.fUnion.fFields.fCapacity = 0;
  645|   240k|    }
  646|   240k|  }
  647|  3.41M|}
_ZNK6icu_7813UnicodeString8doEqualsEPKDsi:
  698|  2.30M|UnicodeString::doEquals(const char16_t *text, int32_t len) const {
  699|       |  // Requires: this not bogus and have same lengths.
  700|       |  // Byte-wise comparison works for equality regardless of endianness.
  701|  2.30M|  return uprv_memcmp(getArrayStart(), text, len * U_SIZEOF_UCHAR) == 0;
  ------------------
  |  |  101|  2.30M|#define uprv_memcmp(buffer1, buffer2, size) U_STANDARD_CPP_NAMESPACE memcmp(buffer1, buffer2,size)
  |  |  ------------------
  |  |  |  |  393|  2.30M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  702|  2.30M|}
_ZNK6icu_7813UnicodeString17doEqualsSubstringEiiPKDsii:
  710|  1.46M|{
  711|       |  // compare illegal string values
  712|  1.46M|  if(isBogus()) {
  ------------------
  |  Branch (712:6): [True: 0, False: 1.46M]
  ------------------
  713|      0|    return false;
  714|      0|  }
  715|       |  
  716|       |  // pin indices to legal values
  717|  1.46M|  pinIndices(start, length);
  718|       |
  719|  1.46M|  if(srcChars == nullptr) {
  ------------------
  |  Branch (719:6): [True: 0, False: 1.46M]
  ------------------
  720|       |    // treat const char16_t *srcChars==nullptr as an empty string
  721|      0|    return length == 0 ? true : false;
  ------------------
  |  Branch (721:12): [True: 0, False: 0]
  ------------------
  722|      0|  }
  723|       |
  724|       |  // get the correct pointer
  725|  1.46M|  const char16_t *chars = getArrayStart();
  726|       |
  727|  1.46M|  chars += start;
  728|  1.46M|  srcChars += srcStart;
  729|       |
  730|       |  // get the srcLength if necessary
  731|  1.46M|  if(srcLength < 0) {
  ------------------
  |  Branch (731:6): [True: 0, False: 1.46M]
  ------------------
  732|      0|    srcLength = u_strlen(srcChars + srcStart);
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  733|      0|  }
  734|       |
  735|  1.46M|  if (length != srcLength) {
  ------------------
  |  Branch (735:7): [True: 476k, False: 986k]
  ------------------
  736|   476k|    return false;
  737|   476k|  }
  738|       |
  739|   986k|  if(length == 0 || chars == srcChars) {
  ------------------
  |  Branch (739:6): [True: 0, False: 986k]
  |  Branch (739:21): [True: 0, False: 986k]
  ------------------
  740|      0|    return true;
  741|      0|  }
  742|       |
  743|   986k|  return u_memcmp(chars, srcChars, srcLength) == 0;
  ------------------
  |  |  332|   986k|#define u_memcmp U_ICU_ENTRY_POINT_RENAME(u_memcmp)
  |  |  ------------------
  |  |  |  |  123|   986k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   986k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   986k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  744|   986k|}
_ZNK6icu_7813UnicodeString9doCompareEiiPKDsii:
  752|  6.59M|{
  753|       |  // compare illegal string values
  754|  6.59M|  if(isBogus()) {
  ------------------
  |  Branch (754:6): [True: 19.7k, False: 6.57M]
  ------------------
  755|  19.7k|    return -1;
  756|  19.7k|  }
  757|       |  
  758|       |  // pin indices to legal values
  759|  6.57M|  pinIndices(start, length);
  760|       |
  761|  6.57M|  if(srcChars == nullptr) {
  ------------------
  |  Branch (761:6): [True: 0, False: 6.57M]
  ------------------
  762|       |    // treat const char16_t *srcChars==nullptr as an empty string
  763|      0|    return length == 0 ? 0 : 1;
  ------------------
  |  Branch (763:12): [True: 0, False: 0]
  ------------------
  764|      0|  }
  765|       |
  766|       |  // get the correct pointer
  767|  6.57M|  const char16_t *chars = getArrayStart();
  768|       |
  769|  6.57M|  chars += start;
  770|  6.57M|  srcChars += srcStart;
  771|       |
  772|  6.57M|  int32_t minLength;
  773|  6.57M|  int8_t lengthResult;
  774|       |
  775|       |  // get the srcLength if necessary
  776|  6.57M|  if(srcLength < 0) {
  ------------------
  |  Branch (776:6): [True: 0, False: 6.57M]
  ------------------
  777|      0|    srcLength = u_strlen(srcChars + srcStart);
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  778|      0|  }
  779|       |
  780|       |  // are we comparing different lengths?
  781|  6.57M|  if(length != srcLength) {
  ------------------
  |  Branch (781:6): [True: 5.77M, False: 799k]
  ------------------
  782|  5.77M|    if(length < srcLength) {
  ------------------
  |  Branch (782:8): [True: 2.56M, False: 3.21M]
  ------------------
  783|  2.56M|      minLength = length;
  784|  2.56M|      lengthResult = -1;
  785|  3.21M|    } else {
  786|  3.21M|      minLength = srcLength;
  787|  3.21M|      lengthResult = 1;
  788|  3.21M|    }
  789|  5.77M|  } else {
  790|   799k|    minLength = length;
  791|   799k|    lengthResult = 0;
  792|   799k|  }
  793|       |
  794|       |  /*
  795|       |   * note that uprv_memcmp() returns an int but we return an int8_t;
  796|       |   * we need to take care not to truncate the result -
  797|       |   * one way to do this is to right-shift the value to
  798|       |   * move the sign bit into the lower 8 bits and making sure that this
  799|       |   * does not become 0 itself
  800|       |   */
  801|       |
  802|  6.57M|  if(minLength > 0 && chars != srcChars) {
  ------------------
  |  Branch (802:6): [True: 6.57M, False: 0]
  |  Branch (802:23): [True: 6.57M, False: 556]
  ------------------
  803|  6.57M|    int32_t result;
  804|       |
  805|       |#   if U_IS_BIG_ENDIAN 
  806|       |      // big-endian: byte comparison works
  807|       |      result = uprv_memcmp(chars, srcChars, minLength * sizeof(char16_t));
  808|       |      if(result != 0) {
  809|       |        return (int8_t)(result >> 15 | 1);
  810|       |      }
  811|       |#   else
  812|       |      // little-endian: compare char16_t units
  813|  15.4M|      do {
  814|  15.4M|        result = static_cast<int32_t>(*(chars++)) - static_cast<int32_t>(*(srcChars++));
  815|  15.4M|        if(result != 0) {
  ------------------
  |  Branch (815:12): [True: 3.06M, False: 12.3M]
  ------------------
  816|  3.06M|          return static_cast<int8_t>(result >> 15 | 1);
  817|  3.06M|        }
  818|  15.4M|      } while(--minLength > 0);
  ------------------
  |  Branch (818:15): [True: 8.88M, False: 3.51M]
  ------------------
  819|  6.57M|#   endif
  820|  6.57M|  }
  821|  3.51M|  return lengthResult;
  822|  6.57M|}
_ZNK6icu_7813UnicodeString8char32AtEi:
  871|  3.72M|{
  872|  3.72M|  int32_t len = length();
  873|  3.72M|  if (static_cast<uint32_t>(offset) < static_cast<uint32_t>(len)) {
  ------------------
  |  Branch (873:7): [True: 3.72M, False: 0]
  ------------------
  874|  3.72M|    const char16_t *array = getArrayStart();
  875|  3.72M|    UChar32 c;
  876|  3.72M|    U16_GET(array, 0, offset, len, c);
  ------------------
  |  |  201|  3.72M|#define U16_GET(s, start, i, length, c) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  3.72M|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  202|  3.72M|    (c)=(s)[i]; \
  |  |  203|  3.72M|    if(U16_IS_SURROGATE(c)) { \
  |  |  ------------------
  |  |  |  |   75|  3.72M|#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
  |  |  |  |  ------------------
  |  |  |  |  |  |  193|  3.72M|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (193:27): [True: 5.04k, False: 3.72M]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  204|  5.04k|        uint16_t __c2; \
  |  |  205|  5.04k|        if(U16_IS_SURROGATE_LEAD(c)) { \
  |  |  ------------------
  |  |  |  |   84|  5.04k|#define U16_IS_SURROGATE_LEAD(c) (((c)&0x400)==0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (84:34): [True: 5.04k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  206|  5.04k|            if((i)+1!=(length) && U16_IS_TRAIL(__c2=(s)[(i)+1])) { \
  |  |  ------------------
  |  |  |  |   67|  5.04k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:25): [True: 5.04k, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (206:16): [True: 5.04k, False: 0]
  |  |  ------------------
  |  |  207|  5.04k|                (c)=U16_GET_SUPPLEMENTARY((c), __c2); \
  |  |  ------------------
  |  |  |  |  113|  5.04k|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |   99|  5.04k|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  208|  5.04k|            } \
  |  |  209|  5.04k|        } 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|  5.04k|    } \
  |  |  215|  3.72M|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  3.72M|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  877|  3.72M|    return c;
  878|  3.72M|  } else {
  879|      0|    return kInvalidUChar;
  880|      0|  }
  881|  3.72M|}
_ZNK6icu_7813UnicodeString11countChar32Eii:
  907|   746k|UnicodeString::countChar32(int32_t start, int32_t length) const {
  908|   746k|  pinIndices(start, length);
  909|       |  // if(isBogus()) then fArray==0 and start==0 - u_countChar32() checks for nullptr
  910|   746k|  return u_countChar32(getArrayStart()+start, length);
  ------------------
  |  |  228|   746k|#define u_countChar32 U_ICU_ENTRY_POINT_RENAME(u_countChar32)
  |  |  ------------------
  |  |  |  |  123|   746k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   746k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   746k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  911|   746k|}
_ZNK6icu_7813UnicodeString11moveIndex32Eii:
  921|  76.6k|UnicodeString::moveIndex32(int32_t index, int32_t delta) const {
  922|       |  // pin index
  923|  76.6k|  int32_t len = length();
  924|  76.6k|  if(index<0) {
  ------------------
  |  Branch (924:6): [True: 0, False: 76.6k]
  ------------------
  925|      0|    index=0;
  926|  76.6k|  } else if(index>len) {
  ------------------
  |  Branch (926:13): [True: 0, False: 76.6k]
  ------------------
  927|      0|    index=len;
  928|      0|  }
  929|       |
  930|  76.6k|  const char16_t *array = getArrayStart();
  931|  76.6k|  if(delta>0) {
  ------------------
  |  Branch (931:6): [True: 76.6k, False: 0]
  ------------------
  932|  76.6k|    U16_FWD_N(array, index, len, delta);
  ------------------
  |  |  474|  76.6k|#define U16_FWD_N(s, i, length, n) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  76.6k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  475|  76.6k|    int32_t __N=(n); \
  |  |  476|   153k|    while(__N>0 && ((i)<(length) || ((length)<0 && (s)[i]!=0))) { \
  |  |  ------------------
  |  |  |  Branch (476:11): [True: 76.6k, False: 76.6k]
  |  |  |  Branch (476:21): [True: 76.6k, False: 0]
  |  |  |  Branch (476:38): [True: 0, False: 0]
  |  |  |  Branch (476:52): [True: 0, False: 0]
  |  |  ------------------
  |  |  477|  76.6k|        U16_FWD_1(s, i, length); \
  |  |  ------------------
  |  |  |  |  433|  76.6k|#define U16_FWD_1(s, i, length) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  |  |  ------------------
  |  |  |  |  |  |  169|  76.6k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  |  |  ------------------
  |  |  |  |  434|  76.6k|    if(U16_IS_LEAD((s)[(i)++]) && (i)!=(length) && U16_IS_TRAIL((s)[i])) { \
  |  |  |  |  ------------------
  |  |  |  |  |  |   59|   153k|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (59:24): [True: 930, False: 75.7k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |                   if(U16_IS_LEAD((s)[(i)++]) && (i)!=(length) && U16_IS_TRAIL((s)[i])) { \
  |  |  |  |  ------------------
  |  |  |  |  |  |   67|    930|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (67:25): [True: 930, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (434:35): [True: 930, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  435|    930|        ++(i); \
  |  |  |  |  436|    930|    } \
  |  |  |  |  437|  76.6k|} UPRV_BLOCK_MACRO_END
  |  |  |  |  ------------------
  |  |  |  |  |  |  178|  76.6k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  478|  76.6k|        --__N; \
  |  |  479|  76.6k|    } \
  |  |  480|  76.6k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  76.6k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  933|  76.6k|  } else {
  934|      0|    U16_BACK_N(array, 0, index, -delta);
  ------------------
  |  |  684|      0|#define U16_BACK_N(s, start, i, n) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      0|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  685|      0|    int32_t __N=(n); \
  |  |  686|      0|    while(__N>0 && (i)>(start)) { \
  |  |  ------------------
  |  |  |  Branch (686:11): [True: 0, False: 0]
  |  |  |  Branch (686:20): [True: 0, False: 0]
  |  |  ------------------
  |  |  687|      0|        U16_BACK_1(s, start, i); \
  |  |  ------------------
  |  |  |  |  643|      0|#define U16_BACK_1(s, start, i) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  |  |  ------------------
  |  |  |  |  |  |  169|      0|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  |  |  ------------------
  |  |  |  |  644|      0|    if(U16_IS_TRAIL((s)[--(i)]) && (i)>(start) && U16_IS_LEAD((s)[(i)-1])) { \
  |  |  |  |  ------------------
  |  |  |  |  |  |   67|      0|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (67:25): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |                   if(U16_IS_TRAIL((s)[--(i)]) && (i)>(start) && U16_IS_LEAD((s)[(i)-1])) { \
  |  |  |  |  ------------------
  |  |  |  |  |  |   59|      0|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (59:24): [True: 0, False: 0]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (644:36): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  |  |  645|      0|        --(i); \
  |  |  |  |  646|      0|    } \
  |  |  |  |  647|      0|} UPRV_BLOCK_MACRO_END
  |  |  |  |  ------------------
  |  |  |  |  |  |  178|      0|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  688|      0|        --__N; \
  |  |  689|      0|    } \
  |  |  690|      0|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      0|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  935|      0|  }
  936|       |
  937|  76.6k|  return index;
  938|  76.6k|}
_ZNK6icu_7813UnicodeString7extractENS_9Char16PtrEiR10UErrorCode:
  958|  13.5k|                       UErrorCode &errorCode) const {
  959|  13.5k|  int32_t len = length();
  960|  13.5k|  if(U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (960:6): [True: 13.5k, False: 0]
  ------------------
  961|  13.5k|    if (isBogus() || destCapacity < 0 || (destCapacity > 0 && dest == nullptr)) {
  ------------------
  |  Branch (961:9): [True: 0, False: 13.5k]
  |  Branch (961:22): [True: 0, False: 13.5k]
  |  Branch (961:43): [True: 13.5k, False: 0]
  |  Branch (961:63): [True: 0, False: 13.5k]
  ------------------
  962|      0|      errorCode=U_ILLEGAL_ARGUMENT_ERROR;
  963|  13.5k|    } else {
  964|  13.5k|      const char16_t *array = getArrayStart();
  965|  13.5k|      if(len>0 && len<=destCapacity && array!=dest) {
  ------------------
  |  Branch (965:10): [True: 13.5k, False: 0]
  |  Branch (965:19): [True: 13.5k, False: 0]
  |  Branch (965:40): [True: 13.5k, False: 0]
  ------------------
  966|  13.5k|        u_memcpy(dest, array, len);
  ------------------
  |  |  334|  13.5k|#define u_memcpy U_ICU_ENTRY_POINT_RENAME(u_memcpy)
  |  |  ------------------
  |  |  |  |  123|  13.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  967|  13.5k|      }
  968|  13.5k|      return u_terminateUChars(dest, destCapacity, len, &errorCode);
  ------------------
  |  |  408|  13.5k|#define u_terminateUChars U_ICU_ENTRY_POINT_RENAME(u_terminateUChars)
  |  |  ------------------
  |  |  |  |  123|  13.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  969|  13.5k|    }
  970|  13.5k|  }
  971|       |
  972|      0|  return len;
  973|  13.5k|}
_ZNK6icu_7813UnicodeString7extractEiiPciNS0_10EInvariantE:
  981|  5.48k|{
  982|       |  // if the arguments are illegal, then do nothing
  983|  5.48k|  if(targetCapacity < 0 || (targetCapacity > 0 && target == nullptr)) {
  ------------------
  |  Branch (983:6): [True: 0, False: 5.48k]
  |  Branch (983:29): [True: 5.48k, False: 0]
  |  Branch (983:51): [True: 0, False: 5.48k]
  ------------------
  984|      0|    return 0;
  985|      0|  }
  986|       |
  987|       |  // pin the indices to legal values
  988|  5.48k|  pinIndices(start, length);
  989|       |
  990|  5.48k|  if(length <= targetCapacity) {
  ------------------
  |  Branch (990:6): [True: 5.48k, False: 0]
  ------------------
  991|  5.48k|    u_UCharsToChars(getArrayStart() + start, target, length);
  ------------------
  |  |  211|  5.48k|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|  5.48k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.48k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.48k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  992|  5.48k|  }
  993|  5.48k|  UErrorCode status = U_ZERO_ERROR;
  994|  5.48k|  return u_terminateChars(target, targetCapacity, length, &status);
  ------------------
  |  |  406|  5.48k|#define u_terminateChars U_ICU_ENTRY_POINT_RENAME(u_terminateChars)
  |  |  ------------------
  |  |  |  |  123|  5.48k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.48k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.48k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  995|  5.48k|}
_ZNK6icu_7813UnicodeString13tempSubStringEii:
  998|   195k|UnicodeString::tempSubString(int32_t start, int32_t len) const {
  999|   195k|  pinIndices(start, len);
 1000|   195k|  const char16_t *array = getBuffer();  // not getArrayStart() to check kIsBogus & kOpenGetBuffer
 1001|   195k|  if(array==nullptr) {
  ------------------
  |  Branch (1001:6): [True: 0, False: 195k]
  ------------------
 1002|      0|    array=fUnion.fStackFields.fBuffer;  // anything not nullptr because that would make an empty string
 1003|      0|    len=-2;  // bogus result string
 1004|      0|  }
 1005|   195k|  return UnicodeString(false, array + start, len);
 1006|   195k|}
_ZNK6icu_7813UnicodeString7indexOfEPKDsiiii:
 1112|  2.68M|{
 1113|  2.68M|  if (isBogus() || srcChars == nullptr || srcStart < 0 || srcLength == 0) {
  ------------------
  |  Branch (1113:7): [True: 0, False: 2.68M]
  |  Branch (1113:20): [True: 0, False: 2.68M]
  |  Branch (1113:43): [True: 0, False: 2.68M]
  |  Branch (1113:59): [True: 0, False: 2.68M]
  ------------------
 1114|      0|    return -1;
 1115|      0|  }
 1116|       |
 1117|       |  // UnicodeString does not find empty substrings
 1118|  2.68M|  if(srcLength < 0 && srcChars[srcStart] == 0) {
  ------------------
  |  Branch (1118:6): [True: 1.58M, False: 1.10M]
  |  Branch (1118:23): [True: 0, False: 1.58M]
  ------------------
 1119|      0|    return -1;
 1120|      0|  }
 1121|       |
 1122|       |  // get the indices within bounds
 1123|  2.68M|  pinIndices(start, length);
 1124|       |
 1125|       |  // find the first occurrence of the substring
 1126|  2.68M|  const char16_t *array = getArrayStart();
 1127|  2.68M|  const char16_t *match = u_strFindFirst(array + start, length, srcChars + srcStart, srcLength);
  ------------------
  |  |  361|  2.68M|#define u_strFindFirst U_ICU_ENTRY_POINT_RENAME(u_strFindFirst)
  |  |  ------------------
  |  |  |  |  123|  2.68M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.68M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.68M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1128|  2.68M|  if(match == nullptr) {
  ------------------
  |  Branch (1128:6): [True: 2.49M, False: 196k]
  ------------------
 1129|  2.49M|    return -1;
 1130|  2.49M|  } else {
 1131|   196k|    return static_cast<int32_t>(match - array);
 1132|   196k|  }
 1133|  2.68M|}
_ZNK6icu_7813UnicodeString9doIndexOfEDsii:
 1139|  32.8M|{
 1140|       |  // pin indices
 1141|  32.8M|  pinIndices(start, length);
 1142|       |
 1143|       |  // find the first occurrence of c
 1144|  32.8M|  const char16_t *array = getArrayStart();
 1145|  32.8M|  const char16_t *match = u_memchr(array + start, c, length);
  ------------------
  |  |  330|  32.8M|#define u_memchr U_ICU_ENTRY_POINT_RENAME(u_memchr)
  |  |  ------------------
  |  |  |  |  123|  32.8M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  32.8M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  32.8M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1146|  32.8M|  if(match == nullptr) {
  ------------------
  |  Branch (1146:6): [True: 23.6M, False: 9.15M]
  ------------------
 1147|  23.6M|    return -1;
 1148|  23.6M|  } else {
 1149|  9.15M|    return static_cast<int32_t>(match - array);
 1150|  9.15M|  }
 1151|  32.8M|}
_ZNK6icu_7813UnicodeString11lastIndexOfEPKDsiiii:
 1176|  15.3k|{
 1177|  15.3k|  if (isBogus() || srcChars == nullptr || srcStart < 0 || srcLength == 0) {
  ------------------
  |  Branch (1177:7): [True: 0, False: 15.3k]
  |  Branch (1177:20): [True: 0, False: 15.3k]
  |  Branch (1177:43): [True: 0, False: 15.3k]
  |  Branch (1177:59): [True: 0, False: 15.3k]
  ------------------
 1178|      0|    return -1;
 1179|      0|  }
 1180|       |
 1181|       |  // UnicodeString does not find empty substrings
 1182|  15.3k|  if(srcLength < 0 && srcChars[srcStart] == 0) {
  ------------------
  |  Branch (1182:6): [True: 0, False: 15.3k]
  |  Branch (1182:23): [True: 0, False: 0]
  ------------------
 1183|      0|    return -1;
 1184|      0|  }
 1185|       |
 1186|       |  // get the indices within bounds
 1187|  15.3k|  pinIndices(start, length);
 1188|       |
 1189|       |  // find the last occurrence of the substring
 1190|  15.3k|  const char16_t *array = getArrayStart();
 1191|  15.3k|  const char16_t *match = u_strFindLast(array + start, length, srcChars + srcStart, srcLength);
  ------------------
  |  |  362|  15.3k|#define u_strFindLast U_ICU_ENTRY_POINT_RENAME(u_strFindLast)
  |  |  ------------------
  |  |  |  |  123|  15.3k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  15.3k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  15.3k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1192|  15.3k|  if(match == nullptr) {
  ------------------
  |  Branch (1192:6): [True: 802, False: 14.5k]
  ------------------
 1193|    802|    return -1;
 1194|  14.5k|  } else {
 1195|  14.5k|    return static_cast<int32_t>(match - array);
 1196|  14.5k|  }
 1197|  15.3k|}
_ZNK6icu_7813UnicodeString13doLastIndexOfEDsii:
 1203|  16.4k|{
 1204|  16.4k|  if(isBogus()) {
  ------------------
  |  Branch (1204:6): [True: 0, False: 16.4k]
  ------------------
 1205|      0|    return -1;
 1206|      0|  }
 1207|       |
 1208|       |  // pin indices
 1209|  16.4k|  pinIndices(start, length);
 1210|       |
 1211|       |  // find the last occurrence of c
 1212|  16.4k|  const char16_t *array = getArrayStart();
 1213|  16.4k|  const char16_t *match = u_memrchr(array + start, c, length);
  ------------------
  |  |  336|  16.4k|#define u_memrchr U_ICU_ENTRY_POINT_RENAME(u_memrchr)
  |  |  ------------------
  |  |  |  |  123|  16.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  16.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  16.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1214|  16.4k|  if(match == nullptr) {
  ------------------
  |  Branch (1214:6): [True: 204, False: 16.2k]
  ------------------
 1215|    204|    return -1;
 1216|  16.2k|  } else {
 1217|  16.2k|    return static_cast<int32_t>(match - array);
 1218|  16.2k|  }
 1219|  16.4k|}
_ZN6icu_7813UnicodeString14findAndReplaceEiiRKS0_iiS2_ii:
 1251|     20|{
 1252|     20|  if(isBogus() || oldText.isBogus() || newText.isBogus()) {
  ------------------
  |  Branch (1252:6): [True: 0, False: 20]
  |  Branch (1252:19): [True: 0, False: 20]
  |  Branch (1252:40): [True: 0, False: 20]
  ------------------
 1253|      0|    return *this;
 1254|      0|  }
 1255|       |
 1256|     20|  pinIndices(start, length);
 1257|     20|  oldText.pinIndices(oldStart, oldLength);
 1258|     20|  newText.pinIndices(newStart, newLength);
 1259|       |
 1260|     20|  if(oldLength == 0) {
  ------------------
  |  Branch (1260:6): [True: 0, False: 20]
  ------------------
 1261|      0|    return *this;
 1262|      0|  }
 1263|       |
 1264|     20|  while(length > 0 && length >= oldLength) {
  ------------------
  |  Branch (1264:9): [True: 20, False: 0]
  |  Branch (1264:23): [True: 20, False: 0]
  ------------------
 1265|     20|    int32_t pos = indexOf(oldText, oldStart, oldLength, start, length);
 1266|     20|    if(pos < 0) {
  ------------------
  |  Branch (1266:8): [True: 20, False: 0]
  ------------------
 1267|       |      // no more oldText's here: done
 1268|     20|      break;
 1269|     20|    } else {
 1270|       |      // we found oldText, replace it by newText and go beyond it
 1271|      0|      replace(pos, oldLength, newText, newStart, newLength);
 1272|      0|      length -= pos + oldLength - start;
 1273|      0|      start = pos + newLength;
 1274|      0|    }
 1275|     20|  }
 1276|       |
 1277|     20|  return *this;
 1278|     20|}
_ZN6icu_7813UnicodeString10setToBogusEv:
 1283|  5.82M|{
 1284|  5.82M|  releaseArray();
 1285|       |
 1286|  5.82M|  fUnion.fFields.fLengthAndFlags = kIsBogus;
 1287|  5.82M|  fUnion.fFields.fArray = nullptr;
 1288|  5.82M|  fUnion.fFields.fCapacity = 0;
 1289|  5.82M|}
_ZN6icu_7813UnicodeString7unBogusEv:
 1293|  7.48M|UnicodeString::unBogus() {
 1294|  7.48M|  if(fUnion.fFields.fLengthAndFlags & kIsBogus) {
  ------------------
  |  Branch (1294:6): [True: 7.22k, False: 7.47M]
  ------------------
 1295|  7.22k|    setToEmpty();
 1296|  7.22k|  }
 1297|  7.48M|}
_ZN6icu_7813UnicodeString19getTerminatedBufferEv:
 1300|   931k|UnicodeString::getTerminatedBuffer() {
 1301|   931k|  if(!isWritable()) {
  ------------------
  |  Branch (1301:6): [True: 0, False: 931k]
  ------------------
 1302|      0|    return nullptr;
 1303|      0|  }
 1304|   931k|  char16_t *array = getArrayStart();
 1305|   931k|  int32_t len = length();
 1306|   931k|  if(len < getCapacity()) {
  ------------------
  |  Branch (1306:6): [True: 931k, False: 116]
  ------------------
 1307|   931k|    if(fUnion.fFields.fLengthAndFlags & kBufferIsReadonly) {
  ------------------
  |  Branch (1307:8): [True: 25, False: 931k]
  ------------------
 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|     25|      if(array[len] == 0) {
  ------------------
  |  Branch (1312:10): [True: 25, False: 0]
  ------------------
 1313|     25|        return array;
 1314|     25|      }
 1315|   931k|    } else if(((fUnion.fFields.fLengthAndFlags & kRefCounted) == 0 || refCount() == 1)) {
  ------------------
  |  Branch (1315:16): [True: 930k, False: 649]
  |  Branch (1315:71): [True: 649, 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|   931k|      array[len] = 0;
 1325|   931k|      return array;
 1326|   931k|    }
 1327|   931k|  }
 1328|    116|  if(len<INT32_MAX && cloneArrayIfNeeded(len+1)) {
  ------------------
  |  Branch (1328:6): [True: 116, False: 0]
  |  Branch (1328:23): [True: 116, False: 0]
  ------------------
 1329|    116|    array = getArrayStart();
 1330|    116|    array[len] = 0;
 1331|    116|    return array;
 1332|    116|  } else {
 1333|      0|    return nullptr;
 1334|      0|  }
 1335|    116|}
_ZN6icu_7813UnicodeString5setToEaNS_14ConstChar16PtrEi:
 1342|  1.59M|{
 1343|  1.59M|  if(fUnion.fFields.fLengthAndFlags & kOpenGetBuffer) {
  ------------------
  |  Branch (1343:6): [True: 0, False: 1.59M]
  ------------------
 1344|       |    // do not modify a string that has an "open" getBuffer(minCapacity)
 1345|      0|    return *this;
 1346|      0|  }
 1347|       |
 1348|  1.59M|  const char16_t *text = textPtr;
 1349|  1.59M|  if(text == nullptr) {
  ------------------
  |  Branch (1349:6): [True: 6, False: 1.59M]
  ------------------
 1350|       |    // treat as an empty string, do not alias
 1351|      6|    releaseArray();
 1352|      6|    setToEmpty();
 1353|      6|    return *this;
 1354|      6|  }
 1355|       |
 1356|  1.59M|  if( textLength < -1 ||
  ------------------
  |  Branch (1356:7): [True: 0, False: 1.59M]
  ------------------
 1357|  1.59M|      (textLength == -1 && !isTerminated) ||
  ------------------
  |  Branch (1357:8): [True: 13.9k, False: 1.58M]
  |  Branch (1357:28): [True: 0, False: 13.9k]
  ------------------
 1358|  1.59M|      (textLength >= 0 && isTerminated && text[textLength] != 0)
  ------------------
  |  Branch (1358:8): [True: 1.58M, False: 13.9k]
  |  Branch (1358:27): [True: 1.57M, False: 7.90k]
  |  Branch (1358:43): [True: 0, False: 1.57M]
  ------------------
 1359|  1.59M|  ) {
 1360|      0|    setToBogus();
 1361|      0|    return *this;
 1362|      0|  }
 1363|       |
 1364|  1.59M|  releaseArray();
 1365|       |
 1366|  1.59M|  if(textLength == -1) {
  ------------------
  |  Branch (1366:6): [True: 13.9k, False: 1.58M]
  ------------------
 1367|       |    // text is terminated, or else it would have failed the above test
 1368|  13.9k|    textLength = u_strlen(text);
  ------------------
  |  |  393|  13.9k|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|  13.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1369|  13.9k|  }
 1370|  1.59M|  fUnion.fFields.fLengthAndFlags = kReadonlyAlias;
 1371|  1.59M|  setArray(const_cast<char16_t*>(text), textLength, isTerminated ? textLength + 1 : textLength);
  ------------------
  |  Branch (1371:53): [True: 1.58M, False: 7.90k]
  ------------------
 1372|  1.59M|  return *this;
 1373|  1.59M|}
_ZN6icu_7813UnicodeString9setToUTF8ENS_11StringPieceE:
 1411|  8.14k|UnicodeString &UnicodeString::setToUTF8(StringPiece utf8) {
 1412|  8.14k|  unBogus();
 1413|  8.14k|  int32_t length = utf8.length();
 1414|  8.14k|  int32_t capacity;
 1415|       |  // The UTF-16 string will be at most as long as the UTF-8 string.
 1416|  8.14k|  if(length <= US_STACKBUF_SIZE) {
  ------------------
  |  Branch (1416:6): [True: 5.79k, False: 2.34k]
  ------------------
 1417|  5.79k|    capacity = US_STACKBUF_SIZE;
 1418|  5.79k|  } else {
 1419|  2.34k|    capacity = length + 1;  // +1 for the terminating NUL.
 1420|  2.34k|  }
 1421|  8.14k|  char16_t *utf16 = getBuffer(capacity);
 1422|  8.14k|  int32_t length16;
 1423|  8.14k|  UErrorCode errorCode = U_ZERO_ERROR;
 1424|  8.14k|  u_strFromUTF8WithSub(utf16, getCapacity(), &length16,
  ------------------
  |  |  370|  8.14k|#define u_strFromUTF8WithSub U_ICU_ENTRY_POINT_RENAME(u_strFromUTF8WithSub)
  |  |  ------------------
  |  |  |  |  123|  8.14k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  8.14k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  8.14k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1425|  8.14k|      utf8.data(), length,
 1426|  8.14k|      0xfffd,  // Substitution character.
 1427|  8.14k|      nullptr,    // Don't care about number of substitutions.
 1428|  8.14k|      &errorCode);
 1429|  8.14k|  releaseBuffer(length16);
 1430|  8.14k|  if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (1430:6): [True: 0, False: 8.14k]
  ------------------
 1431|      0|    setToBogus();
 1432|      0|  }
 1433|  8.14k|  return *this;
 1434|  8.14k|}
_ZN6icu_7813UnicodeString9setCharAtEiDs:
 1439|  54.3k|{
 1440|  54.3k|  int32_t len = length();
 1441|  54.3k|  if(cloneArrayIfNeeded() && len > 0) {
  ------------------
  |  Branch (1441:6): [True: 54.3k, False: 0]
  |  Branch (1441:30): [True: 54.3k, False: 0]
  ------------------
 1442|  54.3k|    if(offset < 0) {
  ------------------
  |  Branch (1442:8): [True: 0, False: 54.3k]
  ------------------
 1443|      0|      offset = 0;
 1444|  54.3k|    } else if(offset >= len) {
  ------------------
  |  Branch (1444:15): [True: 0, False: 54.3k]
  ------------------
 1445|      0|      offset = len - 1;
 1446|      0|    }
 1447|       |
 1448|  54.3k|    getArrayStart()[offset] = c;
 1449|  54.3k|  }
 1450|  54.3k|  return *this;
 1451|  54.3k|}
_ZN6icu_7813UnicodeString7replaceEiii:
 1456|   645k|               UChar32 srcChar) {
 1457|   645k|  char16_t buffer[U16_MAX_LENGTH];
 1458|   645k|  int32_t count = 0;
 1459|   645k|  UBool isError = false;
 1460|   645k|  U16_APPEND(buffer, count, U16_MAX_LENGTH, srcChar, isError);
  ------------------
  |  |  393|   645k|#define U16_APPEND(s, i, capacity, c, isError) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   645k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  394|   645k|    if((uint32_t)(c)<=0xffff) { \
  |  |  ------------------
  |  |  |  Branch (394:8): [True: 643k, False: 2.05k]
  |  |  ------------------
  |  |  395|   643k|        (s)[(i)++]=(uint16_t)(c); \
  |  |  396|   643k|    } else if((uint32_t)(c)<=0x10ffff && (i)+1<(capacity)) { \
  |  |  ------------------
  |  |  |  Branch (396:15): [True: 2.05k, False: 0]
  |  |  |  Branch (396:42): [True: 2.05k, False: 0]
  |  |  ------------------
  |  |  397|  2.05k|        (s)[(i)++]=(uint16_t)(((c)>>10)+0xd7c0); \
  |  |  398|  2.05k|        (s)[(i)++]=(uint16_t)(((c)&0x3ff)|0xdc00); \
  |  |  399|  2.05k|    } else /* c>0x10ffff or not enough space */ { \
  |  |  400|      0|        (isError)=true; \
  |  |  401|      0|    } \
  |  |  402|   645k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   645k|#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|   645k|  return doReplace(start, _length, buffer, 0, isError ? 0 : count);
  ------------------
  |  Branch (1464:47): [True: 0, False: 645k]
  ------------------
 1465|   645k|}
_ZN6icu_7813UnicodeString9doReplaceEiiRKS0_ii:
 1484|  6.68M|{
 1485|       |  // pin the indices to legal values
 1486|  6.68M|  src.pinIndices(srcStart, srcLength);
 1487|       |
 1488|       |  // get the characters from src
 1489|       |  // and replace the range in ourselves with them
 1490|  6.68M|  return doReplace(start, length, src.getArrayStart(), srcStart, srcLength);
 1491|  6.68M|}
_ZN6icu_7813UnicodeString9doReplaceEiiPKDsii:
 1499|  13.6M|{
 1500|  13.6M|  if(!isWritable()) {
  ------------------
  |  Branch (1500:6): [True: 0, False: 13.6M]
  ------------------
 1501|      0|    return *this;
 1502|      0|  }
 1503|       |
 1504|  13.6M|  int32_t oldLength = this->length();
 1505|       |
 1506|       |  // optimize (read-only alias).remove(0, start) and .remove(start, end)
 1507|  13.6M|  if((fUnion.fFields.fLengthAndFlags&kBufferIsReadonly) && srcLength == 0) {
  ------------------
  |  Branch (1507:6): [True: 54.0k, False: 13.5M]
  |  Branch (1507:60): [True: 0, False: 54.0k]
  ------------------
 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|  13.6M|  if(start == oldLength) {
  ------------------
  |  Branch (1526:6): [True: 6.89M, False: 6.72M]
  ------------------
 1527|  6.89M|    return doAppend(srcChars, srcStart, srcLength);
 1528|  6.89M|  }
 1529|       |
 1530|  6.72M|  if (srcChars == nullptr) {
  ------------------
  |  Branch (1530:7): [True: 4.41M, False: 2.30M]
  ------------------
 1531|  4.41M|    srcLength = 0;
 1532|  4.41M|  } else {
 1533|       |    // Perform all remaining operations relative to srcChars + srcStart.
 1534|       |    // From this point forward, do not use srcStart.
 1535|  2.30M|    srcChars += srcStart;
 1536|  2.30M|    if (srcLength < 0) {
  ------------------
  |  Branch (1536:9): [True: 556, False: 2.30M]
  ------------------
 1537|       |      // get the srcLength if necessary
 1538|    556|      srcLength = u_strlen(srcChars);
  ------------------
  |  |  393|    556|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|    556|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    556|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    556|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1539|    556|    }
 1540|  2.30M|  }
 1541|       |
 1542|       |  // pin the indices to legal values
 1543|  6.72M|  pinIndices(start, length);
 1544|       |
 1545|       |  // Calculate the size of the string after the replace.
 1546|       |  // Avoid int32_t overflow.
 1547|  6.72M|  int32_t newLength = oldLength - length;
 1548|  6.72M|  if(srcLength > (INT32_MAX - newLength)) {
  ------------------
  |  Branch (1548:6): [True: 0, False: 6.72M]
  ------------------
 1549|      0|    setToBogus();
 1550|      0|    return *this;
 1551|      0|  }
 1552|  6.72M|  newLength += srcLength;
 1553|       |
 1554|       |  // Check for insertion into ourself
 1555|  6.72M|  const char16_t *oldArray = getArrayStart();
 1556|  6.72M|  if (isBufferWritable() &&
  ------------------
  |  Branch (1556:7): [True: 6.42M, False: 294k]
  ------------------
 1557|  6.72M|      oldArray < srcChars + srcLength &&
  ------------------
  |  Branch (1557:7): [True: 968k, False: 5.45M]
  ------------------
 1558|  6.72M|      srcChars < oldArray + oldLength) {
  ------------------
  |  Branch (1558:7): [True: 0, False: 968k]
  ------------------
 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|  6.72M|  char16_t oldStackBuffer[US_STACKBUF_SIZE];
 1571|  6.72M|  if((fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) && (newLength > US_STACKBUF_SIZE)) {
  ------------------
  |  Branch (1571:6): [True: 6.24M, False: 481k]
  |  Branch (1571:60): [True: 88.6k, False: 6.15M]
  ------------------
 1572|       |    // copy the stack buffer contents because it will be overwritten with
 1573|       |    // fUnion.fFields values
 1574|  88.6k|    u_memcpy(oldStackBuffer, oldArray, oldLength);
  ------------------
  |  |  334|  88.6k|#define u_memcpy U_ICU_ENTRY_POINT_RENAME(u_memcpy)
  |  |  ------------------
  |  |  |  |  123|  88.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  88.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  88.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1575|  88.6k|    oldArray = oldStackBuffer;
 1576|  88.6k|  }
 1577|       |
 1578|       |  // clone our array and allocate a bigger array if needed
 1579|  6.72M|  int32_t *bufferToDelete = nullptr;
 1580|  6.72M|  if(!cloneArrayIfNeeded(newLength, getGrowCapacity(newLength),
  ------------------
  |  Branch (1580:6): [True: 0, False: 6.72M]
  ------------------
 1581|  6.72M|                         false, &bufferToDelete)
 1582|  6.72M|  ) {
 1583|      0|    return *this;
 1584|      0|  }
 1585|       |
 1586|       |  // now do the replace
 1587|       |
 1588|  6.72M|  char16_t *newArray = getArrayStart();
 1589|  6.72M|  if(newArray != oldArray) {
  ------------------
  |  Branch (1589:6): [True: 383k, False: 6.33M]
  ------------------
 1590|       |    // if fArray changed, then we need to copy everything except what will change
 1591|   383k|    us_arrayCopy(oldArray, 0, newArray, 0, start);
 1592|   383k|    us_arrayCopy(oldArray, start + length,
 1593|   383k|                 newArray, start + srcLength,
 1594|   383k|                 oldLength - (start + length));
 1595|  6.33M|  } else if(length != srcLength) {
  ------------------
  |  Branch (1595:13): [True: 4.75M, False: 1.58M]
  ------------------
 1596|       |    // fArray did not change; copy only the portion that isn't changing, leaving a hole
 1597|  4.75M|    us_arrayCopy(oldArray, start + length,
 1598|  4.75M|                 newArray, start + srcLength,
 1599|  4.75M|                 oldLength - (start + length));
 1600|  4.75M|  }
 1601|       |
 1602|       |  // now fill in the hole with the new string
 1603|  6.72M|  us_arrayCopy(srcChars, 0, newArray, start, srcLength);
 1604|       |
 1605|  6.72M|  setLength(newLength);
 1606|       |
 1607|       |  // delayed delete in case srcChars == fArray when we started, and
 1608|       |  // to keep oldArray alive for the above operations
 1609|  6.72M|  if (bufferToDelete) {
  ------------------
  |  Branch (1609:7): [True: 0, False: 6.72M]
  ------------------
 1610|      0|    uprv_free(bufferToDelete);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1611|      0|  }
 1612|       |
 1613|  6.72M|  return *this;
 1614|  6.72M|}
_ZN6icu_7813UnicodeString8doAppendERKS0_ii:
 1632|  3.34M|UnicodeString::doAppend(const UnicodeString& src, int32_t srcStart, int32_t srcLength) {
 1633|  3.34M|  if(srcLength == 0) {
  ------------------
  |  Branch (1633:6): [True: 218k, False: 3.12M]
  ------------------
 1634|   218k|    return *this;
 1635|   218k|  }
 1636|       |
 1637|       |  // pin the indices to legal values
 1638|  3.12M|  src.pinIndices(srcStart, srcLength);
 1639|  3.12M|  return doAppend(src.getArrayStart(), srcStart, srcLength);
 1640|  3.34M|}
_ZN6icu_7813UnicodeString8doAppendEPKDsii:
 1643|  14.8M|UnicodeString::doAppend(const char16_t *srcChars, int32_t srcStart, int32_t srcLength) {
 1644|  14.8M|  if(!isWritable() || srcLength == 0 || srcChars == nullptr) {
  ------------------
  |  Branch (1644:6): [True: 0, False: 14.8M]
  |  Branch (1644:23): [True: 0, False: 14.8M]
  |  Branch (1644:41): [True: 0, False: 14.8M]
  ------------------
 1645|      0|    return *this;
 1646|      0|  }
 1647|       |
 1648|       |  // Perform all remaining operations relative to srcChars + srcStart.
 1649|       |  // From this point forward, do not use srcStart.
 1650|  14.8M|  srcChars += srcStart;
 1651|       |
 1652|  14.8M|  if(srcLength < 0) {
  ------------------
  |  Branch (1652:6): [True: 15.6k, False: 14.8M]
  ------------------
 1653|       |    // get the srcLength if necessary
 1654|  15.6k|    if((srcLength = u_strlen(srcChars)) == 0) {
  ------------------
  |  |  393|  15.6k|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|  15.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  15.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  15.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1654:8): [True: 0, False: 15.6k]
  ------------------
 1655|      0|      return *this;
 1656|      0|    }
 1657|  15.6k|  }
 1658|       |
 1659|  14.8M|  int32_t oldLength = length();
 1660|  14.8M|  int32_t newLength;
 1661|       |
 1662|  14.8M|  if (srcLength <= getCapacity() - oldLength && isBufferWritable()) {
  ------------------
  |  Branch (1662:7): [True: 14.5M, False: 314k]
  |  Branch (1662:49): [True: 14.5M, False: 2.17k]
  ------------------
 1663|  14.5M|    newLength = oldLength + srcLength;
 1664|       |    // Faster than a memmove
 1665|  14.5M|    if (srcLength <= 4) {
  ------------------
  |  Branch (1665:9): [True: 12.3M, False: 2.20M]
  ------------------
 1666|  12.3M|      char16_t *arr = getArrayStart();
 1667|  12.3M|      arr[oldLength] = srcChars[0];
 1668|  12.3M|      if (srcLength > 1) arr[oldLength+1] = srcChars[1];
  ------------------
  |  Branch (1668:11): [True: 2.63M, False: 9.68M]
  ------------------
 1669|  12.3M|      if (srcLength > 2) arr[oldLength+2] = srcChars[2];
  ------------------
  |  Branch (1669:11): [True: 894k, False: 11.4M]
  ------------------
 1670|  12.3M|      if (srcLength > 3) arr[oldLength+3] = srcChars[3];
  ------------------
  |  Branch (1670:11): [True: 384k, False: 11.9M]
  ------------------
 1671|  12.3M|      setLength(newLength);
 1672|  12.3M|      return *this;
 1673|  12.3M|    }
 1674|  14.5M|  } else {
 1675|   316k|    if (uprv_add32_overflow(oldLength, srcLength, &newLength)) {
  ------------------
  |  | 1394|   316k|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  123|   316k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   316k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   316k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1675:9): [True: 0, False: 316k]
  ------------------
 1676|      0|      setToBogus();
 1677|      0|      return *this;
 1678|      0|    }
 1679|       |
 1680|       |    // Check for append onto ourself
 1681|   316k|    const char16_t* oldArray = getArrayStart();
 1682|   316k|    if (isBufferWritable() &&
  ------------------
  |  Branch (1682:9): [True: 312k, False: 4.40k]
  ------------------
 1683|   316k|        oldArray < srcChars + srcLength &&
  ------------------
  |  Branch (1683:9): [True: 52.1k, False: 259k]
  ------------------
 1684|   316k|        srcChars < oldArray + oldLength) {
  ------------------
  |  Branch (1684:9): [True: 0, False: 52.1k]
  ------------------
 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|   316k|    if (!cloneArrayIfNeeded(newLength, getGrowCapacity(newLength))) {
  ------------------
  |  Branch (1695:9): [True: 0, False: 316k]
  ------------------
 1696|      0|      return *this;
 1697|      0|    }
 1698|   316k|  }
 1699|       |
 1700|  2.51M|  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.51M|  if(srcChars != newArray + oldLength) {
  ------------------
  |  Branch (1708:6): [True: 2.51M, False: 0]
  ------------------
 1709|  2.51M|    us_arrayCopy(srcChars, 0, newArray, oldLength, srcLength);
 1710|  2.51M|  }
 1711|  2.51M|  setLength(newLength);
 1712|       |
 1713|  2.51M|  return *this;
 1714|  14.8M|}
_ZN6icu_7813UnicodeString8doAppendENSt3__117basic_string_viewIDsNS1_11char_traitsIDsEEEE:
 1717|   280k|UnicodeString::doAppend(std::u16string_view src) {
 1718|   280k|  if (!isWritable() || src.empty()) {
  ------------------
  |  Branch (1718:7): [True: 0, False: 280k]
  |  Branch (1718:24): [True: 0, False: 280k]
  ------------------
 1719|      0|    return *this;
 1720|      0|  }
 1721|   280k|  if (src.length() > INT32_MAX) {
  ------------------
  |  Branch (1721:7): [True: 0, False: 280k]
  ------------------
 1722|      0|    setToBogus();
 1723|      0|    return *this;
 1724|      0|  }
 1725|   280k|  return doAppend(src.data(), 0, static_cast<int32_t>(src.length()));
 1726|   280k|}
_ZNK6icu_7813UnicodeString10doHashCodeEv:
 1864|  4.85M|{
 1865|       |    /* Delegate hash computation to uhash.  This makes UnicodeString
 1866|       |     * hashing consistent with char16_t* hashing.  */
 1867|  4.85M|    int32_t hashCode = ustr_hashUCharsN(getArrayStart(), length());
  ------------------
  |  | 1880|  4.85M|#define ustr_hashUCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashUCharsN)
  |  |  ------------------
  |  |  |  |  123|  4.85M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.85M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.85M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1868|  4.85M|    if (hashCode == kInvalidHashCode) {
  ------------------
  |  Branch (1868:9): [True: 5.26k, False: 4.84M]
  ------------------
 1869|  5.26k|        hashCode = kEmptyHashCode;
 1870|  5.26k|    }
 1871|  4.85M|    return hashCode;
 1872|  4.85M|}
_ZN6icu_7813UnicodeString9getBufferEi:
 1879|  8.14k|UnicodeString::getBuffer(int32_t minCapacity) {
 1880|  8.14k|  if(minCapacity>=-1 && cloneArrayIfNeeded(minCapacity)) {
  ------------------
  |  Branch (1880:6): [True: 8.14k, False: 0]
  |  Branch (1880:25): [True: 8.14k, False: 0]
  ------------------
 1881|  8.14k|    fUnion.fFields.fLengthAndFlags|=kOpenGetBuffer;
 1882|  8.14k|    setZeroLength();
 1883|  8.14k|    return getArrayStart();
 1884|  8.14k|  } else {
 1885|      0|    return nullptr;
 1886|      0|  }
 1887|  8.14k|}
_ZN6icu_7813UnicodeString13releaseBufferEi:
 1890|  8.14k|UnicodeString::releaseBuffer(int32_t newLength) {
 1891|  8.14k|  if(fUnion.fFields.fLengthAndFlags&kOpenGetBuffer && newLength>=-1) {
  ------------------
  |  Branch (1891:6): [True: 8.14k, False: 0]
  |  Branch (1891:55): [True: 8.14k, False: 0]
  ------------------
 1892|       |    // set the new fLength
 1893|  8.14k|    int32_t capacity=getCapacity();
 1894|  8.14k|    if(newLength==-1) {
  ------------------
  |  Branch (1894:8): [True: 0, False: 8.14k]
  ------------------
 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|  8.14k|    } else if(newLength>capacity) {
  ------------------
  |  Branch (1901:15): [True: 0, False: 8.14k]
  ------------------
 1902|      0|      newLength=capacity;
 1903|      0|    }
 1904|  8.14k|    setLength(newLength);
 1905|  8.14k|    fUnion.fFields.fLengthAndFlags&=~kOpenGetBuffer;
 1906|  8.14k|  }
 1907|  8.14k|}
_ZN6icu_7813UnicodeString18cloneArrayIfNeededEiiaPPia:
 1917|  10.0M|                                  UBool forceClone) {
 1918|       |  // default parameters need to be static, therefore
 1919|       |  // the defaults are -1 to have convenience defaults
 1920|  10.0M|  if(newCapacity == -1) {
  ------------------
  |  Branch (1920:6): [True: 54.3k, False: 9.94M]
  ------------------
 1921|  54.3k|    newCapacity = getCapacity();
 1922|  54.3k|  }
 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|  10.0M|  if(!isWritable()) {
  ------------------
  |  Branch (1927:6): [True: 0, False: 10.0M]
  ------------------
 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|  10.0M|  if(forceClone ||
  ------------------
  |  Branch (1938:6): [True: 0, False: 10.0M]
  ------------------
 1939|  10.0M|     fUnion.fFields.fLengthAndFlags & kBufferIsReadonly ||
  ------------------
  |  Branch (1939:6): [True: 58.3k, False: 9.94M]
  ------------------
 1940|  10.0M|     (fUnion.fFields.fLengthAndFlags & kRefCounted && refCount() > 1) ||
  ------------------
  |  Branch (1940:7): [True: 452k, False: 9.48M]
  |  Branch (1940:55): [True: 240k, False: 212k]
  ------------------
 1941|  10.0M|     newCapacity > getCapacity()
  ------------------
  |  Branch (1941:6): [True: 490k, False: 9.21M]
  ------------------
 1942|  10.0M|  ) {
 1943|       |    // check growCapacity for default value and use of the stack buffer
 1944|   789k|    if(growCapacity < 0) {
  ------------------
  |  Branch (1944:8): [True: 2.46k, False: 787k]
  ------------------
 1945|  2.46k|      growCapacity = newCapacity;
 1946|   787k|    } else if(newCapacity <= US_STACKBUF_SIZE && growCapacity > US_STACKBUF_SIZE) {
  ------------------
  |  Branch (1946:15): [True: 251k, False: 535k]
  |  Branch (1946:50): [True: 251k, False: 0]
  ------------------
 1947|   251k|      growCapacity = US_STACKBUF_SIZE;
 1948|   535k|    } else if(newCapacity > growCapacity) {
  ------------------
  |  Branch (1948:15): [True: 0, False: 535k]
  ------------------
 1949|      0|      setToBogus();
 1950|      0|      return false;  // bad inputs
 1951|      0|    }
 1952|   789k|    if(growCapacity > kMaxCapacity) {
  ------------------
  |  Branch (1952:8): [True: 0, False: 789k]
  ------------------
 1953|      0|      setToBogus();
 1954|      0|      return false;
 1955|      0|    }
 1956|       |
 1957|       |    // save old values
 1958|   789k|    char16_t oldStackBuffer[US_STACKBUF_SIZE];
 1959|   789k|    char16_t *oldArray;
 1960|   789k|    int32_t oldLength = length();
 1961|   789k|    int16_t flags = fUnion.fFields.fLengthAndFlags;
 1962|       |
 1963|   789k|    if(flags&kUsingStackBuffer) {
  ------------------
  |  Branch (1963:8): [True: 464k, False: 324k]
  ------------------
 1964|   464k|      U_ASSERT(!(flags&kRefCounted)); /* kRefCounted and kUsingStackBuffer are mutally exclusive */
  ------------------
  |  |   35|   464k|#   define U_ASSERT(exp) (void)0
  ------------------
 1965|   464k|      if(doCopyArray && growCapacity > US_STACKBUF_SIZE) {
  ------------------
  |  Branch (1965:10): [True: 288k, False: 176k]
  |  Branch (1965:25): [True: 288k, False: 0]
  ------------------
 1966|       |        // copy the stack buffer contents because it will be overwritten with
 1967|       |        // fUnion.fFields values
 1968|   288k|        us_arrayCopy(fUnion.fStackFields.fBuffer, 0, oldStackBuffer, 0, oldLength);
 1969|   288k|        oldArray = oldStackBuffer;
 1970|   288k|      } else {
 1971|   176k|        oldArray = nullptr; // no need to copy from the stack buffer to itself
 1972|   176k|      }
 1973|   464k|    } else {
 1974|   324k|      oldArray = fUnion.fFields.fArray;
 1975|   324k|      U_ASSERT(oldArray!=nullptr); /* when stack buffer is not used, oldArray must have a non-nullptr reference */
  ------------------
  |  |   35|   324k|#   define U_ASSERT(exp) (void)0
  ------------------
 1976|   324k|    }
 1977|       |
 1978|       |    // allocate a new array
 1979|   789k|    if(allocate(growCapacity) ||
  ------------------
  |  Branch (1979:8): [True: 789k, False: 0]
  ------------------
 1980|   789k|       (newCapacity < growCapacity && allocate(newCapacity))
  ------------------
  |  Branch (1980:9): [True: 0, False: 0]
  |  Branch (1980:39): [True: 0, False: 0]
  ------------------
 1981|   789k|    ) {
 1982|   789k|      if(doCopyArray) {
  ------------------
  |  Branch (1982:10): [True: 318k, False: 470k]
  ------------------
 1983|       |        // copy the contents
 1984|       |        // do not copy more than what fits - it may be smaller than before
 1985|   318k|        int32_t minLength = oldLength;
 1986|   318k|        newCapacity = getCapacity();
 1987|   318k|        if(newCapacity < minLength) {
  ------------------
  |  Branch (1987:12): [True: 0, False: 318k]
  ------------------
 1988|      0|          minLength = newCapacity;
 1989|      0|        }
 1990|   318k|        if(oldArray != nullptr) {
  ------------------
  |  Branch (1990:12): [True: 318k, False: 0]
  ------------------
 1991|   318k|          us_arrayCopy(oldArray, 0, getArrayStart(), 0, minLength);
 1992|   318k|        }
 1993|   318k|        setLength(minLength);
 1994|   470k|      } else {
 1995|   470k|        setZeroLength();
 1996|   470k|      }
 1997|       |
 1998|       |      // release the old array
 1999|   789k|      if(flags & kRefCounted) {
  ------------------
  |  Branch (1999:10): [True: 266k, False: 523k]
  ------------------
 2000|       |        // the array is refCounted; decrement and release if 0
 2001|   266k|        u_atomic_int32_t* pRefCount = reinterpret_cast<u_atomic_int32_t*>(oldArray) - 1;
 2002|   266k|        if(umtx_atomic_dec(pRefCount) == 0) {
  ------------------
  |  Branch (2002:12): [True: 25.9k, False: 240k]
  ------------------
 2003|  25.9k|          if (pBufferToDelete == nullptr) {
  ------------------
  |  Branch (2003:15): [True: 25.9k, False: 0]
  ------------------
 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|  25.9k|            uprv_free((void *)pRefCount);
  ------------------
  |  | 1503|  25.9k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  25.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  25.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  25.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2008|  25.9k|          } else {
 2009|       |            // the caller requested to delete it himself
 2010|      0|            *pBufferToDelete = reinterpret_cast<int32_t*>(pRefCount);
 2011|      0|          }
 2012|  25.9k|        }
 2013|   266k|      }
 2014|   789k|    } 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|   789k|  }
 2025|  10.0M|  return true;
 2026|  10.0M|}
_ZN6icu_7823UnicodeStringAppendableD2Ev:
 2030|   100k|UnicodeStringAppendable::~UnicodeStringAppendable() {}
_ZN6icu_7823UnicodeStringAppendable12appendStringEPKDsi:
 2047|   100k|UnicodeStringAppendable::appendString(const char16_t *s, int32_t length) {
 2048|   100k|  return str.doAppend(s, 0, length).isWritable();
 2049|   100k|}
uhash_hashUnicodeString_78:
 2081|  4.81M|uhash_hashUnicodeString(const UElement key) {
 2082|  4.81M|    const UnicodeString *str = (const UnicodeString*) key.pointer;
 2083|  4.81M|    return (str == nullptr) ? 0 : str->hashCode();
  ------------------
  |  Branch (2083:12): [True: 0, False: 4.81M]
  ------------------
 2084|  4.81M|}
uhash_compareUnicodeString_78:
 2089|  1.72M|uhash_compareUnicodeString(const UElement key1, const UElement key2) {
 2090|  1.72M|    const UnicodeString *str1 = (const UnicodeString*) key1.pointer;
 2091|  1.72M|    const UnicodeString *str2 = (const UnicodeString*) key2.pointer;
 2092|  1.72M|    if (str1 == str2) {
  ------------------
  |  Branch (2092:9): [True: 0, False: 1.72M]
  ------------------
 2093|      0|        return true;
 2094|      0|    }
 2095|  1.72M|    if (str1 == nullptr || str2 == nullptr) {
  ------------------
  |  Branch (2095:9): [True: 0, False: 1.72M]
  |  Branch (2095:28): [True: 0, False: 1.72M]
  ------------------
 2096|      0|        return false;
 2097|      0|    }
 2098|  1.72M|    return *str1 == *str2;
 2099|  1.72M|}
unistr.cpp:_ZL12us_arrayCopyPKDsiPDsii:
   87|  15.3M|{
   88|  15.3M|  if(count>0) {
  ------------------
  |  Branch (88:6): [True: 6.76M, False: 8.60M]
  ------------------
   89|  6.76M|    uprv_memmove(dst+dstStart, src+srcStart, (size_t)count*sizeof(*src));
  ------------------
  |  |   51|  6.76M|#define uprv_memmove(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  6.76M|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   52|  6.76M|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   53|  6.76M|    _Pragma("clang diagnostic push") \
  |  |   54|  6.76M|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   55|  6.76M|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  6.76M|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   56|  6.76M|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  6.76M|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   57|  6.76M|    _Pragma("clang diagnostic pop") \
  |  |   58|  6.76M|    U_STANDARD_CPP_NAMESPACE memmove(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  6.76M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   59|  6.76M|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  6.76M|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   90|  6.76M|  }
   91|  15.3M|}
unistr.cpp:_ZN6icu_7812_GLOBAL__N_115getGrowCapacityEi:
  397|  7.03M|int32_t getGrowCapacity(int32_t newLength) {
  398|  7.03M|  int32_t growSize = (newLength >> 2) + kGrowSize;
  399|  7.03M|  if(growSize <= (kMaxCapacity - newLength)) {
  ------------------
  |  Branch (399:6): [True: 7.03M, False: 0]
  ------------------
  400|  7.03M|    return newLength + growSize;
  401|  7.03M|  } else {
  402|      0|    return kMaxCapacity;
  403|      0|  }
  404|  7.03M|}

_ZN6icu_787UMemorynwEm:
   61|  13.3M|void * U_EXPORT2 UMemory::operator new(size_t size) noexcept {
   62|  13.3M|    return uprv_malloc(size);
  ------------------
  |  | 1524|  13.3M|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  13.3M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.3M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.3M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   63|  13.3M|}
_ZN6icu_787UMemorydlEPv:
   65|  13.3M|void U_EXPORT2 UMemory::operator delete(void *p) noexcept {
   66|  13.3M|    if(p!=nullptr) {
  ------------------
  |  Branch (66:8): [True: 13.3M, False: 0]
  ------------------
   67|  13.3M|        uprv_free(p);
  ------------------
  |  | 1503|  13.3M|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  13.3M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.3M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.3M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   68|  13.3M|    }
   69|  13.3M|}
_ZN6icu_787UMemorynaEm:
   71|  2.81M|void * U_EXPORT2 UMemory::operator new[](size_t size) noexcept {
   72|  2.81M|    return uprv_malloc(size);
  ------------------
  |  | 1524|  2.81M|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  2.81M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.81M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.81M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   73|  2.81M|}
_ZN6icu_787UMemorydaEPv:
   75|  2.80M|void U_EXPORT2 UMemory::operator delete[](void *p) noexcept {
   76|  2.80M|    if(p!=nullptr) {
  ------------------
  |  Branch (76:8): [True: 2.80M, False: 0]
  ------------------
   77|  2.80M|        uprv_free(p);
  ------------------
  |  | 1503|  2.80M|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  2.80M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.80M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.80M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   78|  2.80M|    }
   79|  2.80M|}
_ZN6icu_787UObjectD2Ev:
   94|  77.2M|UObject::~UObject() {}
uprv_deleteUObject_78:
  103|  1.76M|uprv_deleteUObject(void *obj) {
  104|  1.76M|    delete static_cast<UObject *>(obj);
  105|  1.76M|}

ures_initStackObject_78:
  726|  1.39M|U_CFUNC void ures_initStackObject(UResourceBundle* resB) {
  727|  1.39M|  uprv_memset(resB, 0, sizeof(UResourceBundle));
  ------------------
  |  |  100|  1.39M|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  1.39M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  728|  1.39M|  ures_setIsStackObject(resB, true);
  729|  1.39M|}
_ZN6icu_7820StackUResourceBundleC2Ev:
  733|  1.11M|StackUResourceBundle::StackUResourceBundle() {
  734|  1.11M|    ures_initStackObject(&bundle);
  ------------------
  |  | 1690|  1.11M|#define ures_initStackObject U_ICU_ENTRY_POINT_RENAME(ures_initStackObject)
  |  |  ------------------
  |  |  |  |  123|  1.11M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.11M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.11M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  735|  1.11M|}
_ZN6icu_7820StackUResourceBundleD2Ev:
  737|  1.11M|StackUResourceBundle::~StackUResourceBundle() {
  738|  1.11M|    ures_close(&bundle);
  ------------------
  |  | 1652|  1.11M|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  1.11M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.11M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.11M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  739|  1.11M|}
ures_close_78:
 1147|  4.01M|{
 1148|  4.01M|    ures_closeBundle(resB, true);
 1149|  4.01M|}
ures_getString_78:
 1524|   419k|U_CAPI const char16_t* U_EXPORT2 ures_getString(const UResourceBundle* resB, int32_t* len, UErrorCode* status) {
 1525|   419k|    const char16_t *s;
 1526|   419k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1526:9): [True: 0, False: 419k]
  |  Branch (1526:28): [True: 352, False: 419k]
  ------------------
 1527|    352|        return nullptr;
 1528|    352|    }
 1529|   419k|    if(resB == nullptr) {
  ------------------
  |  Branch (1529:8): [True: 0, False: 419k]
  ------------------
 1530|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 1531|      0|        return nullptr;
 1532|      0|    }
 1533|   419k|    s = res_getString({resB}, &resB->getResData(), resB->fRes, len);
 1534|   419k|    if (s == nullptr) {
  ------------------
  |  Branch (1534:9): [True: 0, False: 419k]
  ------------------
 1535|      0|        *status = U_RESOURCE_TYPE_MISMATCH;
 1536|      0|    }
 1537|   419k|    return s;
 1538|   419k|}
ures_getBinary_78:
 1613|    100|                                               UErrorCode*               status) {
 1614|    100|  const uint8_t *p;
 1615|    100|  if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1615:7): [True: 0, False: 100]
  |  Branch (1615:26): [True: 0, False: 100]
  ------------------
 1616|      0|    return nullptr;
 1617|      0|  }
 1618|    100|  if(resB == nullptr) {
  ------------------
  |  Branch (1618:6): [True: 0, False: 100]
  ------------------
 1619|      0|    *status = U_ILLEGAL_ARGUMENT_ERROR;
 1620|      0|    return nullptr;
 1621|      0|  }
 1622|    100|  p = res_getBinary({resB}, &resB->getResData(), resB->fRes, len);
 1623|    100|  if (p == nullptr) {
  ------------------
  |  Branch (1623:7): [True: 0, False: 100]
  ------------------
 1624|      0|    *status = U_RESOURCE_TYPE_MISMATCH;
 1625|      0|  }
 1626|    100|  return p;
 1627|    100|}
ures_getIntVector_78:
 1630|  35.1k|                                                   UErrorCode*               status) {
 1631|  35.1k|  const int32_t *p;
 1632|  35.1k|  if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1632:7): [True: 0, False: 35.1k]
  |  Branch (1632:26): [True: 291, False: 34.8k]
  ------------------
 1633|    291|    return nullptr;
 1634|    291|  }
 1635|  34.8k|  if(resB == nullptr) {
  ------------------
  |  Branch (1635:6): [True: 0, False: 34.8k]
  ------------------
 1636|      0|    *status = U_ILLEGAL_ARGUMENT_ERROR;
 1637|      0|    return nullptr;
 1638|      0|  }
 1639|  34.8k|  p = res_getIntVector({resB}, &resB->getResData(), resB->fRes, len);
 1640|  34.8k|  if (p == nullptr) {
  ------------------
  |  Branch (1640:7): [True: 0, False: 34.8k]
  ------------------
 1641|      0|    *status = U_RESOURCE_TYPE_MISMATCH;
 1642|      0|  }
 1643|  34.8k|  return p;
 1644|  34.8k|}
ures_getInt_78:
 1648|   177k|U_CAPI int32_t U_EXPORT2 ures_getInt(const UResourceBundle* resB, UErrorCode *status) {
 1649|   177k|  if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1649:7): [True: 0, False: 177k]
  |  Branch (1649:26): [True: 1.02k, False: 176k]
  ------------------
 1650|  1.02k|    return 0xffffffff;
 1651|  1.02k|  }
 1652|   176k|  if(resB == nullptr) {
  ------------------
  |  Branch (1652:6): [True: 0, False: 176k]
  ------------------
 1653|      0|    *status = U_ILLEGAL_ARGUMENT_ERROR;
 1654|      0|    return 0xffffffff;
 1655|      0|  }
 1656|   176k|  if(RES_GET_TYPE(resB->fRes) != URES_INT) {
  ------------------
  |  |   68|   176k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (1656:6): [True: 0, False: 176k]
  ------------------
 1657|      0|    *status = U_RESOURCE_TYPE_MISMATCH;
 1658|      0|    return 0xffffffff;
 1659|      0|  }
 1660|   176k|  return res_getInt({resB}, resB->fRes);
 1661|   176k|}
ures_getType_78:
 1678|   111k|U_CAPI UResType U_EXPORT2 ures_getType(const UResourceBundle *resB) {
 1679|   111k|  if(resB == nullptr) {
  ------------------
  |  Branch (1679:6): [True: 0, False: 111k]
  ------------------
 1680|      0|    return URES_NONE;
 1681|      0|  }
 1682|   111k|  return res_getPublicType(resB->fRes);
  ------------------
  |  |  203|   111k|#define res_getPublicType U_ICU_ENTRY_POINT_RENAME(res_getPublicType)
  |  |  ------------------
  |  |  |  |  123|   111k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   111k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   111k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1683|   111k|}
ures_getKey_78:
 1685|  29.4k|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|  29.4k|  if(resB == nullptr) {
  ------------------
  |  Branch (1695:6): [True: 0, False: 29.4k]
  ------------------
 1696|      0|    return nullptr;
 1697|      0|  }
 1698|  29.4k|  return(resB->fKey);
 1699|  29.4k|}
ures_getSize_78:
 1701|   178k|U_CAPI int32_t U_EXPORT2 ures_getSize(const UResourceBundle *resB) {
 1702|   178k|  if(resB == nullptr) {
  ------------------
  |  Branch (1702:6): [True: 0, False: 178k]
  ------------------
 1703|      0|    return 0;
 1704|      0|  }
 1705|       |  
 1706|   178k|  return resB->fSize;
 1707|   178k|}
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|   228k|U_CAPI UBool U_EXPORT2 ures_hasNext(const UResourceBundle *resB) {
 1729|   228k|  if(resB == nullptr) {
  ------------------
  |  Branch (1729:6): [True: 0, False: 228k]
  ------------------
 1730|      0|    return false;
 1731|      0|  }
 1732|   228k|  return resB->fIndex < resB->fSize-1;
 1733|   228k|}
ures_getNextString_78:
 1735|   145k|U_CAPI const char16_t* U_EXPORT2 ures_getNextString(UResourceBundle *resB, int32_t* len, const char ** key, UErrorCode *status) {
 1736|   145k|  Resource r = RES_BOGUS;
  ------------------
  |  |   65|   145k|#define RES_BOGUS 0xffffffff
  ------------------
 1737|       |  
 1738|   145k|  if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1738:7): [True: 0, False: 145k]
  |  Branch (1738:26): [True: 0, False: 145k]
  ------------------
 1739|      0|    return nullptr;
 1740|      0|  }
 1741|   145k|  if(resB == nullptr) {
  ------------------
  |  Branch (1741:6): [True: 0, False: 145k]
  ------------------
 1742|      0|    *status = U_ILLEGAL_ARGUMENT_ERROR;
 1743|      0|    return nullptr;
 1744|      0|  }
 1745|       |  
 1746|   145k|  if(resB->fIndex == resB->fSize-1) {
  ------------------
  |  Branch (1746:6): [True: 0, False: 145k]
  ------------------
 1747|      0|    *status = U_INDEX_OUTOFBOUNDS_ERROR;
 1748|   145k|  } else {
 1749|   145k|    resB->fIndex++;
 1750|   145k|    switch(RES_GET_TYPE(resB->fRes)) {
  ------------------
  |  |   68|   145k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 1751|      0|    case URES_STRING:
  ------------------
  |  Branch (1751:5): [True: 0, False: 145k]
  ------------------
 1752|      1|    case URES_STRING_V2:
  ------------------
  |  Branch (1752:5): [True: 1, False: 145k]
  ------------------
 1753|      1|      return res_getString({resB}, &resB->getResData(), resB->fRes, len);
 1754|      0|    case URES_TABLE:
  ------------------
  |  Branch (1754:5): [True: 0, False: 145k]
  ------------------
 1755|      0|    case URES_TABLE16:
  ------------------
  |  Branch (1755:5): [True: 0, False: 145k]
  ------------------
 1756|      0|    case URES_TABLE32:
  ------------------
  |  Branch (1756:5): [True: 0, False: 145k]
  ------------------
 1757|      0|      r = res_getTableItemByIndex(&resB->getResData(), resB->fRes, resB->fIndex, key);
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1758|      0|      if(r == RES_BOGUS && resB->fHasFallback) {
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1758:10): [True: 0, False: 0]
  |  Branch (1758:28): [True: 0, False: 0]
  ------------------
 1759|       |        /* TODO: do the fallback */
 1760|      0|      }
 1761|      0|      return ures_getStringWithAlias(resB, r, resB->fIndex, len, status);
 1762|      0|    case URES_ARRAY:
  ------------------
  |  Branch (1762:5): [True: 0, False: 145k]
  ------------------
 1763|   145k|    case URES_ARRAY16:
  ------------------
  |  Branch (1763:5): [True: 145k, False: 1]
  ------------------
 1764|   145k|      r = res_getArrayItem(&resB->getResData(), resB->fRes, resB->fIndex);
  ------------------
  |  |  200|   145k|#define res_getArrayItem U_ICU_ENTRY_POINT_RENAME(res_getArrayItem)
  |  |  ------------------
  |  |  |  |  123|   145k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   145k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   145k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1765|   145k|      if(r == RES_BOGUS && resB->fHasFallback) {
  ------------------
  |  |   65|   290k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1765:10): [True: 0, False: 145k]
  |  Branch (1765:28): [True: 0, False: 0]
  ------------------
 1766|       |        /* TODO: do the fallback */
 1767|      0|      }
 1768|   145k|      return ures_getStringWithAlias(resB, r, resB->fIndex, len, status);
 1769|      0|    case URES_ALIAS:
  ------------------
  |  Branch (1769:5): [True: 0, False: 145k]
  ------------------
 1770|      0|      return ures_getStringWithAlias(resB, resB->fRes, resB->fIndex, len, status);
 1771|      0|    case URES_INT:
  ------------------
  |  Branch (1771:5): [True: 0, False: 145k]
  ------------------
 1772|      0|    case URES_BINARY:
  ------------------
  |  Branch (1772:5): [True: 0, False: 145k]
  ------------------
 1773|      0|    case URES_INT_VECTOR:
  ------------------
  |  Branch (1773:5): [True: 0, False: 145k]
  ------------------
 1774|      0|        *status = U_RESOURCE_TYPE_MISMATCH;
 1775|      0|        U_FALLTHROUGH;
  ------------------
  |  |  511|      0|#       define U_FALLTHROUGH [[clang::fallthrough]]
  ------------------
 1776|      0|    default:
  ------------------
  |  Branch (1776:5): [True: 0, False: 145k]
  ------------------
 1777|      0|      return nullptr;
 1778|   145k|    }
 1779|   145k|  }
 1780|       |
 1781|      0|  return nullptr;
 1782|   145k|}
ures_getNextResource_78:
 1784|   113k|U_CAPI UResourceBundle* U_EXPORT2 ures_getNextResource(UResourceBundle *resB, UResourceBundle *fillIn, UErrorCode *status) {
 1785|   113k|    const char *key = nullptr;
 1786|   113k|    Resource r = RES_BOGUS;
  ------------------
  |  |   65|   113k|#define RES_BOGUS 0xffffffff
  ------------------
 1787|       |
 1788|   113k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1788:9): [True: 0, False: 113k]
  |  Branch (1788:28): [True: 0, False: 113k]
  ------------------
 1789|       |            /*return nullptr;*/
 1790|      0|            return fillIn;
 1791|      0|    }
 1792|   113k|    if(resB == nullptr) {
  ------------------
  |  Branch (1792:8): [True: 0, False: 113k]
  ------------------
 1793|      0|            *status = U_ILLEGAL_ARGUMENT_ERROR;
 1794|       |            /*return nullptr;*/
 1795|      0|            return fillIn;
 1796|      0|    }
 1797|       |
 1798|   113k|    if(resB->fIndex == resB->fSize-1) {
  ------------------
  |  Branch (1798:8): [True: 5.35k, False: 108k]
  ------------------
 1799|  5.35k|      *status = U_INDEX_OUTOFBOUNDS_ERROR;
 1800|       |      /*return nullptr;*/
 1801|   108k|    } else {
 1802|   108k|        resB->fIndex++;
 1803|   108k|        switch(RES_GET_TYPE(resB->fRes)) {
  ------------------
  |  |   68|   108k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 1804|      0|        case URES_INT:
  ------------------
  |  Branch (1804:9): [True: 0, False: 108k]
  ------------------
 1805|      0|        case URES_BINARY:
  ------------------
  |  Branch (1805:9): [True: 0, False: 108k]
  ------------------
 1806|      0|        case URES_STRING:
  ------------------
  |  Branch (1806:9): [True: 0, False: 108k]
  ------------------
 1807|      0|        case URES_STRING_V2:
  ------------------
  |  Branch (1807:9): [True: 0, False: 108k]
  ------------------
 1808|      0|        case URES_INT_VECTOR:
  ------------------
  |  Branch (1808:9): [True: 0, False: 108k]
  ------------------
 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|  28.1k|        case URES_TABLE:
  ------------------
  |  Branch (1810:9): [True: 28.1k, False: 80.0k]
  ------------------
 1811|   107k|        case URES_TABLE16:
  ------------------
  |  Branch (1811:9): [True: 79.7k, False: 28.4k]
  ------------------
 1812|   107k|        case URES_TABLE32:
  ------------------
  |  Branch (1812:9): [True: 0, False: 108k]
  ------------------
 1813|   107k|            r = res_getTableItemByIndex(&resB->getResData(), resB->fRes, resB->fIndex, &key);
  ------------------
  |  |  206|   107k|#define res_getTableItemByIndex U_ICU_ENTRY_POINT_RENAME(res_getTableItemByIndex)
  |  |  ------------------
  |  |  |  |  123|   107k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   107k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   107k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1814|   107k|            if(r == RES_BOGUS && resB->fHasFallback) {
  ------------------
  |  |   65|   215k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1814:16): [True: 0, False: 107k]
  |  Branch (1814:34): [True: 0, False: 0]
  ------------------
 1815|       |                /* TODO: do the fallback */
 1816|      0|            }
 1817|   107k|            return init_resb_result(resB->fData, r, key, resB->fIndex, resB, fillIn, status);
 1818|    303|        case URES_ARRAY:
  ------------------
  |  Branch (1818:9): [True: 303, False: 107k]
  ------------------
 1819|    303|        case URES_ARRAY16:
  ------------------
  |  Branch (1819:9): [True: 0, False: 108k]
  ------------------
 1820|    303|            r = res_getArrayItem(&resB->getResData(), resB->fRes, resB->fIndex);
  ------------------
  |  |  200|    303|#define res_getArrayItem U_ICU_ENTRY_POINT_RENAME(res_getArrayItem)
  |  |  ------------------
  |  |  |  |  123|    303|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    303|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    303|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1821|    303|            if(r == RES_BOGUS && resB->fHasFallback) {
  ------------------
  |  |   65|    606|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1821:16): [True: 0, False: 303]
  |  Branch (1821:34): [True: 0, False: 0]
  ------------------
 1822|       |                /* TODO: do the fallback */
 1823|      0|            }
 1824|    303|            return init_resb_result(resB->fData, r, key, resB->fIndex, resB, fillIn, status);
 1825|      0|        default:
  ------------------
  |  Branch (1825:9): [True: 0, False: 108k]
  ------------------
 1826|       |            /*return nullptr;*/
 1827|      0|            return fillIn;
 1828|   108k|        }
 1829|   108k|    }
 1830|       |    /*return nullptr;*/
 1831|  5.35k|    return fillIn;
 1832|   113k|}
ures_getByIndex_78:
 1834|   172k|U_CAPI UResourceBundle* U_EXPORT2 ures_getByIndex(const UResourceBundle *resB, int32_t indexR, UResourceBundle *fillIn, UErrorCode *status) {
 1835|   172k|    const char* key = nullptr;
 1836|   172k|    Resource r = RES_BOGUS;
  ------------------
  |  |   65|   172k|#define RES_BOGUS 0xffffffff
  ------------------
 1837|       |
 1838|   172k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1838:9): [True: 0, False: 172k]
  |  Branch (1838:28): [True: 0, False: 172k]
  ------------------
 1839|       |        /*return nullptr;*/
 1840|      0|        return fillIn;
 1841|      0|    }
 1842|   172k|    if(resB == nullptr) {
  ------------------
  |  Branch (1842:8): [True: 0, False: 172k]
  ------------------
 1843|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 1844|       |        /*return nullptr;*/
 1845|      0|        return fillIn;
 1846|      0|    }
 1847|       |
 1848|   172k|    if(indexR >= 0 && resB->fSize > indexR) {
  ------------------
  |  Branch (1848:8): [True: 169k, False: 2.67k]
  |  Branch (1848:23): [True: 155k, False: 14.4k]
  ------------------
 1849|   155k|        switch(RES_GET_TYPE(resB->fRes)) {
  ------------------
  |  |   68|   155k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 1850|      0|        case URES_INT:
  ------------------
  |  Branch (1850:9): [True: 0, False: 155k]
  ------------------
 1851|      0|        case URES_BINARY:
  ------------------
  |  Branch (1851:9): [True: 0, False: 155k]
  ------------------
 1852|      0|        case URES_STRING:
  ------------------
  |  Branch (1852:9): [True: 0, False: 155k]
  ------------------
 1853|      0|        case URES_STRING_V2:
  ------------------
  |  Branch (1853:9): [True: 0, False: 155k]
  ------------------
 1854|      0|        case URES_INT_VECTOR:
  ------------------
  |  Branch (1854:9): [True: 0, False: 155k]
  ------------------
 1855|      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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1856|      0|        case URES_TABLE:
  ------------------
  |  Branch (1856:9): [True: 0, False: 155k]
  ------------------
 1857|      0|        case URES_TABLE16:
  ------------------
  |  Branch (1857:9): [True: 0, False: 155k]
  ------------------
 1858|      0|        case URES_TABLE32:
  ------------------
  |  Branch (1858:9): [True: 0, False: 155k]
  ------------------
 1859|      0|            r = res_getTableItemByIndex(&resB->getResData(), resB->fRes, indexR, &key);
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1860|      0|            if(r == RES_BOGUS && resB->fHasFallback) {
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1860:16): [True: 0, False: 0]
  |  Branch (1860:34): [True: 0, False: 0]
  ------------------
 1861|       |                /* TODO: do the fallback */
 1862|      0|            }
 1863|      0|            return init_resb_result(resB->fData, r, key, indexR, resB, fillIn, status);
 1864|  69.9k|        case URES_ARRAY:
  ------------------
  |  Branch (1864:9): [True: 69.9k, False: 85.3k]
  ------------------
 1865|   155k|        case URES_ARRAY16:
  ------------------
  |  Branch (1865:9): [True: 85.3k, False: 69.9k]
  ------------------
 1866|   155k|            r = res_getArrayItem(&resB->getResData(), resB->fRes, indexR);
  ------------------
  |  |  200|   155k|#define res_getArrayItem U_ICU_ENTRY_POINT_RENAME(res_getArrayItem)
  |  |  ------------------
  |  |  |  |  123|   155k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   155k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   155k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1867|   155k|            if(r == RES_BOGUS && resB->fHasFallback) {
  ------------------
  |  |   65|   310k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1867:16): [True: 0, False: 155k]
  |  Branch (1867:34): [True: 0, False: 0]
  ------------------
 1868|       |                /* TODO: do the fallback */
 1869|      0|            }
 1870|   155k|            return init_resb_result(resB->fData, r, key, indexR, resB, fillIn, status);
 1871|      0|        default:
  ------------------
  |  Branch (1871:9): [True: 0, False: 155k]
  ------------------
 1872|       |            /*return nullptr;*/
 1873|      0|            return fillIn;
 1874|   155k|        }
 1875|   155k|    } else {
 1876|  17.1k|        *status = U_MISSING_RESOURCE_ERROR;
 1877|  17.1k|    }
 1878|       |    /*return nullptr;*/
 1879|  17.1k|    return fillIn;
 1880|   172k|}
ures_getStringByIndex_78:
 1882|   156k|U_CAPI const char16_t* U_EXPORT2 ures_getStringByIndex(const UResourceBundle *resB, int32_t indexS, int32_t* len, UErrorCode *status) {
 1883|   156k|    const char* key = nullptr;
 1884|   156k|    Resource r = RES_BOGUS;
  ------------------
  |  |   65|   156k|#define RES_BOGUS 0xffffffff
  ------------------
 1885|       |
 1886|   156k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1886:9): [True: 0, False: 156k]
  |  Branch (1886:28): [True: 304, False: 156k]
  ------------------
 1887|    304|        return nullptr;
 1888|    304|    }
 1889|   156k|    if(resB == nullptr) {
  ------------------
  |  Branch (1889:8): [True: 0, False: 156k]
  ------------------
 1890|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 1891|      0|        return nullptr;
 1892|      0|    }
 1893|       |
 1894|   156k|    if(indexS >= 0 && resB->fSize > indexS) {
  ------------------
  |  Branch (1894:8): [True: 155k, False: 19]
  |  Branch (1894:23): [True: 154k, False: 1.23k]
  ------------------
 1895|   154k|        switch(RES_GET_TYPE(resB->fRes)) {
  ------------------
  |  |   68|   154k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 1896|      0|        case URES_STRING:
  ------------------
  |  Branch (1896:9): [True: 0, False: 154k]
  ------------------
 1897|      0|        case URES_STRING_V2:
  ------------------
  |  Branch (1897:9): [True: 0, False: 154k]
  ------------------
 1898|      0|            return res_getString({resB}, &resB->getResData(), resB->fRes, len);
 1899|      6|        case URES_TABLE:
  ------------------
  |  Branch (1899:9): [True: 6, False: 154k]
  ------------------
 1900|      6|        case URES_TABLE16:
  ------------------
  |  Branch (1900:9): [True: 0, False: 154k]
  ------------------
 1901|      6|        case URES_TABLE32:
  ------------------
  |  Branch (1901:9): [True: 0, False: 154k]
  ------------------
 1902|      6|            r = res_getTableItemByIndex(&resB->getResData(), resB->fRes, indexS, &key);
  ------------------
  |  |  206|      6|#define res_getTableItemByIndex U_ICU_ENTRY_POINT_RENAME(res_getTableItemByIndex)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1903|      6|            if(r == RES_BOGUS && resB->fHasFallback) {
  ------------------
  |  |   65|     12|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1903:16): [True: 0, False: 6]
  |  Branch (1903:34): [True: 0, False: 0]
  ------------------
 1904|       |                /* TODO: do the fallback */
 1905|      0|            }
 1906|      6|            return ures_getStringWithAlias(resB, r, indexS, len, status);
 1907|  5.79k|        case URES_ARRAY:
  ------------------
  |  Branch (1907:9): [True: 5.79k, False: 148k]
  ------------------
 1908|   154k|        case URES_ARRAY16:
  ------------------
  |  Branch (1908:9): [True: 148k, False: 5.80k]
  ------------------
 1909|   154k|            r = res_getArrayItem(&resB->getResData(), resB->fRes, indexS);
  ------------------
  |  |  200|   154k|#define res_getArrayItem U_ICU_ENTRY_POINT_RENAME(res_getArrayItem)
  |  |  ------------------
  |  |  |  |  123|   154k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   154k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   154k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1910|   154k|            if(r == RES_BOGUS && resB->fHasFallback) {
  ------------------
  |  |   65|   309k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1910:16): [True: 0, False: 154k]
  |  Branch (1910:34): [True: 0, False: 0]
  ------------------
 1911|       |                /* TODO: do the fallback */
 1912|      0|            }
 1913|   154k|            return ures_getStringWithAlias(resB, r, indexS, len, status);
 1914|      0|        case URES_ALIAS:
  ------------------
  |  Branch (1914:9): [True: 0, False: 154k]
  ------------------
 1915|      0|            return ures_getStringWithAlias(resB, resB->fRes, indexS, len, status);
 1916|      0|        case URES_INT:
  ------------------
  |  Branch (1916:9): [True: 0, False: 154k]
  ------------------
 1917|      0|        case URES_BINARY:
  ------------------
  |  Branch (1917:9): [True: 0, False: 154k]
  ------------------
 1918|      0|        case URES_INT_VECTOR:
  ------------------
  |  Branch (1918:9): [True: 0, False: 154k]
  ------------------
 1919|      0|            *status = U_RESOURCE_TYPE_MISMATCH;
 1920|      0|            break;
 1921|      0|        default:
  ------------------
  |  Branch (1921:9): [True: 0, False: 154k]
  ------------------
 1922|       |          /* must not occur */
 1923|      0|          *status = U_INTERNAL_PROGRAM_ERROR;
 1924|      0|          break;
 1925|   154k|        }
 1926|   154k|    } else {
 1927|  1.25k|        *status = U_MISSING_RESOURCE_ERROR;
 1928|  1.25k|    }
 1929|  1.25k|    return nullptr;
 1930|   156k|}
ures_getStringByKeyWithFallback_78:
 2033|   235k|                                UErrorCode *status) {
 2034|       |
 2035|   235k|    UResourceBundle stack;
 2036|   235k|    const char16_t* retVal = nullptr;
 2037|   235k|    ures_initStackObject(&stack);
  ------------------
  |  | 1690|   235k|#define ures_initStackObject U_ICU_ENTRY_POINT_RENAME(ures_initStackObject)
  |  |  ------------------
  |  |  |  |  123|   235k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   235k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   235k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2038|   235k|    ures_getByKeyWithFallback(resB, inKey, &stack, status);
  ------------------
  |  | 1662|   235k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|   235k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   235k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   235k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2039|   235k|    int32_t length;
 2040|   235k|    retVal = ures_getString(&stack, &length, status);
  ------------------
  |  | 1675|   235k|#define ures_getString U_ICU_ENTRY_POINT_RENAME(ures_getString)
  |  |  ------------------
  |  |  |  |  123|   235k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   235k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   235k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2041|   235k|    ures_close(&stack);
  ------------------
  |  | 1652|   235k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|   235k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   235k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   235k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2042|   235k|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (2042:9): [True: 352, False: 235k]
  ------------------
 2043|    352|        return nullptr;
 2044|    352|    }
 2045|   235k|    if (length == 3 && retVal[0] == EMPTY_SET && retVal[1] == EMPTY_SET && retVal[2] == EMPTY_SET ) {
  ------------------
  |  |   35|   242k|#define EMPTY_SET 0x2205
  ------------------
                  if (length == 3 && retVal[0] == EMPTY_SET && retVal[1] == EMPTY_SET && retVal[2] == EMPTY_SET ) {
  ------------------
  |  |   35|   235k|#define EMPTY_SET 0x2205
  ------------------
                  if (length == 3 && retVal[0] == EMPTY_SET && retVal[1] == EMPTY_SET && retVal[2] == EMPTY_SET ) {
  ------------------
  |  |   35|      0|#define EMPTY_SET 0x2205
  ------------------
  |  Branch (2045:9): [True: 7.07k, False: 228k]
  |  Branch (2045:24): [True: 0, False: 7.07k]
  |  Branch (2045:50): [True: 0, False: 0]
  |  Branch (2045:76): [True: 0, False: 0]
  ------------------
 2046|      0|        retVal = nullptr;
 2047|      0|        length = 0;
 2048|      0|        *status = U_MISSING_RESOURCE_ERROR;
 2049|      0|    }
 2050|   235k|    if (len != nullptr) {
  ------------------
  |  Branch (2050:9): [True: 168k, False: 67.0k]
  ------------------
 2051|   168k|        *len = length;
 2052|   168k|    }
 2053|   235k|    return retVal;
 2054|   235k|}
ures_getByKeyWithFallback_78:
 2164|   972k|                          UErrorCode *status) {
 2165|   972k|    Resource res = RES_BOGUS, rootRes = RES_BOGUS;
  ------------------
  |  |   65|   972k|#define RES_BOGUS 0xffffffff
  ------------------
                  Resource res = RES_BOGUS, rootRes = RES_BOGUS;
  ------------------
  |  |   65|   972k|#define RES_BOGUS 0xffffffff
  ------------------
 2166|   972k|    UResourceBundle *helper = nullptr;
 2167|       |
 2168|   972k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (2168:9): [True: 0, False: 972k]
  |  Branch (2168:28): [True: 243, False: 972k]
  ------------------
 2169|    243|        return fillIn;
 2170|    243|    }
 2171|   972k|    if(resB == nullptr) {
  ------------------
  |  Branch (2171:8): [True: 72, False: 971k]
  ------------------
 2172|     72|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 2173|     72|        return fillIn;
 2174|     72|    }
 2175|       |
 2176|   971k|    int32_t type = RES_GET_TYPE(resB->fRes);
  ------------------
  |  |   68|   971k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2177|   971k|    if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|   971k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 960k, False: 11.1k]
  |  |  |  Branch (84:61): [True: 11.1k, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2178|   971k|        const char* origResPath = resB->fResPath;
 2179|   971k|        int32_t origResPathLen = resB->fResPathLen;
 2180|   971k|        res = getTableItemByKeyPath(&resB->getResData(), resB->fRes, inKey);
 2181|   971k|        const char* key = inKey;
 2182|   971k|        bool didRootOnce = false;
 2183|   971k|        if(res == RES_BOGUS) {
  ------------------
  |  |   65|   971k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2183:12): [True: 411k, False: 560k]
  ------------------
 2184|   411k|            UResourceDataEntry *dataEntry = resB->fData;
 2185|   411k|            CharString path;
 2186|   411k|            char *myPath = nullptr;
 2187|   411k|            const char* resPath = resB->fResPath;
 2188|   411k|            int32_t len = resB->fResPathLen;
 2189|  1.11M|            while(res == RES_BOGUS && (dataEntry->fParent != nullptr || !didRootOnce)) { /* Otherwise, we'll look in parents */
  ------------------
  |  |   65|  2.23M|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2189:19): [True: 716k, False: 399k]
  |  Branch (2189:40): [True: 693k, False: 23.0k]
  |  Branch (2189:73): [True: 11.5k, False: 11.5k]
  ------------------
 2190|   704k|                if (dataEntry->fParent != nullptr) {
  ------------------
  |  Branch (2190:21): [True: 693k, False: 11.5k]
  ------------------
 2191|   693k|                    dataEntry = dataEntry->fParent;
 2192|   693k|                } 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|  11.5k|                    didRootOnce = true;
 2199|  11.5k|                }
 2200|   704k|                rootRes = dataEntry->fData.rootRes;
 2201|       |
 2202|   704k|                if(dataEntry->fBogus == U_ZERO_ERROR) {
  ------------------
  |  Branch (2202:20): [True: 704k, False: 0]
  ------------------
 2203|   704k|                    createPath(origResPath, origResPathLen, resPath, len, inKey, path, status);
 2204|   704k|                    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (2204:25): [True: 0, False: 704k]
  ------------------
 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|   704k|                    myPath = path.data();
 2209|   704k|                    key = inKey;
 2210|   704k|                    do {
 2211|   704k|                        res = res_findResource(&(dataEntry->fData), rootRes, &myPath, &key);
  ------------------
  |  |  198|   704k|#define res_findResource U_ICU_ENTRY_POINT_RENAME(res_findResource)
  |  |  ------------------
  |  |  |  |  123|   704k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   704k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   704k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2212|   704k|                        if (RES_GET_TYPE(res) == URES_ALIAS && *myPath) {
  ------------------
  |  |   68|   704k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (2212:29): [True: 6.61k, False: 698k]
  |  Branch (2212:64): [True: 0, False: 6.61k]
  ------------------
 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|   704k|                        } else if (res == RES_BOGUS) {
  ------------------
  |  |   65|   704k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2225:36): [True: 305k, False: 399k]
  ------------------
 2226|   305k|                            break;
 2227|   305k|                        }
 2228|   704k|                    } while(*myPath); /* Continue until the whole path is consumed */
  ------------------
  |  Branch (2228:29): [True: 0, False: 399k]
  ------------------
 2229|   704k|                }
 2230|   704k|            }
 2231|       |            /*dataEntry = getFallbackData(resB, &key, &res, status);*/
 2232|   411k|            if(res != RES_BOGUS) {
  ------------------
  |  |   65|   411k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2232:16): [True: 399k, False: 11.5k]
  ------------------
 2233|       |              /* check if resB->fResPath gives the right name here */
 2234|   399k|                if(uprv_strcmp(dataEntry->fName, uloc_getDefault())==0 || uprv_strcmp(dataEntry->fName, kRootLocaleName)==0) {
  ------------------
  |  |   38|   399k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   399k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                              if(uprv_strcmp(dataEntry->fName, uloc_getDefault())==0 || uprv_strcmp(dataEntry->fName, kRootLocaleName)==0) {
  ------------------
  |  |   38|   399k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   399k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (2234:20): [True: 0, False: 399k]
  |  Branch (2234:75): [True: 251k, False: 148k]
  ------------------
 2235|   251k|                    *status = U_USING_DEFAULT_WARNING;
 2236|   251k|                } else {
 2237|   148k|                    *status = U_USING_FALLBACK_WARNING;
 2238|   148k|                }
 2239|       |
 2240|   399k|                fillIn = init_resb_result(dataEntry, res, key, -1, resB, fillIn, status);
 2241|   399k|                if (resPath != nullptr) {
  ------------------
  |  Branch (2241:21): [True: 100k, False: 299k]
  ------------------
 2242|   100k|                    createPath(origResPath, origResPathLen, resPath, len, inKey, path, status);
 2243|   299k|                } else {
 2244|   299k|                    const char* separator = nullptr;
 2245|   299k|                    if (fillIn->fResPath != nullptr) {
  ------------------
  |  Branch (2245:25): [True: 299k, False: 0]
  ------------------
 2246|   299k|                        separator = uprv_strchr(fillIn->fResPath, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|   299k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|   299k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2247|   299k|                    }
 2248|   299k|                    if (separator != nullptr && separator[1] != '\0') {
  ------------------
  |  Branch (2248:25): [True: 299k, False: 0]
  |  Branch (2248:49): [True: 6.52k, False: 292k]
  ------------------
 2249|  6.52k|                        createPath(origResPath, origResPathLen, fillIn->fResPath,
 2250|  6.52k|                                   static_cast<int32_t>(uprv_strlen(fillIn->fResPath)), inKey, path, status);
  ------------------
  |  |   37|  6.52k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  6.52k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2251|   292k|                    } else {
 2252|   292k|                        createPath(origResPath, origResPathLen, "", 0, inKey, path, status);
 2253|   292k|                    }
 2254|   299k|                }
 2255|   399k|                ures_freeResPath(fillIn);
 2256|   399k|                ures_appendResPath(fillIn, path.data(), path.length(), status);
 2257|   399k|                if(fillIn->fResPath[fillIn->fResPathLen-1] != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|   399k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2257:20): [True: 340k, False: 59.1k]
  ------------------
 2258|   340k|                    ures_appendResPath(fillIn, RES_PATH_SEPARATOR_S, 1, status);
  ------------------
  |  |   61|   340k|#define RES_PATH_SEPARATOR_S   "/"
  ------------------
 2259|   340k|                }
 2260|   399k|            } else {
 2261|  11.5k|                *status = U_MISSING_RESOURCE_ERROR;
 2262|  11.5k|            }
 2263|   560k|        } else {
 2264|   560k|            fillIn = init_resb_result(resB->fData, res, key, -1, resB, fillIn, status);
 2265|   560k|        }
 2266|   971k|    } 
 2267|      0|    else {
 2268|      0|        *status = U_RESOURCE_TYPE_MISMATCH;
 2269|      0|    }
 2270|   971k|    ures_close(helper);
  ------------------
  |  | 1652|   971k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|   971k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   971k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   971k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2271|   971k|    return fillIn;
 2272|   971k|}
ures_getAllChildrenWithFallback_78:
 2429|  40.3k|                                icu::ResourceSink &sink, UErrorCode &errorCode) {
 2430|  40.3k|    GetAllChildrenSink allChildrenSink(sink);
 2431|  40.3k|    ures_getAllItemsWithFallback(bundle, path, allChildrenSink, errorCode);
  ------------------
  |  | 1658|  40.3k|#define ures_getAllItemsWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getAllItemsWithFallback)
  |  |  ------------------
  |  |  |  |  123|  40.3k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  40.3k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  40.3k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2432|  40.3k|}
ures_getValueWithFallback_78:
 2448|      2|                          ResourceDataValue &value, UErrorCode &errorCode) {
 2449|      2|    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (2449:9): [True: 0, False: 2]
  ------------------
 2450|      2|    if (path == nullptr) {
  ------------------
  |  Branch (2450:9): [True: 0, False: 2]
  ------------------
 2451|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
 2452|      0|        return;
 2453|      0|    }
 2454|      2|    const UResourceBundle *rb;
 2455|      2|    if (*path == 0) {
  ------------------
  |  Branch (2455:9): [True: 0, False: 2]
  ------------------
 2456|       |        // empty path
 2457|      0|        rb = bundle;
 2458|      2|    } else {
 2459|      2|        rb = ures_getByKeyWithFallback(bundle, path, tempFillIn, &errorCode);
  ------------------
  |  | 1662|      2|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2460|      2|        if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (2460:13): [True: 0, False: 2]
  ------------------
 2461|      0|            return;
 2462|      0|        }
 2463|      2|    }
 2464|      2|    value.setData(rb->getResData());
 2465|      2|    value.setValidLocaleDataEntry(rb->fValidLocaleDataEntry);
 2466|      2|    value.setResource(rb->fRes, ResourceTracer(rb));
 2467|      2|}
ures_getAllItemsWithFallback_78:
 2471|   188k|                             icu::ResourceSink &sink, UErrorCode &errorCode) {
 2472|   188k|    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (2472:9): [True: 37, False: 188k]
  ------------------
 2473|   188k|    if (path == nullptr) {
  ------------------
  |  Branch (2473:9): [True: 0, False: 188k]
  ------------------
 2474|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
 2475|      0|        return;
 2476|      0|    }
 2477|   188k|    StackUResourceBundle stackBundle;
 2478|   188k|    const UResourceBundle *rb;
 2479|   188k|    if (*path == 0) {
  ------------------
  |  Branch (2479:9): [True: 10.1k, False: 177k]
  ------------------
 2480|       |        // empty path
 2481|  10.1k|        rb = bundle;
 2482|   177k|    } else {
 2483|   177k|        rb = ures_getByKeyWithFallback(bundle, path, stackBundle.getAlias(), &errorCode);
  ------------------
  |  | 1662|   177k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|   177k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   177k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   177k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2484|   177k|        if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (2484:13): [True: 10, False: 177k]
  ------------------
 2485|     10|            return;
 2486|     10|        }
 2487|   177k|    }
 2488|       |    // Get all table items with fallback.
 2489|   188k|    ResourceDataValue value;
 2490|   188k|    getAllItemsWithFallback(rb, value, sink, errorCode);
 2491|   188k|}
ures_getByKey_78:
 2493|   980k|U_CAPI UResourceBundle* U_EXPORT2 ures_getByKey(const UResourceBundle *resB, const char* inKey, UResourceBundle *fillIn, UErrorCode *status) {
 2494|   980k|    Resource res = RES_BOGUS;
  ------------------
  |  |   65|   980k|#define RES_BOGUS 0xffffffff
  ------------------
 2495|   980k|    UResourceDataEntry *dataEntry = nullptr;
 2496|   980k|    const char *key = inKey;
 2497|       |
 2498|   980k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (2498:9): [True: 0, False: 980k]
  |  Branch (2498:28): [True: 3.44k, False: 976k]
  ------------------
 2499|  3.44k|        return fillIn;
 2500|  3.44k|    }
 2501|   976k|    if(resB == nullptr) {
  ------------------
  |  Branch (2501:8): [True: 0, False: 976k]
  ------------------
 2502|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 2503|      0|        return fillIn;
 2504|      0|    }
 2505|       |
 2506|   976k|    int32_t type = RES_GET_TYPE(resB->fRes);
  ------------------
  |  |   68|   976k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2507|   976k|    if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|   976k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 971k, False: 5.18k]
  |  |  |  Branch (84:61): [True: 5.18k, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2508|   976k|        int32_t t;
 2509|   976k|        res = res_getTableItemByKey(&resB->getResData(), resB->fRes, &t, &key);
  ------------------
  |  |  207|   976k|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|   976k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   976k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   976k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2510|   976k|        if(res == RES_BOGUS) {
  ------------------
  |  |   65|   976k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2510:12): [True: 234k, False: 742k]
  ------------------
 2511|   234k|            key = inKey;
 2512|   234k|            if(resB->fHasFallback) {
  ------------------
  |  Branch (2512:16): [True: 216k, False: 18.3k]
  ------------------
 2513|   216k|                dataEntry = getFallbackData(resB, &key, &res, status);
 2514|   216k|                if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (2514:20): [True: 87.9k, False: 128k]
  ------------------
 2515|       |                    /* check if resB->fResPath gives the right name here */
 2516|  87.9k|                    return init_resb_result(dataEntry, res, key, -1, resB, fillIn, status);
 2517|   128k|                } else {
 2518|   128k|                    *status = U_MISSING_RESOURCE_ERROR;
 2519|   128k|                }
 2520|   216k|            } else {
 2521|  18.3k|                *status = U_MISSING_RESOURCE_ERROR;
 2522|  18.3k|            }
 2523|   742k|        } else {
 2524|   742k|            return init_resb_result(resB->fData, res, key, -1, resB, fillIn, status);
 2525|   742k|        }
 2526|   976k|    } 
 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|      0|    else {
 2541|      0|        *status = U_RESOURCE_TYPE_MISMATCH;
 2542|      0|    }
 2543|   146k|    return fillIn;
 2544|   976k|}
ures_getStringByKey_78:
 2546|   258k|U_CAPI const char16_t* U_EXPORT2 ures_getStringByKey(const UResourceBundle *resB, const char* inKey, int32_t* len, UErrorCode *status) {
 2547|   258k|    Resource res = RES_BOGUS;
  ------------------
  |  |   65|   258k|#define RES_BOGUS 0xffffffff
  ------------------
 2548|   258k|    UResourceDataEntry *dataEntry = nullptr;
 2549|   258k|    const char* key = inKey;
 2550|       |
 2551|   258k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (2551:9): [True: 0, False: 258k]
  |  Branch (2551:28): [True: 516, False: 257k]
  ------------------
 2552|    516|        return nullptr;
 2553|    516|    }
 2554|   257k|    if(resB == nullptr) {
  ------------------
  |  Branch (2554:8): [True: 0, False: 257k]
  ------------------
 2555|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 2556|      0|        return nullptr;
 2557|      0|    }
 2558|       |
 2559|   257k|    int32_t type = RES_GET_TYPE(resB->fRes);
  ------------------
  |  |   68|   257k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2560|   257k|    if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|   257k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 244k, False: 12.7k]
  |  |  |  Branch (84:61): [True: 12.7k, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2561|   257k|        int32_t t=0;
 2562|       |
 2563|   257k|        res = res_getTableItemByKey(&resB->getResData(), resB->fRes, &t, &key);
  ------------------
  |  |  207|   257k|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|   257k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   257k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   257k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2564|       |
 2565|   257k|        if(res == RES_BOGUS) {
  ------------------
  |  |   65|   257k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2565:12): [True: 86.9k, False: 170k]
  ------------------
 2566|  86.9k|            key = inKey;
 2567|  86.9k|            if(resB->fHasFallback) {
  ------------------
  |  Branch (2567:16): [True: 0, False: 86.9k]
  ------------------
 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|  86.9k|            } else {
 2589|  86.9k|                *status = U_MISSING_RESOURCE_ERROR;
 2590|  86.9k|            }
 2591|   170k|        } else {
 2592|   170k|            switch (RES_GET_TYPE(res)) {
  ------------------
  |  |   68|   170k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2593|      0|            case URES_STRING:
  ------------------
  |  Branch (2593:13): [True: 0, False: 170k]
  ------------------
 2594|   170k|            case URES_STRING_V2:
  ------------------
  |  Branch (2594:13): [True: 170k, False: 0]
  ------------------
 2595|   170k|                return res_getString({resB, key}, &resB->getResData(), res, len);
 2596|      0|            case URES_ALIAS:
  ------------------
  |  Branch (2596:13): [True: 0, False: 170k]
  ------------------
 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|      0|              }
 2604|      0|            default:
  ------------------
  |  Branch (2604:13): [True: 0, False: 170k]
  ------------------
 2605|      0|                *status = U_RESOURCE_TYPE_MISMATCH;
 2606|   170k|            }
 2607|   170k|        }
 2608|   257k|    } 
 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|  86.9k|    return nullptr;
 2627|   257k|}
ures_getLocaleByType_78:
 2671|   339k|                     UErrorCode* status) {
 2672|   339k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (2672:9): [True: 0, False: 339k]
  |  Branch (2672:28): [True: 0, False: 339k]
  ------------------
 2673|      0|        return nullptr;
 2674|      0|    }
 2675|   339k|    if (!resourceBundle) {
  ------------------
  |  Branch (2675:9): [True: 0, False: 339k]
  ------------------
 2676|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 2677|      0|        return nullptr;
 2678|   339k|    } else {
 2679|   339k|        switch(type) {
 2680|   129k|        case ULOC_ACTUAL_LOCALE:
  ------------------
  |  Branch (2680:9): [True: 129k, False: 210k]
  ------------------
 2681|   129k|            return resourceBundle->fData->fName;
 2682|   210k|        case ULOC_VALID_LOCALE:
  ------------------
  |  Branch (2682:9): [True: 210k, False: 129k]
  ------------------
 2683|   210k|            return resourceBundle->fValidLocaleDataEntry->fName;
 2684|      0|        case ULOC_REQUESTED_LOCALE:
  ------------------
  |  Branch (2684:9): [True: 0, False: 339k]
  ------------------
 2685|      0|        default:
  ------------------
  |  Branch (2685:9): [True: 0, False: 339k]
  ------------------
 2686|      0|            *status = U_ILLEGAL_ARGUMENT_ERROR;
 2687|      0|            return nullptr;
 2688|   339k|        }
 2689|   339k|    }
 2690|   339k|}
ures_open_78:
 2769|   733k|ures_open(const char* path, const char* localeID, UErrorCode* status) {
 2770|   733k|    return ures_openWithType(nullptr, path, localeID, URES_OPEN_LOCALE_DEFAULT_ROOT, status);
 2771|   733k|}
ures_openDirect_78:
 2783|   167k|ures_openDirect(const char* path, const char* localeID, UErrorCode* status) {
 2784|   167k|    return ures_openWithType(nullptr, path, localeID, URES_OPEN_DIRECT, status);
 2785|   167k|}
ures_getFunctionalEquivalent_78:
 3068|  23.6k|{
 3069|  23.6k|    CharString defVal; /* default value for given locale */
 3070|  23.6k|    CharString defLoc; /* default value for given locale */
 3071|  23.6k|    CharString found;
 3072|  23.6k|    CharString parent;
 3073|  23.6k|    CharString full;
 3074|  23.6k|    UResourceBundle bund1, bund2;
 3075|  23.6k|    UResourceBundle *res = nullptr;
 3076|  23.6k|    UErrorCode subStatus = U_ZERO_ERROR;
 3077|  23.6k|    int32_t length = 0;
 3078|  23.6k|    if(U_FAILURE(*status)) return 0;
  ------------------
  |  Branch (3078:8): [True: 0, False: 23.6k]
  ------------------
 3079|  23.6k|    CharString kwVal;
 3080|  23.6k|    if (keyword != nullptr && *keyword != '\0') {
  ------------------
  |  Branch (3080:9): [True: 23.6k, False: 0]
  |  Branch (3080:31): [True: 23.6k, False: 0]
  ------------------
 3081|  23.6k|        kwVal = ulocimp_getKeywordValue(locid, keyword, subStatus);
  ------------------
  |  | 1200|  23.6k|#define ulocimp_getKeywordValue U_ICU_ENTRY_POINT_RENAME(ulocimp_getKeywordValue)
  |  |  ------------------
  |  |  |  |  123|  23.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  23.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  23.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3082|  23.6k|        if (kwVal == DEFAULT_TAG) {
  ------------------
  |  | 2916|  23.6k|#define DEFAULT_TAG       "default"
  ------------------
  |  Branch (3082:13): [True: 3, False: 23.6k]
  ------------------
 3083|      3|            kwVal.clear();
 3084|      3|        }
 3085|  23.6k|    }
 3086|  23.6k|    if (locid == nullptr) {
  ------------------
  |  Branch (3086:9): [True: 0, False: 23.6k]
  ------------------
 3087|      0|        locid = 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3088|      0|    }
 3089|  23.6k|    CharString base = ulocimp_getBaseName(locid, subStatus);
  ------------------
  |  | 1199|  23.6k|#define ulocimp_getBaseName U_ICU_ENTRY_POINT_RENAME(ulocimp_getBaseName)
  |  |  ------------------
  |  |  |  |  123|  23.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  23.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  23.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3090|       |#if defined(URES_TREE_DEBUG)
 3091|       |    fprintf(stderr, "getFunctionalEquivalent: \"%s\" [%s=%s] in %s - %s\n", 
 3092|       |            locid, keyword, kwVal.data(), base.data(), u_errorName(subStatus));
 3093|       |#endif
 3094|  23.6k|    ures_initStackObject(&bund1);
  ------------------
  |  | 1690|  23.6k|#define ures_initStackObject U_ICU_ENTRY_POINT_RENAME(ures_initStackObject)
  |  |  ------------------
  |  |  |  |  123|  23.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  23.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  23.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3095|  23.6k|    ures_initStackObject(&bund2);
  ------------------
  |  | 1690|  23.6k|#define ures_initStackObject U_ICU_ENTRY_POINT_RENAME(ures_initStackObject)
  |  |  ------------------
  |  |  |  |  123|  23.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  23.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  23.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3096|       |
 3097|  23.6k|    parent.copyFrom(base, subStatus);
 3098|  23.6k|    found.copyFrom(base, subStatus);
 3099|       |
 3100|  23.6k|    if(isAvailable) {
  ------------------
  |  Branch (3100:8): [True: 0, False: 23.6k]
  ------------------
 3101|      0|        UEnumeration *locEnum = ures_openAvailableLocales(path, &subStatus);
  ------------------
  |  | 1692|      0|#define ures_openAvailableLocales U_ICU_ENTRY_POINT_RENAME(ures_openAvailableLocales)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3102|      0|        *isAvailable = true;
 3103|      0|        if (U_SUCCESS(subStatus)) {
  ------------------
  |  Branch (3103:13): [True: 0, False: 0]
  ------------------
 3104|      0|            *isAvailable = isLocaleInList(locEnum, parent.data(), &subStatus);
 3105|      0|        }
 3106|      0|        uenum_close(locEnum);
  ------------------
  |  |  948|      0|#define uenum_close U_ICU_ENTRY_POINT_RENAME(uenum_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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3107|      0|    }
 3108|       |
 3109|  23.6k|    if(U_FAILURE(subStatus)) {
  ------------------
  |  Branch (3109:8): [True: 324, False: 23.3k]
  ------------------
 3110|    324|        *status = subStatus;
 3111|    324|        return 0;
 3112|    324|    }
 3113|       |    
 3114|  81.1k|    do {
 3115|  81.1k|        subStatus = U_ZERO_ERROR;
 3116|  81.1k|        res = ures_open(path, parent.data(), &subStatus);
  ------------------
  |  | 1691|  81.1k|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|  81.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  81.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  81.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3117|  81.1k|        if(((subStatus == U_USING_FALLBACK_WARNING) ||
  ------------------
  |  Branch (3117:13): [True: 519, False: 80.5k]
  ------------------
 3118|  81.1k|            (subStatus == U_USING_DEFAULT_WARNING)) && isAvailable)
  ------------------
  |  Branch (3118:13): [True: 2.92k, False: 77.6k]
  |  Branch (3118:56): [True: 0, False: 3.44k]
  ------------------
 3119|      0|        {
 3120|      0|            *isAvailable = false;
 3121|      0|        }
 3122|  81.1k|        isAvailable = nullptr; /* only want to set this the first time around */
 3123|       |        
 3124|       |#if defined(URES_TREE_DEBUG)
 3125|       |        fprintf(stderr, "%s;%s -> %s [%s]\n", path?path:"ICUDATA", parent.data(), u_errorName(subStatus), ures_getLocale(res, &subStatus));
 3126|       |#endif
 3127|  81.1k|        if(U_FAILURE(subStatus)) {
  ------------------
  |  Branch (3127:12): [True: 3, False: 81.1k]
  ------------------
 3128|      3|            *status = subStatus;
 3129|  81.1k|        } else if(subStatus == U_ZERO_ERROR) {
  ------------------
  |  Branch (3129:19): [True: 77.6k, False: 3.44k]
  ------------------
 3130|  77.6k|            ures_getByKey(res,resName,&bund1, &subStatus);
  ------------------
  |  | 1661|  77.6k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  77.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  77.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  77.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3131|  77.6k|            if(subStatus == U_ZERO_ERROR) {
  ------------------
  |  Branch (3131:16): [True: 49.7k, False: 27.8k]
  ------------------
 3132|  49.7k|                const char16_t *defUstr;
 3133|  49.7k|                int32_t defLen;
 3134|       |                /* look for default item */
 3135|       |#if defined(URES_TREE_DEBUG)
 3136|       |                fprintf(stderr, "%s;%s : loaded default -> %s\n",
 3137|       |                    path?path:"ICUDATA", parent.data(), u_errorName(subStatus));
 3138|       |#endif
 3139|  49.7k|                defUstr = ures_getStringByKey(&bund1, DEFAULT_TAG, &defLen, &subStatus);
  ------------------
  |  | 1677|  49.7k|#define ures_getStringByKey U_ICU_ENTRY_POINT_RENAME(ures_getStringByKey)
  |  |  ------------------
  |  |  |  |  123|  49.7k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  49.7k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  49.7k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                              defUstr = ures_getStringByKey(&bund1, DEFAULT_TAG, &defLen, &subStatus);
  ------------------
  |  | 2916|  49.7k|#define DEFAULT_TAG       "default"
  ------------------
 3140|  49.7k|                if(U_SUCCESS(subStatus) && defLen) {
  ------------------
  |  Branch (3140:20): [True: 23.2k, False: 26.5k]
  |  Branch (3140:44): [True: 23.2k, False: 0]
  ------------------
 3141|  23.2k|                    defVal.clear().appendInvariantChars(defUstr, defLen, subStatus);
 3142|       |#if defined(URES_TREE_DEBUG)
 3143|       |                    fprintf(stderr, "%s;%s -> default %s=%s,  %s\n", 
 3144|       |                        path?path:"ICUDATA", parent.data(), keyword, defVal.data(), u_errorName(subStatus));
 3145|       |#endif
 3146|  23.2k|                    defLoc.copyFrom(parent, subStatus);
 3147|  23.2k|                    if(kwVal.isEmpty()) {
  ------------------
  |  Branch (3147:24): [True: 22.8k, False: 400]
  ------------------
 3148|  22.8k|                        kwVal.append(defVal, subStatus);
 3149|       |#if defined(URES_TREE_DEBUG)
 3150|       |                        fprintf(stderr, "%s;%s -> kwVal =  %s\n", 
 3151|       |                            path?path:"ICUDATA", parent.data(), keyword, kwVal.data());
 3152|       |#endif
 3153|  22.8k|                    }
 3154|  23.2k|                }
 3155|  49.7k|            }
 3156|  77.6k|        }
 3157|       |        
 3158|  81.1k|        subStatus = U_ZERO_ERROR;
 3159|       |
 3160|  81.1k|        if (res != nullptr) {
  ------------------
  |  Branch (3160:13): [True: 81.1k, False: 3]
  ------------------
 3161|  81.1k|            found.clear().append(ures_getLocaleByType(res, ULOC_VALID_LOCALE, &subStatus), subStatus);
  ------------------
  |  | 1669|  81.1k|#define ures_getLocaleByType U_ICU_ENTRY_POINT_RENAME(ures_getLocaleByType)
  |  |  ------------------
  |  |  |  |  123|  81.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  81.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  81.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3162|  81.1k|        }
 3163|       |
 3164|  81.1k|        if (found != parent) {
  ------------------
  |  Branch (3164:13): [True: 25.2k, False: 55.8k]
  ------------------
 3165|  25.2k|            parent.copyFrom(found, subStatus);
 3166|  55.8k|        } else {
 3167|  55.8k|            getParentForFunctionalEquivalent(found.data(),res,&bund1,parent);
 3168|  55.8k|        }
 3169|  81.1k|        ures_close(res);
  ------------------
  |  | 1652|  81.1k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  81.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  81.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  81.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3170|  81.1k|    } while(defVal.isEmpty() && !found.isEmpty() && found != "root" && U_SUCCESS(*status));
  ------------------
  |  Branch (3170:13): [True: 57.8k, False: 23.2k]
  |  Branch (3170:33): [True: 57.8k, False: 0]
  |  Branch (3170:53): [True: 57.8k, False: 72]
  |  Branch (3170:72): [True: 57.8k, False: 3]
  ------------------
 3171|       |    
 3172|       |    /* Now, see if we can find the kwVal collator.. start the search over.. */
 3173|  23.3k|    parent.copyFrom(base, subStatus);
 3174|  23.3k|    found.copyFrom(base, subStatus);
 3175|       |
 3176|  68.7k|    do {
 3177|  68.7k|        res = ures_open(path, parent.data(), &subStatus);
  ------------------
  |  | 1691|  68.7k|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|  68.7k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  68.7k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  68.7k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3178|  68.7k|        if((subStatus == U_USING_FALLBACK_WARNING) && isAvailable) {
  ------------------
  |  Branch (3178:12): [True: 4.09k, False: 64.6k]
  |  Branch (3178:55): [True: 0, False: 4.09k]
  ------------------
 3179|      0|            *isAvailable = false;
 3180|      0|        }
 3181|  68.7k|        isAvailable = nullptr; /* only want to set this the first time around */
 3182|       |        
 3183|       |#if defined(URES_TREE_DEBUG)
 3184|       |        fprintf(stderr, "%s;%s -> %s (looking for %s)\n", 
 3185|       |            path?path:"ICUDATA", parent.data(), u_errorName(subStatus), kwVal.data());
 3186|       |#endif
 3187|  68.7k|        if(U_FAILURE(subStatus)) {
  ------------------
  |  Branch (3187:12): [True: 6, False: 68.7k]
  ------------------
 3188|      6|            *status = subStatus;
 3189|  68.7k|        } else if(subStatus == U_ZERO_ERROR) {
  ------------------
  |  Branch (3189:19): [True: 47.0k, False: 21.7k]
  ------------------
 3190|  47.0k|            ures_getByKey(res,resName,&bund1, &subStatus);
  ------------------
  |  | 1661|  47.0k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  47.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  47.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  47.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3191|       |#if defined(URES_TREE_DEBUG)
 3192|       |/**/ fprintf(stderr,"@%d [%s] %s\n", __LINE__, resName, u_errorName(subStatus));
 3193|       |#endif
 3194|  47.0k|            if(subStatus == U_ZERO_ERROR) {
  ------------------
  |  Branch (3194:16): [True: 24.8k, False: 22.2k]
  ------------------
 3195|  24.8k|                ures_getByKey(&bund1, kwVal.data(), &bund2, &subStatus);
  ------------------
  |  | 1661|  24.8k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3196|       |#if defined(URES_TREE_DEBUG)
 3197|       |/**/ fprintf(stderr,"@%d [%s] %s\n", __LINE__, kwVal.data(), u_errorName(subStatus));
 3198|       |#endif
 3199|  24.8k|                if(subStatus == U_ZERO_ERROR) {
  ------------------
  |  Branch (3199:20): [True: 22.8k, False: 1.97k]
  ------------------
 3200|       |#if defined(URES_TREE_DEBUG)
 3201|       |                    fprintf(stderr, "%s;%s -> full0 %s=%s,  %s\n", 
 3202|       |                        path?path:"ICUDATA", parent.data(), keyword, kwVal.data(), u_errorName(subStatus));
 3203|       |#endif
 3204|  22.8k|                    if (parent.isEmpty()) {
  ------------------
  |  Branch (3204:25): [True: 2.18k, False: 20.6k]
  ------------------
 3205|  2.18k|                        full.clear().append("root", subStatus);
 3206|  20.6k|                    } else {
 3207|  20.6k|                        full.copyFrom(parent, subStatus);
 3208|  20.6k|                    }
 3209|       |                        /* now, recalculate default kw if need be */
 3210|  22.8k|                        if(defLoc.length() > full.length()) {
  ------------------
  |  Branch (3210:28): [True: 62, False: 22.7k]
  ------------------
 3211|     62|                          const char16_t *defUstr;
 3212|     62|                          int32_t defLen;
 3213|       |                          /* look for default item */
 3214|       |#if defined(URES_TREE_DEBUG)
 3215|       |                            fprintf(stderr, "%s;%s -> recalculating Default0\n", 
 3216|       |                                    path?path:"ICUDATA", full.data());
 3217|       |#endif
 3218|     62|                          defUstr = ures_getStringByKey(&bund1, DEFAULT_TAG, &defLen, &subStatus);
  ------------------
  |  | 1677|     62|#define ures_getStringByKey U_ICU_ENTRY_POINT_RENAME(ures_getStringByKey)
  |  |  ------------------
  |  |  |  |  123|     62|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     62|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     62|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                                        defUstr = ures_getStringByKey(&bund1, DEFAULT_TAG, &defLen, &subStatus);
  ------------------
  |  | 2916|     62|#define DEFAULT_TAG       "default"
  ------------------
 3219|     62|                          if(U_SUCCESS(subStatus) && defLen) {
  ------------------
  |  Branch (3219:30): [True: 51, False: 11]
  |  Branch (3219:54): [True: 51, False: 0]
  ------------------
 3220|     51|                            defVal.clear().appendInvariantChars(defUstr, defLen, subStatus);
 3221|       |#if defined(URES_TREE_DEBUG)
 3222|       |                            fprintf(stderr, "%s;%s -> default0 %s=%s,  %s\n", 
 3223|       |                                    path?path:"ICUDATA", full.data(), keyword, defVal.data(), u_errorName(subStatus));
 3224|       |#endif
 3225|     51|                            defLoc.copyFrom(full, subStatus);
 3226|     51|                          }
 3227|     62|                        } /* end of recalculate default KW */
 3228|       |#if defined(URES_TREE_DEBUG)
 3229|       |                        else {
 3230|       |                          fprintf(stderr, "No trim0,  %s <= %s\n", defLoc.data(), full.data());
 3231|       |                        }
 3232|       |#endif
 3233|  22.8k|                } else {
 3234|       |#if defined(URES_TREE_DEBUG)
 3235|       |                    fprintf(stderr, "err=%s in %s looking for %s\n", 
 3236|       |                        u_errorName(subStatus), parent.data(), kwVal.data());
 3237|       |#endif
 3238|  1.97k|                }
 3239|  24.8k|            }
 3240|  47.0k|        }
 3241|       |        
 3242|  68.7k|        subStatus = U_ZERO_ERROR;
 3243|  68.7k|        UBool haveFound = false;
 3244|       |        // At least for collations which may be aliased, we need to use the VALID locale
 3245|       |        // as the parent instead of just truncating, as long as the VALID locale is not
 3246|       |        // root and has a different language than the parent. Use of the VALID locale
 3247|       |        // here is similar to the procedure used at the end of the previous do-while loop
 3248|       |        // for all resource types.
 3249|  68.7k|        if (res != nullptr && uprv_strcmp(resName, "collations") == 0) {
  ------------------
  |  |   38|  68.7k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  68.7k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (3249:13): [True: 68.7k, False: 6]
  |  Branch (3249:31): [True: 0, False: 68.7k]
  ------------------
 3250|      0|            const char *validLoc = ures_getLocaleByType(res, ULOC_VALID_LOCALE, &subStatus);
  ------------------
  |  | 1669|      0|#define ures_getLocaleByType U_ICU_ENTRY_POINT_RENAME(ures_getLocaleByType)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3251|      0|            if (U_SUCCESS(subStatus) && validLoc != nullptr && validLoc[0] != 0 && uprv_strcmp(validLoc, "root") != 0) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (3251:17): [True: 0, False: 0]
  |  Branch (3251:41): [True: 0, False: 0]
  |  Branch (3251:64): [True: 0, False: 0]
  |  Branch (3251:84): [True: 0, False: 0]
  ------------------
 3252|      0|                CharString validLang = ulocimp_getLanguage(validLoc, subStatus);
  ------------------
  |  | 1203|      0|#define ulocimp_getLanguage U_ICU_ENTRY_POINT_RENAME(ulocimp_getLanguage)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3253|      0|                CharString parentLang = ulocimp_getLanguage(parent.toStringPiece(), subStatus);
  ------------------
  |  | 1203|      0|#define ulocimp_getLanguage U_ICU_ENTRY_POINT_RENAME(ulocimp_getLanguage)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3254|      0|                if (U_SUCCESS(subStatus) && validLang != parentLang) {
  ------------------
  |  Branch (3254:21): [True: 0, False: 0]
  |  Branch (3254:45): [True: 0, False: 0]
  ------------------
 3255|       |                    // validLoc is not root and has a different language than parent, use it instead
 3256|      0|                    found.clear().append(validLoc, subStatus);
 3257|      0|                    haveFound = true;
 3258|      0|                }
 3259|      0|            }
 3260|      0|            subStatus = U_ZERO_ERROR;
 3261|      0|        }
 3262|  68.7k|        if (!haveFound) {
  ------------------
  |  Branch (3262:13): [True: 68.7k, False: 0]
  ------------------
 3263|  68.7k|            found.copyFrom(parent, subStatus);
 3264|  68.7k|        }
 3265|       |
 3266|  68.7k|        getParentForFunctionalEquivalent(found.data(),res,&bund1,parent);
 3267|  68.7k|        ures_close(res);
  ------------------
  |  | 1652|  68.7k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  68.7k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  68.7k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  68.7k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3268|  68.7k|        subStatus = U_ZERO_ERROR;
 3269|  68.7k|    } while(full.isEmpty() && !found.isEmpty() && U_SUCCESS(*status));
  ------------------
  |  Branch (3269:13): [True: 45.9k, False: 22.8k]
  |  Branch (3269:31): [True: 45.4k, False: 464]
  |  Branch (3269:51): [True: 45.4k, False: 6]
  ------------------
 3270|       |
 3271|  23.3k|    if(full.isEmpty() && kwVal != defVal) {
  ------------------
  |  Branch (3271:8): [True: 470, False: 22.8k]
  |  Branch (3271:26): [True: 418, False: 52]
  ------------------
 3272|       |#if defined(URES_TREE_DEBUG)
 3273|       |        fprintf(stderr, "Failed to locate kw %s - try default %s\n", kwVal.data(), defVal.data());
 3274|       |#endif
 3275|    418|        kwVal.clear().append(defVal, subStatus);
 3276|    418|        parent.copyFrom(base, subStatus);
 3277|    418|        found.copyFrom(base, subStatus);
 3278|       |
 3279|  9.47k|        do { /* search for 'default' named item */
 3280|  9.47k|            res = ures_open(path, parent.data(), &subStatus);
  ------------------
  |  | 1691|  9.47k|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|  9.47k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.47k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.47k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3281|  9.47k|            if((subStatus == U_USING_FALLBACK_WARNING) && isAvailable) {
  ------------------
  |  Branch (3281:16): [True: 2.35k, False: 7.11k]
  |  Branch (3281:59): [True: 0, False: 2.35k]
  ------------------
 3282|      0|                *isAvailable = false;
 3283|      0|            }
 3284|  9.47k|            isAvailable = nullptr; /* only want to set this the first time around */
 3285|       |            
 3286|       |#if defined(URES_TREE_DEBUG)
 3287|       |            fprintf(stderr, "%s;%s -> %s (looking for default %s)\n",
 3288|       |                path?path:"ICUDATA", parent.data(), u_errorName(subStatus), kwVal.data());
 3289|       |#endif
 3290|  9.47k|            if(U_FAILURE(subStatus)) {
  ------------------
  |  Branch (3290:16): [True: 0, False: 9.47k]
  ------------------
 3291|      0|                *status = subStatus;
 3292|  9.47k|            } else if(subStatus == U_ZERO_ERROR) {
  ------------------
  |  Branch (3292:23): [True: 1.31k, False: 8.16k]
  ------------------
 3293|  1.31k|                ures_getByKey(res,resName,&bund1, &subStatus);
  ------------------
  |  | 1661|  1.31k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3294|  1.31k|                if(subStatus == U_ZERO_ERROR) {
  ------------------
  |  Branch (3294:20): [True: 979, False: 334]
  ------------------
 3295|    979|                    ures_getByKey(&bund1, kwVal.data(), &bund2, &subStatus);
  ------------------
  |  | 1661|    979|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|    979|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    979|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    979|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3296|    979|                    if(subStatus == U_ZERO_ERROR) {
  ------------------
  |  Branch (3296:24): [True: 392, False: 587]
  ------------------
 3297|       |#if defined(URES_TREE_DEBUG)
 3298|       |                        fprintf(stderr, "%s;%s -> full1 %s=%s,  %s\n", path?path:"ICUDATA",
 3299|       |                            parent.data(), keyword, kwVal.data(), u_errorName(subStatus));
 3300|       |#endif
 3301|    392|                        if (parent.isEmpty()) {
  ------------------
  |  Branch (3301:29): [True: 257, False: 135]
  ------------------
 3302|    257|                            full.clear().append("root", subStatus);
 3303|    257|                        } else {
 3304|    135|                            full.copyFrom(parent, subStatus);
 3305|    135|                        }
 3306|       |                        
 3307|       |                        /* now, recalculate default kw if need be */
 3308|    392|                        if(defLoc.length() > full.length()) {
  ------------------
  |  Branch (3308:28): [True: 24, False: 368]
  ------------------
 3309|     24|                          const char16_t *defUstr;
 3310|     24|                          int32_t defLen;
 3311|       |                          /* look for default item */
 3312|       |#if defined(URES_TREE_DEBUG)
 3313|       |                            fprintf(stderr, "%s;%s -> recalculating Default1\n", 
 3314|       |                                    path?path:"ICUDATA", full.data());
 3315|       |#endif
 3316|     24|                          defUstr = ures_getStringByKey(&bund1, DEFAULT_TAG, &defLen, &subStatus);
  ------------------
  |  | 1677|     24|#define ures_getStringByKey U_ICU_ENTRY_POINT_RENAME(ures_getStringByKey)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                                        defUstr = ures_getStringByKey(&bund1, DEFAULT_TAG, &defLen, &subStatus);
  ------------------
  |  | 2916|     24|#define DEFAULT_TAG       "default"
  ------------------
 3317|     24|                          if(U_SUCCESS(subStatus) && defLen) {
  ------------------
  |  Branch (3317:30): [True: 21, False: 3]
  |  Branch (3317:54): [True: 21, False: 0]
  ------------------
 3318|     21|                            defVal.clear().appendInvariantChars(defUstr, defLen, subStatus);
 3319|       |#if defined(URES_TREE_DEBUG)
 3320|       |                            fprintf(stderr, "%s;%s -> default %s=%s,  %s\n", 
 3321|       |                                    path?path:"ICUDATA", full.data(), keyword, defVal.data(), u_errorName(subStatus));
 3322|       |#endif
 3323|     21|                            defLoc.copyFrom(full, subStatus);
 3324|     21|                          }
 3325|     24|                        } /* end of recalculate default KW */
 3326|       |#if defined(URES_TREE_DEBUG)
 3327|       |                        else {
 3328|       |                          fprintf(stderr, "No trim1,  %s <= %s\n", defLoc.data(), full.data());
 3329|       |                        }
 3330|       |#endif
 3331|    392|                    }
 3332|    979|                }
 3333|  1.31k|            }
 3334|       |            
 3335|  9.47k|            subStatus = U_ZERO_ERROR;
 3336|  9.47k|            found.copyFrom(parent, subStatus);
 3337|  9.47k|            getParentForFunctionalEquivalent(found.data(),res,&bund1,parent);
 3338|  9.47k|            ures_close(res);
  ------------------
  |  | 1652|  9.47k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  9.47k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.47k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.47k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3339|  9.47k|            subStatus = U_ZERO_ERROR;
 3340|  9.47k|        } while(full.isEmpty() && !found.isEmpty() && U_SUCCESS(*status));
  ------------------
  |  Branch (3340:17): [True: 9.08k, False: 392]
  |  Branch (3340:35): [True: 9.05k, False: 26]
  |  Branch (3340:55): [True: 9.05k, False: 0]
  ------------------
 3341|    418|    }
 3342|       |    
 3343|  23.3k|    if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (3343:8): [True: 23.2k, False: 6]
  ------------------
 3344|  23.2k|        if(full.isEmpty()) {
  ------------------
  |  Branch (3344:12): [True: 72, False: 23.2k]
  ------------------
 3345|       |#if defined(URES_TREE_DEBUG)
 3346|       |          fprintf(stderr, "Still could not load keyword %s=%s\n", keyword, kwVal.data());
 3347|       |#endif
 3348|     72|          *status = U_MISSING_RESOURCE_ERROR;
 3349|  23.2k|        } else if(omitDefault) {
  ------------------
  |  Branch (3349:19): [True: 0, False: 23.2k]
  ------------------
 3350|       |#if defined(URES_TREE_DEBUG)
 3351|       |          fprintf(stderr,"Trim? full=%s, defLoc=%s, found=%s\n", full.data(), defLoc.data(), found.data());
 3352|       |#endif        
 3353|      0|          if(defLoc.length() <= full.length()) {
  ------------------
  |  Branch (3353:14): [True: 0, False: 0]
  ------------------
 3354|       |            /* found the keyword in a *child* of where the default tag was present. */
 3355|      0|            if(kwVal == defVal) { /* if the requested kw is default, */
  ------------------
  |  Branch (3355:16): [True: 0, False: 0]
  ------------------
 3356|       |              /* and the default is in or in an ancestor of the current locale */
 3357|       |#if defined(URES_TREE_DEBUG)
 3358|       |              fprintf(stderr, "Removing unneeded var %s=%s\n", keyword, kwVal.data());
 3359|       |#endif
 3360|      0|              kwVal.clear();
 3361|      0|            }
 3362|      0|          }
 3363|      0|        }
 3364|  23.2k|        found.copyFrom(full, subStatus);
 3365|  23.2k|        if(!kwVal.isEmpty()) {
  ------------------
  |  Branch (3365:12): [True: 23.2k, False: 72]
  ------------------
 3366|  23.2k|            found
 3367|  23.2k|                .append("@", subStatus)
 3368|  23.2k|                .append(keyword, subStatus)
 3369|  23.2k|                .append("=", subStatus)
 3370|  23.2k|                .append(kwVal, subStatus);
 3371|  23.2k|        } else if(!omitDefault) {
  ------------------
  |  Branch (3371:19): [True: 72, False: 0]
  ------------------
 3372|     72|            found
 3373|     72|                .append("@", subStatus)
 3374|     72|                .append(keyword, subStatus)
 3375|     72|                .append("=", subStatus)
 3376|     72|                .append(defVal, subStatus);
 3377|     72|        }
 3378|  23.2k|    }
 3379|       |    /* we found the default locale - no need to repeat it.*/
 3380|       |    
 3381|  23.3k|    ures_close(&bund1);
  ------------------
  |  | 1652|  23.3k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3382|  23.3k|    ures_close(&bund2);
  ------------------
  |  | 1652|  23.3k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3383|       |    
 3384|  23.3k|    length = found.length();
 3385|       |
 3386|  23.3k|    if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (3386:8): [True: 23.2k, False: 78]
  ------------------
 3387|  23.2k|        int32_t copyLength = uprv_min(length, resultCapacity);
  ------------------
  |  | 1529|  23.2k|#define uprv_min U_ICU_ENTRY_POINT_RENAME(uprv_min)
  |  |  ------------------
  |  |  |  |  123|  23.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  23.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  23.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3388|  23.2k|        if(copyLength>0) {
  ------------------
  |  Branch (3388:12): [True: 23.2k, False: 0]
  ------------------
 3389|  23.2k|            found.extract(result, copyLength, subStatus);
 3390|  23.2k|        }
 3391|  23.2k|        if(length == 0) {
  ------------------
  |  Branch (3391:12): [True: 0, False: 23.2k]
  ------------------
 3392|      0|          *status = U_MISSING_RESOURCE_ERROR; 
 3393|      0|        }
 3394|  23.2k|    } else {
 3395|     78|        length = 0;
 3396|     78|        result[0]=0;
 3397|     78|    }
 3398|  23.3k|    return u_terminateChars(result, resultCapacity, length, status);
  ------------------
  |  |  406|  23.3k|#define u_terminateChars U_ICU_ENTRY_POINT_RENAME(u_terminateChars)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3399|  23.6k|}
uresbund.cpp:_ZL21ures_setIsStackObjectP15UResourceBundlea:
  711|  3.03M|static void ures_setIsStackObject( UResourceBundle* resB, UBool state) {
  712|  3.03M|    if(state) {
  ------------------
  |  Branch (712:8): [True: 1.39M, False: 1.63M]
  ------------------
  713|  1.39M|        resB->fMagic1 = 0;
  714|  1.39M|        resB->fMagic2 = 0;
  715|  1.63M|    } else {
  716|  1.63M|        resB->fMagic1 = MAGIC1;
  ------------------
  |  |   30|  1.63M|#define MAGIC1 19700503
  ------------------
  717|  1.63M|        resB->fMagic2 = MAGIC2;
  ------------------
  |  |   31|  1.63M|#define MAGIC2 19641227
  ------------------
  718|  1.63M|    }
  719|  3.03M|}
uresbund.cpp:_ZL16ures_closeBundleP15UResourceBundlea:
 1123|  4.01M|{
 1124|  4.01M|    if(resB != nullptr) {
  ------------------
  |  Branch (1124:8): [True: 3.03M, False: 974k]
  ------------------
 1125|  3.03M|        if(resB->fData != nullptr) {
  ------------------
  |  Branch (1125:12): [True: 3.02M, False: 12.3k]
  ------------------
 1126|  3.02M|            entryClose(resB->fData);
 1127|  3.02M|        }
 1128|  3.03M|        if(resB->fVersion != nullptr) {
  ------------------
  |  Branch (1128:12): [True: 0, False: 3.03M]
  ------------------
 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|  3.03M|        ures_freeResPath(resB);
 1132|       |
 1133|  3.03M|        if(ures_isStackObject(resB) == false && freeBundleObj) {
  ------------------
  |  Branch (1133:12): [True: 1.63M, False: 1.39M]
  |  Branch (1133:49): [True: 1.63M, False: 0]
  ------------------
 1134|  1.63M|            uprv_free(resB);
  ------------------
  |  | 1503|  1.63M|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  1.63M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.63M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.63M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1135|  1.63M|        }
 1136|       |#if 0 /*U_DEBUG*/
 1137|       |        else {
 1138|       |            /* poison the data */
 1139|       |            uprv_memset(resB, -1, sizeof(UResourceBundle));
 1140|       |        }
 1141|       |#endif
 1142|  3.03M|    }
 1143|  4.01M|}
uresbund.cpp:_ZL10entryCloseP18UResourceDataEntry:
 1061|  3.97M|static void entryClose(UResourceDataEntry *resB) {
 1062|  3.97M|  Mutex lock(&resbMutex);
 1063|  3.97M|  entryCloseInt(resB);
 1064|  3.97M|}
uresbund.cpp:_ZL13entryCloseIntP18UResourceDataEntry:
 1028|  3.97M|static void entryCloseInt(UResourceDataEntry *resB) {
 1029|  3.97M|    UResourceDataEntry *p = resB;
 1030|       |
 1031|  11.7M|    while(resB != nullptr) {
  ------------------
  |  Branch (1031:11): [True: 7.75M, False: 3.97M]
  ------------------
 1032|  7.75M|        p = resB->fParent;
 1033|  7.75M|        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|  7.75M|        resB = p;
 1054|  7.75M|    }
 1055|  3.97M|}
uresbund.cpp:_ZL18ures_isStackObjectPK15UResourceBundle:
  721|  3.03M|static UBool ures_isStackObject(const UResourceBundle* resB) {
  722|  3.03M|  return((resB->fMagic1 == MAGIC1 && resB->fMagic2 == MAGIC2)?false:true);
  ------------------
  |  |   30|  6.07M|#define MAGIC1 19700503
  ------------------
                return((resB->fMagic1 == MAGIC1 && resB->fMagic2 == MAGIC2)?false:true);
  ------------------
  |  |   31|  1.63M|#define MAGIC2 19641227
  ------------------
  |  Branch (722:11): [True: 1.63M, False: 1.39M]
  |  Branch (722:38): [True: 1.63M, False: 0]
  ------------------
  723|  3.03M|}
uresbund.cpp:_ZL18ures_appendResPathP15UResourceBundlePKciP10UErrorCode:
 1083|  9.06M|static void ures_appendResPath(UResourceBundle *resB, const char* toAdd, int32_t lenToAdd, UErrorCode *status) {
 1084|  9.06M|    int32_t resPathLenOrig = resB->fResPathLen;
 1085|  9.06M|    if(resB->fResPath == nullptr) {
  ------------------
  |  Branch (1085:8): [True: 4.07M, False: 4.99M]
  ------------------
 1086|  4.07M|        resB->fResPath = resB->fResBuf;
 1087|  4.07M|        *(resB->fResPath) = 0;
 1088|  4.07M|        resB->fResPathLen = 0;
 1089|  4.07M|    } 
 1090|  9.06M|    resB->fResPathLen += lenToAdd;
 1091|  9.06M|    if(RES_BUFSIZE <= resB->fResPathLen+1) {
  ------------------
  |  |   59|  9.06M|#define RES_BUFSIZE 64
  ------------------
  |  Branch (1091:8): [True: 0, False: 9.06M]
  ------------------
 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|  9.06M|    uprv_strcpy(resB->fResPath + resPathLenOrig, toAdd);
  ------------------
  |  |   36|  9.06M|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  9.06M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1111|  9.06M|}
uresbund.cpp:_ZL13entryIncreaseP18UResourceDataEntry:
  304|  3.07M|static void entryIncrease(UResourceDataEntry *entry) {
  305|  3.07M|    Mutex lock(&resbMutex);
  306|  3.07M|    entry->fCountExisting++;
  307|  5.48M|    while(entry->fParent != nullptr) {
  ------------------
  |  Branch (307:11): [True: 2.41M, False: 3.07M]
  ------------------
  308|  2.41M|      entry = entry->fParent;
  309|  2.41M|      entry->fCountExisting++;
  310|  2.41M|    }
  311|  3.07M|}
uresbund.cpp:_ZL23ures_getStringWithAliasPK15UResourceBundlejiPiP10UErrorCode:
 1709|   299k|static const char16_t* ures_getStringWithAlias(const UResourceBundle *resB, Resource r, int32_t sIndex, int32_t *len, UErrorCode *status) {
 1710|   299k|  if(RES_GET_TYPE(r) == URES_ALIAS) {
  ------------------
  |  |   68|   299k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (1710:6): [True: 0, False: 299k]
  ------------------
 1711|      0|    const char16_t* result = nullptr;
 1712|      0|    UResourceBundle *tempRes = ures_getByIndex(resB, sIndex, nullptr, status);
  ------------------
  |  | 1660|      0|#define ures_getByIndex U_ICU_ENTRY_POINT_RENAME(ures_getByIndex)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1713|      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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1714|      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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1715|      0|    return result;
 1716|   299k|  } else {
 1717|   299k|    return res_getString({resB, sIndex}, &resB->getResData(), r, len); 
 1718|   299k|  }
 1719|   299k|}
uresbund.cpp:_ZN12_GLOBAL__N_116init_resb_resultEP18UResourceDataEntryjPKciPK15UResourceBundlePS4_P10UErrorCode:
 1480|  2.05M|        UResourceBundle *resB, UErrorCode *status) {
 1481|  2.05M|    return init_resb_result(
 1482|  2.05M|        dataEntry, r, key, idx,
 1483|  2.05M|        container->fValidLocaleDataEntry, container->fResPath, 0, resB, status);
 1484|  2.05M|}
uresbund.cpp:_ZN12_GLOBAL__N_116init_resb_resultEP18UResourceDataEntryjPKciS1_S3_iP15UResourceBundleP10UErrorCode:
 1389|  2.99M|        UResourceBundle *resB, UErrorCode *status) {
 1390|       |    // TODO: When an error occurs: Should we return nullptr vs. resB?
 1391|  2.99M|    if(status == nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1391:8): [True: 0, False: 2.99M]
  |  Branch (1391:29): [True: 0, False: 2.99M]
  ------------------
 1392|      0|        return resB;
 1393|      0|    }
 1394|  2.99M|    if (validLocaleDataEntry == nullptr) {
  ------------------
  |  Branch (1394:9): [True: 0, False: 2.99M]
  ------------------
 1395|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 1396|      0|        return nullptr;
 1397|      0|    }
 1398|  2.99M|    if(RES_GET_TYPE(r) == URES_ALIAS) {
  ------------------
  |  |   68|  2.99M|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (1398:8): [True: 86.2k, False: 2.90M]
  ------------------
 1399|       |        // This is an alias, need to exchange with real data.
 1400|  86.2k|        if(recursionDepth >= URES_MAX_ALIAS_LEVEL) {
  ------------------
  |  |   33|  86.2k|#define URES_MAX_ALIAS_LEVEL 256
  ------------------
  |  Branch (1400:12): [True: 0, False: 86.2k]
  ------------------
 1401|      0|            *status = U_TOO_MANY_ALIASES_ERROR;
 1402|      0|            return resB;
 1403|      0|        }
 1404|  86.2k|        return getAliasTargetAsResourceBundle(
 1405|  86.2k|            dataEntry->fData, r, key, idx,
 1406|  86.2k|            validLocaleDataEntry, containerResPath, recursionDepth, resB, status);
 1407|  86.2k|    }
 1408|  2.90M|    if(resB == nullptr) {
  ------------------
  |  Branch (1408:8): [True: 740k, False: 2.16M]
  ------------------
 1409|   740k|        resB = static_cast<UResourceBundle*>(uprv_malloc(sizeof(UResourceBundle)));
  ------------------
  |  | 1524|   740k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|   740k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   740k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   740k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1410|   740k|        if (resB == nullptr) {
  ------------------
  |  Branch (1410:13): [True: 0, False: 740k]
  ------------------
 1411|      0|            *status = U_MEMORY_ALLOCATION_ERROR;
 1412|      0|            return nullptr;
 1413|      0|        }
 1414|   740k|        ures_setIsStackObject(resB, false);
 1415|   740k|        resB->fResPath = nullptr;
 1416|   740k|        resB->fResPathLen = 0;
 1417|  2.16M|    } else {
 1418|  2.16M|        if(resB->fData != nullptr) {
  ------------------
  |  Branch (1418:12): [True: 946k, False: 1.21M]
  ------------------
 1419|   946k|            entryClose(resB->fData);
 1420|   946k|        }
 1421|  2.16M|        if(resB->fVersion != nullptr) {
  ------------------
  |  Branch (1421:12): [True: 0, False: 2.16M]
  ------------------
 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|  2.16M|        if(containerResPath != resB->fResPath) {
  ------------------
  |  Branch (1435:12): [True: 760k, False: 1.40M]
  ------------------
 1436|   760k|            ures_freeResPath(resB);
 1437|   760k|        }
 1438|  2.16M|    }
 1439|  2.90M|    resB->fData = dataEntry;
 1440|  2.90M|    entryIncrease(resB->fData);
 1441|  2.90M|    resB->fHasFallback = false;
 1442|  2.90M|    resB->fIsTopLevel = false;
 1443|  2.90M|    resB->fIndex = -1;
 1444|  2.90M|    resB->fKey = key; 
 1445|  2.90M|    resB->fValidLocaleDataEntry = validLocaleDataEntry;
 1446|  2.90M|    if(containerResPath != resB->fResPath) {
  ------------------
  |  Branch (1446:8): [True: 749k, False: 2.15M]
  ------------------
 1447|   749k|        ures_appendResPath(
 1448|   749k|            resB, containerResPath, static_cast<int32_t>(uprv_strlen(containerResPath)), status);
  ------------------
  |  |   37|   749k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|   749k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1449|   749k|    }
 1450|  2.90M|    if(key != nullptr) {
  ------------------
  |  Branch (1450:8): [True: 2.75M, False: 155k]
  ------------------
 1451|  2.75M|        ures_appendResPath(resB, key, static_cast<int32_t>(uprv_strlen(key)), status);
  ------------------
  |  |   37|  2.75M|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  2.75M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1452|  2.75M|        if(resB->fResPath[resB->fResPathLen-1] != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|  2.75M|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (1452:12): [True: 2.63M, False: 113k]
  ------------------
 1453|  2.63M|            ures_appendResPath(resB, RES_PATH_SEPARATOR_S, 1, status);
  ------------------
  |  |   61|  2.63M|#define RES_PATH_SEPARATOR_S   "/"
  ------------------
 1454|  2.63M|        }
 1455|  2.75M|    } else if(idx >= 0) {
  ------------------
  |  Branch (1455:15): [True: 155k, False: 0]
  ------------------
 1456|   155k|        char buf[256];
 1457|   155k|        int32_t len = T_CString_integerToString(buf, idx, 10);
  ------------------
  |  |   67|   155k|#define T_CString_integerToString U_ICU_ENTRY_POINT_RENAME(T_CString_integerToString)
  |  |  ------------------
  |  |  |  |  123|   155k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   155k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   155k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1458|   155k|        ures_appendResPath(resB, buf, len, status);
 1459|   155k|        if(resB->fResPath[resB->fResPathLen-1] != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|   155k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (1459:12): [True: 155k, False: 0]
  ------------------
 1460|   155k|            ures_appendResPath(resB, RES_PATH_SEPARATOR_S, 1, status);
  ------------------
  |  |   61|   155k|#define RES_PATH_SEPARATOR_S   "/"
  ------------------
 1461|   155k|        }
 1462|   155k|    }
 1463|       |    /* Make sure that Purify doesn't complain about uninitialized memory copies. */
 1464|  2.90M|    {
 1465|  2.90M|        int32_t usedLen = ((resB->fResBuf == resB->fResPath) ? resB->fResPathLen : 0);
  ------------------
  |  Branch (1465:28): [True: 2.90M, False: 0]
  ------------------
 1466|  2.90M|        uprv_memset(resB->fResBuf + usedLen, 0, sizeof(resB->fResBuf) - usedLen);
  ------------------
  |  |  100|  2.90M|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  2.90M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1467|  2.90M|    }
 1468|       |
 1469|  2.90M|    resB->fVersion = nullptr;
 1470|  2.90M|    resB->fRes = r;
 1471|  2.90M|    resB->fSize = res_countArrayItems(&resB->getResData(), resB->fRes);
  ------------------
  |  |  197|  2.90M|#define res_countArrayItems U_ICU_ENTRY_POINT_RENAME(res_countArrayItems)
  |  |  ------------------
  |  |  |  |  123|  2.90M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.90M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.90M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1472|  2.90M|    ResourceTracer(resB).trace("get");
 1473|  2.90M|    return resB;
 1474|  2.90M|}
uresbund.cpp:_ZN12_GLOBAL__N_130getAliasTargetAsResourceBundleERK12ResourceDatajPKciP18UResourceDataEntryS4_iP15UResourceBundleP10UErrorCode:
 1166|   938k|        UResourceBundle *resB, UErrorCode *status) {
 1167|       |    // TODO: When an error occurs: Should we return nullptr vs. resB?
 1168|   938k|    if (U_FAILURE(*status)) { return resB; }
  ------------------
  |  Branch (1168:9): [True: 0, False: 938k]
  ------------------
 1169|   938k|    U_ASSERT(RES_GET_TYPE(r) == URES_ALIAS);
  ------------------
  |  |   35|   938k|#   define U_ASSERT(exp) (void)0
  ------------------
 1170|   938k|    int32_t len = 0;
 1171|   938k|    const char16_t *alias = res_getAlias(&resData, r, &len);
  ------------------
  |  |  199|   938k|#define res_getAlias U_ICU_ENTRY_POINT_RENAME(res_getAlias)
  |  |  ------------------
  |  |  |  |  123|   938k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   938k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   938k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1172|   938k|    if(len <= 0) {
  ------------------
  |  Branch (1172:8): [True: 0, False: 938k]
  ------------------
 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|   938k|    CharString chAlias;
 1189|   938k|    chAlias.appendInvariantChars(alias, len, *status);
 1190|   938k|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (1190:9): [True: 0, False: 938k]
  ------------------
 1191|      0|        return nullptr;
 1192|      0|    }
 1193|       |
 1194|       |    // We have an alias, now let's cut it up.
 1195|   938k|    const char *path = nullptr, *locale = nullptr, *keyPath = nullptr;
 1196|   938k|    if(chAlias[0] == RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|   938k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (1196:8): [True: 938k, False: 0]
  ------------------
 1197|       |        // There is a path included.
 1198|   938k|        char *chAliasData = chAlias.data();
 1199|   938k|        char *sep = chAliasData + 1;
 1200|   938k|        path = sep;
 1201|   938k|        sep = uprv_strchr(sep, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|   938k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|   938k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1202|   938k|        if(sep != nullptr) {
  ------------------
  |  Branch (1202:12): [True: 938k, False: 0]
  ------------------
 1203|   938k|            *sep++ = 0;
 1204|   938k|        }
 1205|   938k|        if(uprv_strcmp(path, "LOCALE") == 0) {
  ------------------
  |  |   38|   938k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   938k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1205:12): [True: 938k, False: 324]
  ------------------
 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|   938k|            keyPath = sep;
 1213|       |            // Read from the valid locale which we already have.
 1214|   938k|            path = locale = nullptr;
 1215|   938k|        } else {
 1216|    324|            if(uprv_strcmp(path, "ICUDATA") == 0) { /* want ICU data */
  ------------------
  |  |   38|    324|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    324|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1216:16): [True: 324, False: 0]
  ------------------
 1217|    324|                path = nullptr;
 1218|    324|            }
 1219|    324|            if (sep == nullptr) {
  ------------------
  |  Branch (1219:17): [True: 0, False: 324]
  ------------------
 1220|       |                // TODO: This ends up using the root bundle. Can/should we forbid this?
 1221|      0|                locale = "";
 1222|    324|            } else {
 1223|    324|                locale = sep;
 1224|    324|                sep = uprv_strchr(sep, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|    324|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|    324|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1225|    324|                if(sep != nullptr) {
  ------------------
  |  Branch (1225:20): [True: 324, False: 0]
  ------------------
 1226|    324|                    *sep++ = 0;
 1227|    324|                }
 1228|    324|                keyPath = sep;
 1229|    324|            }
 1230|    324|        }
 1231|   938k|    } 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|   938k|    LocalUResourceBundlePointer mainRes;
 1246|   938k|    UResourceDataEntry *dataEntry;
 1247|   938k|    if (locale == nullptr) {
  ------------------
  |  Branch (1247:9): [True: 938k, False: 324]
  ------------------
 1248|       |        // alias = /LOCALE/keyPath
 1249|       |        // Read from the valid locale which we already have.
 1250|   938k|        dataEntry = validLocaleDataEntry;
 1251|   938k|    } else {
 1252|    324|        UErrorCode intStatus = U_ZERO_ERROR;
 1253|       |        // TODO: Shouldn't we use ures_open() for locale data bundles (!noFallback)?
 1254|    324|        mainRes.adoptInstead(ures_openDirect(path, locale, &intStatus));
  ------------------
  |  | 1693|    324|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|    324|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    324|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    324|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1255|    324|        if(U_FAILURE(intStatus)) {
  ------------------
  |  Branch (1255:12): [True: 0, False: 324]
  ------------------
 1256|       |            // We failed to open the resource bundle we're aliasing to.
 1257|      0|            *status = intStatus;
 1258|      0|            return resB;
 1259|      0|        }
 1260|    324|        dataEntry = mainRes->fData;
 1261|    324|    }
 1262|       |
 1263|   938k|    const char* temp = nullptr;
 1264|   938k|    if(keyPath == nullptr) {
  ------------------
  |  Branch (1264:8): [True: 0, False: 938k]
  ------------------
 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|   938k|    } 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|   938k|        CharString pathBuf(keyPath, *status);
 1317|   938k|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (1317:13): [True: 0, False: 938k]
  ------------------
 1318|      0|            return nullptr;
 1319|      0|        }
 1320|   938k|        char *myPath = pathBuf.data();
 1321|   938k|        containerResPath = nullptr;
 1322|       |        // Now we have fallback following here.
 1323|  2.35M|        for(;;) {
 1324|  2.35M|            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|  3.29M|            while(*myPath && U_SUCCESS(*status)) {
  ------------------
  |  Branch (1329:19): [True: 2.35M, False: 938k]
  |  Branch (1329:30): [True: 2.35M, False: 0]
  ------------------
 1330|  2.35M|                r = res_findResource(&(dataEntry->fData), r, &myPath, &temp);
  ------------------
  |  |  198|  2.35M|#define res_findResource U_ICU_ENTRY_POINT_RENAME(res_findResource)
  |  |  ------------------
  |  |  |  |  123|  2.35M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.35M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.35M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1331|  2.35M|                if(r == RES_BOGUS) {
  ------------------
  |  |   65|  2.35M|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1331:20): [True: 1.41M, False: 938k]
  ------------------
 1332|       |                    // No resource found, we don't really want to look anymore on this level.
 1333|  1.41M|                    break;
 1334|  1.41M|                }
 1335|       |                // Found a resource, but it might be an indirection.
 1336|   938k|                resB = init_resb_result(
 1337|   938k|                    dataEntry, r, temp, -1,
 1338|   938k|                    validLocaleDataEntry, containerResPath, recursionDepth+1,
 1339|   938k|                    resB, status);
 1340|   938k|                if (U_FAILURE(*status)) {
  ------------------
  |  Branch (1340:21): [True: 0, False: 938k]
  ------------------
 1341|      0|                    break;
 1342|      0|                }
 1343|   938k|                if (temp == nullptr || uprv_strcmp(keyPath, temp) != 0) {
  ------------------
  |  |   38|   938k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   938k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1343:21): [True: 0, False: 938k]
  |  Branch (1343:40): [True: 938k, 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|   938k|                    ures_freeResPath(resB);
 1350|   938k|                    ures_appendResPath(resB, keyPath, static_cast<int32_t>(uprv_strlen(keyPath)), status);
  ------------------
  |  |   37|   938k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|   938k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1351|   938k|                    if(resB->fResPath[resB->fResPathLen-1] != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|   938k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (1351:24): [True: 938k, False: 0]
  ------------------
 1352|   938k|                        ures_appendResPath(resB, RES_PATH_SEPARATOR_S, 1, status);
  ------------------
  |  |   61|   938k|#define RES_PATH_SEPARATOR_S   "/"
  ------------------
 1353|   938k|                    }
 1354|   938k|                    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (1354:25): [True: 0, False: 938k]
  ------------------
 1355|      0|                        break;
 1356|      0|                    }
 1357|   938k|                }
 1358|   938k|                r = resB->fRes; /* switch to a new resource, possibly a new tree */
 1359|   938k|                dataEntry = resB->fData;
 1360|   938k|                containerResPath = resB->fResPath;
 1361|   938k|            }
 1362|  2.35M|            if (U_FAILURE(*status) || r != RES_BOGUS) {
  ------------------
  |  |   65|  2.35M|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1362:17): [True: 0, False: 2.35M]
  |  Branch (1362:39): [True: 938k, False: 1.41M]
  ------------------
 1363|   938k|                break;
 1364|   938k|            }
 1365|       |            // Fall back to the parent bundle, if there is one.
 1366|  1.41M|            dataEntry = dataEntry->fParent;
 1367|  1.41M|            if (dataEntry == nullptr) {
  ------------------
  |  Branch (1367:17): [True: 0, False: 1.41M]
  ------------------
 1368|      0|                *status = U_MISSING_RESOURCE_ERROR;
 1369|      0|                break;
 1370|      0|            }
 1371|       |            // Copy the same keyPath again.
 1372|  1.41M|            myPath = pathBuf.data();
 1373|  1.41M|            uprv_strcpy(myPath, keyPath);
  ------------------
  |  |   36|  1.41M|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  1.41M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1374|  1.41M|        }
 1375|   938k|    }
 1376|   938k|    if(mainRes.getAlias() == resB) {
  ------------------
  |  Branch (1376:8): [True: 0, False: 938k]
  ------------------
 1377|      0|        mainRes.orphan();
 1378|      0|    }
 1379|   938k|    ResourceTracer(resB).maybeTrace("getalias");
 1380|   938k|    return resB;
 1381|   938k|}
uresbund.cpp:_ZL21getTableItemByKeyPathPK12ResourceDatajPKc:
 2059|   971k|static Resource getTableItemByKeyPath(const ResourceData *pResData, Resource table, const char *key) {
 2060|   971k|  Resource resource = table;  /* The current resource */
 2061|   971k|  icu::CharString path;
 2062|   971k|  UErrorCode errorCode = U_ZERO_ERROR;
 2063|   971k|  path.append(key, errorCode);
 2064|   971k|  if (U_FAILURE(errorCode)) { return RES_BOGUS; }
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2064:7): [True: 0, False: 971k]
  ------------------
 2065|   971k|  char *pathPart = path.data();  /* Path from current resource to desired resource */
 2066|   971k|  UResType type = static_cast<UResType>(RES_GET_TYPE(resource)); /* the current resource type */
  ------------------
  |  |   68|   971k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2067|  2.50M|  while (*pathPart && resource != RES_BOGUS && URES_IS_CONTAINER(type)) {
  ------------------
  |  |   65|  4.18M|#define RES_BOGUS 0xffffffff
  ------------------
                while (*pathPart && resource != RES_BOGUS && URES_IS_CONTAINER(type)) {
  ------------------
  |  |   85|  1.52M|#define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   84|  3.05M|#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.47M, False: 49.5k]
  |  |  |  |  |  Branch (84:61): [True: 49.5k, 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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2067:10): [True: 1.68M, False: 820k]
  |  Branch (2067:23): [True: 1.52M, False: 151k]
  ------------------
 2068|  1.52M|    char *nextPathPart = uprv_strchr(pathPart, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|  1.52M|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  1.52M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2069|  1.52M|    if (nextPathPart != nullptr) {
  ------------------
  |  Branch (2069:9): [True: 822k, False: 706k]
  ------------------
 2070|   822k|      *nextPathPart = 0;  /* Terminating null for this part of path. */
 2071|   822k|      nextPathPart++;
 2072|   822k|    } else {
 2073|   706k|      nextPathPart = uprv_strchr(pathPart, 0);
  ------------------
  |  |   40|   706k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|   706k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2074|   706k|    }
 2075|  1.52M|    int32_t t;
 2076|  1.52M|    const char *pathP = pathPart;
 2077|  1.52M|    resource = res_getTableItemByKey(pResData, resource, &t, &pathP);
  ------------------
  |  |  207|  1.52M|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|  1.52M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.52M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.52M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2078|  1.52M|    type = static_cast<UResType>(RES_GET_TYPE(resource));
  ------------------
  |  |   68|  1.52M|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2079|  1.52M|    pathPart = nextPathPart; 
 2080|  1.52M|  }
 2081|   971k|  if (*pathPart) {
  ------------------
  |  Branch (2081:7): [True: 151k, False: 820k]
  ------------------
 2082|   151k|    return RES_BOGUS;
  ------------------
  |  |   65|   151k|#define RES_BOGUS 0xffffffff
  ------------------
 2083|   151k|  }
 2084|   820k|  return resource;
 2085|   971k|}
uresbund.cpp:_ZL10createPathPKciS0_iS0_RN6icu_7810CharStringEP10UErrorCode:
 2093|  1.10M|                       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.10M|    path.clear();
 2107|  1.10M|    const char* key = inKey;
 2108|  1.10M|    if (resPathLen > 0) {
  ------------------
  |  Branch (2108:9): [True: 346k, False: 758k]
  ------------------
 2109|   346k|        path.append(resPath, resPathLen, *status);
 2110|   346k|        if (U_SUCCESS(*status)) {
  ------------------
  |  Branch (2110:13): [True: 346k, False: 0]
  ------------------
 2111|   346k|            const char* resPathLimit = resPath + resPathLen;
 2112|   346k|            const char* origResPathLimit = origResPath + origResPathLen;
 2113|   346k|            const char* resPathPtr = resPath;
 2114|   346k|            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|   702k|            while (origResPathPtr < origResPathLimit && resPathPtr < resPathLimit) {
  ------------------
  |  Branch (2118:20): [True: 356k, False: 346k]
  |  Branch (2118:57): [True: 356k, False: 0]
  ------------------
 2119|  5.06M|                while (origResPathPtr < origResPathLimit && *origResPathPtr != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|  5.06M|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2119:24): [True: 5.06M, False: 0]
  |  Branch (2119:61): [True: 4.70M, False: 356k]
  ------------------
 2120|  4.70M|                    ++origResPathPtr;
 2121|  4.70M|                }
 2122|   356k|                if (origResPathPtr < origResPathLimit && *origResPathPtr == RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|   356k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2122:21): [True: 356k, False: 0]
  |  Branch (2122:58): [True: 356k, False: 0]
  ------------------
 2123|   356k|                    ++origResPathPtr;
 2124|   356k|                }
 2125|  5.06M|                while (resPathPtr < resPathLimit && *resPathPtr != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|  5.06M|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2125:24): [True: 5.06M, False: 0]
  |  Branch (2125:53): [True: 4.70M, False: 356k]
  ------------------
 2126|  4.70M|                    ++resPathPtr;
 2127|  4.70M|                }
 2128|   356k|                if (resPathPtr < resPathLimit && *resPathPtr == RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|   356k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2128:21): [True: 356k, False: 0]
  |  Branch (2128:50): [True: 356k, False: 0]
  ------------------
 2129|   356k|                    ++resPathPtr;
 2130|   356k|                }
 2131|   356k|            }
 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|   370k|            while (resPathPtr < resPathLimit && *key != '\0') {
  ------------------
  |  Branch (2135:20): [True: 24.5k, False: 346k]
  |  Branch (2135:49): [True: 24.5k, False: 0]
  ------------------
 2136|   262k|                while (resPathPtr < resPathLimit && *resPathPtr != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|   262k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2136:24): [True: 262k, False: 0]
  |  Branch (2136:53): [True: 237k, False: 24.5k]
  ------------------
 2137|   237k|                    ++resPathPtr;
 2138|   237k|                }
 2139|  24.5k|                if (resPathPtr < resPathLimit && *resPathPtr == RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|  24.5k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2139:21): [True: 24.5k, False: 0]
  |  Branch (2139:50): [True: 24.5k, False: 0]
  ------------------
 2140|  24.5k|                    ++resPathPtr;
 2141|  24.5k|                }
 2142|   267k|                while (*key != '\0' && *key != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|   260k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2142:24): [True: 260k, False: 6.52k]
  |  Branch (2142:40): [True: 242k, False: 17.9k]
  ------------------
 2143|   242k|                    ++key;
 2144|   242k|                }
 2145|  24.5k|                if (*key == RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|  24.5k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2145:21): [True: 17.9k, False: 6.52k]
  ------------------
 2146|  17.9k|                    ++key;
 2147|  17.9k|                }
 2148|  24.5k|            }
 2149|   346k|        }
 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|   346k|        path.append(key, *status);
 2155|   758k|    } else {
 2156|   758k|        path.append(inKey, *status);
 2157|   758k|    }
 2158|  1.10M|}
uresbund.cpp:_ZL16ures_freeResPathP15UResourceBundle:
 1113|  5.13M|static void ures_freeResPath(UResourceBundle *resB) {
 1114|  5.13M|    if (resB->fResPath && resB->fResPath != resB->fResBuf) {
  ------------------
  |  Branch (1114:9): [True: 4.07M, False: 1.06M]
  |  Branch (1114:27): [True: 0, False: 4.07M]
  ------------------
 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|  5.13M|    resB->fResPath = nullptr;
 1118|  5.13M|    resB->fResPathLen = 0;
 1119|  5.13M|}
uresbund.cpp:_ZN12_GLOBAL__N_118GetAllChildrenSinkC2ERN6icu_7812ResourceSinkE:
 2337|  40.3k|        : dest(dest) {}
uresbund.cpp:_ZN12_GLOBAL__N_118GetAllChildrenSink3putEPKcRN6icu_7813ResourceValueEaR10UErrorCode:
 2340|  76.6k|           UErrorCode &errorCode) override {
 2341|  76.6k|        ResourceTable itemsTable = value.getTable(errorCode);
 2342|  76.6k|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (2342:13): [True: 0, False: 76.6k]
  ------------------
 2343|  3.05M|        for (int32_t i = 0; itemsTable.getKeyAndValue(i, key, value); ++i) {
  ------------------
  |  Branch (2343:29): [True: 2.97M, False: 76.6k]
  ------------------
 2344|  2.97M|            if (value.getType() == URES_ALIAS) {
  ------------------
  |  Branch (2344:17): [True: 592k, False: 2.38M]
  ------------------
 2345|   592k|                ResourceDataValue& rdv = static_cast<ResourceDataValue&>(value);
 2346|   592k|                StackUResourceBundle stackTempBundle;
 2347|   592k|                UResourceBundle* aliasRB = getAliasTargetAsResourceBundle(rdv.getData(), rdv.getResource(), nullptr, -1,
 2348|   592k|                                                                          rdv.getValidLocaleDataEntry(), nullptr, 0,
 2349|   592k|                                                                          stackTempBundle.getAlias(), &errorCode);
 2350|   592k|                if (U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (2350:21): [True: 592k, False: 0]
  ------------------
 2351|   592k|                    ResourceDataValue aliasedValue;
 2352|   592k|                    aliasedValue.setData(aliasRB->getResData());
 2353|   592k|                    aliasedValue.setValidLocaleDataEntry(aliasRB->fValidLocaleDataEntry);
 2354|   592k|                    aliasedValue.setResource(aliasRB->fRes, ResourceTracer(aliasRB));
 2355|       |                    
 2356|   592k|                    if (aliasedValue.getType() != URES_TABLE) {
  ------------------
  |  Branch (2356:25): [True: 0, False: 592k]
  ------------------
 2357|      0|                        dest.put(key, aliasedValue, isRoot, errorCode);
 2358|   592k|                    } else {
 2359|       |                        // if the resource we're aliasing over to is a table, the sink might iterate over its contents.
 2360|       |                        // If it does, it'll get only the things defined in the actual alias target, not the things
 2361|       |                        // the target inherits from its parent resources.  So we walk the parent chain for the *alias target*,
 2362|       |                        // calling dest.put() for each of the parent tables we could be inheriting from.  This means
 2363|       |                        // that dest.put() has to iterate over the children of multiple tables to get all of the inherited
 2364|       |                        // resource values, but it already has to do that to handle normal vertical inheritance.
 2365|   592k|                        UResType aliasedValueType = URES_TABLE;
 2366|   592k|                        CharString tablePath;
 2367|   592k|                        tablePath.append(aliasRB->fResPath, errorCode);
 2368|   592k|                        const char* parentKey = key; // dest.put() changes the key
 2369|   592k|                        dest.put(parentKey, aliasedValue, isRoot, errorCode);
 2370|   592k|                        UResourceDataEntry* entry = aliasRB->fData;
 2371|   592k|                        Resource res = aliasRB->fRes;
 2372|  1.40M|                        while (aliasedValueType == URES_TABLE && entry->fParent != nullptr) {
  ------------------
  |  Branch (2372:32): [True: 1.40M, False: 0]
  |  Branch (2372:66): [True: 811k, False: 592k]
  ------------------
 2373|   811k|                            CharString localPath;
 2374|   811k|                            localPath.copyFrom(tablePath, errorCode);
 2375|   811k|                            char* localPathAsCharPtr = localPath.data();
 2376|   811k|                            const char* childKey;
 2377|   811k|                            entry = entry->fParent;
 2378|   811k|                            res = entry->fData.rootRes;
 2379|   811k|                            Resource newRes = res_findResource(&entry->fData, res, &localPathAsCharPtr, &childKey);
  ------------------
  |  |  198|   811k|#define res_findResource U_ICU_ENTRY_POINT_RENAME(res_findResource)
  |  |  ------------------
  |  |  |  |  123|   811k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   811k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   811k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2380|   811k|                            if (newRes != RES_BOGUS) {
  ------------------
  |  |   65|   811k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2380:33): [True: 805k, False: 5.80k]
  ------------------
 2381|   805k|                                aliasedValue.setData(entry->fData);
 2382|       |                                // TODO: do I also need to call aliasedValue.setValueLocaleDataEntry() ?
 2383|   805k|                                aliasedValue.setResource(newRes, ResourceTracer(aliasRB)); // probably wrong to use aliasRB here
 2384|   805k|                                aliasedValueType = aliasedValue.getType();
 2385|   805k|                                if (aliasedValueType == URES_ALIAS) {
  ------------------
  |  Branch (2385:37): [True: 260k, False: 545k]
  ------------------
 2386|       |                                    // in a few rare cases, when we get to the root resource bundle, the resource in question
 2387|       |                                    // won't be an actual table, but will instead be an alias to a table.  That is, we have
 2388|       |                                    // two aliases in the inheritance path.  (For some locales, such as Zulu, we see this with
 2389|       |                                    // children of the "fields" resource: "day-narrow" aliases to "day-short", which aliases
 2390|       |                                    // to "day".)  When this happens, we need to make sure we follow all the aliases.
 2391|   260k|                                    ResourceDataValue& rdv2 = static_cast<ResourceDataValue&>(aliasedValue);
 2392|   260k|                                    aliasRB = getAliasTargetAsResourceBundle(rdv2.getData(), rdv2.getResource(), nullptr, -1,
 2393|   260k|                                                                             rdv2.getValidLocaleDataEntry(), nullptr, 0,
 2394|   260k|                                                                             stackTempBundle.getAlias(), &errorCode);
 2395|   260k|                                    tablePath.clear();
 2396|   260k|                                    tablePath.append(aliasRB->fResPath, errorCode);
 2397|   260k|                                    entry = aliasRB->fData;
 2398|   260k|                                    res = aliasRB->fRes;
 2399|   260k|                                    aliasedValue.setData(entry->fData);
 2400|       |                                    // TODO: do I also need to call aliasedValue.setValueLocaleDataEntry() ?
 2401|   260k|                                    aliasedValue.setResource(res, ResourceTracer(aliasRB)); // probably wrong to use aliasRB here
 2402|   260k|                                    aliasedValueType = aliasedValue.getType();
 2403|   260k|                                }
 2404|   805k|                                if (aliasedValueType == URES_TABLE) {
  ------------------
  |  Branch (2404:37): [True: 805k, False: 0]
  ------------------
 2405|   805k|                                    dest.put(parentKey, aliasedValue, isRoot, errorCode);
 2406|   805k|                                } else {
 2407|       |                                    // once we've followed the alias, the resource we're looking at really should
 2408|       |                                    // be a table
 2409|      0|                                    errorCode = U_INTERNAL_PROGRAM_ERROR;
 2410|      0|                                    return;
 2411|      0|                                }
 2412|   805k|                            }
 2413|   811k|                        }
 2414|   592k|                    }
 2415|   592k|                }
 2416|  2.38M|            } else {
 2417|  2.38M|                dest.put(key, value, isRoot, errorCode);
 2418|  2.38M|            }
 2419|  2.97M|            if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (2419:17): [True: 0, False: 2.97M]
  ------------------
 2420|  2.97M|        }
 2421|  76.6k|    }
uresbund.cpp:_ZN12_GLOBAL__N_123getAllItemsWithFallbackEPK15UResourceBundleRN6icu_7817ResourceDataValueERNS3_12ResourceSinkER10UErrorCode:
 2278|   354k|        ResourceSink &sink, UErrorCode &errorCode) {
 2279|   354k|    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (2279:9): [True: 0, False: 354k]
  ------------------
 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|   354k|    value.setData(bundle->getResData());
 2291|   354k|    value.setValidLocaleDataEntry(bundle->fValidLocaleDataEntry);
 2292|   354k|    UResourceDataEntry *parentEntry = bundle->fData->fParent;
 2293|   354k|    UBool hasParent = parentEntry != nullptr && U_SUCCESS(parentEntry->fBogus);
  ------------------
  |  Branch (2293:23): [True: 166k, False: 188k]
  |  Branch (2293:49): [True: 166k, False: 0]
  ------------------
 2294|   354k|    value.setResource(bundle->fRes, ResourceTracer(bundle));
 2295|   354k|    sink.put(bundle->fKey, value, !hasParent, errorCode);
 2296|   354k|    if (hasParent) {
  ------------------
  |  Branch (2296:9): [True: 166k, False: 188k]
  ------------------
 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|   166k|        StackUResourceBundle parentBundle;
 2306|   166k|        UResourceBundle &parentRef = parentBundle.ref();
 2307|   166k|        parentRef.fData = parentEntry;
 2308|   166k|        parentRef.fValidLocaleDataEntry = bundle->fValidLocaleDataEntry;
 2309|   166k|        parentRef.fHasFallback = !parentRef.getResData().noFallback;
 2310|   166k|        parentRef.fIsTopLevel = true;
 2311|   166k|        parentRef.fRes = parentRef.getResData().rootRes;
 2312|   166k|        parentRef.fSize = res_countArrayItems(&parentRef.getResData(), parentRef.fRes);
  ------------------
  |  |  197|   166k|#define res_countArrayItems U_ICU_ENTRY_POINT_RENAME(res_countArrayItems)
  |  |  ------------------
  |  |  |  |  123|   166k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   166k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   166k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2313|   166k|        parentRef.fIndex = -1;
 2314|   166k|        entryIncrease(parentEntry);
 2315|       |
 2316|       |        // Look up the container item in the parent bundle.
 2317|   166k|        StackUResourceBundle containerBundle;
 2318|   166k|        const UResourceBundle *rb;
 2319|   166k|        UErrorCode pathErrorCode = U_ZERO_ERROR;  // Ignore if parents up to root do not have this path.
 2320|   166k|        if (bundle->fResPath == nullptr || *bundle->fResPath == 0) {
  ------------------
  |  Branch (2320:13): [True: 0, False: 166k]
  |  Branch (2320:44): [True: 0, False: 166k]
  ------------------
 2321|      0|            rb = parentBundle.getAlias();
 2322|   166k|        } else {
 2323|   166k|            rb = ures_getByKeyWithFallback(parentBundle.getAlias(), bundle->fResPath,
  ------------------
  |  | 1662|   166k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|   166k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   166k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   166k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2324|   166k|                                           containerBundle.getAlias(), &pathErrorCode);
 2325|   166k|        }
 2326|   166k|        if (U_SUCCESS(pathErrorCode)) {
  ------------------
  |  Branch (2326:13): [True: 166k, False: 7]
  ------------------
 2327|   166k|            getAllItemsWithFallback(rb, value, sink, errorCode);
 2328|   166k|        }
 2329|   166k|    }
 2330|   354k|}
uresbund.cpp:_ZL15getFallbackDataPK15UResourceBundlePPKcPjP10UErrorCode:
  319|   216k|        const char **resTag, Resource *res, UErrorCode *status) {
  320|   216k|    UResourceDataEntry *dataEntry = resBundle->fData;
  321|   216k|    int32_t indexR = -1;
  322|   216k|    int32_t i = 0;
  323|   216k|    *res = RES_BOGUS;
  ------------------
  |  |   65|   216k|#define RES_BOGUS 0xffffffff
  ------------------
  324|   216k|    if(dataEntry == nullptr) {
  ------------------
  |  Branch (324:8): [True: 0, False: 216k]
  ------------------
  325|      0|        *status = U_MISSING_RESOURCE_ERROR;
  326|      0|        return nullptr;
  327|      0|    }
  328|   216k|    if(dataEntry->fBogus == U_ZERO_ERROR) { /* if this resource is real, */
  ------------------
  |  Branch (328:8): [True: 216k, False: 0]
  ------------------
  329|   216k|        *res = res_getTableItemByKey(&(dataEntry->fData), dataEntry->fData.rootRes, &indexR, resTag); /* try to get data from there */
  ------------------
  |  |  207|   216k|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|   216k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   216k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   216k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  330|   216k|        i++;
  331|   216k|    }
  332|   216k|    if(resBundle->fHasFallback) {
  ------------------
  |  Branch (332:8): [True: 216k, False: 0]
  ------------------
  333|       |        // Otherwise, we'll look in parents.
  334|   583k|        while(*res == RES_BOGUS && dataEntry->fParent != nullptr) {
  ------------------
  |  |   65|  1.16M|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (334:15): [True: 495k, False: 87.9k]
  |  Branch (334:36): [True: 367k, False: 128k]
  ------------------
  335|   367k|            dataEntry = dataEntry->fParent;
  336|   367k|            if(dataEntry->fBogus == U_ZERO_ERROR) {
  ------------------
  |  Branch (336:16): [True: 367k, False: 0]
  ------------------
  337|   367k|                i++;
  338|   367k|                *res = res_getTableItemByKey(&(dataEntry->fData), dataEntry->fData.rootRes, &indexR, resTag);
  ------------------
  |  |  207|   367k|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|   367k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   367k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   367k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  339|   367k|            }
  340|   367k|        }
  341|   216k|    }
  342|       |
  343|   216k|    if(*res == RES_BOGUS) {
  ------------------
  |  |   65|   216k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (343:8): [True: 128k, False: 87.9k]
  ------------------
  344|       |        // If the resource is not found, we need to give an error.
  345|   128k|        *status = U_MISSING_RESOURCE_ERROR;
  346|   128k|        return nullptr;
  347|   128k|    }
  348|       |    // If the resource is found in parents, we need to adjust the error.
  349|  87.9k|    if(i>1) {
  ------------------
  |  Branch (349:8): [True: 87.9k, False: 0]
  ------------------
  350|  87.9k|        if(uprv_strcmp(dataEntry->fName, uloc_getDefault())==0 || uprv_strcmp(dataEntry->fName, kRootLocaleName)==0) {
  ------------------
  |  |   38|  87.9k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  87.9k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                      if(uprv_strcmp(dataEntry->fName, uloc_getDefault())==0 || uprv_strcmp(dataEntry->fName, kRootLocaleName)==0) {
  ------------------
  |  |   38|  87.9k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  87.9k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (350:12): [True: 0, False: 87.9k]
  |  Branch (350:67): [True: 245, False: 87.6k]
  ------------------
  351|    245|            *status = U_USING_DEFAULT_WARNING;
  352|  87.6k|        } else {
  353|  87.6k|            *status = U_USING_FALLBACK_WARNING;
  354|  87.6k|        }
  355|  87.9k|    }
  356|  87.9k|    return dataEntry;
  357|   216k|}
uresbund.cpp:_ZL17ures_openWithTypeP15UResourceBundlePKcS2_12UResOpenTypeP10UErrorCode:
 2712|   900k|                  UResOpenType openType, UErrorCode* status) {
 2713|   900k|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (2713:8): [True: 1.27k, False: 899k]
  ------------------
 2714|  1.27k|        return nullptr;
 2715|  1.27k|    }
 2716|       |
 2717|   899k|    UResourceDataEntry *entry;
 2718|   899k|    if(openType != URES_OPEN_DIRECT) {
  ------------------
  |  Branch (2718:8): [True: 733k, False: 166k]
  ------------------
 2719|   733k|        if (localeID == nullptr) {
  ------------------
  |  Branch (2719:13): [True: 1.69k, False: 731k]
  ------------------
 2720|  1.69k|            localeID = uloc_getDefault();
  ------------------
  |  | 1118|  1.69k|#define uloc_getDefault U_ICU_ENTRY_POINT_RENAME(uloc_getDefault)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2721|  1.69k|        }
 2722|       |        /* first "canonicalize" the locale ID */
 2723|   733k|        CharString canonLocaleID = ulocimp_getBaseName(localeID, *status);
  ------------------
  |  | 1199|   733k|#define ulocimp_getBaseName U_ICU_ENTRY_POINT_RENAME(ulocimp_getBaseName)
  |  |  ------------------
  |  |  |  |  123|   733k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   733k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   733k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2724|   733k|        if(U_FAILURE(*status)) {
  ------------------
  |  Branch (2724:12): [True: 222, False: 732k]
  ------------------
 2725|    222|            *status = U_ILLEGAL_ARGUMENT_ERROR;
 2726|    222|            return nullptr;
 2727|    222|        }
 2728|   732k|        entry = entryOpen(path, canonLocaleID.data(), openType, status);
 2729|   732k|    } else {
 2730|   166k|        entry = entryOpenDirect(path, localeID, status);
 2731|   166k|    }
 2732|   899k|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (2732:8): [True: 0, False: 899k]
  ------------------
 2733|      0|        return nullptr;
 2734|      0|    }
 2735|   899k|    if(entry == nullptr) {
  ------------------
  |  Branch (2735:8): [True: 0, False: 899k]
  ------------------
 2736|      0|        *status = U_MISSING_RESOURCE_ERROR;
 2737|      0|        return nullptr;
 2738|      0|    }
 2739|       |
 2740|   899k|    UBool isStackObject;
 2741|   899k|    if(r == nullptr) {
  ------------------
  |  Branch (2741:8): [True: 899k, False: 0]
  ------------------
 2742|   899k|        r = static_cast<UResourceBundle*>(uprv_malloc(sizeof(UResourceBundle)));
  ------------------
  |  | 1524|   899k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|   899k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   899k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   899k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2743|   899k|        if(r == nullptr) {
  ------------------
  |  Branch (2743:12): [True: 0, False: 899k]
  ------------------
 2744|      0|            entryClose(entry);
 2745|      0|            *status = U_MEMORY_ALLOCATION_ERROR;
 2746|      0|            return nullptr;
 2747|      0|        }
 2748|   899k|        isStackObject = false;
 2749|   899k|    } else {  // fill-in
 2750|      0|        isStackObject = ures_isStackObject(r);
 2751|      0|        ures_closeBundle(r, false);
 2752|      0|    }
 2753|   899k|    uprv_memset(r, 0, sizeof(UResourceBundle));
  ------------------
  |  |  100|   899k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|   899k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2754|   899k|    ures_setIsStackObject(r, isStackObject);
 2755|       |
 2756|   899k|    r->fValidLocaleDataEntry = r->fData = entry;
 2757|   899k|    r->fHasFallback = openType != URES_OPEN_DIRECT && !r->getResData().noFallback;
  ------------------
  |  Branch (2757:23): [True: 732k, False: 166k]
  |  Branch (2757:55): [True: 732k, False: 395]
  ------------------
 2758|   899k|    r->fIsTopLevel = true;
 2759|   899k|    r->fRes = r->getResData().rootRes;
 2760|   899k|    r->fSize = res_countArrayItems(&r->getResData(), r->fRes);
  ------------------
  |  |  197|   899k|#define res_countArrayItems U_ICU_ENTRY_POINT_RENAME(res_countArrayItems)
  |  |  ------------------
  |  |  |  |  123|   899k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   899k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   899k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2761|   899k|    r->fIndex = -1;
 2762|       |
 2763|   899k|    ResourceTracer(r).traceOpen();
 2764|       |
 2765|   899k|    return r;
 2766|   899k|}
uresbund.cpp:_ZL9entryOpenPKcS0_12UResOpenTypeP10UErrorCode:
  812|   732k|                                     UResOpenType openType, UErrorCode* status) {
  813|   732k|    U_ASSERT(openType != URES_OPEN_DIRECT);
  ------------------
  |  |   35|   732k|#   define U_ASSERT(exp) (void)0
  ------------------
  814|   732k|    UErrorCode intStatus = U_ZERO_ERROR;
  815|   732k|    UResourceDataEntry *r = nullptr;
  816|   732k|    UResourceDataEntry *t1 = nullptr;
  817|   732k|    UBool isDefault = false;
  818|   732k|    UBool isRoot = false;
  819|   732k|    UBool hasRealData = false;
  820|   732k|    UBool hasChopped = true;
  821|   732k|    UBool usingUSRData = U_USE_USRDATA && ( path == nullptr || uprv_strncmp(path,U_ICUDATA_NAME,8) == 0);
  ------------------
  |  |  157|  1.46M|#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|   732k|    char name[ULOC_FULLNAME_CAPACITY];
  824|   732k|    char usrDataPath[96];
  825|       |
  826|   732k|    initCache(status);
  827|       |
  828|   732k|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (828:8): [True: 0, False: 732k]
  ------------------
  829|      0|        return nullptr;
  830|      0|    }
  831|       |
  832|   732k|    uprv_strncpy(name, localeID, sizeof(name) - 1);
  ------------------
  |  |   43|   732k|#define uprv_strncpy(dst, src, size) U_STANDARD_CPP_NAMESPACE strncpy(dst, src, size)
  |  |  ------------------
  |  |  |  |  393|   732k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  833|   732k|    name[sizeof(name) - 1] = 0;
  834|       |
  835|   732k|    if ( usingUSRData ) {
  ------------------
  |  Branch (835:10): [True: 0, False: 732k]
  ------------------
  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|   732k|    const char *defaultLocale = uloc_getDefault();
  ------------------
  |  | 1118|   732k|#define uloc_getDefault U_ICU_ENTRY_POINT_RENAME(uloc_getDefault)
  |  |  ------------------
  |  |  |  |  123|   732k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   732k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   732k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  849|       |
  850|   732k|    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|   732k|    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|   732k|    if (intStatus == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (856:9): [True: 0, False: 732k]
  ------------------
  857|      0|        *status = intStatus;
  858|      0|        goto finish;
  859|      0|    }
  860|       |
  861|   732k|    if(r != nullptr) { /* if there is one real locale, we can look for parents. */
  ------------------
  |  Branch (861:8): [True: 621k, False: 111k]
  ------------------
  862|   621k|        t1 = r;
  863|   621k|        hasRealData = true;
  864|   621k|        if ( usingUSRData ) {  /* This code inserts user override data into the inheritance chain */
  ------------------
  |  Branch (864:14): [True: 0, False: 621k]
  ------------------
  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|   621k|        if ((hasChopped || mayHaveParent(name)) && !isRoot) {
  ------------------
  |  Branch (882:14): [True: 306k, False: 314k]
  |  Branch (882:28): [True: 1.09k, False: 313k]
  |  Branch (882:52): [True: 307k, False: 0]
  ------------------
  883|   307k|            if (!loadParentsExceptRoot(t1, name, UPRV_LENGTHOF(name), usingUSRData, usrDataPath, status)) {
  ------------------
  |  |   99|   307k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (883:17): [True: 0, False: 307k]
  ------------------
  884|      0|                goto finish;
  885|      0|            }
  886|   307k|        }
  887|   621k|    }
  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|   732k|    if(r==nullptr && openType == URES_OPEN_LOCALE_DEFAULT_ROOT && !isDefault && !isRoot) {
  ------------------
  |  Branch (891:8): [True: 111k, False: 621k]
  |  Branch (891:22): [True: 111k, False: 0]
  |  Branch (891:67): [True: 110k, False: 1.25k]
  |  Branch (891:81): [True: 110k, False: 0]
  ------------------
  892|       |        /* insert default locale */
  893|   110k|        uprv_strcpy(name, defaultLocale);
  ------------------
  |  |   36|   110k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|   110k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  894|   110k|        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|   110k|        if (intStatus == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (896:13): [True: 0, False: 110k]
  ------------------
  897|      0|            *status = intStatus;
  898|      0|            goto finish;
  899|      0|        }
  900|   110k|        intStatus = U_USING_DEFAULT_WARNING;
  901|   110k|        if(r != nullptr) { /* the default locale exists */
  ------------------
  |  Branch (901:12): [True: 110k, False: 311]
  ------------------
  902|   110k|            t1 = r;
  903|   110k|            hasRealData = true;
  904|   110k|            isDefault = true;
  905|       |            // TODO: Why not if (usingUSRData) { ... } like in the non-default-locale code path?
  906|   110k|            if ((hasChopped || mayHaveParent(name)) && !isRoot) {
  ------------------
  |  Branch (906:18): [True: 102k, False: 7.24k]
  |  Branch (906:32): [True: 0, False: 7.24k]
  |  Branch (906:56): [True: 102k, False: 0]
  ------------------
  907|   102k|                if (!loadParentsExceptRoot(t1, name, UPRV_LENGTHOF(name), usingUSRData, usrDataPath, status)) {
  ------------------
  |  |   99|   102k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (907:21): [True: 0, False: 102k]
  ------------------
  908|      0|                    goto finish;
  909|      0|                }
  910|   102k|            }
  911|   110k|        }
  912|   110k|    }
  913|       |
  914|       |    /* we could still have r == nullptr at this point - maybe even default locale is not */
  915|       |    /* present */
  916|   732k|    if(r == nullptr) {
  ------------------
  |  Branch (916:8): [True: 1.56k, False: 731k]
  ------------------
  917|  1.56k|        uprv_strcpy(name, kRootLocaleName);
  ------------------
  |  |   36|  1.56k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  1.56k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  918|  1.56k|        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|  1.56k|        if (intStatus == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (920:13): [True: 0, False: 1.56k]
  ------------------
  921|      0|            *status = intStatus;
  922|      0|            goto finish;
  923|      0|        }
  924|  1.56k|        if(r != nullptr) {
  ------------------
  |  Branch (924:12): [True: 1.56k, False: 0]
  ------------------
  925|  1.56k|            t1 = r;
  926|  1.56k|            intStatus = U_USING_DEFAULT_WARNING;
  927|  1.56k|            hasRealData = true;
  928|  1.56k|        } else { /* we don't even have the root locale */
  929|      0|            *status = U_MISSING_RESOURCE_ERROR;
  930|      0|            goto finish;
  931|      0|        }
  932|   731k|    } else if(!isRoot && uprv_strcmp(t1->fName, kRootLocaleName) != 0 &&
  ------------------
  |  |   38|   679k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   679k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (932:15): [True: 679k, False: 51.6k]
  |  Branch (932:26): [True: 679k, False: 0]
  ------------------
  933|   731k|            t1->fParent == nullptr && !r->fData.noFallback) {
  ------------------
  |  Branch (933:13): [True: 1.29k, False: 678k]
  |  Branch (933:39): [True: 898, False: 395]
  ------------------
  934|    898|        if (!insertRootBundle(t1, status)) {
  ------------------
  |  Branch (934:13): [True: 0, False: 898]
  ------------------
  935|      0|            goto finish;
  936|      0|        }
  937|    898|        if(!hasRealData) {
  ------------------
  |  Branch (937:12): [True: 0, False: 898]
  ------------------
  938|      0|            r->fBogus = U_USING_DEFAULT_WARNING;
  939|      0|        }
  940|    898|    }
  941|       |
  942|       |    // TODO: Does this ever loop?
  943|  2.10M|    while(r != nullptr && !isRoot && t1->fParent != nullptr) {
  ------------------
  |  Branch (943:11): [True: 2.10M, False: 0]
  |  Branch (943:27): [True: 2.04M, False: 53.2k]
  |  Branch (943:38): [True: 1.36M, False: 679k]
  ------------------
  944|  1.36M|        t1->fParent->fCountExisting++;
  945|  1.36M|        t1 = t1->fParent;
  946|  1.36M|    }
  947|       |
  948|   732k|finish:
  949|   732k|    if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (949:8): [True: 732k, False: 0]
  ------------------
  950|   732k|        if(intStatus != U_ZERO_ERROR) {
  ------------------
  |  Branch (950:12): [True: 294k, False: 438k]
  ------------------
  951|   294k|            *status = intStatus;  
  952|   294k|        }
  953|   732k|        return r;
  954|   732k|    } else {
  955|      0|        return nullptr;
  956|      0|    }
  957|   732k|}
uresbund.cpp:_ZL9initCacheP10UErrorCode:
  483|   899k|static void initCache(UErrorCode *status) {
  484|   899k|    umtx_initOnce(gCacheInitOnce, &createCache, *status);
  485|   899k|}
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|  2.23M|static int32_t U_CALLCONV hashEntry(const UHashTok parm) {
   59|  2.23M|    UResourceDataEntry* b = static_cast<UResourceDataEntry*>(parm.pointer);
   60|  2.23M|    UHashTok namekey, pathkey;
   61|  2.23M|    namekey.pointer = b->fName;
   62|  2.23M|    pathkey.pointer = b->fPath;
   63|  2.23M|    return uhash_hashChars(namekey)+37u*uhash_hashChars(pathkey);
  ------------------
  |  | 1011|  2.23M|#define uhash_hashChars U_ICU_ENTRY_POINT_RENAME(uhash_hashChars)
  |  |  ------------------
  |  |  |  |  123|  2.23M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.23M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.23M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  return uhash_hashChars(namekey)+37u*uhash_hashChars(pathkey);
  ------------------
  |  | 1011|  2.23M|#define uhash_hashChars U_ICU_ENTRY_POINT_RENAME(uhash_hashChars)
  |  |  ------------------
  |  |  |  |  123|  2.23M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.23M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.23M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   64|  2.23M|}
uresbund.cpp:_ZL14compareEntries8UElementS_:
   67|  2.19M|static UBool U_CALLCONV compareEntries(const UHashTok p1, const UHashTok p2) {
   68|  2.19M|    UResourceDataEntry* b1 = static_cast<UResourceDataEntry*>(p1.pointer);
   69|  2.19M|    UResourceDataEntry* b2 = static_cast<UResourceDataEntry*>(p2.pointer);
   70|  2.19M|    UHashTok name1, name2, path1, path2;
   71|  2.19M|    name1.pointer = b1->fName;
   72|  2.19M|    name2.pointer = b2->fName;
   73|  2.19M|    path1.pointer = b1->fPath;
   74|  2.19M|    path2.pointer = b2->fPath;
   75|  2.19M|    return uhash_compareChars(name1, name2) && uhash_compareChars(path1, path2);
  ------------------
  |  |  993|  2.19M|#define uhash_compareChars U_ICU_ENTRY_POINT_RENAME(uhash_compareChars)
  |  |  ------------------
  |  |  |  |  123|  2.19M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.19M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.19M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  return uhash_compareChars(name1, name2) && uhash_compareChars(path1, path2);
  ------------------
  |  |  993|  2.12M|#define uhash_compareChars U_ICU_ENTRY_POINT_RENAME(uhash_compareChars)
  |  |  ------------------
  |  |  |  |  123|  2.12M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.12M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.12M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (75:12): [True: 2.12M, False: 64.3k]
  |  Branch (75:48): [True: 2.12M, False: 0]
  ------------------
   76|  2.19M|}
uresbund.cpp:_ZL17findFirstExistingPKcPcS0_12UResOpenTypePaS3_S3_P10UErrorCode:
  665|   844k|                  UBool *isRoot, UBool *foundParent, UBool *isDefault, UErrorCode* status) {
  666|   844k|    UResourceDataEntry *r = nullptr;
  667|   844k|    UBool hasRealData = false;
  668|   844k|    *foundParent = true; /* we're starting with a fresh name */
  669|   844k|    char origName[ULOC_FULLNAME_CAPACITY];
  670|       |
  671|   844k|    uprv_strcpy(origName, name);
  ------------------
  |  |   36|   844k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|   844k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  672|  2.84M|    while(*foundParent && !hasRealData) {
  ------------------
  |  Branch (672:11): [True: 2.40M, False: 435k]
  |  Branch (672:27): [True: 1.99M, False: 409k]
  ------------------
  673|  1.99M|        r = init_entry(name, path, status);
  674|       |        /* Null pointer test */
  675|  1.99M|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (675:13): [True: 622, False: 1.99M]
  ------------------
  676|    622|            return nullptr;
  677|    622|        }
  678|  1.99M|        *isDefault = static_cast<UBool>(uprv_strncmp(name, defaultLocale, uprv_strlen(name)) == 0);
  ------------------
  |  |   44|  1.99M|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|  1.99M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  679|  1.99M|        hasRealData = static_cast<UBool>(r->fBogus == U_ZERO_ERROR);
  680|  1.99M|        if(!hasRealData) {
  ------------------
  |  Branch (680:12): [True: 1.26M, False: 732k]
  ------------------
  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|  1.26M|            r->fCountExisting--;
  687|       |            /*entryCloseInt(r);*/
  688|  1.26M|            r = nullptr;
  689|  1.26M|            *status = U_USING_FALLBACK_WARNING;
  690|  1.26M|        } else {
  691|   732k|            uprv_strcpy(name, r->fName); /* this is needed for supporting aliases */
  ------------------
  |  |   36|   732k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|   732k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  692|   732k|        }
  693|       |
  694|  1.99M|        *isRoot = static_cast<UBool>(uprv_strcmp(name, kRootLocaleName) == 0);
  ------------------
  |  |   38|  1.99M|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  1.99M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  695|       |
  696|       |        /*Fallback data stuff*/
  697|  1.99M|        if (!hasRealData) {
  ------------------
  |  Branch (697:13): [True: 1.26M, False: 732k]
  ------------------
  698|  1.26M|            *foundParent = getParentLocaleID(name, origName, openType);
  699|  1.26M|        } 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|   732k|            *foundParent = chopLocale(name);
  703|   732k|        }
  704|  1.99M|        if (*foundParent && *name == '\0') {
  ------------------
  |  Branch (704:13): [True: 1.55M, False: 435k]
  |  Branch (704:29): [True: 18.3k, False: 1.54M]
  ------------------
  705|  18.3k|            uprv_strcpy(name, "und");
  ------------------
  |  |   36|  18.3k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  18.3k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  706|  18.3k|        }
  707|  1.99M|    }
  708|   844k|    return r;
  709|   844k|}
uresbund.cpp:_ZL17getParentLocaleIDPcPKc12UResOpenType:
  211|  1.26M|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|  1.26M|    size_t nameLen = uprv_strlen(name);
  ------------------
  |  |   37|  1.26M|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  1.26M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  214|  1.26M|    if (!nameLen || name[nameLen - 1] == '_' || hasVariant(name)) {
  ------------------
  |  Branch (214:9): [True: 0, False: 1.26M]
  |  Branch (214:21): [True: 432k, False: 830k]
  |  Branch (214:49): [True: 322k, False: 507k]
  ------------------
  215|   754k|        return chopLocale(name);
  216|   754k|    }
  217|       |    
  218|   507k|    UErrorCode err = U_ZERO_ERROR;
  219|   507k|    CharString language;
  220|   507k|    CharString script;
  221|   507k|    CharString region;
  222|   507k|    ulocimp_getSubtags(name, &language, &script, &region, nullptr, nullptr, err);
  ------------------
  |  | 1209|   507k|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|   507k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   507k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   507k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  223|       |
  224|   507k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (224:9): [True: 0, False: 507k]
  ------------------
  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|   507k|    if (openType == URES_OPEN_LOCALE_DEFAULT_ROOT) {
  ------------------
  |  Branch (234:9): [True: 507k, False: 0]
  ------------------
  235|   507k|        const char* parentID = performFallbackLookup(name, parentLocaleChars, parentLocaleChars, parentLocaleTable, UPRV_LENGTHOF(parentLocaleTable));
  ------------------
  |  |   99|   507k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  236|   507k|        if (parentID != nullptr) {
  ------------------
  |  Branch (236:13): [True: 955, False: 506k]
  ------------------
  237|    955|            uprv_strcpy(name, parentID);
  ------------------
  |  |   36|    955|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|    955|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  238|    955|            return true;
  239|    955|        }
  240|   507k|    }
  241|       |
  242|   506k|    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|   506k|    if (!script.isEmpty() && !region.isEmpty()) {
  ------------------
  |  Branch (246:9): [True: 207k, False: 299k]
  |  Branch (246:30): [True: 2.79k, False: 204k]
  ------------------
  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|  2.79k|        if (getDefaultScript(language, region) == script) {
  ------------------
  |  Branch (250:13): [True: 797, False: 1.99k]
  ------------------
  251|    797|            workingLocale.append(language, err).append("_", err).append(region, err);
  252|  1.99k|        } else {
  253|  1.99k|            workingLocale.append(language, err).append("_", err).append(script, err);
  254|  1.99k|        }
  255|   504k|    } else if (!region.isEmpty()) {
  ------------------
  |  Branch (255:16): [True: 202k, False: 302k]
  ------------------
  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|   202k|        UErrorCode err = U_ZERO_ERROR;
  260|   202k|        CharString origNameLanguage;
  261|   202k|        CharString origNameScript;
  262|   202k|        ulocimp_getSubtags(origName, &origNameLanguage, &origNameScript, nullptr, nullptr, nullptr, err);
  ------------------
  |  | 1209|   202k|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|   202k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   202k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   202k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  263|   202k|        if (!origNameScript.isEmpty()) {
  ------------------
  |  Branch (263:13): [True: 746, False: 201k]
  ------------------
  264|    746|            workingLocale.append(language, err).append("_", err).append(origNameScript, err);
  265|   201k|        } else {
  266|   201k|            workingLocale.append(language, err).append("_", err).append(getDefaultScript(language, region), err);
  267|   201k|        }
  268|   302k|    } else if (!script.isEmpty()) {
  ------------------
  |  Branch (268:16): [True: 204k, False: 97.5k]
  ------------------
  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|   204k|        if (openType != URES_OPEN_LOCALE_DEFAULT_ROOT || getDefaultScript(language, CharString()) == script) {
  ------------------
  |  Branch (275:13): [True: 0, False: 204k]
  |  Branch (275:13): [True: 199k, False: 4.53k]
  |  Branch (275:58): [True: 199k, False: 4.53k]
  ------------------
  276|   199k|            workingLocale.append(language, err);
  277|   199k|        } else {
  278|  4.53k|            return false;
  279|  4.53k|        }
  280|   204k|    } else {
  281|       |        // if "name" just contains a language code, return false so the calling code falls back to "root"
  282|  97.5k|        return false;
  283|  97.5k|    }
  284|   404k|    if (U_SUCCESS(err) && !workingLocale.isEmpty()) {
  ------------------
  |  Branch (284:9): [True: 404k, False: 0]
  |  Branch (284:27): [True: 395k, False: 9.36k]
  ------------------
  285|   395k|        uprv_strcpy(name, workingLocale.data());
  ------------------
  |  |   36|   395k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|   395k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  286|   395k|        return true;
  287|   395k|    } else {
  288|  9.36k|        return false;
  289|  9.36k|    }
  290|   404k|}
uresbund.cpp:_ZL10hasVariantPKc:
   94|   830k|static UBool hasVariant(const char* localeID) {
   95|   830k|    UErrorCode err = U_ZERO_ERROR;
   96|   830k|    CheckedArrayByteSink sink(nullptr, 0);
   97|   830k|    ulocimp_getSubtags(
  ------------------
  |  | 1209|   830k|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|   830k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   830k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   830k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   98|   830k|            localeID,
   99|   830k|            nullptr,
  100|   830k|            nullptr,
  101|   830k|            nullptr,
  102|   830k|            &sink,
  103|   830k|            nullptr,
  104|   830k|            err);
  105|   830k|    return sink.NumberOfBytesAppended() != 0;
  106|   830k|}
uresbund.cpp:_ZL21performFallbackLookupPKcS0_S0_PKii:
  118|  1.12M|                                         int32_t lookupTableLength) {
  119|  1.12M|    const int32_t* bottom = lookupTable;
  120|  1.12M|    const int32_t* top = lookupTable + lookupTableLength;
  121|       |
  122|  11.0M|    while (bottom < top) {
  ------------------
  |  Branch (122:12): [True: 9.99M, False: 1.09M]
  ------------------
  123|       |        // Effectively, divide by 2 and round down to an even index
  124|  9.99M|        const int32_t* middle = bottom + (((top - bottom) / 4) * 2);
  125|  9.99M|        const char* entryKey = &(keyStrs[*middle]);
  126|  9.99M|        int32_t strcmpResult = uprv_strcmp(key, entryKey);
  ------------------
  |  |   38|  9.99M|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  9.99M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  127|  9.99M|        if (strcmpResult == 0) {
  ------------------
  |  Branch (127:13): [True: 21.1k, False: 9.97M]
  ------------------
  128|  21.1k|            return &(valueStrs[middle[1]]);
  129|  9.97M|        } else if (strcmpResult < 0) {
  ------------------
  |  Branch (129:20): [True: 5.81M, False: 4.15M]
  ------------------
  130|  5.81M|            top = middle;
  131|  5.81M|        } else {
  132|  4.15M|            bottom = middle + 2;
  133|  4.15M|        }
  134|  9.99M|    }
  135|  1.09M|    return nullptr;
  136|  1.12M|}
uresbund.cpp:_ZL16getDefaultScriptRKN6icu_7810CharStringES2_:
  138|   408k|static CharString getDefaultScript(const CharString& language, const CharString& region) {
  139|   408k|    const char* defaultScript = nullptr;
  140|   408k|    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|   408k|    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|   408k|    if (!region.isEmpty()) {
  ------------------
  |  Branch (147:9): [True: 204k, False: 204k]
  ------------------
  148|   204k|        CharString localeID;
  149|   204k|        localeID.append(language, err).append("_", err).append(region, err);
  150|   204k|        if (U_FAILURE(err)) {
  ------------------
  |  Branch (150:13): [True: 0, False: 204k]
  ------------------
  151|      0|            return result;
  152|      0|        }
  153|   204k|        defaultScript = performFallbackLookup(localeID.data(), dsLocaleIDChars, scriptCodeChars, defaultScriptTable, UPRV_LENGTHOF(defaultScriptTable));
  ------------------
  |  |   99|   204k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  154|   204k|    }
  155|       |    
  156|       |    // if we didn't find anything, look up just the language in the default script table
  157|   408k|    if (defaultScript == nullptr) {
  ------------------
  |  Branch (157:9): [True: 408k, False: 602]
  ------------------
  158|   408k|        defaultScript = performFallbackLookup(language.data(), dsLocaleIDChars, scriptCodeChars, defaultScriptTable, UPRV_LENGTHOF(defaultScriptTable));
  ------------------
  |  |   99|   408k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  159|   408k|    }
  160|       |    
  161|       |    // if either lookup above succeeded, copy the result from "defaultScript" into "result"; otherwise, return "Latn"
  162|   408k|    if (defaultScript != nullptr) {
  ------------------
  |  Branch (162:9): [True: 20.2k, False: 388k]
  ------------------
  163|  20.2k|        result.clear();
  164|  20.2k|        result.append(defaultScript, err);
  165|  20.2k|    }
  166|   408k|    return result;
  167|   408k|}
uresbund.cpp:_ZL10chopLocalePc:
   83|  1.48M|static UBool chopLocale(char *name) {
   84|  1.48M|    char *i = uprv_strrchr(name, '_');
  ------------------
  |  |   42|  1.48M|#define uprv_strrchr(s, c) U_STANDARD_CPP_NAMESPACE strrchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  1.48M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
   85|       |
   86|  1.48M|    if(i != nullptr) {
  ------------------
  |  Branch (86:8): [True: 1.16M, False: 324k]
  ------------------
   87|  1.16M|        *i = '\0';
   88|  1.16M|        return true;
   89|  1.16M|    }
   90|       |
   91|   324k|    return false;
   92|  1.48M|}
uresbund.cpp:_ZL10init_entryPKcS0_P10UErrorCode:
  514|  2.16M|static UResourceDataEntry *init_entry(const char *localeID, const char *path, UErrorCode *status) {
  515|  2.16M|    UResourceDataEntry *r = nullptr;
  516|  2.16M|    UResourceDataEntry find;
  517|       |    /*int32_t hashValue;*/
  518|  2.16M|    const char *name;
  519|  2.16M|    char aliasName[100] = { 0 };
  520|  2.16M|    int32_t aliasLen = 0;
  521|       |    /*UBool isAlias = false;*/
  522|       |    /*UHashTok hashkey; */
  523|       |
  524|  2.16M|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (524:8): [True: 311, False: 2.16M]
  ------------------
  525|    311|        return nullptr;
  526|    311|    }
  527|       |
  528|       |    /* here we try to deduce the right locale name */
  529|  2.16M|    if(localeID == nullptr) { /* if localeID is nullptr, we're trying to open default locale */
  ------------------
  |  Branch (529:8): [True: 0, False: 2.16M]
  ------------------
  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|  2.16M|    } else if(*localeID == 0) { /* if localeID is "" then we try to open root locale */
  ------------------
  |  Branch (531:15): [True: 50.8k, False: 2.11M]
  ------------------
  532|  50.8k|        name = kRootLocaleName;
  ------------------
  |  |   18|  50.8k|#define kRootLocaleName         "root"
  ------------------
  533|  2.11M|    } else { /* otherwise, we'll open what we're given */
  534|  2.11M|        name = localeID;
  535|  2.11M|    }
  536|       |
  537|  2.16M|    find.fName = const_cast<char*>(name);
  538|  2.16M|    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|  2.16M|    r = static_cast<UResourceDataEntry*>(uhash_get(cache, &find));
  ------------------
  |  | 1007|  2.16M|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  2.16M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.16M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.16M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  546|  2.16M|    if(r == nullptr) {
  ------------------
  |  Branch (546:8): [True: 36.1k, False: 2.12M]
  ------------------
  547|       |        /* if the entry is not yet in the hash table, we'll try to construct a new one */
  548|  36.1k|        r = static_cast<UResourceDataEntry*>(uprv_malloc(sizeof(UResourceDataEntry)));
  ------------------
  |  | 1524|  36.1k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  36.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  36.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  36.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  549|  36.1k|        if(r == nullptr) {
  ------------------
  |  Branch (549:12): [True: 0, False: 36.1k]
  ------------------
  550|      0|            *status = U_MEMORY_ALLOCATION_ERROR;
  551|      0|            return nullptr;
  552|      0|        }
  553|       |
  554|  36.1k|        uprv_memset(r, 0, sizeof(UResourceDataEntry));
  ------------------
  |  |  100|  36.1k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  36.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  555|       |        /*r->fHashKey = hashValue;*/
  556|       |
  557|  36.1k|        setEntryName(r, name, status);
  558|  36.1k|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (558:13): [True: 0, False: 36.1k]
  ------------------
  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|  36.1k|        if(path != nullptr) {
  ------------------
  |  Branch (563:12): [True: 18.3k, False: 17.7k]
  ------------------
  564|  18.3k|            r->fPath = uprv_strdup(path);
  ------------------
  |  | 1541|  18.3k|#define uprv_strdup U_ICU_ENTRY_POINT_RENAME(uprv_strdup)
  |  |  ------------------
  |  |  |  |  123|  18.3k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  18.3k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  18.3k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  565|  18.3k|            if(r->fPath == nullptr) {
  ------------------
  |  Branch (565:16): [True: 0, False: 18.3k]
  ------------------
  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|  18.3k|        }
  571|       |
  572|       |        /* this is the actual loading */
  573|  36.1k|        res_load(&(r->fData), r->fPath, r->fName, status);
  ------------------
  |  |  208|  36.1k|#define res_load U_ICU_ENTRY_POINT_RENAME(res_load)
  |  |  ------------------
  |  |  |  |  123|  36.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  36.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  36.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  574|       |
  575|  36.1k|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (575:13): [True: 33.9k, False: 2.16k]
  ------------------
  576|       |            /* if we failed to load due to an out-of-memory error, exit early. */
  577|  33.9k|            if (*status == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (577:17): [True: 0, False: 33.9k]
  ------------------
  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|  33.9k|            *status = U_USING_FALLBACK_WARNING;
  583|  33.9k|            r->fBogus = U_USING_FALLBACK_WARNING;
  584|  33.9k|        } else { /* if we have a regular entry */
  585|  2.16k|            Resource aliasres;
  586|  2.16k|            if (r->fData.usesPoolBundle) {
  ------------------
  |  Branch (586:17): [True: 2.13k, False: 30]
  ------------------
  587|  2.13k|                r->fPool = getPoolEntry(r->fPath, status);
  588|  2.13k|                if (U_SUCCESS(*status)) {
  ------------------
  |  Branch (588:21): [True: 2.13k, False: 0]
  ------------------
  589|  2.13k|                    const int32_t *poolIndexes = r->fPool->fData.pRoot + 1;
  590|  2.13k|                    if(r->fData.pRoot[1 + URES_INDEX_POOL_CHECKSUM] == poolIndexes[URES_INDEX_POOL_CHECKSUM]) {
  ------------------
  |  Branch (590:24): [True: 2.13k, False: 5]
  ------------------
  591|  2.13k|                        r->fData.poolBundleKeys = reinterpret_cast<const char*>(poolIndexes + (poolIndexes[URES_INDEX_LENGTH] & 0xff));
  592|  2.13k|                        r->fData.poolBundleStrings = r->fPool->fData.p16BitUnits;
  593|  2.13k|                    } else {
  594|      5|                        r->fBogus = *status = U_INVALID_FORMAT_ERROR;
  595|      5|                    }
  596|  2.13k|                } else {
  597|      0|                    r->fBogus = *status;
  598|      0|                }
  599|  2.13k|            }
  600|  2.16k|            if (U_SUCCESS(*status)) {
  ------------------
  |  Branch (600:17): [True: 2.16k, False: 5]
  ------------------
  601|       |                /* handle the alias by trying to get out the %%Alias tag.*/
  602|       |                /* We'll try to get alias string from the bundle */
  603|  2.16k|                aliasres = res_getResource(&(r->fData), "%%ALIAS");
  ------------------
  |  |  204|  2.16k|#define res_getResource U_ICU_ENTRY_POINT_RENAME(res_getResource)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  604|  2.16k|                if (aliasres != RES_BOGUS) {
  ------------------
  |  |   65|  2.16k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (604:21): [True: 53, False: 2.11k]
  ------------------
  605|       |                    // No tracing: called during initial data loading
  606|     53|                    const char16_t *alias = res_getStringNoTrace(&(r->fData), aliasres, &aliasLen);
  ------------------
  |  |  205|     53|#define res_getStringNoTrace U_ICU_ENTRY_POINT_RENAME(res_getStringNoTrace)
  |  |  ------------------
  |  |  |  |  123|     53|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     53|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     53|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  607|     53|                    if(alias != nullptr && aliasLen > 0) { /* if there is actual alias - unload and load new data */
  ------------------
  |  Branch (607:24): [True: 53, False: 0]
  |  Branch (607:44): [True: 53, False: 0]
  ------------------
  608|     53|                        u_UCharsToChars(alias, aliasName, aliasLen+1);
  ------------------
  |  |  211|     53|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|     53|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     53|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     53|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  609|     53|                        r->fAlias = init_entry(aliasName, path, status);
  610|     53|                    }
  611|     53|                }
  612|  2.16k|            }
  613|  2.16k|        }
  614|       |
  615|  36.1k|        {
  616|  36.1k|            UResourceDataEntry *oldR = nullptr;
  617|  36.1k|            if ((oldR = static_cast<UResourceDataEntry*>(uhash_get(cache, r))) == nullptr) { /* if the data is not cached */
  ------------------
  |  | 1007|  36.1k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  36.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  36.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  36.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (617:17): [True: 36.1k, False: 0]
  ------------------
  618|       |                /* just insert it in the cache */
  619|  36.1k|                UErrorCode cacheStatus = U_ZERO_ERROR;
  620|  36.1k|                uhash_put(cache, (void *)r, r, &cacheStatus);
  ------------------
  |  | 1032|  36.1k|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|  36.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  36.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  36.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  621|  36.1k|                if (U_FAILURE(cacheStatus)) {
  ------------------
  |  Branch (621:21): [True: 0, False: 36.1k]
  ------------------
  622|      0|                    *status = cacheStatus;
  623|      0|                    free_entry(r);
  624|      0|                    r = nullptr;
  625|      0|                }
  626|  36.1k|            } 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|  36.1k|        }
  633|       |
  634|  36.1k|    }
  635|  2.16M|    if(r != nullptr) {
  ------------------
  |  Branch (635:8): [True: 2.16M, False: 0]
  ------------------
  636|       |        /* return the real bundle */
  637|  2.16M|        while(r->fAlias != nullptr) {
  ------------------
  |  Branch (637:15): [True: 3.58k, False: 2.16M]
  ------------------
  638|  3.58k|            r = r->fAlias;
  639|  3.58k|        }
  640|  2.16M|        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|  2.16M|        if(r->fBogus != U_ZERO_ERROR && U_SUCCESS(*status)) {
  ------------------
  |  Branch (643:12): [True: 1.26M, False: 903k]
  |  Branch (643:41): [True: 1.26M, False: 5]
  ------------------
  644|  1.26M|             *status = r->fBogus; /* set the returning status */
  645|  1.26M|        }
  646|  2.16M|    }
  647|  2.16M|    return r;
  648|  2.16M|}
uresbund.cpp:_ZL12setEntryNameP18UResourceDataEntryPKcP10UErrorCode:
  489|  36.1k|static void setEntryName(UResourceDataEntry *res, const char *name, UErrorCode *status) {
  490|  36.1k|    int32_t len = static_cast<int32_t>(uprv_strlen(name));
  ------------------
  |  |   37|  36.1k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  36.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  491|  36.1k|    if(res->fName != nullptr && res->fName != res->fNameBuffer) {
  ------------------
  |  Branch (491:8): [True: 0, False: 36.1k]
  |  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|  36.1k|    if (len < static_cast<int32_t>(sizeof(res->fNameBuffer))) {
  ------------------
  |  Branch (494:9): [True: 1.63k, False: 34.5k]
  ------------------
  495|  1.63k|        res->fName = res->fNameBuffer;
  496|  1.63k|    }
  497|  34.5k|    else {
  498|  34.5k|        res->fName = static_cast<char*>(uprv_malloc(len + 1));
  ------------------
  |  | 1524|  34.5k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  34.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  34.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  34.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  499|  34.5k|    }
  500|  36.1k|    if(res->fName == nullptr) {
  ------------------
  |  Branch (500:8): [True: 0, False: 36.1k]
  ------------------
  501|      0|        *status = U_MEMORY_ALLOCATION_ERROR;
  502|  36.1k|    } else {
  503|  36.1k|        uprv_strcpy(res->fName, name);
  ------------------
  |  |   36|  36.1k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  36.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  504|  36.1k|    }
  505|  36.1k|}
uresbund.cpp:_ZL12getPoolEntryPKcP10UErrorCode:
  651|  2.13k|getPoolEntry(const char *path, UErrorCode *status) {
  652|  2.13k|    UResourceDataEntry *poolBundle = init_entry(kPoolBundleName, path, status);
  ------------------
  |  |   19|  2.13k|#define kPoolBundleName         "pool"
  ------------------
  653|  2.13k|    if( U_SUCCESS(*status) &&
  ------------------
  |  Branch (653:9): [True: 2.13k, False: 0]
  ------------------
  654|  2.13k|        (poolBundle == nullptr || poolBundle->fBogus != U_ZERO_ERROR || !poolBundle->fData.isPoolBundle)
  ------------------
  |  Branch (654:10): [True: 0, False: 2.13k]
  |  Branch (654:35): [True: 0, False: 2.13k]
  |  Branch (654:73): [True: 0, False: 2.13k]
  ------------------
  655|  2.13k|    ) {
  656|      0|        *status = U_INVALID_FORMAT_ERROR;
  657|      0|    }
  658|  2.13k|    return poolBundle;
  659|  2.13k|}
uresbund.cpp:_ZL13mayHaveParentPc:
  297|   322k|static UBool mayHaveParent(char *name) {
  298|   322k|    return (name[0] != 0 && uprv_strstr("nb nn",name) != nullptr);
  ------------------
  |  |   41|   322k|#define uprv_strstr(s, c) U_STANDARD_CPP_NAMESPACE strstr(s, c)
  |  |  ------------------
  |  |  |  |  393|   322k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (298:13): [True: 322k, False: 0]
  |  Branch (298:29): [True: 1.09k, False: 321k]
  ------------------
  299|   322k|}
uresbund.cpp:_ZL21loadParentsExceptRootRP18UResourceDataEntryPciaS2_P10UErrorCode:
  746|   410k|                      UBool usingUSRData, char usrDataPath[], UErrorCode *status) {
  747|   410k|    if (U_FAILURE(*status)) { return false; }
  ------------------
  |  Branch (747:9): [True: 0, False: 410k]
  ------------------
  748|   410k|    UBool checkParent = true;
  749|   411k|    while (checkParent && t1->fParent == nullptr && !t1->fData.noFallback &&
  ------------------
  |  Branch (749:12): [True: 410k, False: 575]
  |  Branch (749:27): [True: 1.25k, False: 409k]
  |  Branch (749:53): [True: 1.25k, False: 0]
  ------------------
  750|   411k|            res_getResource(&t1->fData,"%%ParentIsRoot") == RES_BOGUS) {
  ------------------
  |  |  204|  1.25k|#define res_getResource U_ICU_ENTRY_POINT_RENAME(res_getResource)
  |  |  ------------------
  |  |  |  |  123|  1.25k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.25k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.25k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          res_getResource(&t1->fData,"%%ParentIsRoot") == RES_BOGUS) {
  ------------------
  |  |   65|  1.25k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (750:13): [True: 1.25k, False: 0]
  ------------------
  751|  1.25k|        Resource parentRes = res_getResource(&t1->fData, "%%Parent");
  ------------------
  |  |  204|  1.25k|#define res_getResource U_ICU_ENTRY_POINT_RENAME(res_getResource)
  |  |  ------------------
  |  |  |  |  123|  1.25k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.25k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.25k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  752|  1.25k|        if (parentRes != RES_BOGUS) {  // An explicit parent was found.
  ------------------
  |  |   65|  1.25k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (752:13): [True: 509, False: 750]
  ------------------
  753|    509|            int32_t parentLocaleLen = 0;
  754|       |            // No tracing: called during initial data loading
  755|    509|            const char16_t *parentLocaleName = res_getStringNoTrace(&(t1->fData), parentRes, &parentLocaleLen);
  ------------------
  |  |  205|    509|#define res_getStringNoTrace U_ICU_ENTRY_POINT_RENAME(res_getStringNoTrace)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  756|    509|            if(parentLocaleName != nullptr && 0 < parentLocaleLen && parentLocaleLen < nameCapacity) {
  ------------------
  |  Branch (756:16): [True: 509, False: 0]
  |  Branch (756:47): [True: 509, False: 0]
  |  Branch (756:70): [True: 509, False: 0]
  ------------------
  757|    509|                u_UCharsToChars(parentLocaleName, name, parentLocaleLen + 1);
  ------------------
  |  |  211|    509|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  758|    509|                if (uprv_strcmp(name, kRootLocaleName) == 0) {
  ------------------
  |  |   38|    509|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    509|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (758:21): [True: 67, False: 442]
  ------------------
  759|     67|                    return true;
  760|     67|                }
  761|    509|            }
  762|    509|        }
  763|       |        // Insert regular parents.
  764|  1.19k|        UErrorCode parentStatus = U_ZERO_ERROR;
  765|  1.19k|        UResourceDataEntry *t2 = init_entry(name, t1->fPath, &parentStatus);
  766|  1.19k|        if (U_FAILURE(parentStatus)) {
  ------------------
  |  Branch (766:13): [True: 0, False: 1.19k]
  ------------------
  767|      0|            *status = parentStatus;
  768|      0|            return false;
  769|      0|        }
  770|  1.19k|        UResourceDataEntry *u2 = nullptr;
  771|  1.19k|        UErrorCode usrStatus = U_ZERO_ERROR;
  772|  1.19k|        if (usingUSRData) {  // This code inserts user override data into the inheritance chain.
  ------------------
  |  Branch (772:13): [True: 0, False: 1.19k]
  ------------------
  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|  1.19k|        if (usingUSRData && U_SUCCESS(usrStatus) && u2->fBogus == U_ZERO_ERROR) {
  ------------------
  |  Branch (781:13): [True: 0, False: 1.19k]
  |  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|  1.19k|        } else {
  785|  1.19k|            t1->fParent = t2;
  786|  1.19k|            if (usingUSRData) {
  ------------------
  |  Branch (786:17): [True: 0, False: 1.19k]
  ------------------
  787|       |                // The USR override data wasn't found, set it to be deleted.
  788|      0|                u2->fCountExisting = 0;
  789|      0|            }
  790|  1.19k|        }
  791|  1.19k|        t1 = t2;
  792|  1.19k|        checkParent = chopLocale(name) || mayHaveParent(name);
  ------------------
  |  Branch (792:23): [True: 612, False: 580]
  |  Branch (792:43): [True: 5, False: 575]
  ------------------
  793|  1.19k|    }
  794|   410k|    return true;
  795|   410k|}
uresbund.cpp:_ZL16insertRootBundleRP18UResourceDataEntryP10UErrorCode:
  798|    898|insertRootBundle(UResourceDataEntry *&t1, UErrorCode *status) {
  799|    898|    if (U_FAILURE(*status)) { return false; }
  ------------------
  |  Branch (799:9): [True: 0, False: 898]
  ------------------
  800|    898|    UErrorCode parentStatus = U_ZERO_ERROR;
  801|    898|    UResourceDataEntry *t2 = init_entry(kRootLocaleName, t1->fPath, &parentStatus);
  ------------------
  |  |   18|    898|#define kRootLocaleName         "root"
  ------------------
  802|    898|    if (U_FAILURE(parentStatus)) {
  ------------------
  |  Branch (802:9): [True: 0, False: 898]
  ------------------
  803|      0|        *status = parentStatus;
  804|      0|        return false;
  805|      0|    }
  806|    898|    t1->fParent = t2;
  807|    898|    t1 = t2;
  808|    898|    return true;
  809|    898|}
uresbund.cpp:_ZL15entryOpenDirectPKcS0_P10UErrorCode:
  966|   166k|entryOpenDirect(const char* path, const char* localeID, UErrorCode* status) {
  967|   166k|    initCache(status);
  968|   166k|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (968:8): [True: 0, False: 166k]
  ------------------
  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|   166k|    if (localeID == nullptr) {
  ------------------
  |  Branch (974:9): [True: 0, False: 166k]
  ------------------
  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|   166k|    } else if (*localeID == 0) {
  ------------------
  |  Branch (976:16): [True: 0, False: 166k]
  ------------------
  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|   166k|    Mutex lock(&resbMutex);
  982|       |
  983|       |    // findFirstExisting() without fallbacks.
  984|   166k|    UResourceDataEntry *r = init_entry(localeID, path, status);
  985|   166k|    if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (985:8): [True: 166k, False: 0]
  ------------------
  986|   166k|        if(r->fBogus != U_ZERO_ERROR) {
  ------------------
  |  Branch (986:12): [True: 0, False: 166k]
  ------------------
  987|      0|            r->fCountExisting--;
  988|      0|            r = nullptr;
  989|      0|        }
  990|   166k|    } 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|   166k|    UResourceDataEntry *t1 = r;
  997|   166k|    if(r != nullptr && uprv_strcmp(localeID, kRootLocaleName) != 0 &&  // not root
  ------------------
  |  |   38|   166k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   166k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (997:8): [True: 166k, False: 0]
  |  Branch (997:24): [True: 166k, False: 0]
  ------------------
  998|   166k|            r->fParent == nullptr && !r->fData.noFallback &&
  ------------------
  |  Branch (998:13): [True: 166k, False: 0]
  |  Branch (998:38): [True: 0, False: 166k]
  ------------------
  999|   166k|            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|   166k|    if(r != nullptr) {
  ------------------
  |  Branch (1013:8): [True: 166k, False: 0]
  ------------------
 1014|       |        // TODO: Does this ever loop?
 1015|   166k|        while(t1->fParent != nullptr) {
  ------------------
  |  Branch (1015:15): [True: 0, False: 166k]
  ------------------
 1016|      0|            t1->fParent->fCountExisting++;
 1017|      0|            t1 = t1->fParent;
 1018|      0|        }
 1019|   166k|    }
 1020|   166k|    return r;
 1021|   166k|}
uresbund.cpp:_ZL32getParentForFunctionalEquivalentPKcP15UResourceBundleS2_RN6icu_7810CharStringE:
 3042|   134k|                                             CharString&      parent) {
 3043|       |    // Get parent.
 3044|       |    // First check for a parent from %%Parent resource (Note that in resource trees
 3045|       |    // such as collation, data may have different parents than in parentLocales).
 3046|   134k|    UErrorCode subStatus = U_ZERO_ERROR;
 3047|   134k|    parent.clear();
 3048|   134k|    if (res != nullptr) {
  ------------------
  |  Branch (3048:9): [True: 134k, False: 9]
  ------------------
 3049|   134k|        ures_getByKey(res, "%%Parent", bund1, &subStatus);
  ------------------
  |  | 1661|   134k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|   134k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   134k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   134k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3050|   134k|        if (U_SUCCESS(subStatus)) {
  ------------------
  |  Branch (3050:13): [True: 5.82k, False: 128k]
  ------------------
 3051|  5.82k|            int32_t length16;
 3052|  5.82k|            const char16_t* s16 = ures_getString(bund1, &length16, &subStatus);
  ------------------
  |  | 1675|  5.82k|#define ures_getString U_ICU_ENTRY_POINT_RENAME(ures_getString)
  |  |  ------------------
  |  |  |  |  123|  5.82k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.82k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.82k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3053|  5.82k|            parent.appendInvariantChars(s16, length16, subStatus);
 3054|  5.82k|        }
 3055|   134k|    }
 3056|       |    
 3057|       |    // If none there, use normal truncation parent
 3058|   134k|    if (U_FAILURE(subStatus) || parent.isEmpty()) {
  ------------------
  |  Branch (3058:9): [True: 128k, False: 5.83k]
  |  Branch (3058:33): [True: 9, False: 5.82k]
  ------------------
 3059|   128k|        subStatus = U_ZERO_ERROR;
 3060|   128k|        parent = ulocimp_getParent(localeID, subStatus);
  ------------------
  |  | 1205|   128k|#define ulocimp_getParent U_ICU_ENTRY_POINT_RENAME(ulocimp_getParent)
  |  |  ------------------
  |  |  |  |  123|   128k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   128k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   128k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 3061|   128k|    }
 3062|   134k|}

res_load_78:
  260|  36.1k|         const char *path, const char *name, UErrorCode *errorCode) {
  261|  36.1k|    UVersionInfo formatVersion;
  262|       |
  263|  36.1k|    uprv_memset(pResData, 0, sizeof(ResourceData));
  ------------------
  |  |  100|  36.1k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  36.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  264|       |
  265|       |    /* load the ResourceBundle file */
  266|  36.1k|    pResData->data=udata_openChoice(path, "res", name, isAcceptable, formatVersion, errorCode);
  ------------------
  |  |  894|  36.1k|#define udata_openChoice U_ICU_ENTRY_POINT_RENAME(udata_openChoice)
  |  |  ------------------
  |  |  |  |  123|  36.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  36.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  36.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  267|  36.1k|    if(U_FAILURE(*errorCode)) {
  ------------------
  |  Branch (267:8): [True: 33.9k, False: 2.16k]
  ------------------
  268|  33.9k|        return;
  269|  33.9k|    }
  270|       |
  271|       |    /* get its memory and initialize *pResData */
  272|  2.16k|    res_init(pResData, formatVersion, udata_getMemory(pResData->data), -1, errorCode);
  ------------------
  |  |  891|  2.16k|#define udata_getMemory U_ICU_ENTRY_POINT_RENAME(udata_getMemory)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  273|  2.16k|}
res_getPublicType_78:
  306|  6.61M|res_getPublicType(Resource res) {
  307|  6.61M|    return (UResType)gPublicTypes[RES_GET_TYPE(res)];
  ------------------
  |  |   68|  6.61M|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  308|  6.61M|}
res_getStringNoTrace_78:
  311|  5.87M|res_getStringNoTrace(const ResourceData *pResData, Resource res, int32_t *pLength) {
  312|  5.87M|    const char16_t *p;
  313|  5.87M|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|  5.87M|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  314|  5.87M|    int32_t length;
  315|  5.87M|    if(RES_GET_TYPE(res)==URES_STRING_V2) {
  ------------------
  |  |   68|  5.87M|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (315:8): [True: 5.84M, False: 26.1k]
  ------------------
  316|  5.84M|        int32_t first;
  317|  5.84M|        if((int32_t)offset<pResData->poolStringIndexLimit) {
  ------------------
  |  Branch (317:12): [True: 3.04M, False: 2.79M]
  ------------------
  318|  3.04M|            p=(const char16_t *)pResData->poolBundleStrings+offset;
  319|  3.04M|        } else {
  320|  2.79M|            p=(const char16_t *)pResData->p16BitUnits+(offset-pResData->poolStringIndexLimit);
  321|  2.79M|        }
  322|  5.84M|        first=*p;
  323|  5.84M|        if(!U16_IS_TRAIL(first)) {
  ------------------
  |  |   67|  5.84M|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  ------------------
  |  Branch (323:12): [True: 5.84M, False: 2.06k]
  ------------------
  324|  5.84M|            length=u_strlen(p);
  ------------------
  |  |  393|  5.84M|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|  5.84M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.84M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.84M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  325|  5.84M|        } else if(first<0xdfef) {
  ------------------
  |  Branch (325:19): [True: 2.06k, False: 0]
  ------------------
  326|  2.06k|            length=first&0x3ff;
  327|  2.06k|            ++p;
  328|  2.06k|        } else if(first<0xdfff) {
  ------------------
  |  Branch (328:19): [True: 0, False: 0]
  ------------------
  329|      0|            length=((first-0xdfef)<<16)|p[1];
  330|      0|            p+=2;
  331|      0|        } else {
  332|      0|            length=((int32_t)p[1]<<16)|p[2];
  333|      0|            p+=3;
  334|      0|        }
  335|  5.84M|    } else if(res==offset) /* RES_GET_TYPE(res)==URES_STRING */ {
  ------------------
  |  Branch (335:15): [True: 0, False: 26.1k]
  ------------------
  336|      0|        const int32_t *p32= res==0 ? &gEmptyString.length : pResData->pRoot+res;
  ------------------
  |  Branch (336:29): [True: 0, False: 0]
  ------------------
  337|      0|        length=*p32++;
  338|      0|        p=(const char16_t *)p32;
  339|  26.1k|    } else {
  340|  26.1k|        p=nullptr;
  341|  26.1k|        length=0;
  342|  26.1k|    }
  343|  5.87M|    if(pLength) {
  ------------------
  |  Branch (343:8): [True: 5.87M, False: 4.16k]
  ------------------
  344|  5.87M|        *pLength=length;
  345|  5.87M|    }
  346|  5.87M|    return p;
  347|  5.87M|}
res_getAlias_78:
  420|  1.02M|res_getAlias(const ResourceData *pResData, Resource res, int32_t *pLength) {
  421|  1.02M|    const char16_t *p;
  422|  1.02M|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|  1.02M|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  423|  1.02M|    int32_t length;
  424|  1.02M|    if(RES_GET_TYPE(res)==URES_ALIAS) {
  ------------------
  |  |   68|  1.02M|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (424:8): [True: 1.02M, False: 0]
  ------------------
  425|  1.02M|        const int32_t *p32= offset==0 ? &gEmptyString.length : pResData->pRoot+offset;
  ------------------
  |  Branch (425:29): [True: 0, False: 1.02M]
  ------------------
  426|  1.02M|        length=*p32++;
  427|  1.02M|        p=(const char16_t *)p32;
  428|  1.02M|    } else {
  429|      0|        p=nullptr;
  430|      0|        length=0;
  431|      0|    }
  432|  1.02M|    if(pLength) {
  ------------------
  |  Branch (432:8): [True: 1.02M, False: 0]
  ------------------
  433|  1.02M|        *pLength=length;
  434|  1.02M|    }
  435|  1.02M|    return p;
  436|  1.02M|}
res_getBinaryNoTrace_78:
  439|    103|res_getBinaryNoTrace(const ResourceData *pResData, Resource res, int32_t *pLength) {
  440|    103|    const uint8_t *p;
  441|    103|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|    103|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  442|    103|    int32_t length;
  443|    103|    if(RES_GET_TYPE(res)==URES_BINARY) {
  ------------------
  |  |   68|    103|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (443:8): [True: 103, False: 0]
  ------------------
  444|    103|        const int32_t *p32= offset==0 ? (const int32_t*)&gEmpty32 : pResData->pRoot+offset;
  ------------------
  |  Branch (444:29): [True: 0, False: 103]
  ------------------
  445|    103|        length=*p32++;
  446|    103|        p=(const uint8_t *)p32;
  447|    103|    } else {
  448|      0|        p=nullptr;
  449|      0|        length=0;
  450|      0|    }
  451|    103|    if(pLength) {
  ------------------
  |  Branch (451:8): [True: 103, False: 0]
  ------------------
  452|    103|        *pLength=length;
  453|    103|    }
  454|    103|    return p;
  455|    103|}
res_getIntVectorNoTrace_78:
  459|  34.8k|res_getIntVectorNoTrace(const ResourceData *pResData, Resource res, int32_t *pLength) {
  460|  34.8k|    const int32_t *p;
  461|  34.8k|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|  34.8k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  462|  34.8k|    int32_t length;
  463|  34.8k|    if(RES_GET_TYPE(res)==URES_INT_VECTOR) {
  ------------------
  |  |   68|  34.8k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (463:8): [True: 34.8k, False: 0]
  ------------------
  464|  34.8k|        p= offset==0 ? (const int32_t *)&gEmpty32 : pResData->pRoot+offset;
  ------------------
  |  Branch (464:12): [True: 0, False: 34.8k]
  ------------------
  465|  34.8k|        length=*p++;
  466|  34.8k|    } else {
  467|      0|        p=nullptr;
  468|      0|        length=0;
  469|      0|    }
  470|  34.8k|    if(pLength) {
  ------------------
  |  Branch (470:8): [True: 34.8k, False: 0]
  ------------------
  471|  34.8k|        *pLength=length;
  472|  34.8k|    }
  473|  34.8k|    return p;
  474|  34.8k|}
res_countArrayItems_78:
  477|  3.97M|res_countArrayItems(const ResourceData *pResData, Resource res) {
  478|  3.97M|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|  3.97M|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  479|  3.97M|    switch(RES_GET_TYPE(res)) {
  ------------------
  |  |   68|  3.97M|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  480|      0|    case URES_STRING:
  ------------------
  |  Branch (480:5): [True: 0, False: 3.97M]
  ------------------
  481|   419k|    case URES_STRING_V2:
  ------------------
  |  Branch (481:5): [True: 419k, False: 3.55M]
  ------------------
  482|   419k|    case URES_BINARY:
  ------------------
  |  Branch (482:5): [True: 100, False: 3.97M]
  ------------------
  483|   419k|    case URES_ALIAS:
  ------------------
  |  Branch (483:5): [True: 0, False: 3.97M]
  ------------------
  484|   595k|    case URES_INT:
  ------------------
  |  Branch (484:5): [True: 176k, False: 3.79M]
  ------------------
  485|   630k|    case URES_INT_VECTOR:
  ------------------
  |  Branch (485:5): [True: 34.8k, False: 3.93M]
  ------------------
  486|   630k|        return 1;
  487|  63.8k|    case URES_ARRAY:
  ------------------
  |  Branch (487:5): [True: 63.8k, False: 3.90M]
  ------------------
  488|  63.8k|    case URES_TABLE32:
  ------------------
  |  Branch (488:5): [True: 0, False: 3.97M]
  ------------------
  489|  63.8k|        return offset==0 ? 0 : *(pResData->pRoot+offset);
  ------------------
  |  Branch (489:16): [True: 0, False: 63.8k]
  ------------------
  490|  2.58M|    case URES_TABLE:
  ------------------
  |  Branch (490:5): [True: 2.58M, False: 1.38M]
  ------------------
  491|  2.58M|        return offset==0 ? 0 : *((const uint16_t *)(pResData->pRoot+offset));
  ------------------
  |  Branch (491:16): [True: 144k, False: 2.43M]
  ------------------
  492|   176k|    case URES_ARRAY16:
  ------------------
  |  Branch (492:5): [True: 176k, False: 3.79M]
  ------------------
  493|   694k|    case URES_TABLE16:
  ------------------
  |  Branch (493:5): [True: 518k, False: 3.45M]
  ------------------
  494|   694k|        return pResData->p16BitUnits[offset];
  495|      0|    default:
  ------------------
  |  Branch (495:5): [True: 0, False: 3.97M]
  ------------------
  496|      0|        return 0;
  497|  3.97M|    }
  498|  3.97M|}
_ZN6icu_7817ResourceDataValueD2Ev:
  502|   780k|ResourceDataValue::~ResourceDataValue() {}
_ZNK6icu_7817ResourceDataValue7getTypeEv:
  504|  6.50M|UResType ResourceDataValue::getType() const {
  505|  6.50M|    return res_getPublicType(res);
  ------------------
  |  |  203|  6.50M|#define res_getPublicType U_ICU_ENTRY_POINT_RENAME(res_getPublicType)
  |  |  ------------------
  |  |  |  |  123|  6.50M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.50M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.50M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  506|  6.50M|}
_ZNK6icu_7817ResourceDataValue9getStringERiR10UErrorCode:
  508|  3.85M|const char16_t *ResourceDataValue::getString(int32_t &length, UErrorCode &errorCode) const {
  509|  3.85M|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (509:8): [True: 0, False: 3.85M]
  ------------------
  510|      0|        return nullptr;
  511|      0|    }
  512|  3.85M|    const char16_t *s = res_getString(fTraceInfo, &getData(), res, &length);
  513|  3.85M|    if(s == nullptr) {
  ------------------
  |  Branch (513:8): [True: 26.1k, False: 3.82M]
  ------------------
  514|  26.1k|        errorCode = U_RESOURCE_TYPE_MISMATCH;
  515|  26.1k|    }
  516|  3.85M|    return s;
  517|  3.85M|}
_ZNK6icu_7817ResourceDataValue14getAliasStringERiR10UErrorCode:
  519|  87.5k|const char16_t *ResourceDataValue::getAliasString(int32_t &length, UErrorCode &errorCode) const {
  520|  87.5k|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (520:8): [True: 0, False: 87.5k]
  ------------------
  521|      0|        return nullptr;
  522|      0|    }
  523|  87.5k|    const char16_t *s = res_getAlias(&getData(), res, &length);
  ------------------
  |  |  199|  87.5k|#define res_getAlias U_ICU_ENTRY_POINT_RENAME(res_getAlias)
  |  |  ------------------
  |  |  |  |  123|  87.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  87.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  87.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  524|  87.5k|    if(s == nullptr) {
  ------------------
  |  Branch (524:8): [True: 0, False: 87.5k]
  ------------------
  525|      0|        errorCode = U_RESOURCE_TYPE_MISMATCH;
  526|      0|    }
  527|  87.5k|    return s;
  528|  87.5k|}
_ZNK6icu_7817ResourceDataValue12getIntVectorERiR10UErrorCode:
  550|      3|const int32_t *ResourceDataValue::getIntVector(int32_t &length, UErrorCode &errorCode) const {
  551|      3|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (551:8): [True: 0, False: 3]
  ------------------
  552|      0|        return nullptr;
  553|      0|    }
  554|      3|    const int32_t *iv = res_getIntVector(fTraceInfo, &getData(), res, &length);
  555|      3|    if(iv == nullptr) {
  ------------------
  |  Branch (555:8): [True: 0, False: 3]
  ------------------
  556|      0|        errorCode = U_RESOURCE_TYPE_MISMATCH;
  557|      0|    }
  558|      3|    return iv;
  559|      3|}
_ZNK6icu_7817ResourceDataValue9getBinaryERiR10UErrorCode:
  561|      3|const uint8_t *ResourceDataValue::getBinary(int32_t &length, UErrorCode &errorCode) const {
  562|      3|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (562:8): [True: 0, False: 3]
  ------------------
  563|      0|        return nullptr;
  564|      0|    }
  565|      3|    const uint8_t *b = res_getBinary(fTraceInfo, &getData(), res, &length);
  566|      3|    if(b == nullptr) {
  ------------------
  |  Branch (566:8): [True: 0, False: 3]
  ------------------
  567|      0|        errorCode = U_RESOURCE_TYPE_MISMATCH;
  568|      0|    }
  569|      3|    return b;
  570|      3|}
_ZNK6icu_7817ResourceDataValue8getArrayER10UErrorCode:
  572|   360k|ResourceArray ResourceDataValue::getArray(UErrorCode &errorCode) const {
  573|   360k|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (573:8): [True: 0, False: 360k]
  ------------------
  574|      0|        return {};
  575|      0|    }
  576|   360k|    const uint16_t *items16 = nullptr;
  577|   360k|    const Resource *items32 = nullptr;
  578|   360k|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|   360k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  579|   360k|    int32_t length = 0;
  580|   360k|    switch(RES_GET_TYPE(res)) {
  ------------------
  |  |   68|   360k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  581|  20.2k|    case URES_ARRAY:
  ------------------
  |  Branch (581:5): [True: 20.2k, False: 340k]
  ------------------
  582|  20.2k|        if (offset!=0) {  // empty if offset==0
  ------------------
  |  Branch (582:13): [True: 20.2k, False: 0]
  ------------------
  583|  20.2k|            items32 = reinterpret_cast<const Resource*>(getData().pRoot) + offset;
  584|  20.2k|            length = *items32++;
  585|  20.2k|        }
  586|  20.2k|        break;
  587|   340k|    case URES_ARRAY16:
  ------------------
  |  Branch (587:5): [True: 340k, False: 20.2k]
  ------------------
  588|   340k|        items16 = getData().p16BitUnits+offset;
  589|   340k|        length = *items16++;
  590|   340k|        break;
  591|      0|    default:
  ------------------
  |  Branch (591:5): [True: 0, False: 360k]
  ------------------
  592|      0|        errorCode = U_RESOURCE_TYPE_MISMATCH;
  593|      0|        return {};
  594|   360k|    }
  595|   360k|    return ResourceArray(items16, items32, length, fTraceInfo);
  596|   360k|}
_ZNK6icu_7817ResourceDataValue8getTableER10UErrorCode:
  598|  2.37M|ResourceTable ResourceDataValue::getTable(UErrorCode &errorCode) const {
  599|  2.37M|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (599:8): [True: 0, False: 2.37M]
  ------------------
  600|      0|        return {};
  601|      0|    }
  602|  2.37M|    const uint16_t *keys16 = nullptr;
  603|  2.37M|    const int32_t *keys32 = nullptr;
  604|  2.37M|    const uint16_t *items16 = nullptr;
  605|  2.37M|    const Resource *items32 = nullptr;
  606|  2.37M|    uint32_t offset = RES_GET_OFFSET(res);
  ------------------
  |  |   69|  2.37M|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  607|  2.37M|    int32_t length = 0;
  608|  2.37M|    switch(RES_GET_TYPE(res)) {
  ------------------
  |  |   68|  2.37M|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  609|  1.27M|    case URES_TABLE:
  ------------------
  |  Branch (609:5): [True: 1.27M, False: 1.10M]
  ------------------
  610|  1.27M|        if (offset != 0) {  // empty if offset==0
  ------------------
  |  Branch (610:13): [True: 1.27M, False: 0]
  ------------------
  611|  1.27M|            keys16 = reinterpret_cast<const uint16_t*>(getData().pRoot + offset);
  612|  1.27M|            length = *keys16++;
  613|  1.27M|            items32 = reinterpret_cast<const Resource*>(keys16 + length + (~length & 1));
  614|  1.27M|        }
  615|  1.27M|        break;
  616|  1.10M|    case URES_TABLE16:
  ------------------
  |  Branch (616:5): [True: 1.10M, False: 1.27M]
  ------------------
  617|  1.10M|        keys16 = getData().p16BitUnits+offset;
  618|  1.10M|        length = *keys16++;
  619|  1.10M|        items16 = keys16 + length;
  620|  1.10M|        break;
  621|      0|    case URES_TABLE32:
  ------------------
  |  Branch (621:5): [True: 0, False: 2.37M]
  ------------------
  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: 2.37M]
  ------------------
  629|      0|        errorCode = U_RESOURCE_TYPE_MISMATCH;
  630|      0|        return {};
  631|  2.37M|    }
  632|  2.37M|    return ResourceTable(keys16, keys32, items16, items32, length, fTraceInfo);
  633|  2.37M|}
_ZNK6icu_7817ResourceDataValue21isNoInheritanceMarkerEv:
  635|  1.30k|UBool ResourceDataValue::isNoInheritanceMarker() const {
  636|  1.30k|    return ::isNoInheritanceMarker(&getData(), res);
  637|  1.30k|}
_ZNK6icu_7817ResourceDataValue14getStringArrayEPNS_13UnicodeStringEiR10UErrorCode:
  640|   180k|                                          UErrorCode &errorCode) const {
  641|   180k|    return ::getStringArray(&getData(), getArray(errorCode), dest, capacity, errorCode);
  642|   180k|}
res_getTableItemByKey_78:
  713|  9.84M|                      int32_t *indexR, const char **key) {
  714|  9.84M|    uint32_t offset=RES_GET_OFFSET(table);
  ------------------
  |  |   69|  9.84M|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  715|  9.84M|    int32_t length;
  716|  9.84M|    int32_t idx;
  717|  9.84M|    if(key == nullptr || *key == nullptr) {
  ------------------
  |  Branch (717:8): [True: 0, False: 9.84M]
  |  Branch (717:26): [True: 0, False: 9.84M]
  ------------------
  718|      0|        return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  719|      0|    }
  720|  9.84M|    switch(RES_GET_TYPE(table)) {
  ------------------
  |  |   68|  9.84M|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  721|  9.72M|    case URES_TABLE: {
  ------------------
  |  Branch (721:5): [True: 9.72M, False: 118k]
  ------------------
  722|  9.72M|        if (offset!=0) { /* empty if offset==0 */
  ------------------
  |  Branch (722:13): [True: 8.60M, False: 1.12M]
  ------------------
  723|  8.60M|            const uint16_t *p= (const uint16_t *)(pResData->pRoot+offset);
  724|  8.60M|            length=*p++;
  725|  8.60M|            *indexR=idx=_res_findTableItem(pResData, p, length, *key, key);
  726|  8.60M|            if(idx>=0) {
  ------------------
  |  Branch (726:16): [True: 6.85M, False: 1.75M]
  ------------------
  727|  6.85M|                const Resource *p32=(const Resource *)(p+length+(~length&1));
  728|  6.85M|                return p32[idx];
  729|  6.85M|            }
  730|  8.60M|        }
  731|  2.87M|        break;
  732|  9.72M|    }
  733|  2.87M|    case URES_TABLE16: {
  ------------------
  |  Branch (733:5): [True: 118k, False: 9.72M]
  ------------------
  734|   118k|        const uint16_t *p=pResData->p16BitUnits+offset;
  735|   118k|        length=*p++;
  736|   118k|        *indexR=idx=_res_findTableItem(pResData, p, length, *key, key);
  737|   118k|        if(idx>=0) {
  ------------------
  |  Branch (737:12): [True: 38.1k, False: 80.3k]
  ------------------
  738|  38.1k|            return makeResourceFrom16(pResData, p[length+idx]);
  739|  38.1k|        }
  740|  80.3k|        break;
  741|   118k|    }
  742|  80.3k|    case URES_TABLE32: {
  ------------------
  |  Branch (742:5): [True: 0, False: 9.84M]
  ------------------
  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: 9.84M]
  ------------------
  754|      0|        break;
  755|  9.84M|    }
  756|  2.95M|    return RES_BOGUS;
  ------------------
  |  |   65|  2.95M|#define RES_BOGUS 0xffffffff
  ------------------
  757|  9.84M|}
res_getTableItemByIndex_78:
  761|   107k|                        int32_t indexR, const char **key) {
  762|   107k|    uint32_t offset=RES_GET_OFFSET(table);
  ------------------
  |  |   69|   107k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  763|   107k|    int32_t length;
  764|   107k|    if (indexR < 0) {
  ------------------
  |  Branch (764:9): [True: 0, False: 107k]
  ------------------
  765|      0|        return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  766|      0|    }
  767|   107k|    switch(RES_GET_TYPE(table)) {
  ------------------
  |  |   68|   107k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  768|  28.1k|    case URES_TABLE: {
  ------------------
  |  Branch (768:5): [True: 28.1k, False: 79.7k]
  ------------------
  769|  28.1k|        if (offset != 0) { /* empty if offset==0 */
  ------------------
  |  Branch (769:13): [True: 28.1k, False: 0]
  ------------------
  770|  28.1k|            const uint16_t *p= (const uint16_t *)(pResData->pRoot+offset);
  771|  28.1k|            length=*p++;
  772|  28.1k|            if(indexR<length) {
  ------------------
  |  Branch (772:16): [True: 28.1k, False: 0]
  ------------------
  773|  28.1k|                const Resource *p32=(const Resource *)(p+length+(~length&1));
  774|  28.1k|                if(key!=nullptr) {
  ------------------
  |  Branch (774:20): [True: 28.1k, False: 0]
  ------------------
  775|  28.1k|                    *key=RES_GET_KEY16(pResData, p[indexR]);
  ------------------
  |  |   44|  28.1k|    ((keyOffset)<(pResData)->localKeyLimit ? \
  |  |  ------------------
  |  |  |  Branch (44:6): [True: 1.97k, False: 26.1k]
  |  |  ------------------
  |  |   45|  28.1k|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   46|  28.1k|        (pResData)->poolBundleKeys+(keyOffset)-(pResData)->localKeyLimit)
  ------------------
  776|  28.1k|                }
  777|  28.1k|                return p32[indexR];
  778|  28.1k|            }
  779|  28.1k|        }
  780|      0|        break;
  781|  28.1k|    }
  782|  79.7k|    case URES_TABLE16: {
  ------------------
  |  Branch (782:5): [True: 79.7k, False: 28.1k]
  ------------------
  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: 107k]
  ------------------
  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: 107k]
  ------------------
  807|      0|        break;
  808|   107k|    }
  809|      0|    return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  810|   107k|}
res_getResource_78:
  813|  4.68k|res_getResource(const ResourceData *pResData, const char *key) {
  814|  4.68k|    const char *realKey=key;
  815|  4.68k|    int32_t idx;
  816|  4.68k|    return res_getTableItemByKey(pResData, pResData->rootRes, &idx, &realKey);
  ------------------
  |  |  207|  4.68k|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|  4.68k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.68k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.68k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  817|  4.68k|}
_ZNK6icu_7813ResourceTable14getKeyAndValueEiRPKcRNS_13ResourceValueE:
  821|  6.86M|                                         const char *&key, icu::ResourceValue &value) const {
  822|  6.86M|    if(0 <= i && i < length) {
  ------------------
  |  Branch (822:8): [True: 6.86M, False: 0]
  |  Branch (822:18): [True: 6.14M, False: 728k]
  ------------------
  823|  6.14M|        icu::ResourceDataValue &rdValue = static_cast<icu::ResourceDataValue &>(value);
  824|  6.14M|        if (keys16 != nullptr) {
  ------------------
  |  Branch (824:13): [True: 6.14M, False: 0]
  ------------------
  825|  6.14M|            key = RES_GET_KEY16(&rdValue.getData(), keys16[i]);
  ------------------
  |  |   44|  6.14M|    ((keyOffset)<(pResData)->localKeyLimit ? \
  |  |  ------------------
  |  |  |  Branch (44:6): [True: 4.75k, False: 6.13M]
  |  |  ------------------
  |  |   45|  6.14M|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   46|  6.14M|        (pResData)->poolBundleKeys+(keyOffset)-(pResData)->localKeyLimit)
  ------------------
  826|  6.14M|        } 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|  6.14M|        Resource res;
  830|  6.14M|        if (items16 != nullptr) {
  ------------------
  |  Branch (830:13): [True: 2.50M, False: 3.63M]
  ------------------
  831|  2.50M|            res = makeResourceFrom16(&rdValue.getData(), items16[i]);
  832|  3.63M|        } else {
  833|  3.63M|            res = items32[i];
  834|  3.63M|        }
  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|  6.14M|        rdValue.setResource(res, ResourceTracer(fTraceInfo, key));
  840|  6.14M|        return true;
  841|  6.14M|    }
  842|   728k|    return false;
  843|  6.86M|}
_ZNK6icu_7813ResourceTable9findValueEPKcRNS_13ResourceValueE:
  845|  1.64M|UBool icu::ResourceTable::findValue(const char *key, ResourceValue &value) const {
  846|  1.64M|    icu::ResourceDataValue &rdValue = static_cast<icu::ResourceDataValue &>(value);
  847|  1.64M|    const char *realKey = nullptr;
  848|  1.64M|    int32_t i;
  849|  1.64M|    if (keys16 != nullptr) {
  ------------------
  |  Branch (849:9): [True: 1.64M, False: 0]
  ------------------
  850|  1.64M|        i = _res_findTableItem(&rdValue.getData(), keys16, length, key, &realKey);
  851|  1.64M|    } else {
  852|      0|        i = _res_findTable32Item(&rdValue.getData(), keys32, length, key, &realKey);
  853|      0|    }
  854|  1.64M|    if (i >= 0) {
  ------------------
  |  Branch (854:9): [True: 1.61M, False: 28.2k]
  ------------------
  855|  1.61M|        Resource res;
  856|  1.61M|        if (items16 != nullptr) {
  ------------------
  |  Branch (856:13): [True: 720k, False: 898k]
  ------------------
  857|   720k|            res = makeResourceFrom16(&rdValue.getData(), items16[i]);
  858|   898k|        } else {
  859|   898k|            res = items32[i];
  860|   898k|        }
  861|       |        // Same note about lifetime as in getKeyAndValue().
  862|  1.61M|        rdValue.setResource(res, ResourceTracer(fTraceInfo, key));
  863|  1.61M|        return true;
  864|  1.61M|    }
  865|  28.2k|    return false;
  866|  1.64M|}
res_getArrayItem_78:
  869|   455k|res_getArrayItem(const ResourceData *pResData, Resource array, int32_t indexR) {
  870|   455k|    uint32_t offset=RES_GET_OFFSET(array);
  ------------------
  |  |   69|   455k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  871|   455k|    if (indexR < 0) {
  ------------------
  |  Branch (871:9): [True: 0, False: 455k]
  ------------------
  872|      0|        return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  873|      0|    }
  874|   455k|    switch(RES_GET_TYPE(array)) {
  ------------------
  |  |   68|   455k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  875|  76.0k|    case URES_ARRAY: {
  ------------------
  |  Branch (875:5): [True: 76.0k, False: 379k]
  ------------------
  876|  76.0k|        if (offset!=0) { /* empty if offset==0 */
  ------------------
  |  Branch (876:13): [True: 76.0k, False: 0]
  ------------------
  877|  76.0k|            const int32_t *p= pResData->pRoot+offset;
  878|  76.0k|            if(indexR<*p) {
  ------------------
  |  Branch (878:16): [True: 76.0k, False: 0]
  ------------------
  879|  76.0k|                return (Resource)p[1+indexR];
  880|  76.0k|            }
  881|  76.0k|        }
  882|      0|        break;
  883|  76.0k|    }
  884|   379k|    case URES_ARRAY16: {
  ------------------
  |  Branch (884:5): [True: 379k, False: 76.0k]
  ------------------
  885|   379k|        const uint16_t *p=pResData->p16BitUnits+offset;
  886|   379k|        if(indexR<*p) {
  ------------------
  |  Branch (886:12): [True: 379k, False: 0]
  ------------------
  887|   379k|            return makeResourceFrom16(pResData, p[1+indexR]);
  888|   379k|        }
  889|      0|        break;
  890|   379k|    }
  891|      0|    default:
  ------------------
  |  Branch (891:5): [True: 0, False: 455k]
  ------------------
  892|      0|        break;
  893|   455k|    }
  894|      0|    return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  895|   455k|}
_ZNK6icu_7813ResourceArray19internalGetResourceEPK12ResourceDatai:
  897|  1.13M|uint32_t icu::ResourceArray::internalGetResource(const ResourceData *pResData, int32_t i) const {
  898|  1.13M|    if (items16 != nullptr) {
  ------------------
  |  Branch (898:9): [True: 1.06M, False: 70.0k]
  ------------------
  899|  1.06M|        return makeResourceFrom16(pResData, items16[i]);
  900|  1.06M|    } else {
  901|  70.0k|        return items32[i];
  902|  70.0k|    }
  903|  1.13M|}
_ZNK6icu_7813ResourceArray8getValueEiRNS_13ResourceValueE:
  905|  1.45k|UBool icu::ResourceArray::getValue(int32_t i, icu::ResourceValue &value) const {
  906|  1.45k|    if(0 <= i && i < length) {
  ------------------
  |  Branch (906:8): [True: 1.45k, False: 0]
  |  Branch (906:18): [True: 1.45k, False: 0]
  ------------------
  907|  1.45k|        icu::ResourceDataValue &rdValue = static_cast<icu::ResourceDataValue &>(value);
  908|       |        // Note: the ResourceTracer keeps a reference to the field of this
  909|       |        // ResourceArray. This is OK because the ResourceArray should remain
  910|       |        // alive for the duration that fields are being read from it
  911|       |        // (including nested fields).
  912|  1.45k|        rdValue.setResource(
  913|  1.45k|            internalGetResource(&rdValue.getData(), i),
  914|  1.45k|            ResourceTracer(fTraceInfo, i));
  915|  1.45k|        return true;
  916|  1.45k|    }
  917|      0|    return false;
  918|  1.45k|}
res_findResource_78:
  921|  3.86M|res_findResource(const ResourceData *pResData, Resource r, char** path, const char** key) {
  922|  3.86M|  char *pathP = *path, *nextSepP = *path;
  923|  3.86M|  char *closeIndex = nullptr;
  924|  3.86M|  Resource t1 = r;
  925|  3.86M|  Resource t2;
  926|  3.86M|  int32_t indexR = 0;
  927|  3.86M|  UResType type = (UResType)RES_GET_TYPE(t1);
  ------------------
  |  |   68|  3.86M|#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|  3.86M|  if(!uprv_strlen(pathP)) {
  ------------------
  |  |   37|  3.86M|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  3.86M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (930:6): [True: 0, False: 3.86M]
  ------------------
  931|      0|      return r;
  932|      0|  }
  933|       |
  934|       |  /* one needs to have an aggregate resource in order to search in it */
  935|  3.86M|  if(!URES_IS_CONTAINER(type)) {
  ------------------
  |  |   85|  3.86M|#define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   84|  7.73M|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (84:30): [True: 3.84M, False: 22.5k]
  |  |  |  |  |  Branch (84:61): [True: 22.5k, 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|  10.3M|  while(nextSepP && *pathP && t1 != RES_BOGUS && URES_IS_CONTAINER(type)) {
  ------------------
  |  |   65|  18.2M|#define RES_BOGUS 0xffffffff
  ------------------
                while(nextSepP && *pathP && t1 != RES_BOGUS && URES_IS_CONTAINER(type)) {
  ------------------
  |  |   85|  6.49M|#define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   84|  12.9M|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (84:30): [True: 6.45M, False: 45.9k]
  |  |  |  |  |  Branch (84:61): [True: 45.9k, 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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (939:9): [True: 8.75M, False: 1.61M]
  |  Branch (939:21): [True: 7.89M, False: 861k]
  |  Branch (939:31): [True: 6.49M, False: 1.39M]
  ------------------
  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|  6.49M|    nextSepP = uprv_strchr(pathP, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|  6.49M|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  6.49M|#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|  6.49M|    if(nextSepP != nullptr) {
  ------------------
  |  Branch (947:8): [True: 4.88M, False: 1.61M]
  ------------------
  948|  4.88M|      if(nextSepP == pathP) {
  ------------------
  |  Branch (948:10): [True: 0, False: 4.88M]
  ------------------
  949|       |        // Empty key string.
  950|      0|        return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  951|      0|      }
  952|  4.88M|      *nextSepP = 0; /* overwrite the separator with a NUL to terminate the key */
  953|  4.88M|      *path = nextSepP+1;
  954|  4.88M|    } else {
  955|  1.61M|      *path = uprv_strchr(pathP, 0);
  ------------------
  |  |   40|  1.61M|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  1.61M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  956|  1.61M|    }
  957|       |
  958|       |    /* if the resource is a table */
  959|       |    /* try the key based access */
  960|  6.49M|    if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|  6.49M|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 6.45M, False: 45.9k]
  |  |  |  Branch (84:61): [True: 45.9k, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  961|  6.49M|      *key = pathP;
  962|  6.49M|      t2 = res_getTableItemByKey(pResData, t1, &indexR, key);
  ------------------
  |  |  207|  6.49M|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|  6.49M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.49M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.49M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  963|  6.49M|    } 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|  6.49M|    t1 = t2;
  975|  6.49M|    type = (UResType)RES_GET_TYPE(t1);
  ------------------
  |  |   68|  6.49M|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  976|       |    /* position pathP to next resource key/index */
  977|  6.49M|    pathP = *path;
  978|  6.49M|  }
  979|       |
  980|  3.86M|  return t1;
  981|  3.86M|}
uresdata.cpp:_ZL12isAcceptablePvPKcS1_PK9UDataInfo:
  141|  2.16k|             const UDataInfo *pInfo) {
  142|  2.16k|    uprv_memcpy(context, pInfo->formatVersion, 4);
  ------------------
  |  |   42|  2.16k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  2.16k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  2.16k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  2.16k|    _Pragma("clang diagnostic push") \
  |  |   45|  2.16k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  2.16k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  2.16k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  2.16k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  2.16k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  2.16k|    _Pragma("clang diagnostic pop") \
  |  |   49|  2.16k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  2.16k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  2.16k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  2.16k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  143|  2.16k|    return
  144|  2.16k|        pInfo->size>=20 &&
  ------------------
  |  Branch (144:9): [True: 2.16k, False: 0]
  ------------------
  145|  2.16k|        pInfo->isBigEndian==U_IS_BIG_ENDIAN &&
  ------------------
  |  |  353|  4.33k|#   define U_IS_BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
  ------------------
  |  Branch (145:9): [True: 2.16k, False: 0]
  ------------------
  146|  2.16k|        pInfo->charsetFamily==U_CHARSET_FAMILY &&
  ------------------
  |  |  588|  2.16k|#   define U_CHARSET_FAMILY U_ASCII_FAMILY
  |  |  ------------------
  |  |  |  |  531|  4.33k|#define U_ASCII_FAMILY 0
  |  |  ------------------
  ------------------
  |  Branch (146:9): [True: 2.16k, False: 0]
  ------------------
  147|  2.16k|        pInfo->sizeofUChar==U_SIZEOF_UCHAR &&
  ------------------
  |  |  352|  4.33k|#define U_SIZEOF_UCHAR 2
  ------------------
  |  Branch (147:9): [True: 2.16k, False: 0]
  ------------------
  148|  2.16k|        pInfo->dataFormat[0]==0x52 &&   /* dataFormat="ResB" */
  ------------------
  |  Branch (148:9): [True: 2.16k, False: 0]
  ------------------
  149|  2.16k|        pInfo->dataFormat[1]==0x65 &&
  ------------------
  |  Branch (149:9): [True: 2.16k, False: 0]
  ------------------
  150|  2.16k|        pInfo->dataFormat[2]==0x73 &&
  ------------------
  |  Branch (150:9): [True: 2.16k, False: 0]
  ------------------
  151|  2.16k|        pInfo->dataFormat[3]==0x42 &&
  ------------------
  |  Branch (151:9): [True: 2.16k, False: 0]
  ------------------
  152|  2.16k|        (1<=pInfo->formatVersion[0] && pInfo->formatVersion[0]<=3);
  ------------------
  |  Branch (152:10): [True: 2.16k, False: 0]
  |  Branch (152:40): [True: 2.16k, False: 0]
  ------------------
  153|  2.16k|}
uresdata.cpp:_ZL8res_initP12ResourceDataPhPKviP10UErrorCode:
  160|  2.16k|         UErrorCode *errorCode) {
  161|  2.16k|    UResType rootType;
  162|       |
  163|       |    /* get the root resource */
  164|  2.16k|    pResData->pRoot = static_cast<const int32_t*>(inBytes);
  165|  2.16k|    pResData->rootRes = static_cast<Resource>(*pResData->pRoot);
  166|  2.16k|    pResData->p16BitUnits=&gEmpty16;
  167|       |
  168|       |    /* formatVersion 1.1 must have a root item and at least 5 indexes */
  169|  2.16k|    if(length>=0 && (length/4)<((formatVersion[0]==1 && formatVersion[1]==0) ? 1 : 1+5)) {
  ------------------
  |  Branch (169:8): [True: 0, False: 2.16k]
  |  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|  2.16k|    rootType = static_cast<UResType>(RES_GET_TYPE(pResData->rootRes));
  ------------------
  |  |   68|  2.16k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  177|  2.16k|    if(!URES_IS_TABLE(rootType)) {
  ------------------
  |  |   84|  2.16k|#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.83k, False: 337]
  |  |  |  Branch (84:61): [True: 337, 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|  2.16k|    if(formatVersion[0]==1 && formatVersion[1]==0) {
  ------------------
  |  Branch (183:8): [True: 0, False: 2.16k]
  |  Branch (183:31): [True: 0, False: 0]
  ------------------
  184|      0|        pResData->localKeyLimit=0x10000;  /* greater than any 16-bit key string offset */
  185|  2.16k|    } else {
  186|       |        /* bundles with formatVersion 1.1 and later contain an indexes[] array */
  187|  2.16k|        const int32_t *indexes=pResData->pRoot+1;
  188|  2.16k|        int32_t indexLength=indexes[URES_INDEX_LENGTH]&0xff;
  189|  2.16k|        if(indexLength<=URES_INDEX_MAX_TABLE_LENGTH) {
  ------------------
  |  Branch (189:12): [True: 0, False: 2.16k]
  ------------------
  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|  2.16k|        if( length>=0 &&
  ------------------
  |  Branch (194:13): [True: 0, False: 2.16k]
  ------------------
  195|  2.16k|            (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|  2.16k|        ) {
  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|  2.16k|        if(indexes[URES_INDEX_KEYS_TOP]>(1+indexLength)) {
  ------------------
  |  Branch (202:12): [True: 30, False: 2.13k]
  ------------------
  203|     30|            pResData->localKeyLimit=indexes[URES_INDEX_KEYS_TOP]<<2;
  204|     30|        }
  205|  2.16k|        if(formatVersion[0]>=3) {
  ------------------
  |  Branch (205:12): [True: 1.47k, False: 691]
  ------------------
  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|  1.47k|            pResData->poolStringIndexLimit = static_cast<int32_t>(static_cast<uint32_t>(indexes[URES_INDEX_LENGTH]) >> 8);
  211|  1.47k|        }
  212|  2.16k|        if(indexLength>URES_INDEX_ATTRIBUTES) {
  ------------------
  |  Branch (212:12): [True: 2.16k, False: 0]
  ------------------
  213|  2.16k|            int32_t att=indexes[URES_INDEX_ATTRIBUTES];
  214|  2.16k|            pResData->noFallback = static_cast<UBool>(att & URES_ATT_NO_FALLBACK);
  ------------------
  |  |  148|  2.16k|#define URES_ATT_NO_FALLBACK 1
  ------------------
  215|  2.16k|            pResData->isPoolBundle = static_cast<UBool>((att & URES_ATT_IS_POOL_BUNDLE) != 0);
  ------------------
  |  |  156|  2.16k|#define URES_ATT_IS_POOL_BUNDLE 2
  ------------------
  216|  2.16k|            pResData->usesPoolBundle = static_cast<UBool>((att & URES_ATT_USES_POOL_BUNDLE) != 0);
  ------------------
  |  |  157|  2.16k|#define URES_ATT_USES_POOL_BUNDLE 4
  ------------------
  217|  2.16k|            pResData->poolStringIndexLimit|=(att&0xf000)<<12;  // bits 15..12 -> 27..24
  218|  2.16k|            pResData->poolStringIndex16Limit = static_cast<int32_t>(static_cast<uint32_t>(att) >> 16);
  219|  2.16k|        }
  220|  2.16k|        if((pResData->isPoolBundle || pResData->usesPoolBundle) && indexLength<=URES_INDEX_POOL_CHECKSUM) {
  ------------------
  |  Branch (220:13): [True: 4, False: 2.16k]
  |  Branch (220:39): [True: 2.13k, False: 26]
  |  Branch (220:68): [True: 0, False: 2.14k]
  ------------------
  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|  2.16k|        if( indexLength>URES_INDEX_16BIT_TOP &&
  ------------------
  |  Branch (225:13): [True: 2.16k, False: 0]
  ------------------
  226|  2.16k|            indexes[URES_INDEX_16BIT_TOP]>indexes[URES_INDEX_KEYS_TOP]
  ------------------
  |  Branch (226:13): [True: 2.16k, False: 0]
  ------------------
  227|  2.16k|        ) {
  228|  2.16k|            pResData->p16BitUnits = reinterpret_cast<const uint16_t*>(pResData->pRoot + indexes[URES_INDEX_KEYS_TOP]);
  229|  2.16k|        }
  230|  2.16k|    }
  231|       |
  232|  2.16k|    if(formatVersion[0]==1 || U_CHARSET_FAMILY==U_ASCII_FAMILY) {
  ------------------
  |  |  588|  2.16k|#   define U_CHARSET_FAMILY U_ASCII_FAMILY
  |  |  ------------------
  |  |  |  |  531|  2.16k|#define U_ASCII_FAMILY 0
  |  |  ------------------
  ------------------
                  if(formatVersion[0]==1 || U_CHARSET_FAMILY==U_ASCII_FAMILY) {
  ------------------
  |  |  531|  2.16k|#define U_ASCII_FAMILY 0
  ------------------
  |  Branch (232:8): [True: 0, False: 2.16k]
  |  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|  2.16k|        pResData->useNativeStrcmp=true;
  238|  2.16k|    }
  239|  2.16k|}
uresdata.cpp:_ZN12_GLOBAL__N_121isNoInheritanceMarkerEPK12ResourceDataj:
  357|  1.30k|UBool isNoInheritanceMarker(const ResourceData *pResData, Resource res) {
  358|  1.30k|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|  1.30k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  359|  1.30k|    if (offset == 0) {
  ------------------
  |  Branch (359:9): [True: 0, False: 1.30k]
  ------------------
  360|       |        // empty string
  361|  1.30k|    } else if (res == offset) {
  ------------------
  |  Branch (361:16): [True: 0, False: 1.30k]
  ------------------
  362|      0|        const int32_t *p32=pResData->pRoot+res;
  363|      0|        int32_t length=*p32;
  364|      0|        const char16_t* p = reinterpret_cast<const char16_t*>(p32);
  365|      0|        return length == 3 && p[2] == 0x2205 && p[3] == 0x2205 && p[4] == 0x2205;
  ------------------
  |  Branch (365:16): [True: 0, False: 0]
  |  Branch (365:31): [True: 0, False: 0]
  |  Branch (365:49): [True: 0, False: 0]
  |  Branch (365:67): [True: 0, False: 0]
  ------------------
  366|  1.30k|    } else if (RES_GET_TYPE(res) == URES_STRING_V2) {
  ------------------
  |  |   68|  1.30k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (366:16): [True: 1.30k, False: 0]
  ------------------
  367|  1.30k|        const char16_t *p;
  368|  1.30k|        if (static_cast<int32_t>(offset) < pResData->poolStringIndexLimit) {
  ------------------
  |  Branch (368:13): [True: 868, False: 437]
  ------------------
  369|    868|            p = reinterpret_cast<const char16_t*>(pResData->poolBundleStrings) + offset;
  370|    868|        } else {
  371|    437|            p = reinterpret_cast<const char16_t*>(pResData->p16BitUnits) + (offset - pResData->poolStringIndexLimit);
  372|    437|        }
  373|  1.30k|        int32_t first=*p;
  374|  1.30k|        if (first == 0x2205) {  // implicit length
  ------------------
  |  Branch (374:13): [True: 0, False: 1.30k]
  ------------------
  375|      0|            return p[1] == 0x2205 && p[2] == 0x2205 && p[3] == 0;
  ------------------
  |  Branch (375:20): [True: 0, False: 0]
  |  Branch (375:38): [True: 0, False: 0]
  |  Branch (375:56): [True: 0, False: 0]
  ------------------
  376|  1.30k|        } else if (first == 0xdc03) {  // explicit length 3 (should not occur)
  ------------------
  |  Branch (376:20): [True: 0, False: 1.30k]
  ------------------
  377|      0|            return p[1] == 0x2205 && p[2] == 0x2205 && p[3] == 0x2205;
  ------------------
  |  Branch (377:20): [True: 0, False: 0]
  |  Branch (377:38): [True: 0, False: 0]
  |  Branch (377:56): [True: 0, False: 0]
  ------------------
  378|  1.30k|        } else {
  379|       |            // Assume that the string has not been stored with more length units than necessary.
  380|  1.30k|            return false;
  381|  1.30k|        }
  382|  1.30k|    }
  383|      0|    return false;
  384|  1.30k|}
uresdata.cpp:_ZN12_GLOBAL__N_114getStringArrayEPK12ResourceDataRKN6icu_7813ResourceArrayEPNS3_13UnicodeStringEiR10UErrorCode:
  388|   180k|                       UErrorCode &errorCode) {
  389|   180k|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (389:8): [True: 0, False: 180k]
  ------------------
  390|      0|        return 0;
  391|      0|    }
  392|   180k|    if(dest == nullptr ? capacity != 0 : capacity < 0) {
  ------------------
  |  Branch (392:8): [True: 0, False: 180k]
  |  Branch (392:8): [True: 0, False: 180k]
  ------------------
  393|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  394|      0|        return 0;
  395|      0|    }
  396|   180k|    int32_t length = array.getSize();
  397|   180k|    if(length == 0) {
  ------------------
  |  Branch (397:8): [True: 0, False: 180k]
  ------------------
  398|      0|        return 0;
  399|      0|    }
  400|   180k|    if(length > capacity) {
  ------------------
  |  Branch (400:8): [True: 0, False: 180k]
  ------------------
  401|      0|        errorCode = U_BUFFER_OVERFLOW_ERROR;
  402|      0|        return length;
  403|      0|    }
  404|  1.31M|    for(int32_t i = 0; i < length; ++i) {
  ------------------
  |  Branch (404:24): [True: 1.13M, False: 180k]
  ------------------
  405|  1.13M|        int32_t sLength;
  406|       |        // No tracing: handled by the caller
  407|  1.13M|        const char16_t *s = res_getStringNoTrace(pResData, array.internalGetResource(pResData, i), &sLength);
  ------------------
  |  |  205|  1.13M|#define res_getStringNoTrace U_ICU_ENTRY_POINT_RENAME(res_getStringNoTrace)
  |  |  ------------------
  |  |  |  |  123|  1.13M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.13M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.13M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  408|  1.13M|        if(s == nullptr) {
  ------------------
  |  Branch (408:12): [True: 0, False: 1.13M]
  ------------------
  409|      0|            errorCode = U_RESOURCE_TYPE_MISMATCH;
  410|      0|            return 0;
  411|      0|        }
  412|  1.13M|        dest[i].setTo(true, s, sLength);
  413|  1.13M|    }
  414|   180k|    return length;
  415|   180k|}
uresdata.cpp:_ZL18_res_findTableItemPK12ResourceDataPKtiPKcPS5_:
   76|  10.3M|                   const char *key, const char **realKey) {
   77|  10.3M|    const char *tableKey;
   78|  10.3M|    int32_t mid, start, limit;
   79|  10.3M|    int result;
   80|       |
   81|       |    /* do a binary search for the key */
   82|  10.3M|    start=0;
   83|  10.3M|    limit=length;
   84|  32.5M|    while(start<limit) {
  ------------------
  |  Branch (84:11): [True: 30.7M, False: 1.86M]
  ------------------
   85|  30.7M|        mid = (start + limit) / 2;
   86|  30.7M|        tableKey = RES_GET_KEY16(pResData, keyOffsets[mid]);
  ------------------
  |  |   44|  30.7M|    ((keyOffset)<(pResData)->localKeyLimit ? \
  |  |  ------------------
  |  |  |  Branch (44:6): [True: 1.95M, False: 28.7M]
  |  |  ------------------
  |  |   45|  30.7M|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   46|  30.7M|        (pResData)->poolBundleKeys+(keyOffset)-(pResData)->localKeyLimit)
  ------------------
   87|  30.7M|        if (pResData->useNativeStrcmp) {
  ------------------
  |  Branch (87:13): [True: 30.7M, False: 0]
  ------------------
   88|  30.7M|            result = uprv_strcmp(key, tableKey);
  ------------------
  |  |   38|  30.7M|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  30.7M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
   89|  30.7M|        } 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|  30.7M|        if (result < 0) {
  ------------------
  |  Branch (92:13): [True: 12.2M, False: 18.4M]
  ------------------
   93|  12.2M|            limit = mid;
   94|  18.4M|        } else if (result > 0) {
  ------------------
  |  Branch (94:20): [True: 9.96M, False: 8.51M]
  ------------------
   95|  9.96M|            start = mid + 1;
   96|  9.96M|        } else {
   97|       |            /* We found it! */
   98|  8.51M|            *realKey=tableKey;
   99|  8.51M|            return mid;
  100|  8.51M|        }
  101|  30.7M|    }
  102|  1.86M|    return URESDATA_ITEM_NOT_FOUND;  /* not found or table is empty. */
  ------------------
  |  |   53|  1.86M|#define URESDATA_ITEM_NOT_FOUND -1
  ------------------
  103|  10.3M|}
uresdata.cpp:_ZL18makeResourceFrom16PK12ResourceDatai:
  700|  4.78M|makeResourceFrom16(const ResourceData *pResData, int32_t res16) {
  701|  4.78M|    if(res16<pResData->poolStringIndex16Limit) {
  ------------------
  |  Branch (701:8): [True: 2.50M, False: 2.27M]
  ------------------
  702|       |        // Pool string, nothing to do.
  703|  2.50M|    } else {
  704|       |        // Local string, adjust the 16-bit offset to a regular one,
  705|       |        // with a larger pool string index limit.
  706|  2.27M|        res16=res16-pResData->poolStringIndex16Limit+pResData->poolStringIndexLimit;
  707|  2.27M|    }
  708|  4.78M|    return URES_MAKE_RESOURCE(URES_STRING_V2, res16);
  ------------------
  |  |   87|  4.78M|#define URES_MAKE_RESOURCE(type, offset) (((Resource)(type)<<28)|(Resource)(offset))
  ------------------
  709|  4.78M|}

_ZN6icu_7817ResourceDataValueC2Ev:
  516|   780k|        pResData(nullptr),
  517|   780k|        validLocaleDataEntry(nullptr),
  518|   780k|        res(static_cast<Resource>(URES_NONE)),
  519|   780k|        fTraceInfo() {}
_ZN6icu_7817ResourceDataValue7setDataERK12ResourceData:
  522|  2.01M|    void setData(const ResourceData &data) {
  523|  2.01M|        pResData = &data;
  524|  2.01M|    }
_ZN6icu_7817ResourceDataValue23setValidLocaleDataEntryEP18UResourceDataEntry:
  526|   946k|    void setValidLocaleDataEntry(UResourceDataEntry *entry) {
  527|   946k|        validLocaleDataEntry = entry;
  528|   946k|    }
_ZN6icu_7817ResourceDataValue11setResourceEjONS_14ResourceTracerE:
  530|  9.77M|    void setResource(Resource r, ResourceTracer&& traceInfo) {
  531|  9.77M|        res = r;
  532|  9.77M|        fTraceInfo = traceInfo;
  533|  9.77M|    }
_ZNK6icu_7817ResourceDataValue7getDataEv:
  535|  31.0M|    const ResourceData &getData() const { return *pResData; }
_ZNK6icu_7817ResourceDataValue23getValidLocaleDataEntryEv:
  536|   852k|    UResourceDataEntry *getValidLocaleDataEntry() const { return validLocaleDataEntry; }
_ZNK6icu_7817ResourceDataValue11getResourceEv:
  537|   852k|    Resource getResource() const { return res; }
_ZN6icu_7813res_getStringERKNS_14ResourceTracerEPK12ResourceDatajPi:
  486|  4.74M|        const ResourceData *pResData, Resource res, int32_t *pLength) {
  487|  4.74M|    traceInfo.trace("string");
  488|  4.74M|    return res_getStringNoTrace(pResData, res, pLength);
  ------------------
  |  |  205|  4.74M|#define res_getStringNoTrace U_ICU_ENTRY_POINT_RENAME(res_getStringNoTrace)
  |  |  ------------------
  |  |  |  |  123|  4.74M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.74M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.74M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  489|  4.74M|}
_ZN6icu_7813res_getBinaryERKNS_14ResourceTracerEPK12ResourceDatajPi:
  492|    103|        const ResourceData *pResData, Resource res, int32_t *pLength) {
  493|    103|    traceInfo.trace("binary");
  494|    103|    return res_getBinaryNoTrace(pResData, res, pLength);
  ------------------
  |  |  201|    103|#define res_getBinaryNoTrace U_ICU_ENTRY_POINT_RENAME(res_getBinaryNoTrace)
  |  |  ------------------
  |  |  |  |  123|    103|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    103|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    103|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  495|    103|}
_ZN6icu_7816res_getIntVectorERKNS_14ResourceTracerEPK12ResourceDatajPi:
  498|  34.8k|        const ResourceData *pResData, Resource res, int32_t *pLength) {
  499|  34.8k|    traceInfo.trace("intvector");
  500|  34.8k|    return res_getIntVectorNoTrace(pResData, res, pLength);
  ------------------
  |  |  202|  34.8k|#define res_getIntVectorNoTrace U_ICU_ENTRY_POINT_RENAME(res_getIntVectorNoTrace)
  |  |  ------------------
  |  |  |  |  123|  34.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  34.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  34.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  501|  34.8k|}
_ZN6icu_7810res_getIntERKNS_14ResourceTracerEj:
  503|   176k|inline int32_t res_getInt(const ResourceTracer& traceInfo, Resource res) {
  504|   176k|    traceInfo.trace("int");
  505|   176k|    return RES_GET_INT_NO_TRACE(res);
  ------------------
  |  |   76|   176k|#   define RES_GET_INT_NO_TRACE(res) (((int32_t)((res)<<4L))>>4L)
  ------------------
  506|   176k|}

_ZNK15UResourceBundle10getResDataEv:
   94|  10.5M|    inline const ResourceData &getResData() const { return fData->fData; }
_ZN6icu_7820StackUResourceBundle8getAliasEv:
  130|  1.36M|    UResourceBundle* getAlias() { return &bundle; }
_ZN6icu_7820StackUResourceBundle3refEv:
  132|   167k|    UResourceBundle& ref() { return bundle; }

u_strcmpFold_78:
 1848|    877|             UErrorCode *pErrorCode) {
 1849|    877|    return _cmpFold(s1, length1, s2, length2, options, nullptr, nullptr, pErrorCode);
 1850|    877|}
u_strncasecmp_78:
 1889|    877|u_strncasecmp(const char16_t *s1, const char16_t *s2, int32_t n, uint32_t options) {
 1890|    877|    UErrorCode errorCode=U_ZERO_ERROR;
 1891|    877|    return u_strcmpFold(s1, n, s2, n,
  ------------------
  |  |  389|    877|#define u_strcmpFold U_ICU_ENTRY_POINT_RENAME(u_strcmpFold)
  |  |  ------------------
  |  |  |  |  123|    877|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    877|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    877|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1892|    877|                        options|(U_COMPARE_IGNORE_CASE|_STRNCMP_STYLE),
  ------------------
  |  |  166|    877|#define U_COMPARE_IGNORE_CASE       0x10000
  ------------------
                                      options|(U_COMPARE_IGNORE_CASE|_STRNCMP_STYLE),
  ------------------
  |  |   27|    877|#define _STRNCMP_STYLE 0x1000
  ------------------
 1893|    877|                        &errorCode);
 1894|    877|}
ustrcase.cpp:_ZL8_cmpFoldPKDsiS0_ijPiS1_P10UErrorCode:
 1486|    877|            UErrorCode *pErrorCode) {
 1487|    877|    int32_t cmpRes = 0;
 1488|       |
 1489|       |    /* current-level start/limit - s1/s2 as current */
 1490|    877|    const char16_t *start1, *start2, *limit1, *limit2;
 1491|       |
 1492|       |    /* points to the original start address */
 1493|    877|    const char16_t *org1, *org2;
 1494|       |
 1495|       |    /* points to the end of match + 1 */
 1496|    877|    const char16_t *m1, *m2;
 1497|       |
 1498|       |    /* case folding variables */
 1499|    877|    const char16_t *p;
 1500|    877|    int32_t length;
 1501|       |
 1502|       |    /* stacks of previous-level start/current/limit */
 1503|    877|    CmpEquivLevel stack1[2], stack2[2];
 1504|       |
 1505|       |    /* case folding buffers, only use current-level start/limit */
 1506|    877|    char16_t fold1[UCASE_MAX_STRING_LENGTH+1], fold2[UCASE_MAX_STRING_LENGTH+1];
 1507|       |
 1508|       |    /* track which is the current level per string */
 1509|    877|    int32_t level1, level2;
 1510|       |
 1511|       |    /* current code units, and code points for lookups */
 1512|    877|    UChar32 c1, c2, cp1, cp2;
 1513|       |
 1514|       |    /* no argument error checking because this itself is not an API */
 1515|       |
 1516|       |    /*
 1517|       |     * assume that at least the option U_COMPARE_IGNORE_CASE is set
 1518|       |     * otherwise this function would have to behave exactly as uprv_strCompare()
 1519|       |     */
 1520|    877|    if(U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (1520:8): [True: 0, False: 877]
  ------------------
 1521|      0|        return 0;
 1522|      0|    }
 1523|       |
 1524|       |    /* initialize */
 1525|    877|    if(matchLen1) {
  ------------------
  |  Branch (1525:8): [True: 0, False: 877]
  ------------------
 1526|      0|        U_ASSERT(matchLen2 !=nullptr);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1527|      0|        *matchLen1=0;
 1528|      0|        *matchLen2=0;
 1529|      0|    }
 1530|       |
 1531|    877|    start1=m1=org1=s1;
 1532|    877|    if(length1==-1) {
  ------------------
  |  Branch (1532:8): [True: 0, False: 877]
  ------------------
 1533|      0|        limit1=nullptr;
 1534|    877|    } else {
 1535|    877|        limit1=s1+length1;
 1536|    877|    }
 1537|       |
 1538|    877|    start2=m2=org2=s2;
 1539|    877|    if(length2==-1) {
  ------------------
  |  Branch (1539:8): [True: 0, False: 877]
  ------------------
 1540|      0|        limit2=nullptr;
 1541|    877|    } else {
 1542|    877|        limit2=s2+length2;
 1543|    877|    }
 1544|       |
 1545|    877|    level1=level2=0;
 1546|    877|    c1=c2=-1;
 1547|       |
 1548|       |    /* comparison loop */
 1549|  4.78k|    for(;;) {
 1550|       |        /*
 1551|       |         * here a code unit value of -1 means "get another code unit"
 1552|       |         * below it will mean "this source is finished"
 1553|       |         */
 1554|       |
 1555|  4.78k|        if(c1<0) {
  ------------------
  |  Branch (1555:12): [True: 3.08k, False: 1.70k]
  ------------------
 1556|       |            /* get next code unit from string 1, post-increment */
 1557|  3.08k|            for(;;) {
 1558|  3.08k|                if(s1==limit1 || ((c1=*s1)==0 && (limit1==nullptr || (options&_STRNCMP_STYLE)))) {
  ------------------
  |  |   27|      0|#define _STRNCMP_STYLE 0x1000
  ------------------
  |  Branch (1558:20): [True: 674, False: 2.41k]
  |  Branch (1558:35): [True: 0, False: 2.41k]
  |  Branch (1558:51): [True: 0, False: 0]
  |  Branch (1558:70): [True: 0, False: 0]
  ------------------
 1559|    674|                    if(level1==0) {
  ------------------
  |  Branch (1559:24): [True: 674, False: 0]
  ------------------
 1560|    674|                        c1=-1;
 1561|    674|                        break;
 1562|    674|                    }
 1563|  2.41k|                } else {
 1564|  2.41k|                    ++s1;
 1565|  2.41k|                    break;
 1566|  2.41k|                }
 1567|       |
 1568|       |                /* reached end of level buffer, pop one level */
 1569|      0|                do {
 1570|      0|                    --level1;
 1571|      0|                    start1=stack1[level1].start;    /*Not uninitialized*/
 1572|      0|                } while(start1==nullptr);
  ------------------
  |  Branch (1572:25): [True: 0, False: 0]
  ------------------
 1573|      0|                s1=stack1[level1].s;                /*Not uninitialized*/
 1574|      0|                limit1=stack1[level1].limit;        /*Not uninitialized*/
 1575|      0|            }
 1576|  3.08k|        }
 1577|       |
 1578|  4.78k|        if(c2<0) {
  ------------------
  |  Branch (1578:12): [True: 4.73k, False: 53]
  ------------------
 1579|       |            /* get next code unit from string 2, post-increment */
 1580|  6.23k|            for(;;) {
 1581|  6.23k|                if(s2==limit2 || ((c2=*s2)==0 && (limit2==nullptr || (options&_STRNCMP_STYLE)))) {
  ------------------
  |  |   27|      0|#define _STRNCMP_STYLE 0x1000
  ------------------
  |  Branch (1581:20): [True: 2.17k, False: 4.06k]
  |  Branch (1581:35): [True: 0, False: 4.06k]
  |  Branch (1581:51): [True: 0, False: 0]
  |  Branch (1581:70): [True: 0, False: 0]
  ------------------
 1582|  2.17k|                    if(level2==0) {
  ------------------
  |  Branch (1582:24): [True: 674, False: 1.49k]
  ------------------
 1583|    674|                        c2=-1;
 1584|    674|                        break;
 1585|    674|                    }
 1586|  4.06k|                } else {
 1587|  4.06k|                    ++s2;
 1588|  4.06k|                    break;
 1589|  4.06k|                }
 1590|       |
 1591|       |                /* reached end of level buffer, pop one level */
 1592|  1.49k|                do {
 1593|  1.49k|                    --level2;
 1594|  1.49k|                    start2=stack2[level2].start;    /*Not uninitialized*/
 1595|  1.49k|                } while(start2==nullptr);
  ------------------
  |  Branch (1595:25): [True: 0, False: 1.49k]
  ------------------
 1596|  1.49k|                s2=stack2[level2].s;                /*Not uninitialized*/
 1597|  1.49k|                limit2=stack2[level2].limit;        /*Not uninitialized*/
 1598|  1.49k|            }
 1599|  4.73k|        }
 1600|       |
 1601|       |        /*
 1602|       |         * compare c1 and c2
 1603|       |         * either variable c1, c2 is -1 only if the corresponding string is finished
 1604|       |         */
 1605|  4.78k|        if(c1==c2) {
  ------------------
  |  Branch (1605:12): [True: 2.83k, False: 1.95k]
  ------------------
 1606|  2.83k|            const char16_t *next1, *next2;
 1607|       |
 1608|  2.83k|            if(c1<0) {
  ------------------
  |  Branch (1608:16): [True: 674, False: 2.15k]
  ------------------
 1609|    674|                cmpRes=0;   /* c1==c2==-1 indicating end of strings */
 1610|    674|                break;
 1611|    674|            }
 1612|       |
 1613|       |            /*
 1614|       |             * Note: Move the match positions in both strings at the same time
 1615|       |             *      only when corresponding code point(s) in the original strings
 1616|       |             *      are fully consumed. For example, when comparing s1="Fust" and
 1617|       |             *      s2="Fu\u00dfball", s2[2] is folded into "ss", and s1[2] matches
 1618|       |             *      the first code point in the case-folded data. But the second "s"
 1619|       |             *      has no matching code point in s1, so this implementation returns
 1620|       |             *      2 as the prefix match length ("Fu").
 1621|       |             */
 1622|  2.15k|            next1=next2=nullptr;
 1623|  2.15k|            if(level1==0) {
  ------------------
  |  Branch (1623:16): [True: 2.15k, False: 0]
  ------------------
 1624|  2.15k|                next1=s1;
 1625|  2.15k|            } else if(s1==limit1) {
  ------------------
  |  Branch (1625:23): [True: 0, False: 0]
  ------------------
 1626|       |                /* Note: This implementation only use a single level of stack.
 1627|       |                 *      If this code needs to be changed to use multiple levels
 1628|       |                 *      of stacks, the code above should check if the current
 1629|       |                 *      code is at the end of all stacks.
 1630|       |                 */
 1631|      0|                U_ASSERT(level1==1);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1632|       |
 1633|       |                /* is s1 at the end of the current stack? */
 1634|      0|                next1=stack1[0].s;
 1635|      0|            }
 1636|       |
 1637|  2.15k|            if (next1!=nullptr) {
  ------------------
  |  Branch (1637:17): [True: 2.15k, False: 0]
  ------------------
 1638|  2.15k|                if(level2==0) {
  ------------------
  |  Branch (1638:20): [True: 660, False: 1.49k]
  ------------------
 1639|    660|                    next2=s2;
 1640|  1.49k|                } else if(s2==limit2) {
  ------------------
  |  Branch (1640:27): [True: 1.49k, False: 0]
  ------------------
 1641|  1.49k|                    U_ASSERT(level2==1);
  ------------------
  |  |   35|  1.49k|#   define U_ASSERT(exp) (void)0
  ------------------
 1642|       |
 1643|       |                    /* is s2 at the end of the current stack? */
 1644|  1.49k|                    next2=stack2[0].s;
 1645|  1.49k|                }
 1646|  2.15k|                if(next2!=nullptr) {
  ------------------
  |  Branch (1646:20): [True: 2.15k, False: 0]
  ------------------
 1647|  2.15k|                    m1=next1;
 1648|  2.15k|                    m2=next2;
 1649|  2.15k|                }
 1650|  2.15k|            }
 1651|  2.15k|            c1=c2=-1;       /* make us fetch new code units */
 1652|  2.15k|            continue;
 1653|  2.83k|        } else if(c1<0) {
  ------------------
  |  Branch (1653:19): [True: 0, False: 1.95k]
  ------------------
 1654|      0|            cmpRes=-1;      /* string 1 ends before string 2 */
 1655|      0|            break;
 1656|  1.95k|        } else if(c2<0) {
  ------------------
  |  Branch (1656:19): [True: 0, False: 1.95k]
  ------------------
 1657|      0|            cmpRes=1;       /* string 2 ends before string 1 */
 1658|      0|            break;
 1659|      0|        }
 1660|       |        /* c1!=c2 && c1>=0 && c2>=0 */
 1661|       |
 1662|       |        /* get complete code points for c1, c2 for lookups if either is a surrogate */
 1663|  1.95k|        cp1=c1;
 1664|  1.95k|        if(U_IS_SURROGATE(c1)) {
  ------------------
  |  |  193|  1.95k|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  ------------------
  |  |  |  Branch (193:27): [True: 0, False: 1.95k]
  |  |  ------------------
  ------------------
 1665|      0|            char16_t c;
 1666|       |
 1667|      0|            if(U_IS_SURROGATE_LEAD(c1)) {
  ------------------
  |  |  202|      0|#define U_IS_SURROGATE_LEAD(c) (((c)&0x400)==0)
  |  |  ------------------
  |  |  |  Branch (202:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1668|      0|                if(s1!=limit1 && U16_IS_TRAIL(c=*s1)) {
  ------------------
  |  |   67|      0|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1668:20): [True: 0, False: 0]
  ------------------
 1669|       |                    /* advance ++s1; only below if cp1 decomposes/case-folds */
 1670|      0|                    cp1=U16_GET_SUPPLEMENTARY(c1, c);
  ------------------
  |  |  113|      0|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  ------------------
  |  |  |  |   99|      0|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  ------------------
  ------------------
 1671|      0|                }
 1672|      0|            } else /* isTrail(c1) */ {
 1673|      0|                if(start1<=(s1-2) && U16_IS_LEAD(c=*(s1-2))) {
  ------------------
  |  |   59|      0|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1673:20): [True: 0, False: 0]
  ------------------
 1674|      0|                    cp1=U16_GET_SUPPLEMENTARY(c, c1);
  ------------------
  |  |  113|      0|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  ------------------
  |  |  |  |   99|      0|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  ------------------
  ------------------
 1675|      0|                }
 1676|      0|            }
 1677|      0|        }
 1678|       |
 1679|  1.95k|        cp2=c2;
 1680|  1.95k|        if(U_IS_SURROGATE(c2)) {
  ------------------
  |  |  193|  1.95k|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  ------------------
  |  |  |  Branch (193:27): [True: 0, False: 1.95k]
  |  |  ------------------
  ------------------
 1681|      0|            char16_t c;
 1682|       |
 1683|      0|            if(U_IS_SURROGATE_LEAD(c2)) {
  ------------------
  |  |  202|      0|#define U_IS_SURROGATE_LEAD(c) (((c)&0x400)==0)
  |  |  ------------------
  |  |  |  Branch (202:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1684|      0|                if(s2!=limit2 && U16_IS_TRAIL(c=*s2)) {
  ------------------
  |  |   67|      0|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1684:20): [True: 0, False: 0]
  ------------------
 1685|       |                    /* advance ++s2; only below if cp2 decomposes/case-folds */
 1686|      0|                    cp2=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)
  |  |  ------------------
  ------------------
 1687|      0|                }
 1688|      0|            } else /* isTrail(c2) */ {
 1689|      0|                if(start2<=(s2-2) && U16_IS_LEAD(c=*(s2-2))) {
  ------------------
  |  |   59|      0|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1689:20): [True: 0, False: 0]
  ------------------
 1690|      0|                    cp2=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)
  |  |  ------------------
  ------------------
 1691|      0|                }
 1692|      0|            }
 1693|      0|        }
 1694|       |
 1695|       |        /*
 1696|       |         * go down one level for each string
 1697|       |         * continue with the main loop as soon as there is a real change
 1698|       |         */
 1699|       |
 1700|  1.95k|        if( level1==0 &&
  ------------------
  |  Branch (1700:13): [True: 1.85k, False: 106]
  ------------------
 1701|  1.95k|            (length = ucase_toFullFolding(cp1, &p, options)) >= 0
  ------------------
  |  |  580|  1.85k|#define ucase_toFullFolding U_ICU_ENTRY_POINT_RENAME(ucase_toFullFolding)
  |  |  ------------------
  |  |  |  |  123|  1.85k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.85k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.85k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1701:13): [True: 53, False: 1.79k]
  ------------------
 1702|  1.95k|        ) {
 1703|       |            /* cp1 case-folds to the code point "length" or to p[length] */
 1704|     53|            if(U_IS_SURROGATE(c1)) {
  ------------------
  |  |  193|     53|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  ------------------
  |  |  |  Branch (193:27): [True: 0, False: 53]
  |  |  ------------------
  ------------------
 1705|      0|                if(U_IS_SURROGATE_LEAD(c1)) {
  ------------------
  |  |  202|      0|#define U_IS_SURROGATE_LEAD(c) (((c)&0x400)==0)
  |  |  ------------------
  |  |  |  Branch (202:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1706|       |                    /* advance beyond source surrogate pair if it case-folds */
 1707|      0|                    ++s1;
 1708|      0|                } else /* isTrail(c1) */ {
 1709|       |                    /*
 1710|       |                     * we got a supplementary code point when hitting its trail surrogate,
 1711|       |                     * therefore the lead surrogate must have been the same as in the other string;
 1712|       |                     * compare this decomposition with the lead surrogate in the other string
 1713|       |                     * remember that this simulates bulk text replacement:
 1714|       |                     * the decomposition would replace the entire code point
 1715|       |                     */
 1716|      0|                    --s2;
 1717|      0|                    --m2;
 1718|      0|                    c2=*(s2-1);
 1719|      0|                }
 1720|      0|            }
 1721|       |
 1722|       |            /* push current level pointers */
 1723|     53|            stack1[0].start=start1;
 1724|     53|            stack1[0].s=s1;
 1725|     53|            stack1[0].limit=limit1;
 1726|     53|            ++level1;
 1727|       |
 1728|       |            /* copy the folding result to fold1[] */
 1729|     53|            if(length<=UCASE_MAX_STRING_LENGTH) {
  ------------------
  |  Branch (1729:16): [True: 0, False: 53]
  ------------------
 1730|      0|                u_memcpy(fold1, p, length);
  ------------------
  |  |  334|      0|#define u_memcpy U_ICU_ENTRY_POINT_RENAME(u_memcpy)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1731|     53|            } else {
 1732|     53|                int32_t i=0;
 1733|     53|                U16_APPEND_UNSAFE(fold1, i, length);
  ------------------
  |  |  367|     53|#define U16_APPEND_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|     53|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  368|     53|    if((uint32_t)(c)<=0xffff) { \
  |  |  ------------------
  |  |  |  Branch (368:8): [True: 53, False: 0]
  |  |  ------------------
  |  |  369|     53|        (s)[(i)++]=(uint16_t)(c); \
  |  |  370|     53|    } else { \
  |  |  371|      0|        (s)[(i)++]=(uint16_t)(((c)>>10)+0xd7c0); \
  |  |  372|      0|        (s)[(i)++]=(uint16_t)(((c)&0x3ff)|0xdc00); \
  |  |  373|      0|    } \
  |  |  374|     53|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|     53|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1734|     53|                length=i;
 1735|     53|            }
 1736|       |
 1737|       |            /* set next level pointers to case folding */
 1738|     53|            start1=s1=fold1;
 1739|     53|            limit1=fold1+length;
 1740|       |
 1741|       |            /* get ready to read from decomposition, continue with loop */
 1742|     53|            c1=-1;
 1743|     53|            continue;
 1744|     53|        }
 1745|       |
 1746|  1.90k|        if( level2==0 &&
  ------------------
  |  Branch (1746:13): [True: 1.70k, False: 203]
  ------------------
 1747|  1.90k|            (length = ucase_toFullFolding(cp2, &p, options)) >= 0
  ------------------
  |  |  580|  1.70k|#define ucase_toFullFolding U_ICU_ENTRY_POINT_RENAME(ucase_toFullFolding)
  |  |  ------------------
  |  |  |  |  123|  1.70k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.70k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.70k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1747:13): [True: 1.70k, False: 0]
  ------------------
 1748|  1.90k|        ) {
 1749|       |            /* cp2 case-folds to the code point "length" or to p[length] */
 1750|  1.70k|            if(U_IS_SURROGATE(c2)) {
  ------------------
  |  |  193|  1.70k|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  ------------------
  |  |  |  Branch (193:27): [True: 0, False: 1.70k]
  |  |  ------------------
  ------------------
 1751|      0|                if(U_IS_SURROGATE_LEAD(c2)) {
  ------------------
  |  |  202|      0|#define U_IS_SURROGATE_LEAD(c) (((c)&0x400)==0)
  |  |  ------------------
  |  |  |  Branch (202:32): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1752|       |                    /* advance beyond source surrogate pair if it case-folds */
 1753|      0|                    ++s2;
 1754|      0|                } else /* isTrail(c2) */ {
 1755|       |                    /*
 1756|       |                     * we got a supplementary code point when hitting its trail surrogate,
 1757|       |                     * therefore the lead surrogate must have been the same as in the other string;
 1758|       |                     * compare this decomposition with the lead surrogate in the other string
 1759|       |                     * remember that this simulates bulk text replacement:
 1760|       |                     * the decomposition would replace the entire code point
 1761|       |                     */
 1762|      0|                    --s1;
 1763|      0|                    --m2;
 1764|      0|                    c1=*(s1-1);
 1765|      0|                }
 1766|      0|            }
 1767|       |
 1768|       |            /* push current level pointers */
 1769|  1.70k|            stack2[0].start=start2;
 1770|  1.70k|            stack2[0].s=s2;
 1771|  1.70k|            stack2[0].limit=limit2;
 1772|  1.70k|            ++level2;
 1773|       |
 1774|       |            /* copy the folding result to fold2[] */
 1775|  1.70k|            if(length<=UCASE_MAX_STRING_LENGTH) {
  ------------------
  |  Branch (1775:16): [True: 0, False: 1.70k]
  ------------------
 1776|      0|                u_memcpy(fold2, p, length);
  ------------------
  |  |  334|      0|#define u_memcpy U_ICU_ENTRY_POINT_RENAME(u_memcpy)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1777|  1.70k|            } else {
 1778|  1.70k|                int32_t i=0;
 1779|  1.70k|                U16_APPEND_UNSAFE(fold2, i, length);
  ------------------
  |  |  367|  1.70k|#define U16_APPEND_UNSAFE(s, i, c) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  1.70k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  368|  1.70k|    if((uint32_t)(c)<=0xffff) { \
  |  |  ------------------
  |  |  |  Branch (368:8): [True: 1.70k, False: 0]
  |  |  ------------------
  |  |  369|  1.70k|        (s)[(i)++]=(uint16_t)(c); \
  |  |  370|  1.70k|    } else { \
  |  |  371|      0|        (s)[(i)++]=(uint16_t)(((c)>>10)+0xd7c0); \
  |  |  372|      0|        (s)[(i)++]=(uint16_t)(((c)&0x3ff)|0xdc00); \
  |  |  373|      0|    } \
  |  |  374|  1.70k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  1.70k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1780|  1.70k|                length=i;
 1781|  1.70k|            }
 1782|       |
 1783|       |            /* set next level pointers to case folding */
 1784|  1.70k|            start2=s2=fold2;
 1785|  1.70k|            limit2=fold2+length;
 1786|       |
 1787|       |            /* get ready to read from decomposition, continue with loop */
 1788|  1.70k|            c2=-1;
 1789|  1.70k|            continue;
 1790|  1.70k|        }
 1791|       |
 1792|       |        /*
 1793|       |         * no decomposition/case folding, max level for both sides:
 1794|       |         * return difference result
 1795|       |         *
 1796|       |         * code point order comparison must not just return cp1-cp2
 1797|       |         * because when single surrogates are present then the surrogate pairs
 1798|       |         * that formed cp1 and cp2 may be from different string indexes
 1799|       |         *
 1800|       |         * example: { d800 d800 dc01 } vs. { d800 dc00 }, compare at second code units
 1801|       |         * c1=d800 cp1=10001 c2=dc00 cp2=10000
 1802|       |         * cp1-cp2>0 but c1-c2<0 and in fact in UTF-32 it is { d800 10001 } < { 10000 }
 1803|       |         *
 1804|       |         * therefore, use same fix-up as in ustring.c/uprv_strCompare()
 1805|       |         * except: uprv_strCompare() fetches c=*s while this functions fetches c=*s++
 1806|       |         * so we have slightly different pointer/start/limit comparisons here
 1807|       |         */
 1808|       |
 1809|    203|        if(c1>=0xd800 && c2>=0xd800 && (options&U_COMPARE_CODE_POINT_ORDER)) {
  ------------------
  |  |  159|      0|#define U_COMPARE_CODE_POINT_ORDER  0x8000
  ------------------
  |  Branch (1809:12): [True: 0, False: 203]
  |  Branch (1809:26): [True: 0, False: 0]
  |  Branch (1809:40): [True: 0, False: 0]
  ------------------
 1810|       |            /* subtract 0x2800 from BMP code points to make them smaller than supplementary ones */
 1811|      0|            if(
 1812|      0|                (c1<=0xdbff && s1!=limit1 && U16_IS_TRAIL(*s1)) ||
  ------------------
  |  |   67|      0|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1812:18): [True: 0, False: 0]
  |  Branch (1812:32): [True: 0, False: 0]
  ------------------
 1813|      0|                (U16_IS_TRAIL(c1) && start1!=(s1-1) && U16_IS_LEAD(*(s1-2)))
  ------------------
  |  |   67|      0|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                              (U16_IS_TRAIL(c1) && start1!=(s1-1) && U16_IS_LEAD(*(s1-2)))
  ------------------
  |  |   59|      0|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1813:38): [True: 0, False: 0]
  ------------------
 1814|      0|            ) {
 1815|       |                /* part of a surrogate pair, leave >=d800 */
 1816|      0|            } else {
 1817|       |                /* BMP code point - may be surrogate code point - make <d800 */
 1818|      0|                c1-=0x2800;
 1819|      0|            }
 1820|       |
 1821|      0|            if(
 1822|      0|                (c2<=0xdbff && s2!=limit2 && U16_IS_TRAIL(*s2)) ||
  ------------------
  |  |   67|      0|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1822:18): [True: 0, False: 0]
  |  Branch (1822:32): [True: 0, False: 0]
  ------------------
 1823|      0|                (U16_IS_TRAIL(c2) && start2!=(s2-1) && U16_IS_LEAD(*(s2-2)))
  ------------------
  |  |   67|      0|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                              (U16_IS_TRAIL(c2) && start2!=(s2-1) && U16_IS_LEAD(*(s2-2)))
  ------------------
  |  |   59|      0|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1823:38): [True: 0, False: 0]
  ------------------
 1824|      0|            ) {
 1825|       |                /* part of a surrogate pair, leave >=d800 */
 1826|      0|            } else {
 1827|       |                /* BMP code point - may be surrogate code point - make <d800 */
 1828|      0|                c2-=0x2800;
 1829|      0|            }
 1830|      0|        }
 1831|       |
 1832|    203|        cmpRes=c1-c2;
 1833|    203|        break;
 1834|  1.90k|    }
 1835|       |
 1836|    877|    if(matchLen1) {
  ------------------
  |  Branch (1836:8): [True: 0, False: 877]
  ------------------
 1837|      0|        *matchLen1=static_cast<int32_t>(m1-org1);
 1838|      0|        *matchLen2=static_cast<int32_t>(m2-org2);
 1839|      0|    }
 1840|    877|    return cmpRes;
 1841|    877|}

_ZN6icu_7817StringEnumerationC2Ev:
   28|    999|    : chars(charsBuffer), charsCapacity(sizeof(charsBuffer)) {
   29|    999|}
_ZN6icu_7817StringEnumerationD2Ev:
   31|    999|StringEnumeration::~StringEnumeration() {
   32|    999|    if (chars != nullptr && chars != charsBuffer) {
  ------------------
  |  Branch (32:9): [True: 999, False: 0]
  |  Branch (32:29): [True: 0, False: 999]
  ------------------
   33|      0|        uprv_free(chars);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   34|      0|    }
   35|    999|}

u_strFindFirst_78:
   57|  2.68M|               const char16_t *sub, int32_t subLength) {
   58|  2.68M|    const char16_t *start, *p, *q, *subLimit;
   59|  2.68M|    char16_t c, cs, cq;
   60|       |
   61|  2.68M|    if(sub==nullptr || subLength<-1) {
  ------------------
  |  Branch (61:8): [True: 0, False: 2.68M]
  |  Branch (61:24): [True: 0, False: 2.68M]
  ------------------
   62|      0|        return (char16_t *)s;
   63|      0|    }
   64|  2.68M|    if(s==nullptr || length<-1) {
  ------------------
  |  Branch (64:8): [True: 0, False: 2.68M]
  |  Branch (64:22): [True: 0, False: 2.68M]
  ------------------
   65|      0|        return nullptr;
   66|      0|    }
   67|       |
   68|  2.68M|    start=s;
   69|       |
   70|  2.68M|    if(length<0 && subLength<0) {
  ------------------
  |  Branch (70:8): [True: 0, False: 2.68M]
  |  Branch (70:20): [True: 0, False: 0]
  ------------------
   71|       |        /* both strings are NUL-terminated */
   72|      0|        if((cs=*sub++)==0) {
  ------------------
  |  Branch (72:12): [True: 0, False: 0]
  ------------------
   73|      0|            return (char16_t *)s;
   74|      0|        }
   75|      0|        if(*sub==0 && !U16_IS_SURROGATE(cs)) {
  ------------------
  |  |   75|      0|#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
  |  |  ------------------
  |  |  |  |  193|      0|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  ------------------
  ------------------
  |  Branch (75:12): [True: 0, False: 0]
  |  Branch (75:23): [True: 0, False: 0]
  ------------------
   76|       |            /* the substring consists of a single, non-surrogate BMP code point */
   77|      0|            return u_strchr(s, cs);
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   78|      0|        }
   79|       |
   80|      0|        while((c=*s++)!=0) {
  ------------------
  |  Branch (80:15): [True: 0, False: 0]
  ------------------
   81|      0|            if(c==cs) {
  ------------------
  |  Branch (81:16): [True: 0, False: 0]
  ------------------
   82|       |                /* found first substring char16_t, compare rest */
   83|      0|                p=s;
   84|      0|                q=sub;
   85|      0|                for(;;) {
   86|      0|                    if((cq=*q)==0) {
  ------------------
  |  Branch (86:24): [True: 0, False: 0]
  ------------------
   87|      0|                        if(isMatchAtCPBoundary(start, s-1, p, nullptr)) {
  ------------------
  |  Branch (87:28): [True: 0, False: 0]
  ------------------
   88|      0|                            return (char16_t *)(s-1); /* well-formed match */
   89|      0|                        } else {
   90|      0|                            break; /* no match because surrogate pair is split */
   91|      0|                        }
   92|      0|                    }
   93|      0|                    if((c=*p)==0) {
  ------------------
  |  Branch (93:24): [True: 0, False: 0]
  ------------------
   94|      0|                        return nullptr; /* no match, and none possible after s */
   95|      0|                    }
   96|      0|                    if(c!=cq) {
  ------------------
  |  Branch (96:24): [True: 0, False: 0]
  ------------------
   97|      0|                        break; /* no match */
   98|      0|                    }
   99|      0|                    ++p;
  100|      0|                    ++q;
  101|      0|                }
  102|      0|            }
  103|      0|        }
  104|       |
  105|       |        /* not found */
  106|      0|        return nullptr;
  107|      0|    }
  108|       |
  109|  2.68M|    if(subLength<0) {
  ------------------
  |  Branch (109:8): [True: 1.58M, False: 1.10M]
  ------------------
  110|  1.58M|        subLength=u_strlen(sub);
  ------------------
  |  |  393|  1.58M|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|  1.58M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.58M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.58M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  111|  1.58M|    }
  112|  2.68M|    if(subLength==0) {
  ------------------
  |  Branch (112:8): [True: 0, False: 2.68M]
  ------------------
  113|      0|        return (char16_t *)s;
  114|      0|    }
  115|       |
  116|       |    /* get sub[0] to search for it fast */
  117|  2.68M|    cs=*sub++;
  118|  2.68M|    --subLength;
  119|  2.68M|    subLimit=sub+subLength;
  120|       |
  121|  2.68M|    if(subLength==0 && !U16_IS_SURROGATE(cs)) {
  ------------------
  |  |   75|     20|#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
  |  |  ------------------
  |  |  |  |  193|     20|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  ------------------
  ------------------
  |  Branch (121:8): [True: 20, False: 2.68M]
  |  Branch (121:24): [True: 20, False: 0]
  ------------------
  122|       |        /* the substring consists of a single, non-surrogate BMP code point */
  123|     20|        return length<0 ? u_strchr(s, cs) : u_memchr(s, cs, length);
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      return length<0 ? u_strchr(s, cs) : u_memchr(s, cs, length);
  ------------------
  |  |  330|     20|#define u_memchr U_ICU_ENTRY_POINT_RENAME(u_memchr)
  |  |  ------------------
  |  |  |  |  123|     20|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     20|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     20|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (123:16): [True: 0, False: 20]
  ------------------
  124|     20|    }
  125|       |
  126|  2.68M|    if(length<0) {
  ------------------
  |  Branch (126:8): [True: 0, False: 2.68M]
  ------------------
  127|       |        /* s is NUL-terminated */
  128|      0|        while((c=*s++)!=0) {
  ------------------
  |  Branch (128:15): [True: 0, False: 0]
  ------------------
  129|      0|            if(c==cs) {
  ------------------
  |  Branch (129:16): [True: 0, False: 0]
  ------------------
  130|       |                /* found first substring char16_t, compare rest */
  131|      0|                p=s;
  132|      0|                q=sub;
  133|      0|                for(;;) {
  134|      0|                    if(q==subLimit) {
  ------------------
  |  Branch (134:24): [True: 0, False: 0]
  ------------------
  135|      0|                        if(isMatchAtCPBoundary(start, s-1, p, nullptr)) {
  ------------------
  |  Branch (135:28): [True: 0, False: 0]
  ------------------
  136|      0|                            return (char16_t *)(s-1); /* well-formed match */
  137|      0|                        } else {
  138|      0|                            break; /* no match because surrogate pair is split */
  139|      0|                        }
  140|      0|                    }
  141|      0|                    if((c=*p)==0) {
  ------------------
  |  Branch (141:24): [True: 0, False: 0]
  ------------------
  142|      0|                        return nullptr; /* no match, and none possible after s */
  143|      0|                    }
  144|      0|                    if(c!=*q) {
  ------------------
  |  Branch (144:24): [True: 0, False: 0]
  ------------------
  145|      0|                        break; /* no match */
  146|      0|                    }
  147|      0|                    ++p;
  148|      0|                    ++q;
  149|      0|                }
  150|      0|            }
  151|      0|        }
  152|  2.68M|    } else {
  153|  2.68M|        const char16_t *limit, *preLimit;
  154|       |
  155|       |        /* subLength was decremented above */
  156|  2.68M|        if(length<=subLength) {
  ------------------
  |  Branch (156:12): [True: 1.06M, False: 1.62M]
  ------------------
  157|  1.06M|            return nullptr; /* s is shorter than sub */
  158|  1.06M|        }
  159|       |
  160|  1.62M|        limit=s+length;
  161|       |
  162|       |        /* the substring must start before preLimit */
  163|  1.62M|        preLimit=limit-subLength;
  164|       |
  165|  55.2M|        while(s!=preLimit) {
  ------------------
  |  Branch (165:15): [True: 53.8M, False: 1.43M]
  ------------------
  166|  53.8M|            c=*s++;
  167|  53.8M|            if(c==cs) {
  ------------------
  |  Branch (167:16): [True: 2.91M, False: 50.9M]
  ------------------
  168|       |                /* found first substring char16_t, compare rest */
  169|  2.91M|                p=s;
  170|  2.91M|                q=sub;
  171|  3.27M|                for(;;) {
  172|  3.27M|                    if(q==subLimit) {
  ------------------
  |  Branch (172:24): [True: 196k, False: 3.07M]
  ------------------
  173|   196k|                        if(isMatchAtCPBoundary(start, s-1, p, limit)) {
  ------------------
  |  Branch (173:28): [True: 196k, False: 0]
  ------------------
  174|   196k|                            return (char16_t *)(s-1); /* well-formed match */
  175|   196k|                        } else {
  176|      0|                            break; /* no match because surrogate pair is split */
  177|      0|                        }
  178|   196k|                    }
  179|  3.07M|                    if(*p!=*q) {
  ------------------
  |  Branch (179:24): [True: 2.72M, False: 357k]
  ------------------
  180|  2.72M|                        break; /* no match */
  181|  2.72M|                    }
  182|   357k|                    ++p;
  183|   357k|                    ++q;
  184|   357k|                }
  185|  2.91M|            }
  186|  53.8M|        }
  187|  1.62M|    }
  188|       |
  189|       |    /* not found */
  190|  1.43M|    return nullptr;
  191|  2.68M|}
u_strchr_78:
  199|  7.66k|u_strchr(const char16_t *s, char16_t c) {
  200|  7.66k|    if(U16_IS_SURROGATE(c)) {
  ------------------
  |  |   75|  7.66k|#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
  |  |  ------------------
  |  |  |  |  193|  7.66k|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (193:27): [True: 0, False: 7.66k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  201|       |        /* make sure to not find half of a surrogate pair */
  202|      0|        return u_strFindFirst(s, -1, &c, 1);
  ------------------
  |  |  361|      0|#define u_strFindFirst U_ICU_ENTRY_POINT_RENAME(u_strFindFirst)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  203|  7.66k|    } else {
  204|  7.66k|        char16_t cs;
  205|       |
  206|       |        /* trivial search for a BMP code point */
  207|  53.4k|        for(;;) {
  208|  53.4k|            if((cs=*s)==c) {
  ------------------
  |  Branch (208:16): [True: 7.66k, False: 45.7k]
  ------------------
  209|  7.66k|                return (char16_t *)s;
  210|  7.66k|            }
  211|  45.7k|            if(cs==0) {
  ------------------
  |  Branch (211:16): [True: 0, False: 45.7k]
  ------------------
  212|      0|                return nullptr;
  213|      0|            }
  214|  45.7k|            ++s;
  215|  45.7k|        }
  216|  7.66k|    }
  217|  7.66k|}
u_memchr_78:
  241|  32.8M|u_memchr(const char16_t *s, char16_t c, int32_t count) {
  242|  32.8M|    if(count<=0) {
  ------------------
  |  Branch (242:8): [True: 786k, False: 32.0M]
  ------------------
  243|   786k|        return nullptr; /* no string */
  244|  32.0M|    } else if(U16_IS_SURROGATE(c)) {
  ------------------
  |  |   75|  32.0M|#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
  |  |  ------------------
  |  |  |  |  193|  32.0M|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (193:27): [True: 0, False: 32.0M]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  245|       |        /* make sure to not find half of a surrogate pair */
  246|      0|        return u_strFindFirst(s, count, &c, 1);
  ------------------
  |  |  361|      0|#define u_strFindFirst U_ICU_ENTRY_POINT_RENAME(u_strFindFirst)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  247|  32.0M|    } else {
  248|       |        /* trivial search for a BMP code point */
  249|  32.0M|        const char16_t *limit=s+count;
  250|   137M|        do {
  251|   137M|            if(*s==c) {
  ------------------
  |  Branch (251:16): [True: 9.15M, False: 128M]
  ------------------
  252|  9.15M|                return (char16_t *)s;
  253|  9.15M|            }
  254|   137M|        } while(++s!=limit);
  ------------------
  |  Branch (254:17): [True: 105M, False: 22.8M]
  ------------------
  255|  22.8M|        return nullptr;
  256|  32.0M|    }
  257|  32.8M|}
u_strFindLast_78:
  288|  15.3k|              const char16_t *sub, int32_t subLength) {
  289|  15.3k|    const char16_t *start, *limit, *p, *q, *subLimit;
  290|  15.3k|    char16_t c, cs;
  291|       |
  292|  15.3k|    if(sub==nullptr || subLength<-1) {
  ------------------
  |  Branch (292:8): [True: 0, False: 15.3k]
  |  Branch (292:24): [True: 0, False: 15.3k]
  ------------------
  293|      0|        return (char16_t *)s;
  294|      0|    }
  295|  15.3k|    if(s==nullptr || length<-1) {
  ------------------
  |  Branch (295:8): [True: 0, False: 15.3k]
  |  Branch (295:22): [True: 0, False: 15.3k]
  ------------------
  296|      0|        return nullptr;
  297|      0|    }
  298|       |
  299|       |    /*
  300|       |     * This implementation is more lazy than the one for u_strFindFirst():
  301|       |     * There is no special search code for NUL-terminated strings.
  302|       |     * It does not seem to be worth it for searching substrings to
  303|       |     * search forward and find all matches like in u_strrchr() and similar.
  304|       |     * Therefore, we simply get both string lengths and search backward.
  305|       |     *
  306|       |     * markus 2002oct23
  307|       |     */
  308|       |
  309|  15.3k|    if(subLength<0) {
  ------------------
  |  Branch (309:8): [True: 0, False: 15.3k]
  ------------------
  310|      0|        subLength=u_strlen(sub);
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  311|      0|    }
  312|  15.3k|    if(subLength==0) {
  ------------------
  |  Branch (312:8): [True: 0, False: 15.3k]
  ------------------
  313|      0|        return (char16_t *)s;
  314|      0|    }
  315|       |
  316|       |    /* get sub[subLength-1] to search for it fast */
  317|  15.3k|    subLimit=sub+subLength;
  318|  15.3k|    cs=*(--subLimit);
  319|  15.3k|    --subLength;
  320|       |
  321|  15.3k|    if(subLength==0 && !U16_IS_SURROGATE(cs)) {
  ------------------
  |  |   75|      0|#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
  |  |  ------------------
  |  |  |  |  193|      0|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  ------------------
  ------------------
  |  Branch (321:8): [True: 0, False: 15.3k]
  |  Branch (321:24): [True: 0, False: 0]
  ------------------
  322|       |        /* the substring consists of a single, non-surrogate BMP code point */
  323|      0|        return length<0 ? u_strrchr(s, cs) : u_memrchr(s, cs, length);
  ------------------
  |  |  400|      0|#define u_strrchr U_ICU_ENTRY_POINT_RENAME(u_strrchr)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      return length<0 ? u_strrchr(s, cs) : u_memrchr(s, cs, length);
  ------------------
  |  |  336|      0|#define u_memrchr U_ICU_ENTRY_POINT_RENAME(u_memrchr)
  |  |  ------------------
  |  |  |  |  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 (323:16): [True: 0, False: 0]
  ------------------
  324|      0|    }
  325|       |
  326|  15.3k|    if(length<0) {
  ------------------
  |  Branch (326:8): [True: 0, False: 15.3k]
  ------------------
  327|      0|        length=u_strlen(s);
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  328|      0|    }
  329|       |
  330|       |    /* subLength was decremented above */
  331|  15.3k|    if(length<=subLength) {
  ------------------
  |  Branch (331:8): [True: 0, False: 15.3k]
  ------------------
  332|      0|        return nullptr; /* s is shorter than sub */
  333|      0|    }
  334|       |
  335|  15.3k|    start=s;
  336|  15.3k|    limit=s+length;
  337|       |
  338|       |    /* the substring must start no later than s+subLength */
  339|  15.3k|    s+=subLength;
  340|       |
  341|  31.4k|    while(s!=limit) {
  ------------------
  |  Branch (341:11): [True: 30.6k, False: 802]
  ------------------
  342|  30.6k|        c=*(--limit);
  343|  30.6k|        if(c==cs) {
  ------------------
  |  Branch (343:12): [True: 15.3k, False: 15.2k]
  ------------------
  344|       |            /* found last substring char16_t, compare rest */
  345|  15.3k|            p=limit;
  346|  15.3k|            q=subLimit;
  347|  29.8k|            for(;;) {
  348|  29.8k|                if(q==sub) {
  ------------------
  |  Branch (348:20): [True: 14.5k, False: 15.3k]
  ------------------
  349|  14.5k|                    if(isMatchAtCPBoundary(start, p, limit+1, start+length)) {
  ------------------
  |  Branch (349:24): [True: 14.5k, False: 0]
  ------------------
  350|  14.5k|                        return (char16_t *)p; /* well-formed match */
  351|  14.5k|                    } else {
  352|      0|                        break; /* no match because surrogate pair is split */
  353|      0|                    }
  354|  14.5k|                }
  355|  15.3k|                if(*(--p)!=*(--q)) {
  ------------------
  |  Branch (355:20): [True: 802, False: 14.5k]
  ------------------
  356|    802|                    break; /* no match */
  357|    802|                }
  358|  15.3k|            }
  359|  15.3k|        }
  360|  30.6k|    }
  361|       |
  362|       |    /* not found */
  363|    802|    return nullptr;
  364|  15.3k|}
u_memrchr_78:
  416|  16.4k|u_memrchr(const char16_t *s, char16_t c, int32_t count) {
  417|  16.4k|    if(count<=0) {
  ------------------
  |  Branch (417:8): [True: 0, False: 16.4k]
  ------------------
  418|      0|        return nullptr; /* no string */
  419|  16.4k|    } else if(U16_IS_SURROGATE(c)) {
  ------------------
  |  |   75|  16.4k|#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
  |  |  ------------------
  |  |  |  |  193|  16.4k|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (193:27): [True: 0, False: 16.4k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  420|       |        /* make sure to not find half of a surrogate pair */
  421|      0|        return u_strFindLast(s, count, &c, 1);
  ------------------
  |  |  362|      0|#define u_strFindLast U_ICU_ENTRY_POINT_RENAME(u_strFindLast)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  422|  16.4k|    } else {
  423|       |        /* trivial search for a BMP code point */
  424|  16.4k|        const char16_t *limit=s+count;
  425|  35.6k|        do {
  426|  35.6k|            if(*(--limit)==c) {
  ------------------
  |  Branch (426:16): [True: 16.2k, False: 19.4k]
  ------------------
  427|  16.2k|                return (char16_t *)limit;
  428|  16.2k|            }
  429|  35.6k|        } while(s!=limit);
  ------------------
  |  Branch (429:17): [True: 19.2k, False: 204]
  ------------------
  430|    204|        return nullptr;
  431|  16.4k|    }
  432|  16.4k|}
u_strcmp_78:
  673|  1.52k|{
  674|  1.52k|    char16_t  c1, c2;
  675|       |
  676|  8.61k|    for(;;) {
  677|  8.61k|        c1=*s1++;
  678|  8.61k|        c2=*s2++;
  679|  8.61k|        if (c1 != c2 || c1 == 0) {
  ------------------
  |  Branch (679:13): [True: 0, False: 8.61k]
  |  Branch (679:25): [True: 1.52k, False: 7.08k]
  ------------------
  680|  1.52k|            break;
  681|  1.52k|        }
  682|  8.61k|    }
  683|  1.52k|    return (int32_t)c1 - (int32_t)c2;
  684|  1.52k|}
u_strncmp_78:
  945|  4.91k|{
  946|  4.91k|    if(n > 0) {
  ------------------
  |  Branch (946:8): [True: 4.91k, False: 0]
  ------------------
  947|  4.91k|        int32_t rc;
  948|  14.6k|        for(;;) {
  949|  14.6k|            rc = (int32_t)*s1 - (int32_t)*s2;
  950|  14.6k|            if(rc != 0 || *s1 == 0 || --n == 0) {
  ------------------
  |  Branch (950:16): [True: 60, False: 14.6k]
  |  Branch (950:27): [True: 0, False: 14.6k]
  |  Branch (950:39): [True: 4.85k, False: 9.77k]
  ------------------
  951|  4.91k|                return rc;
  952|  4.91k|            }
  953|  9.77k|            ++s1;
  954|  9.77k|            ++s2;
  955|  9.77k|        }
  956|  4.91k|    } else {
  957|      0|        return 0;
  958|      0|    }
  959|  4.91k|}
u_strcpy_78:
  969|  1.22M|{
  970|  1.22M|    char16_t *anchor = dst;            /* save a pointer to start of dst */
  971|       |
  972|  4.88M|    while((*(dst++) = *(src++)) != 0) {     /* copy string 2 over              */
  ------------------
  |  Branch (972:11): [True: 3.66M, False: 1.22M]
  ------------------
  973|  3.66M|    }
  974|       |
  975|  1.22M|    return anchor;
  976|  1.22M|}
u_strncpy_78:
  982|   355k|{
  983|   355k|    char16_t *anchor = dst;            /* save a pointer to start of dst */
  984|       |
  985|       |    /* copy string 2 over */
  986|  1.22M|    while(n > 0 && (*(dst++) = *(src++)) != 0) {
  ------------------
  |  Branch (986:11): [True: 876k, False: 351k]
  |  Branch (986:20): [True: 872k, False: 3.82k]
  ------------------
  987|   872k|        --n;
  988|   872k|    }
  989|       |
  990|   355k|    return anchor;
  991|   355k|}
u_strlen_78:
  995|  7.76M|{
  996|       |#if U_SIZEOF_WCHAR_T == U_SIZEOF_UCHAR
  997|       |    return (int32_t)uprv_wcslen((const wchar_t *)s);
  998|       |#else
  999|  7.76M|    const char16_t *t = s;
 1000|  48.2M|    while(*t != 0) {
  ------------------
  |  Branch (1000:11): [True: 40.5M, False: 7.76M]
  ------------------
 1001|  40.5M|      ++t;
 1002|  40.5M|    }
 1003|  7.76M|    return t - s;
 1004|  7.76M|#endif
 1005|  7.76M|}
u_countChar32_78:
 1008|   746k|u_countChar32(const char16_t *s, int32_t length) {
 1009|   746k|    int32_t count;
 1010|       |
 1011|   746k|    if(s==nullptr || length<-1) {
  ------------------
  |  Branch (1011:8): [True: 0, False: 746k]
  |  Branch (1011:22): [True: 0, False: 746k]
  ------------------
 1012|      0|        return 0;
 1013|      0|    }
 1014|       |
 1015|   746k|    count=0;
 1016|   746k|    if(length>=0) {
  ------------------
  |  Branch (1016:8): [True: 746k, False: 0]
  ------------------
 1017|  2.34M|        while(length>0) {
  ------------------
  |  Branch (1017:15): [True: 1.59M, False: 746k]
  ------------------
 1018|  1.59M|            ++count;
 1019|  1.59M|            if(U16_IS_LEAD(*s) && length>=2 && U16_IS_TRAIL(*(s+1))) {
  ------------------
  |  |   59|  3.19M|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 6.97k, False: 1.59M]
  |  |  ------------------
  ------------------
                          if(U16_IS_LEAD(*s) && length>=2 && U16_IS_TRAIL(*(s+1))) {
  ------------------
  |  |   67|  6.97k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 6.97k, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (1019:35): [True: 6.97k, False: 0]
  ------------------
 1020|  6.97k|                s+=2;
 1021|  6.97k|                length-=2;
 1022|  1.59M|            } else {
 1023|  1.59M|                ++s;
 1024|  1.59M|                --length;
 1025|  1.59M|            }
 1026|  1.59M|        }
 1027|   746k|    } else /* length==-1 */ {
 1028|      0|        char16_t c;
 1029|       |
 1030|      0|        for(;;) {
 1031|      0|            if((c=*s++)==0) {
  ------------------
  |  Branch (1031:16): [True: 0, False: 0]
  ------------------
 1032|      0|                break;
 1033|      0|            }
 1034|      0|            ++count;
 1035|       |
 1036|       |            /*
 1037|       |             * sufficient to look ahead one because of UTF-16;
 1038|       |             * safe to look ahead one because at worst that would be the terminating NUL
 1039|       |             */
 1040|      0|            if(U16_IS_LEAD(c) && U16_IS_TRAIL(*s)) {
  ------------------
  |  |   59|      0|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
                          if(U16_IS_LEAD(c) && U16_IS_TRAIL(*s)) {
  ------------------
  |  |   67|      0|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1041|      0|                ++s;
 1042|      0|            }
 1043|      0|        }
 1044|      0|    }
 1045|   746k|    return count;
 1046|   746k|}
u_memcpy_78:
 1117|  3.77M|u_memcpy(char16_t *dest, const char16_t *src, int32_t count) {
 1118|  3.77M|    if(count > 0) {
  ------------------
  |  Branch (1118:8): [True: 3.77M, False: 0]
  ------------------
 1119|  3.77M|        uprv_memcpy(dest, src, (size_t)count*U_SIZEOF_UCHAR);
  ------------------
  |  |   42|  3.77M|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  3.77M|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  3.77M|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  3.77M|    _Pragma("clang diagnostic push") \
  |  |   45|  3.77M|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  3.77M|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.77M|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  3.77M|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.77M|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  3.77M|    _Pragma("clang diagnostic pop") \
  |  |   49|  3.77M|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  3.77M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  3.77M|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  3.77M|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1120|  3.77M|    }
 1121|  3.77M|    return dest;
 1122|  3.77M|}
u_memcmp_78:
 1146|   986k|u_memcmp(const char16_t *buf1, const char16_t *buf2, int32_t count) {
 1147|   986k|    if(count > 0) {
  ------------------
  |  Branch (1147:8): [True: 986k, False: 0]
  ------------------
 1148|   986k|        const char16_t *limit = buf1 + count;
 1149|   986k|        int32_t result;
 1150|       |
 1151|  2.59M|        while (buf1 < limit) {
  ------------------
  |  Branch (1151:16): [True: 2.49M, False: 102k]
  ------------------
 1152|  2.49M|            result = (int32_t)(uint16_t)*buf1 - (int32_t)(uint16_t)*buf2;
 1153|  2.49M|            if (result != 0) {
  ------------------
  |  Branch (1153:17): [True: 883k, False: 1.61M]
  ------------------
 1154|   883k|                return result;
 1155|   883k|            }
 1156|  1.61M|            buf1++;
 1157|  1.61M|            buf2++;
 1158|  1.61M|        }
 1159|   986k|    }
 1160|   102k|    return 0;
 1161|   986k|}
u_terminateUChars_78:
 1469|  85.5k|u_terminateUChars(char16_t *dest, int32_t destCapacity, int32_t length, UErrorCode *pErrorCode) {
 1470|  85.5k|    __TERMINATE_STRING(dest, destCapacity, length, pErrorCode);
  ------------------
  |  | 1437|  85.5k|#define __TERMINATE_STRING(dest, destCapacity, length, pErrorCode) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  85.5k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  | 1438|  85.5k|    if(pErrorCode!=nullptr && U_SUCCESS(*pErrorCode)) {                    \
  |  |  ------------------
  |  |  |  Branch (1438:8): [True: 85.5k, False: 0]
  |  |  |  Branch (1438:31): [True: 75.1k, False: 10.4k]
  |  |  ------------------
  |  | 1439|  75.1k|        /* not a public function, so no complete argument checking */   \
  |  | 1440|  75.1k|                                                                        \
  |  | 1441|  75.1k|        if(length<0) {                                                  \
  |  |  ------------------
  |  |  |  Branch (1441:12): [True: 0, False: 75.1k]
  |  |  ------------------
  |  | 1442|      0|            /* assume that the caller handles this */                   \
  |  | 1443|  75.1k|        } else if(length<destCapacity) {                                \
  |  |  ------------------
  |  |  |  Branch (1443:19): [True: 75.1k, False: 34]
  |  |  ------------------
  |  | 1444|  75.1k|            /* NUL-terminate the string, the NUL fits */                \
  |  | 1445|  75.1k|            dest[length]=0;                                             \
  |  | 1446|  75.1k|            /* unset the not-terminated warning but leave all others */ \
  |  | 1447|  75.1k|            if(*pErrorCode==U_STRING_NOT_TERMINATED_WARNING) {          \
  |  |  ------------------
  |  |  |  Branch (1447:16): [True: 0, False: 75.1k]
  |  |  ------------------
  |  | 1448|      0|                *pErrorCode=U_ZERO_ERROR;                               \
  |  | 1449|      0|            }                                                           \
  |  | 1450|  75.1k|        } else if(length==destCapacity) {                               \
  |  |  ------------------
  |  |  |  Branch (1450:19): [True: 34, False: 0]
  |  |  ------------------
  |  | 1451|     34|            /* unable to NUL-terminate, but the string itself fit - set a warning code */ \
  |  | 1452|     34|            *pErrorCode=U_STRING_NOT_TERMINATED_WARNING;                \
  |  | 1453|     34|        } 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|  75.1k|    } \
  |  | 1458|  85.5k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  85.5k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1471|  85.5k|    return length;
 1472|  85.5k|}
u_terminateChars_78:
 1475|   377k|u_terminateChars(char *dest, int32_t destCapacity, int32_t length, UErrorCode *pErrorCode) {
 1476|   377k|    __TERMINATE_STRING(dest, destCapacity, length, pErrorCode);
  ------------------
  |  | 1437|   377k|#define __TERMINATE_STRING(dest, destCapacity, length, pErrorCode) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   377k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  | 1438|   377k|    if(pErrorCode!=nullptr && U_SUCCESS(*pErrorCode)) {                    \
  |  |  ------------------
  |  |  |  Branch (1438:8): [True: 377k, False: 0]
  |  |  |  Branch (1438:31): [True: 376k, False: 78]
  |  |  ------------------
  |  | 1439|   376k|        /* not a public function, so no complete argument checking */   \
  |  | 1440|   376k|                                                                        \
  |  | 1441|   376k|        if(length<0) {                                                  \
  |  |  ------------------
  |  |  |  Branch (1441:12): [True: 0, False: 376k]
  |  |  ------------------
  |  | 1442|      0|            /* assume that the caller handles this */                   \
  |  | 1443|   376k|        } else if(length<destCapacity) {                                \
  |  |  ------------------
  |  |  |  Branch (1443:19): [True: 332k, False: 44.7k]
  |  |  ------------------
  |  | 1444|   332k|            /* NUL-terminate the string, the NUL fits */                \
  |  | 1445|   332k|            dest[length]=0;                                             \
  |  | 1446|   332k|            /* unset the not-terminated warning but leave all others */ \
  |  | 1447|   332k|            if(*pErrorCode==U_STRING_NOT_TERMINATED_WARNING) {          \
  |  |  ------------------
  |  |  |  Branch (1447:16): [True: 0, False: 332k]
  |  |  ------------------
  |  | 1448|      0|                *pErrorCode=U_ZERO_ERROR;                               \
  |  | 1449|      0|            }                                                           \
  |  | 1450|   332k|        } else if(length==destCapacity) {                               \
  |  |  ------------------
  |  |  |  Branch (1450:19): [True: 44.6k, False: 14]
  |  |  ------------------
  |  | 1451|  44.6k|            /* unable to NUL-terminate, but the string itself fit - set a warning code */ \
  |  | 1452|  44.6k|            *pErrorCode=U_STRING_NOT_TERMINATED_WARNING;                \
  |  | 1453|  44.6k|        } else /* length>destCapacity */ {                              \
  |  | 1454|     14|            /* even the string itself did not fit - set an error code */ \
  |  | 1455|     14|            *pErrorCode=U_BUFFER_OVERFLOW_ERROR;                        \
  |  | 1456|     14|        }                                                               \
  |  | 1457|   376k|    } \
  |  | 1458|   377k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   377k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1477|   377k|    return length;
 1478|   377k|}
ustr_hashUCharsN_78:
 1523|  4.90M|ustr_hashUCharsN(const char16_t *str, int32_t length) {
 1524|  4.90M|    STRING_HASH(char16_t, str, length, *p);
  ------------------
  |  | 1506|  4.90M|#define STRING_HASH(TYPE, STR, STRLEN, DEREF) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  4.90M|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  | 1507|  4.90M|    uint32_t hash = 0;                        \
  |  | 1508|  4.90M|    const TYPE *p = (const TYPE*) STR;        \
  |  | 1509|  4.90M|    if (p != nullptr) {                          \
  |  |  ------------------
  |  |  |  Branch (1509:9): [True: 4.90M, False: 0]
  |  |  ------------------
  |  | 1510|  4.90M|        int32_t len = (int32_t)(STRLEN);      \
  |  | 1511|  4.90M|        int32_t inc = ((len - 32) / 32) + 1;  \
  |  | 1512|  4.90M|        const TYPE *limit = p + len;          \
  |  | 1513|  71.6M|        while (p<limit) {                     \
  |  |  ------------------
  |  |  |  Branch (1513:16): [True: 66.7M, False: 4.90M]
  |  |  ------------------
  |  | 1514|  66.7M|            hash = (hash * 37) + DEREF;       \
  |  | 1515|  66.7M|            p += inc;                         \
  |  | 1516|  66.7M|        }                                     \
  |  | 1517|  4.90M|    }                                         \
  |  | 1518|  4.90M|    return static_cast<int32_t>(hash);        \
  |  | 1519|  4.90M|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  4.90M|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1525|  4.90M|}
ustr_hashCharsN_78:
 1528|  3.84M|ustr_hashCharsN(const char *str, int32_t length) {
 1529|  3.84M|    STRING_HASH(uint8_t, str, length, *p);
  ------------------
  |  | 1506|  3.84M|#define STRING_HASH(TYPE, STR, STRLEN, DEREF) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  3.84M|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  | 1507|  3.84M|    uint32_t hash = 0;                        \
  |  | 1508|  3.84M|    const TYPE *p = (const TYPE*) STR;        \
  |  | 1509|  3.84M|    if (p != nullptr) {                          \
  |  |  ------------------
  |  |  |  Branch (1509:9): [True: 3.84M, False: 0]
  |  |  ------------------
  |  | 1510|  3.84M|        int32_t len = (int32_t)(STRLEN);      \
  |  | 1511|  3.84M|        int32_t inc = ((len - 32) / 32) + 1;  \
  |  | 1512|  3.84M|        const TYPE *limit = p + len;          \
  |  | 1513|  56.0M|        while (p<limit) {                     \
  |  |  ------------------
  |  |  |  Branch (1513:16): [True: 52.1M, False: 3.84M]
  |  |  ------------------
  |  | 1514|  52.1M|            hash = (hash * 37) + DEREF;       \
  |  | 1515|  52.1M|            p += inc;                         \
  |  | 1516|  52.1M|        }                                     \
  |  | 1517|  3.84M|    }                                         \
  |  | 1518|  3.84M|    return static_cast<int32_t>(hash);        \
  |  | 1519|  3.84M|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  3.84M|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1530|  3.84M|}
ustr_hashICharsN_78:
 1533|   127k|ustr_hashICharsN(const char *str, int32_t length) {
 1534|   127k|    STRING_HASH(char, str, length, (uint8_t)uprv_tolower(*p));
  ------------------
  |  | 1506|   127k|#define STRING_HASH(TYPE, STR, STRLEN, DEREF) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   127k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  | 1507|   127k|    uint32_t hash = 0;                        \
  |  | 1508|   127k|    const TYPE *p = (const TYPE*) STR;        \
  |  | 1509|   127k|    if (p != nullptr) {                          \
  |  |  ------------------
  |  |  |  Branch (1509:9): [True: 127k, False: 0]
  |  |  ------------------
  |  | 1510|   127k|        int32_t len = (int32_t)(STRLEN);      \
  |  | 1511|   127k|        int32_t inc = ((len - 32) / 32) + 1;  \
  |  | 1512|   127k|        const TYPE *limit = p + len;          \
  |  | 1513|   444k|        while (p<limit) {                     \
  |  |  ------------------
  |  |  |  Branch (1513:16): [True: 316k, False: 127k]
  |  |  ------------------
  |  | 1514|   316k|            hash = (hash * 37) + DEREF;       \
  |  | 1515|   316k|            p += inc;                         \
  |  | 1516|   316k|        }                                     \
  |  | 1517|   127k|    }                                         \
  |  | 1518|   127k|    return static_cast<int32_t>(hash);        \
  |  | 1519|   127k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   127k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1535|   127k|}
ustring.cpp:_ZL19isMatchAtCPBoundaryPKDsS0_S0_S0_:
   43|   210k|isMatchAtCPBoundary(const char16_t *start, const char16_t *match, const char16_t *matchLimit, const char16_t *limit) {
   44|   210k|    if(U16_IS_TRAIL(*match) && start!=match && U16_IS_LEAD(*(match-1))) {
  ------------------
  |  |   67|   421k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 0, False: 210k]
  |  |  ------------------
  ------------------
                  if(U16_IS_TRAIL(*match) && start!=match && U16_IS_LEAD(*(match-1))) {
  ------------------
  |  |   59|      0|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (44:32): [True: 0, False: 0]
  ------------------
   45|       |        /* the leading edge of the match is in the middle of a surrogate pair */
   46|      0|        return false;
   47|      0|    }
   48|   210k|    if(U16_IS_LEAD(*(matchLimit-1)) && matchLimit!=limit && U16_IS_TRAIL(*matchLimit)) {
  ------------------
  |  |   59|   421k|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 0, False: 210k]
  |  |  ------------------
  ------------------
                  if(U16_IS_LEAD(*(matchLimit-1)) && matchLimit!=limit && U16_IS_TRAIL(*matchLimit)) {
  ------------------
  |  |   67|      0|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (48:40): [True: 0, False: 0]
  ------------------
   49|       |        /* the trailing edge of the match is in the middle of a surrogate pair */
   50|      0|        return false;
   51|      0|    }
   52|   210k|    return true;
   53|   210k|}

u_strFromUTF8WithSub_78:
  266|  8.14k|              UErrorCode *pErrorCode){
  267|       |    /* args check */
  268|  8.14k|    if(U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (268:8): [True: 0, False: 8.14k]
  ------------------
  269|      0|        return nullptr;
  270|      0|    }
  271|  8.14k|    if( (src==nullptr && srcLength!=0) || srcLength < -1 ||
  ------------------
  |  Branch (271:10): [True: 0, False: 8.14k]
  |  Branch (271:26): [True: 0, False: 0]
  |  Branch (271:43): [True: 0, False: 8.14k]
  ------------------
  272|  8.14k|        (destCapacity<0) || (dest == nullptr && destCapacity > 0) ||
  ------------------
  |  Branch (272:9): [True: 0, False: 8.14k]
  |  Branch (272:30): [True: 0, False: 8.14k]
  |  Branch (272:49): [True: 0, False: 0]
  ------------------
  273|  8.14k|        subchar > 0x10ffff || U_IS_SURROGATE(subchar)
  ------------------
  |  |  193|  8.14k|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  ------------------
  |  |  |  Branch (193:27): [True: 0, False: 8.14k]
  |  |  ------------------
  ------------------
  |  Branch (273:9): [True: 0, False: 8.14k]
  ------------------
  274|  8.14k|    ) {
  275|      0|        *pErrorCode = U_ILLEGAL_ARGUMENT_ERROR;
  276|      0|        return nullptr;
  277|      0|    }
  278|       |
  279|  8.14k|    if(pNumSubstitutions!=nullptr) {
  ------------------
  |  Branch (279:8): [True: 0, False: 8.14k]
  ------------------
  280|      0|        *pNumSubstitutions=0;
  281|      0|    }
  282|  8.14k|    char16_t *pDest = dest;
  283|  8.14k|    char16_t *pDestLimit = dest+destCapacity;
  284|  8.14k|    int32_t reqLength = 0;
  285|  8.14k|    int32_t numSubstitutions=0;
  286|       |
  287|       |    /*
  288|       |     * Inline processing of UTF-8 byte sequences:
  289|       |     *
  290|       |     * Byte sequences for the most common characters are handled inline in
  291|       |     * the conversion loops. In order to reduce the path lengths for those
  292|       |     * characters, the tests are arranged in a kind of binary search.
  293|       |     * ASCII (<=0x7f) is checked first, followed by the dividing point
  294|       |     * between 2- and 3-byte sequences (0xe0).
  295|       |     * The 3-byte branch is tested first to speed up CJK text.
  296|       |     * The compiler should combine the subtractions for the two tests for 0xe0.
  297|       |     * Each branch then tests for the other end of its range.
  298|       |     */
  299|       |
  300|  8.14k|    if(srcLength < 0){
  ------------------
  |  Branch (300:8): [True: 0, False: 8.14k]
  ------------------
  301|       |        /*
  302|       |         * Transform a NUL-terminated string.
  303|       |         * The code explicitly checks for NULs only in the lead byte position.
  304|       |         * A NUL byte in the trail byte position fails the trail byte range check anyway.
  305|       |         */
  306|      0|        int32_t i;
  307|      0|        UChar32 c;
  308|      0|        for(i = 0; (c = (uint8_t)src[i]) != 0 && (pDest < pDestLimit);) {
  ------------------
  |  Branch (308:20): [True: 0, False: 0]
  |  Branch (308:50): [True: 0, False: 0]
  ------------------
  309|       |            // modified copy of U8_NEXT()
  310|      0|            ++i;
  311|      0|            if(U8_IS_SINGLE(c)) {
  ------------------
  |  |  173|      0|#define U8_IS_SINGLE(c) (((c)&0x80)==0)
  |  |  ------------------
  |  |  |  Branch (173:25): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  312|      0|                *pDest++=(char16_t)c;
  313|      0|            } else {
  314|      0|                uint8_t __t1, __t2;
  315|      0|                if( /* handle U+0800..U+FFFF inline */
  316|      0|                        (0xe0<=(c) && (c)<0xf0) &&
  ------------------
  |  Branch (316:26): [True: 0, False: 0]
  |  Branch (316:39): [True: 0, False: 0]
  ------------------
  317|      0|                        U8_IS_VALID_LEAD3_AND_T1((c), src[i]) &&
  ------------------
  |  |   98|      0|#define U8_IS_VALID_LEAD3_AND_T1(lead, t1) (U8_LEAD3_T1_BITS[(lead)&0xf]&(1<<((uint8_t)(t1)>>5)))
  |  |  ------------------
  |  |  |  |   91|      0|#define U8_LEAD3_T1_BITS "\x20\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x10\x30\x30"
  |  |  ------------------
  |  |  |  Branch (98:44): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  318|      0|                        (__t2=src[(i)+1]-0x80)<=0x3f) {
  ------------------
  |  Branch (318:25): [True: 0, False: 0]
  ------------------
  319|      0|                    *pDest++ = (((c)&0xf)<<12)|((src[i]&0x3f)<<6)|__t2;
  320|      0|                    i+=2;
  321|      0|                } else if( /* handle U+0080..U+07FF inline */
  322|      0|                        ((c)<0xe0 && (c)>=0xc2) &&
  ------------------
  |  Branch (322:26): [True: 0, False: 0]
  |  Branch (322:38): [True: 0, False: 0]
  ------------------
  323|      0|                        (__t1=src[i]-0x80)<=0x3f) {
  ------------------
  |  Branch (323:25): [True: 0, False: 0]
  ------------------
  324|      0|                    *pDest++ = (((c)&0x1f)<<6)|__t1;
  325|      0|                    ++(i);
  326|      0|                } else {
  327|       |                    /* function call for "complicated" and error cases */
  328|      0|                    (c)=utf8_nextCharSafeBody((const uint8_t *)src, &(i), -1, c, -1);
  ------------------
  |  | 1920|      0|#define utf8_nextCharSafeBody U_ICU_ENTRY_POINT_RENAME(utf8_nextCharSafeBody)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  329|      0|                    if(c<0 && (++numSubstitutions, c = subchar) < 0) {
  ------------------
  |  Branch (329:24): [True: 0, False: 0]
  |  Branch (329:31): [True: 0, False: 0]
  ------------------
  330|      0|                        *pErrorCode = U_INVALID_CHAR_FOUND;
  331|      0|                        return nullptr;
  332|      0|                    } else if(c<=0xFFFF) {
  ------------------
  |  Branch (332:31): [True: 0, False: 0]
  ------------------
  333|      0|                        *(pDest++)=(char16_t)c;
  334|      0|                    } else {
  335|      0|                        *(pDest++)=U16_LEAD(c);
  ------------------
  |  |  123|      0|#define U16_LEAD(supplementary) (UChar)(((supplementary)>>10)+0xd7c0)
  ------------------
  336|      0|                        if(pDest<pDestLimit) {
  ------------------
  |  Branch (336:28): [True: 0, False: 0]
  ------------------
  337|      0|                            *(pDest++)=U16_TRAIL(c);
  ------------------
  |  |  132|      0|#define U16_TRAIL(supplementary) (UChar)(((supplementary)&0x3ff)|0xdc00)
  ------------------
  338|      0|                        } else {
  339|      0|                            reqLength++;
  340|      0|                            break;
  341|      0|                        }
  342|      0|                    }
  343|      0|                }
  344|      0|            }
  345|      0|        }
  346|       |
  347|       |        /* Pre-flight the rest of the string. */
  348|      0|        while((c = (uint8_t)src[i]) != 0) {
  ------------------
  |  Branch (348:15): [True: 0, False: 0]
  ------------------
  349|       |            // modified copy of U8_NEXT()
  350|      0|            ++i;
  351|      0|            if(U8_IS_SINGLE(c)) {
  ------------------
  |  |  173|      0|#define U8_IS_SINGLE(c) (((c)&0x80)==0)
  |  |  ------------------
  |  |  |  Branch (173:25): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  352|      0|                ++reqLength;
  353|      0|            } else {
  354|      0|                uint8_t __t1, __t2;
  355|      0|                if( /* handle U+0800..U+FFFF inline */
  356|      0|                        (0xe0<=(c) && (c)<0xf0) &&
  ------------------
  |  Branch (356:26): [True: 0, False: 0]
  |  Branch (356:39): [True: 0, False: 0]
  ------------------
  357|      0|                        U8_IS_VALID_LEAD3_AND_T1((c), src[i]) &&
  ------------------
  |  |   98|      0|#define U8_IS_VALID_LEAD3_AND_T1(lead, t1) (U8_LEAD3_T1_BITS[(lead)&0xf]&(1<<((uint8_t)(t1)>>5)))
  |  |  ------------------
  |  |  |  |   91|      0|#define U8_LEAD3_T1_BITS "\x20\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x10\x30\x30"
  |  |  ------------------
  |  |  |  Branch (98:44): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  358|      0|                        (__t2=src[(i)+1]-0x80)<=0x3f) {
  ------------------
  |  Branch (358:25): [True: 0, False: 0]
  ------------------
  359|      0|                    ++reqLength;
  360|      0|                    i+=2;
  361|      0|                } else if( /* handle U+0080..U+07FF inline */
  362|      0|                        ((c)<0xe0 && (c)>=0xc2) &&
  ------------------
  |  Branch (362:26): [True: 0, False: 0]
  |  Branch (362:38): [True: 0, False: 0]
  ------------------
  363|      0|                        (__t1=src[i]-0x80)<=0x3f) {
  ------------------
  |  Branch (363:25): [True: 0, False: 0]
  ------------------
  364|      0|                    ++reqLength;
  365|      0|                    ++(i);
  366|      0|                } else {
  367|       |                    /* function call for "complicated" and error cases */
  368|      0|                    (c)=utf8_nextCharSafeBody((const uint8_t *)src, &(i), -1, c, -1);
  ------------------
  |  | 1920|      0|#define utf8_nextCharSafeBody U_ICU_ENTRY_POINT_RENAME(utf8_nextCharSafeBody)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  369|      0|                    if(c<0 && (++numSubstitutions, c = subchar) < 0) {
  ------------------
  |  Branch (369:24): [True: 0, False: 0]
  |  Branch (369:31): [True: 0, False: 0]
  ------------------
  370|      0|                        *pErrorCode = U_INVALID_CHAR_FOUND;
  371|      0|                        return nullptr;
  372|      0|                    }
  373|      0|                    reqLength += U16_LENGTH(c);
  ------------------
  |  |  141|      0|#define U16_LENGTH(c) ((uint32_t)(c)<=0xffff ? 1 : 2)
  |  |  ------------------
  |  |  |  Branch (141:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  374|      0|                }
  375|      0|            }
  376|      0|        }
  377|  8.14k|    } else /* srcLength >= 0 */ {
  378|       |        /* Faster loop without ongoing checking for srcLength and pDestLimit. */
  379|  8.14k|        int32_t i = 0;
  380|  8.14k|        UChar32 c;
  381|  43.0k|        for(;;) {
  382|       |            /*
  383|       |             * Each iteration of the inner loop progresses by at most 3 UTF-8
  384|       |             * bytes and one char16_t, for most characters.
  385|       |             * For supplementary code points (4 & 2), which are rare,
  386|       |             * there is an additional adjustment.
  387|       |             */
  388|  43.0k|            int32_t count = (int32_t)(pDestLimit - pDest);
  389|  43.0k|            int32_t count2 = (srcLength - i) / 3;
  390|  43.0k|            if(count > count2) {
  ------------------
  |  Branch (390:16): [True: 43.0k, False: 0]
  ------------------
  391|  43.0k|                count = count2; /* min(remaining dest, remaining src/3) */
  392|  43.0k|            }
  393|  43.0k|            if(count < 3) {
  ------------------
  |  Branch (393:16): [True: 8.14k, False: 34.9k]
  ------------------
  394|       |                /*
  395|       |                 * Too much overhead if we get near the end of the string,
  396|       |                 * continue with the next loop.
  397|       |                 */
  398|  8.14k|                break;
  399|  8.14k|            }
  400|       |
  401|   172M|            do {
  402|       |                // modified copy of U8_NEXT()
  403|   172M|                c = (uint8_t)src[i++];
  404|   172M|                if(U8_IS_SINGLE(c)) {
  ------------------
  |  |  173|   172M|#define U8_IS_SINGLE(c) (((c)&0x80)==0)
  |  |  ------------------
  |  |  |  Branch (173:25): [True: 160M, False: 11.9M]
  |  |  ------------------
  ------------------
  405|   160M|                    *pDest++=(char16_t)c;
  406|   160M|                } else {
  407|  11.9M|                    uint8_t __t1, __t2;
  408|  11.9M|                    if( /* handle U+0800..U+FFFF inline */
  409|  11.9M|                            (0xe0<=(c) && (c)<0xf0) &&
  ------------------
  |  Branch (409:30): [True: 5.69M, False: 6.20M]
  |  Branch (409:43): [True: 912k, False: 4.77M]
  ------------------
  410|  11.9M|                            ((i)+1)<srcLength &&
  ------------------
  |  Branch (410:29): [True: 912k, False: 0]
  ------------------
  411|  11.9M|                            U8_IS_VALID_LEAD3_AND_T1((c), src[i]) &&
  ------------------
  |  |   98|  12.8M|#define U8_IS_VALID_LEAD3_AND_T1(lead, t1) (U8_LEAD3_T1_BITS[(lead)&0xf]&(1<<((uint8_t)(t1)>>5)))
  |  |  ------------------
  |  |  |  |   91|   912k|#define U8_LEAD3_T1_BITS "\x20\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x10\x30\x30"
  |  |  ------------------
  |  |  |  Branch (98:44): [True: 103k, False: 809k]
  |  |  ------------------
  ------------------
  412|  11.9M|                            (__t2=src[(i)+1]-0x80)<=0x3f) {
  ------------------
  |  Branch (412:29): [True: 26.4k, False: 76.6k]
  ------------------
  413|  26.4k|                        *pDest++ = (((c)&0xf)<<12)|((src[i]&0x3f)<<6)|__t2;
  414|  26.4k|                        i+=2;
  415|  11.8M|                    } else if( /* handle U+0080..U+07FF inline */
  416|  11.8M|                            ((c)<0xe0 && (c)>=0xc2) &&
  ------------------
  |  Branch (416:30): [True: 6.20M, False: 5.66M]
  |  Branch (416:42): [True: 795k, False: 5.41M]
  ------------------
  417|  11.8M|                            ((i)!=srcLength) &&
  ------------------
  |  Branch (417:29): [True: 795k, False: 0]
  ------------------
  418|  11.8M|                            (__t1=src[i]-0x80)<=0x3f) {
  ------------------
  |  Branch (418:29): [True: 167k, False: 627k]
  ------------------
  419|   167k|                        *pDest++ = (((c)&0x1f)<<6)|__t1;
  420|   167k|                        ++(i);
  421|  11.7M|                    } else {
  422|  11.7M|                        if(c >= 0xf0 || subchar > 0xffff) {
  ------------------
  |  Branch (422:28): [True: 4.77M, False: 6.92M]
  |  Branch (422:41): [True: 0, False: 6.92M]
  ------------------
  423|       |                            // We may read up to four bytes and write up to two UChars,
  424|       |                            // which we didn't account for with computing count,
  425|       |                            // so we adjust it here.
  426|  4.77M|                            if(--count == 0) {
  ------------------
  |  Branch (426:32): [True: 1.60k, False: 4.77M]
  ------------------
  427|  1.60k|                                --i;  // back out byte c
  428|  1.60k|                                break;
  429|  1.60k|                            }
  430|  4.77M|                        }
  431|       |
  432|       |                        /* function call for "complicated" and error cases */
  433|  11.7M|                        (c)=utf8_nextCharSafeBody((const uint8_t *)src, &(i), srcLength, c, -1);
  ------------------
  |  | 1920|  11.7M|#define utf8_nextCharSafeBody U_ICU_ENTRY_POINT_RENAME(utf8_nextCharSafeBody)
  |  |  ------------------
  |  |  |  |  123|  11.7M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  11.7M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  11.7M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  434|  11.7M|                        if(c<0 && (++numSubstitutions, c = subchar) < 0) {
  ------------------
  |  Branch (434:28): [True: 11.6M, False: 12.2k]
  |  Branch (434:35): [True: 0, False: 11.6M]
  ------------------
  435|      0|                            *pErrorCode = U_INVALID_CHAR_FOUND;
  436|      0|                            return nullptr;
  437|  11.7M|                        } else if(c<=0xFFFF) {
  ------------------
  |  Branch (437:35): [True: 11.6M, False: 12.2k]
  ------------------
  438|  11.6M|                            *(pDest++)=(char16_t)c;
  439|  11.6M|                        } else {
  440|  12.2k|                            *(pDest++)=U16_LEAD(c);
  ------------------
  |  |  123|  12.2k|#define U16_LEAD(supplementary) (UChar)(((supplementary)>>10)+0xd7c0)
  ------------------
  441|  12.2k|                            *(pDest++)=U16_TRAIL(c);
  ------------------
  |  |  132|  12.2k|#define U16_TRAIL(supplementary) (UChar)(((supplementary)&0x3ff)|0xdc00)
  ------------------
  442|  12.2k|                        }
  443|  11.7M|                    }
  444|  11.9M|                }
  445|   172M|            } while(--count > 0);
  ------------------
  |  Branch (445:21): [True: 172M, False: 33.3k]
  ------------------
  446|  34.9k|        }
  447|       |
  448|  51.2k|        while(i < srcLength && (pDest < pDestLimit)) {
  ------------------
  |  Branch (448:15): [True: 43.0k, False: 8.14k]
  |  Branch (448:32): [True: 43.0k, False: 0]
  ------------------
  449|       |            // modified copy of U8_NEXT()
  450|  43.0k|            c = (uint8_t)src[i++];
  451|  43.0k|            if(U8_IS_SINGLE(c)) {
  ------------------
  |  |  173|  43.0k|#define U8_IS_SINGLE(c) (((c)&0x80)==0)
  |  |  ------------------
  |  |  |  Branch (173:25): [True: 39.7k, False: 3.35k]
  |  |  ------------------
  ------------------
  452|  39.7k|                *pDest++=(char16_t)c;
  453|  39.7k|            } else {
  454|  3.35k|                uint8_t __t1, __t2;
  455|  3.35k|                if( /* handle U+0800..U+FFFF inline */
  456|  3.35k|                        (0xe0<=(c) && (c)<0xf0) &&
  ------------------
  |  Branch (456:26): [True: 1.61k, False: 1.74k]
  |  Branch (456:39): [True: 440, False: 1.17k]
  ------------------
  457|  3.35k|                        ((i)+1)<srcLength &&
  ------------------
  |  Branch (457:25): [True: 313, False: 127]
  ------------------
  458|  3.35k|                        U8_IS_VALID_LEAD3_AND_T1((c), src[i]) &&
  ------------------
  |  |   98|  3.67k|#define U8_IS_VALID_LEAD3_AND_T1(lead, t1) (U8_LEAD3_T1_BITS[(lead)&0xf]&(1<<((uint8_t)(t1)>>5)))
  |  |  ------------------
  |  |  |  |   91|    313|#define U8_LEAD3_T1_BITS "\x20\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x10\x30\x30"
  |  |  ------------------
  |  |  |  Branch (98:44): [True: 84, False: 229]
  |  |  ------------------
  ------------------
  459|  3.35k|                        (__t2=src[(i)+1]-0x80)<=0x3f) {
  ------------------
  |  Branch (459:25): [True: 52, False: 32]
  ------------------
  460|     52|                    *pDest++ = (((c)&0xf)<<12)|((src[i]&0x3f)<<6)|__t2;
  461|     52|                    i+=2;
  462|  3.30k|                } else if( /* handle U+0080..U+07FF inline */
  463|  3.30k|                        ((c)<0xe0 && (c)>=0xc2) &&
  ------------------
  |  Branch (463:26): [True: 1.74k, False: 1.56k]
  |  Branch (463:38): [True: 565, False: 1.18k]
  ------------------
  464|  3.30k|                        ((i)!=srcLength) &&
  ------------------
  |  Branch (464:25): [True: 429, False: 136]
  ------------------
  465|  3.30k|                        (__t1=src[i]-0x80)<=0x3f) {
  ------------------
  |  Branch (465:25): [True: 51, False: 378]
  ------------------
  466|     51|                    *pDest++ = (((c)&0x1f)<<6)|__t1;
  467|     51|                    ++(i);
  468|  3.25k|                } else {
  469|       |                    /* function call for "complicated" and error cases */
  470|  3.25k|                    (c)=utf8_nextCharSafeBody((const uint8_t *)src, &(i), srcLength, c, -1);
  ------------------
  |  | 1920|  3.25k|#define utf8_nextCharSafeBody U_ICU_ENTRY_POINT_RENAME(utf8_nextCharSafeBody)
  |  |  ------------------
  |  |  |  |  123|  3.25k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.25k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.25k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  471|  3.25k|                    if(c<0 && (++numSubstitutions, c = subchar) < 0) {
  ------------------
  |  Branch (471:24): [True: 3.21k, False: 46]
  |  Branch (471:31): [True: 0, False: 3.21k]
  ------------------
  472|      0|                        *pErrorCode = U_INVALID_CHAR_FOUND;
  473|      0|                        return nullptr;
  474|  3.25k|                    } else if(c<=0xFFFF) {
  ------------------
  |  Branch (474:31): [True: 3.21k, False: 46]
  ------------------
  475|  3.21k|                        *(pDest++)=(char16_t)c;
  476|  3.21k|                    } else {
  477|     46|                        *(pDest++)=U16_LEAD(c);
  ------------------
  |  |  123|     46|#define U16_LEAD(supplementary) (UChar)(((supplementary)>>10)+0xd7c0)
  ------------------
  478|     46|                        if(pDest<pDestLimit) {
  ------------------
  |  Branch (478:28): [True: 46, False: 0]
  ------------------
  479|     46|                            *(pDest++)=U16_TRAIL(c);
  ------------------
  |  |  132|     46|#define U16_TRAIL(supplementary) (UChar)(((supplementary)&0x3ff)|0xdc00)
  ------------------
  480|     46|                        } else {
  481|      0|                            reqLength++;
  482|      0|                            break;
  483|      0|                        }
  484|     46|                    }
  485|  3.25k|                }
  486|  3.35k|            }
  487|  43.0k|        }
  488|       |
  489|       |        /* Pre-flight the rest of the string. */
  490|  8.14k|        while(i < srcLength) {
  ------------------
  |  Branch (490:15): [True: 0, False: 8.14k]
  ------------------
  491|       |            // modified copy of U8_NEXT()
  492|      0|            c = (uint8_t)src[i++];
  493|      0|            if(U8_IS_SINGLE(c)) {
  ------------------
  |  |  173|      0|#define U8_IS_SINGLE(c) (((c)&0x80)==0)
  |  |  ------------------
  |  |  |  Branch (173:25): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  494|      0|                ++reqLength;
  495|      0|            } else {
  496|      0|                uint8_t __t1, __t2;
  497|      0|                if( /* handle U+0800..U+FFFF inline */
  498|      0|                        (0xe0<=(c) && (c)<0xf0) &&
  ------------------
  |  Branch (498:26): [True: 0, False: 0]
  |  Branch (498:39): [True: 0, False: 0]
  ------------------
  499|      0|                        ((i)+1)<srcLength &&
  ------------------
  |  Branch (499:25): [True: 0, False: 0]
  ------------------
  500|      0|                        U8_IS_VALID_LEAD3_AND_T1((c), src[i]) &&
  ------------------
  |  |   98|      0|#define U8_IS_VALID_LEAD3_AND_T1(lead, t1) (U8_LEAD3_T1_BITS[(lead)&0xf]&(1<<((uint8_t)(t1)>>5)))
  |  |  ------------------
  |  |  |  |   91|      0|#define U8_LEAD3_T1_BITS "\x20\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x10\x30\x30"
  |  |  ------------------
  |  |  |  Branch (98:44): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  501|      0|                        (__t2=src[(i)+1]-0x80)<=0x3f) {
  ------------------
  |  Branch (501:25): [True: 0, False: 0]
  ------------------
  502|      0|                    ++reqLength;
  503|      0|                    i+=2;
  504|      0|                } else if( /* handle U+0080..U+07FF inline */
  505|      0|                        ((c)<0xe0 && (c)>=0xc2) &&
  ------------------
  |  Branch (505:26): [True: 0, False: 0]
  |  Branch (505:38): [True: 0, False: 0]
  ------------------
  506|      0|                        ((i)!=srcLength) &&
  ------------------
  |  Branch (506:25): [True: 0, False: 0]
  ------------------
  507|      0|                        (__t1=src[i]-0x80)<=0x3f) {
  ------------------
  |  Branch (507:25): [True: 0, False: 0]
  ------------------
  508|      0|                    ++reqLength;
  509|      0|                    ++(i);
  510|      0|                } else {
  511|       |                    /* function call for "complicated" and error cases */
  512|      0|                    (c)=utf8_nextCharSafeBody((const uint8_t *)src, &(i), srcLength, c, -1);
  ------------------
  |  | 1920|      0|#define utf8_nextCharSafeBody U_ICU_ENTRY_POINT_RENAME(utf8_nextCharSafeBody)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  513|      0|                    if(c<0 && (++numSubstitutions, c = subchar) < 0) {
  ------------------
  |  Branch (513:24): [True: 0, False: 0]
  |  Branch (513:31): [True: 0, False: 0]
  ------------------
  514|      0|                        *pErrorCode = U_INVALID_CHAR_FOUND;
  515|      0|                        return nullptr;
  516|      0|                    }
  517|      0|                    reqLength += U16_LENGTH(c);
  ------------------
  |  |  141|      0|#define U16_LENGTH(c) ((uint32_t)(c)<=0xffff ? 1 : 2)
  |  |  ------------------
  |  |  |  Branch (141:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  518|      0|                }
  519|      0|            }
  520|      0|        }
  521|  8.14k|    }
  522|       |
  523|  8.14k|    reqLength+=(int32_t)(pDest - dest);
  524|       |
  525|  8.14k|    if(pNumSubstitutions!=nullptr) {
  ------------------
  |  Branch (525:8): [True: 0, False: 8.14k]
  ------------------
  526|      0|        *pNumSubstitutions=numSubstitutions;
  527|      0|    }
  528|       |
  529|  8.14k|    if(pDestLength){
  ------------------
  |  Branch (529:8): [True: 8.14k, False: 0]
  ------------------
  530|  8.14k|        *pDestLength = reqLength;
  531|  8.14k|    }
  532|       |
  533|       |    /* Terminate the buffer */
  534|  8.14k|    u_terminateUChars(dest,destCapacity,reqLength,pErrorCode);
  ------------------
  |  |  408|  8.14k|#define u_terminateUChars U_ICU_ENTRY_POINT_RENAME(u_terminateUChars)
  |  |  ------------------
  |  |  |  |  123|  8.14k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  8.14k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  8.14k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  535|       |
  536|  8.14k|    return dest;
  537|  8.14k|}

utf8_nextCharSafeBody_78:
  129|  11.7M|utf8_nextCharSafeBody(const uint8_t *s, int32_t *pi, int32_t length, UChar32 c, int8_t strict) {
  130|       |    // *pi is one after byte c.
  131|  11.7M|    int32_t i=*pi;
  132|       |    // length can be negative for NUL-terminated strings: Read and validate one byte at a time.
  133|  11.7M|    if(i==length || c>0xf4) {
  ------------------
  |  Branch (133:8): [True: 734, False: 11.7M]
  |  Branch (133:21): [True: 3.58M, False: 8.11M]
  ------------------
  134|       |        // end of string, or not a lead byte
  135|  8.11M|    } else if(c>=0xf0) {
  ------------------
  |  Branch (135:15): [True: 1.19M, False: 6.92M]
  ------------------
  136|       |        // Test for 4-byte sequences first because
  137|       |        // U8_NEXT() handles shorter valid sequences inline.
  138|  1.19M|        uint8_t t1=s[i], t2, t3;
  139|  1.19M|        c&=7;
  140|  1.19M|        if(U8_IS_VALID_LEAD4_AND_T1(c, t1) &&
  ------------------
  |  |  115|  2.38M|#define U8_IS_VALID_LEAD4_AND_T1(lead, t1) (U8_LEAD4_T1_BITS[(uint8_t)(t1)>>4]&(1<<((lead)&7)))
  |  |  ------------------
  |  |  |  |  108|  1.19M|#define U8_LEAD4_T1_BITS "\x00\x00\x00\x00\x00\x00\x00\x00\x1E\x0F\x0F\x0F\x00\x00\x00\x00"
  |  |  ------------------
  |  |  |  Branch (115:44): [True: 1.03M, False: 159k]
  |  |  ------------------
  ------------------
  141|  1.19M|                ++i!=length && (t2=s[i]-0x80)<=0x3f &&
  ------------------
  |  Branch (141:17): [True: 1.03M, False: 12]
  |  Branch (141:32): [True: 996k, False: 35.8k]
  ------------------
  142|  1.19M|                ++i!=length && (t3=s[i]-0x80)<=0x3f) {
  ------------------
  |  Branch (142:17): [True: 996k, False: 5]
  |  Branch (142:32): [True: 12.3k, False: 984k]
  ------------------
  143|  12.3k|            ++i;
  144|  12.3k|            c=(c<<18)|((t1&0x3f)<<12)|(t2<<6)|t3;
  145|       |            // strict: forbid non-characters like U+fffe
  146|  12.3k|            if(strict<=0 || !U_IS_UNICODE_NONCHAR(c)) {
  ------------------
  |  |  131|      0|    ((c)>=0xfdd0 && \
  |  |  ------------------
  |  |  |  Branch (131:6): [True: 0, False: 0]
  |  |  ------------------
  |  |  132|      0|     ((c)<=0xfdef || ((c)&0xfffe)==0xfffe) && (c)<=0x10ffff)
  |  |  ------------------
  |  |  |  Branch (132:7): [True: 0, False: 0]
  |  |  |  Branch (132:22): [True: 0, False: 0]
  |  |  |  Branch (132:47): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (146:16): [True: 12.3k, False: 0]
  ------------------
  147|  12.3k|                *pi=i;
  148|  12.3k|                return c;
  149|  12.3k|            }
  150|  12.3k|        }
  151|  6.92M|    } else if(c>=0xe0) {
  ------------------
  |  Branch (151:15): [True: 886k, False: 6.04M]
  ------------------
  152|   886k|        c&=0xf;
  153|   886k|        if(strict!=-2) {
  ------------------
  |  Branch (153:12): [True: 886k, False: 0]
  ------------------
  154|   886k|            uint8_t t1=s[i], t2;
  155|   886k|            if(U8_IS_VALID_LEAD3_AND_T1(c, t1) &&
  ------------------
  |  |   98|  1.77M|#define U8_IS_VALID_LEAD3_AND_T1(lead, t1) (U8_LEAD3_T1_BITS[(lead)&0xf]&(1<<((uint8_t)(t1)>>5)))
  |  |  ------------------
  |  |  |  |   91|   886k|#define U8_LEAD3_T1_BITS "\x20\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x30\x10\x30\x30"
  |  |  ------------------
  |  |  |  Branch (98:44): [True: 76.6k, False: 810k]
  |  |  ------------------
  ------------------
  156|   886k|                    ++i!=length && (t2=s[i]-0x80)<=0x3f) {
  ------------------
  |  Branch (156:21): [True: 76.6k, False: 5]
  |  Branch (156:36): [True: 0, False: 76.6k]
  ------------------
  157|      0|                ++i;
  158|      0|                c=(c<<12)|((t1&0x3f)<<6)|t2;
  159|       |                // strict: forbid non-characters like U+fffe
  160|      0|                if(strict<=0 || !U_IS_UNICODE_NONCHAR(c)) {
  ------------------
  |  |  131|      0|    ((c)>=0xfdd0 && \
  |  |  ------------------
  |  |  |  Branch (131:6): [True: 0, False: 0]
  |  |  ------------------
  |  |  132|      0|     ((c)<=0xfdef || ((c)&0xfffe)==0xfffe) && (c)<=0x10ffff)
  |  |  ------------------
  |  |  |  Branch (132:7): [True: 0, False: 0]
  |  |  |  Branch (132:22): [True: 0, False: 0]
  |  |  |  Branch (132:47): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (160:20): [True: 0, False: 0]
  ------------------
  161|      0|                    *pi=i;
  162|      0|                    return c;
  163|      0|                }
  164|      0|            }
  165|   886k|        } else {
  166|       |            // strict=-2 -> lenient: allow surrogates
  167|      0|            uint8_t t1=s[i]-0x80, t2;
  168|      0|            if(t1<=0x3f && (c>0 || t1>=0x20) &&
  ------------------
  |  Branch (168:16): [True: 0, False: 0]
  |  Branch (168:29): [True: 0, False: 0]
  |  Branch (168:36): [True: 0, False: 0]
  ------------------
  169|      0|                    ++i!=length && (t2=s[i]-0x80)<=0x3f) {
  ------------------
  |  Branch (169:21): [True: 0, False: 0]
  |  Branch (169:36): [True: 0, False: 0]
  ------------------
  170|      0|                *pi=i+1;
  171|      0|                return (c<<12)|(t1<<6)|t2;
  172|      0|            }
  173|      0|        }
  174|  6.04M|    } else if(c>=0xc2) {
  ------------------
  |  Branch (174:15): [True: 628k, False: 5.41M]
  ------------------
  175|   628k|        uint8_t t1=s[i]-0x80;
  176|   628k|        if(t1<=0x3f) {
  ------------------
  |  Branch (176:12): [True: 0, False: 628k]
  ------------------
  177|      0|            *pi=i+1;
  178|      0|            return ((c-0xc0)<<6)|t1;
  179|      0|        }
  180|   628k|    }  // else 0x80<=c<0xc2 is not a lead byte
  181|       |
  182|       |    /* error handling */
  183|  11.6M|    c=errorValue(i-*pi, strict);
  184|  11.6M|    *pi=i;
  185|  11.6M|    return c;
  186|  11.7M|}
utf_impl.cpp:_ZL10errorValueia:
   96|  11.6M|errorValue(int32_t count, int8_t strict) {
   97|  11.6M|    if(strict>=0) {
  ------------------
  |  Branch (97:8): [True: 0, False: 11.6M]
  ------------------
   98|      0|        return utf8_errorValue[count];
   99|  11.6M|    } else if(strict==-3) {
  ------------------
  |  Branch (99:15): [True: 0, False: 11.6M]
  ------------------
  100|      0|        return 0xfffd;
  101|  11.6M|    } else {
  102|  11.6M|        return U_SENTINEL;
  ------------------
  |  |  469|  11.6M|#define U_SENTINEL (-1)
  ------------------
  103|  11.6M|    }
  104|  11.6M|}

_ZN6icu_7811ICU_Utility17parseAsciiIntegerERKNS_13UnicodeStringERi:
  293|    650|int32_t ICU_Utility::parseAsciiInteger(const UnicodeString& str, int32_t& pos) {
  294|    650|    int32_t result = 0;
  295|    650|    char16_t c;
  296|  1.66k|    while (pos < str.length() && (c = str.charAt(pos)) >= u'0' && c <= u'9') {
  ------------------
  |  Branch (296:12): [True: 1.32k, False: 338]
  |  Branch (296:34): [True: 1.32k, False: 0]
  |  Branch (296:67): [True: 1.01k, False: 312]
  ------------------
  297|  1.01k|        result = result * 10 + (c - u'0');
  298|  1.01k|        pos++;
  299|  1.01k|    }
  300|    650|    return result;
  301|    650|}

_ZN6icu_7811ICU_Utility15makeBogusStringEv:
   50|  57.0k|    static inline UnicodeString makeBogusString() {
   51|  57.0k|        UnicodeString result;
   52|  57.0k|        result.setToBogus();
   53|  57.0k|        return result;
   54|  57.0k|    }

_ZN6icu_7811ICU_Utility11parseNumberERKNS_13UnicodeStringERia:
  189|    626|                                 int32_t& pos, int8_t radix) {
  190|       |    // assert(pos[0] >= 0);
  191|       |    // assert(radix >= 2);
  192|       |    // assert(radix <= 36);
  193|    626|    int32_t n = 0;
  194|    626|    int32_t p = pos;
  195|  4.48k|    while (p < text.length()) {
  ------------------
  |  Branch (195:12): [True: 4.06k, False: 428]
  ------------------
  196|  4.06k|        UChar32 ch = text.char32At(p);
  197|  4.06k|        int32_t d = u_digit(ch, radix);
  ------------------
  |  |  229|  4.06k|#define u_digit U_ICU_ENTRY_POINT_RENAME(u_digit)
  |  |  ------------------
  |  |  |  |  123|  4.06k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.06k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.06k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  198|  4.06k|        if (d < 0) {
  ------------------
  |  Branch (198:13): [True: 178, False: 3.88k]
  ------------------
  199|    178|            break;
  200|    178|        }
  201|  3.88k|        int64_t update = radix*static_cast<int64_t>(n) + d;
  202|  3.88k|        if (update > INT32_MAX) {
  ------------------
  |  Branch (202:13): [True: 20, False: 3.86k]
  ------------------
  203|     20|            return -1;
  204|     20|        }
  205|  3.86k|        n = static_cast<int32_t>(update);
  206|  3.86k|        ++p;
  207|  3.86k|    }
  208|    606|    if (p == pos) {
  ------------------
  |  Branch (208:9): [True: 97, False: 509]
  ------------------
  209|     97|        return -1;
  210|     97|    }
  211|    509|    pos = p;
  212|    509|    return n;
  213|    606|}

_ZN6icu_787UVectorC2EPFvPvEPFa8UElementS4_ER10UErrorCode:
   41|  56.8k|        UVector(d, c, DEFAULT_CAPACITY, status) {
   42|  56.8k|}
_ZN6icu_787UVectorC2EPFvPvEPFa8UElementS4_EiR10UErrorCode:
   45|  57.6k|    deleter(d),
   46|  57.6k|    comparer(c)
   47|  57.6k|{
   48|  57.6k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (48:9): [True: 0, False: 57.6k]
  ------------------
   49|      0|        return;
   50|      0|    }
   51|       |    // Fix bogus initialCapacity values; avoid malloc(0) and integer overflow
   52|  57.6k|    if ((initialCapacity < 1) || (initialCapacity > static_cast<int32_t>(INT32_MAX / sizeof(UElement)))) {
  ------------------
  |  Branch (52:9): [True: 0, False: 57.6k]
  |  Branch (52:34): [True: 0, False: 57.6k]
  ------------------
   53|      0|        initialCapacity = DEFAULT_CAPACITY;
   54|      0|    }
   55|  57.6k|    elements = static_cast<UElement*>(uprv_malloc(sizeof(UElement) * initialCapacity));
  ------------------
  |  | 1524|  57.6k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  57.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  57.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  57.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   56|  57.6k|    if (elements == nullptr) {
  ------------------
  |  Branch (56:9): [True: 0, False: 57.6k]
  ------------------
   57|      0|        status = U_MEMORY_ALLOCATION_ERROR;
   58|  57.6k|    } else {
   59|  57.6k|        capacity = initialCapacity;
   60|  57.6k|    }
   61|  57.6k|}
_ZN6icu_787UVectorD2Ev:
   63|  57.4k|UVector::~UVector() {
   64|  57.4k|    removeAllElements();
   65|  57.4k|    uprv_free(elements);
  ------------------
  |  | 1503|  57.4k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   66|  57.4k|    elements = nullptr;
   67|  57.4k|}
_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|}
_ZN6icu_787UVector12adoptElementEPvR10UErrorCode:
  109|   320k|void UVector::adoptElement(void* obj, UErrorCode &status) {
  110|   320k|    U_ASSERT(deleter != nullptr);
  ------------------
  |  |   35|   320k|#   define U_ASSERT(exp) (void)0
  ------------------
  111|   320k|    if (ensureCapacity(count + 1, status)) {
  ------------------
  |  Branch (111:9): [True: 320k, False: 0]
  ------------------
  112|   320k|        elements[count++].pointer = obj;
  113|   320k|    } else {
  114|      0|        (*deleter)(obj);
  115|      0|    }
  116|   320k|}
_ZNK6icu_787UVector9elementAtEi:
  185|   256k|void* UVector::elementAt(int32_t index) const {
  186|   256k|    return (0 <= index && index < count) ? elements[index].pointer : nullptr;
  ------------------
  |  Branch (186:13): [True: 256k, False: 0]
  |  Branch (186:27): [True: 256k, False: 0]
  ------------------
  187|   256k|}
_ZN6icu_787UVector15removeElementAtEi:
  235|   133k|void UVector::removeElementAt(int32_t index) {
  236|   133k|    void* e = orphanElementAt(index);
  237|   133k|    if (e != nullptr && deleter != nullptr) {
  ------------------
  |  Branch (237:9): [True: 133k, False: 0]
  |  Branch (237:25): [True: 133k, False: 0]
  ------------------
  238|   133k|        (*deleter)(e);
  239|   133k|    }
  240|   133k|}
_ZN6icu_787UVector17removeAllElementsEv:
  251|  67.6k|void UVector::removeAllElements() {
  252|  67.6k|    if (deleter != nullptr) {
  ------------------
  |  Branch (252:9): [True: 66.9k, False: 717]
  ------------------
  253|   251k|        for (int32_t i=0; i<count; ++i) {
  ------------------
  |  Branch (253:27): [True: 184k, False: 66.9k]
  ------------------
  254|   184k|            if (elements[i].pointer != nullptr) {
  ------------------
  |  Branch (254:17): [True: 184k, False: 0]
  ------------------
  255|   184k|                (*deleter)(elements[i].pointer);
  256|   184k|            }
  257|   184k|        }
  258|  66.9k|    }
  259|  67.6k|    count = 0;
  260|  67.6k|}
_ZNK6icu_787UVector7indexOfEPvi:
  288|  3.02k|int32_t UVector::indexOf(void* obj, int32_t startIndex) const {
  289|  3.02k|    UElement key;
  290|  3.02k|    key.pointer = obj;
  291|  3.02k|    return indexOf(key, startIndex, HINT_KEY_POINTER);
  292|  3.02k|}
_ZNK6icu_787UVector7indexOfE8UElementia:
  300|  3.02k|int32_t UVector::indexOf(UElement key, int32_t startIndex, int8_t hint) const {
  301|  3.02k|    if (comparer != nullptr) {
  ------------------
  |  Branch (301:9): [True: 3.02k, False: 0]
  ------------------
  302|  23.1k|        for (int32_t i=startIndex; i<count; ++i) {
  ------------------
  |  Branch (302:36): [True: 21.7k, False: 1.39k]
  ------------------
  303|  21.7k|            if ((*comparer)(key, elements[i])) {
  ------------------
  |  Branch (303:17): [True: 1.62k, False: 20.1k]
  ------------------
  304|  1.62k|                return i;
  305|  1.62k|            }
  306|  21.7k|        }
  307|  3.02k|    } 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.39k|    return -1;
  324|  3.02k|}
_ZN6icu_787UVector14ensureCapacityEiR10UErrorCode:
  326|   320k|UBool UVector::ensureCapacity(int32_t minimumCapacity, UErrorCode &status) {
  327|   320k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (327:9): [True: 0, False: 320k]
  ------------------
  328|      0|        return false;
  329|      0|    }
  330|   320k|    if (minimumCapacity < 0) {
  ------------------
  |  Branch (330:9): [True: 0, False: 320k]
  ------------------
  331|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  332|      0|        return false;
  333|      0|    }
  334|   320k|    if (capacity < minimumCapacity) {
  ------------------
  |  Branch (334:9): [True: 10.9k, False: 309k]
  ------------------
  335|  10.9k|        if (capacity > (INT32_MAX - 1) / 2) {        	// integer overflow check
  ------------------
  |  Branch (335:13): [True: 0, False: 10.9k]
  ------------------
  336|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  337|      0|            return false;
  338|      0|        }
  339|  10.9k|        int32_t newCap = capacity * 2;
  340|  10.9k|        if (newCap < minimumCapacity) {
  ------------------
  |  Branch (340:13): [True: 0, False: 10.9k]
  ------------------
  341|      0|            newCap = minimumCapacity;
  342|      0|        }
  343|  10.9k|        if (newCap > static_cast<int32_t>(INT32_MAX / sizeof(UElement))) { // integer overflow check
  ------------------
  |  Branch (343:13): [True: 0, False: 10.9k]
  ------------------
  344|       |            // We keep the original memory contents on bad minimumCapacity.
  345|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  346|      0|            return false;
  347|      0|        }
  348|  10.9k|        UElement* newElems = static_cast<UElement*>(uprv_realloc(elements, sizeof(UElement) * newCap));
  ------------------
  |  | 1536|  10.9k|#define uprv_realloc U_ICU_ENTRY_POINT_RENAME(uprv_realloc)
  |  |  ------------------
  |  |  |  |  123|  10.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  10.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  10.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  349|  10.9k|        if (newElems == nullptr) {
  ------------------
  |  Branch (349:13): [True: 0, False: 10.9k]
  ------------------
  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|  10.9k|        elements = newElems;
  355|  10.9k|        capacity = newCap;
  356|  10.9k|    }
  357|   320k|    return true;
  358|   320k|}
_ZN6icu_787UVector15orphanElementAtEi:
  418|   133k|void* UVector::orphanElementAt(int32_t index) {
  419|   133k|    void* e = nullptr;
  420|   133k|    if (0 <= index && index < count) {
  ------------------
  |  Branch (420:9): [True: 133k, False: 0]
  |  Branch (420:23): [True: 133k, False: 0]
  ------------------
  421|   133k|        e = elements[index].pointer;
  422|  1.75M|        for (int32_t i=index; i<count-1; ++i) {
  ------------------
  |  Branch (422:31): [True: 1.62M, False: 133k]
  ------------------
  423|  1.62M|            elements[i] = elements[i+1];
  424|  1.62M|        }
  425|   133k|        --count;
  426|   133k|    }
  427|       |    /* else index out of range */
  428|   133k|    return e;
  429|   133k|}
_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_787UVector4sizeEv:
  190|   229k|    inline int32_t size() const {return count;}
_ZNK6icu_787UVector8containsEPv:
  174|  3.02k|    inline UBool contains(void* obj) const {return indexOf(obj) >= 0;}
_ZNK6icu_787UVector7isEmptyEv:
  192|  8.05k|    inline UBool isEmpty() const {return count == 0;}
_ZNK6icu_787UVectorixEi:
  218|   133k|    inline void* operator[](int32_t index) const {return elementAt(index);}

_ZN6icu_7813CalendarCache11createCacheEPPS0_R10UErrorCode:
  830|      1|void CalendarCache::createCache(CalendarCache** cache, UErrorCode& status) {
  831|      1|    ucln_i18n_registerCleanup(UCLN_I18N_ASTRO_CALENDAR, calendar_astro_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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  832|      1|    if(cache == nullptr) {
  ------------------
  |  Branch (832:8): [True: 0, False: 1]
  ------------------
  833|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  834|      1|    } else {
  835|      1|        *cache = new CalendarCache(32, status);
  836|      1|        if(U_FAILURE(status)) {
  ------------------
  |  Branch (836:12): [True: 0, False: 1]
  ------------------
  837|      0|            delete *cache;
  838|      0|            *cache = nullptr;
  839|      0|        }
  840|      1|    }
  841|      1|}
_ZN6icu_7813CalendarCache3getEPPS0_iR10UErrorCode:
  843|     30|int32_t CalendarCache::get(CalendarCache** cache, int32_t key, UErrorCode &status) {
  844|     30|    int32_t res;
  845|       |
  846|     30|    if(U_FAILURE(status)) {
  ------------------
  |  Branch (846:8): [True: 0, False: 30]
  ------------------
  847|      0|        return 0;
  848|      0|    }
  849|     30|    umtx_lock(&ccLock);
  ------------------
  |  | 1250|     30|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  123|     30|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     30|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     30|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  850|       |
  851|     30|    if(*cache == nullptr) {
  ------------------
  |  Branch (851:8): [True: 1, False: 29]
  ------------------
  852|      1|        createCache(cache, status);
  853|      1|        if(U_FAILURE(status)) {
  ------------------
  |  Branch (853:12): [True: 0, False: 1]
  ------------------
  854|      0|            umtx_unlock(&ccLock);
  ------------------
  |  | 1251|      0|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  855|      0|            return 0;
  856|      0|        }
  857|      1|    }
  858|       |
  859|     30|    res = uhash_igeti((*cache)->fTable, key);
  ------------------
  |  | 1020|     30|#define uhash_igeti U_ICU_ENTRY_POINT_RENAME(uhash_igeti)
  |  |  ------------------
  |  |  |  |  123|     30|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     30|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     30|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  860|     30|    U_DEBUG_ASTRO_MSG(("%p: GET: [%d] == %d\n", (*cache)->fTable, key, res));
  861|       |
  862|     30|    umtx_unlock(&ccLock);
  ------------------
  |  | 1251|     30|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  123|     30|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     30|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     30|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  863|     30|    return res;
  864|     30|}
_ZN6icu_7813CalendarCache3putEPPS0_iiR10UErrorCode:
  866|      4|void CalendarCache::put(CalendarCache** cache, int32_t key, int32_t value, UErrorCode &status) {
  867|      4|    if(U_FAILURE(status)) {
  ------------------
  |  Branch (867:8): [True: 0, False: 4]
  ------------------
  868|      0|        return;
  869|      0|    }
  870|      4|    umtx_lock(&ccLock);
  ------------------
  |  | 1250|      4|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  871|       |
  872|      4|    if(*cache == nullptr) {
  ------------------
  |  Branch (872:8): [True: 0, False: 4]
  ------------------
  873|      0|        createCache(cache, status);
  874|      0|        if(U_FAILURE(status)) {
  ------------------
  |  Branch (874:12): [True: 0, False: 0]
  ------------------
  875|      0|            umtx_unlock(&ccLock);
  ------------------
  |  | 1251|      0|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  876|      0|            return;
  877|      0|        }
  878|      0|    }
  879|       |
  880|      4|    uhash_iputi((*cache)->fTable, key, value, &status);
  ------------------
  |  | 1025|      4|#define uhash_iputi U_ICU_ENTRY_POINT_RENAME(uhash_iputi)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  881|      4|    U_DEBUG_ASTRO_MSG(("%p: PUT: [%d] := %d\n", (*cache)->fTable, key, value));
  882|       |
  883|      4|    umtx_unlock(&ccLock);
  ------------------
  |  | 1251|      4|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  884|      4|}
_ZN6icu_7813CalendarCacheC2EiR10UErrorCode:
  886|      1|CalendarCache::CalendarCache(int32_t size, UErrorCode &status) {
  887|      1|    fTable = uhash_openSize(uhash_hashLong, uhash_compareLong, nullptr, size, &status);
  ------------------
  |  | 1031|      1|#define uhash_openSize U_ICU_ENTRY_POINT_RENAME(uhash_openSize)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  fTable = uhash_openSize(uhash_hashLong, uhash_compareLong, nullptr, size, &status);
  ------------------
  |  | 1014|      1|#define uhash_hashLong U_ICU_ENTRY_POINT_RENAME(uhash_hashLong)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  fTable = uhash_openSize(uhash_hashLong, uhash_compareLong, nullptr, size, &status);
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  888|      1|    U_DEBUG_ASTRO_MSG(("%p: Opening.\n", fTable));
  889|      1|}

_ZN6icu_7813BasicTimeZoneC2ERKNS_13UnicodeStringE:
   28|    380|: TimeZone(id) {
   29|    380|}
_ZN6icu_7813BasicTimeZoneC2ERKS0_:
   32|   211k|: TimeZone(source) {
   33|   211k|}
_ZN6icu_7813BasicTimeZoneD2Ev:
   35|   211k|BasicTimeZone::~BasicTimeZone() {
   36|   211k|}

_ZN6icu_7816BuddhistCalendarC2ERKNS_6LocaleER10UErrorCode:
   37|     53|:   GregorianCalendar(aLocale, success)
   38|     53|{
   39|     53|}
_ZN6icu_7816BuddhistCalendarD2Ev:
   42|    601|{
   43|    601|}
_ZN6icu_7816BuddhistCalendarC2ERKS0_:
   46|    549|: GregorianCalendar(source)
   47|    549|{
   48|    549|}
_ZNK6icu_7816BuddhistCalendar5cloneEv:
   51|    549|{
   52|    549|    return new BuddhistCalendar(*this);
   53|    549|}
_ZNK6icu_7816BuddhistCalendar7getTypeEv:
   56|    282|{
   57|    282|    return "buddhist";
   58|    282|}
_ZN6icu_7816BuddhistCalendar21handleGetExtendedYearER10UErrorCode:
   61|      2|{
   62|      2|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (62:9): [True: 0, False: 2]
  ------------------
   63|      0|        return 0;
   64|      0|    }
   65|       |    // EXTENDED_YEAR in BuddhistCalendar is a Gregorian year.
   66|       |    // The default value of EXTENDED_YEAR is 1970 (Buddhist 2513)
   67|      2|    if (newerField(UCAL_EXTENDED_YEAR, UCAL_YEAR) == UCAL_EXTENDED_YEAR) {
  ------------------
  |  Branch (67:9): [True: 0, False: 2]
  ------------------
   68|      0|        return internalGet(UCAL_EXTENDED_YEAR, kGregorianEpoch);
   69|      0|    }
   70|       |    // extended year is a gregorian year, where 1 = 1AD,  0 = 1BC, -1 = 2BC, etc
   71|      2|    int32_t year = internalGet(UCAL_YEAR, kGregorianEpoch - kBuddhistEraStart);
   72|      2|    if (uprv_add32_overflow(year, kBuddhistEraStart, &year)) {
  ------------------
  |  | 1394|      2|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (72:9): [True: 0, False: 2]
  ------------------
   73|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
   74|      0|        return 0;
   75|      0|    }
   76|      2|    return year;
   77|      2|}
_ZN6icu_7816BuddhistCalendar19handleComputeFieldsEiR10UErrorCode:
   80|    161|{
   81|    161|    GregorianCalendar::handleComputeFields(julianDay, status);
   82|    161|    int32_t y = internalGet(UCAL_EXTENDED_YEAR) - kBuddhistEraStart;
   83|    161|    internalSet(UCAL_ERA, 0);
   84|    161|    internalSet(UCAL_YEAR, y);
   85|    161|}
_ZNK6icu_7816BuddhistCalendar14handleGetLimitE19UCalendarDateFieldsNS_8Calendar10ELimitTypeE:
   88|      2|{
   89|      2|    if(field == UCAL_ERA) {
  ------------------
  |  Branch (89:8): [True: 0, False: 2]
  ------------------
   90|      0|        return BE;
   91|      0|    }
   92|      2|    return GregorianCalendar::handleGetLimit(field,limitType);
   93|      2|}

_ZNK6icu_7816BuddhistCalendar22isEra0CountingBackwardEv:
  155|      1|    virtual bool isEra0CountingBackward() const override { return false; }

_ZN6icu_7814SharedCalendarD2Ev:
  208|  9.23k|SharedCalendar::~SharedCalendar() {
  209|  9.23k|    delete ptr;
  210|  9.23k|}
_ZNK6icu_7814LocaleCacheKeyINS_14SharedCalendarEE12createObjectEPKvR10UErrorCode:
  214|  9.47k|        const void * /*unusedCreationContext*/, UErrorCode &status) const {
  215|  9.47k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (215:9): [True: 0, False: 9.47k]
  ------------------
  216|      0|       return nullptr;
  217|      0|    }
  218|  9.47k|    Calendar *calendar = Calendar::makeInstance(fLoc, status);
  219|  9.47k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (219:9): [True: 0, False: 9.47k]
  ------------------
  220|      0|        return nullptr;
  221|      0|    }
  222|  9.47k|    SharedCalendar *shared = new SharedCalendar(calendar);
  223|  9.47k|    if (shared == nullptr) {
  ------------------
  |  Branch (223:9): [True: 0, False: 9.47k]
  ------------------
  224|      0|        delete calendar;
  225|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  226|      0|        return nullptr;
  227|      0|    }
  228|  9.47k|    shared->addRef();
  229|  9.47k|    return shared;
  230|  9.47k|}
_ZN6icu_788CalendarC2EPNS_8TimeZoneERKNS_6LocaleER10UErrorCode:
  721|  9.48k|:   UObject(),
  722|  9.48k|fIsTimeSet(false),
  723|  9.48k|fAreFieldsSet(false),
  724|  9.48k|fAreAllFieldsSet(false),
  725|  9.48k|fAreFieldsVirtuallySet(false),
  726|  9.48k|fLenient(true),
  727|  9.48k|fRepeatedWallTime(UCAL_WALLTIME_LAST),
  728|  9.48k|fSkippedWallTime(UCAL_WALLTIME_LAST)
  729|  9.48k|{
  730|  9.48k|    LocalPointer<TimeZone> zone(adoptZone, success);
  731|  9.48k|    if (U_FAILURE(success)) {
  ------------------
  |  Branch (731:9): [True: 0, False: 9.48k]
  ------------------
  732|      0|        return;
  733|      0|    }
  734|  9.48k|    if (zone.isNull()) {
  ------------------
  |  Branch (734:9): [True: 0, False: 9.48k]
  ------------------
  735|       |#if defined (U_DEBUG_CAL)
  736|       |        fprintf(stderr, "%s:%d: ILLEGAL ARG because timezone cannot be 0\n",
  737|       |            __FILE__, __LINE__);
  738|       |#endif
  739|      0|        success = U_ILLEGAL_ARGUMENT_ERROR;
  740|      0|        return;
  741|      0|    }
  742|       |
  743|  9.48k|    clear();
  744|  9.48k|    fZone = zone.orphan();
  745|  9.48k|    setWeekData(aLocale, nullptr, success);
  746|  9.48k|}
_ZN6icu_788CalendarD2Ev:
  775|   126k|{
  776|   126k|    delete fZone;
  777|   126k|    delete actualLocale;
  778|   126k|    delete validLocale;
  779|   126k|}
_ZN6icu_788CalendarC2ERKS0_:
  784|   117k|:   UObject(source)
  785|   117k|{
  786|   117k|    *this = source;
  787|   117k|}
_ZN6icu_788CalendaraSERKS0_:
  793|   117k|{
  794|   117k|    if (this != &right) {
  ------------------
  |  Branch (794:9): [True: 117k, False: 0]
  ------------------
  795|   117k|        uprv_arrayCopy(right.fFields, fFields, UCAL_FIELD_COUNT);
  796|   117k|        uprv_arrayCopy(right.fStamp, fStamp, UCAL_FIELD_COUNT);
  797|   117k|        fTime                    = right.fTime;
  798|   117k|        fIsTimeSet               = right.fIsTimeSet;
  799|   117k|        fAreAllFieldsSet         = right.fAreAllFieldsSet;
  800|   117k|        fAreFieldsSet            = right.fAreFieldsSet;
  801|   117k|        fAreFieldsVirtuallySet   = right.fAreFieldsVirtuallySet;
  802|   117k|        fLenient                 = right.fLenient;
  803|   117k|        fRepeatedWallTime        = right.fRepeatedWallTime;
  804|   117k|        fSkippedWallTime         = right.fSkippedWallTime;
  805|   117k|        delete fZone;
  806|   117k|        fZone = nullptr;
  807|   117k|        if (right.fZone != nullptr) {
  ------------------
  |  Branch (807:13): [True: 117k, False: 0]
  ------------------
  808|   117k|            fZone                = right.fZone->clone();
  809|   117k|        }
  810|   117k|        fFirstDayOfWeek          = right.fFirstDayOfWeek;
  811|   117k|        fMinimalDaysInFirstWeek  = right.fMinimalDaysInFirstWeek;
  812|   117k|        fWeekendOnset            = right.fWeekendOnset;
  813|   117k|        fWeekendOnsetMillis      = right.fWeekendOnsetMillis;
  814|   117k|        fWeekendCease            = right.fWeekendCease;
  815|   117k|        fWeekendCeaseMillis      = right.fWeekendCeaseMillis;
  816|   117k|        fNextStamp               = right.fNextStamp;
  817|   117k|        UErrorCode status = U_ZERO_ERROR;
  818|   117k|        U_LOCALE_BASED(locBased, *this);
  ------------------
  |  |   25|   117k|  LocaleBased varname((objname).validLocale, (objname).actualLocale)
  ------------------
  819|   117k|        locBased.setLocaleIDs(right.validLocale, right.actualLocale, status);
  820|   117k|        U_ASSERT(U_SUCCESS(status));
  ------------------
  |  |   35|   117k|#   define U_ASSERT(exp) (void)0
  ------------------
  821|   117k|    }
  822|       |
  823|   117k|    return *this;
  824|   117k|}
_ZN6icu_788Calendar12makeInstanceERKNS_6LocaleER10UErrorCode:
  855|  9.47k|Calendar::makeInstance(const Locale& aLocale, UErrorCode& success) {
  856|  9.47k|    if (U_FAILURE(success)) {
  ------------------
  |  Branch (856:9): [True: 0, False: 9.47k]
  ------------------
  857|      0|        return nullptr;
  858|      0|    }
  859|       |
  860|  9.47k|    Locale actualLoc;
  861|  9.47k|    UObject* u = nullptr;
  862|       |
  863|  9.47k|#if !UCONFIG_NO_SERVICE
  864|  9.47k|    if (isCalendarServiceUsed()) {
  ------------------
  |  Branch (864:9): [True: 0, False: 9.47k]
  ------------------
  865|      0|        u = getCalendarService(success)->get(aLocale, LocaleKey::KIND_ANY, &actualLoc, success);
  866|      0|    }
  867|  9.47k|    else
  868|  9.47k|#endif
  869|  9.47k|    {
  870|  9.47k|        u = createStandardCalendar(getCalendarTypeForLocale(aLocale.getName()), aLocale, success);
  871|  9.47k|    }
  872|  9.47k|    Calendar* c = nullptr;
  873|       |
  874|  9.47k|    if(U_FAILURE(success) || !u) {
  ------------------
  |  Branch (874:8): [True: 0, False: 9.47k]
  |  Branch (874:30): [True: 0, False: 9.47k]
  ------------------
  875|      0|        if(U_SUCCESS(success)) { // Propagate some kind of err
  ------------------
  |  Branch (875:12): [True: 0, False: 0]
  ------------------
  876|      0|            success = U_INTERNAL_PROGRAM_ERROR;
  877|      0|        }
  878|      0|        return nullptr;
  879|      0|    }
  880|       |
  881|  9.47k|#if !UCONFIG_NO_SERVICE
  882|  9.47k|    const UnicodeString* str = dynamic_cast<const UnicodeString*>(u);
  883|  9.47k|    if(str != nullptr) {
  ------------------
  |  Branch (883:8): [True: 0, False: 9.47k]
  ------------------
  884|       |        // It's a unicode string telling us what type of calendar to load ("gregorian", etc)
  885|       |        // Create a Locale over this string
  886|      0|        Locale l("");
  887|      0|        LocaleUtility::initLocaleFromName(*str, l);
  888|       |
  889|       |#ifdef U_DEBUG_CALSVC
  890|       |        fprintf(stderr, "Calendar::createInstance(%s), looking up [%s]\n", aLocale.getName(), l.getName());
  891|       |#endif
  892|       |
  893|      0|        Locale actualLoc2;
  894|      0|        delete u;
  895|      0|        u = nullptr;
  896|       |
  897|       |        // Don't overwrite actualLoc, since the actual loc from this call
  898|       |        // may be something like "@calendar=gregorian" -- TODO investigate
  899|       |        // further...
  900|      0|        c = (Calendar*)getCalendarService(success)->get(l, LocaleKey::KIND_ANY, &actualLoc2, success);
  901|       |
  902|      0|        if(U_FAILURE(success) || !c) {
  ------------------
  |  Branch (902:12): [True: 0, False: 0]
  |  Branch (902:34): [True: 0, False: 0]
  ------------------
  903|      0|            if(U_SUCCESS(success)) {
  ------------------
  |  Branch (903:16): [True: 0, False: 0]
  ------------------
  904|      0|                success = U_INTERNAL_PROGRAM_ERROR; // Propagate some err
  905|      0|            }
  906|      0|            return nullptr;
  907|      0|        }
  908|       |
  909|      0|        str = dynamic_cast<const UnicodeString*>(c);
  910|      0|        if(str != nullptr) {
  ------------------
  |  Branch (910:12): [True: 0, False: 0]
  ------------------
  911|       |            // recursed! Second lookup returned a UnicodeString.
  912|       |            // Perhaps DefaultCalendar{} was set to another locale.
  913|       |#ifdef U_DEBUG_CALSVC
  914|       |            char tmp[200];
  915|       |            // Extract a char* out of it..
  916|       |            int32_t len = str->length();
  917|       |            int32_t actLen = sizeof(tmp)-1;
  918|       |            if(len > actLen) {
  919|       |                len = actLen;
  920|       |            }
  921|       |            str->extract(0,len,tmp);
  922|       |            tmp[len]=0;
  923|       |
  924|       |            fprintf(stderr, "err - recursed, 2nd lookup was unistring %s\n", tmp);
  925|       |#endif
  926|      0|            success = U_MISSING_RESOURCE_ERROR;  // requested a calendar type which could NOT be found.
  927|      0|            delete c;
  928|      0|            return nullptr;
  929|      0|        }
  930|       |#ifdef U_DEBUG_CALSVC
  931|       |        fprintf(stderr, "%p: setting week count data to locale %s, actual locale %s\n", c, (const char*)aLocale.getName(), (const char *)actualLoc.getName());
  932|       |#endif
  933|      0|        c->setWeekData(aLocale, c->getType(), success);  // set the correct locale (this was an indirect calendar)
  934|       |
  935|      0|        char keyword[ULOC_FULLNAME_CAPACITY] = "";
  936|      0|        UErrorCode tmpStatus = U_ZERO_ERROR;
  937|      0|        l.getKeywordValue("calendar", keyword, ULOC_FULLNAME_CAPACITY, tmpStatus);
  ------------------
  |  |  264|      0|#define ULOC_FULLNAME_CAPACITY 157
  ------------------
  938|      0|        if (U_SUCCESS(tmpStatus) && uprv_strcmp(keyword, "iso8601") == 0) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (938:13): [True: 0, False: 0]
  |  Branch (938:37): [True: 0, False: 0]
  ------------------
  939|      0|            c->setFirstDayOfWeek(UCAL_MONDAY);
  940|      0|            c->setMinimalDaysInFirstWeek(4);
  941|      0|        }
  942|      0|    }
  943|  9.47k|    else
  944|  9.47k|#endif /* UCONFIG_NO_SERVICE */
  945|  9.47k|    {
  946|       |        // a calendar was returned - we assume the factory did the right thing.
  947|  9.47k|        c = (Calendar*)u;
  948|  9.47k|    }
  949|       |
  950|  9.47k|    return c;
  951|  9.47k|}
_ZN6icu_788Calendar14createInstanceEPNS_8TimeZoneERKNS_6LocaleER10UErrorCode:
  955|  83.7k|{
  956|  83.7k|    LocalPointer<TimeZone> zonePtr(zone);
  957|  83.7k|    const SharedCalendar *shared = nullptr;
  958|  83.7k|    UnifiedCache::getByLocale(aLocale, shared, success);
  959|  83.7k|    if (U_FAILURE(success)) {
  ------------------
  |  Branch (959:9): [True: 0, False: 83.7k]
  ------------------
  960|      0|        return nullptr;
  961|      0|    }
  962|  83.7k|    Calendar *c = (*shared)->clone();
  963|  83.7k|    shared->removeRef();
  964|  83.7k|    if (c == nullptr) {
  ------------------
  |  Branch (964:9): [True: 0, False: 83.7k]
  ------------------
  965|      0|        success = U_MEMORY_ALLOCATION_ERROR;
  966|      0|        return nullptr;
  967|      0|    }
  968|       |
  969|       |    // Now, reset calendar to default state:
  970|  83.7k|    c->adoptTimeZone(zonePtr.orphan()); //  Set the correct time zone
  971|  83.7k|    c->setTimeInMillis(getNow(), success); // let the new calendar have the current time.
  972|       |
  973|  83.7k|    return c;
  974|  83.7k|}
_ZN6icu_788Calendar25getCalendarTypeFromLocaleERKNS_6LocaleEPciR10UErrorCode:
  995|  22.9k|        UErrorCode &success) {
  996|  22.9k|    const SharedCalendar *shared = nullptr;
  997|  22.9k|    UnifiedCache::getByLocale(aLocale, shared, success);
  998|  22.9k|    if (U_FAILURE(success)) {
  ------------------
  |  Branch (998:9): [True: 0, False: 22.9k]
  ------------------
  999|      0|        return;
 1000|      0|    }
 1001|  22.9k|    uprv_strncpy(typeBuffer, (*shared)->getType(), typeBufferSize);
  ------------------
  |  |   43|  22.9k|#define uprv_strncpy(dst, src, size) U_STANDARD_CPP_NAMESPACE strncpy(dst, src, size)
  |  |  ------------------
  |  |  |  |  393|  22.9k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1002|  22.9k|    shared->removeRef();
 1003|  22.9k|    if (typeBuffer[typeBufferSize - 1]) {
  ------------------
  |  Branch (1003:9): [True: 0, False: 22.9k]
  ------------------
 1004|      0|        success = U_BUFFER_OVERFLOW_ERROR;
 1005|      0|    }
 1006|  22.9k|}
_ZN6icu_788Calendar6getNowEv:
 1093|  95.5k|{
 1094|  95.5k|    return uprv_getUTCtime(); // return as milliseconds
  ------------------
  |  | 1512|  95.5k|#define uprv_getUTCtime U_ICU_ENTRY_POINT_RENAME(uprv_getUTCtime)
  |  |  ------------------
  |  |  |  |  123|  95.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  95.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  95.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1095|  95.5k|}
_ZNK6icu_788Calendar15getTimeInMillisER10UErrorCode:
 1105|  7.67k|{
 1106|  7.67k|    if(U_FAILURE(status))
  ------------------
  |  Branch (1106:8): [True: 0, False: 7.67k]
  ------------------
 1107|      0|        return 0.0;
 1108|       |
 1109|  7.67k|    if ( ! fIsTimeSet)
  ------------------
  |  Branch (1109:10): [True: 6, False: 7.66k]
  ------------------
 1110|      6|        const_cast<Calendar*>(this)->updateTime(status);
 1111|       |
 1112|       |    /* Test for buffer overflows */
 1113|  7.67k|    if(U_FAILURE(status)) {
  ------------------
  |  Branch (1113:8): [True: 0, False: 7.67k]
  ------------------
 1114|      0|        return 0.0;
 1115|      0|    }
 1116|  7.67k|    return fTime;
 1117|  7.67k|}
_ZN6icu_788Calendar15setTimeInMillisEdR10UErrorCode:
 1129|   126k|Calendar::setTimeInMillis( double millis, UErrorCode& status ) {
 1130|   126k|    if(U_FAILURE(status))
  ------------------
  |  Branch (1130:8): [True: 0, False: 126k]
  ------------------
 1131|      0|        return;
 1132|       |
 1133|   126k|    if (millis > MAX_MILLIS) {
  ------------------
  |  |  158|   126k|#define MAX_MILLIS ((MAX_JULIAN - kEpochStartAsJulianDay) * kOneDay)
  |  |  ------------------
  |  |  |  |  152|   126k|#define MAX_JULIAN (+0x7F000000)
  |  |  ------------------
  |  |               #define MAX_MILLIS ((MAX_JULIAN - kEpochStartAsJulianDay) * kOneDay)
  |  |  ------------------
  |  |  |  |  127|   126k|#define kEpochStartAsJulianDay  2440588 // January 1, 1970 (Gregorian)
  |  |  ------------------
  |  |               #define MAX_MILLIS ((MAX_JULIAN - kEpochStartAsJulianDay) * kOneDay)
  |  |  ------------------
  |  |  |  |  117|   126k|#define kOneDay    (1.0 * U_MILLIS_PER_DAY)       //  86,400,000
  |  |  |  |  ------------------
  |  |  |  |  |  |  227|   126k|#define U_MILLIS_PER_DAY       (86400000)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1133:9): [True: 15.5k, False: 110k]
  ------------------
 1134|  15.5k|        if(isLenient()) {
  ------------------
  |  Branch (1134:12): [True: 15.5k, False: 0]
  ------------------
 1135|  15.5k|            millis = MAX_MILLIS;
  ------------------
  |  |  158|  15.5k|#define MAX_MILLIS ((MAX_JULIAN - kEpochStartAsJulianDay) * kOneDay)
  |  |  ------------------
  |  |  |  |  152|  15.5k|#define MAX_JULIAN (+0x7F000000)
  |  |  ------------------
  |  |               #define MAX_MILLIS ((MAX_JULIAN - kEpochStartAsJulianDay) * kOneDay)
  |  |  ------------------
  |  |  |  |  127|  15.5k|#define kEpochStartAsJulianDay  2440588 // January 1, 1970 (Gregorian)
  |  |  ------------------
  |  |               #define MAX_MILLIS ((MAX_JULIAN - kEpochStartAsJulianDay) * kOneDay)
  |  |  ------------------
  |  |  |  |  117|  15.5k|#define kOneDay    (1.0 * U_MILLIS_PER_DAY)       //  86,400,000
  |  |  |  |  ------------------
  |  |  |  |  |  |  227|  15.5k|#define U_MILLIS_PER_DAY       (86400000)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1136|  15.5k|        } else {
 1137|      0|		    status = U_ILLEGAL_ARGUMENT_ERROR;
 1138|      0|		    return;
 1139|      0|        }
 1140|   110k|    } else if (millis < MIN_MILLIS) {
  ------------------
  |  |  146|   110k|#define MIN_MILLIS ((MIN_JULIAN - kEpochStartAsJulianDay) * kOneDay)
  |  |  ------------------
  |  |  |  |  140|   110k|#define MIN_JULIAN (-0x7F000000)
  |  |  ------------------
  |  |               #define MIN_MILLIS ((MIN_JULIAN - kEpochStartAsJulianDay) * kOneDay)
  |  |  ------------------
  |  |  |  |  127|   110k|#define kEpochStartAsJulianDay  2440588 // January 1, 1970 (Gregorian)
  |  |  ------------------
  |  |               #define MIN_MILLIS ((MIN_JULIAN - kEpochStartAsJulianDay) * kOneDay)
  |  |  ------------------
  |  |  |  |  117|   110k|#define kOneDay    (1.0 * U_MILLIS_PER_DAY)       //  86,400,000
  |  |  |  |  ------------------
  |  |  |  |  |  |  227|   110k|#define U_MILLIS_PER_DAY       (86400000)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1140:16): [True: 1.84k, False: 109k]
  ------------------
 1141|  1.84k|        if(isLenient()) {
  ------------------
  |  Branch (1141:12): [True: 1.84k, False: 0]
  ------------------
 1142|  1.84k|            millis = MIN_MILLIS;
  ------------------
  |  |  146|  1.84k|#define MIN_MILLIS ((MIN_JULIAN - kEpochStartAsJulianDay) * kOneDay)
  |  |  ------------------
  |  |  |  |  140|  1.84k|#define MIN_JULIAN (-0x7F000000)
  |  |  ------------------
  |  |               #define MIN_MILLIS ((MIN_JULIAN - kEpochStartAsJulianDay) * kOneDay)
  |  |  ------------------
  |  |  |  |  127|  1.84k|#define kEpochStartAsJulianDay  2440588 // January 1, 1970 (Gregorian)
  |  |  ------------------
  |  |               #define MIN_MILLIS ((MIN_JULIAN - kEpochStartAsJulianDay) * kOneDay)
  |  |  ------------------
  |  |  |  |  117|  1.84k|#define kOneDay    (1.0 * U_MILLIS_PER_DAY)       //  86,400,000
  |  |  |  |  ------------------
  |  |  |  |  |  |  227|  1.84k|#define U_MILLIS_PER_DAY       (86400000)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1143|  1.84k|        } else {
 1144|      0|    		status = U_ILLEGAL_ARGUMENT_ERROR;
 1145|      0|	    	return;
 1146|      0|        }
 1147|   109k|    } else if (uprv_isNaN(millis)) {
  ------------------
  |  | 1519|   109k|#define uprv_isNaN U_ICU_ENTRY_POINT_RENAME(uprv_isNaN)
  |  |  ------------------
  |  |  |  |  123|   109k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   109k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   109k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1147:16): [True: 396, False: 108k]
  ------------------
 1148|    396|        status = U_ILLEGAL_ARGUMENT_ERROR;
 1149|    396|        return;
 1150|    396|    }
 1151|       |
 1152|   126k|    fTime = millis;
 1153|   126k|    fAreFieldsSet = fAreAllFieldsSet = false;
 1154|   126k|    fIsTimeSet = fAreFieldsVirtuallySet = true;
 1155|       |
 1156|   126k|    uprv_memset(fFields, 0, sizeof(fFields));
  ------------------
  |  |  100|   126k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|   126k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1157|   126k|    uprv_memset(fStamp, kUnset, sizeof(fStamp));
  ------------------
  |  |  100|   126k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|   126k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1158|   126k|    fNextStamp = kMinimumUserStamp;
 1159|   126k|}
_ZNK6icu_788Calendar3getE19UCalendarDateFieldsR10UErrorCode:
 1165|   138k|{
 1166|   138k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1166:9): [True: 0, False: 138k]
  ------------------
 1167|      0|        return 0;
 1168|      0|    }
 1169|   138k|    if (field < 0 || field >= UCAL_FIELD_COUNT) {
  ------------------
  |  Branch (1169:9): [True: 0, False: 138k]
  |  Branch (1169:22): [True: 0, False: 138k]
  ------------------
 1170|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 1171|      0|        return 0;
 1172|      0|    }
 1173|       |    // field values are only computed when actually requested; for more on when computation
 1174|       |    // of various things happens, see the "data flow in Calendar" description at the top
 1175|       |    // of this file
 1176|   138k|    if (U_SUCCESS(status)) const_cast<Calendar*>(this)->complete(status); // Cast away const
  ------------------
  |  Branch (1176:9): [True: 138k, False: 0]
  ------------------
 1177|   138k|    return U_SUCCESS(status) ? fFields[field] : 0;
  ------------------
  |  Branch (1177:12): [True: 138k, False: 0]
  ------------------
 1178|   138k|}
_ZN6icu_788Calendar3setE19UCalendarDateFieldsi:
 1184|     18|{
 1185|     18|    if (field < 0 || field >= UCAL_FIELD_COUNT) {
  ------------------
  |  Branch (1185:9): [True: 0, False: 18]
  |  Branch (1185:22): [True: 0, False: 18]
  ------------------
 1186|      0|        return;
 1187|      0|    }
 1188|     18|    if (fAreFieldsVirtuallySet) {
  ------------------
  |  Branch (1188:9): [True: 6, False: 12]
  ------------------
 1189|      6|        UErrorCode ec = U_ZERO_ERROR;
 1190|      6|        computeFields(ec);
 1191|      6|    }
 1192|     18|    fFields[field]     = value;
 1193|       |    /* Ensure that the fNextStamp value doesn't go pass max value for int8_t */
 1194|     18|    if (fNextStamp == STAMP_MAX) {
  ------------------
  |  |  159|     18|#define STAMP_MAX 127
  ------------------
  |  Branch (1194:9): [True: 0, False: 18]
  ------------------
 1195|      0|        recalculateStamp();
 1196|      0|    }
 1197|     18|    fStamp[field]     = fNextStamp++;
 1198|     18|    fIsTimeSet = fAreFieldsSet = fAreFieldsVirtuallySet = false;
 1199|     18|}
_ZN6icu_788Calendar5clearEv:
 1268|  9.48k|{
 1269|  9.48k|    uprv_memset(fFields, 0, sizeof(fFields));
  ------------------
  |  |  100|  9.48k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  9.48k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1270|  9.48k|    uprv_memset(fStamp, kUnset, sizeof(fStamp));
  ------------------
  |  |  100|  9.48k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  9.48k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1271|  9.48k|    fNextStamp = kMinimumUserStamp;
 1272|  9.48k|    fIsTimeSet = fAreFieldsSet = fAreAllFieldsSet = fAreFieldsVirtuallySet = false;
 1273|       |    // fTime is not 'cleared' - may be used if no fields are set.
 1274|  9.48k|}
_ZNK6icu_788Calendar5isSetE19UCalendarDateFields:
 1305|     24|{
 1306|     24|    if (field < 0 || field >= UCAL_FIELD_COUNT) {
  ------------------
  |  Branch (1306:9): [True: 0, False: 24]
  |  Branch (1306:22): [True: 0, False: 24]
  ------------------
 1307|      0|        return false;
 1308|      0|    }
 1309|     24|    return fAreFieldsVirtuallySet || (fStamp[field] != kUnset);
  ------------------
  |  Branch (1309:12): [True: 0, False: 24]
  |  Branch (1309:38): [True: 24, False: 0]
  ------------------
 1310|     24|}
_ZNK6icu_788Calendar11newestStampE19UCalendarDateFieldsS1_i:
 1314|      6|{
 1315|      6|    int32_t bestStamp = bestStampSoFar;
 1316|     42|    for (int32_t i = static_cast<int32_t>(first); i <= static_cast<int32_t>(last); ++i) {
  ------------------
  |  Branch (1316:51): [True: 36, False: 6]
  ------------------
 1317|     36|        if (fStamp[i] > bestStamp) {
  ------------------
  |  Branch (1317:13): [True: 6, False: 30]
  ------------------
 1318|      6|            bestStamp = fStamp[i];
 1319|      6|        }
 1320|     36|    }
 1321|      6|    return bestStamp;
 1322|      6|}
_ZN6icu_788Calendar8completeER10UErrorCode:
 1329|   138k|{
 1330|   138k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1330:9): [True: 0, False: 138k]
  ------------------
 1331|      0|       return;
 1332|      0|    }
 1333|   138k|    if (!fIsTimeSet) {
  ------------------
  |  Branch (1333:9): [True: 6, False: 138k]
  ------------------
 1334|      6|        updateTime(status);
 1335|       |        /* Test for buffer overflows */
 1336|      6|        if(U_FAILURE(status)) {
  ------------------
  |  Branch (1336:12): [True: 0, False: 6]
  ------------------
 1337|      0|            return;
 1338|      0|        }
 1339|      6|    }
 1340|   138k|    if (!fAreFieldsSet) {
  ------------------
  |  Branch (1340:9): [True: 29.6k, False: 108k]
  ------------------
 1341|  29.6k|        computeFields(status); // fills in unset fields
 1342|       |        /* Test for buffer overflows */
 1343|  29.6k|        if(U_FAILURE(status)) {
  ------------------
  |  Branch (1343:12): [True: 0, False: 29.6k]
  ------------------
 1344|      0|            return;
 1345|      0|        }
 1346|  29.6k|        fAreFieldsSet         = true;
 1347|  29.6k|        fAreAllFieldsSet     = true;
 1348|  29.6k|    }
 1349|   138k|}
_ZN6icu_788Calendar8pinFieldE19UCalendarDateFieldsR10UErrorCode:
 1383|      6|void Calendar::pinField(UCalendarDateFields field, UErrorCode& status) {
 1384|      6|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1384:9): [True: 0, False: 6]
  ------------------
 1385|      0|       return;
 1386|      0|    }
 1387|      6|    if (field < 0 || field >= UCAL_FIELD_COUNT) {
  ------------------
  |  Branch (1387:9): [True: 0, False: 6]
  |  Branch (1387:22): [True: 0, False: 6]
  ------------------
 1388|      0|       status = U_ILLEGAL_ARGUMENT_ERROR;
 1389|      0|       return;
 1390|      0|    }
 1391|      6|    int32_t max = getActualMaximum(field, status);
 1392|      6|    int32_t min = getActualMinimum(field, status);
 1393|       |
 1394|      6|    if (fFields[field] > max) {
  ------------------
  |  Branch (1394:9): [True: 0, False: 6]
  ------------------
 1395|      0|        set(field, max);
 1396|      6|    } else if (fFields[field] < min) {
  ------------------
  |  Branch (1396:16): [True: 0, False: 6]
  ------------------
 1397|      0|        set(field, min);
 1398|      0|    }
 1399|      6|}
_ZN6icu_788Calendar13computeFieldsER10UErrorCode:
 1403|  29.6k|{
 1404|  29.6k|    if (U_FAILURE(ec)) {
  ------------------
  |  Branch (1404:9): [True: 0, False: 29.6k]
  ------------------
 1405|      0|        return;
 1406|      0|    }
 1407|       |    // Compute local wall millis
 1408|  29.6k|    double localMillis = internalGetTime();
 1409|  29.6k|    int32_t rawOffset, dstOffset;
 1410|  29.6k|    getTimeZone().getOffset(localMillis, false, rawOffset, dstOffset, ec);
 1411|  29.6k|    if (U_FAILURE(ec)) {
  ------------------
  |  Branch (1411:9): [True: 0, False: 29.6k]
  ------------------
 1412|      0|        return;
 1413|      0|    }
 1414|  29.6k|    localMillis += (rawOffset + dstOffset);
 1415|       |
 1416|       |    // Mark fields as set.  Do this before calling handleComputeFields().
 1417|  29.6k|    uint32_t mask =   //fInternalSetMask;
 1418|  29.6k|        (1 << UCAL_ERA) |
 1419|  29.6k|        (1 << UCAL_YEAR) |
 1420|  29.6k|        (1 << UCAL_MONTH) |
 1421|  29.6k|        (1 << UCAL_DAY_OF_MONTH) | // = UCAL_DATE
 1422|  29.6k|        (1 << UCAL_DAY_OF_YEAR) |
 1423|  29.6k|        (1 << UCAL_EXTENDED_YEAR) |
 1424|  29.6k|        (1 << UCAL_ORDINAL_MONTH);
 1425|       |
 1426|   740k|    for (int32_t i=0; i<UCAL_FIELD_COUNT; ++i) {
  ------------------
  |  Branch (1426:23): [True: 711k, False: 29.6k]
  ------------------
 1427|   711k|        if ((mask & 1) == 0) {
  ------------------
  |  Branch (1427:13): [True: 503k, False: 207k]
  ------------------
 1428|   503k|            fStamp[i] = kInternallySet;
 1429|   503k|        } else {
 1430|   207k|            fStamp[i] = kUnset;
 1431|   207k|        }
 1432|   711k|        mask >>= 1;
 1433|   711k|    }
 1434|       |
 1435|       |    // We used to check for and correct extreme millis values (near
 1436|       |    // Long.MIN_VALUE or Long.MAX_VALUE) here.  Such values would cause
 1437|       |    // overflows from positive to negative (or vice versa) and had to
 1438|       |    // be manually tweaked.  We no longer need to do this because we
 1439|       |    // have limited the range of supported dates to those that have a
 1440|       |    // Julian day that fits into an int.  This allows us to implement a
 1441|       |    // JULIAN_DAY field and also removes some inelegant code. - Liu
 1442|       |    // 11/6/00
 1443|       |
 1444|  29.6k|    int32_t millisInDay;
 1445|  29.6k|    double days = ClockMath::floorDivide(
 1446|  29.6k|        localMillis, U_MILLIS_PER_DAY, &millisInDay) +
  ------------------
  |  |  227|  29.6k|#define U_MILLIS_PER_DAY       (86400000)
  ------------------
 1447|  29.6k|        kEpochStartAsJulianDay;
  ------------------
  |  |  127|  29.6k|#define kEpochStartAsJulianDay  2440588 // January 1, 1970 (Gregorian)
  ------------------
 1448|  29.6k|    if (days > INT32_MAX || days < INT32_MIN) {
  ------------------
  |  Branch (1448:9): [True: 0, False: 29.6k]
  |  Branch (1448:29): [True: 0, False: 29.6k]
  ------------------
 1449|      0|        ec = U_ILLEGAL_ARGUMENT_ERROR;
 1450|      0|        return;
 1451|      0|    }
 1452|       |
 1453|  29.6k|    internalSet(UCAL_JULIAN_DAY, static_cast<int32_t>(days));
 1454|       |
 1455|       |#if defined (U_DEBUG_CAL)
 1456|       |    //fprintf(stderr, "%s:%d- Hmm! Jules @ %d, as per %.0lf millis\n",
 1457|       |    //__FILE__, __LINE__, fFields[UCAL_JULIAN_DAY], localMillis);
 1458|       |#endif
 1459|       |
 1460|  29.6k|    computeGregorianFields(fFields[UCAL_JULIAN_DAY], ec);
 1461|       |
 1462|       |    // Call framework method to have subclass compute its fields.
 1463|       |    // These must include, at a minimum, MONTH, DAY_OF_MONTH,
 1464|       |    // EXTENDED_YEAR, YEAR, DAY_OF_YEAR.  This method will call internalSet(),
 1465|       |    // which will update stamp[].
 1466|  29.6k|    handleComputeFields(fFields[UCAL_JULIAN_DAY], ec);
 1467|       |
 1468|       |    // Compute week-related fields, based on the subclass-computed
 1469|       |    // fields computed by handleComputeFields().
 1470|  29.6k|    computeWeekFields(ec);
 1471|       |
 1472|       |    // Compute time-related fields.  These are independent of the date and
 1473|       |    // of the subclass algorithm.  They depend only on the local zone
 1474|       |    // wall milliseconds in day.
 1475|  29.6k|    if (U_FAILURE(ec)) {
  ------------------
  |  Branch (1475:9): [True: 0, False: 29.6k]
  ------------------
 1476|      0|        return;
 1477|      0|    }
 1478|       |
 1479|  29.6k|    fFields[UCAL_MILLISECONDS_IN_DAY] = millisInDay;
 1480|  29.6k|    U_ASSERT(getMinimum(UCAL_MILLISECONDS_IN_DAY) <=
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1481|  29.6k|             fFields[UCAL_MILLISECONDS_IN_DAY]);
 1482|  29.6k|    U_ASSERT(fFields[UCAL_MILLISECONDS_IN_DAY] <=
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1483|  29.6k|             getMaximum(UCAL_MILLISECONDS_IN_DAY));
 1484|       |
 1485|  29.6k|    fFields[UCAL_MILLISECOND] = millisInDay % 1000;
 1486|  29.6k|    U_ASSERT(getMinimum(UCAL_MILLISECOND) <= fFields[UCAL_MILLISECOND]);
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1487|  29.6k|    U_ASSERT(fFields[UCAL_MILLISECOND] <= getMaximum(UCAL_MILLISECOND));
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1488|       |
 1489|  29.6k|    millisInDay /= 1000;
 1490|  29.6k|    fFields[UCAL_SECOND] = millisInDay % 60;
 1491|  29.6k|    U_ASSERT(getMinimum(UCAL_SECOND) <= fFields[UCAL_SECOND]);
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1492|  29.6k|    U_ASSERT(fFields[UCAL_SECOND] <= getMaximum(UCAL_SECOND));
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1493|       |
 1494|  29.6k|    millisInDay /= 60;
 1495|  29.6k|    fFields[UCAL_MINUTE] = millisInDay % 60;
 1496|  29.6k|    U_ASSERT(getMinimum(UCAL_MINUTE) <= fFields[UCAL_MINUTE]);
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1497|  29.6k|    U_ASSERT(fFields[UCAL_MINUTE] <= getMaximum(UCAL_MINUTE));
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1498|       |
 1499|  29.6k|    millisInDay /= 60;
 1500|  29.6k|    fFields[UCAL_HOUR_OF_DAY] = millisInDay;
 1501|  29.6k|    U_ASSERT(getMinimum(UCAL_HOUR_OF_DAY) <= fFields[UCAL_HOUR_OF_DAY]);
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1502|  29.6k|    U_ASSERT(fFields[UCAL_HOUR_OF_DAY] <= getMaximum(UCAL_HOUR_OF_DAY));
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1503|       |
 1504|  29.6k|    fFields[UCAL_AM_PM] = millisInDay / 12; // Assume AM == 0
 1505|  29.6k|    U_ASSERT(getMinimum(UCAL_AM_PM) <= fFields[UCAL_AM_PM]);
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1506|  29.6k|    U_ASSERT(fFields[UCAL_AM_PM] <= getMaximum(UCAL_AM_PM));
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1507|       |
 1508|  29.6k|    fFields[UCAL_HOUR] = millisInDay % 12;
 1509|  29.6k|    U_ASSERT(getMinimum(UCAL_HOUR) <= fFields[UCAL_HOUR]);
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1510|  29.6k|    U_ASSERT(fFields[UCAL_HOUR] <= getMaximum(UCAL_HOUR));
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1511|       |
 1512|  29.6k|    fFields[UCAL_ZONE_OFFSET] = rawOffset;
 1513|  29.6k|    U_ASSERT(getMinimum(UCAL_ZONE_OFFSET) <= fFields[UCAL_ZONE_OFFSET]);
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1514|  29.6k|    U_ASSERT(fFields[UCAL_ZONE_OFFSET] <= getMaximum(UCAL_ZONE_OFFSET));
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1515|       |
 1516|  29.6k|    fFields[UCAL_DST_OFFSET] = dstOffset;
 1517|  29.6k|    U_ASSERT(getMinimum(UCAL_DST_OFFSET) <= fFields[UCAL_DST_OFFSET]);
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1518|  29.6k|    U_ASSERT(fFields[UCAL_DST_OFFSET] <= getMaximum(UCAL_DST_OFFSET));
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1519|  29.6k|}
_ZN6icu_788Calendar22computeGregorianFieldsEiR10UErrorCode:
 1538|  29.6k|void Calendar::computeGregorianFields(int32_t julianDay, UErrorCode& ec) {
 1539|  29.6k|    if (U_FAILURE(ec)) {
  ------------------
  |  Branch (1539:9): [True: 0, False: 29.6k]
  ------------------
 1540|      0|        return;
 1541|      0|    }
 1542|  29.6k|    if (uprv_add32_overflow(
  ------------------
  |  | 1394|  29.6k|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  123|  29.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  29.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  29.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1542:9): [True: 0, False: 29.6k]
  ------------------
 1543|  29.6k|            julianDay, -kEpochStartAsJulianDay, &julianDay)) {
  ------------------
  |  |  127|  29.6k|#define kEpochStartAsJulianDay  2440588 // January 1, 1970 (Gregorian)
  ------------------
 1544|      0|        ec = U_ILLEGAL_ARGUMENT_ERROR;
 1545|      0|        return;
 1546|      0|    }
 1547|  29.6k|    int8_t dayOfWeek;
 1548|  29.6k|    Grego::dayToFields(julianDay, fGregorianYear, fGregorianMonth,
 1549|  29.6k|                       fGregorianDayOfMonth,
 1550|  29.6k|                       dayOfWeek,
 1551|  29.6k|                       fGregorianDayOfYear, ec);
 1552|  29.6k|    if (U_FAILURE(ec)) {
  ------------------
  |  Branch (1552:9): [True: 0, False: 29.6k]
  ------------------
 1553|      0|        return;
 1554|      0|    }
 1555|  29.6k|    internalSet(UCAL_DAY_OF_WEEK, dayOfWeek);
 1556|  29.6k|}
_ZN6icu_788Calendar17computeWeekFieldsER10UErrorCode:
 1578|  29.6k|void Calendar::computeWeekFields(UErrorCode &ec) {
 1579|  29.6k|    if(U_FAILURE(ec)) {
  ------------------
  |  Branch (1579:8): [True: 0, False: 29.6k]
  ------------------
 1580|      0|        return;
 1581|      0|    }
 1582|       |
 1583|       |    // Compute day of week: JD 0 = Monday
 1584|  29.6k|    int32_t dayOfWeek = fFields[UCAL_DAY_OF_WEEK];
 1585|  29.6k|    int32_t firstDayOfWeek = getFirstDayOfWeek();
 1586|       |    // Calculate 1-based localized day of week
 1587|  29.6k|    int32_t dowLocal = dayOfWeek - firstDayOfWeek + 1;
 1588|  29.6k|    if (dowLocal < 1) {
  ------------------
  |  Branch (1588:9): [True: 2.61k, False: 27.0k]
  ------------------
 1589|  2.61k|        dowLocal += 7;
 1590|  2.61k|    }
 1591|  29.6k|    internalSet(UCAL_DOW_LOCAL,dowLocal);
 1592|       |
 1593|  29.6k|    int32_t eyear = fFields[UCAL_EXTENDED_YEAR];
 1594|  29.6k|    int32_t dayOfYear = fFields[UCAL_DAY_OF_YEAR];
 1595|       |
 1596|       |    // WEEK_OF_YEAR start
 1597|       |    // Compute the week of the year.  For the Gregorian calendar, valid week
 1598|       |    // numbers run from 1 to 52 or 53, depending on the year, the first day
 1599|       |    // of the week, and the minimal days in the first week.  For other
 1600|       |    // calendars, the valid range may be different -- it depends on the year
 1601|       |    // length.  Days at the start of the year may fall into the last week of
 1602|       |    // the previous year; days at the end of the year may fall into the
 1603|       |    // first week of the next year.  ASSUME that the year length is less than
 1604|       |    // 7000 days.
 1605|  29.6k|    int32_t yearOfWeekOfYear = eyear;
 1606|  29.6k|    int32_t relDow = (dayOfWeek + 7 - firstDayOfWeek) % 7; // 0..6
 1607|  29.6k|    int32_t relDowJan1 = (dayOfWeek - dayOfYear + 7001 - firstDayOfWeek) % 7; // 0..6
 1608|  29.6k|    int32_t woy = (dayOfYear - 1 + relDowJan1) / 7; // 0..53
 1609|  29.6k|    int32_t minimalDaysInFirstWeek = getMinimalDaysInFirstWeek();
 1610|  29.6k|    if ((7 - relDowJan1) >= minimalDaysInFirstWeek) {
  ------------------
  |  Branch (1610:9): [True: 27.5k, False: 2.06k]
  ------------------
 1611|  27.5k|        ++woy;
 1612|  27.5k|    }
 1613|       |
 1614|       |    // Adjust for weeks at the year end that overlap into the previous or
 1615|       |    // next calendar year.
 1616|  29.6k|    if (woy == 0) {
  ------------------
  |  Branch (1616:9): [True: 28, False: 29.6k]
  ------------------
 1617|       |        // We are the last week of the previous year.
 1618|       |        // Check to see if we are in the last week; if so, we need
 1619|       |        // to handle the case in which we are the first week of the
 1620|       |        // next year.
 1621|       |
 1622|     28|        int32_t prevDoy = dayOfYear + handleGetYearLength(eyear - 1, ec);
 1623|     28|        if(U_FAILURE(ec)) return;
  ------------------
  |  Branch (1623:12): [True: 0, False: 28]
  ------------------
 1624|     28|        woy = weekNumber(prevDoy, dayOfWeek);
 1625|     28|        yearOfWeekOfYear--;
 1626|  29.6k|    } else {
 1627|  29.6k|        int32_t lastDoy = handleGetYearLength(eyear, ec);
 1628|  29.6k|        if(U_FAILURE(ec)) return;
  ------------------
  |  Branch (1628:12): [True: 0, False: 29.6k]
  ------------------
 1629|       |        // Fast check: For it to be week 1 of the next year, the DOY
 1630|       |        // must be on or after L-5, where L is yearLength(), then it
 1631|       |        // cannot possibly be week 1 of the next year:
 1632|       |        //          L-5                  L
 1633|       |        // doy: 359 360 361 362 363 364 365 001
 1634|       |        // dow:      1   2   3   4   5   6   7
 1635|  29.6k|        if (dayOfYear >= (lastDoy - 5)) {
  ------------------
  |  Branch (1635:13): [True: 1.89k, False: 27.7k]
  ------------------
 1636|  1.89k|            int32_t lastRelDow = (relDow + lastDoy - dayOfYear) % 7;
 1637|  1.89k|            if (lastRelDow < 0) {
  ------------------
  |  Branch (1637:17): [True: 0, False: 1.89k]
  ------------------
 1638|      0|                lastRelDow += 7;
 1639|      0|            }
 1640|  1.89k|            if (((6 - lastRelDow) >= minimalDaysInFirstWeek) &&
  ------------------
  |  Branch (1640:17): [True: 1.85k, False: 42]
  ------------------
 1641|  1.89k|                ((dayOfYear + 7 - relDow) > lastDoy)) {
  ------------------
  |  Branch (1641:17): [True: 1.83k, False: 22]
  ------------------
 1642|  1.83k|                    woy = 1;
 1643|  1.83k|                    yearOfWeekOfYear++;
 1644|  1.83k|                }
 1645|  1.89k|        }
 1646|  29.6k|    }
 1647|  29.6k|    fFields[UCAL_WEEK_OF_YEAR] = woy;
 1648|  29.6k|    fFields[UCAL_YEAR_WOY] = yearOfWeekOfYear;
 1649|       |    // min/max of years are not constrains for caller, so not assert here.
 1650|       |    // WEEK_OF_YEAR end
 1651|       |
 1652|  29.6k|    int32_t dayOfMonth = fFields[UCAL_DAY_OF_MONTH];
 1653|  29.6k|    fFields[UCAL_WEEK_OF_MONTH] = weekNumber(dayOfMonth, dayOfWeek);
 1654|  29.6k|    U_ASSERT(getMinimum(UCAL_WEEK_OF_MONTH) <= fFields[UCAL_WEEK_OF_MONTH]);
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1655|  29.6k|    U_ASSERT(fFields[UCAL_WEEK_OF_MONTH] <= getMaximum(UCAL_WEEK_OF_MONTH));
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1656|       |
 1657|  29.6k|    fFields[UCAL_DAY_OF_WEEK_IN_MONTH] = (dayOfMonth-1) / 7 + 1;
 1658|  29.6k|    U_ASSERT(getMinimum(UCAL_DAY_OF_WEEK_IN_MONTH) <=
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1659|  29.6k|             fFields[UCAL_DAY_OF_WEEK_IN_MONTH]);
 1660|  29.6k|    U_ASSERT(fFields[UCAL_DAY_OF_WEEK_IN_MONTH] <=
  ------------------
  |  |   35|  29.6k|#   define U_ASSERT(exp) (void)0
  ------------------
 1661|  29.6k|             getMaximum(UCAL_DAY_OF_WEEK_IN_MONTH));
 1662|       |
 1663|       |#if defined (U_DEBUG_CAL)
 1664|       |    if(fFields[UCAL_DAY_OF_WEEK_IN_MONTH]==0) fprintf(stderr, "%s:%d: DOWIM %d on %g\n",
 1665|       |        __FILE__, __LINE__,fFields[UCAL_DAY_OF_WEEK_IN_MONTH], fTime);
 1666|       |#endif
 1667|  29.6k|}
_ZN6icu_788Calendar10weekNumberEiii:
 1671|  29.6k|{
 1672|       |    // Determine the day of the week of the first day of the period
 1673|       |    // in question (either a year or a month).  Zero represents the
 1674|       |    // first day of the week on this calendar.
 1675|  29.6k|    int32_t periodStartDayOfWeek = (dayOfWeek - getFirstDayOfWeek() - dayOfPeriod + 1) % 7;
 1676|  29.6k|    if (periodStartDayOfWeek < 0) periodStartDayOfWeek += 7;
  ------------------
  |  Branch (1676:9): [True: 20.3k, False: 9.30k]
  ------------------
 1677|       |
 1678|       |    // Compute the week number.  Initially, ignore the first week, which
 1679|       |    // may be fractional (or may not be).  We add periodStartDayOfWeek in
 1680|       |    // order to fill out the first week, if it is fractional.
 1681|  29.6k|    int32_t weekNo = (desiredDay + periodStartDayOfWeek - 1)/7;
 1682|       |
 1683|       |    // If the first week is long enough, then count it.  If
 1684|       |    // the minimal days in the first week is one, or if the period start
 1685|       |    // is zero, we always increment weekNo.
 1686|  29.6k|    if ((7 - periodStartDayOfWeek) >= getMinimalDaysInFirstWeek()) ++weekNo;
  ------------------
  |  Branch (1686:9): [True: 29.0k, False: 646]
  ------------------
 1687|       |
 1688|  29.6k|    return weekNo;
 1689|  29.6k|}
_ZN6icu_788Calendar3addE19UCalendarDateFieldsiR10UErrorCode:
 2096|      6|{
 2097|      6|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2097:9): [True: 0, False: 6]
  ------------------
 2098|      0|       return;
 2099|      0|    }
 2100|      6|    if (field < 0 || field >= UCAL_FIELD_COUNT) {
  ------------------
  |  Branch (2100:9): [True: 0, False: 6]
  |  Branch (2100:22): [True: 0, False: 6]
  ------------------
 2101|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 2102|      0|        return;
 2103|      0|    }
 2104|      6|    if (amount == 0) {
  ------------------
  |  Branch (2104:9): [True: 0, False: 6]
  ------------------
 2105|      0|        return;   // Do nothing!
 2106|      0|    }
 2107|       |
 2108|       |    // We handle most fields in the same way.  The algorithm is to add
 2109|       |    // a computed amount of millis to the current millis.  The only
 2110|       |    // wrinkle is with DST (and/or a change to the zone's UTC offset, which
 2111|       |    // we'll include with DST) -- for some fields, like the DAY_OF_MONTH,
 2112|       |    // we don't want the wall time to shift due to changes in DST.  If the
 2113|       |    // result of the add operation is to move from DST to Standard, or
 2114|       |    // vice versa, we need to adjust by an hour forward or back,
 2115|       |    // respectively.  For such fields we set keepWallTimeInvariant to true.
 2116|       |
 2117|       |    // We only adjust the DST for fields larger than an hour.  For
 2118|       |    // fields smaller than an hour, we cannot adjust for DST without
 2119|       |    // causing problems.  for instance, if you add one hour to April 5,
 2120|       |    // 1998, 1:00 AM, in PST, the time becomes "2:00 AM PDT" (an
 2121|       |    // illegal value), but then the adjustment sees the change and
 2122|       |    // compensates by subtracting an hour.  As a result the time
 2123|       |    // doesn't advance at all.
 2124|       |
 2125|       |    // For some fields larger than a day, such as a UCAL_MONTH, we pin the
 2126|       |    // UCAL_DAY_OF_MONTH.  This allows <March 31>.add(UCAL_MONTH, 1) to be
 2127|       |    // <April 30>, rather than <April 31> => <May 1>.
 2128|       |
 2129|      6|    double delta = amount; // delta in ms
 2130|      6|    UBool keepWallTimeInvariant = true;
 2131|       |
 2132|      6|    switch (field) {
 2133|      0|    case UCAL_ERA:
  ------------------
  |  Branch (2133:5): [True: 0, False: 6]
  ------------------
 2134|      0|      {
 2135|      0|        int32_t era = get(UCAL_ERA, status);
 2136|      0|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (2136:13): [True: 0, False: 0]
  ------------------
 2137|      0|            return;
 2138|      0|        }
 2139|      0|        if (uprv_add32_overflow(era, amount, &era)) {
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (2139:13): [True: 0, False: 0]
  ------------------
 2140|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
 2141|      0|            return;
 2142|      0|        }
 2143|      0|        set(UCAL_ERA, era);
 2144|      0|        pinField(UCAL_ERA, status);
 2145|      0|        return;
 2146|      0|      }
 2147|       |
 2148|      6|    case UCAL_YEAR:
  ------------------
  |  Branch (2148:5): [True: 6, False: 0]
  ------------------
 2149|      6|    case UCAL_YEAR_WOY:
  ------------------
  |  Branch (2149:5): [True: 0, False: 6]
  ------------------
 2150|      6|      {
 2151|       |        // * If era=0 and years go backwards in time, change sign of amount.
 2152|       |        // * Until we have new API per #9393, we temporarily hardcode knowledge of
 2153|       |        //   which calendars have era 0 years that go backwards.
 2154|       |        // * Note that for UCAL_YEAR (but not UCAL_YEAR_WOY) we could instead handle
 2155|       |        //   this by applying the amount to the UCAL_EXTENDED_YEAR field; but since
 2156|       |        //   we would still need to handle UCAL_YEAR_WOY as below, might as well
 2157|       |        //   also handle UCAL_YEAR the same way.
 2158|      6|        if (get(UCAL_ERA, status) == 0 && isEra0CountingBackward()) {
  ------------------
  |  Branch (2158:13): [True: 3, False: 3]
  |  Branch (2158:43): [True: 0, False: 3]
  ------------------
 2159|      0|          if (uprv_mul32_overflow(amount, -1, &amount)) {
  ------------------
  |  | 1531|      0|#define uprv_mul32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_mul32_overflow)
  |  |  ------------------
  |  |  |  |  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 (2159:15): [True: 0, False: 0]
  ------------------
 2160|      0|              status = U_ILLEGAL_ARGUMENT_ERROR;
 2161|      0|              return;
 2162|      0|          }
 2163|      0|        }
 2164|      6|      }
 2165|       |      // Fall through into normal handling
 2166|      6|      U_FALLTHROUGH;
  ------------------
  |  |  511|      6|#       define U_FALLTHROUGH [[clang::fallthrough]]
  ------------------
 2167|      6|    case UCAL_EXTENDED_YEAR:
  ------------------
  |  Branch (2167:5): [True: 0, False: 6]
  ------------------
 2168|      6|    case UCAL_MONTH:
  ------------------
  |  Branch (2168:5): [True: 0, False: 6]
  ------------------
 2169|      6|    case UCAL_ORDINAL_MONTH:
  ------------------
  |  Branch (2169:5): [True: 0, False: 6]
  ------------------
 2170|      6|      {
 2171|      6|        UBool oldLenient = isLenient();
 2172|      6|        setLenient(true);
 2173|      6|        int32_t value = get(field, status);
 2174|      6|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (2174:13): [True: 0, False: 6]
  ------------------
 2175|      0|            return;
 2176|      0|        }
 2177|      6|        if (uprv_add32_overflow(value, amount, &value)) {
  ------------------
  |  | 1394|      6|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2177:13): [True: 0, False: 6]
  ------------------
 2178|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
 2179|      0|            return;
 2180|      0|        }
 2181|      6|        set(field, value);
 2182|       |
 2183|      6|        pinField(UCAL_DAY_OF_MONTH, status);
 2184|      6|        if(oldLenient==false) {
  ------------------
  |  Branch (2184:12): [True: 0, False: 6]
  ------------------
 2185|      0|          complete(status); /* force recalculate */
 2186|      0|          setLenient(oldLenient);
 2187|      0|        }
 2188|      6|      }
 2189|      0|      return;
 2190|       |
 2191|      0|    case UCAL_WEEK_OF_YEAR:
  ------------------
  |  Branch (2191:5): [True: 0, False: 6]
  ------------------
 2192|      0|    case UCAL_WEEK_OF_MONTH:
  ------------------
  |  Branch (2192:5): [True: 0, False: 6]
  ------------------
 2193|      0|    case UCAL_DAY_OF_WEEK_IN_MONTH:
  ------------------
  |  Branch (2193:5): [True: 0, False: 6]
  ------------------
 2194|      0|        delta *= kOneWeek;
  ------------------
  |  |  122|      0|#define kOneWeek   (7.0 * kOneDay) // 604,800,000
  |  |  ------------------
  |  |  |  |  117|      0|#define kOneDay    (1.0 * U_MILLIS_PER_DAY)       //  86,400,000
  |  |  |  |  ------------------
  |  |  |  |  |  |  227|      0|#define U_MILLIS_PER_DAY       (86400000)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2195|      0|        break;
 2196|       |
 2197|      0|    case UCAL_AM_PM:
  ------------------
  |  Branch (2197:5): [True: 0, False: 6]
  ------------------
 2198|      0|        delta *= 12 * kOneHour;
  ------------------
  |  |  118|      0|#define kOneHour   (60*60*1000)
  ------------------
 2199|      0|        break;
 2200|       |
 2201|      0|    case UCAL_DAY_OF_MONTH:
  ------------------
  |  Branch (2201:5): [True: 0, False: 6]
  ------------------
 2202|      0|    case UCAL_DAY_OF_YEAR:
  ------------------
  |  Branch (2202:5): [True: 0, False: 6]
  ------------------
 2203|      0|    case UCAL_DAY_OF_WEEK:
  ------------------
  |  Branch (2203:5): [True: 0, False: 6]
  ------------------
 2204|      0|    case UCAL_DOW_LOCAL:
  ------------------
  |  Branch (2204:5): [True: 0, False: 6]
  ------------------
 2205|      0|    case UCAL_JULIAN_DAY:
  ------------------
  |  Branch (2205:5): [True: 0, False: 6]
  ------------------
 2206|      0|        delta *= kOneDay;
  ------------------
  |  |  117|      0|#define kOneDay    (1.0 * U_MILLIS_PER_DAY)       //  86,400,000
  |  |  ------------------
  |  |  |  |  227|      0|#define U_MILLIS_PER_DAY       (86400000)
  |  |  ------------------
  ------------------
 2207|      0|        break;
 2208|       |
 2209|      0|    case UCAL_HOUR_OF_DAY:
  ------------------
  |  Branch (2209:5): [True: 0, False: 6]
  ------------------
 2210|      0|    case UCAL_HOUR:
  ------------------
  |  Branch (2210:5): [True: 0, False: 6]
  ------------------
 2211|      0|        delta *= kOneHour;
  ------------------
  |  |  118|      0|#define kOneHour   (60*60*1000)
  ------------------
 2212|      0|        keepWallTimeInvariant = false;
 2213|      0|        break;
 2214|       |
 2215|      0|    case UCAL_MINUTE:
  ------------------
  |  Branch (2215:5): [True: 0, False: 6]
  ------------------
 2216|      0|        delta *= kOneMinute;
  ------------------
  |  |  119|      0|#define kOneMinute 60000
  ------------------
 2217|      0|        keepWallTimeInvariant = false;
 2218|      0|        break;
 2219|       |
 2220|      0|    case UCAL_SECOND:
  ------------------
  |  Branch (2220:5): [True: 0, False: 6]
  ------------------
 2221|      0|        delta *= kOneSecond;
  ------------------
  |  |  120|      0|#define kOneSecond 1000
  ------------------
 2222|      0|        keepWallTimeInvariant = false;
 2223|      0|        break;
 2224|       |
 2225|      0|    case UCAL_MILLISECOND:
  ------------------
  |  Branch (2225:5): [True: 0, False: 6]
  ------------------
 2226|      0|    case UCAL_MILLISECONDS_IN_DAY:
  ------------------
  |  Branch (2226:5): [True: 0, False: 6]
  ------------------
 2227|      0|        keepWallTimeInvariant = false;
 2228|      0|        break;
 2229|       |
 2230|      0|    default:
  ------------------
  |  Branch (2230:5): [True: 0, False: 6]
  ------------------
 2231|       |#if defined (U_DEBUG_CAL)
 2232|       |        fprintf(stderr, "%s:%d: ILLEGAL ARG because field %s not addable",
 2233|       |            __FILE__, __LINE__, fldName(field));
 2234|       |#endif
 2235|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 2236|      0|        return;
 2237|       |        //  throw new IllegalArgumentException("Calendar.add(" + fieldName(field) +
 2238|       |        //                                     ") not supported");
 2239|      6|    }
 2240|       |
 2241|       |    // In order to keep the wall time invariant (for fields where this is
 2242|       |    // appropriate), check the combined DST & ZONE offset before and
 2243|       |    // after the add() operation. If it changes, then adjust the millis
 2244|       |    // to compensate.
 2245|      0|    int32_t prevOffset = 0;
 2246|      0|    int32_t prevWallTime = 0;
 2247|      0|    if (keepWallTimeInvariant) {
  ------------------
  |  Branch (2247:9): [True: 0, False: 0]
  ------------------
 2248|      0|        prevOffset = get(UCAL_DST_OFFSET, status) + get(UCAL_ZONE_OFFSET, status);
 2249|      0|        prevWallTime = get(UCAL_MILLISECONDS_IN_DAY, status);
 2250|      0|    }
 2251|       |
 2252|      0|    setTimeInMillis(getTimeInMillis(status) + delta, status);
 2253|       |
 2254|      0|    if (keepWallTimeInvariant) {
  ------------------
  |  Branch (2254:9): [True: 0, False: 0]
  ------------------
 2255|      0|        int32_t newWallTime = get(UCAL_MILLISECONDS_IN_DAY, status);
 2256|      0|        if (newWallTime != prevWallTime) {
  ------------------
  |  Branch (2256:13): [True: 0, False: 0]
  ------------------
 2257|       |            // There is at least one zone transition between the base
 2258|       |            // time and the result time. As the result, wall time has
 2259|       |            // changed.
 2260|      0|            UDate t = internalGetTime();
 2261|      0|            int32_t newOffset = get(UCAL_DST_OFFSET, status) + get(UCAL_ZONE_OFFSET, status);
 2262|      0|            if (newOffset != prevOffset) {
  ------------------
  |  Branch (2262:17): [True: 0, False: 0]
  ------------------
 2263|       |                // When the difference of the previous UTC offset and
 2264|       |                // the new UTC offset exceeds 1 full day, we do not want
 2265|       |                // to roll over/back the date. For now, this only happens
 2266|       |                // in Samoa (Pacific/Apia) on Dec 30, 2011. See ticket:9452.
 2267|      0|                int32_t adjAmount = prevOffset - newOffset;
 2268|      0|                adjAmount = adjAmount >= 0 ? adjAmount % static_cast<int32_t>(kOneDay) : -(-adjAmount % static_cast<int32_t>(kOneDay));
  ------------------
  |  |  117|      0|#define kOneDay    (1.0 * U_MILLIS_PER_DAY)       //  86,400,000
  |  |  ------------------
  |  |  |  |  227|      0|#define U_MILLIS_PER_DAY       (86400000)
  |  |  ------------------
  ------------------
                              adjAmount = adjAmount >= 0 ? adjAmount % static_cast<int32_t>(kOneDay) : -(-adjAmount % static_cast<int32_t>(kOneDay));
  ------------------
  |  |  117|      0|#define kOneDay    (1.0 * U_MILLIS_PER_DAY)       //  86,400,000
  |  |  ------------------
  |  |  |  |  227|      0|#define U_MILLIS_PER_DAY       (86400000)
  |  |  ------------------
  ------------------
  |  Branch (2268:29): [True: 0, False: 0]
  ------------------
 2269|      0|                if (adjAmount != 0) {
  ------------------
  |  Branch (2269:21): [True: 0, False: 0]
  ------------------
 2270|      0|                    setTimeInMillis(t + adjAmount, status);
 2271|      0|                    newWallTime = get(UCAL_MILLISECONDS_IN_DAY, status);
 2272|      0|                }
 2273|      0|                if (newWallTime != prevWallTime) {
  ------------------
  |  Branch (2273:21): [True: 0, False: 0]
  ------------------
 2274|       |                    // The result wall time or adjusted wall time was shifted because
 2275|       |                    // the target wall time does not exist on the result date.
 2276|      0|                    switch (fSkippedWallTime) {
  ------------------
  |  Branch (2276:29): [True: 0, False: 0]
  ------------------
 2277|      0|                    case UCAL_WALLTIME_FIRST:
  ------------------
  |  Branch (2277:21): [True: 0, False: 0]
  ------------------
 2278|      0|                        if (adjAmount > 0) {
  ------------------
  |  Branch (2278:29): [True: 0, False: 0]
  ------------------
 2279|      0|                            setTimeInMillis(t, status);
 2280|      0|                        }
 2281|      0|                        break;
 2282|      0|                    case UCAL_WALLTIME_LAST:
  ------------------
  |  Branch (2282:21): [True: 0, False: 0]
  ------------------
 2283|      0|                        if (adjAmount < 0) {
  ------------------
  |  Branch (2283:29): [True: 0, False: 0]
  ------------------
 2284|      0|                            setTimeInMillis(t, status);
 2285|      0|                        }
 2286|      0|                        break;
 2287|      0|                    case UCAL_WALLTIME_NEXT_VALID:
  ------------------
  |  Branch (2287:21): [True: 0, False: 0]
  ------------------
 2288|      0|                        UDate tmpT = adjAmount > 0 ? internalGetTime() : t;
  ------------------
  |  Branch (2288:38): [True: 0, False: 0]
  ------------------
 2289|      0|                        UDate immediatePrevTrans;
 2290|      0|                        UBool hasTransition = getImmediatePreviousZoneTransition(tmpT, &immediatePrevTrans, status);
 2291|      0|                        if (U_SUCCESS(status) && hasTransition) {
  ------------------
  |  Branch (2291:29): [True: 0, False: 0]
  |  Branch (2291:50): [True: 0, False: 0]
  ------------------
 2292|      0|                            setTimeInMillis(immediatePrevTrans, status);
 2293|      0|                        }
 2294|      0|                        break;
 2295|      0|                    }
 2296|      0|                }
 2297|      0|            }
 2298|      0|        }
 2299|      0|    }
 2300|      0|}
_ZN6icu_788Calendar13adoptTimeZoneEPNS_8TimeZoneE:
 2419|  83.7k|{
 2420|       |    // Do nothing if passed-in zone is nullptr
 2421|  83.7k|    if (zone == nullptr) {
  ------------------
  |  Branch (2421:9): [True: 0, False: 83.7k]
  ------------------
 2422|      0|        return;
 2423|      0|    }
 2424|       |
 2425|       |    // fZone should always be non-null
 2426|  83.7k|    delete fZone;
 2427|  83.7k|    fZone = zone;
 2428|       |
 2429|       |    // if the zone changes, we need to recompute the time fields
 2430|  83.7k|    fAreFieldsSet = false;
 2431|  83.7k|}
_ZNK6icu_788Calendar11getTimeZoneEv:
 2444|  37.3k|{
 2445|  37.3k|    U_ASSERT(fZone != nullptr);
  ------------------
  |  |   35|  37.3k|#   define U_ASSERT(exp) (void)0
  ------------------
 2446|  37.3k|    return *fZone;
 2447|  37.3k|}
_ZN6icu_788Calendar10setLenientEa:
 2469|     12|{
 2470|     12|    fLenient = lenient;
 2471|     12|}
_ZNK6icu_788Calendar9isLenientEv:
 2477|  17.4k|{
 2478|  17.4k|    return fLenient;
 2479|  17.4k|}
_ZNK6icu_788Calendar17getFirstDayOfWeekEv:
 2530|  59.2k|{
 2531|  59.2k|    return static_cast<Calendar::EDaysOfWeek>(fFirstDayOfWeek);
 2532|  59.2k|}
_ZNK6icu_788Calendar25getMinimalDaysInFirstWeekEv:
 2562|  59.2k|{
 2563|  59.2k|    return fMinimalDaysInFirstWeek;
 2564|  59.2k|}
_ZNK6icu_788Calendar10getMinimumE19UCalendarDateFields:
 2680|      6|{
 2681|      6|    return getLimit(field,UCAL_LIMIT_MINIMUM);
 2682|      6|}
_ZNK6icu_788Calendar18getGreatestMinimumE19UCalendarDateFields:
 2706|      9|{
 2707|      9|    return getLimit(field,UCAL_LIMIT_GREATEST_MINIMUM);
 2708|      9|}
_ZNK6icu_788Calendar15getLeastMaximumE19UCalendarDateFields:
 2719|  12.9k|{
 2720|  12.9k|    return getLimit( field,UCAL_LIMIT_LEAST_MAXIMUM);
 2721|  12.9k|}
_ZNK6icu_788Calendar8getLimitE19UCalendarDateFieldsNS0_10ELimitTypeE:
 2730|  12.9k|int32_t Calendar::getLimit(UCalendarDateFields field, ELimitType limitType) const {
 2731|  12.9k|    switch (field) {
 2732|      0|    case UCAL_DAY_OF_WEEK:
  ------------------
  |  Branch (2732:5): [True: 0, False: 12.9k]
  ------------------
 2733|      0|    case UCAL_AM_PM:
  ------------------
  |  Branch (2733:5): [True: 0, False: 12.9k]
  ------------------
 2734|  12.9k|    case UCAL_HOUR:
  ------------------
  |  Branch (2734:5): [True: 12.9k, False: 15]
  ------------------
 2735|  12.9k|    case UCAL_HOUR_OF_DAY:
  ------------------
  |  Branch (2735:5): [True: 0, False: 12.9k]
  ------------------
 2736|  12.9k|    case UCAL_MINUTE:
  ------------------
  |  Branch (2736:5): [True: 0, False: 12.9k]
  ------------------
 2737|  12.9k|    case UCAL_SECOND:
  ------------------
  |  Branch (2737:5): [True: 0, False: 12.9k]
  ------------------
 2738|  12.9k|    case UCAL_MILLISECOND:
  ------------------
  |  Branch (2738:5): [True: 0, False: 12.9k]
  ------------------
 2739|  12.9k|    case UCAL_ZONE_OFFSET:
  ------------------
  |  Branch (2739:5): [True: 0, False: 12.9k]
  ------------------
 2740|  12.9k|    case UCAL_DST_OFFSET:
  ------------------
  |  Branch (2740:5): [True: 0, False: 12.9k]
  ------------------
 2741|  12.9k|    case UCAL_DOW_LOCAL:
  ------------------
  |  Branch (2741:5): [True: 0, False: 12.9k]
  ------------------
 2742|  12.9k|    case UCAL_JULIAN_DAY:
  ------------------
  |  Branch (2742:5): [True: 0, False: 12.9k]
  ------------------
 2743|  12.9k|    case UCAL_MILLISECONDS_IN_DAY:
  ------------------
  |  Branch (2743:5): [True: 0, False: 12.9k]
  ------------------
 2744|  12.9k|    case UCAL_IS_LEAP_MONTH:
  ------------------
  |  Branch (2744:5): [True: 0, False: 12.9k]
  ------------------
 2745|  12.9k|        return kCalendarLimits[field][limitType];
 2746|       |
 2747|      0|    case UCAL_WEEK_OF_MONTH:
  ------------------
  |  Branch (2747:5): [True: 0, False: 12.9k]
  ------------------
 2748|      0|        {
 2749|      0|            int32_t limit;
 2750|      0|            if (limitType == UCAL_LIMIT_MINIMUM) {
  ------------------
  |  Branch (2750:17): [True: 0, False: 0]
  ------------------
 2751|      0|                limit = getMinimalDaysInFirstWeek() == 1 ? 1 : 0;
  ------------------
  |  Branch (2751:25): [True: 0, False: 0]
  ------------------
 2752|      0|            } else if (limitType == UCAL_LIMIT_GREATEST_MINIMUM) {
  ------------------
  |  Branch (2752:24): [True: 0, False: 0]
  ------------------
 2753|      0|                limit = 1;
 2754|      0|            } else {
 2755|      0|                int32_t minDaysInFirst = getMinimalDaysInFirstWeek();
 2756|      0|                int32_t daysInMonth = handleGetLimit(UCAL_DAY_OF_MONTH, limitType);
 2757|      0|                if (limitType == UCAL_LIMIT_LEAST_MAXIMUM) {
  ------------------
  |  Branch (2757:21): [True: 0, False: 0]
  ------------------
 2758|      0|                    limit = (daysInMonth + (7 - minDaysInFirst)) / 7;
 2759|      0|                } else { // limitType == UCAL_LIMIT_MAXIMUM
 2760|      0|                    limit = (daysInMonth + 6 + (7 - minDaysInFirst)) / 7;
 2761|      0|                }
 2762|      0|            }
 2763|      0|            return limit;
 2764|  12.9k|        }
 2765|     15|    default:
  ------------------
  |  Branch (2765:5): [True: 15, False: 12.9k]
  ------------------
 2766|     15|        return handleGetLimit(field, limitType);
 2767|  12.9k|    }
 2768|  12.9k|}
_ZNK6icu_788Calendar16getActualMinimumE19UCalendarDateFieldsR10UErrorCode:
 2772|      3|{
 2773|      3|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2773:9): [True: 0, False: 3]
  ------------------
 2774|      0|       return 0;
 2775|      0|    }
 2776|      3|    if (field < 0 || field >= UCAL_FIELD_COUNT) {
  ------------------
  |  Branch (2776:9): [True: 0, False: 3]
  |  Branch (2776:22): [True: 0, False: 3]
  ------------------
 2777|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 2778|      0|        return 0;
 2779|      0|    }
 2780|      3|    int32_t fieldValue = getGreatestMinimum(field);
 2781|      3|    int32_t endValue = getMinimum(field);
 2782|       |
 2783|       |    // if we know that the minimum value is always the same, just return it
 2784|      3|    if (fieldValue == endValue) {
  ------------------
  |  Branch (2784:9): [True: 3, False: 0]
  ------------------
 2785|      3|        return fieldValue;
 2786|      3|    }
 2787|       |
 2788|       |    // clone the calendar so we don't mess with the real one, and set it to
 2789|       |    // accept anything for the field values
 2790|      0|    Calendar *work = this->clone();
 2791|      0|    if (work == nullptr) {
  ------------------
  |  Branch (2791:9): [True: 0, False: 0]
  ------------------
 2792|      0|        status = U_MEMORY_ALLOCATION_ERROR;
 2793|      0|        return 0;
 2794|      0|    }
 2795|      0|    work->setLenient(true);
 2796|       |
 2797|       |    // now try each value from getLeastMaximum() to getMaximum() one by one until
 2798|       |    // we get a value that normalizes to another value.  The last value that
 2799|       |    // normalizes to itself is the actual minimum for the current date
 2800|      0|    int32_t result = fieldValue;
 2801|       |
 2802|      0|    do {
 2803|      0|        work->set(field, fieldValue);
 2804|      0|        if (work->get(field, status) != fieldValue) {
  ------------------
  |  Branch (2804:13): [True: 0, False: 0]
  ------------------
 2805|      0|            break;
 2806|      0|        }
 2807|      0|        else {
 2808|      0|            result = fieldValue;
 2809|      0|            fieldValue--;
 2810|      0|        }
 2811|      0|    } while (fieldValue >= endValue);
  ------------------
  |  Branch (2811:14): [True: 0, False: 0]
  ------------------
 2812|       |
 2813|      0|    delete work;
 2814|       |
 2815|       |    /* Test for buffer overflows */
 2816|      0|    if(U_FAILURE(status)) {
  ------------------
  |  Branch (2816:8): [True: 0, False: 0]
  ------------------
 2817|      0|        return 0;
 2818|      0|    }
 2819|      0|    return result;
 2820|      0|}
_ZNK6icu_788Calendar23getFieldResolutionTableEv:
 2979|     12|const UFieldResolutionTable* Calendar::getFieldResolutionTable() const {
 2980|     12|    return kDatePrecedence;
 2981|     12|}
_ZNK6icu_788Calendar10newerFieldE19UCalendarDateFieldsS1_:
 2985|     14|{
 2986|     14|    if (fStamp[alternateField] > fStamp[defaultField]) {
  ------------------
  |  Branch (2986:9): [True: 12, False: 2]
  ------------------
 2987|     12|        return alternateField;
 2988|     12|    }
 2989|      2|    return defaultField;
 2990|     14|}
_ZNK6icu_788Calendar13resolveFieldsEPA12_A8_Ki:
 2992|     26|UCalendarDateFields Calendar::resolveFields(const UFieldResolutionTable* precedenceTable) const {
 2993|     26|    int32_t bestField = UCAL_FIELD_COUNT;
 2994|     26|    int32_t tempBestField;
 2995|     52|    for (int32_t g=0; precedenceTable[g][0][0] != -1 && (bestField == UCAL_FIELD_COUNT); ++g) {
  ------------------
  |  Branch (2995:23): [True: 38, False: 14]
  |  Branch (2995:57): [True: 26, False: 12]
  ------------------
 2996|     26|        int32_t bestStamp = kUnset;
 2997|    174|        for (int32_t l=0; precedenceTable[g][l][0] != -1; ++l) {
  ------------------
  |  Branch (2997:27): [True: 148, False: 26]
  ------------------
 2998|    148|            int32_t lineStamp = kUnset;
 2999|       |            // Skip over first entry if it is negative
 3000|    368|            for (int32_t i=((precedenceTable[g][l][0]>=kResolveRemap)?1:0); precedenceTable[g][l][i]!=-1; ++i) {
  ------------------
  |  Branch (3000:29): [True: 24, False: 124]
  |  Branch (3000:77): [True: 220, False: 148]
  ------------------
 3001|    220|                U_ASSERT(precedenceTable[g][l][i] < UCAL_FIELD_COUNT);
  ------------------
  |  |   35|    220|#   define U_ASSERT(exp) (void)0
  ------------------
 3002|    220|                int32_t s = fStamp[precedenceTable[g][l][i]];
 3003|       |                // If any field is unset then don't use this line
 3004|    220|                if (s == kUnset) {
  ------------------
  |  Branch (3004:21): [True: 0, False: 220]
  ------------------
 3005|      0|                    goto linesInGroup;
 3006|    220|                } else if(s > lineStamp) {
  ------------------
  |  Branch (3006:27): [True: 148, False: 72]
  ------------------
 3007|    148|                    lineStamp = s;
 3008|    148|                }
 3009|    220|            }
 3010|       |            // Record new maximum stamp & field no.
 3011|    148|            if (lineStamp > bestStamp) {
  ------------------
  |  Branch (3011:17): [True: 32, False: 116]
  ------------------
 3012|     32|                tempBestField = precedenceTable[g][l][0]; // First field refers to entire line
 3013|     32|                if (tempBestField >= kResolveRemap) {
  ------------------
  |  Branch (3013:21): [True: 6, False: 26]
  ------------------
 3014|      6|                    tempBestField &= (kResolveRemap-1);
 3015|       |                    // This check is needed to resolve some issues with UCAL_YEAR precedence mapping
 3016|      6|                    if (tempBestField != UCAL_DATE || (fStamp[UCAL_WEEK_OF_MONTH] < fStamp[tempBestField])) {
  ------------------
  |  Branch (3016:25): [True: 0, False: 6]
  |  Branch (3016:55): [True: 0, False: 6]
  ------------------
 3017|      0|                        bestField = tempBestField;
 3018|      0|                    }
 3019|     26|                } else {
 3020|     26|                    bestField = tempBestField;
 3021|     26|                }
 3022|       |
 3023|     32|                if (bestField == tempBestField) {
  ------------------
  |  Branch (3023:21): [True: 32, False: 0]
  ------------------
 3024|     32|                    bestStamp = lineStamp;
 3025|     32|                }
 3026|     32|            }
 3027|    148|linesInGroup:
 3028|    148|            ;
 3029|    148|        }
 3030|     26|    }
 3031|     26|    return static_cast<UCalendarDateFields>(bestField);
 3032|     26|}
_ZN6icu_788Calendar11computeTimeER10UErrorCode:
 3097|     12|void Calendar::computeTime(UErrorCode& status) {
 3098|     12|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (3098:9): [True: 0, False: 12]
  ------------------
 3099|      0|       return;
 3100|      0|    }
 3101|     12|    if (!isLenient()) {
  ------------------
  |  Branch (3101:9): [True: 0, False: 12]
  ------------------
 3102|      0|        validateFields(status);
 3103|      0|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (3103:13): [True: 0, False: 0]
  ------------------
 3104|      0|            return;
 3105|      0|        }
 3106|      0|    }
 3107|       |
 3108|       |    // Compute the Julian day
 3109|     12|    int32_t julianDay = computeJulianDay(status);
 3110|     12|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (3110:9): [True: 0, False: 12]
  ------------------
 3111|      0|        return;
 3112|      0|    }
 3113|       |
 3114|     12|    double millis = Grego::julianDayToMillis(julianDay);
 3115|       |
 3116|       |#if defined (U_DEBUG_CAL)
 3117|       |    //  int32_t julianInsanityCheck =  (int32_t)ClockMath::floorDivide(millis, kOneDay);
 3118|       |    //  julianInsanityCheck += kEpochStartAsJulianDay;
 3119|       |    //  if(1 || julianInsanityCheck != julianDay) {
 3120|       |    //    fprintf(stderr, "%s:%d- D'oh- computed jules %d, to mills (%s)%.lf, recomputed %d\n",
 3121|       |    //            __FILE__, __LINE__, julianDay, millis<0.0?"NEG":"", millis, julianInsanityCheck);
 3122|       |    //  }
 3123|       |#endif
 3124|       |
 3125|     12|    double millisInDay;
 3126|       |
 3127|       |    // We only use MILLISECONDS_IN_DAY if it has been set by the user.
 3128|       |    // This makes it possible for the caller to set the calendar to a
 3129|       |    // time and call clear(MONTH) to reset the MONTH to January.  This
 3130|       |    // is legacy behavior.  Without this, clear(MONTH) has no effect,
 3131|       |    // since the internally set JULIAN_DAY is used.
 3132|     12|    if (fStamp[UCAL_MILLISECONDS_IN_DAY] >= static_cast<int32_t>(kMinimumUserStamp) &&
  ------------------
  |  Branch (3132:9): [True: 6, False: 6]
  ------------------
 3133|     12|            newestStamp(UCAL_AM_PM, UCAL_MILLISECOND, kUnset) <= fStamp[UCAL_MILLISECONDS_IN_DAY]) {
  ------------------
  |  Branch (3133:13): [True: 6, False: 0]
  ------------------
 3134|      6|        millisInDay = internalGet(UCAL_MILLISECONDS_IN_DAY);
 3135|      6|    } else {
 3136|      6|        millisInDay = computeMillisInDay();
 3137|      6|    }
 3138|       |
 3139|     12|    UDate t = 0;
 3140|     12|    if (fStamp[UCAL_ZONE_OFFSET] >= static_cast<int32_t>(kMinimumUserStamp) ||
  ------------------
  |  Branch (3140:9): [True: 0, False: 12]
  ------------------
 3141|     12|        fStamp[UCAL_DST_OFFSET] >= static_cast<int32_t>(kMinimumUserStamp)) {
  ------------------
  |  Branch (3141:9): [True: 0, False: 12]
  ------------------
 3142|      0|        t = millis + millisInDay - internalGet(UCAL_ZONE_OFFSET) - internalGet(UCAL_DST_OFFSET);
 3143|     12|    } else {
 3144|       |        // Compute the time zone offset and DST offset.  There are two potential
 3145|       |        // ambiguities here.  We'll assume a 2:00 am (wall time) switchover time
 3146|       |        // for discussion purposes here.
 3147|       |        //
 3148|       |        // 1. The positive offset change such as transition into DST.
 3149|       |        //    Here, a designated time of 2:00 am - 2:59 am does not actually exist.
 3150|       |        //    For this case, skippedWallTime option specifies the behavior.
 3151|       |        //    For example, 2:30 am is interpreted as;
 3152|       |        //      - WALLTIME_LAST(default): 3:30 am (DST) (interpreting 2:30 am as 31 minutes after 1:59 am (STD))
 3153|       |        //      - WALLTIME_FIRST: 1:30 am (STD) (interpreting 2:30 am as 30 minutes before 3:00 am (DST))
 3154|       |        //      - WALLTIME_NEXT_VALID: 3:00 am (DST) (next valid time after 2:30 am on a wall clock)
 3155|       |        // 2. The negative offset change such as transition out of DST.
 3156|       |        //    Here, a designated time of 1:00 am - 1:59 am can be in standard or DST.  Both are valid
 3157|       |        //    representations (the rep jumps from 1:59:59 DST to 1:00:00 Std).
 3158|       |        //    For this case, repeatedWallTime option specifies the behavior.
 3159|       |        //    For example, 1:30 am is interpreted as;
 3160|       |        //      - WALLTIME_LAST(default): 1:30 am (STD) - latter occurrence
 3161|       |        //      - WALLTIME_FIRST: 1:30 am (DST) - former occurrence
 3162|       |        //
 3163|       |        // In addition to above, when calendar is strict (not default), wall time falls into
 3164|       |        // the skipped time range will be processed as an error case.
 3165|       |        //
 3166|       |        // These special cases are mostly handled in #computeZoneOffset(long), except WALLTIME_NEXT_VALID
 3167|       |        // at positive offset change. The protected method computeZoneOffset(long) is exposed to Calendar
 3168|       |        // subclass implementations and marked as @stable. Strictly speaking, WALLTIME_NEXT_VALID
 3169|       |        // should be also handled in the same place, but we cannot change the code flow without deprecating
 3170|       |        // the protected method.
 3171|       |        //
 3172|       |        // We use the TimeZone object, unless the user has explicitly set the ZONE_OFFSET
 3173|       |        // or DST_OFFSET fields; then we use those fields.
 3174|       |
 3175|     12|        if (!isLenient() || fSkippedWallTime == UCAL_WALLTIME_NEXT_VALID) {
  ------------------
  |  Branch (3175:13): [True: 0, False: 12]
  |  Branch (3175:29): [True: 0, False: 12]
  ------------------
 3176|       |            // When strict, invalidate a wall time falls into a skipped wall time range.
 3177|       |            // When lenient and skipped wall time option is WALLTIME_NEXT_VALID,
 3178|       |            // the result time will be adjusted to the next valid time (on wall clock).
 3179|      0|            int32_t zoneOffset = computeZoneOffset(millis, millisInDay, status);
 3180|      0|            UDate tmpTime = millis + millisInDay - zoneOffset;
 3181|       |
 3182|      0|            int32_t raw, dst;
 3183|      0|            fZone->getOffset(tmpTime, false, raw, dst, status);
 3184|       |
 3185|      0|            if (U_SUCCESS(status)) {
  ------------------
  |  Branch (3185:17): [True: 0, False: 0]
  ------------------
 3186|       |                // zoneOffset != (raw + dst) only when the given wall time fall into
 3187|       |                // a skipped wall time range caused by positive zone offset transition.
 3188|      0|                if (zoneOffset != (raw + dst)) {
  ------------------
  |  Branch (3188:21): [True: 0, False: 0]
  ------------------
 3189|      0|                    if (!isLenient()) {
  ------------------
  |  Branch (3189:25): [True: 0, False: 0]
  ------------------
 3190|      0|                        status = U_ILLEGAL_ARGUMENT_ERROR;
 3191|      0|                    } else {
 3192|      0|                        U_ASSERT(fSkippedWallTime == UCAL_WALLTIME_NEXT_VALID);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 3193|       |                        // Adjust time to the next valid wall clock time.
 3194|       |                        // At this point, tmpTime is on or after the zone offset transition causing
 3195|       |                        // the skipped time range.
 3196|      0|                        UDate immediatePrevTransition;
 3197|      0|                        UBool hasTransition = getImmediatePreviousZoneTransition(tmpTime, &immediatePrevTransition, status);
 3198|      0|                        if (U_SUCCESS(status) && hasTransition) {
  ------------------
  |  Branch (3198:29): [True: 0, False: 0]
  |  Branch (3198:50): [True: 0, False: 0]
  ------------------
 3199|      0|                            t = immediatePrevTransition;
 3200|      0|                        }
 3201|      0|                    }
 3202|      0|                } else {
 3203|      0|                    t = tmpTime;
 3204|      0|                }
 3205|      0|            }
 3206|     12|        } else {
 3207|     12|            t = millis + millisInDay - computeZoneOffset(millis, millisInDay, status);
 3208|     12|        }
 3209|     12|    }
 3210|     12|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (3210:9): [True: 12, False: 0]
  ------------------
 3211|     12|        internalSetTime(t);
 3212|     12|    }
 3213|     12|}
_ZN6icu_788Calendar18computeMillisInDayEv:
 3249|      6|double Calendar::computeMillisInDay() {
 3250|       |  // Do the time portion of the conversion.
 3251|       |
 3252|      6|    double millisInDay = 0;
 3253|       |
 3254|       |    // Find the best set of fields specifying the time of day.  There
 3255|       |    // are only two possibilities here; the HOUR_OF_DAY or the
 3256|       |    // AM_PM and the HOUR.
 3257|      6|    int32_t hourOfDayStamp = fStamp[UCAL_HOUR_OF_DAY];
 3258|      6|    int32_t hourStamp = (fStamp[UCAL_HOUR] > fStamp[UCAL_AM_PM])?fStamp[UCAL_HOUR]:fStamp[UCAL_AM_PM];
  ------------------
  |  Branch (3258:25): [True: 0, False: 6]
  ------------------
 3259|      6|    int32_t bestStamp = (hourStamp > hourOfDayStamp) ? hourStamp : hourOfDayStamp;
  ------------------
  |  Branch (3259:25): [True: 0, False: 6]
  ------------------
 3260|       |
 3261|       |    // Hours
 3262|      6|    if (bestStamp != kUnset) {
  ------------------
  |  Branch (3262:9): [True: 6, False: 0]
  ------------------
 3263|      6|        if (bestStamp == hourOfDayStamp) {
  ------------------
  |  Branch (3263:13): [True: 6, False: 0]
  ------------------
 3264|       |            // Don't normalize here; let overflow bump into the next period.
 3265|       |            // This is consistent with how we handle other fields.
 3266|      6|            millisInDay += internalGet(UCAL_HOUR_OF_DAY);
 3267|      6|        } else {
 3268|       |            // Don't normalize here; let overflow bump into the next period.
 3269|       |            // This is consistent with how we handle other fields.
 3270|      0|            millisInDay += internalGet(UCAL_HOUR);
 3271|       |            // Treat even number as AM and odd nubmber as PM to align with the
 3272|       |            // logic in roll()
 3273|      0|            millisInDay += (internalGet(UCAL_AM_PM) % 2 == 0) ? 0 : 12;
  ------------------
  |  Branch (3273:28): [True: 0, False: 0]
  ------------------
 3274|      0|        }
 3275|      6|    }
 3276|       |
 3277|       |    // We use the fact that unset == 0; we start with millisInDay
 3278|       |    // == HOUR_OF_DAY.
 3279|      6|    millisInDay *= 60;
 3280|      6|    millisInDay += internalGet(UCAL_MINUTE); // now have minutes
 3281|      6|    millisInDay *= 60;
 3282|      6|    millisInDay += internalGet(UCAL_SECOND); // now have seconds
 3283|      6|    millisInDay *= 1000;
 3284|      6|    millisInDay += internalGet(UCAL_MILLISECOND); // now have millis
 3285|       |
 3286|      6|    return millisInDay;
 3287|      6|}
_ZN6icu_788Calendar17computeZoneOffsetEddR10UErrorCode:
 3296|     12|int32_t Calendar::computeZoneOffset(double millis, double millisInDay, UErrorCode &ec) {
 3297|     12|    if (U_FAILURE(ec)) {
  ------------------
  |  Branch (3297:9): [True: 0, False: 12]
  ------------------
 3298|      0|       return 0;
 3299|      0|    }
 3300|     12|    int32_t rawOffset, dstOffset;
 3301|     12|    UDate wall = millis + millisInDay;
 3302|     12|    BasicTimeZone* btz = getBasicTimeZone();
 3303|     12|    if (btz) {
  ------------------
  |  Branch (3303:9): [True: 12, False: 0]
  ------------------
 3304|     12|        UTimeZoneLocalOption duplicatedTimeOpt = (fRepeatedWallTime == UCAL_WALLTIME_FIRST) ? UCAL_TZ_LOCAL_FORMER : UCAL_TZ_LOCAL_LATTER;
  ------------------
  |  Branch (3304:50): [True: 0, False: 12]
  ------------------
 3305|     12|        UTimeZoneLocalOption nonExistingTimeOpt = (fSkippedWallTime == UCAL_WALLTIME_FIRST) ? UCAL_TZ_LOCAL_LATTER : UCAL_TZ_LOCAL_FORMER;
  ------------------
  |  Branch (3305:51): [True: 0, False: 12]
  ------------------
 3306|     12|        btz->getOffsetFromLocal(wall, nonExistingTimeOpt, duplicatedTimeOpt, rawOffset, dstOffset, ec);
 3307|     12|    } else {
 3308|      0|        const TimeZone& tz = getTimeZone();
 3309|       |        // By default, TimeZone::getOffset behaves UCAL_WALLTIME_LAST for both.
 3310|      0|        tz.getOffset(wall, true, rawOffset, dstOffset, ec);
 3311|       |
 3312|      0|        UBool sawRecentNegativeShift = false;
 3313|      0|        if (fRepeatedWallTime == UCAL_WALLTIME_FIRST) {
  ------------------
  |  Branch (3313:13): [True: 0, False: 0]
  ------------------
 3314|       |            // Check if the given wall time falls into repeated time range
 3315|      0|            UDate tgmt = wall - (rawOffset + dstOffset);
 3316|       |
 3317|       |            // Any negative zone transition within last 6 hours?
 3318|       |            // Note: The maximum historic negative zone transition is -3 hours in the tz database.
 3319|       |            // 6 hour window would be sufficient for this purpose.
 3320|      0|            int32_t tmpRaw, tmpDst;
 3321|      0|            tz.getOffset(tgmt - 6*60*60*1000, false, tmpRaw, tmpDst, ec);
 3322|      0|            int32_t offsetDelta = (rawOffset + dstOffset) - (tmpRaw + tmpDst);
 3323|       |
 3324|      0|            U_ASSERT(offsetDelta < -6*60*60*1000);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 3325|      0|            if (offsetDelta < 0) {
  ------------------
  |  Branch (3325:17): [True: 0, False: 0]
  ------------------
 3326|      0|                sawRecentNegativeShift = true;
 3327|       |                // Negative shift within last 6 hours. When UCAL_WALLTIME_FIRST is used and the given wall time falls
 3328|       |                // into the repeated time range, use offsets before the transition.
 3329|       |                // Note: If it does not fall into the repeated time range, offsets remain unchanged below.
 3330|      0|                tz.getOffset(wall + offsetDelta, true, rawOffset, dstOffset, ec);
 3331|      0|            }
 3332|      0|        }
 3333|      0|        if (!sawRecentNegativeShift && fSkippedWallTime == UCAL_WALLTIME_FIRST) {
  ------------------
  |  Branch (3333:13): [True: 0, False: 0]
  |  Branch (3333:40): [True: 0, False: 0]
  ------------------
 3334|       |            // When skipped wall time option is WALLTIME_FIRST,
 3335|       |            // recalculate offsets from the resolved time (non-wall).
 3336|       |            // When the given wall time falls into skipped wall time,
 3337|       |            // the offsets will be based on the zone offsets AFTER
 3338|       |            // the transition (which means, earliest possible interpretation).
 3339|      0|            UDate tgmt = wall - (rawOffset + dstOffset);
 3340|      0|            tz.getOffset(tgmt, false, rawOffset, dstOffset, ec);
 3341|      0|        }
 3342|      0|    }
 3343|     12|    return rawOffset + dstOffset;
 3344|     12|}
_ZN6icu_788Calendar16computeJulianDayER10UErrorCode:
 3347|     12|{
 3348|       |    // We want to see if any of the date fields is newer than the
 3349|       |    // JULIAN_DAY.  If not, then we use JULIAN_DAY.  If so, then we do
 3350|       |    // the normal resolution.  We only use JULIAN_DAY if it has been
 3351|       |    // set by the user.  This makes it possible for the caller to set
 3352|       |    // the calendar to a time and call clear(MONTH) to reset the MONTH
 3353|       |    // to January.  This is legacy behavior.  Without this,
 3354|       |    // clear(MONTH) has no effect, since the internally set JULIAN_DAY
 3355|       |    // is used.
 3356|     12|    if (fStamp[UCAL_JULIAN_DAY] >= static_cast<int32_t>(kMinimumUserStamp)) {
  ------------------
  |  Branch (3356:9): [True: 0, False: 12]
  ------------------
 3357|      0|        int32_t bestStamp = newestStamp(UCAL_ERA, UCAL_DAY_OF_WEEK_IN_MONTH, kUnset);
 3358|      0|        bestStamp = newestStamp(UCAL_YEAR_WOY, UCAL_EXTENDED_YEAR, bestStamp);
 3359|      0|        bestStamp = newestStamp(UCAL_ORDINAL_MONTH, UCAL_ORDINAL_MONTH, bestStamp);
 3360|      0|        if (bestStamp <= fStamp[UCAL_JULIAN_DAY]) {
  ------------------
  |  Branch (3360:13): [True: 0, False: 0]
  ------------------
 3361|      0|            return internalGet(UCAL_JULIAN_DAY);
 3362|      0|        }
 3363|      0|    }
 3364|       |
 3365|     12|    UCalendarDateFields bestField = resolveFields(getFieldResolutionTable());
 3366|     12|    if (bestField == UCAL_FIELD_COUNT) {
  ------------------
  |  Branch (3366:9): [True: 0, False: 12]
  ------------------
 3367|      0|        bestField = UCAL_DAY_OF_MONTH;
 3368|      0|    }
 3369|       |
 3370|     12|    return handleComputeJulianDay(bestField, status);
 3371|     12|}
_ZN6icu_788Calendar22handleComputeJulianDayE19UCalendarDateFieldsR10UErrorCode:
 3375|     12|int32_t Calendar::handleComputeJulianDay(UCalendarDateFields bestField, UErrorCode &status)  {
 3376|     12|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (3376:9): [True: 0, False: 12]
  ------------------
 3377|      0|       return 0;
 3378|      0|    }
 3379|     12|    UBool useMonth = (bestField == UCAL_DAY_OF_MONTH ||
  ------------------
  |  Branch (3379:23): [True: 12, False: 0]
  ------------------
 3380|     12|        bestField == UCAL_WEEK_OF_MONTH ||
  ------------------
  |  Branch (3380:9): [True: 0, False: 0]
  ------------------
 3381|     12|        bestField == UCAL_DAY_OF_WEEK_IN_MONTH);
  ------------------
  |  Branch (3381:9): [True: 0, False: 0]
  ------------------
 3382|     12|    int32_t year;
 3383|       |
 3384|     12|    if (bestField == UCAL_WEEK_OF_YEAR && newerField(UCAL_YEAR_WOY, UCAL_YEAR) == UCAL_YEAR_WOY) {
  ------------------
  |  Branch (3384:9): [True: 0, False: 12]
  |  Branch (3384:43): [True: 0, False: 0]
  ------------------
 3385|      0|        year = internalGet(UCAL_YEAR_WOY);
 3386|     12|    } else {
 3387|     12|        year = handleGetExtendedYear(status);
 3388|     12|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (3388:13): [True: 0, False: 12]
  ------------------
 3389|      0|           return 0;
 3390|      0|        }
 3391|     12|    }
 3392|       |
 3393|     12|    internalSet(UCAL_EXTENDED_YEAR, year);
 3394|       |    // Return U_ILLEGAL_ARGUMENT_ERROR if year is too large that may cuase int32_t overflow
 3395|       |    // later.
 3396|     12|    if (year > INT32_MAX / 400) {
  ------------------
  |  Branch (3396:9): [True: 0, False: 12]
  ------------------
 3397|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 3398|      0|        return 0;
 3399|      0|    }
 3400|       |
 3401|       |#if defined (U_DEBUG_CAL)
 3402|       |    fprintf(stderr, "%s:%d: bestField= %s - y=%d\n", __FILE__, __LINE__, fldName(bestField), year);
 3403|       |#endif
 3404|       |
 3405|       |    // Get the Julian day of the day BEFORE the start of this year.
 3406|       |    // If useMonth is true, get the day before the start of the month.
 3407|       |
 3408|       |    // give calendar subclass a chance to have a default 'first' month
 3409|     12|    int32_t month;
 3410|       |
 3411|     12|    if(isSet(UCAL_MONTH) || isSet(UCAL_ORDINAL_MONTH)) {
  ------------------
  |  Branch (3411:8): [True: 12, False: 0]
  |  Branch (3411:29): [True: 0, False: 0]
  ------------------
 3412|     12|        month = internalGetMonth(status);
 3413|     12|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (3413:13): [True: 0, False: 12]
  ------------------
 3414|      0|           return 0;
 3415|      0|        }
 3416|     12|    } else {
 3417|      0|        month = getDefaultMonthInYear(year, status);
 3418|      0|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (3418:13): [True: 0, False: 0]
  ------------------
 3419|      0|           return 0;
 3420|      0|        }
 3421|      0|    }
 3422|       |
 3423|     12|    int32_t julianDay = handleComputeMonthStart(year, useMonth ? month : 0, useMonth, status);
  ------------------
  |  Branch (3423:55): [True: 12, False: 0]
  ------------------
 3424|     12|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (3424:9): [True: 0, False: 12]
  ------------------
 3425|      0|        return 0;
 3426|      0|    }
 3427|       |
 3428|     12|    if (bestField == UCAL_DAY_OF_MONTH) {
  ------------------
  |  Branch (3428:9): [True: 12, False: 0]
  ------------------
 3429|       |
 3430|       |        // give calendar subclass a chance to have a default 'first' dom
 3431|     12|        int32_t dayOfMonth;
 3432|     12|        if(isSet(UCAL_DAY_OF_MONTH)) {
  ------------------
  |  Branch (3432:12): [True: 12, False: 0]
  ------------------
 3433|     12|            dayOfMonth = internalGet(UCAL_DAY_OF_MONTH,1);
 3434|     12|        } else {
 3435|      0|            dayOfMonth = getDefaultDayInMonth(year, month, status);
 3436|      0|            if (U_FAILURE(status)) {
  ------------------
  |  Branch (3436:17): [True: 0, False: 0]
  ------------------
 3437|      0|               return 0;
 3438|      0|            }
 3439|      0|        }
 3440|     12|        if (uprv_add32_overflow(dayOfMonth, julianDay, &dayOfMonth)) {
  ------------------
  |  | 1394|     12|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  123|     12|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     12|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     12|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (3440:13): [True: 0, False: 12]
  ------------------
 3441|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
 3442|      0|            return 0;
 3443|      0|        }
 3444|     12|        return dayOfMonth;
 3445|     12|    }
 3446|       |
 3447|      0|    if (bestField == UCAL_DAY_OF_YEAR) {
  ------------------
  |  Branch (3447:9): [True: 0, False: 0]
  ------------------
 3448|      0|        int32_t result;
 3449|      0|        if (uprv_add32_overflow(internalGet(UCAL_DAY_OF_YEAR), julianDay, &result)) {
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (3449:13): [True: 0, False: 0]
  ------------------
 3450|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
 3451|      0|            return 0;
 3452|      0|        }
 3453|      0|        return result;
 3454|      0|    }
 3455|       |
 3456|      0|    int32_t firstDayOfWeek = getFirstDayOfWeek(); // Localized fdw
 3457|       |
 3458|       |    // At this point julianDay is the 0-based day BEFORE the first day of
 3459|       |    // January 1, year 1 of the given calendar.  If julianDay == 0, it
 3460|       |    // specifies (Jan. 1, 1) - 1, in whatever calendar we are using (Julian
 3461|       |    // or Gregorian). (or it is before the month we are in, if useMonth is True)
 3462|       |
 3463|       |    // At this point we need to process the WEEK_OF_MONTH or
 3464|       |    // WEEK_OF_YEAR, which are similar, or the DAY_OF_WEEK_IN_MONTH.
 3465|       |    // First, perform initial shared computations.  These locate the
 3466|       |    // first week of the period.
 3467|       |
 3468|       |    // Get the 0-based localized DOW of day one of the month or year.
 3469|       |    // Valid range 0..6.
 3470|      0|    int32_t first = julianDayToDayOfWeek(julianDay + 1) - firstDayOfWeek;
 3471|      0|    if (first < 0) {
  ------------------
  |  Branch (3471:9): [True: 0, False: 0]
  ------------------
 3472|      0|        first += 7;
 3473|      0|    }
 3474|       |
 3475|      0|    int32_t dowLocal = getLocalDOW(status);
 3476|      0|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (3476:9): [True: 0, False: 0]
  ------------------
 3477|      0|        return 0;
 3478|      0|    }
 3479|       |
 3480|       |    // Find the first target DOW (dowLocal) in the month or year.
 3481|       |    // Actually, it may be just before the first of the month or year.
 3482|       |    // It will be an integer from -5..7.
 3483|      0|    int32_t date = 1 - first + dowLocal;
 3484|       |
 3485|      0|    if (bestField == UCAL_DAY_OF_WEEK_IN_MONTH) {
  ------------------
  |  Branch (3485:9): [True: 0, False: 0]
  ------------------
 3486|       |        // Adjust the target DOW to be in the month or year.
 3487|      0|        if (date < 1) {
  ------------------
  |  Branch (3487:13): [True: 0, False: 0]
  ------------------
 3488|      0|            date += 7;
 3489|      0|        }
 3490|       |
 3491|       |        // The only trickiness occurs if the day-of-week-in-month is
 3492|       |        // negative.
 3493|      0|        int32_t dim = internalGet(UCAL_DAY_OF_WEEK_IN_MONTH, 1);
 3494|      0|        if (dim >= 0) {
  ------------------
  |  Branch (3494:13): [True: 0, False: 0]
  ------------------
 3495|      0|            int32_t temp;
 3496|      0|            if (uprv_mul32_overflow(7, dim - 1, &temp)  ||
  ------------------
  |  | 1531|      0|#define uprv_mul32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_mul32_overflow)
  |  |  ------------------
  |  |  |  |  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 (3496:17): [True: 0, False: 0]
  ------------------
 3497|      0|                uprv_add32_overflow(date, temp, &date)) {
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (3497:17): [True: 0, False: 0]
  ------------------
 3498|      0|                status = U_ILLEGAL_ARGUMENT_ERROR;
 3499|      0|                return 0;
 3500|      0|            }
 3501|       |
 3502|      0|        } else {
 3503|       |            // Move date to the last of this day-of-week in this month,
 3504|       |            // then back up as needed.  If dim==-1, we don't back up at
 3505|       |            // all.  If dim==-2, we back up once, etc.  Don't back up
 3506|       |            // past the first of the given day-of-week in this month.
 3507|       |            // Note that we handle -2, -3, etc. correctly, even though
 3508|       |            // values < -1 are technically disallowed.
 3509|      0|            int32_t m = internalGetMonth(UCAL_JANUARY, status);
 3510|      0|            int32_t monthLength = handleGetMonthLength(year, m, status);
 3511|      0|            if (U_FAILURE(status)) {
  ------------------
  |  Branch (3511:17): [True: 0, False: 0]
  ------------------
 3512|      0|                return 0;
 3513|      0|            }
 3514|      0|            int32_t temp;
 3515|      0|            if (uprv_add32_overflow((monthLength - date) / 7, dim+1, &temp) ||
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (3515:17): [True: 0, False: 0]
  ------------------
 3516|      0|                uprv_mul32_overflow(temp, 7, &temp) ||
  ------------------
  |  | 1531|      0|#define uprv_mul32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_mul32_overflow)
  |  |  ------------------
  |  |  |  |  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 (3516:17): [True: 0, False: 0]
  ------------------
 3517|      0|                uprv_add32_overflow(date, temp, &date)) {
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (3517:17): [True: 0, False: 0]
  ------------------
 3518|      0|                status = U_ILLEGAL_ARGUMENT_ERROR;
 3519|      0|                return 0;
 3520|      0|            }
 3521|      0|        }
 3522|      0|    } else {
 3523|       |#if defined (U_DEBUG_CAL)
 3524|       |        fprintf(stderr, "%s:%d - bf= %s\n", __FILE__, __LINE__, fldName(bestField));
 3525|       |#endif
 3526|       |
 3527|      0|        if(bestField == UCAL_WEEK_OF_YEAR) {  // ------------------------------------- WOY -------------
  ------------------
  |  Branch (3527:12): [True: 0, False: 0]
  ------------------
 3528|      0|            if(!isSet(UCAL_YEAR_WOY) ||  // YWOY not set at all or
  ------------------
  |  Branch (3528:16): [True: 0, False: 0]
  ------------------
 3529|      0|                ( (resolveFields(kYearPrecedence) != UCAL_YEAR_WOY) // YWOY doesn't have precedence
  ------------------
  |  Branch (3529:19): [True: 0, False: 0]
  ------------------
 3530|      0|                && (fStamp[UCAL_YEAR_WOY]!=kInternallySet) ) ) // (excluding where all fields are internally set - then YWOY is used)
  ------------------
  |  Branch (3530:20): [True: 0, False: 0]
  ------------------
 3531|      0|            {
 3532|       |                // need to be sure to stay in 'real' year.
 3533|      0|                int32_t woy = internalGet(bestField);
 3534|       |
 3535|      0|                int32_t nextJulianDay = handleComputeMonthStart(year+1, 0, false, status); // jd of day before jan 1
 3536|      0|                if (U_FAILURE(status)) {
  ------------------
  |  Branch (3536:21): [True: 0, False: 0]
  ------------------
 3537|      0|                    return 0;
 3538|      0|                }
 3539|      0|                int32_t nextFirst = julianDayToDayOfWeek(nextJulianDay + 1) - firstDayOfWeek;
 3540|       |
 3541|      0|                if (nextFirst < 0) { // 0..6 ldow of Jan 1
  ------------------
  |  Branch (3541:21): [True: 0, False: 0]
  ------------------
 3542|      0|                    nextFirst += 7;
 3543|      0|                }
 3544|       |
 3545|      0|                if(woy==1) {  // FIRST WEEK ---------------------------------
  ------------------
  |  Branch (3545:20): [True: 0, False: 0]
  ------------------
 3546|       |#if defined (U_DEBUG_CAL)
 3547|       |                    fprintf(stderr, "%s:%d - woy=%d, yp=%d, nj(%d)=%d, nf=%d", __FILE__, __LINE__,
 3548|       |                        internalGet(bestField), resolveFields(kYearPrecedence), year+1,
 3549|       |                        nextJulianDay, nextFirst);
 3550|       |
 3551|       |                    fprintf(stderr, " next: %d DFW,  min=%d   \n", (7-nextFirst), getMinimalDaysInFirstWeek() );
 3552|       |#endif
 3553|       |
 3554|       |                    // nextFirst is now the localized DOW of Jan 1  of y-woy+1
 3555|      0|                    if((nextFirst > 0) &&   // Jan 1 starts on FDOW
  ------------------
  |  Branch (3555:24): [True: 0, False: 0]
  ------------------
 3556|      0|                        (7-nextFirst) >= getMinimalDaysInFirstWeek()) // or enough days in the week
  ------------------
  |  Branch (3556:25): [True: 0, False: 0]
  ------------------
 3557|      0|                    {
 3558|       |                        // Jan 1 of (yearWoy+1) is in yearWoy+1 - recalculate JD to next year
 3559|       |#if defined (U_DEBUG_CAL)
 3560|       |                        fprintf(stderr, "%s:%d - was going to move JD from %d to %d [d%d]\n", __FILE__, __LINE__,
 3561|       |                            julianDay, nextJulianDay, (nextJulianDay-julianDay));
 3562|       |#endif
 3563|      0|                        julianDay = nextJulianDay;
 3564|       |
 3565|       |                        // recalculate 'first' [0-based local dow of jan 1]
 3566|      0|                        first = julianDayToDayOfWeek(julianDay + 1) - firstDayOfWeek;
 3567|      0|                        if (first < 0) {
  ------------------
  |  Branch (3567:29): [True: 0, False: 0]
  ------------------
 3568|      0|                            first += 7;
 3569|      0|                        }
 3570|       |                        // recalculate date.
 3571|      0|                        date = 1 - first + dowLocal;
 3572|      0|                    }
 3573|      0|                } else if(woy>=getLeastMaximum(bestField)) {
  ------------------
  |  Branch (3573:27): [True: 0, False: 0]
  ------------------
 3574|       |                    // could be in the last week- find out if this JD would overstep
 3575|      0|                    int32_t testDate = date;
 3576|      0|                    if ((7 - first) < getMinimalDaysInFirstWeek()) {
  ------------------
  |  Branch (3576:25): [True: 0, False: 0]
  ------------------
 3577|      0|                        testDate += 7;
 3578|      0|                    }
 3579|       |
 3580|       |                    // Now adjust for the week number.
 3581|      0|                    int32_t weeks;
 3582|      0|                    if (uprv_mul32_overflow(woy-1, 7, &weeks) ||
  ------------------
  |  | 1531|      0|#define uprv_mul32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_mul32_overflow)
  |  |  ------------------
  |  |  |  |  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 (3582:25): [True: 0, False: 0]
  ------------------
 3583|      0|                        uprv_add32_overflow(weeks, testDate, &testDate)) {
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (3583:25): [True: 0, False: 0]
  ------------------
 3584|      0|                        status = U_ILLEGAL_ARGUMENT_ERROR;
 3585|      0|                        return 0;
 3586|      0|                    }
 3587|       |
 3588|       |#if defined (U_DEBUG_CAL)
 3589|       |                    fprintf(stderr, "%s:%d - y=%d, y-1=%d doy%d, njd%d (C.F. %d)\n",
 3590|       |                        __FILE__, __LINE__, year, year-1, testDate, julianDay+testDate, nextJulianDay);
 3591|       |#endif
 3592|      0|                    if (uprv_add32_overflow(julianDay, testDate, &testDate)) {
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (3592:25): [True: 0, False: 0]
  ------------------
 3593|      0|                        status = U_ILLEGAL_ARGUMENT_ERROR;
 3594|      0|                        return 0;
 3595|      0|                    }
 3596|       |
 3597|      0|                    if(testDate > nextJulianDay) { // is it past Dec 31?  (nextJulianDay is day BEFORE year+1's  Jan 1)
  ------------------
  |  Branch (3597:24): [True: 0, False: 0]
  ------------------
 3598|       |                        // Fire up the calculating engines.. retry YWOY = (year-1)
 3599|      0|                        int32_t prevYear;
 3600|      0|                        if (uprv_add32_overflow(year, -1, &prevYear)) {
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (3600:29): [True: 0, False: 0]
  ------------------
 3601|      0|                            status = U_ILLEGAL_ARGUMENT_ERROR;
 3602|      0|                            return 0;
 3603|      0|                        }
 3604|      0|                        julianDay = handleComputeMonthStart(prevYear, 0, false, status); // jd before Jan 1 of previous year
 3605|      0|                        if (U_FAILURE(status)) {
  ------------------
  |  Branch (3605:29): [True: 0, False: 0]
  ------------------
 3606|      0|                            return 0;
 3607|      0|                        }
 3608|      0|                        first = julianDayToDayOfWeek(julianDay + 1) - firstDayOfWeek; // 0 based local dow   of first week
 3609|       |
 3610|      0|                        if(first < 0) { // 0..6
  ------------------
  |  Branch (3610:28): [True: 0, False: 0]
  ------------------
 3611|      0|                            first += 7;
 3612|      0|                        }
 3613|      0|                        date = 1 - first + dowLocal;
 3614|       |
 3615|       |#if defined (U_DEBUG_CAL)
 3616|       |                        fprintf(stderr, "%s:%d - date now %d, jd%d, ywoy%d\n",
 3617|       |                            __FILE__, __LINE__, date, julianDay, year-1);
 3618|       |#endif
 3619|       |
 3620|       |
 3621|      0|                    } /* correction needed */
 3622|      0|                } /* leastmaximum */
 3623|      0|            } /* resolvefields(year) != year_woy */
 3624|      0|        } /* bestfield != week_of_year */
 3625|       |
 3626|       |        // assert(bestField == WEEK_OF_MONTH || bestField == WEEK_OF_YEAR)
 3627|       |        // Adjust for minimal days in first week
 3628|      0|        if ((7 - first) < getMinimalDaysInFirstWeek()) {
  ------------------
  |  Branch (3628:13): [True: 0, False: 0]
  ------------------
 3629|      0|            date += 7;
 3630|      0|        }
 3631|       |
 3632|       |        // Now adjust for the week number.
 3633|      0|        int32_t weeks = internalGet(bestField);
 3634|      0|        if (uprv_add32_overflow(weeks, -1, &weeks) ||
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (3634:13): [True: 0, False: 0]
  ------------------
 3635|      0|            uprv_mul32_overflow(7, weeks, &weeks) ||
  ------------------
  |  | 1531|      0|#define uprv_mul32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_mul32_overflow)
  |  |  ------------------
  |  |  |  |  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 (3635:13): [True: 0, False: 0]
  ------------------
 3636|      0|            uprv_add32_overflow(date, weeks, &date)) {
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (3636:13): [True: 0, False: 0]
  ------------------
 3637|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
 3638|      0|            return 0;
 3639|      0|        }
 3640|      0|    }
 3641|       |
 3642|      0|    if (uprv_add32_overflow(julianDay, date, &julianDay)) {
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (3642:9): [True: 0, False: 0]
  ------------------
 3643|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 3644|      0|        return 0;
 3645|      0|    }
 3646|      0|    return julianDay;
 3647|      0|}
_ZNK6icu_788Calendar20handleGetMonthLengthEiiR10UErrorCode:
 3828|      1|{
 3829|      1|    int32_t nextMonth;
 3830|      1|    if (uprv_add32_overflow(month, 1, &nextMonth)) {
  ------------------
  |  | 1394|      1|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (3830:9): [True: 0, False: 1]
  ------------------
 3831|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 3832|      0|        return 0;
 3833|      0|    }
 3834|      1|    return handleComputeMonthStart(extendedYear, nextMonth, true, status) -
 3835|      1|        handleComputeMonthStart(extendedYear, month, true, status);
 3836|      1|}
_ZNK6icu_788Calendar19handleGetYearLengthEiR10UErrorCode:
 3839|      4|{
 3840|      4|    int32_t result = handleComputeMonthStart(eyear+1, 0, false, status) -
 3841|      4|        handleComputeMonthStart(eyear, 0, false, status);
 3842|      4|    if (U_FAILURE(status)) return 0;
  ------------------
  |  Branch (3842:9): [True: 0, False: 4]
  ------------------
 3843|      4|    return result;
 3844|      4|}
_ZNK6icu_788Calendar16getActualMaximumE19UCalendarDateFieldsR10UErrorCode:
 3848|      6|{
 3849|      6|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (3849:9): [True: 0, False: 6]
  ------------------
 3850|      0|       return 0;
 3851|      0|    }
 3852|      6|    if (field < 0 || field >= UCAL_FIELD_COUNT) {
  ------------------
  |  Branch (3852:9): [True: 0, False: 6]
  |  Branch (3852:22): [True: 0, False: 6]
  ------------------
 3853|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 3854|      0|        return 0;
 3855|      0|    }
 3856|      6|    int32_t result;
 3857|      6|    switch (field) {
 3858|      6|    case UCAL_DATE:
  ------------------
  |  Branch (3858:5): [True: 6, False: 0]
  ------------------
 3859|      6|        {
 3860|      6|            Calendar *cal = clone();
 3861|      6|            if(!cal) {
  ------------------
  |  Branch (3861:16): [True: 0, False: 6]
  ------------------
 3862|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 3863|      0|                return 0;
 3864|      0|            }
 3865|      6|            cal->setLenient(true);
 3866|      6|            cal->prepareGetActual(field,false,status);
 3867|      6|            result = handleGetMonthLength(cal->get(UCAL_EXTENDED_YEAR, status), cal->get(UCAL_MONTH, status), status);
 3868|      6|            delete cal;
 3869|      6|        }
 3870|      0|        break;
 3871|       |
 3872|      0|    case UCAL_DAY_OF_YEAR:
  ------------------
  |  Branch (3872:5): [True: 0, False: 6]
  ------------------
 3873|      0|        {
 3874|      0|            Calendar *cal = clone();
 3875|      0|            if(!cal) {
  ------------------
  |  Branch (3875:16): [True: 0, False: 0]
  ------------------
 3876|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 3877|      0|                return 0;
 3878|      0|            }
 3879|      0|            cal->setLenient(true);
 3880|      0|            cal->prepareGetActual(field,false,status);
 3881|      0|            result = handleGetYearLength(cal->get(UCAL_EXTENDED_YEAR, status), status);
 3882|      0|            delete cal;
 3883|      0|        }
 3884|      0|        break;
 3885|       |
 3886|      0|    case UCAL_DAY_OF_WEEK:
  ------------------
  |  Branch (3886:5): [True: 0, False: 6]
  ------------------
 3887|      0|    case UCAL_AM_PM:
  ------------------
  |  Branch (3887:5): [True: 0, False: 6]
  ------------------
 3888|      0|    case UCAL_HOUR:
  ------------------
  |  Branch (3888:5): [True: 0, False: 6]
  ------------------
 3889|      0|    case UCAL_HOUR_OF_DAY:
  ------------------
  |  Branch (3889:5): [True: 0, False: 6]
  ------------------
 3890|      0|    case UCAL_MINUTE:
  ------------------
  |  Branch (3890:5): [True: 0, False: 6]
  ------------------
 3891|      0|    case UCAL_SECOND:
  ------------------
  |  Branch (3891:5): [True: 0, False: 6]
  ------------------
 3892|      0|    case UCAL_MILLISECOND:
  ------------------
  |  Branch (3892:5): [True: 0, False: 6]
  ------------------
 3893|      0|    case UCAL_ZONE_OFFSET:
  ------------------
  |  Branch (3893:5): [True: 0, False: 6]
  ------------------
 3894|      0|    case UCAL_DST_OFFSET:
  ------------------
  |  Branch (3894:5): [True: 0, False: 6]
  ------------------
 3895|      0|    case UCAL_DOW_LOCAL:
  ------------------
  |  Branch (3895:5): [True: 0, False: 6]
  ------------------
 3896|      0|    case UCAL_JULIAN_DAY:
  ------------------
  |  Branch (3896:5): [True: 0, False: 6]
  ------------------
 3897|      0|    case UCAL_MILLISECONDS_IN_DAY:
  ------------------
  |  Branch (3897:5): [True: 0, False: 6]
  ------------------
 3898|       |        // These fields all have fixed minima/maxima
 3899|      0|        result = getMaximum(field);
 3900|      0|        break;
 3901|       |
 3902|      0|    case UCAL_ORDINAL_MONTH:
  ------------------
  |  Branch (3902:5): [True: 0, False: 6]
  ------------------
 3903|      0|        result = inTemporalLeapYear(status) ? getMaximum(UCAL_ORDINAL_MONTH) : getLeastMaximum(UCAL_ORDINAL_MONTH);
  ------------------
  |  Branch (3903:18): [True: 0, False: 0]
  ------------------
 3904|      0|        break;
 3905|       |
 3906|      0|    default:
  ------------------
  |  Branch (3906:5): [True: 0, False: 6]
  ------------------
 3907|       |        // For all other fields, do it the hard way....
 3908|      0|        result = getActualHelper(field, getLeastMaximum(field), getMaximum(field),status);
 3909|      0|        break;
 3910|      6|    }
 3911|      6|    return result;
 3912|      6|}
_ZN6icu_788Calendar16prepareGetActualE19UCalendarDateFieldsaR10UErrorCode:
 3937|      6|{
 3938|      6|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (3938:9): [True: 0, False: 6]
  ------------------
 3939|      0|       return;
 3940|      0|    }
 3941|      6|    if (field < 0 || field >= UCAL_FIELD_COUNT) {
  ------------------
  |  Branch (3941:9): [True: 0, False: 6]
  |  Branch (3941:22): [True: 0, False: 6]
  ------------------
 3942|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 3943|      0|        return;
 3944|      0|    }
 3945|      6|    set(UCAL_MILLISECONDS_IN_DAY, 0);
 3946|       |
 3947|      6|    switch (field) {
 3948|      0|    case UCAL_YEAR:
  ------------------
  |  Branch (3948:5): [True: 0, False: 6]
  ------------------
 3949|      0|    case UCAL_EXTENDED_YEAR:
  ------------------
  |  Branch (3949:5): [True: 0, False: 6]
  ------------------
 3950|      0|        set(UCAL_DAY_OF_YEAR, getGreatestMinimum(UCAL_DAY_OF_YEAR));
 3951|      0|        break;
 3952|       |
 3953|      0|    case UCAL_YEAR_WOY:
  ------------------
  |  Branch (3953:5): [True: 0, False: 6]
  ------------------
 3954|      0|        set(UCAL_WEEK_OF_YEAR, getGreatestMinimum(UCAL_WEEK_OF_YEAR));
 3955|      0|        U_FALLTHROUGH;
  ------------------
  |  |  511|      0|#       define U_FALLTHROUGH [[clang::fallthrough]]
  ------------------
 3956|      0|    case UCAL_MONTH:
  ------------------
  |  Branch (3956:5): [True: 0, False: 6]
  ------------------
 3957|      0|        set(UCAL_DATE, getGreatestMinimum(UCAL_DATE));
 3958|      0|        break;
 3959|       |
 3960|      0|    case UCAL_DAY_OF_WEEK_IN_MONTH:
  ------------------
  |  Branch (3960:5): [True: 0, False: 6]
  ------------------
 3961|       |        // For dowim, the maximum occurs for the DOW of the first of the
 3962|       |        // month.
 3963|      0|        set(UCAL_DATE, 1);
 3964|      0|        set(UCAL_DAY_OF_WEEK, get(UCAL_DAY_OF_WEEK, status)); // Make this user set
 3965|      0|        break;
 3966|       |
 3967|      0|    case UCAL_WEEK_OF_MONTH:
  ------------------
  |  Branch (3967:5): [True: 0, False: 6]
  ------------------
 3968|      0|    case UCAL_WEEK_OF_YEAR:
  ------------------
  |  Branch (3968:5): [True: 0, False: 6]
  ------------------
 3969|       |        // If we're counting weeks, set the day of the week to either the
 3970|       |        // first or last localized DOW.  We know the last week of a month
 3971|       |        // or year will contain the first day of the week, and that the
 3972|       |        // first week will contain the last DOW.
 3973|      0|        {
 3974|      0|            int32_t dow = fFirstDayOfWeek;
 3975|      0|            if (isMinimum) {
  ------------------
  |  Branch (3975:17): [True: 0, False: 0]
  ------------------
 3976|      0|                dow = (dow + 6) % 7; // set to last DOW
 3977|      0|                if (dow < UCAL_SUNDAY) {
  ------------------
  |  Branch (3977:21): [True: 0, False: 0]
  ------------------
 3978|      0|                    dow += 7;
 3979|      0|                }
 3980|      0|            }
 3981|       |#if defined (U_DEBUG_CAL)
 3982|       |            fprintf(stderr, "prepareGetActualHelper(WOM/WOY) - dow=%d\n", dow);
 3983|       |#endif
 3984|      0|            set(UCAL_DAY_OF_WEEK, dow);
 3985|      0|        }
 3986|      0|        break;
 3987|      6|    default:
  ------------------
  |  Branch (3987:5): [True: 6, False: 0]
  ------------------
 3988|      6|        break;
 3989|      6|    }
 3990|       |
 3991|       |    // Do this last to give it the newest time stamp
 3992|      6|    set(field, getGreatestMinimum(field));
 3993|      6|}
_ZN6icu_788Calendar11setWeekDataERKNS_6LocaleEPKcR10UErrorCode:
 4075|  9.48k|{
 4076|       |
 4077|  9.48k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (4077:9): [True: 0, False: 9.48k]
  ------------------
 4078|      0|        return;
 4079|      0|    }
 4080|       |
 4081|  9.48k|    fFirstDayOfWeek = UCAL_SUNDAY;
 4082|  9.48k|    fMinimalDaysInFirstWeek = 1;
 4083|  9.48k|    fWeekendOnset = UCAL_SATURDAY;
 4084|  9.48k|    fWeekendOnsetMillis = 0;
 4085|  9.48k|    fWeekendCease = UCAL_SUNDAY;
 4086|  9.48k|    fWeekendCeaseMillis = 86400000; // 24*60*60*1000
 4087|       |
 4088|       |    // Since week and weekend data is territory based instead of language based,
 4089|       |    // we may need to tweak the locale that we are using to try to get the appropriate
 4090|       |    // values, using the following logic:
 4091|       |    // 1). If the locale has a language but no territory, use the territory as defined by
 4092|       |    //     the likely subtags.
 4093|       |    // 2). If the locale has a script designation then we ignore it,
 4094|       |    //     then remove it ( i.e. "en_Latn_US" becomes "en_US" )
 4095|       |
 4096|  9.48k|    UErrorCode myStatus = U_ZERO_ERROR;
 4097|       |
 4098|  9.48k|    Locale min(desiredLocale);
 4099|  9.48k|    min.minimizeSubtags(myStatus);
 4100|  9.48k|    Locale useLocale;
 4101|  9.48k|    if ( uprv_strlen(desiredLocale.getCountry()) == 0 ||
  ------------------
  |  |   37|  9.48k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  9.48k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (4101:10): [True: 5.65k, False: 3.83k]
  ------------------
 4102|  9.48k|         (uprv_strlen(desiredLocale.getScript()) > 0 && uprv_strlen(min.getScript()) == 0) ) {
  ------------------
  |  |   37|  3.83k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  3.83k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                       (uprv_strlen(desiredLocale.getScript()) > 0 && uprv_strlen(min.getScript()) == 0) ) {
  ------------------
  |  |   37|    429|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    429|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (4102:11): [True: 429, False: 3.40k]
  |  Branch (4102:57): [True: 242, False: 187]
  ------------------
 4103|  5.89k|        myStatus = U_ZERO_ERROR;
 4104|  5.89k|        Locale max(desiredLocale);
 4105|  5.89k|        max.addLikelySubtags(myStatus);
 4106|  5.89k|        useLocale = Locale(max.getLanguage(),max.getCountry());
 4107|  5.89k|    } else {
 4108|  3.59k|        useLocale = desiredLocale;
 4109|  3.59k|    }
 4110|       |
 4111|       |    /* The code here is somewhat of a hack, since week data and weekend data aren't really tied to
 4112|       |       a specific calendar, they aren't truly locale data.  But this is the only place where valid and
 4113|       |       actual locale can be set, so we take a shot at it here by loading a representative resource
 4114|       |       from the calendar data.  The code used to use the dateTimeElements resource to get first day
 4115|       |       of week data, but this was moved to supplemental data under ticket 7755. (JCE) */
 4116|       |
 4117|       |    // Get the monthNames resource bundle for the calendar 'type'. Fallback to gregorian if the resource is not
 4118|       |    // found.
 4119|  9.48k|    LocalUResourceBundlePointer calData(ures_open(nullptr, useLocale.getBaseName(), &status));
  ------------------
  |  | 1691|  9.48k|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|  9.48k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.48k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.48k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4120|  9.48k|    ures_getByKey(calData.getAlias(), gCalendar, calData.getAlias(), &status);
  ------------------
  |  | 1661|  9.48k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  9.48k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.48k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.48k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4121|       |
 4122|  9.48k|    LocalUResourceBundlePointer monthNames;
 4123|  9.48k|    if (type != nullptr && *type != '\0' && uprv_strcmp(type, gGregorian) != 0) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (4123:9): [True: 0, False: 9.48k]
  |  Branch (4123:28): [True: 0, False: 0]
  |  Branch (4123:45): [True: 0, False: 0]
  ------------------
 4124|      0|        monthNames.adoptInstead(ures_getByKeyWithFallback(calData.getAlias(), type, nullptr, &status));
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4125|      0|        ures_getByKeyWithFallback(monthNames.getAlias(), gMonthNames,
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4126|      0|                                  monthNames.getAlias(), &status);
 4127|      0|    }
 4128|       |
 4129|  9.48k|    if (monthNames.isNull() || status == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (4129:9): [True: 9.48k, False: 0]
  |  Branch (4129:32): [True: 0, False: 0]
  ------------------
 4130|  9.48k|        status = U_ZERO_ERROR;
 4131|  9.48k|        monthNames.adoptInstead(ures_getByKeyWithFallback(calData.getAlias(), gGregorian,
  ------------------
  |  | 1662|  9.48k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  9.48k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.48k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.48k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4132|  9.48k|                                                          monthNames.orphan(), &status));
 4133|  9.48k|        ures_getByKeyWithFallback(monthNames.getAlias(), gMonthNames,
  ------------------
  |  | 1662|  9.48k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  9.48k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.48k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.48k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4134|  9.48k|                                  monthNames.getAlias(), &status);
 4135|  9.48k|    }
 4136|       |
 4137|  9.48k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (4137:9): [True: 9.44k, False: 39]
  ------------------
 4138|  9.44k|        U_LOCALE_BASED(locBased,*this);
  ------------------
  |  |   25|  9.44k|  LocaleBased varname((objname).validLocale, (objname).actualLocale)
  ------------------
 4139|  9.44k|        locBased.setLocaleIDs(ures_getLocaleByType(monthNames.getAlias(), ULOC_VALID_LOCALE, &status),
  ------------------
  |  | 1669|  9.44k|#define ures_getLocaleByType U_ICU_ENTRY_POINT_RENAME(ures_getLocaleByType)
  |  |  ------------------
  |  |  |  |  123|  9.44k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.44k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.44k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4140|  9.44k|                              ures_getLocaleByType(monthNames.getAlias(), ULOC_ACTUAL_LOCALE, &status), status);
  ------------------
  |  | 1669|  9.44k|#define ures_getLocaleByType U_ICU_ENTRY_POINT_RENAME(ures_getLocaleByType)
  |  |  ------------------
  |  |  |  |  123|  9.44k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.44k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.44k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4141|  9.44k|    } else {
 4142|     39|        status = U_USING_FALLBACK_WARNING;
 4143|     39|        return;
 4144|     39|    }
 4145|       |
 4146|  9.44k|    CharString region = ulocimp_getRegionForSupplementalData(desiredLocale.getName(), true, status);
  ------------------
  |  | 1207|  9.44k|#define ulocimp_getRegionForSupplementalData U_ICU_ENTRY_POINT_RENAME(ulocimp_getRegionForSupplementalData)
  |  |  ------------------
  |  |  |  |  123|  9.44k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.44k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.44k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4147|       |
 4148|       |    // Read week data values from supplementalData week data
 4149|  9.44k|    UResourceBundle *rb = ures_openDirect(nullptr, "supplementalData", &status);
  ------------------
  |  | 1693|  9.44k|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|  9.44k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.44k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.44k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4150|  9.44k|    ures_getByKey(rb, "weekData", rb, &status);
  ------------------
  |  | 1661|  9.44k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  9.44k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.44k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.44k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4151|  9.44k|    UResourceBundle *weekData = ures_getByKey(rb, region.data(), nullptr, &status);
  ------------------
  |  | 1661|  9.44k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  9.44k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.44k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.44k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4152|  9.44k|    if (status == U_MISSING_RESOURCE_ERROR && rb != nullptr) {
  ------------------
  |  Branch (4152:9): [True: 3.60k, False: 5.83k]
  |  Branch (4152:47): [True: 3.60k, False: 0]
  ------------------
 4153|  3.60k|        status = U_ZERO_ERROR;
 4154|  3.60k|        weekData = ures_getByKey(rb, "001", nullptr, &status);
  ------------------
  |  | 1661|  3.60k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  3.60k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.60k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.60k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4155|  3.60k|    }
 4156|       |
 4157|  9.44k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (4157:9): [True: 1.19k, False: 8.24k]
  ------------------
 4158|  1.19k|        status = U_USING_FALLBACK_WARNING;
 4159|  8.24k|    } else {
 4160|  8.24k|        int32_t arrLen;
 4161|  8.24k|        const int32_t *weekDataArr = ures_getIntVector(weekData,&arrLen,&status);
  ------------------
  |  | 1665|  8.24k|#define ures_getIntVector U_ICU_ENTRY_POINT_RENAME(ures_getIntVector)
  |  |  ------------------
  |  |  |  |  123|  8.24k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  8.24k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  8.24k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4162|  8.24k|        if( U_SUCCESS(status) && arrLen == 6
  ------------------
  |  Branch (4162:13): [True: 8.24k, False: 0]
  |  Branch (4162:34): [True: 8.24k, False: 0]
  ------------------
 4163|  8.24k|                && 1 <= weekDataArr[0] && weekDataArr[0] <= 7
  ------------------
  |  Branch (4163:20): [True: 8.24k, False: 0]
  |  Branch (4163:43): [True: 8.24k, False: 0]
  ------------------
 4164|  8.24k|                && 1 <= weekDataArr[1] && weekDataArr[1] <= 7
  ------------------
  |  Branch (4164:20): [True: 8.24k, False: 0]
  |  Branch (4164:43): [True: 8.24k, False: 0]
  ------------------
 4165|  8.24k|                && 1 <= weekDataArr[2] && weekDataArr[2] <= 7
  ------------------
  |  Branch (4165:20): [True: 8.24k, False: 0]
  |  Branch (4165:43): [True: 8.24k, False: 0]
  ------------------
 4166|  8.24k|                && 1 <= weekDataArr[4] && weekDataArr[4] <= 7) {
  ------------------
  |  Branch (4166:20): [True: 8.24k, False: 0]
  |  Branch (4166:43): [True: 8.24k, False: 0]
  ------------------
 4167|  8.24k|            fFirstDayOfWeek = static_cast<UCalendarDaysOfWeek>(weekDataArr[0]);
 4168|  8.24k|            fMinimalDaysInFirstWeek = static_cast<uint8_t>(weekDataArr[1]);
 4169|  8.24k|            fWeekendOnset = static_cast<UCalendarDaysOfWeek>(weekDataArr[2]);
 4170|  8.24k|            fWeekendOnsetMillis = weekDataArr[3];
 4171|  8.24k|            fWeekendCease = static_cast<UCalendarDaysOfWeek>(weekDataArr[4]);
 4172|  8.24k|            fWeekendCeaseMillis = weekDataArr[5];
 4173|  8.24k|        } else {
 4174|      0|            status = U_INVALID_FORMAT_ERROR;
 4175|      0|        }
 4176|       |
 4177|       |        // Check if the locale has a "fw" u extension and we honor it if present.
 4178|       |        // And we don't change the overal status, as the presence / lack of "fw" is not an error.
 4179|  8.24k|        UErrorCode fwStatus = U_ZERO_ERROR;
 4180|  8.24k|        char fwExt[ULOC_FULLNAME_CAPACITY] = "";
 4181|  8.24k|        desiredLocale.getKeywordValue("fw", fwExt, ULOC_FULLNAME_CAPACITY, fwStatus);
  ------------------
  |  |  264|  8.24k|#define ULOC_FULLNAME_CAPACITY 157
  ------------------
 4182|  8.24k|        if (U_SUCCESS(fwStatus)) {
  ------------------
  |  Branch (4182:13): [True: 8.24k, False: 4]
  ------------------
 4183|  8.24k|            if (uprv_strcmp(fwExt, "sun") == 0) {
  ------------------
  |  |   38|  8.24k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  8.24k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (4183:17): [True: 1, False: 8.24k]
  ------------------
 4184|      1|                fFirstDayOfWeek = UCAL_SUNDAY;
 4185|  8.24k|            } else if (uprv_strcmp(fwExt, "mon") == 0) {
  ------------------
  |  |   38|  8.24k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  8.24k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (4185:24): [True: 1, False: 8.24k]
  ------------------
 4186|      1|                fFirstDayOfWeek = UCAL_MONDAY;
 4187|  8.24k|            } else if (uprv_strcmp(fwExt, "tue") == 0) {
  ------------------
  |  |   38|  8.24k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  8.24k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (4187:24): [True: 1, False: 8.24k]
  ------------------
 4188|      1|                fFirstDayOfWeek = UCAL_TUESDAY;
 4189|  8.24k|            } else if (uprv_strcmp(fwExt, "wed") == 0) {
  ------------------
  |  |   38|  8.24k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  8.24k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (4189:24): [True: 1, False: 8.24k]
  ------------------
 4190|      1|                fFirstDayOfWeek = UCAL_WEDNESDAY;
 4191|  8.24k|            } else if (uprv_strcmp(fwExt, "thu") == 0) {
  ------------------
  |  |   38|  8.24k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  8.24k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (4191:24): [True: 1, False: 8.23k]
  ------------------
 4192|      1|                fFirstDayOfWeek = UCAL_THURSDAY;
 4193|  8.23k|            } else if (uprv_strcmp(fwExt, "fri") == 0) {
  ------------------
  |  |   38|  8.23k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  8.23k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (4193:24): [True: 1, False: 8.23k]
  ------------------
 4194|      1|                fFirstDayOfWeek = UCAL_FRIDAY;
 4195|  8.23k|            } else if (uprv_strcmp(fwExt, "sat") == 0) {
  ------------------
  |  |   38|  8.23k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  8.23k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (4195:24): [True: 1, False: 8.23k]
  ------------------
 4196|      1|                fFirstDayOfWeek = UCAL_SATURDAY;
 4197|      1|            }
 4198|  8.24k|        }
 4199|  8.24k|    }
 4200|  9.44k|    ures_close(weekData);
  ------------------
  |  | 1652|  9.44k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  9.44k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.44k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.44k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4201|  9.44k|    ures_close(rb);
  ------------------
  |  | 1652|  9.44k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  9.44k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.44k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.44k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4202|  9.44k|}
_ZN6icu_788Calendar10updateTimeER10UErrorCode:
 4211|     12|{
 4212|     12|    computeTime(status);
 4213|     12|    if(U_FAILURE(status))
  ------------------
  |  Branch (4213:8): [True: 0, False: 12]
  ------------------
 4214|      0|        return;
 4215|       |
 4216|       |    // If we are lenient, we need to recompute the fields to normalize
 4217|       |    // the values.  Also, if we haven't set all the fields yet (i.e.,
 4218|       |    // in a newly-created object), we need to fill in the fields. [LIU]
 4219|     12|    if (isLenient() || ! fAreAllFieldsSet)
  ------------------
  |  Branch (4219:9): [True: 12, False: 0]
  |  Branch (4219:24): [True: 0, False: 0]
  ------------------
 4220|     12|        fAreFieldsSet = false;
 4221|       |
 4222|     12|    fIsTimeSet = true;
 4223|     12|    fAreFieldsVirtuallySet = false;
 4224|     12|}
_ZNK6icu_788Calendar16internalGetMonthER10UErrorCode:
 4270|     12|int32_t Calendar::internalGetMonth(UErrorCode& status) const {
 4271|     12|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (4271:9): [True: 0, False: 12]
  ------------------
 4272|      0|        return 0;
 4273|      0|    }
 4274|     12|    if (resolveFields(kMonthPrecedence) == UCAL_ORDINAL_MONTH) {
  ------------------
  |  Branch (4274:9): [True: 0, False: 12]
  ------------------
 4275|      0|        return internalGet(UCAL_ORDINAL_MONTH);
 4276|      0|    }
 4277|     12|    return internalGet(UCAL_MONTH);
 4278|     12|}
_ZNK6icu_788Calendar16getBasicTimeZoneEv:
 4291|     12|Calendar::getBasicTimeZone() const {
 4292|     12|    if (dynamic_cast<const OlsonTimeZone *>(fZone) != nullptr
  ------------------
  |  Branch (4292:9): [True: 12, False: 0]
  ------------------
 4293|     12|        || dynamic_cast<const SimpleTimeZone *>(fZone) != nullptr
  ------------------
  |  Branch (4293:12): [True: 0, False: 0]
  ------------------
 4294|     12|        || dynamic_cast<const RuleBasedTimeZone *>(fZone) != nullptr
  ------------------
  |  Branch (4294:12): [True: 0, False: 0]
  ------------------
 4295|     12|        || dynamic_cast<const VTimeZone *>(fZone) != nullptr) {
  ------------------
  |  Branch (4295:12): [True: 0, False: 0]
  ------------------
 4296|     12|        return (BasicTimeZone*)fZone;
 4297|     12|    }
 4298|      0|    return nullptr;
 4299|     12|}
calendar.cpp:_ZN6icu_78L21isCalendarServiceUsedEv:
  552|  9.47k|isCalendarServiceUsed() {
  553|  9.47k|    return !gServiceInitOnce.isReset();
  554|  9.47k|}
calendar.cpp:_ZN6icu_78L22createStandardCalendarE8ECalTypeRKNS_6LocaleER10UErrorCode:
  310|  9.47k|static Calendar *createStandardCalendar(ECalType calType, const Locale &loc, UErrorCode& status) {
  311|  9.47k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (311:9): [True: 0, False: 9.47k]
  ------------------
  312|      0|        return nullptr;
  313|      0|    }
  314|  9.47k|    LocalPointer<Calendar> cal;
  315|       |
  316|  9.47k|    switch (calType) {
  317|  9.23k|        case CALTYPE_GREGORIAN:
  ------------------
  |  Branch (317:9): [True: 9.23k, False: 249]
  ------------------
  318|  9.23k|            cal.adoptInsteadAndCheckErrorCode(new GregorianCalendar(loc, status), status);
  319|  9.23k|            break;
  320|      0|        case CALTYPE_JAPANESE:
  ------------------
  |  Branch (320:9): [True: 0, False: 9.47k]
  ------------------
  321|      0|            cal.adoptInsteadAndCheckErrorCode(new JapaneseCalendar(loc, status), status);
  322|      0|            break;
  323|     52|        case CALTYPE_BUDDHIST:
  ------------------
  |  Branch (323:9): [True: 52, False: 9.42k]
  ------------------
  324|     52|            cal.adoptInsteadAndCheckErrorCode(new BuddhistCalendar(loc, status), status);
  325|     52|            break;
  326|      4|        case CALTYPE_ROC:
  ------------------
  |  Branch (326:9): [True: 4, False: 9.47k]
  ------------------
  327|      4|            cal.adoptInsteadAndCheckErrorCode(new TaiwanCalendar(loc, status), status);
  328|      4|            break;
  329|    178|        case CALTYPE_PERSIAN:
  ------------------
  |  Branch (329:9): [True: 178, False: 9.30k]
  ------------------
  330|    178|            cal.adoptInsteadAndCheckErrorCode(new PersianCalendar(loc, status), status);
  331|    178|            break;
  332|      0|        case CALTYPE_ISLAMIC_TBLA:
  ------------------
  |  Branch (332:9): [True: 0, False: 9.47k]
  ------------------
  333|      0|            cal.adoptInsteadAndCheckErrorCode(new IslamicTBLACalendar(loc, status), status);
  334|      0|            break;
  335|      0|        case CALTYPE_ISLAMIC_CIVIL:
  ------------------
  |  Branch (335:9): [True: 0, False: 9.47k]
  ------------------
  336|      0|            cal.adoptInsteadAndCheckErrorCode(new IslamicCivilCalendar(loc, status), status);
  337|      0|            break;
  338|      0|        case CALTYPE_ISLAMIC_RGSA:
  ------------------
  |  Branch (338:9): [True: 0, False: 9.47k]
  ------------------
  339|      0|            cal.adoptInsteadAndCheckErrorCode(new IslamicRGSACalendar(loc, status), status);
  340|      0|            break;
  341|      0|        case CALTYPE_ISLAMIC:
  ------------------
  |  Branch (341:9): [True: 0, False: 9.47k]
  ------------------
  342|      0|            cal.adoptInsteadAndCheckErrorCode(new IslamicCalendar(loc, status), status);
  343|      0|            break;
  344|      0|        case CALTYPE_ISLAMIC_UMALQURA:
  ------------------
  |  Branch (344:9): [True: 0, False: 9.47k]
  ------------------
  345|      0|            cal.adoptInsteadAndCheckErrorCode(new IslamicUmalquraCalendar(loc, status), status);
  346|      0|            break;
  347|     10|        case CALTYPE_HEBREW:
  ------------------
  |  Branch (347:9): [True: 10, False: 9.46k]
  ------------------
  348|     10|            cal.adoptInsteadAndCheckErrorCode(new HebrewCalendar(loc, status), status);
  349|     10|            break;
  350|      0|        case CALTYPE_CHINESE:
  ------------------
  |  Branch (350:9): [True: 0, False: 9.47k]
  ------------------
  351|      0|            cal.adoptInsteadAndCheckErrorCode(new ChineseCalendar(loc, status), status);
  352|      0|            break;
  353|      0|        case CALTYPE_INDIAN:
  ------------------
  |  Branch (353:9): [True: 0, False: 9.47k]
  ------------------
  354|      0|            cal.adoptInsteadAndCheckErrorCode(new IndianCalendar(loc, status), status);
  355|      0|            break;
  356|      0|        case CALTYPE_COPTIC:
  ------------------
  |  Branch (356:9): [True: 0, False: 9.47k]
  ------------------
  357|      0|            cal.adoptInsteadAndCheckErrorCode(new CopticCalendar(loc, status), status);
  358|      0|            break;
  359|      5|        case CALTYPE_ETHIOPIC:
  ------------------
  |  Branch (359:9): [True: 5, False: 9.47k]
  ------------------
  360|      5|            cal.adoptInsteadAndCheckErrorCode(new EthiopicCalendar(loc, status), status);
  361|      5|            break;
  362|      0|        case CALTYPE_ETHIOPIC_AMETE_ALEM:
  ------------------
  |  Branch (362:9): [True: 0, False: 9.47k]
  ------------------
  363|      0|            cal.adoptInsteadAndCheckErrorCode(new EthiopicAmeteAlemCalendar(loc, status), status);
  364|      0|            break;
  365|      0|        case CALTYPE_ISO8601:
  ------------------
  |  Branch (365:9): [True: 0, False: 9.47k]
  ------------------
  366|      0|            cal.adoptInsteadAndCheckErrorCode(new ISO8601Calendar(loc, status), status);
  367|      0|            break;
  368|      0|        case CALTYPE_DANGI:
  ------------------
  |  Branch (368:9): [True: 0, False: 9.47k]
  ------------------
  369|      0|            cal.adoptInsteadAndCheckErrorCode(new DangiCalendar(loc, status), status);
  370|      0|            break;
  371|      0|        default:
  ------------------
  |  Branch (371:9): [True: 0, False: 9.47k]
  ------------------
  372|      0|            status = U_UNSUPPORTED_ERROR;
  373|  9.47k|    }
  374|  9.47k|    return cal.orphan();
  375|  9.47k|}
calendar.cpp:_ZN6icu_78L24getCalendarTypeForLocaleEPKc:
  253|  9.47k|static ECalType getCalendarTypeForLocale(const char *locid) {
  254|  9.47k|    UErrorCode status = U_ZERO_ERROR;
  255|  9.47k|    ECalType calType = CALTYPE_UNKNOWN;
  256|       |
  257|       |    // Canonicalize, so that an old-style variant will be transformed to keywords.
  258|       |    // e.g ja_JP_TRADITIONAL -> ja_JP@calendar=japanese
  259|       |    // NOTE: Since ICU-20187, ja_JP_TRADITIONAL no longer canonicalizes, and
  260|       |    // the Gregorian calendar is returned instead.
  261|  9.47k|    CharString canonicalName = ulocimp_canonicalize(locid, status);
  ------------------
  |  | 1197|  9.47k|#define ulocimp_canonicalize U_ICU_ENTRY_POINT_RENAME(ulocimp_canonicalize)
  |  |  ------------------
  |  |  |  |  123|  9.47k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.47k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.47k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  262|  9.47k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (262:9): [True: 164, False: 9.31k]
  ------------------
  263|    164|        return CALTYPE_GREGORIAN;
  264|    164|    }
  265|       |
  266|  9.31k|    CharString calTypeBuf = ulocimp_getKeywordValue(canonicalName.data(), "calendar", status);
  ------------------
  |  | 1200|  9.31k|#define ulocimp_getKeywordValue U_ICU_ENTRY_POINT_RENAME(ulocimp_getKeywordValue)
  |  |  ------------------
  |  |  |  |  123|  9.31k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.31k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.31k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  267|  9.31k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (267:9): [True: 8.75k, False: 559]
  ------------------
  268|  8.75k|        calType = getCalendarType(calTypeBuf.data());
  269|  8.75k|        if (calType != CALTYPE_UNKNOWN) {
  ------------------
  |  Branch (269:13): [True: 19, False: 8.73k]
  ------------------
  270|     19|            return calType;
  271|     19|        }
  272|  8.75k|    }
  273|  9.29k|    status = U_ZERO_ERROR;
  274|       |
  275|       |    // when calendar keyword is not available or not supported, read supplementalData
  276|       |    // to get the default calendar type for the locale's region
  277|  9.29k|    CharString region = ulocimp_getRegionForSupplementalData(canonicalName.data(), true, status);
  ------------------
  |  | 1207|  9.29k|#define ulocimp_getRegionForSupplementalData U_ICU_ENTRY_POINT_RENAME(ulocimp_getRegionForSupplementalData)
  |  |  ------------------
  |  |  |  |  123|  9.29k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.29k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.29k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  278|  9.29k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (278:9): [True: 571, False: 8.72k]
  ------------------
  279|    571|        return CALTYPE_GREGORIAN;
  280|    571|    }
  281|       |
  282|       |    // Read preferred calendar values from supplementalData calendarPreference
  283|  8.72k|    UResourceBundle *rb = ures_openDirect(nullptr, "supplementalData", &status);
  ------------------
  |  | 1693|  8.72k|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|  8.72k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  8.72k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  8.72k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  284|  8.72k|    ures_getByKey(rb, "calendarPreferenceData", rb, &status);
  ------------------
  |  | 1661|  8.72k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  8.72k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  8.72k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  8.72k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  285|  8.72k|    UResourceBundle *order = ures_getByKey(rb, region.data(), nullptr, &status);
  ------------------
  |  | 1661|  8.72k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  8.72k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  8.72k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  8.72k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  286|  8.72k|    if (status == U_MISSING_RESOURCE_ERROR && rb != nullptr) {
  ------------------
  |  Branch (286:9): [True: 6.96k, False: 1.75k]
  |  Branch (286:47): [True: 6.96k, False: 0]
  ------------------
  287|  6.96k|        status = U_ZERO_ERROR;
  288|  6.96k|        order = ures_getByKey(rb, "001", nullptr, &status);
  ------------------
  |  | 1661|  6.96k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  6.96k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.96k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.96k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  289|  6.96k|    }
  290|       |
  291|  8.72k|    calTypeBuf.clear();
  292|  8.72k|    if (U_SUCCESS(status) && order != nullptr) {
  ------------------
  |  Branch (292:9): [True: 8.72k, False: 0]
  |  Branch (292:30): [True: 8.72k, False: 0]
  ------------------
  293|       |        // the first calendar type is the default for the region
  294|  8.72k|        int32_t len = 0;
  295|  8.72k|        const char16_t *uCalType = ures_getStringByIndex(order, 0, &len, &status);
  ------------------
  |  | 1676|  8.72k|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|  8.72k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  8.72k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  8.72k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  296|  8.72k|        calTypeBuf.appendInvariantChars(uCalType, len, status);
  297|  8.72k|        calType = getCalendarType(calTypeBuf.data());
  298|  8.72k|    }
  299|       |
  300|  8.72k|    ures_close(order);
  ------------------
  |  | 1652|  8.72k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  8.72k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  8.72k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  8.72k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  301|  8.72k|    ures_close(rb);
  ------------------
  |  | 1652|  8.72k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  8.72k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  8.72k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  8.72k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  302|       |
  303|  8.72k|    if (calType == CALTYPE_UNKNOWN) {
  ------------------
  |  Branch (303:9): [True: 0, False: 8.72k]
  ------------------
  304|       |        // final fallback
  305|      0|        calType = CALTYPE_GREGORIAN;
  306|      0|    }
  307|  8.72k|    return calType;
  308|  9.29k|}
calendar.cpp:_ZN6icu_78L15getCalendarTypeEPKc:
  232|  17.4k|static ECalType getCalendarType(const char *s) {
  233|   175k|    for (int i = 0; gCalTypes[i] != nullptr; i++) {
  ------------------
  |  Branch (233:21): [True: 166k, False: 8.73k]
  ------------------
  234|   166k|        if (uprv_stricmp(s, gCalTypes[i]) == 0) {
  ------------------
  |  | 1542|   166k|#define uprv_stricmp U_ICU_ENTRY_POINT_RENAME(uprv_stricmp)
  |  |  ------------------
  |  |  |  |  123|   166k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   166k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   166k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (234:13): [True: 8.74k, False: 158k]
  ------------------
  235|  8.74k|            return static_cast<ECalType>(i);
  236|  8.74k|        }
  237|   166k|    }
  238|  8.73k|    return CALTYPE_UNKNOWN;
  239|  17.4k|}

_ZN6icu_7810CECalendarC2ERKNS_6LocaleER10UErrorCode:
   54|      6|:   Calendar(TimeZone::forLocaleOrDefault(aLocale), aLocale, success)
   55|      6|{
   56|      6|}
_ZN6icu_7810CECalendarC2ERKS0_:
   59|     33|:   Calendar(other)
   60|     33|{
   61|     33|}
_ZN6icu_7810CECalendarD2Ev:
   64|     39|{
   65|     39|}
_ZNK6icu_7810CECalendar23handleComputeMonthStartEiiaR10UErrorCode:
   73|     12|{
   74|     12|    int64_t year64 = eyear;
   75|       |    // handle month > 12, < 0 (e.g. from add/set)
   76|     12|    if ( emonth >= 0 ) {
  ------------------
  |  Branch (76:10): [True: 12, False: 0]
  ------------------
   77|     12|        year64 += emonth/13;
   78|     12|        emonth %= 13;
   79|     12|    } else {
   80|      0|        ++emonth;
   81|      0|        year64 += emonth/13 - 1;
   82|      0|        emonth = emonth%13 + 12;
   83|      0|    }
   84|       |
   85|     12|    return (
   86|     12|        getJDEpochOffset()                    // difference from Julian epoch to 1,1,1
   87|     12|        + 365LL * year64                      // number of days from years
   88|     12|        + ClockMath::floorDivideInt64(year64, 4LL) // extra day of leap year
   89|     12|        + 30 * emonth                         // number of days from months (months are 0-based)
   90|     12|        - 1                                   // number of days for present month (1 based)
   91|     12|        );
   92|     12|}
_ZNK6icu_7810CECalendar14handleGetLimitE19UCalendarDateFieldsNS_8Calendar10ELimitTypeE:
   96|      3|{
   97|      3|    return LIMITS[field][limitType];
   98|      3|}
_ZN6icu_7810CECalendar19handleComputeFieldsEiR10UErrorCode:
  128|      4|{
  129|      4|    int32_t eyear, month, day, doy;
  130|      4|    jdToCE(julianDay, getJDEpochOffset(), eyear, month, day, doy, status);
  131|      4|    if (U_FAILURE(status)) return;
  ------------------
  |  Branch (131:9): [True: 0, False: 4]
  ------------------
  132|      4|    int32_t era = extendedYearToEra(eyear);
  133|      4|    int32_t year = extendedYearToYear(eyear);
  134|       |
  135|      4|    internalSet(UCAL_EXTENDED_YEAR, eyear);
  136|      4|    internalSet(UCAL_ERA, era);
  137|      4|    internalSet(UCAL_YEAR, year);
  138|      4|    internalSet(UCAL_MONTH, month);
  139|      4|    internalSet(UCAL_ORDINAL_MONTH, month);
  140|      4|    internalSet(UCAL_DATE, day);
  141|      4|    internalSet(UCAL_DAY_OF_YEAR, doy);
  142|      4|}
cecal.cpp:_ZN6icu_7812_GLOBAL__N_16jdToCEEiiRiS1_S1_S1_R10UErrorCode:
  106|      4|{
  107|      4|    int32_t c4; // number of 4 year cycle (1461 days)
  108|      4|    int32_t r4; // remainder of 4 year cycle, always positive
  109|       |
  110|      4|    if (uprv_add32_overflow(julianDay, -jdEpochOffset, &julianDay)) {
  ------------------
  |  | 1394|      4|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (110:9): [True: 0, False: 4]
  ------------------
  111|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  112|      0|        return;
  113|      0|    }
  114|      4|    c4 = ClockMath::floorDivide(julianDay, 1461, &r4);
  115|       |
  116|      4|    year = 4 * c4 + (r4/365 - r4/1460); // 4 * <number of 4year cycle> + <years within the last cycle>
  117|       |
  118|      4|    doy = (r4 == 1460) ? 365 : (r4 % 365); // days in present year
  ------------------
  |  Branch (118:11): [True: 0, False: 4]
  ------------------
  119|       |
  120|      4|    month = doy / 30;       // 30 -> Coptic/Ethiopic month length up to 12th month
  121|      4|    day = (doy % 30) + 1;   // 1-based days in a month
  122|      4|    doy++;  // 1-based days in a year.
  123|      4|}

_ZN6icu_7812CurrencyUnitC2ERKS0_:
   82|   431k|CurrencyUnit::CurrencyUnit(const CurrencyUnit& other) : MeasureUnit(other) {
   83|   431k|    u_strcpy(isoCode, other.isoCode);
  ------------------
  |  |  390|   431k|#define u_strcpy U_ICU_ENTRY_POINT_RENAME(u_strcpy)
  |  |  ------------------
  |  |  |  |  123|   431k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   431k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   431k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   84|   431k|}
_ZN6icu_7812CurrencyUnitC2Ev:
   99|   476k|CurrencyUnit::CurrencyUnit() : MeasureUnit() {
  100|   476k|    u_strcpy(isoCode, kDefaultCurrency);
  ------------------
  |  |  390|   476k|#define u_strcpy U_ICU_ENTRY_POINT_RENAME(u_strcpy)
  |  |  ------------------
  |  |  |  |  123|   476k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   476k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   476k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  101|   476k|    char simpleIsoCode[4];
  102|   476k|    u_UCharsToChars(isoCode, simpleIsoCode, 4);
  ------------------
  |  |  211|   476k|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|   476k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   476k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   476k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  103|   476k|    initCurrency(simpleIsoCode);
  104|   476k|}
_ZN6icu_7812CurrencyUnitaSERKS0_:
  106|   259k|CurrencyUnit& CurrencyUnit::operator=(const CurrencyUnit& other) {
  107|   259k|    if (this == &other) {
  ------------------
  |  Branch (107:9): [True: 0, False: 259k]
  ------------------
  108|      0|        return *this;
  109|      0|    }
  110|   259k|    MeasureUnit::operator=(other);
  111|   259k|    u_strcpy(isoCode, other.isoCode);
  ------------------
  |  |  390|   259k|#define u_strcpy U_ICU_ENTRY_POINT_RENAME(u_strcpy)
  |  |  ------------------
  |  |  |  |  123|   259k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   259k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   259k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  112|   259k|    return *this;
  113|   259k|}
_ZN6icu_7812CurrencyUnitD2Ev:
  119|   906k|CurrencyUnit::~CurrencyUnit() {
  120|   906k|}

_ZN6icu_7818DateFmtBestPatternD2Ev:
   60|  9.55k|DateFmtBestPattern::~DateFmtBestPattern() {
   61|  9.55k|}
_ZN6icu_7821DateFmtBestPatternKeyD2Ev:
  122|  25.0k|DateFmtBestPatternKey::~DateFmtBestPatternKey() { }
_ZN6icu_7810DateFormatC2Ev:
  126|  89.7k|:   fCalendar(nullptr),
  127|  89.7k|    fNumberFormat(nullptr),
  128|  89.7k|    fCapitalizationContext(UDISPCTX_CAPITALIZATION_NONE)
  129|  89.7k|{
  130|  89.7k|}
_ZN6icu_7810DateFormatD2Ev:
  170|  89.7k|{
  171|  89.7k|    delete fCalendar;
  172|  89.7k|    delete fNumberFormat;
  173|  89.7k|}
_ZNK6icu_7810DateFormat6formatEdRNS_13UnicodeStringERNS_13FieldPositionE:
  280|  31.0k|DateFormat::format(UDate date, UnicodeString& appendTo, FieldPosition& fieldPosition) const {
  281|  31.0k|    if (fCalendar != nullptr) {
  ------------------
  |  Branch (281:9): [True: 31.0k, False: 0]
  ------------------
  282|  31.0k|        UErrorCode ec = U_ZERO_ERROR;
  283|       |        // Avoid a heap allocation and corresponding free for the common case
  284|  31.0k|        if (typeid(*fCalendar) == typeid(GregorianCalendar)) {
  ------------------
  |  Branch (284:13): [True: 29.2k, False: 1.75k]
  ------------------
  285|  29.2k|            GregorianCalendar cal(*static_cast<GregorianCalendar*>(fCalendar));
  286|  29.2k|            cal.setTime(date, ec);
  287|  29.2k|            if (U_SUCCESS(ec)) {
  ------------------
  |  Branch (287:17): [True: 28.8k, False: 381]
  ------------------
  288|  28.8k|                format(cal, appendTo, fieldPosition);
  289|  28.8k|            }
  290|  29.2k|        } else {
  291|       |            // Use a clone of our calendar instance
  292|  1.75k|            Calendar *calClone = fCalendar->clone();
  293|  1.75k|            if (calClone != nullptr) {
  ------------------
  |  Branch (293:17): [True: 1.75k, False: 0]
  ------------------
  294|  1.75k|                calClone->setTime(date, ec);
  295|  1.75k|                if (U_SUCCESS(ec)) {
  ------------------
  |  Branch (295:21): [True: 1.74k, False: 15]
  ------------------
  296|  1.74k|                    format(*calClone, appendTo, fieldPosition);
  297|  1.74k|                }
  298|  1.75k|                delete calClone;
  299|  1.75k|            }
  300|  1.75k|        }
  301|  31.0k|    }
  302|  31.0k|    return appendTo;
  303|  31.0k|}
_ZNK6icu_7810DateFormat6formatEdRNS_13UnicodeStringE:
  337|  31.0k|{
  338|       |    // Note that any error information is just lost.  That's okay
  339|       |    // for this convenience method.
  340|  31.0k|    FieldPosition fpos(FieldPosition::DONT_CARE);
  341|  31.0k|    return format(date, appendTo, fpos);
  342|  31.0k|}
_ZN6icu_7810DateFormat18createTimeInstanceENS0_6EStyleERKNS_6LocaleE:
  410|  4.21k|{
  411|  4.21k|    return createDateTimeInstance(kNone, style, aLocale);
  412|  4.21k|}
_ZN6icu_7810DateFormat18createDateInstanceENS0_6EStyleERKNS_6LocaleE:
  419|  5.09k|{
  420|  5.09k|    return createDateTimeInstance(style, kNone, aLocale);
  421|  5.09k|}
_ZN6icu_7810DateFormat22createDateTimeInstanceENS0_6EStyleES1_RKNS_6LocaleE:
  429|  40.3k|{
  430|  40.3k|   if(dateStyle != kNone)
  ------------------
  |  Branch (430:7): [True: 32.3k, False: 7.99k]
  ------------------
  431|  32.3k|   {
  432|  32.3k|       dateStyle = static_cast<EStyle>(dateStyle + kDateOffset);
  433|  32.3k|   }
  434|  40.3k|   return create(timeStyle, dateStyle, aLocale);
  435|  40.3k|}
_ZN6icu_7810DateFormat14getBestPatternERKNS_6LocaleERKNS_13UnicodeStringER10UErrorCode:
  451|  15.5k|        UErrorCode &status) {
  452|  15.5k|    UnifiedCache *cache = UnifiedCache::getInstance(status);
  453|  15.5k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (453:9): [True: 0, False: 15.5k]
  ------------------
  454|      0|        return {};
  455|      0|    }
  456|  15.5k|    DateFmtBestPatternKey key(locale, skeleton, status);
  457|  15.5k|    const DateFmtBestPattern *patternPtr = nullptr;
  458|  15.5k|    cache->get(key, patternPtr, status);
  459|  15.5k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (459:9): [True: 0, False: 15.5k]
  ------------------
  460|      0|        return {};
  461|      0|    }
  462|  15.5k|    UnicodeString result(patternPtr->fPattern);
  463|  15.5k|    patternPtr->removeRef();
  464|  15.5k|    return result;
  465|  15.5k|}
_ZN6icu_7810DateFormat25createInstanceForSkeletonERKNS_13UnicodeStringERKNS_6LocaleER10UErrorCode:
  498|  15.5k|        UErrorCode &status) {
  499|  15.5k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (499:9): [True: 0, False: 15.5k]
  ------------------
  500|      0|        return nullptr;
  501|      0|    }
  502|  15.5k|    LocalPointer<DateFormat> df(
  503|  15.5k|        new SimpleDateFormat(
  504|  15.5k|            getBestPattern(locale, skeleton, status),
  505|  15.5k|            locale, status),
  506|  15.5k|        status);
  507|  15.5k|    return U_SUCCESS(status) ? df.orphan() : nullptr;
  ------------------
  |  Branch (507:12): [True: 15.5k, False: 0]
  ------------------
  508|  15.5k|}
_ZN6icu_7810DateFormat25createInstanceForSkeletonERKNS_13UnicodeStringER10UErrorCode:
  513|  7.75k|        UErrorCode &status) {
  514|  7.75k|    return createInstanceForSkeleton(
  515|  7.75k|            skeleton, Locale::getDefault(), status);
  516|  7.75k|}
_ZN6icu_7810DateFormat6createENS0_6EStyleES1_RKNS_6LocaleE:
  522|  40.3k|{
  523|  40.3k|    UErrorCode status = U_ZERO_ERROR;
  524|       |#if U_PLATFORM_USES_ONLY_WIN32_API
  525|       |    char buffer[8];
  526|       |    int32_t count = locale.getKeywordValue("compat", buffer, sizeof(buffer), status);
  527|       |
  528|       |    // if the locale has "@compat=host", create a host-specific DateFormat...
  529|       |    if (count > 0 && uprv_strcmp(buffer, "host") == 0) {
  530|       |        Win32DateFormat *f = new Win32DateFormat(timeStyle, dateStyle, locale, status);
  531|       |
  532|       |        if (U_SUCCESS(status)) {
  533|       |            return f;
  534|       |        }
  535|       |
  536|       |        delete f;
  537|       |    }
  538|       |#endif
  539|       |
  540|       |    // is it relative?
  541|  40.3k|    if(/*((timeStyle!=UDAT_NONE)&&(timeStyle & UDAT_RELATIVE)) || */((dateStyle!=kNone)&&((dateStyle-kDateOffset) & UDAT_RELATIVE))) {
  ------------------
  |  Branch (541:70): [True: 32.3k, False: 8.00k]
  |  Branch (541:90): [True: 10.9k, False: 21.3k]
  ------------------
  542|  10.9k|        RelativeDateFormat* r = new RelativeDateFormat(static_cast<UDateFormatStyle>(timeStyle), static_cast<UDateFormatStyle>(dateStyle - kDateOffset), locale, status);
  543|  10.9k|        if(U_SUCCESS(status)) return r;
  ------------------
  |  Branch (543:12): [True: 4.91k, False: 6.04k]
  ------------------
  544|  6.04k|        delete r;
  545|  6.04k|        status = U_ZERO_ERROR;
  546|  6.04k|    }
  547|       |
  548|       |    // Try to create a SimpleDateFormat of the desired style.
  549|  35.3k|    SimpleDateFormat *f = new SimpleDateFormat(timeStyle, dateStyle, locale, status);
  550|  35.3k|    if (U_SUCCESS(status)) return f;
  ------------------
  |  Branch (550:9): [True: 15.2k, False: 20.1k]
  ------------------
  551|  20.1k|    delete f;
  552|       |
  553|       |    // If that fails, try to create a format using the default pattern and
  554|       |    // the DateFormatSymbols for this locale.
  555|  20.1k|    status = U_ZERO_ERROR;
  556|  20.1k|    f = new SimpleDateFormat(locale, status);
  557|  20.1k|    if (U_SUCCESS(status)) return f;
  ------------------
  |  Branch (557:9): [True: 19.4k, False: 655]
  ------------------
  558|    655|    delete f;
  559|       |
  560|       |    // This should never really happen, because the preceding constructor
  561|       |    // should always succeed.  If the resource data is unavailable, a last
  562|       |    // resort object should be returned.
  563|    655|    return nullptr;
  564|  20.1k|}
_ZN6icu_7810DateFormat10setContextE15UDisplayContextR10UErrorCode:
  718|  2.52k|{
  719|  2.52k|    if (U_FAILURE(status))
  ------------------
  |  Branch (719:9): [True: 0, False: 2.52k]
  ------------------
  720|      0|        return;
  721|  2.52k|    if (static_cast<UDisplayContextType>(static_cast<uint32_t>(value) >> 8) == UDISPCTX_TYPE_CAPITALIZATION) {
  ------------------
  |  Branch (721:9): [True: 2.52k, False: 0]
  ------------------
  722|  2.52k|        fCapitalizationContext = value;
  723|  2.52k|    } else {
  724|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  725|      0|   }
  726|  2.52k|}
_ZNK6icu_7810DateFormat10getContextE19UDisplayContextTypeR10UErrorCode:
  733|  33.1k|{
  734|  33.1k|    if (U_FAILURE(status))
  ------------------
  |  Branch (734:9): [True: 0, False: 33.1k]
  ------------------
  735|      0|        return static_cast<UDisplayContext>(0);
  736|  33.1k|    if (type != UDISPCTX_TYPE_CAPITALIZATION) {
  ------------------
  |  Branch (736:9): [True: 0, False: 33.1k]
  ------------------
  737|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  738|      0|        return static_cast<UDisplayContext>(0);
  739|      0|    }
  740|  33.1k|    return fCapitalizationContext;
  741|  33.1k|}
_ZN6icu_7810DateFormat19setBooleanAttributeE27UDateFormatBooleanAttributeaR10UErrorCode:
  750|   315k|    									UErrorCode &status) {
  751|   315k|    if(!fBoolFlags.isValidValue(newValue)) {
  ------------------
  |  Branch (751:8): [True: 0, False: 315k]
  ------------------
  752|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  753|   315k|    } else {
  754|   315k|        fBoolFlags.set(attr, newValue);
  755|   315k|    }
  756|       |
  757|   315k|    return *this;
  758|   315k|}
_ZN6icu_7821DateFmtBestPatternKeyC2ERKNS_6LocaleERKNS_13UnicodeStringER10UErrorCode:
   86|  15.5k|            : LocaleCacheKey<DateFmtBestPattern>(loc),
   87|  15.5k|              fSkeleton(DateTimePatternGenerator::staticGetSkeleton(skeleton, status)) { }
_ZNK6icu_7821DateFmtBestPatternKey8hashCodeEv:
   92|  35.1k|    virtual int32_t hashCode() const override {
   93|  35.1k|        return static_cast<int32_t>(37u * static_cast<uint32_t>(LocaleCacheKey<DateFmtBestPattern>::hashCode()) + static_cast<uint32_t>(fSkeleton.hashCode()));
   94|  35.1k|    }
_ZNK6icu_7821DateFmtBestPatternKey5cloneEv:
   98|  9.83k|    virtual CacheKeyBase *clone() const override {
   99|  9.83k|        return new DateFmtBestPatternKey(*this);
  100|  9.83k|    }
_ZN6icu_7821DateFmtBestPatternKeyC2ERKS0_:
   89|  9.83k|            LocaleCacheKey<DateFmtBestPattern>(other),
   90|  9.83k|            fSkeleton(other.fSkeleton) { }
_ZNK6icu_7821DateFmtBestPatternKey12createObjectEPKvR10UErrorCode:
  102|  9.83k|            const void * /*unused*/, UErrorCode &status) const override {
  103|  9.83k|        LocalPointer<DateTimePatternGenerator> dtpg(
  104|  9.83k|                    DateTimePatternGenerator::createInstance(fLoc, status));
  105|  9.83k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (105:13): [True: 0, False: 9.83k]
  ------------------
  106|      0|            return nullptr;
  107|      0|        }
  108|       |  
  109|  9.83k|        LocalPointer<DateFmtBestPattern> pattern(
  110|  9.83k|                new DateFmtBestPattern(
  111|  9.83k|                        dtpg->getBestPattern(fSkeleton, status)),
  112|  9.83k|                status);
  113|  9.83k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (113:13): [True: 0, False: 9.83k]
  ------------------
  114|      0|            return nullptr;
  115|      0|        }
  116|  9.83k|        DateFmtBestPattern *result = pattern.orphan();
  117|  9.83k|        result->addRef();
  118|  9.83k|        return result;
  119|  9.83k|    }
_ZN6icu_7818DateFmtBestPatternC2ERKNS_13UnicodeStringE:
   56|  9.83k|            : fPattern(pattern) { }
_ZNK6icu_7821DateFmtBestPatternKey6equalsERKNS_12CacheKeyBaseE:
   74|  15.5k|    virtual bool equals(const CacheKeyBase &other) const override {
   75|  15.5k|       if (!LocaleCacheKey<DateFmtBestPattern>::equals(other)) {
  ------------------
  |  Branch (75:12): [True: 3, False: 15.5k]
  ------------------
   76|      3|           return false;
   77|      3|       }
   78|       |       // We know that this and other are of same class if we get this far.
   79|  15.5k|       return operator==(static_cast<const DateFmtBestPatternKey &>(other));
   80|  15.5k|    }
_ZNK6icu_7821DateFmtBestPatternKeyeqERKS0_:
   95|  15.5k|    inline bool operator==(const DateFmtBestPatternKey &other) const {
   96|  15.5k|        return fSkeleton == other.fSkeleton;
   97|  15.5k|    }

_ZN6icu_7822DayPeriodRulesDataSinkD2Ev:
  300|      1|DayPeriodRulesDataSink::~DayPeriodRulesDataSink() {}
_ZN6icu_7823DayPeriodRulesCountSinkD2Ev:
  301|      1|DayPeriodRulesCountSink::~DayPeriodRulesCountSink() {}
_ZN6icu_7814DayPeriodRules4loadER10UErrorCode:
  317|      1|void U_CALLCONV DayPeriodRules::load(UErrorCode &errorCode) {
  318|      1|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (318:9): [True: 0, False: 1]
  ------------------
  319|      0|        return;
  320|      0|    }
  321|       |
  322|      1|    data = new DayPeriodRulesData();
  323|      1|    data->localeToRuleSetNumMap = uhash_open(uhash_hashChars, uhash_compareChars, nullptr, &errorCode);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  data->localeToRuleSetNumMap = uhash_open(uhash_hashChars, uhash_compareChars, nullptr, &errorCode);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  data->localeToRuleSetNumMap = uhash_open(uhash_hashChars, uhash_compareChars, nullptr, &errorCode);
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  324|      1|    LocalUResourceBundlePointer rb_dayPeriods(ures_openDirect(nullptr, "dayPeriods", &errorCode));
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  325|       |
  326|       |    // Get the largest rule set number (so we allocate enough objects).
  327|      1|    DayPeriodRulesCountSink countSink;
  328|      1|    ures_getAllItemsWithFallback(rb_dayPeriods.getAlias(), "rules", countSink, errorCode);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  329|       |
  330|       |    // Populate rules.
  331|      1|    DayPeriodRulesDataSink sink;
  332|      1|    ures_getAllItemsWithFallback(rb_dayPeriods.getAlias(), "", sink, errorCode);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  333|       |
  334|      1|    ucln_i18n_registerCleanup(UCLN_I18N_DAYPERIODRULES, dayPeriodRulesCleanup);
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  ucln_i18n_registerCleanup(UCLN_I18N_DAYPERIODRULES, dayPeriodRulesCleanup);
  ------------------
  |  |  120|      1|#define dayPeriodRulesCleanup U_ICU_ENTRY_POINT_RENAME(dayPeriodRulesCleanup)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  335|      1|}
_ZN6icu_7814DayPeriodRules11getInstanceERKNS_6LocaleER10UErrorCode:
  337|    609|const DayPeriodRules *DayPeriodRules::getInstance(const Locale &locale, UErrorCode &errorCode) {
  338|    609|    umtx_initOnce(initOnce, DayPeriodRules::load, errorCode);
  339|       |
  340|       |    // If the entire day period rules data doesn't conform to spec (even if the part we want
  341|       |    // does), return nullptr.
  342|    609|    if(U_FAILURE(errorCode)) { return nullptr; }
  ------------------
  |  Branch (342:8): [True: 0, False: 609]
  ------------------
  343|       |
  344|    609|    const char *localeCode = locale.getBaseName();
  345|    609|    char name[ULOC_FULLNAME_CAPACITY];
  346|       |
  347|    609|    if (uprv_strlen(localeCode) < ULOC_FULLNAME_CAPACITY) {
  ------------------
  |  |   37|    609|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    609|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                  if (uprv_strlen(localeCode) < ULOC_FULLNAME_CAPACITY) {
  ------------------
  |  |  264|    609|#define ULOC_FULLNAME_CAPACITY 157
  ------------------
  |  Branch (347:9): [True: 609, False: 0]
  ------------------
  348|    609|        uprv_strcpy(name, localeCode);
  ------------------
  |  |   36|    609|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|    609|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  349|       |
  350|       |        // Treat empty string as root.
  351|    609|        if (*name == '\0') {
  ------------------
  |  Branch (351:13): [True: 0, False: 609]
  ------------------
  352|      0|            uprv_strcpy(name, "root");
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  353|      0|        }
  354|    609|    } else {
  355|      0|        errorCode = U_BUFFER_OVERFLOW_ERROR;
  356|      0|        return nullptr;
  357|      0|    }
  358|       |
  359|    609|    int32_t ruleSetNum = 0;  // NB there is no rule set 0 and 0 is returned upon lookup failure.
  360|  1.45k|    while (*name != '\0') {
  ------------------
  |  Branch (360:12): [True: 1.45k, False: 0]
  ------------------
  361|  1.45k|        ruleSetNum = uhash_geti(data->localeToRuleSetNumMap, name);
  ------------------
  |  | 1008|  1.45k|#define uhash_geti U_ICU_ENTRY_POINT_RENAME(uhash_geti)
  |  |  ------------------
  |  |  |  |  123|  1.45k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.45k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.45k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  362|  1.45k|        if (ruleSetNum == 0) {
  ------------------
  |  Branch (362:13): [True: 938, False: 514]
  ------------------
  363|    938|            CharString parent = ulocimp_getParent(name, errorCode);
  ------------------
  |  | 1205|    938|#define ulocimp_getParent U_ICU_ENTRY_POINT_RENAME(ulocimp_getParent)
  |  |  ------------------
  |  |  |  |  123|    938|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    938|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    938|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  364|    938|            if (parent.isEmpty()) {
  ------------------
  |  Branch (364:17): [True: 95, False: 843]
  ------------------
  365|       |                // Saves a lookup in the hash table.
  366|     95|                break;
  367|     95|            }
  368|    843|            parent.extract(name, UPRV_LENGTHOF(name), errorCode);
  ------------------
  |  |   99|    843|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  369|    843|        } else {
  370|    514|            break;
  371|    514|        }
  372|  1.45k|    }
  373|       |
  374|    609|    if (ruleSetNum <= 0 || data->rules[ruleSetNum].getDayPeriodForHour(0) == DAYPERIOD_UNKNOWN) {
  ------------------
  |  Branch (374:9): [True: 95, False: 514]
  |  Branch (374:28): [True: 0, False: 514]
  ------------------
  375|       |        // If day period for hour 0 is UNKNOWN then day period for all hours are UNKNOWN.
  376|       |        // Data doesn't exist even with fallback.
  377|     95|        return nullptr;
  378|    514|    } else {
  379|    514|        return &data->rules[ruleSetNum];
  380|    514|    }
  381|    609|}
_ZN6icu_7814DayPeriodRulesC2Ev:
  383|    166|DayPeriodRules::DayPeriodRules() : fHasMidnight(false), fHasNoon(false) {
  384|  4.15k|    for (int32_t i = 0; i < 24; ++i) {
  ------------------
  |  Branch (384:25): [True: 3.98k, False: 166]
  ------------------
  385|  3.98k|        fDayPeriodForHour[i] = DayPeriodRules::DAYPERIOD_UNKNOWN;
  386|  3.98k|    }
  387|    166|}
_ZN6icu_7814DayPeriodRules22getDayPeriodFromStringEPKc:
  467|    896|DayPeriodRules::DayPeriod DayPeriodRules::getDayPeriodFromString(const char *type_str) {
  468|    896|    if (uprv_strcmp(type_str, "midnight") == 0) {
  ------------------
  |  |   38|    896|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    896|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (468:9): [True: 72, False: 824]
  ------------------
  469|     72|        return DAYPERIOD_MIDNIGHT;
  470|    824|    } else if (uprv_strcmp(type_str, "noon") == 0) {
  ------------------
  |  |   38|    824|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    824|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (470:16): [True: 54, False: 770]
  ------------------
  471|     54|        return DAYPERIOD_NOON;
  472|    770|    } else if (uprv_strcmp(type_str, "morning1") == 0) {
  ------------------
  |  |   38|    770|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    770|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (472:16): [True: 161, False: 609]
  ------------------
  473|    161|        return DAYPERIOD_MORNING1;
  474|    609|    } else if (uprv_strcmp(type_str, "afternoon1") == 0) {
  ------------------
  |  |   38|    609|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    609|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (474:16): [True: 159, False: 450]
  ------------------
  475|    159|        return DAYPERIOD_AFTERNOON1;
  476|    450|    } else if (uprv_strcmp(type_str, "evening1") == 0) {
  ------------------
  |  |   38|    450|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    450|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (476:16): [True: 159, False: 291]
  ------------------
  477|    159|        return DAYPERIOD_EVENING1;
  478|    291|    } else if (uprv_strcmp(type_str, "night1") == 0) {
  ------------------
  |  |   38|    291|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    291|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (478:16): [True: 159, False: 132]
  ------------------
  479|    159|        return DAYPERIOD_NIGHT1;
  480|    159|    } else if (uprv_strcmp(type_str, "morning2") == 0) {
  ------------------
  |  |   38|    132|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    132|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (480:16): [True: 72, False: 60]
  ------------------
  481|     72|        return DAYPERIOD_MORNING2;
  482|     72|    } else if (uprv_strcmp(type_str, "afternoon2") == 0) {
  ------------------
  |  |   38|     60|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|     60|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (482:16): [True: 36, False: 24]
  ------------------
  483|     36|        return DAYPERIOD_AFTERNOON2;
  484|     36|    } else if (uprv_strcmp(type_str, "evening2") == 0) {
  ------------------
  |  |   38|     24|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|     24|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (484:16): [True: 6, False: 18]
  ------------------
  485|      6|        return DAYPERIOD_EVENING2;
  486|     18|    } else if (uprv_strcmp(type_str, "night2") == 0) {
  ------------------
  |  |   38|     18|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|     18|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (486:16): [True: 14, False: 4]
  ------------------
  487|     14|        return DAYPERIOD_NIGHT2;
  488|     14|    } else if (uprv_strcmp(type_str, "am") == 0) {
  ------------------
  |  |   38|      4|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      4|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (488:16): [True: 2, False: 2]
  ------------------
  489|      2|        return DAYPERIOD_AM;
  490|      2|    } else if (uprv_strcmp(type_str, "pm") == 0) {
  ------------------
  |  |   38|      2|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      2|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (490:16): [True: 2, False: 0]
  ------------------
  491|      2|        return DAYPERIOD_PM;
  492|      2|    } else {
  493|      0|        return DAYPERIOD_UNKNOWN;
  494|      0|    }
  495|    896|}
_ZN6icu_7814DayPeriodRules3addEiiNS0_9DayPeriodE:
  497|    770|void DayPeriodRules::add(int32_t startHour, int32_t limitHour, DayPeriod period) {
  498|  4.73k|    for (int32_t i = startHour; i != limitHour; ++i) {
  ------------------
  |  Branch (498:33): [True: 3.96k, False: 770]
  ------------------
  499|  3.96k|        if (i == 24) { i = 0; }
  ------------------
  |  Branch (499:13): [True: 83, False: 3.87k]
  ------------------
  500|  3.96k|        fDayPeriodForHour[i] = period;
  501|  3.96k|    }
  502|    770|}
_ZN6icu_7814DayPeriodRules14allHoursAreSetEv:
  504|    165|UBool DayPeriodRules::allHoursAreSet() {
  505|  4.12k|    for (int32_t i = 0; i < 24; ++i) {
  ------------------
  |  Branch (505:25): [True: 3.96k, False: 165]
  ------------------
  506|  3.96k|        if (fDayPeriodForHour[i] == DAYPERIOD_UNKNOWN) { return false; }
  ------------------
  |  Branch (506:13): [True: 0, False: 3.96k]
  ------------------
  507|  3.96k|    }
  508|       |
  509|    165|    return true;
  510|    165|}
dayperiodrules.cpp:_ZN6icu_7812_GLOBAL__N_118DayPeriodRulesDataC2Ev:
   31|      1|    DayPeriodRulesData() : localeToRuleSetNumMap(nullptr), rules(nullptr), maxRuleSetNum(0) {}
_ZN6icu_7822DayPeriodRulesDataSinkC2Ev:
   49|      1|    DayPeriodRulesDataSink() {
   50|     26|        for (int32_t i = 0; i < UPRV_LENGTHOF(cutoffs); ++i) { cutoffs[i] = 0; }
  ------------------
  |  |   99|     26|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (50:29): [True: 25, False: 1]
  ------------------
   51|      1|    }
_ZN6icu_7822DayPeriodRulesDataSink3putEPKcRNS_13ResourceValueEaR10UErrorCode:
   54|      1|    virtual void put(const char *key, ResourceValue &value, UBool, UErrorCode &errorCode) override {
   55|      1|        ResourceTable dayPeriodData = value.getTable(errorCode);
   56|      1|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (56:13): [True: 0, False: 1]
  ------------------
   57|       |
   58|      4|        for (int32_t i = 0; dayPeriodData.getKeyAndValue(i, key, value); ++i) {
  ------------------
  |  Branch (58:29): [True: 3, False: 1]
  ------------------
   59|      3|            if (uprv_strcmp(key, "locales") == 0) {
  ------------------
  |  |   38|      3|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      3|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (59:17): [True: 1, False: 2]
  ------------------
   60|      1|                ResourceTable locales = value.getTable(errorCode);
   61|      1|                if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (61:21): [True: 0, False: 1]
  ------------------
   62|       |
   63|     87|                for (int32_t j = 0; locales.getKeyAndValue(j, key, value); ++j) {
  ------------------
  |  Branch (63:37): [True: 86, False: 1]
  ------------------
   64|     86|                    UnicodeString setNum_str = value.getUnicodeString(errorCode);
   65|     86|                    int32_t setNum = parseSetNum(setNum_str, errorCode);
   66|     86|                    uhash_puti(data->localeToRuleSetNumMap, const_cast<char *>(key), setNum, &errorCode);
  ------------------
  |  | 1033|     86|#define uhash_puti U_ICU_ENTRY_POINT_RENAME(uhash_puti)
  |  |  ------------------
  |  |  |  |  123|     86|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     86|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     86|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   67|     86|                }
   68|      2|            } else if (uprv_strcmp(key, "rules") == 0) {
  ------------------
  |  |   38|      2|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      2|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (68:24): [True: 1, False: 1]
  ------------------
   69|       |                // Allocate one more than needed to skip [0]. See comment in parseSetNum().
   70|      1|                data->rules = new DayPeriodRules[data->maxRuleSetNum + 1];
   71|      1|                if (data->rules == nullptr) {
  ------------------
  |  Branch (71:21): [True: 0, False: 1]
  ------------------
   72|      0|                    errorCode = U_MEMORY_ALLOCATION_ERROR;
   73|      0|                    return;
   74|      0|                }
   75|      1|                ResourceTable rules = value.getTable(errorCode);
   76|      1|                processRules(rules, key, value, errorCode);
   77|      1|                if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (77:21): [True: 0, False: 1]
  ------------------
   78|      1|            }
   79|      3|        }
   80|      1|    }
_ZN6icu_7822DayPeriodRulesDataSink11parseSetNumERKNS_13UnicodeStringER10UErrorCode:
  142|     86|    static int32_t parseSetNum(const UnicodeString &setNumStr, UErrorCode &errorCode) {
  143|     86|        CharString cs;
  144|     86|        cs.appendInvariantChars(setNumStr, errorCode);
  145|     86|        return parseSetNum(cs.data(), errorCode);
  146|     86|    }
_ZN6icu_7822DayPeriodRulesDataSink11parseSetNumEPKcR10UErrorCode:
  148|    416|    static int32_t parseSetNum(const char *setNumStr, UErrorCode &errorCode) {
  149|    416|        if (U_FAILURE(errorCode)) { return -1; }
  ------------------
  |  Branch (149:13): [True: 0, False: 416]
  ------------------
  150|       |
  151|    416|        if (uprv_strncmp(setNumStr, "set", 3) != 0) {
  ------------------
  |  |   44|    416|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|    416|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (151:13): [True: 0, False: 416]
  ------------------
  152|      0|            errorCode = U_INVALID_FORMAT_ERROR;
  153|      0|            return -1;
  154|      0|        }
  155|       |
  156|    416|        int32_t i = 3;
  157|    416|        int32_t setNum = 0;
  158|  1.35k|        while (setNumStr[i] != 0) {
  ------------------
  |  Branch (158:16): [True: 935, False: 416]
  ------------------
  159|    935|            int32_t digit = setNumStr[i] - '0';
  160|    935|            if (digit < 0 || 9 < digit) {
  ------------------
  |  Branch (160:17): [True: 0, False: 935]
  |  Branch (160:30): [True: 0, False: 935]
  ------------------
  161|      0|                errorCode = U_INVALID_FORMAT_ERROR;
  162|      0|                return -1;
  163|      0|            }
  164|    935|            setNum = 10 * setNum + digit;
  165|    935|            ++i;
  166|    935|        }
  167|       |
  168|       |        // Rule set number must not be zero. (0 is used to indicate "not found" by hashmap.)
  169|       |        // Currently ICU data conveniently starts numbering rule sets from 1.
  170|    416|        if (setNum == 0) {
  ------------------
  |  Branch (170:13): [True: 0, False: 416]
  ------------------
  171|      0|            errorCode = U_INVALID_FORMAT_ERROR;
  172|      0|            return -1;
  173|    416|        } else {
  174|    416|            return setNum;
  175|    416|        }
  176|    416|    }
_ZN6icu_7822DayPeriodRulesDataSink12processRulesERKNS_13ResourceTableEPKcRNS_13ResourceValueER10UErrorCode:
   83|      1|                      ResourceValue &value, UErrorCode &errorCode) {
   84|      1|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (84:13): [True: 0, False: 1]
  ------------------
   85|       |
   86|    166|        for (int32_t i = 0; rules.getKeyAndValue(i, key, value); ++i) {
  ------------------
  |  Branch (86:29): [True: 165, False: 1]
  ------------------
   87|    165|            ruleSetNum = parseSetNum(key, errorCode);
   88|    165|            ResourceTable ruleSet = value.getTable(errorCode);
   89|    165|            if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (89:17): [True: 0, False: 165]
  ------------------
   90|       |
   91|  1.06k|            for (int32_t j = 0; ruleSet.getKeyAndValue(j, key, value); ++j) {
  ------------------
  |  Branch (91:33): [True: 896, False: 165]
  ------------------
   92|    896|                period = DayPeriodRules::getDayPeriodFromString(key);
   93|    896|                if (period == DayPeriodRules::DAYPERIOD_UNKNOWN) {
  ------------------
  |  Branch (93:21): [True: 0, False: 896]
  ------------------
   94|      0|                    errorCode = U_INVALID_FORMAT_ERROR;
   95|      0|                    return;
   96|      0|                }
   97|    896|                ResourceTable periodDefinition = value.getTable(errorCode);
   98|    896|                if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (98:21): [True: 0, False: 896]
  ------------------
   99|       |
  100|  2.56k|                for (int32_t k = 0; periodDefinition.getKeyAndValue(k, key, value); ++k) {
  ------------------
  |  Branch (100:37): [True: 1.66k, False: 896]
  ------------------
  101|  1.66k|                    if (value.getType() == URES_STRING) {
  ------------------
  |  Branch (101:25): [True: 1.66k, False: 0]
  ------------------
  102|       |                        // Key-value pairs (e.g. before{6:00}).
  103|  1.66k|                        CutoffType type = getCutoffTypeFromString(key);
  104|  1.66k|                        addCutoff(type, value.getUnicodeString(errorCode), errorCode);
  105|  1.66k|                        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (105:29): [True: 0, False: 1.66k]
  ------------------
  106|  1.66k|                    } else {
  107|       |                        // Arrays (e.g. before{6:00, 24:00}).
  108|      0|                        cutoffType = getCutoffTypeFromString(key);
  109|      0|                        ResourceArray cutoffArray = value.getArray(errorCode);
  110|      0|                        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (110:29): [True: 0, False: 0]
  ------------------
  111|       |
  112|      0|                        int32_t length = cutoffArray.getSize();
  113|      0|                        for (int32_t l = 0; l < length; ++l) {
  ------------------
  |  Branch (113:45): [True: 0, False: 0]
  ------------------
  114|      0|                            cutoffArray.getValue(l, value);
  115|      0|                            addCutoff(cutoffType, value.getUnicodeString(errorCode), errorCode);
  116|      0|                            if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (116:33): [True: 0, False: 0]
  ------------------
  117|      0|                        }
  118|      0|                    }
  119|  1.66k|                }
  120|    896|                setDayPeriodForHoursFromCutoffs(errorCode);
  121|  23.2k|                for (int32_t k = 0; k < UPRV_LENGTHOF(cutoffs); ++k) {
  ------------------
  |  |   99|  23.2k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (121:37): [True: 22.4k, False: 896]
  ------------------
  122|  22.4k|                    cutoffs[k] = 0;
  123|  22.4k|                }
  124|    896|            }
  125|       |
  126|    165|            if (!data->rules[ruleSetNum].allHoursAreSet()) {
  ------------------
  |  Branch (126:17): [True: 0, False: 165]
  ------------------
  127|      0|                errorCode = U_INVALID_FORMAT_ERROR;
  128|      0|                return;
  129|      0|            }
  130|    165|        }
  131|      1|    }
dayperiodrules.cpp:_ZN6icu_7822DayPeriodRulesDataSink23getCutoffTypeFromStringEPKc:
  229|  1.66k|    static CutoffType getCutoffTypeFromString(const char *type_str) {
  230|  1.66k|        if (uprv_strcmp(type_str, "from") == 0) {
  ------------------
  |  |   38|  1.66k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  1.66k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (230:13): [True: 770, False: 896]
  ------------------
  231|    770|            return CUTOFF_TYPE_FROM;
  232|    896|        } else if (uprv_strcmp(type_str, "before") == 0) {
  ------------------
  |  |   38|    896|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    896|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (232:20): [True: 770, False: 126]
  ------------------
  233|    770|            return CUTOFF_TYPE_BEFORE;
  234|    770|        } else if (uprv_strcmp(type_str, "after") == 0) {
  ------------------
  |  |   38|    126|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    126|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (234:20): [True: 0, False: 126]
  ------------------
  235|      0|            return CUTOFF_TYPE_AFTER;
  236|    126|        } else if (uprv_strcmp(type_str, "at") == 0) {
  ------------------
  |  |   38|    126|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    126|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (236:20): [True: 126, False: 0]
  ------------------
  237|    126|            return CUTOFF_TYPE_AT;
  238|    126|        } else {
  239|      0|            return CUTOFF_TYPE_UNKNOWN;
  240|      0|        }
  241|  1.66k|    }
dayperiodrules.cpp:_ZN6icu_7822DayPeriodRulesDataSink9addCutoffENS_12_GLOBAL__N_110CutoffTypeERKNS_13UnicodeStringER10UErrorCode:
  178|  1.66k|    void addCutoff(CutoffType type, const UnicodeString &hour_str, UErrorCode &errorCode) {
  179|  1.66k|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (179:13): [True: 0, False: 1.66k]
  ------------------
  180|       |
  181|  1.66k|        if (type == CUTOFF_TYPE_UNKNOWN) {
  ------------------
  |  Branch (181:13): [True: 0, False: 1.66k]
  ------------------
  182|      0|            errorCode = U_INVALID_FORMAT_ERROR;
  183|      0|            return;
  184|      0|        }
  185|       |
  186|  1.66k|        int32_t hour = parseHour(hour_str, errorCode);
  187|  1.66k|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (187:13): [True: 0, False: 1.66k]
  ------------------
  188|       |
  189|  1.66k|        cutoffs[hour] |= 1 << type;
  190|  1.66k|    }
_ZN6icu_7822DayPeriodRulesDataSink9parseHourERKNS_13UnicodeStringER10UErrorCode:
  244|  1.66k|    static int32_t parseHour(const UnicodeString &time, UErrorCode &errorCode) {
  245|  1.66k|        if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (245:13): [True: 0, False: 1.66k]
  ------------------
  246|      0|            return 0;
  247|      0|        }
  248|       |
  249|  1.66k|        int32_t hourLimit = time.length() - 3;
  250|       |        // `time` must look like "x:00" or "xx:00".
  251|       |        // If length is wrong or `time` doesn't end with ":00", error out.
  252|  1.66k|        if ((hourLimit != 1 && hourLimit != 2) ||
  ------------------
  |  Branch (252:14): [True: 1.66k, False: 0]
  |  Branch (252:32): [True: 0, False: 1.66k]
  ------------------
  253|  1.66k|                time[hourLimit] != 0x3A || time[hourLimit + 1] != 0x30 ||
  ------------------
  |  Branch (253:17): [True: 0, False: 1.66k]
  |  Branch (253:44): [True: 0, False: 1.66k]
  ------------------
  254|  1.66k|                time[hourLimit + 2] != 0x30) {
  ------------------
  |  Branch (254:17): [True: 0, False: 1.66k]
  ------------------
  255|      0|            errorCode = U_INVALID_FORMAT_ERROR;
  256|      0|            return 0;
  257|      0|        }
  258|       |
  259|       |        // If `time` doesn't begin with a number in [0, 24], error out.
  260|       |        // Note: "24:00" is possible in "before 24:00".
  261|  1.66k|        int32_t hour = time[0] - 0x30;
  262|  1.66k|        if (hour < 0 || 9 < hour) {
  ------------------
  |  Branch (262:13): [True: 0, False: 1.66k]
  |  Branch (262:25): [True: 0, False: 1.66k]
  ------------------
  263|      0|            errorCode = U_INVALID_FORMAT_ERROR;
  264|      0|            return 0;
  265|      0|        }
  266|  1.66k|        if (hourLimit == 2) {
  ------------------
  |  Branch (266:13): [True: 1.66k, False: 0]
  ------------------
  267|  1.66k|            int32_t hourDigit2 = time[1] - 0x30;
  268|  1.66k|            if (hourDigit2 < 0 || 9 < hourDigit2) {
  ------------------
  |  Branch (268:17): [True: 0, False: 1.66k]
  |  Branch (268:35): [True: 0, False: 1.66k]
  ------------------
  269|      0|                errorCode = U_INVALID_FORMAT_ERROR;
  270|      0|                return 0;
  271|      0|            }
  272|  1.66k|            hour = hour * 10 + hourDigit2;
  273|  1.66k|            if (hour > 24) {
  ------------------
  |  Branch (273:17): [True: 0, False: 1.66k]
  ------------------
  274|      0|                errorCode = U_INVALID_FORMAT_ERROR;
  275|      0|                return 0;
  276|      0|            }
  277|  1.66k|        }
  278|       |
  279|  1.66k|        return hour;
  280|  1.66k|    }
_ZN6icu_7822DayPeriodRulesDataSink31setDayPeriodForHoursFromCutoffsER10UErrorCode:
  193|    896|    void setDayPeriodForHoursFromCutoffs(UErrorCode &errorCode) {
  194|    896|        DayPeriodRules &rule = data->rules[ruleSetNum];
  195|       |
  196|  23.2k|        for (int32_t startHour = 0; startHour <= 24; ++startHour) {
  ------------------
  |  Branch (196:37): [True: 22.4k, False: 896]
  ------------------
  197|       |            // AT cutoffs must be either midnight or noon.
  198|  22.4k|            if (cutoffs[startHour] & (1 << CUTOFF_TYPE_AT)) {
  ------------------
  |  Branch (198:17): [True: 126, False: 22.2k]
  ------------------
  199|    126|                if (startHour == 0 && period == DayPeriodRules::DAYPERIOD_MIDNIGHT) {
  ------------------
  |  Branch (199:21): [True: 72, False: 54]
  |  Branch (199:39): [True: 72, False: 0]
  ------------------
  200|     72|                    rule.fHasMidnight = true;
  201|     72|                } else if (startHour == 12 && period == DayPeriodRules::DAYPERIOD_NOON) {
  ------------------
  |  Branch (201:28): [True: 54, False: 0]
  |  Branch (201:47): [True: 54, False: 0]
  ------------------
  202|     54|                    rule.fHasNoon = true;
  203|     54|                } else {
  204|      0|                    errorCode = U_INVALID_FORMAT_ERROR;  // Bad data.
  205|      0|                    return;
  206|      0|                }
  207|    126|            }
  208|       |
  209|       |            // FROM/AFTER and BEFORE must come in a pair.
  210|  22.4k|            if (cutoffs[startHour] & (1 << CUTOFF_TYPE_FROM) ||
  ------------------
  |  Branch (210:17): [True: 770, False: 21.6k]
  ------------------
  211|  22.4k|                    cutoffs[startHour] & (1 << CUTOFF_TYPE_AFTER)) {
  ------------------
  |  Branch (211:21): [True: 0, False: 21.6k]
  ------------------
  212|  4.04k|                for (int32_t hour = startHour + 1;; ++hour) {
  213|  4.04k|                    if (hour == startHour) {
  ------------------
  |  Branch (213:25): [True: 0, False: 4.04k]
  ------------------
  214|       |                        // We've gone around the array once and can't find a BEFORE.
  215|      0|                        errorCode = U_INVALID_FORMAT_ERROR;
  216|      0|                        return;
  217|      0|                    }
  218|  4.04k|                    if (hour == 25) { hour = 0; }
  ------------------
  |  Branch (218:25): [True: 83, False: 3.96k]
  ------------------
  219|  4.04k|                    if (cutoffs[hour] & (1 << CUTOFF_TYPE_BEFORE)) {
  ------------------
  |  Branch (219:25): [True: 770, False: 3.27k]
  ------------------
  220|    770|                        rule.add(startHour, hour, period);
  221|    770|                        break;
  222|    770|                    }
  223|  4.04k|                }
  224|    770|            }
  225|  22.4k|        }
  226|    896|    }
_ZN6icu_7823DayPeriodRulesCountSink3putEPKcRNS_13ResourceValueEaR10UErrorCode:
  286|      1|    virtual void put(const char *key, ResourceValue &value, UBool, UErrorCode &errorCode) override {
  287|      1|        ResourceTable rules = value.getTable(errorCode);
  288|      1|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (288:13): [True: 0, False: 1]
  ------------------
  289|       |
  290|    166|        for (int32_t i = 0; rules.getKeyAndValue(i, key, value); ++i) {
  ------------------
  |  Branch (290:29): [True: 165, False: 1]
  ------------------
  291|    165|            int32_t setNum = DayPeriodRulesDataSink::parseSetNum(key, errorCode);
  292|    165|            if (setNum > data->maxRuleSetNum) {
  ------------------
  |  Branch (292:17): [True: 68, False: 97]
  ------------------
  293|     68|                data->maxRuleSetNum = setNum;
  294|     68|            }
  295|    165|        }
  296|      1|    }

_ZNK6icu_7814DayPeriodRules11hasMidnightEv:
   51|    350|    UBool hasMidnight() const { return fHasMidnight; }
_ZNK6icu_7814DayPeriodRules7hasNoonEv:
   52|     11|    UBool hasNoon() const { return fHasNoon; }
_ZNK6icu_7814DayPeriodRules19getDayPeriodForHourEi:
   53|  1.02k|    DayPeriod getDayPeriodForHour(int32_t hour) const { return fDayPeriodForHour[hour]; }

_ZN6icu_7820DecimalFormatSymbolsC2ER10UErrorCode:
  102|  41.9k|        : UObject(), locale() {
  103|  41.9k|    initialize(locale, status, true);
  104|  41.9k|}
_ZN6icu_7820DecimalFormatSymbolsC2ERKNS_6LocaleER10UErrorCode:
  110|  23.5k|        : UObject(), locale(loc) {
  111|  23.5k|    initialize(locale, status);
  112|  23.5k|}
_ZN6icu_7820DecimalFormatSymbolsD2Ev:
  137|   369k|{
  138|   369k|    delete actualLocale;
  139|   369k|    delete validLocale;
  140|   369k|}
_ZN6icu_7820DecimalFormatSymbolsC2ERKS0_:
  146|   303k|    : UObject(source)
  147|   303k|{
  148|   303k|    *this = source;
  149|   303k|}
_ZN6icu_7820DecimalFormatSymbolsaSERKS0_:
  156|   303k|{
  157|   303k|    if (this != &rhs) {
  ------------------
  |  Branch (157:9): [True: 303k, False: 0]
  ------------------
  158|  9.11M|        for (int32_t i = 0; i < static_cast<int32_t>(kFormatSymbolCount); ++i) {
  ------------------
  |  Branch (158:29): [True: 8.81M, False: 303k]
  ------------------
  159|       |            // fastCopyFrom is safe, see docs on fSymbols
  160|  8.81M|            fSymbols[static_cast<ENumberFormatSymbol>(i)].fastCopyFrom(rhs.fSymbols[static_cast<ENumberFormatSymbol>(i)]);
  161|  8.81M|        }
  162|  1.21M|        for (int32_t i = 0; i < static_cast<int32_t>(UNUM_CURRENCY_SPACING_COUNT); ++i) {
  ------------------
  |  Branch (162:29): [True: 911k, False: 303k]
  ------------------
  163|   911k|            currencySpcBeforeSym[i].fastCopyFrom(rhs.currencySpcBeforeSym[i]);
  164|   911k|            currencySpcAfterSym[i].fastCopyFrom(rhs.currencySpcAfterSym[i]);
  165|   911k|        }
  166|   303k|        locale = rhs.locale;
  167|       |
  168|   303k|        UErrorCode status = U_ZERO_ERROR;
  169|   303k|        U_LOCALE_BASED(locBased, *this);
  ------------------
  |  |   25|   303k|  LocaleBased varname((objname).validLocale, (objname).actualLocale)
  ------------------
  170|   303k|        locBased.setLocaleIDs(rhs.validLocale, rhs.actualLocale, status);
  171|   303k|        U_ASSERT(U_SUCCESS(status));
  ------------------
  |  |   35|   303k|#   define U_ASSERT(exp) (void)0
  ------------------
  172|       |
  173|   303k|        fIsCustomCurrencySymbol = rhs.fIsCustomCurrencySymbol; 
  174|   303k|        fIsCustomIntlCurrencySymbol = rhs.fIsCustomIntlCurrencySymbol; 
  175|   303k|        fCodePointZero = rhs.fCodePointZero;
  176|   303k|        currPattern = rhs.currPattern;
  177|   303k|        uprv_strcpy(nsName, rhs.nsName);
  ------------------
  |  |   36|   303k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|   303k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  178|   303k|    }
  179|   303k|    return *this;
  180|   303k|}
_ZN6icu_7820DecimalFormatSymbols10initializeERKNS_6LocaleER10UErrorCodeaPKNS_15NumberingSystemE:
  359|  65.5k|{
  360|  65.5k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (360:9): [True: 340, False: 65.2k]
  ------------------
  361|       |
  362|       |    // First initialize all the symbols to the fallbacks for anything we can't find
  363|  65.2k|    initialize();
  364|       |
  365|       |    //
  366|       |    // Next get the numbering system for this locale and set zero digit
  367|       |    // and the digit string based on the numbering system for the locale
  368|       |    //
  369|  65.2k|    LocalPointer<NumberingSystem> nsLocal;
  370|  65.2k|    if (ns == nullptr) {
  ------------------
  |  Branch (370:9): [True: 65.2k, False: 0]
  ------------------
  371|       |        // Use the numbering system according to the locale.
  372|       |        // Save it into a LocalPointer so it gets cleaned up.
  373|  65.2k|        nsLocal.adoptInstead(NumberingSystem::createInstance(loc, status));
  374|  65.2k|        ns = nsLocal.getAlias();
  375|  65.2k|    }
  376|  65.2k|    const char *nsName;
  377|  65.2k|    if (U_SUCCESS(status) && ns->getRadix() == 10 && !ns->isAlgorithmic()) {
  ------------------
  |  Branch (377:9): [True: 65.1k, False: 72]
  |  Branch (377:30): [True: 65.1k, False: 0]
  |  Branch (377:54): [True: 64.5k, False: 573]
  ------------------
  378|  64.5k|        nsName = ns->getName();
  379|  64.5k|        UnicodeString digitString(ns->getDescription());
  380|  64.5k|        int32_t digitIndex = 0;
  381|  64.5k|        UChar32 digit = digitString.char32At(0);
  382|  64.5k|        fSymbols[kZeroDigitSymbol].setTo(digit);
  383|   645k|        for (int32_t i = kOneDigitSymbol; i <= kNineDigitSymbol; ++i) {
  ------------------
  |  Branch (383:43): [True: 581k, False: 64.5k]
  ------------------
  384|   581k|            digitIndex += U16_LENGTH(digit);
  ------------------
  |  |  141|   581k|#define U16_LENGTH(c) ((uint32_t)(c)<=0xffff ? 1 : 2)
  |  |  ------------------
  |  |  |  Branch (141:24): [True: 579k, False: 1.84k]
  |  |  ------------------
  ------------------
  385|   581k|            digit = digitString.char32At(digitIndex);
  386|   581k|            fSymbols[i].setTo(digit);
  387|   581k|        }
  388|  64.5k|    } else {
  389|    645|        nsName = gLatn;
  390|    645|    }
  391|  65.2k|    uprv_strcpy(this->nsName, nsName);
  ------------------
  |  |   36|  65.2k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  65.2k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  392|       |
  393|       |    // Open resource bundles
  394|  65.2k|    const char* locStr = loc.getName();
  395|  65.2k|    LocalUResourceBundlePointer resource(ures_open(nullptr, locStr, &status));
  ------------------
  |  | 1691|  65.2k|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|  65.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  65.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  65.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  396|  65.2k|    LocalUResourceBundlePointer numberElementsRes(
  397|  65.2k|        ures_getByKeyWithFallback(resource.getAlias(), gNumberElements, nullptr, &status));
  ------------------
  |  | 1662|  65.2k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  65.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  65.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  65.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  398|       |
  399|  65.2k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (399:9): [True: 106, False: 65.1k]
  ------------------
  400|    106|        if ( useLastResortData ) {
  ------------------
  |  Branch (400:14): [True: 0, False: 106]
  ------------------
  401|      0|            status = U_USING_DEFAULT_WARNING;
  402|      0|            initialize();
  403|      0|        }
  404|    106|        return;
  405|    106|    }
  406|       |
  407|       |    // Set locale IDs
  408|       |    // TODO: Is there a way to do this without depending on the resource bundle instance?
  409|  65.1k|    U_LOCALE_BASED(locBased, *this);
  ------------------
  |  |   25|  65.1k|  LocaleBased varname((objname).validLocale, (objname).actualLocale)
  ------------------
  410|  65.1k|    locBased.setLocaleIDs(
  411|  65.1k|        ures_getLocaleByType(
  ------------------
  |  | 1669|  65.1k|#define ures_getLocaleByType U_ICU_ENTRY_POINT_RENAME(ures_getLocaleByType)
  |  |  ------------------
  |  |  |  |  123|  65.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  65.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  65.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  412|  65.1k|            numberElementsRes.getAlias(),
  413|  65.1k|            ULOC_VALID_LOCALE, &status),
  414|  65.1k|        ures_getLocaleByType(
  ------------------
  |  | 1669|  65.1k|#define ures_getLocaleByType U_ICU_ENTRY_POINT_RENAME(ures_getLocaleByType)
  |  |  ------------------
  |  |  |  |  123|  65.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  65.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  65.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  415|  65.1k|            numberElementsRes.getAlias(),
  416|  65.1k|            ULOC_ACTUAL_LOCALE, &status),
  417|  65.1k|        status);
  418|       |
  419|       |    // Now load the rest of the data from the data sink.
  420|       |    // Start with loading this nsName if it is not Latin.
  421|  65.1k|    DecFmtSymDataSink sink(*this);
  422|  65.1k|    if (uprv_strcmp(nsName, gLatn) != 0) {
  ------------------
  |  |   38|  65.1k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  65.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (422:9): [True: 1.53k, False: 63.5k]
  ------------------
  423|  1.53k|        CharString path;
  424|  1.53k|        path.append(gNumberElements, status)
  425|  1.53k|            .append('/', status)
  426|  1.53k|            .append(nsName, status)
  427|  1.53k|            .append('/', status)
  428|  1.53k|            .append(gSymbols, status);
  429|  1.53k|        ures_getAllItemsWithFallback(resource.getAlias(), path.data(), sink, status);
  ------------------
  |  | 1658|  1.53k|#define ures_getAllItemsWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getAllItemsWithFallback)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  430|       |
  431|       |        // If no symbols exist for the given nsName and resource bundle, silently ignore
  432|       |        // and fall back to Latin.
  433|  1.53k|        if (status == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (433:13): [True: 0, False: 1.53k]
  ------------------
  434|      0|            status = U_ZERO_ERROR;
  435|  1.53k|        } else if (U_FAILURE(status)) {
  ------------------
  |  Branch (435:20): [True: 0, False: 1.53k]
  ------------------
  436|      0|            return;
  437|      0|        }
  438|  1.53k|    }
  439|       |
  440|       |    // Continue with Latin if necessary.
  441|  65.1k|    if (!sink.seenAll()) {
  ------------------
  |  Branch (441:9): [True: 65.1k, False: 0]
  ------------------
  442|  65.1k|        ures_getAllItemsWithFallback(resource.getAlias(), gNumberElementsLatnSymbols, sink, status);
  ------------------
  |  | 1658|  65.1k|#define ures_getAllItemsWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getAllItemsWithFallback)
  |  |  ------------------
  |  |  |  |  123|  65.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  65.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  65.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  443|  65.1k|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (443:13): [True: 0, False: 65.1k]
  ------------------
  444|  65.1k|    }
  445|       |
  446|       |    // Let the monetary number separators equal the default number separators if necessary.
  447|  65.1k|    sink.resolveMissingMonetarySeparators(fSymbols);
  448|       |
  449|       |    // Resolve codePointZero
  450|  65.1k|    UChar32 tempCodePointZero = -1;
  451|   716k|    for (int32_t i=0; i<=9; i++) {
  ------------------
  |  Branch (451:23): [True: 651k, False: 65.1k]
  ------------------
  452|   651k|        const UnicodeString& stringDigit = getConstDigitSymbol(i);
  453|   651k|        if (stringDigit.countChar32() != 1) {
  ------------------
  |  Branch (453:13): [True: 0, False: 651k]
  ------------------
  454|      0|            tempCodePointZero = -1;
  455|      0|            break;
  456|      0|        }
  457|   651k|        UChar32 cp = stringDigit.char32At(0);
  458|   651k|        if (i == 0) {
  ------------------
  |  Branch (458:13): [True: 65.1k, False: 586k]
  ------------------
  459|  65.1k|            tempCodePointZero = cp;
  460|   586k|        } else if (cp != tempCodePointZero + i) {
  ------------------
  |  Branch (460:20): [True: 6, False: 586k]
  ------------------
  461|      6|            tempCodePointZero = -1;
  462|      6|            break;
  463|      6|        }
  464|   651k|    }
  465|  65.1k|    fCodePointZero = tempCodePointZero;
  466|       |
  467|       |    // Get the default currency from the currency API.
  468|  65.1k|    UErrorCode internalStatus = U_ZERO_ERROR; // don't propagate failures out
  469|  65.1k|    char16_t curriso[4];
  470|  65.1k|    UnicodeString tempStr;
  471|  65.1k|    int32_t currisoLength = ucurr_forLocale(locStr, curriso, UPRV_LENGTHOF(curriso), &internalStatus);
  ------------------
  |  |  832|  65.1k|#define ucurr_forLocale U_ICU_ENTRY_POINT_RENAME(ucurr_forLocale)
  |  |  ------------------
  |  |  |  |  123|  65.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  65.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  65.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  int32_t currisoLength = ucurr_forLocale(locStr, curriso, UPRV_LENGTHOF(curriso), &internalStatus);
  ------------------
  |  |   99|  65.1k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  472|  65.1k|    if (U_SUCCESS(internalStatus) && currisoLength == 3) {
  ------------------
  |  Branch (472:9): [True: 53.4k, False: 11.6k]
  |  Branch (472:38): [True: 53.4k, False: 0]
  ------------------
  473|  53.4k|        setCurrency(curriso, status);
  474|  53.4k|    } else {
  475|  11.6k|        setCurrency(nullptr, status);
  476|  11.6k|    }
  477|       |
  478|       |    // Currency Spacing.
  479|  65.1k|    LocalUResourceBundlePointer currencyResource(ures_open(U_ICUDATA_CURR, locStr, &status));
  ------------------
  |  | 1691|  65.1k|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|  65.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  65.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  65.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  LocalUResourceBundlePointer currencyResource(ures_open(U_ICUDATA_CURR, locStr, &status));
  ------------------
  |  |   21|  65.1k|#define U_ICUDATA_CURR U_ICUDATA_NAME U_TREE_SEPARATOR_STRING "curr"
  |  |  ------------------
  |  |  |  |  154|  65.1k|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  ------------------
  480|  65.1k|    CurrencySpacingSink currencySink(*this);
  481|  65.1k|    ures_getAllItemsWithFallback(currencyResource.getAlias(), gCurrencySpacingTag, currencySink, status);
  ------------------
  |  | 1658|  65.1k|#define ures_getAllItemsWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getAllItemsWithFallback)
  |  |  ------------------
  |  |  |  |  123|  65.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  65.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  65.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  482|  65.1k|    currencySink.resolveMissing();
  483|  65.1k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (483:9): [True: 4, False: 65.1k]
  ------------------
  484|  65.1k|}
_ZN6icu_7820DecimalFormatSymbols10initializeEv:
  487|  65.2k|DecimalFormatSymbols::initialize() {
  488|       |    /*
  489|       |     * These strings used to be in static arrays, but the HP/UX aCC compiler
  490|       |     * cannot initialize a static array with class constructors.
  491|       |     *  markus 2000may25
  492|       |     */
  493|  65.2k|    fSymbols[kDecimalSeparatorSymbol] = static_cast<char16_t>(0x2e); // '.' decimal separator
  494|  65.2k|    fSymbols[kGroupingSeparatorSymbol].remove();        //     group (thousands) separator
  495|  65.2k|    fSymbols[kPatternSeparatorSymbol] = static_cast<char16_t>(0x3b); // ';' pattern separator
  496|  65.2k|    fSymbols[kPercentSymbol] = static_cast<char16_t>(0x25);          // '%' percent sign
  497|  65.2k|    fSymbols[kZeroDigitSymbol] = static_cast<char16_t>(0x30);        // '0' native 0 digit
  498|  65.2k|    fSymbols[kOneDigitSymbol] = static_cast<char16_t>(0x31);         // '1' native 1 digit
  499|  65.2k|    fSymbols[kTwoDigitSymbol] = static_cast<char16_t>(0x32);         // '2' native 2 digit
  500|  65.2k|    fSymbols[kThreeDigitSymbol] = static_cast<char16_t>(0x33);       // '3' native 3 digit
  501|  65.2k|    fSymbols[kFourDigitSymbol] = static_cast<char16_t>(0x34);        // '4' native 4 digit
  502|  65.2k|    fSymbols[kFiveDigitSymbol] = static_cast<char16_t>(0x35);        // '5' native 5 digit
  503|  65.2k|    fSymbols[kSixDigitSymbol] = static_cast<char16_t>(0x36);         // '6' native 6 digit
  504|  65.2k|    fSymbols[kSevenDigitSymbol] = static_cast<char16_t>(0x37);       // '7' native 7 digit
  505|  65.2k|    fSymbols[kEightDigitSymbol] = static_cast<char16_t>(0x38);       // '8' native 8 digit
  506|  65.2k|    fSymbols[kNineDigitSymbol] = static_cast<char16_t>(0x39);        // '9' native 9 digit
  507|  65.2k|    fSymbols[kDigitSymbol] = static_cast<char16_t>(0x23);            // '#' pattern digit
  508|  65.2k|    fSymbols[kPlusSignSymbol] = static_cast<char16_t>(0x002b);       // '+' plus sign
  509|  65.2k|    fSymbols[kMinusSignSymbol] = static_cast<char16_t>(0x2d);        // '-' minus sign
  510|  65.2k|    fSymbols[kCurrencySymbol] = static_cast<char16_t>(0xa4);         // 'OX' currency symbol
  511|  65.2k|    fSymbols[kIntlCurrencySymbol].setTo(true, INTL_CURRENCY_SYMBOL_STR, 2);
  512|  65.2k|    fSymbols[kMonetarySeparatorSymbol] = static_cast<char16_t>(0x2e);  // '.' monetary decimal separator
  513|  65.2k|    fSymbols[kExponentialSymbol] = static_cast<char16_t>(0x45);        // 'E' exponential
  514|  65.2k|    fSymbols[kPerMillSymbol] = static_cast<char16_t>(0x2030);          // '%o' per mill
  515|  65.2k|    fSymbols[kPadEscapeSymbol] = static_cast<char16_t>(0x2a);          // '*' pad escape symbol
  516|  65.2k|    fSymbols[kInfinitySymbol] = static_cast<char16_t>(0x221e);         // 'oo' infinite
  517|  65.2k|    fSymbols[kNaNSymbol] = static_cast<char16_t>(0xfffd);              // SUB NaN
  518|  65.2k|    fSymbols[kSignificantDigitSymbol] = static_cast<char16_t>(0x0040); // '@' significant digit
  519|  65.2k|    fSymbols[kMonetaryGroupingSeparatorSymbol].remove(); // 
  520|  65.2k|    fSymbols[kExponentMultiplicationSymbol] = static_cast<char16_t>(0xd7); // 'x' multiplication symbol for exponents
  521|  65.2k|    fSymbols[kApproximatelySignSymbol] = u'~';          // '~' approximately sign
  522|  65.2k|    fIsCustomCurrencySymbol = false; 
  523|  65.2k|    fIsCustomIntlCurrencySymbol = false;
  524|  65.2k|    fCodePointZero = 0x30;
  525|  65.2k|    U_ASSERT(fCodePointZero == fSymbols[kZeroDigitSymbol].char32At(0));
  ------------------
  |  |   35|  65.2k|#   define U_ASSERT(exp) (void)0
  ------------------
  526|  65.2k|    currPattern = nullptr;
  527|  65.2k|    nsName[0] = 0;
  528|  65.2k|}
_ZN6icu_7820DecimalFormatSymbols11setCurrencyEPKDsR10UErrorCode:
  530|  65.1k|void DecimalFormatSymbols::setCurrency(const char16_t* currency, UErrorCode& status) {
  531|       |    // TODO: If this method is made public:
  532|       |    // - Adopt ICU4J behavior of not allowing currency to be null.
  533|       |    // - Also verify that the length of currency is 3.
  534|  65.1k|    if (!currency) {
  ------------------
  |  Branch (534:9): [True: 11.6k, False: 53.4k]
  ------------------
  535|  11.6k|        return;
  536|  11.6k|    }
  537|       |
  538|  53.4k|    UnicodeString tempStr;
  539|  53.4k|    uprv_getStaticCurrencyName(currency, locale.getName(), tempStr, status);
  ------------------
  |  | 1511|  53.4k|#define uprv_getStaticCurrencyName U_ICU_ENTRY_POINT_RENAME(uprv_getStaticCurrencyName)
  |  |  ------------------
  |  |  |  |  123|  53.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  53.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  53.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  540|  53.4k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (540:9): [True: 53.4k, False: 4]
  ------------------
  541|  53.4k|        fSymbols[kIntlCurrencySymbol].setTo(currency, 3);
  542|  53.4k|        fSymbols[kCurrencySymbol] = tempStr;
  543|  53.4k|    }
  544|       |
  545|  53.4k|    char cc[4]={0};
  546|  53.4k|    u_UCharsToChars(currency, cc, 3);
  ------------------
  |  |  211|  53.4k|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|  53.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  53.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  53.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  547|       |
  548|       |    /* An explicit currency was requested */
  549|       |    // TODO(ICU-13297): Move this data loading logic into a centralized place
  550|  53.4k|    UErrorCode localStatus = U_ZERO_ERROR;
  551|  53.4k|    LocalUResourceBundlePointer rbTop(ures_open(U_ICUDATA_CURR, locale.getName(), &localStatus));
  ------------------
  |  | 1691|  53.4k|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|  53.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  53.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  53.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  LocalUResourceBundlePointer rbTop(ures_open(U_ICUDATA_CURR, locale.getName(), &localStatus));
  ------------------
  |  |   21|  53.4k|#define U_ICUDATA_CURR U_ICUDATA_NAME U_TREE_SEPARATOR_STRING "curr"
  |  |  ------------------
  |  |  |  |  154|  53.4k|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  ------------------
  552|  53.4k|    LocalUResourceBundlePointer rb(
  553|  53.4k|        ures_getByKeyWithFallback(rbTop.getAlias(), "Currencies", nullptr, &localStatus));
  ------------------
  |  | 1662|  53.4k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  53.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  53.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  53.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  554|  53.4k|    ures_getByKeyWithFallback(rb.getAlias(), cc, rb.getAlias(), &localStatus);
  ------------------
  |  | 1662|  53.4k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  53.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  53.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  53.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  555|  53.4k|    if(U_SUCCESS(localStatus) && ures_getSize(rb.getAlias())>2) { // the length is 3 if more data is present
  ------------------
  |  | 1674|  53.1k|#define ures_getSize U_ICU_ENTRY_POINT_RENAME(ures_getSize)
  |  |  ------------------
  |  |  |  |  123|  53.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  53.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  53.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (555:8): [True: 53.1k, False: 304]
  |  Branch (555:34): [True: 157, False: 53.0k]
  ------------------
  556|    157|        ures_getByIndex(rb.getAlias(), 2, rb.getAlias(), &localStatus);
  ------------------
  |  | 1660|    157|#define ures_getByIndex U_ICU_ENTRY_POINT_RENAME(ures_getByIndex)
  |  |  ------------------
  |  |  |  |  123|    157|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    157|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    157|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  557|    157|        int32_t currPatternLen = 0;
  558|    157|        currPattern =
  559|    157|            ures_getStringByIndex(rb.getAlias(), static_cast<int32_t>(0), &currPatternLen, &localStatus);
  ------------------
  |  | 1676|    157|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|    157|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    157|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    157|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  560|    157|        UnicodeString decimalSep =
  561|    157|            ures_getUnicodeStringByIndex(rb.getAlias(), static_cast<int32_t>(1), &localStatus);
  562|    157|        UnicodeString groupingSep =
  563|    157|            ures_getUnicodeStringByIndex(rb.getAlias(), static_cast<int32_t>(2), &localStatus);
  564|    157|        if(U_SUCCESS(localStatus)){
  ------------------
  |  Branch (564:12): [True: 157, False: 0]
  ------------------
  565|    157|            fSymbols[kMonetaryGroupingSeparatorSymbol] = groupingSep;
  566|    157|            fSymbols[kMonetarySeparatorSymbol] = decimalSep;
  567|       |            //pattern.setTo(true, currPattern, currPatternLen);
  568|    157|        }
  569|    157|    }
  570|       |    /* else An explicit currency was requested and is unknown or locale data is malformed. */
  571|       |    /* ucurr_* API will get the correct value later on. */
  572|  53.4k|}
_ZNK6icu_7820DecimalFormatSymbols28getPatternForCurrencySpacingE16UCurrencySpacingaR10UErrorCode:
  582|   390k|                                                 UErrorCode& status) const {
  583|   390k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (583:9): [True: 0, False: 390k]
  ------------------
  584|      0|      return fNoSymbol;  // always empty.
  585|      0|    }
  586|   390k|    if (beforeCurrency) {
  ------------------
  |  Branch (586:9): [True: 195k, False: 195k]
  ------------------
  587|   195k|      return currencySpcBeforeSym[static_cast<int32_t>(type)];
  588|   195k|    } else {
  589|   195k|      return currencySpcAfterSym[static_cast<int32_t>(type)];
  590|   195k|    }
  591|   390k|}
_ZN6icu_7820DecimalFormatSymbols28setPatternForCurrencySpacingE16UCurrencySpacingaRKNS_13UnicodeStringE:
  596|   390k|                                             const UnicodeString& pattern) {
  597|   390k|  if (beforeCurrency) {
  ------------------
  |  Branch (597:7): [True: 195k, False: 195k]
  ------------------
  598|   195k|    currencySpcBeforeSym[static_cast<int32_t>(type)] = pattern;
  599|   195k|  } else {
  600|   195k|    currencySpcAfterSym[static_cast<int32_t>(type)] = pattern;
  601|   195k|  }
  602|   390k|}
dcfmtsym.cpp:_ZN6icu_7812_GLOBAL__N_117DecFmtSymDataSinkC2ERNS_20DecimalFormatSymbolsE:
  235|  65.1k|    DecFmtSymDataSink(DecimalFormatSymbols& _dfs) : dfs(_dfs) {
  236|  65.1k|        uprv_memset(seenSymbol, false, sizeof(seenSymbol));
  ------------------
  |  |  100|  65.1k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  65.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  237|  65.1k|    }
dcfmtsym.cpp:_ZN6icu_7812_GLOBAL__N_117DecFmtSymDataSink3putEPKcRNS_13ResourceValueEaR10UErrorCode:
  241|   181k|            UErrorCode &errorCode) override {
  242|   181k|        ResourceTable symbolsTable = value.getTable(errorCode);
  243|   181k|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (243:13): [True: 0, False: 181k]
  ------------------
  244|  1.76M|        for (int32_t j = 0; symbolsTable.getKeyAndValue(j, key, value); ++j) {
  ------------------
  |  Branch (244:29): [True: 1.58M, False: 181k]
  ------------------
  245|  21.9M|            for (int32_t i=0; i<DecimalFormatSymbols::kFormatSymbolCount; i++) {
  ------------------
  |  Branch (245:31): [True: 21.7M, False: 188k]
  ------------------
  246|  21.7M|                if (gNumberElementKeys[i] != nullptr && uprv_strcmp(key, gNumberElementKeys[i]) == 0) {
  ------------------
  |  |   38|  11.6M|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  11.6M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (246:21): [True: 11.6M, False: 10.1M]
  |  Branch (246:57): [True: 1.39M, False: 10.2M]
  ------------------
  247|  1.39M|                    if (!seenSymbol[i]) {
  ------------------
  |  Branch (247:25): [True: 716k, False: 676k]
  ------------------
  248|   716k|                        seenSymbol[i] = true;
  249|   716k|                        dfs.setSymbol(
  250|   716k|                            static_cast<DecimalFormatSymbols::ENumberFormatSymbol>(i),
  251|   716k|                            value.getUnicodeString(errorCode));
  252|   716k|                        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (252:29): [True: 0, False: 716k]
  ------------------
  253|   716k|                    }
  254|  1.39M|                    break;
  255|  1.39M|                }
  256|  21.7M|            }
  257|  1.58M|        }
  258|   181k|    }
dcfmtsym.cpp:_ZN6icu_7812_GLOBAL__N_117DecFmtSymDataSink7seenAllEv:
  261|  65.1k|    UBool seenAll() {
  262|  68.2k|        for (int32_t i=0; i<DecimalFormatSymbols::kFormatSymbolCount; i++) {
  ------------------
  |  Branch (262:27): [True: 68.2k, False: 0]
  ------------------
  263|  68.2k|            if (!seenSymbol[i]) {
  ------------------
  |  Branch (263:17): [True: 65.1k, False: 3.07k]
  ------------------
  264|  65.1k|                return false;
  265|  65.1k|            }
  266|  68.2k|        }
  267|      0|        return true;
  268|  65.1k|    }
dcfmtsym.cpp:_ZN6icu_7812_GLOBAL__N_117DecFmtSymDataSink32resolveMissingMonetarySeparatorsEPKNS_13UnicodeStringE:
  272|  65.1k|    void resolveMissingMonetarySeparators(const UnicodeString* fSymbols) {
  273|  65.1k|        if (!seenSymbol[DecimalFormatSymbols::kMonetarySeparatorSymbol]) {
  ------------------
  |  Branch (273:13): [True: 65.1k, False: 20]
  ------------------
  274|  65.1k|            dfs.setSymbol(
  275|  65.1k|                DecimalFormatSymbols::kMonetarySeparatorSymbol,
  276|  65.1k|                fSymbols[DecimalFormatSymbols::kDecimalSeparatorSymbol]);
  277|  65.1k|        }
  278|  65.1k|        if (!seenSymbol[DecimalFormatSymbols::kMonetaryGroupingSeparatorSymbol]) {
  ------------------
  |  Branch (278:13): [True: 65.1k, False: 18]
  ------------------
  279|  65.1k|            dfs.setSymbol(
  280|  65.1k|                DecimalFormatSymbols::kMonetaryGroupingSeparatorSymbol,
  281|  65.1k|                fSymbols[DecimalFormatSymbols::kGroupingSeparatorSymbol]);
  282|  65.1k|        }
  283|  65.1k|    }
dcfmtsym.cpp:_ZN6icu_7812_GLOBAL__N_119CurrencySpacingSinkC2ERNS_20DecimalFormatSymbolsE:
  292|  65.1k|        : dfs(_dfs), hasBeforeCurrency(false), hasAfterCurrency(false) {}
dcfmtsym.cpp:_ZN6icu_7812_GLOBAL__N_119CurrencySpacingSink3putEPKcRNS_13ResourceValueEaR10UErrorCode:
  296|  65.1k|            UErrorCode &errorCode) override {
  297|  65.1k|        ResourceTable spacingTypesTable = value.getTable(errorCode);
  298|   195k|        for (int32_t i = 0; spacingTypesTable.getKeyAndValue(i, key, value); ++i) {
  ------------------
  |  Branch (298:29): [True: 130k, False: 65.1k]
  ------------------
  299|   130k|            UBool beforeCurrency;
  300|   130k|            if (uprv_strcmp(key, gBeforeCurrencyTag) == 0) {
  ------------------
  |  |   38|   130k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   130k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (300:17): [True: 65.1k, False: 65.1k]
  ------------------
  301|  65.1k|                beforeCurrency = true;
  302|  65.1k|                hasBeforeCurrency = true;
  303|  65.1k|            } else if (uprv_strcmp(key, gAfterCurrencyTag) == 0) {
  ------------------
  |  |   38|  65.1k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  65.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (303:24): [True: 65.1k, False: 0]
  ------------------
  304|  65.1k|                beforeCurrency = false;
  305|  65.1k|                hasAfterCurrency = true;
  306|  65.1k|            } else {
  307|      0|                continue;
  308|      0|            }
  309|       |
  310|   130k|            ResourceTable patternsTable = value.getTable(errorCode);
  311|   521k|            for (int32_t j = 0; patternsTable.getKeyAndValue(j, key, value); ++j) {
  ------------------
  |  Branch (311:33): [True: 390k, False: 130k]
  ------------------
  312|   390k|                UCurrencySpacing pattern;
  313|   390k|                if (uprv_strcmp(key, gCurrencyMatchTag) == 0) {
  ------------------
  |  |   38|   390k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   390k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (313:21): [True: 130k, False: 260k]
  ------------------
  314|   130k|                    pattern = UNUM_CURRENCY_MATCH;
  315|   260k|                } else if (uprv_strcmp(key, gCurrencySudMatchTag) == 0) {
  ------------------
  |  |   38|   260k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   260k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (315:28): [True: 130k, False: 130k]
  ------------------
  316|   130k|                    pattern = UNUM_CURRENCY_SURROUNDING_MATCH;
  317|   130k|                } else if (uprv_strcmp(key, gCurrencyInsertBtnTag) == 0) {
  ------------------
  |  |   38|   130k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   130k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (317:28): [True: 130k, False: 0]
  ------------------
  318|   130k|                    pattern = UNUM_CURRENCY_INSERT;
  319|   130k|                } else {
  320|      0|                    continue;
  321|      0|                }
  322|       |
  323|   390k|                const UnicodeString& current = dfs.getPatternForCurrencySpacing(
  324|   390k|                    pattern, beforeCurrency, errorCode);
  325|   390k|                if (current.isEmpty()) {
  ------------------
  |  Branch (325:21): [True: 390k, False: 0]
  ------------------
  326|   390k|                    dfs.setPatternForCurrencySpacing(
  327|   390k|                        pattern, beforeCurrency, value.getUnicodeString(errorCode));
  328|   390k|                }
  329|   390k|            }
  330|   130k|        }
  331|  65.1k|    }
dcfmtsym.cpp:_ZN6icu_7812_GLOBAL__N_119CurrencySpacingSink14resolveMissingEv:
  333|  65.1k|    void resolveMissing() {
  334|       |        // For consistency with Java, this method overwrites everything with the defaults unless
  335|       |        // both beforeCurrency and afterCurrency were found in CLDR.
  336|  65.1k|        static const char* defaults[] = { "[:letter:]", "[:digit:]", " " };
  337|  65.1k|        if (!hasBeforeCurrency || !hasAfterCurrency) {
  ------------------
  |  Branch (337:13): [True: 4, False: 65.1k]
  |  Branch (337:35): [True: 0, False: 65.1k]
  ------------------
  338|     16|            for (int32_t pattern = 0; pattern < UNUM_CURRENCY_SPACING_COUNT; pattern++) {
  ------------------
  |  Branch (338:39): [True: 12, False: 4]
  ------------------
  339|     12|                dfs.setPatternForCurrencySpacing(static_cast<UCurrencySpacing>(pattern),
  340|     12|                    false, UnicodeString(defaults[pattern], -1, US_INV));
  ------------------
  |  |   98|     12|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  341|     12|            }
  342|     16|            for (int32_t pattern = 0; pattern < UNUM_CURRENCY_SPACING_COUNT; pattern++) {
  ------------------
  |  Branch (342:39): [True: 12, False: 4]
  ------------------
  343|     12|                dfs.setPatternForCurrencySpacing(static_cast<UCurrencySpacing>(pattern),
  344|     12|                    true, UnicodeString(defaults[pattern], -1, US_INV));
  ------------------
  |  |   98|     12|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  345|     12|            }
  346|      4|        }
  347|  65.1k|    }

_ZN6icu_7813DecimalFormatC2ERKNS_13UnicodeStringEPNS_20DecimalFormatSymbolsE18UNumberFormatStyleR10UErrorCode:
   78|  9.23k|        : DecimalFormat(symbolsToAdopt, status) {
   79|  9.23k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (79:9): [True: 0, False: 9.23k]
  ------------------
   80|       |    // If choice is a currency type, ignore the rounding information.
   81|  9.23k|    if (style == UNumberFormatStyle::UNUM_CURRENCY ||
  ------------------
  |  Branch (81:9): [True: 0, False: 9.23k]
  ------------------
   82|  9.23k|        style == UNumberFormatStyle::UNUM_CURRENCY_ISO ||
  ------------------
  |  Branch (82:9): [True: 0, False: 9.23k]
  ------------------
   83|  9.23k|        style == UNumberFormatStyle::UNUM_CURRENCY_ACCOUNTING ||
  ------------------
  |  Branch (83:9): [True: 0, False: 9.23k]
  ------------------
   84|  9.23k|        style == UNumberFormatStyle::UNUM_CASH_CURRENCY ||
  ------------------
  |  Branch (84:9): [True: 0, False: 9.23k]
  ------------------
   85|  9.23k|        style == UNumberFormatStyle::UNUM_CURRENCY_STANDARD ||
  ------------------
  |  Branch (85:9): [True: 0, False: 9.23k]
  ------------------
   86|  9.23k|        style == UNumberFormatStyle::UNUM_CURRENCY_PLURAL) {
  ------------------
  |  Branch (86:9): [True: 0, False: 9.23k]
  ------------------
   87|      0|        setPropertiesFromPattern(pattern, IGNORE_ROUNDING_ALWAYS, status);
   88|  9.23k|    } else {
   89|  9.23k|        setPropertiesFromPattern(pattern, IGNORE_ROUNDING_IF_CURRENCY, status);
   90|  9.23k|    }
   91|       |    // Note: in Java, CurrencyPluralInfo is set in NumberFormat.java, but in C++, it is not set there,
   92|       |    // so we have to set it here.
   93|  9.23k|    if (style == UNumberFormatStyle::UNUM_CURRENCY_PLURAL) {
  ------------------
  |  Branch (93:9): [True: 0, False: 9.23k]
  ------------------
   94|      0|        LocalPointer<CurrencyPluralInfo> cpi(
   95|      0|                new CurrencyPluralInfo(fields->symbols->getLocale(), status),
   96|      0|                status);
   97|      0|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (97:13): [True: 0, False: 0]
  ------------------
   98|      0|        fields->properties.currencyPluralInfo.fPtr.adoptInstead(cpi.orphan());
   99|      0|    }
  100|  9.23k|    touch(status);
  101|  9.23k|}
_ZN6icu_7813DecimalFormatC2EPKNS_20DecimalFormatSymbolsER10UErrorCode:
  103|  51.2k|DecimalFormat::DecimalFormat(const DecimalFormatSymbols* symbolsToAdopt, UErrorCode& status) {
  104|       |    // we must take ownership of symbolsToAdopt, even in a failure case.
  105|  51.2k|    LocalPointer<const DecimalFormatSymbols> adoptedSymbols(symbolsToAdopt);
  106|  51.2k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (106:9): [True: 0, False: 51.2k]
  ------------------
  107|      0|        return;
  108|      0|    }
  109|  51.2k|    fields = new DecimalFormatFields();
  110|  51.2k|    if (fields == nullptr) {
  ------------------
  |  Branch (110:9): [True: 0, False: 51.2k]
  ------------------
  111|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  112|      0|        return;
  113|      0|    }
  114|  51.2k|    if (adoptedSymbols.isNull()) {
  ------------------
  |  Branch (114:9): [True: 41.9k, False: 9.23k]
  ------------------
  115|  41.9k|        fields->symbols.adoptInsteadAndCheckErrorCode(new DecimalFormatSymbols(status), status);
  116|  41.9k|    } else {
  117|  9.23k|        fields->symbols.adoptInsteadAndCheckErrorCode(adoptedSymbols.orphan(), status);
  118|  9.23k|    }
  119|  51.2k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (119:9): [True: 0, False: 51.2k]
  ------------------
  120|      0|        delete fields;
  121|      0|        fields = nullptr;
  122|      0|    }
  123|  51.2k|}
_ZN6icu_7813DecimalFormat15setGroupingUsedEa:
  371|  57.3k|void DecimalFormat::setGroupingUsed(UBool enabled) {
  372|  57.3k|    if (fields == nullptr) {
  ------------------
  |  Branch (372:9): [True: 0, False: 57.3k]
  ------------------
  373|      0|        return;
  374|      0|    }
  375|  57.3k|    if (UBOOL_TO_BOOL(enabled) == fields->properties.groupingUsed) { return; }
  ------------------
  |  |   39|  57.3k|#define UBOOL_TO_BOOL(b) b
  ------------------
  |  Branch (375:9): [True: 20.5k, False: 36.7k]
  ------------------
  376|  36.7k|    NumberFormat::setGroupingUsed(enabled); // to set field for compatibility
  377|  36.7k|    fields->properties.groupingUsed = enabled;
  378|  36.7k|    touchNoError();
  379|  36.7k|}
_ZN6icu_7813DecimalFormat19setParseIntegerOnlyEa:
  381|  57.3k|void DecimalFormat::setParseIntegerOnly(UBool value) {
  382|  57.3k|    if (fields == nullptr) {
  ------------------
  |  Branch (382:9): [True: 0, False: 57.3k]
  ------------------
  383|      0|        return;
  384|      0|    }
  385|  57.3k|    if (UBOOL_TO_BOOL(value) == fields->properties.parseIntegerOnly) { return; }
  ------------------
  |  |   39|  57.3k|#define UBOOL_TO_BOOL(b) b
  ------------------
  |  Branch (385:9): [True: 0, False: 57.3k]
  ------------------
  386|  57.3k|    NumberFormat::setParseIntegerOnly(value); // to set field for compatibility
  387|  57.3k|    fields->properties.parseIntegerOnly = value;
  388|  57.3k|    touchNoError();
  389|  57.3k|}
_ZN6icu_7813DecimalFormatC2ERKNS_13UnicodeStringERKNS_20DecimalFormatSymbolsER10UErrorCode:
  413|  41.9k|        : DecimalFormat(nullptr, status) {
  414|  41.9k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (414:9): [True: 0, False: 41.9k]
  ------------------
  415|  41.9k|    LocalPointer<DecimalFormatSymbols> dfs(new DecimalFormatSymbols(symbols), status);
  416|  41.9k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (416:9): [True: 0, False: 41.9k]
  ------------------
  417|       |        // If we failed to allocate DecimalFormatSymbols, then release fields and its members.
  418|       |        // We must have a fully complete fields object, we cannot have partially populated members.
  419|      0|        delete fields;
  420|      0|        fields = nullptr;
  421|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  422|      0|        return;
  423|      0|    }
  424|  41.9k|    fields->symbols.adoptInstead(dfs.orphan());
  425|  41.9k|    setPropertiesFromPattern(pattern, IGNORE_ROUNDING_IF_CURRENCY, status);
  426|  41.9k|    touch(status);
  427|  41.9k|}
_ZN6icu_7813DecimalFormatC2ERKS0_:
  429|  57.3k|DecimalFormat::DecimalFormat(const DecimalFormat& source) : NumberFormat(source) {
  430|       |    // If the object that we are copying from is invalid, no point in going further.
  431|  57.3k|    if (source.fields == nullptr) {
  ------------------
  |  Branch (431:9): [True: 0, False: 57.3k]
  ------------------
  432|      0|        return;
  433|      0|    }
  434|       |    // Note: it is not safe to copy fields->formatter or fWarehouse directly because fields->formatter might have
  435|       |    // dangling pointers to fields inside fWarehouse. The safe thing is to re-construct fields->formatter from
  436|       |    // the property bag, despite being somewhat slower.
  437|  57.3k|    fields = new DecimalFormatFields(source.fields->properties);
  438|  57.3k|    if (fields == nullptr) {
  ------------------
  |  Branch (438:9): [True: 0, False: 57.3k]
  ------------------
  439|      0|        return; // no way to report an error.
  440|      0|    }
  441|  57.3k|    UErrorCode status = U_ZERO_ERROR;
  442|  57.3k|    fields->symbols.adoptInsteadAndCheckErrorCode(new DecimalFormatSymbols(*source.getDecimalFormatSymbols()), status);
  443|       |    // In order to simplify error handling logic in the various getters/setters/etc, we do not allow
  444|       |    // any partially populated DecimalFormatFields object. We must have a fully complete fields object
  445|       |    // or else we set it to nullptr.
  446|  57.3k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (446:9): [True: 0, False: 57.3k]
  ------------------
  447|      0|        delete fields;
  448|      0|        fields = nullptr;
  449|      0|        return;
  450|      0|    }
  451|  57.3k|    touch(status);
  452|  57.3k|}
_ZN6icu_7813DecimalFormatD2Ev:
  480|   108k|DecimalFormat::~DecimalFormat() {
  481|   108k|    if (fields == nullptr) { return; }
  ------------------
  |  Branch (481:9): [True: 0, False: 108k]
  ------------------
  482|       |
  483|   108k|    delete fields->atomicParser.exchange(nullptr);
  484|   108k|    delete fields->atomicCurrencyParser.exchange(nullptr);
  485|   108k|    delete fields;
  486|   108k|}
_ZNK6icu_7813DecimalFormat5cloneEv:
  488|  57.3k|DecimalFormat* DecimalFormat::clone() const {
  489|       |    // can only clone valid objects.
  490|  57.3k|    if (fields == nullptr) {
  ------------------
  |  Branch (490:9): [True: 0, False: 57.3k]
  ------------------
  491|      0|        return nullptr;
  492|      0|    }
  493|  57.3k|    LocalPointer<DecimalFormat> df(new DecimalFormat(*this));
  494|  57.3k|    if (df.isValid() && df->fields != nullptr) {
  ------------------
  |  Branch (494:9): [True: 57.3k, False: 0]
  |  Branch (494:25): [True: 57.3k, False: 0]
  ------------------
  495|  57.3k|        return df.orphan();
  496|  57.3k|    }
  497|      0|    return nullptr;
  498|  57.3k|}
_ZNK6icu_7813DecimalFormat23getDecimalFormatSymbolsEv:
  793|   512k|const DecimalFormatSymbols* DecimalFormat::getDecimalFormatSymbols() const {
  794|   512k|    if (fields == nullptr) {
  ------------------
  |  Branch (794:9): [True: 0, False: 512k]
  ------------------
  795|      0|        return nullptr;
  796|      0|    }
  797|   512k|    if (!fields->symbols.isNull()) {
  ------------------
  |  Branch (797:9): [True: 108k, False: 404k]
  ------------------
  798|   108k|        return fields->symbols.getAlias();
  799|   404k|    } else {
  800|   404k|        return fields->formatter.getDecimalFormatSymbols();
  801|   404k|    }
  802|   512k|}
_ZN6icu_7813DecimalFormat30setDecimalSeparatorAlwaysShownEa:
 1238|  57.3k|void DecimalFormat::setDecimalSeparatorAlwaysShown(UBool newValue) {
 1239|  57.3k|    if (fields == nullptr) { return; }
  ------------------
  |  Branch (1239:9): [True: 0, False: 57.3k]
  ------------------
 1240|  57.3k|    if (UBOOL_TO_BOOL(newValue) == fields->properties.decimalSeparatorAlwaysShown) { return; }
  ------------------
  |  |   39|  57.3k|#define UBOOL_TO_BOOL(b) b
  ------------------
  |  Branch (1240:9): [True: 57.3k, False: 0]
  ------------------
 1241|      0|    fields->properties.decimalSeparatorAlwaysShown = newValue;
 1242|      0|    touchNoError();
 1243|      0|}
_ZN6icu_7813DecimalFormat24setMinimumFractionDigitsEi:
 1427|  57.3k|void DecimalFormat::setMinimumFractionDigits(int32_t newValue) {
 1428|  57.3k|    if (fields == nullptr) { return; }
  ------------------
  |  Branch (1428:9): [True: 0, False: 57.3k]
  ------------------
 1429|  57.3k|    if (newValue == fields->properties.minimumFractionDigits) { return; }
  ------------------
  |  Branch (1429:9): [True: 57.3k, False: 0]
  ------------------
 1430|       |    // For backwards compatibility, conflicting min/max need to keep the most recent setting.
 1431|      0|    int32_t max = fields->properties.maximumFractionDigits;
 1432|      0|    if (max >= 0 && max < newValue) {
  ------------------
  |  Branch (1432:9): [True: 0, False: 0]
  |  Branch (1432:21): [True: 0, False: 0]
  ------------------
 1433|      0|        fields->properties.maximumFractionDigits = newValue;
 1434|      0|    }
 1435|      0|    fields->properties.minimumFractionDigits = newValue;
 1436|      0|    touchNoError();
 1437|      0|}
_ZN6icu_7813DecimalFormat5touchER10UErrorCode:
 1603|   202k|void DecimalFormat::touch(UErrorCode& status) {
 1604|   202k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1604:9): [True: 0, False: 202k]
  ------------------
 1605|      0|        return;
 1606|      0|    }
 1607|   202k|    if (fields == nullptr) {
  ------------------
  |  Branch (1607:9): [True: 0, False: 202k]
  ------------------
 1608|       |        // We only get here if an OOM error happened during construction, copy construction, assignment, or modification.
 1609|       |        // For regular construction, the caller should have checked the status variable for errors.
 1610|       |        // For copy construction, there is unfortunately nothing to report the error, so we need to guard against
 1611|       |        // this possible bad state here and set the status to an error.
 1612|      0|        status = U_MEMORY_ALLOCATION_ERROR;
 1613|      0|        return;
 1614|      0|    }
 1615|       |
 1616|       |    // In C++, fields->symbols (or, if it's null, the DecimalFormatSymbols owned by the underlying LocalizedNumberFormatter)
 1617|       |    // is the source of truth for the locale.
 1618|   202k|    const DecimalFormatSymbols* symbols = getDecimalFormatSymbols();
 1619|   202k|    Locale locale = symbols->getLocale();
 1620|       |    
 1621|       |    // Note: The formatter is relatively cheap to create, and we need it to populate fields->exportedProperties,
 1622|       |    // so automatically recompute it here. The parser is a bit more expensive and is not needed until the
 1623|       |    // parse method is called, so defer that until needed.
 1624|       |    // TODO: Only update the pieces that changed instead of re-computing the whole formatter?
 1625|       | 
 1626|       |    // Since memory has already been allocated for the formatter, we can move assign a stack-allocated object
 1627|       |    // and don't need to call new. (Which is slower and could possibly fail).
 1628|       |    // [Note that "symbols" above might point to the DecimalFormatSymbols object owned by fields->formatter.
 1629|       |    // That's okay, because NumberPropertyMapper::create() will clone it before fields->formatter's assignment
 1630|       |    // operator deletes it.  But it does mean that "symbols" can't be counted on to be good after this line.]
 1631|   202k|    fields->formatter = NumberPropertyMapper::create(
 1632|   202k|        fields->properties, *symbols, fields->warehouse, fields->exportedProperties, status
 1633|   202k|    ).locale(locale);
 1634|   202k|    fields->symbols.adoptInstead(nullptr); // the fields->symbols property is only temporary, until we can copy it into a new LocalizedNumberFormatter
 1635|       |    
 1636|       |    // Do this after fields->exportedProperties are set up
 1637|   202k|    setupFastFormat();
 1638|       |
 1639|       |    // Delete the parsers if they were made previously
 1640|   202k|    delete fields->atomicParser.exchange(nullptr);
 1641|   202k|    delete fields->atomicCurrencyParser.exchange(nullptr);
 1642|       |
 1643|       |    // In order for the getters to work, we need to populate some fields in NumberFormat.
 1644|   202k|    NumberFormat::setCurrency(fields->exportedProperties.currency.get(status).getISOCurrency(), status);
 1645|   202k|    NumberFormat::setMaximumIntegerDigits(fields->exportedProperties.maximumIntegerDigits);
 1646|   202k|    NumberFormat::setMinimumIntegerDigits(fields->exportedProperties.minimumIntegerDigits);
 1647|   202k|    NumberFormat::setMaximumFractionDigits(fields->exportedProperties.maximumFractionDigits);
 1648|   202k|    NumberFormat::setMinimumFractionDigits(fields->exportedProperties.minimumFractionDigits);
 1649|       |    // fImpl->properties, not fields->exportedProperties, since this information comes from the pattern:
 1650|   202k|    NumberFormat::setGroupingUsed(fields->properties.groupingUsed);
 1651|   202k|}
_ZN6icu_7813DecimalFormat12touchNoErrorEv:
 1653|  94.0k|void DecimalFormat::touchNoError() {
 1654|  94.0k|    UErrorCode localStatus = U_ZERO_ERROR;
 1655|  94.0k|    touch(localStatus);
 1656|  94.0k|}
_ZN6icu_7813DecimalFormat24setPropertiesFromPatternERKNS_13UnicodeStringEiR10UErrorCode:
 1659|  51.2k|                                             UErrorCode& status) {
 1660|  51.2k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1660:9): [True: 51.2k, False: 0]
  ------------------
 1661|       |        // Cast workaround to get around putting the enum in the public header file
 1662|  51.2k|        auto actualIgnoreRounding = static_cast<IgnoreRounding>(ignoreRounding);
 1663|  51.2k|        PatternParser::parseToExistingProperties(pattern, fields->properties,  actualIgnoreRounding, status);
 1664|  51.2k|    }
 1665|  51.2k|}
_ZN6icu_7813DecimalFormat15setupFastFormatEv:
 1767|   202k|void DecimalFormat::setupFastFormat() {
 1768|       |    // Check the majority of properties:
 1769|   202k|    if (!fields->properties.equalsDefaultExceptFastFormat()) {
  ------------------
  |  Branch (1769:9): [True: 7.00k, False: 195k]
  ------------------
 1770|  7.00k|        trace("no fast format: equality\n");
  ------------------
  |  | 1765|  7.00k|#define trace(x) void(x)
  ------------------
 1771|  7.00k|        fields->canUseFastFormat = false;
 1772|  7.00k|        return;
 1773|  7.00k|    }
 1774|       |
 1775|       |    // Now check the remaining properties.
 1776|       |    // Nontrivial affixes:
 1777|   195k|    UBool trivialPP = fields->properties.positivePrefixPattern.isEmpty();
 1778|   195k|    UBool trivialPS = fields->properties.positiveSuffixPattern.isEmpty();
 1779|   195k|    UBool trivialNP = fields->properties.negativePrefixPattern.isBogus() || (
  ------------------
  |  Branch (1779:23): [True: 195k, False: 0]
  ------------------
 1780|      0|            fields->properties.negativePrefixPattern.length() == 1 &&
  ------------------
  |  Branch (1780:13): [True: 0, False: 0]
  ------------------
 1781|      0|            fields->properties.negativePrefixPattern.charAt(0) == u'-');
  ------------------
  |  Branch (1781:13): [True: 0, False: 0]
  ------------------
 1782|   195k|    UBool trivialNS = fields->properties.negativeSuffixPattern.isEmpty();
 1783|   195k|    if (!trivialPP || !trivialPS || !trivialNP || !trivialNS) {
  ------------------
  |  Branch (1783:9): [True: 0, False: 195k]
  |  Branch (1783:23): [True: 0, False: 195k]
  |  Branch (1783:37): [True: 0, False: 195k]
  |  Branch (1783:51): [True: 0, False: 195k]
  ------------------
 1784|      0|        trace("no fast format: affixes\n");
  ------------------
  |  | 1765|      0|#define trace(x) void(x)
  ------------------
 1785|      0|        fields->canUseFastFormat = false;
 1786|      0|        return;
 1787|      0|    }
 1788|       |
 1789|   195k|    const DecimalFormatSymbols* symbols = getDecimalFormatSymbols();
 1790|       |    
 1791|       |    // Grouping (secondary grouping is forbidden in equalsDefaultExceptFastFormat):
 1792|   195k|    bool groupingUsed = fields->properties.groupingUsed;
 1793|   195k|    int32_t groupingSize = fields->properties.groupingSize;
 1794|   195k|    bool unusualGroupingSize = groupingSize > 0 && groupingSize != 3;
  ------------------
  |  Branch (1794:32): [True: 150k, False: 45.3k]
  |  Branch (1794:52): [True: 199, False: 150k]
  ------------------
 1795|   195k|    const UnicodeString& groupingString = symbols->getConstSymbol(DecimalFormatSymbols::kGroupingSeparatorSymbol);
 1796|   195k|    if (groupingUsed && (unusualGroupingSize || groupingString.length() != 1)) {
  ------------------
  |  Branch (1796:9): [True: 80.0k, False: 115k]
  |  Branch (1796:26): [True: 75, False: 79.9k]
  |  Branch (1796:49): [True: 0, False: 79.9k]
  ------------------
 1797|     75|        trace("no fast format: grouping\n");
  ------------------
  |  | 1765|     75|#define trace(x) void(x)
  ------------------
 1798|     75|        fields->canUseFastFormat = false;
 1799|     75|        return;
 1800|     75|    }
 1801|       |
 1802|       |    // Integer length:
 1803|   195k|    int32_t minInt = fields->exportedProperties.minimumIntegerDigits;
 1804|   195k|    int32_t maxInt = fields->exportedProperties.maximumIntegerDigits;
 1805|       |    // Fastpath supports up to only 10 digits (length of INT32_MIN)
 1806|   195k|    if (minInt > 10) {
  ------------------
  |  Branch (1806:9): [True: 0, False: 195k]
  ------------------
 1807|      0|        trace("no fast format: integer\n");
  ------------------
  |  | 1765|      0|#define trace(x) void(x)
  ------------------
 1808|      0|        fields->canUseFastFormat = false;
 1809|      0|        return;
 1810|      0|    }
 1811|       |
 1812|       |    // Fraction length (no fraction part allowed in fast path):
 1813|   195k|    int32_t minFrac = fields->exportedProperties.minimumFractionDigits;
 1814|   195k|    if (minFrac > 0) {
  ------------------
  |  Branch (1814:9): [True: 15.7k, False: 179k]
  ------------------
 1815|  15.7k|        trace("no fast format: fraction\n");
  ------------------
  |  | 1765|  15.7k|#define trace(x) void(x)
  ------------------
 1816|  15.7k|        fields->canUseFastFormat = false;
 1817|  15.7k|        return;
 1818|  15.7k|    }
 1819|       |
 1820|       |    // Other symbols:
 1821|   179k|    const UnicodeString& minusSignString = symbols->getConstSymbol(DecimalFormatSymbols::kMinusSignSymbol);
 1822|   179k|    UChar32 codePointZero = symbols->getCodePointZero();
 1823|   179k|    if (minusSignString.length() != 1 || U16_LENGTH(codePointZero) != 1) {
  ------------------
  |  |  141|   168k|#define U16_LENGTH(c) ((uint32_t)(c)<=0xffff ? 1 : 2)
  |  |  ------------------
  |  |  |  Branch (141:24): [True: 167k, False: 939]
  |  |  ------------------
  ------------------
  |  Branch (1823:9): [True: 10.8k, False: 168k]
  |  Branch (1823:42): [True: 939, False: 167k]
  ------------------
 1824|  11.8k|        trace("no fast format: symbols\n");
  ------------------
  |  | 1765|  11.8k|#define trace(x) void(x)
  ------------------
 1825|  11.8k|        fields->canUseFastFormat = false;
 1826|  11.8k|        return;
 1827|  11.8k|    }
 1828|       |
 1829|       |    // Good to go!
 1830|   167k|    trace("can use fast format!\n");
  ------------------
  |  | 1765|   167k|#define trace(x) void(x)
  ------------------
 1831|   167k|    fields->canUseFastFormat = true;
 1832|   167k|    fields->fastData.cpZero = static_cast<char16_t>(codePointZero);
 1833|   167k|    fields->fastData.cpGroupingSeparator = groupingUsed && groupingSize == 3 ? groupingString.charAt(0) : 0;
  ------------------
  |  Branch (1833:44): [True: 60.1k, False: 107k]
  |  Branch (1833:60): [True: 60.1k, False: 0]
  ------------------
 1834|   167k|    fields->fastData.cpMinusSign = minusSignString.charAt(0);
 1835|   167k|    fields->fastData.minInt = (minInt < 0 || minInt > 127) ? 0 : static_cast<int8_t>(minInt);
  ------------------
  |  Branch (1835:32): [True: 0, False: 167k]
  |  Branch (1835:46): [True: 0, False: 167k]
  ------------------
 1836|   167k|    fields->fastData.maxInt = (maxInt < 0 || maxInt > 127) ? 127 : static_cast<int8_t>(maxInt);
  ------------------
  |  Branch (1836:32): [True: 0, False: 167k]
  |  Branch (1836:46): [True: 167k, False: 0]
  ------------------
 1837|   167k|}

_ZN6icu_7823SharedDateFormatSymbolsD2Ev:
  199|  9.23k|SharedDateFormatSymbols::~SharedDateFormatSymbols() {
  200|  9.23k|}
_ZNK6icu_7814LocaleCacheKeyINS_23SharedDateFormatSymbolsEE12createObjectEPKvR10UErrorCode:
  205|  9.46k|                const void * /*unusedContext*/, UErrorCode &status) const {
  206|  9.46k|    char type[256];
  207|  9.46k|    Calendar::getCalendarTypeFromLocale(fLoc, type, UPRV_LENGTHOF(type), status);
  ------------------
  |  |   99|  9.46k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  208|  9.46k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (208:9): [True: 0, False: 9.46k]
  ------------------
  209|      0|        return nullptr;
  210|      0|    }
  211|  9.46k|    SharedDateFormatSymbols *shared
  212|  9.46k|            = new SharedDateFormatSymbols(fLoc, type, status);
  213|  9.46k|    if (shared == nullptr) {
  ------------------
  |  Branch (213:9): [True: 0, False: 9.46k]
  ------------------
  214|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  215|      0|        return nullptr;
  216|      0|    }
  217|  9.46k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (217:9): [True: 60, False: 9.40k]
  ------------------
  218|     60|        delete shared;
  219|     60|        return nullptr;
  220|     60|    }
  221|  9.40k|    shared->addRef();
  222|  9.40k|    return shared;
  223|  9.46k|}
_ZN6icu_7817DateFormatSymbols15createForLocaleERKNS_6LocaleER10UErrorCode:
  277|  78.4k|        const Locale& locale, UErrorCode &status) {
  278|  78.4k|    const SharedDateFormatSymbols *shared = nullptr;
  279|  78.4k|    UnifiedCache::getByLocale(locale, shared, status);
  280|  78.4k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (280:9): [True: 406, False: 78.0k]
  ------------------
  281|    406|        return nullptr;
  282|    406|    }
  283|  78.0k|    DateFormatSymbols *result = new DateFormatSymbols(shared->get());
  284|  78.0k|    shared->removeRef();
  285|  78.0k|    if (result == nullptr) {
  ------------------
  |  Branch (285:9): [True: 0, False: 78.0k]
  ------------------
  286|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  287|      0|        return nullptr;
  288|      0|    }
  289|  78.0k|    return result;
  290|  78.0k|}
_ZN6icu_7817DateFormatSymbolsC2ER10UErrorCode:
  300|    310|    : UObject()
  301|    310|{
  302|    310|  initializeData(Locale::getDefault(), nullptr, status, true);
  303|    310|}
_ZN6icu_7817DateFormatSymbolsC2ERKNS_6LocaleEPKcR10UErrorCode:
  309|  9.46k|    : UObject()
  310|  9.46k|{
  311|  9.46k|  initializeData(locale, type,  status);
  312|  9.46k|}
_ZN6icu_7817DateFormatSymbolsC2ERKS0_:
  321|  78.0k|    : UObject(other)
  322|  78.0k|{
  323|  78.0k|    copyData(other);
  324|  78.0k|}
_ZN6icu_7817DateFormatSymbols11assignArrayERPNS_13UnicodeStringERiPKS1_i:
  331|  2.42M|{
  332|       |    // assignArray() is only called by copyData() and initializeData(), which in turn
  333|       |    // implements the copy constructor and the assignment operator.
  334|       |    // All strings in a DateFormatSymbols object are created in one of the following
  335|       |    // three ways that all allow to safely use UnicodeString::fastCopyFrom():
  336|       |    // - readonly-aliases from resource bundles
  337|       |    // - readonly-aliases or allocated strings from constants
  338|       |    // - safely cloned strings (with owned buffers) from setXYZ() functions
  339|       |    //
  340|       |    // Note that this is true for as long as DateFormatSymbols can be constructed
  341|       |    // only from a locale bundle or set via the cloning API,
  342|       |    // *and* for as long as all the strings are in *private* fields, preventing
  343|       |    // a subclass from creating these strings in an "unsafe" way (with respect to fastCopyFrom()).
  344|  2.42M|    if(srcArray == nullptr) {
  ------------------
  |  Branch (344:8): [True: 0, False: 2.42M]
  ------------------
  345|       |        // Do not attempt to copy bogus input (which will crash).
  346|       |        // Note that this assignArray method already had the potential to return a null dstArray;
  347|       |        // see handling below for "if(dstArray != nullptr)".
  348|      0|        dstCount = 0;
  349|      0|        dstArray = nullptr;
  350|      0|        return;
  351|      0|    }
  352|  2.42M|    dstCount = srcCount;
  353|  2.42M|    dstArray = newUnicodeStringArray(srcCount);
  354|  2.42M|    if(dstArray != nullptr) {
  ------------------
  |  Branch (354:8): [True: 2.42M, False: 0]
  ------------------
  355|  2.42M|        int32_t i;
  356|  20.3M|        for(i=0; i<srcCount; ++i) {
  ------------------
  |  Branch (356:18): [True: 17.9M, False: 2.42M]
  ------------------
  357|  17.9M|            dstArray[i].fastCopyFrom(srcArray[i]);
  358|  17.9M|        }
  359|  2.42M|    }
  360|  2.42M|}
_ZN6icu_7817DateFormatSymbols8copyDataERKS0_:
  402|  78.0k|DateFormatSymbols::copyData(const DateFormatSymbols& other) {
  403|  78.0k|    UErrorCode status = U_ZERO_ERROR;
  404|  78.0k|    U_LOCALE_BASED(locBased, *this);
  ------------------
  |  |   25|  78.0k|  LocaleBased varname((objname).validLocale, (objname).actualLocale)
  ------------------
  405|  78.0k|    locBased.setLocaleIDs(other.validLocale, other.actualLocale, status);
  406|  78.0k|    U_ASSERT(U_SUCCESS(status));
  ------------------
  |  |   35|  78.0k|#   define U_ASSERT(exp) (void)0
  ------------------
  407|  78.0k|    assignArray(fEras, fErasCount, other.fEras, other.fErasCount);
  408|  78.0k|    assignArray(fEraNames, fEraNamesCount, other.fEraNames, other.fEraNamesCount);
  409|  78.0k|    assignArray(fNarrowEras, fNarrowErasCount, other.fNarrowEras, other.fNarrowErasCount);
  410|  78.0k|    assignArray(fMonths, fMonthsCount, other.fMonths, other.fMonthsCount);
  411|  78.0k|    assignArray(fShortMonths, fShortMonthsCount, other.fShortMonths, other.fShortMonthsCount);
  412|  78.0k|    assignArray(fNarrowMonths, fNarrowMonthsCount, other.fNarrowMonths, other.fNarrowMonthsCount);
  413|  78.0k|    assignArray(fStandaloneMonths, fStandaloneMonthsCount, other.fStandaloneMonths, other.fStandaloneMonthsCount);
  414|  78.0k|    assignArray(fStandaloneShortMonths, fStandaloneShortMonthsCount, other.fStandaloneShortMonths, other.fStandaloneShortMonthsCount);
  415|  78.0k|    assignArray(fStandaloneNarrowMonths, fStandaloneNarrowMonthsCount, other.fStandaloneNarrowMonths, other.fStandaloneNarrowMonthsCount);
  416|  78.0k|    assignArray(fWeekdays, fWeekdaysCount, other.fWeekdays, other.fWeekdaysCount);
  417|  78.0k|    assignArray(fShortWeekdays, fShortWeekdaysCount, other.fShortWeekdays, other.fShortWeekdaysCount);
  418|  78.0k|    assignArray(fShorterWeekdays, fShorterWeekdaysCount, other.fShorterWeekdays, other.fShorterWeekdaysCount);
  419|  78.0k|    assignArray(fNarrowWeekdays, fNarrowWeekdaysCount, other.fNarrowWeekdays, other.fNarrowWeekdaysCount);
  420|  78.0k|    assignArray(fStandaloneWeekdays, fStandaloneWeekdaysCount, other.fStandaloneWeekdays, other.fStandaloneWeekdaysCount);
  421|  78.0k|    assignArray(fStandaloneShortWeekdays, fStandaloneShortWeekdaysCount, other.fStandaloneShortWeekdays, other.fStandaloneShortWeekdaysCount);
  422|  78.0k|    assignArray(fStandaloneShorterWeekdays, fStandaloneShorterWeekdaysCount, other.fStandaloneShorterWeekdays, other.fStandaloneShorterWeekdaysCount);
  423|  78.0k|    assignArray(fStandaloneNarrowWeekdays, fStandaloneNarrowWeekdaysCount, other.fStandaloneNarrowWeekdays, other.fStandaloneNarrowWeekdaysCount);
  424|  78.0k|    assignArray(fAmPms, fAmPmsCount, other.fAmPms, other.fAmPmsCount);
  425|  78.0k|    assignArray(fNarrowAmPms, fNarrowAmPmsCount, other.fNarrowAmPms, other.fNarrowAmPmsCount );
  426|  78.0k|    fTimeSeparator.fastCopyFrom(other.fTimeSeparator);  // fastCopyFrom() - see assignArray comments
  427|  78.0k|    assignArray(fQuarters, fQuartersCount, other.fQuarters, other.fQuartersCount);
  428|  78.0k|    assignArray(fShortQuarters, fShortQuartersCount, other.fShortQuarters, other.fShortQuartersCount);
  429|  78.0k|    assignArray(fNarrowQuarters, fNarrowQuartersCount, other.fNarrowQuarters, other.fNarrowQuartersCount);
  430|  78.0k|    assignArray(fStandaloneQuarters, fStandaloneQuartersCount, other.fStandaloneQuarters, other.fStandaloneQuartersCount);
  431|  78.0k|    assignArray(fStandaloneShortQuarters, fStandaloneShortQuartersCount, other.fStandaloneShortQuarters, other.fStandaloneShortQuartersCount);
  432|  78.0k|    assignArray(fStandaloneNarrowQuarters, fStandaloneNarrowQuartersCount, other.fStandaloneNarrowQuarters, other.fStandaloneNarrowQuartersCount);
  433|  78.0k|    assignArray(fWideDayPeriods, fWideDayPeriodsCount,
  434|  78.0k|                other.fWideDayPeriods, other.fWideDayPeriodsCount);
  435|  78.0k|    assignArray(fNarrowDayPeriods, fNarrowDayPeriodsCount,
  436|  78.0k|                other.fNarrowDayPeriods, other.fNarrowDayPeriodsCount);
  437|  78.0k|    assignArray(fAbbreviatedDayPeriods, fAbbreviatedDayPeriodsCount,
  438|  78.0k|                other.fAbbreviatedDayPeriods, other.fAbbreviatedDayPeriodsCount);
  439|  78.0k|    assignArray(fStandaloneWideDayPeriods, fStandaloneWideDayPeriodsCount,
  440|  78.0k|                other.fStandaloneWideDayPeriods, other.fStandaloneWideDayPeriodsCount);
  441|  78.0k|    assignArray(fStandaloneNarrowDayPeriods, fStandaloneNarrowDayPeriodsCount,
  442|  78.0k|                other.fStandaloneNarrowDayPeriods, other.fStandaloneNarrowDayPeriodsCount);
  443|  78.0k|    assignArray(fStandaloneAbbreviatedDayPeriods, fStandaloneAbbreviatedDayPeriodsCount,
  444|  78.0k|                other.fStandaloneAbbreviatedDayPeriods, other.fStandaloneAbbreviatedDayPeriodsCount);
  445|  78.0k|    if (other.fLeapMonthPatterns != nullptr) {
  ------------------
  |  Branch (445:9): [True: 0, False: 78.0k]
  ------------------
  446|      0|        assignArray(fLeapMonthPatterns, fLeapMonthPatternsCount, other.fLeapMonthPatterns, other.fLeapMonthPatternsCount);
  447|  78.0k|    } else {
  448|  78.0k|        fLeapMonthPatterns = nullptr;
  449|  78.0k|        fLeapMonthPatternsCount = 0;
  450|  78.0k|    }
  451|  78.0k|    if (other.fShortYearNames != nullptr) {
  ------------------
  |  Branch (451:9): [True: 0, False: 78.0k]
  ------------------
  452|      0|        assignArray(fShortYearNames, fShortYearNamesCount, other.fShortYearNames, other.fShortYearNamesCount);
  453|  78.0k|    } else {
  454|  78.0k|        fShortYearNames = nullptr;
  455|  78.0k|        fShortYearNamesCount = 0;
  456|  78.0k|    }
  457|  78.0k|    if (other.fShortZodiacNames != nullptr) {
  ------------------
  |  Branch (457:9): [True: 0, False: 78.0k]
  ------------------
  458|      0|        assignArray(fShortZodiacNames, fShortZodiacNamesCount, other.fShortZodiacNames, other.fShortZodiacNamesCount);
  459|  78.0k|    } else {
  460|  78.0k|        fShortZodiacNames = nullptr;
  461|  78.0k|        fShortZodiacNamesCount = 0;
  462|  78.0k|    }
  463|       |
  464|  78.0k|    if (other.fZoneStrings != nullptr) {
  ------------------
  |  Branch (464:9): [True: 0, False: 78.0k]
  ------------------
  465|      0|        fZoneStringsColCount = other.fZoneStringsColCount;
  466|      0|        fZoneStringsRowCount = other.fZoneStringsRowCount;
  467|      0|        createZoneStrings((const UnicodeString**)other.fZoneStrings);
  468|       |
  469|  78.0k|    } else {
  470|  78.0k|        fZoneStrings = nullptr;
  471|  78.0k|        fZoneStringsColCount = 0;
  472|  78.0k|        fZoneStringsRowCount = 0;
  473|  78.0k|    }
  474|  78.0k|    fZSFLocale = other.fZSFLocale;
  475|       |    // Other zone strings data is created on demand
  476|  78.0k|    fLocaleZoneStrings = nullptr;
  477|       |
  478|       |    // fastCopyFrom() - see assignArray comments
  479|  78.0k|    fLocalPatternChars.fastCopyFrom(other.fLocalPatternChars);
  480|       |
  481|  78.0k|    uprv_memcpy(fCapitalization, other.fCapitalization, sizeof(fCapitalization));
  ------------------
  |  |   42|  78.0k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  78.0k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  78.0k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  78.0k|    _Pragma("clang diagnostic push") \
  |  |   45|  78.0k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  78.0k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  78.0k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  78.0k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  78.0k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  78.0k|    _Pragma("clang diagnostic pop") \
  |  |   49|  78.0k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  78.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  78.0k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  78.0k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  482|  78.0k|}
_ZN6icu_7817DateFormatSymbolsD2Ev:
  497|  87.5k|{
  498|  87.5k|    dispose();
  499|  87.5k|    delete actualLocale;
  500|  87.5k|    delete validLocale;
  501|  87.5k|}
_ZN6icu_7817DateFormatSymbols7disposeEv:
  504|  87.5k|{
  505|  87.5k|    delete[] fEras;
  506|  87.5k|    delete[] fEraNames;
  507|  87.5k|    delete[] fNarrowEras;
  508|  87.5k|    delete[] fMonths;
  509|  87.5k|    delete[] fShortMonths;
  510|  87.5k|    delete[] fNarrowMonths;
  511|  87.5k|    delete[] fStandaloneMonths;
  512|  87.5k|    delete[] fStandaloneShortMonths;
  513|  87.5k|    delete[] fStandaloneNarrowMonths;
  514|  87.5k|    delete[] fWeekdays;
  515|  87.5k|    delete[] fShortWeekdays;
  516|  87.5k|    delete[] fShorterWeekdays;
  517|  87.5k|    delete[] fNarrowWeekdays;
  518|  87.5k|    delete[] fStandaloneWeekdays;
  519|  87.5k|    delete[] fStandaloneShortWeekdays;
  520|  87.5k|    delete[] fStandaloneShorterWeekdays;
  521|  87.5k|    delete[] fStandaloneNarrowWeekdays;
  522|  87.5k|    delete[] fAmPms;
  523|  87.5k|    delete[] fNarrowAmPms;
  524|  87.5k|    delete[] fQuarters;
  525|  87.5k|    delete[] fShortQuarters;
  526|  87.5k|    delete[] fNarrowQuarters;
  527|  87.5k|    delete[] fStandaloneQuarters;
  528|  87.5k|    delete[] fStandaloneShortQuarters;
  529|  87.5k|    delete[] fStandaloneNarrowQuarters;
  530|  87.5k|    delete[] fLeapMonthPatterns;
  531|  87.5k|    delete[] fShortYearNames;
  532|  87.5k|    delete[] fShortZodiacNames;
  533|  87.5k|    delete[] fAbbreviatedDayPeriods;
  534|  87.5k|    delete[] fWideDayPeriods;
  535|  87.5k|    delete[] fNarrowDayPeriods;
  536|  87.5k|    delete[] fStandaloneAbbreviatedDayPeriods;
  537|  87.5k|    delete[] fStandaloneWideDayPeriods;
  538|  87.5k|    delete[] fStandaloneNarrowDayPeriods;
  539|       |
  540|  87.5k|    delete actualLocale;
  541|  87.5k|    actualLocale = nullptr;
  542|  87.5k|    delete validLocale;
  543|  87.5k|    validLocale = nullptr;
  544|  87.5k|    disposeZoneStrings();
  545|  87.5k|}
_ZN6icu_7817DateFormatSymbols18disposeZoneStringsEv:
  548|  87.5k|{
  549|  87.5k|    if (fZoneStrings) {
  ------------------
  |  Branch (549:9): [True: 0, False: 87.5k]
  ------------------
  550|      0|        for (int32_t row = 0; row < fZoneStringsRowCount; ++row) {
  ------------------
  |  Branch (550:31): [True: 0, False: 0]
  ------------------
  551|      0|            delete[] fZoneStrings[row];
  552|      0|        }
  553|      0|        uprv_free(fZoneStrings);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  554|      0|    }
  555|  87.5k|    if (fLocaleZoneStrings) {
  ------------------
  |  Branch (555:9): [True: 0, False: 87.5k]
  ------------------
  556|      0|        for (int32_t row = 0; row < fZoneStringsRowCount; ++row) {
  ------------------
  |  Branch (556:31): [True: 0, False: 0]
  ------------------
  557|      0|            delete[] fLocaleZoneStrings[row];
  558|      0|        }
  559|      0|        uprv_free(fLocaleZoneStrings);
  ------------------
  |  | 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|    }
  561|       |
  562|  87.5k|    fZoneStrings = nullptr;
  563|  87.5k|    fLocaleZoneStrings = nullptr;
  564|  87.5k|    fZoneStringsRowCount = 0;
  565|  87.5k|    fZoneStringsColCount = 0;
  566|  87.5k|}
_ZN6icu_7817DateFormatSymbols19getPatternCharIndexEDs:
 1390|   266k|DateFormatSymbols::getPatternCharIndex(char16_t c) {
 1391|   266k|    if (c >= UPRV_LENGTHOF(gLookupPatternChars)) {
  ------------------
  |  |   99|   266k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1391:9): [True: 0, False: 266k]
  ------------------
 1392|      0|        return UDAT_FIELD_COUNT;
 1393|      0|    }
 1394|   266k|    const auto idx = gLookupPatternChars[c];
 1395|   266k|    return idx == -1 ? UDAT_FIELD_COUNT : static_cast<UDateFormatField>(idx);
  ------------------
  |  Branch (1395:12): [True: 0, False: 266k]
  ------------------
 1396|   266k|}
_ZN6icu_7817DateFormatSymbols14initializeDataERKNS_6LocaleEPKcR10UErrorCodea:
 2022|  9.77k|{
 2023|  9.77k|    int32_t len = 0;
 2024|       |    /* In case something goes wrong, initialize all of the data to nullptr. */
 2025|  9.77k|    fEras = nullptr;
 2026|  9.77k|    fErasCount = 0;
 2027|  9.77k|    fEraNames = nullptr;
 2028|  9.77k|    fEraNamesCount = 0;
 2029|  9.77k|    fNarrowEras = nullptr;
 2030|  9.77k|    fNarrowErasCount = 0;
 2031|  9.77k|    fMonths = nullptr;
 2032|  9.77k|    fMonthsCount=0;
 2033|  9.77k|    fShortMonths = nullptr;
 2034|  9.77k|    fShortMonthsCount=0;
 2035|  9.77k|    fNarrowMonths = nullptr;
 2036|  9.77k|    fNarrowMonthsCount=0;
 2037|  9.77k|    fStandaloneMonths = nullptr;
 2038|  9.77k|    fStandaloneMonthsCount=0;
 2039|  9.77k|    fStandaloneShortMonths = nullptr;
 2040|  9.77k|    fStandaloneShortMonthsCount=0;
 2041|  9.77k|    fStandaloneNarrowMonths = nullptr;
 2042|  9.77k|    fStandaloneNarrowMonthsCount=0;
 2043|  9.77k|    fWeekdays = nullptr;
 2044|  9.77k|    fWeekdaysCount=0;
 2045|  9.77k|    fShortWeekdays = nullptr;
 2046|  9.77k|    fShortWeekdaysCount=0;
 2047|  9.77k|    fShorterWeekdays = nullptr;
 2048|  9.77k|    fShorterWeekdaysCount=0;
 2049|  9.77k|    fNarrowWeekdays = nullptr;
 2050|  9.77k|    fNarrowWeekdaysCount=0;
 2051|  9.77k|    fStandaloneWeekdays = nullptr;
 2052|  9.77k|    fStandaloneWeekdaysCount=0;
 2053|  9.77k|    fStandaloneShortWeekdays = nullptr;
 2054|  9.77k|    fStandaloneShortWeekdaysCount=0;
 2055|  9.77k|    fStandaloneShorterWeekdays = nullptr;
 2056|  9.77k|    fStandaloneShorterWeekdaysCount=0;
 2057|  9.77k|    fStandaloneNarrowWeekdays = nullptr;
 2058|  9.77k|    fStandaloneNarrowWeekdaysCount=0;
 2059|  9.77k|    fAmPms = nullptr;
 2060|  9.77k|    fAmPmsCount=0;
 2061|  9.77k|    fNarrowAmPms = nullptr;
 2062|  9.77k|    fNarrowAmPmsCount=0;
 2063|  9.77k|    fTimeSeparator.setToBogus();
 2064|  9.77k|    fQuarters = nullptr;
 2065|  9.77k|    fQuartersCount = 0;
 2066|  9.77k|    fShortQuarters = nullptr;
 2067|  9.77k|    fShortQuartersCount = 0;
 2068|  9.77k|    fNarrowQuarters = nullptr;
 2069|  9.77k|    fNarrowQuartersCount = 0;
 2070|  9.77k|    fStandaloneQuarters = nullptr;
 2071|  9.77k|    fStandaloneQuartersCount = 0;
 2072|  9.77k|    fStandaloneShortQuarters = nullptr;
 2073|  9.77k|    fStandaloneShortQuartersCount = 0;
 2074|  9.77k|    fStandaloneNarrowQuarters = nullptr;
 2075|  9.77k|    fStandaloneNarrowQuartersCount = 0;
 2076|  9.77k|    fLeapMonthPatterns = nullptr;
 2077|  9.77k|    fLeapMonthPatternsCount = 0;
 2078|  9.77k|    fShortYearNames = nullptr;
 2079|  9.77k|    fShortYearNamesCount = 0;
 2080|  9.77k|    fShortZodiacNames = nullptr;
 2081|  9.77k|    fShortZodiacNamesCount = 0;
 2082|  9.77k|    fZoneStringsRowCount = 0;
 2083|  9.77k|    fZoneStringsColCount = 0;
 2084|  9.77k|    fZoneStrings = nullptr;
 2085|  9.77k|    fLocaleZoneStrings = nullptr;
 2086|  9.77k|    fAbbreviatedDayPeriods = nullptr;
 2087|  9.77k|    fAbbreviatedDayPeriodsCount = 0;
 2088|  9.77k|    fWideDayPeriods = nullptr;
 2089|  9.77k|    fWideDayPeriodsCount = 0;
 2090|  9.77k|    fNarrowDayPeriods = nullptr;
 2091|  9.77k|    fNarrowDayPeriodsCount = 0;
 2092|  9.77k|    fStandaloneAbbreviatedDayPeriods = nullptr;
 2093|  9.77k|    fStandaloneAbbreviatedDayPeriodsCount = 0;
 2094|  9.77k|    fStandaloneWideDayPeriods = nullptr;
 2095|  9.77k|    fStandaloneWideDayPeriodsCount = 0;
 2096|  9.77k|    fStandaloneNarrowDayPeriods = nullptr;
 2097|  9.77k|    fStandaloneNarrowDayPeriodsCount = 0;
 2098|  9.77k|    uprv_memset(fCapitalization, 0, sizeof(fCapitalization));
  ------------------
  |  |  100|  9.77k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  9.77k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2099|       |
 2100|       |    // We need to preserve the requested locale for
 2101|       |    // lazy ZoneStringFormat instantiation.  ZoneStringFormat
 2102|       |    // is region sensitive, thus, bundle locale bundle's locale
 2103|       |    // is not sufficient.
 2104|  9.77k|    fZSFLocale = locale;
 2105|       |
 2106|  9.77k|    if (U_FAILURE(status)) return;
  ------------------
  |  Branch (2106:9): [True: 0, False: 9.77k]
  ------------------
 2107|       |
 2108|       |    // Create a CalendarDataSink to process this data and the resource bundles
 2109|  9.77k|    CalendarDataSink calendarSink(status);
 2110|  9.77k|    LocalUResourceBundlePointer rb(ures_open(nullptr, locale.getBaseName(), &status));
  ------------------
  |  | 1691|  9.77k|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|  9.77k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.77k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.77k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2111|  9.77k|    LocalUResourceBundlePointer cb(ures_getByKey(rb.getAlias(), gCalendarTag, nullptr, &status));
  ------------------
  |  | 1661|  9.77k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  9.77k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.77k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.77k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2112|       |
 2113|  9.77k|    if (U_FAILURE(status)) return;
  ------------------
  |  Branch (2113:9): [True: 60, False: 9.71k]
  ------------------
 2114|       |
 2115|       |    // Iterate over the resource bundle data following the fallbacks through different calendar types
 2116|  9.71k|    UnicodeString calendarType((type != nullptr && *type != '\0')? type : gGregorianTag, -1, US_INV);
  ------------------
  |  |   98|  9.71k|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  |  Branch (2116:33): [True: 9.40k, False: 310]
  |  Branch (2116:52): [True: 9.40k, False: 0]
  ------------------
 2117|  10.1k|    while (!calendarType.isBogus()) {
  ------------------
  |  Branch (2117:12): [True: 10.1k, False: 0]
  ------------------
 2118|  10.1k|        CharString calendarTypeBuffer;
 2119|  10.1k|        calendarTypeBuffer.appendInvariantChars(calendarType, status);
 2120|  10.1k|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (2120:13): [True: 0, False: 10.1k]
  ------------------
 2121|  10.1k|        const char *calendarTypeCArray = calendarTypeBuffer.data();
 2122|       |
 2123|       |        // Enumerate this calendar type. If the calendar is not found fallback to gregorian
 2124|  10.1k|        UErrorCode oldStatus = status;
 2125|  10.1k|        LocalUResourceBundlePointer ctb(ures_getByKeyWithFallback(cb.getAlias(), calendarTypeCArray, nullptr, &status));
  ------------------
  |  | 1662|  10.1k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  10.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  10.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  10.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2126|  10.1k|        if (status == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (2126:13): [True: 0, False: 10.1k]
  ------------------
 2127|      0|            if (uprv_strcmp(calendarTypeCArray, gGregorianTag) != 0) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (2127:17): [True: 0, False: 0]
  ------------------
 2128|      0|                calendarType.setTo(false, kGregorianTagUChar, UPRV_LENGTHOF(kGregorianTagUChar));
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 2129|      0|                calendarSink.visitAllResources();
 2130|      0|                status = oldStatus;
 2131|      0|                continue;
 2132|      0|            }
 2133|      0|            return;
 2134|      0|        }
 2135|       |
 2136|  10.1k|        calendarSink.preEnumerate(calendarType);
 2137|  10.1k|        ures_getAllItemsWithFallback(ctb.getAlias(), "", calendarSink, status);
  ------------------
  |  | 1658|  10.1k|#define ures_getAllItemsWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getAllItemsWithFallback)
  |  |  ------------------
  |  |  |  |  123|  10.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  10.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  10.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2138|  10.1k|        if (U_FAILURE(status)) break;
  ------------------
  |  Branch (2138:13): [True: 0, False: 10.1k]
  ------------------
 2139|       |
 2140|       |        // Stop loading when gregorian was loaded
 2141|  10.1k|        if (uprv_strcmp(calendarTypeCArray, gGregorianTag) == 0) {
  ------------------
  |  |   38|  10.1k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  10.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (2141:13): [True: 9.71k, False: 476]
  ------------------
 2142|  9.71k|            break;
 2143|  9.71k|        }
 2144|       |
 2145|       |        // Get the next calendar type to process from the sink
 2146|    476|        calendarType = calendarSink.nextCalendarType;
 2147|       |
 2148|       |        // Gregorian is always the last fallback
 2149|    476|        if (calendarType.isBogus()) {
  ------------------
  |  Branch (2149:13): [True: 238, False: 238]
  ------------------
 2150|    238|            calendarType.setTo(false, kGregorianTagUChar, UPRV_LENGTHOF(kGregorianTagUChar));
  ------------------
  |  |   99|    238|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 2151|    238|            calendarSink.visitAllResources();
 2152|    238|        }
 2153|    476|    }
 2154|       |
 2155|       |    // CharString object to build paths
 2156|  9.71k|    CharString path;
 2157|       |
 2158|       |    // Load Leap Month Patterns
 2159|  9.71k|    UErrorCode tempStatus = status;
 2160|  9.71k|    fLeapMonthPatterns = newUnicodeStringArray(kMonthPatternsCount);
 2161|  9.71k|    if (fLeapMonthPatterns) {
  ------------------
  |  Branch (2161:9): [True: 9.71k, False: 0]
  ------------------
 2162|  9.71k|        initLeapMonthPattern(fLeapMonthPatterns, kLeapMonthPatternFormatWide, calendarSink,
 2163|  9.71k|                             buildResourcePath(path, gMonthPatternsTag, gNamesFormatTag, gNamesWideTag, tempStatus), tempStatus);
 2164|  9.71k|        initLeapMonthPattern(fLeapMonthPatterns, kLeapMonthPatternFormatAbbrev, calendarSink,
 2165|  9.71k|                             buildResourcePath(path, gMonthPatternsTag, gNamesFormatTag, gNamesAbbrTag, tempStatus), tempStatus);
 2166|  9.71k|        initLeapMonthPattern(fLeapMonthPatterns, kLeapMonthPatternFormatNarrow, calendarSink,
 2167|  9.71k|                             buildResourcePath(path, gMonthPatternsTag, gNamesFormatTag, gNamesNarrowTag, tempStatus), tempStatus);
 2168|  9.71k|        initLeapMonthPattern(fLeapMonthPatterns, kLeapMonthPatternStandaloneWide, calendarSink,
 2169|  9.71k|                             buildResourcePath(path, gMonthPatternsTag, gNamesStandaloneTag, gNamesWideTag, tempStatus), tempStatus);
 2170|  9.71k|        initLeapMonthPattern(fLeapMonthPatterns, kLeapMonthPatternStandaloneAbbrev, calendarSink,
 2171|  9.71k|                             buildResourcePath(path, gMonthPatternsTag, gNamesStandaloneTag, gNamesAbbrTag, tempStatus), tempStatus);
 2172|  9.71k|        initLeapMonthPattern(fLeapMonthPatterns, kLeapMonthPatternStandaloneNarrow, calendarSink,
 2173|  9.71k|                             buildResourcePath(path, gMonthPatternsTag, gNamesStandaloneTag, gNamesNarrowTag, tempStatus), tempStatus);
 2174|  9.71k|        initLeapMonthPattern(fLeapMonthPatterns, kLeapMonthPatternNumeric, calendarSink,
 2175|  9.71k|                             buildResourcePath(path, gMonthPatternsTag, gNamesNumericTag, gNamesAllTag, tempStatus), tempStatus);
 2176|  9.71k|        if (U_SUCCESS(tempStatus)) {
  ------------------
  |  Branch (2176:13): [True: 0, False: 9.71k]
  ------------------
 2177|       |            // Hack to fix bad C inheritance for dangi monthPatterns (OK in J); this should be handled by aliases in root, but isn't.
 2178|       |            // The ordering of the following statements is important.
 2179|      0|            if (fLeapMonthPatterns[kLeapMonthPatternFormatAbbrev].isEmpty()) {
  ------------------
  |  Branch (2179:17): [True: 0, False: 0]
  ------------------
 2180|      0|                fLeapMonthPatterns[kLeapMonthPatternFormatAbbrev].setTo(fLeapMonthPatterns[kLeapMonthPatternFormatWide]);
 2181|      0|            }
 2182|      0|            if (fLeapMonthPatterns[kLeapMonthPatternFormatNarrow].isEmpty()) {
  ------------------
  |  Branch (2182:17): [True: 0, False: 0]
  ------------------
 2183|      0|                fLeapMonthPatterns[kLeapMonthPatternFormatNarrow].setTo(fLeapMonthPatterns[kLeapMonthPatternStandaloneNarrow]);
 2184|      0|            }
 2185|      0|            if (fLeapMonthPatterns[kLeapMonthPatternStandaloneWide].isEmpty()) {
  ------------------
  |  Branch (2185:17): [True: 0, False: 0]
  ------------------
 2186|      0|                fLeapMonthPatterns[kLeapMonthPatternStandaloneWide].setTo(fLeapMonthPatterns[kLeapMonthPatternFormatWide]);
 2187|      0|            }
 2188|      0|            if (fLeapMonthPatterns[kLeapMonthPatternStandaloneAbbrev].isEmpty()) {
  ------------------
  |  Branch (2188:17): [True: 0, False: 0]
  ------------------
 2189|      0|                fLeapMonthPatterns[kLeapMonthPatternStandaloneAbbrev].setTo(fLeapMonthPatterns[kLeapMonthPatternFormatAbbrev]);
 2190|      0|            }
 2191|       |            // end of hack
 2192|      0|            fLeapMonthPatternsCount = kMonthPatternsCount;
 2193|  9.71k|        } else {
 2194|  9.71k|            delete[] fLeapMonthPatterns;
 2195|  9.71k|            fLeapMonthPatterns = nullptr;
 2196|  9.71k|        }
 2197|  9.71k|    }
 2198|       |
 2199|       |    // Load cyclic names sets
 2200|  9.71k|    tempStatus = status;
 2201|  9.71k|    initField(&fShortYearNames, fShortYearNamesCount, calendarSink,
 2202|  9.71k|              buildResourcePath(path, gCyclicNameSetsTag, gNameSetYearsTag, gNamesFormatTag, gNamesAbbrTag, tempStatus), tempStatus);
 2203|  9.71k|    initField(&fShortZodiacNames, fShortZodiacNamesCount, calendarSink,
 2204|  9.71k|              buildResourcePath(path, gCyclicNameSetsTag, gNameSetZodiacsTag, gNamesFormatTag, gNamesAbbrTag, tempStatus), tempStatus);
 2205|       |
 2206|       |    // Load context transforms and capitalization
 2207|  9.71k|    tempStatus = U_ZERO_ERROR;
 2208|  9.71k|    LocalUResourceBundlePointer localeBundle(ures_open(nullptr, locale.getName(), &tempStatus));
  ------------------
  |  | 1691|  9.71k|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|  9.71k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.71k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.71k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2209|  9.71k|    if (U_SUCCESS(tempStatus)) {
  ------------------
  |  Branch (2209:9): [True: 9.71k, False: 2]
  ------------------
 2210|  9.71k|        LocalUResourceBundlePointer contextTransforms(ures_getByKeyWithFallback(localeBundle.getAlias(), gContextTransformsTag, nullptr, &tempStatus));
  ------------------
  |  | 1662|  9.71k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  9.71k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.71k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.71k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2211|  9.71k|        if (U_SUCCESS(tempStatus)) {
  ------------------
  |  Branch (2211:13): [True: 5.35k, False: 4.35k]
  ------------------
 2212|  5.35k|            for (LocalUResourceBundlePointer contextTransformUsage;
 2213|  31.5k|                 contextTransformUsage.adoptInstead(ures_getNextResource(contextTransforms.getAlias(), nullptr, &tempStatus)),
  ------------------
  |  | 1672|  31.5k|#define ures_getNextResource U_ICU_ENTRY_POINT_RENAME(ures_getNextResource)
  |  |  ------------------
  |  |  |  |  123|  31.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  31.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  31.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2213:18): [True: 26.1k, False: 5.35k]
  ------------------
 2214|  31.5k|                 contextTransformUsage.isValid();) {
 2215|  26.1k|                const int32_t * intVector = ures_getIntVector(contextTransformUsage.getAlias(), &len, &status);
  ------------------
  |  | 1665|  26.1k|#define ures_getIntVector U_ICU_ENTRY_POINT_RENAME(ures_getIntVector)
  |  |  ------------------
  |  |  |  |  123|  26.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  26.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  26.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2216|  26.1k|                if (U_SUCCESS(tempStatus) && intVector != nullptr && len >= 2) {
  ------------------
  |  Branch (2216:21): [True: 26.1k, False: 0]
  |  Branch (2216:46): [True: 26.1k, False: 0]
  |  Branch (2216:70): [True: 26.1k, False: 0]
  ------------------
 2217|  26.1k|                    const char* usageType = ures_getKey(contextTransformUsage.getAlias());
  ------------------
  |  | 1666|  26.1k|#define ures_getKey U_ICU_ENTRY_POINT_RENAME(ures_getKey)
  |  |  ------------------
  |  |  |  |  123|  26.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  26.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  26.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2218|  26.1k|                    if (usageType != nullptr) {
  ------------------
  |  Branch (2218:25): [True: 26.1k, False: 0]
  ------------------
 2219|  26.1k|                        const ContextUsageTypeNameToEnumValue * typeMapPtr = contextUsageTypeMap;
 2220|  26.1k|                        int32_t compResult = 0;
 2221|       |                        // linear search; list is short and we cannot be sure that bsearch is available
 2222|   226k|                        while ( typeMapPtr->usageTypeName != nullptr && (compResult = uprv_strcmp(usageType, typeMapPtr->usageTypeName)) > 0 ) {
  ------------------
  |  |   38|   226k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   226k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (2222:33): [True: 226k, False: 0]
  |  Branch (2222:73): [True: 200k, False: 26.1k]
  ------------------
 2223|   200k|                            ++typeMapPtr;
 2224|   200k|                        }
 2225|  26.1k|                        if (typeMapPtr->usageTypeName != nullptr && compResult == 0) {
  ------------------
  |  Branch (2225:29): [True: 26.1k, False: 0]
  |  Branch (2225:69): [True: 2.05k, False: 24.1k]
  ------------------
 2226|  2.05k|                            fCapitalization[typeMapPtr->usageTypeEnumValue][0] = static_cast<UBool>(intVector[0]);
 2227|  2.05k|                            fCapitalization[typeMapPtr->usageTypeEnumValue][1] = static_cast<UBool>(intVector[1]);
 2228|  2.05k|                        }
 2229|  26.1k|                    }
 2230|  26.1k|                }
 2231|  26.1k|                tempStatus = U_ZERO_ERROR;
 2232|  26.1k|            }
 2233|  5.35k|        }
 2234|       |
 2235|  9.71k|        tempStatus = U_ZERO_ERROR;
 2236|  9.71k|        const LocalPointer<NumberingSystem> numberingSystem(
 2237|  9.71k|                NumberingSystem::createInstance(locale, tempStatus), tempStatus);
 2238|  9.71k|        if (U_SUCCESS(tempStatus)) {
  ------------------
  |  Branch (2238:13): [True: 9.54k, False: 169]
  ------------------
 2239|       |            // These functions all fail gracefully if passed nullptr pointers and
 2240|       |            // do nothing unless U_SUCCESS(tempStatus), so it's only necessary
 2241|       |            // to check for errors once after all calls are made.
 2242|  9.54k|            const LocalUResourceBundlePointer numberElementsData(ures_getByKeyWithFallback(
  ------------------
  |  | 1662|  9.54k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  9.54k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.54k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.54k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2243|  9.54k|                    localeBundle.getAlias(), gNumberElementsTag, nullptr, &tempStatus));
 2244|  9.54k|            const LocalUResourceBundlePointer nsNameData(ures_getByKeyWithFallback(
  ------------------
  |  | 1662|  9.54k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  9.54k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.54k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.54k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2245|  9.54k|                    numberElementsData.getAlias(), numberingSystem->getName(), nullptr, &tempStatus));
 2246|  9.54k|            const LocalUResourceBundlePointer symbolsData(ures_getByKeyWithFallback(
  ------------------
  |  | 1662|  9.54k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  9.54k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.54k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.54k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2247|  9.54k|                    nsNameData.getAlias(), gSymbolsTag, nullptr, &tempStatus));
 2248|  9.54k|            fTimeSeparator = ures_getUnicodeStringByKey(
 2249|  9.54k|                    symbolsData.getAlias(), gTimeSeparatorTag, &tempStatus);
 2250|  9.54k|            if (U_FAILURE(tempStatus)) {
  ------------------
  |  Branch (2250:17): [True: 7.05k, False: 2.48k]
  ------------------
 2251|  7.05k|                fTimeSeparator.setToBogus();
 2252|  7.05k|            }
 2253|  9.54k|        }
 2254|       |
 2255|  9.71k|    }
 2256|       |
 2257|  9.71k|    if (fTimeSeparator.isBogus()) {
  ------------------
  |  Branch (2257:9): [True: 7.22k, False: 2.48k]
  ------------------
 2258|  7.22k|        fTimeSeparator.setTo(DateFormatSymbols::DEFAULT_TIME_SEPARATOR);
 2259|  7.22k|    }
 2260|       |
 2261|       |    // Load day periods
 2262|  9.71k|    fAbbreviatedDayPeriods = loadDayPeriodStrings(calendarSink,
 2263|  9.71k|                            buildResourcePath(path, gDayPeriodTag, gNamesFormatTag, gNamesAbbrTag, status),
 2264|  9.71k|                            fAbbreviatedDayPeriodsCount, status);
 2265|       |
 2266|  9.71k|    fWideDayPeriods = loadDayPeriodStrings(calendarSink,
 2267|  9.71k|                            buildResourcePath(path, gDayPeriodTag, gNamesFormatTag, gNamesWideTag, status),
 2268|  9.71k|                            fWideDayPeriodsCount, status);
 2269|  9.71k|    fNarrowDayPeriods = loadDayPeriodStrings(calendarSink,
 2270|  9.71k|                            buildResourcePath(path, gDayPeriodTag, gNamesFormatTag, gNamesNarrowTag, status),
 2271|  9.71k|                            fNarrowDayPeriodsCount, status);
 2272|       |
 2273|  9.71k|    fStandaloneAbbreviatedDayPeriods = loadDayPeriodStrings(calendarSink,
 2274|  9.71k|                            buildResourcePath(path, gDayPeriodTag, gNamesStandaloneTag, gNamesAbbrTag, status),
 2275|  9.71k|                            fStandaloneAbbreviatedDayPeriodsCount, status);
 2276|       |
 2277|  9.71k|    fStandaloneWideDayPeriods = loadDayPeriodStrings(calendarSink,
 2278|  9.71k|                            buildResourcePath(path, gDayPeriodTag, gNamesStandaloneTag, gNamesWideTag, status),
 2279|  9.71k|                            fStandaloneWideDayPeriodsCount, status);
 2280|  9.71k|    fStandaloneNarrowDayPeriods = loadDayPeriodStrings(calendarSink,
 2281|  9.71k|                            buildResourcePath(path, gDayPeriodTag, gNamesStandaloneTag, gNamesNarrowTag, status),
 2282|  9.71k|                            fStandaloneNarrowDayPeriodsCount, status);
 2283|       |
 2284|       |    // Fill in for missing/bogus items (dayPeriods are a map so single items might be missing)
 2285|  9.71k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (2285:9): [True: 9.71k, False: 0]
  ------------------
 2286|   106k|        for (int32_t dpidx = 0; dpidx < fAbbreviatedDayPeriodsCount; ++dpidx) {
  ------------------
  |  Branch (2286:33): [True: 97.1k, False: 9.71k]
  ------------------
 2287|  97.1k|            if (dpidx < fWideDayPeriodsCount && fWideDayPeriods != nullptr && fWideDayPeriods[dpidx].isBogus()) {
  ------------------
  |  Branch (2287:17): [True: 97.1k, False: 0]
  |  Branch (2287:49): [True: 97.1k, False: 0]
  |  Branch (2287:79): [True: 62.7k, False: 34.3k]
  ------------------
 2288|  62.7k|                fWideDayPeriods[dpidx].fastCopyFrom(fAbbreviatedDayPeriods[dpidx]);
 2289|  62.7k|            }
 2290|  97.1k|            if (dpidx < fNarrowDayPeriodsCount && fNarrowDayPeriods != nullptr && fNarrowDayPeriods[dpidx].isBogus()) {
  ------------------
  |  Branch (2290:17): [True: 97.1k, False: 0]
  |  Branch (2290:51): [True: 97.1k, False: 0]
  |  Branch (2290:83): [True: 62.3k, False: 34.7k]
  ------------------
 2291|  62.3k|                fNarrowDayPeriods[dpidx].fastCopyFrom(fAbbreviatedDayPeriods[dpidx]);
 2292|  62.3k|            }
 2293|  97.1k|            if (dpidx < fStandaloneAbbreviatedDayPeriodsCount && fStandaloneAbbreviatedDayPeriods != nullptr && fStandaloneAbbreviatedDayPeriods[dpidx].isBogus()) {
  ------------------
  |  Branch (2293:17): [True: 97.1k, False: 0]
  |  Branch (2293:66): [True: 97.1k, False: 0]
  |  Branch (2293:113): [True: 66.7k, False: 30.3k]
  ------------------
 2294|  66.7k|                fStandaloneAbbreviatedDayPeriods[dpidx].fastCopyFrom(fAbbreviatedDayPeriods[dpidx]);
 2295|  66.7k|            }
 2296|  97.1k|            if (dpidx < fStandaloneWideDayPeriodsCount && fStandaloneWideDayPeriods != nullptr && fStandaloneWideDayPeriods[dpidx].isBogus()) {
  ------------------
  |  Branch (2296:17): [True: 97.1k, False: 0]
  |  Branch (2296:59): [True: 97.1k, False: 0]
  |  Branch (2296:99): [True: 68.1k, False: 28.9k]
  ------------------
 2297|  68.1k|                fStandaloneWideDayPeriods[dpidx].fastCopyFrom(fStandaloneAbbreviatedDayPeriods[dpidx]);
 2298|  68.1k|            }
 2299|  97.1k|            if (dpidx < fStandaloneNarrowDayPeriodsCount && fStandaloneNarrowDayPeriods != nullptr && fStandaloneNarrowDayPeriods[dpidx].isBogus()) {
  ------------------
  |  Branch (2299:17): [True: 97.1k, False: 0]
  |  Branch (2299:61): [True: 97.1k, False: 0]
  |  Branch (2299:103): [True: 69.0k, False: 28.0k]
  ------------------
 2300|  69.0k|                fStandaloneNarrowDayPeriods[dpidx].fastCopyFrom(fStandaloneAbbreviatedDayPeriods[dpidx]);
 2301|  69.0k|            }
 2302|  97.1k|        }
 2303|  9.71k|    }
 2304|       |
 2305|  9.71k|    U_LOCALE_BASED(locBased, *this);
  ------------------
  |  |   25|  9.71k|  LocaleBased varname((objname).validLocale, (objname).actualLocale)
  ------------------
 2306|       |    // if we make it to here, the resource data is cool, and we can get everything out
 2307|       |    // of it that we need except for the time-zone and localized-pattern data, which
 2308|       |    // are stored in a separate file
 2309|  9.71k|    locBased.setLocaleIDs(ures_getLocaleByType(cb.getAlias(), ULOC_VALID_LOCALE, &status),
  ------------------
  |  | 1669|  9.71k|#define ures_getLocaleByType U_ICU_ENTRY_POINT_RENAME(ures_getLocaleByType)
  |  |  ------------------
  |  |  |  |  123|  9.71k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.71k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.71k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2310|  9.71k|                          ures_getLocaleByType(cb.getAlias(), ULOC_ACTUAL_LOCALE, &status), status);
  ------------------
  |  | 1669|  9.71k|#define ures_getLocaleByType U_ICU_ENTRY_POINT_RENAME(ures_getLocaleByType)
  |  |  ------------------
  |  |  |  |  123|  9.71k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.71k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.71k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2311|       |
 2312|       |    // Load eras
 2313|  9.71k|    initField(&fEras, fErasCount, calendarSink, buildResourcePath(path, gErasTag, gNamesAbbrTag, status), status);
 2314|  9.71k|    UErrorCode oldStatus = status;
 2315|  9.71k|    initField(&fEraNames, fEraNamesCount, calendarSink, buildResourcePath(path, gErasTag, gNamesWideTag, status), status);
 2316|  9.71k|    if (status == U_MISSING_RESOURCE_ERROR) { // Workaround because eras/wide was omitted from CLDR 1.3
  ------------------
  |  Branch (2316:9): [True: 0, False: 9.71k]
  ------------------
 2317|      0|        status = oldStatus;
 2318|      0|        assignArray(fEraNames, fEraNamesCount, fEras, fErasCount);
 2319|      0|    }
 2320|       |    // current ICU4J falls back to abbreviated if narrow eras are missing, so we will too
 2321|  9.71k|    oldStatus = status;
 2322|  9.71k|    initField(&fNarrowEras, fNarrowErasCount, calendarSink, buildResourcePath(path, gErasTag, gNamesNarrowTag, status), status);
 2323|  9.71k|    if (status == U_MISSING_RESOURCE_ERROR) { // Workaround because eras/wide was omitted from CLDR 1.3
  ------------------
  |  Branch (2323:9): [True: 0, False: 9.71k]
  ------------------
 2324|      0|        status = oldStatus;
 2325|      0|        assignArray(fNarrowEras, fNarrowErasCount, fEras, fErasCount);
 2326|      0|    }
 2327|       |
 2328|       |    // Load month names
 2329|  9.71k|    initField(&fMonths, fMonthsCount, calendarSink,
 2330|  9.71k|              buildResourcePath(path, gMonthNamesTag, gNamesFormatTag, gNamesWideTag, status), status);
 2331|  9.71k|    initField(&fShortMonths, fShortMonthsCount, calendarSink,
 2332|  9.71k|              buildResourcePath(path, gMonthNamesTag, gNamesFormatTag, gNamesAbbrTag, status), status);
 2333|  9.71k|    initField(&fStandaloneMonths, fStandaloneMonthsCount, calendarSink,
 2334|  9.71k|              buildResourcePath(path, gMonthNamesTag, gNamesStandaloneTag, gNamesWideTag, status), status);
 2335|  9.71k|    if (status == U_MISSING_RESOURCE_ERROR) { /* If standalone/wide not available, use format/wide */
  ------------------
  |  Branch (2335:9): [True: 0, False: 9.71k]
  ------------------
 2336|      0|        status = U_ZERO_ERROR;
 2337|      0|        assignArray(fStandaloneMonths, fStandaloneMonthsCount, fMonths, fMonthsCount);
 2338|      0|    }
 2339|  9.71k|    initField(&fStandaloneShortMonths, fStandaloneShortMonthsCount, calendarSink,
 2340|  9.71k|              buildResourcePath(path, gMonthNamesTag, gNamesStandaloneTag, gNamesAbbrTag, status), status);
 2341|  9.71k|    if (status == U_MISSING_RESOURCE_ERROR) { /* If standalone/abbreviated not available, use format/abbreviated */
  ------------------
  |  Branch (2341:9): [True: 0, False: 9.71k]
  ------------------
 2342|      0|        status = U_ZERO_ERROR;
 2343|      0|        assignArray(fStandaloneShortMonths, fStandaloneShortMonthsCount, fShortMonths, fShortMonthsCount);
 2344|      0|    }
 2345|       |
 2346|  9.71k|    UErrorCode narrowMonthsEC = status;
 2347|  9.71k|    UErrorCode standaloneNarrowMonthsEC = status;
 2348|  9.71k|    initField(&fNarrowMonths, fNarrowMonthsCount, calendarSink,
 2349|  9.71k|              buildResourcePath(path, gMonthNamesTag, gNamesFormatTag, gNamesNarrowTag, narrowMonthsEC), narrowMonthsEC);
 2350|  9.71k|    initField(&fStandaloneNarrowMonths, fStandaloneNarrowMonthsCount, calendarSink,
 2351|  9.71k|              buildResourcePath(path, gMonthNamesTag, gNamesStandaloneTag, gNamesNarrowTag, narrowMonthsEC), standaloneNarrowMonthsEC);
 2352|  9.71k|    if (narrowMonthsEC == U_MISSING_RESOURCE_ERROR && standaloneNarrowMonthsEC != U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (2352:9): [True: 0, False: 9.71k]
  |  Branch (2352:55): [True: 0, False: 0]
  ------------------
 2353|       |        // If format/narrow not available, use standalone/narrow
 2354|      0|        assignArray(fNarrowMonths, fNarrowMonthsCount, fStandaloneNarrowMonths, fStandaloneNarrowMonthsCount);
 2355|  9.71k|    } else if (narrowMonthsEC != U_MISSING_RESOURCE_ERROR && standaloneNarrowMonthsEC == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (2355:16): [True: 9.71k, False: 0]
  |  Branch (2355:62): [True: 0, False: 9.71k]
  ------------------
 2356|       |        // If standalone/narrow not available, use format/narrow
 2357|      0|        assignArray(fStandaloneNarrowMonths, fStandaloneNarrowMonthsCount, fNarrowMonths, fNarrowMonthsCount);
 2358|  9.71k|    } else if (narrowMonthsEC == U_MISSING_RESOURCE_ERROR && standaloneNarrowMonthsEC == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (2358:16): [True: 0, False: 9.71k]
  |  Branch (2358:62): [True: 0, False: 0]
  ------------------
 2359|       |        // If neither is available, use format/abbreviated
 2360|      0|        assignArray(fNarrowMonths, fNarrowMonthsCount, fShortMonths, fShortMonthsCount);
 2361|      0|        assignArray(fStandaloneNarrowMonths, fStandaloneNarrowMonthsCount, fShortMonths, fShortMonthsCount);
 2362|      0|    }
 2363|       |
 2364|       |    // Load AM/PM markers; if wide or narrow not available, use short
 2365|  9.71k|    UErrorCode ampmStatus = U_ZERO_ERROR;
 2366|  9.71k|    initField(&fAmPms, fAmPmsCount, calendarSink,
 2367|  9.71k|              buildResourcePath(path, gAmPmMarkersTag, ampmStatus), ampmStatus);
 2368|  9.71k|    if (U_FAILURE(ampmStatus)) {
  ------------------
  |  Branch (2368:9): [True: 1.83k, False: 7.87k]
  ------------------
 2369|  1.83k|        initField(&fAmPms, fAmPmsCount, calendarSink,
 2370|  1.83k|                  buildResourcePath(path, gAmPmMarkersAbbrTag, status), status);
 2371|  1.83k|    }
 2372|  9.71k|    ampmStatus = U_ZERO_ERROR;
 2373|  9.71k|    initField(&fNarrowAmPms, fNarrowAmPmsCount, calendarSink,
 2374|  9.71k|              buildResourcePath(path, gAmPmMarkersNarrowTag, ampmStatus), ampmStatus);
 2375|  9.71k|    if (U_FAILURE(ampmStatus)) {
  ------------------
  |  Branch (2375:9): [True: 4.10k, False: 5.61k]
  ------------------
 2376|  4.10k|        initField(&fNarrowAmPms, fNarrowAmPmsCount, calendarSink,
 2377|  4.10k|                  buildResourcePath(path, gAmPmMarkersAbbrTag, status), status);
 2378|  4.10k|    }
 2379|  9.71k|    if(status == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (2379:8): [True: 1.38k, False: 8.32k]
  ------------------
 2380|  1.38k|        status = U_ZERO_ERROR;
 2381|  1.38k|        assignArray(fNarrowAmPms, fNarrowAmPmsCount, fAmPms, fAmPmsCount);
 2382|  1.38k|    }
 2383|       |
 2384|       |    // Load quarters
 2385|  9.71k|    initField(&fQuarters, fQuartersCount, calendarSink,
 2386|  9.71k|              buildResourcePath(path, gQuartersTag, gNamesFormatTag, gNamesWideTag, status), status);
 2387|  9.71k|    initField(&fShortQuarters, fShortQuartersCount, calendarSink,
 2388|  9.71k|              buildResourcePath(path, gQuartersTag, gNamesFormatTag, gNamesAbbrTag, status), status);
 2389|  9.71k|    if(status == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (2389:8): [True: 0, False: 9.71k]
  ------------------
 2390|      0|        status = U_ZERO_ERROR;
 2391|      0|        assignArray(fShortQuarters, fShortQuartersCount, fQuarters, fQuartersCount);
 2392|      0|    }
 2393|       |
 2394|  9.71k|    initField(&fStandaloneQuarters, fStandaloneQuartersCount, calendarSink,
 2395|  9.71k|              buildResourcePath(path, gQuartersTag, gNamesStandaloneTag, gNamesWideTag, status), status);
 2396|  9.71k|    if(status == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (2396:8): [True: 0, False: 9.71k]
  ------------------
 2397|      0|        status = U_ZERO_ERROR;
 2398|      0|        assignArray(fStandaloneQuarters, fStandaloneQuartersCount, fQuarters, fQuartersCount);
 2399|      0|    }
 2400|  9.71k|    initField(&fStandaloneShortQuarters, fStandaloneShortQuartersCount, calendarSink,
 2401|  9.71k|              buildResourcePath(path, gQuartersTag, gNamesStandaloneTag, gNamesAbbrTag, status), status);
 2402|  9.71k|    if(status == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (2402:8): [True: 0, False: 9.71k]
  ------------------
 2403|      0|        status = U_ZERO_ERROR;
 2404|      0|        assignArray(fStandaloneShortQuarters, fStandaloneShortQuartersCount, fShortQuarters, fShortQuartersCount);
 2405|      0|    }
 2406|       |
 2407|       |    // unlike the fields above, narrow format quarters fall back on narrow standalone quarters
 2408|  9.71k|    initField(&fStandaloneNarrowQuarters, fStandaloneNarrowQuartersCount, calendarSink,
 2409|  9.71k|              buildResourcePath(path, gQuartersTag, gNamesStandaloneTag, gNamesNarrowTag, status), status);
 2410|  9.71k|    initField(&fNarrowQuarters, fNarrowQuartersCount, calendarSink,
 2411|  9.71k|              buildResourcePath(path, gQuartersTag, gNamesFormatTag, gNamesNarrowTag, status), status);
 2412|  9.71k|    if(status == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (2412:8): [True: 0, False: 9.71k]
  ------------------
 2413|      0|        status = U_ZERO_ERROR;
 2414|      0|        assignArray(fNarrowQuarters, fNarrowQuartersCount, fStandaloneNarrowQuarters, fStandaloneNarrowQuartersCount);
 2415|      0|    }
 2416|       |    
 2417|       |    // ICU 3.8 or later version no longer uses localized date-time pattern characters by default (ticket#5597)
 2418|       |    /*
 2419|       |    // fastCopyFrom()/setTo() - see assignArray comments
 2420|       |    resStr = ures_getStringByKey(fResourceBundle, gLocalPatternCharsTag, &len, &status);
 2421|       |    fLocalPatternChars.setTo(true, resStr, len);
 2422|       |    // If the locale data does not include new pattern chars, use the defaults
 2423|       |    // TODO: Consider making this an error, since this may add conflicting characters.
 2424|       |    if (len < PATTERN_CHARS_LEN) {
 2425|       |        fLocalPatternChars.append(UnicodeString(true, &gPatternChars[len], PATTERN_CHARS_LEN-len));
 2426|       |    }
 2427|       |    */
 2428|  9.71k|    fLocalPatternChars.setTo(true, gPatternChars, PATTERN_CHARS_LEN);
  ------------------
  |  |   66|  9.71k|#define PATTERN_CHARS_LEN 37
  ------------------
 2429|       |
 2430|       |    // Format wide weekdays -> fWeekdays
 2431|       |    // {sfb} fixed to handle 1-based weekdays
 2432|  9.71k|    initField(&fWeekdays, fWeekdaysCount, calendarSink,
 2433|  9.71k|              buildResourcePath(path, gDayNamesTag, gNamesFormatTag, gNamesWideTag, status), 1, status);
 2434|       |
 2435|       |    // Format abbreviated weekdays -> fShortWeekdays
 2436|  9.71k|    initField(&fShortWeekdays, fShortWeekdaysCount, calendarSink,
 2437|  9.71k|              buildResourcePath(path, gDayNamesTag, gNamesFormatTag, gNamesAbbrTag, status), 1, status);
 2438|       |
 2439|       |    // Format short weekdays -> fShorterWeekdays (fall back to abbreviated)
 2440|  9.71k|    initField(&fShorterWeekdays, fShorterWeekdaysCount, calendarSink,
 2441|  9.71k|              buildResourcePath(path, gDayNamesTag, gNamesFormatTag, gNamesShortTag, status), 1, status);
 2442|  9.71k|    if (status == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (2442:9): [True: 0, False: 9.71k]
  ------------------
 2443|      0|        status = U_ZERO_ERROR;
 2444|      0|        assignArray(fShorterWeekdays, fShorterWeekdaysCount, fShortWeekdays, fShortWeekdaysCount);
 2445|      0|    }
 2446|       |
 2447|       |    // Stand-alone wide weekdays -> fStandaloneWeekdays
 2448|  9.71k|    initField(&fStandaloneWeekdays, fStandaloneWeekdaysCount, calendarSink,
 2449|  9.71k|              buildResourcePath(path, gDayNamesTag, gNamesStandaloneTag, gNamesWideTag, status), 1, status);
 2450|  9.71k|    if (status == U_MISSING_RESOURCE_ERROR) { /* If standalone/wide is not available, use format/wide */
  ------------------
  |  Branch (2450:9): [True: 0, False: 9.71k]
  ------------------
 2451|      0|        status = U_ZERO_ERROR;
 2452|      0|        assignArray(fStandaloneWeekdays, fStandaloneWeekdaysCount, fWeekdays, fWeekdaysCount);
 2453|      0|    }
 2454|       |
 2455|       |    // Stand-alone abbreviated weekdays -> fStandaloneShortWeekdays
 2456|  9.71k|    initField(&fStandaloneShortWeekdays, fStandaloneShortWeekdaysCount, calendarSink,
 2457|  9.71k|              buildResourcePath(path, gDayNamesTag, gNamesStandaloneTag, gNamesAbbrTag, status), 1, status);
 2458|  9.71k|    if (status == U_MISSING_RESOURCE_ERROR) { /* If standalone/abbreviated is not available, use format/abbreviated */
  ------------------
  |  Branch (2458:9): [True: 0, False: 9.71k]
  ------------------
 2459|      0|        status = U_ZERO_ERROR;
 2460|      0|        assignArray(fStandaloneShortWeekdays, fStandaloneShortWeekdaysCount, fShortWeekdays, fShortWeekdaysCount);
 2461|      0|    }
 2462|       |
 2463|       |    // Stand-alone short weekdays -> fStandaloneShorterWeekdays (fall back to format abbreviated)
 2464|  9.71k|    initField(&fStandaloneShorterWeekdays, fStandaloneShorterWeekdaysCount, calendarSink,
 2465|  9.71k|              buildResourcePath(path, gDayNamesTag, gNamesStandaloneTag, gNamesShortTag, status), 1, status);
 2466|  9.71k|    if (status == U_MISSING_RESOURCE_ERROR) { /* If standalone/short is not available, use format/short */
  ------------------
  |  Branch (2466:9): [True: 0, False: 9.71k]
  ------------------
 2467|      0|        status = U_ZERO_ERROR;
 2468|      0|        assignArray(fStandaloneShorterWeekdays, fStandaloneShorterWeekdaysCount, fShorterWeekdays, fShorterWeekdaysCount);
 2469|      0|    }
 2470|       |
 2471|       |    // Format narrow weekdays -> fNarrowWeekdays
 2472|  9.71k|    UErrorCode narrowWeeksEC = status;
 2473|  9.71k|    initField(&fNarrowWeekdays, fNarrowWeekdaysCount, calendarSink,
 2474|  9.71k|              buildResourcePath(path, gDayNamesTag, gNamesFormatTag, gNamesNarrowTag, status), 1, narrowWeeksEC);
 2475|       |    // Stand-alone narrow weekdays -> fStandaloneNarrowWeekdays
 2476|  9.71k|    UErrorCode standaloneNarrowWeeksEC = status;
 2477|  9.71k|    initField(&fStandaloneNarrowWeekdays, fStandaloneNarrowWeekdaysCount, calendarSink,
 2478|  9.71k|              buildResourcePath(path, gDayNamesTag, gNamesStandaloneTag, gNamesNarrowTag, status), 1, standaloneNarrowWeeksEC);
 2479|       |
 2480|  9.71k|    if (narrowWeeksEC == U_MISSING_RESOURCE_ERROR && standaloneNarrowWeeksEC != U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (2480:9): [True: 0, False: 9.71k]
  |  Branch (2480:54): [True: 0, False: 0]
  ------------------
 2481|       |        // If format/narrow not available, use standalone/narrow
 2482|      0|        assignArray(fNarrowWeekdays, fNarrowWeekdaysCount, fStandaloneNarrowWeekdays, fStandaloneNarrowWeekdaysCount);
 2483|  9.71k|    } else if (narrowWeeksEC != U_MISSING_RESOURCE_ERROR && standaloneNarrowWeeksEC == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (2483:16): [True: 9.71k, False: 0]
  |  Branch (2483:61): [True: 0, False: 9.71k]
  ------------------
 2484|       |        // If standalone/narrow not available, use format/narrow
 2485|      0|        assignArray(fStandaloneNarrowWeekdays, fStandaloneNarrowWeekdaysCount, fNarrowWeekdays, fNarrowWeekdaysCount);
 2486|  9.71k|    } else if (narrowWeeksEC == U_MISSING_RESOURCE_ERROR && standaloneNarrowWeeksEC == U_MISSING_RESOURCE_ERROR ) {
  ------------------
  |  Branch (2486:16): [True: 0, False: 9.71k]
  |  Branch (2486:61): [True: 0, False: 0]
  ------------------
 2487|       |        // If neither is available, use format/abbreviated
 2488|      0|        assignArray(fNarrowWeekdays, fNarrowWeekdaysCount, fShortWeekdays, fShortWeekdaysCount);
 2489|      0|        assignArray(fStandaloneNarrowWeekdays, fStandaloneNarrowWeekdaysCount, fShortWeekdays, fShortWeekdaysCount);
 2490|      0|    }
 2491|       |
 2492|       |    // Last resort fallback in case previous data wasn't loaded
 2493|  9.71k|    if (U_FAILURE(status))
  ------------------
  |  Branch (2493:9): [True: 0, False: 9.71k]
  ------------------
 2494|      0|    {
 2495|      0|        if (useLastResortData)
  ------------------
  |  Branch (2495:13): [True: 0, False: 0]
  ------------------
 2496|      0|        {
 2497|       |            // Handle the case in which there is no resource data present.
 2498|       |            // We don't have to generate usable patterns in this situation;
 2499|       |            // we just need to produce something that will be semi-intelligible
 2500|       |            // in most locales.
 2501|       |
 2502|      0|            status = U_USING_FALLBACK_WARNING;
 2503|       |            //TODO(fabalbon): make sure we are storing las resort data for all fields in here.
 2504|      0|            initField(&fEras, fErasCount, reinterpret_cast<const char16_t*>(gLastResortEras), kEraNum, kEraLen, status);
 2505|      0|            initField(&fEraNames, fEraNamesCount, reinterpret_cast<const char16_t*>(gLastResortEras), kEraNum, kEraLen, status);
 2506|      0|            initField(&fNarrowEras, fNarrowErasCount, reinterpret_cast<const char16_t*>(gLastResortEras), kEraNum, kEraLen, status);
 2507|      0|            initField(&fMonths, fMonthsCount, reinterpret_cast<const char16_t*>(gLastResortMonthNames), kMonthNum, kMonthLen, status);
 2508|      0|            initField(&fShortMonths, fShortMonthsCount, reinterpret_cast<const char16_t*>(gLastResortMonthNames), kMonthNum, kMonthLen, status);
 2509|      0|            initField(&fNarrowMonths, fNarrowMonthsCount, reinterpret_cast<const char16_t*>(gLastResortMonthNames), kMonthNum, kMonthLen, status);
 2510|      0|            initField(&fStandaloneMonths, fStandaloneMonthsCount, reinterpret_cast<const char16_t*>(gLastResortMonthNames), kMonthNum, kMonthLen, status);
 2511|      0|            initField(&fStandaloneShortMonths, fStandaloneShortMonthsCount, reinterpret_cast<const char16_t*>(gLastResortMonthNames), kMonthNum, kMonthLen, status);
 2512|      0|            initField(&fStandaloneNarrowMonths, fStandaloneNarrowMonthsCount, reinterpret_cast<const char16_t*>(gLastResortMonthNames), kMonthNum, kMonthLen, status);
 2513|      0|            initField(&fWeekdays, fWeekdaysCount, reinterpret_cast<const char16_t*>(gLastResortDayNames), kDayNum, kDayLen, status);
 2514|      0|            initField(&fShortWeekdays, fShortWeekdaysCount, reinterpret_cast<const char16_t*>(gLastResortDayNames), kDayNum, kDayLen, status);
 2515|      0|            initField(&fShorterWeekdays, fShorterWeekdaysCount, reinterpret_cast<const char16_t*>(gLastResortDayNames), kDayNum, kDayLen, status);
 2516|      0|            initField(&fNarrowWeekdays, fNarrowWeekdaysCount, reinterpret_cast<const char16_t*>(gLastResortDayNames), kDayNum, kDayLen, status);
 2517|      0|            initField(&fStandaloneWeekdays, fStandaloneWeekdaysCount, reinterpret_cast<const char16_t*>(gLastResortDayNames), kDayNum, kDayLen, status);
 2518|      0|            initField(&fStandaloneShortWeekdays, fStandaloneShortWeekdaysCount, reinterpret_cast<const char16_t*>(gLastResortDayNames), kDayNum, kDayLen, status);
 2519|      0|            initField(&fStandaloneShorterWeekdays, fStandaloneShorterWeekdaysCount, reinterpret_cast<const char16_t*>(gLastResortDayNames), kDayNum, kDayLen, status);
 2520|      0|            initField(&fStandaloneNarrowWeekdays, fStandaloneNarrowWeekdaysCount, reinterpret_cast<const char16_t*>(gLastResortDayNames), kDayNum, kDayLen, status);
 2521|      0|            initField(&fAmPms, fAmPmsCount, reinterpret_cast<const char16_t*>(gLastResortAmPmMarkers), kAmPmNum, kAmPmLen, status);
 2522|      0|            initField(&fNarrowAmPms, fNarrowAmPmsCount, reinterpret_cast<const char16_t*>(gLastResortAmPmMarkers), kAmPmNum, kAmPmLen, status);
 2523|      0|            initField(&fQuarters, fQuartersCount, reinterpret_cast<const char16_t*>(gLastResortQuarters), kQuarterNum, kQuarterLen, status);
 2524|      0|            initField(&fShortQuarters, fShortQuartersCount, reinterpret_cast<const char16_t*>(gLastResortQuarters), kQuarterNum, kQuarterLen, status);
 2525|      0|            initField(&fNarrowQuarters, fNarrowQuartersCount, reinterpret_cast<const char16_t*>(gLastResortQuarters), kQuarterNum, kQuarterLen, status);
 2526|      0|            initField(&fStandaloneQuarters, fStandaloneQuartersCount, reinterpret_cast<const char16_t*>(gLastResortQuarters), kQuarterNum, kQuarterLen, status);
 2527|      0|            initField(&fStandaloneShortQuarters, fStandaloneShortQuartersCount, reinterpret_cast<const char16_t*>(gLastResortQuarters), kQuarterNum, kQuarterLen, status);
 2528|      0|            initField(&fStandaloneNarrowQuarters, fStandaloneNarrowQuartersCount, reinterpret_cast<const char16_t*>(gLastResortQuarters), kQuarterNum, kQuarterLen, status);
 2529|      0|            fLocalPatternChars.setTo(true, gPatternChars, PATTERN_CHARS_LEN);
  ------------------
  |  |   66|      0|#define PATTERN_CHARS_LEN 37
  ------------------
 2530|      0|        }
 2531|      0|    }
 2532|  9.71k|}
dtfmtsym.cpp:_ZN6icu_78L21newUnicodeStringArrayEm:
  269|  2.43M|static inline UnicodeString* newUnicodeStringArray(size_t count) {
  270|  2.43M|    return new UnicodeString[count ? count : 1];
  ------------------
  |  Branch (270:30): [True: 2.43M, False: 0]
  ------------------
  271|  2.43M|}
dtfmtsym.cpp:_ZN6icu_7812_GLOBAL__N_116CalendarDataSinkC2ER10UErrorCode:
 1531|  9.77k|    :   arrays(false, status), arraySizes(false, status), maps(false, status),
 1532|  9.77k|        mapRefs(),
 1533|  9.77k|        aliasPathPairs(uprv_deleteUObject, uhash_compareUnicodeString, status),
  ------------------
  |  | 1489|  9.77k|#define uprv_deleteUObject U_ICU_ENTRY_POINT_RENAME(uprv_deleteUObject)
  |  |  ------------------
  |  |  |  |  123|  9.77k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.77k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.77k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      aliasPathPairs(uprv_deleteUObject, uhash_compareUnicodeString, status),
  ------------------
  |  |  999|  9.77k|#define uhash_compareUnicodeString U_ICU_ENTRY_POINT_RENAME(uhash_compareUnicodeString)
  |  |  ------------------
  |  |  |  |  123|  9.77k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.77k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.77k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1534|  9.77k|        currentCalendarType(), nextCalendarType(),
 1535|  9.77k|        resourcesToVisit(nullptr), aliasRelativePath() {
 1536|  9.77k|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1536:13): [True: 0, False: 9.77k]
  ------------------
 1537|  9.77k|    }
dtfmtsym.cpp:_ZN6icu_7812_GLOBAL__N_116CalendarDataSink3putEPKcRNS_13ResourceValueEaR10UErrorCode:
 1552|  21.2k|    virtual void put(const char *key, ResourceValue &value, UBool, UErrorCode &errorCode) override {
 1553|  21.2k|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1553:13): [True: 0, False: 21.2k]
  ------------------
 1554|  21.2k|        U_ASSERT(!currentCalendarType.isEmpty());
  ------------------
  |  |   35|  21.2k|#   define U_ASSERT(exp) (void)0
  ------------------
 1555|       |
 1556|       |        // Stores the resources to visit on the next calendar.
 1557|  21.2k|        LocalPointer<UVector> resourcesToVisitNext(nullptr);
 1558|  21.2k|        ResourceTable calendarData = value.getTable(errorCode);
 1559|  21.2k|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1559:13): [True: 0, False: 21.2k]
  ------------------
 1560|       |
 1561|       |        // Enumerate all resources for this calendar
 1562|   272k|        for (int i = 0; calendarData.getKeyAndValue(i, key, value); i++) {
  ------------------
  |  Branch (1562:25): [True: 250k, False: 21.2k]
  ------------------
 1563|   250k|            UnicodeString keyUString(key, -1, US_INV);
  ------------------
  |  |   98|   250k|#define US_INV icu::UnicodeString::kInvariant
  ------------------
 1564|       |
 1565|       |            // == Handle aliases ==
 1566|   250k|            AliasType aliasType = processAliasFromValue(keyUString, value, errorCode);
 1567|   250k|            if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1567:17): [True: 0, False: 250k]
  ------------------
 1568|   250k|            if (aliasType == GREGORIAN) {
  ------------------
  |  Branch (1568:17): [True: 2.90k, False: 248k]
  ------------------
 1569|       |                // Ignore aliases to the gregorian calendar, all of its resources will be loaded anyway.
 1570|  2.90k|                continue;
 1571|       |
 1572|   248k|            } else if (aliasType == DIFFERENT_CALENDAR) {
  ------------------
  |  Branch (1572:24): [True: 952, False: 247k]
  ------------------
 1573|       |                // Whenever an alias to the next calendar (except gregorian) is encountered, register the
 1574|       |                // calendar type it's pointing to
 1575|    952|                if (resourcesToVisitNext.isNull()) {
  ------------------
  |  Branch (1575:21): [True: 238, False: 714]
  ------------------
 1576|    238|                    resourcesToVisitNext
 1577|    238|                        .adoptInsteadAndCheckErrorCode(new UVector(uprv_deleteUObject, uhash_compareUnicodeString, errorCode),
  ------------------
  |  | 1489|    238|#define uprv_deleteUObject U_ICU_ENTRY_POINT_RENAME(uprv_deleteUObject)
  |  |  ------------------
  |  |  |  |  123|    238|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    238|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    238|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                                      .adoptInsteadAndCheckErrorCode(new UVector(uprv_deleteUObject, uhash_compareUnicodeString, errorCode),
  ------------------
  |  |  999|    238|#define uhash_compareUnicodeString U_ICU_ENTRY_POINT_RENAME(uhash_compareUnicodeString)
  |  |  ------------------
  |  |  |  |  123|    238|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    238|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    238|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1578|    238|                                                       errorCode);
 1579|    238|                    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1579:25): [True: 0, False: 238]
  ------------------
 1580|    238|                }
 1581|    952|                LocalPointer<UnicodeString> aliasRelativePathCopy(aliasRelativePath.clone(), errorCode);
 1582|    952|                resourcesToVisitNext->adoptElement(aliasRelativePathCopy.orphan(), errorCode);
 1583|    952|                if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1583:21): [True: 0, False: 952]
  ------------------
 1584|    952|                continue;
 1585|       |
 1586|   247k|            } else if (aliasType == SAME_CALENDAR) {
  ------------------
  |  Branch (1586:24): [True: 19.4k, False: 227k]
  ------------------
 1587|       |                // Register same-calendar alias
 1588|  19.4k|                if (arrays.get(aliasRelativePath) == nullptr && maps.get(aliasRelativePath) == nullptr) {
  ------------------
  |  Branch (1588:21): [True: 2.61k, False: 16.8k]
  |  Branch (1588:65): [True: 2.61k, False: 0]
  ------------------
 1589|  2.61k|                    LocalPointer<UnicodeString> aliasRelativePathCopy(aliasRelativePath.clone(), errorCode);
 1590|  2.61k|                    aliasPathPairs.adoptElement(aliasRelativePathCopy.orphan(), errorCode);
 1591|  2.61k|                    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1591:25): [True: 0, False: 2.61k]
  ------------------
 1592|  2.61k|                    LocalPointer<UnicodeString> keyUStringCopy(keyUString.clone(), errorCode);
 1593|  2.61k|                    aliasPathPairs.adoptElement(keyUStringCopy.orphan(), errorCode);
 1594|  2.61k|                    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1594:25): [True: 0, False: 2.61k]
  ------------------
 1595|  2.61k|                }
 1596|  19.4k|                continue;
 1597|  19.4k|            }
 1598|       |
 1599|       |            // Only visit the resources that were referenced by an alias on the previous calendar
 1600|       |            // (AmPmMarkersAbbr is an exception).
 1601|   227k|            if (!resourcesToVisit.isNull() && !resourcesToVisit->isEmpty() && !resourcesToVisit->contains(&keyUString)
  ------------------
  |  Branch (1601:17): [True: 2.63k, False: 225k]
  |  Branch (1601:47): [True: 2.63k, False: 0]
  |  Branch (1601:79): [True: 1.01k, False: 1.62k]
  ------------------
 1602|   227k|                && uprv_strcmp(key, gAmPmMarkersAbbrTag) != 0) { continue; }
  ------------------
  |  |   38|  1.01k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  1.01k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1602:20): [True: 1.01k, False: 0]
  ------------------
 1603|       |
 1604|       |            // == Handle data ==
 1605|   226k|            if (uprv_strcmp(key, gAmPmMarkersTag) == 0
  ------------------
  |  |   38|   226k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   226k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1605:17): [True: 6.30k, False: 220k]
  ------------------
 1606|   226k|                || uprv_strcmp(key, gAmPmMarkersAbbrTag) == 0
  ------------------
  |  |   38|   220k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   220k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1606:20): [True: 17.5k, False: 202k]
  ------------------
 1607|   226k|                || uprv_strcmp(key, gAmPmMarkersNarrowTag) == 0) {
  ------------------
  |  |   38|   202k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   202k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1607:20): [True: 5.61k, False: 197k]
  ------------------
 1608|  29.4k|                if (arrays.get(keyUString) == nullptr) {
  ------------------
  |  Branch (1608:21): [True: 20.9k, False: 8.56k]
  ------------------
 1609|  20.9k|                    ResourceArray resourceArray = value.getArray(errorCode);
 1610|  20.9k|                    int32_t arraySize = resourceArray.getSize();
 1611|  20.9k|                    LocalArray<UnicodeString> stringArray(new UnicodeString[arraySize], errorCode);
 1612|  20.9k|                    value.getStringArray(stringArray.getAlias(), arraySize, errorCode);
 1613|  20.9k|                    arrays.put(keyUString, stringArray.orphan(), errorCode);
 1614|  20.9k|                    arraySizes.puti(keyUString, arraySize, errorCode);
 1615|  20.9k|                    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1615:25): [True: 0, False: 20.9k]
  ------------------
 1616|  20.9k|                }
 1617|   197k|            } else if (uprv_strcmp(key, gErasTag) == 0
  ------------------
  |  |   38|   197k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   197k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1617:24): [True: 18.6k, False: 178k]
  ------------------
 1618|   197k|                       || uprv_strcmp(key, gDayNamesTag) == 0
  ------------------
  |  |   38|   178k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   178k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1618:27): [True: 19.0k, False: 159k]
  ------------------
 1619|   197k|                       || uprv_strcmp(key, gMonthNamesTag) == 0
  ------------------
  |  |   38|   159k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   159k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1619:27): [True: 19.7k, False: 139k]
  ------------------
 1620|   197k|                       || uprv_strcmp(key, gQuartersTag) == 0
  ------------------
  |  |   38|   139k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   139k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1620:27): [True: 18.2k, False: 121k]
  ------------------
 1621|   197k|                       || uprv_strcmp(key, gDayPeriodTag) == 0
  ------------------
  |  |   38|   121k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   121k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1621:27): [True: 7.98k, False: 113k]
  ------------------
 1622|   197k|                       || uprv_strcmp(key, gMonthPatternsTag) == 0
  ------------------
  |  |   38|   113k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   113k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1622:27): [True: 0, False: 113k]
  ------------------
 1623|   197k|                       || uprv_strcmp(key, gCyclicNameSetsTag) == 0) {
  ------------------
  |  |   38|   113k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   113k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1623:27): [True: 0, False: 113k]
  ------------------
 1624|  83.7k|                processResource(keyUString, key, value, errorCode);
 1625|  83.7k|            }
 1626|   226k|        }
 1627|       |
 1628|       |        // Apply same-calendar aliases
 1629|  21.2k|        UBool modified;
 1630|  21.2k|        do {
 1631|  21.2k|            modified = false;
 1632|  88.1k|            for (int32_t i = 0; i < aliasPathPairs.size();) {
  ------------------
  |  Branch (1632:33): [True: 66.8k, False: 21.2k]
  ------------------
 1633|  66.8k|                UBool mod = false;
 1634|  66.8k|                UnicodeString* alias = static_cast<UnicodeString*>(aliasPathPairs[i]);
 1635|  66.8k|                UnicodeString *aliasArray;
 1636|  66.8k|                Hashtable *aliasMap;
 1637|  66.8k|                if ((aliasArray = static_cast<UnicodeString*>(arrays.get(*alias))) != nullptr) {
  ------------------
  |  Branch (1637:21): [True: 66.8k, False: 0]
  ------------------
 1638|  66.8k|                    UnicodeString* path = static_cast<UnicodeString*>(aliasPathPairs[i + 1]);
 1639|  66.8k|                    if (arrays.get(*path) == nullptr) {
  ------------------
  |  Branch (1639:25): [True: 66.5k, False: 331]
  ------------------
 1640|       |                        // Clone the array
 1641|  66.5k|                        int32_t aliasArraySize = arraySizes.geti(*alias);
 1642|  66.5k|                        LocalArray<UnicodeString> aliasArrayCopy(new UnicodeString[aliasArraySize], errorCode);
 1643|  66.5k|                        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1643:29): [True: 0, False: 66.5k]
  ------------------
 1644|  66.5k|                        uprv_arrayCopy(aliasArray, aliasArrayCopy.getAlias(), aliasArraySize);
 1645|       |                        // Put the array on the 'arrays' map
 1646|  66.5k|                        arrays.put(*path, aliasArrayCopy.orphan(), errorCode);
 1647|  66.5k|                        arraySizes.puti(*path, aliasArraySize, errorCode);
 1648|  66.5k|                    }
 1649|  66.8k|                    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1649:25): [True: 0, False: 66.8k]
  ------------------
 1650|  66.8k|                    mod = true;
 1651|  66.8k|                } else if ((aliasMap = static_cast<Hashtable*>(maps.get(*alias))) != nullptr) {
  ------------------
  |  Branch (1651:28): [True: 0, False: 0]
  ------------------
 1652|      0|                    UnicodeString* path = static_cast<UnicodeString*>(aliasPathPairs[i + 1]);
 1653|      0|                    if (maps.get(*path) == nullptr) {
  ------------------
  |  Branch (1653:25): [True: 0, False: 0]
  ------------------
 1654|      0|                        maps.put(*path, aliasMap, errorCode);
 1655|      0|                    }
 1656|      0|                    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1656:25): [True: 0, False: 0]
  ------------------
 1657|      0|                    mod = true;
 1658|      0|                }
 1659|  66.8k|                if (mod) {
  ------------------
  |  Branch (1659:21): [True: 66.8k, False: 0]
  ------------------
 1660|  66.8k|                    aliasPathPairs.removeElementAt(i + 1);
 1661|  66.8k|                    aliasPathPairs.removeElementAt(i);
 1662|  66.8k|                    modified = true;
 1663|  66.8k|                } else {
 1664|      0|                    i += 2;
 1665|      0|                }
 1666|  66.8k|            }
 1667|  21.2k|        } while (modified && !aliasPathPairs.isEmpty());
  ------------------
  |  Branch (1667:18): [True: 5.41k, False: 15.8k]
  |  Branch (1667:30): [True: 0, False: 5.41k]
  ------------------
 1668|       |
 1669|       |        // Set the resources to visit on the next calendar
 1670|  21.2k|        if (!resourcesToVisitNext.isNull()) {
  ------------------
  |  Branch (1670:13): [True: 238, False: 21.0k]
  ------------------
 1671|    238|            resourcesToVisit = std::move(resourcesToVisitNext);
 1672|    238|        }
 1673|  21.2k|    }
dtfmtsym.cpp:_ZN6icu_7812_GLOBAL__N_116CalendarDataSink21processAliasFromValueERNS_13UnicodeStringERNS_13ResourceValueER10UErrorCode:
 1797|   633k|                                    UErrorCode &errorCode) {
 1798|   633k|        if (U_FAILURE(errorCode)) { return NONE; }
  ------------------
  |  Branch (1798:13): [True: 0, False: 633k]
  ------------------
 1799|       |
 1800|   633k|        if (value.getType() == URES_ALIAS) {
  ------------------
  |  Branch (1800:13): [True: 87.5k, False: 545k]
  ------------------
 1801|  87.5k|            int32_t aliasPathSize;
 1802|  87.5k|            const char16_t* aliasPathUChar = value.getAliasString(aliasPathSize, errorCode);
 1803|  87.5k|            if (U_FAILURE(errorCode)) { return NONE; }
  ------------------
  |  Branch (1803:17): [True: 0, False: 87.5k]
  ------------------
 1804|  87.5k|            UnicodeString aliasPath(aliasPathUChar, aliasPathSize);
 1805|  87.5k|            const int32_t aliasPrefixLength = UPRV_LENGTHOF(kCalendarAliasPrefixUChar);
  ------------------
  |  |   99|  87.5k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1806|  87.5k|            if (aliasPath.startsWith(kCalendarAliasPrefixUChar, aliasPrefixLength)
  ------------------
  |  Branch (1806:17): [True: 87.5k, False: 0]
  |  Branch (1806:17): [True: 87.5k, False: 0]
  ------------------
 1807|  87.5k|                && aliasPath.length() > aliasPrefixLength) {
  ------------------
  |  Branch (1807:20): [True: 87.5k, False: 0]
  ------------------
 1808|  87.5k|                int32_t typeLimit = aliasPath.indexOf(SOLIDUS, aliasPrefixLength);
  ------------------
  |  |   35|  87.5k|#define SOLIDUS           ((char16_t)0x002F)
  ------------------
 1809|  87.5k|                if (typeLimit > aliasPrefixLength) {
  ------------------
  |  Branch (1809:21): [True: 87.5k, False: 0]
  ------------------
 1810|  87.5k|                    const UnicodeString aliasCalendarType =
 1811|  87.5k|                        aliasPath.tempSubStringBetween(aliasPrefixLength, typeLimit);
 1812|  87.5k|                    aliasRelativePath.setTo(aliasPath, typeLimit + 1, aliasPath.length());
 1813|       |
 1814|  87.5k|                    if (currentCalendarType == aliasCalendarType
  ------------------
  |  Branch (1814:25): [True: 83.6k, False: 3.85k]
  ------------------
 1815|  87.5k|                        && currentRelativePath != aliasRelativePath) {
  ------------------
  |  Branch (1815:28): [True: 83.6k, False: 0]
  ------------------
 1816|       |                        // If we have an alias to the same calendar, the path to the resource must be different
 1817|  83.6k|                        return SAME_CALENDAR;
 1818|       |
 1819|  83.6k|                    } else if (currentCalendarType != aliasCalendarType
  ------------------
  |  Branch (1819:32): [True: 3.85k, False: 0]
  ------------------
 1820|  3.85k|                               && currentRelativePath == aliasRelativePath) {
  ------------------
  |  Branch (1820:35): [True: 3.85k, False: 0]
  ------------------
 1821|       |                        // If we have an alias to a different calendar, the path to the resource must be the same
 1822|  3.85k|                        if (aliasCalendarType.compare(kGregorianTagUChar, UPRV_LENGTHOF(kGregorianTagUChar)) == 0) {
  ------------------
  |  |   99|  3.85k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1822:29): [True: 2.90k, False: 952]
  ------------------
 1823|  2.90k|                            return GREGORIAN;
 1824|  2.90k|                        } else if (nextCalendarType.isBogus()) {
  ------------------
  |  Branch (1824:36): [True: 238, False: 714]
  ------------------
 1825|    238|                            nextCalendarType = aliasCalendarType;
 1826|    238|                            return DIFFERENT_CALENDAR;
 1827|    714|                        } else if (nextCalendarType == aliasCalendarType) {
  ------------------
  |  Branch (1827:36): [True: 714, False: 0]
  ------------------
 1828|    714|                            return DIFFERENT_CALENDAR;
 1829|    714|                        }
 1830|  3.85k|                    }
 1831|  87.5k|                }
 1832|  87.5k|            }
 1833|      0|            errorCode = U_INTERNAL_PROGRAM_ERROR;
 1834|      0|            return NONE;
 1835|  87.5k|        }
 1836|   545k|        return NONE;
 1837|   633k|    }
dtfmtsym.cpp:_ZN6icu_7812_GLOBAL__N_116CalendarDataSink15processResourceERNS_13UnicodeStringEPKcRNS_13ResourceValueER10UErrorCode:
 1676|   242k|    void processResource(UnicodeString &path, const char *key, ResourceValue &value, UErrorCode &errorCode) {
 1677|   242k|        if (U_FAILURE(errorCode)) return;
  ------------------
  |  Branch (1677:13): [True: 0, False: 242k]
  ------------------
 1678|       |
 1679|   242k|        ResourceTable table = value.getTable(errorCode);
 1680|   242k|        if (U_FAILURE(errorCode)) return;
  ------------------
  |  Branch (1680:13): [True: 0, False: 242k]
  ------------------
 1681|   242k|        Hashtable* stringMap = nullptr;
 1682|       |
 1683|       |        // Iterate over all the elements of the table and add them to the map
 1684|  1.02M|        for (int i = 0; table.getKeyAndValue(i, key, value); i++) {
  ------------------
  |  Branch (1684:25): [True: 779k, False: 242k]
  ------------------
 1685|   779k|            UnicodeString keyUString(key, -1, US_INV);
  ------------------
  |  |   98|   779k|#define US_INV icu::UnicodeString::kInvariant
  ------------------
 1686|       |
 1687|       |            // Ignore '%variant' keys
 1688|   779k|            if (keyUString.endsWith(kVariantTagUChar, UPRV_LENGTHOF(kVariantTagUChar))) {
  ------------------
  |  |   99|   779k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1688:17): [True: 14.7k, False: 764k]
  ------------------
 1689|  14.7k|                continue;
 1690|  14.7k|            }
 1691|       |
 1692|       |            // == Handle String elements ==
 1693|   764k|            if (value.getType() == URES_STRING) {
  ------------------
  |  Branch (1693:17): [True: 228k, False: 536k]
  ------------------
 1694|       |                // We are on a leaf, store the map elements into the stringMap
 1695|   228k|                if (i == 0) {
  ------------------
  |  Branch (1695:21): [True: 35.6k, False: 192k]
  ------------------
 1696|       |                    // mapRefs will keep ownership of 'stringMap':
 1697|  35.6k|                    stringMap = mapRefs.create(false, errorCode);
 1698|  35.6k|                    if (stringMap == nullptr) {
  ------------------
  |  Branch (1698:25): [True: 0, False: 35.6k]
  ------------------
 1699|      0|                        errorCode = U_MEMORY_ALLOCATION_ERROR;
 1700|      0|                        return;
 1701|      0|                    }
 1702|  35.6k|                    maps.put(path, stringMap, errorCode);
 1703|  35.6k|                    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1703:25): [True: 0, False: 35.6k]
  ------------------
 1704|  35.6k|                    stringMap->setValueDeleter(uprv_deleteUObject);
  ------------------
  |  | 1489|  35.6k|#define uprv_deleteUObject U_ICU_ENTRY_POINT_RENAME(uprv_deleteUObject)
  |  |  ------------------
  |  |  |  |  123|  35.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  35.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  35.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1705|  35.6k|                }
 1706|   228k|                U_ASSERT(stringMap != nullptr);
  ------------------
  |  |   35|   228k|#   define U_ASSERT(exp) (void)0
  ------------------
 1707|   228k|                int32_t valueStringSize;
 1708|   228k|                const char16_t *valueString = value.getString(valueStringSize, errorCode);
 1709|   228k|                if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1709:21): [True: 0, False: 228k]
  ------------------
 1710|   228k|                LocalPointer<UnicodeString> valueUString(new UnicodeString(true, valueString, valueStringSize), errorCode);
 1711|   228k|                stringMap->put(keyUString, valueUString.orphan(), errorCode);
 1712|   228k|                if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1712:21): [True: 0, False: 228k]
  ------------------
 1713|   228k|                continue;
 1714|   228k|            }
 1715|   536k|            U_ASSERT(stringMap == nullptr);
  ------------------
  |  |   35|   536k|#   define U_ASSERT(exp) (void)0
  ------------------
 1716|       |
 1717|       |            // Store the current path's length and append the current key to the path.
 1718|   536k|            int32_t pathLength = path.length();
 1719|   536k|            path.append(SOLIDUS).append(keyUString);
  ------------------
  |  |   35|   536k|#define SOLIDUS           ((char16_t)0x002F)
  ------------------
 1720|       |
 1721|       |            // In cyclicNameSets ignore everything but years/format/abbreviated
 1722|       |            // and zodiacs/format/abbreviated
 1723|   536k|            if (path.startsWith(kCyclicNameSetsTagUChar, UPRV_LENGTHOF(kCyclicNameSetsTagUChar))) {
  ------------------
  |  |   99|   536k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1723:17): [True: 0, False: 536k]
  ------------------
 1724|      0|                UBool skip = true;
 1725|      0|                int32_t startIndex = UPRV_LENGTHOF(kCyclicNameSetsTagUChar);
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1726|      0|                int32_t length = 0;
 1727|      0|                if (startIndex == path.length()
  ------------------
  |  Branch (1727:21): [True: 0, False: 0]
  ------------------
 1728|      0|                    || path.compare(startIndex, (length = UPRV_LENGTHOF(kZodiacsUChar)), kZodiacsUChar, 0, UPRV_LENGTHOF(kZodiacsUChar)) == 0
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
                                  || path.compare(startIndex, (length = UPRV_LENGTHOF(kZodiacsUChar)), kZodiacsUChar, 0, UPRV_LENGTHOF(kZodiacsUChar)) == 0
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1728:24): [True: 0, False: 0]
  ------------------
 1729|      0|                    || path.compare(startIndex, (length = UPRV_LENGTHOF(kYearsTagUChar)), kYearsTagUChar, 0, UPRV_LENGTHOF(kYearsTagUChar)) == 0
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
                                  || path.compare(startIndex, (length = UPRV_LENGTHOF(kYearsTagUChar)), kYearsTagUChar, 0, UPRV_LENGTHOF(kYearsTagUChar)) == 0
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1729:24): [True: 0, False: 0]
  ------------------
 1730|      0|                    || path.compare(startIndex, (length = UPRV_LENGTHOF(kDayPartsTagUChar)), kDayPartsTagUChar, 0, UPRV_LENGTHOF(kDayPartsTagUChar)) == 0) {
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
                                  || path.compare(startIndex, (length = UPRV_LENGTHOF(kDayPartsTagUChar)), kDayPartsTagUChar, 0, UPRV_LENGTHOF(kDayPartsTagUChar)) == 0) {
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1730:24): [True: 0, False: 0]
  ------------------
 1731|      0|                    startIndex += length;
 1732|      0|                    length = 0;
 1733|      0|                    if (startIndex == path.length()
  ------------------
  |  Branch (1733:25): [True: 0, False: 0]
  ------------------
 1734|      0|                        || path.compare(startIndex, (length = UPRV_LENGTHOF(kFormatTagUChar)), kFormatTagUChar, 0, UPRV_LENGTHOF(kFormatTagUChar)) == 0) {
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
                                      || path.compare(startIndex, (length = UPRV_LENGTHOF(kFormatTagUChar)), kFormatTagUChar, 0, UPRV_LENGTHOF(kFormatTagUChar)) == 0) {
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1734:28): [True: 0, False: 0]
  ------------------
 1735|      0|                        startIndex += length;
 1736|      0|                        length = 0;
 1737|      0|                        if (startIndex == path.length()
  ------------------
  |  Branch (1737:29): [True: 0, False: 0]
  ------------------
 1738|      0|                            || path.compare(startIndex, (length = UPRV_LENGTHOF(kAbbrTagUChar)), kAbbrTagUChar, 0, UPRV_LENGTHOF(kAbbrTagUChar)) == 0) {
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
                                          || path.compare(startIndex, (length = UPRV_LENGTHOF(kAbbrTagUChar)), kAbbrTagUChar, 0, UPRV_LENGTHOF(kAbbrTagUChar)) == 0) {
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1738:32): [True: 0, False: 0]
  ------------------
 1739|      0|                            skip = false;
 1740|      0|                        }
 1741|      0|                    }
 1742|      0|                }
 1743|      0|                if (skip) {
  ------------------
  |  Branch (1743:21): [True: 0, False: 0]
  ------------------
 1744|       |                    // Drop the latest key on the path and continue
 1745|      0|                    path.retainBetween(0, pathLength);
 1746|      0|                    continue;
 1747|      0|                }
 1748|      0|            }
 1749|       |
 1750|       |            // == Handle aliases ==
 1751|   536k|            if (arrays.get(path) != nullptr || maps.get(path) != nullptr) {
  ------------------
  |  Branch (1751:17): [True: 152k, False: 384k]
  |  Branch (1751:48): [True: 2.19k, False: 382k]
  ------------------
 1752|       |                // Drop the latest key on the path and continue
 1753|   154k|                path.retainBetween(0, pathLength);
 1754|   154k|                continue;
 1755|   154k|            }
 1756|       |
 1757|   382k|            AliasType aliasType = processAliasFromValue(path, value, errorCode);
 1758|   382k|            if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1758:17): [True: 0, False: 382k]
  ------------------
 1759|   382k|            if (aliasType == SAME_CALENDAR) {
  ------------------
  |  Branch (1759:17): [True: 64.2k, False: 317k]
  ------------------
 1760|       |                // Store the alias path and the current path on aliasPathPairs
 1761|  64.2k|                LocalPointer<UnicodeString> aliasRelativePathCopy(aliasRelativePath.clone(), errorCode);
 1762|  64.2k|                aliasPathPairs.adoptElement(aliasRelativePathCopy.orphan(), errorCode);
 1763|  64.2k|                if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1763:21): [True: 0, False: 64.2k]
  ------------------
 1764|  64.2k|                LocalPointer<UnicodeString> pathCopy(path.clone(), errorCode);
 1765|  64.2k|                aliasPathPairs.adoptElement(pathCopy.orphan(), errorCode);
 1766|  64.2k|                if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1766:21): [True: 0, False: 64.2k]
  ------------------
 1767|       |
 1768|       |                // Drop the latest key on the path and continue
 1769|  64.2k|                path.retainBetween(0, pathLength);
 1770|  64.2k|                continue;
 1771|  64.2k|            }
 1772|   317k|            U_ASSERT(aliasType == NONE);
  ------------------
  |  |   35|   317k|#   define U_ASSERT(exp) (void)0
  ------------------
 1773|       |
 1774|       |            // == Handle data ==
 1775|   317k|            if (value.getType() == URES_ARRAY) {
  ------------------
  |  Branch (1775:17): [True: 159k, False: 158k]
  ------------------
 1776|       |                // We are on a leaf, store the array
 1777|   159k|                ResourceArray rDataArray = value.getArray(errorCode);
 1778|   159k|                int32_t dataArraySize = rDataArray.getSize();
 1779|   159k|                LocalArray<UnicodeString> dataArray(new UnicodeString[dataArraySize], errorCode);
 1780|   159k|                value.getStringArray(dataArray.getAlias(), dataArraySize, errorCode);
 1781|   159k|                arrays.put(path, dataArray.orphan(), errorCode);
 1782|   159k|                arraySizes.puti(path, dataArraySize, errorCode);
 1783|   159k|                if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1783:21): [True: 0, False: 159k]
  ------------------
 1784|   159k|            } else if (value.getType() == URES_TABLE) {
  ------------------
  |  Branch (1784:24): [True: 158k, False: 0]
  ------------------
 1785|       |                // We are not on a leaf, recursively process the subtable.
 1786|   158k|                processResource(path, key, value, errorCode);
 1787|   158k|                if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1787:21): [True: 0, False: 158k]
  ------------------
 1788|   158k|            }
 1789|       |
 1790|       |            // Drop the latest key on the path
 1791|   317k|            path.retainBetween(0, pathLength);
 1792|   317k|        }
 1793|   242k|    }
dtfmtsym.cpp:_ZN6icu_7812_GLOBAL__N_116CalendarDataSink17visitAllResourcesEv:
 1541|    238|    void visitAllResources() {
 1542|    238|        resourcesToVisit.adoptInstead(nullptr);
 1543|    238|    }
dtfmtsym.cpp:_ZN6icu_7812_GLOBAL__N_116CalendarDataSink12preEnumerateERKNS_13UnicodeStringE:
 1546|  10.1k|    void preEnumerate(const UnicodeString &calendarType) {
 1547|  10.1k|        currentCalendarType = calendarType;
 1548|  10.1k|        nextCalendarType.setToBogus();
 1549|  10.1k|        aliasPathPairs.removeAllElements();
 1550|  10.1k|    }
dtfmtsym.cpp:_ZN6icu_78L20initLeapMonthPatternEPNS_13UnicodeStringEiRNS_12_GLOBAL__N_116CalendarDataSinkERNS_10CharStringER10UErrorCode:
 1912|  67.9k|initLeapMonthPattern(UnicodeString *field, int32_t index, CalendarDataSink &sink, CharString &path, UErrorCode &status) {
 1913|  67.9k|    field[index].remove();
 1914|  67.9k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1914:9): [True: 9.71k, False: 58.2k]
  ------------------
 1915|  9.71k|        UnicodeString pathUString(path.data(), -1, US_INV);
  ------------------
  |  |   98|  9.71k|#define US_INV icu::UnicodeString::kInvariant
  ------------------
 1916|  9.71k|        Hashtable *leapMonthTable = static_cast<Hashtable*>(sink.maps.get(pathUString));
 1917|  9.71k|        if (leapMonthTable != nullptr) {
  ------------------
  |  Branch (1917:13): [True: 0, False: 9.71k]
  ------------------
 1918|      0|            UnicodeString leapLabel(false, kLeapTagUChar, UPRV_LENGTHOF(kLeapTagUChar));
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1919|      0|            UnicodeString *leapMonthPattern = static_cast<UnicodeString*>(leapMonthTable->get(leapLabel));
 1920|      0|            if (leapMonthPattern != nullptr) {
  ------------------
  |  Branch (1920:17): [True: 0, False: 0]
  ------------------
 1921|      0|                field[index].fastCopyFrom(*leapMonthPattern);
 1922|      0|            } else {
 1923|      0|                field[index].setToBogus();
 1924|      0|            }
 1925|      0|            return;
 1926|      0|        }
 1927|  9.71k|        status = U_MISSING_RESOURCE_ERROR;
 1928|  9.71k|    }
 1929|  67.9k|}
dtfmtsym.cpp:_ZN6icu_78L17buildResourcePathERNS_10CharStringEPKcS3_S3_R10UErrorCode:
 1945|   339k|                   const char* segment3, UErrorCode &errorCode) {
 1946|   339k|    return buildResourcePath(path, segment1, segment2, errorCode).append('/', errorCode)
 1947|   339k|                                                                 .append(segment3, -1, errorCode);
 1948|   339k|}
dtfmtsym.cpp:_ZN6icu_78L9initFieldEPPNS_13UnicodeStringERiRNS_12_GLOBAL__N_116CalendarDataSinkERNS_10CharStringER10UErrorCode:
 1872|   190k|initField(UnicodeString **field, int32_t& length, CalendarDataSink &sink, CharString &key, UErrorCode &status) {
 1873|   190k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1873:9): [True: 180k, False: 9.71k]
  ------------------
 1874|   180k|        UnicodeString keyUString(key.data(), -1, US_INV);
  ------------------
  |  |   98|   180k|#define US_INV icu::UnicodeString::kInvariant
  ------------------
 1875|   180k|        UnicodeString* array = static_cast<UnicodeString*>(sink.arrays.get(keyUString));
 1876|       |
 1877|   180k|        if (array != nullptr) {
  ------------------
  |  Branch (1877:13): [True: 163k, False: 17.0k]
  ------------------
 1878|   163k|            length = sink.arraySizes.geti(keyUString);
 1879|   163k|            *field = array;
 1880|       |            // DateFormatSymbols takes ownership of the array:
 1881|   163k|            sink.arrays.remove(keyUString);
 1882|   163k|        } else {
 1883|  17.0k|            length = 0;
 1884|  17.0k|            status = U_MISSING_RESOURCE_ERROR;
 1885|  17.0k|        }
 1886|   180k|    }
 1887|   190k|}
dtfmtsym.cpp:_ZN6icu_78L17buildResourcePathERNS_10CharStringEPKcS3_S3_S3_R10UErrorCode:
 1952|  19.4k|                   const char* segment3, const char* segment4, UErrorCode &errorCode) {
 1953|  19.4k|    return buildResourcePath(path, segment1, segment2, segment3, errorCode).append('/', errorCode)
 1954|  19.4k|                                                                           .append(segment4, -1, errorCode);
 1955|  19.4k|}
dtfmtsym.cpp:_ZN6icu_7820loadDayPeriodStringsERNS_12_GLOBAL__N_116CalendarDataSinkERNS_10CharStringERiR10UErrorCode:
 1988|  58.2k|                                    int32_t &stringCount,  UErrorCode &status) {
 1989|  58.2k|    if (U_FAILURE(status)) { return nullptr; }
  ------------------
  |  Branch (1989:9): [True: 0, False: 58.2k]
  ------------------
 1990|       |
 1991|  58.2k|    UnicodeString pathUString(path.data(), -1, US_INV);
  ------------------
  |  |   98|  58.2k|#define US_INV icu::UnicodeString::kInvariant
  ------------------
 1992|  58.2k|    Hashtable* map = static_cast<Hashtable*>(sink.maps.get(pathUString));
 1993|       |
 1994|  58.2k|    stringCount = UPRV_LENGTHOF(dayPeriodKeys);
  ------------------
  |  |   99|  58.2k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1995|  58.2k|    UnicodeString *strings = new UnicodeString[stringCount];
 1996|  58.2k|    if (strings == nullptr) {
  ------------------
  |  Branch (1996:9): [True: 0, False: 58.2k]
  ------------------
 1997|      0|        status = U_MEMORY_ALLOCATION_ERROR;
 1998|      0|        return nullptr;
 1999|      0|    }
 2000|       |
 2001|  58.2k|    if (map != nullptr) {
  ------------------
  |  Branch (2001:9): [True: 35.6k, False: 22.6k]
  ------------------
 2002|   392k|        for (int32_t i = 0; i < stringCount; ++i) {
  ------------------
  |  Branch (2002:29): [True: 356k, False: 35.6k]
  ------------------
 2003|   356k|            UnicodeString dayPeriodKey(dayPeriodKeys[i], -1, US_INV);
  ------------------
  |  |   98|   356k|#define US_INV icu::UnicodeString::kInvariant
  ------------------
 2004|   356k|            UnicodeString *dayPeriod = static_cast<UnicodeString*>(map->get(dayPeriodKey));
 2005|   356k|            if (dayPeriod != nullptr) {
  ------------------
  |  Branch (2005:17): [True: 197k, False: 159k]
  ------------------
 2006|   197k|                strings[i].fastCopyFrom(*dayPeriod);
 2007|   197k|            } else {
 2008|   159k|                strings[i].setToBogus();
 2009|   159k|            }
 2010|   356k|        }
 2011|  35.6k|    } else {
 2012|   248k|        for (int32_t i = 0; i < stringCount; i++) {
  ------------------
  |  Branch (2012:29): [True: 226k, False: 22.6k]
  ------------------
 2013|   226k|            strings[i].setToBogus();
 2014|   226k|        }
 2015|  22.6k|    }
 2016|  58.2k|    return strings;
 2017|  58.2k|}
dtfmtsym.cpp:_ZN6icu_78L17buildResourcePathERNS_10CharStringEPKcS3_R10UErrorCode:
 1938|   369k|                   UErrorCode &errorCode) {
 1939|   369k|    return buildResourcePath(path, segment1, errorCode).append('/', errorCode)
 1940|   369k|                                                       .append(segment2, -1, errorCode);
 1941|   369k|}
dtfmtsym.cpp:_ZN6icu_78L17buildResourcePathERNS_10CharStringEPKcR10UErrorCode:
 1932|   394k|&buildResourcePath(CharString &path, const char* segment1, UErrorCode &errorCode) {
 1933|   394k|    return path.clear().append(segment1, -1, errorCode);
 1934|   394k|}
dtfmtsym.cpp:_ZN6icu_78L9initFieldEPPNS_13UnicodeStringERiRNS_12_GLOBAL__N_116CalendarDataSinkERNS_10CharStringEiR10UErrorCode:
 1890|  77.6k|initField(UnicodeString **field, int32_t& length, CalendarDataSink &sink, CharString &key, int32_t arrayOffset, UErrorCode &status) {
 1891|  77.6k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1891:9): [True: 77.6k, False: 0]
  ------------------
 1892|  77.6k|        UnicodeString keyUString(key.data(), -1, US_INV);
  ------------------
  |  |   98|  77.6k|#define US_INV icu::UnicodeString::kInvariant
  ------------------
 1893|  77.6k|        UnicodeString* array = static_cast<UnicodeString*>(sink.arrays.get(keyUString));
 1894|       |
 1895|  77.6k|        if (array != nullptr) {
  ------------------
  |  Branch (1895:13): [True: 77.6k, False: 0]
  ------------------
 1896|  77.6k|            int32_t arrayLength = sink.arraySizes.geti(keyUString);
 1897|  77.6k|            length = arrayLength + arrayOffset;
 1898|  77.6k|            *field = new UnicodeString[length];
 1899|  77.6k|            if (*field == nullptr) {
  ------------------
  |  Branch (1899:17): [True: 0, False: 77.6k]
  ------------------
 1900|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 1901|      0|                return;
 1902|      0|            }
 1903|  77.6k|            uprv_arrayCopy(array, 0, *field, arrayOffset, arrayLength);
 1904|  77.6k|        } else {
 1905|      0|            length = 0;
 1906|      0|            status = U_MISSING_RESOURCE_ERROR;
 1907|      0|        }
 1908|  77.6k|    }
 1909|  77.6k|}
dtfmtsym.cpp:_ZN6icu_7812_GLOBAL__N_116CalendarDataSinkD2Ev:
 1845|  9.77k|CalendarDataSink::~CalendarDataSink() {
 1846|  9.77k|    arrays.setValueDeleter(deleteUnicodeStringArray);
 1847|  9.77k|}
dtfmtsym.cpp:_ZN6icu_7812_GLOBAL__N_116CalendarDataSink24deleteUnicodeStringArrayEPv:
 1840|  82.8k|    static void U_CALLCONV deleteUnicodeStringArray(void *uArray) {
 1841|  82.8k|        delete[] static_cast<UnicodeString *>(uArray);
 1842|  82.8k|    }

_ZN6icu_7824DateTimePatternGenerator14createInstanceERKNS_6LocaleER10UErrorCode:
  306|  9.83k|DateTimePatternGenerator::createInstance(const Locale& locale, UErrorCode& status) {
  307|  9.83k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (307:9): [True: 0, False: 9.83k]
  ------------------
  308|      0|        return nullptr;
  309|      0|    }
  310|  9.83k|    LocalPointer<DateTimePatternGenerator> result(
  311|  9.83k|            new DateTimePatternGenerator(locale, status), status);
  312|  9.83k|    return U_SUCCESS(status) ? result.orphan() : nullptr;
  ------------------
  |  Branch (312:12): [True: 9.83k, False: 0]
  ------------------
  313|  9.83k|}
_ZN6icu_7824DateTimePatternGenerator22createInstanceNoStdPatERKNS_6LocaleER10UErrorCode:
  316|  3.97k|DateTimePatternGenerator::createInstanceNoStdPat(const Locale& locale, UErrorCode& status) {
  317|  3.97k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (317:9): [True: 0, False: 3.97k]
  ------------------
  318|      0|        return nullptr;
  319|      0|    }
  320|  3.97k|    LocalPointer<DateTimePatternGenerator> result(
  321|  3.97k|            new DateTimePatternGenerator(locale, status, true), status);
  322|  3.97k|    return U_SUCCESS(status) ? result.orphan() : nullptr;
  ------------------
  |  Branch (322:12): [True: 3.53k, False: 439]
  ------------------
  323|  3.97k|}
_ZN6icu_7824DateTimePatternGeneratorC2ERKNS_6LocaleER10UErrorCodea:
  351|  13.8k|    skipMatcher(nullptr),
  352|  13.8k|    fAvailableFormatKeyHash(nullptr),
  353|  13.8k|    fDefaultHourFormatChar(0),
  354|  13.8k|    internalErrorCode(U_ZERO_ERROR)
  355|  13.8k|{
  356|  13.8k|    fp = new FormatParser();
  357|  13.8k|    dtMatcher = new DateTimeMatcher();
  358|  13.8k|    distanceInfo = new DistanceInfo();
  359|  13.8k|    patternMap = new PatternMap();
  360|  13.8k|    if (fp == nullptr || dtMatcher == nullptr || distanceInfo == nullptr || patternMap == nullptr) {
  ------------------
  |  Branch (360:9): [True: 0, False: 13.8k]
  |  Branch (360:26): [True: 0, False: 13.8k]
  |  Branch (360:50): [True: 0, False: 13.8k]
  |  Branch (360:77): [True: 0, False: 13.8k]
  ------------------
  361|      0|        internalErrorCode = status = U_MEMORY_ALLOCATION_ERROR;
  362|      0|    }
  363|  13.8k|    else {
  364|  13.8k|        initData(locale, status, skipStdPatterns);
  365|  13.8k|    }
  366|  13.8k|}
_ZN6icu_7824DateTimePatternGeneratorD2Ev:
  465|  13.8k|DateTimePatternGenerator::~DateTimePatternGenerator() {
  466|  13.8k|    delete fAvailableFormatKeyHash;
  467|  13.8k|    delete fp;
  468|  13.8k|    delete dtMatcher;
  469|  13.8k|    delete distanceInfo;
  470|  13.8k|    delete patternMap;
  471|  13.8k|    delete skipMatcher;
  472|  13.8k|}
_ZN6icu_7824DateTimePatternGenerator8initDataERKNS_6LocaleER10UErrorCodea:
  508|  13.8k|DateTimePatternGenerator::initData(const Locale& locale, UErrorCode &status, UBool skipStdPatterns) {
  509|       |    //const char *baseLangName = locale.getBaseName(); // unused
  510|  13.8k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (510:9): [True: 0, False: 13.8k]
  ------------------
  511|  13.8k|    if (locale.isBogus()) {
  ------------------
  |  Branch (511:9): [True: 0, False: 13.8k]
  ------------------
  512|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  513|      0|        return;
  514|      0|    }
  515|       |
  516|  13.8k|    skipMatcher = nullptr;
  517|  13.8k|    fAvailableFormatKeyHash=nullptr;
  518|  13.8k|    addCanonicalItems(status);
  519|  13.8k|    if (!skipStdPatterns) { // skip to prevent circular dependency when called from SimpleDateFormat::construct
  ------------------
  |  Branch (519:9): [True: 9.83k, False: 3.97k]
  ------------------
  520|  9.83k|        addICUPatterns(locale, status);
  521|  9.83k|    }
  522|  13.8k|    addCLDRData(locale, status);
  523|  13.8k|    setDateTimeFromCalendar(locale, status);
  524|  13.8k|    setDecimalSymbols(locale, status);
  525|  13.8k|    umtx_initOnce(initOnce, loadAllowedHourFormatsData, status);
  526|  13.8k|    getAllowedHourFormats(locale, status);
  527|       |    // If any of the above methods failed then the object is in an invalid state.
  528|  13.8k|    internalErrorCode = status;
  529|  13.8k|} // DateTimePatternGenerator::initData
_ZN6icu_7824DateTimePatternGenerator26loadAllowedHourFormatsDataER10UErrorCode:
  621|      1|U_CFUNC void U_CALLCONV DateTimePatternGenerator::loadAllowedHourFormatsData(UErrorCode &status) {
  622|      1|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (622:9): [True: 0, False: 1]
  ------------------
  623|      1|    localeToAllowedHourFormatsMap = 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  624|      1|        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_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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  625|      1|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (625:9): [True: 0, False: 1]
  ------------------
  626|       |
  627|      1|    uhash_setValueDeleter(localeToAllowedHourFormatsMap, deleteAllowedHourFormats);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  uhash_setValueDeleter(localeToAllowedHourFormatsMap, deleteAllowedHourFormats);
  ------------------
  |  |  121|      1|#define deleteAllowedHourFormats U_ICU_ENTRY_POINT_RENAME(deleteAllowedHourFormats)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  628|      1|    ucln_i18n_registerCleanup(UCLN_I18N_ALLOWED_HOUR_FORMATS, allowedHourFormatsCleanup);
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  ucln_i18n_registerCleanup(UCLN_I18N_ALLOWED_HOUR_FORMATS, allowedHourFormatsCleanup);
  ------------------
  |  |  118|      1|#define allowedHourFormatsCleanup U_ICU_ENTRY_POINT_RENAME(allowedHourFormatsCleanup)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  629|       |
  630|      1|    LocalUResourceBundlePointer rb(ures_openDirect(nullptr, "supplementalData", &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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  631|      1|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (631:9): [True: 0, False: 1]
  ------------------
  632|       |
  633|      1|    AllowedHourFormatsSink sink;
  634|       |    // TODO: Currently in the enumeration each table allocates a new array.
  635|       |    // Try to reduce the number of memory allocations. Consider storing a
  636|       |    // UVector32 with the concatenation of all of the sub-arrays, put the start index
  637|       |    // into the hashmap, store 6 single-value sub-arrays right at the beginning of the
  638|       |    // vector (at index enum*2) for easy data sharing, copy sub-arrays into runtime
  639|       |    // object. Remember to clean up the vector, too.
  640|      1|    ures_getAllItemsWithFallback(rb.getAlias(), "timeData", 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  641|      1|}
_ZN6icu_7824DateTimePatternGenerator21getAllowedHourFormatsERKNS_6LocaleER10UErrorCode:
  658|  13.8k|void DateTimePatternGenerator::getAllowedHourFormats(const Locale &locale, UErrorCode &status) {
  659|  13.8k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (659:9): [True: 416, False: 13.3k]
  ------------------
  660|       |
  661|  13.3k|    const char *language = locale.getLanguage();
  662|  13.3k|    CharString baseCountry = ulocimp_getRegionForSupplementalData(locale.getName(), false, status);
  ------------------
  |  | 1207|  13.3k|#define ulocimp_getRegionForSupplementalData U_ICU_ENTRY_POINT_RENAME(ulocimp_getRegionForSupplementalData)
  |  |  ------------------
  |  |  |  |  123|  13.3k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.3k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.3k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  663|  13.3k|    const char* country = baseCountry.data();
  664|       |
  665|  13.3k|    Locale maxLocale;  // must be here for correct lifetime
  666|  13.3k|    if (*language == '\0' || *country == '\0') {
  ------------------
  |  Branch (666:9): [True: 896, False: 12.4k]
  |  Branch (666:30): [True: 3.71k, False: 8.77k]
  ------------------
  667|  4.60k|        maxLocale = locale;
  668|  4.60k|        UErrorCode localStatus = U_ZERO_ERROR;
  669|  4.60k|        maxLocale.addLikelySubtags(localStatus);
  670|  4.60k|        if (U_SUCCESS(localStatus)) {
  ------------------
  |  Branch (670:13): [True: 4.41k, False: 194]
  ------------------
  671|  4.41k|            language = maxLocale.getLanguage();
  672|  4.41k|            country = maxLocale.getCountry();
  673|  4.41k|        }
  674|  4.60k|    }
  675|  13.3k|    if (*language == '\0') {
  ------------------
  |  Branch (675:9): [True: 39, False: 13.3k]
  ------------------
  676|       |        // Unexpected, but fail gracefully
  677|     39|        language = "und";
  678|     39|    }
  679|  13.3k|    if (*country == '\0') {
  ------------------
  |  Branch (679:9): [True: 1.43k, False: 11.9k]
  ------------------
  680|  1.43k|        country = "001";
  681|  1.43k|    }
  682|       |
  683|  13.3k|    int32_t* allowedFormats = getAllowedHourFormatsLangCountry(language, country, status);
  684|       |
  685|       |    // We need to check if there is an hour cycle on locale
  686|  13.3k|    char buffer[8];
  687|  13.3k|    int32_t count = locale.getKeywordValue("hours", buffer, sizeof(buffer), status);
  688|       |
  689|  13.3k|    fDefaultHourFormatChar = 0;
  690|  13.3k|    if (U_SUCCESS(status) && count > 0) {
  ------------------
  |  Branch (690:9): [True: 13.3k, False: 23]
  |  Branch (690:30): [True: 49, False: 13.3k]
  ------------------
  691|     49|        if(uprv_strcmp(buffer, "h24") == 0) {
  ------------------
  |  |   38|     49|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|     49|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (691:12): [True: 3, False: 46]
  ------------------
  692|      3|            fDefaultHourFormatChar = LOW_K;
  ------------------
  |  |   79|      3|#define LOW_K             ((char16_t)0x006B)
  ------------------
  693|     46|        } else if(uprv_strcmp(buffer, "h23") == 0) {
  ------------------
  |  |   38|     46|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|     46|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (693:19): [True: 3, False: 43]
  ------------------
  694|      3|            fDefaultHourFormatChar = CAP_H;
  ------------------
  |  |   53|      3|#define CAP_H             ((char16_t)0x0048)
  ------------------
  695|     43|        } else if(uprv_strcmp(buffer, "h12") == 0) {
  ------------------
  |  |   38|     43|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|     43|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (695:19): [True: 3, False: 40]
  ------------------
  696|      3|            fDefaultHourFormatChar = LOW_H;
  ------------------
  |  |   76|      3|#define LOW_H             ((char16_t)0x0068)
  ------------------
  697|     40|        } else if(uprv_strcmp(buffer, "h11") == 0) {
  ------------------
  |  |   38|     40|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|     40|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (697:19): [True: 3, False: 37]
  ------------------
  698|      3|            fDefaultHourFormatChar = CAP_K;
  ------------------
  |  |   55|      3|#define CAP_K             ((char16_t)0x004B)
  ------------------
  699|      3|        }
  700|     49|    }
  701|       |
  702|       |    // Check if the region has an alias
  703|  13.3k|    if (allowedFormats == nullptr) {
  ------------------
  |  Branch (703:9): [True: 800, False: 12.5k]
  ------------------
  704|    800|        UErrorCode localStatus = U_ZERO_ERROR;
  705|    800|        const Region* region = Region::getInstance(country, localStatus);
  706|    800|        if (U_SUCCESS(localStatus)) {
  ------------------
  |  Branch (706:13): [True: 122, False: 678]
  ------------------
  707|    122|            country = region->getRegionCode(); // the real region code
  708|    122|            allowedFormats = getAllowedHourFormatsLangCountry(language, country, status);
  709|    122|        }
  710|    800|    }
  711|       |
  712|  13.3k|    if (allowedFormats != nullptr) {  // Lookup is successful
  ------------------
  |  Branch (712:9): [True: 12.6k, False: 775]
  ------------------
  713|       |        // Here allowedFormats points to a list consisting of key for preferredFormat,
  714|       |        // followed by one or more keys for allowedFormats, then followed by ALLOWED_HOUR_FORMAT_UNKNOWN.
  715|  12.6k|        if (!fDefaultHourFormatChar) {
  ------------------
  |  Branch (715:13): [True: 12.6k, False: 6]
  ------------------
  716|  12.6k|            switch (allowedFormats[0]) {
  717|  7.17k|                case ALLOWED_HOUR_FORMAT_h: fDefaultHourFormatChar = LOW_H; break;
  ------------------
  |  |   76|  7.17k|#define LOW_H             ((char16_t)0x0068)
  ------------------
  |  Branch (717:17): [True: 7.17k, False: 5.43k]
  ------------------
  718|  5.43k|                case ALLOWED_HOUR_FORMAT_H: fDefaultHourFormatChar = CAP_H; break;
  ------------------
  |  |   53|  5.43k|#define CAP_H             ((char16_t)0x0048)
  ------------------
  |  Branch (718:17): [True: 5.43k, False: 7.17k]
  ------------------
  719|      0|                case ALLOWED_HOUR_FORMAT_K: fDefaultHourFormatChar = CAP_K; break;
  ------------------
  |  |   55|      0|#define CAP_K             ((char16_t)0x004B)
  ------------------
  |  Branch (719:17): [True: 0, False: 12.6k]
  ------------------
  720|      0|                case ALLOWED_HOUR_FORMAT_k: fDefaultHourFormatChar = LOW_K; break;
  ------------------
  |  |   79|      0|#define LOW_K             ((char16_t)0x006B)
  ------------------
  |  Branch (720:17): [True: 0, False: 12.6k]
  ------------------
  721|      0|                default: fDefaultHourFormatChar = CAP_H; break;
  ------------------
  |  |   53|      0|#define CAP_H             ((char16_t)0x0048)
  ------------------
  |  Branch (721:17): [True: 0, False: 12.6k]
  ------------------
  722|  12.6k|            }
  723|  12.6k|        }
  724|       |
  725|  53.5k|        for (int32_t i = 0; i < UPRV_LENGTHOF(fAllowedHourFormats); ++i) {
  ------------------
  |  |   99|  53.5k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (725:29): [True: 53.5k, False: 0]
  ------------------
  726|  53.5k|            fAllowedHourFormats[i] = allowedFormats[i + 1];
  727|  53.5k|            if (fAllowedHourFormats[i] == ALLOWED_HOUR_FORMAT_UNKNOWN) {
  ------------------
  |  Branch (727:17): [True: 12.6k, False: 40.9k]
  ------------------
  728|  12.6k|                break;
  729|  12.6k|            }
  730|  53.5k|        }
  731|  12.6k|    } else {  // Lookup failed, twice
  732|    775|        if (!fDefaultHourFormatChar) {
  ------------------
  |  Branch (732:13): [True: 769, False: 6]
  ------------------
  733|    769|            fDefaultHourFormatChar = CAP_H;
  ------------------
  |  |   53|    769|#define CAP_H             ((char16_t)0x0048)
  ------------------
  734|    769|        }
  735|    775|        fAllowedHourFormats[0] = ALLOWED_HOUR_FORMAT_H;
  736|    775|        fAllowedHourFormats[1] = ALLOWED_HOUR_FORMAT_UNKNOWN;
  737|    775|    }
  738|  13.3k|}
_ZN6icu_7824DateTimePatternGenerator17staticGetSkeletonERKNS_13UnicodeStringER10UErrorCode:
  777|  15.5k|        const UnicodeString& pattern, UErrorCode& /*status*/) {
  778|  15.5k|    FormatParser fp;
  779|  15.5k|    DateTimeMatcher matcher;
  780|  15.5k|    PtnSkeleton localSkeleton;
  781|  15.5k|    matcher.set(pattern, &fp, localSkeleton);
  782|  15.5k|    return localSkeleton.getSkeleton();
  783|  15.5k|}
_ZN6icu_7824DateTimePatternGenerator14addICUPatternsERKNS_6LocaleER10UErrorCode:
  805|  9.83k|DateTimePatternGenerator::addICUPatterns(const Locale& locale, UErrorCode& status) {
  806|  9.83k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (806:9): [True: 0, False: 9.83k]
  ------------------
  807|      0|        return;
  808|      0|    }
  809|       |    
  810|  9.83k|    LocalUResourceBundlePointer rb(ures_open(nullptr, locale.getBaseName(), &status));
  ------------------
  |  | 1691|  9.83k|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|  9.83k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.83k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.83k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  811|  9.83k|    CharString calendarTypeToUse; // to be filled in with the type to use, if all goes well
  812|  9.83k|    getCalendarTypeToUse(locale, calendarTypeToUse, status);
  813|       |
  814|       |    // HACK to get around the fact that the old SimpleDateFormat code (actually, Calendar::getCalendarTypeForLocale() )
  815|       |    // returns "gregorian" for ja_JP_TRADITIONAL instead of "japanese"
  816|  9.83k|    if (uprv_strcmp(locale.getBaseName(), "ja_JP_TRADITIONAL") == 0) {
  ------------------
  |  |   38|  9.83k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  9.83k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (816:9): [True: 0, False: 9.83k]
  ------------------
  817|      0|        calendarTypeToUse.clear().append("gregorian", status);
  818|      0|    }
  819|       |    
  820|  9.83k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (820:9): [True: 0, False: 9.83k]
  ------------------
  821|      0|        return;
  822|      0|    }
  823|       |
  824|       |    // TODO: See ICU-22867
  825|  9.83k|    CharString patternResourcePath;
  826|  9.83k|    patternResourcePath.append(DT_DateTimeCalendarTag, status)
  827|  9.83k|        .append('/', status)
  828|  9.83k|        .append(calendarTypeToUse, status)
  829|  9.83k|        .append('/', status)
  830|  9.83k|        .append(DT_DateTimePatternsTag, status);
  831|       |
  832|  9.83k|    LocalUResourceBundlePointer dateTimePatterns(ures_getByKeyWithFallback(rb.getAlias(), patternResourcePath.data(),
  ------------------
  |  | 1662|  9.83k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  9.83k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.83k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.83k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  833|  9.83k|                                                                           nullptr, &status));
  834|  9.83k|    if (ures_getType(dateTimePatterns.getAlias()) != URES_ARRAY || ures_getSize(dateTimePatterns.getAlias()) < 8) {
  ------------------
  |  | 1679|  9.83k|#define ures_getType U_ICU_ENTRY_POINT_RENAME(ures_getType)
  |  |  ------------------
  |  |  |  |  123|  9.83k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.83k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.83k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  if (ures_getType(dateTimePatterns.getAlias()) != URES_ARRAY || ures_getSize(dateTimePatterns.getAlias()) < 8) {
  ------------------
  |  | 1674|  9.83k|#define ures_getSize U_ICU_ENTRY_POINT_RENAME(ures_getSize)
  |  |  ------------------
  |  |  |  |  123|  9.83k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.83k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.83k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (834:9): [True: 0, False: 9.83k]
  |  Branch (834:68): [True: 0, False: 9.83k]
  ------------------
  835|      0|        status = U_INVALID_FORMAT_ERROR;
  836|      0|        return;
  837|      0|    }
  838|       |
  839|  88.4k|    for (int32_t i = 0; U_SUCCESS(status) && i < DateFormat::kDateTime; i++) {
  ------------------
  |  Branch (839:25): [True: 88.4k, False: 0]
  |  Branch (839:46): [True: 78.6k, False: 9.83k]
  ------------------
  840|  78.6k|        LocalUResourceBundlePointer patternRes(ures_getByIndex(dateTimePatterns.getAlias(), i, nullptr, &status));
  ------------------
  |  | 1660|  78.6k|#define ures_getByIndex U_ICU_ENTRY_POINT_RENAME(ures_getByIndex)
  |  |  ------------------
  |  |  |  |  123|  78.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  78.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  78.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  841|  78.6k|        UnicodeString pattern;
  842|  78.6k|        switch (ures_getType(patternRes.getAlias())) {
  ------------------
  |  | 1679|  78.6k|#define ures_getType U_ICU_ENTRY_POINT_RENAME(ures_getType)
  |  |  ------------------
  |  |  |  |  123|  78.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  78.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  78.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  843|  78.3k|            case URES_STRING:
  ------------------
  |  Branch (843:13): [True: 78.3k, False: 305]
  ------------------
  844|  78.3k|                pattern = ures_getUnicodeString(patternRes.getAlias(), &status);
  845|  78.3k|                break;
  846|    305|            case URES_ARRAY:
  ------------------
  |  Branch (846:13): [True: 305, False: 78.3k]
  ------------------
  847|    305|                pattern = ures_getUnicodeStringByIndex(patternRes.getAlias(), 0, &status);
  848|    305|                break;
  849|      0|            default:
  ------------------
  |  Branch (849:13): [True: 0, False: 78.6k]
  ------------------
  850|      0|                status = U_INVALID_FORMAT_ERROR;
  851|      0|                return;
  852|  78.6k|        }
  853|       |        
  854|  78.6k|        if (U_SUCCESS(status)) {
  ------------------
  |  Branch (854:13): [True: 78.6k, False: 0]
  ------------------
  855|  78.6k|            UnicodeString conflictingPattern;
  856|  78.6k|            addPatternWithSkeleton(pattern, nullptr, false, conflictingPattern, status);
  857|  78.6k|        }
  858|  78.6k|    }
  859|  9.83k|}
_ZN6icu_7824DateTimePatternGenerator20getCalendarTypeToUseERKNS_6LocaleERNS_10CharStringER10UErrorCode:
  910|  23.6k|DateTimePatternGenerator::getCalendarTypeToUse(const Locale& locale, CharString& destination, UErrorCode& err) {
  911|  23.6k|    destination.clear().append(DT_DateTimeGregorianTag, -1, err); // initial default
  912|  23.6k|    if ( U_SUCCESS(err) ) {
  ------------------
  |  Branch (912:10): [True: 23.6k, False: 0]
  ------------------
  913|  23.6k|        UErrorCode localStatus = U_ZERO_ERROR;
  914|  23.6k|        char localeWithCalendarKey[ULOC_LOCALE_IDENTIFIER_CAPACITY];
  915|       |        // obtain a locale that always has the calendar key value that should be used
  916|  23.6k|        ures_getFunctionalEquivalent(
  ------------------
  |  | 1663|  23.6k|#define ures_getFunctionalEquivalent U_ICU_ENTRY_POINT_RENAME(ures_getFunctionalEquivalent)
  |  |  ------------------
  |  |  |  |  123|  23.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  23.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  23.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  917|  23.6k|            localeWithCalendarKey,
  918|  23.6k|            ULOC_LOCALE_IDENTIFIER_CAPACITY,
  ------------------
  |  |  907|  23.6k|#define ULOC_LOCALE_IDENTIFIER_CAPACITY (ULOC_FULLNAME_CAPACITY + 1 + ULOC_KEYWORD_AND_VALUES_CAPACITY)
  |  |  ------------------
  |  |  |  |  264|  23.6k|#define ULOC_FULLNAME_CAPACITY 157
  |  |  ------------------
  |  |               #define ULOC_LOCALE_IDENTIFIER_CAPACITY (ULOC_FULLNAME_CAPACITY + 1 + ULOC_KEYWORD_AND_VALUES_CAPACITY)
  |  |  ------------------
  |  |  |  |  283|  23.6k|#define ULOC_KEYWORD_AND_VALUES_CAPACITY 100
  |  |  ------------------
  ------------------
  919|  23.6k|            nullptr,
  920|  23.6k|            "calendar",
  921|  23.6k|            "calendar",
  922|  23.6k|            locale.getName(),
  923|  23.6k|            nullptr,
  924|  23.6k|            false,
  925|  23.6k|            &localStatus);
  926|  23.6k|        localeWithCalendarKey[ULOC_LOCALE_IDENTIFIER_CAPACITY-1] = 0; // ensure null termination
  ------------------
  |  |  907|  23.6k|#define ULOC_LOCALE_IDENTIFIER_CAPACITY (ULOC_FULLNAME_CAPACITY + 1 + ULOC_KEYWORD_AND_VALUES_CAPACITY)
  |  |  ------------------
  |  |  |  |  264|  23.6k|#define ULOC_FULLNAME_CAPACITY 157
  |  |  ------------------
  |  |               #define ULOC_LOCALE_IDENTIFIER_CAPACITY (ULOC_FULLNAME_CAPACITY + 1 + ULOC_KEYWORD_AND_VALUES_CAPACITY)
  |  |  ------------------
  |  |  |  |  283|  23.6k|#define ULOC_KEYWORD_AND_VALUES_CAPACITY 100
  |  |  ------------------
  ------------------
  927|       |        // now get the calendar key value from that locale
  928|       |        // (the call to ures_getFunctionalEquivalent() above might fail, and if it does, localeWithCalendarKey
  929|       |        // won't contain a `calendar` keyword.  If this happens, the line below will stomp on `destination`,
  930|       |        // so we have to check the return code before overwriting `destination`.)
  931|  23.6k|        if (U_SUCCESS(localStatus)) {
  ------------------
  |  Branch (931:13): [True: 23.2k, False: 409]
  ------------------
  932|  23.2k|            destination = ulocimp_getKeywordValue(localeWithCalendarKey, "calendar", localStatus);
  ------------------
  |  | 1200|  23.2k|#define ulocimp_getKeywordValue U_ICU_ENTRY_POINT_RENAME(ulocimp_getKeywordValue)
  |  |  ------------------
  |  |  |  |  123|  23.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  23.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  23.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  933|  23.2k|        }
  934|       |        // If the input locale was invalid, don't fail with missing resource error, instead
  935|       |        // continue with default of Gregorian.
  936|  23.6k|        if (U_FAILURE(localStatus) && localStatus != U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (936:13): [True: 409, False: 23.2k]
  |  Branch (936:39): [True: 337, False: 72]
  ------------------
  937|    337|            err = localStatus;
  938|    337|        }
  939|  23.6k|    }
  940|  23.6k|}
_ZN6icu_7824DateTimePatternGenerator21AppendItemFormatsSinkD2Ev:
 1058|  13.4k|DateTimePatternGenerator::AppendItemFormatsSink::~AppendItemFormatsSink() {}
_ZN6icu_7824DateTimePatternGenerator19AppendItemNamesSinkD2Ev:
 1059|  13.4k|DateTimePatternGenerator::AppendItemNamesSink::~AppendItemNamesSink() {}
_ZN6icu_7824DateTimePatternGenerator20AvailableFormatsSinkD2Ev:
 1060|  13.4k|DateTimePatternGenerator::AvailableFormatsSink::~AvailableFormatsSink() {}
_ZN6icu_7824DateTimePatternGenerator11addCLDRDataERKNS_6LocaleER10UErrorCode:
 1063|  13.8k|DateTimePatternGenerator::addCLDRData(const Locale& locale, UErrorCode& errorCode) {
 1064|  13.8k|    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1064:9): [True: 0, False: 13.8k]
  ------------------
 1065|  13.8k|    UnicodeString rbPattern, value, field;
 1066|  13.8k|    CharString path;
 1067|       |
 1068|  13.8k|    LocalUResourceBundlePointer rb(ures_open(nullptr, locale.getName(), &errorCode));
  ------------------
  |  | 1691|  13.8k|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1069|  13.8k|    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1069:9): [True: 3, False: 13.7k]
  ------------------
 1070|       |
 1071|  13.7k|    CharString calendarTypeToUse; // to be filled in with the type to use, if all goes well
 1072|  13.7k|    getCalendarTypeToUse(locale, calendarTypeToUse, errorCode);
 1073|  13.7k|    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1073:9): [True: 337, False: 13.4k]
  ------------------
 1074|       |
 1075|       |    // Local err to ignore resource not found exceptions
 1076|  13.4k|    UErrorCode err = U_ZERO_ERROR;
 1077|       |
 1078|       |    // Load append item formats.
 1079|  13.4k|    AppendItemFormatsSink appendItemFormatsSink(*this);
 1080|  13.4k|    path.clear()
 1081|  13.4k|        .append(DT_DateTimeCalendarTag, errorCode)
 1082|  13.4k|        .append('/', errorCode)
 1083|  13.4k|        .append(calendarTypeToUse, errorCode)
 1084|  13.4k|        .append('/', errorCode)
 1085|  13.4k|        .append(DT_DateTimeAppendItemsTag, errorCode); // i.e., calendar/xxx/appendItems
 1086|  13.4k|    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1086:9): [True: 0, False: 13.4k]
  ------------------
 1087|  13.4k|    ures_getAllChildrenWithFallback(rb.getAlias(), path.data(), appendItemFormatsSink, err);
  ------------------
  |  | 1657|  13.4k|#define ures_getAllChildrenWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getAllChildrenWithFallback)
  |  |  ------------------
  |  |  |  |  123|  13.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1088|  13.4k|    appendItemFormatsSink.fillInMissing();
 1089|       |
 1090|       |    // Load CLDR item names.
 1091|  13.4k|    err = U_ZERO_ERROR;
 1092|  13.4k|    AppendItemNamesSink appendItemNamesSink(*this);
 1093|  13.4k|    ures_getAllChildrenWithFallback(rb.getAlias(), DT_DateTimeFieldsTag, appendItemNamesSink, err);
  ------------------
  |  | 1657|  13.4k|#define ures_getAllChildrenWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getAllChildrenWithFallback)
  |  |  ------------------
  |  |  |  |  123|  13.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1094|  13.4k|    appendItemNamesSink.fillInMissing();
 1095|       |
 1096|       |    // Load the available formats from CLDR.
 1097|  13.4k|    err = U_ZERO_ERROR;
 1098|  13.4k|    initHashtable(errorCode);
 1099|  13.4k|    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1099:9): [True: 0, False: 13.4k]
  ------------------
 1100|  13.4k|    AvailableFormatsSink availableFormatsSink(*this);
 1101|  13.4k|    path.clear()
 1102|  13.4k|        .append(DT_DateTimeCalendarTag, errorCode)
 1103|  13.4k|        .append('/', errorCode)
 1104|  13.4k|        .append(calendarTypeToUse, errorCode)
 1105|  13.4k|        .append('/', errorCode)
 1106|  13.4k|        .append(DT_DateTimeAvailableFormatsTag, errorCode); // i.e., calendar/xxx/availableFormats
 1107|  13.4k|    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (1107:9): [True: 0, False: 13.4k]
  ------------------
 1108|  13.4k|    ures_getAllChildrenWithFallback(rb.getAlias(), path.data(), availableFormatsSink, err);
  ------------------
  |  | 1657|  13.4k|#define ures_getAllChildrenWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getAllChildrenWithFallback)
  |  |  ------------------
  |  |  |  |  123|  13.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1109|  13.4k|}
_ZN6icu_7824DateTimePatternGenerator13initHashtableER10UErrorCode:
 1112|  13.4k|DateTimePatternGenerator::initHashtable(UErrorCode& err) {
 1113|  13.4k|    if (U_FAILURE(err)) { return; }
  ------------------
  |  Branch (1113:9): [True: 0, False: 13.4k]
  ------------------
 1114|  13.4k|    if (fAvailableFormatKeyHash!=nullptr) {
  ------------------
  |  Branch (1114:9): [True: 0, False: 13.4k]
  ------------------
 1115|      0|        return;
 1116|      0|    }
 1117|  13.4k|    LocalPointer<Hashtable> hash(new Hashtable(false, err), err);
 1118|  13.4k|    if (U_SUCCESS(err)) {
  ------------------
  |  Branch (1118:9): [True: 13.4k, False: 0]
  ------------------
 1119|  13.4k|        fAvailableFormatKeyHash = hash.orphan();
 1120|  13.4k|    }
 1121|  13.4k|}
_ZN6icu_7824DateTimePatternGenerator19setAppendItemFormatE21UDateTimePatternFieldRKNS_13UnicodeStringE:
 1124|   215k|DateTimePatternGenerator::setAppendItemFormat(UDateTimePatternField field, const UnicodeString& value) {
 1125|   215k|    appendItemFormats[field] = value;
 1126|       |    // NUL-terminate for the C API.
 1127|   215k|    appendItemFormats[field].getTerminatedBuffer();
 1128|   215k|}
_ZNK6icu_7824DateTimePatternGenerator19getAppendItemFormatE21UDateTimePatternField:
 1131|   447k|DateTimePatternGenerator::getAppendItemFormat(UDateTimePatternField field) const {
 1132|   447k|    return appendItemFormats[field];
 1133|   447k|}
_ZN6icu_7824DateTimePatternGenerator19setFieldDisplayNameE21UDateTimePatternField23UDateTimePGDisplayWidthRKNS_13UnicodeStringE:
 1146|   605k|DateTimePatternGenerator::setFieldDisplayName(UDateTimePatternField field, UDateTimePGDisplayWidth width, const UnicodeString& value) {
 1147|   605k|    fieldDisplayNames[field][width] = value;
 1148|       |    // NUL-terminate for the C API.
 1149|   605k|    fieldDisplayNames[field][width].getTerminatedBuffer();
 1150|   605k|}
_ZNK6icu_7824DateTimePatternGenerator19getFieldDisplayNameE21UDateTimePatternField23UDateTimePGDisplayWidth:
 1153|  1.64M|DateTimePatternGenerator::getFieldDisplayName(UDateTimePatternField field, UDateTimePGDisplayWidth width) const {
 1154|  1.64M|    return fieldDisplayNames[field][width];
 1155|  1.64M|}
_ZN6icu_7824DateTimePatternGenerator26getMutableFieldDisplayNameE21UDateTimePatternField23UDateTimePGDisplayWidth:
 1158|   646k|DateTimePatternGenerator::getMutableFieldDisplayName(UDateTimePatternField field, UDateTimePGDisplayWidth width) {
 1159|   646k|    return fieldDisplayNames[field][width];
 1160|   646k|}
_ZN6icu_7824DateTimePatternGenerator13getAppendNameE21UDateTimePatternFieldRNS_13UnicodeStringE:
 1163|  7.25k|DateTimePatternGenerator::getAppendName(UDateTimePatternField field, UnicodeString& value) {
 1164|  7.25k|    value = SINGLE_QUOTE;
  ------------------
  |  |   35|  7.25k|#define SINGLE_QUOTE      ((char16_t)0x0027)
  ------------------
 1165|  7.25k|    value += fieldDisplayNames[field][UDATPG_WIDTH_APPENDITEM];
 1166|  7.25k|    value += SINGLE_QUOTE;
  ------------------
  |  |   35|  7.25k|#define SINGLE_QUOTE      ((char16_t)0x0027)
  ------------------
 1167|  7.25k|}
_ZN6icu_7824DateTimePatternGenerator14getBestPatternERKNS_13UnicodeStringER10UErrorCode:
 1170|  13.3k|DateTimePatternGenerator::getBestPattern(const UnicodeString& patternForm, UErrorCode& status) {
 1171|  13.3k|    return getBestPattern(patternForm, UDATPG_MATCH_NO_OPTIONS, status);
 1172|  13.3k|}
_ZN6icu_7824DateTimePatternGenerator14getBestPatternERKNS_13UnicodeStringE28UDateTimePatternMatchOptionsR10UErrorCode:
 1175|  13.3k|DateTimePatternGenerator::getBestPattern(const UnicodeString& patternForm, UDateTimePatternMatchOptions options, UErrorCode& status) {
 1176|  13.3k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1176:9): [True: 0, False: 13.3k]
  ------------------
 1177|      0|        return {};
 1178|      0|    }
 1179|  13.3k|    if (U_FAILURE(internalErrorCode)) {
  ------------------
  |  Branch (1179:9): [True: 0, False: 13.3k]
  ------------------
 1180|      0|        status = internalErrorCode;
 1181|      0|        return {};
 1182|      0|    }
 1183|  13.3k|    const UnicodeString *bestPattern = nullptr;
 1184|  13.3k|    UnicodeString dtFormat;
 1185|  13.3k|    UnicodeString resultPattern;
 1186|  13.3k|    int32_t flags = kDTPGNoFlags;
 1187|       |
 1188|  13.3k|    int32_t dateMask=(1<<UDATPG_DAYPERIOD_FIELD) - 1;
 1189|  13.3k|    int32_t timeMask=(1<<UDATPG_FIELD_COUNT) - 1 - dateMask;
 1190|       |
 1191|       |    // Replace hour metacharacters 'j', 'C' and 'J', set flags as necessary
 1192|  13.3k|    UnicodeString patternFormMapped = mapSkeletonMetacharacters(patternForm, &flags, status);
 1193|  13.3k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1193:9): [True: 0, False: 13.3k]
  ------------------
 1194|      0|        return {};
 1195|      0|    }
 1196|       |
 1197|  13.3k|    resultPattern.remove();
 1198|  13.3k|    dtMatcher->set(patternFormMapped, fp);
 1199|  13.3k|    const PtnSkeleton* specifiedSkeleton = nullptr;
 1200|  13.3k|    bestPattern=getBestRaw(*dtMatcher, -1, distanceInfo, status, &specifiedSkeleton);
 1201|  13.3k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1201:9): [True: 0, False: 13.3k]
  ------------------
 1202|      0|        return {};
 1203|      0|    }
 1204|       |
 1205|  13.3k|    if ( distanceInfo->missingFieldMask==0 && distanceInfo->extraFieldMask==0 ) {
  ------------------
  |  Branch (1205:10): [True: 6.22k, False: 7.13k]
  |  Branch (1205:47): [True: 5.22k, False: 1.00k]
  ------------------
 1206|  5.22k|        resultPattern = adjustFieldTypes(*bestPattern, specifiedSkeleton, flags, options);
 1207|       |
 1208|  5.22k|        return resultPattern;
 1209|  5.22k|    }
 1210|  8.13k|    int32_t neededFields = dtMatcher->getFieldMask();
 1211|  8.13k|    UnicodeString datePattern=getBestAppending(neededFields & dateMask, flags, status, options);
 1212|  8.13k|    UnicodeString timePattern=getBestAppending(neededFields & timeMask, flags, status, options);
 1213|  8.13k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1213:9): [True: 0, False: 8.13k]
  ------------------
 1214|      0|        return {};
 1215|      0|    }
 1216|  8.13k|    if (datePattern.length()==0) {
  ------------------
  |  Branch (1216:9): [True: 1.78k, False: 6.35k]
  ------------------
 1217|  1.78k|        if (timePattern.length()==0) {
  ------------------
  |  Branch (1217:13): [True: 1.00k, False: 778]
  ------------------
 1218|  1.00k|            resultPattern.remove();
 1219|  1.00k|        }
 1220|    778|        else {
 1221|    778|            return timePattern;
 1222|    778|        }
 1223|  1.78k|    }
 1224|  7.35k|    if (timePattern.length()==0) {
  ------------------
  |  Branch (1224:9): [True: 1.38k, False: 5.97k]
  ------------------
 1225|  1.38k|        return datePattern;
 1226|  1.38k|    }
 1227|  5.97k|    resultPattern.remove();
 1228|  5.97k|    status = U_ZERO_ERROR;
 1229|       |    // determine which dateTimeFormat to use
 1230|  5.97k|    PtnSkeleton* reqSkeleton = dtMatcher->getSkeletonPtr();
 1231|  5.97k|    UDateFormatStyle style = UDAT_SHORT;
 1232|  5.97k|    int32_t monthFieldLen = reqSkeleton->baseOriginal.getFieldLength(UDATPG_MONTH_FIELD);
 1233|  5.97k|    if (monthFieldLen == 4) {
  ------------------
  |  Branch (1233:9): [True: 18, False: 5.95k]
  ------------------
 1234|     18|        if (reqSkeleton->baseOriginal.getFieldLength(UDATPG_WEEKDAY_FIELD) > 0) {
  ------------------
  |  Branch (1234:13): [True: 10, False: 8]
  ------------------
 1235|     10|            style = UDAT_FULL;
 1236|     10|        } else {
 1237|      8|            style = UDAT_LONG;
 1238|      8|        }
 1239|  5.95k|    } else if (monthFieldLen == 3) {
  ------------------
  |  Branch (1239:16): [True: 22, False: 5.93k]
  ------------------
 1240|     22|        style = UDAT_MEDIUM;
 1241|     22|    }
 1242|       |    // and now use it to compose date and time
 1243|  5.97k|    dtFormat=getDateTimeFormat(style, status);
 1244|  5.97k|    SimpleFormatter(dtFormat, 2, 2, status).format(timePattern, datePattern, resultPattern, status);
 1245|  5.97k|    return resultPattern;
 1246|  7.35k|}
_ZN6icu_7824DateTimePatternGenerator25mapSkeletonMetacharactersERKNS_13UnicodeStringEPiR10UErrorCode:
 1256|  13.3k|DateTimePatternGenerator::mapSkeletonMetacharacters(const UnicodeString& patternForm, int32_t* flags, UErrorCode& status) {
 1257|  13.3k|    UnicodeString patternFormMapped;
 1258|  13.3k|    patternFormMapped.remove();
 1259|  13.3k|    UBool inQuoted = false;
 1260|  13.3k|    int32_t patPos, patLen = patternForm.length();
 1261|   124k|    for (patPos = 0; patPos < patLen; patPos++) {
  ------------------
  |  Branch (1261:22): [True: 111k, False: 13.3k]
  ------------------
 1262|   111k|        char16_t patChr = patternForm.charAt(patPos);
 1263|   111k|        if (patChr == SINGLE_QUOTE) {
  ------------------
  |  |   35|   111k|#define SINGLE_QUOTE      ((char16_t)0x0027)
  ------------------
  |  Branch (1263:13): [True: 0, False: 111k]
  ------------------
 1264|      0|            inQuoted = !inQuoted;
 1265|   111k|        } else if (!inQuoted) {
  ------------------
  |  Branch (1265:20): [True: 111k, False: 0]
  ------------------
 1266|       |            // Handle special mappings for 'j' and 'C' in which fields lengths
 1267|       |            // 1,3,5 => hour field length 1
 1268|       |            // 2,4,6 => hour field length 2
 1269|       |            // 1,2 => abbreviated dayPeriod (field length 1..3)
 1270|       |            // 3,4 => long dayPeriod (field length 4)
 1271|       |            // 5,6 => narrow dayPeriod (field length 5)
 1272|   111k|            if (patChr == LOW_J || patChr == CAP_C) {
  ------------------
  |  |   78|   222k|#define LOW_J             ((char16_t)0x006A)
  ------------------
                          if (patChr == LOW_J || patChr == CAP_C) {
  ------------------
  |  |   48|   107k|#define CAP_C             ((char16_t)0x0043)
  ------------------
  |  Branch (1272:17): [True: 3.99k, False: 107k]
  |  Branch (1272:36): [True: 522, False: 106k]
  ------------------
 1273|  4.51k|                int32_t extraLen = 0; // 1 less than total field length
 1274|  6.90k|                while (patPos+1 < patLen && patternForm.charAt(patPos+1)==patChr) {
  ------------------
  |  Branch (1274:24): [True: 6.63k, False: 267]
  |  Branch (1274:45): [True: 2.38k, False: 4.24k]
  ------------------
 1275|  2.38k|                    extraLen++;
 1276|  2.38k|                    patPos++;
 1277|  2.38k|                }
 1278|  4.51k|                int32_t hourLen = 1 + (extraLen & 1);
 1279|  4.51k|                int32_t dayPeriodLen = (extraLen < 2)? 1: 3 + (extraLen >> 1);
  ------------------
  |  Branch (1279:40): [True: 4.43k, False: 82]
  ------------------
 1280|  4.51k|                char16_t hourChar = LOW_H;
  ------------------
  |  |   76|  4.51k|#define LOW_H             ((char16_t)0x0068)
  ------------------
 1281|  4.51k|                char16_t dayPeriodChar = LOW_A;
  ------------------
  |  |   69|  4.51k|#define LOW_A             ((char16_t)0x0061)
  ------------------
 1282|  4.51k|                if (patChr == LOW_J) {
  ------------------
  |  |   78|  4.51k|#define LOW_J             ((char16_t)0x006A)
  ------------------
  |  Branch (1282:21): [True: 3.99k, False: 522]
  ------------------
 1283|  3.99k|                    hourChar = fDefaultHourFormatChar;
 1284|  3.99k|                } else {
 1285|    522|                    AllowedHourFormat bestAllowed;
 1286|    522|                    if (fAllowedHourFormats[0] != ALLOWED_HOUR_FORMAT_UNKNOWN) {
  ------------------
  |  Branch (1286:25): [True: 522, False: 0]
  ------------------
 1287|    522|                        bestAllowed = static_cast<AllowedHourFormat>(fAllowedHourFormats[0]);
 1288|    522|                    } else {
 1289|      0|                        status = U_INVALID_FORMAT_ERROR;
 1290|      0|                        return {};
 1291|      0|                    }
 1292|    522|                    if (bestAllowed == ALLOWED_HOUR_FORMAT_H || bestAllowed == ALLOWED_HOUR_FORMAT_HB || bestAllowed == ALLOWED_HOUR_FORMAT_Hb) {
  ------------------
  |  Branch (1292:25): [True: 111, False: 411]
  |  Branch (1292:65): [True: 0, False: 411]
  |  Branch (1292:106): [True: 0, False: 411]
  ------------------
 1293|    111|                        hourChar = CAP_H;
  ------------------
  |  |   53|    111|#define CAP_H             ((char16_t)0x0048)
  ------------------
 1294|    411|                    } else if (bestAllowed == ALLOWED_HOUR_FORMAT_K || bestAllowed == ALLOWED_HOUR_FORMAT_KB || bestAllowed == ALLOWED_HOUR_FORMAT_Kb) {
  ------------------
  |  Branch (1294:32): [True: 0, False: 411]
  |  Branch (1294:72): [True: 0, False: 411]
  |  Branch (1294:113): [True: 0, False: 411]
  ------------------
 1295|      0|                        hourChar = CAP_K;
  ------------------
  |  |   55|      0|#define CAP_K             ((char16_t)0x004B)
  ------------------
 1296|    411|                    } else if (bestAllowed == ALLOWED_HOUR_FORMAT_k) {
  ------------------
  |  Branch (1296:32): [True: 0, False: 411]
  ------------------
 1297|      0|                        hourChar = LOW_K;
  ------------------
  |  |   79|      0|#define LOW_K             ((char16_t)0x006B)
  ------------------
 1298|      0|                    }
 1299|       |                    // in #13183 just add b/B to skeleton, no longer need to set special flags
 1300|    522|                    if (bestAllowed == ALLOWED_HOUR_FORMAT_HB || bestAllowed == ALLOWED_HOUR_FORMAT_hB || bestAllowed == ALLOWED_HOUR_FORMAT_KB) {
  ------------------
  |  Branch (1300:25): [True: 0, False: 522]
  |  Branch (1300:66): [True: 46, False: 476]
  |  Branch (1300:107): [True: 0, False: 476]
  ------------------
 1301|     46|                        dayPeriodChar = CAP_B;
  ------------------
  |  |   47|     46|#define CAP_B             ((char16_t)0x0042)
  ------------------
 1302|    476|                    } else if (bestAllowed == ALLOWED_HOUR_FORMAT_Hb || bestAllowed == ALLOWED_HOUR_FORMAT_hb || bestAllowed == ALLOWED_HOUR_FORMAT_Kb) {
  ------------------
  |  Branch (1302:32): [True: 0, False: 476]
  |  Branch (1302:73): [True: 13, False: 463]
  |  Branch (1302:114): [True: 0, False: 463]
  ------------------
 1303|     13|                        dayPeriodChar = LOW_B;
  ------------------
  |  |   70|     13|#define LOW_B             ((char16_t)0x0062)
  ------------------
 1304|     13|                    }
 1305|    522|                }
 1306|  4.51k|                if (hourChar==CAP_H || hourChar==LOW_K) {
  ------------------
  |  |   53|  9.02k|#define CAP_H             ((char16_t)0x0048)
  ------------------
                              if (hourChar==CAP_H || hourChar==LOW_K) {
  ------------------
  |  |   79|  1.73k|#define LOW_K             ((char16_t)0x006B)
  ------------------
  |  Branch (1306:21): [True: 2.78k, False: 1.73k]
  |  Branch (1306:40): [True: 3, False: 1.73k]
  ------------------
 1307|  2.78k|                    dayPeriodLen = 0;
 1308|  2.78k|                }
 1309|  7.33k|                while (dayPeriodLen-- > 0) {
  ------------------
  |  Branch (1309:24): [True: 2.81k, False: 4.51k]
  ------------------
 1310|  2.81k|                    patternFormMapped.append(dayPeriodChar);
 1311|  2.81k|                }
 1312|  9.09k|                while (hourLen-- > 0) {
  ------------------
  |  Branch (1312:24): [True: 4.58k, False: 4.51k]
  ------------------
 1313|  4.58k|                    patternFormMapped.append(hourChar);
 1314|  4.58k|                }
 1315|   106k|            } else if (patChr == CAP_J) {
  ------------------
  |  |   54|   106k|#define CAP_J             ((char16_t)0x004A)
  ------------------
  |  Branch (1315:24): [True: 508, False: 106k]
  ------------------
 1316|       |                // Get pattern for skeleton with H, then replace H or k
 1317|       |                // with fDefaultHourFormatChar (if different)
 1318|    508|                patternFormMapped.append(CAP_H);
  ------------------
  |  |   53|    508|#define CAP_H             ((char16_t)0x0048)
  ------------------
 1319|    508|                *flags |= kDTPGSkeletonUsesCapJ;
 1320|   106k|            } else {
 1321|   106k|                patternFormMapped.append(patChr);
 1322|   106k|            }
 1323|   111k|        }
 1324|   111k|    }
 1325|  13.3k|    return patternFormMapped;
 1326|  13.3k|}
_ZN6icu_7824DateTimePatternGenerator17addCanonicalItemsER10UErrorCode:
 1365|  13.8k|DateTimePatternGenerator::addCanonicalItems(UErrorCode& status) {
 1366|  13.8k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1366:9): [True: 0, False: 13.8k]
  ------------------
 1367|  13.8k|    UnicodeString  conflictingPattern;
 1368|       |
 1369|   234k|    for (int32_t i=0; i<UDATPG_FIELD_COUNT; i++) {
  ------------------
  |  Branch (1369:23): [True: 220k, False: 13.8k]
  ------------------
 1370|   220k|        if (Canonical_Items[i] > 0) {
  ------------------
  |  Branch (1370:13): [True: 220k, False: 0]
  ------------------
 1371|   220k|            addPattern(UnicodeString(Canonical_Items[i]), false, conflictingPattern, status);
 1372|   220k|        }
 1373|   220k|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1373:13): [True: 0, False: 220k]
  ------------------
 1374|   220k|    }
 1375|  13.8k|}
_ZN6icu_7824DateTimePatternGenerator17setDateTimeFormatE16UDateFormatStyleRKNS_13UnicodeStringER10UErrorCode:
 1392|  53.8k|DateTimePatternGenerator::setDateTimeFormat(UDateFormatStyle style, const UnicodeString& dtFormat, UErrorCode& status) {
 1393|  53.8k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1393:9): [True: 0, False: 53.8k]
  ------------------
 1394|      0|        return;
 1395|      0|    }
 1396|  53.8k|    if (style < UDAT_FULL || style > UDAT_SHORT) {
  ------------------
  |  Branch (1396:9): [True: 0, False: 53.8k]
  |  Branch (1396:30): [True: 0, False: 53.8k]
  ------------------
 1397|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 1398|      0|        return;
 1399|      0|    }
 1400|  53.8k|    dateTimeFormat[style] = dtFormat;
 1401|       |    // Note for the following: getTerminatedBuffer() can re-allocate the UnicodeString
 1402|       |    // buffer so we do this here before clients request a const ref to the UnicodeString
 1403|       |    // or its buffer.
 1404|  53.8k|    dateTimeFormat[style].getTerminatedBuffer(); // NUL-terminate for the C API.
 1405|  53.8k|}
_ZNK6icu_7824DateTimePatternGenerator17getDateTimeFormatE16UDateFormatStyleR10UErrorCode:
 1408|  5.97k|DateTimePatternGenerator::getDateTimeFormat(UDateFormatStyle style, UErrorCode& status) const {
 1409|  5.97k|    static const UnicodeString emptyString = UNICODE_STRING_SIMPLE("");
  ------------------
  |  |  135|  5.97k|#define UNICODE_STRING_SIMPLE(cs) UNICODE_STRING(cs, -1)
  |  |  ------------------
  |  |  |  |  121|  5.97k|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  |  |  ------------------
  ------------------
 1410|  5.97k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1410:9): [True: 0, False: 5.97k]
  ------------------
 1411|      0|        return emptyString;
 1412|      0|    }
 1413|  5.97k|    if (style < UDAT_FULL || style > UDAT_SHORT) {
  ------------------
  |  Branch (1413:9): [True: 0, False: 5.97k]
  |  Branch (1413:30): [True: 0, False: 5.97k]
  ------------------
 1414|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 1415|      0|        return emptyString;
 1416|      0|    }
 1417|  5.97k|    return dateTimeFormat[style];
 1418|  5.97k|}
_ZN6icu_7824DateTimePatternGenerator23setDateTimeFromCalendarERKNS_6LocaleER10UErrorCode:
 1423|  13.8k|DateTimePatternGenerator::setDateTimeFromCalendar(const Locale& locale, UErrorCode& status) {
 1424|  13.8k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1424:9): [True: 340, False: 13.4k]
  ------------------
 1425|       |
 1426|  13.4k|    const char16_t *resStr;
 1427|  13.4k|    int32_t resStrLen = 0;
 1428|       |
 1429|  13.4k|    LocalUResourceBundlePointer calData(ures_open(nullptr, locale.getBaseName(), &status));
  ------------------
  |  | 1691|  13.4k|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|  13.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1430|  13.4k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1430:9): [True: 0, False: 13.4k]
  ------------------
 1431|  13.4k|    ures_getByKey(calData.getAlias(), DT_DateTimeCalendarTag, calData.getAlias(), &status);
  ------------------
  |  | 1661|  13.4k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  13.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1432|  13.4k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1432:9): [True: 0, False: 13.4k]
  ------------------
 1433|       |
 1434|  13.4k|    char cType[cTypeBufMax + 1];
 1435|  13.4k|    Calendar::getCalendarTypeFromLocale(locale, cType, cTypeBufMax, status);
 1436|  13.4k|    cType[cTypeBufMax] = 0;
 1437|  13.4k|    if (U_FAILURE(status) || cType[0] == 0) {
  ------------------
  |  Branch (1437:9): [True: 0, False: 13.4k]
  |  Branch (1437:30): [True: 0, False: 13.4k]
  ------------------
 1438|      0|        status = U_ZERO_ERROR;
 1439|      0|        uprv_strcpy(cType, DT_DateTimeGregorianTag);
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1440|      0|    }
 1441|  13.4k|    UBool cTypeIsGregorian = (uprv_strcmp(cType, DT_DateTimeGregorianTag) == 0);
  ------------------
  |  |   38|  13.4k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  13.4k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1442|       |
 1443|       |    // Currently, for compatibility with pre-CLDR-42 data, we default to the "atTime"
 1444|       |    // combining patterns. Depending on guidance in CLDR 42 spec and on DisplayOptions,
 1445|       |    // we may change this.
 1446|  13.4k|    LocalUResourceBundlePointer specificCalBundle;
 1447|  13.4k|    LocalUResourceBundlePointer dateTimePatterns;
 1448|  13.4k|    int32_t dateTimeOffset = 0; // initially for DateTimePatterns%atTime
 1449|  13.4k|    if (!cTypeIsGregorian) {
  ------------------
  |  Branch (1449:9): [True: 394, False: 13.0k]
  ------------------
 1450|    394|        specificCalBundle.adoptInstead(ures_getByKeyWithFallback(calData.getAlias(), cType,
  ------------------
  |  | 1662|    394|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|    394|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    394|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    394|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1451|    394|                                        nullptr, &status));
 1452|    394|        dateTimePatterns.adoptInstead(ures_getByKeyWithFallback(specificCalBundle.getAlias(), DT_DateAtTimePatternsTag, // the %atTime variant, 4 entries
  ------------------
  |  | 1662|    394|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|    394|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    394|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    394|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1453|    394|                                        nullptr, &status));
 1454|    394|    }
 1455|  13.4k|    if (dateTimePatterns.isNull() || status == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (1455:9): [True: 13.4k, False: 5]
  |  Branch (1455:38): [True: 0, False: 5]
  ------------------
 1456|  13.4k|        status = U_ZERO_ERROR;
 1457|  13.4k|        specificCalBundle.adoptInstead(ures_getByKeyWithFallback(calData.getAlias(), DT_DateTimeGregorianTag,
  ------------------
  |  | 1662|  13.4k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  13.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1458|  13.4k|                                        nullptr, &status));
 1459|  13.4k|        dateTimePatterns.adoptInstead(ures_getByKeyWithFallback(specificCalBundle.getAlias(), DT_DateAtTimePatternsTag, // the %atTime variant, 4 entries
  ------------------
  |  | 1662|  13.4k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  13.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1460|  13.4k|                                        nullptr, &status));
 1461|  13.4k|    }
 1462|  13.4k|    if (U_SUCCESS(status) && (ures_getSize(dateTimePatterns.getAlias()) < 4)) {
  ------------------
  |  | 1674|  10.2k|#define ures_getSize U_ICU_ENTRY_POINT_RENAME(ures_getSize)
  |  |  ------------------
  |  |  |  |  123|  10.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  10.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  10.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1462:9): [True: 10.2k, False: 3.21k]
  |  Branch (1462:30): [True: 0, False: 10.2k]
  ------------------
 1463|      0|        status = U_INVALID_FORMAT_ERROR;
 1464|      0|    }
 1465|  13.4k|    if (status == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (1465:9): [True: 3.21k, False: 10.2k]
  ------------------
 1466|       |        // Try again with standard variant
 1467|  3.21k|        status = U_ZERO_ERROR;
 1468|  3.21k|        dateTimePatterns.orphan();
 1469|  3.21k|        dateTimeOffset = static_cast<int32_t>(DateFormat::kDateTimeOffset);
 1470|  3.21k|        if (!cTypeIsGregorian) {
  ------------------
  |  Branch (1470:13): [True: 170, False: 3.04k]
  ------------------
 1471|    170|            specificCalBundle.adoptInstead(ures_getByKeyWithFallback(calData.getAlias(), cType,
  ------------------
  |  | 1662|    170|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|    170|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    170|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    170|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1472|    170|                                            nullptr, &status));
 1473|    170|            dateTimePatterns.adoptInstead(ures_getByKeyWithFallback(specificCalBundle.getAlias(), DT_DateTimePatternsTag, // the standard variant, 13 entries
  ------------------
  |  | 1662|    170|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|    170|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    170|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    170|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1474|    170|                                            nullptr, &status));
 1475|    170|        }
 1476|  3.21k|        if (dateTimePatterns.isNull() || status == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (1476:13): [True: 3.04k, False: 170]
  |  Branch (1476:42): [True: 0, False: 170]
  ------------------
 1477|  3.04k|            status = U_ZERO_ERROR;
 1478|  3.04k|            specificCalBundle.adoptInstead(ures_getByKeyWithFallback(calData.getAlias(), DT_DateTimeGregorianTag,
  ------------------
  |  | 1662|  3.04k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  3.04k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.04k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.04k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1479|  3.04k|                                            nullptr, &status));
 1480|  3.04k|            dateTimePatterns.adoptInstead(ures_getByKeyWithFallback(specificCalBundle.getAlias(), DT_DateTimePatternsTag, // the standard variant, 13 entries
  ------------------
  |  | 1662|  3.04k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  3.04k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.04k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.04k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1481|  3.04k|                                            nullptr, &status));
 1482|  3.04k|        }
 1483|  3.21k|        if (U_SUCCESS(status) && (ures_getSize(dateTimePatterns.getAlias()) <= DateFormat::kDateTimeOffset + DateFormat::kShort)) {
  ------------------
  |  | 1674|  3.21k|#define ures_getSize U_ICU_ENTRY_POINT_RENAME(ures_getSize)
  |  |  ------------------
  |  |  |  |  123|  3.21k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.21k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.21k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1483:13): [True: 3.21k, False: 0]
  |  Branch (1483:34): [True: 0, False: 3.21k]
  ------------------
 1484|      0|            status = U_INVALID_FORMAT_ERROR;
 1485|      0|        }
 1486|  3.21k|    }
 1487|  13.4k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1487:9): [True: 0, False: 13.4k]
  ------------------
 1488|  67.3k|    for (int32_t style = UDAT_FULL; style <= UDAT_SHORT; style++) {
  ------------------
  |  Branch (1488:37): [True: 53.8k, False: 13.4k]
  ------------------
 1489|  53.8k|        resStr = ures_getStringByIndex(dateTimePatterns.getAlias(), dateTimeOffset + style, &resStrLen, &status);
  ------------------
  |  | 1676|  53.8k|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|  53.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  53.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  53.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1490|  53.8k|        setDateTimeFormat(static_cast<UDateFormatStyle>(style), UnicodeString(true, resStr, resStrLen), status);
 1491|  53.8k|    }
 1492|  13.4k|}
_ZN6icu_7824DateTimePatternGenerator17setDecimalSymbolsERKNS_6LocaleER10UErrorCode:
 1495|  13.8k|DateTimePatternGenerator::setDecimalSymbols(const Locale& locale, UErrorCode& status) {
 1496|  13.8k|    DecimalFormatSymbols dfs = DecimalFormatSymbols(locale, status);
 1497|  13.8k|    if(U_SUCCESS(status)) {
  ------------------
  |  Branch (1497:8): [True: 13.3k, False: 416]
  ------------------
 1498|  13.3k|        decimal = dfs.getSymbol(DecimalFormatSymbols::kDecimalSeparatorSymbol);
 1499|       |        // NUL-terminate for the C API.
 1500|  13.3k|        decimal.getTerminatedBuffer();
 1501|  13.3k|    }
 1502|  13.8k|}
_ZN6icu_7824DateTimePatternGenerator10addPatternERKNS_13UnicodeStringEaRS1_R10UErrorCode:
 1510|   220k|{
 1511|   220k|    if (U_FAILURE(internalErrorCode)) {
  ------------------
  |  Branch (1511:9): [True: 0, False: 220k]
  ------------------
 1512|      0|        status = internalErrorCode;
 1513|      0|        return UDATPG_NO_CONFLICT;
 1514|      0|    }
 1515|       |
 1516|   220k|    return addPatternWithSkeleton(pattern, nullptr, override, conflictingPattern, status);
 1517|   220k|}
_ZN6icu_7824DateTimePatternGenerator22addPatternWithSkeletonERKNS_13UnicodeStringEPS2_aRS1_R10UErrorCode:
 1536|   942k|{
 1537|   942k|    if (U_FAILURE(internalErrorCode)) {
  ------------------
  |  Branch (1537:9): [True: 0, False: 942k]
  ------------------
 1538|      0|        status = internalErrorCode;
 1539|      0|        return UDATPG_NO_CONFLICT;
 1540|      0|    }
 1541|       |
 1542|   942k|    UnicodeString basePattern;
 1543|   942k|    PtnSkeleton   skeleton;
 1544|   942k|    UDateTimePatternConflict conflictingStatus = UDATPG_NO_CONFLICT;
 1545|       |
 1546|   942k|    DateTimeMatcher matcher;
 1547|   942k|    if ( skeletonToUse == nullptr ) {
  ------------------
  |  Branch (1547:10): [True: 299k, False: 642k]
  ------------------
 1548|   299k|        matcher.set(pattern, fp, skeleton);
 1549|   299k|        matcher.getBasePattern(basePattern);
 1550|   642k|    } else {
 1551|   642k|        matcher.set(*skeletonToUse, fp, skeleton); // no longer trims skeleton fields to max len 3, per #7930
 1552|   642k|        matcher.getBasePattern(basePattern); // or perhaps instead: basePattern = *skeletonToUse;
 1553|   642k|    }
 1554|       |    // We only care about base conflicts - and replacing the pattern associated with a base - if:
 1555|       |    // 1. the conflicting previous base pattern did *not* have an explicit skeleton; in that case the previous
 1556|       |    // base + pattern combination was derived from either (a) a canonical item, (b) a standard format, or
 1557|       |    // (c) a pattern specified programmatically with a previous call to addPattern (which would only happen
 1558|       |    // if we are getting here from a subsequent call to addPattern).
 1559|       |    // 2. a skeleton is specified for the current pattern, but override=false; in that case we are checking
 1560|       |    // availableFormats items from root, which should not override any previous entry with the same base.
 1561|   942k|    UBool entryHadSpecifiedSkeleton;
 1562|   942k|    const UnicodeString *duplicatePattern = patternMap->getPatternFromBasePattern(basePattern, entryHadSpecifiedSkeleton);
 1563|   942k|    if (duplicatePattern != nullptr && (!entryHadSpecifiedSkeleton || (skeletonToUse != nullptr && !override))) {
  ------------------
  |  Branch (1563:9): [True: 113k, False: 828k]
  |  Branch (1563:41): [True: 107k, False: 6.26k]
  |  Branch (1563:72): [True: 6.26k, False: 0]
  |  Branch (1563:100): [True: 0, False: 6.26k]
  ------------------
 1564|   107k|        conflictingStatus = UDATPG_BASE_CONFLICT;
 1565|   107k|        conflictingPattern = *duplicatePattern;
 1566|   107k|        if (!override) {
  ------------------
  |  Branch (1566:13): [True: 1.06k, False: 106k]
  ------------------
 1567|  1.06k|            return conflictingStatus;
 1568|  1.06k|        }
 1569|   107k|    }
 1570|       |    // The only time we get here with override=true and skeletonToUse!=null is when adding availableFormats
 1571|       |    // items from CLDR data. In that case, we don't want an item from a parent locale to replace an item with
 1572|       |    // same skeleton from the specified locale, so skip the current item if skeletonWasSpecified is true for
 1573|       |    // the previously-specified conflicting item.
 1574|   941k|    const PtnSkeleton* entrySpecifiedSkeleton = nullptr;
 1575|   941k|    duplicatePattern = patternMap->getPatternFromSkeleton(skeleton, &entrySpecifiedSkeleton);
 1576|   941k|    if (duplicatePattern != nullptr ) {
  ------------------
  |  Branch (1576:9): [True: 77.6k, False: 863k]
  ------------------
 1577|  77.6k|        conflictingStatus = UDATPG_CONFLICT;
 1578|  77.6k|        conflictingPattern = *duplicatePattern;
 1579|  77.6k|        if (!override || (skeletonToUse != nullptr && entrySpecifiedSkeleton != nullptr)) {
  ------------------
  |  Branch (1579:13): [True: 0, False: 77.6k]
  |  Branch (1579:27): [True: 77.6k, False: 0]
  |  Branch (1579:55): [True: 0, False: 77.6k]
  ------------------
 1580|      0|            return conflictingStatus;
 1581|      0|        }
 1582|  77.6k|    }
 1583|   941k|    patternMap->add(basePattern, skeleton, pattern, skeletonToUse != nullptr, status);
 1584|   941k|    if(U_FAILURE(status)) {
  ------------------
  |  Branch (1584:8): [True: 0, False: 941k]
  ------------------
 1585|      0|        return conflictingStatus;
 1586|      0|    }
 1587|       |
 1588|   941k|    return UDATPG_NO_CONFLICT;
 1589|   941k|}
_ZNK6icu_7824DateTimePatternGenerator21getAppendFormatNumberEPKc:
 1593|   231k|DateTimePatternGenerator::getAppendFormatNumber(const char* field) const {
 1594|  1.83M|    for (int32_t i=0; i<UDATPG_FIELD_COUNT; ++i ) {
  ------------------
  |  Branch (1594:23): [True: 1.83M, False: 0]
  ------------------
 1595|  1.83M|        if (uprv_strcmp(CLDR_FIELD_APPEND[i], field)==0) {
  ------------------
  |  |   38|  1.83M|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  1.83M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1595:13): [True: 231k, False: 1.60M]
  ------------------
 1596|   231k|            return static_cast<UDateTimePatternField>(i);
 1597|   231k|        }
 1598|  1.83M|    }
 1599|      0|    return UDATPG_FIELD_COUNT;
 1600|   231k|}
_ZNK6icu_7824DateTimePatternGenerator23getFieldAndWidthIndicesEPKcP23UDateTimePGDisplayWidth:
 1603|  2.39M|DateTimePatternGenerator::getFieldAndWidthIndices(const char* key, UDateTimePGDisplayWidth* widthP) const {
 1604|  2.39M|    char cldrFieldKey[UDATPG_FIELD_KEY_MAX + 1];
 1605|  2.39M|    uprv_strncpy(cldrFieldKey, key, UDATPG_FIELD_KEY_MAX);
  ------------------
  |  |   43|  2.39M|#define uprv_strncpy(dst, src, size) U_STANDARD_CPP_NAMESPACE strncpy(dst, src, size)
  |  |  ------------------
  |  |  |  |  393|  2.39M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1606|  2.39M|    cldrFieldKey[UDATPG_FIELD_KEY_MAX]=0; // ensure termination
 1607|  2.39M|    *widthP = UDATPG_WIDE;
 1608|  2.39M|    char* hyphenPtr = uprv_strchr(cldrFieldKey, '-');
  ------------------
  |  |   40|  2.39M|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  2.39M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1609|  2.39M|    if (hyphenPtr) {
  ------------------
  |  Branch (1609:9): [True: 1.83M, False: 560k]
  ------------------
 1610|  2.62M|        for (int32_t i=UDATPG_WIDTH_COUNT-1; i>0; --i) {
  ------------------
  |  Branch (1610:46): [True: 2.62M, False: 0]
  ------------------
 1611|  2.62M|            if (uprv_strcmp(CLDR_FIELD_WIDTH[i], hyphenPtr)==0) {
  ------------------
  |  |   38|  2.62M|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  2.62M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1611:17): [True: 1.83M, False: 794k]
  ------------------
 1612|  1.83M|                *widthP = static_cast<UDateTimePGDisplayWidth>(i);
 1613|  1.83M|                break;
 1614|  1.83M|            }
 1615|  2.62M|        }
 1616|  1.83M|        *hyphenPtr = 0; // now delete width portion of key
 1617|  1.83M|    }
 1618|  26.0M|    for (int32_t i=0; i<UDATPG_FIELD_COUNT; ++i ) {
  ------------------
  |  Branch (1618:23): [True: 25.2M, False: 748k]
  ------------------
 1619|  25.2M|        if (uprv_strcmp(CLDR_FIELD_NAME[i],cldrFieldKey)==0) {
  ------------------
  |  |   38|  25.2M|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  25.2M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1619:13): [True: 1.64M, False: 23.6M]
  ------------------
 1620|  1.64M|            return static_cast<UDateTimePatternField>(i);
 1621|  1.64M|        }
 1622|  25.2M|    }
 1623|   748k|    return UDATPG_FIELD_COUNT;
 1624|  2.39M|}
_ZN6icu_7824DateTimePatternGenerator10getBestRawERNS_15DateTimeMatcherEiPNS_12DistanceInfoER10UErrorCodePPKNS_11PtnSkeletonE:
 1631|  33.8k|                                     const PtnSkeleton** specifiedSkeletonPtr) {
 1632|  33.8k|    int32_t bestDistance = 0x7fffffff;
 1633|  33.8k|    int32_t bestMissingFieldMask = -1;
 1634|  33.8k|    DistanceInfo tempInfo;
 1635|  33.8k|    const UnicodeString *bestPattern=nullptr;
 1636|  33.8k|    const PtnSkeleton* specifiedSkeleton=nullptr;
 1637|       |
 1638|  33.8k|    PatternMapIterator it(status);
 1639|  33.8k|    if (U_FAILURE(status)) { return nullptr; }
  ------------------
  |  Branch (1639:9): [True: 0, False: 33.8k]
  ------------------
 1640|       |
 1641|  2.12M|    for (it.set(*patternMap); it.hasNext(); ) {
  ------------------
  |  Branch (1641:31): [True: 2.09M, False: 30.1k]
  ------------------
 1642|  2.09M|        DateTimeMatcher trial = it.next();
 1643|  2.09M|        if (trial.equals(skipMatcher)) {
  ------------------
  |  Branch (1643:13): [True: 0, False: 2.09M]
  ------------------
 1644|      0|            continue;
 1645|      0|        }
 1646|  2.09M|        int32_t distance=source.getDistance(trial, includeMask, tempInfo);
 1647|       |        // Because we iterate over a map the order is undefined. Can change between implementations,
 1648|       |        // versions, and will very likely be different between Java and C/C++.
 1649|       |        // So if we have patterns with the same distance we also look at the missingFieldMask,
 1650|       |        // and we favour the smallest one. Because the field is a bitmask this technically means we
 1651|       |        // favour differences in the "least significant fields". For example we prefer the one with differences
 1652|       |        // in seconds field vs one with difference in the hours field.
 1653|  2.09M|        if (distance<bestDistance || (distance==bestDistance && bestMissingFieldMask<tempInfo.missingFieldMask)) {
  ------------------
  |  Branch (1653:13): [True: 136k, False: 1.96M]
  |  Branch (1653:39): [True: 105k, False: 1.85M]
  |  Branch (1653:65): [True: 1.83k, False: 103k]
  ------------------
 1654|   138k|            bestDistance=distance;
 1655|   138k|            bestMissingFieldMask=tempInfo.missingFieldMask;
 1656|   138k|            bestPattern=patternMap->getPatternFromSkeleton(*trial.getSkeletonPtr(), &specifiedSkeleton);
 1657|   138k|            missingFields->setTo(tempInfo);
 1658|   138k|            if (distance==0) {
  ------------------
  |  Branch (1658:17): [True: 3.69k, False: 134k]
  ------------------
 1659|  3.69k|                break;
 1660|  3.69k|            }
 1661|   138k|        }
 1662|  2.09M|    }
 1663|       |
 1664|       |    // If the best raw match had a specified skeleton and that skeleton was requested by the caller,
 1665|       |    // then return it too. This generally happens when the caller needs to pass that skeleton
 1666|       |    // through to adjustFieldTypes so the latter can do a better job.
 1667|  33.8k|    if (bestPattern && specifiedSkeletonPtr) {
  ------------------
  |  Branch (1667:9): [True: 33.8k, False: 0]
  |  Branch (1667:24): [True: 33.8k, False: 0]
  ------------------
 1668|  33.8k|        *specifiedSkeletonPtr = specifiedSkeleton;
 1669|  33.8k|    }
 1670|  33.8k|    return bestPattern;
 1671|  33.8k|}
_ZN6icu_7824DateTimePatternGenerator16adjustFieldTypesERKNS_13UnicodeStringEPKNS_11PtnSkeletonEi28UDateTimePatternMatchOptions:
 1677|  26.0k|                                           UDateTimePatternMatchOptions options) {
 1678|  26.0k|    UnicodeString newPattern;
 1679|  26.0k|    fp->set(pattern);
 1680|  94.1k|    for (int32_t i=0; i < fp->itemNumber; i++) {
  ------------------
  |  Branch (1680:23): [True: 68.0k, False: 26.0k]
  ------------------
 1681|  68.0k|        UnicodeString field = fp->items[i];
 1682|  68.0k|        if ( fp->isQuoteLiteral(field) ) {
  ------------------
  |  Branch (1682:14): [True: 284, False: 67.8k]
  ------------------
 1683|       |
 1684|    284|            UnicodeString quoteLiteral;
 1685|    284|            fp->getQuoteLiteral(quoteLiteral, &i);
 1686|    284|            newPattern += quoteLiteral;
 1687|    284|        }
 1688|  67.8k|        else {
 1689|  67.8k|            if (fp->isPatternSeparator(field)) {
  ------------------
  |  Branch (1689:17): [True: 15.6k, False: 52.1k]
  ------------------
 1690|  15.6k|                newPattern+=field;
 1691|  15.6k|                continue;
 1692|  15.6k|            }
 1693|  52.1k|            int32_t canonicalIndex = fp->getCanonicalIndex(field);
 1694|  52.1k|            if (canonicalIndex < 0) {
  ------------------
  |  Branch (1694:17): [True: 6.49k, False: 45.6k]
  ------------------
 1695|  6.49k|                newPattern+=field;
 1696|  6.49k|                continue;  // don't adjust
 1697|  6.49k|            }
 1698|  45.6k|            const dtTypeElem *row = &dtTypes[canonicalIndex];
 1699|  45.6k|            int32_t typeValue = row->field;
 1700|       |
 1701|       |            // handle day periods - with #13183, no longer need special handling here, integrated with normal types
 1702|       |
 1703|  45.6k|            if ((flags & kDTPGFixFractionalSeconds) != 0 && typeValue == UDATPG_SECOND_FIELD) {
  ------------------
  |  Branch (1703:17): [True: 1.24k, False: 44.3k]
  |  Branch (1703:61): [True: 361, False: 887]
  ------------------
 1704|    361|                field += decimal;
 1705|    361|                dtMatcher->skeleton.original.appendFieldTo(UDATPG_FRACTIONAL_SECOND_FIELD, field);
 1706|  45.2k|            } else if (dtMatcher->skeleton.type[typeValue]!=0) {
  ------------------
  |  Branch (1706:24): [True: 45.1k, False: 65]
  ------------------
 1707|       |                    // Here:
 1708|       |                    // - "reqField" is the field from the originally requested skeleton after replacement
 1709|       |                    // of metacharacters 'j', 'C' and 'J', with length "reqFieldLen".
 1710|       |                    // - "field" is the field from the found pattern.
 1711|       |                    //
 1712|       |                    // The adjusted field should consist of characters from the originally requested
 1713|       |                    // skeleton, except in the case of UDATPG_MONTH_FIELD or
 1714|       |                    // UDATPG_WEEKDAY_FIELD or UDATPG_YEAR_FIELD, in which case it should consist
 1715|       |                    // of characters from the found pattern. In some cases of UDATPG_HOUR_FIELD,
 1716|       |                    // there is adjustment following the "defaultHourFormatChar". There is explanation
 1717|       |                    // how it is done below.
 1718|       |                    //
 1719|       |                    // The length of the adjusted field (adjFieldLen) should match that in the originally
 1720|       |                    // requested skeleton, except that in the following cases the length of the adjusted field
 1721|       |                    // should match that in the found pattern (i.e. the length of this pattern field should
 1722|       |                    // not be adjusted):
 1723|       |                    // 1. typeValue is UDATPG_HOUR_FIELD/MINUTE/SECOND and the corresponding bit in options is
 1724|       |                    //    not set (ticket #7180). Note, we may want to implement a similar change for other
 1725|       |                    //    numeric fields (MM, dd, etc.) so the default behavior is to get locale preference for
 1726|       |                    //    field length, but options bits can be used to override this.
 1727|       |                    // 2. There is a specified skeleton for the found pattern and one of the following is true:
 1728|       |                    //    a) The length of the field in the skeleton (skelFieldLen) is equal to reqFieldLen.
 1729|       |                    //    b) The pattern field is numeric and the skeleton field is not, or vice versa.
 1730|       |
 1731|  45.1k|                    char16_t reqFieldChar = dtMatcher->skeleton.original.getFieldChar(typeValue);
 1732|  45.1k|                    int32_t reqFieldLen = dtMatcher->skeleton.original.getFieldLength(typeValue);
 1733|  45.1k|                    if (reqFieldChar == CAP_E && reqFieldLen < 3)
  ------------------
  |  |   50|  90.3k|#define CAP_E             ((char16_t)0x0045)
  ------------------
  |  Branch (1733:25): [True: 291, False: 44.9k]
  |  Branch (1733:50): [True: 267, False: 24]
  ------------------
 1734|    267|                        reqFieldLen = 3; // 1-3 for E are equivalent to 3 for c,e
 1735|  45.1k|                    int32_t adjFieldLen = reqFieldLen;
 1736|  45.1k|                    if ( (typeValue==UDATPG_HOUR_FIELD && (options & UDATPG_MATCH_HOUR_FIELD_LENGTH)==0) ||
  ------------------
  |  Branch (1736:27): [True: 7.40k, False: 37.7k]
  |  Branch (1736:59): [True: 7.40k, False: 0]
  ------------------
 1737|  45.1k|                         (typeValue==UDATPG_MINUTE_FIELD && (options & UDATPG_MATCH_MINUTE_FIELD_LENGTH)==0) ||
  ------------------
  |  Branch (1737:27): [True: 5.57k, False: 32.2k]
  |  Branch (1737:61): [True: 5.57k, False: 0]
  ------------------
 1738|  45.1k|                         (typeValue==UDATPG_SECOND_FIELD && (options & UDATPG_MATCH_SECOND_FIELD_LENGTH)==0) ) {
  ------------------
  |  Branch (1738:27): [True: 5.39k, False: 26.8k]
  |  Branch (1738:61): [True: 5.39k, False: 0]
  ------------------
 1739|  18.3k|                         adjFieldLen = field.length();
 1740|  26.8k|                    } else if (specifiedSkeleton && reqFieldChar != LOW_C && reqFieldChar != LOW_E) {
  ------------------
  |  |   71|  45.4k|#define LOW_C             ((char16_t)0x0063)
  ------------------
                                  } else if (specifiedSkeleton && reqFieldChar != LOW_C && reqFieldChar != LOW_E) {
  ------------------
  |  |   73|  17.6k|#define LOW_E             ((char16_t)0x0065)
  ------------------
  |  Branch (1740:32): [True: 18.6k, False: 8.17k]
  |  Branch (1740:53): [True: 17.6k, False: 1.03k]
  |  Branch (1740:78): [True: 15.8k, False: 1.75k]
  ------------------
 1741|       |                        // (we skip this section for 'c' and 'e' because unlike the other characters considered in this function,
 1742|       |                        // they have no minimum field length-- 'E' and 'EE' are equivalent to 'EEE', but 'e' and 'ee' are not
 1743|       |                        // equivalent to 'eee' -- see the entries for "week day" in
 1744|       |                        // https://www.unicode.org/reports/tr35/tr35-dates.html#Date_Field_Symbol_Table for more info)
 1745|  15.8k|                        int32_t skelFieldLen = specifiedSkeleton->original.getFieldLength(typeValue);
 1746|  15.8k|                        UBool patFieldIsNumeric = (row->type > 0);
 1747|  15.8k|                        UBool skelFieldIsNumeric = (specifiedSkeleton->type[typeValue] > 0);
 1748|  15.8k|                        if (skelFieldLen == reqFieldLen || (patFieldIsNumeric && !skelFieldIsNumeric) || (skelFieldIsNumeric && !patFieldIsNumeric)) {
  ------------------
  |  Branch (1748:29): [True: 12.1k, False: 3.72k]
  |  Branch (1748:61): [True: 820, False: 2.90k]
  |  Branch (1748:82): [True: 8, False: 812]
  |  Branch (1748:107): [True: 813, False: 2.90k]
  |  Branch (1748:129): [True: 1, False: 812]
  ------------------
 1749|       |                            // don't adjust the field length in the found pattern
 1750|  12.1k|                            adjFieldLen = field.length();
 1751|  12.1k|                        }
 1752|  15.8k|                    }
 1753|  45.1k|                    char16_t c = (typeValue!= UDATPG_HOUR_FIELD
  ------------------
  |  Branch (1753:35): [True: 37.7k, False: 7.40k]
  ------------------
 1754|  45.1k|                            && typeValue!= UDATPG_MONTH_FIELD
  ------------------
  |  Branch (1754:32): [True: 35.3k, False: 2.45k]
  ------------------
 1755|  45.1k|                            && typeValue!= UDATPG_WEEKDAY_FIELD
  ------------------
  |  Branch (1755:32): [True: 32.2k, False: 3.11k]
  ------------------
 1756|  45.1k|                            && (typeValue!= UDATPG_YEAR_FIELD || reqFieldChar==CAP_Y))
  ------------------
  |  |   66|  4.46k|#define CAP_Y             ((char16_t)0x0059)
  ------------------
  |  Branch (1756:33): [True: 27.7k, False: 4.46k]
  |  Branch (1756:66): [True: 507, False: 3.95k]
  ------------------
 1757|  45.1k|                            ? reqFieldChar
 1758|  45.1k|                            : field.charAt(0);
 1759|  45.1k|                    if (c == CAP_E && adjFieldLen < 3) {
  ------------------
  |  |   50|  90.3k|#define CAP_E             ((char16_t)0x0045)
  ------------------
  |  Branch (1759:25): [True: 1.22k, False: 43.9k]
  |  Branch (1759:39): [True: 1.11k, False: 104]
  ------------------
 1760|  1.11k|                        c = LOW_E;
  ------------------
  |  |   73|  1.11k|#define LOW_E             ((char16_t)0x0065)
  ------------------
 1761|  1.11k|                    }
 1762|  45.1k|                    if (typeValue == UDATPG_HOUR_FIELD && fDefaultHourFormatChar != 0) {
  ------------------
  |  Branch (1762:25): [True: 7.40k, False: 37.7k]
  |  Branch (1762:59): [True: 7.40k, False: 0]
  ------------------
 1763|       |                        // The adjustment here is required to match spec (https://www.unicode.org/reports/tr35/tr35-dates.html#dfst-hour).
 1764|       |                        // It is necessary to match the hour-cycle preferred by the Locale.
 1765|       |                        // Given that, we need to do the following adjustments:
 1766|       |                        // 1. When hour-cycle is h11 it should replace 'h' by 'K'.
 1767|       |                        // 2. When hour-cycle is h23 it should replace 'H' by 'k'.
 1768|       |                        // 3. When hour-cycle is h24 it should replace 'k' by 'H'.
 1769|       |                        // 4. When hour-cycle is h12 it should replace 'K' by 'h'.
 1770|       |
 1771|  7.40k|                        if ((flags & kDTPGSkeletonUsesCapJ) != 0 || reqFieldChar == fDefaultHourFormatChar) {
  ------------------
  |  Branch (1771:29): [True: 96, False: 7.30k]
  |  Branch (1771:69): [True: 5.58k, False: 1.72k]
  ------------------
 1772|  5.68k|                            c = fDefaultHourFormatChar;
 1773|  5.68k|                        } else if (reqFieldChar == LOW_H && fDefaultHourFormatChar == CAP_K) {
  ------------------
  |  |   76|  3.44k|#define LOW_H             ((char16_t)0x0068)
  ------------------
                                      } else if (reqFieldChar == LOW_H && fDefaultHourFormatChar == CAP_K) {
  ------------------
  |  |   55|    464|#define CAP_K             ((char16_t)0x004B)
  ------------------
  |  Branch (1773:36): [True: 464, False: 1.25k]
  |  Branch (1773:61): [True: 0, False: 464]
  ------------------
 1774|      0|                            c = CAP_K;
  ------------------
  |  |   55|      0|#define CAP_K             ((char16_t)0x004B)
  ------------------
 1775|  1.72k|                        } else if (reqFieldChar == CAP_H && fDefaultHourFormatChar == LOW_K) {
  ------------------
  |  |   53|  3.44k|#define CAP_H             ((char16_t)0x0048)
  ------------------
                                      } else if (reqFieldChar == CAP_H && fDefaultHourFormatChar == LOW_K) {
  ------------------
  |  |   79|    221|#define LOW_K             ((char16_t)0x006B)
  ------------------
  |  Branch (1775:36): [True: 221, False: 1.50k]
  |  Branch (1775:61): [True: 0, False: 221]
  ------------------
 1776|      0|                            c = LOW_K;
  ------------------
  |  |   79|      0|#define LOW_K             ((char16_t)0x006B)
  ------------------
 1777|  1.72k|                        } else if (reqFieldChar == LOW_K && fDefaultHourFormatChar == CAP_H) {
  ------------------
  |  |   79|  3.44k|#define LOW_K             ((char16_t)0x006B)
  ------------------
                                      } else if (reqFieldChar == LOW_K && fDefaultHourFormatChar == CAP_H) {
  ------------------
  |  |   53|    581|#define CAP_H             ((char16_t)0x0048)
  ------------------
  |  Branch (1777:36): [True: 581, False: 1.14k]
  |  Branch (1777:61): [True: 201, False: 380]
  ------------------
 1778|    201|                            c = CAP_H;
  ------------------
  |  |   53|    201|#define CAP_H             ((char16_t)0x0048)
  ------------------
 1779|  1.52k|                        } else if (reqFieldChar == CAP_K && fDefaultHourFormatChar == LOW_H) {
  ------------------
  |  |   55|  3.04k|#define CAP_K             ((char16_t)0x004B)
  ------------------
                                      } else if (reqFieldChar == CAP_K && fDefaultHourFormatChar == LOW_H) {
  ------------------
  |  |   76|    455|#define LOW_H             ((char16_t)0x0068)
  ------------------
  |  Branch (1779:36): [True: 455, False: 1.06k]
  |  Branch (1779:61): [True: 287, False: 168]
  ------------------
 1780|    287|                            c = LOW_H;
  ------------------
  |  |   76|    287|#define LOW_H             ((char16_t)0x0068)
  ------------------
 1781|    287|                        }
 1782|  7.40k|                    }
 1783|       |
 1784|  45.1k|                    field.remove();
 1785|   160k|                    for (int32_t j=adjFieldLen; j>0; --j) {
  ------------------
  |  Branch (1785:49): [True: 115k, False: 45.1k]
  ------------------
 1786|   115k|                        field += c;
 1787|   115k|                    }
 1788|  45.1k|            }
 1789|  45.6k|            newPattern+=field;
 1790|  45.6k|        }
 1791|  68.0k|    }
 1792|  26.0k|    return newPattern;
 1793|  26.0k|}
_ZN6icu_7824DateTimePatternGenerator16getBestAppendingEiiR10UErrorCode28UDateTimePatternMatchOptions:
 1796|  16.2k|DateTimePatternGenerator::getBestAppending(int32_t missingFields, int32_t flags, UErrorCode &status, UDateTimePatternMatchOptions options) {
 1797|  16.2k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1797:9): [True: 0, False: 16.2k]
  ------------------
 1798|      0|        return {};
 1799|      0|    }
 1800|  16.2k|    UnicodeString  resultPattern, tempPattern;
 1801|  16.2k|    const UnicodeString* tempPatternPtr;
 1802|  16.2k|    int32_t lastMissingFieldMask=0;
 1803|  16.2k|    if (missingFields!=0) {
  ------------------
  |  Branch (1803:9): [True: 13.2k, False: 3.02k]
  ------------------
 1804|  13.2k|        resultPattern=UnicodeString();
 1805|  13.2k|        const PtnSkeleton* specifiedSkeleton=nullptr;
 1806|  13.2k|        tempPatternPtr = getBestRaw(*dtMatcher, missingFields, distanceInfo, status, &specifiedSkeleton);
 1807|  13.2k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (1807:13): [True: 0, False: 13.2k]
  ------------------
 1808|      0|            return {};
 1809|      0|        }
 1810|  13.2k|        tempPattern = *tempPatternPtr;
 1811|  13.2k|        resultPattern = adjustFieldTypes(tempPattern, specifiedSkeleton, flags, options);
 1812|  13.2k|        if ( distanceInfo->missingFieldMask==0 ) {
  ------------------
  |  Branch (1812:14): [True: 5.72k, False: 7.52k]
  ------------------
 1813|  5.72k|            return resultPattern;
 1814|  5.72k|        }
 1815|  15.1k|        while (distanceInfo->missingFieldMask!=0) { // precondition: EVERY single field must work!
  ------------------
  |  Branch (1815:16): [True: 9.22k, False: 5.91k]
  ------------------
 1816|  9.22k|            if ( lastMissingFieldMask == distanceInfo->missingFieldMask ) {
  ------------------
  |  Branch (1816:18): [True: 1.61k, False: 7.61k]
  ------------------
 1817|  1.61k|                break;  // cannot find the proper missing field
 1818|  1.61k|            }
 1819|  7.61k|            if (((distanceInfo->missingFieldMask & UDATPG_SECOND_AND_FRACTIONAL_MASK)==UDATPG_FRACTIONAL_MASK) &&
  ------------------
  |  Branch (1819:17): [True: 434, False: 7.18k]
  ------------------
 1820|  7.61k|                ((missingFields & UDATPG_SECOND_AND_FRACTIONAL_MASK) == UDATPG_SECOND_AND_FRACTIONAL_MASK)) {
  ------------------
  |  Branch (1820:17): [True: 361, False: 73]
  ------------------
 1821|    361|                resultPattern = adjustFieldTypes(resultPattern, specifiedSkeleton, flags | kDTPGFixFractionalSeconds, options);
 1822|    361|                distanceInfo->missingFieldMask &= ~UDATPG_FRACTIONAL_MASK;
 1823|    361|                continue;
 1824|    361|            }
 1825|  7.25k|            int32_t startingMask = distanceInfo->missingFieldMask;
 1826|  7.25k|            tempPatternPtr = getBestRaw(*dtMatcher, distanceInfo->missingFieldMask, distanceInfo, status, &specifiedSkeleton);
 1827|  7.25k|            if (U_FAILURE(status)) {
  ------------------
  |  Branch (1827:17): [True: 0, False: 7.25k]
  ------------------
 1828|      0|                return {};
 1829|      0|            }
 1830|  7.25k|            tempPattern = *tempPatternPtr;
 1831|  7.25k|            tempPattern = adjustFieldTypes(tempPattern, specifiedSkeleton, flags, options);
 1832|  7.25k|            int32_t foundMask=startingMask& ~distanceInfo->missingFieldMask;
 1833|  7.25k|            int32_t topField=getTopBitNumber(foundMask);
 1834|       |
 1835|  7.25k|            if (appendItemFormats[topField].length() != 0) {
  ------------------
  |  Branch (1835:17): [True: 7.25k, False: 0]
  ------------------
 1836|  7.25k|                UnicodeString appendName;
 1837|  7.25k|                getAppendName(static_cast<UDateTimePatternField>(topField), appendName);
 1838|  7.25k|                const UnicodeString *values[3] = {
 1839|  7.25k|                    &resultPattern,
 1840|  7.25k|                    &tempPattern,
 1841|  7.25k|                    &appendName
 1842|  7.25k|                };
 1843|  7.25k|                SimpleFormatter(appendItemFormats[topField], 2, 3, status).
 1844|  7.25k|                    formatAndReplace(values, 3, resultPattern, nullptr, 0, status);
 1845|  7.25k|            }
 1846|  7.25k|            lastMissingFieldMask = distanceInfo->missingFieldMask;
 1847|  7.25k|        }
 1848|  7.52k|    }
 1849|  10.5k|    return resultPattern;
 1850|  16.2k|}
_ZNK6icu_7824DateTimePatternGenerator15getTopBitNumberEi:
 1853|  7.25k|DateTimePatternGenerator::getTopBitNumber(int32_t foundMask) const {
 1854|  7.25k|    if ( foundMask==0 ) {
  ------------------
  |  Branch (1854:10): [True: 0, False: 7.25k]
  ------------------
 1855|      0|        return 0;
 1856|      0|    }
 1857|  7.25k|    int32_t i=0;
 1858|  82.7k|    while (foundMask!=0) {
  ------------------
  |  Branch (1858:12): [True: 75.4k, False: 7.25k]
  ------------------
 1859|  75.4k|        foundMask >>=1;
 1860|  75.4k|        ++i;
 1861|  75.4k|    }
 1862|  7.25k|    if (i-1 >UDATPG_ZONE_FIELD) {
  ------------------
  |  Branch (1862:9): [True: 0, False: 7.25k]
  ------------------
 1863|      0|        return UDATPG_ZONE_FIELD;
 1864|      0|    }
 1865|  7.25k|    else
 1866|  7.25k|        return i-1;
 1867|  7.25k|}
_ZN6icu_7824DateTimePatternGenerator18setAvailableFormatERKNS_13UnicodeStringER10UErrorCode:
 1871|   642k|{
 1872|   642k|    fAvailableFormatKeyHash->puti(key, 1, err);
 1873|   642k|}
_ZNK6icu_7824DateTimePatternGenerator20isAvailableFormatSetERKNS_13UnicodeStringE:
 1876|  1.15M|DateTimePatternGenerator::isAvailableFormatSet(const UnicodeString &key) const {
 1877|  1.15M|    return fAvailableFormatKeyHash->geti(key) == 1;
 1878|  1.15M|}
_ZN6icu_7810PatternMapC2Ev:
 2014|  13.8k|PatternMap::PatternMap() {
 2015|   731k|   for (int32_t i=0; i < MAX_PATTERN_ENTRIES; ++i ) {
  ------------------
  |  |   26|   731k|#define MAX_PATTERN_ENTRIES 52
  ------------------
  |  Branch (2015:22): [True: 717k, False: 13.8k]
  ------------------
 2016|   717k|       boot[i] = nullptr;
 2017|   717k|   }
 2018|  13.8k|   isDupAllowed = true;
 2019|  13.8k|}
_ZNK6icu_7810PatternMap9getHeaderEDs:
 2063|  2.02M|PatternMap::getHeader(char16_t baseChar) const {
 2064|  2.02M|    PtnElem* curElem;
 2065|       |
 2066|  2.02M|    if ( (baseChar >= CAP_A) && (baseChar <= CAP_Z) ) {
  ------------------
  |  |   46|  2.02M|#define CAP_A             ((char16_t)0x0041)
  ------------------
                  if ( (baseChar >= CAP_A) && (baseChar <= CAP_Z) ) {
  ------------------
  |  |   67|  2.02M|#define CAP_Z             ((char16_t)0x005A)
  ------------------
  |  Branch (2066:10): [True: 2.02M, False: 0]
  |  Branch (2066:33): [True: 1.18M, False: 839k]
  ------------------
 2067|  1.18M|         curElem = boot[baseChar-CAP_A];
  ------------------
  |  |   46|  1.18M|#define CAP_A             ((char16_t)0x0041)
  ------------------
 2068|  1.18M|    }
 2069|   839k|    else {
 2070|   839k|        if ( (baseChar >=LOW_A) && (baseChar <= LOW_Z) ) {
  ------------------
  |  |   69|   839k|#define LOW_A             ((char16_t)0x0061)
  ------------------
                      if ( (baseChar >=LOW_A) && (baseChar <= LOW_Z) ) {
  ------------------
  |  |   94|   839k|#define LOW_Z             ((char16_t)0x007A)
  ------------------
  |  Branch (2070:14): [True: 839k, False: 0]
  |  Branch (2070:36): [True: 839k, False: 0]
  ------------------
 2071|   839k|            curElem = boot[26+baseChar-LOW_A];
  ------------------
  |  |   69|   839k|#define LOW_A             ((char16_t)0x0061)
  ------------------
 2072|   839k|        }
 2073|      0|        else {
 2074|      0|            return nullptr;
 2075|      0|        }
 2076|   839k|    }
 2077|  2.02M|    return curElem;
 2078|  2.02M|}
_ZN6icu_7810PatternMapD2Ev:
 2080|  13.8k|PatternMap::~PatternMap() {
 2081|   731k|   for (int32_t i=0; i < MAX_PATTERN_ENTRIES; ++i ) {
  ------------------
  |  |   26|   731k|#define MAX_PATTERN_ENTRIES 52
  ------------------
  |  Branch (2081:22): [True: 717k, False: 13.8k]
  ------------------
 2082|   717k|       if (boot[i] != nullptr ) {
  ------------------
  |  Branch (2082:12): [True: 234k, False: 483k]
  ------------------
 2083|   234k|           delete boot[i];
 2084|   234k|           boot[i] = nullptr;
 2085|   234k|       }
 2086|   717k|   }
 2087|  13.8k|}  // PatternMap destructor
_ZN6icu_7810PatternMap3addERKNS_13UnicodeStringERKNS_11PtnSkeletonES3_aR10UErrorCode:
 2094|   941k|                UErrorCode &status) {
 2095|   941k|    char16_t baseChar = basePattern.charAt(0);
 2096|   941k|    PtnElem *curElem, *baseElem;
 2097|   941k|    status = U_ZERO_ERROR;
 2098|       |
 2099|       |    // the baseChar must be A-Z or a-z
 2100|   941k|    if ((baseChar >= CAP_A) && (baseChar <= CAP_Z)) {
  ------------------
  |  |   46|   941k|#define CAP_A             ((char16_t)0x0041)
  ------------------
                  if ((baseChar >= CAP_A) && (baseChar <= CAP_Z)) {
  ------------------
  |  |   67|   941k|#define CAP_Z             ((char16_t)0x005A)
  ------------------
  |  Branch (2100:9): [True: 941k, False: 0]
  |  Branch (2100:32): [True: 536k, False: 404k]
  ------------------
 2101|   536k|        baseElem = boot[baseChar-CAP_A];
  ------------------
  |  |   46|   536k|#define CAP_A             ((char16_t)0x0041)
  ------------------
 2102|   536k|    }
 2103|   404k|    else {
 2104|   404k|        if ((baseChar >=LOW_A) && (baseChar <= LOW_Z)) {
  ------------------
  |  |   69|   404k|#define LOW_A             ((char16_t)0x0061)
  ------------------
                      if ((baseChar >=LOW_A) && (baseChar <= LOW_Z)) {
  ------------------
  |  |   94|   404k|#define LOW_Z             ((char16_t)0x007A)
  ------------------
  |  Branch (2104:13): [True: 404k, False: 0]
  |  Branch (2104:35): [True: 404k, False: 0]
  ------------------
 2105|   404k|            baseElem = boot[26+baseChar-LOW_A];
  ------------------
  |  |   69|   404k|#define LOW_A             ((char16_t)0x0061)
  ------------------
 2106|   404k|         }
 2107|      0|         else {
 2108|      0|             status = U_ILLEGAL_CHARACTER;
 2109|      0|             return;
 2110|      0|         }
 2111|   404k|    }
 2112|       |
 2113|   941k|    if (baseElem == nullptr) {
  ------------------
  |  Branch (2113:9): [True: 234k, False: 706k]
  ------------------
 2114|   234k|        LocalPointer<PtnElem> newElem(new PtnElem(basePattern, value), status);
 2115|   234k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (2115:13): [True: 0, False: 234k]
  ------------------
 2116|      0|            return; // out of memory
 2117|      0|        }
 2118|   234k|        newElem->skeleton.adoptInsteadAndCheckErrorCode(new PtnSkeleton(skeleton), status);
 2119|   234k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (2119:13): [True: 0, False: 234k]
  ------------------
 2120|      0|            return; // out of memory
 2121|      0|        }
 2122|   234k|        newElem->skeletonWasSpecified = skeletonWasSpecified;
 2123|   234k|        if (baseChar >= LOW_A) {
  ------------------
  |  |   69|   234k|#define LOW_A             ((char16_t)0x0061)
  ------------------
  |  Branch (2123:13): [True: 96.6k, False: 137k]
  ------------------
 2124|  96.6k|            boot[26 + (baseChar - LOW_A)] = newElem.orphan(); // the boot array now owns the PtnElem.
  ------------------
  |  |   69|  96.6k|#define LOW_A             ((char16_t)0x0061)
  ------------------
 2125|  96.6k|        }
 2126|   137k|        else {
 2127|   137k|            boot[baseChar - CAP_A] = newElem.orphan(); // the boot array now owns the PtnElem.
  ------------------
  |  |   46|   137k|#define CAP_A             ((char16_t)0x0041)
  ------------------
 2128|   137k|        }
 2129|   234k|    }
 2130|   941k|    if ( baseElem != nullptr ) {
  ------------------
  |  Branch (2130:10): [True: 706k, False: 234k]
  ------------------
 2131|   706k|        curElem = getDuplicateElem(basePattern, skeleton, baseElem);
 2132|       |
 2133|   706k|        if (curElem == nullptr) {
  ------------------
  |  Branch (2133:13): [True: 629k, False: 77.6k]
  ------------------
 2134|       |            // add new element to the list.
 2135|   629k|            curElem = baseElem;
 2136|  2.80M|            while( curElem -> next != nullptr )
  ------------------
  |  Branch (2136:20): [True: 2.17M, False: 629k]
  ------------------
 2137|  2.17M|            {
 2138|  2.17M|                curElem = curElem->next.getAlias();
 2139|  2.17M|            }
 2140|       |
 2141|   629k|            LocalPointer<PtnElem> newElem(new PtnElem(basePattern, value), status);
 2142|   629k|            if (U_FAILURE(status)) {
  ------------------
  |  Branch (2142:17): [True: 0, False: 629k]
  ------------------
 2143|      0|                return; // out of memory
 2144|      0|            }
 2145|   629k|            newElem->skeleton.adoptInsteadAndCheckErrorCode(new PtnSkeleton(skeleton), status);
 2146|   629k|            if (U_FAILURE(status)) {
  ------------------
  |  Branch (2146:17): [True: 0, False: 629k]
  ------------------
 2147|      0|                return; // out of memory
 2148|      0|            }
 2149|   629k|            newElem->skeletonWasSpecified = skeletonWasSpecified;
 2150|   629k|            curElem->next.adoptInstead(newElem.orphan());
 2151|   629k|            curElem = curElem->next.getAlias();
 2152|   629k|        }
 2153|  77.6k|        else {
 2154|       |            // Pattern exists in the list already.
 2155|  77.6k|            if ( !isDupAllowed ) {
  ------------------
  |  Branch (2155:18): [True: 0, False: 77.6k]
  ------------------
 2156|      0|                return;
 2157|      0|            }
 2158|       |            // Overwrite the value.
 2159|  77.6k|            curElem->pattern = value;
 2160|       |            // It was a bug that we were not doing the following previously,
 2161|       |            // though that bug hid other problems by making things partly work.
 2162|  77.6k|            curElem->skeletonWasSpecified = skeletonWasSpecified;
 2163|  77.6k|        }
 2164|   706k|    }
 2165|   941k|}  // PatternMap::add
_ZNK6icu_7810PatternMap25getPatternFromBasePatternERKNS_13UnicodeStringERa:
 2169|   942k|PatternMap::getPatternFromBasePattern(const UnicodeString& basePattern, UBool& skeletonWasSpecified) const { // key to search for
 2170|   942k|   PtnElem *curElem;
 2171|       |
 2172|   942k|   if ((curElem=getHeader(basePattern.charAt(0)))==nullptr) {
  ------------------
  |  Branch (2172:8): [True: 234k, False: 707k]
  ------------------
 2173|   234k|       return nullptr;  // no match
 2174|   234k|   }
 2175|       |
 2176|  2.82M|   do  {
 2177|  2.82M|       if ( basePattern.compare(curElem->basePattern)==0 ) {
  ------------------
  |  Branch (2177:13): [True: 113k, False: 2.71M]
  ------------------
 2178|   113k|          skeletonWasSpecified = curElem->skeletonWasSpecified;
 2179|   113k|          return &(curElem->pattern);
 2180|   113k|       }
 2181|  2.71M|       curElem = curElem->next.getAlias();
 2182|  2.71M|   } while (curElem != nullptr);
  ------------------
  |  Branch (2182:13): [True: 2.12M, False: 594k]
  ------------------
 2183|       |
 2184|   594k|   return nullptr;
 2185|   707k|}  // PatternMap::getFromBasePattern
_ZNK6icu_7810PatternMap22getPatternFromSkeletonERKNS_11PtnSkeletonEPPS2_:
 2195|  1.07M|PatternMap::getPatternFromSkeleton(const PtnSkeleton& skeleton, const PtnSkeleton** specifiedSkeletonPtr) const { // key to search for
 2196|  1.07M|   PtnElem *curElem;
 2197|       |
 2198|  1.07M|   if (specifiedSkeletonPtr) {
  ------------------
  |  Branch (2198:8): [True: 1.07M, False: 0]
  ------------------
 2199|  1.07M|       *specifiedSkeletonPtr = nullptr;
 2200|  1.07M|   }
 2201|       |
 2202|       |   // find boot entry
 2203|  1.07M|   char16_t baseChar = skeleton.getFirstChar();
 2204|  1.07M|   if ((curElem=getHeader(baseChar))==nullptr) {
  ------------------
  |  Branch (2204:8): [True: 234k, False: 845k]
  ------------------
 2205|   234k|       return nullptr;  // no match
 2206|   234k|   }
 2207|       |
 2208|  3.20M|   do  {
 2209|  3.20M|       UBool equal;
 2210|  3.20M|       if (specifiedSkeletonPtr != nullptr) { // called from DateTimePatternGenerator::getBestRaw or addPattern, use original
  ------------------
  |  Branch (2210:12): [True: 3.20M, False: 0]
  ------------------
 2211|  3.20M|           equal = curElem->skeleton->original == skeleton.original;
 2212|  3.20M|       } else { // called from DateTimePatternGenerator::getRedundants, use baseOriginal
 2213|      0|           equal = curElem->skeleton->baseOriginal == skeleton.baseOriginal;
 2214|      0|       }
 2215|  3.20M|       if (equal) {
  ------------------
  |  Branch (2215:12): [True: 216k, False: 2.98M]
  ------------------
 2216|   216k|           if (specifiedSkeletonPtr && curElem->skeletonWasSpecified) {
  ------------------
  |  Branch (2216:16): [True: 216k, False: 0]
  |  Branch (2216:40): [True: 101k, False: 114k]
  ------------------
 2217|   101k|               *specifiedSkeletonPtr = curElem->skeleton.getAlias();
 2218|   101k|           }
 2219|   216k|           return &(curElem->pattern);
 2220|   216k|       }
 2221|  2.98M|       curElem = curElem->next.getAlias();
 2222|  2.98M|   } while (curElem != nullptr);
  ------------------
  |  Branch (2222:13): [True: 2.35M, False: 629k]
  ------------------
 2223|       |
 2224|   629k|   return nullptr;
 2225|   845k|}
_ZN6icu_7810PatternMap16getDuplicateElemERKNS_13UnicodeStringERKNS_11PtnSkeletonEPNS_7PtnElemE:
 2269|   706k|            PtnElem *baseElem) {
 2270|   706k|   PtnElem *curElem;
 2271|       |
 2272|   706k|   if ( baseElem == nullptr ) {
  ------------------
  |  Branch (2272:9): [True: 0, False: 706k]
  ------------------
 2273|      0|         return nullptr;
 2274|      0|   }
 2275|   706k|   else {
 2276|   706k|         curElem = baseElem;
 2277|   706k|   }
 2278|  2.91M|   do {
 2279|  2.91M|     if ( basePattern.compare(curElem->basePattern)==0 ) {
  ------------------
  |  Branch (2279:11): [True: 113k, False: 2.80M]
  ------------------
 2280|   113k|         UBool isEqual = true;
 2281|  1.62M|         for (int32_t i = 0; i < UDATPG_FIELD_COUNT; ++i) {
  ------------------
  |  Branch (2281:30): [True: 1.54M, False: 77.6k]
  ------------------
 2282|  1.54M|            if (curElem->skeleton->type[i] != skeleton.type[i] ) {
  ------------------
  |  Branch (2282:17): [True: 35.5k, False: 1.51M]
  ------------------
 2283|  35.5k|                isEqual = false;
 2284|  35.5k|                break;
 2285|  35.5k|            }
 2286|  1.54M|        }
 2287|   113k|        if (isEqual) {
  ------------------
  |  Branch (2287:13): [True: 77.6k, False: 35.5k]
  ------------------
 2288|  77.6k|            return curElem;
 2289|  77.6k|        }
 2290|   113k|     }
 2291|  2.83M|     curElem = curElem->next.getAlias();
 2292|  2.83M|   } while( curElem != nullptr );
  ------------------
  |  Branch (2292:13): [True: 2.20M, False: 629k]
  ------------------
 2293|       |
 2294|       |   // end of the list
 2295|   629k|   return nullptr;
 2296|       |
 2297|   706k|}  // PatternMap::getDuplicateElem
_ZN6icu_7815DateTimeMatcherC2Ev:
 2299|  1.00M|DateTimeMatcher::DateTimeMatcher() {
 2300|  1.00M|}
_ZN6icu_7815DateTimeMatcherD2Ev:
 2302|  3.10M|DateTimeMatcher::~DateTimeMatcher() {}
_ZN6icu_7815DateTimeMatcherC2ERKS0_:
 2304|  2.09M|DateTimeMatcher::DateTimeMatcher(const DateTimeMatcher& other) {
 2305|  2.09M|    copyFrom(other.skeleton);
 2306|  2.09M|}
_ZN6icu_7815DateTimeMatcher3setERKNS_13UnicodeStringEPNS_12FormatParserE:
 2315|  13.3k|DateTimeMatcher::set(const UnicodeString& pattern, FormatParser* fp) {
 2316|  13.3k|    PtnSkeleton localSkeleton;
 2317|  13.3k|    return set(pattern, fp, localSkeleton);
 2318|  13.3k|}
_ZN6icu_7815DateTimeMatcher3setERKNS_13UnicodeStringEPNS_12FormatParserERNS_11PtnSkeletonE:
 2321|   971k|DateTimeMatcher::set(const UnicodeString& pattern, FormatParser* fp, PtnSkeleton& skeletonResult) {
 2322|   971k|    int32_t i;
 2323|  16.5M|    for (i=0; i<UDATPG_FIELD_COUNT; ++i) {
  ------------------
  |  Branch (2323:15): [True: 15.5M, False: 971k]
  ------------------
 2324|  15.5M|        skeletonResult.type[i] = NONE;
  ------------------
  |  |   31|  15.5M|#define NONE          0
  ------------------
 2325|  15.5M|    }
 2326|   971k|    skeletonResult.original.clear();
 2327|   971k|    skeletonResult.baseOriginal.clear();
 2328|   971k|    skeletonResult.addedDefaultDayPeriod = false;
 2329|       |
 2330|   971k|    fp->set(pattern);
 2331|  3.73M|    for (i=0; i < fp->itemNumber; i++) {
  ------------------
  |  Branch (2331:15): [True: 2.76M, False: 971k]
  ------------------
 2332|  2.76M|        const UnicodeString& value = fp->items[i];
 2333|       |        // don't skip 'a' anymore, dayPeriod handled specially below
 2334|       |
 2335|  2.76M|        if ( fp->isQuoteLiteral(value) ) {
  ------------------
  |  Branch (2335:14): [True: 4.44k, False: 2.75M]
  ------------------
 2336|  4.44k|            UnicodeString quoteLiteral;
 2337|  4.44k|            fp->getQuoteLiteral(quoteLiteral, &i);
 2338|  4.44k|            continue;
 2339|  4.44k|        }
 2340|  2.75M|        int32_t canonicalIndex = fp->getCanonicalIndex(value);
 2341|  2.75M|        if (canonicalIndex < 0) {
  ------------------
  |  Branch (2341:13): [True: 416k, False: 2.34M]
  ------------------
 2342|   416k|            continue;
 2343|   416k|        }
 2344|  2.34M|        const dtTypeElem *row = &dtTypes[canonicalIndex];
 2345|  2.34M|        int32_t field = row->field;
 2346|  2.34M|        skeletonResult.original.populate(field, value);
 2347|  2.34M|        char16_t repeatChar = row->patternChar;
 2348|  2.34M|        int32_t repeatCount = row->minLen;
 2349|  2.34M|        skeletonResult.baseOriginal.populate(field, repeatChar, repeatCount);
 2350|  2.34M|        int16_t subField = row->type;
 2351|  2.34M|        if (row->type > 0) {
  ------------------
  |  Branch (2351:13): [True: 1.59M, False: 743k]
  ------------------
 2352|  1.59M|            U_ASSERT(value.length() < INT16_MAX);
  ------------------
  |  |   35|  1.59M|#   define U_ASSERT(exp) (void)0
  ------------------
 2353|  1.59M|            subField += static_cast<int16_t>(value.length());
 2354|  1.59M|        }
 2355|  2.34M|        skeletonResult.type[field] = subField;
 2356|  2.34M|    }
 2357|       |
 2358|       |    // #20739, we have a skeleton with minutes and milliseconds, but no seconds
 2359|       |    //
 2360|       |    // Theoretically we would need to check and fix all fields with "gaps":
 2361|       |    // for example year-day (no month), month-hour (no day), and so on, All the possible field combinations.
 2362|       |    // Plus some smartness: year + hour => should we add month, or add day-of-year?
 2363|       |    // What about month + day-of-week, or month + am/pm indicator.
 2364|       |    // I think beyond a certain point we should not try to fix bad developer input and try guessing what they mean.
 2365|       |    // Garbage in, garbage out.
 2366|   971k|    if (!skeletonResult.original.isFieldEmpty(UDATPG_MINUTE_FIELD)
  ------------------
  |  Branch (2366:9): [True: 288k, False: 682k]
  ------------------
 2367|   971k|        && !skeletonResult.original.isFieldEmpty(UDATPG_FRACTIONAL_SECOND_FIELD)
  ------------------
  |  Branch (2367:12): [True: 688, False: 288k]
  ------------------
 2368|   971k|        && skeletonResult.original.isFieldEmpty(UDATPG_SECOND_FIELD)) {
  ------------------
  |  Branch (2368:12): [True: 312, False: 376]
  ------------------
 2369|       |        // Force the use of seconds
 2370|  20.2k|        for (i = 0; dtTypes[i].patternChar != 0; i++) {
  ------------------
  |  Branch (2370:21): [True: 20.2k, False: 0]
  ------------------
 2371|  20.2k|            if (dtTypes[i].field == UDATPG_SECOND_FIELD) {
  ------------------
  |  Branch (2371:17): [True: 312, False: 19.9k]
  ------------------
 2372|       |                // first entry for UDATPG_SECOND_FIELD
 2373|    312|                skeletonResult.original.populate(UDATPG_SECOND_FIELD, dtTypes[i].patternChar, dtTypes[i].minLen);
 2374|    312|                skeletonResult.baseOriginal.populate(UDATPG_SECOND_FIELD, dtTypes[i].patternChar, dtTypes[i].minLen);
 2375|       |                // We add value.length, same as above, when type is first initialized.
 2376|       |                // The value we want to "fake" here is "s", and 1 means "s".length()
 2377|    312|                int16_t subField = dtTypes[i].type;
 2378|    312|                skeletonResult.type[UDATPG_SECOND_FIELD] = (subField > 0) ? subField + 1 : subField;
  ------------------
  |  Branch (2378:60): [True: 312, False: 0]
  ------------------
 2379|    312|                break;
 2380|    312|            }
 2381|  20.2k|        }
 2382|    312|    }
 2383|       |
 2384|       |    // #13183, handle special behavior for day period characters (a, b, B)
 2385|   971k|    if (!skeletonResult.original.isFieldEmpty(UDATPG_HOUR_FIELD)) {
  ------------------
  |  Branch (2385:9): [True: 320k, False: 650k]
  ------------------
 2386|   320k|        if (skeletonResult.original.getFieldChar(UDATPG_HOUR_FIELD)==LOW_H || skeletonResult.original.getFieldChar(UDATPG_HOUR_FIELD)==CAP_K) {
  ------------------
  |  |   76|   641k|#define LOW_H             ((char16_t)0x0068)
  ------------------
                      if (skeletonResult.original.getFieldChar(UDATPG_HOUR_FIELD)==LOW_H || skeletonResult.original.getFieldChar(UDATPG_HOUR_FIELD)==CAP_K) {
  ------------------
  |  |   55|   129k|#define CAP_K             ((char16_t)0x004B)
  ------------------
  |  Branch (2386:13): [True: 190k, False: 129k]
  |  Branch (2386:79): [True: 1.11k, False: 128k]
  ------------------
 2387|       |            // We have a skeleton with 12-hour-cycle format
 2388|   191k|            if (skeletonResult.original.isFieldEmpty(UDATPG_DAYPERIOD_FIELD)) {
  ------------------
  |  Branch (2388:17): [True: 95.5k, False: 96.1k]
  ------------------
 2389|       |                // But we do not have a day period in the skeleton; add the default DAYPERIOD (currently "a")
 2390|  4.58M|                for (i = 0; dtTypes[i].patternChar != 0; i++) {
  ------------------
  |  Branch (2390:29): [True: 4.58M, False: 0]
  ------------------
 2391|  4.58M|                    if ( dtTypes[i].field == UDATPG_DAYPERIOD_FIELD ) {
  ------------------
  |  Branch (2391:26): [True: 95.5k, False: 4.49M]
  ------------------
 2392|       |                        // first entry for UDATPG_DAYPERIOD_FIELD
 2393|  95.5k|                        skeletonResult.original.populate(UDATPG_DAYPERIOD_FIELD, dtTypes[i].patternChar, dtTypes[i].minLen);
 2394|  95.5k|                        skeletonResult.baseOriginal.populate(UDATPG_DAYPERIOD_FIELD, dtTypes[i].patternChar, dtTypes[i].minLen);
 2395|  95.5k|                        skeletonResult.type[UDATPG_DAYPERIOD_FIELD] = dtTypes[i].type;
 2396|  95.5k|                        skeletonResult.addedDefaultDayPeriod = true;
 2397|  95.5k|                        break;
 2398|  95.5k|                    }
 2399|  4.58M|                }
 2400|  95.5k|            }
 2401|   191k|        } else {
 2402|       |            // Skeleton has 24-hour-cycle hour format and has dayPeriod, delete dayPeriod (i.e. ignore it)
 2403|   128k|            skeletonResult.original.clearField(UDATPG_DAYPERIOD_FIELD);
 2404|   128k|            skeletonResult.baseOriginal.clearField(UDATPG_DAYPERIOD_FIELD);
 2405|   128k|            skeletonResult.type[UDATPG_DAYPERIOD_FIELD] = NONE;
  ------------------
  |  |   31|   128k|#define NONE          0
  ------------------
 2406|   128k|        }
 2407|   320k|    }
 2408|   971k|    copyFrom(skeletonResult);
 2409|   971k|}
_ZN6icu_7815DateTimeMatcher14getBasePatternERNS_13UnicodeStringE:
 2412|   942k|DateTimeMatcher::getBasePattern(UnicodeString &result ) {
 2413|   942k|    result.remove(); // Reset the result first.
 2414|   942k|    skeleton.baseOriginal.appendTo(result);
 2415|   942k|}
_ZNK6icu_7815DateTimeMatcher11getDistanceERKS0_iRNS_12DistanceInfoE:
 2424|  2.09M|DateTimeMatcher::getDistance(const DateTimeMatcher& other, int32_t includeMask, DistanceInfo& distanceInfo) const {
 2425|  2.09M|    int32_t result = 0;
 2426|  2.09M|    distanceInfo.clear();
 2427|  35.6M|    for (int32_t i=0; i<UDATPG_FIELD_COUNT; ++i ) {
  ------------------
  |  Branch (2427:23): [True: 33.5M, False: 2.09M]
  ------------------
 2428|  33.5M|        int32_t myType = (includeMask&(1<<i))==0 ? 0 : skeleton.type[i];
  ------------------
  |  Branch (2428:26): [True: 17.5M, False: 15.9M]
  ------------------
 2429|  33.5M|        int32_t otherType = other.skeleton.type[i];
 2430|  33.5M|        if (myType==otherType) {
  ------------------
  |  Branch (2430:13): [True: 24.1M, False: 9.42M]
  ------------------
 2431|  24.1M|            continue;
 2432|  24.1M|        }
 2433|  9.42M|        if (myType==0) {// and other is not
  ------------------
  |  Branch (2433:13): [True: 4.18M, False: 5.24M]
  ------------------
 2434|  4.18M|            result += EXTRA_FIELD;
  ------------------
  |  |   32|  4.18M|#define EXTRA_FIELD   0x10000
  ------------------
 2435|  4.18M|            distanceInfo.addExtra(i);
 2436|  4.18M|        }
 2437|  5.24M|        else {
 2438|  5.24M|            if (otherType==0) {
  ------------------
  |  Branch (2438:17): [True: 4.35M, False: 887k]
  ------------------
 2439|  4.35M|                result += MISSING_FIELD;
  ------------------
  |  |   33|  4.35M|#define MISSING_FIELD  0x1000
  ------------------
 2440|  4.35M|                distanceInfo.addMissing(i);
 2441|  4.35M|            }
 2442|   887k|            else {
 2443|   887k|                result += abs(myType - otherType);
 2444|   887k|            }
 2445|  5.24M|        }
 2446|       |
 2447|  9.42M|    }
 2448|  2.09M|    return result;
 2449|  2.09M|}
_ZN6icu_7815DateTimeMatcher8copyFromERKNS_11PtnSkeletonE:
 2452|  5.16M|DateTimeMatcher::copyFrom(const PtnSkeleton& newSkeleton) {
 2453|  5.16M|    skeleton.copyFrom(newSkeleton);
 2454|  5.16M|}
_ZNK6icu_7815DateTimeMatcher6equalsEPKS0_:
 2463|  2.09M|DateTimeMatcher::equals(const DateTimeMatcher* other) const {
 2464|  2.09M|    if (other==nullptr) { return false; }
  ------------------
  |  Branch (2464:9): [True: 2.09M, False: 0]
  ------------------
 2465|      0|    return skeleton.original == other->skeleton.original;
 2466|  2.09M|}
_ZNK6icu_7815DateTimeMatcher12getFieldMaskEv:
 2469|  8.13k|DateTimeMatcher::getFieldMask() const {
 2470|  8.13k|    int32_t result = 0;
 2471|       |
 2472|   138k|    for (int32_t i=0; i<UDATPG_FIELD_COUNT; ++i) {
  ------------------
  |  Branch (2472:23): [True: 130k, False: 8.13k]
  ------------------
 2473|   130k|        if (skeleton.type[i]!=0) {
  ------------------
  |  Branch (2473:13): [True: 31.9k, False: 98.2k]
  ------------------
 2474|  31.9k|            result |= (1<<i);
 2475|  31.9k|        }
 2476|   130k|    }
 2477|  8.13k|    return result;
 2478|  8.13k|}
_ZN6icu_7815DateTimeMatcher14getSkeletonPtrEv:
 2481|   144k|DateTimeMatcher::getSkeletonPtr() {
 2482|   144k|    return &skeleton;
 2483|   144k|}
_ZN6icu_7812FormatParserC2Ev:
 2485|  29.3k|FormatParser::FormatParser () {
 2486|  29.3k|    status = START;
 2487|  29.3k|    itemNumber = 0;
 2488|  29.3k|}
_ZN6icu_7812FormatParserD2Ev:
 2491|  29.3k|FormatParser::~FormatParser () {
 2492|  29.3k|}
_ZN6icu_7812FormatParser9setTokensERKNS_13UnicodeStringEiPi:
 2498|  3.85M|FormatParser::setTokens(const UnicodeString& pattern, int32_t startPos, int32_t *len) {
 2499|  3.85M|    int32_t curLoc = startPos;
 2500|  3.85M|    if ( curLoc >= pattern.length()) {
  ------------------
  |  Branch (2500:10): [True: 994k, False: 2.85M]
  ------------------
 2501|   994k|        return DONE;
 2502|   994k|    }
 2503|       |    // check the current char is between A-Z or a-z
 2504|  65.4M|    do {
 2505|  65.4M|        char16_t c=pattern.charAt(curLoc);
 2506|  65.4M|        if ( (c>=CAP_A && c<=CAP_Z) || (c>=LOW_A && c<=LOW_Z) ) {
  ------------------
  |  |   46|   130M|#define CAP_A             ((char16_t)0x0041)
  ------------------
                      if ( (c>=CAP_A && c<=CAP_Z) || (c>=LOW_A && c<=LOW_Z) ) {
  ------------------
  |  |   67|  65.1M|#define CAP_Z             ((char16_t)0x005A)
  ------------------
                      if ( (c>=CAP_A && c<=CAP_Z) || (c>=LOW_A && c<=LOW_Z) ) {
  ------------------
  |  |   69|   100M|#define LOW_A             ((char16_t)0x0061)
  ------------------
                      if ( (c>=CAP_A && c<=CAP_Z) || (c>=LOW_A && c<=LOW_Z) ) {
  ------------------
  |  |   94|  50.0M|#define LOW_Z             ((char16_t)0x007A)
  ------------------
  |  Branch (2506:15): [True: 65.1M, False: 325k]
  |  Branch (2506:27): [True: 15.1M, False: 50.0M]
  |  Branch (2506:41): [True: 50.0M, False: 348k]
  |  Branch (2506:53): [True: 49.9M, False: 90.4k]
  ------------------
 2507|  65.0M|           curLoc++;
 2508|  65.0M|        }
 2509|   438k|        else {
 2510|   438k|               startPos = curLoc;
 2511|   438k|               *len=1;
 2512|   438k|               return ADD_TOKEN;
 2513|   438k|        }
 2514|       |
 2515|  65.0M|        if ( pattern.charAt(curLoc)!= pattern.charAt(startPos) ) {
  ------------------
  |  Branch (2515:14): [True: 2.41M, False: 62.6M]
  ------------------
 2516|  2.41M|            break;  // not the same token
 2517|  2.41M|        }
 2518|  65.0M|    } while(curLoc <= pattern.length());
  ------------------
  |  Branch (2518:13): [True: 62.6M, False: 0]
  ------------------
 2519|  2.41M|    *len = curLoc-startPos;
 2520|  2.41M|    return ADD_TOKEN;
 2521|  2.85M|}
_ZN6icu_7812FormatParser3setERKNS_13UnicodeStringE:
 2524|   997k|FormatParser::set(const UnicodeString& pattern) {
 2525|   997k|    int32_t startPos = 0;
 2526|   997k|    TokenStatus result = START;
 2527|   997k|    int32_t len = 0;
 2528|   997k|    itemNumber = 0;
 2529|       |
 2530|  3.85M|    do {
 2531|  3.85M|        result = setTokens( pattern, startPos, &len );
 2532|  3.85M|        if ( result == ADD_TOKEN )
  ------------------
  |  Branch (2532:14): [True: 2.85M, False: 994k]
  ------------------
 2533|  2.85M|        {
 2534|  2.85M|            items[itemNumber++] = UnicodeString(pattern, startPos, len );
 2535|  2.85M|            startPos += len;
 2536|  2.85M|        }
 2537|   994k|        else {
 2538|   994k|            break;
 2539|   994k|        }
 2540|  3.85M|    } while (result==ADD_TOKEN && itemNumber < MAX_DT_TOKEN);
  ------------------
  |  |   28|  2.85M|#define MAX_DT_TOKEN        50
  ------------------
  |  Branch (2540:14): [True: 2.85M, False: 0]
  |  Branch (2540:35): [True: 2.85M, False: 3.08k]
  ------------------
 2541|   997k|}
_ZN6icu_7812FormatParser17getCanonicalIndexERKNS_13UnicodeStringEa:
 2544|  2.80M|FormatParser::getCanonicalIndex(const UnicodeString& s, UBool strict) {
 2545|  2.80M|    int32_t len = s.length();
 2546|  2.80M|    if (len == 0) {
  ------------------
  |  Branch (2546:9): [True: 0, False: 2.80M]
  ------------------
 2547|      0|        return -1;
 2548|      0|    }
 2549|  2.80M|    char16_t ch = s.charAt(0);
 2550|       |
 2551|       |    // Verify that all are the same character.
 2552|  52.8M|    for (int32_t l = 1; l < len; l++) {
  ------------------
  |  Branch (2552:25): [True: 50.0M, False: 2.80M]
  ------------------
 2553|  50.0M|        if (ch != s.charAt(l)) {
  ------------------
  |  Branch (2553:13): [True: 0, False: 50.0M]
  ------------------
 2554|      0|            return -1;
 2555|      0|        }
 2556|  50.0M|    }
 2557|  2.80M|    int32_t i = 0;
 2558|  2.80M|    int32_t bestRow = -1;
 2559|   131M|    while (dtTypes[i].patternChar != 0x0000) {
  ------------------
  |  Branch (2559:12): [True: 131M, False: 422k]
  ------------------
 2560|   131M|        if ( dtTypes[i].patternChar != ch ) {
  ------------------
  |  Branch (2560:14): [True: 128M, False: 2.72M]
  ------------------
 2561|   128M|            ++i;
 2562|   128M|            continue;
 2563|   128M|        }
 2564|  2.72M|        bestRow = i;
 2565|  2.72M|        if (dtTypes[i].patternChar != dtTypes[i+1].patternChar) {
  ------------------
  |  Branch (2565:13): [True: 1.48M, False: 1.23M]
  ------------------
 2566|  1.48M|            return i;
 2567|  1.48M|        }
 2568|  1.23M|        if (dtTypes[i+1].minLen <= len) {
  ------------------
  |  Branch (2568:13): [True: 334k, False: 898k]
  ------------------
 2569|   334k|            ++i;
 2570|   334k|            continue;
 2571|   334k|        }
 2572|   898k|        return i;
 2573|  1.23M|    }
 2574|   422k|    return strict ? -1 : bestRow;
  ------------------
  |  Branch (2574:12): [True: 422k, False: 0]
  ------------------
 2575|  2.80M|}
_ZN6icu_7812FormatParser14isQuoteLiteralERKNS_13UnicodeStringE:
 2578|  2.82M|FormatParser::isQuoteLiteral(const UnicodeString& s) {
 2579|  2.82M|    return s.charAt(0) == SINGLE_QUOTE;
  ------------------
  |  |   35|  2.82M|#define SINGLE_QUOTE      ((char16_t)0x0027)
  ------------------
 2580|  2.82M|}
_ZN6icu_7812FormatParser15getQuoteLiteralERNS_13UnicodeStringEPi:
 2585|  4.72k|FormatParser::getQuoteLiteral(UnicodeString& quote, int32_t *itemIndex) {
 2586|  4.72k|    int32_t i = *itemIndex;
 2587|       |
 2588|  4.72k|    quote.remove();
 2589|  4.72k|    if (items[i].charAt(0)==SINGLE_QUOTE) {
  ------------------
  |  |   35|  4.72k|#define SINGLE_QUOTE      ((char16_t)0x0027)
  ------------------
  |  Branch (2589:9): [True: 4.72k, False: 0]
  ------------------
 2590|  4.72k|        quote += items[i];
 2591|  4.72k|        ++i;
 2592|  4.72k|    }
 2593|  29.7k|    while ( i < itemNumber ) {
  ------------------
  |  Branch (2593:13): [True: 28.9k, False: 782]
  ------------------
 2594|  28.9k|        if ( items[i].charAt(0)==SINGLE_QUOTE ) {
  ------------------
  |  |   35|  28.9k|#define SINGLE_QUOTE      ((char16_t)0x0027)
  ------------------
  |  Branch (2594:14): [True: 4.25k, False: 24.7k]
  ------------------
 2595|  4.25k|            if ( (i+1<itemNumber) && (items[i+1].charAt(0)==SINGLE_QUOTE)) {
  ------------------
  |  |   35|  4.02k|#define SINGLE_QUOTE      ((char16_t)0x0027)
  ------------------
  |  Branch (2595:18): [True: 4.02k, False: 238]
  |  Branch (2595:38): [True: 316, False: 3.70k]
  ------------------
 2596|       |                // two single quotes e.g. 'o''clock'
 2597|    316|                quote += items[i++];
 2598|    316|                quote += items[i++];
 2599|    316|                continue;
 2600|    316|            }
 2601|  3.94k|            else {
 2602|  3.94k|                quote += items[i];
 2603|  3.94k|                break;
 2604|  3.94k|            }
 2605|  4.25k|        }
 2606|  24.7k|        else {
 2607|  24.7k|            quote += items[i];
 2608|  24.7k|        }
 2609|  24.7k|        ++i;
 2610|  24.7k|    }
 2611|  4.72k|    *itemIndex=i;
 2612|  4.72k|}
_ZNK6icu_7812FormatParser18isPatternSeparatorERKNS_13UnicodeStringE:
 2615|  67.8k|FormatParser::isPatternSeparator(const UnicodeString& field) const {
 2616|  83.4k|    for (int32_t i=0; i<field.length(); ++i ) {
  ------------------
  |  Branch (2616:23): [True: 67.8k, False: 15.6k]
  ------------------
 2617|  67.8k|        char16_t c= field.charAt(i);
 2618|  67.8k|        if ( (c==SINGLE_QUOTE) || (c==BACKSLASH) || (c==SPACE) || (c==COLON) ||
  ------------------
  |  |   35|  67.8k|#define SINGLE_QUOTE      ((char16_t)0x0027)
  ------------------
                      if ( (c==SINGLE_QUOTE) || (c==BACKSLASH) || (c==SPACE) || (c==COLON) ||
  ------------------
  |  |   37|  67.8k|#define BACKSLASH         ((char16_t)0x005C)
  ------------------
                      if ( (c==SINGLE_QUOTE) || (c==BACKSLASH) || (c==SPACE) || (c==COLON) ||
  ------------------
  |  |   38|  67.8k|#define SPACE             ((char16_t)0x0020)
  ------------------
                      if ( (c==SINGLE_QUOTE) || (c==BACKSLASH) || (c==SPACE) || (c==COLON) ||
  ------------------
  |  |   45|  61.5k|#define COLON             ((char16_t)0x003A)
  ------------------
  |  Branch (2618:14): [True: 0, False: 67.8k]
  |  Branch (2618:35): [True: 0, False: 67.8k]
  |  Branch (2618:53): [True: 6.25k, False: 61.5k]
  |  Branch (2618:67): [True: 8.46k, False: 53.0k]
  ------------------
 2619|  67.8k|             (c==QUOTATION_MARK) || (c==COMMA) || (c==HYPHEN) ||(items[i].charAt(0)==DOT) ) {
  ------------------
  |  |   39|  53.0k|#define QUOTATION_MARK    ((char16_t)0x0022)
  ------------------
                           (c==QUOTATION_MARK) || (c==COMMA) || (c==HYPHEN) ||(items[i].charAt(0)==DOT) ) {
  ------------------
  |  |   42|  53.0k|#define COMMA             ((char16_t)0x002C)
  ------------------
                           (c==QUOTATION_MARK) || (c==COMMA) || (c==HYPHEN) ||(items[i].charAt(0)==DOT) ) {
  ------------------
  |  |   43|  52.3k|#define HYPHEN            ((char16_t)0x002D)
  ------------------
                           (c==QUOTATION_MARK) || (c==COMMA) || (c==HYPHEN) ||(items[i].charAt(0)==DOT) ) {
  ------------------
  |  |   44|  52.1k|#define DOT               ((char16_t)0x002E)
  ------------------
  |  Branch (2619:14): [True: 0, False: 53.0k]
  |  Branch (2619:37): [True: 761, False: 52.3k]
  |  Branch (2619:51): [True: 205, False: 52.1k]
  |  Branch (2619:65): [True: 0, False: 52.1k]
  ------------------
 2620|  15.6k|            continue;
 2621|  15.6k|        }
 2622|  52.1k|        else {
 2623|  52.1k|            return false;
 2624|  52.1k|        }
 2625|  67.8k|    }
 2626|  15.6k|    return true;
 2627|  67.8k|}
_ZN6icu_7812DistanceInfoD2Ev:
 2629|  47.6k|DistanceInfo::~DistanceInfo() {}
_ZN6icu_7812DistanceInfo5setToERKS0_:
 2632|   138k|DistanceInfo::setTo(const DistanceInfo& other) {
 2633|   138k|    missingFieldMask = other.missingFieldMask;
 2634|   138k|    extraFieldMask= other.extraFieldMask;
 2635|   138k|}
_ZN6icu_7818PatternMapIteratorC2ER10UErrorCode:
 2638|  33.8k|    bootIndex(0), nodePtr(nullptr), matcher(nullptr), patternMap(nullptr)
 2639|  33.8k|{
 2640|  33.8k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (2640:9): [True: 0, False: 33.8k]
  ------------------
 2641|  33.8k|    matcher.adoptInsteadAndCheckErrorCode(new DateTimeMatcher(), status);
 2642|  33.8k|}
_ZN6icu_7818PatternMapIteratorD2Ev:
 2644|  33.8k|PatternMapIterator::~PatternMapIterator() {
 2645|  33.8k|}
_ZN6icu_7818PatternMapIterator3setERNS_10PatternMapE:
 2648|  33.8k|PatternMapIterator::set(PatternMap& newPatternMap) {
 2649|  33.8k|    this->patternMap=&newPatternMap;
 2650|  33.8k|}
_ZNK6icu_7818PatternMapIterator7hasNextEv:
 2663|  2.12M|PatternMapIterator::hasNext() const {
 2664|  2.12M|    int32_t headIndex = bootIndex;
 2665|  2.12M|    PtnElem *curPtr = nodePtr;
 2666|       |
 2667|  2.12M|    if (patternMap==nullptr) {
  ------------------
  |  Branch (2667:9): [True: 0, False: 2.12M]
  ------------------
 2668|      0|        return false;
 2669|      0|    }
 2670|  3.80M|    while ( headIndex < MAX_PATTERN_ENTRIES ) {
  ------------------
  |  |   26|  3.80M|#define MAX_PATTERN_ENTRIES 52
  ------------------
  |  Branch (2670:13): [True: 3.77M, False: 30.1k]
  ------------------
 2671|  3.77M|        if ( curPtr != nullptr ) {
  ------------------
  |  Branch (2671:14): [True: 2.09M, False: 1.68M]
  ------------------
 2672|  2.09M|            if ( curPtr->next != nullptr ) {
  ------------------
  |  Branch (2672:18): [True: 1.54M, False: 550k]
  ------------------
 2673|  1.54M|                return true;
 2674|  1.54M|            }
 2675|   550k|            else {
 2676|   550k|                headIndex++;
 2677|   550k|                curPtr=nullptr;
 2678|   550k|                continue;
 2679|   550k|            }
 2680|  2.09M|        }
 2681|  1.68M|        else {
 2682|  1.68M|            if ( patternMap->boot[headIndex] != nullptr ) {
  ------------------
  |  Branch (2682:18): [True: 553k, False: 1.12M]
  ------------------
 2683|   553k|                return true;
 2684|   553k|            }
 2685|  1.12M|            else {
 2686|  1.12M|                headIndex++;
 2687|  1.12M|                continue;
 2688|  1.12M|            }
 2689|  1.68M|        }
 2690|  3.77M|    }
 2691|  30.1k|    return false;
 2692|  2.12M|}
_ZN6icu_7818PatternMapIterator4nextEv:
 2695|  2.09M|PatternMapIterator::next() {
 2696|  3.71M|    while ( bootIndex < MAX_PATTERN_ENTRIES ) {
  ------------------
  |  |   26|  3.71M|#define MAX_PATTERN_ENTRIES 52
  ------------------
  |  Branch (2696:13): [True: 3.71M, False: 0]
  ------------------
 2697|  3.71M|        if ( nodePtr != nullptr ) {
  ------------------
  |  Branch (2697:14): [True: 2.06M, False: 1.65M]
  ------------------
 2698|  2.06M|            if ( nodePtr->next != nullptr ) {
  ------------------
  |  Branch (2698:18): [True: 1.54M, False: 519k]
  ------------------
 2699|  1.54M|                nodePtr = nodePtr->next.getAlias();
 2700|  1.54M|                break;
 2701|  1.54M|            }
 2702|   519k|            else {
 2703|   519k|                bootIndex++;
 2704|   519k|                nodePtr=nullptr;
 2705|   519k|                continue;
 2706|   519k|            }
 2707|  2.06M|        }
 2708|  1.65M|        else {
 2709|  1.65M|            if ( patternMap->boot[bootIndex] != nullptr ) {
  ------------------
  |  Branch (2709:18): [True: 553k, False: 1.09M]
  ------------------
 2710|   553k|                nodePtr = patternMap->boot[bootIndex];
 2711|   553k|                break;
 2712|   553k|            }
 2713|  1.09M|            else {
 2714|  1.09M|                bootIndex++;
 2715|  1.09M|                continue;
 2716|  1.09M|            }
 2717|  1.65M|        }
 2718|  3.71M|    }
 2719|  2.09M|    if (nodePtr!=nullptr) {
  ------------------
  |  Branch (2719:9): [True: 2.09M, False: 0]
  ------------------
 2720|  2.09M|        matcher->copyFrom(*nodePtr->skeleton);
 2721|  2.09M|    }
 2722|      0|    else {
 2723|      0|        matcher->copyFrom();
 2724|      0|    }
 2725|  2.09M|    return *matcher;
 2726|  2.09M|}
_ZN6icu_7814SkeletonFieldsC2Ev:
 2729|  9.87M|SkeletonFields::SkeletonFields() {
 2730|       |    // Set initial values to zero
 2731|  9.87M|    clear();
 2732|  9.87M|}
_ZN6icu_7814SkeletonFields5clearEv:
 2734|  11.8M|void SkeletonFields::clear() {
 2735|  11.8M|    uprv_memset(chars, 0, sizeof(chars));
  ------------------
  |  |  100|  11.8M|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  11.8M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2736|  11.8M|    uprv_memset(lengths, 0, sizeof(lengths));
  ------------------
  |  |  100|  11.8M|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  11.8M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2737|  11.8M|}
_ZN6icu_7814SkeletonFields8copyFromERKS0_:
 2739|  12.0M|void SkeletonFields::copyFrom(const SkeletonFields& other) {
 2740|  12.0M|    uprv_memcpy(chars, other.chars, sizeof(chars));
  ------------------
  |  |   42|  12.0M|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  12.0M|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  12.0M|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  12.0M|    _Pragma("clang diagnostic push") \
  |  |   45|  12.0M|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  12.0M|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  12.0M|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  12.0M|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  12.0M|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  12.0M|    _Pragma("clang diagnostic pop") \
  |  |   49|  12.0M|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  12.0M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  12.0M|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  12.0M|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2741|  12.0M|    uprv_memcpy(lengths, other.lengths, sizeof(lengths));
  ------------------
  |  |   42|  12.0M|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  12.0M|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  12.0M|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  12.0M|    _Pragma("clang diagnostic push") \
  |  |   45|  12.0M|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  12.0M|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  12.0M|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  12.0M|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  12.0M|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  12.0M|    _Pragma("clang diagnostic pop") \
  |  |   49|  12.0M|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  12.0M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  12.0M|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  12.0M|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2742|  12.0M|}
_ZN6icu_7814SkeletonFields10clearFieldEi:
 2744|   257k|void SkeletonFields::clearField(int32_t field) {
 2745|   257k|    chars[field] = 0;
 2746|   257k|    lengths[field] = 0;
 2747|   257k|}
_ZNK6icu_7814SkeletonFields12getFieldCharEi:
 2749|   495k|char16_t SkeletonFields::getFieldChar(int32_t field) const {
 2750|   495k|    return chars[field];
 2751|   495k|}
_ZNK6icu_7814SkeletonFields14getFieldLengthEi:
 2753|  67.0k|int32_t SkeletonFields::getFieldLength(int32_t field) const {
 2754|  67.0k|    return lengths[field];
 2755|  67.0k|}
_ZN6icu_7814SkeletonFields8populateEiRKNS_13UnicodeStringE:
 2757|  2.34M|void SkeletonFields::populate(int32_t field, const UnicodeString& value) {
 2758|  2.34M|    populate(field, value.charAt(0), value.length());
 2759|  2.34M|}
_ZN6icu_7814SkeletonFields8populateEiDsi:
 2761|  4.87M|void SkeletonFields::populate(int32_t field, char16_t ch, int32_t length) {
 2762|  4.87M|    chars[field] = static_cast<int8_t>(ch);
 2763|  4.87M|    lengths[field] = static_cast<int8_t>(length);
 2764|  4.87M|}
_ZNK6icu_7814SkeletonFields12isFieldEmptyEi:
 2766|  2.42M|UBool SkeletonFields::isFieldEmpty(int32_t field) const {
 2767|  2.42M|    return lengths[field] == 0;
 2768|  2.42M|}
_ZNK6icu_7814SkeletonFields8appendToERNS_13UnicodeStringE:
 2770|   957k|UnicodeString& SkeletonFields::appendTo(UnicodeString& string) const {
 2771|  16.2M|    for (int32_t i = 0; i < UDATPG_FIELD_COUNT; ++i) {
  ------------------
  |  Branch (2771:25): [True: 15.3M, False: 957k]
  ------------------
 2772|  15.3M|        appendFieldTo(i, string);
 2773|  15.3M|    }
 2774|   957k|    return string;
 2775|   957k|}
_ZNK6icu_7814SkeletonFields13appendFieldToEiRNS_13UnicodeStringE:
 2777|  15.3M|UnicodeString& SkeletonFields::appendFieldTo(int32_t field, UnicodeString& string) const {
 2778|  15.3M|    char16_t ch(chars[field]);
 2779|  15.3M|    int32_t length = static_cast<int32_t>(lengths[field]);
 2780|       |
 2781|  18.3M|    for (int32_t i=0; i<length; i++) {
  ------------------
  |  Branch (2781:23): [True: 3.00M, False: 15.3M]
  ------------------
 2782|  3.00M|        string += ch;
 2783|  3.00M|    }
 2784|  15.3M|    return string;
 2785|  15.3M|}
_ZNK6icu_7814SkeletonFields12getFirstCharEv:
 2787|  1.07M|char16_t SkeletonFields::getFirstChar() const {
 2788|  7.53M|    for (int32_t i = 0; i < UDATPG_FIELD_COUNT; ++i) {
  ------------------
  |  Branch (2788:25): [True: 7.53M, False: 0]
  ------------------
 2789|  7.53M|        if (lengths[i] != 0) {
  ------------------
  |  Branch (2789:13): [True: 1.07M, False: 6.45M]
  ------------------
 2790|  1.07M|            return chars[i];
 2791|  1.07M|        }
 2792|  7.53M|    }
 2793|      0|    return '\0';
 2794|  1.07M|}
_ZN6icu_7811PtnSkeletonC2Ev:
 2798|  4.07M|    : addedDefaultDayPeriod(false) {
 2799|  4.07M|}
_ZN6icu_7811PtnSkeletonC2ERKS0_:
 2801|   863k|PtnSkeleton::PtnSkeleton(const PtnSkeleton& other) {
 2802|   863k|    copyFrom(other);
 2803|   863k|}
_ZN6icu_7811PtnSkeleton8copyFromERKS0_:
 2805|  6.03M|void PtnSkeleton::copyFrom(const PtnSkeleton& other) {
 2806|  6.03M|    uprv_memcpy(type, other.type, sizeof(type));
  ------------------
  |  |   42|  6.03M|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  6.03M|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  6.03M|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  6.03M|    _Pragma("clang diagnostic push") \
  |  |   45|  6.03M|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  6.03M|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  6.03M|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  6.03M|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  6.03M|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  6.03M|    _Pragma("clang diagnostic pop") \
  |  |   49|  6.03M|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  6.03M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  6.03M|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  6.03M|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2807|  6.03M|    original.copyFrom(other.original);
 2808|  6.03M|    baseOriginal.copyFrom(other.baseOriginal);
 2809|  6.03M|    addedDefaultDayPeriod = other.addedDefaultDayPeriod;
 2810|  6.03M|}
_ZNK6icu_7811PtnSkeleton11getSkeletonEv:
 2826|  15.5k|PtnSkeleton::getSkeleton() const {
 2827|  15.5k|    UnicodeString result;
 2828|  15.5k|    result = original.appendTo(result);
 2829|  15.5k|    int32_t pos;
 2830|  15.5k|    if (addedDefaultDayPeriod && (pos = result.indexOf(LOW_A)) >= 0) {
  ------------------
  |  |   69|  1.02k|#define LOW_A             ((char16_t)0x0061)
  ------------------
  |  Branch (2830:9): [True: 1.02k, False: 14.4k]
  |  Branch (2830:34): [True: 1.02k, False: 0]
  ------------------
 2831|       |        // for backward compatibility: if DateTimeMatcher.set added a single 'a' that
 2832|       |        // was not in the provided skeleton, remove it here before returning skeleton.
 2833|  1.02k|        result.remove(pos, 1);
 2834|  1.02k|    }
 2835|  15.5k|    return result;
 2836|  15.5k|}
_ZNK6icu_7811PtnSkeleton12getFirstCharEv:
 2852|  1.07M|PtnSkeleton::getFirstChar() const {
 2853|  1.07M|    return baseOriginal.getFirstChar();
 2854|  1.07M|}
_ZN6icu_7811PtnSkeletonD2Ev:
 2856|  4.93M|PtnSkeleton::~PtnSkeleton() {
 2857|  4.93M|}
_ZN6icu_787PtnElemC2ERKNS_13UnicodeStringES3_:
 2860|   863k|    basePattern(basePat), skeleton(nullptr), pattern(pat), next(nullptr)
 2861|   863k|{
 2862|   863k|}
_ZN6icu_787PtnElemD2Ev:
 2864|   863k|PtnElem::~PtnElem() {
 2865|   863k|}
dtptngen.cpp:_ZN6icu_7812_GLOBAL__N_122AllowedHourFormatsSinkC2Ev:
  535|      1|    AllowedHourFormatsSink() {}
dtptngen.cpp:_ZN6icu_7812_GLOBAL__N_122AllowedHourFormatsSink3putEPKcRNS_13ResourceValueEaR10UErrorCode:
  539|      1|                     UErrorCode &errorCode) override {
  540|      1|        ResourceTable timeData = value.getTable(errorCode);
  541|      1|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (541:13): [True: 0, False: 1]
  ------------------
  542|    277|        for (int32_t i = 0; timeData.getKeyAndValue(i, key, value); ++i) {
  ------------------
  |  Branch (542:29): [True: 276, False: 1]
  ------------------
  543|    276|            const char *regionOrLocale = key;
  544|    276|            ResourceTable formatList = value.getTable(errorCode);
  545|    276|            if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (545:17): [True: 0, False: 276]
  ------------------
  546|       |            // below we construct a list[] that has an entry for the "preferred" value at [0],
  547|       |            // followed by 1 or more entries for the "allowed" values, terminated with an
  548|       |            // entry for ALLOWED_HOUR_FORMAT_UNKNOWN (not included in length below)
  549|    276|            LocalMemory<int32_t> list;
  550|    276|            int32_t length = 0;
  551|    276|            int32_t preferredFormat = ALLOWED_HOUR_FORMAT_UNKNOWN;
  552|    828|            for (int32_t j = 0; formatList.getKeyAndValue(j, key, value); ++j) {
  ------------------
  |  Branch (552:33): [True: 552, False: 276]
  ------------------
  553|    552|                if (uprv_strcmp(key, "allowed") == 0) {
  ------------------
  |  |   38|    552|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    552|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (553:21): [True: 276, False: 276]
  ------------------
  554|    276|                    if (value.getType() == URES_STRING) {
  ------------------
  |  Branch (554:25): [True: 14, False: 262]
  ------------------
  555|     14|                        length = 2; // 1 preferred to add later, 1 allowed to add now
  556|     14|                        if (list.allocateInsteadAndReset(length + 1) == nullptr) {
  ------------------
  |  Branch (556:29): [True: 0, False: 14]
  ------------------
  557|      0|                            errorCode = U_MEMORY_ALLOCATION_ERROR;
  558|      0|                            return;
  559|      0|                        }
  560|     14|                        list[1] = getHourFormatFromUnicodeString(value.getUnicodeString(errorCode));
  561|     14|                    }
  562|    262|                    else {
  563|    262|                        ResourceArray allowedFormats = value.getArray(errorCode);
  564|    262|                        length = allowedFormats.getSize() + 1; // 1 preferred, getSize allowed
  565|    262|                        if (list.allocateInsteadAndReset(length + 1) == nullptr) {
  ------------------
  |  Branch (565:29): [True: 0, False: 262]
  ------------------
  566|      0|                            errorCode = U_MEMORY_ALLOCATION_ERROR;
  567|      0|                            return;
  568|      0|                        }
  569|  1.11k|                        for (int32_t k = 1; k < length; ++k) {
  ------------------
  |  Branch (569:45): [True: 857, False: 262]
  ------------------
  570|    857|                            allowedFormats.getValue(k-1, value);
  571|    857|                            list[k] = getHourFormatFromUnicodeString(value.getUnicodeString(errorCode));
  572|    857|                        }
  573|    262|                    }
  574|    276|                } else if (uprv_strcmp(key, "preferred") == 0) {
  ------------------
  |  |   38|    276|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    276|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (574:28): [True: 276, False: 0]
  ------------------
  575|    276|                    preferredFormat = getHourFormatFromUnicodeString(value.getUnicodeString(errorCode));
  576|    276|                }
  577|    552|            }
  578|    276|            if (length > 1) {
  ------------------
  |  Branch (578:17): [True: 276, False: 0]
  ------------------
  579|    276|                list[0] = (preferredFormat!=ALLOWED_HOUR_FORMAT_UNKNOWN)? preferredFormat: list[1];
  ------------------
  |  Branch (579:27): [True: 276, False: 0]
  ------------------
  580|    276|            } else {
  581|       |                // fallback handling for missing data
  582|      0|                length = 2; // 1 preferred, 1 allowed
  583|      0|                if (list.allocateInsteadAndReset(length + 1) == nullptr) {
  ------------------
  |  Branch (583:21): [True: 0, False: 0]
  ------------------
  584|      0|                    errorCode = U_MEMORY_ALLOCATION_ERROR;
  585|      0|                    return;
  586|      0|                }
  587|      0|                list[0] = (preferredFormat!=ALLOWED_HOUR_FORMAT_UNKNOWN)? preferredFormat: ALLOWED_HOUR_FORMAT_H;
  ------------------
  |  Branch (587:27): [True: 0, False: 0]
  ------------------
  588|      0|                list[1] = list[0];
  589|      0|            }
  590|    276|            list[length] = ALLOWED_HOUR_FORMAT_UNKNOWN;
  591|       |            // At this point list[] will have at least two non-ALLOWED_HOUR_FORMAT_UNKNOWN entries,
  592|       |            // followed by ALLOWED_HOUR_FORMAT_UNKNOWN.
  593|    276|            uhash_put(localeToAllowedHourFormatsMap, const_cast<char *>(regionOrLocale), list.orphan(), &errorCode);
  ------------------
  |  | 1032|    276|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|    276|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    276|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    276|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  594|    276|            if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (594:17): [True: 0, False: 276]
  ------------------
  595|    276|        }
  596|      1|    }
dtptngen.cpp:_ZN6icu_7812_GLOBAL__N_122AllowedHourFormatsSink30getHourFormatFromUnicodeStringERKNS_13UnicodeStringE:
  598|  1.14k|    AllowedHourFormat getHourFormatFromUnicodeString(const UnicodeString &s) {
  599|  1.14k|        if (s.length() == 1) {
  ------------------
  |  Branch (599:13): [True: 768, False: 379]
  ------------------
  600|    768|            if (s[0] == LOW_H) { return ALLOWED_HOUR_FORMAT_h; }
  ------------------
  |  |   76|    768|#define LOW_H             ((char16_t)0x0068)
  ------------------
  |  Branch (600:17): [True: 332, False: 436]
  ------------------
  601|    436|            if (s[0] == CAP_H) { return ALLOWED_HOUR_FORMAT_H; }
  ------------------
  |  |   53|    436|#define CAP_H             ((char16_t)0x0048)
  ------------------
  |  Branch (601:17): [True: 435, False: 1]
  ------------------
  602|      1|            if (s[0] == CAP_K) { return ALLOWED_HOUR_FORMAT_K; }
  ------------------
  |  |   55|      1|#define CAP_K             ((char16_t)0x004B)
  ------------------
  |  Branch (602:17): [True: 1, False: 0]
  ------------------
  603|      0|            if (s[0] == LOW_K) { return ALLOWED_HOUR_FORMAT_k; }
  ------------------
  |  |   79|      0|#define LOW_K             ((char16_t)0x006B)
  ------------------
  |  Branch (603:17): [True: 0, False: 0]
  ------------------
  604|    379|        } else if (s.length() == 2) {
  ------------------
  |  Branch (604:20): [True: 379, False: 0]
  ------------------
  605|    379|            if (s[0] == LOW_H && s[1] == LOW_B) { return ALLOWED_HOUR_FORMAT_hb; }
  ------------------
  |  |   76|    758|#define LOW_H             ((char16_t)0x0068)
  ------------------
                          if (s[0] == LOW_H && s[1] == LOW_B) { return ALLOWED_HOUR_FORMAT_hb; }
  ------------------
  |  |   70|    379|#define LOW_B             ((char16_t)0x0062)
  ------------------
  |  Branch (605:17): [True: 379, False: 0]
  |  Branch (605:34): [True: 149, False: 230]
  ------------------
  606|    230|            if (s[0] == LOW_H && s[1] == CAP_B) { return ALLOWED_HOUR_FORMAT_hB; }
  ------------------
  |  |   76|    460|#define LOW_H             ((char16_t)0x0068)
  ------------------
                          if (s[0] == LOW_H && s[1] == CAP_B) { return ALLOWED_HOUR_FORMAT_hB; }
  ------------------
  |  |   47|    230|#define CAP_B             ((char16_t)0x0042)
  ------------------
  |  Branch (606:17): [True: 230, False: 0]
  |  Branch (606:34): [True: 230, False: 0]
  ------------------
  607|      0|            if (s[0] == CAP_K && s[1] == LOW_B) { return ALLOWED_HOUR_FORMAT_Kb; }
  ------------------
  |  |   55|      0|#define CAP_K             ((char16_t)0x004B)
  ------------------
                          if (s[0] == CAP_K && s[1] == LOW_B) { return ALLOWED_HOUR_FORMAT_Kb; }
  ------------------
  |  |   70|      0|#define LOW_B             ((char16_t)0x0062)
  ------------------
  |  Branch (607:17): [True: 0, False: 0]
  |  Branch (607:34): [True: 0, False: 0]
  ------------------
  608|      0|            if (s[0] == CAP_K && s[1] == CAP_B) { return ALLOWED_HOUR_FORMAT_KB; }
  ------------------
  |  |   55|      0|#define CAP_K             ((char16_t)0x004B)
  ------------------
                          if (s[0] == CAP_K && s[1] == CAP_B) { return ALLOWED_HOUR_FORMAT_KB; }
  ------------------
  |  |   47|      0|#define CAP_B             ((char16_t)0x0042)
  ------------------
  |  Branch (608:17): [True: 0, False: 0]
  |  Branch (608:34): [True: 0, False: 0]
  ------------------
  609|      0|            if (s[0] == CAP_H && s[1] == LOW_B) { return ALLOWED_HOUR_FORMAT_Hb; }
  ------------------
  |  |   53|      0|#define CAP_H             ((char16_t)0x0048)
  ------------------
                          if (s[0] == CAP_H && s[1] == LOW_B) { return ALLOWED_HOUR_FORMAT_Hb; }
  ------------------
  |  |   70|      0|#define LOW_B             ((char16_t)0x0062)
  ------------------
  |  Branch (609:17): [True: 0, False: 0]
  |  Branch (609:34): [True: 0, False: 0]
  ------------------
  610|      0|            if (s[0] == CAP_H && s[1] == CAP_B) { return ALLOWED_HOUR_FORMAT_HB; }
  ------------------
  |  |   53|      0|#define CAP_H             ((char16_t)0x0048)
  ------------------
                          if (s[0] == CAP_H && s[1] == CAP_B) { return ALLOWED_HOUR_FORMAT_HB; }
  ------------------
  |  |   47|      0|#define CAP_B             ((char16_t)0x0042)
  ------------------
  |  Branch (610:17): [True: 0, False: 0]
  |  Branch (610:34): [True: 0, False: 0]
  ------------------
  611|      0|        }
  612|       |
  613|      0|        return ALLOWED_HOUR_FORMAT_UNKNOWN;
  614|  1.14k|    }
dtptngen.cpp:_ZN6icu_78L32getAllowedHourFormatsLangCountryEPKcS1_R10UErrorCode:
  643|  13.5k|static int32_t* getAllowedHourFormatsLangCountry(const char* language, const char* country, UErrorCode& status) {
  644|  13.5k|    CharString langCountry;
  645|  13.5k|    langCountry.append(language, status);
  646|  13.5k|    langCountry.append('_', status);
  647|  13.5k|    langCountry.append(country, status);
  648|       |
  649|  13.5k|    int32_t* allowedFormats;
  650|  13.5k|    allowedFormats = static_cast<int32_t*>(uhash_get(localeToAllowedHourFormatsMap, langCountry.data()));
  ------------------
  |  | 1007|  13.5k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  13.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  651|  13.5k|    if (allowedFormats == nullptr) {
  ------------------
  |  Branch (651:9): [True: 13.1k, False: 390]
  ------------------
  652|  13.1k|        allowedFormats = static_cast<int32_t*>(uhash_get(localeToAllowedHourFormatsMap, const_cast<char*>(country)));
  ------------------
  |  | 1007|  13.1k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  13.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  653|  13.1k|    }
  654|       |
  655|  13.5k|    return allowedFormats;
  656|  13.5k|}
_ZN6icu_7824DateTimePatternGenerator21AppendItemFormatsSinkC2ERS0_:
  959|  13.4k|    AppendItemFormatsSink(DateTimePatternGenerator& _dtpg) : dtpg(_dtpg) {}
_ZN6icu_7824DateTimePatternGenerator21AppendItemFormatsSink13fillInMissingEv:
  972|  13.4k|    void fillInMissing() {
  973|  13.4k|        UnicodeString defaultItemFormat(true, UDATPG_ItemFormat, UPRV_LENGTHOF(UDATPG_ItemFormat)-1);  // Read-only alias.
  ------------------
  |  |   99|  13.4k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  974|   228k|        for (int32_t i = 0; i < UDATPG_FIELD_COUNT; i++) {
  ------------------
  |  Branch (974:29): [True: 215k, False: 13.4k]
  ------------------
  975|   215k|            UDateTimePatternField field = static_cast<UDateTimePatternField>(i);
  976|   215k|            if (dtpg.getAppendItemFormat(field).isEmpty()) {
  ------------------
  |  Branch (976:17): [True: 67.3k, False: 148k]
  ------------------
  977|  67.3k|                dtpg.setAppendItemFormat(field, defaultItemFormat);
  978|  67.3k|            }
  979|   215k|        }
  980|  13.4k|    }
_ZN6icu_7824DateTimePatternGenerator19AppendItemNamesSinkC2ERS0_:
  988|  13.4k|    AppendItemNamesSink(DateTimePatternGenerator& _dtpg) : dtpg(_dtpg) {}
_ZN6icu_7824DateTimePatternGenerator19AppendItemNamesSink13fillInMissingEv:
 1005|  13.4k|    void fillInMissing() {
 1006|   228k|        for (int32_t i = 0; i < UDATPG_FIELD_COUNT; i++) {
  ------------------
  |  Branch (1006:29): [True: 215k, False: 13.4k]
  ------------------
 1007|   215k|            UnicodeString& valueStr = dtpg.getMutableFieldDisplayName(static_cast<UDateTimePatternField>(i), UDATPG_WIDE);
 1008|   215k|            if (valueStr.isEmpty()) {
  ------------------
  |  Branch (1008:17): [True: 13.4k, False: 201k]
  ------------------
 1009|  13.4k|                valueStr = CAP_F;
  ------------------
  |  |   51|  13.4k|#define CAP_F             ((char16_t)0x0046)
  ------------------
 1010|  13.4k|                U_ASSERT(i < 20);
  ------------------
  |  |   35|  13.4k|#   define U_ASSERT(exp) (void)0
  ------------------
 1011|  13.4k|                if (i < 10) {
  ------------------
  |  Branch (1011:21): [True: 0, False: 13.4k]
  ------------------
 1012|       |                    // F0, F1, ..., F9
 1013|      0|                    valueStr += static_cast<char16_t>(i + 0x30);
 1014|  13.4k|                } else {
 1015|       |                    // F10, F11, ...
 1016|  13.4k|                    valueStr += static_cast<char16_t>(0x31);
 1017|  13.4k|                    valueStr += static_cast<char16_t>(i - 10 + 0x30);
 1018|  13.4k|                }
 1019|       |                // NUL-terminate for the C API.
 1020|  13.4k|                valueStr.getTerminatedBuffer();
 1021|  13.4k|            }
 1022|   646k|            for (int32_t j = 1; j < UDATPG_WIDTH_COUNT; j++) {
  ------------------
  |  Branch (1022:33): [True: 430k, False: 215k]
  ------------------
 1023|   430k|                UnicodeString& valueStr2 = dtpg.getMutableFieldDisplayName(static_cast<UDateTimePatternField>(i), static_cast<UDateTimePGDisplayWidth>(j));
 1024|   430k|                if (valueStr2.isEmpty()) {
  ------------------
  |  Branch (1024:21): [True: 26.9k, False: 403k]
  ------------------
 1025|  26.9k|                    valueStr2 = dtpg.getFieldDisplayName(static_cast<UDateTimePatternField>(i), static_cast<UDateTimePGDisplayWidth>(j - 1));
 1026|  26.9k|                }
 1027|   430k|            }
 1028|   215k|        }
 1029|  13.4k|    }
_ZN6icu_7824DateTimePatternGenerator20AvailableFormatsSinkC2ERS0_:
 1040|  13.4k|    AvailableFormatsSink(DateTimePatternGenerator& _dtpg) : dtpg(_dtpg) {}
_ZN6icu_7824DateTimePatternGenerator21AppendItemFormatsSink3putEPKcRNS_13ResourceValueEaR10UErrorCode:
  963|   231k|            UErrorCode &errorCode) override {
  964|   231k|        UDateTimePatternField field = dtpg.getAppendFormatNumber(key);
  965|   231k|        if (field == UDATPG_FIELD_COUNT) { return; }
  ------------------
  |  Branch (965:13): [True: 0, False: 231k]
  ------------------
  966|   231k|        const UnicodeString& valueStr = value.getUnicodeString(errorCode);
  967|   231k|        if (dtpg.getAppendItemFormat(field).isEmpty() && !valueStr.isEmpty()) {
  ------------------
  |  Branch (967:13): [True: 148k, False: 83.9k]
  |  Branch (967:58): [True: 148k, False: 0]
  ------------------
  968|   148k|            dtpg.setAppendItemFormat(field, valueStr);
  969|   148k|        }
  970|   231k|    }
_ZN6icu_7824DateTimePatternGenerator19AppendItemNamesSink3putEPKcRNS_13ResourceValueEaR10UErrorCode:
  992|  2.39M|            UErrorCode &errorCode) override {
  993|  2.39M|        UDateTimePGDisplayWidth width;
  994|  2.39M|        UDateTimePatternField field = dtpg.getFieldAndWidthIndices(key, &width);
  995|  2.39M|        if (field == UDATPG_FIELD_COUNT) { return; }
  ------------------
  |  Branch (995:13): [True: 748k, False: 1.64M]
  ------------------
  996|  1.64M|        ResourceTable detailsTable = value.getTable(errorCode);
  997|  1.64M|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (997:13): [True: 0, False: 1.64M]
  ------------------
  998|  1.64M|        if (!detailsTable.findValue("dn", value)) { return; }
  ------------------
  |  Branch (998:13): [True: 28.2k, False: 1.61M]
  ------------------
  999|  1.61M|        const UnicodeString& valueStr = value.getUnicodeString(errorCode);
 1000|  1.61M|        if (U_SUCCESS(errorCode) && dtpg.getFieldDisplayName(field,width).isEmpty() && !valueStr.isEmpty()) {
  ------------------
  |  Branch (1000:13): [True: 1.61M, False: 0]
  |  Branch (1000:13): [True: 605k, False: 1.01M]
  |  Branch (1000:37): [True: 605k, False: 1.01M]
  |  Branch (1000:88): [True: 605k, False: 0]
  ------------------
 1001|   605k|            dtpg.setFieldDisplayName(field,width,valueStr);
 1002|   605k|        }
 1003|  1.61M|    }
_ZN6icu_7824DateTimePatternGenerator20AvailableFormatsSink3putEPKcRNS_13ResourceValueEaR10UErrorCode:
 1044|  1.15M|            UErrorCode &errorCode) override {
 1045|  1.15M|        const UnicodeString formatKey(key, -1, US_INV);
  ------------------
  |  |   98|  1.15M|#define US_INV icu::UnicodeString::kInvariant
  ------------------
 1046|  1.15M|        if (!dtpg.isAvailableFormatSet(formatKey) ) {
  ------------------
  |  Branch (1046:13): [True: 642k, False: 508k]
  ------------------
 1047|   642k|            dtpg.setAvailableFormat(formatKey, errorCode);
 1048|       |            // Add pattern with its associated skeleton. Override any duplicate
 1049|       |            // derived from std patterns, but not a previous availableFormats entry:
 1050|   642k|            const UnicodeString& formatValue = value.getUnicodeString(errorCode);
 1051|   642k|            conflictingPattern.remove();
 1052|   642k|            dtpg.addPatternWithSkeleton(formatValue, &formatKey, true, conflictingPattern, errorCode);
 1053|   642k|        }
 1054|  1.15M|    }

_ZN6icu_7812DistanceInfoC2Ev:
  218|  47.6k|    DistanceInfo() {}
_ZN6icu_7812FormatParser17getCanonicalIndexERKNS_13UnicodeStringE:
  198|  2.80M|    static int32_t getCanonicalIndex(const UnicodeString& s) { return getCanonicalIndex(s, true); }
_ZNK6icu_7814SkeletonFieldseqERKS0_:
  145|  3.20M|inline bool SkeletonFields::operator==(const SkeletonFields& other) const {
  146|  3.20M|    return (uprv_memcmp(chars, other.chars, sizeof(chars)) == 0
  ------------------
  |  |  101|  3.20M|#define uprv_memcmp(buffer1, buffer2, size) U_STANDARD_CPP_NAMESPACE memcmp(buffer1, buffer2,size)
  |  |  ------------------
  |  |  |  |  393|  3.20M|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (146:13): [True: 517k, False: 2.68M]
  ------------------
  147|  3.20M|        && uprv_memcmp(lengths, other.lengths, sizeof(lengths)) == 0);
  ------------------
  |  |  101|   517k|#define uprv_memcmp(buffer1, buffer2, size) U_STANDARD_CPP_NAMESPACE memcmp(buffer1, buffer2,size)
  |  |  ------------------
  |  |  |  |  393|   517k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (147:12): [True: 216k, False: 301k]
  ------------------
  148|  3.20M|}
_ZN6icu_7812DistanceInfo5clearEv:
  220|  2.09M|    void clear() { missingFieldMask = extraFieldMask = 0; }
_ZN6icu_7812DistanceInfo8addExtraEi:
  223|  4.18M|    void addExtra(int32_t field) { extraFieldMask |= (1<<field); }
_ZN6icu_7812DistanceInfo10addMissingEi:
  222|  4.35M|    void addMissing(int32_t field) { missingFieldMask |= (1<<field); }

_ZN6icu_7816EthiopicCalendarC2ERKNS_6LocaleER10UErrorCode:
   35|      6|:   CECalendar(aLocale, success)
   36|      6|{
   37|      6|}
_ZN6icu_7816EthiopicCalendarD2Ev:
   40|     39|{
   41|     39|}
_ZNK6icu_7816EthiopicCalendar5cloneEv:
   45|     33|{
   46|     33|    return new EthiopicCalendar(*this);
   47|     33|}
_ZNK6icu_7816EthiopicCalendar7getTypeEv:
   51|     23|{
   52|     23|    return "ethiopic";
   53|     23|}
_ZN6icu_7816EthiopicCalendar21handleGetExtendedYearER10UErrorCode:
   61|      2|{
   62|      2|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (62:9): [True: 0, False: 2]
  ------------------
   63|      0|        return 0;
   64|      0|    }
   65|       |    // Ethiopic calendar uses EXTENDED_YEAR aligned to
   66|       |    // Amelete Hihret year always.
   67|      2|    if (newerField(UCAL_EXTENDED_YEAR, UCAL_YEAR) == UCAL_EXTENDED_YEAR) {
  ------------------
  |  Branch (67:9): [True: 0, False: 2]
  ------------------
   68|      0|        return internalGet(UCAL_EXTENDED_YEAR, 1); // Default to year 1
   69|      0|    }
   70|       |    // The year defaults to the epoch start, the era to AMETE_MIHRET
   71|      2|    if (internalGet(UCAL_ERA, AMETE_MIHRET) == AMETE_MIHRET) {
  ------------------
  |  Branch (71:9): [True: 2, False: 0]
  ------------------
   72|      2|        return internalGet(UCAL_YEAR, 1); // Default to year 1
   73|      2|    }
   74|      0|    int32_t year = internalGet(UCAL_YEAR, 1);
   75|      0|    if (uprv_add32_overflow(year, -AMETE_MIHRET_DELTA, &year)) {
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (75:9): [True: 0, False: 0]
  ------------------
   76|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
   77|      0|        return 0;
   78|      0|    }
   79|      0|    return year;
   80|      0|}
_ZNK6icu_7816EthiopicCalendar16getJDEpochOffsetEv:
   86|     16|{
   87|     16|    return JD_EPOCH_OFFSET_AMETE_MIHRET;
   88|     16|}
_ZNK6icu_7816EthiopicCalendar17extendedYearToEraEi:
   90|      4|int32_t EthiopicCalendar::extendedYearToEra(int32_t extendedYear) const {
   91|      4|    return extendedYear <= 0 ? AMETE_ALEM : AMETE_MIHRET;
  ------------------
  |  Branch (91:12): [True: 0, False: 4]
  ------------------
   92|      4|}
_ZNK6icu_7816EthiopicCalendar18extendedYearToYearEi:
   94|      4|int32_t EthiopicCalendar::extendedYearToYear(int32_t extendedYear) const {
   95|      4|    return extendedYear <= 0 ? extendedYear + AMETE_MIHRET_DELTA : extendedYear;
  ------------------
  |  Branch (95:12): [True: 0, False: 4]
  ------------------
   96|      4|}

_ZN6icu_7816EthiopicCalendarC2ERKS0_:
  122|     33|    EthiopicCalendar(const EthiopicCalendar& other) = default;

_ZN6icu_7813FieldPositionD2Ev:
   63|  31.7k|FieldPosition::~FieldPosition() {}
_ZN6icu_786FormatC2Ev:
   74|   148k|    : UObject()
   75|   148k|{
   76|   148k|}
_ZN6icu_786FormatD2Ev:
   81|   207k|{
   82|   207k|    delete actualLocale;
   83|   207k|    delete validLocale;
   84|   207k|}
_ZN6icu_786FormatC2ERKS0_:
   90|  59.2k|    : UObject(that)
   91|  59.2k|{
   92|  59.2k|    *this = that;
   93|  59.2k|}
_ZN6icu_786FormataSERKS0_:
  100|   120k|{
  101|   120k|    if (this != &that) {
  ------------------
  |  Branch (101:9): [True: 120k, False: 0]
  ------------------
  102|   120k|        UErrorCode status = U_ZERO_ERROR;
  103|   120k|        U_LOCALE_BASED(locBased, *this);
  ------------------
  |  |   25|   120k|  LocaleBased varname((objname).validLocale, (objname).actualLocale)
  ------------------
  104|   120k|        locBased.setLocaleIDs(that.validLocale, that.actualLocale, status);
  105|   120k|        U_ASSERT(U_SUCCESS(status));
  ------------------
  |  |   35|   120k|#   define U_ASSERT(exp) (void)0
  ------------------
  106|   120k|    }
  107|   120k|    return *this;
  108|   120k|}
_ZNK6icu_786Format9getLocaleE18ULocDataLocaleTypeR10UErrorCode:
  202|  11.1k|Format::getLocale(ULocDataLocaleType type, UErrorCode& status) const {
  203|  11.1k|    return LocaleBased::getLocale(validLocale, actualLocale, type, status);
  204|  11.1k|}
_ZN6icu_786Format12setLocaleIDsEPKcS2_:
  212|  44.8k|Format::setLocaleIDs(const char* valid, const char* actual) {
  213|  44.8k|    U_LOCALE_BASED(locBased, *this);
  ------------------
  |  |   25|  44.8k|  LocaleBased varname((objname).validLocale, (objname).actualLocale)
  ------------------
  214|  44.8k|    UErrorCode status = U_ZERO_ERROR;
  215|  44.8k|    locBased.setLocaleIDs(valid, actual, status);
  216|  44.8k|    U_ASSERT(U_SUCCESS(status));
  ------------------
  |  |   35|  44.8k|#   define U_ASSERT(exp) (void)0
  ------------------
  217|  44.8k|}

_ZN6icu_7822FormattedStringBuilderC2Ev:
   37|   556k|FormattedStringBuilder::FormattedStringBuilder() {
   38|       |#if U_DEBUG
   39|       |    // Initializing the memory to non-zero helps catch some bugs that involve
   40|       |    // reading from an improperly terminated string.
   41|       |    for (int32_t i=0; i<getCapacity(); i++) {
   42|       |        getCharPtr()[i] = 1;
   43|       |    }
   44|       |#endif
   45|   556k|}
_ZN6icu_7822FormattedStringBuilderD2Ev:
   47|  1.01M|FormattedStringBuilder::~FormattedStringBuilder() {
   48|  1.01M|    if (fUsingHeap) {
  ------------------
  |  Branch (48:9): [True: 0, False: 1.01M]
  ------------------
   49|      0|        uprv_free(fChars.heap.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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   50|      0|        uprv_free(fFields.heap.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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   51|      0|    }
   52|  1.01M|}
_ZN6icu_7822FormattedStringBuilderC2ERKS0_:
   54|   456k|FormattedStringBuilder::FormattedStringBuilder(const FormattedStringBuilder &other) {
   55|   456k|    *this = other;
   56|   456k|}
_ZN6icu_7822FormattedStringBuilderaSERKS0_:
   58|   456k|FormattedStringBuilder &FormattedStringBuilder::operator=(const FormattedStringBuilder &other) {
   59|       |    // Check for self-assignment
   60|   456k|    if (this == &other) {
  ------------------
  |  Branch (60:9): [True: 0, False: 456k]
  ------------------
   61|      0|        return *this;
   62|      0|    }
   63|       |
   64|       |    // Continue with deallocation and copying
   65|   456k|    if (fUsingHeap) {
  ------------------
  |  Branch (65:9): [True: 0, False: 456k]
  ------------------
   66|      0|        uprv_free(fChars.heap.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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   67|      0|        uprv_free(fFields.heap.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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   68|      0|        fUsingHeap = false;
   69|      0|    }
   70|       |
   71|   456k|    int32_t capacity = other.getCapacity();
   72|   456k|    if (capacity > DEFAULT_CAPACITY) {
  ------------------
  |  Branch (72:9): [True: 0, False: 456k]
  ------------------
   73|       |        // FIXME: uprv_malloc
   74|       |        // C++ note: malloc appears in two places: here and in prepareForInsertHelper.
   75|      0|        auto* newChars = static_cast<char16_t*>(uprv_malloc(sizeof(char16_t) * capacity));
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   76|      0|        auto* newFields = static_cast<Field*>(uprv_malloc(sizeof(Field) * capacity));
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   77|      0|        if (newChars == nullptr || newFields == nullptr) {
  ------------------
  |  Branch (77:13): [True: 0, False: 0]
  |  Branch (77:36): [True: 0, False: 0]
  ------------------
   78|       |            // UErrorCode is not available; fail silently.
   79|      0|            uprv_free(newChars);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   80|      0|            uprv_free(newFields);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   81|      0|            *this = FormattedStringBuilder();  // can't fail
   82|      0|            return *this;
   83|      0|        }
   84|       |
   85|      0|        fUsingHeap = true;
   86|      0|        fChars.heap.capacity = capacity;
   87|      0|        fChars.heap.ptr = newChars;
   88|      0|        fFields.heap.capacity = capacity;
   89|      0|        fFields.heap.ptr = newFields;
   90|      0|    }
   91|       |
   92|   456k|    uprv_memcpy2(getCharPtr(), other.getCharPtr(), sizeof(char16_t) * capacity);
   93|   456k|    uprv_memcpy2(getFieldPtr(), other.getFieldPtr(), sizeof(Field) * capacity);
   94|       |
   95|   456k|    fZero = other.fZero;
   96|   456k|    fLength = other.fLength;
   97|   456k|    return *this;
   98|   456k|}
_ZNK6icu_7822FormattedStringBuilder6lengthEv:
  100|   100k|int32_t FormattedStringBuilder::length() const {
  101|   100k|    return fLength;
  102|   100k|}
_ZN6icu_7822FormattedStringBuilder15insertCodePointEiiNS0_5FieldER10UErrorCode:
  150|   380k|FormattedStringBuilder::insertCodePoint(int32_t index, UChar32 codePoint, Field field, UErrorCode &status) {
  151|   380k|    int32_t count = U16_LENGTH(codePoint);
  ------------------
  |  |  141|   380k|#define U16_LENGTH(c) ((uint32_t)(c)<=0xffff ? 1 : 2)
  |  |  ------------------
  |  |  |  Branch (141:24): [True: 375k, False: 4.58k]
  |  |  ------------------
  ------------------
  152|   380k|    int32_t position = prepareForInsert(index, count, status);
  153|   380k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (153:9): [True: 0, False: 380k]
  ------------------
  154|      0|        return count;
  155|      0|    }
  156|   380k|    auto* charPtr = getCharPtr();
  157|   380k|    auto* fieldPtr = getFieldPtr();
  158|   380k|    if (count == 1) {
  ------------------
  |  Branch (158:9): [True: 375k, False: 4.58k]
  ------------------
  159|   375k|        charPtr[position] = static_cast<char16_t>(codePoint);
  160|   375k|        fieldPtr[position] = field;
  161|   375k|    } else {
  162|  4.58k|        charPtr[position] = U16_LEAD(codePoint);
  ------------------
  |  |  123|  4.58k|#define U16_LEAD(supplementary) (UChar)(((supplementary)>>10)+0xd7c0)
  ------------------
  163|  4.58k|        charPtr[position + 1] = U16_TRAIL(codePoint);
  ------------------
  |  |  132|  4.58k|#define U16_TRAIL(supplementary) (UChar)(((supplementary)&0x3ff)|0xdc00)
  ------------------
  164|  4.58k|        fieldPtr[position] = fieldPtr[position + 1] = field;
  165|  4.58k|    }
  166|   380k|    return count;
  167|   380k|}
_ZN6icu_7822FormattedStringBuilder6insertEiRKNS_13UnicodeStringENS0_5FieldER10UErrorCode:
  170|   114k|                                    UErrorCode &status) {
  171|   114k|    if (unistr.length() == 0) {
  ------------------
  |  Branch (171:9): [True: 0, False: 114k]
  ------------------
  172|       |        // Nothing to insert.
  173|      0|        return 0;
  174|   114k|    } else if (unistr.length() == 1) {
  ------------------
  |  Branch (174:16): [True: 107k, False: 6.59k]
  ------------------
  175|       |        // Fast path: insert using insertCodePoint.
  176|   107k|        return insertCodePoint(index, unistr.charAt(0), field, status);
  177|   107k|    } else {
  178|  6.59k|        return insert(index, unistr, 0, unistr.length(), field, status);
  179|  6.59k|    }
  180|   114k|}
_ZN6icu_7822FormattedStringBuilder6insertEiRKNS_13UnicodeStringEiiNS0_5FieldER10UErrorCode:
  184|  6.59k|                            Field field, UErrorCode &status) {
  185|  6.59k|    int32_t count = end - start;
  186|  6.59k|    int32_t position = prepareForInsert(index, count, status);
  187|  6.59k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (187:9): [True: 0, False: 6.59k]
  ------------------
  188|      0|        return count;
  189|      0|    }
  190|  21.4k|    for (int32_t i = 0; i < count; i++) {
  ------------------
  |  Branch (190:25): [True: 14.8k, False: 6.59k]
  ------------------
  191|  14.8k|        getCharPtr()[position + i] = unistr.charAt(start + i);
  192|  14.8k|        getFieldPtr()[position + i] = field;
  193|  14.8k|    }
  194|  6.59k|    return count;
  195|  6.59k|}
_ZN6icu_7822FormattedStringBuilder6insertEiRKS0_R10UErrorCode:
  229|   201k|FormattedStringBuilder::insert(int32_t index, const FormattedStringBuilder &other, UErrorCode &status) {
  230|   201k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (230:9): [True: 0, False: 201k]
  ------------------
  231|      0|        return 0;
  232|      0|    }
  233|   201k|    if (this == &other) {
  ------------------
  |  Branch (233:9): [True: 0, False: 201k]
  ------------------
  234|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  235|      0|        return 0;
  236|      0|    }
  237|   201k|    int32_t count = other.fLength;
  238|   201k|    if (count == 0) {
  ------------------
  |  Branch (238:9): [True: 201k, False: 281]
  ------------------
  239|       |        // Nothing to insert.
  240|   201k|        return 0;
  241|   201k|    }
  242|    281|    int32_t position = prepareForInsert(index, count, status);
  243|    281|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (243:9): [True: 0, False: 281]
  ------------------
  244|      0|        return count;
  245|      0|    }
  246|    785|    for (int32_t i = 0; i < count; i++) {
  ------------------
  |  Branch (246:25): [True: 504, False: 281]
  ------------------
  247|    504|        getCharPtr()[position + i] = other.charAt(i);
  248|    504|        getFieldPtr()[position + i] = other.fieldAt(i);
  249|    504|    }
  250|    281|    return count;
  251|    281|}
_ZN6icu_7822FormattedStringBuilder15writeTerminatorER10UErrorCode:
  253|   100k|void FormattedStringBuilder::writeTerminator(UErrorCode& status) {
  254|   100k|    int32_t position = prepareForInsert(fLength, 1, status);
  255|   100k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (255:9): [True: 0, False: 100k]
  ------------------
  256|      0|        return;
  257|      0|    }
  258|   100k|    getCharPtr()[position] = 0;
  259|   100k|    getFieldPtr()[position] = kUndefinedField;
  260|   100k|    fLength--;
  261|   100k|}
_ZN6icu_7822FormattedStringBuilder16prepareForInsertEiiR10UErrorCode:
  263|   487k|int32_t FormattedStringBuilder::prepareForInsert(int32_t index, int32_t count, UErrorCode &status) {
  264|   487k|    U_ASSERT(index >= 0);
  ------------------
  |  |   35|   487k|#   define U_ASSERT(exp) (void)0
  ------------------
  265|   487k|    U_ASSERT(index <= fLength);
  ------------------
  |  |   35|   487k|#   define U_ASSERT(exp) (void)0
  ------------------
  266|   487k|    U_ASSERT(count >= 0);
  ------------------
  |  |   35|   487k|#   define U_ASSERT(exp) (void)0
  ------------------
  267|   487k|    U_ASSERT(fZero >= 0);
  ------------------
  |  |   35|   487k|#   define U_ASSERT(exp) (void)0
  ------------------
  268|   487k|    U_ASSERT(fLength >= 0);
  ------------------
  |  |   35|   487k|#   define U_ASSERT(exp) (void)0
  ------------------
  269|   487k|    U_ASSERT(getCapacity() - fZero >= fLength);
  ------------------
  |  |   35|   487k|#   define U_ASSERT(exp) (void)0
  ------------------
  270|   487k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (270:9): [True: 0, False: 487k]
  ------------------
  271|      0|        return count;
  272|      0|    }
  273|   487k|    if (index == 0 && fZero - count >= 0) {
  ------------------
  |  Branch (273:9): [True: 387k, False: 100k]
  |  Branch (273:23): [True: 387k, False: 3]
  ------------------
  274|       |        // Append to start
  275|   387k|        fZero -= count;
  276|   387k|        fLength += count;
  277|   387k|        return fZero;
  278|   387k|    } else if (index == fLength && count <= getCapacity() - fZero - fLength) {
  ------------------
  |  Branch (278:16): [True: 100k, False: 3]
  |  Branch (278:36): [True: 100k, False: 0]
  ------------------
  279|       |        // Append to end
  280|   100k|        fLength += count;
  281|   100k|        return fZero + fLength - count;
  282|   100k|    } else {
  283|       |        // Move chars around and/or allocate more space
  284|      3|        return prepareForInsertHelper(index, count, status);
  285|      3|    }
  286|   487k|}
_ZN6icu_7822FormattedStringBuilder22prepareForInsertHelperEiiR10UErrorCode:
  288|      3|int32_t FormattedStringBuilder::prepareForInsertHelper(int32_t index, int32_t count, UErrorCode &status) {
  289|      3|    int32_t oldCapacity = getCapacity();
  290|      3|    int32_t oldZero = fZero;
  291|      3|    char16_t *oldChars = getCharPtr();
  292|      3|    Field *oldFields = getFieldPtr();
  293|      3|    int32_t newLength;
  294|      3|    if (uprv_add32_overflow(fLength, count, &newLength)) {
  ------------------
  |  | 1394|      3|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (294:9): [True: 0, False: 3]
  ------------------
  295|      0|        status = U_INPUT_TOO_LONG_ERROR;
  296|      0|        return -1;
  297|      0|    }
  298|      3|    int32_t newZero;
  299|      3|    if (newLength > oldCapacity) {
  ------------------
  |  Branch (299:9): [True: 0, False: 3]
  ------------------
  300|      0|        if (newLength > INT32_MAX / 2) {
  ------------------
  |  Branch (300:13): [True: 0, False: 0]
  ------------------
  301|       |            // We do not support more than 1G char16_t in this code because
  302|       |            // dealing with >2G *bytes* can cause subtle bugs.
  303|      0|            status = U_INPUT_TOO_LONG_ERROR;
  304|      0|            return -1;
  305|      0|        }
  306|       |        // Keep newCapacity also to at most 1G char16_t.
  307|      0|        int32_t newCapacity = newLength * 2;
  308|      0|        newZero = (newCapacity - newLength) / 2;
  309|       |
  310|       |        // C++ note: malloc appears in two places: here and in the assignment operator.
  311|      0|        auto* newChars =
  312|      0|            static_cast<char16_t*>(uprv_malloc(sizeof(char16_t) * static_cast<size_t>(newCapacity)));
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  313|      0|        auto* newFields =
  314|      0|            static_cast<Field*>(uprv_malloc(sizeof(Field) * static_cast<size_t>(newCapacity)));
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  315|      0|        if (newChars == nullptr || newFields == nullptr) {
  ------------------
  |  Branch (315:13): [True: 0, False: 0]
  |  Branch (315:36): [True: 0, False: 0]
  ------------------
  316|      0|            uprv_free(newChars);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  317|      0|            uprv_free(newFields);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  318|      0|            status = U_MEMORY_ALLOCATION_ERROR;
  319|      0|            return -1;
  320|      0|        }
  321|       |
  322|       |        // First copy the prefix and then the suffix, leaving room for the new chars that the
  323|       |        // caller wants to insert.
  324|       |        // C++ note: memcpy is OK because the src and dest do not overlap.
  325|      0|        uprv_memcpy2(newChars + newZero, oldChars + oldZero, sizeof(char16_t) * index);
  326|      0|        uprv_memcpy2(newChars + newZero + index + count,
  327|      0|                oldChars + oldZero + index,
  328|      0|                sizeof(char16_t) * (fLength - index));
  329|      0|        uprv_memcpy2(newFields + newZero, oldFields + oldZero, sizeof(Field) * index);
  330|      0|        uprv_memcpy2(newFields + newZero + index + count,
  331|      0|                oldFields + oldZero + index,
  332|      0|                sizeof(Field) * (fLength - index));
  333|       |
  334|      0|        if (fUsingHeap) {
  ------------------
  |  Branch (334:13): [True: 0, False: 0]
  ------------------
  335|      0|            uprv_free(oldChars);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  336|      0|            uprv_free(oldFields);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  337|      0|        }
  338|      0|        fUsingHeap = true;
  339|      0|        fChars.heap.ptr = newChars;
  340|      0|        fChars.heap.capacity = newCapacity;
  341|      0|        fFields.heap.ptr = newFields;
  342|      0|        fFields.heap.capacity = newCapacity;
  343|      3|    } else {
  344|      3|        newZero = (oldCapacity - newLength) / 2;
  345|       |
  346|       |        // C++ note: memmove is required because src and dest may overlap.
  347|       |        // First copy the entire string to the location of the prefix, and then move the suffix
  348|       |        // to make room for the new chars that the caller wants to insert.
  349|      3|        uprv_memmove2(oldChars + newZero, oldChars + oldZero, sizeof(char16_t) * fLength);
  350|      3|        uprv_memmove2(oldChars + newZero + index + count,
  351|      3|                oldChars + newZero + index,
  352|      3|                sizeof(char16_t) * (fLength - index));
  353|      3|        uprv_memmove2(oldFields + newZero, oldFields + oldZero, sizeof(Field) * fLength);
  354|      3|        uprv_memmove2(oldFields + newZero + index + count,
  355|      3|                oldFields + newZero + index,
  356|      3|                sizeof(Field) * (fLength - index));
  357|      3|    }
  358|      3|    fZero = newZero;
  359|      3|    fLength = newLength;
  360|      3|    return fZero + index;
  361|      3|}
_ZNK6icu_7822FormattedStringBuilder5charsEv:
  447|   100k|const char16_t *FormattedStringBuilder::chars() const {
  448|   100k|    return getCharPtr() + fZero;
  449|   100k|}
formatted_string_builder.cpp:_ZN12_GLOBAL__N_112uprv_memcpy2EPvPKvm:
   18|   912k|inline void uprv_memcpy2(void* dest, const void* src, size_t len) {
   19|   912k|    if (len > 0) {
  ------------------
  |  Branch (19:9): [True: 912k, False: 0]
  ------------------
   20|   912k|        uprv_memcpy(dest, src, len);
  ------------------
  |  |   42|   912k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   912k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|   912k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|   912k|    _Pragma("clang diagnostic push") \
  |  |   45|   912k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|   912k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|   912k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|   912k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|   912k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|   912k|    _Pragma("clang diagnostic pop") \
  |  |   49|   912k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|   912k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|   912k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   912k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   21|   912k|    }
   22|   912k|}
formatted_string_builder.cpp:_ZN12_GLOBAL__N_113uprv_memmove2EPvPKvm:
   26|     12|inline void uprv_memmove2(void* dest, const void* src, size_t len) {
   27|     12|    if (len > 0) {
  ------------------
  |  Branch (27:9): [True: 12, False: 0]
  ------------------
   28|     12|        uprv_memmove(dest, src, len);
  ------------------
  |  |   51|     12|#define uprv_memmove(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|     12|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   52|     12|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   53|     12|    _Pragma("clang diagnostic push") \
  |  |   54|     12|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   55|     12|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|     12|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   56|     12|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|     12|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   57|     12|    _Pragma("clang diagnostic pop") \
  |  |   58|     12|    U_STANDARD_CPP_NAMESPACE memmove(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|     12|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   59|     12|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|     12|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   29|     12|    }
   30|     12|}

_ZNK6icu_7822FormattedStringBuilder6charAtEi:
   79|    504|    inline char16_t charAt(int32_t index) const {
   80|    504|        U_ASSERT(index >= 0);
  ------------------
  |  |   35|    504|#   define U_ASSERT(exp) (void)0
  ------------------
   81|    504|        U_ASSERT(index < fLength);
  ------------------
  |  |   35|    504|#   define U_ASSERT(exp) (void)0
  ------------------
   82|    504|        return getCharPtr()[fZero + index];
   83|    504|    }
_ZNK6icu_7822FormattedStringBuilder7fieldAtEi:
   85|    504|    inline Field fieldAt(int32_t index) const {
   86|    504|        U_ASSERT(index >= 0);
  ------------------
  |  |   35|    504|#   define U_ASSERT(exp) (void)0
  ------------------
   87|    504|        U_ASSERT(index < fLength);
  ------------------
  |  |   35|    504|#   define U_ASSERT(exp) (void)0
  ------------------
   88|    504|        return getFieldPtr()[fZero + index];
   89|    504|    }
_ZN6icu_7822FormattedStringBuilder10getCharPtrEv:
  191|   952k|    inline char16_t *getCharPtr() {
  192|   952k|        return fUsingHeap ? fChars.heap.ptr : fChars.value;
  ------------------
  |  Branch (192:16): [True: 0, False: 952k]
  ------------------
  193|   952k|    }
_ZNK6icu_7822FormattedStringBuilder10getCharPtrEv:
  195|   557k|    inline const char16_t *getCharPtr() const {
  196|   557k|        return fUsingHeap ? fChars.heap.ptr : fChars.value;
  ------------------
  |  Branch (196:16): [True: 0, False: 557k]
  ------------------
  197|   557k|    }
_ZN6icu_7822FormattedStringBuilder11getFieldPtrEv:
  199|   952k|    inline Field *getFieldPtr() {
  200|   952k|        return fUsingHeap ? fFields.heap.ptr : fFields.value;
  ------------------
  |  Branch (200:16): [True: 0, False: 952k]
  ------------------
  201|   952k|    }
_ZNK6icu_7822FormattedStringBuilder11getFieldPtrEv:
  203|   456k|    inline const Field *getFieldPtr() const {
  204|   456k|        return fUsingHeap ? fFields.heap.ptr : fFields.value;
  ------------------
  |  Branch (204:16): [True: 0, False: 456k]
  ------------------
  205|   456k|    }
_ZNK6icu_7822FormattedStringBuilder11getCapacityEv:
  207|   556k|    inline int32_t getCapacity() const {
  208|   556k|        return fUsingHeap ? fChars.heap.capacity : DEFAULT_CAPACITY;
  ------------------
  |  Branch (208:16): [True: 0, False: 556k]
  ------------------
  209|   556k|    }
_ZN6icu_7822FormattedStringBuilder5FieldC2Ehh:
  227|   386k|    : bits((
  228|   386k|        U_ASSERT(category <= 0xf),
  ------------------
  |  |   35|   386k|#   define U_ASSERT(exp) (void)0
  ------------------
  229|   386k|        U_ASSERT(field <= 0xf),
  ------------------
  |  |   35|   386k|#   define U_ASSERT(exp) (void)0
  ------------------
  230|   386k|        static_cast<uint8_t>((category << 4) | field)
  231|   386k|    )) {}

_ZN6icu_7831FormattedValueStringBuilderImpl12getStringRefEv:
  169|   302k|    inline FormattedStringBuilder& getStringRef() {
  170|   302k|        return fString;
  171|   302k|    }
_ZN6icu_786number15FormattedNumberD2Ev:
  230|   100k|    Name::~Name() { \
  231|   100k|        delete fData; \
  232|   100k|        fData = nullptr; \
  233|   100k|    } \
_ZNK6icu_786number15FormattedNumber8appendToERNS_10AppendableER10UErrorCode:
  250|   100k|    Appendable& Name::appendTo(Appendable& appendable, UErrorCode& status) const { \
  251|   100k|        UPRV_FORMATTED_VALUE_METHOD_GUARD(appendable) \
  ------------------
  |  |  214|   100k|    if (U_FAILURE(status)) { \
  |  |  ------------------
  |  |  |  Branch (214:9): [True: 0, False: 100k]
  |  |  ------------------
  |  |  215|      0|        return returnExpression; \
  |  |  216|      0|    } \
  |  |  217|   100k|    if (fData == nullptr) { \
  |  |  ------------------
  |  |  |  Branch (217:9): [True: 0, False: 100k]
  |  |  ------------------
  |  |  218|      0|        status = fErrorCode; \
  |  |  219|      0|        return returnExpression; \
  |  |  220|      0|    } \
  ------------------
  252|   100k|        return fData->appendTo(appendable, status); \
  253|   100k|    } \

_ZN6icu_7831FormattedValueStringBuilderImplC2ENS_22FormattedStringBuilder5FieldE:
   27|   100k|        : fNumericField(numericField) {
   28|   100k|}
_ZN6icu_7831FormattedValueStringBuilderImplD2Ev:
   30|   100k|FormattedValueStringBuilderImpl::~FormattedValueStringBuilderImpl() {
   31|   100k|}
_ZNK6icu_7831FormattedValueStringBuilderImpl8appendToERNS_10AppendableER10UErrorCode:
   42|   100k|Appendable& FormattedValueStringBuilderImpl::appendTo(Appendable& appendable, UErrorCode&) const {
   43|   100k|    appendable.appendString(fString.chars(), fString.length());
   44|   100k|    return appendable;
   45|   100k|}

_ZN6icu_7814FormattedValueD2Ev:
   68|   201k|FormattedValue::~FormattedValue() = default;

_ZN6icu_7820FieldPositionHandlerD2Ev:
   22|  30.6k|FieldPositionHandler::~FieldPositionHandler() {
   23|  30.6k|}
_ZN6icu_7824FieldPositionOnlyHandlerC2ERNS_13FieldPositionE:
   33|  30.6k|  : pos(_pos) {
   34|  30.6k|}
_ZN6icu_7824FieldPositionOnlyHandler12addAttributeEiii:
   40|   132k|FieldPositionOnlyHandler::addAttribute(int32_t id, int32_t start, int32_t limit) {
   41|   132k|  if (pos.getField() == id && (!acceptFirstOnly || !seenFirst)) {
  ------------------
  |  Branch (41:7): [True: 0, False: 132k]
  |  Branch (41:32): [True: 0, False: 0]
  |  Branch (41:52): [True: 0, False: 0]
  ------------------
   42|      0|    seenFirst = true;
   43|      0|    pos.setBeginIndex(start + fShift);
   44|      0|    pos.setEndIndex(limit + fShift);
   45|      0|  }
   46|   132k|}

_ZN6icu_7817GregorianCalendarC2ERKNS_6LocaleER10UErrorCode:
  182|  9.28k|:   GregorianCalendar(TimeZone::forLocaleOrDefault(aLocale), aLocale, status)
  183|  9.28k|{
  184|  9.28k|}
_ZN6icu_7817GregorianCalendarC2EPNS_8TimeZoneERKNS_6LocaleER10UErrorCode:
  190|  9.28k|                                     :   Calendar(zone, aLocale, status),
  191|  9.28k|                                     fGregorianCutover(kPapalCutover),
  192|  9.28k|                                     fCutoverJulianDay(kCutoverJulianDay), fGregorianCutoverYear(kDefaultCutoverYear),
  193|  9.28k|                                     fIsGregorian(true), fInvertGregorian(false)
  194|  9.28k|{
  195|  9.28k|    setTimeInMillis(getNow(), status);
  196|  9.28k|}
_ZN6icu_7817GregorianCalendarD2Ev:
  248|   121k|{
  249|   121k|}
_ZN6icu_7817GregorianCalendarC2ERKS0_:
  254|   112k|:   Calendar(source),
  255|   112k|fGregorianCutover(source.fGregorianCutover),
  256|   112k|fCutoverJulianDay(source.fCutoverJulianDay), fGregorianCutoverYear(source.fGregorianCutoverYear),
  257|   112k|fIsGregorian(source.fIsGregorian), fInvertGregorian(source.fInvertGregorian)
  258|   112k|{
  259|   112k|}
_ZNK6icu_7817GregorianCalendar5cloneEv:
  264|  82.6k|{
  265|  82.6k|    return new GregorianCalendar(*this);
  266|  82.6k|}
_ZN6icu_7817GregorianCalendar19handleComputeFieldsEiR10UErrorCode:
  341|  28.1k|void GregorianCalendar::handleComputeFields(int32_t julianDay, UErrorCode& status) {
  342|  28.1k|    int32_t eyear, month, dayOfMonth, dayOfYear, unusedRemainder;
  343|       |
  344|  28.1k|    if(U_FAILURE(status)) {
  ------------------
  |  Branch (344:8): [True: 0, False: 28.1k]
  ------------------
  345|      0|        return;
  346|      0|    }
  347|       |
  348|       |#if defined (U_DEBUG_CAL)
  349|       |    fprintf(stderr, "%s:%d: jd%d- (greg's %d)- [cut=%d]\n", 
  350|       |        __FILE__, __LINE__, julianDay, getGregorianDayOfYear(), fCutoverJulianDay);
  351|       |#endif
  352|       |
  353|  28.1k|    if (julianDay >= fCutoverJulianDay) {
  ------------------
  |  Branch (353:9): [True: 26.3k, False: 1.84k]
  ------------------
  354|  26.3k|        month = getGregorianMonth();
  355|  26.3k|        dayOfMonth = getGregorianDayOfMonth();
  356|  26.3k|        dayOfYear = getGregorianDayOfYear();
  357|  26.3k|        eyear = getGregorianYear();
  358|  26.3k|    } else {
  359|       |        // The Julian epoch day (not the same as Julian Day)
  360|       |        // is zero on Saturday December 30, 0 (Gregorian).
  361|  1.84k|        int32_t julianEpochDay = julianDay - (kJan1_1JulianDay - 2);
  ------------------
  |  |  125|  1.84k|#define kJan1_1JulianDay  1721426 // January 1, year 1 (Gregorian)
  ------------------
  362|  1.84k|		eyear = static_cast<int32_t>(ClockMath::floorDivide((4.0 * julianEpochDay) + 1464.0, static_cast<int32_t>(1461), &unusedRemainder));
  363|       |
  364|       |        // Compute the Julian calendar day number for January 1, eyear
  365|  1.84k|        int32_t january1 = 365 * (eyear - 1) + ClockMath::floorDivide(eyear - 1, static_cast<int32_t>(4));
  366|  1.84k|        dayOfYear = (julianEpochDay - january1); // 0-based
  367|       |
  368|       |        // Julian leap years occurred historically every 4 years starting
  369|       |        // with 8 AD.  Before 8 AD the spacing is irregular; every 3 years
  370|       |        // from 45 BC to 9 BC, and then none until 8 AD.  However, we don't
  371|       |        // implement this historical detail; instead, we implement the
  372|       |        // computationally cleaner proleptic calendar, which assumes
  373|       |        // consistent 4-year cycles throughout time.
  374|  1.84k|        UBool isLeap = ((eyear&0x3) == 0); // equiv. to (eyear%4 == 0)
  375|       |
  376|       |        // Common Julian/Gregorian calculation
  377|  1.84k|        int32_t correction = 0;
  378|  1.84k|        int32_t march1 = isLeap ? 60 : 59; // zero-based DOY for March 1
  ------------------
  |  Branch (378:26): [True: 115, False: 1.72k]
  ------------------
  379|  1.84k|        if (dayOfYear >= march1) {
  ------------------
  |  Branch (379:13): [True: 1.75k, False: 86]
  ------------------
  380|  1.75k|            correction = isLeap ? 1 : 2;
  ------------------
  |  Branch (380:26): [True: 86, False: 1.67k]
  ------------------
  381|  1.75k|        }
  382|  1.84k|        month = (12 * (dayOfYear + correction) + 6) / 367; // zero-based month
  383|  1.84k|        dayOfMonth = dayOfYear - (isLeap?kLeapNumDays[month]:kNumDays[month]) + 1; // one-based DOM
  ------------------
  |  Branch (383:35): [True: 115, False: 1.72k]
  ------------------
  384|  1.84k|        ++dayOfYear;
  385|       |#if defined (U_DEBUG_CAL)
  386|       |        //     fprintf(stderr, "%d - %d[%d] + 1\n", dayOfYear, isLeap?kLeapNumDays[month]:kNumDays[month], month );
  387|       |        //           fprintf(stderr, "%s:%d:  greg's HCF %d -> %d/%d/%d not %d/%d/%d\n", 
  388|       |        //                   __FILE__, __LINE__,julianDay,
  389|       |        //          eyear,month,dayOfMonth,
  390|       |        //          getGregorianYear(), getGregorianMonth(), getGregorianDayOfMonth()  );
  391|       |        fprintf(stderr, "%s:%d: doy %d (greg's %d)- [cut=%d]\n", 
  392|       |            __FILE__, __LINE__, dayOfYear, getGregorianDayOfYear(), fCutoverJulianDay);
  393|       |#endif
  394|       |
  395|  1.84k|    }
  396|       |
  397|       |    // [j81] if we are after the cutover in its year, shift the day of the year
  398|  28.1k|    if((eyear == fGregorianCutoverYear) && (julianDay >= fCutoverJulianDay)) {
  ------------------
  |  Branch (398:8): [True: 35, False: 28.1k]
  |  Branch (398:44): [True: 13, False: 22]
  ------------------
  399|       |        //from handleComputeMonthStart
  400|     13|        int32_t gregShift = Grego::gregorianShift(eyear);
  401|       |#if defined (U_DEBUG_CAL)
  402|       |        fprintf(stderr, "%s:%d:  gregorian shift %d :::  doy%d => %d [cut=%d]\n",
  403|       |            __FILE__, __LINE__,gregShift, dayOfYear, dayOfYear+gregShift, fCutoverJulianDay);
  404|       |#endif
  405|     13|        dayOfYear += gregShift;
  406|     13|    }
  407|       |
  408|  28.1k|    internalSet(UCAL_MONTH, month);
  409|  28.1k|    internalSet(UCAL_ORDINAL_MONTH, month);
  410|  28.1k|    internalSet(UCAL_DAY_OF_MONTH, dayOfMonth);
  411|  28.1k|    internalSet(UCAL_DAY_OF_YEAR, dayOfYear);
  412|  28.1k|    internalSet(UCAL_EXTENDED_YEAR, eyear);
  413|  28.1k|    int32_t era = AD;
  414|  28.1k|    if (eyear < 1) {
  ------------------
  |  Branch (414:9): [True: 1.73k, False: 26.4k]
  ------------------
  415|  1.73k|        era = BC;
  416|  1.73k|        eyear = 1 - eyear;
  417|  1.73k|    }
  418|  28.1k|    internalSet(UCAL_ERA, era);
  419|  28.1k|    internalSet(UCAL_YEAR, eyear);
  420|  28.1k|}
_ZNK6icu_7817GregorianCalendar10isLeapYearEi:
  435|  28.1k|{
  436|       |    // MSVC complains bitterly if we try to use Grego::isLeapYear here
  437|       |    // NOTE: year&0x3 == year%4
  438|  28.1k|    return (year >= fGregorianCutoverYear ?
  ------------------
  |  Branch (438:13): [True: 26.3k, False: 1.82k]
  ------------------
  439|  26.3k|        (((year&0x3) == 0) && ((year%100 != 0) || (year%400 == 0))) : // Gregorian
  ------------------
  |  Branch (439:10): [True: 209, False: 26.1k]
  |  Branch (439:32): [True: 155, False: 54]
  |  Branch (439:51): [True: 28, False: 26]
  ------------------
  440|  28.1k|    ((year&0x3) == 0)); // Julian
  441|  28.1k|}
_ZN6icu_7817GregorianCalendar22handleComputeJulianDayE19UCalendarDateFieldsR10UErrorCode:
  446|      6|{
  447|      6|    fInvertGregorian = false;
  448|       |
  449|      6|    int32_t jd = Calendar::handleComputeJulianDay(bestField, status);
  450|      6|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (450:9): [True: 0, False: 6]
  ------------------
  451|      0|        return 0;
  452|      0|    }
  453|       |
  454|      6|    if((bestField == UCAL_WEEK_OF_YEAR) &&  // if we are doing WOY calculations, we are counting relative to Jan 1 *julian*
  ------------------
  |  Branch (454:8): [True: 0, False: 6]
  ------------------
  455|      6|        (internalGet(UCAL_EXTENDED_YEAR)==fGregorianCutoverYear) && 
  ------------------
  |  Branch (455:9): [True: 0, False: 0]
  ------------------
  456|      6|        jd >= fCutoverJulianDay) { 
  ------------------
  |  Branch (456:9): [True: 0, False: 0]
  ------------------
  457|      0|            fInvertGregorian = true;  // So that the Julian Jan 1 will be used in handleComputeMonthStart
  458|      0|            return Calendar::handleComputeJulianDay(bestField, status);
  459|      0|        }
  460|       |
  461|       |
  462|       |        // The following check handles portions of the cutover year BEFORE the
  463|       |        // cutover itself happens.
  464|       |        //if ((fIsGregorian==true) != (jd >= fCutoverJulianDay)) {  /*  cutoverJulianDay)) { */
  465|      6|        if ((fIsGregorian) != (jd >= fCutoverJulianDay)) {  /*  cutoverJulianDay)) { */
  ------------------
  |  Branch (465:13): [True: 0, False: 6]
  ------------------
  466|       |#if defined (U_DEBUG_CAL)
  467|       |            fprintf(stderr, "%s:%d: jd [invert] %d\n", 
  468|       |                __FILE__, __LINE__, jd);
  469|       |#endif
  470|      0|            fInvertGregorian = true;
  471|      0|            jd = Calendar::handleComputeJulianDay(bestField, status);
  472|      0|            if (U_FAILURE(status)) {
  ------------------
  |  Branch (472:17): [True: 0, False: 0]
  ------------------
  473|      0|                return 0;
  474|      0|            }
  475|       |#if defined (U_DEBUG_CAL)
  476|       |            fprintf(stderr, "%s:%d:  fIsGregorian %s, fInvertGregorian %s - ", 
  477|       |                __FILE__, __LINE__,fIsGregorian?"T":"F", fInvertGregorian?"T":"F");
  478|       |            fprintf(stderr, " jd NOW %d\n", 
  479|       |                jd);
  480|       |#endif
  481|      6|        } else {
  482|       |#if defined (U_DEBUG_CAL)
  483|       |            fprintf(stderr, "%s:%d: jd [==] %d - %sfIsGregorian %sfInvertGregorian, %d\n", 
  484|       |                __FILE__, __LINE__, jd, fIsGregorian?"T":"F", fInvertGregorian?"T":"F", bestField);
  485|       |#endif
  486|      6|        }
  487|       |
  488|      6|        if(fIsGregorian && (internalGet(UCAL_EXTENDED_YEAR) == fGregorianCutoverYear)) {
  ------------------
  |  Branch (488:12): [True: 6, False: 0]
  |  Branch (488:28): [True: 0, False: 6]
  ------------------
  489|      0|            int32_t gregShift = Grego::gregorianShift(internalGet(UCAL_EXTENDED_YEAR));
  490|      0|            if (bestField == UCAL_DAY_OF_YEAR) {
  ------------------
  |  Branch (490:17): [True: 0, False: 0]
  ------------------
  491|       |#if defined (U_DEBUG_CAL)
  492|       |                fprintf(stderr, "%s:%d: [DOY%d] gregorian shift of JD %d += %d\n", 
  493|       |                    __FILE__, __LINE__, fFields[bestField],jd, gregShift);
  494|       |#endif
  495|      0|                jd -= gregShift;
  496|      0|            } else if ( bestField == UCAL_WEEK_OF_MONTH ) {
  ------------------
  |  Branch (496:25): [True: 0, False: 0]
  ------------------
  497|      0|                int32_t weekShift = 14;
  498|       |#if defined (U_DEBUG_CAL)
  499|       |                fprintf(stderr, "%s:%d: [WOY/WOM] gregorian week shift of %d += %d\n", 
  500|       |                    __FILE__, __LINE__, jd, weekShift);
  501|       |#endif
  502|      0|                jd += weekShift; // shift by weeks for week based fields.
  503|      0|            }
  504|      0|        }
  505|       |
  506|      6|        return jd;
  507|      6|}
_ZNK6icu_7817GregorianCalendar23handleComputeMonthStartEiiaR10UErrorCode:
  512|      6|{
  513|      6|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (513:9): [True: 0, False: 6]
  ------------------
  514|      0|        return 0;
  515|      0|    }
  516|      6|    GregorianCalendar* nonConstThis = const_cast<GregorianCalendar*>(this); // cast away const
  517|       |
  518|       |    // If the month is out of range, adjust it into range, and
  519|       |    // modify the extended year value accordingly.
  520|      6|    if (month < 0 || month > 11) {
  ------------------
  |  Branch (520:9): [True: 0, False: 6]
  |  Branch (520:22): [True: 0, False: 6]
  ------------------
  521|      0|        if (uprv_add32_overflow(ClockMath::floorDivide(month, 12, &month),
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (521:13): [True: 0, False: 0]
  ------------------
  522|      0|                                eyear, &eyear)) {
  523|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  524|      0|            return 0;
  525|      0|        }
  526|      0|    }
  527|       |
  528|      6|    UBool isLeap = eyear%4 == 0;
  529|      6|    int64_t y = static_cast<int64_t>(eyear) - 1;
  530|      6|    int64_t julianDay = 365LL * y +
  531|      6|        ClockMath::floorDivideInt64(y, 4LL) + kJan1_1JulianDay - 3LL;
  ------------------
  |  |  125|      6|#define kJan1_1JulianDay  1721426 // January 1, year 1 (Gregorian)
  ------------------
  532|       |
  533|      6|    nonConstThis->fIsGregorian = (eyear >= fGregorianCutoverYear);
  534|       |#if defined (U_DEBUG_CAL)
  535|       |    fprintf(stderr, "%s:%d: (hcms%d/%d) fIsGregorian %s, fInvertGregorian %s\n", 
  536|       |        __FILE__, __LINE__, eyear,month, fIsGregorian?"T":"F", fInvertGregorian?"T":"F");
  537|       |#endif
  538|      6|    if (fInvertGregorian) {
  ------------------
  |  Branch (538:9): [True: 0, False: 6]
  ------------------
  539|      0|        nonConstThis->fIsGregorian = !fIsGregorian;
  540|      0|    }
  541|      6|    if (fIsGregorian) {
  ------------------
  |  Branch (541:9): [True: 6, False: 0]
  ------------------
  542|      6|        isLeap = isLeap && ((eyear%100 != 0) || (eyear%400 == 0));
  ------------------
  |  Branch (542:18): [True: 0, False: 6]
  |  Branch (542:29): [True: 0, False: 0]
  |  Branch (542:49): [True: 0, False: 0]
  ------------------
  543|       |        // Add 2 because Gregorian calendar starts 2 days after
  544|       |        // Julian calendar
  545|      6|        int32_t gregShift = Grego::gregorianShift(eyear);
  546|       |#if defined (U_DEBUG_CAL)
  547|       |        fprintf(stderr, "%s:%d: (hcms%d/%d) gregorian shift of %d += %d\n", 
  548|       |            __FILE__, __LINE__, eyear, month, julianDay, gregShift);
  549|       |#endif
  550|      6|        julianDay += gregShift;
  551|      6|    }
  552|       |
  553|       |    // At this point julianDay indicates the day BEFORE the first
  554|       |    // day of January 1, <eyear> of either the Julian or Gregorian
  555|       |    // calendar.
  556|       |
  557|      6|    if (month != 0) {
  ------------------
  |  Branch (557:9): [True: 6, False: 0]
  ------------------
  558|      6|        julianDay += isLeap?kLeapNumDays[month]:kNumDays[month];
  ------------------
  |  Branch (558:22): [True: 0, False: 6]
  ------------------
  559|      6|    }
  560|       |
  561|      6|    return julianDay;
  562|      6|}
_ZNK6icu_7817GregorianCalendar20handleGetMonthLengthEiiR10UErrorCode:
  565|      3|{
  566|       |    // If the month is out of range, adjust it into range, and
  567|       |    // modify the extended year value accordingly.
  568|      3|    if (month < 0 || month > 11) {
  ------------------
  |  Branch (568:9): [True: 0, False: 3]
  |  Branch (568:22): [True: 0, False: 3]
  ------------------
  569|      0|        extendedYear += ClockMath::floorDivide(month, 12, &month);
  570|      0|    }
  571|       |
  572|      3|    return isLeapYear(extendedYear) ? kLeapMonthLength[month] : kMonthLength[month];
  ------------------
  |  Branch (572:12): [True: 0, False: 3]
  ------------------
  573|      3|}
_ZNK6icu_7817GregorianCalendar19handleGetYearLengthEiR10UErrorCode:
  575|  28.1k|int32_t GregorianCalendar::handleGetYearLength(int32_t eyear, UErrorCode& status) const {
  576|  28.1k|    if (U_FAILURE(status)) return 0;
  ------------------
  |  Branch (576:9): [True: 0, False: 28.1k]
  ------------------
  577|  28.1k|    return isLeapYear(eyear) ? 366 : 365;
  ------------------
  |  Branch (577:12): [True: 298, False: 27.8k]
  ------------------
  578|  28.1k|}
_ZNK6icu_7817GregorianCalendar16getActualMinimumE19UCalendarDateFieldsR10UErrorCode:
 1048|      3|{
 1049|      3|    return getMinimum(field);
 1050|      3|}
_ZNK6icu_7817GregorianCalendar14handleGetLimitE19UCalendarDateFieldsNS_8Calendar10ELimitTypeE:
 1062|      6|int32_t GregorianCalendar::handleGetLimit(UCalendarDateFields field, ELimitType limitType) const {
 1063|      6|    return kGregorianCalendarLimits[field][limitType];
 1064|      6|}
_ZNK6icu_7817GregorianCalendar16getActualMaximumE19UCalendarDateFieldsR10UErrorCode:
 1074|      3|{
 1075|       |    /* It is a known limitation that the code here (and in getActualMinimum)
 1076|       |    * won't behave properly at the extreme limits of GregorianCalendar's
 1077|       |    * representable range (except for the code that handles the YEAR
 1078|       |    * field).  That's because the ends of the representable range are at
 1079|       |    * odd spots in the year.  For calendars with the default Gregorian
 1080|       |    * cutover, these limits are Sun Dec 02 16:47:04 GMT 292269055 BC to Sun
 1081|       |    * Aug 17 07:12:55 GMT 292278994 AD, somewhat different for non-GMT
 1082|       |    * zones.  As a result, if the calendar is set to Aug 1 292278994 AD,
 1083|       |    * the actual maximum of DAY_OF_MONTH is 17, not 30.  If the date is Mar
 1084|       |    * 31 in that year, the actual maximum month might be Jul, whereas is
 1085|       |    * the date is Mar 15, the actual maximum might be Aug -- depending on
 1086|       |    * the precise semantics that are desired.  Similar considerations
 1087|       |    * affect all fields.  Nonetheless, this effect is sufficiently arcane
 1088|       |    * that we permit it, rather than complicating the code to handle such
 1089|       |    * intricacies. - liu 8/20/98
 1090|       |
 1091|       |    * UPDATE: No longer true, since we have pulled in the limit values on
 1092|       |    * the year. - Liu 11/6/00 */
 1093|       |
 1094|      3|    switch (field) {
 1095|       |
 1096|      0|    case UCAL_YEAR:
  ------------------
  |  Branch (1096:5): [True: 0, False: 3]
  ------------------
 1097|       |        /* The year computation is no different, in principle, from the
 1098|       |        * others, however, the range of possible maxima is large.  In
 1099|       |        * addition, the way we know we've exceeded the range is different.
 1100|       |        * For these reasons, we use the special case code below to handle
 1101|       |        * this field.
 1102|       |        *
 1103|       |        * The actual maxima for YEAR depend on the type of calendar:
 1104|       |        *
 1105|       |        *     Gregorian = May 17, 292275056 BC - Aug 17, 292278994 AD
 1106|       |        *     Julian    = Dec  2, 292269055 BC - Jan  3, 292272993 AD
 1107|       |        *     Hybrid    = Dec  2, 292269055 BC - Aug 17, 292278994 AD
 1108|       |        *
 1109|       |        * We know we've exceeded the maximum when either the month, date,
 1110|       |        * time, or era changes in response to setting the year.  We don't
 1111|       |        * check for month, date, and time here because the year and era are
 1112|       |        * sufficient to detect an invalid year setting.  NOTE: If code is
 1113|       |        * added to check the month and date in the future for some reason,
 1114|       |        * Feb 29 must be allowed to shift to Mar 1 when setting the year.
 1115|       |        */
 1116|      0|        {
 1117|      0|            if(U_FAILURE(status)) return 0;
  ------------------
  |  Branch (1117:16): [True: 0, False: 0]
  ------------------
 1118|      0|            Calendar *cal = clone();
 1119|      0|            if(!cal) {
  ------------------
  |  Branch (1119:16): [True: 0, False: 0]
  ------------------
 1120|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 1121|      0|                return 0;
 1122|      0|            }
 1123|       |
 1124|      0|            cal->setLenient(true);
 1125|       |
 1126|      0|            int32_t era = cal->get(UCAL_ERA, status);
 1127|      0|            UDate d = cal->getTime(status);
 1128|       |
 1129|       |            /* Perform a binary search, with the invariant that lowGood is a
 1130|       |            * valid year, and highBad is an out of range year.
 1131|       |            */
 1132|      0|            int32_t lowGood = kGregorianCalendarLimits[UCAL_YEAR][1];
 1133|      0|            int32_t highBad = kGregorianCalendarLimits[UCAL_YEAR][2]+1;
 1134|      0|            while ((lowGood + 1) < highBad) {
  ------------------
  |  Branch (1134:20): [True: 0, False: 0]
  ------------------
 1135|      0|                int32_t y = (lowGood + highBad) / 2;
 1136|      0|                cal->set(UCAL_YEAR, y);
 1137|      0|                if (cal->get(UCAL_YEAR, status) == y && cal->get(UCAL_ERA, status) == era) {
  ------------------
  |  Branch (1137:21): [True: 0, False: 0]
  |  Branch (1137:57): [True: 0, False: 0]
  ------------------
 1138|      0|                    lowGood = y;
 1139|      0|                } else {
 1140|      0|                    highBad = y;
 1141|      0|                    cal->setTime(d, status); // Restore original fields
 1142|      0|                }
 1143|      0|            }
 1144|       |
 1145|      0|            delete cal;
 1146|      0|            return lowGood;
 1147|      0|        }
 1148|       |
 1149|      3|    default:
  ------------------
  |  Branch (1149:5): [True: 3, False: 0]
  ------------------
 1150|      3|        return Calendar::getActualMaximum(field,status);
 1151|      3|    }
 1152|      3|}
_ZN6icu_7817GregorianCalendar21handleGetExtendedYearER10UErrorCode:
 1155|      2|int32_t GregorianCalendar::handleGetExtendedYear(UErrorCode& status) {
 1156|      2|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1156:9): [True: 0, False: 2]
  ------------------
 1157|      0|        return 0;
 1158|      0|    }
 1159|       |    // the year to return
 1160|      2|    int32_t year = kEpochYear;
  ------------------
  |  |  129|      2|#define kEpochYear              1970
  ------------------
 1161|       |
 1162|       |    // year field to use
 1163|       |    // There are three separate fields which could be used to
 1164|       |    // derive the proper year.  Use the one most recently set.
 1165|      2|    UCalendarDateFields yearField = newerField(
 1166|      2|        newerField(UCAL_EXTENDED_YEAR, UCAL_YEAR), UCAL_YEAR_WOY);
 1167|       |
 1168|       |    // based on the "best" year field, get the year
 1169|      2|    switch(yearField) {
 1170|      0|    case UCAL_EXTENDED_YEAR:
  ------------------
  |  Branch (1170:5): [True: 0, False: 2]
  ------------------
 1171|      0|        year = internalGet(UCAL_EXTENDED_YEAR, kEpochYear);
  ------------------
  |  |  129|      0|#define kEpochYear              1970
  ------------------
 1172|      0|        break;
 1173|       |
 1174|      2|    case UCAL_YEAR:
  ------------------
  |  Branch (1174:5): [True: 2, False: 0]
  ------------------
 1175|      2|        {
 1176|       |            // The year defaults to the epoch start, the era to AD
 1177|      2|            int32_t era = internalGet(UCAL_ERA, AD);
 1178|      2|            if (era == BC) {
  ------------------
  |  Branch (1178:17): [True: 0, False: 2]
  ------------------
 1179|      0|                year = 1 - internalGet(UCAL_YEAR, 1); // Convert to extended year
 1180|      2|            } else if (era == AD) {
  ------------------
  |  Branch (1180:24): [True: 2, False: 0]
  ------------------
 1181|      2|                year = internalGet(UCAL_YEAR, kEpochYear);
  ------------------
  |  |  129|      2|#define kEpochYear              1970
  ------------------
 1182|      2|            } else {
 1183|      0|                status = U_ILLEGAL_ARGUMENT_ERROR;
 1184|      0|                return 0;
 1185|      0|            }
 1186|      2|        }
 1187|      2|        break;
 1188|       |
 1189|      2|    case UCAL_YEAR_WOY:
  ------------------
  |  Branch (1189:5): [True: 0, False: 2]
  ------------------
 1190|      0|        year = handleGetExtendedYearFromWeekFields(
 1191|      0|            internalGet(UCAL_YEAR_WOY), internalGet(UCAL_WEEK_OF_YEAR), status);
 1192|      0|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (1192:13): [True: 0, False: 0]
  ------------------
 1193|      0|            return 0;
 1194|      0|        }
 1195|       |#if defined (U_DEBUG_CAL)
 1196|       |        //    if(internalGet(UCAL_YEAR_WOY) != year) {
 1197|       |        fprintf(stderr, "%s:%d: hGEYFWF[%d,%d] ->  %d\n", 
 1198|       |            __FILE__, __LINE__,internalGet(UCAL_YEAR_WOY),internalGet(UCAL_WEEK_OF_YEAR),year);
 1199|       |        //}
 1200|       |#endif
 1201|      0|        break;
 1202|       |
 1203|      0|    default:
  ------------------
  |  Branch (1203:5): [True: 0, False: 2]
  ------------------
 1204|      0|        year = kEpochYear;
  ------------------
  |  |  129|      0|#define kEpochYear              1970
  ------------------
 1205|      2|    }
 1206|      2|    return year;
 1207|      2|}
_ZNK6icu_7817GregorianCalendar7getTypeEv:
 1235|  56.0k|GregorianCalendar::getType() const {
 1236|       |    //static const char kGregorianType = "gregorian";
 1237|       |
 1238|  56.0k|    return "gregorian";
 1239|  56.0k|}

_ZN6icu_789ClockMath11floorDivideEii:
   25|   121k|int32_t ClockMath::floorDivide(int32_t numerator, int32_t denominator) {
   26|   121k|    return (numerator >= 0) ?
  ------------------
  |  Branch (26:12): [True: 117k, False: 3.82k]
  ------------------
   27|   117k|        numerator / denominator : ((numerator + 1) / denominator) - 1;
   28|   121k|}
_ZN6icu_789ClockMath16floorDivideInt64Ell:
   30|  1.69k|int64_t ClockMath::floorDivideInt64(int64_t numerator, int64_t denominator) {
   31|  1.69k|    return (numerator >= 0) ?
  ------------------
  |  Branch (31:12): [True: 1.48k, False: 202]
  ------------------
   32|  1.48k|        numerator / denominator : ((numerator + 1) / denominator) - 1;
   33|  1.69k|}
_ZN6icu_789ClockMath11floorDivideEiiPi:
   36|   118k|                          int32_t* remainder) {
   37|   118k|    int64_t quotient = floorDivide(numerator, denominator);
   38|   118k|    if (remainder != nullptr) {
  ------------------
  |  Branch (38:9): [True: 118k, False: 0]
  ------------------
   39|   118k|      *remainder = numerator - (quotient * denominator);
   40|   118k|    }
   41|   118k|    return quotient;
   42|   118k|}
_ZN6icu_789ClockMath11floorDivideEdiPi:
   45|  31.4k|                          int32_t* remainder) {
   46|       |    // For an integer n and representable ⌊x/n⌋, ⌊RN(x/n)⌋=⌊x/n⌋, where RN is
   47|       |    // rounding to nearest.
   48|  31.4k|    double quotient = uprv_floor(numerator / denominator);
  ------------------
  |  | 1499|  31.4k|#define uprv_floor U_ICU_ENTRY_POINT_RENAME(uprv_floor)
  |  |  ------------------
  |  |  |  |  123|  31.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  31.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  31.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   49|  31.4k|    if (remainder != nullptr) {
  ------------------
  |  Branch (49:9): [True: 31.4k, False: 0]
  ------------------
   50|       |      // For doubles x and n, where n is an integer and ⌊x+n⌋ < 2³¹, the
   51|       |      // expression `(int32_t) (x + n)` evaluated with rounding to nearest
   52|       |      // differs from ⌊x+n⌋ if 0 < ⌈x⌉−x ≪ x+n, as `x + n` is rounded up to
   53|       |      // n+⌈x⌉ = ⌊x+n⌋ + 1.  Rewriting it as ⌊x⌋+n makes the addition exact.
   54|  31.4k|      *remainder = static_cast<int32_t>(uprv_floor(numerator) - (quotient * denominator));
  ------------------
  |  | 1499|  31.4k|#define uprv_floor U_ICU_ENTRY_POINT_RENAME(uprv_floor)
  |  |  ------------------
  |  |  |  |  123|  31.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  31.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  31.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   55|  31.4k|    }
   56|  31.4k|    return quotient;
   57|  31.4k|}
_ZN6icu_785Grego11fieldsToDayEiii:
  107|     64|int64_t Grego::fieldsToDay(int32_t year, int32_t month, int32_t dom) {
  108|       |
  109|     64|    int64_t y = year - 1;
  110|       |
  111|     64|    int64_t julian = 365LL * y +
  112|     64|        ClockMath::floorDivideInt64(y, 4LL) + (JULIAN_1_CE - 3) + // Julian cal
  113|     64|        ClockMath::floorDivideInt64(y, 400LL) -
  114|     64|        ClockMath::floorDivideInt64(y, 100LL) + 2 + // => Gregorian cal
  115|     64|        DAYS_BEFORE[month + (isLeapYear(year) ? 12 : 0)] + dom; // => month/dom
  ------------------
  |  Branch (115:30): [True: 26, False: 38]
  ------------------
  116|       |
  117|     64|    return julian - JULIAN_1970_CE; // JD => epoch day
  118|     64|}
_ZN6icu_785Grego11dayToFieldsEiRiRaS2_S2_RsR10UErrorCode:
  121|  29.6k|                        int8_t& dom, int8_t& dow, int16_t& doy, UErrorCode& status) {
  122|  29.6k|    year = dayToYear(day, doy, status); // one-based doy
  123|  29.6k|    if (U_FAILURE(status)) return;
  ------------------
  |  Branch (123:9): [True: 0, False: 29.6k]
  ------------------
  124|       |
  125|       |    // Convert from 1970 CE epoch to 1 CE epoch (Gregorian calendar)
  126|  29.6k|    if (uprv_add32_overflow(day, JULIAN_1970_CE - JULIAN_1_CE, &day)) {
  ------------------
  |  | 1394|  29.6k|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  123|  29.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  29.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  29.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (126:9): [True: 0, False: 29.6k]
  ------------------
  127|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  128|      0|        return;
  129|      0|    }
  130|       |
  131|       |    // Gregorian day zero is a Monday.
  132|  29.6k|    dow = (day + 1) % 7;
  133|  29.6k|    dow += (dow < 0) ? (UCAL_SUNDAY + 7) : UCAL_SUNDAY;
  ------------------
  |  Branch (133:12): [True: 309, False: 29.3k]
  ------------------
  134|       |
  135|       |    // Common Julian/Gregorian calculation
  136|  29.6k|    int32_t correction = 0;
  137|  29.6k|    bool isLeap = isLeapYear(year);
  138|  29.6k|    int32_t march1 = isLeap ? 60 : 59; // zero-based DOY for March 1
  ------------------
  |  Branch (138:22): [True: 391, False: 29.2k]
  ------------------
  139|  29.6k|    if (doy > march1) {
  ------------------
  |  Branch (139:9): [True: 21.8k, False: 7.76k]
  ------------------
  140|  21.8k|        correction = isLeap ? 1 : 2;
  ------------------
  |  Branch (140:22): [True: 329, False: 21.5k]
  ------------------
  141|  21.8k|    }
  142|  29.6k|    month = (12 * (doy - 1 + correction) + 6) / 367; // zero-based month
  143|  29.6k|    dom = doy - DAYS_BEFORE[month + (isLeap ? 12 : 0)]; // one-based DOM
  ------------------
  |  Branch (143:38): [True: 391, False: 29.2k]
  ------------------
  144|  29.6k|}
_ZN6icu_785Grego9dayToYearEiRsR10UErrorCode:
  151|  29.6k|int32_t Grego::dayToYear(int32_t day, int16_t& doy, UErrorCode& status) {
  152|  29.6k|    if (U_FAILURE(status)) return 0;
  ------------------
  |  Branch (152:9): [True: 0, False: 29.6k]
  ------------------
  153|       |    // Convert from 1970 CE epoch to 1 CE epoch (Gregorian calendar)
  154|  29.6k|    if (uprv_add32_overflow(day, JULIAN_1970_CE - JULIAN_1_CE, &day)) {
  ------------------
  |  | 1394|  29.6k|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  123|  29.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  29.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  29.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (154:9): [True: 0, False: 29.6k]
  ------------------
  155|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  156|      0|        return 0;
  157|      0|    }
  158|       |
  159|       |    // Convert from the day number to the multiple radix
  160|       |    // representation.  We use 400-year, 100-year, and 4-year cycles.
  161|       |    // For example, the 4-year cycle has 4 years + 1 leap day; giving
  162|       |    // 1461 == 365*4 + 1 days.
  163|  29.6k|    int32_t doy32;
  164|  29.6k|    int32_t n400 = ClockMath::floorDivide(day, 146097, &doy32); // 400-year cycle length
  165|  29.6k|    int32_t n100 = ClockMath::floorDivide(doy32, 36524, &doy32); // 100-year cycle length
  166|  29.6k|    int32_t n4   = ClockMath::floorDivide(doy32, 1461, &doy32); // 4-year cycle length
  167|  29.6k|    int32_t n1   = ClockMath::floorDivide(doy32, 365, &doy32);
  168|  29.6k|    int32_t year = 400*n400 + 100*n100 + 4*n4 + n1;
  169|  29.6k|    if (n100 == 4 || n1 == 4) {
  ------------------
  |  Branch (169:9): [True: 10, False: 29.6k]
  |  Branch (169:22): [True: 23, False: 29.5k]
  ------------------
  170|     33|        doy = 365; // Dec 31 at end of 4- or 400-year cycle
  171|  29.5k|    } else {
  172|  29.5k|        doy = doy32;
  173|  29.5k|        ++year;
  174|  29.5k|    }
  175|  29.6k|    doy++; // one-based doy
  176|  29.6k|    return year;
  177|  29.6k|}

_ZNK6icu_7817GregorianCalendar19defaultCenturyStartEv:
  389|  55.7k|  UDate T::defaultCenturyStart() const { \
  390|  55.7k|      /* lazy-evaluate systemDefaultCenturyStart */ \
  391|  55.7k|      umtx_initOnce(gSystemDefaultCenturyInit, &initializeSystemDefaultCentury); \
  392|  55.7k|      return gSystemDefaultCenturyStart; \
  393|  55.7k|  }   \
_ZNK6icu_7817GregorianCalendar23defaultCenturyStartYearEv:
  394|  55.7k|  int32_t T::defaultCenturyStartYear() const { \
  395|  55.7k|      /* lazy-evaluate systemDefaultCenturyStart */ \
  396|  55.7k|      umtx_initOnce(gSystemDefaultCenturyInit, &initializeSystemDefaultCentury); \
  397|  55.7k|      return gSystemDefaultCenturyStartYear; \
  398|  55.7k|  } \
_ZNK6icu_7817GregorianCalendar18haveDefaultCenturyEv:
  399|  55.7k|  UBool T::haveDefaultCentury() const { return true; }
_ZN6icu_789ClockMath11floorDivideEdd:
  327|      8|inline double ClockMath::floorDivide(double numerator, double denominator) {
  328|      8|    return uprv_floor(numerator / denominator);
  ------------------
  |  | 1499|      8|#define uprv_floor U_ICU_ENTRY_POINT_RENAME(uprv_floor)
  |  |  ------------------
  |  |  |  |  123|      8|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      8|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      8|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  329|      8|}
_ZN6icu_785Grego14gregorianShiftEi:
  355|     19|inline int32_t Grego::gregorianShift(int32_t eyear) {
  356|     19|  int64_t y = static_cast<int64_t>(eyear) - 1;
  357|     19|  int64_t gregShift = ClockMath::floorDivideInt64(y, 400LL) - ClockMath::floorDivideInt64(y, 100LL) + 2;
  358|     19|  return static_cast<int32_t>(gregShift);
  359|     19|}
gregocal.cpp:_ZN6icu_7812_GLOBAL__N_130initializeSystemDefaultCenturyEv:
  372|      1|  initializeSystemDefaultCentury() { \
  373|      1|      UErrorCode status = U_ZERO_ERROR; \
  374|      1|      T calendar(U, status); \
  375|      1|      /* initialize systemDefaultCentury and systemDefaultCenturyYear based */ \
  376|      1|      /* on the current time.  They'll be set to 80 years before */ \
  377|      1|      /* the current time. */ \
  378|      1|      if (U_FAILURE(status)) { \
  ------------------
  |  Branch (378:11): [True: 0, False: 1]
  ------------------
  379|      0|          return; \
  380|      0|      } \
  381|      1|      calendar.setTime(Calendar::getNow(), status); \
  382|      1|      calendar.add(UCAL_YEAR, -80, status); \
  383|      1|      gSystemDefaultCenturyStart = calendar.getTime(status); \
  384|      1|      gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); \
  385|      1|      /* We have no recourse upon failure unless we want to propagate the */ \
  386|      1|      /* failure out. */ \
  387|      1|  } \
_ZN6icu_785Grego10isLeapYearEi:
  331|  29.6k|inline UBool Grego::isLeapYear(int32_t year) {
  332|       |    // year&0x3 == year%4
  333|  29.6k|    return ((year&0x3) == 0) && ((year%100 != 0) || (year%400 == 0));
  ------------------
  |  Branch (333:12): [True: 453, False: 29.2k]
  |  Branch (333:34): [True: 374, False: 79]
  |  Branch (333:53): [True: 43, False: 36]
  ------------------
  334|  29.6k|}
_ZN6icu_785Grego17julianDayToMillisEi:
  347|     12|{
  348|     12|  return (static_cast<double>(julian) - kEpochStartAsJulianDay) * kOneDay;
  ------------------
  |  |  127|     12|#define kEpochStartAsJulianDay  2440588 // January 1, 1970 (Gregorian)
  ------------------
                return (static_cast<double>(julian) - kEpochStartAsJulianDay) * kOneDay;
  ------------------
  |  |  117|     12|#define kOneDay    (1.0 * U_MILLIS_PER_DAY)       //  86,400,000
  |  |  ------------------
  |  |  |  |  227|     12|#define U_MILLIS_PER_DAY       (86400000)
  |  |  ------------------
  ------------------
  349|     12|}
_ZNK6icu_7816EthiopicCalendar19defaultCenturyStartEv:
  389|     16|  UDate T::defaultCenturyStart() const { \
  390|     16|      /* lazy-evaluate systemDefaultCenturyStart */ \
  391|     16|      umtx_initOnce(gSystemDefaultCenturyInit, &initializeSystemDefaultCentury); \
  392|     16|      return gSystemDefaultCenturyStart; \
  393|     16|  }   \
_ZNK6icu_7816EthiopicCalendar23defaultCenturyStartYearEv:
  394|     16|  int32_t T::defaultCenturyStartYear() const { \
  395|     16|      /* lazy-evaluate systemDefaultCenturyStart */ \
  396|     16|      umtx_initOnce(gSystemDefaultCenturyInit, &initializeSystemDefaultCentury); \
  397|     16|      return gSystemDefaultCenturyStartYear; \
  398|     16|  } \
_ZNK6icu_7816EthiopicCalendar18haveDefaultCenturyEv:
  399|     16|  UBool T::haveDefaultCentury() const { return true; }
ethpccal.cpp:_ZN6icu_7812_GLOBAL__N_130initializeSystemDefaultCenturyEv:
  372|      1|  initializeSystemDefaultCentury() { \
  373|      1|      UErrorCode status = U_ZERO_ERROR; \
  374|      1|      T calendar(U, status); \
  375|      1|      /* initialize systemDefaultCentury and systemDefaultCenturyYear based */ \
  376|      1|      /* on the current time.  They'll be set to 80 years before */ \
  377|      1|      /* the current time. */ \
  378|      1|      if (U_FAILURE(status)) { \
  ------------------
  |  Branch (378:11): [True: 0, False: 1]
  ------------------
  379|      0|          return; \
  380|      0|      } \
  381|      1|      calendar.setTime(Calendar::getNow(), status); \
  382|      1|      calendar.add(UCAL_YEAR, -80, status); \
  383|      1|      gSystemDefaultCenturyStart = calendar.getTime(status); \
  384|      1|      gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); \
  385|      1|      /* We have no recourse upon failure unless we want to propagate the */ \
  386|      1|      /* failure out. */ \
  387|      1|  } \
_ZNK6icu_7814HebrewCalendar19defaultCenturyStartEv:
  389|     45|  UDate T::defaultCenturyStart() const { \
  390|     45|      /* lazy-evaluate systemDefaultCenturyStart */ \
  391|     45|      umtx_initOnce(gSystemDefaultCenturyInit, &initializeSystemDefaultCentury); \
  392|     45|      return gSystemDefaultCenturyStart; \
  393|     45|  }   \
_ZNK6icu_7814HebrewCalendar23defaultCenturyStartYearEv:
  394|     45|  int32_t T::defaultCenturyStartYear() const { \
  395|     45|      /* lazy-evaluate systemDefaultCenturyStart */ \
  396|     45|      umtx_initOnce(gSystemDefaultCenturyInit, &initializeSystemDefaultCentury); \
  397|     45|      return gSystemDefaultCenturyStartYear; \
  398|     45|  } \
_ZNK6icu_7814HebrewCalendar18haveDefaultCenturyEv:
  399|     45|  UBool T::haveDefaultCentury() const { return true; }
hebrwcal.cpp:_ZN6icu_7812_GLOBAL__N_130initializeSystemDefaultCenturyEv:
  372|      1|  initializeSystemDefaultCentury() { \
  373|      1|      UErrorCode status = U_ZERO_ERROR; \
  374|      1|      T calendar(U, status); \
  375|      1|      /* initialize systemDefaultCentury and systemDefaultCenturyYear based */ \
  376|      1|      /* on the current time.  They'll be set to 80 years before */ \
  377|      1|      /* the current time. */ \
  378|      1|      if (U_FAILURE(status)) { \
  ------------------
  |  Branch (378:11): [True: 0, False: 1]
  ------------------
  379|      0|          return; \
  380|      0|      } \
  381|      1|      calendar.setTime(Calendar::getNow(), status); \
  382|      1|      calendar.add(UCAL_YEAR, -80, status); \
  383|      1|      gSystemDefaultCenturyStart = calendar.getTime(status); \
  384|      1|      gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); \
  385|      1|      /* We have no recourse upon failure unless we want to propagate the */ \
  386|      1|      /* failure out. */ \
  387|      1|  } \
_ZNK6icu_7815PersianCalendar19defaultCenturyStartEv:
  389|  1.90k|  UDate T::defaultCenturyStart() const { \
  390|  1.90k|      /* lazy-evaluate systemDefaultCenturyStart */ \
  391|  1.90k|      umtx_initOnce(gSystemDefaultCenturyInit, &initializeSystemDefaultCentury); \
  392|  1.90k|      return gSystemDefaultCenturyStart; \
  393|  1.90k|  }   \
_ZNK6icu_7815PersianCalendar23defaultCenturyStartYearEv:
  394|  1.90k|  int32_t T::defaultCenturyStartYear() const { \
  395|  1.90k|      /* lazy-evaluate systemDefaultCenturyStart */ \
  396|  1.90k|      umtx_initOnce(gSystemDefaultCenturyInit, &initializeSystemDefaultCentury); \
  397|  1.90k|      return gSystemDefaultCenturyStartYear; \
  398|  1.90k|  } \
_ZNK6icu_7815PersianCalendar18haveDefaultCenturyEv:
  399|  1.90k|  UBool T::haveDefaultCentury() const { return true; }
persncal.cpp:_ZN6icu_7812_GLOBAL__N_130initializeSystemDefaultCenturyEv:
  372|      1|  initializeSystemDefaultCentury() { \
  373|      1|      UErrorCode status = U_ZERO_ERROR; \
  374|      1|      T calendar(U, status); \
  375|      1|      /* initialize systemDefaultCentury and systemDefaultCenturyYear based */ \
  376|      1|      /* on the current time.  They'll be set to 80 years before */ \
  377|      1|      /* the current time. */ \
  378|      1|      if (U_FAILURE(status)) { \
  ------------------
  |  Branch (378:11): [True: 0, False: 1]
  ------------------
  379|      0|          return; \
  380|      0|      } \
  381|      1|      calendar.setTime(Calendar::getNow(), status); \
  382|      1|      calendar.add(UCAL_YEAR, -80, status); \
  383|      1|      gSystemDefaultCenturyStart = calendar.getTime(status); \
  384|      1|      gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); \
  385|      1|      /* We have no recourse upon failure unless we want to propagate the */ \
  386|      1|      /* failure out. */ \
  387|      1|  } \
_ZNK6icu_7814TaiwanCalendar19defaultCenturyStartEv:
  389|     24|  UDate T::defaultCenturyStart() const { \
  390|     24|      /* lazy-evaluate systemDefaultCenturyStart */ \
  391|     24|      umtx_initOnce(gSystemDefaultCenturyInit, &initializeSystemDefaultCentury); \
  392|     24|      return gSystemDefaultCenturyStart; \
  393|     24|  }   \
_ZNK6icu_7814TaiwanCalendar23defaultCenturyStartYearEv:
  394|     24|  int32_t T::defaultCenturyStartYear() const { \
  395|     24|      /* lazy-evaluate systemDefaultCenturyStart */ \
  396|     24|      umtx_initOnce(gSystemDefaultCenturyInit, &initializeSystemDefaultCentury); \
  397|     24|      return gSystemDefaultCenturyStartYear; \
  398|     24|  } \
_ZNK6icu_7814TaiwanCalendar18haveDefaultCenturyEv:
  399|     24|  UBool T::haveDefaultCentury() const { return true; }
taiwncal.cpp:_ZN6icu_7812_GLOBAL__N_130initializeSystemDefaultCenturyEv:
  372|      1|  initializeSystemDefaultCentury() { \
  373|      1|      UErrorCode status = U_ZERO_ERROR; \
  374|      1|      T calendar(U, status); \
  375|      1|      /* initialize systemDefaultCentury and systemDefaultCenturyYear based */ \
  376|      1|      /* on the current time.  They'll be set to 80 years before */ \
  377|      1|      /* the current time. */ \
  378|      1|      if (U_FAILURE(status)) { \
  ------------------
  |  Branch (378:11): [True: 0, False: 1]
  ------------------
  379|      0|          return; \
  380|      0|      } \
  381|      1|      calendar.setTime(Calendar::getNow(), status); \
  382|      1|      calendar.add(UCAL_YEAR, -80, status); \
  383|      1|      gSystemDefaultCenturyStart = calendar.getTime(status); \
  384|      1|      gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); \
  385|      1|      /* We have no recourse upon failure unless we want to propagate the */ \
  386|      1|      /* failure out. */ \
  387|      1|  } \
_ZNK6icu_7816BuddhistCalendar19defaultCenturyStartEv:
  389|    239|  UDate T::defaultCenturyStart() const { \
  390|    239|      /* lazy-evaluate systemDefaultCenturyStart */ \
  391|    239|      umtx_initOnce(gSystemDefaultCenturyInit, &initializeSystemDefaultCentury); \
  392|    239|      return gSystemDefaultCenturyStart; \
  393|    239|  }   \
_ZNK6icu_7816BuddhistCalendar23defaultCenturyStartYearEv:
  394|    239|  int32_t T::defaultCenturyStartYear() const { \
  395|    239|      /* lazy-evaluate systemDefaultCenturyStart */ \
  396|    239|      umtx_initOnce(gSystemDefaultCenturyInit, &initializeSystemDefaultCentury); \
  397|    239|      return gSystemDefaultCenturyStartYear; \
  398|    239|  } \
_ZNK6icu_7816BuddhistCalendar18haveDefaultCenturyEv:
  399|    239|  UBool T::haveDefaultCentury() const { return true; }
buddhcal.cpp:_ZN6icu_7812_GLOBAL__N_130initializeSystemDefaultCenturyEv:
  372|      1|  initializeSystemDefaultCentury() { \
  373|      1|      UErrorCode status = U_ZERO_ERROR; \
  374|      1|      T calendar(U, status); \
  375|      1|      /* initialize systemDefaultCentury and systemDefaultCenturyYear based */ \
  376|      1|      /* on the current time.  They'll be set to 80 years before */ \
  377|      1|      /* the current time. */ \
  378|      1|      if (U_FAILURE(status)) { \
  ------------------
  |  Branch (378:11): [True: 0, False: 1]
  ------------------
  379|      0|          return; \
  380|      0|      } \
  381|      1|      calendar.setTime(Calendar::getNow(), status); \
  382|      1|      calendar.add(UCAL_YEAR, -80, status); \
  383|      1|      gSystemDefaultCenturyStart = calendar.getTime(status); \
  384|      1|      gSystemDefaultCenturyStartYear = calendar.get(UCAL_YEAR, status); \
  385|      1|      /* We have no recourse upon failure unless we want to propagate the */ \
  386|      1|      /* failure out. */ \
  387|      1|  } \

_ZN6icu_7814HebrewCalendarC2ERKNS_6LocaleER10UErrorCode:
  164|     11|:   Calendar(TimeZone::forLocaleOrDefault(aLocale), aLocale, success)
  165|       |
  166|     11|{
  167|     11|}
_ZN6icu_7814HebrewCalendarD2Ev:
  170|     83|HebrewCalendar::~HebrewCalendar() {
  171|     83|}
_ZNK6icu_7814HebrewCalendar7getTypeEv:
  173|     55|const char *HebrewCalendar::getType() const {
  174|     55|    return "hebrew";
  175|     55|}
_ZNK6icu_7814HebrewCalendar5cloneEv:
  177|     72|HebrewCalendar* HebrewCalendar::clone() const {
  178|     72|    return new HebrewCalendar(*this);
  179|     72|}
_ZN6icu_7814HebrewCalendarC2ERKS0_:
  181|     72|HebrewCalendar::HebrewCalendar(const HebrewCalendar& other) : Calendar(other) {
  182|     72|}
_ZN6icu_7814HebrewCalendar3addE19UCalendarDateFieldsiR10UErrorCode:
  220|      1|{
  221|      1|    if(U_FAILURE(status)) {
  ------------------
  |  Branch (221:8): [True: 0, False: 1]
  ------------------
  222|      0|        return;
  223|      0|    }
  224|      1|    switch (field) {
  225|      0|  case UCAL_MONTH:
  ------------------
  |  Branch (225:3): [True: 0, False: 1]
  ------------------
  226|      0|  case UCAL_ORDINAL_MONTH:
  ------------------
  |  Branch (226:3): [True: 0, False: 1]
  ------------------
  227|      0|      {
  228|       |          // We can't just do a set(MONTH, get(MONTH) + amount).  The
  229|       |          // reason is ADAR_1.  Suppose amount is +2 and we land in
  230|       |          // ADAR_1 -- then we have to bump to ADAR_2 aka ADAR.  But
  231|       |          // if amount is -2 and we land in ADAR_1, then we have to
  232|       |          // bump the other way -- down to SHEVAT.  - Alan 11/00
  233|      0|          int64_t month = get(UCAL_MONTH, status);
  234|      0|          int32_t year = get(UCAL_YEAR, status);
  235|      0|          UBool acrossAdar1;
  236|      0|          if (amount > 0) {
  ------------------
  |  Branch (236:15): [True: 0, False: 0]
  ------------------
  237|      0|              acrossAdar1 = (month < ADAR_1); // started before ADAR_1?
  238|      0|              month += amount;
  239|       |              // We know there are total 235 months in every 19 years. To speed
  240|       |              // up the iteration, we first fast forward in the multiple of 235
  241|       |              // months for 19 years before the iteration which check the leap year.
  242|      0|              if (month >= MONTHS_IN_CYCLE) {
  ------------------
  |  Branch (242:19): [True: 0, False: 0]
  ------------------
  243|      0|                  if (uprv_add32_overflow(year, (month / MONTHS_IN_CYCLE) * YEARS_IN_CYCLE, &year)) {
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (243:23): [True: 0, False: 0]
  ------------------
  244|      0|                      status = U_ILLEGAL_ARGUMENT_ERROR;
  245|      0|                      return;
  246|      0|                  }
  247|      0|                  month %= MONTHS_IN_CYCLE;
  248|      0|              }
  249|       |
  250|      0|              for (;;) {
  251|      0|                  if (acrossAdar1 && month>=ADAR_1 && !isLeapYear(year)) {
  ------------------
  |  Branch (251:23): [True: 0, False: 0]
  |  Branch (251:38): [True: 0, False: 0]
  |  Branch (251:55): [True: 0, False: 0]
  ------------------
  252|      0|                      ++month;
  253|      0|                  }
  254|      0|                  if (month <= ELUL) {
  ------------------
  |  Branch (254:23): [True: 0, False: 0]
  ------------------
  255|      0|                      break;
  256|      0|                  }
  257|      0|                  month -= ELUL+1;
  258|      0|                  ++year;
  259|      0|                  acrossAdar1 = true;
  260|      0|              }
  261|      0|          } else {
  262|      0|              acrossAdar1 = (month > ADAR_1); // started after ADAR_1?
  263|      0|              month += amount;
  264|       |              // We know there are total 235 months in every 19 years. To speed
  265|       |              // up the iteration, we first fast forward in the multiple of 235
  266|       |              // months for 19 years before the iteration which check the leap year.
  267|      0|              if (month <= -MONTHS_IN_CYCLE) {
  ------------------
  |  Branch (267:19): [True: 0, False: 0]
  ------------------
  268|      0|                  if (uprv_add32_overflow(year, (month / MONTHS_IN_CYCLE) * YEARS_IN_CYCLE, &year)) {
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (268:23): [True: 0, False: 0]
  ------------------
  269|      0|                      status = U_ILLEGAL_ARGUMENT_ERROR;
  270|      0|                      return;
  271|      0|                  }
  272|      0|                  month %= MONTHS_IN_CYCLE;
  273|      0|              }
  274|      0|              for (;;) {
  275|      0|                  if (acrossAdar1 && month<=ADAR_1 && !isLeapYear(year)) {
  ------------------
  |  Branch (275:23): [True: 0, False: 0]
  |  Branch (275:38): [True: 0, False: 0]
  |  Branch (275:55): [True: 0, False: 0]
  ------------------
  276|      0|                      --month;
  277|      0|                  }
  278|      0|                  if (month >= 0) {
  ------------------
  |  Branch (278:23): [True: 0, False: 0]
  ------------------
  279|      0|                      break;
  280|      0|                  }
  281|      0|                  month += ELUL+1;
  282|      0|                  --year;
  283|      0|                  acrossAdar1 = true;
  284|      0|              }
  285|      0|          }
  286|      0|          set(UCAL_MONTH, month);
  287|      0|          set(UCAL_YEAR, year);
  288|      0|          pinField(UCAL_DAY_OF_MONTH, status);
  289|      0|          break;
  290|      0|      }
  291|       |
  292|      1|  default:
  ------------------
  |  Branch (292:3): [True: 1, False: 0]
  ------------------
  293|      1|      Calendar::add(field, amount, status);
  294|      1|      break;
  295|      1|    }
  296|      1|}
_ZN6icu_7814HebrewCalendar10isLeapYearEi:
  523|      6|UBool HebrewCalendar::isLeapYear(int32_t year) {
  524|       |    //return (year * 12 + 17) % 19 >= 12;
  525|      6|    int64_t x = (year*12LL + 17) % YEARS_IN_CYCLE;
  526|      6|    return x >= ((x < 0) ? -7 : 12);
  ------------------
  |  Branch (526:18): [True: 0, False: 6]
  ------------------
  527|      6|}
_ZNK6icu_7814HebrewCalendar14handleGetLimitE19UCalendarDateFieldsNS_8Calendar10ELimitTypeE:
  544|     11|int32_t HebrewCalendar::handleGetLimit(UCalendarDateFields field, ELimitType limitType) const {
  545|     11|    return LIMITS[field][limitType];
  546|     11|}
_ZNK6icu_7814HebrewCalendar20handleGetMonthLengthEiiR10UErrorCode:
  552|      1|int32_t HebrewCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month, UErrorCode& status) const {
  553|      1|    if(U_FAILURE(status)) {
  ------------------
  |  Branch (553:8): [True: 0, False: 1]
  ------------------
  554|      0|        return 0;
  555|      0|    }
  556|       |    // Resolve out-of-range months.  This is necessary in order to
  557|       |    // obtain the correct year.  We correct to
  558|       |    // a 12- or 13-month year (add/subtract 12 or 13, depending
  559|       |    // on the year) but since we _always_ number from 0..12, and
  560|       |    // the leap year determines whether or not month 5 (Adar 1)
  561|       |    // is present, we allow 0..12 in any given year.
  562|      1|    while (month < 0) {
  ------------------
  |  Branch (562:12): [True: 0, False: 1]
  ------------------
  563|      0|        month += monthsInYear(--extendedYear);
  564|      0|    }
  565|       |    // Careful: allow 0..12 in all years
  566|      1|    while (month > 12) {
  ------------------
  |  Branch (566:12): [True: 0, False: 1]
  ------------------
  567|      0|        month -= monthsInYear(extendedYear++);
  568|      0|    }
  569|       |
  570|      1|    switch (month) {
  571|      0|    case HESHVAN:
  ------------------
  |  Branch (571:5): [True: 0, False: 1]
  ------------------
  572|      0|    case KISLEV:
  ------------------
  |  Branch (572:5): [True: 0, False: 1]
  ------------------
  573|      0|      {
  574|       |          // These two month lengths can vary
  575|      0|          int32_t type = yearType(extendedYear, status);
  576|      0|          if(U_FAILURE(status)) {
  ------------------
  |  Branch (576:14): [True: 0, False: 0]
  ------------------
  577|      0|              return 0;
  578|      0|          }
  579|      0|          return MONTH_LENGTH[month][type];
  580|      0|      }
  581|       |
  582|      1|    default:
  ------------------
  |  Branch (582:5): [True: 1, False: 0]
  ------------------
  583|       |      // The rest are a fixed length
  584|      1|      return MONTH_LENGTH[month][0];
  585|      1|    }
  586|      1|}
_ZNK6icu_7814HebrewCalendar19handleGetYearLengthEiR10UErrorCode:
  592|      4|int32_t HebrewCalendar::handleGetYearLength(int32_t eyear, UErrorCode& status) const {
  593|      4|    return daysInYear(eyear, status);
  594|      4|}
_ZN6icu_7814HebrewCalendar19handleComputeFieldsEiR10UErrorCode:
  632|      4|void HebrewCalendar::handleComputeFields(int32_t julianDay, UErrorCode &status) {
  633|      4|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (633:9): [True: 0, False: 4]
  ------------------
  634|      0|        return;
  635|      0|    }
  636|      4|    int32_t d = julianDay - 347997;
  637|      4|    double m = ClockMath::floorDivide((d * static_cast<double>(DAY_PARTS)), static_cast<double>(MONTH_PARTS)); // Months (approx)
  638|      4|    int32_t year = static_cast<int32_t>(ClockMath::floorDivide((19. * m + 234.), 235.) + 1.); // Years (approx)
  639|      4|    int32_t ys  = startOfYear(year, status);                   // 1st day of year
  640|      4|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (640:9): [True: 0, False: 4]
  ------------------
  641|      0|        return;
  642|      0|    }
  643|      4|    int32_t dayOfYear = (d - ys);
  644|       |
  645|       |    // Because of the postponement rules, it's possible to guess wrong.  Fix it.
  646|      8|    while (dayOfYear < 1) {
  ------------------
  |  Branch (646:12): [True: 4, False: 4]
  ------------------
  647|      4|        year--;
  648|      4|        ys  = startOfYear(year, status);
  649|      4|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (649:13): [True: 0, False: 4]
  ------------------
  650|      0|            return;
  651|      0|        }
  652|      4|        dayOfYear = (d - ys);
  653|      4|    }
  654|       |
  655|       |    // Now figure out which month we're in, and the date within that month
  656|      4|    int32_t type = yearType(year, status);
  657|      4|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (657:9): [True: 0, False: 4]
  ------------------
  658|      0|        return;
  659|      0|    }
  660|      4|    UBool isLeap = isLeapYear(year);
  661|       |
  662|      4|    int32_t month = 0;
  663|      4|    int32_t momax = UPRV_LENGTHOF(MONTH_START);
  ------------------
  |  |   99|      4|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  664|     44|    while (month < momax &&
  ------------------
  |  Branch (664:12): [True: 44, False: 0]
  ------------------
  665|     44|           dayOfYear > (  isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month][type] ) ) {
  ------------------
  |  Branch (665:12): [True: 40, False: 4]
  |  Branch (665:27): [True: 0, False: 44]
  ------------------
  666|     40|        month++;
  667|     40|    }
  668|      4|    if (month >= momax || month<=0) {
  ------------------
  |  Branch (668:9): [True: 0, False: 4]
  |  Branch (668:27): [True: 0, False: 4]
  ------------------
  669|       |        // TODO: I found dayOfYear could be out of range when
  670|       |        // a large value is set to julianDay.  I patched startOfYear
  671|       |        // to reduce the chace, but it could be still reproduced either
  672|       |        // by startOfYear or other places.  For now, we check
  673|       |        // the month is in valid range to avoid out of array index
  674|       |        // access problem here.  However, we need to carefully review
  675|       |        // the calendar implementation to check the extreme limit of
  676|       |        // each calendar field and the code works well for any values
  677|       |        // in the valid value range.  -yoshito
  678|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  679|      0|        return;
  680|      0|    }
  681|      4|    month--;
  682|      4|    int dayOfMonth = dayOfYear - (isLeap ? LEAP_MONTH_START[month][type] : MONTH_START[month][type]);
  ------------------
  |  Branch (682:35): [True: 0, False: 4]
  ------------------
  683|       |
  684|      4|    internalSet(UCAL_ERA, 0);
  685|       |    // Check out of bound year
  686|      4|    int32_t min_year = handleGetLimit(UCAL_EXTENDED_YEAR, UCAL_LIMIT_MINIMUM);
  687|      4|    if (year < min_year) {
  ------------------
  |  Branch (687:9): [True: 0, False: 4]
  ------------------
  688|      0|        if (!isLenient()) {
  ------------------
  |  Branch (688:13): [True: 0, False: 0]
  ------------------
  689|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  690|      0|            return;
  691|      0|        }
  692|      0|        year = min_year;
  693|      0|    }
  694|      4|    int32_t max_year = handleGetLimit(UCAL_EXTENDED_YEAR, UCAL_LIMIT_MAXIMUM);
  695|      4|    if (max_year < year) {
  ------------------
  |  Branch (695:9): [True: 0, False: 4]
  ------------------
  696|      0|        if (!isLenient()) {
  ------------------
  |  Branch (696:13): [True: 0, False: 0]
  ------------------
  697|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  698|      0|            return;
  699|      0|        }
  700|      0|        year = max_year;
  701|      0|    }
  702|      4|    internalSet(UCAL_YEAR, year);
  703|      4|    internalSet(UCAL_EXTENDED_YEAR, year);
  704|      4|    int32_t ordinal_month = month;
  705|      4|    if (!isLeap && ordinal_month > ADAR_1) {
  ------------------
  |  Branch (705:9): [True: 4, False: 0]
  |  Branch (705:20): [True: 4, False: 0]
  ------------------
  706|      4|        ordinal_month--;
  707|      4|    }
  708|      4|    internalSet(UCAL_ORDINAL_MONTH, ordinal_month);
  709|      4|    internalSet(UCAL_MONTH, month);
  710|      4|    internalSet(UCAL_DAY_OF_MONTH, dayOfMonth);
  711|      4|    internalSet(UCAL_DAY_OF_YEAR, dayOfYear);
  712|      4|}
_ZN6icu_7814HebrewCalendar21handleGetExtendedYearER10UErrorCode:
  721|      2|int32_t HebrewCalendar::handleGetExtendedYear(UErrorCode& status ) {
  722|      2|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (722:9): [True: 0, False: 2]
  ------------------
  723|      0|        return 0;
  724|      0|    }
  725|      2|    if (newerField(UCAL_EXTENDED_YEAR, UCAL_YEAR) == UCAL_EXTENDED_YEAR) {
  ------------------
  |  Branch (725:9): [True: 0, False: 2]
  ------------------
  726|      0|        return internalGet(UCAL_EXTENDED_YEAR, 1); // Default to year 1
  727|      0|    }
  728|      2|    return internalGet(UCAL_YEAR, 1); // Default to year 1
  729|      2|}
_ZNK6icu_7814HebrewCalendar23handleComputeMonthStartEiiaR10UErrorCode:
  736|      2|    int32_t eyear, int32_t month, UBool /*useMonth*/, UErrorCode& status) const {
  737|      2|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (737:9): [True: 0, False: 2]
  ------------------
  738|      0|        return 0;
  739|      0|    }
  740|       |    // Resolve out-of-range months.  This is necessary in order to
  741|       |    // obtain the correct year.  We correct to
  742|       |    // a 12- or 13-month year (add/subtract 12 or 13, depending
  743|       |    // on the year) but since we _always_ number from 0..12, and
  744|       |    // the leap year determines whether or not month 5 (Adar 1)
  745|       |    // is present, we allow 0..12 in any given year.
  746|       |
  747|       |    // The month could be in large value, we first roll 235 months to 19 years
  748|       |    // before the while loop.
  749|      2|    if (month <= -MONTHS_IN_CYCLE || month >= MONTHS_IN_CYCLE) {
  ------------------
  |  Branch (749:9): [True: 0, False: 2]
  |  Branch (749:38): [True: 0, False: 2]
  ------------------
  750|      0|        if (uprv_add32_overflow(eyear, (month / MONTHS_IN_CYCLE) * YEARS_IN_CYCLE, &eyear)) {
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (750:13): [True: 0, False: 0]
  ------------------
  751|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  752|      0|            return 0;
  753|      0|        }
  754|      0|        month %= MONTHS_IN_CYCLE;
  755|      0|    }
  756|      2|    while (month < 0) {
  ------------------
  |  Branch (756:12): [True: 0, False: 2]
  ------------------
  757|      0|        if (uprv_add32_overflow(eyear, -1, &eyear) ||
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (757:13): [True: 0, False: 0]
  ------------------
  758|      0|            uprv_add32_overflow(month, monthsInYear(eyear), &month)) {
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (758:13): [True: 0, False: 0]
  ------------------
  759|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  760|      0|            return 0;
  761|      0|        }
  762|      0|    }
  763|       |    // Careful: allow 0..12 in all years
  764|      2|    while (month > 12) {
  ------------------
  |  Branch (764:12): [True: 0, False: 2]
  ------------------
  765|      0|        if (uprv_add32_overflow(month, -monthsInYear(eyear), &month) ||
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (765:13): [True: 0, False: 0]
  ------------------
  766|      0|            uprv_add32_overflow(eyear, 1, &eyear)) {
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (766:13): [True: 0, False: 0]
  ------------------
  767|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  768|      0|            return 0;
  769|      0|        }
  770|      0|    }
  771|       |
  772|      2|    int64_t day = startOfYear(eyear, status);
  773|       |
  774|      2|    if(U_FAILURE(status)) {
  ------------------
  |  Branch (774:8): [True: 0, False: 2]
  ------------------
  775|      0|        return 0;
  776|      0|    }
  777|       |
  778|      2|    if (month != 0) {
  ------------------
  |  Branch (778:9): [True: 2, False: 0]
  ------------------
  779|      2|        int32_t type = yearType(eyear, status);
  780|      2|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (780:13): [True: 0, False: 2]
  ------------------
  781|      0|            return 0;
  782|      0|        }
  783|      2|        if (isLeapYear(eyear)) {
  ------------------
  |  Branch (783:13): [True: 0, False: 2]
  ------------------
  784|      0|            day += LEAP_MONTH_START[month][type];
  785|      2|        } else {
  786|      2|            day += MONTH_START[month][type];
  787|      2|        }
  788|      2|    }
  789|       |
  790|      2|    return day + 347997LL;
  791|      2|}
_ZNK6icu_7814HebrewCalendar16internalGetMonthER10UErrorCode:
  836|      2|int32_t HebrewCalendar::internalGetMonth(UErrorCode& status) const {
  837|      2|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (837:9): [True: 0, False: 2]
  ------------------
  838|      0|        return 0;
  839|      0|    }
  840|      2|    if (resolveFields(kMonthPrecedence) == UCAL_ORDINAL_MONTH) {
  ------------------
  |  Branch (840:9): [True: 0, False: 2]
  ------------------
  841|      0|        int32_t ordinalMonth = internalGet(UCAL_ORDINAL_MONTH);
  842|      0|        HebrewCalendar* nonConstThis = const_cast<HebrewCalendar*>(this); // cast away const
  843|       |
  844|      0|        int32_t year = nonConstThis->handleGetExtendedYear(status);
  845|      0|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (845:13): [True: 0, False: 0]
  ------------------
  846|      0|            return 0;
  847|      0|        }
  848|      0|        if (isLeapYear(year) || ordinalMonth <= ADAR_1) {
  ------------------
  |  Branch (848:13): [True: 0, False: 0]
  |  Branch (848:33): [True: 0, False: 0]
  ------------------
  849|      0|            return ordinalMonth;
  850|      0|        }
  851|      0|        if (!uprv_add32_overflow(ordinalMonth, 1, &ordinalMonth)) {
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (851:13): [True: 0, False: 0]
  ------------------
  852|      0|            return ordinalMonth;
  853|      0|        }
  854|      0|    }
  855|      2|    return Calendar::internalGetMonth(status);
  856|      2|}
hebrwcal.cpp:_ZN6icu_7812_GLOBAL__N_18yearTypeEiR10UErrorCode:
  486|      6|{
  487|      6|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (487:9): [True: 0, False: 6]
  ------------------
  488|      0|        return 0;
  489|      0|    }
  490|      6|    int32_t yearLength = daysInYear(year, status);
  491|      6|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (491:9): [True: 0, False: 6]
  ------------------
  492|      0|        return 0;
  493|      0|    }
  494|       |
  495|      6|    if (yearLength > 380) {
  ------------------
  |  Branch (495:9): [True: 0, False: 6]
  ------------------
  496|      0|        yearLength -= 30;        // Subtract length of leap month.
  497|      0|    }
  498|       |
  499|      6|    int type = 0;
  500|       |
  501|      6|    switch (yearLength) {
  502|      0|  case 353:
  ------------------
  |  Branch (502:3): [True: 0, False: 6]
  ------------------
  503|      0|      type = 0; break;
  504|      0|  case 354:
  ------------------
  |  Branch (504:3): [True: 0, False: 6]
  ------------------
  505|      0|      type = 1; break;
  506|      6|  case 355:
  ------------------
  |  Branch (506:3): [True: 6, False: 0]
  ------------------
  507|      6|      type = 2; break;
  508|      0|  default:
  ------------------
  |  Branch (508:3): [True: 0, False: 6]
  ------------------
  509|       |      //throw new RuntimeException("Illegal year length " + yearLength + " in year " + year);
  510|      0|      type = 1;
  511|      6|    }
  512|      6|    return type;
  513|      6|}
hebrwcal.cpp:_ZN6icu_7812_GLOBAL__N_110daysInYearEiR10UErrorCode:
  472|     10|int32_t daysInYear(int32_t eyear, UErrorCode& status) {
  473|     10|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (473:9): [True: 0, False: 10]
  ------------------
  474|      0|       return 0;
  475|      0|    }
  476|     10|    return startOfYear(eyear+1, status) - startOfYear(eyear, status);
  477|     10|}
hebrwcal.cpp:_ZN6icu_7812_GLOBAL__N_111startOfYearEiR10UErrorCode:
  427|     30|{
  428|     30|    ucln_i18n_registerCleanup(UCLN_I18N_HEBREW_CALENDAR, calendar_hebrew_cleanup);
  ------------------
  |  |  618|     30|#define ucln_i18n_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_i18n_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|     30|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     30|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     30|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  429|     30|    int64_t day = CalendarCache::get(&gCache, year, status);
  430|     30|    if(U_FAILURE(status)) {
  ------------------
  |  Branch (430:8): [True: 0, False: 30]
  ------------------
  431|      0|        return 0;
  432|      0|    }
  433|       |
  434|     30|    if (day == 0) {
  ------------------
  |  Branch (434:9): [True: 4, False: 26]
  ------------------
  435|       |        // # of months before year
  436|      4|        int64_t months = ClockMath::floorDivideInt64(
  437|      4|            (235LL * static_cast<int64_t>(year) - 234LL), 19LL);
  438|       |
  439|      4|        int64_t frac = months * MONTH_FRACT + BAHARAD;  // Fractional part of day #
  440|      4|        day  = months * 29LL + frac / DAY_PARTS;        // Whole # part of calculation
  441|      4|        frac = frac % DAY_PARTS;                        // Time of day
  442|       |
  443|      4|        int32_t wd = (day % 7);                        // Day of week (0 == Monday)
  444|       |
  445|      4|        if (wd == 2 || wd == 4 || wd == 6) {
  ------------------
  |  Branch (445:13): [True: 0, False: 4]
  |  Branch (445:24): [True: 1, False: 3]
  |  Branch (445:35): [True: 0, False: 3]
  ------------------
  446|       |            // If the 1st is on Sun, Wed, or Fri, postpone to the next day
  447|      1|            day += 1;
  448|      1|            wd = (day % 7);
  449|      3|        } else if (wd == 1 && frac > 15*HOUR_PARTS+204 && !HebrewCalendar::isLeapYear(year) ) {
  ------------------
  |  Branch (449:20): [True: 1, False: 2]
  |  Branch (449:31): [True: 0, False: 1]
  |  Branch (449:59): [True: 0, False: 0]
  ------------------
  450|       |            // If the new moon falls after 3:11:20am (15h204p from the previous noon)
  451|       |            // on a Tuesday and it is not a leap year, postpone by 2 days.
  452|       |            // This prevents 356-day years.
  453|      0|            day += 2;
  454|      0|        }
  455|      3|        else if (wd == 0 && frac > 21*HOUR_PARTS+589 && HebrewCalendar::isLeapYear(year-1) ) {
  ------------------
  |  Branch (455:18): [True: 1, False: 2]
  |  Branch (455:29): [True: 0, False: 1]
  |  Branch (455:57): [True: 0, False: 0]
  ------------------
  456|       |            // If the new moon falls after 9:32:43 1/3am (21h589p from yesterday noon)
  457|       |            // on a Monday and *last* year was a leap year, postpone by 1 day.
  458|       |            // Prevents 382-day years.
  459|      0|            day += 1;
  460|      0|        }
  461|      4|        if (day > INT32_MAX || day < INT32_MIN) {
  ------------------
  |  Branch (461:13): [True: 0, False: 4]
  |  Branch (461:32): [True: 0, False: 4]
  ------------------
  462|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  463|      0|            return 0;
  464|      0|        }
  465|      4|        CalendarCache::put(&gCache, year, static_cast<int32_t>(day), status);
  466|      4|    }
  467|       |    // Out of range value is alread rejected before putting into cache.
  468|     30|    U_ASSERT(INT32_MIN <= day  &&  day <= INT32_MAX);
  ------------------
  |  |   35|     30|#   define U_ASSERT(exp) (void)0
  ------------------
  469|     30|    return day;
  470|     30|}

_ZN6icu_7811MeasureUnitC2Ev:
 2566|  2.00M|MeasureUnit::MeasureUnit() : MeasureUnit(kBaseTypeIdx, kBaseSubTypeIdx) {
 2567|  2.00M|}
_ZN6icu_7811MeasureUnitC2Eii:
 2570|  2.00M|        : fImpl(nullptr), fSubTypeId(subTypeId), fTypeId(typeId) {
 2571|  2.00M|}
_ZN6icu_7811MeasureUnitC2ERKS0_:
 2574|   431k|        : fImpl(nullptr) {
 2575|   431k|    *this = other;
 2576|   431k|}
_ZN6icu_7811MeasureUnitC2EOS0_:
 2579|   405k|        : fImpl(other.fImpl),
 2580|   405k|        fSubTypeId(other.fSubTypeId),
 2581|   405k|        fTypeId(other.fTypeId) {
 2582|   405k|    other.fImpl = nullptr;
 2583|   405k|}
_ZN6icu_7811MeasureUnitaSERKS0_:
 2592|   690k|MeasureUnit &MeasureUnit::operator=(const MeasureUnit &other) {
 2593|   690k|    if (this == &other) {
  ------------------
  |  Branch (2593:9): [True: 0, False: 690k]
  ------------------
 2594|      0|        return *this;
 2595|      0|    }
 2596|   690k|    delete fImpl;
 2597|   690k|    if (other.fImpl) {
  ------------------
  |  Branch (2597:9): [True: 0, False: 690k]
  ------------------
 2598|      0|        ErrorCode localStatus;
 2599|      0|        fImpl = new MeasureUnitImpl(other.fImpl->copy(localStatus));
 2600|      0|        if (!fImpl || localStatus.isFailure()) {
  ------------------
  |  Branch (2600:13): [True: 0, False: 0]
  |  Branch (2600:23): [True: 0, False: 0]
  ------------------
 2601|       |            // Unrecoverable allocation error; set to the default unit
 2602|      0|            *this = MeasureUnit();
 2603|      0|            return *this;
 2604|      0|        }
 2605|   690k|    } else {
 2606|   690k|        fImpl = nullptr;
 2607|   690k|    }
 2608|   690k|    fTypeId = other.fTypeId;
 2609|   690k|    fSubTypeId = other.fSubTypeId;
 2610|   690k|    return *this;
 2611|   690k|}
_ZN6icu_7811MeasureUnitaSEOS0_:
 2613|  1.21M|MeasureUnit &MeasureUnit::operator=(MeasureUnit &&other) noexcept {
 2614|  1.21M|    if (this == &other) {
  ------------------
  |  Branch (2614:9): [True: 0, False: 1.21M]
  ------------------
 2615|      0|        return *this;
 2616|      0|    }
 2617|  1.21M|    delete fImpl;
 2618|  1.21M|    fImpl = other.fImpl;
 2619|  1.21M|    other.fImpl = nullptr;
 2620|  1.21M|    fTypeId = other.fTypeId;
 2621|  1.21M|    fSubTypeId = other.fSubTypeId;
 2622|  1.21M|    return *this;
 2623|  1.21M|}
_ZN6icu_7811MeasureUnitD2Ev:
 2629|  2.84M|MeasureUnit::~MeasureUnit() {
 2630|  2.84M|    if (fImpl != nullptr) {
  ------------------
  |  Branch (2630:9): [True: 0, False: 2.84M]
  ------------------
 2631|      0|        delete fImpl;
 2632|      0|        fImpl = nullptr;
 2633|      0|    }
 2634|  2.84M|}
_ZN6icu_7811MeasureUnit12initCurrencyENS_11StringPieceE:
 2768|   476k|void MeasureUnit::initCurrency(StringPiece isoCurrency) {
 2769|   476k|    int32_t result = binarySearch(gTypes, 0, UPRV_LENGTHOF(gTypes), "currency");
  ------------------
  |  |   99|   476k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 2770|   476k|    U_ASSERT(result != -1);
  ------------------
  |  |   35|   476k|#   define U_ASSERT(exp) (void)0
  ------------------
 2771|   476k|    fTypeId = result;
 2772|   476k|    result = binarySearch(
 2773|   476k|            gSubTypes, gOffsets[fTypeId], gOffsets[fTypeId + 1], isoCurrency);
 2774|   476k|    if (result == -1) {
  ------------------
  |  Branch (2774:9): [True: 0, False: 476k]
  ------------------
 2775|      0|        fImpl = new MeasureUnitImpl(MeasureUnitImpl::forCurrencyCode(isoCurrency));
 2776|      0|        if (fImpl) {
  ------------------
  |  Branch (2776:13): [True: 0, False: 0]
  ------------------
 2777|      0|            fSubTypeId = -1;
 2778|      0|            return;
 2779|      0|        }
 2780|       |        // malloc error: fall back to the undefined currency
 2781|      0|        result = binarySearch(
 2782|      0|            gSubTypes, gOffsets[fTypeId], gOffsets[fTypeId + 1], kDefaultCurrency8);
 2783|      0|        U_ASSERT(result != -1);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 2784|      0|    }
 2785|   476k|    fSubTypeId = result - gOffsets[fTypeId];
 2786|   476k|}
measunit.cpp:_ZN6icu_78L12binarySearchEPKPKciiNS_11StringPieceE:
 2550|   952k|        const char * const * array, int32_t start, int32_t end, StringPiece key) {
 2551|  3.81M|    while (start < end) {
  ------------------
  |  Branch (2551:12): [True: 3.81M, False: 0]
  ------------------
 2552|  3.81M|        int32_t mid = (start + end) / 2;
 2553|  3.81M|        int32_t cmp = StringPiece(array[mid]).compare(key);
 2554|  3.81M|        if (cmp < 0) {
  ------------------
  |  Branch (2554:13): [True: 1.90M, False: 1.90M]
  ------------------
 2555|  1.90M|            start = mid + 1;
 2556|  1.90M|            continue;
 2557|  1.90M|        }
 2558|  1.90M|        if (cmp == 0) {
  ------------------
  |  Branch (2558:13): [True: 952k, False: 952k]
  ------------------
 2559|   952k|            return mid;
 2560|   952k|        }
 2561|   952k|        end = mid;
 2562|   952k|    }
 2563|      0|    return -1;
 2564|   952k|}

_ZN6icu_7810NFRuleListC2Ej:
   42|   114k|        : fStuff(capacity ? static_cast<NFRule**>(uprv_malloc(capacity * sizeof(NFRule*))) : nullptr)
  ------------------
  |  | 1524|  57.1k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  57.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  57.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  57.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (42:18): [True: 57.1k, False: 57.1k]
  ------------------
   43|   114k|        , fCount(0)
   44|   114k|        , fCapacity(capacity) {}
_ZN6icu_7810NFRuleListD2Ev:
   45|   114k|    ~NFRuleList() {
   46|   114k|        if (fStuff) {
  ------------------
  |  Branch (46:13): [True: 114k, False: 0]
  ------------------
   47|  1.67M|            for(uint32_t i = 0; i < fCount; ++i) {
  ------------------
  |  Branch (47:33): [True: 1.55M, False: 114k]
  ------------------
   48|  1.55M|                delete fStuff[i];
   49|  1.55M|            }
   50|   114k|            uprv_free(fStuff);
  ------------------
  |  | 1503|   114k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|   114k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   114k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   114k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   51|   114k|        }
   52|   114k|    }
_ZNK6icu_7810NFRuleListixEj:
   53|  1.54M|    NFRule* operator[](uint32_t index) const { return fStuff != nullptr ? fStuff[index] : nullptr; }
  ------------------
  |  Branch (53:55): [True: 1.54M, False: 0]
  ------------------
_ZN6icu_7810NFRuleList3addEPNS_6NFRuleE:
   65|  1.55M|    void add(NFRule* thing) {
   66|  1.55M|        if (fCount == fCapacity) {
  ------------------
  |  Branch (66:13): [True: 185k, False: 1.37M]
  ------------------
   67|   185k|            fCapacity += 10;
   68|   185k|            fStuff = static_cast<NFRule**>(uprv_realloc(fStuff, fCapacity * sizeof(NFRule*))); // assume success
  ------------------
  |  | 1536|   185k|#define uprv_realloc U_ICU_ENTRY_POINT_RENAME(uprv_realloc)
  |  |  ------------------
  |  |  |  |  123|   185k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   185k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   185k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   69|   185k|        }
   70|  1.55M|        if (fStuff != nullptr) {
  ------------------
  |  Branch (70:13): [True: 1.55M, False: 0]
  ------------------
   71|  1.55M|        	fStuff[fCount++] = thing;
   72|  1.55M|        } else {
   73|      0|        	fCapacity = 0;
   74|      0|        	fCount = 0;
   75|      0|        }
   76|  1.55M|    }
_ZNK6icu_7810NFRuleList4sizeEv:
   77|  58.3k|    uint32_t size() const { return fCount; }
_ZNK6icu_7810NFRuleList4lastEv:
   78|  1.13M|    NFRule* last() const { return (fCount > 0 && fStuff != nullptr) ? fStuff[fCount-1] : nullptr; }
  ------------------
  |  Branch (78:36): [True: 1.03M, False: 105k]
  |  Branch (78:50): [True: 1.03M, False: 0]
  ------------------
_ZN6icu_7810NFRuleList9deleteAllEv:
   87|  57.1k|    void deleteAll() {
   88|  57.1k|        NFRule** tmp = nullptr;
   89|  57.1k|        int32_t size = fCount;
   90|  57.1k|        if (size > 0) {
  ------------------
  |  Branch (90:13): [True: 0, False: 57.1k]
  ------------------
   91|      0|            tmp = release();
   92|      0|            for (int32_t i = 0; i < size; i++) {
  ------------------
  |  Branch (92:33): [True: 0, False: 0]
  ------------------
   93|      0|                delete tmp[i];
   94|      0|            }
   95|      0|            if (tmp) {
  ------------------
  |  Branch (95:17): [True: 0, False: 0]
  ------------------
   96|      0|                uprv_free(tmp);
  ------------------
  |  | 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|            }
   98|      0|        }
   99|  57.1k|    }

_ZN6icu_789NFRuleSetC2EPNS_21RuleBasedNumberFormatEPNS_13UnicodeStringEiR10UErrorCode:
  137|  57.1k|  : name()
  138|  57.1k|  , rules(0)
  139|  57.1k|  , owner(_owner)
  140|  57.1k|  , fractionRules()
  141|  57.1k|  , fIsFractionRuleSet(false)
  142|  57.1k|  , fIsPublic(false)
  143|  57.1k|  , fIsParseable(true)
  144|  57.1k|{
  145|   399k|    for (int32_t i = 0; i < NON_NUMERICAL_RULE_LENGTH; ++i) {
  ------------------
  |  Branch (145:25): [True: 342k, False: 57.1k]
  ------------------
  146|   342k|        nonNumericalRules[i] = nullptr;
  147|   342k|    }
  148|       |
  149|  57.1k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (149:9): [True: 0, False: 57.1k]
  ------------------
  150|      0|        return;
  151|      0|    }
  152|       |
  153|  57.1k|    UnicodeString& description = descriptions[index]; // !!! make sure index is valid
  154|       |
  155|  57.1k|    if (description.isEmpty()) {
  ------------------
  |  Branch (155:9): [True: 0, False: 57.1k]
  ------------------
  156|       |        // throw new IllegalArgumentException("Empty rule set description");
  157|      0|        status = U_PARSE_ERROR;
  158|      0|        return;
  159|      0|    }
  160|       |
  161|       |    // if the description begins with a rule set name (the rule set
  162|       |    // name can be omitted in formatter descriptions that consist
  163|       |    // of only one rule set), copy it out into our "name" member
  164|       |    // and delete it from the description
  165|  57.1k|    if (description.charAt(0) == gPercent) {
  ------------------
  |  Branch (165:9): [True: 57.1k, False: 0]
  ------------------
  166|  57.1k|        int32_t pos = description.indexOf(gColon);
  167|  57.1k|        if (pos == -1) {
  ------------------
  |  Branch (167:13): [True: 0, False: 57.1k]
  ------------------
  168|       |            // throw new IllegalArgumentException("Rule set name doesn't end in colon");
  169|      0|            status = U_PARSE_ERROR;
  170|  57.1k|        } else {
  171|  57.1k|            name.setTo(description, 0, pos);
  172|  57.1k|            while (pos < description.length() && PatternProps::isWhiteSpace(description.charAt(++pos))) {
  ------------------
  |  Branch (172:20): [True: 57.1k, False: 0]
  |  Branch (172:50): [True: 0, False: 57.1k]
  ------------------
  173|      0|            }
  174|  57.1k|            description.remove(0, pos);
  175|  57.1k|        }
  176|  57.1k|    } else {
  177|      0|        name.setTo(UNICODE_STRING_SIMPLE("%default"));
  ------------------
  |  |  135|      0|#define UNICODE_STRING_SIMPLE(cs) UNICODE_STRING(cs, -1)
  |  |  ------------------
  |  |  |  |  121|      0|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  |  |  ------------------
  ------------------
  178|      0|    }
  179|       |
  180|  57.1k|    if (description.isEmpty()) {
  ------------------
  |  Branch (180:9): [True: 0, False: 57.1k]
  ------------------
  181|       |        // throw new IllegalArgumentException("Empty rule set description");
  182|      0|        status = U_PARSE_ERROR;
  183|      0|    }
  184|       |
  185|  57.1k|    fIsPublic = name.indexOf(gPercentPercent, 2, 0) != 0;
  186|       |
  187|  57.1k|    if (name.endsWith(gNoparse, 8)) {
  ------------------
  |  Branch (187:9): [True: 0, False: 57.1k]
  ------------------
  188|      0|        fIsParseable = false;
  189|      0|        name.truncate(name.length() - 8); // remove the @noparse from the name
  190|      0|    }
  191|       |
  192|       |    // all of the other members of NFRuleSet are initialized
  193|       |    // by parseRules()
  194|  57.1k|}
_ZN6icu_789NFRuleSet10parseRulesERNS_13UnicodeStringER10UErrorCode:
  198|  57.1k|{
  199|       |    // start by creating a Vector whose elements are Strings containing
  200|       |    // the descriptions of the rules (one rule per element).  The rules
  201|       |    // are separated by semicolons (there's no escape facility: ALL
  202|       |    // semicolons are rule delimiters)
  203|       |
  204|  57.1k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (204:9): [True: 0, False: 57.1k]
  ------------------
  205|      0|        return;
  206|      0|    }
  207|       |
  208|       |    // ensure we are starting with an empty rule list
  209|  57.1k|    rules.deleteAll();
  210|       |
  211|       |    // dlf - the original code kept a separate description array for no reason,
  212|       |    // so I got rid of it.  The loop was too complex so I simplified it.
  213|       |
  214|  57.1k|    UnicodeString currentDescription;
  215|  57.1k|    int32_t oldP = 0;
  216|  1.19M|    while (oldP < description.length()) {
  ------------------
  |  Branch (216:12): [True: 1.13M, False: 57.1k]
  ------------------
  217|  1.13M|        int32_t p = description.indexOf(gSemicolon, oldP);
  218|  1.13M|        if (p == -1) {
  ------------------
  |  Branch (218:13): [True: 0, False: 1.13M]
  ------------------
  219|      0|            p = description.length();
  220|      0|        }
  221|  1.13M|        currentDescription.setTo(description, oldP, p - oldP);
  222|  1.13M|        NFRule::makeRules(currentDescription, this, rules.last(), owner, rules, status);
  223|  1.13M|        oldP = p + 1;
  224|  1.13M|    }
  225|       |
  226|       |    // for rules that didn't specify a base value, their base values
  227|       |    // were initialized to 0.  Make another pass through the list and
  228|       |    // set all those rules' base values.  We also remove any special
  229|       |    // rules from the list and put them into their own member variables
  230|  57.1k|    int64_t defaultBaseValue = 0;
  231|       |
  232|       |    // (this isn't a for loop because we might be deleting items from
  233|       |    // the vector-- we want to make sure we only increment i when
  234|       |    // we _didn't_ delete anything from the vector)
  235|  57.1k|    int32_t rulesSize = rules.size();
  236|  1.59M|    for (int32_t i = 0; i < rulesSize; i++) {
  ------------------
  |  Branch (236:25): [True: 1.53M, False: 57.1k]
  ------------------
  237|  1.53M|        NFRule* rule = rules[i];
  238|  1.53M|        int64_t baseValue = rule->getBaseValue();
  239|       |
  240|  1.53M|        if (baseValue == 0) {
  ------------------
  |  Branch (240:13): [True: 45.9k, False: 1.48M]
  ------------------
  241|       |            // if the rule's base value is 0, fill in a default
  242|       |            // base value (this will be 1 plus the preceding
  243|       |            // rule's base value for regular rule sets, and the
  244|       |            // same as the preceding rule's base value in fraction
  245|       |            // rule sets)
  246|  45.9k|            rule->setBaseValue(defaultBaseValue, status);
  247|  45.9k|        }
  248|  1.48M|        else {
  249|       |            // if it's a regular rule that already knows its base value,
  250|       |            // check to make sure the rules are in order, and update
  251|       |            // the default base value for the next rule
  252|  1.48M|            if (baseValue < defaultBaseValue) {
  ------------------
  |  Branch (252:17): [True: 0, False: 1.48M]
  ------------------
  253|       |                // throw new IllegalArgumentException("Rules are not in order");
  254|      0|                status = U_PARSE_ERROR;
  255|      0|                return;
  256|      0|            }
  257|  1.48M|            defaultBaseValue = baseValue;
  258|  1.48M|        }
  259|  1.53M|        if (!fIsFractionRuleSet) {
  ------------------
  |  Branch (259:13): [True: 1.53M, False: 0]
  ------------------
  260|  1.53M|            ++defaultBaseValue;
  261|  1.53M|        }
  262|  1.53M|    }
  263|  57.1k|}
_ZN6icu_789NFRuleSet19setNonNumericalRuleEPNS_6NFRuleE:
  269|  48.7k|void NFRuleSet::setNonNumericalRule(NFRule *rule) {
  270|  48.7k|    switch (rule->getBaseValue()) {
  271|  23.8k|        case NFRule::kNegativeNumberRule:
  ------------------
  |  Branch (271:9): [True: 23.8k, False: 24.9k]
  ------------------
  272|  23.8k|            delete nonNumericalRules[NEGATIVE_RULE_INDEX];
  273|  23.8k|            nonNumericalRules[NEGATIVE_RULE_INDEX] = rule;
  274|  23.8k|            return;
  275|  24.9k|        case NFRule::kImproperFractionRule:
  ------------------
  |  Branch (275:9): [True: 24.9k, False: 23.8k]
  ------------------
  276|  24.9k|            setBestFractionRule(IMPROPER_FRACTION_RULE_INDEX, rule, true);
  277|  24.9k|            return;
  278|      0|        case NFRule::kProperFractionRule:
  ------------------
  |  Branch (278:9): [True: 0, False: 48.7k]
  ------------------
  279|      0|            setBestFractionRule(PROPER_FRACTION_RULE_INDEX, rule, true);
  280|      0|            return;
  281|      0|        case NFRule::kDefaultRule:
  ------------------
  |  Branch (281:9): [True: 0, False: 48.7k]
  ------------------
  282|      0|            setBestFractionRule(DEFAULT_RULE_INDEX, rule, true);
  283|      0|            return;
  284|      0|        case NFRule::kInfinityRule:
  ------------------
  |  Branch (284:9): [True: 0, False: 48.7k]
  ------------------
  285|      0|            delete nonNumericalRules[INFINITY_RULE_INDEX];
  286|      0|            nonNumericalRules[INFINITY_RULE_INDEX] = rule;
  287|      0|            return;
  288|      0|        case NFRule::kNaNRule:
  ------------------
  |  Branch (288:9): [True: 0, False: 48.7k]
  ------------------
  289|      0|            delete nonNumericalRules[NAN_RULE_INDEX];
  290|      0|            nonNumericalRules[NAN_RULE_INDEX] = rule;
  291|      0|            return;
  292|      0|        case NFRule::kNoBase:
  ------------------
  |  Branch (292:9): [True: 0, False: 48.7k]
  ------------------
  293|      0|        case NFRule::kOtherRule:
  ------------------
  |  Branch (293:9): [True: 0, False: 48.7k]
  ------------------
  294|      0|        default:
  ------------------
  |  Branch (294:9): [True: 0, False: 48.7k]
  ------------------
  295|       |            // If we do not remember the rule inside the object.
  296|       |            // delete it here to prevent memory leak.
  297|      0|            delete rule;
  298|      0|            return;
  299|  48.7k|    }
  300|  48.7k|}
_ZN6icu_789NFRuleSet19setBestFractionRuleEiPNS_6NFRuleEa:
  309|  24.9k|void NFRuleSet::setBestFractionRule(int32_t originalIndex, NFRule *newRule, UBool rememberRule) {
  310|  24.9k|    if (rememberRule) {
  ------------------
  |  Branch (310:9): [True: 24.9k, False: 0]
  ------------------
  311|  24.9k|        fractionRules.add(newRule);
  312|  24.9k|    }
  313|  24.9k|    NFRule *bestResult = nonNumericalRules[originalIndex];
  314|  24.9k|    if (bestResult == nullptr) {
  ------------------
  |  Branch (314:9): [True: 24.9k, False: 0]
  ------------------
  315|  24.9k|        nonNumericalRules[originalIndex] = newRule;
  316|  24.9k|    }
  317|      0|    else {
  318|       |        // We have more than one. Which one is better?
  319|      0|        const DecimalFormatSymbols *decimalFormatSymbols = owner->getDecimalFormatSymbols();
  320|      0|        if (decimalFormatSymbols->getSymbol(DecimalFormatSymbols::kDecimalSeparatorSymbol).charAt(0)
  ------------------
  |  Branch (320:13): [True: 0, False: 0]
  ------------------
  321|      0|            == newRule->getDecimalPoint())
  322|      0|        {
  323|      0|            nonNumericalRules[originalIndex] = newRule;
  324|      0|        }
  325|       |        // else leave it alone
  326|      0|    }
  327|  24.9k|}
_ZN6icu_789NFRuleSetD2Ev:
  330|  57.0k|{
  331|   399k|    for (int i = 0; i < NON_NUMERICAL_RULE_LENGTH; i++) {
  ------------------
  |  Branch (331:21): [True: 342k, False: 57.0k]
  ------------------
  332|   342k|        if (i != IMPROPER_FRACTION_RULE_INDEX
  ------------------
  |  Branch (332:13): [True: 285k, False: 57.0k]
  ------------------
  333|   342k|            && i != PROPER_FRACTION_RULE_INDEX
  ------------------
  |  Branch (333:16): [True: 228k, False: 57.0k]
  ------------------
  334|   342k|            && i != DEFAULT_RULE_INDEX)
  ------------------
  |  Branch (334:16): [True: 171k, False: 57.0k]
  ------------------
  335|   171k|        {
  336|   171k|            delete nonNumericalRules[i];
  337|   171k|        }
  338|       |        // else it will be deleted via NFRuleList fractionRules
  339|   342k|    }
  340|  57.0k|}
_ZNK6icu_789NFRuleSet6formatElRNS_13UnicodeStringEiiR10UErrorCode:
  409|  1.19k|{
  410|  1.19k|    if (recursionCount >= RECURSION_LIMIT) {
  ------------------
  |  |  405|  1.19k|#define RECURSION_LIMIT 64
  ------------------
  |  Branch (410:9): [True: 0, False: 1.19k]
  ------------------
  411|       |        // stop recursion
  412|      0|        status = U_INVALID_STATE_ERROR;
  413|      0|        return;
  414|      0|    }
  415|  1.19k|    const NFRule *rule = findNormalRule(number);
  416|  1.19k|    if (rule) { // else error, but can't report it
  ------------------
  |  Branch (416:9): [True: 1.19k, False: 0]
  ------------------
  417|  1.19k|        rule->doFormat(number, toAppendTo, pos, ++recursionCount, status);
  418|  1.19k|    }
  419|  1.19k|}
_ZNK6icu_789NFRuleSet14findNormalRuleEl:
  496|  1.19k|{
  497|       |    // if this is a fraction rule set, use findFractionRuleSetRule()
  498|       |    // to find the rule (we should only go into this clause if the
  499|       |    // value is 0)
  500|  1.19k|    if (fIsFractionRuleSet) {
  ------------------
  |  Branch (500:9): [True: 0, False: 1.19k]
  ------------------
  501|      0|        return findFractionRuleSetRule(static_cast<double>(number));
  502|      0|    }
  503|       |
  504|       |    // if the number is negative, return the negative-number rule
  505|       |    // (if there isn't one, pretend the number is positive)
  506|  1.19k|    if (number < 0) {
  ------------------
  |  Branch (506:9): [True: 0, False: 1.19k]
  ------------------
  507|      0|        if (nonNumericalRules[NEGATIVE_RULE_INDEX]) {
  ------------------
  |  Branch (507:13): [True: 0, False: 0]
  ------------------
  508|      0|            return nonNumericalRules[NEGATIVE_RULE_INDEX];
  509|      0|        } else {
  510|      0|            number = -number;
  511|      0|        }
  512|      0|    }
  513|       |
  514|       |    // we have to repeat the preceding two checks, even though we
  515|       |    // do them in findRule(), because the version of format() that
  516|       |    // takes a long bypasses findRule() and goes straight to this
  517|       |    // function.  This function does skip the fraction rules since
  518|       |    // we know the value is an integer (it also skips the default
  519|       |    // rule, since it's considered a fraction rule.  Skipping the
  520|       |    // default rule in this function is also how we avoid infinite
  521|       |    // recursion)
  522|       |
  523|       |    // {dlf} unfortunately this fails if there are no rules except
  524|       |    // special rules.  If there are no rules, use the default rule.
  525|       |
  526|       |    // binary-search the rule list for the applicable rule
  527|       |    // (a rule is used for all values from its base value to
  528|       |    // the next rule's base value)
  529|  1.19k|    int32_t hi = rules.size();
  530|  1.19k|    if (hi > 0) {
  ------------------
  |  Branch (530:9): [True: 1.19k, False: 0]
  ------------------
  531|  1.19k|        int32_t lo = 0;
  532|       |
  533|  7.33k|        while (lo < hi) {
  ------------------
  |  Branch (533:16): [True: 6.90k, False: 430]
  ------------------
  534|  6.90k|            int32_t mid = (lo + hi) / 2;
  535|  6.90k|            if (rules[mid]->getBaseValue() == number) {
  ------------------
  |  Branch (535:17): [True: 769, False: 6.13k]
  ------------------
  536|    769|                return rules[mid];
  537|    769|            }
  538|  6.13k|            else if (rules[mid]->getBaseValue() > number) {
  ------------------
  |  Branch (538:22): [True: 4.26k, False: 1.87k]
  ------------------
  539|  4.26k|                hi = mid;
  540|  4.26k|            }
  541|  1.87k|            else {
  542|  1.87k|                lo = mid + 1;
  543|  1.87k|            }
  544|  6.90k|        }
  545|    430|        if (hi == 0) { // bad rule set, minimum base > 0
  ------------------
  |  Branch (545:13): [True: 0, False: 430]
  ------------------
  546|      0|            return nullptr; // want to throw exception here
  547|      0|        }
  548|       |
  549|    430|        NFRule *result = rules[hi - 1];
  550|       |
  551|       |        // use shouldRollBack() to see whether we need to invoke the
  552|       |        // rollback rule (see shouldRollBack()'s documentation for
  553|       |        // an explanation of the rollback rule).  If we do, roll back
  554|       |        // one rule and return that one instead of the one we'd normally
  555|       |        // return
  556|    430|        if (result->shouldRollBack(number)) {
  ------------------
  |  Branch (556:13): [True: 0, False: 430]
  ------------------
  557|      0|            if (hi == 1) { // bad rule set, no prior rule to rollback to from this base
  ------------------
  |  Branch (557:17): [True: 0, False: 0]
  ------------------
  558|      0|                return nullptr;
  559|      0|            }
  560|      0|            result = rules[hi - 2];
  561|      0|        }
  562|    430|        return result;
  563|    430|    }
  564|       |    // else use the default rule
  565|      0|    return nonNumericalRules[DEFAULT_RULE_INDEX];
  566|  1.19k|}
_ZN6icu_7810util64_powEjt:
  850|  2.26M|uint64_t util64_pow(uint32_t base, uint16_t exponent)  {
  851|  2.26M|    if (base == 0) {
  ------------------
  |  Branch (851:9): [True: 0, False: 2.26M]
  ------------------
  852|      0|        return 0;
  853|      0|    }
  854|  2.26M|    uint64_t result = 1;
  855|  2.26M|    uint64_t pow = base;
  856|  4.44M|    while (true) {
  ------------------
  |  Branch (856:12): [Folded - Ignored]
  ------------------
  857|  4.44M|        if ((exponent & 1) == 1) {
  ------------------
  |  Branch (857:13): [True: 2.89M, False: 1.54M]
  ------------------
  858|  2.89M|            result *= pow;
  859|  2.89M|        }
  860|  4.44M|        exponent >>= 1;
  861|  4.44M|        if (exponent == 0) {
  ------------------
  |  Branch (861:13): [True: 2.26M, False: 2.18M]
  ------------------
  862|  2.26M|            break;
  863|  2.26M|        }
  864|  2.18M|        pow *= pow;
  865|  2.18M|    }
  866|  2.26M|    return result;
  867|  2.26M|}

_ZNK6icu_789NFRuleSet8isPublicEv:
   46|  3.59k|    UBool isPublic() const { return fIsPublic; }
_ZNK6icu_789NFRuleSet7getNameERNS_13UnicodeStringE:
   52|  1.91k|    void  getName(UnicodeString& result) const { result.setTo(name); }
_ZNK6icu_789NFRuleSet7isNamedERKNS_13UnicodeStringE:
   53|  2.96M|    UBool isNamed(const UnicodeString& _name) const { return this->name == _name; }
_ZNK6icu_789NFRuleSet17isFractionRuleSetEv:
   50|  1.18M|    UBool isFractionRuleSet() const { return fIsFractionRuleSet; }
_ZNK6icu_789NFRuleSet8getOwnerEv:
   64|   248k|    const RuleBasedNumberFormat *getOwner() const { return owner; }

_ZN6icu_786NFRuleC2EPKNS_21RuleBasedNumberFormatERKNS_13UnicodeStringER10UErrorCode:
   38|  1.58M|  : baseValue(static_cast<int32_t>(0))
   39|  1.58M|  , radix(10)
   40|  1.58M|  , exponent(0)
   41|  1.58M|  , decimalPoint(0)
   42|  1.58M|  , fRuleText(_ruleText)
   43|  1.58M|  , sub1(nullptr)
   44|  1.58M|  , sub2(nullptr)
   45|  1.58M|  , formatter(_rbnf)
   46|  1.58M|  , rulePatternFormat(nullptr)
   47|  1.58M|{
   48|  1.58M|    if (!fRuleText.isEmpty()) {
  ------------------
  |  Branch (48:9): [True: 1.14M, False: 445k]
  ------------------
   49|  1.14M|        parseRuleDescriptor(fRuleText, status);
   50|  1.14M|    }
   51|  1.58M|}
_ZN6icu_786NFRuleD2Ev:
   54|  1.58M|{
   55|  1.58M|    if (sub1 != sub2) {
  ------------------
  |  Branch (55:9): [True: 810k, False: 774k]
  ------------------
   56|   810k|        delete sub2;
   57|   810k|        sub2 = nullptr;
   58|   810k|    }
   59|  1.58M|    delete sub1;
   60|  1.58M|    sub1 = nullptr;
   61|  1.58M|    delete rulePatternFormat;
   62|  1.58M|    rulePatternFormat = nullptr;
   63|  1.58M|}
_ZN6icu_786NFRule9makeRulesERNS_13UnicodeStringEPNS_9NFRuleSetEPKS0_PKNS_21RuleBasedNumberFormatERNS_10NFRuleListER10UErrorCode:
  115|  1.13M|{
  116|  1.13M|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (116:9): [True: 0, False: 1.13M]
  ------------------
  117|      0|        return;
  118|      0|    }
  119|       |    // we know we're making at least one rule, so go ahead and
  120|       |    // new it up and initialize its basevalue and divisor
  121|       |    // (this also strips the rule descriptor, if any, off the
  122|       |    // description string)
  123|  1.13M|    LocalPointer<NFRule> rule1(new NFRule(rbnf, description, status));
  124|  1.13M|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (124:9): [True: 0, False: 1.13M]
  ------------------
  125|      0|        return;
  126|      0|    }
  127|       |    /* test for nullptr */
  128|  1.13M|    if (rule1.isNull()) {
  ------------------
  |  Branch (128:9): [True: 0, False: 1.13M]
  ------------------
  129|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  130|      0|        return;
  131|      0|    }
  132|  1.13M|    description = rule1->fRuleText;
  133|       |
  134|       |    // check the description to see whether there's text enclosed
  135|       |    // in brackets
  136|  1.13M|    int32_t brack1 = description.indexOf(gLeftBracket);
  137|  1.13M|    int32_t brack2 = brack1 < 0 ? -1 : description.indexOf(gRightBracket);
  ------------------
  |  Branch (137:22): [True: 683k, False: 452k]
  ------------------
  138|       |
  139|       |    // if the description doesn't contain a matched pair of brackets,
  140|       |    // or if it's of a type that doesn't recognize bracketed text,
  141|       |    // then leave the description alone, initialize the rule's
  142|       |    // rule text and substitutions, and return that rule
  143|  1.13M|    if (brack2 < 0 || brack1 > brack2
  ------------------
  |  Branch (143:9): [True: 683k, False: 452k]
  |  Branch (143:23): [True: 0, False: 452k]
  ------------------
  144|  1.13M|        || rule1->getType() == kProperFractionRule
  ------------------
  |  Branch (144:12): [True: 0, False: 452k]
  ------------------
  145|  1.13M|        || rule1->getType() == kNegativeNumberRule
  ------------------
  |  Branch (145:12): [True: 0, False: 452k]
  ------------------
  146|  1.13M|        || rule1->getType() == kInfinityRule
  ------------------
  |  Branch (146:12): [True: 0, False: 452k]
  ------------------
  147|  1.13M|        || rule1->getType() == kNaNRule)
  ------------------
  |  Branch (147:12): [True: 0, False: 452k]
  ------------------
  148|   683k|    {
  149|   683k|        rule1->extractSubstitutions(owner, description, predecessor, status);
  150|   683k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (150:13): [True: 0, False: 683k]
  ------------------
  151|      0|            return;
  152|      0|        }
  153|   683k|    }
  154|   452k|    else {
  155|       |        // if the description does contain a matched pair of brackets,
  156|       |        // then it's really shorthand for two rules (with one exception)
  157|   452k|        LocalPointer<NFRule> rule2;
  158|   452k|        UnicodeString sbuf;
  159|   452k|        int32_t orElseOp = description.indexOf(gVerticalLine);
  160|       |
  161|       |        // we'll actually only split the rule into two rules if its
  162|       |        // base value is an even multiple of its divisor (or it's one
  163|       |        // of the special rules)
  164|   452k|        if ((rule1->baseValue > 0
  ------------------
  |  Branch (164:14): [True: 452k, False: 0]
  ------------------
  165|   452k|            && (rule1->radix != 0) // ICU-23109 Ensure next line won't "% 0"
  ------------------
  |  Branch (165:16): [True: 452k, False: 0]
  ------------------
  166|   452k|            && (rule1->baseValue % util64_pow(rule1->radix, rule1->exponent)) == 0)
  ------------------
  |  Branch (166:16): [True: 445k, False: 6.74k]
  ------------------
  167|   452k|            || rule1->getType() == kImproperFractionRule
  ------------------
  |  Branch (167:16): [True: 0, False: 6.74k]
  ------------------
  168|   452k|            || rule1->getType() == kDefaultRule) {
  ------------------
  |  Branch (168:16): [True: 0, False: 6.74k]
  ------------------
  169|       |
  170|       |            // if it passes that test, new up the second rule.  If the
  171|       |            // rule set both rules will belong to is a fraction rule
  172|       |            // set, they both have the same base value; otherwise,
  173|       |            // increment the original rule's base value ("rule1" actually
  174|       |            // goes SECOND in the rule set's rule list)
  175|   445k|            rule2.adoptInstead(new NFRule(rbnf, UnicodeString(), status));
  176|   445k|            if (U_FAILURE(status)) {
  ------------------
  |  Branch (176:17): [True: 0, False: 445k]
  ------------------
  177|      0|                return;
  178|      0|            }
  179|       |            /* test for nullptr */
  180|   445k|            if (rule2.isNull()) {
  ------------------
  |  Branch (180:17): [True: 0, False: 445k]
  ------------------
  181|      0|                status = U_MEMORY_ALLOCATION_ERROR;
  182|      0|                return;
  183|      0|            }
  184|   445k|            if (rule1->baseValue >= 0) {
  ------------------
  |  Branch (184:17): [True: 445k, False: 0]
  ------------------
  185|   445k|                rule2->baseValue = rule1->baseValue;
  186|   445k|                if (!owner->isFractionRuleSet()) {
  ------------------
  |  Branch (186:21): [True: 445k, False: 0]
  ------------------
  187|   445k|                    ++rule1->baseValue;
  188|   445k|                }
  189|   445k|            }
  190|       |
  191|       |            // if the description began with "x.x" and contains bracketed
  192|       |            // text, it describes both the improper fraction rule and
  193|       |            // the proper fraction rule
  194|      0|            else if (rule1->getType() == kImproperFractionRule) {
  ------------------
  |  Branch (194:22): [True: 0, False: 0]
  ------------------
  195|      0|                rule2->setType(kProperFractionRule);
  196|      0|            }
  197|       |
  198|       |            // if the description began with "x.0" and contains bracketed
  199|       |            // text, it describes both the default rule and the
  200|       |            // improper fraction rule
  201|      0|            else if (rule1->getType() == kDefaultRule) {
  ------------------
  |  Branch (201:22): [True: 0, False: 0]
  ------------------
  202|      0|                rule2->baseValue = rule1->baseValue;
  203|      0|                rule1->setType(kImproperFractionRule);
  204|      0|            }
  205|       |
  206|       |            // both rules have the same radix and exponent (i.e., the
  207|       |            // same divisor)
  208|   445k|            rule2->radix = rule1->radix;
  209|   445k|            rule2->exponent = rule1->exponent;
  210|       |
  211|       |            // By default, rule2's rule text omits the stuff in brackets,
  212|       |            // unless it contains a | between the brackets.
  213|       |            // Initialize its rule text and substitutions accordingly.
  214|   445k|            sbuf.append(description, 0, brack1);
  215|   445k|            if (orElseOp >= 0) {
  ------------------
  |  Branch (215:17): [True: 0, False: 445k]
  ------------------
  216|      0|                sbuf.append(description, orElseOp + 1, brack2 - orElseOp - 1);
  217|      0|            }
  218|   445k|            if (brack2 + 1 < description.length()) {
  ------------------
  |  Branch (218:17): [True: 0, False: 445k]
  ------------------
  219|      0|                sbuf.append(description, brack2 + 1, description.length() - brack2 - 1);
  220|      0|            }
  221|   445k|            rule2->extractSubstitutions(owner, sbuf, predecessor, status);
  222|   445k|            if (U_FAILURE(status)) {
  ------------------
  |  Branch (222:17): [True: 0, False: 445k]
  ------------------
  223|      0|                return;
  224|      0|            }
  225|   445k|        }
  226|       |
  227|       |        // rule1's text includes the text in the brackets but omits
  228|       |        // the brackets themselves: initialize _its_ rule text and
  229|       |        // substitutions accordingly
  230|   452k|        sbuf.setTo(description, 0, brack1);
  231|   452k|        if (orElseOp >= 0) {
  ------------------
  |  Branch (231:13): [True: 0, False: 452k]
  ------------------
  232|      0|            sbuf.append(description, brack1 + 1, orElseOp - brack1 - 1);
  233|      0|        }
  234|   452k|        else {
  235|   452k|            sbuf.append(description, brack1 + 1, brack2 - brack1 - 1);
  236|   452k|        }
  237|   452k|        if (brack2 + 1 < description.length()) {
  ------------------
  |  Branch (237:13): [True: 0, False: 452k]
  ------------------
  238|      0|            sbuf.append(description, brack2 + 1, description.length() - brack2 - 1);
  239|      0|        }
  240|   452k|        rule1->extractSubstitutions(owner, sbuf, predecessor, status);
  241|   452k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (241:13): [True: 0, False: 452k]
  ------------------
  242|      0|            return;
  243|      0|        }
  244|       |
  245|       |        // if we only have one rule, return it; if we have two, return
  246|       |        // a two-element array containing them (notice that rule2 goes
  247|       |        // BEFORE rule1 in the list: in all cases, rule2 OMITS the
  248|       |        // material in the brackets and rule1 INCLUDES the material
  249|       |        // in the brackets)
  250|   452k|        if (!rule2.isNull()) {
  ------------------
  |  Branch (250:13): [True: 445k, False: 6.74k]
  ------------------
  251|   445k|            if (rule2->baseValue >= kNoBase) {
  ------------------
  |  Branch (251:17): [True: 445k, False: 0]
  ------------------
  252|   445k|                rules.add(rule2.orphan());
  253|   445k|            }
  254|      0|            else {
  255|      0|                owner->setNonNumericalRule(rule2.orphan());
  256|      0|            }
  257|   445k|        }
  258|   452k|    }
  259|  1.13M|    if (rule1->baseValue >= kNoBase) {
  ------------------
  |  Branch (259:9): [True: 1.08M, False: 48.7k]
  ------------------
  260|  1.08M|        rules.add(rule1.orphan());
  261|  1.08M|    }
  262|  48.7k|    else {
  263|  48.7k|        owner->setNonNumericalRule(rule1.orphan());
  264|  48.7k|    }
  265|  1.13M|}
_ZN6icu_786NFRule19parseRuleDescriptorERNS_13UnicodeStringER10UErrorCode:
  281|  1.14M|{
  282|       |    // the description consists of a rule descriptor and a rule body,
  283|       |    // separated by a colon.  The rule descriptor is optional.  If
  284|       |    // it's omitted, just set the base value to 0.
  285|  1.14M|    int32_t p = description.indexOf(gColon);
  286|  1.14M|    if (p != -1) {
  ------------------
  |  Branch (286:9): [True: 1.14M, False: 0]
  ------------------
  287|       |        // copy the descriptor out into its own string and strip it,
  288|       |        // along with any trailing whitespace, out of the original
  289|       |        // description
  290|  1.14M|        UnicodeString descriptor;
  291|  1.14M|        descriptor.setTo(description, 0, p);
  292|       |
  293|  1.14M|        ++p;
  294|  2.28M|        while (p < description.length() && PatternProps::isWhiteSpace(description.charAt(p))) {
  ------------------
  |  Branch (294:16): [True: 2.28M, False: 0]
  |  Branch (294:44): [True: 1.14M, False: 1.14M]
  ------------------
  295|  1.14M|            ++p;
  296|  1.14M|        }
  297|  1.14M|        description.removeBetween(0, p);
  298|       |
  299|       |        // check first to see if the rule descriptor matches the token
  300|       |        // for one of the special rules.  If it does, set the base
  301|       |        // value to the correct identifier value
  302|  1.14M|        int descriptorLength = descriptor.length();
  303|  1.14M|        char16_t firstChar = descriptor.charAt(0);
  304|  1.14M|        char16_t lastChar = descriptor.charAt(descriptorLength - 1);
  305|  1.14M|        if (firstChar >= gZero && firstChar <= gNine && lastChar != gX) {
  ------------------
  |  Branch (305:13): [True: 1.11M, False: 23.8k]
  |  Branch (305:35): [True: 1.08M, False: 29.2k]
  |  Branch (305:57): [True: 1.08M, False: 0]
  ------------------
  306|       |            // if the rule descriptor begins with a digit, it's a descriptor
  307|       |            // for a normal rule
  308|       |            // since we don't have Long.parseLong, and this isn't much work anyway,
  309|       |            // just build up the value as we encounter the digits.
  310|  1.08M|            int64_t val = 0;
  311|  1.08M|            p = 0;
  312|  1.08M|            char16_t c = gSpace;
  313|       |
  314|       |            // begin parsing the descriptor: copy digits
  315|       |            // into "tempValue", skip periods, commas, and spaces,
  316|       |            // stop on a slash or > sign (or at the end of the string),
  317|       |            // and throw an exception on any other character
  318|  4.21M|            while (p < descriptorLength) {
  ------------------
  |  Branch (318:20): [True: 3.15M, False: 1.06M]
  ------------------
  319|  3.15M|                c = descriptor.charAt(p);
  320|  3.15M|                if (c >= gZero && c <= gNine) {
  ------------------
  |  Branch (320:21): [True: 3.13M, False: 23.6k]
  |  Branch (320:35): [True: 3.13M, False: 0]
  ------------------
  321|  3.13M|                    int64_t digit = static_cast<int64_t>(c - gZero);
  322|  3.13M|                    if ((val > 0 && val > (INT64_MAX - digit) / 10) ||
  ------------------
  |  Branch (322:26): [True: 2.04M, False: 1.08M]
  |  Branch (322:37): [True: 0, False: 2.04M]
  ------------------
  323|  3.13M|                        (val < 0 && val < (INT64_MIN - digit) / 10)) {
  ------------------
  |  Branch (323:26): [True: 0, False: 3.13M]
  |  Branch (323:37): [True: 0, False: 0]
  ------------------
  324|       |                        // out of int64_t range
  325|      0|                        status = U_PARSE_ERROR;
  326|      0|                        return;
  327|      0|                    }
  328|  3.13M|                    val = val * 10 + digit;
  329|  3.13M|                }
  330|  23.6k|                else if (c == gSlash || c == gGreaterThan) {
  ------------------
  |  Branch (330:26): [True: 23.6k, False: 0]
  |  Branch (330:41): [True: 0, False: 0]
  ------------------
  331|  23.6k|                    break;
  332|  23.6k|                }
  333|      0|                else if (PatternProps::isWhiteSpace(c) || c == gComma || c == gDot) {
  ------------------
  |  Branch (333:26): [True: 0, False: 0]
  |  Branch (333:59): [True: 0, False: 0]
  |  Branch (333:74): [True: 0, False: 0]
  ------------------
  334|      0|                }
  335|      0|                else {
  336|       |                    // throw new IllegalArgumentException("Illegal character in rule descriptor");
  337|      0|                    status = U_PARSE_ERROR;
  338|      0|                    return;
  339|      0|                }
  340|  3.13M|                ++p;
  341|  3.13M|            }
  342|       |
  343|       |            // we have the base value, so set it
  344|  1.08M|            setBaseValue(val, status);
  345|       |
  346|       |            // if we stopped the previous loop on a slash, we're
  347|       |            // now parsing the rule's radix.  Again, accumulate digits
  348|       |            // in tempValue, skip punctuation, stop on a > mark, and
  349|       |            // throw an exception on anything else
  350|  1.08M|            if (c == gSlash) {
  ------------------
  |  Branch (350:17): [True: 23.6k, False: 1.06M]
  ------------------
  351|  23.6k|                val = 0;
  352|  23.6k|                ++p;
  353|   102k|                while (p < descriptorLength) {
  ------------------
  |  Branch (353:24): [True: 79.2k, False: 23.6k]
  ------------------
  354|  79.2k|                    c = descriptor.charAt(p);
  355|  79.2k|                    if (c >= gZero && c <= gNine) {
  ------------------
  |  Branch (355:25): [True: 79.2k, False: 0]
  |  Branch (355:39): [True: 79.2k, False: 0]
  ------------------
  356|  79.2k|                        int64_t digit = static_cast<int64_t>(c - gZero);
  357|  79.2k|                        if ((val > 0 && val > (INT64_MAX - digit) / 10) ||
  ------------------
  |  Branch (357:30): [True: 55.6k, False: 23.6k]
  |  Branch (357:41): [True: 0, False: 55.6k]
  ------------------
  358|  79.2k|                            (val < 0 && val < (INT64_MIN - digit) / 10)) {
  ------------------
  |  Branch (358:30): [True: 0, False: 79.2k]
  |  Branch (358:41): [True: 0, False: 0]
  ------------------
  359|       |                            // out of int64_t range
  360|      0|                            status = U_PARSE_ERROR;
  361|      0|                            return;
  362|      0|                        }
  363|  79.2k|                        val = val * 10 + digit;
  364|  79.2k|                    }
  365|      0|                    else if (c == gGreaterThan) {
  ------------------
  |  Branch (365:30): [True: 0, False: 0]
  ------------------
  366|      0|                        break;
  367|      0|                    }
  368|      0|                    else if (PatternProps::isWhiteSpace(c) || c == gComma || c == gDot) {
  ------------------
  |  Branch (368:30): [True: 0, False: 0]
  |  Branch (368:63): [True: 0, False: 0]
  |  Branch (368:78): [True: 0, False: 0]
  ------------------
  369|      0|                    }
  370|      0|                    else {
  371|       |                        // throw new IllegalArgumentException("Illegal character is rule descriptor");
  372|      0|                        status = U_PARSE_ERROR;
  373|      0|                        return;
  374|      0|                    }
  375|  79.2k|                    ++p;
  376|  79.2k|                }
  377|       |
  378|       |                // tempValue now contain's the rule's radix.  Set it
  379|       |                // accordingly, and recalculate the rule's exponent
  380|  23.6k|                radix = static_cast<int32_t>(val);
  381|  23.6k|                if (radix == 0) {
  ------------------
  |  Branch (381:21): [True: 0, False: 23.6k]
  ------------------
  382|       |                    // throw new IllegalArgumentException("Rule can't have radix of 0");
  383|      0|                    status = U_PARSE_ERROR;
  384|      0|                }
  385|       |
  386|  23.6k|                exponent = expectedExponent();
  387|  23.6k|            }
  388|       |
  389|       |            // if we stopped the previous loop on a > sign, then continue
  390|       |            // for as long as we still see > signs.  For each one,
  391|       |            // decrement the exponent (unless the exponent is already 0).
  392|       |            // If we see another character before reaching the end of
  393|       |            // the descriptor, that's also a syntax error.
  394|  1.08M|            if (c == gGreaterThan) {
  ------------------
  |  Branch (394:17): [True: 0, False: 1.08M]
  ------------------
  395|      0|                while (p < descriptor.length()) {
  ------------------
  |  Branch (395:24): [True: 0, False: 0]
  ------------------
  396|      0|                    c = descriptor.charAt(p);
  397|      0|                    if (c == gGreaterThan && exponent > 0) {
  ------------------
  |  Branch (397:25): [True: 0, False: 0]
  |  Branch (397:46): [True: 0, False: 0]
  ------------------
  398|      0|                        --exponent;
  399|      0|                    } else {
  400|       |                        // throw new IllegalArgumentException("Illegal character in rule descriptor");
  401|      0|                        status = U_PARSE_ERROR;
  402|      0|                        return;
  403|      0|                    }
  404|      0|                    ++p;
  405|      0|                }
  406|      0|            }
  407|  1.08M|        }
  408|  53.0k|        else if (0 == descriptor.compare(gMinusX, 2)) {
  ------------------
  |  Branch (408:18): [True: 23.8k, False: 29.2k]
  ------------------
  409|  23.8k|            setType(kNegativeNumberRule);
  410|  23.8k|        }
  411|  29.2k|        else if (descriptorLength == 3) {
  ------------------
  |  Branch (411:18): [True: 29.2k, False: 0]
  ------------------
  412|  29.2k|            if (firstChar == gZero && lastChar == gX) {
  ------------------
  |  Branch (412:17): [True: 0, False: 29.2k]
  |  Branch (412:39): [True: 0, False: 0]
  ------------------
  413|      0|                setBaseValue(kProperFractionRule, status);
  414|      0|                decimalPoint = descriptor.charAt(1);
  415|      0|            }
  416|  29.2k|            else if (firstChar == gX && lastChar == gX) {
  ------------------
  |  Branch (416:22): [True: 24.9k, False: 4.34k]
  |  Branch (416:41): [True: 24.9k, False: 0]
  ------------------
  417|  24.9k|                setBaseValue(kImproperFractionRule, status);
  418|  24.9k|                decimalPoint = descriptor.charAt(1);
  419|  24.9k|            }
  420|  4.34k|            else if (firstChar == gX && lastChar == gZero) {
  ------------------
  |  Branch (420:22): [True: 0, False: 4.34k]
  |  Branch (420:41): [True: 0, False: 0]
  ------------------
  421|      0|                setBaseValue(kDefaultRule, status);
  422|      0|                decimalPoint = descriptor.charAt(1);
  423|      0|            }
  424|  4.34k|            else if (descriptor.compare(gNaN, 3) == 0) {
  ------------------
  |  Branch (424:22): [True: 2.17k, False: 2.17k]
  ------------------
  425|  2.17k|                setBaseValue(kNaNRule, status);
  426|  2.17k|            }
  427|  2.17k|            else if (descriptor.compare(gInf, 3) == 0) {
  ------------------
  |  Branch (427:22): [True: 2.17k, False: 0]
  ------------------
  428|  2.17k|                setBaseValue(kInfinityRule, status);
  429|  2.17k|            }
  430|  29.2k|        }
  431|  1.14M|    }
  432|       |    // else use the default base value for now.
  433|       |
  434|       |    // finally, if the rule body begins with an apostrophe, strip it off
  435|       |    // (this is generally used to put whitespace at the beginning of
  436|       |    // a rule's rule text)
  437|  1.14M|    if (!description.isEmpty() && description.charAt(0) == gTick) {
  ------------------
  |  Branch (437:9): [True: 1.14M, False: 0]
  |  Branch (437:35): [True: 0, False: 1.14M]
  ------------------
  438|      0|        description.removeBetween(0, 1);
  439|      0|    }
  440|       |
  441|       |    // return the description with all the stuff we've just waded through
  442|       |    // stripped off the front.  It now contains just the rule body.
  443|       |    // return description;
  444|  1.14M|}
_ZN6icu_786NFRule20extractSubstitutionsEPKNS_9NFRuleSetERKNS_13UnicodeStringEPKS0_R10UErrorCode:
  459|  1.58M|{
  460|  1.58M|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (460:9): [True: 0, False: 1.58M]
  ------------------
  461|      0|        return;
  462|      0|    }
  463|  1.58M|    fRuleText = ruleText;
  464|  1.58M|    sub1 = extractSubstitution(ruleSet, predecessor, status);
  465|  1.58M|    if (sub1 == nullptr) {
  ------------------
  |  Branch (465:9): [True: 770k, False: 811k]
  ------------------
  466|       |        // Small optimization. There is no need to create a redundant NullSubstitution.
  467|   770k|        sub2 = nullptr;
  468|   770k|    }
  469|   811k|    else {
  470|   811k|        sub2 = extractSubstitution(ruleSet, predecessor, status);
  471|   811k|    }
  472|  1.58M|    int32_t pluralRuleStart = fRuleText.indexOf(gDollarOpenParenthesis, -1, 0);
  473|  1.58M|    int32_t pluralRuleEnd = (pluralRuleStart >= 0 ? fRuleText.indexOf(gClosedParenthesisDollar, -1, pluralRuleStart) : -1);
  ------------------
  |  Branch (473:30): [True: 0, False: 1.58M]
  ------------------
  474|  1.58M|    if (pluralRuleEnd >= 0) {
  ------------------
  |  Branch (474:9): [True: 0, False: 1.58M]
  ------------------
  475|      0|        int32_t endType = fRuleText.indexOf(gComma, pluralRuleStart);
  476|      0|        if (endType < 0) {
  ------------------
  |  Branch (476:13): [True: 0, False: 0]
  ------------------
  477|      0|            status = U_PARSE_ERROR;
  478|      0|            return;
  479|      0|        }
  480|      0|        UnicodeString type(fRuleText.tempSubString(pluralRuleStart + 2, endType - pluralRuleStart - 2));
  481|      0|        UPluralType pluralType;
  482|      0|        if (type.startsWith(UNICODE_STRING_SIMPLE("cardinal"))) {
  ------------------
  |  |  135|      0|#define UNICODE_STRING_SIMPLE(cs) UNICODE_STRING(cs, -1)
  |  |  ------------------
  |  |  |  |  121|      0|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  |  |  ------------------
  ------------------
  |  Branch (482:13): [True: 0, False: 0]
  ------------------
  483|      0|            pluralType = UPLURAL_TYPE_CARDINAL;
  484|      0|        }
  485|      0|        else if (type.startsWith(UNICODE_STRING_SIMPLE("ordinal"))) {
  ------------------
  |  |  135|      0|#define UNICODE_STRING_SIMPLE(cs) UNICODE_STRING(cs, -1)
  |  |  ------------------
  |  |  |  |  121|      0|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  |  |  ------------------
  ------------------
  |  Branch (485:18): [True: 0, False: 0]
  ------------------
  486|      0|            pluralType = UPLURAL_TYPE_ORDINAL;
  487|      0|        }
  488|      0|        else {
  489|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  490|      0|            return;
  491|      0|        }
  492|      0|        rulePatternFormat = formatter->createPluralFormat(pluralType,
  493|      0|                fRuleText.tempSubString(endType + 1, pluralRuleEnd - endType - 1), status);
  494|      0|    }
  495|  1.58M|}
_ZN6icu_786NFRule19extractSubstitutionEPKNS_9NFRuleSetEPKS0_R10UErrorCode:
  513|  2.39M|{
  514|  2.39M|    NFSubstitution* result = nullptr;
  515|       |
  516|       |    // search the rule's rule text for the first two characters of
  517|       |    // a substitution token
  518|  2.39M|    int32_t subStart = indexOfAnyRulePrefix();
  519|  2.39M|    int32_t subEnd = subStart;
  520|       |
  521|       |    // if we didn't find one, create a null substitution positioned
  522|       |    // at the end of the rule text
  523|  2.39M|    if (subStart == -1) {
  ------------------
  |  Branch (523:9): [True: 1.49M, False: 894k]
  ------------------
  524|  1.49M|        return nullptr;
  525|  1.49M|    }
  526|       |
  527|       |    // special-case the ">>>" token, since searching for the > at the
  528|       |    // end will actually find the > in the middle
  529|   894k|    if (fRuleText.indexOf(gGreaterGreaterGreater, 3, 0) == subStart) {
  ------------------
  |  Branch (529:9): [True: 7.87k, False: 886k]
  ------------------
  530|  7.87k|        subEnd = subStart + 2;
  531|       |
  532|       |        // otherwise the substitution token ends with the same character
  533|       |        // it began with
  534|   886k|    } else {
  535|   886k|        char16_t c = fRuleText.charAt(subStart);
  536|   886k|        subEnd = fRuleText.indexOf(c, subStart + 1);
  537|       |        // special case for '<%foo<<'
  538|   886k|        if (c == gLessThan && subEnd != -1 && subEnd < fRuleText.length() - 1 && fRuleText.charAt(subEnd+1) == c) {
  ------------------
  |  Branch (538:13): [True: 138k, False: 747k]
  |  Branch (538:31): [True: 138k, False: 0]
  |  Branch (538:47): [True: 125k, False: 13.4k]
  |  Branch (538:82): [True: 0, False: 125k]
  ------------------
  539|       |            // ordinals use "=#,##0==%abbrev=" as their rule.  Notice that the '==' in the middle
  540|       |            // occurs because of the juxtaposition of two different rules.  The check for '<' is a hack
  541|       |            // to get around this.  Having the duplicate at the front would cause problems with
  542|       |            // rules like "<<%" to format, say, percents...
  543|      0|            ++subEnd;
  544|      0|        }
  545|   886k|   }
  546|       |
  547|       |    // if we don't find the end of the token (i.e., if we're on a single,
  548|       |    // unmatched token character), create a null substitution positioned
  549|       |    // at the end of the rule
  550|   894k|    if (subEnd == -1) {
  ------------------
  |  Branch (550:9): [True: 0, False: 894k]
  ------------------
  551|      0|        return nullptr;
  552|      0|    }
  553|       |
  554|       |    // if we get here, we have a real substitution token (or at least
  555|       |    // some text bounded by substitution token characters).  Use
  556|       |    // makeSubstitution() to create the right kind of substitution
  557|   894k|    UnicodeString subToken;
  558|   894k|    subToken.setTo(fRuleText, subStart, subEnd + 1 - subStart);
  559|   894k|    result = NFSubstitution::makeSubstitution(subStart, this, predecessor, ruleSet,
  560|   894k|        this->formatter, subToken, status);
  561|       |
  562|       |    // remove the substitution from the rule text
  563|   894k|    fRuleText.removeBetween(subStart, subEnd+1);
  564|       |
  565|   894k|    return result;
  566|   894k|}
_ZN6icu_786NFRule12setBaseValueElR10UErrorCode:
  577|  1.16M|{
  578|       |    // set the base value
  579|  1.16M|    baseValue = newBaseValue;
  580|  1.16M|    radix = 10;
  581|       |
  582|       |    // if this isn't a special rule, recalculate the radix and exponent
  583|       |    // (the radix always defaults to 10; if it's supposed to be something
  584|       |    // else, it's cleaned up by the caller and the exponent is
  585|       |    // recalculated again-- the only function that does this is
  586|       |    // NFRule.parseRuleDescriptor() )
  587|  1.16M|    if (baseValue >= 1) {
  ------------------
  |  Branch (587:9): [True: 1.04M, False: 121k]
  ------------------
  588|  1.04M|        exponent = expectedExponent();
  589|       |
  590|       |        // this function gets called on a fully-constructed rule whose
  591|       |        // description didn't specify a base value.  This means it
  592|       |        // has substitutions, and some substitutions hold on to copies
  593|       |        // of the rule's divisor.  Fix their copies of the divisor.
  594|  1.04M|        if (sub1 != nullptr) {
  ------------------
  |  Branch (594:13): [True: 0, False: 1.04M]
  ------------------
  595|      0|            sub1->setDivisor(radix, exponent, status);
  596|      0|        }
  597|  1.04M|        if (sub2 != nullptr) {
  ------------------
  |  Branch (597:13): [True: 0, False: 1.04M]
  ------------------
  598|      0|            sub2->setDivisor(radix, exponent, status);
  599|      0|        }
  600|       |
  601|       |        // if this is a special rule, its radix and exponent are basically
  602|       |        // ignored.  Set them to "safe" default values
  603|  1.04M|    } else {
  604|   121k|        exponent = 0;
  605|   121k|    }
  606|  1.16M|}
_ZNK6icu_786NFRule16expectedExponentEv:
  615|  1.06M|{
  616|       |    // since the log of 0, or the log base 0 of something, causes an
  617|       |    // error, declare the exponent in these cases to be 0 (we also
  618|       |    // deal with the special-rule identifiers here)
  619|  1.06M|    if (radix == 0 || baseValue < 1) {
  ------------------
  |  Branch (619:9): [True: 0, False: 1.06M]
  |  Branch (619:23): [True: 0, False: 1.06M]
  ------------------
  620|      0|        return 0;
  621|      0|    }
  622|       |
  623|       |    // we get rounding error in some cases-- for example, log 1000 / log 10
  624|       |    // gives us 1.9999999996 instead of 2.  The extra logic here is to take
  625|       |    // that into account
  626|  1.06M|    int16_t tempResult = static_cast<int16_t>(uprv_log(static_cast<double>(baseValue)) /
  ------------------
  |  | 1523|  1.06M|#define uprv_log U_ICU_ENTRY_POINT_RENAME(uprv_log)
  |  |  ------------------
  |  |  |  |  123|  1.06M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.06M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.06M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  627|  1.06M|                                              uprv_log(static_cast<double>(radix)));
  ------------------
  |  | 1523|  1.06M|#define uprv_log U_ICU_ENTRY_POINT_RENAME(uprv_log)
  |  |  ------------------
  |  |  |  |  123|  1.06M|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.06M|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.06M|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  628|  1.06M|    int64_t temp = util64_pow(radix, tempResult + 1);
  629|  1.06M|    if (temp <= baseValue) {
  ------------------
  |  Branch (629:9): [True: 54.3k, False: 1.01M]
  ------------------
  630|  54.3k|        tempResult += 1;
  631|  54.3k|    }
  632|  1.06M|    return tempResult;
  633|  1.06M|}
_ZNK6icu_786NFRule20indexOfAnyRulePrefixEv:
  644|  2.39M|{
  645|  2.39M|    int result = -1;
  646|  28.7M|    for (int i = 0; RULE_PREFIXES[i]; i++) {
  ------------------
  |  Branch (646:21): [True: 26.3M, False: 2.39M]
  ------------------
  647|  26.3M|        int32_t pos = fRuleText.indexOf(*RULE_PREFIXES[i]);
  648|  26.3M|        if (pos != -1 && (result == -1 || pos < result)) {
  ------------------
  |  Branch (648:13): [True: 3.79M, False: 22.5M]
  |  Branch (648:27): [True: 894k, False: 2.90M]
  |  Branch (648:43): [True: 0, False: 2.90M]
  ------------------
  649|   894k|            result = pos;
  650|   894k|        }
  651|  26.3M|    }
  652|  2.39M|    return result;
  653|  2.39M|}
_ZNK6icu_786NFRule10getDivisorEv:
  763|   742k|{
  764|   742k|    return util64_pow(radix, exponent);
  765|   742k|}
_ZNK6icu_786NFRule8doFormatElRNS_13UnicodeStringEiiR10UErrorCode:
  791|  1.19k|{
  792|       |    // first, insert the rule's rule text into toInsertInto at the
  793|       |    // specified position, then insert the results of the substitutions
  794|       |    // into the right places in toInsertInto (notice we do the
  795|       |    // substitutions in reverse order so that the offsets don't get
  796|       |    // messed up)
  797|  1.19k|    int32_t pluralRuleStart = fRuleText.length();
  798|  1.19k|    int32_t lengthOffset = 0;
  799|  1.19k|    if (!rulePatternFormat) {
  ------------------
  |  Branch (799:9): [True: 1.19k, False: 0]
  ------------------
  800|  1.19k|        toInsertInto.insert(pos, fRuleText);
  801|  1.19k|    }
  802|      0|    else {
  803|      0|        pluralRuleStart = fRuleText.indexOf(gDollarOpenParenthesis, -1, 0);
  804|      0|        int pluralRuleEnd = fRuleText.indexOf(gClosedParenthesisDollar, -1, pluralRuleStart);
  805|      0|        int initialLength = toInsertInto.length();
  806|      0|        if (pluralRuleEnd < fRuleText.length() - 1) {
  ------------------
  |  Branch (806:13): [True: 0, False: 0]
  ------------------
  807|      0|            toInsertInto.insert(pos, fRuleText.tempSubString(pluralRuleEnd + 2));
  808|      0|        }
  809|      0|        toInsertInto.insert(pos,
  810|      0|            rulePatternFormat->format(static_cast<int32_t>(number / util64_pow(radix, exponent)), status));
  811|      0|        if (pluralRuleStart > 0) {
  ------------------
  |  Branch (811:13): [True: 0, False: 0]
  ------------------
  812|      0|            toInsertInto.insert(pos, fRuleText.tempSubString(0, pluralRuleStart));
  813|      0|        }
  814|      0|        lengthOffset = fRuleText.length() - (toInsertInto.length() - initialLength);
  815|      0|    }
  816|       |
  817|  1.19k|    if (sub2 != nullptr) {
  ------------------
  |  Branch (817:9): [True: 0, False: 1.19k]
  ------------------
  818|      0|        sub2->doSubstitution(number, toInsertInto, pos - (sub2->getPos() > pluralRuleStart ? lengthOffset : 0), recursionCount, status);
  ------------------
  |  Branch (818:59): [True: 0, False: 0]
  ------------------
  819|      0|    }
  820|  1.19k|    if (sub1 != nullptr) {
  ------------------
  |  Branch (820:9): [True: 438, False: 761]
  ------------------
  821|    438|        sub1->doSubstitution(number, toInsertInto, pos - (sub1->getPos() > pluralRuleStart ? lengthOffset : 0), recursionCount, status);
  ------------------
  |  Branch (821:59): [True: 0, False: 438]
  ------------------
  822|    438|    }
  823|  1.19k|}
_ZNK6icu_786NFRule14shouldRollBackEl:
  889|    430|{
  890|       |    // we roll back if the rule contains a modulus substitution,
  891|       |    // the number being formatted is an even multiple of the rule's
  892|       |    // divisor, and the rule's base value is NOT an even multiple
  893|       |    // of its divisor
  894|       |    // In other words, if the original description had
  895|       |    //    100: << hundred[ >>];
  896|       |    // that expands into
  897|       |    //    100: << hundred;
  898|       |    //    101: << hundred >>;
  899|       |    // internally.  But when we're formatting 200, if we use the rule
  900|       |    // at 101, which would normally apply, we get "two hundred zero".
  901|       |    // To prevent this, we roll back and use the rule at 100 instead.
  902|       |    // This is the logic that makes this happen: the rule at 101 has
  903|       |    // a modulus substitution, its base value isn't an even multiple
  904|       |    // of 100, and the value we're trying to format _is_ an even
  905|       |    // multiple of 100.  This is called the "rollback rule."
  906|    430|    if ((sub1 != nullptr && sub1->isModulusSubstitution()) || (sub2 != nullptr && sub2->isModulusSubstitution())) {
  ------------------
  |  Branch (906:10): [True: 430, False: 0]
  |  Branch (906:29): [True: 430, False: 0]
  |  Branch (906:64): [True: 0, False: 0]
  |  Branch (906:83): [True: 0, False: 0]
  ------------------
  907|    430|        int64_t re = util64_pow(radix, exponent);
  908|    430|        return (number % re) == 0 && (baseValue % re) != 0;
  ------------------
  |  Branch (908:16): [True: 0, False: 430]
  |  Branch (908:38): [True: 0, False: 0]
  ------------------
  909|    430|    }
  910|      0|    return false;
  911|    430|}

_ZNK6icu_786NFRule7getTypeEv:
   60|  1.82M|    ERuleType getType() const { return (baseValue <= kNoBase ? static_cast<ERuleType>(baseValue) : kOtherRule); }
  ------------------
  |  Branch (60:41): [True: 0, False: 1.82M]
  ------------------
_ZN6icu_786NFRule7setTypeENS0_9ERuleTypeE:
   61|  23.8k|    void setType(ERuleType ruleType) { baseValue = static_cast<int32_t>(ruleType); }
_ZNK6icu_786NFRule12getBaseValueEv:
   63|  4.62M|    int64_t getBaseValue() const { return baseValue; }

_ZN6icu_7821SameValueSubstitutionD2Ev:
   72|   112k|SameValueSubstitution::~SameValueSubstitution() {}
_ZN6icu_7822MultiplierSubstitutionD2Ev:
  142|   130k|MultiplierSubstitution::~MultiplierSubstitution() {}
_ZN6icu_7819ModulusSubstitutionD2Ev:
  198|   610k|ModulusSubstitution::~ModulusSubstitution() {}
_ZN6icu_7824IntegralPartSubstitutionD2Ev:
  220|  8.09k|IntegralPartSubstitution::~IntegralPartSubstitution() {}
_ZN6icu_7826FractionalPartSubstitutionD2Ev:
  258|  8.09k|FractionalPartSubstitution::~FractionalPartSubstitution() {}
_ZN6icu_7825AbsoluteValueSubstitutionD2Ev:
  280|  23.7k|AbsoluteValueSubstitution::~AbsoluteValueSubstitution() {}
_ZN6icu_7814NFSubstitution16makeSubstitutionEiPKNS_6NFRuleES3_PKNS_9NFRuleSetEPKNS_21RuleBasedNumberFormatERKNS_13UnicodeStringER10UErrorCode:
  343|   894k|{
  344|       |    // if the description is empty, return a NullSubstitution
  345|   894k|    if (description.length() == 0) {
  ------------------
  |  Branch (345:9): [True: 0, False: 894k]
  ------------------
  346|      0|        return nullptr;
  347|      0|    }
  348|       |
  349|   894k|    switch (description.charAt(0)) {
  350|       |        // if the description begins with '<'...
  351|   138k|    case gLessThan:
  ------------------
  |  Branch (351:5): [True: 138k, False: 755k]
  ------------------
  352|       |        // throw an exception if the rule is a negative number
  353|       |        // rule
  354|   138k|        if (rule->getBaseValue() == NFRule::kNegativeNumberRule) {
  ------------------
  |  Branch (354:13): [True: 0, False: 138k]
  ------------------
  355|       |            // throw new IllegalArgumentException("<< not allowed in negative-number rule");
  356|      0|            status = U_PARSE_ERROR;
  357|      0|            return nullptr;
  358|      0|        }
  359|       |
  360|       |        // if the rule is a fraction rule, return an
  361|       |        // IntegralPartSubstitution
  362|   138k|        else if (rule->getBaseValue() == NFRule::kImproperFractionRule
  ------------------
  |  Branch (362:18): [True: 8.09k, False: 130k]
  ------------------
  363|   138k|            || rule->getBaseValue() == NFRule::kProperFractionRule
  ------------------
  |  Branch (363:16): [True: 0, False: 130k]
  ------------------
  364|   138k|            || rule->getBaseValue() == NFRule::kDefaultRule) {
  ------------------
  |  Branch (364:16): [True: 0, False: 130k]
  ------------------
  365|  8.09k|            return new IntegralPartSubstitution(pos, ruleSet, description, status);
  366|  8.09k|        }
  367|       |
  368|       |        // if the rule set containing the rule is a fraction
  369|       |        // rule set, return a NumeratorSubstitution
  370|   130k|        else if (ruleSet->isFractionRuleSet()) {
  ------------------
  |  Branch (370:18): [True: 0, False: 130k]
  ------------------
  371|      0|            return new NumeratorSubstitution(pos, static_cast<double>(rule->getBaseValue()),
  372|      0|                formatter->getDefaultRuleSet(), description, status);
  373|      0|        }
  374|       |
  375|       |        // otherwise, return a MultiplierSubstitution
  376|   130k|        else {
  377|   130k|            return new MultiplierSubstitution(pos, rule, ruleSet,
  378|   130k|                description, status);
  379|   130k|        }
  380|       |
  381|       |        // if the description begins with '>'...
  382|   643k|    case gGreaterThan:
  ------------------
  |  Branch (382:5): [True: 643k, False: 251k]
  ------------------
  383|       |        // if the rule is a negative-number rule, return
  384|       |        // an AbsoluteValueSubstitution
  385|   643k|        if (rule->getBaseValue() == NFRule::kNegativeNumberRule) {
  ------------------
  |  Branch (385:13): [True: 23.8k, False: 619k]
  ------------------
  386|  23.8k|            return new AbsoluteValueSubstitution(pos, ruleSet, description, status);
  387|  23.8k|        }
  388|       |
  389|       |        // if the rule is a fraction rule, return a
  390|       |        // FractionalPartSubstitution
  391|   619k|        else if (rule->getBaseValue() == NFRule::kImproperFractionRule
  ------------------
  |  Branch (391:18): [True: 8.09k, False: 611k]
  ------------------
  392|   619k|            || rule->getBaseValue() == NFRule::kProperFractionRule
  ------------------
  |  Branch (392:16): [True: 0, False: 611k]
  ------------------
  393|   619k|            || rule->getBaseValue() == NFRule::kDefaultRule) {
  ------------------
  |  Branch (393:16): [True: 0, False: 611k]
  ------------------
  394|  8.09k|            return new FractionalPartSubstitution(pos, ruleSet, description, status);
  395|  8.09k|        }
  396|       |
  397|       |        // if the rule set owning the rule is a fraction rule set,
  398|       |        // throw an exception
  399|   611k|        else if (ruleSet->isFractionRuleSet()) {
  ------------------
  |  Branch (399:18): [True: 0, False: 611k]
  ------------------
  400|       |            // throw new IllegalArgumentException(">> not allowed in fraction rule set");
  401|      0|            status = U_PARSE_ERROR;
  402|      0|            return nullptr;
  403|      0|        }
  404|       |
  405|       |        // otherwise, return a ModulusSubstitution
  406|   611k|        else {
  407|   611k|            return new ModulusSubstitution(pos, rule, predecessor,
  408|   611k|                ruleSet, description, status);
  409|   611k|        }
  410|       |
  411|       |        // if the description begins with '=', always return a
  412|       |        // SameValueSubstitution
  413|   112k|    case gEquals:
  ------------------
  |  Branch (413:5): [True: 112k, False: 782k]
  ------------------
  414|   112k|        return new SameValueSubstitution(pos, ruleSet, description, status);
  415|       |
  416|       |        // and if it's anything else, throw an exception
  417|      0|    default:
  ------------------
  |  Branch (417:5): [True: 0, False: 894k]
  ------------------
  418|       |        // throw new IllegalArgumentException("Illegal substitution character");
  419|      0|        status = U_PARSE_ERROR;
  420|   894k|    }
  421|      0|    return nullptr;
  422|   894k|}
_ZN6icu_7814NFSubstitutionC2EiPKNS_9NFRuleSetERKNS_13UnicodeStringER10UErrorCode:
  428|   894k|                               : pos(_pos), ruleSet(nullptr), numberFormat(nullptr)
  429|   894k|{
  430|       |    // the description should begin and end with the same character.
  431|       |    // If it doesn't that's a syntax error.  Otherwise,
  432|       |    // makeSubstitution() was the only thing that needed to know
  433|       |    // about these characters, so strip them off
  434|   894k|    UnicodeString workingDescription(description);
  435|   894k|    if (description.length() >= 2
  ------------------
  |  Branch (435:9): [True: 894k, False: 0]
  ------------------
  436|   894k|        && description.charAt(0) == description.charAt(description.length() - 1))
  ------------------
  |  Branch (436:12): [True: 894k, False: 0]
  ------------------
  437|   894k|    {
  438|   894k|        workingDescription.remove(description.length() - 1, 1);
  439|   894k|        workingDescription.remove(0, 1);
  440|   894k|    }
  441|      0|    else if (description.length() != 0) {
  ------------------
  |  Branch (441:14): [True: 0, False: 0]
  ------------------
  442|       |        // throw new IllegalArgumentException("Illegal substitution syntax");
  443|      0|        status = U_PARSE_ERROR;
  444|      0|        return;
  445|      0|    }
  446|       |
  447|   894k|    if (workingDescription.length() == 0) {
  ------------------
  |  Branch (447:9): [True: 637k, False: 256k]
  ------------------
  448|       |        // if the description was just two paired token characters
  449|       |        // (i.e., "<<" or ">>"), it uses the rule set it belongs to to
  450|       |        // format its result
  451|   637k|        this->ruleSet = _ruleSet;
  452|   637k|    }
  453|   256k|    else if (workingDescription.charAt(0) == gPercent) {
  ------------------
  |  Branch (453:14): [True: 206k, False: 49.8k]
  ------------------
  454|       |        // if the description contains a rule set name, that's the rule
  455|       |        // set we use to format the result: get a reference to the
  456|       |        // names rule set
  457|   206k|        this->ruleSet = _ruleSet->getOwner()->findRuleSet(workingDescription, status);
  458|   206k|    }
  459|  49.8k|    else if (workingDescription.charAt(0) == gPound || workingDescription.charAt(0) ==gZero) {
  ------------------
  |  Branch (459:14): [True: 41.1k, False: 8.69k]
  |  Branch (459:56): [True: 815, False: 7.87k]
  ------------------
  460|       |        // if the description begins with 0 or #, treat it as a
  461|       |        // DecimalFormat pattern, and initialize a DecimalFormat with
  462|       |        // that pattern (then set it to use the DecimalFormatSymbols
  463|       |        // belonging to our formatter)
  464|  41.9k|        const DecimalFormatSymbols* sym = _ruleSet->getOwner()->getDecimalFormatSymbols();
  465|  41.9k|        if (!sym) {
  ------------------
  |  Branch (465:13): [True: 0, False: 41.9k]
  ------------------
  466|      0|            status = U_MISSING_RESOURCE_ERROR;
  467|      0|            return;
  468|      0|        }
  469|  41.9k|        DecimalFormat *tempNumberFormat = new DecimalFormat(workingDescription, *sym, status);
  470|       |        /* test for nullptr */
  471|  41.9k|        if (!tempNumberFormat) {
  ------------------
  |  Branch (471:13): [True: 0, False: 41.9k]
  ------------------
  472|      0|            status = U_MEMORY_ALLOCATION_ERROR;
  473|      0|            return;
  474|      0|        }
  475|  41.9k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (475:13): [True: 0, False: 41.9k]
  ------------------
  476|      0|            delete tempNumberFormat;
  477|      0|            return;
  478|      0|        }
  479|  41.9k|        this->numberFormat = tempNumberFormat;
  480|  41.9k|    }
  481|  7.87k|    else if (workingDescription.charAt(0) == gGreaterThan) {
  ------------------
  |  Branch (481:14): [True: 7.87k, False: 0]
  ------------------
  482|       |        // if the description is ">>>", this substitution bypasses the
  483|       |        // usual rule-search process and always uses the rule that precedes
  484|       |        // it in its own rule set's rule list (this is used for place-value
  485|       |        // notations: formats where you want to see a particular part of
  486|       |        // a number even when it's 0)
  487|       |
  488|       |        // this causes problems when >>> is used in a frationalPartSubstitution
  489|       |        // this->ruleSet = nullptr;
  490|  7.87k|        this->ruleSet = _ruleSet;
  491|  7.87k|        this->numberFormat = nullptr;
  492|  7.87k|    }
  493|      0|    else {
  494|       |        // and of the description is none of these things, it's a syntax error
  495|       |
  496|       |        // throw new IllegalArgumentException("Illegal substitution syntax");
  497|      0|        status = U_PARSE_ERROR;
  498|      0|    }
  499|   894k|}
_ZN6icu_7814NFSubstitutionD2Ev:
  502|   893k|{
  503|   893k|    delete numberFormat;
  504|   893k|    numberFormat = nullptr;
  505|   893k|}
_ZNK6icu_7814NFSubstitution14doSubstitutionElRNS_13UnicodeStringEiiR10UErrorCode:
  594|    438|{
  595|    438|    if (ruleSet != nullptr) {
  ------------------
  |  Branch (595:9): [True: 438, False: 0]
  ------------------
  596|       |        // Perform a transformation on the number that is dependent
  597|       |        // on the type of substitution this is, then just call its
  598|       |        // rule set's format() method to format the result
  599|    438|        ruleSet->format(transformNumber(number), toInsertInto, _pos + this->pos, recursionCount, status);
  600|    438|    } else if (numberFormat != nullptr) {
  ------------------
  |  Branch (600:16): [True: 0, False: 0]
  ------------------
  601|      0|        if (number <= MAX_INT64_IN_DOUBLE) {
  ------------------
  |  Branch (601:13): [True: 0, False: 0]
  ------------------
  602|       |            // or perform the transformation on the number,
  603|       |            // then use that formatter's format() method
  604|       |            // to format the result
  605|      0|            UnicodeString temp;
  606|      0|            numberFormat->format(transformNumber(static_cast<double>(number)), temp, status);
  607|      0|            toInsertInto.insert(_pos + this->pos, temp);
  608|      0|        } 
  609|      0|        else { 
  610|       |            // We have gone beyond double precision. Something has to give. 
  611|       |            // We're favoring accuracy of the large number over potential rules 
  612|       |            // that round like a CompactDecimalFormat, which is not a common use case. 
  613|       |            // 
  614|       |            // Perform a transformation on the number that is dependent 
  615|       |            // on the type of substitution this is, then just call its 
  616|       |            // rule set's format() method to format the result 
  617|      0|            int64_t numberToFormat = transformNumber(number); 
  618|      0|            UnicodeString temp;
  619|      0|            numberFormat->format(numberToFormat, temp, status);
  620|      0|            toInsertInto.insert(_pos + this->pos, temp);
  621|      0|        } 
  622|      0|    }
  623|    438|}
_ZN6icu_7821SameValueSubstitutionC2EiPKNS_9NFRuleSetERKNS_13UnicodeStringER10UErrorCode:
  811|   112k|: NFSubstitution(_pos, _ruleSet, description, status)
  812|   112k|{
  813|   112k|    if (0 == description.compare(gEqualsEquals, 2)) {
  ------------------
  |  Branch (813:9): [True: 0, False: 112k]
  ------------------
  814|       |        // throw new IllegalArgumentException("== is not a legal token");
  815|      0|        status = U_PARSE_ERROR;
  816|      0|    }
  817|   112k|}
_ZN6icu_7819ModulusSubstitutionC2EiPKNS_6NFRuleES3_PKNS_9NFRuleSetERKNS_13UnicodeStringER10UErrorCode:
  849|   611k| : NFSubstitution(_pos, _ruleSet, description, status)
  850|   611k| , divisor(rule->getDivisor())
  851|   611k| , ruleToUse(nullptr)
  852|   611k|{
  853|       |  // the owning rule's divisor controls the behavior of this
  854|       |  // substitution: rather than keeping a backpointer to the rule,
  855|       |  // we keep a copy of the divisor
  856|       |
  857|   611k|  if (divisor == 0) {
  ------------------
  |  Branch (857:7): [True: 0, False: 611k]
  ------------------
  858|      0|      status = U_PARSE_ERROR;
  859|      0|  }
  860|       |
  861|   611k|  if (0 == description.compare(gGreaterGreaterGreaterThan, 3)) {
  ------------------
  |  Branch (861:7): [True: 1.46k, False: 609k]
  ------------------
  862|       |    // the >>> token doesn't alter how this substitution calculates the
  863|       |    // values it uses for formatting and parsing, but it changes
  864|       |    // what's done with that value after it's obtained: >>> short-
  865|       |    // circuits the rule-search process and goes straight to the
  866|       |    // specified rule to format the substitution value
  867|  1.46k|    ruleToUse = predecessor;
  868|  1.46k|  }
  869|   611k|}
_ZNK6icu_7819ModulusSubstitution14doSubstitutionElRNS_13UnicodeStringEiiR10UErrorCode:
  895|    438|{
  896|       |    // if this isn't a >>> substitution, just use the inherited version
  897|       |    // of this function (which uses either a rule set or a DecimalFormat
  898|       |    // to format its substitution value)
  899|    438|    if (ruleToUse == nullptr) {
  ------------------
  |  Branch (899:9): [True: 438, False: 0]
  ------------------
  900|    438|        NFSubstitution::doSubstitution(number, toInsertInto, _pos, recursionCount, status);
  901|       |
  902|       |        // a >>> substitution goes straight to a particular rule to
  903|       |        // format the substitution value
  904|    438|    } else {
  905|      0|        int64_t numberToFormat = transformNumber(number);
  906|      0|        ruleToUse->doFormat(numberToFormat, toInsertInto, _pos + getPos(), recursionCount, status);
  907|      0|    }
  908|    438|}
_ZN6icu_7826FractionalPartSubstitutionC2EiPKNS_9NFRuleSetERKNS_13UnicodeStringER10UErrorCode:
 1024|  8.09k| : NFSubstitution(_pos, _ruleSet, description, status)
 1025|  8.09k| , byDigits(false)
 1026|  8.09k| , useSpaces(true)
 1027|       |
 1028|  8.09k|{
 1029|       |    // akk, ruleSet can change in superclass constructor
 1030|  8.09k|    if (0 == description.compare(gGreaterGreaterThan, 2) ||
  ------------------
  |  Branch (1030:9): [True: 1.68k, False: 6.41k]
  |  Branch (1030:9): [True: 8.09k, False: 0]
  ------------------
 1031|  8.09k|        0 == description.compare(gGreaterGreaterGreaterThan, 3) ||
  ------------------
  |  Branch (1031:9): [True: 6.41k, False: 0]
  ------------------
 1032|  8.09k|        _ruleSet == getRuleSet()) {
  ------------------
  |  Branch (1032:9): [True: 0, False: 0]
  ------------------
 1033|  8.09k|        byDigits = true;
 1034|  8.09k|        if (0 == description.compare(gGreaterGreaterGreaterThan, 3)) {
  ------------------
  |  Branch (1034:13): [True: 6.41k, False: 1.68k]
  ------------------
 1035|  6.41k|            useSpaces = false;
 1036|  6.41k|        }
 1037|  8.09k|    } else {
 1038|       |        // cast away const
 1039|      0|        const_cast<NFRuleSet*>(getRuleSet())->makeIntoFractionRuleSet();
 1040|      0|    }
 1041|  8.09k|}
_ZN6icu_7824IntegralPartSubstitutionC2EiPKNS_9NFRuleSetERKNS_13UnicodeStringER10UErrorCode:
  206|  8.09k|        : NFSubstitution(_pos, _ruleSet, description, status) {}
_ZN6icu_7822MultiplierSubstitutionC2EiPKNS_6NFRuleEPKNS_9NFRuleSetERKNS_13UnicodeStringER10UErrorCode:
   84|   130k|        : NFSubstitution(_pos, _ruleSet, description, status), divisor(rule->getDivisor()), owningRule(rule)
   85|   130k|    {
   86|   130k|        if (divisor == 0) {
  ------------------
  |  Branch (86:13): [True: 0, False: 130k]
  ------------------
   87|      0|            status = U_PARSE_ERROR;
   88|      0|        }
   89|   130k|    }
_ZN6icu_7825AbsoluteValueSubstitutionC2EiPKNS_9NFRuleSetERKNS_13UnicodeStringER10UErrorCode:
  266|  23.8k|        : NFSubstitution(_pos, _ruleSet, description, status) {}
_ZNK6icu_7819ModulusSubstitution15transformNumberEl:
  169|    438|    virtual int64_t transformNumber(int64_t number) const override { return number % divisor; }
_ZNK6icu_7819ModulusSubstitution21isModulusSubstitutionEv:
  187|    430|    virtual UBool isModulusSubstitution() const override { return true; }

_ZNK6icu_7814NFSubstitution6getPosEv:
  231|    438|    int32_t getPos() const { return pos; }

_ZN6icu_786number4impl14SymbolProviderD2Ev:
   17|  57.0k|SymbolProvider::~SymbolProvider() = default;
_ZN6icu_786number4impl10AffixUtils6escapeERKNS_13UnicodeStringE:
   85|   810k|UnicodeString AffixUtils::escape(const UnicodeString &input) {
   86|   810k|    AffixPatternState state = STATE_BASE;
   87|   810k|    int32_t offset = 0;
   88|   810k|    UnicodeString output;
   89|   810k|    for (; offset < input.length();) {
  ------------------
  |  Branch (89:12): [True: 0, False: 810k]
  ------------------
   90|      0|        UChar32 cp = input.char32At(offset);
   91|       |
   92|      0|        switch (cp) {
   93|      0|            case u'\'':
  ------------------
  |  Branch (93:13): [True: 0, False: 0]
  ------------------
   94|      0|                output.append(u"''", -1);
   95|      0|                break;
   96|       |
   97|      0|            case u'-':
  ------------------
  |  Branch (97:13): [True: 0, False: 0]
  ------------------
   98|      0|            case u'+':
  ------------------
  |  Branch (98:13): [True: 0, False: 0]
  ------------------
   99|      0|            case u'%':
  ------------------
  |  Branch (99:13): [True: 0, False: 0]
  ------------------
  100|      0|            case u'‰':
  ------------------
  |  Branch (100:13): [True: 0, False: 0]
  ------------------
  101|      0|            case u'¤':
  ------------------
  |  Branch (101:13): [True: 0, False: 0]
  ------------------
  102|      0|                if (state == STATE_BASE) {
  ------------------
  |  Branch (102:21): [True: 0, False: 0]
  ------------------
  103|      0|                    output.append(u'\'');
  104|      0|                    output.append(cp);
  105|      0|                    state = STATE_INSIDE_QUOTE;
  106|      0|                } else {
  107|      0|                    output.append(cp);
  108|      0|                }
  109|      0|                break;
  110|       |
  111|      0|            default:
  ------------------
  |  Branch (111:13): [True: 0, False: 0]
  ------------------
  112|      0|                if (state == STATE_INSIDE_QUOTE) {
  ------------------
  |  Branch (112:21): [True: 0, False: 0]
  ------------------
  113|      0|                    output.append(u'\'');
  114|      0|                    output.append(cp);
  115|      0|                    state = STATE_BASE;
  116|      0|                } else {
  117|      0|                    output.append(cp);
  118|      0|                }
  119|      0|                break;
  120|      0|        }
  121|      0|        offset += U16_LENGTH(cp);
  ------------------
  |  |  141|      0|#define U16_LENGTH(c) ((uint32_t)(c)<=0xffff ? 1 : 2)
  |  |  ------------------
  |  |  |  Branch (141:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  122|      0|    }
  123|       |
  124|   810k|    if (state == STATE_INSIDE_QUOTE) {
  ------------------
  |  Branch (124:9): [True: 0, False: 810k]
  ------------------
  125|      0|        output.append(u'\'');
  126|      0|    }
  127|       |
  128|   810k|    return output;
  129|   810k|}
_ZN6icu_786number4impl10AffixUtils15getFieldForTypeENS1_16AffixPatternTypeE:
  131|   114k|Field AffixUtils::getFieldForType(AffixPatternType type) {
  132|   114k|    switch (type) {
  133|  57.0k|        case TYPE_MINUS_SIGN:
  ------------------
  |  Branch (133:9): [True: 57.0k, False: 57.0k]
  ------------------
  134|  57.0k|            return {UFIELD_CATEGORY_NUMBER, UNUM_SIGN_FIELD};
  135|  57.0k|        case TYPE_PLUS_SIGN:
  ------------------
  |  Branch (135:9): [True: 57.0k, False: 57.0k]
  ------------------
  136|  57.0k|            return {UFIELD_CATEGORY_NUMBER, UNUM_SIGN_FIELD};
  137|      0|        case TYPE_APPROXIMATELY_SIGN:
  ------------------
  |  Branch (137:9): [True: 0, False: 114k]
  ------------------
  138|      0|            return {UFIELD_CATEGORY_NUMBER, UNUM_APPROXIMATELY_SIGN_FIELD};
  139|      0|        case TYPE_PERCENT:
  ------------------
  |  Branch (139:9): [True: 0, False: 114k]
  ------------------
  140|      0|            return {UFIELD_CATEGORY_NUMBER, UNUM_PERCENT_FIELD};
  141|      0|        case TYPE_PERMILLE:
  ------------------
  |  Branch (141:9): [True: 0, False: 114k]
  ------------------
  142|      0|            return {UFIELD_CATEGORY_NUMBER, UNUM_PERMILL_FIELD};
  143|      0|        case TYPE_CURRENCY_SINGLE:
  ------------------
  |  Branch (143:9): [True: 0, False: 114k]
  ------------------
  144|      0|            return {UFIELD_CATEGORY_NUMBER, UNUM_CURRENCY_FIELD};
  145|      0|        case TYPE_CURRENCY_DOUBLE:
  ------------------
  |  Branch (145:9): [True: 0, False: 114k]
  ------------------
  146|      0|            return {UFIELD_CATEGORY_NUMBER, UNUM_CURRENCY_FIELD};
  147|      0|        case TYPE_CURRENCY_TRIPLE:
  ------------------
  |  Branch (147:9): [True: 0, False: 114k]
  ------------------
  148|      0|            return {UFIELD_CATEGORY_NUMBER, UNUM_CURRENCY_FIELD};
  149|      0|        case TYPE_CURRENCY_QUAD:
  ------------------
  |  Branch (149:9): [True: 0, False: 114k]
  ------------------
  150|      0|            return {UFIELD_CATEGORY_NUMBER, UNUM_CURRENCY_FIELD};
  151|      0|        case TYPE_CURRENCY_QUINT:
  ------------------
  |  Branch (151:9): [True: 0, False: 114k]
  ------------------
  152|      0|            return {UFIELD_CATEGORY_NUMBER, UNUM_CURRENCY_FIELD};
  153|      0|        case TYPE_CURRENCY_OVERFLOW:
  ------------------
  |  Branch (153:9): [True: 0, False: 114k]
  ------------------
  154|      0|            return {UFIELD_CATEGORY_NUMBER, UNUM_CURRENCY_FIELD};
  155|      0|        default:
  ------------------
  |  Branch (155:9): [True: 0, False: 114k]
  ------------------
  156|      0|            UPRV_UNREACHABLE_EXIT;
  ------------------
  |  |   68|      0|#   define UPRV_UNREACHABLE_EXIT abort()
  ------------------
  157|   114k|    }
  158|   114k|}
_ZN6icu_786number4impl10AffixUtils8unescapeERKNS_13UnicodeStringERNS_22FormattedStringBuilderEiRKNS1_14SymbolProviderENS6_5FieldER10UErrorCode:
  162|   456k|                     const SymbolProvider &provider, Field field, UErrorCode &status) {
  163|   456k|    int32_t length = 0;
  164|   456k|    AffixTag tag;
  165|   570k|    while (hasNext(tag, affixPattern)) {
  ------------------
  |  Branch (165:12): [True: 114k, False: 456k]
  ------------------
  166|   114k|        tag = nextToken(tag, affixPattern, status);
  167|   114k|        if (U_FAILURE(status)) { return length; }
  ------------------
  |  Branch (167:13): [True: 0, False: 114k]
  ------------------
  168|   114k|        if (tag.type == TYPE_CURRENCY_OVERFLOW) {
  ------------------
  |  Branch (168:13): [True: 0, False: 114k]
  ------------------
  169|       |            // Don't go to the provider for this special case
  170|      0|            length += output.insertCodePoint(
  171|      0|                position + length,
  172|      0|                0xFFFD,
  173|      0|                {UFIELD_CATEGORY_NUMBER, UNUM_CURRENCY_FIELD},
  174|      0|                status);
  175|   114k|        } else if (tag.type < 0) {
  ------------------
  |  Branch (175:20): [True: 114k, False: 0]
  ------------------
  176|   114k|            length += output.insert(
  177|   114k|                    position + length, provider.getSymbol(tag.type), getFieldForType(tag.type), status);
  178|   114k|        } else {
  179|      0|            length += output.insertCodePoint(position + length, tag.codePoint, field, status);
  180|      0|        }
  181|   114k|    }
  182|   456k|    return length;
  183|   456k|}
_ZN6icu_786number4impl10AffixUtils18hasCurrencySymbolsERKNS_13UnicodeStringER10UErrorCode:
  219|   810k|bool AffixUtils::hasCurrencySymbols(const UnicodeString &affixPattern, UErrorCode &status) {
  220|   810k|    if (affixPattern.length() == 0) {
  ------------------
  |  Branch (220:9): [True: 810k, False: 0]
  ------------------
  221|   810k|        return false;
  222|   810k|    }
  223|      0|    AffixTag tag;
  224|      0|    while (hasNext(tag, affixPattern)) {
  ------------------
  |  Branch (224:12): [True: 0, False: 0]
  ------------------
  225|      0|        tag = nextToken(tag, affixPattern, status);
  226|      0|        if (U_FAILURE(status)) { return false; }
  ------------------
  |  Branch (226:13): [True: 0, False: 0]
  ------------------
  227|      0|        if (tag.type < 0 && getFieldForType(tag.type) == Field(UFIELD_CATEGORY_NUMBER, UNUM_CURRENCY_FIELD)) {
  ------------------
  |  Branch (227:13): [True: 0, False: 0]
  |  Branch (227:13): [True: 0, False: 0]
  |  Branch (227:29): [True: 0, False: 0]
  ------------------
  228|      0|            return true;
  229|      0|        }
  230|      0|    }
  231|      0|    return false;
  232|      0|}
_ZN6icu_786number4impl10AffixUtils9nextTokenENS1_8AffixTagERKNS_13UnicodeStringER10UErrorCode:
  281|   114k|AffixTag AffixUtils::nextToken(AffixTag tag, const UnicodeString &patternString, UErrorCode &status) {
  282|   114k|    int32_t offset = tag.offset;
  283|   114k|    int32_t state = tag.state;
  284|   114k|    for (; offset < patternString.length();) {
  ------------------
  |  Branch (284:12): [True: 114k, False: 0]
  ------------------
  285|   114k|        UChar32 cp = patternString.char32At(offset);
  286|   114k|        int32_t count = U16_LENGTH(cp);
  ------------------
  |  |  141|   114k|#define U16_LENGTH(c) ((uint32_t)(c)<=0xffff ? 1 : 2)
  |  |  ------------------
  |  |  |  Branch (141:24): [True: 114k, False: 0]
  |  |  ------------------
  ------------------
  287|       |
  288|   114k|        switch (state) {
  289|   114k|            case STATE_BASE:
  ------------------
  |  Branch (289:13): [True: 114k, False: 0]
  ------------------
  290|   114k|                switch (cp) {
  291|      0|                    case u'\'':
  ------------------
  |  Branch (291:21): [True: 0, False: 114k]
  ------------------
  292|      0|                        state = STATE_FIRST_QUOTE;
  293|      0|                        offset += count;
  294|       |                        // continue to the next code point
  295|      0|                        break;
  296|  57.0k|                    case u'-':
  ------------------
  |  Branch (296:21): [True: 57.0k, False: 57.0k]
  ------------------
  297|  57.0k|                        return makeTag(offset + count, TYPE_MINUS_SIGN, STATE_BASE, 0);
  298|  57.0k|                    case u'+':
  ------------------
  |  Branch (298:21): [True: 57.0k, False: 57.0k]
  ------------------
  299|  57.0k|                        return makeTag(offset + count, TYPE_PLUS_SIGN, STATE_BASE, 0);
  300|      0|                    case u'~':
  ------------------
  |  Branch (300:21): [True: 0, False: 114k]
  ------------------
  301|      0|                        return makeTag(offset + count, TYPE_APPROXIMATELY_SIGN, STATE_BASE, 0);
  302|      0|                    case u'%':
  ------------------
  |  Branch (302:21): [True: 0, False: 114k]
  ------------------
  303|      0|                        return makeTag(offset + count, TYPE_PERCENT, STATE_BASE, 0);
  304|      0|                    case u'‰':
  ------------------
  |  Branch (304:21): [True: 0, False: 114k]
  ------------------
  305|      0|                        return makeTag(offset + count, TYPE_PERMILLE, STATE_BASE, 0);
  306|      0|                    case u'¤':
  ------------------
  |  Branch (306:21): [True: 0, False: 114k]
  ------------------
  307|      0|                        state = STATE_FIRST_CURR;
  308|      0|                        offset += count;
  309|       |                        // continue to the next code point
  310|      0|                        break;
  311|      0|                    default:
  ------------------
  |  Branch (311:21): [True: 0, False: 114k]
  ------------------
  312|      0|                        return makeTag(offset + count, TYPE_CODEPOINT, STATE_BASE, cp);
  313|   114k|                }
  314|      0|                break;
  315|      0|            case STATE_FIRST_QUOTE:
  ------------------
  |  Branch (315:13): [True: 0, False: 114k]
  ------------------
  316|      0|                if (cp == u'\'') {
  ------------------
  |  Branch (316:21): [True: 0, False: 0]
  ------------------
  317|      0|                    return makeTag(offset + count, TYPE_CODEPOINT, STATE_BASE, cp);
  318|      0|                } else {
  319|      0|                    return makeTag(offset + count, TYPE_CODEPOINT, STATE_INSIDE_QUOTE, cp);
  320|      0|                }
  321|      0|            case STATE_INSIDE_QUOTE:
  ------------------
  |  Branch (321:13): [True: 0, False: 114k]
  ------------------
  322|      0|                if (cp == u'\'') {
  ------------------
  |  Branch (322:21): [True: 0, False: 0]
  ------------------
  323|      0|                    state = STATE_AFTER_QUOTE;
  324|      0|                    offset += count;
  325|       |                    // continue to the next code point
  326|      0|                    break;
  327|      0|                } else {
  328|      0|                    return makeTag(offset + count, TYPE_CODEPOINT, STATE_INSIDE_QUOTE, cp);
  329|      0|                }
  330|      0|            case STATE_AFTER_QUOTE:
  ------------------
  |  Branch (330:13): [True: 0, False: 114k]
  ------------------
  331|      0|                if (cp == u'\'') {
  ------------------
  |  Branch (331:21): [True: 0, False: 0]
  ------------------
  332|      0|                    return makeTag(offset + count, TYPE_CODEPOINT, STATE_INSIDE_QUOTE, cp);
  333|      0|                } else {
  334|      0|                    state = STATE_BASE;
  335|       |                    // re-evaluate this code point
  336|      0|                    break;
  337|      0|                }
  338|      0|            case STATE_FIRST_CURR:
  ------------------
  |  Branch (338:13): [True: 0, False: 114k]
  ------------------
  339|      0|                if (cp == u'¤') {
  ------------------
  |  Branch (339:21): [True: 0, False: 0]
  ------------------
  340|      0|                    state = STATE_SECOND_CURR;
  341|      0|                    offset += count;
  342|       |                    // continue to the next code point
  343|      0|                    break;
  344|      0|                } else {
  345|      0|                    return makeTag(offset, TYPE_CURRENCY_SINGLE, STATE_BASE, 0);
  346|      0|                }
  347|      0|            case STATE_SECOND_CURR:
  ------------------
  |  Branch (347:13): [True: 0, False: 114k]
  ------------------
  348|      0|                if (cp == u'¤') {
  ------------------
  |  Branch (348:21): [True: 0, False: 0]
  ------------------
  349|      0|                    state = STATE_THIRD_CURR;
  350|      0|                    offset += count;
  351|       |                    // continue to the next code point
  352|      0|                    break;
  353|      0|                } else {
  354|      0|                    return makeTag(offset, TYPE_CURRENCY_DOUBLE, STATE_BASE, 0);
  355|      0|                }
  356|      0|            case STATE_THIRD_CURR:
  ------------------
  |  Branch (356:13): [True: 0, False: 114k]
  ------------------
  357|      0|                if (cp == u'¤') {
  ------------------
  |  Branch (357:21): [True: 0, False: 0]
  ------------------
  358|      0|                    state = STATE_FOURTH_CURR;
  359|      0|                    offset += count;
  360|       |                    // continue to the next code point
  361|      0|                    break;
  362|      0|                } else {
  363|      0|                    return makeTag(offset, TYPE_CURRENCY_TRIPLE, STATE_BASE, 0);
  364|      0|                }
  365|      0|            case STATE_FOURTH_CURR:
  ------------------
  |  Branch (365:13): [True: 0, False: 114k]
  ------------------
  366|      0|                if (cp == u'¤') {
  ------------------
  |  Branch (366:21): [True: 0, False: 0]
  ------------------
  367|      0|                    state = STATE_FIFTH_CURR;
  368|      0|                    offset += count;
  369|       |                    // continue to the next code point
  370|      0|                    break;
  371|      0|                } else {
  372|      0|                    return makeTag(offset, TYPE_CURRENCY_QUAD, STATE_BASE, 0);
  373|      0|                }
  374|      0|            case STATE_FIFTH_CURR:
  ------------------
  |  Branch (374:13): [True: 0, False: 114k]
  ------------------
  375|      0|                if (cp == u'¤') {
  ------------------
  |  Branch (375:21): [True: 0, False: 0]
  ------------------
  376|      0|                    state = STATE_OVERFLOW_CURR;
  377|      0|                    offset += count;
  378|       |                    // continue to the next code point
  379|      0|                    break;
  380|      0|                } else {
  381|      0|                    return makeTag(offset, TYPE_CURRENCY_QUINT, STATE_BASE, 0);
  382|      0|                }
  383|      0|            case STATE_OVERFLOW_CURR:
  ------------------
  |  Branch (383:13): [True: 0, False: 114k]
  ------------------
  384|      0|                if (cp == u'¤') {
  ------------------
  |  Branch (384:21): [True: 0, False: 0]
  ------------------
  385|      0|                    offset += count;
  386|       |                    // continue to the next code point and loop back to this state
  387|      0|                    break;
  388|      0|                } else {
  389|      0|                    return makeTag(offset, TYPE_CURRENCY_OVERFLOW, STATE_BASE, 0);
  390|      0|                }
  391|      0|            default:
  ------------------
  |  Branch (391:13): [True: 0, False: 114k]
  ------------------
  392|      0|                UPRV_UNREACHABLE_EXIT;
  ------------------
  |  |   68|      0|#   define UPRV_UNREACHABLE_EXIT abort()
  ------------------
  393|   114k|        }
  394|   114k|    }
  395|       |    // End of string
  396|      0|    switch (state) {
  397|      0|        case STATE_BASE:
  ------------------
  |  Branch (397:9): [True: 0, False: 0]
  ------------------
  398|       |            // No more tokens in string.
  399|      0|            return {-1};
  400|      0|        case STATE_FIRST_QUOTE:
  ------------------
  |  Branch (400:9): [True: 0, False: 0]
  ------------------
  401|      0|        case STATE_INSIDE_QUOTE:
  ------------------
  |  Branch (401:9): [True: 0, False: 0]
  ------------------
  402|       |            // For consistent behavior with the JDK and ICU 58, set an error here.
  403|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  404|      0|            return {-1};
  405|      0|        case STATE_AFTER_QUOTE:
  ------------------
  |  Branch (405:9): [True: 0, False: 0]
  ------------------
  406|       |            // No more tokens in string.
  407|      0|            return {-1};
  408|      0|        case STATE_FIRST_CURR:
  ------------------
  |  Branch (408:9): [True: 0, False: 0]
  ------------------
  409|      0|            return makeTag(offset, TYPE_CURRENCY_SINGLE, STATE_BASE, 0);
  410|      0|        case STATE_SECOND_CURR:
  ------------------
  |  Branch (410:9): [True: 0, False: 0]
  ------------------
  411|      0|            return makeTag(offset, TYPE_CURRENCY_DOUBLE, STATE_BASE, 0);
  412|      0|        case STATE_THIRD_CURR:
  ------------------
  |  Branch (412:9): [True: 0, False: 0]
  ------------------
  413|      0|            return makeTag(offset, TYPE_CURRENCY_TRIPLE, STATE_BASE, 0);
  414|      0|        case STATE_FOURTH_CURR:
  ------------------
  |  Branch (414:9): [True: 0, False: 0]
  ------------------
  415|      0|            return makeTag(offset, TYPE_CURRENCY_QUAD, STATE_BASE, 0);
  416|      0|        case STATE_FIFTH_CURR:
  ------------------
  |  Branch (416:9): [True: 0, False: 0]
  ------------------
  417|      0|            return makeTag(offset, TYPE_CURRENCY_QUINT, STATE_BASE, 0);
  418|      0|        case STATE_OVERFLOW_CURR:
  ------------------
  |  Branch (418:9): [True: 0, False: 0]
  ------------------
  419|      0|            return makeTag(offset, TYPE_CURRENCY_OVERFLOW, STATE_BASE, 0);
  420|      0|        default:
  ------------------
  |  Branch (420:9): [True: 0, False: 0]
  ------------------
  421|      0|            UPRV_UNREACHABLE_EXIT;
  ------------------
  |  |   68|      0|#   define UPRV_UNREACHABLE_EXIT abort()
  ------------------
  422|      0|    }
  423|      0|}
_ZN6icu_786number4impl10AffixUtils7hasNextERKNS1_8AffixTagERKNS_13UnicodeStringE:
  425|   570k|bool AffixUtils::hasNext(const AffixTag &tag, const UnicodeString &string) {
  426|       |    // First check for the {-1} and default initializer syntax.
  427|   570k|    if (tag.offset < 0) {
  ------------------
  |  Branch (427:9): [True: 0, False: 570k]
  ------------------
  428|      0|        return false;
  429|   570k|    } else if (tag.offset == 0) {
  ------------------
  |  Branch (429:16): [True: 456k, False: 114k]
  ------------------
  430|   456k|        return string.length() > 0;
  431|   456k|    }
  432|       |    // The rest of the fields are safe to use now.
  433|       |    // Special case: the last character in string is an end quote.
  434|   114k|    if (tag.state == STATE_INSIDE_QUOTE && tag.offset == string.length() - 1 &&
  ------------------
  |  Branch (434:9): [True: 0, False: 114k]
  |  Branch (434:44): [True: 0, False: 0]
  ------------------
  435|   114k|        string.charAt(tag.offset) == u'\'') {
  ------------------
  |  Branch (435:9): [True: 0, False: 0]
  ------------------
  436|      0|        return false;
  437|   114k|    } else if (tag.state != STATE_BASE) {
  ------------------
  |  Branch (437:16): [True: 0, False: 114k]
  ------------------
  438|      0|        return true;
  439|   114k|    } else {
  440|   114k|        return tag.offset < string.length();
  441|   114k|    }
  442|   114k|}

_ZN6icu_786number4impl8AffixTagC2Ev:
   42|   456k|            : offset(0), state(STATE_BASE) {}
_ZN6icu_786number4impl8AffixTagC2EiiNS1_17AffixPatternStateENS1_16AffixPatternTypeE:
   48|   114k|            : offset(offset), codePoint(codePoint), state(state), type(type) {}
_ZN6icu_786number4impl10AffixUtils7makeTagEiNS1_16AffixPatternTypeENS1_17AffixPatternStateEi:
  232|   114k|                                   UChar32 cp) {
  233|   114k|        return {offset, cp, state, type};
  234|   114k|    }

_ZN6icu_786number4impl15CurrencySymbolsC2ENS_12CurrencyUnitERKNS_6LocaleER10UErrorCode:
   21|  57.0k|        : fCurrency(currency), fLocaleName(locale.getName(), status) {
   22|  57.0k|    fCurrencySymbol.setToBogus();
   23|  57.0k|    fIntlCurrencySymbol.setToBogus();
   24|  57.0k|}
_ZN6icu_786number4impl15CurrencySymbolsC2ENS_12CurrencyUnitERKNS_6LocaleERKNS_20DecimalFormatSymbolsER10UErrorCode:
   28|  57.0k|        : CurrencySymbols(currency, locale, status) {
   29|       |    // If either of the overrides is present, save it in the local UnicodeString.
   30|  57.0k|    if (symbols.isCustomCurrencySymbol()) {
  ------------------
  |  Branch (30:9): [True: 0, False: 57.0k]
  ------------------
   31|      0|        fCurrencySymbol = symbols.getConstSymbol(DecimalFormatSymbols::kCurrencySymbol);
   32|      0|    }
   33|  57.0k|    if (symbols.isCustomIntlCurrencySymbol()) {
  ------------------
  |  Branch (33:9): [True: 0, False: 57.0k]
  ------------------
   34|      0|        fIntlCurrencySymbol = symbols.getConstSymbol(DecimalFormatSymbols::kIntlCurrencySymbol);
   35|      0|    }
   36|  57.0k|}

_ZN6icu_786number4impl15CurrencySymbolsC2Ev:
   20|  57.0k|    CurrencySymbols() = default; // default constructor: leaves class in valid but undefined state

_ZN6icu_7813IFixedDecimalD2Ev:
   73|   317k|icu::IFixedDecimal::~IFixedDecimal() = default;
_ZN6icu_786number4impl15DecimalQuantityC2Ev:
   75|   317k|DecimalQuantity::DecimalQuantity() {
   76|   317k|    setBcdToZero();
   77|   317k|    flags = 0;
   78|   317k|}
_ZN6icu_786number4impl15DecimalQuantityD2Ev:
   80|   317k|DecimalQuantity::~DecimalQuantity() {
   81|   317k|    if (usingBytes) {
  ------------------
  |  Branch (81:9): [True: 0, False: 317k]
  ------------------
   82|      0|        uprv_free(fBCD.bcdBytes.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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   83|      0|        fBCD.bcdBytes.ptr = nullptr;
   84|      0|        usingBytes = false;
   85|      0|    }
   86|   317k|}
_ZN6icu_786number4impl15DecimalQuantity20decreaseMinIntegerToEi:
  134|   201k|void DecimalQuantity::decreaseMinIntegerTo(int32_t minInt) {
  135|       |    // Validation should happen outside of DecimalQuantity, e.g., in the Precision class.
  136|   201k|    U_ASSERT(minInt >= 0);
  ------------------
  |  |   35|   201k|#   define U_ASSERT(exp) (void)0
  ------------------
  137|       |
  138|   201k|    if (lReqPos > minInt) {
  ------------------
  |  Branch (138:9): [True: 654, False: 200k]
  ------------------
  139|    654|        lReqPos = minInt;
  140|    654|    }
  141|   201k|}
_ZN6icu_786number4impl15DecimalQuantity20increaseMinIntegerToEi:
  143|   100k|void DecimalQuantity::increaseMinIntegerTo(int32_t minInt) {
  144|       |    // Validation should happen outside of DecimalQuantity, e.g., in the Precision class.
  145|   100k|    U_ASSERT(minInt >= 0);
  ------------------
  |  |   35|   100k|#   define U_ASSERT(exp) (void)0
  ------------------
  146|       |
  147|       |    // Special behavior: do not set minInt to be less than what is already set.
  148|       |    // This is so significant digits rounding can set the integer length.
  149|   100k|    if (lReqPos < minInt) {
  ------------------
  |  Branch (149:9): [True: 100k, False: 0]
  ------------------
  150|   100k|        lReqPos = minInt;
  151|   100k|    }
  152|   100k|}
_ZN6icu_786number4impl15DecimalQuantity15applyMaxIntegerEi:
  163|   100k|void DecimalQuantity::applyMaxInteger(int32_t maxInt) {
  164|       |    // Validation should happen outside of DecimalQuantity, e.g., in the Precision class.
  165|   100k|    U_ASSERT(maxInt >= 0);
  ------------------
  |  |   35|   100k|#   define U_ASSERT(exp) (void)0
  ------------------
  166|       |
  167|   100k|    if (precision == 0) {
  ------------------
  |  Branch (167:9): [True: 23.1k, False: 77.5k]
  ------------------
  168|  23.1k|        return;
  169|  23.1k|    }
  170|       |
  171|  77.5k|    if (maxInt <= scale) {
  ------------------
  |  Branch (171:9): [True: 20, False: 77.5k]
  ------------------
  172|     20|        setBcdToZero();
  173|     20|        return;
  174|     20|    }
  175|       |
  176|  77.5k|    int32_t magnitude = getMagnitude();
  177|  77.5k|    if (maxInt <= magnitude) {
  ------------------
  |  Branch (177:9): [True: 1.25k, False: 76.2k]
  ------------------
  178|  1.25k|        popFromLeft(magnitude - maxInt + 1);
  179|  1.25k|        compact();
  180|  1.25k|    }
  181|  77.5k|}
_ZNK6icu_786number4impl15DecimalQuantity12getMagnitudeEv:
  247|  77.5k|int32_t DecimalQuantity::getMagnitude() const {
  248|  77.5k|    U_ASSERT(precision != 0);
  ------------------
  |  |   35|  77.5k|#   define U_ASSERT(exp) (void)0
  ------------------
  249|  77.5k|    return scale + precision - 1;
  250|  77.5k|}
_ZNK6icu_786number4impl15DecimalQuantity24getUpperDisplayMagnitudeEv:
  315|   100k|int32_t DecimalQuantity::getUpperDisplayMagnitude() const {
  316|       |    // If this assertion fails, you need to call roundToInfinity() or some other rounding method.
  317|       |    // See the comment in the header file explaining the "isApproximate" field.
  318|   100k|    U_ASSERT(!isApproximate);
  ------------------
  |  |   35|   100k|#   define U_ASSERT(exp) (void)0
  ------------------
  319|       |
  320|   100k|    int32_t magnitude = scale + precision;
  321|   100k|    int32_t result = (lReqPos > magnitude) ? lReqPos : magnitude;
  ------------------
  |  Branch (321:22): [True: 31.7k, False: 68.9k]
  ------------------
  322|   100k|    return result - 1;
  323|   100k|}
_ZNK6icu_786number4impl15DecimalQuantity24getLowerDisplayMagnitudeEv:
  325|   201k|int32_t DecimalQuantity::getLowerDisplayMagnitude() const {
  326|       |    // If this assertion fails, you need to call roundToInfinity() or some other rounding method.
  327|       |    // See the comment in the header file explaining the "isApproximate" field.
  328|   201k|    U_ASSERT(!isApproximate);
  ------------------
  |  |   35|   201k|#   define U_ASSERT(exp) (void)0
  ------------------
  329|       |
  330|   201k|    int32_t magnitude = scale;
  331|   201k|    int32_t result = (rReqPos < magnitude) ? rReqPos : magnitude;
  ------------------
  |  Branch (331:22): [True: 32.9k, False: 168k]
  ------------------
  332|   201k|    return result;
  333|   201k|}
_ZNK6icu_786number4impl15DecimalQuantity8getDigitEi:
  335|   272k|int8_t DecimalQuantity::getDigit(int32_t magnitude) const {
  336|       |    // If this assertion fails, you need to call roundToInfinity() or some other rounding method.
  337|       |    // See the comment at the top of this file explaining the "isApproximate" field.
  338|   272k|    U_ASSERT(!isApproximate);
  ------------------
  |  |   35|   272k|#   define U_ASSERT(exp) (void)0
  ------------------
  339|       |
  340|   272k|    return getDigitPos(magnitude - scale);
  341|   272k|}
_ZNK6icu_786number4impl15DecimalQuantity10isNegativeEv:
  353|   100k|bool DecimalQuantity::isNegative() const {
  354|   100k|    return (flags & NEGATIVE_FLAG) != 0;
  355|   100k|}
_ZNK6icu_786number4impl15DecimalQuantity10isInfiniteEv:
  371|   100k|bool DecimalQuantity::isInfinite() const {
  372|   100k|    return (flags & INFINITY_FLAG) != 0;
  373|   100k|}
_ZNK6icu_786number4impl15DecimalQuantity5isNaNEv:
  375|   100k|bool DecimalQuantity::isNaN() const {
  376|   100k|    return (flags & NAN_FLAG) != 0;
  377|   100k|}
_ZNK6icu_786number4impl15DecimalQuantity9isZeroishEv:
  379|   159k|bool DecimalQuantity::isZeroish() const {
  380|   159k|    return precision == 0;
  381|   159k|}
_ZN6icu_786number4impl15DecimalQuantity9setToLongEl:
  408|   100k|DecimalQuantity &DecimalQuantity::setToLong(int64_t n) {
  409|   100k|    setBcdToZero();
  410|   100k|    flags = 0;
  411|   100k|    if (n < 0 && n > INT64_MIN) {
  ------------------
  |  Branch (411:9): [True: 281, False: 100k]
  |  Branch (411:18): [True: 281, False: 0]
  ------------------
  412|    281|        flags |= NEGATIVE_FLAG;
  413|    281|        n = -n;
  414|    281|    }
  415|   100k|    if (n != 0) {
  ------------------
  |  Branch (415:9): [True: 77.5k, False: 23.1k]
  ------------------
  416|  77.5k|        _setToLong(n);
  417|  77.5k|        compact();
  418|  77.5k|    }
  419|   100k|    return *this;
  420|   100k|}
_ZN6icu_786number4impl15DecimalQuantity10_setToLongEl:
  422|  77.5k|void DecimalQuantity::_setToLong(int64_t n) {
  423|  77.5k|    if (n == INT64_MIN) {
  ------------------
  |  Branch (423:9): [True: 0, False: 77.5k]
  ------------------
  424|      0|        DecNum decnum;
  425|      0|        UErrorCode localStatus = U_ZERO_ERROR;
  426|      0|        decnum.setTo("9.223372036854775808E+18", localStatus);
  427|      0|        if (U_FAILURE(localStatus)) { return; } // unexpected
  ------------------
  |  Branch (427:13): [True: 0, False: 0]
  ------------------
  428|      0|        flags |= NEGATIVE_FLAG;
  429|      0|        readDecNumberToBcd(decnum);
  430|  77.5k|    } else if (n <= INT32_MAX) {
  ------------------
  |  Branch (430:16): [True: 77.5k, False: 0]
  ------------------
  431|  77.5k|        readIntToBcd(static_cast<int32_t>(n));
  432|  77.5k|    } else {
  433|      0|        readLongToBcd(n);
  434|      0|    }
  435|  77.5k|}
_ZNK6icu_786number4impl15DecimalQuantity11getDigitPosEi:
 1110|   463k|int8_t DecimalQuantity::getDigitPos(int32_t position) const {
 1111|   463k|    if (usingBytes) {
  ------------------
  |  Branch (1111:9): [True: 0, False: 463k]
  ------------------
 1112|      0|        if (position < 0 || position >= precision) { return 0; }
  ------------------
  |  Branch (1112:13): [True: 0, False: 0]
  |  Branch (1112:29): [True: 0, False: 0]
  ------------------
 1113|      0|        return fBCD.bcdBytes.ptr[position];
 1114|   463k|    } else {
 1115|   463k|        if (position < 0 || position >= 16) { return 0; }
  ------------------
  |  Branch (1115:13): [True: 16.5k, False: 447k]
  |  Branch (1115:29): [True: 0, False: 447k]
  ------------------
 1116|   447k|        return static_cast<int8_t>((fBCD.bcdLong >> (position * 4)) & 0xf);
 1117|   463k|    }
 1118|   463k|}
_ZN6icu_786number4impl15DecimalQuantity11popFromLeftEi:
 1166|  1.25k|void DecimalQuantity::popFromLeft(int32_t numDigits) {
 1167|  1.25k|    U_ASSERT(numDigits <= precision);
  ------------------
  |  |   35|  1.25k|#   define U_ASSERT(exp) (void)0
  ------------------
 1168|  1.25k|    if (usingBytes) {
  ------------------
  |  Branch (1168:9): [True: 0, False: 1.25k]
  ------------------
 1169|      0|        int i = precision - 1;
 1170|      0|        for (; i >= precision - numDigits; i--) {
  ------------------
  |  Branch (1170:16): [True: 0, False: 0]
  ------------------
 1171|      0|            fBCD.bcdBytes.ptr[i] = 0;
 1172|      0|        }
 1173|  1.25k|    } else {
 1174|  1.25k|        fBCD.bcdLong &= (static_cast<uint64_t>(1) << ((precision - numDigits) * 4)) - 1;
 1175|  1.25k|    }
 1176|  1.25k|    precision -= numDigits;
 1177|  1.25k|}
_ZN6icu_786number4impl15DecimalQuantity12setBcdToZeroEv:
 1179|   417k|void DecimalQuantity::setBcdToZero() {
 1180|   417k|    if (usingBytes) {
  ------------------
  |  Branch (1180:9): [True: 0, False: 417k]
  ------------------
 1181|      0|        uprv_free(fBCD.bcdBytes.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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1182|      0|        fBCD.bcdBytes.ptr = nullptr;
 1183|      0|        usingBytes = false;
 1184|      0|    }
 1185|   417k|    fBCD.bcdLong = 0L;
 1186|   417k|    scale = 0;
 1187|   417k|    precision = 0;
 1188|   417k|    isApproximate = false;
 1189|   417k|    origDouble = 0;
 1190|   417k|    origDelta = 0;
 1191|   417k|    exponent = 0;
 1192|   417k|}
_ZN6icu_786number4impl15DecimalQuantity12readIntToBcdEi:
 1194|  77.5k|void DecimalQuantity::readIntToBcd(int32_t n) {
 1195|  77.5k|    U_ASSERT(n != 0);
  ------------------
  |  |   35|  77.5k|#   define U_ASSERT(exp) (void)0
  ------------------
 1196|       |    // ints always fit inside the long implementation.
 1197|  77.5k|    uint64_t result = 0L;
 1198|  77.5k|    int i = 16;
 1199|   301k|    for (; n != 0; n /= 10, i--) {
  ------------------
  |  Branch (1199:12): [True: 223k, False: 77.5k]
  ------------------
 1200|   223k|        result = (result >> 4) + ((static_cast<uint64_t>(n) % 10) << 60);
 1201|   223k|    }
 1202|  77.5k|    U_ASSERT(!usingBytes);
  ------------------
  |  |   35|  77.5k|#   define U_ASSERT(exp) (void)0
  ------------------
 1203|  77.5k|    fBCD.bcdLong = result >> (i * 4);
 1204|  77.5k|    scale = 0;
 1205|  77.5k|    precision = 16 - i;
 1206|  77.5k|}
_ZN6icu_786number4impl15DecimalQuantity7compactEv:
 1271|  78.8k|void DecimalQuantity::compact() {
 1272|  78.8k|    if (usingBytes) {
  ------------------
  |  Branch (1272:9): [True: 0, False: 78.8k]
  ------------------
 1273|      0|        int32_t delta = 0;
 1274|      0|        for (; delta < precision && fBCD.bcdBytes.ptr[delta] == 0; delta++);
  ------------------
  |  Branch (1274:16): [True: 0, False: 0]
  |  Branch (1274:37): [True: 0, False: 0]
  ------------------
 1275|      0|        if (delta == precision) {
  ------------------
  |  Branch (1275:13): [True: 0, False: 0]
  ------------------
 1276|       |            // Number is zero
 1277|      0|            setBcdToZero();
 1278|      0|            return;
 1279|      0|        } else {
 1280|       |            // Remove trailing zeros
 1281|      0|            shiftRight(delta);
 1282|      0|        }
 1283|       |
 1284|       |        // Compute precision
 1285|      0|        int32_t leading = precision - 1;
 1286|      0|        for (; leading >= 0 && fBCD.bcdBytes.ptr[leading] == 0; leading--);
  ------------------
  |  Branch (1286:16): [True: 0, False: 0]
  |  Branch (1286:32): [True: 0, False: 0]
  ------------------
 1287|      0|        precision = leading + 1;
 1288|       |
 1289|       |        // Switch storage mechanism if possible
 1290|      0|        if (precision <= 16) {
  ------------------
  |  Branch (1290:13): [True: 0, False: 0]
  ------------------
 1291|      0|            switchStorage();
 1292|      0|        }
 1293|       |
 1294|  78.8k|    } else {
 1295|  78.8k|        if (fBCD.bcdLong == 0L) {
  ------------------
  |  Branch (1295:13): [True: 0, False: 78.8k]
  ------------------
 1296|       |            // Number is zero
 1297|      0|            setBcdToZero();
 1298|      0|            return;
 1299|      0|        }
 1300|       |
 1301|       |        // Compact the number (remove trailing zeros)
 1302|       |        // TODO: Use a more efficient algorithm here and below. There is a logarithmic one.
 1303|  78.8k|        int32_t delta = 0;
 1304|  95.3k|        for (; delta < precision && getDigitPos(delta) == 0; delta++);
  ------------------
  |  Branch (1304:16): [True: 95.3k, False: 0]
  |  Branch (1304:37): [True: 16.5k, False: 78.8k]
  ------------------
 1305|  78.8k|        fBCD.bcdLong >>= delta * 4;
 1306|  78.8k|        scale += delta;
 1307|       |
 1308|       |        // Compute precision
 1309|  78.8k|        int32_t leading = precision - 1;
 1310|  95.4k|        for (; leading >= 0 && getDigitPos(leading) == 0; leading--);
  ------------------
  |  Branch (1310:16): [True: 95.4k, False: 0]
  |  Branch (1310:32): [True: 16.5k, False: 78.8k]
  ------------------
 1311|  78.8k|        precision = leading + 1;
 1312|  78.8k|    }
 1313|  78.8k|}

_ZN6icu_786number4impl23DecimalFormatPropertiesC2Ev:
   31|   159k|DecimalFormatProperties::DecimalFormatProperties() {
   32|   159k|    clear();
   33|   159k|}
_ZN6icu_786number4impl23DecimalFormatProperties5clearEv:
   35|   159k|void DecimalFormatProperties::clear() {
   36|   159k|    compactStyle.nullify();
   37|   159k|    currency.nullify();
   38|   159k|    currencyPluralInfo.fPtr.adoptInstead(nullptr);
   39|   159k|    currencyUsage.nullify();
   40|   159k|    decimalPatternMatchRequired = false;
   41|   159k|    decimalSeparatorAlwaysShown = false;
   42|   159k|    exponentSignAlwaysShown = false;
   43|   159k|    currencyAsDecimal = false;
   44|   159k|    formatFailIfMoreThanMaxDigits = false;
   45|   159k|    formatWidth = -1;
   46|   159k|    groupingSize = -1;
   47|   159k|    groupingUsed = true;
   48|   159k|    magnitudeMultiplier = 0;
   49|   159k|    maximumFractionDigits = -1;
   50|   159k|    maximumIntegerDigits = -1;
   51|   159k|    maximumSignificantDigits = -1;
   52|   159k|    minimumExponentDigits = -1;
   53|   159k|    minimumFractionDigits = -1;
   54|   159k|    minimumGroupingDigits = -1;
   55|   159k|    minimumIntegerDigits = -1;
   56|   159k|    minimumSignificantDigits = -1;
   57|   159k|    multiplier = 1;
   58|   159k|    multiplierScale = 0;
   59|   159k|    negativePrefix.setToBogus();
   60|   159k|    negativePrefixPattern.setToBogus();
   61|   159k|    negativeSuffix.setToBogus();
   62|   159k|    negativeSuffixPattern.setToBogus();
   63|   159k|    padPosition.nullify();
   64|   159k|    padString.setToBogus();
   65|   159k|    parseCaseSensitive = false;
   66|   159k|    parseIntegerOnly = false;
   67|   159k|    parseMode.nullify();
   68|   159k|    parseNoExponent = false;
   69|   159k|    parseToBigDecimal = false;
   70|   159k|    parseAllInput = UNUM_MAYBE;
   71|   159k|    positivePrefix.setToBogus();
   72|   159k|    positivePrefixPattern.setToBogus();
   73|   159k|    positiveSuffix.setToBogus();
   74|   159k|    positiveSuffixPattern.setToBogus();
   75|   159k|    roundingIncrement = 0.0;
   76|   159k|    roundingMode.nullify();
   77|   159k|    secondaryGroupingSize = -1;
   78|   159k|    signAlwaysShown = false;
   79|   159k|}
_ZNK6icu_786number4impl23DecimalFormatProperties7_equalsERKS2_b:
   82|   202k|DecimalFormatProperties::_equals(const DecimalFormatProperties& other, bool ignoreForFastFormat) const {
   83|   202k|    bool eq = true;
   84|       |
   85|       |    // Properties that must be equal both normally and for fast-path formatting
   86|   202k|    eq = eq && compactStyle == other.compactStyle;
  ------------------
  |  Branch (86:10): [True: 202k, False: 0]
  |  Branch (86:16): [True: 202k, False: 0]
  ------------------
   87|   202k|    eq = eq && currency == other.currency;
  ------------------
  |  Branch (87:10): [True: 202k, False: 0]
  |  Branch (87:16): [True: 202k, False: 0]
  ------------------
   88|   202k|    eq = eq && currencyPluralInfo.fPtr.getAlias() == other.currencyPluralInfo.fPtr.getAlias();
  ------------------
  |  Branch (88:10): [True: 202k, False: 0]
  |  Branch (88:16): [True: 202k, False: 0]
  ------------------
   89|   202k|    eq = eq && currencyUsage == other.currencyUsage;
  ------------------
  |  Branch (89:10): [True: 202k, False: 0]
  |  Branch (89:16): [True: 202k, False: 0]
  ------------------
   90|   202k|    eq = eq && decimalSeparatorAlwaysShown == other.decimalSeparatorAlwaysShown;
  ------------------
  |  Branch (90:10): [True: 202k, False: 0]
  |  Branch (90:16): [True: 202k, False: 0]
  ------------------
   91|   202k|    eq = eq && exponentSignAlwaysShown == other.exponentSignAlwaysShown;
  ------------------
  |  Branch (91:10): [True: 202k, False: 0]
  |  Branch (91:16): [True: 202k, False: 0]
  ------------------
   92|   202k|    eq = eq && currencyAsDecimal == other.currencyAsDecimal;
  ------------------
  |  Branch (92:10): [True: 202k, False: 0]
  |  Branch (92:16): [True: 202k, False: 0]
  ------------------
   93|   202k|    eq = eq && formatFailIfMoreThanMaxDigits == other.formatFailIfMoreThanMaxDigits;
  ------------------
  |  Branch (93:10): [True: 202k, False: 0]
  |  Branch (93:16): [True: 202k, False: 0]
  ------------------
   94|   202k|    eq = eq && formatWidth == other.formatWidth;
  ------------------
  |  Branch (94:10): [True: 202k, False: 0]
  |  Branch (94:16): [True: 202k, False: 0]
  ------------------
   95|   202k|    eq = eq && magnitudeMultiplier == other.magnitudeMultiplier;
  ------------------
  |  Branch (95:10): [True: 202k, False: 0]
  |  Branch (95:16): [True: 202k, False: 0]
  ------------------
   96|   202k|    eq = eq && maximumSignificantDigits == other.maximumSignificantDigits;
  ------------------
  |  Branch (96:10): [True: 202k, False: 0]
  |  Branch (96:16): [True: 202k, False: 0]
  ------------------
   97|   202k|    eq = eq && minimumExponentDigits == other.minimumExponentDigits;
  ------------------
  |  Branch (97:10): [True: 202k, False: 0]
  |  Branch (97:16): [True: 202k, False: 0]
  ------------------
   98|   202k|    eq = eq && minimumGroupingDigits == other.minimumGroupingDigits;
  ------------------
  |  Branch (98:10): [True: 202k, False: 0]
  |  Branch (98:16): [True: 202k, False: 0]
  ------------------
   99|   202k|    eq = eq && minimumSignificantDigits == other.minimumSignificantDigits;
  ------------------
  |  Branch (99:10): [True: 202k, False: 0]
  |  Branch (99:16): [True: 202k, False: 0]
  ------------------
  100|   202k|    eq = eq && multiplier == other.multiplier;
  ------------------
  |  Branch (100:10): [True: 202k, False: 0]
  |  Branch (100:16): [True: 202k, False: 0]
  ------------------
  101|   202k|    eq = eq && multiplierScale == other.multiplierScale;
  ------------------
  |  Branch (101:10): [True: 202k, False: 0]
  |  Branch (101:16): [True: 202k, False: 0]
  ------------------
  102|   202k|    eq = eq && negativePrefix == other.negativePrefix;
  ------------------
  |  Branch (102:10): [True: 202k, False: 0]
  |  Branch (102:16): [True: 202k, False: 0]
  ------------------
  103|   202k|    eq = eq && negativeSuffix == other.negativeSuffix;
  ------------------
  |  Branch (103:10): [True: 202k, False: 0]
  |  Branch (103:16): [True: 202k, False: 0]
  ------------------
  104|   202k|    eq = eq && padPosition == other.padPosition;
  ------------------
  |  Branch (104:10): [True: 202k, False: 0]
  |  Branch (104:16): [True: 202k, False: 0]
  ------------------
  105|   202k|    eq = eq && padString == other.padString;
  ------------------
  |  Branch (105:10): [True: 202k, False: 0]
  |  Branch (105:16): [True: 202k, False: 0]
  ------------------
  106|   202k|    eq = eq && positivePrefix == other.positivePrefix;
  ------------------
  |  Branch (106:10): [True: 202k, False: 0]
  |  Branch (106:16): [True: 202k, False: 0]
  ------------------
  107|   202k|    eq = eq && positiveSuffix == other.positiveSuffix;
  ------------------
  |  Branch (107:10): [True: 202k, False: 0]
  |  Branch (107:16): [True: 202k, False: 0]
  ------------------
  108|   202k|    eq = eq && roundingIncrement == other.roundingIncrement;
  ------------------
  |  Branch (108:10): [True: 202k, False: 0]
  |  Branch (108:16): [True: 202k, False: 0]
  ------------------
  109|   202k|    eq = eq && roundingMode == other.roundingMode;
  ------------------
  |  Branch (109:10): [True: 202k, False: 0]
  |  Branch (109:16): [True: 202k, False: 0]
  ------------------
  110|   202k|    eq = eq && secondaryGroupingSize == other.secondaryGroupingSize;
  ------------------
  |  Branch (110:10): [True: 202k, False: 0]
  |  Branch (110:16): [True: 195k, False: 7.00k]
  ------------------
  111|   202k|    eq = eq && signAlwaysShown == other.signAlwaysShown;
  ------------------
  |  Branch (111:10): [True: 195k, False: 7.00k]
  |  Branch (111:16): [True: 195k, False: 0]
  ------------------
  112|       |
  113|   202k|    if (ignoreForFastFormat) {
  ------------------
  |  Branch (113:9): [True: 202k, False: 0]
  ------------------
  114|   202k|        return eq;
  115|   202k|    }
  116|       |
  117|       |    // Properties ignored by fast-path formatting
  118|       |    // Formatting (special handling required):
  119|      0|    eq = eq && groupingSize == other.groupingSize;
  ------------------
  |  Branch (119:10): [True: 0, False: 0]
  |  Branch (119:16): [True: 0, False: 0]
  ------------------
  120|      0|    eq = eq && groupingUsed == other.groupingUsed;
  ------------------
  |  Branch (120:10): [True: 0, False: 0]
  |  Branch (120:16): [True: 0, False: 0]
  ------------------
  121|      0|    eq = eq && minimumFractionDigits == other.minimumFractionDigits;
  ------------------
  |  Branch (121:10): [True: 0, False: 0]
  |  Branch (121:16): [True: 0, False: 0]
  ------------------
  122|      0|    eq = eq && maximumFractionDigits == other.maximumFractionDigits;
  ------------------
  |  Branch (122:10): [True: 0, False: 0]
  |  Branch (122:16): [True: 0, False: 0]
  ------------------
  123|      0|    eq = eq && maximumIntegerDigits == other.maximumIntegerDigits;
  ------------------
  |  Branch (123:10): [True: 0, False: 0]
  |  Branch (123:16): [True: 0, False: 0]
  ------------------
  124|      0|    eq = eq && minimumIntegerDigits == other.minimumIntegerDigits;
  ------------------
  |  Branch (124:10): [True: 0, False: 0]
  |  Branch (124:16): [True: 0, False: 0]
  ------------------
  125|      0|    eq = eq && negativePrefixPattern == other.negativePrefixPattern;
  ------------------
  |  Branch (125:10): [True: 0, False: 0]
  |  Branch (125:16): [True: 0, False: 0]
  ------------------
  126|      0|    eq = eq && negativeSuffixPattern == other.negativeSuffixPattern;
  ------------------
  |  Branch (126:10): [True: 0, False: 0]
  |  Branch (126:16): [True: 0, False: 0]
  ------------------
  127|      0|    eq = eq && positivePrefixPattern == other.positivePrefixPattern;
  ------------------
  |  Branch (127:10): [True: 0, False: 0]
  |  Branch (127:16): [True: 0, False: 0]
  ------------------
  128|      0|    eq = eq && positiveSuffixPattern == other.positiveSuffixPattern;
  ------------------
  |  Branch (128:10): [True: 0, False: 0]
  |  Branch (128:16): [True: 0, False: 0]
  ------------------
  129|       |
  130|       |    // Parsing (always safe to ignore):
  131|      0|    eq = eq && decimalPatternMatchRequired == other.decimalPatternMatchRequired;
  ------------------
  |  Branch (131:10): [True: 0, False: 0]
  |  Branch (131:16): [True: 0, False: 0]
  ------------------
  132|      0|    eq = eq && parseCaseSensitive == other.parseCaseSensitive;
  ------------------
  |  Branch (132:10): [True: 0, False: 0]
  |  Branch (132:16): [True: 0, False: 0]
  ------------------
  133|      0|    eq = eq && parseIntegerOnly == other.parseIntegerOnly;
  ------------------
  |  Branch (133:10): [True: 0, False: 0]
  |  Branch (133:16): [True: 0, False: 0]
  ------------------
  134|      0|    eq = eq && parseMode == other.parseMode;
  ------------------
  |  Branch (134:10): [True: 0, False: 0]
  |  Branch (134:16): [True: 0, False: 0]
  ------------------
  135|      0|    eq = eq && parseNoExponent == other.parseNoExponent;
  ------------------
  |  Branch (135:10): [True: 0, False: 0]
  |  Branch (135:16): [True: 0, False: 0]
  ------------------
  136|      0|    eq = eq && parseToBigDecimal == other.parseToBigDecimal;
  ------------------
  |  Branch (136:10): [True: 0, False: 0]
  |  Branch (136:16): [True: 0, False: 0]
  ------------------
  137|      0|    eq = eq && parseAllInput == other.parseAllInput;
  ------------------
  |  Branch (137:10): [True: 0, False: 0]
  |  Branch (137:16): [True: 0, False: 0]
  ------------------
  138|       |
  139|      0|    return eq;
  140|   202k|}
_ZNK6icu_786number4impl23DecimalFormatProperties29equalsDefaultExceptFastFormatEv:
  142|   202k|bool DecimalFormatProperties::equalsDefaultExceptFastFormat() const {
  143|   202k|    UErrorCode localStatus = U_ZERO_ERROR;
  144|   202k|    umtx_initOnce(gDefaultPropertiesInitOnce, &initDefaultProperties, localStatus);
  145|   202k|    return _equals(*reinterpret_cast<DecimalFormatProperties*>(kRawDefaultProperties), true);
  146|   202k|}
number_decimfmtprops.cpp:_ZN12_GLOBAL__N_121initDefaultPropertiesER10UErrorCode:
   23|      1|void U_CALLCONV initDefaultProperties(UErrorCode&) {
   24|       |    // can't fail, uses placement new into statically allocated space.
   25|      1|    new(kRawDefaultProperties) DecimalFormatProperties(); // set to the default instance
   26|      1|}

_ZN6icu_786number4impl25CurrencyPluralInfoWrapperC2ERKS2_:
   39|  57.3k|    CurrencyPluralInfoWrapper(const CurrencyPluralInfoWrapper& other) {
   40|  57.3k|        if (!other.fPtr.isNull()) {
  ------------------
  |  Branch (40:13): [True: 0, False: 57.3k]
  ------------------
   41|      0|            fPtr.adoptInstead(new CurrencyPluralInfo(*other.fPtr));
   42|      0|        }
   43|  57.3k|    }
_ZN6icu_786number4impl25CurrencyPluralInfoWrapperC2Ev:
   37|   159k|    CurrencyPluralInfoWrapper() = default;

_ZNO6icu_786number23NumberFormatterSettingsINS0_26UnlocalizedNumberFormatterEE6macrosEONS0_4impl10MacroPropsE:
  383|   202k|Derived NumberFormatterSettings<Derived>::macros(impl::MacroProps&& macros)&& {
  384|   202k|    Derived move(std::move(*this));
  385|   202k|    move.fMacros = std::move(macros);
  386|   202k|    return move;
  387|   202k|}
_ZN6icu_786number15NumberFormatter4withEv:
  409|   202k|UnlocalizedNumberFormatter NumberFormatter::with() {
  410|   202k|    UnlocalizedNumberFormatter result;
  411|   202k|    return result;
  412|   202k|}
_ZN6icu_786number26UnlocalizedNumberFormatterC2EONS0_23NumberFormatterSettingsIS1_EE:
  446|   202k|        : NFS<UNF>(std::move(src)) {
  447|       |    // No additional fields to assign
  448|   202k|}
_ZN6icu_786number24LocalizedNumberFormatteraSEOS1_:
  488|   202k|LocalizedNumberFormatter& LocalizedNumberFormatter::operator=(LNF&& src) noexcept {
  489|   202k|    NFS<LNF>::operator=(static_cast<NFS<LNF>&&>(src));
  490|   202k|    lnfMoveHelper(std::move(src));
  491|   202k|    return *this;
  492|   202k|}
_ZN6icu_786number24LocalizedNumberFormatter13resetCompiledEv:
  494|   202k|void LocalizedNumberFormatter::resetCompiled() {
  495|   202k|    auto* callCount = reinterpret_cast<u_atomic_int32_t*>(fUnsafeCallCount);
  496|   202k|    umtx_storeRelease(*callCount, 0);
  497|   202k|    fCompiled = nullptr;
  498|   202k|}
_ZN6icu_786number24LocalizedNumberFormatter13lnfMoveHelperEOS1_:
  500|   202k|void LocalizedNumberFormatter::lnfMoveHelper(LNF&& src) {
  501|       |    // Copy over the compiled formatter and set call count to INT32_MIN as in computeCompiled().
  502|       |    // Don't copy the call count directly because doing so requires a loadAcquire/storeRelease.
  503|       |    // The bits themselves appear to be platform-dependent, so copying them might not be safe.
  504|   202k|    delete fCompiled;
  505|   202k|    if (src.fCompiled != nullptr) {
  ------------------
  |  Branch (505:9): [True: 0, False: 202k]
  ------------------
  506|      0|        auto* callCount = reinterpret_cast<u_atomic_int32_t*>(fUnsafeCallCount);
  507|      0|        umtx_storeRelease(*callCount, INT32_MIN);
  508|      0|        fCompiled = src.fCompiled;
  509|       |        // Reset the source object to leave it in a safe state.
  510|      0|        src.resetCompiled();
  511|   202k|    } else {
  512|   202k|        resetCompiled();
  513|   202k|    }
  514|       |
  515|       |    // Unconditionally move the warehouse
  516|   202k|    delete fWarehouse;
  517|   202k|    fWarehouse = src.fWarehouse;
  518|   202k|    src.fWarehouse = nullptr;
  519|   202k|}
_ZN6icu_786number24LocalizedNumberFormatterD2Ev:
  551|   310k|LocalizedNumberFormatter::~LocalizedNumberFormatter() {
  552|   310k|    delete fCompiled;
  553|   310k|    delete fWarehouse;
  554|   310k|}
_ZN6icu_786number24LocalizedNumberFormatterC2EONS0_4impl10MacroPropsERKNS_6LocaleE:
  561|   202k|LocalizedNumberFormatter::LocalizedNumberFormatter(MacroProps&& macros, const Locale& locale) {
  562|   202k|    fMacros = std::move(macros);
  563|   202k|    fMacros.locale = locale;
  564|   202k|}
_ZNO6icu_786number26UnlocalizedNumberFormatter6localeERKNS_6LocaleE:
  570|   202k|LocalizedNumberFormatter UnlocalizedNumberFormatter::locale(const Locale& locale)&& {
  571|   202k|    return LocalizedNumberFormatter(std::move(fMacros), locale);
  572|   202k|}
_ZNK6icu_786number24LocalizedNumberFormatter23getDecimalFormatSymbolsEv:
  749|   404k|const DecimalFormatSymbols* LocalizedNumberFormatter::getDecimalFormatSymbols() const {
  750|   404k|    return fMacros.symbols.getDecimalFormatSymbols();
  751|   404k|}

_ZN6icu_786number4impl19NumberFormatterImpl11writeNumberERKNS1_16SimpleMicroPropsERNS1_15DecimalQuantityERNS_22FormattedStringBuilderEiR10UErrorCode:
  523|   100k|        UErrorCode& status) {
  524|   100k|    int32_t length = 0;
  525|   100k|    if (quantity.isInfinite()) {
  ------------------
  |  Branch (525:9): [True: 0, False: 100k]
  ------------------
  526|      0|        length += string.insert(
  527|      0|                length + index,
  528|      0|                micros.symbols->getSymbol(DecimalFormatSymbols::ENumberFormatSymbol::kInfinitySymbol),
  529|      0|                {UFIELD_CATEGORY_NUMBER, UNUM_INTEGER_FIELD},
  530|      0|                status);
  531|       |
  532|   100k|    } else if (quantity.isNaN()) {
  ------------------
  |  Branch (532:16): [True: 0, False: 100k]
  ------------------
  533|      0|        length += string.insert(
  534|      0|                length + index,
  535|      0|                micros.symbols->getSymbol(DecimalFormatSymbols::ENumberFormatSymbol::kNaNSymbol),
  536|      0|                {UFIELD_CATEGORY_NUMBER, UNUM_INTEGER_FIELD},
  537|      0|                status);
  538|       |
  539|   100k|    } else {
  540|       |        // Add the integer digits
  541|   100k|        length += writeIntegerDigits(
  542|   100k|            micros,
  543|   100k|            quantity,
  544|   100k|            string,
  545|   100k|            length + index,
  546|   100k|            status);
  547|       |
  548|       |        // Add the decimal point
  549|   100k|        if (quantity.getLowerDisplayMagnitude() < 0 || micros.decimal == UNUM_DECIMAL_SEPARATOR_ALWAYS) {
  ------------------
  |  Branch (549:13): [True: 0, False: 100k]
  |  Branch (549:56): [True: 0, False: 100k]
  ------------------
  550|      0|            if (!micros.currencyAsDecimal.isBogus()) {
  ------------------
  |  Branch (550:17): [True: 0, False: 0]
  ------------------
  551|      0|                length += string.insert(
  552|      0|                    length + index,
  553|      0|                    micros.currencyAsDecimal,
  554|      0|                    {UFIELD_CATEGORY_NUMBER, UNUM_CURRENCY_FIELD},
  555|      0|                    status);
  556|      0|            } else if (micros.useCurrency) {
  ------------------
  |  Branch (556:24): [True: 0, False: 0]
  ------------------
  557|      0|                length += string.insert(
  558|      0|                    length + index,
  559|      0|                    micros.symbols->getSymbol(
  560|      0|                        DecimalFormatSymbols::ENumberFormatSymbol::kMonetarySeparatorSymbol),
  561|      0|                    {UFIELD_CATEGORY_NUMBER, UNUM_DECIMAL_SEPARATOR_FIELD},
  562|      0|                    status);
  563|      0|            } else {
  564|      0|                length += string.insert(
  565|      0|                    length + index,
  566|      0|                    micros.symbols->getSymbol(
  567|      0|                        DecimalFormatSymbols::ENumberFormatSymbol::kDecimalSeparatorSymbol),
  568|      0|                    {UFIELD_CATEGORY_NUMBER, UNUM_DECIMAL_SEPARATOR_FIELD},
  569|      0|                    status);
  570|      0|            }
  571|      0|        }
  572|       |
  573|       |        // Add the fraction digits
  574|   100k|        length += writeFractionDigits(micros, quantity, string, length + index, status);
  575|       |
  576|   100k|        if (length == 0) {
  ------------------
  |  Branch (576:13): [True: 0, False: 100k]
  ------------------
  577|       |            // Force output of the digit for value 0
  578|      0|            length += utils::insertDigitFromSymbols(
  579|      0|                    string,
  580|      0|                    index,
  581|      0|                    0,
  582|      0|                    *micros.symbols,
  583|      0|                    {UFIELD_CATEGORY_NUMBER, UNUM_INTEGER_FIELD},
  584|      0|                    status);
  585|      0|        }
  586|   100k|    }
  587|       |
  588|   100k|    return length;
  589|   100k|}
_ZN6icu_786number4impl19NumberFormatterImpl18writeIntegerDigitsERKNS1_16SimpleMicroPropsERNS1_15DecimalQuantityERNS_22FormattedStringBuilderEiR10UErrorCode:
  596|   100k|        UErrorCode& status) {
  597|   100k|    int length = 0;
  598|   100k|    int integerCount = quantity.getUpperDisplayMagnitude() + 1;
  599|   373k|    for (int i = 0; i < integerCount; i++) {
  ------------------
  |  Branch (599:21): [True: 272k, False: 100k]
  ------------------
  600|       |        // Add grouping separator
  601|   272k|        if (micros.grouping.groupAtPosition(i, quantity)) {
  ------------------
  |  Branch (601:13): [True: 0, False: 272k]
  ------------------
  602|      0|            length += string.insert(
  603|      0|                    index,
  604|      0|                    micros.useCurrency ? micros.symbols->getSymbol(
  ------------------
  |  Branch (604:21): [True: 0, False: 0]
  ------------------
  605|      0|                            DecimalFormatSymbols::ENumberFormatSymbol::kMonetaryGroupingSeparatorSymbol)
  606|      0|                                       : micros.symbols->getSymbol(
  607|      0|                            DecimalFormatSymbols::ENumberFormatSymbol::kGroupingSeparatorSymbol),
  608|      0|                    {UFIELD_CATEGORY_NUMBER, UNUM_GROUPING_SEPARATOR_FIELD},
  609|      0|                    status);
  610|      0|        }
  611|       |
  612|       |        // Get and append the next digit value
  613|   272k|        int8_t nextDigit = quantity.getDigit(i);
  614|   272k|        length += utils::insertDigitFromSymbols(
  615|   272k|                string,
  616|   272k|                index,
  617|   272k|                nextDigit,
  618|   272k|                *micros.symbols,
  619|   272k|                {UFIELD_CATEGORY_NUMBER,
  620|   272k|                UNUM_INTEGER_FIELD},
  621|   272k|                status);
  622|   272k|    }
  623|   100k|    return length;
  624|   100k|}
_ZN6icu_786number4impl19NumberFormatterImpl19writeFractionDigitsERKNS1_16SimpleMicroPropsERNS1_15DecimalQuantityERNS_22FormattedStringBuilderEiR10UErrorCode:
  631|   100k|        UErrorCode& status) {
  632|   100k|    int length = 0;
  633|   100k|    int fractionCount = -quantity.getLowerDisplayMagnitude();
  634|   100k|    for (int i = 0; i < fractionCount; i++) {
  ------------------
  |  Branch (634:21): [True: 0, False: 100k]
  ------------------
  635|       |        // Get and append the next digit value
  636|      0|        int8_t nextDigit = quantity.getDigit(-i - 1);
  637|      0|        length += utils::insertDigitFromSymbols(
  638|      0|                string,
  639|      0|                length + index,
  640|      0|                nextDigit,
  641|      0|                *micros.symbols,
  642|      0|                {UFIELD_CATEGORY_NUMBER, UNUM_FRACTION_FIELD},
  643|      0|                status);
  644|      0|    }
  645|   100k|    return length;
  646|   100k|}

_ZN6icu_786number4impl7Grouper11forStrategyE23UNumberGroupingStrategy:
   37|   175k|Grouper Grouper::forStrategy(UNumberGroupingStrategy grouping) {
   38|   175k|    switch (grouping) {
   39|   175k|    case UNUM_GROUPING_OFF:
  ------------------
  |  Branch (39:5): [True: 175k, False: 0]
  ------------------
   40|   175k|        return {-1, -1, -2, grouping};
   41|      0|    case UNUM_GROUPING_AUTO:
  ------------------
  |  Branch (41:5): [True: 0, False: 175k]
  ------------------
   42|      0|        return {-2, -2, -2, grouping};
   43|      0|    case UNUM_GROUPING_MIN2:
  ------------------
  |  Branch (43:5): [True: 0, False: 175k]
  ------------------
   44|      0|        return {-2, -2, -3, grouping};
   45|      0|    case UNUM_GROUPING_ON_ALIGNED:
  ------------------
  |  Branch (45:5): [True: 0, False: 175k]
  ------------------
   46|      0|        return {-4, -4, 1, grouping};
   47|      0|    case UNUM_GROUPING_THOUSANDS:
  ------------------
  |  Branch (47:5): [True: 0, False: 175k]
  ------------------
   48|      0|        return {3, 3, 1, grouping};
   49|      0|    default:
  ------------------
  |  Branch (49:5): [True: 0, False: 175k]
  ------------------
   50|      0|        UPRV_UNREACHABLE_EXIT;
  ------------------
  |  |   68|      0|#   define UPRV_UNREACHABLE_EXIT abort()
  ------------------
   51|   175k|    }
   52|   175k|}
_ZN6icu_786number4impl7Grouper13forPropertiesERKNS1_23DecimalFormatPropertiesE:
   54|   202k|Grouper Grouper::forProperties(const DecimalFormatProperties& properties) {
   55|   202k|    if (!properties.groupingUsed) {
  ------------------
  |  Branch (55:9): [True: 118k, False: 83.7k]
  ------------------
   56|   118k|        return forStrategy(UNUM_GROUPING_OFF);
   57|   118k|    }
   58|  83.7k|    auto grouping1 = static_cast<int16_t>(properties.groupingSize);
   59|  83.7k|    auto grouping2 = static_cast<int16_t>(properties.secondaryGroupingSize);
   60|  83.7k|    auto minGrouping = static_cast<int16_t>(properties.minimumGroupingDigits);
   61|  83.7k|    grouping1 = grouping1 > 0 ? grouping1 : grouping2 > 0 ? grouping2 : grouping1;
  ------------------
  |  Branch (61:17): [True: 83.7k, False: 0]
  |  Branch (61:45): [True: 0, False: 0]
  ------------------
   62|  83.7k|    grouping2 = grouping2 > 0 ? grouping2 : grouping1;
  ------------------
  |  Branch (62:17): [True: 3.67k, False: 80.0k]
  ------------------
   63|  83.7k|    return {grouping1, grouping2, minGrouping, UNUM_GROUPING_COUNT};
   64|   202k|}
_ZN6icu_786number4impl7Grouper13setLocaleDataERKNS1_17ParsedPatternInfoERKNS_6LocaleE:
   66|  57.0k|void Grouper::setLocaleData(const impl::ParsedPatternInfo &patternInfo, const Locale& locale) {
   67|  57.0k|    if (fMinGrouping == -2) {
  ------------------
  |  Branch (67:9): [True: 57.0k, False: 0]
  ------------------
   68|  57.0k|        fMinGrouping = getMinGroupingForLocale(locale);
   69|  57.0k|    } else if (fMinGrouping == -3) {
  ------------------
  |  Branch (69:16): [True: 0, False: 0]
  ------------------
   70|      0|        fMinGrouping = static_cast<int16_t>(uprv_max(2, getMinGroupingForLocale(locale)));
  ------------------
  |  | 1526|      0|#define uprv_max U_ICU_ENTRY_POINT_RENAME(uprv_max)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   71|      0|    } else {
   72|       |        // leave fMinGrouping alone
   73|      0|    }
   74|  57.0k|    if (fGrouping1 != -2 && fGrouping2 != -4) {
  ------------------
  |  Branch (74:9): [True: 57.0k, False: 0]
  |  Branch (74:29): [True: 57.0k, False: 0]
  ------------------
   75|  57.0k|        return;
   76|  57.0k|    }
   77|      0|    auto grouping1 = static_cast<int16_t> (patternInfo.positive.groupingSizes & 0xffff);
   78|      0|    auto grouping2 = static_cast<int16_t> ((patternInfo.positive.groupingSizes >> 16) & 0xffff);
   79|      0|    auto grouping3 = static_cast<int16_t> ((patternInfo.positive.groupingSizes >> 32) & 0xffff);
   80|      0|    if (grouping2 == -1) {
  ------------------
  |  Branch (80:9): [True: 0, False: 0]
  ------------------
   81|      0|        grouping1 = fGrouping1 == -4 ? static_cast<short>(3) : static_cast<short>(-1);
  ------------------
  |  Branch (81:21): [True: 0, False: 0]
  ------------------
   82|      0|    }
   83|      0|    if (grouping3 == -1) {
  ------------------
  |  Branch (83:9): [True: 0, False: 0]
  ------------------
   84|      0|        grouping2 = grouping1;
   85|      0|    }
   86|      0|    fGrouping1 = grouping1;
   87|      0|    fGrouping2 = grouping2;
   88|      0|}
_ZNK6icu_786number4impl7Grouper15groupAtPositionEiRKNS1_15DecimalQuantityE:
   90|   272k|bool Grouper::groupAtPosition(int32_t position, const impl::DecimalQuantity &value) const {
   91|   272k|    U_ASSERT(fGrouping1 > -2);
  ------------------
  |  |   35|   272k|#   define U_ASSERT(exp) (void)0
  ------------------
   92|   272k|    if (fGrouping1 == -1 || fGrouping1 == 0) {
  ------------------
  |  Branch (92:9): [True: 272k, False: 0]
  |  Branch (92:29): [True: 0, False: 0]
  ------------------
   93|       |        // Either -1 or 0 means "no grouping"
   94|   272k|        return false;
   95|   272k|    }
   96|      0|    position -= fGrouping1;
   97|      0|    return position >= 0 && (position % fGrouping2) == 0
  ------------------
  |  Branch (97:12): [True: 0, False: 0]
  |  Branch (97:29): [True: 0, False: 0]
  ------------------
   98|      0|           && value.getUpperDisplayMagnitude() - fGrouping1 + 1 >= fMinGrouping;
  ------------------
  |  Branch (98:15): [True: 0, False: 0]
  ------------------
   99|   272k|}
number_grouping.cpp:_ZN12_GLOBAL__N_123getMinGroupingForLocaleERKN6icu_786LocaleE:
   18|  57.0k|int16_t getMinGroupingForLocale(const Locale& locale) {
   19|       |    // TODO: Cache this?
   20|  57.0k|    UErrorCode localStatus = U_ZERO_ERROR;
   21|  57.0k|    LocalUResourceBundlePointer bundle(ures_open(nullptr, locale.getName(), &localStatus));
  ------------------
  |  | 1691|  57.0k|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|  57.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  57.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  57.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   22|  57.0k|    int32_t resultLen = 0;
   23|  57.0k|    const char16_t* result = ures_getStringByKeyWithFallback(
  ------------------
  |  | 1678|  57.0k|#define ures_getStringByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getStringByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  57.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  57.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  57.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   24|  57.0k|        bundle.getAlias(),
   25|  57.0k|        "NumberElements/minimumGroupingDigits",
   26|  57.0k|        &resultLen,
   27|  57.0k|        &localStatus);
   28|       |    // TODO: Is it safe to assume resultLen == 1? Would locales set minGrouping >= 10?
   29|  57.0k|    if (U_FAILURE(localStatus) || resultLen != 1) {
  ------------------
  |  Branch (29:9): [True: 0, False: 57.0k]
  |  Branch (29:35): [True: 0, False: 57.0k]
  ------------------
   30|      0|        return 1;
   31|      0|    }
   32|  57.0k|    return result[0] - u'0';
   33|  57.0k|}

_ZN6icu_786number12IntegerWidthC2Essb:
   16|   202k|IntegerWidth::IntegerWidth(digits_t minInt, digits_t maxInt, bool formatFailIfMoreThanMaxDigits) {
   17|   202k|    fUnion.minMaxInt.fMinInt = minInt;
   18|   202k|    fUnion.minMaxInt.fMaxInt = maxInt;
   19|   202k|    fUnion.minMaxInt.fFormatFailIfMoreThanMaxDigits = formatFailIfMoreThanMaxDigits;
   20|   202k|}

_ZN6icu_786number4impl20NumberPropertyMapper6createERKNS1_23DecimalFormatPropertiesERKNS_20DecimalFormatSymbolsERNS1_22DecimalFormatWarehouseERS3_R10UErrorCode:
   33|   202k|                                                        UErrorCode& status) {
   34|   202k|    return NumberFormatter::with().macros(
   35|   202k|            oldToNew(
   36|   202k|                    properties, symbols, warehouse, &exportedProperties, status));
   37|   202k|}
_ZN6icu_786number4impl20NumberPropertyMapper8oldToNewERKNS1_23DecimalFormatPropertiesERKNS_20DecimalFormatSymbolsERNS1_22DecimalFormatWarehouseEPS3_R10UErrorCode:
   43|   202k|                                          UErrorCode& status) {
   44|   202k|    MacroProps macros;
   45|   202k|    Locale locale = symbols.getLocale();
   46|       |
   47|       |    /////////////
   48|       |    // SYMBOLS //
   49|       |    /////////////
   50|       |
   51|   202k|    macros.symbols.setTo(symbols);
   52|       |
   53|       |    //////////////////
   54|       |    // PLURAL RULES //
   55|       |    //////////////////
   56|       |
   57|   202k|    if (!properties.currencyPluralInfo.fPtr.isNull()) {
  ------------------
  |  Branch (57:9): [True: 0, False: 202k]
  ------------------
   58|      0|        macros.rules = properties.currencyPluralInfo.fPtr->getPluralRules();
   59|      0|    }
   60|       |
   61|       |    /////////////
   62|       |    // AFFIXES //
   63|       |    /////////////
   64|       |
   65|   202k|    warehouse.affixProvider.setTo(properties, status);
   66|   202k|    macros.affixProvider = &warehouse.affixProvider.get();
   67|       |
   68|       |    ///////////
   69|       |    // UNITS //
   70|       |    ///////////
   71|       |
   72|   202k|    bool useCurrency = (
   73|   202k|            !properties.currency.isNull() ||
  ------------------
  |  Branch (73:13): [True: 0, False: 202k]
  ------------------
   74|   202k|            !properties.currencyPluralInfo.fPtr.isNull() ||
  ------------------
  |  Branch (74:13): [True: 0, False: 202k]
  ------------------
   75|   202k|            !properties.currencyUsage.isNull() ||
  ------------------
  |  Branch (75:13): [True: 0, False: 202k]
  ------------------
   76|   202k|            warehouse.affixProvider.get().hasCurrencySign());
  ------------------
  |  Branch (76:13): [True: 0, False: 202k]
  ------------------
   77|   202k|    CurrencyUnit currency;
   78|   202k|    UCurrencyUsage currencyUsage;
   79|   202k|    if (useCurrency) {
  ------------------
  |  Branch (79:9): [True: 0, False: 202k]
  ------------------
   80|      0|        currency = resolveCurrency(properties, locale, status);
   81|      0|        currencyUsage = properties.currencyUsage.getOrDefault(UCURR_USAGE_STANDARD);
   82|       |        // NOTE: Slicing is OK.
   83|      0|        macros.unit = currency; // NOLINT
   84|      0|    }
   85|       |
   86|       |    ///////////////////////
   87|       |    // ROUNDING STRATEGY //
   88|       |    ///////////////////////
   89|       |
   90|   202k|    int32_t maxInt = properties.maximumIntegerDigits;
   91|   202k|    int32_t minInt = properties.minimumIntegerDigits;
   92|   202k|    int32_t maxFrac = properties.maximumFractionDigits;
   93|   202k|    int32_t minFrac = properties.minimumFractionDigits;
   94|   202k|    int32_t minSig = properties.minimumSignificantDigits;
   95|   202k|    int32_t maxSig = properties.maximumSignificantDigits;
   96|   202k|    double roundingIncrement = properties.roundingIncrement;
   97|       |    // Not assigning directly to macros.roundingMode here: we change
   98|       |    // roundingMode if and when we also change macros.precision.
   99|   202k|    RoundingMode roundingMode = properties.roundingMode.getOrDefault(UNUM_ROUND_HALFEVEN);
  100|   202k|    bool explicitMinMaxFrac = minFrac != -1 || maxFrac != -1;
  ------------------
  |  Branch (100:31): [True: 202k, False: 0]
  |  Branch (100:48): [True: 0, False: 0]
  ------------------
  101|   202k|    bool explicitMinMaxSig = minSig != -1 || maxSig != -1;
  ------------------
  |  Branch (101:30): [True: 0, False: 202k]
  |  Branch (101:46): [True: 0, False: 202k]
  ------------------
  102|       |    // Resolve min/max frac for currencies, required for the validation logic and for when minFrac or
  103|       |    // maxFrac was
  104|       |    // set (but not both) on a currency instance.
  105|       |    // NOTE: Increments are handled in "Precision.constructCurrency()".
  106|   202k|    if (useCurrency && (minFrac == -1 || maxFrac == -1)) {
  ------------------
  |  Branch (106:9): [True: 0, False: 202k]
  |  Branch (106:25): [True: 0, False: 0]
  |  Branch (106:42): [True: 0, False: 0]
  ------------------
  107|      0|        int32_t digits = ucurr_getDefaultFractionDigitsForUsage(
  ------------------
  |  |  835|      0|#define ucurr_getDefaultFractionDigitsForUsage U_ICU_ENTRY_POINT_RENAME(ucurr_getDefaultFractionDigitsForUsage)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  108|      0|                currency.getISOCurrency(), currencyUsage, &status);
  109|      0|        if (minFrac == -1 && maxFrac == -1) {
  ------------------
  |  Branch (109:13): [True: 0, False: 0]
  |  Branch (109:30): [True: 0, False: 0]
  ------------------
  110|      0|            minFrac = digits;
  111|      0|            maxFrac = digits;
  112|      0|        } else if (minFrac == -1) {
  ------------------
  |  Branch (112:20): [True: 0, False: 0]
  ------------------
  113|      0|            minFrac = std::min(maxFrac, digits);
  114|      0|        } else /* if (maxFrac == -1) */ {
  115|      0|            maxFrac = std::max(minFrac, digits);
  116|      0|        }
  117|      0|    }
  118|       |    // Validate min/max int/frac.
  119|       |    // For backwards compatibility, minimum overrides maximum if the two conflict.
  120|   202k|    if (minInt == 0 && maxFrac != 0) {
  ------------------
  |  Branch (120:9): [True: 0, False: 202k]
  |  Branch (120:24): [True: 0, False: 0]
  ------------------
  121|      0|        minFrac = (minFrac < 0 || (minFrac == 0 && maxInt == 0)) ? 1 : minFrac;
  ------------------
  |  Branch (121:20): [True: 0, False: 0]
  |  Branch (121:36): [True: 0, False: 0]
  |  Branch (121:52): [True: 0, False: 0]
  ------------------
  122|      0|        maxFrac = maxFrac < 0 ? -1 : maxFrac < minFrac ? minFrac : maxFrac;
  ------------------
  |  Branch (122:19): [True: 0, False: 0]
  |  Branch (122:38): [True: 0, False: 0]
  ------------------
  123|      0|        minInt = 0;
  124|      0|        maxInt = maxInt < 0 ? -1 : maxInt > kMaxIntFracSig ? -1 : maxInt;
  ------------------
  |  Branch (124:18): [True: 0, False: 0]
  |  Branch (124:36): [True: 0, False: 0]
  ------------------
  125|   202k|    } else {
  126|       |        // Force a digit before the decimal point.
  127|   202k|        minFrac = minFrac < 0 ? 0 : minFrac;
  ------------------
  |  Branch (127:19): [True: 0, False: 202k]
  ------------------
  128|   202k|        maxFrac = maxFrac < 0 ? -1 : maxFrac < minFrac ? minFrac : maxFrac;
  ------------------
  |  Branch (128:19): [True: 0, False: 202k]
  |  Branch (128:38): [True: 0, False: 202k]
  ------------------
  129|   202k|        minInt = minInt <= 0 ? 1 : minInt > kMaxIntFracSig ? 1 : minInt;
  ------------------
  |  Branch (129:18): [True: 0, False: 202k]
  |  Branch (129:36): [True: 0, False: 202k]
  ------------------
  130|   202k|        maxInt = maxInt < 0 ? -1 : maxInt < minInt ? minInt : maxInt > kMaxIntFracSig ? -1 : maxInt;
  ------------------
  |  Branch (130:18): [True: 202k, False: 0]
  |  Branch (130:36): [True: 0, False: 0]
  |  Branch (130:63): [True: 0, False: 0]
  ------------------
  131|   202k|    }
  132|   202k|    Precision precision;
  133|   202k|    if (!properties.currencyUsage.isNull()) {
  ------------------
  |  Branch (133:9): [True: 0, False: 202k]
  ------------------
  134|      0|        U_ASSERT(useCurrency);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
  135|      0|        precision = Precision::constructCurrency(currencyUsage).withCurrency(currency);
  136|   202k|    } else if (roundingIncrement != 0.0) {
  ------------------
  |  Branch (136:16): [True: 0, False: 202k]
  ------------------
  137|      0|        if (PatternStringUtils::ignoreRoundingIncrement(roundingIncrement, maxFrac)) {
  ------------------
  |  Branch (137:13): [True: 0, False: 0]
  ------------------
  138|      0|            precision = Precision::constructFraction(minFrac, maxFrac);
  139|      0|        } else {
  140|       |            // Convert the double increment to an integer increment
  141|      0|            precision = Precision::increment(roundingIncrement).withMinFraction(minFrac);
  142|      0|        }
  143|   202k|    } else if (explicitMinMaxSig) {
  ------------------
  |  Branch (143:16): [True: 0, False: 202k]
  ------------------
  144|      0|        minSig = minSig < 1 ? 1 : minSig > kMaxIntFracSig ? kMaxIntFracSig : minSig;
  ------------------
  |  Branch (144:18): [True: 0, False: 0]
  |  Branch (144:35): [True: 0, False: 0]
  ------------------
  145|      0|        maxSig = maxSig < 0 ? kMaxIntFracSig : maxSig < minSig ? minSig : maxSig > kMaxIntFracSig
  ------------------
  |  Branch (145:18): [True: 0, False: 0]
  |  Branch (145:48): [True: 0, False: 0]
  |  Branch (145:75): [True: 0, False: 0]
  ------------------
  146|      0|                                                                          ? kMaxIntFracSig : maxSig;
  147|      0|        precision = Precision::constructSignificant(minSig, maxSig);
  148|   202k|    } else if (explicitMinMaxFrac) {
  ------------------
  |  Branch (148:16): [True: 202k, False: 0]
  ------------------
  149|   202k|        precision = Precision::constructFraction(minFrac, maxFrac);
  150|   202k|    } else if (useCurrency) {
  ------------------
  |  Branch (150:16): [True: 0, False: 0]
  ------------------
  151|      0|        precision = Precision::constructCurrency(currencyUsage);
  152|      0|    }
  153|   202k|    if (!precision.isBogus()) {
  ------------------
  |  Branch (153:9): [True: 202k, False: 0]
  ------------------
  154|   202k|        macros.roundingMode = roundingMode;
  155|   202k|        macros.precision = precision;
  156|   202k|    }
  157|       |
  158|       |    ///////////////////
  159|       |    // INTEGER WIDTH //
  160|       |    ///////////////////
  161|       |
  162|   202k|    macros.integerWidth = IntegerWidth(
  163|   202k|            static_cast<digits_t>(minInt),
  164|   202k|            static_cast<digits_t>(maxInt),
  165|   202k|            properties.formatFailIfMoreThanMaxDigits);
  166|       |
  167|       |    ///////////////////////
  168|       |    // GROUPING STRATEGY //
  169|       |    ///////////////////////
  170|       |
  171|   202k|    macros.grouper = Grouper::forProperties(properties);
  172|       |
  173|       |    /////////////
  174|       |    // PADDING //
  175|       |    /////////////
  176|       |
  177|   202k|    if (properties.formatWidth > 0) {
  ------------------
  |  Branch (177:9): [True: 0, False: 202k]
  ------------------
  178|      0|        macros.padder = Padder::forProperties(properties);
  179|      0|    }
  180|       |
  181|       |    ///////////////////////////////
  182|       |    // DECIMAL MARK ALWAYS SHOWN //
  183|       |    ///////////////////////////////
  184|       |
  185|   202k|    macros.decimal = properties.decimalSeparatorAlwaysShown ? UNUM_DECIMAL_SEPARATOR_ALWAYS
  ------------------
  |  Branch (185:22): [True: 0, False: 202k]
  ------------------
  186|   202k|                                                            : UNUM_DECIMAL_SEPARATOR_AUTO;
  187|       |
  188|       |    ///////////////////////
  189|       |    // SIGN ALWAYS SHOWN //
  190|       |    ///////////////////////
  191|       |
  192|   202k|    macros.sign = properties.signAlwaysShown ? UNUM_SIGN_ALWAYS : UNUM_SIGN_AUTO;
  ------------------
  |  Branch (192:19): [True: 0, False: 202k]
  ------------------
  193|       |
  194|       |    /////////////////////////
  195|       |    // SCIENTIFIC NOTATION //
  196|       |    /////////////////////////
  197|       |
  198|   202k|    if (properties.minimumExponentDigits != -1) {
  ------------------
  |  Branch (198:9): [True: 0, False: 202k]
  ------------------
  199|       |        // Scientific notation is required.
  200|       |        // This whole section feels like a hack, but it is needed for regression tests.
  201|       |        // The mapping from property bag to scientific notation is nontrivial due to LDML rules.
  202|      0|        if (maxInt > 8) {
  ------------------
  |  Branch (202:13): [True: 0, False: 0]
  ------------------
  203|       |            // But #13110: The maximum of 8 digits has unknown origins and is not in the spec.
  204|       |            // If maxInt is greater than 8, it is set to minInt, even if minInt is greater than 8.
  205|      0|            maxInt = minInt;
  206|      0|            macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt);
  207|      0|        } else if (maxInt > minInt && minInt > 1) {
  ------------------
  |  Branch (207:20): [True: 0, False: 0]
  |  Branch (207:39): [True: 0, False: 0]
  ------------------
  208|       |            // Bug #13289: if maxInt > minInt > 1, then minInt should be 1.
  209|      0|            minInt = 1;
  210|      0|            macros.integerWidth = IntegerWidth::zeroFillTo(minInt).truncateAt(maxInt);
  211|      0|        }
  212|      0|        int engineering = maxInt < 0 ? -1 : maxInt;
  ------------------
  |  Branch (212:27): [True: 0, False: 0]
  ------------------
  213|      0|        macros.notation = ScientificNotation(
  214|       |                // Engineering interval:
  215|      0|                static_cast<int8_t>(engineering),
  216|       |                // Enforce minimum integer digits (for patterns like "000.00E0"):
  217|      0|                (engineering == minInt),
  218|       |                // Minimum exponent digits:
  219|      0|                static_cast<digits_t>(properties.minimumExponentDigits),
  220|       |                // Exponent sign always shown:
  221|      0|                properties.exponentSignAlwaysShown ? UNUM_SIGN_ALWAYS : UNUM_SIGN_AUTO);
  ------------------
  |  Branch (221:17): [True: 0, False: 0]
  ------------------
  222|       |        // Scientific notation also involves overriding the rounding mode.
  223|       |        // TODO: Overriding here is a bit of a hack. Should this logic go earlier?
  224|      0|        if (macros.precision.fType == Precision::PrecisionType::RND_FRACTION) {
  ------------------
  |  Branch (224:13): [True: 0, False: 0]
  ------------------
  225|       |            // For the purposes of rounding, get the original min/max int/frac, since the local
  226|       |            // variables have been manipulated for display purposes.
  227|      0|            int maxInt_ = properties.maximumIntegerDigits;
  228|      0|            int minInt_ = properties.minimumIntegerDigits;
  229|      0|            int minFrac_ = properties.minimumFractionDigits;
  230|      0|            int maxFrac_ = properties.maximumFractionDigits;
  231|      0|            if (minInt_ == 0 && maxFrac_ == 0) {
  ------------------
  |  Branch (231:17): [True: 0, False: 0]
  |  Branch (231:33): [True: 0, False: 0]
  ------------------
  232|       |                // Patterns like "#E0" and "##E0", which mean no rounding!
  233|      0|                macros.precision = Precision::unlimited();
  234|      0|            } else if (minInt_ == 0 && minFrac_ == 0) {
  ------------------
  |  Branch (234:24): [True: 0, False: 0]
  |  Branch (234:40): [True: 0, False: 0]
  ------------------
  235|       |                // Patterns like "#.##E0" (no zeros in the mantissa), which mean round to maxFrac+1
  236|      0|                macros.precision = Precision::constructSignificant(1, maxFrac_ + 1);
  237|      0|            } else {
  238|      0|                int maxSig_ = minInt_ + maxFrac_;
  239|       |                // Bug #20058: if maxInt_ > minInt_ > 1, then minInt_ should be 1.
  240|      0|                if (maxInt_ > minInt_ && minInt_ > 1) {
  ------------------
  |  Branch (240:21): [True: 0, False: 0]
  |  Branch (240:42): [True: 0, False: 0]
  ------------------
  241|      0|                    minInt_ = 1;
  242|      0|                }
  243|      0|                int minSig_ = minInt_ + minFrac_;
  244|       |                // To avoid regression, maxSig is not reset when minInt_ set to 1.
  245|       |                // TODO: Reset maxSig_ = 1 + minFrac_ to follow the spec.
  246|      0|                macros.precision = Precision::constructSignificant(minSig_, maxSig_);
  247|      0|            }
  248|      0|            macros.roundingMode = roundingMode;
  249|      0|        }
  250|      0|    }
  251|       |
  252|       |    //////////////////////
  253|       |    // COMPACT NOTATION //
  254|       |    //////////////////////
  255|       |
  256|   202k|    if (!properties.compactStyle.isNull()) {
  ------------------
  |  Branch (256:9): [True: 0, False: 202k]
  ------------------
  257|      0|        if (properties.compactStyle.getNoError() == UNumberCompactStyle::UNUM_LONG) {
  ------------------
  |  Branch (257:13): [True: 0, False: 0]
  ------------------
  258|      0|            macros.notation = Notation::compactLong();
  259|      0|        } else {
  260|      0|            macros.notation = Notation::compactShort();
  261|      0|        }
  262|      0|    }
  263|       |
  264|       |    /////////////////
  265|       |    // MULTIPLIERS //
  266|       |    /////////////////
  267|       |
  268|   202k|    macros.scale = scaleFromProperties(properties);
  269|       |
  270|       |    //////////////////////
  271|       |    // PROPERTY EXPORTS //
  272|       |    //////////////////////
  273|       |
  274|   202k|    if (exportedProperties != nullptr) {
  ------------------
  |  Branch (274:9): [True: 202k, False: 0]
  ------------------
  275|       |
  276|   202k|        exportedProperties->currency = currency;
  277|   202k|        exportedProperties->roundingMode = roundingMode;
  278|   202k|        exportedProperties->minimumIntegerDigits = minInt;
  279|   202k|        exportedProperties->maximumIntegerDigits = maxInt == -1 ? INT32_MAX : maxInt;
  ------------------
  |  Branch (279:52): [True: 202k, False: 0]
  ------------------
  280|       |
  281|   202k|        Precision rounding_;
  282|   202k|        if (useCurrency && precision.fType == Precision::PrecisionType::RND_CURRENCY) {
  ------------------
  |  Branch (282:13): [True: 0, False: 202k]
  |  Branch (282:28): [True: 0, False: 0]
  ------------------
  283|      0|            rounding_ = precision.withCurrency(currency, status);
  284|   202k|        } else {
  285|   202k|            rounding_ = precision;
  286|   202k|        }
  287|   202k|        int minFrac_ = minFrac;
  288|   202k|        int maxFrac_ = maxFrac;
  289|   202k|        int minSig_ = minSig;
  290|   202k|        int maxSig_ = maxSig;
  291|   202k|        double increment_ = 0.0;
  292|   202k|        if (rounding_.fType == Precision::PrecisionType::RND_FRACTION) {
  ------------------
  |  Branch (292:13): [True: 202k, False: 0]
  ------------------
  293|   202k|            minFrac_ = rounding_.fUnion.fracSig.fMinFrac;
  294|   202k|            maxFrac_ = rounding_.fUnion.fracSig.fMaxFrac;
  295|   202k|        } else if (rounding_.fType == Precision::PrecisionType::RND_INCREMENT
  ------------------
  |  Branch (295:20): [True: 0, False: 0]
  ------------------
  296|      0|                || rounding_.fType == Precision::PrecisionType::RND_INCREMENT_ONE
  ------------------
  |  Branch (296:20): [True: 0, False: 0]
  ------------------
  297|      0|                || rounding_.fType == Precision::PrecisionType::RND_INCREMENT_FIVE) {
  ------------------
  |  Branch (297:20): [True: 0, False: 0]
  ------------------
  298|      0|            minFrac_ = rounding_.fUnion.increment.fMinFrac;
  299|       |            // If incrementRounding is used, maxFrac is set equal to minFrac
  300|      0|            maxFrac_ = rounding_.fUnion.increment.fMinFrac;
  301|       |            // Convert the integer increment to a double
  302|      0|            DecimalQuantity dq;
  303|      0|            dq.setToLong(rounding_.fUnion.increment.fIncrement);
  304|      0|            dq.adjustMagnitude(rounding_.fUnion.increment.fIncrementMagnitude);
  305|      0|            increment_ = dq.toDouble();
  306|      0|        } else if (rounding_.fType == Precision::PrecisionType::RND_SIGNIFICANT) {
  ------------------
  |  Branch (306:20): [True: 0, False: 0]
  ------------------
  307|      0|            minSig_ = rounding_.fUnion.fracSig.fMinSig;
  308|      0|            maxSig_ = rounding_.fUnion.fracSig.fMaxSig;
  309|      0|        }
  310|       |
  311|   202k|        exportedProperties->minimumFractionDigits = minFrac_;
  312|   202k|        exportedProperties->maximumFractionDigits = maxFrac_;
  313|   202k|        exportedProperties->minimumSignificantDigits = minSig_;
  314|   202k|        exportedProperties->maximumSignificantDigits = maxSig_;
  315|   202k|        exportedProperties->roundingIncrement = increment_;
  316|   202k|    }
  317|       |
  318|   202k|    return macros;
  319|   202k|}
_ZN6icu_786number4impl30PropertiesAffixPatternProvider5setToERKNS1_23DecimalFormatPropertiesER10UErrorCode:
  322|   202k|void PropertiesAffixPatternProvider::setTo(const DecimalFormatProperties& properties, UErrorCode& status) {
  323|   202k|    fBogus = false;
  324|       |
  325|       |    // There are two ways to set affixes in DecimalFormat: via the pattern string (applyPattern), and via the
  326|       |    // explicit setters (setPositivePrefix and friends).  The way to resolve the settings is as follows:
  327|       |    //
  328|       |    // 1) If the explicit setting is present for the field, use it.
  329|       |    // 2) Otherwise, follows UTS 35 rules based on the pattern string.
  330|       |    //
  331|       |    // Importantly, the explicit setters affect only the one field they override.  If you set the positive
  332|       |    // prefix, that should not affect the negative prefix.
  333|       |
  334|       |    // Convenience: Extract the properties into local variables.
  335|       |    // Variables are named with three chars: [p/n][p/s][o/p]
  336|       |    // [p/n] => p for positive, n for negative
  337|       |    // [p/s] => p for prefix, s for suffix
  338|       |    // [o/p] => o for escaped custom override string, p for pattern string
  339|   202k|    UnicodeString ppo = AffixUtils::escape(properties.positivePrefix);
  340|   202k|    UnicodeString pso = AffixUtils::escape(properties.positiveSuffix);
  341|   202k|    UnicodeString npo = AffixUtils::escape(properties.negativePrefix);
  342|   202k|    UnicodeString nso = AffixUtils::escape(properties.negativeSuffix);
  343|   202k|    const UnicodeString& ppp = properties.positivePrefixPattern;
  344|   202k|    const UnicodeString& psp = properties.positiveSuffixPattern;
  345|   202k|    const UnicodeString& npp = properties.negativePrefixPattern;
  346|   202k|    const UnicodeString& nsp = properties.negativeSuffixPattern;
  347|       |
  348|   202k|    if (!properties.positivePrefix.isBogus()) {
  ------------------
  |  Branch (348:9): [True: 0, False: 202k]
  ------------------
  349|      0|        posPrefix = ppo;
  350|   202k|    } else if (!ppp.isBogus()) {
  ------------------
  |  Branch (350:16): [True: 202k, False: 0]
  ------------------
  351|   202k|        posPrefix = ppp;
  352|   202k|    } else {
  353|       |        // UTS 35: Default positive prefix is empty string.
  354|      0|        posPrefix = u"";
  355|      0|    }
  356|       |
  357|   202k|    if (!properties.positiveSuffix.isBogus()) {
  ------------------
  |  Branch (357:9): [True: 0, False: 202k]
  ------------------
  358|      0|        posSuffix = pso;
  359|   202k|    } else if (!psp.isBogus()) {
  ------------------
  |  Branch (359:16): [True: 202k, False: 0]
  ------------------
  360|   202k|        posSuffix = psp;
  361|   202k|    } else {
  362|       |        // UTS 35: Default positive suffix is empty string.
  363|      0|        posSuffix = u"";
  364|      0|    }
  365|       |
  366|   202k|    if (!properties.negativePrefix.isBogus()) {
  ------------------
  |  Branch (366:9): [True: 0, False: 202k]
  ------------------
  367|      0|        negPrefix = npo;
  368|   202k|    } else if (!npp.isBogus()) {
  ------------------
  |  Branch (368:16): [True: 0, False: 202k]
  ------------------
  369|      0|        negPrefix = npp;
  370|   202k|    } else {
  371|       |        // UTS 35: Default negative prefix is "-" with positive prefix.
  372|       |        // Important: We prepend the "-" to the pattern, not the override!
  373|   202k|        negPrefix = ppp.isBogus() ? u"-" : u"-" + ppp;
  ------------------
  |  Branch (373:21): [True: 0, False: 202k]
  ------------------
  374|   202k|    }
  375|       |
  376|   202k|    if (!properties.negativeSuffix.isBogus()) {
  ------------------
  |  Branch (376:9): [True: 0, False: 202k]
  ------------------
  377|      0|        negSuffix = nso;
  378|   202k|    } else if (!nsp.isBogus()) {
  ------------------
  |  Branch (378:16): [True: 0, False: 202k]
  ------------------
  379|      0|        negSuffix = nsp;
  380|   202k|    } else {
  381|       |        // UTS 35: Default negative prefix is the positive prefix.
  382|   202k|        negSuffix = psp.isBogus() ? u"" : psp;
  ------------------
  |  Branch (382:21): [True: 0, False: 202k]
  ------------------
  383|   202k|    }
  384|       |
  385|       |    // For declaring if this is a currency pattern, we need to look at the
  386|       |    // original pattern, not at any user-specified overrides.
  387|   202k|    isCurrencyPattern = (
  388|   202k|        AffixUtils::hasCurrencySymbols(ppp, status) ||
  ------------------
  |  Branch (388:9): [True: 0, False: 202k]
  ------------------
  389|   202k|        AffixUtils::hasCurrencySymbols(psp, status) ||
  ------------------
  |  Branch (389:9): [True: 0, False: 202k]
  ------------------
  390|   202k|        AffixUtils::hasCurrencySymbols(npp, status) ||
  ------------------
  |  Branch (390:9): [True: 0, False: 202k]
  ------------------
  391|   202k|        AffixUtils::hasCurrencySymbols(nsp, status) ||
  ------------------
  |  Branch (391:9): [True: 0, False: 202k]
  ------------------
  392|   202k|        properties.currencyAsDecimal);
  ------------------
  |  Branch (392:9): [True: 0, False: 202k]
  ------------------
  393|       |
  394|   202k|    fCurrencyAsDecimal = properties.currencyAsDecimal;
  395|   202k|}
_ZNK6icu_786number4impl30PropertiesAffixPatternProvider15hasCurrencySignEv:
  444|   202k|bool PropertiesAffixPatternProvider::hasCurrencySign() const {
  445|   202k|    return isCurrencyPattern;
  446|   202k|}

_ZN6icu_786number4impl19DecimalFormatFieldsC2Ev:
  181|  51.2k|    DecimalFormatFields() {}
_ZN6icu_786number4impl24AutoAffixPatternProviderC2Ev:
  126|   108k|    inline AutoAffixPatternProvider() = default;
_ZN6icu_786number4impl30PropertiesAffixPatternProviderC2Ev:
   67|   976k|    PropertiesAffixPatternProvider() = default; // puts instance in valid but undefined state
_ZN6icu_786number4impl31CurrencyPluralInfoAffixProviderC2Ev:
  116|   108k|    CurrencyPluralInfoAffixProvider() = default;
_ZN6icu_786number4impl19DecimalFormatFieldsC2ERKNS1_23DecimalFormatPropertiesE:
  184|  57.3k|        : properties(propsToCopy) {}
_ZNK6icu_786number4impl31CurrencyPluralInfoAffixProvider7isBogusEv:
   80|   405k|    bool isBogus() const {
   81|   405k|        return fBogus;
   82|   405k|    }
_ZN6icu_786number4impl31CurrencyPluralInfoAffixProvider10setToBogusEv:
   84|   202k|    void setToBogus() {
   85|   202k|        fBogus = true;
   86|   202k|    }
_ZN6icu_786number4impl24AutoAffixPatternProvider5setToERKNS1_23DecimalFormatPropertiesER10UErrorCode:
  132|   202k|    inline void setTo(const DecimalFormatProperties& properties, UErrorCode& status) {
  133|   202k|        if (properties.currencyPluralInfo.fPtr.isNull()) {
  ------------------
  |  Branch (133:13): [True: 202k, False: 0]
  ------------------
  134|   202k|            propertiesAPP.setTo(properties, status);
  135|   202k|            currencyPluralInfoAPP.setToBogus();
  136|   202k|        } else {
  137|      0|            propertiesAPP.setToBogus();
  138|      0|            currencyPluralInfoAPP.setTo(*properties.currencyPluralInfo.fPtr, properties, status);
  139|      0|        }
  140|   202k|    }
_ZNK6icu_786number4impl24AutoAffixPatternProvider3getEv:
  152|   405k|    inline const AffixPatternProvider& get() const {
  153|   405k|      if (!currencyPluralInfoAPP.isBogus()) {
  ------------------
  |  Branch (153:11): [True: 0, False: 405k]
  ------------------
  154|      0|        return currencyPluralInfoAPP;
  155|   405k|      } else {
  156|   405k|        return propertiesAPP;
  157|   405k|      }
  158|   405k|    }

_ZN6icu_786number4impl8ModifierD2Ev:
   54|   285k|Modifier::~Modifier() = default;
_ZN6icu_786number4impl8Modifier10ParametersC2Ev:
   57|   228k|        : obj(nullptr) {}
_ZN6icu_786number4impl27AdoptingSignumModifierStoreD2Ev:
  100|  57.0k|AdoptingSignumModifierStore::~AdoptingSignumModifierStore()  {
  101|   228k|    for (const Modifier *mod : mods) {
  ------------------
  |  Branch (101:30): [True: 228k, False: 57.0k]
  ------------------
  102|   228k|        delete mod;
  103|   228k|    }
  104|  57.0k|}
_ZNK6icu_786number4impl26ConstantMultiFieldModifier5applyERNS_22FormattedStringBuilderEiiR10UErrorCode:
  329|   100k|                                          UErrorCode &status) const {
  330|   100k|    int32_t length = output.insert(leftIndex, fPrefix, status);
  331|   100k|    if (fOverwrite) {
  ------------------
  |  Branch (331:9): [True: 0, False: 100k]
  ------------------
  332|      0|        length += output.splice(
  333|      0|            leftIndex + length,
  334|      0|            rightIndex + length,
  335|      0|            UnicodeString(), 0, 0,
  336|      0|            kUndefinedField, status);
  337|      0|    }
  338|   100k|    length += output.insert(rightIndex + length, fSuffix, status);
  339|   100k|    return length;
  340|   100k|}

_ZN6icu_786number4impl26ConstantMultiFieldModifierC2ERKNS_22FormattedStringBuilderES5_bb:
  155|   228k|      : fPrefix(prefix),
  156|   228k|        fSuffix(suffix),
  157|   228k|        fOverwrite(overwrite),
  158|   228k|        fStrong(strong) {}
_ZN6icu_786number4impl27AdoptingSignumModifierStore13adoptModifierENS1_6SignumEPKNS1_8ModifierE:
  293|   228k|    void adoptModifier(Signum signum, const Modifier* mod) {
  294|   228k|        U_ASSERT(mods[signum] == nullptr);
  ------------------
  |  |   35|   228k|#   define U_ASSERT(exp) (void)0
  ------------------
  295|   228k|        mods[signum] = mod;
  296|   228k|    }
_ZN6icu_786number4impl27AdoptingSignumModifierStoreixENS1_6SignumE:
  298|   100k|    inline const Modifier*& operator[](Signum signum) {
  299|   100k|        return mods[signum];
  300|   100k|    }
_ZN6icu_786number4impl27AdoptingSignumModifierStoreC2Ev:
  280|  57.0k|    AdoptingSignumModifierStore() = default;

_ZN6icu_786number5ScaleC2EiPNS0_4impl6DecNumE:
   26|   202k|        : fMagnitude(magnitude), fArbitrary(arbitraryToAdopt), fError(U_ZERO_ERROR) {
   27|   202k|    if (fArbitrary != nullptr) {
  ------------------
  |  Branch (27:9): [True: 0, False: 202k]
  ------------------
   28|       |        // Attempt to convert the DecNum to a magnitude multiplier.
   29|      0|        fArbitrary->normalize();
   30|      0|        if (fArbitrary->getRawDecNumber()->digits == 1 && fArbitrary->getRawDecNumber()->lsu[0] == 1 &&
  ------------------
  |  Branch (30:13): [True: 0, False: 0]
  |  Branch (30:59): [True: 0, False: 0]
  ------------------
   31|      0|            !fArbitrary->isNegative()) {
  ------------------
  |  Branch (31:13): [True: 0, False: 0]
  ------------------
   32|       |            // Success!
   33|      0|            fMagnitude += fArbitrary->getRawDecNumber()->exponent;
   34|      0|            delete fArbitrary;
   35|      0|            fArbitrary = nullptr;
   36|      0|        }
   37|      0|    }
   38|   202k|}
_ZN6icu_786number5ScaleC2EOS1_:
   62|   202k|        : fMagnitude(src.fMagnitude), fArbitrary(src.fArbitrary), fError(src.fError) {
   63|       |    // Take ownership away from src if necessary
   64|   202k|    src.fArbitrary = nullptr;
   65|   202k|}
_ZN6icu_786number5ScaleaSEOS1_:
   67|   810k|Scale& Scale::operator=(Scale&& src) noexcept {
   68|   810k|    fMagnitude = src.fMagnitude;
   69|   810k|    delete fArbitrary;
   70|   810k|    fArbitrary = src.fArbitrary;
   71|   810k|    fError = src.fError;
   72|       |    // Take ownership away from src if necessary
   73|   810k|    src.fArbitrary = nullptr;
   74|   810k|    return *this;
   75|   810k|}
_ZN6icu_786number5ScaleD2Ev:
   77|  1.12M|Scale::~Scale() {
   78|  1.12M|    delete fArbitrary;
   79|  1.12M|}
_ZN6icu_786number5Scale4noneEv:
   82|   202k|Scale Scale::none() {
   83|   202k|    return {0, nullptr};
   84|   202k|}

number_mapper.cpp:_ZN6icu_786number4implL19scaleFromPropertiesERKNS1_23DecimalFormatPropertiesE:
   36|   202k|static inline Scale scaleFromProperties(const DecimalFormatProperties& properties) {
   37|   202k|    int32_t magnitudeMultiplier = properties.magnitudeMultiplier + properties.multiplierScale;
   38|   202k|    int32_t arbitraryMultiplier = properties.multiplier;
   39|   202k|    if (magnitudeMultiplier != 0 && arbitraryMultiplier != 1) {
  ------------------
  |  Branch (39:9): [True: 0, False: 202k]
  |  Branch (39:37): [True: 0, False: 0]
  ------------------
   40|      0|        return Scale::byDoubleAndPowerOfTen(arbitraryMultiplier, magnitudeMultiplier);
   41|   202k|    } else if (magnitudeMultiplier != 0) {
  ------------------
  |  Branch (41:16): [True: 0, False: 202k]
  ------------------
   42|      0|        return Scale::powerOfTen(magnitudeMultiplier);
   43|   202k|    } else if (arbitraryMultiplier != 1) {
  ------------------
  |  Branch (43:16): [True: 0, False: 202k]
  ------------------
   44|      0|        return Scale::byDouble(arbitraryMultiplier);
   45|   202k|    } else {
   46|   202k|        return Scale::none();
   47|   202k|    }
   48|   202k|}

_ZN6icu_786number4impl20UFormattedNumberDataD2Ev:
   54|   100k|impl::UFormattedNumberData::~UFormattedNumberData() = default;

_ZN6icu_786number4impl20AffixPatternProviderD2Ev:
   20|  1.19M|AffixPatternProvider::~AffixPatternProvider() = default;
_ZN6icu_786number4impl22MutablePatternModifierC2Eb:
   24|  57.0k|        : fStrong(isStrong) {}
_ZN6icu_786number4impl22MutablePatternModifier14setPatternInfoEPKNS1_20AffixPatternProviderENS_22FormattedStringBuilder5FieldE:
   26|  57.0k|void MutablePatternModifier::setPatternInfo(const AffixPatternProvider* patternInfo, Field field) {
   27|  57.0k|    fPatternInfo = patternInfo;
   28|  57.0k|    fField = field;
   29|  57.0k|}
_ZN6icu_786number4impl22MutablePatternModifier20setPatternAttributesE18UNumberSignDisplaybb:
   34|  57.0k|        bool approximately) {
   35|  57.0k|    fSignDisplay = signDisplay;
   36|  57.0k|    fPerMilleReplacesPercent = perMille;
   37|  57.0k|    fApproximately = approximately;
   38|  57.0k|}
_ZN6icu_786number4impl22MutablePatternModifier10setSymbolsEPKNS_20DecimalFormatSymbolsERKNS_12CurrencyUnitE16UNumberUnitWidthPKNS_11PluralRulesER10UErrorCode:
   44|  57.0k|                                        UErrorCode& status) {
   45|  57.0k|    U_ASSERT((rules != nullptr) == needsPlurals());
  ------------------
  |  |   35|  57.0k|#   define U_ASSERT(exp) (void)0
  ------------------
   46|  57.0k|    fSymbols = symbols;
   47|  57.0k|    fCurrencySymbols = {currency, symbols->getLocale(), *symbols, status};
   48|  57.0k|    fUnitWidth = unitWidth;
   49|  57.0k|    fRules = rules;
   50|  57.0k|}
_ZN6icu_786number4impl22MutablePatternModifier19setNumberPropertiesENS1_6SignumENS_14StandardPlural4FormE:
   52|   228k|void MutablePatternModifier::setNumberProperties(Signum signum, StandardPlural::Form plural) {
   53|   228k|    fSignum = signum;
   54|   228k|    fPlural = plural;
   55|   228k|}
_ZN6icu_786number4impl22MutablePatternModifier24createImmutableForPluralENS_14StandardPlural4FormER10UErrorCode:
   63|  57.0k|AdoptingSignumModifierStore MutablePatternModifier::createImmutableForPlural(StandardPlural::Form plural, UErrorCode& status) {
   64|  57.0k|    AdoptingSignumModifierStore pm;
   65|       |
   66|  57.0k|    setNumberProperties(SIGNUM_POS, plural);
   67|  57.0k|    pm.adoptModifier(SIGNUM_POS, createConstantModifier(status));
   68|  57.0k|    setNumberProperties(SIGNUM_NEG_ZERO, plural);
   69|  57.0k|    pm.adoptModifier(SIGNUM_NEG_ZERO, createConstantModifier(status));
   70|  57.0k|    setNumberProperties(SIGNUM_POS_ZERO, plural);
   71|  57.0k|    pm.adoptModifier(SIGNUM_POS_ZERO, createConstantModifier(status));
   72|  57.0k|    setNumberProperties(SIGNUM_NEG, plural);
   73|  57.0k|    pm.adoptModifier(SIGNUM_NEG, createConstantModifier(status));
   74|       |
   75|  57.0k|    return pm;
   76|  57.0k|}
_ZN6icu_786number4impl22MutablePatternModifier22createConstantModifierER10UErrorCode:
  115|   228k|ConstantMultiFieldModifier* MutablePatternModifier::createConstantModifier(UErrorCode& status) {
  116|   228k|    FormattedStringBuilder a;
  117|   228k|    FormattedStringBuilder b;
  118|   228k|    insertPrefix(a, 0, status);
  119|   228k|    insertSuffix(b, 0, status);
  120|   228k|    if (fPatternInfo->hasCurrencySign()) {
  ------------------
  |  Branch (120:9): [True: 0, False: 228k]
  ------------------
  121|      0|        return new CurrencySpacingEnabledModifier(
  122|      0|                a, b, !fPatternInfo->hasBody(), fStrong, *fSymbols, status);
  123|   228k|    } else {
  124|   228k|        return new ConstantMultiFieldModifier(a, b, !fPatternInfo->hasBody(), fStrong);
  125|   228k|    }
  126|   228k|}
_ZN6icu_786number4impl22MutablePatternModifier12insertPrefixERNS_22FormattedStringBuilderEiR10UErrorCode:
  267|   228k|int32_t MutablePatternModifier::insertPrefix(FormattedStringBuilder& sb, int position, UErrorCode& status) {
  268|   228k|    prepareAffix(true);
  269|   228k|    int32_t length = AffixUtils::unescape(currentAffix, sb, position, *this, fField, status);
  270|   228k|    return length;
  271|   228k|}
_ZN6icu_786number4impl22MutablePatternModifier12insertSuffixERNS_22FormattedStringBuilderEiR10UErrorCode:
  273|   228k|int32_t MutablePatternModifier::insertSuffix(FormattedStringBuilder& sb, int position, UErrorCode& status) {
  274|   228k|    prepareAffix(false);
  275|   228k|    int32_t length = AffixUtils::unescape(currentAffix, sb, position, *this, fField, status);
  276|   228k|    return length;
  277|   228k|}
_ZN6icu_786number4impl22MutablePatternModifier12prepareAffixEb:
  280|   456k|void MutablePatternModifier::prepareAffix(bool isPrefix) {
  281|   456k|    PatternStringUtils::patternInfoToStringBuilder(
  282|   456k|            *fPatternInfo,
  283|   456k|            isPrefix,
  284|   456k|            PatternStringUtils::resolveSignDisplay(fSignDisplay, fSignum),
  285|   456k|            fApproximately,
  286|   456k|            fPlural,
  287|   456k|            fPerMilleReplacesPercent,
  288|   456k|            false, // dropCurrencySymbols
  289|   456k|            currentAffix);
  290|   456k|}
_ZNK6icu_786number4impl22MutablePatternModifier9getSymbolENS1_16AffixPatternTypeE:
  292|   114k|UnicodeString MutablePatternModifier::getSymbol(AffixPatternType type) const {
  293|   114k|    UErrorCode localStatus = U_ZERO_ERROR;
  294|   114k|    switch (type) {
  295|  57.0k|        case AffixPatternType::TYPE_MINUS_SIGN:
  ------------------
  |  Branch (295:9): [True: 57.0k, False: 57.0k]
  ------------------
  296|  57.0k|            return fSymbols->getSymbol(DecimalFormatSymbols::ENumberFormatSymbol::kMinusSignSymbol);
  297|  57.0k|        case AffixPatternType::TYPE_PLUS_SIGN:
  ------------------
  |  Branch (297:9): [True: 57.0k, False: 57.0k]
  ------------------
  298|  57.0k|            return fSymbols->getSymbol(DecimalFormatSymbols::ENumberFormatSymbol::kPlusSignSymbol);
  299|      0|        case AffixPatternType::TYPE_APPROXIMATELY_SIGN:
  ------------------
  |  Branch (299:9): [True: 0, False: 114k]
  ------------------
  300|      0|            return fSymbols->getSymbol(DecimalFormatSymbols::ENumberFormatSymbol::kApproximatelySignSymbol);
  301|      0|        case AffixPatternType::TYPE_PERCENT:
  ------------------
  |  Branch (301:9): [True: 0, False: 114k]
  ------------------
  302|      0|            return fSymbols->getSymbol(DecimalFormatSymbols::ENumberFormatSymbol::kPercentSymbol);
  303|      0|        case AffixPatternType::TYPE_PERMILLE:
  ------------------
  |  Branch (303:9): [True: 0, False: 114k]
  ------------------
  304|      0|            return fSymbols->getSymbol(DecimalFormatSymbols::ENumberFormatSymbol::kPerMillSymbol);
  305|      0|        case AffixPatternType::TYPE_CURRENCY_SINGLE:
  ------------------
  |  Branch (305:9): [True: 0, False: 114k]
  ------------------
  306|      0|            return getCurrencySymbolForUnitWidth(localStatus);
  307|      0|        case AffixPatternType::TYPE_CURRENCY_DOUBLE:
  ------------------
  |  Branch (307:9): [True: 0, False: 114k]
  ------------------
  308|      0|            return fCurrencySymbols.getIntlCurrencySymbol(localStatus);
  309|      0|        case AffixPatternType::TYPE_CURRENCY_TRIPLE:
  ------------------
  |  Branch (309:9): [True: 0, False: 114k]
  ------------------
  310|       |            // NOTE: This is the code path only for patterns containing "¤¤¤".
  311|       |            // Plural currencies set via the API are formatted in LongNameHandler.
  312|       |            // This code path is used by DecimalFormat via CurrencyPluralInfo.
  313|      0|            U_ASSERT(fPlural != StandardPlural::Form::COUNT);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
  314|      0|            return fCurrencySymbols.getPluralName(fPlural, localStatus);
  315|      0|        case AffixPatternType::TYPE_CURRENCY_QUAD:
  ------------------
  |  Branch (315:9): [True: 0, False: 114k]
  ------------------
  316|      0|            return UnicodeString(u"\uFFFD");
  317|      0|        case AffixPatternType::TYPE_CURRENCY_QUINT:
  ------------------
  |  Branch (317:9): [True: 0, False: 114k]
  ------------------
  318|      0|            return UnicodeString(u"\uFFFD");
  319|      0|        default:
  ------------------
  |  Branch (319:9): [True: 0, False: 114k]
  ------------------
  320|      0|            UPRV_UNREACHABLE_EXIT;
  ------------------
  |  |   68|      0|#   define UPRV_UNREACHABLE_EXIT abort()
  ------------------
  321|   114k|    }
  322|   114k|}

_ZN6icu_786number4impl22MutablePatternModifierD2Ev:
   83|  57.0k|    ~MutablePatternModifier() override = default;

_ZN6icu_786number4impl13PatternParser18parseToPatternInfoERKNS_13UnicodeStringERNS1_17ParsedPatternInfoER10UErrorCode:
   26|   108k|                                       UErrorCode& status) {
   27|   108k|    patternInfo.consumePattern(patternString, status);
   28|   108k|}
_ZN6icu_786number4impl13PatternParser25parseToExistingPropertiesERKNS_13UnicodeStringERNS1_23DecimalFormatPropertiesENS1_14IgnoreRoundingER10UErrorCode:
   45|  51.2k|                                         IgnoreRounding ignoreRounding, UErrorCode& status) {
   46|  51.2k|    parseToExistingPropertiesImpl(pattern, properties, ignoreRounding, status);
   47|  51.2k|}
_ZNK6icu_786number4impl17ParsedPatternInfo6lengthEi:
   58|   456k|int32_t ParsedPatternInfo::length(int32_t flags) const {
   59|   456k|    return getLengthFromEndpoints(getEndpoints(flags));
   60|   456k|}
_ZN6icu_786number4impl17ParsedPatternInfo22getLengthFromEndpointsERKNS1_9EndpointsE:
   62|   456k|int32_t ParsedPatternInfo::getLengthFromEndpoints(const Endpoints& endpoints) {
   63|   456k|    return endpoints.end - endpoints.start;
   64|   456k|}
_ZNK6icu_786number4impl17ParsedPatternInfo9getStringEi:
   66|   102k|UnicodeString ParsedPatternInfo::getString(int32_t flags) const {
   67|   102k|    const Endpoints& endpoints = getEndpoints(flags);
   68|   102k|    if (endpoints.start == endpoints.end) {
  ------------------
  |  Branch (68:9): [True: 102k, False: 0]
  ------------------
   69|   102k|        return {};
   70|   102k|    }
   71|       |    // Create a new UnicodeString
   72|      0|    return UnicodeString(pattern, endpoints.start, endpoints.end - endpoints.start);
   73|   102k|}
_ZNK6icu_786number4impl17ParsedPatternInfo12getEndpointsEi:
   75|   558k|const Endpoints& ParsedPatternInfo::getEndpoints(int32_t flags) const {
   76|   558k|    bool prefix = (flags & AFFIX_PREFIX) != 0;
   77|   558k|    bool isNegative = (flags & AFFIX_NEGATIVE_SUBPATTERN) != 0;
   78|   558k|    bool padding = (flags & AFFIX_PADDING) != 0;
   79|   558k|    if (isNegative && padding) {
  ------------------
  |  Branch (79:9): [True: 0, False: 558k]
  |  Branch (79:23): [True: 0, False: 0]
  ------------------
   80|      0|        return negative.paddingEndpoints;
   81|   558k|    } else if (padding) {
  ------------------
  |  Branch (81:16): [True: 0, False: 558k]
  ------------------
   82|      0|        return positive.paddingEndpoints;
   83|   558k|    } else if (prefix && isNegative) {
  ------------------
  |  Branch (83:16): [True: 279k, False: 279k]
  |  Branch (83:26): [True: 0, False: 279k]
  ------------------
   84|      0|        return negative.prefixEndpoints;
   85|   558k|    } else if (prefix) {
  ------------------
  |  Branch (85:16): [True: 279k, False: 279k]
  ------------------
   86|   279k|        return positive.prefixEndpoints;
   87|   279k|    } else if (isNegative) {
  ------------------
  |  Branch (87:16): [True: 0, False: 279k]
  ------------------
   88|      0|        return negative.suffixEndpoints;
   89|   279k|    } else {
   90|   279k|        return positive.suffixEndpoints;
   91|   279k|    }
   92|   558k|}
_ZNK6icu_786number4impl17ParsedPatternInfo19positiveHasPlusSignEv:
   94|   114k|bool ParsedPatternInfo::positiveHasPlusSign() const {
   95|   114k|    return positive.hasPlusSign;
   96|   114k|}
_ZNK6icu_786number4impl17ParsedPatternInfo21hasNegativeSubpatternEv:
   98|   456k|bool ParsedPatternInfo::hasNegativeSubpattern() const {
   99|   456k|    return fHasNegativeSubpattern;
  100|   456k|}
_ZNK6icu_786number4impl17ParsedPatternInfo15hasCurrencySignEv:
  106|   228k|bool ParsedPatternInfo::hasCurrencySign() const {
  107|   228k|    return positive.hasCurrencySign || (fHasNegativeSubpattern && negative.hasCurrencySign);
  ------------------
  |  Branch (107:12): [True: 0, False: 228k]
  |  Branch (107:41): [True: 0, False: 228k]
  |  Branch (107:67): [True: 0, False: 0]
  ------------------
  108|   228k|}
_ZNK6icu_786number4impl17ParsedPatternInfo7hasBodyEv:
  114|   228k|bool ParsedPatternInfo::hasBody() const {
  115|   228k|    return positive.integerTotal > 0;
  116|   228k|}
_ZN6icu_786number4impl17ParsedPatternInfo11ParserState4peekEv:
  126|  3.03M|UChar32 ParsedPatternInfo::ParserState::peek() {
  127|  3.03M|    if (offset == pattern.length()) {
  ------------------
  |  Branch (127:9): [True: 805k, False: 2.23M]
  ------------------
  128|   805k|        return -1;
  129|  2.23M|    } else {
  130|  2.23M|        return pattern.char32At(offset);
  131|  2.23M|    }
  132|  3.03M|}
_ZN6icu_786number4impl17ParsedPatternInfo11ParserState4nextEv:
  146|   843k|UChar32 ParsedPatternInfo::ParserState::next() {
  147|   843k|    int32_t codePoint = peek();
  148|   843k|    offset += U16_LENGTH(codePoint);
  ------------------
  |  |  141|   843k|#define U16_LENGTH(c) ((uint32_t)(c)<=0xffff ? 1 : 2)
  |  |  ------------------
  |  |  |  Branch (141:24): [True: 843k, False: 0]
  |  |  ------------------
  ------------------
  149|   843k|    return codePoint;
  150|   843k|}
_ZN6icu_786number4impl17ParsedPatternInfo14consumePatternERKNS_13UnicodeStringER10UErrorCode:
  152|   108k|void ParsedPatternInfo::consumePattern(const UnicodeString& patternString, UErrorCode& status) {
  153|   108k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (153:9): [True: 0, False: 108k]
  ------------------
  154|   108k|    this->pattern = patternString;
  155|       |
  156|       |    // This class is not intended for writing twice!
  157|       |    // Use move assignment to overwrite instead.
  158|   108k|    U_ASSERT(state.offset == 0);
  ------------------
  |  |   35|   108k|#   define U_ASSERT(exp) (void)0
  ------------------
  159|       |
  160|       |    // pattern := subpattern (';' subpattern)?
  161|   108k|    currentSubpattern = &positive;
  162|   108k|    consumeSubpattern(status);
  163|   108k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (163:9): [True: 0, False: 108k]
  ------------------
  164|   108k|    if (state.peek() == u';') {
  ------------------
  |  Branch (164:9): [True: 0, False: 108k]
  ------------------
  165|      0|        state.next(); // consume the ';'
  166|       |        // Don't consume the negative subpattern if it is empty (trailing ';')
  167|      0|        if (state.peek() != -1) {
  ------------------
  |  Branch (167:13): [True: 0, False: 0]
  ------------------
  168|      0|            fHasNegativeSubpattern = true;
  169|      0|            currentSubpattern = &negative;
  170|      0|            consumeSubpattern(status);
  171|      0|            if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (171:17): [True: 0, False: 0]
  ------------------
  172|      0|        }
  173|      0|    }
  174|   108k|    if (state.peek() != -1) {
  ------------------
  |  Branch (174:9): [True: 0, False: 108k]
  ------------------
  175|      0|        state.toParseException(u"Found unquoted special character");
  176|      0|        status = U_UNQUOTED_SPECIAL;
  177|      0|    }
  178|   108k|}
_ZN6icu_786number4impl17ParsedPatternInfo17consumeSubpatternER10UErrorCode:
  180|   108k|void ParsedPatternInfo::consumeSubpattern(UErrorCode& status) {
  181|       |    // subpattern := literals? number exponent? literals?
  182|   108k|    consumePadding(PadPosition::UNUM_PAD_BEFORE_PREFIX, status);
  183|   108k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (183:9): [True: 0, False: 108k]
  ------------------
  184|   108k|    consumeAffix(currentSubpattern->prefixEndpoints, status);
  185|   108k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (185:9): [True: 0, False: 108k]
  ------------------
  186|   108k|    consumePadding(PadPosition::UNUM_PAD_AFTER_PREFIX, status);
  187|   108k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (187:9): [True: 0, False: 108k]
  ------------------
  188|   108k|    consumeFormat(status);
  189|   108k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (189:9): [True: 0, False: 108k]
  ------------------
  190|   108k|    consumeExponent(status);
  191|   108k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (191:9): [True: 0, False: 108k]
  ------------------
  192|   108k|    consumePadding(PadPosition::UNUM_PAD_BEFORE_SUFFIX, status);
  193|   108k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (193:9): [True: 0, False: 108k]
  ------------------
  194|   108k|    consumeAffix(currentSubpattern->suffixEndpoints, status);
  195|   108k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (195:9): [True: 0, False: 108k]
  ------------------
  196|   108k|    consumePadding(PadPosition::UNUM_PAD_AFTER_SUFFIX, status);
  197|   108k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (197:9): [True: 0, False: 108k]
  ------------------
  198|   108k|}
_ZN6icu_786number4impl17ParsedPatternInfo14consumePaddingE24UNumberFormatPadPositionR10UErrorCode:
  200|   432k|void ParsedPatternInfo::consumePadding(PadPosition paddingLocation, UErrorCode& status) {
  201|   432k|    if (state.peek() != u'*') {
  ------------------
  |  Branch (201:9): [True: 432k, False: 0]
  ------------------
  202|   432k|        return;
  203|   432k|    }
  204|      0|    if (currentSubpattern->hasPadding) {
  ------------------
  |  Branch (204:9): [True: 0, False: 0]
  ------------------
  205|      0|        state.toParseException(u"Cannot have multiple pad specifiers");
  206|      0|        status = U_MULTIPLE_PAD_SPECIFIERS;
  207|      0|        return;
  208|      0|    }
  209|      0|    currentSubpattern->paddingLocation = paddingLocation;
  210|      0|    currentSubpattern->hasPadding = true;
  211|      0|    state.next(); // consume the '*'
  212|      0|    currentSubpattern->paddingEndpoints.start = state.offset;
  213|      0|    consumeLiteral(status);
  214|      0|    currentSubpattern->paddingEndpoints.end = state.offset;
  215|      0|}
_ZN6icu_786number4impl17ParsedPatternInfo12consumeAffixERNS1_9EndpointsER10UErrorCode:
  217|   216k|void ParsedPatternInfo::consumeAffix(Endpoints& endpoints, UErrorCode& status) {
  218|       |    // literals := { literal }
  219|   216k|    endpoints.start = state.offset;
  220|   216k|    while (true) {
  ------------------
  |  Branch (220:12): [Folded - Ignored]
  ------------------
  221|   216k|        switch (state.peek()) {
  222|  83.4k|            case u'#':
  ------------------
  |  Branch (222:13): [True: 83.4k, False: 133k]
  ------------------
  223|  83.4k|            case u'@':
  ------------------
  |  Branch (223:13): [True: 0, False: 216k]
  ------------------
  224|  83.4k|            case u';':
  ------------------
  |  Branch (224:13): [True: 0, False: 216k]
  ------------------
  225|  83.4k|            case u'*':
  ------------------
  |  Branch (225:13): [True: 0, False: 216k]
  ------------------
  226|  83.4k|            case u'.':
  ------------------
  |  Branch (226:13): [True: 0, False: 216k]
  ------------------
  227|  83.4k|            case u',':
  ------------------
  |  Branch (227:13): [True: 0, False: 216k]
  ------------------
  228|   108k|            case u'0':
  ------------------
  |  Branch (228:13): [True: 24.8k, False: 191k]
  ------------------
  229|   108k|            case u'1':
  ------------------
  |  Branch (229:13): [True: 0, False: 216k]
  ------------------
  230|   108k|            case u'2':
  ------------------
  |  Branch (230:13): [True: 0, False: 216k]
  ------------------
  231|   108k|            case u'3':
  ------------------
  |  Branch (231:13): [True: 0, False: 216k]
  ------------------
  232|   108k|            case u'4':
  ------------------
  |  Branch (232:13): [True: 0, False: 216k]
  ------------------
  233|   108k|            case u'5':
  ------------------
  |  Branch (233:13): [True: 0, False: 216k]
  ------------------
  234|   108k|            case u'6':
  ------------------
  |  Branch (234:13): [True: 0, False: 216k]
  ------------------
  235|   108k|            case u'7':
  ------------------
  |  Branch (235:13): [True: 0, False: 216k]
  ------------------
  236|   108k|            case u'8':
  ------------------
  |  Branch (236:13): [True: 0, False: 216k]
  ------------------
  237|   108k|            case u'9':
  ------------------
  |  Branch (237:13): [True: 0, False: 216k]
  ------------------
  238|   216k|            case -1:
  ------------------
  |  Branch (238:13): [True: 108k, False: 108k]
  ------------------
  239|       |                // Characters that cannot appear unquoted in a literal
  240|       |                // break outer;
  241|   216k|                goto after_outer;
  242|       |
  243|      0|            case u'%':
  ------------------
  |  Branch (243:13): [True: 0, False: 216k]
  ------------------
  244|      0|                currentSubpattern->hasPercentSign = true;
  245|      0|                break;
  246|       |
  247|      0|            case u'‰':
  ------------------
  |  Branch (247:13): [True: 0, False: 216k]
  ------------------
  248|      0|                currentSubpattern->hasPerMilleSign = true;
  249|      0|                break;
  250|       |
  251|      0|            case u'¤':
  ------------------
  |  Branch (251:13): [True: 0, False: 216k]
  ------------------
  252|      0|                currentSubpattern->hasCurrencySign = true;
  253|      0|                break;
  254|       |
  255|      0|            case u'-':
  ------------------
  |  Branch (255:13): [True: 0, False: 216k]
  ------------------
  256|      0|                currentSubpattern->hasMinusSign = true;
  257|      0|                break;
  258|       |
  259|      0|            case u'+':
  ------------------
  |  Branch (259:13): [True: 0, False: 216k]
  ------------------
  260|      0|                currentSubpattern->hasPlusSign = true;
  261|      0|                break;
  262|       |
  263|      0|            default:
  ------------------
  |  Branch (263:13): [True: 0, False: 216k]
  ------------------
  264|      0|                break;
  265|   216k|        }
  266|      0|        consumeLiteral(status);
  267|      0|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (267:13): [True: 0, False: 0]
  ------------------
  268|      0|    }
  269|   216k|    after_outer:
  270|   216k|    endpoints.end = state.offset;
  271|   216k|}
_ZN6icu_786number4impl17ParsedPatternInfo13consumeFormatER10UErrorCode:
  296|   108k|void ParsedPatternInfo::consumeFormat(UErrorCode& status) {
  297|   108k|    consumeIntegerFormat(status);
  298|   108k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (298:9): [True: 0, False: 108k]
  ------------------
  299|   108k|    if (state.peek() == u'.') {
  ------------------
  |  Branch (299:9): [True: 84.3k, False: 23.8k]
  ------------------
  300|  84.3k|        state.next(); // consume the decimal point
  301|  84.3k|        currentSubpattern->hasDecimal = true;
  302|  84.3k|        currentSubpattern->widthExceptAffixes += 1;
  303|  84.3k|        consumeFractionFormat(status);
  304|  84.3k|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (304:13): [True: 0, False: 84.3k]
  ------------------
  305|  84.3k|    } else if (state.peek() == u'¤') {
  ------------------
  |  Branch (305:16): [True: 0, False: 23.8k]
  ------------------
  306|       |        // Check if currency is a decimal separator
  307|      0|        switch (state.peek2()) {
  308|      0|            case u'#':
  ------------------
  |  Branch (308:13): [True: 0, False: 0]
  ------------------
  309|      0|            case u'0':
  ------------------
  |  Branch (309:13): [True: 0, False: 0]
  ------------------
  310|      0|            case u'1':
  ------------------
  |  Branch (310:13): [True: 0, False: 0]
  ------------------
  311|      0|            case u'2':
  ------------------
  |  Branch (311:13): [True: 0, False: 0]
  ------------------
  312|      0|            case u'3':
  ------------------
  |  Branch (312:13): [True: 0, False: 0]
  ------------------
  313|      0|            case u'4':
  ------------------
  |  Branch (313:13): [True: 0, False: 0]
  ------------------
  314|      0|            case u'5':
  ------------------
  |  Branch (314:13): [True: 0, False: 0]
  ------------------
  315|      0|            case u'6':
  ------------------
  |  Branch (315:13): [True: 0, False: 0]
  ------------------
  316|      0|            case u'7':
  ------------------
  |  Branch (316:13): [True: 0, False: 0]
  ------------------
  317|      0|            case u'8':
  ------------------
  |  Branch (317:13): [True: 0, False: 0]
  ------------------
  318|      0|            case u'9':
  ------------------
  |  Branch (318:13): [True: 0, False: 0]
  ------------------
  319|      0|                break;
  320|      0|            default:
  ------------------
  |  Branch (320:13): [True: 0, False: 0]
  ------------------
  321|       |                // Currency symbol followed by a non-numeric character;
  322|       |                // treat as a normal affix.
  323|      0|                return;
  324|      0|        }
  325|       |        // Currency symbol is followed by a numeric character;
  326|       |        // treat as a decimal separator.
  327|      0|        currentSubpattern->hasCurrencySign = true;
  328|      0|        currentSubpattern->hasCurrencyDecimal = true;
  329|      0|        currentSubpattern->hasDecimal = true;
  330|      0|        currentSubpattern->widthExceptAffixes += 1;
  331|      0|        state.next(); // consume the symbol
  332|      0|        consumeFractionFormat(status);
  333|      0|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (333:13): [True: 0, False: 0]
  ------------------
  334|      0|    }
  335|   108k|}
_ZN6icu_786number4impl17ParsedPatternInfo20consumeIntegerFormatER10UErrorCode:
  337|   108k|void ParsedPatternInfo::consumeIntegerFormat(UErrorCode& status) {
  338|       |    // Convenience reference:
  339|   108k|    ParsedSubpatternInfo& result = *currentSubpattern;
  340|       |
  341|   561k|    while (true) {
  ------------------
  |  Branch (341:12): [Folded - Ignored]
  ------------------
  342|   561k|        switch (state.peek()) {
  343|  87.1k|            case u',':
  ------------------
  |  Branch (343:13): [True: 87.1k, False: 474k]
  ------------------
  344|  87.1k|                result.widthExceptAffixes += 1;
  345|  87.1k|                result.groupingSizes <<= 16;
  346|  87.1k|                break;
  347|       |
  348|   257k|            case u'#':
  ------------------
  |  Branch (348:13): [True: 257k, False: 303k]
  ------------------
  349|   257k|                if (result.integerNumerals > 0) {
  ------------------
  |  Branch (349:21): [True: 0, False: 257k]
  ------------------
  350|      0|                    state.toParseException(u"# cannot follow 0 before decimal point");
  351|      0|                    status = U_UNEXPECTED_TOKEN;
  352|      0|                    return;
  353|      0|                }
  354|   257k|                result.widthExceptAffixes += 1;
  355|   257k|                result.groupingSizes += 1;
  356|   257k|                if (result.integerAtSigns > 0) {
  ------------------
  |  Branch (356:21): [True: 0, False: 257k]
  ------------------
  357|      0|                    result.integerTrailingHashSigns += 1;
  358|   257k|                } else {
  359|   257k|                    result.integerLeadingHashSigns += 1;
  360|   257k|                }
  361|   257k|                result.integerTotal += 1;
  362|   257k|                break;
  363|       |
  364|      0|            case u'@':
  ------------------
  |  Branch (364:13): [True: 0, False: 561k]
  ------------------
  365|      0|                if (result.integerNumerals > 0) {
  ------------------
  |  Branch (365:21): [True: 0, False: 0]
  ------------------
  366|      0|                    state.toParseException(u"Cannot mix 0 and @");
  367|      0|                    status = U_UNEXPECTED_TOKEN;
  368|      0|                    return;
  369|      0|                }
  370|      0|                if (result.integerTrailingHashSigns > 0) {
  ------------------
  |  Branch (370:21): [True: 0, False: 0]
  ------------------
  371|      0|                    state.toParseException(u"Cannot nest # inside of a run of @");
  372|      0|                    status = U_UNEXPECTED_TOKEN;
  373|      0|                    return;
  374|      0|                }
  375|      0|                result.widthExceptAffixes += 1;
  376|      0|                result.groupingSizes += 1;
  377|      0|                result.integerAtSigns += 1;
  378|      0|                result.integerTotal += 1;
  379|      0|                break;
  380|       |
  381|   108k|            case u'0':
  ------------------
  |  Branch (381:13): [True: 108k, False: 452k]
  ------------------
  382|   108k|            case u'1':
  ------------------
  |  Branch (382:13): [True: 0, False: 561k]
  ------------------
  383|   108k|            case u'2':
  ------------------
  |  Branch (383:13): [True: 0, False: 561k]
  ------------------
  384|   108k|            case u'3':
  ------------------
  |  Branch (384:13): [True: 0, False: 561k]
  ------------------
  385|   108k|            case u'4':
  ------------------
  |  Branch (385:13): [True: 0, False: 561k]
  ------------------
  386|   108k|            case u'5':
  ------------------
  |  Branch (386:13): [True: 0, False: 561k]
  ------------------
  387|   108k|            case u'6':
  ------------------
  |  Branch (387:13): [True: 0, False: 561k]
  ------------------
  388|   108k|            case u'7':
  ------------------
  |  Branch (388:13): [True: 0, False: 561k]
  ------------------
  389|   108k|            case u'8':
  ------------------
  |  Branch (389:13): [True: 0, False: 561k]
  ------------------
  390|   108k|            case u'9':
  ------------------
  |  Branch (390:13): [True: 0, False: 561k]
  ------------------
  391|   108k|                if (result.integerAtSigns > 0) {
  ------------------
  |  Branch (391:21): [True: 0, False: 108k]
  ------------------
  392|      0|                    state.toParseException(u"Cannot mix @ and 0");
  393|      0|                    status = U_UNEXPECTED_TOKEN;
  394|      0|                    return;
  395|      0|                }
  396|   108k|                result.widthExceptAffixes += 1;
  397|   108k|                result.groupingSizes += 1;
  398|   108k|                result.integerNumerals += 1;
  399|   108k|                result.integerTotal += 1;
  400|   108k|                if (!result.rounding.isZeroish() || state.peek() != u'0') {
  ------------------
  |  Branch (400:21): [True: 0, False: 108k]
  |  Branch (400:53): [True: 0, False: 108k]
  ------------------
  401|      0|                    result.rounding.appendDigit(static_cast<int8_t>(state.peek() - u'0'), 0, true);
  402|      0|                }
  403|   108k|                break;
  404|       |
  405|   108k|            default:
  ------------------
  |  Branch (405:13): [True: 108k, False: 452k]
  ------------------
  406|   108k|                goto after_outer;
  407|   561k|        }
  408|   452k|        state.next(); // consume the symbol
  409|   452k|    }
  410|       |
  411|   108k|    after_outer:
  412|       |    // Disallow patterns with a trailing ',' or with two ',' next to each other
  413|   108k|    auto grouping1 = static_cast<int16_t> (result.groupingSizes & 0xffff);
  414|   108k|    auto grouping2 = static_cast<int16_t> ((result.groupingSizes >> 16) & 0xffff);
  415|   108k|    auto grouping3 = static_cast<int16_t> ((result.groupingSizes >> 32) & 0xffff);
  416|   108k|    if (grouping1 == 0 && grouping2 != -1) {
  ------------------
  |  Branch (416:9): [True: 0, False: 108k]
  |  Branch (416:27): [True: 0, False: 0]
  ------------------
  417|      0|        state.toParseException(u"Trailing grouping separator is invalid");
  418|      0|        status = U_UNEXPECTED_TOKEN;
  419|      0|        return;
  420|      0|    }
  421|   108k|    if (grouping2 == 0 && grouping3 != -1) {
  ------------------
  |  Branch (421:9): [True: 0, False: 108k]
  |  Branch (421:27): [True: 0, False: 0]
  ------------------
  422|      0|        state.toParseException(u"Grouping width of zero is invalid");
  423|      0|        status = U_PATTERN_SYNTAX_ERROR;
  424|      0|        return;
  425|      0|    }
  426|   108k|}
_ZN6icu_786number4impl17ParsedPatternInfo21consumeFractionFormatER10UErrorCode:
  428|  84.3k|void ParsedPatternInfo::consumeFractionFormat(UErrorCode& status) {
  429|       |    // Convenience reference:
  430|  84.3k|    ParsedSubpatternInfo& result = *currentSubpattern;
  431|       |
  432|  84.3k|    int32_t zeroCounter = 0;
  433|   390k|    while (true) {
  ------------------
  |  Branch (433:12): [Folded - Ignored]
  ------------------
  434|   390k|        switch (state.peek()) {
  435|   274k|            case u'#':
  ------------------
  |  Branch (435:13): [True: 274k, False: 115k]
  ------------------
  436|   274k|                result.widthExceptAffixes += 1;
  437|   274k|                result.fractionHashSigns += 1;
  438|   274k|                result.fractionTotal += 1;
  439|   274k|                zeroCounter++;
  440|   274k|                break;
  441|       |
  442|  30.9k|            case u'0':
  ------------------
  |  Branch (442:13): [True: 30.9k, False: 359k]
  ------------------
  443|  30.9k|            case u'1':
  ------------------
  |  Branch (443:13): [True: 0, False: 390k]
  ------------------
  444|  30.9k|            case u'2':
  ------------------
  |  Branch (444:13): [True: 0, False: 390k]
  ------------------
  445|  30.9k|            case u'3':
  ------------------
  |  Branch (445:13): [True: 0, False: 390k]
  ------------------
  446|  30.9k|            case u'4':
  ------------------
  |  Branch (446:13): [True: 0, False: 390k]
  ------------------
  447|  30.9k|            case u'5':
  ------------------
  |  Branch (447:13): [True: 0, False: 390k]
  ------------------
  448|  30.9k|            case u'6':
  ------------------
  |  Branch (448:13): [True: 0, False: 390k]
  ------------------
  449|  30.9k|            case u'7':
  ------------------
  |  Branch (449:13): [True: 0, False: 390k]
  ------------------
  450|  30.9k|            case u'8':
  ------------------
  |  Branch (450:13): [True: 0, False: 390k]
  ------------------
  451|  30.9k|            case u'9':
  ------------------
  |  Branch (451:13): [True: 0, False: 390k]
  ------------------
  452|  30.9k|                if (result.fractionHashSigns > 0) {
  ------------------
  |  Branch (452:21): [True: 0, False: 30.9k]
  ------------------
  453|      0|                    state.toParseException(u"0 cannot follow # after decimal point");
  454|      0|                    status = U_UNEXPECTED_TOKEN;
  455|      0|                    return;
  456|      0|                }
  457|  30.9k|                result.widthExceptAffixes += 1;
  458|  30.9k|                result.fractionNumerals += 1;
  459|  30.9k|                result.fractionTotal += 1;
  460|  30.9k|                if (state.peek() == u'0') {
  ------------------
  |  Branch (460:21): [True: 30.9k, False: 0]
  ------------------
  461|  30.9k|                    zeroCounter++;
  462|  30.9k|                } else {
  463|      0|                    result.rounding
  464|      0|                            .appendDigit(static_cast<int8_t>(state.peek() - u'0'), zeroCounter, false);
  465|      0|                    zeroCounter = 0;
  466|      0|                }
  467|  30.9k|                break;
  468|       |
  469|  84.3k|            default:
  ------------------
  |  Branch (469:13): [True: 84.3k, False: 305k]
  ------------------
  470|  84.3k|                return;
  471|   390k|        }
  472|   305k|        state.next(); // consume the symbol
  473|   305k|    }
  474|  84.3k|}
_ZN6icu_786number4impl17ParsedPatternInfo15consumeExponentER10UErrorCode:
  476|   108k|void ParsedPatternInfo::consumeExponent(UErrorCode& status) {
  477|       |    // Convenience reference:
  478|   108k|    ParsedSubpatternInfo& result = *currentSubpattern;
  479|       |
  480|   108k|    if (state.peek() != u'E') {
  ------------------
  |  Branch (480:9): [True: 108k, False: 0]
  ------------------
  481|   108k|        return;
  482|   108k|    }
  483|      0|    if ((result.groupingSizes & 0xffff0000L) != 0xffff0000L) {
  ------------------
  |  Branch (483:9): [True: 0, False: 0]
  ------------------
  484|      0|        state.toParseException(u"Cannot have grouping separator in scientific notation");
  485|      0|        status = U_MALFORMED_EXPONENTIAL_PATTERN;
  486|      0|        return;
  487|      0|    }
  488|      0|    state.next(); // consume the E
  489|      0|    result.widthExceptAffixes++;
  490|      0|    if (state.peek() == u'+') {
  ------------------
  |  Branch (490:9): [True: 0, False: 0]
  ------------------
  491|      0|        state.next(); // consume the +
  492|      0|        result.exponentHasPlusSign = true;
  493|      0|        result.widthExceptAffixes++;
  494|      0|    }
  495|      0|    while (state.peek() == u'0') {
  ------------------
  |  Branch (495:12): [True: 0, False: 0]
  ------------------
  496|      0|        state.next(); // consume the 0
  497|      0|        result.exponentZeros += 1;
  498|      0|        result.widthExceptAffixes++;
  499|      0|    }
  500|      0|}
_ZN6icu_786number4impl13PatternParser29parseToExistingPropertiesImplERKNS_13UnicodeStringERNS1_23DecimalFormatPropertiesENS1_14IgnoreRoundingER10UErrorCode:
  508|  51.2k|                                                  IgnoreRounding ignoreRounding, UErrorCode& status) {
  509|  51.2k|    if (pattern.length() == 0) {
  ------------------
  |  Branch (509:9): [True: 0, False: 51.2k]
  ------------------
  510|       |        // Backwards compatibility requires that we reset to the default values.
  511|       |        // TODO: Only overwrite the properties that "saveToProperties" normally touches?
  512|      0|        properties.clear();
  513|      0|        return;
  514|      0|    }
  515|       |
  516|  51.2k|    ParsedPatternInfo patternInfo;
  517|  51.2k|    parseToPatternInfo(pattern, patternInfo, status);
  518|  51.2k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (518:9): [True: 0, False: 51.2k]
  ------------------
  519|  51.2k|    patternInfoToProperties(properties, patternInfo, ignoreRounding, status);
  520|  51.2k|}
_ZN6icu_786number4impl13PatternParser23patternInfoToPropertiesERNS1_23DecimalFormatPropertiesERNS1_17ParsedPatternInfoENS1_14IgnoreRoundingER10UErrorCode:
  524|  51.2k|                                       IgnoreRounding _ignoreRounding, UErrorCode& status) {
  525|       |    // Translate from PatternParseResult to Properties.
  526|       |    // Note that most data from "negative" is ignored per the specification of DecimalFormat.
  527|       |
  528|  51.2k|    const ParsedSubpatternInfo& positive = patternInfo.positive;
  529|       |
  530|  51.2k|    bool ignoreRounding;
  531|  51.2k|    if (_ignoreRounding == IGNORE_ROUNDING_NEVER) {
  ------------------
  |  Branch (531:9): [True: 0, False: 51.2k]
  ------------------
  532|      0|        ignoreRounding = false;
  533|  51.2k|    } else if (_ignoreRounding == IGNORE_ROUNDING_IF_CURRENCY) {
  ------------------
  |  Branch (533:16): [True: 51.2k, False: 0]
  ------------------
  534|  51.2k|        ignoreRounding = positive.hasCurrencySign;
  535|  51.2k|    } else {
  536|      0|        U_ASSERT(_ignoreRounding == IGNORE_ROUNDING_ALWAYS);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
  537|      0|        ignoreRounding = true;
  538|      0|    }
  539|       |
  540|       |    // Grouping settings
  541|  51.2k|    auto grouping1 = static_cast<int16_t> (positive.groupingSizes & 0xffff);
  542|  51.2k|    auto grouping2 = static_cast<int16_t> ((positive.groupingSizes >> 16) & 0xffff);
  543|  51.2k|    auto grouping3 = static_cast<int16_t> ((positive.groupingSizes >> 32) & 0xffff);
  544|  51.2k|    if (grouping2 != -1) {
  ------------------
  |  Branch (544:9): [True: 46.9k, False: 4.22k]
  ------------------
  545|  46.9k|        properties.groupingSize = grouping1;
  546|  46.9k|        properties.groupingUsed = true;
  547|  46.9k|    } else {
  548|  4.22k|        properties.groupingSize = -1;
  549|  4.22k|        properties.groupingUsed = false;
  550|  4.22k|    }
  551|  51.2k|    if (grouping3 != -1) {
  ------------------
  |  Branch (551:9): [True: 2.00k, False: 49.2k]
  ------------------
  552|  2.00k|        properties.secondaryGroupingSize = grouping2;
  553|  49.2k|    } else {
  554|  49.2k|        properties.secondaryGroupingSize = -1;
  555|  49.2k|    }
  556|       |
  557|       |    // For backwards compatibility, require that the pattern emit at least one min digit.
  558|  51.2k|    int minInt, minFrac;
  559|  51.2k|    if (positive.integerTotal == 0 && positive.fractionTotal > 0) {
  ------------------
  |  Branch (559:9): [True: 0, False: 51.2k]
  |  Branch (559:39): [True: 0, False: 0]
  ------------------
  560|       |        // patterns like ".##"
  561|      0|        minInt = 0;
  562|      0|        minFrac = uprv_max(1, positive.fractionNumerals);
  ------------------
  |  | 1526|      0|#define uprv_max U_ICU_ENTRY_POINT_RENAME(uprv_max)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  563|  51.2k|    } else if (positive.integerNumerals == 0 && positive.fractionNumerals == 0) {
  ------------------
  |  Branch (563:16): [True: 0, False: 51.2k]
  |  Branch (563:49): [True: 0, False: 0]
  ------------------
  564|       |        // patterns like "#.##"
  565|      0|        minInt = 1;
  566|      0|        minFrac = 0;
  567|  51.2k|    } else {
  568|  51.2k|        minInt = positive.integerNumerals;
  569|  51.2k|        minFrac = positive.fractionNumerals;
  570|  51.2k|    }
  571|       |
  572|       |    // Rounding settings
  573|       |    // Don't set basic rounding when there is a currency sign; defer to CurrencyUsage
  574|  51.2k|    if (positive.integerAtSigns > 0) {
  ------------------
  |  Branch (574:9): [True: 0, False: 51.2k]
  ------------------
  575|      0|        properties.minimumFractionDigits = -1;
  576|      0|        properties.maximumFractionDigits = -1;
  577|      0|        properties.roundingIncrement = 0.0;
  578|      0|        properties.minimumSignificantDigits = positive.integerAtSigns;
  579|      0|        properties.maximumSignificantDigits = positive.integerAtSigns + positive.integerTrailingHashSigns;
  580|  51.2k|    } else if (!positive.rounding.isZeroish()) {
  ------------------
  |  Branch (580:16): [True: 0, False: 51.2k]
  ------------------
  581|      0|        if (!ignoreRounding) {
  ------------------
  |  Branch (581:13): [True: 0, False: 0]
  ------------------
  582|      0|            properties.minimumFractionDigits = minFrac;
  583|      0|            properties.maximumFractionDigits = positive.fractionTotal;
  584|      0|            properties.roundingIncrement = positive.rounding.toDouble();
  585|      0|        } else {
  586|      0|            properties.minimumFractionDigits = -1;
  587|      0|            properties.maximumFractionDigits = -1;
  588|      0|            properties.roundingIncrement = 0.0;
  589|      0|        }
  590|      0|        properties.minimumSignificantDigits = -1;
  591|      0|        properties.maximumSignificantDigits = -1;
  592|  51.2k|    } else {
  593|  51.2k|        if (!ignoreRounding) {
  ------------------
  |  Branch (593:13): [True: 51.2k, False: 0]
  ------------------
  594|  51.2k|            properties.minimumFractionDigits = minFrac;
  595|  51.2k|            properties.maximumFractionDigits = positive.fractionTotal;
  596|  51.2k|            properties.roundingIncrement = 0.0;
  597|  51.2k|        } else {
  598|      0|            properties.minimumFractionDigits = -1;
  599|      0|            properties.maximumFractionDigits = -1;
  600|      0|            properties.roundingIncrement = 0.0;
  601|      0|        }
  602|  51.2k|        properties.minimumSignificantDigits = -1;
  603|  51.2k|        properties.maximumSignificantDigits = -1;
  604|  51.2k|    }
  605|       |
  606|       |    // If the pattern ends with a '.' then force the decimal point.
  607|  51.2k|    if (positive.hasDecimal && positive.fractionTotal == 0) {
  ------------------
  |  Branch (607:9): [True: 27.3k, False: 23.8k]
  |  Branch (607:32): [True: 0, False: 27.3k]
  ------------------
  608|      0|        properties.decimalSeparatorAlwaysShown = true;
  609|  51.2k|    } else {
  610|  51.2k|        properties.decimalSeparatorAlwaysShown = false;
  611|  51.2k|    }
  612|       |
  613|       |    // Persist the currency as decimal separator
  614|  51.2k|    properties.currencyAsDecimal = positive.hasCurrencyDecimal;
  615|       |
  616|       |    // Scientific notation settings
  617|  51.2k|    if (positive.exponentZeros > 0) {
  ------------------
  |  Branch (617:9): [True: 0, False: 51.2k]
  ------------------
  618|      0|        properties.exponentSignAlwaysShown = positive.exponentHasPlusSign;
  619|      0|        properties.minimumExponentDigits = positive.exponentZeros;
  620|      0|        if (positive.integerAtSigns == 0) {
  ------------------
  |  Branch (620:13): [True: 0, False: 0]
  ------------------
  621|       |            // patterns without '@' can define max integer digits, used for engineering notation
  622|      0|            properties.minimumIntegerDigits = positive.integerNumerals;
  623|      0|            properties.maximumIntegerDigits = positive.integerTotal;
  624|      0|        } else {
  625|       |            // patterns with '@' cannot define max integer digits
  626|      0|            properties.minimumIntegerDigits = 1;
  627|      0|            properties.maximumIntegerDigits = -1;
  628|      0|        }
  629|  51.2k|    } else {
  630|  51.2k|        properties.exponentSignAlwaysShown = false;
  631|  51.2k|        properties.minimumExponentDigits = -1;
  632|  51.2k|        properties.minimumIntegerDigits = minInt;
  633|  51.2k|        properties.maximumIntegerDigits = -1;
  634|  51.2k|    }
  635|       |
  636|       |    // Compute the affix patterns (required for both padding and affixes)
  637|  51.2k|    UnicodeString posPrefix = patternInfo.getString(AffixPatternProvider::AFFIX_PREFIX);
  638|  51.2k|    UnicodeString posSuffix = patternInfo.getString(0);
  639|       |
  640|       |    // Padding settings
  641|  51.2k|    if (positive.hasPadding) {
  ------------------
  |  Branch (641:9): [True: 0, False: 51.2k]
  ------------------
  642|       |        // The width of the positive prefix and suffix templates are included in the padding
  643|      0|        int paddingWidth = positive.widthExceptAffixes +
  644|      0|                           AffixUtils::estimateLength(posPrefix, status) +
  645|      0|                           AffixUtils::estimateLength(posSuffix, status);
  646|      0|        properties.formatWidth = paddingWidth;
  647|      0|        UnicodeString rawPaddingString = patternInfo.getString(AffixPatternProvider::AFFIX_PADDING);
  648|      0|        if (rawPaddingString.length() == 1) {
  ------------------
  |  Branch (648:13): [True: 0, False: 0]
  ------------------
  649|      0|            properties.padString = rawPaddingString;
  650|      0|        } else if (rawPaddingString.length() == 2) {
  ------------------
  |  Branch (650:20): [True: 0, False: 0]
  ------------------
  651|      0|            if (rawPaddingString.charAt(0) == u'\'') {
  ------------------
  |  Branch (651:17): [True: 0, False: 0]
  ------------------
  652|      0|                properties.padString.setTo(u"'", -1);
  653|      0|            } else {
  654|      0|                properties.padString = rawPaddingString;
  655|      0|            }
  656|      0|        } else {
  657|      0|            properties.padString = UnicodeString(rawPaddingString, 1, rawPaddingString.length() - 2);
  658|      0|        }
  659|      0|        properties.padPosition = positive.paddingLocation;
  660|  51.2k|    } else {
  661|  51.2k|        properties.formatWidth = -1;
  662|  51.2k|        properties.padString.setToBogus();
  663|  51.2k|        properties.padPosition.nullify();
  664|  51.2k|    }
  665|       |
  666|       |    // Set the affixes
  667|       |    // Always call the setter, even if the prefixes are empty, especially in the case of the
  668|       |    // negative prefix pattern, to prevent default values from overriding the pattern.
  669|  51.2k|    properties.positivePrefixPattern = posPrefix;
  670|  51.2k|    properties.positiveSuffixPattern = posSuffix;
  671|  51.2k|    if (patternInfo.fHasNegativeSubpattern) {
  ------------------
  |  Branch (671:9): [True: 0, False: 51.2k]
  ------------------
  672|      0|        properties.negativePrefixPattern = patternInfo.getString(
  673|      0|                AffixPatternProvider::AFFIX_NEGATIVE_SUBPATTERN | AffixPatternProvider::AFFIX_PREFIX);
  674|      0|        properties.negativeSuffixPattern = patternInfo.getString(
  675|      0|                AffixPatternProvider::AFFIX_NEGATIVE_SUBPATTERN);
  676|  51.2k|    } else {
  677|  51.2k|        properties.negativePrefixPattern.setToBogus();
  678|  51.2k|        properties.negativeSuffixPattern.setToBogus();
  679|  51.2k|    }
  680|       |
  681|       |    // Set the magnitude multiplier
  682|  51.2k|    if (positive.hasPercentSign) {
  ------------------
  |  Branch (682:9): [True: 0, False: 51.2k]
  ------------------
  683|      0|        properties.magnitudeMultiplier = 2;
  684|  51.2k|    } else if (positive.hasPerMilleSign) {
  ------------------
  |  Branch (684:16): [True: 0, False: 51.2k]
  ------------------
  685|      0|        properties.magnitudeMultiplier = 3;
  686|  51.2k|    } else {
  687|  51.2k|        properties.magnitudeMultiplier = 0;
  688|  51.2k|    }
  689|  51.2k|}
_ZN6icu_786number4impl18PatternStringUtils26patternInfoToStringBuilderERKNS1_20AffixPatternProviderEbNS1_15PatternSignTypeEbNS_14StandardPlural4FormEbbRNS_13UnicodeStringE:
 1061|   456k|                                                    UnicodeString& output) {
 1062|       |
 1063|       |    // Should the output render '+' where '-' would normally appear in the pattern?
 1064|   456k|    bool plusReplacesMinusSign = (patternSignType == PATTERN_SIGN_TYPE_POS_SIGN)
  ------------------
  |  Branch (1064:34): [True: 114k, False: 342k]
  ------------------
 1065|   456k|        && !patternInfo.positiveHasPlusSign();
  ------------------
  |  Branch (1065:12): [True: 114k, False: 0]
  ------------------
 1066|       |
 1067|       |    // Should we use the affix from the negative subpattern?
 1068|       |    // (If not, we will use the positive subpattern.)
 1069|   456k|    bool useNegativeAffixPattern = patternInfo.hasNegativeSubpattern()
  ------------------
  |  Branch (1069:36): [True: 0, False: 456k]
  ------------------
 1070|   456k|        && (patternSignType == PATTERN_SIGN_TYPE_NEG
  ------------------
  |  Branch (1070:13): [True: 0, False: 0]
  ------------------
 1071|      0|            || (patternInfo.negativeHasMinusSign() && (plusReplacesMinusSign || approximately)));
  ------------------
  |  Branch (1071:17): [True: 0, False: 0]
  |  Branch (1071:56): [True: 0, False: 0]
  |  Branch (1071:81): [True: 0, False: 0]
  ------------------
 1072|       |
 1073|       |    // Resolve the flags for the affix pattern.
 1074|   456k|    int flags = 0;
 1075|   456k|    if (useNegativeAffixPattern) {
  ------------------
  |  Branch (1075:9): [True: 0, False: 456k]
  ------------------
 1076|      0|        flags |= AffixPatternProvider::AFFIX_NEGATIVE_SUBPATTERN;
 1077|      0|    }
 1078|   456k|    if (isPrefix) {
  ------------------
  |  Branch (1078:9): [True: 228k, False: 228k]
  ------------------
 1079|   228k|        flags |= AffixPatternProvider::AFFIX_PREFIX;
 1080|   228k|    }
 1081|   456k|    if (plural != StandardPlural::Form::COUNT) {
  ------------------
  |  Branch (1081:9): [True: 0, False: 456k]
  ------------------
 1082|      0|        U_ASSERT(plural == (AffixPatternProvider::AFFIX_PLURAL_MASK & plural));
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1083|      0|        flags |= plural;
 1084|      0|    }
 1085|       |
 1086|       |    // Should we prepend a sign to the pattern?
 1087|   456k|    bool prependSign;
 1088|   456k|    if (!isPrefix || useNegativeAffixPattern) {
  ------------------
  |  Branch (1088:9): [True: 228k, False: 228k]
  |  Branch (1088:22): [True: 0, False: 228k]
  ------------------
 1089|   228k|        prependSign = false;
 1090|   228k|    } else if (patternSignType == PATTERN_SIGN_TYPE_NEG) {
  ------------------
  |  Branch (1090:16): [True: 57.0k, False: 171k]
  ------------------
 1091|  57.0k|        prependSign = true;
 1092|   171k|    } else {
 1093|   171k|        prependSign = plusReplacesMinusSign || approximately;
  ------------------
  |  Branch (1093:23): [True: 57.0k, False: 114k]
  |  Branch (1093:48): [True: 0, False: 114k]
  ------------------
 1094|   171k|    }
 1095|       |
 1096|       |    // What symbols should take the place of the sign placeholder?
 1097|   456k|    const char16_t* signSymbols = u"-";
 1098|   456k|    if (approximately) {
  ------------------
  |  Branch (1098:9): [True: 0, False: 456k]
  ------------------
 1099|      0|        if (plusReplacesMinusSign) {
  ------------------
  |  Branch (1099:13): [True: 0, False: 0]
  ------------------
 1100|      0|            signSymbols = u"~+";
 1101|      0|        } else if (patternSignType == PATTERN_SIGN_TYPE_NEG) {
  ------------------
  |  Branch (1101:20): [True: 0, False: 0]
  ------------------
 1102|      0|            signSymbols = u"~-";
 1103|      0|        } else {
 1104|      0|            signSymbols = u"~";
 1105|      0|        }
 1106|   456k|    } else if (plusReplacesMinusSign) {
  ------------------
  |  Branch (1106:16): [True: 114k, False: 342k]
  ------------------
 1107|   114k|        signSymbols = u"+";
 1108|   114k|    }
 1109|       |
 1110|       |    // Compute the number of tokens in the affix pattern (signSymbols is considered one token).
 1111|   456k|    int length = patternInfo.length(flags) + (prependSign ? 1 : 0);
  ------------------
  |  Branch (1111:47): [True: 114k, False: 342k]
  ------------------
 1112|       |
 1113|       |    // Finally, set the result into the StringBuilder.
 1114|   456k|    output.remove();
 1115|   570k|    for (int index = 0; index < length; index++) {
  ------------------
  |  Branch (1115:25): [True: 114k, False: 456k]
  ------------------
 1116|   114k|        char16_t candidate;
 1117|   114k|        if (prependSign && index == 0) {
  ------------------
  |  Branch (1117:13): [True: 114k, False: 0]
  |  Branch (1117:28): [True: 114k, False: 0]
  ------------------
 1118|   114k|            candidate = u'-';
 1119|   114k|        } else if (prependSign) {
  ------------------
  |  Branch (1119:20): [True: 0, False: 0]
  ------------------
 1120|      0|            candidate = patternInfo.charAt(flags, index - 1);
 1121|      0|        } else {
 1122|      0|            candidate = patternInfo.charAt(flags, index);
 1123|      0|        }
 1124|   114k|        if (candidate == u'-') {
  ------------------
  |  Branch (1124:13): [True: 114k, False: 0]
  ------------------
 1125|   114k|            if (u_strlen(signSymbols) == 1) {
  ------------------
  |  |  393|   114k|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|   114k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   114k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   114k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1125:17): [True: 114k, False: 0]
  ------------------
 1126|   114k|                candidate = signSymbols[0];
 1127|   114k|            } else {
 1128|      0|                output.append(signSymbols[0]);
 1129|      0|                candidate = signSymbols[1];
 1130|      0|            }
 1131|   114k|        }
 1132|   114k|        if (perMilleReplacesPercent && candidate == u'%') {
  ------------------
  |  Branch (1132:13): [True: 0, False: 114k]
  |  Branch (1132:40): [True: 0, False: 0]
  ------------------
 1133|      0|            candidate = u'‰';
 1134|      0|        }
 1135|   114k|        if (dropCurrencySymbols && candidate == u'\u00A4') {
  ------------------
  |  Branch (1135:13): [True: 0, False: 114k]
  |  Branch (1135:36): [True: 0, False: 0]
  ------------------
 1136|      0|            continue;
 1137|      0|        }
 1138|   114k|        output.append(candidate);
 1139|   114k|    }
 1140|   456k|}
_ZN6icu_786number4impl18PatternStringUtils18resolveSignDisplayE18UNumberSignDisplayNS1_6SignumE:
 1142|   456k|PatternSignType PatternStringUtils::resolveSignDisplay(UNumberSignDisplay signDisplay, Signum signum) {
 1143|   456k|    switch (signDisplay) {
 1144|      0|        case UNUM_SIGN_AUTO:
  ------------------
  |  Branch (1144:9): [True: 0, False: 456k]
  ------------------
 1145|      0|        case UNUM_SIGN_ACCOUNTING:
  ------------------
  |  Branch (1145:9): [True: 0, False: 456k]
  ------------------
 1146|      0|            switch (signum) {
 1147|      0|                case SIGNUM_NEG:
  ------------------
  |  Branch (1147:17): [True: 0, False: 0]
  ------------------
 1148|      0|                case SIGNUM_NEG_ZERO:
  ------------------
  |  Branch (1148:17): [True: 0, False: 0]
  ------------------
 1149|      0|                    return PATTERN_SIGN_TYPE_NEG;
 1150|      0|                case SIGNUM_POS_ZERO:
  ------------------
  |  Branch (1150:17): [True: 0, False: 0]
  ------------------
 1151|      0|                case SIGNUM_POS:
  ------------------
  |  Branch (1151:17): [True: 0, False: 0]
  ------------------
 1152|      0|                    return PATTERN_SIGN_TYPE_POS;
 1153|      0|                default:
  ------------------
  |  Branch (1153:17): [True: 0, False: 0]
  ------------------
 1154|      0|                    break;
 1155|      0|            }
 1156|      0|            break;
 1157|       |
 1158|      0|        case UNUM_SIGN_ALWAYS:
  ------------------
  |  Branch (1158:9): [True: 0, False: 456k]
  ------------------
 1159|      0|        case UNUM_SIGN_ACCOUNTING_ALWAYS:
  ------------------
  |  Branch (1159:9): [True: 0, False: 456k]
  ------------------
 1160|      0|            switch (signum) {
 1161|      0|                case SIGNUM_NEG:
  ------------------
  |  Branch (1161:17): [True: 0, False: 0]
  ------------------
 1162|      0|                case SIGNUM_NEG_ZERO:
  ------------------
  |  Branch (1162:17): [True: 0, False: 0]
  ------------------
 1163|      0|                    return PATTERN_SIGN_TYPE_NEG;
 1164|      0|                case SIGNUM_POS_ZERO:
  ------------------
  |  Branch (1164:17): [True: 0, False: 0]
  ------------------
 1165|      0|                case SIGNUM_POS:
  ------------------
  |  Branch (1165:17): [True: 0, False: 0]
  ------------------
 1166|      0|                    return PATTERN_SIGN_TYPE_POS_SIGN;
 1167|      0|                default:
  ------------------
  |  Branch (1167:17): [True: 0, False: 0]
  ------------------
 1168|      0|                    break;
 1169|      0|            }
 1170|      0|            break;
 1171|       |
 1172|   456k|        case UNUM_SIGN_EXCEPT_ZERO:
  ------------------
  |  Branch (1172:9): [True: 456k, False: 0]
  ------------------
 1173|   456k|        case UNUM_SIGN_ACCOUNTING_EXCEPT_ZERO:
  ------------------
  |  Branch (1173:9): [True: 0, False: 456k]
  ------------------
 1174|   456k|            switch (signum) {
 1175|   114k|                case SIGNUM_NEG:
  ------------------
  |  Branch (1175:17): [True: 114k, False: 342k]
  ------------------
 1176|   114k|                    return PATTERN_SIGN_TYPE_NEG;
 1177|   114k|                case SIGNUM_NEG_ZERO:
  ------------------
  |  Branch (1177:17): [True: 114k, False: 342k]
  ------------------
 1178|   228k|                case SIGNUM_POS_ZERO:
  ------------------
  |  Branch (1178:17): [True: 114k, False: 342k]
  ------------------
 1179|   228k|                    return PATTERN_SIGN_TYPE_POS;
 1180|   114k|                case SIGNUM_POS:
  ------------------
  |  Branch (1180:17): [True: 114k, False: 342k]
  ------------------
 1181|   114k|                    return PATTERN_SIGN_TYPE_POS_SIGN;
 1182|      0|                default:
  ------------------
  |  Branch (1182:17): [True: 0, False: 456k]
  ------------------
 1183|      0|                    break;
 1184|   456k|            }
 1185|      0|            break;
 1186|       |
 1187|      0|        case UNUM_SIGN_NEGATIVE:
  ------------------
  |  Branch (1187:9): [True: 0, False: 456k]
  ------------------
 1188|      0|        case UNUM_SIGN_ACCOUNTING_NEGATIVE:
  ------------------
  |  Branch (1188:9): [True: 0, False: 456k]
  ------------------
 1189|      0|            switch (signum) {
 1190|      0|                case SIGNUM_NEG:
  ------------------
  |  Branch (1190:17): [True: 0, False: 0]
  ------------------
 1191|      0|                    return PATTERN_SIGN_TYPE_NEG;
 1192|      0|                case SIGNUM_NEG_ZERO:
  ------------------
  |  Branch (1192:17): [True: 0, False: 0]
  ------------------
 1193|      0|                case SIGNUM_POS_ZERO:
  ------------------
  |  Branch (1193:17): [True: 0, False: 0]
  ------------------
 1194|      0|                case SIGNUM_POS:
  ------------------
  |  Branch (1194:17): [True: 0, False: 0]
  ------------------
 1195|      0|                    return PATTERN_SIGN_TYPE_POS;
 1196|      0|                default:
  ------------------
  |  Branch (1196:17): [True: 0, False: 0]
  ------------------
 1197|      0|                    break;
 1198|      0|            }
 1199|      0|            break;
 1200|       |
 1201|      0|        case UNUM_SIGN_NEVER:
  ------------------
  |  Branch (1201:9): [True: 0, False: 456k]
  ------------------
 1202|      0|            return PATTERN_SIGN_TYPE_POS;
 1203|       |
 1204|      0|        default:
  ------------------
  |  Branch (1204:9): [True: 0, False: 456k]
  ------------------
 1205|      0|            break;
 1206|   456k|    }
 1207|       |
 1208|   456k|    UPRV_UNREACHABLE_EXIT;
  ------------------
  |  |   68|      0|#   define UPRV_UNREACHABLE_EXIT abort()
  ------------------
 1209|      0|    return PATTERN_SIGN_TYPE_POS;
 1210|   456k|}

_ZN6icu_786number4impl17ParsedPatternInfoC2Ev:
   81|   108k|            : state(this->pattern), currentSubpattern(nullptr) {}
_ZN6icu_786number4impl17ParsedPatternInfo11ParserStateC2ERKNS_13UnicodeStringE:
  116|   108k|                : pattern(_pattern) {}
_ZN6icu_786number4impl17ParsedPatternInfoD2Ev:
   83|   108k|    ~ParsedPatternInfo() override = default;

_ZN6icu_786number9Precision17constructFractionEii:
  280|   202k|FractionPrecision Precision::constructFraction(int32_t minFrac, int32_t maxFrac) {
  281|   202k|    FractionSignificantSettings settings{};
  282|   202k|    settings.fMinFrac = static_cast<digits_t>(minFrac);
  283|   202k|    settings.fMaxFrac = static_cast<digits_t>(maxFrac);
  284|   202k|    settings.fMinSig = -1;
  285|   202k|    settings.fMaxSig = -1;
  286|   202k|    PrecisionUnion union_{};
  287|   202k|    union_.fracSig = settings;
  288|   202k|    return {RND_FRACTION, union_};
  289|   202k|}

_ZN6icu_786number12SimpleNumberC2EPNS0_4impl20UFormattedNumberDataER10UErrorCode:
   34|   100k|SimpleNumber::SimpleNumber(UFormattedNumberData* data, UErrorCode& status) : fData(data) {
   35|   100k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (35:9): [True: 0, False: 100k]
  ------------------
   36|      0|        return;
   37|      0|    }
   38|   100k|    if (fData == nullptr) {
  ------------------
  |  Branch (38:9): [True: 0, False: 100k]
  ------------------
   39|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
   40|      0|        return;
   41|      0|    }
   42|   100k|    if (fData->quantity.isNegative()) {
  ------------------
  |  Branch (42:9): [True: 281, False: 100k]
  ------------------
   43|    281|        fSign = UNUM_SIMPLE_NUMBER_MINUS_SIGN;
   44|   100k|    } else {
   45|   100k|        fSign = UNUM_SIMPLE_NUMBER_NO_SIGN;
   46|   100k|    }
   47|   100k|}
_ZN6icu_786number12SimpleNumber7cleanupEv:
   49|   201k|void SimpleNumber::cleanup() {
   50|   201k|    delete fData;
   51|   201k|    fData = nullptr;
   52|   201k|}
_ZN6icu_786number12SimpleNumber23setMinimumIntegerDigitsEjR10UErrorCode:
   76|   100k|void SimpleNumber::setMinimumIntegerDigits(uint32_t position, UErrorCode& status) {
   77|   100k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (77:9): [True: 0, False: 100k]
  ------------------
   78|      0|        return;
   79|      0|    }
   80|   100k|    if (fData == nullptr) {
  ------------------
  |  Branch (80:9): [True: 0, False: 100k]
  ------------------
   81|      0|        status = U_INVALID_STATE_ERROR;
   82|      0|        return;
   83|      0|    }
   84|   100k|    fData->quantity.decreaseMinIntegerTo(position);
   85|   100k|    fData->quantity.increaseMinIntegerTo(position);
   86|   100k|}
_ZN6icu_786number12SimpleNumber23setMaximumIntegerDigitsEjR10UErrorCode:
   99|   100k|void SimpleNumber::setMaximumIntegerDigits(uint32_t position, UErrorCode& status) {
  100|   100k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (100:9): [True: 0, False: 100k]
  ------------------
  101|      0|        return;
  102|      0|    }
  103|   100k|    if (fData == nullptr) {
  ------------------
  |  Branch (103:9): [True: 0, False: 100k]
  ------------------
  104|      0|        status = U_INVALID_STATE_ERROR;
  105|      0|        return;
  106|      0|    }
  107|   100k|    fData->quantity.decreaseMinIntegerTo(position);
  108|   100k|    fData->quantity.applyMaxInteger(position);
  109|   100k|}
_ZN6icu_786number21SimpleNumberFormatter7cleanupEv:
  123|  57.0k|void SimpleNumberFormatter::cleanup() {
  124|  57.0k|    delete fOwnedSymbols;
  125|  57.0k|    delete fMicros;
  126|  57.0k|    delete fPatternModifier;
  127|  57.0k|    fOwnedSymbols = nullptr;
  128|  57.0k|    fMicros = nullptr;
  129|  57.0k|    fPatternModifier = nullptr;
  130|  57.0k|}
_ZN6icu_786number21SimpleNumberFormatter38forLocaleAndSymbolsAndGroupingStrategyERKNS_6LocaleERKNS_20DecimalFormatSymbolsE23UNumberGroupingStrategyR10UErrorCode:
  158|  57.0k|        UErrorCode &status) {
  159|  57.0k|    SimpleNumberFormatter retval;
  160|  57.0k|    retval.initialize(locale, symbols, groupingStrategy, status);
  161|  57.0k|    return retval;
  162|  57.0k|}
_ZN6icu_786number21SimpleNumberFormatter10initializeERKNS_6LocaleERKNS_20DecimalFormatSymbolsE23UNumberGroupingStrategyR10UErrorCode:
  169|  57.0k|        UErrorCode &status) {
  170|  57.0k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (170:9): [True: 0, False: 57.0k]
  ------------------
  171|      0|        return;
  172|      0|    }
  173|       |
  174|  57.0k|    fMicros = new SimpleMicroProps();
  175|  57.0k|    if (fMicros == nullptr) {
  ------------------
  |  Branch (175:9): [True: 0, False: 57.0k]
  ------------------
  176|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  177|      0|        return;
  178|      0|    }
  179|  57.0k|    fMicros->symbols = &symbols;
  180|       |
  181|  57.0k|    const auto* pattern = utils::getPatternForStyle(
  182|  57.0k|        locale,
  183|  57.0k|        symbols.getNumberingSystemName(),
  184|  57.0k|        CLDR_PATTERN_STYLE_DECIMAL,
  185|  57.0k|        status);
  186|  57.0k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (186:9): [True: 25, False: 57.0k]
  ------------------
  187|     25|        return;
  188|     25|    }
  189|       |
  190|  57.0k|    ParsedPatternInfo patternInfo;
  191|  57.0k|    PatternParser::parseToPatternInfo(UnicodeString(pattern), patternInfo, status);
  192|  57.0k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (192:9): [True: 0, False: 57.0k]
  ------------------
  193|      0|        return;
  194|      0|    }
  195|       |
  196|  57.0k|    auto grouper = Grouper::forStrategy(groupingStrategy);
  197|  57.0k|    grouper.setLocaleData(patternInfo, locale);
  198|  57.0k|    fMicros->grouping = grouper;
  199|       |
  200|  57.0k|    MutablePatternModifier patternModifier(false);
  201|  57.0k|    patternModifier.setPatternInfo(&patternInfo, kUndefinedField);
  202|  57.0k|    patternModifier.setPatternAttributes(UNUM_SIGN_EXCEPT_ZERO, false, false);
  203|  57.0k|    patternModifier.setSymbols(fMicros->symbols, {}, UNUM_UNIT_WIDTH_SHORT, nullptr, status);
  204|       |
  205|  57.0k|    fPatternModifier = new AdoptingSignumModifierStore(patternModifier.createImmutableForPlural(StandardPlural::COUNT, status));
  206|       |
  207|  57.0k|    fGroupingStrategy = groupingStrategy;
  208|  57.0k|}
_ZNK6icu_786number21SimpleNumberFormatter6formatENS0_12SimpleNumberER10UErrorCode:
  210|   100k|FormattedNumber SimpleNumberFormatter::format(SimpleNumber value, UErrorCode &status) const {
  211|   100k|    formatImpl(value.fData, value.fSign, status);
  212|       |
  213|       |    // Do not save the results object if we encountered a failure.
  214|   100k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (214:9): [True: 100k, False: 0]
  ------------------
  215|   100k|        auto* temp = value.fData;
  216|   100k|        value.fData = nullptr;
  217|   100k|        return FormattedNumber(temp);
  218|   100k|    } else {
  219|      0|        return FormattedNumber(status);
  220|      0|    }
  221|   100k|}
_ZNK6icu_786number21SimpleNumberFormatter10formatImplEPNS0_4impl20UFormattedNumberDataE17USimpleNumberSignR10UErrorCode:
  223|   100k|void SimpleNumberFormatter::formatImpl(UFormattedNumberData* data, USimpleNumberSign sign, UErrorCode &status) const {
  224|   100k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (224:9): [True: 0, False: 100k]
  ------------------
  225|      0|        return;
  226|      0|    }
  227|   100k|    if (data == nullptr) {
  ------------------
  |  Branch (227:9): [True: 0, False: 100k]
  ------------------
  228|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  229|      0|        return;
  230|      0|    }
  231|   100k|    if (fPatternModifier == nullptr || fMicros == nullptr) {
  ------------------
  |  Branch (231:9): [True: 0, False: 100k]
  |  Branch (231:40): [True: 0, False: 100k]
  ------------------
  232|      0|        status = U_INVALID_STATE_ERROR;
  233|      0|        return;
  234|      0|    }
  235|       |
  236|   100k|    Signum signum;
  237|   100k|    if (sign == UNUM_SIMPLE_NUMBER_MINUS_SIGN) {
  ------------------
  |  Branch (237:9): [True: 281, False: 100k]
  ------------------
  238|    281|        signum = SIGNUM_NEG;
  239|   100k|    } else if (sign == UNUM_SIMPLE_NUMBER_PLUS_SIGN) {
  ------------------
  |  Branch (239:16): [True: 0, False: 100k]
  ------------------
  240|      0|        signum = SIGNUM_POS;
  241|   100k|    } else {
  242|   100k|        signum = SIGNUM_POS_ZERO;
  243|   100k|    }
  244|       |
  245|   100k|    const Modifier* modifier = (*fPatternModifier)[signum];
  246|   100k|    auto length = NumberFormatterImpl::writeNumber(
  247|   100k|        *fMicros,
  248|   100k|        data->quantity,
  249|   100k|        data->getStringRef(),
  250|   100k|        0,
  251|   100k|        status);
  252|   100k|    length += modifier->apply(data->getStringRef(), 0, length, status);
  253|   100k|    data->getStringRef().writeTerminator(status);
  254|   100k|}

_ZN6icu_786number4impl14SymbolsWrapperC2EOS2_:
   19|   202k|SymbolsWrapper::SymbolsWrapper(SymbolsWrapper &&src) noexcept {
   20|   202k|    doMoveFrom(std::move(src));
   21|   202k|}
_ZN6icu_786number4impl14SymbolsWrapperaSEOS2_:
   32|   607k|SymbolsWrapper &SymbolsWrapper::operator=(SymbolsWrapper &&src) noexcept {
   33|   607k|    if (this == &src) {
  ------------------
  |  Branch (33:9): [True: 0, False: 607k]
  ------------------
   34|      0|        return *this;
   35|      0|    }
   36|   607k|    doCleanup();
   37|   607k|    doMoveFrom(std::move(src));
   38|   607k|    return *this;
   39|   607k|}
_ZN6icu_786number4impl14SymbolsWrapperD2Ev:
   41|   918k|SymbolsWrapper::~SymbolsWrapper() {
   42|   918k|    doCleanup();
   43|   918k|}
_ZN6icu_786number4impl14SymbolsWrapper5setToERKNS_20DecimalFormatSymbolsE:
   45|   202k|void SymbolsWrapper::setTo(const DecimalFormatSymbols &dfs) {
   46|   202k|    doCleanup();
   47|   202k|    fType = SYMPTR_DFS;
   48|   202k|    fPtr.dfs = new DecimalFormatSymbols(dfs);
   49|   202k|}
_ZN6icu_786number4impl14SymbolsWrapper10doMoveFromEOS2_:
   82|   810k|void SymbolsWrapper::doMoveFrom(SymbolsWrapper &&src) {
   83|   810k|    fType = src.fType;
   84|   810k|    switch (fType) {
  ------------------
  |  Branch (84:13): [True: 0, False: 810k]
  ------------------
   85|   202k|    case SYMPTR_NONE:
  ------------------
  |  Branch (85:5): [True: 202k, False: 607k]
  ------------------
   86|       |        // No action necessary
   87|   202k|        break;
   88|   607k|    case SYMPTR_DFS:
  ------------------
  |  Branch (88:5): [True: 607k, False: 202k]
  ------------------
   89|   607k|        fPtr.dfs = src.fPtr.dfs;
   90|   607k|        src.fPtr.dfs = nullptr;
   91|   607k|        break;
   92|      0|    case SYMPTR_NS:
  ------------------
  |  Branch (92:5): [True: 0, False: 810k]
  ------------------
   93|      0|        fPtr.ns = src.fPtr.ns;
   94|      0|        src.fPtr.ns = nullptr;
   95|      0|        break;
   96|   810k|    }
   97|   810k|}
_ZN6icu_786number4impl14SymbolsWrapper9doCleanupEv:
   99|  1.72M|void SymbolsWrapper::doCleanup() {
  100|  1.72M|    switch (fType) {
  ------------------
  |  Branch (100:13): [True: 0, False: 1.72M]
  ------------------
  101|   918k|    case SYMPTR_NONE:
  ------------------
  |  Branch (101:5): [True: 918k, False: 810k]
  ------------------
  102|       |        // No action necessary
  103|   918k|        break;
  104|   810k|    case SYMPTR_DFS:
  ------------------
  |  Branch (104:5): [True: 810k, False: 918k]
  ------------------
  105|   810k|        delete fPtr.dfs;
  106|   810k|        break;
  107|      0|    case SYMPTR_NS:
  ------------------
  |  Branch (107:5): [True: 0, False: 1.72M]
  ------------------
  108|      0|        delete fPtr.ns;
  109|      0|        break;
  110|  1.72M|    }
  111|  1.72M|}
_ZNK6icu_786number4impl14SymbolsWrapper23getDecimalFormatSymbolsEv:
  121|   404k|const DecimalFormatSymbols *SymbolsWrapper::getDecimalFormatSymbols() const {
  122|   404k|    U_ASSERT(fType == SYMPTR_DFS);
  ------------------
  |  |   35|   404k|#   define U_ASSERT(exp) (void)0
  ------------------
  123|   404k|    return fPtr.dfs;
  124|   404k|}

_ZN6icu_786number4impl13NullableValueINS_12CurrencyUnitEEC2ERKS4_:
  316|  57.3k|    NullableValue(const NullableValue<T>& other) = default;
_ZN6icu_786number4impl13NullableValueI25UNumberFormatRoundingModeEaSERKS3_:
  331|   202k|    NullableValue<T>& operator=(const T& other) {
  332|   202k|        fValue = other;
  333|   202k|        fNull = false;
  334|   202k|        return *this;
  335|   202k|    }
_ZNK6icu_786number4impl13NullableValueINS_12CurrencyUnitEE6isNullEv:
  347|   202k|    bool isNull() const {
  348|   202k|        return fNull;
  349|   202k|    }
_ZNK6icu_786number4impl13NullableValueI14UCurrencyUsageE6isNullEv:
  347|   405k|    bool isNull() const {
  348|   405k|        return fNull;
  349|   405k|    }
_ZN6icu_786number4impl13NullableValueINS_12CurrencyUnitEEaSERKS3_:
  331|   202k|    NullableValue<T>& operator=(const T& other) {
  332|   202k|        fValue = other;
  333|   202k|        fNull = false;
  334|   202k|        return *this;
  335|   202k|    }
_ZNK6icu_786number4impl13NullableValueINS_12CurrencyUnitEE3getER10UErrorCode:
  351|   202k|    T get(UErrorCode& status) const {
  352|   202k|        if (fNull) {
  ------------------
  |  Branch (352:13): [True: 0, False: 202k]
  ------------------
  353|      0|            status = U_UNDEFINED_VARIABLE;
  354|      0|        }
  355|   202k|        return fValue;
  356|   202k|    }
_ZN6icu_786number4impl13NullableValueI19UNumberCompactStyleEC2Ev:
  314|   159k|            : fNull(true) {}
_ZN6icu_786number4impl13NullableValueINS_12CurrencyUnitEEC2Ev:
  314|   159k|            : fNull(true) {}
_ZN6icu_786number4impl13NullableValueI14UCurrencyUsageEC2Ev:
  314|   159k|            : fNull(true) {}
_ZN6icu_786number4impl13NullableValueI24UNumberFormatPadPositionEC2Ev:
  314|   159k|            : fNull(true) {}
_ZN6icu_786number4impl13NullableValueINS1_9ParseModeEEC2Ev:
  314|   159k|            : fNull(true) {}
_ZN6icu_786number4impl13NullableValueI25UNumberFormatRoundingModeEC2Ev:
  314|   159k|            : fNull(true) {}
_ZN6icu_786number4impl13NullableValueI19UNumberCompactStyleE7nullifyEv:
  342|   159k|    void nullify() {
  343|       |        // TODO: It might be nice to call the destructor here.
  344|   159k|        fNull = true;
  345|   159k|    }
_ZN6icu_786number4impl13NullableValueINS_12CurrencyUnitEE7nullifyEv:
  342|   159k|    void nullify() {
  343|       |        // TODO: It might be nice to call the destructor here.
  344|   159k|        fNull = true;
  345|   159k|    }
_ZN6icu_786number4impl13NullableValueI14UCurrencyUsageE7nullifyEv:
  342|   159k|    void nullify() {
  343|       |        // TODO: It might be nice to call the destructor here.
  344|   159k|        fNull = true;
  345|   159k|    }
_ZN6icu_786number4impl13NullableValueI24UNumberFormatPadPositionE7nullifyEv:
  342|   210k|    void nullify() {
  343|       |        // TODO: It might be nice to call the destructor here.
  344|   210k|        fNull = true;
  345|   210k|    }
_ZN6icu_786number4impl13NullableValueINS1_9ParseModeEE7nullifyEv:
  342|   159k|    void nullify() {
  343|       |        // TODO: It might be nice to call the destructor here.
  344|   159k|        fNull = true;
  345|   159k|    }
_ZN6icu_786number4impl13NullableValueI25UNumberFormatRoundingModeE7nullifyEv:
  342|   159k|    void nullify() {
  343|       |        // TODO: It might be nice to call the destructor here.
  344|   159k|        fNull = true;
  345|   159k|    }
_ZNK6icu_786number4impl13NullableValueI19UNumberCompactStyleEeqERKS4_:
  337|   202k|    bool operator==(const NullableValue& other) const {
  338|       |        // "fValue == other.fValue" returns UBool, not bool (causes compiler warnings)
  339|   202k|        return fNull ? other.fNull : (other.fNull ? false : static_cast<bool>(fValue == other.fValue));
  ------------------
  |  Branch (339:16): [True: 202k, False: 0]
  |  Branch (339:39): [True: 0, False: 0]
  ------------------
  340|   202k|    }
_ZNK6icu_786number4impl13NullableValueINS_12CurrencyUnitEEeqERKS4_:
  337|   202k|    bool operator==(const NullableValue& other) const {
  338|       |        // "fValue == other.fValue" returns UBool, not bool (causes compiler warnings)
  339|   202k|        return fNull ? other.fNull : (other.fNull ? false : static_cast<bool>(fValue == other.fValue));
  ------------------
  |  Branch (339:16): [True: 202k, False: 0]
  |  Branch (339:39): [True: 0, False: 0]
  ------------------
  340|   202k|    }
_ZNK6icu_786number4impl13NullableValueI14UCurrencyUsageEeqERKS4_:
  337|   202k|    bool operator==(const NullableValue& other) const {
  338|       |        // "fValue == other.fValue" returns UBool, not bool (causes compiler warnings)
  339|   202k|        return fNull ? other.fNull : (other.fNull ? false : static_cast<bool>(fValue == other.fValue));
  ------------------
  |  Branch (339:16): [True: 202k, False: 0]
  |  Branch (339:39): [True: 0, False: 0]
  ------------------
  340|   202k|    }
_ZNK6icu_786number4impl13NullableValueI24UNumberFormatPadPositionEeqERKS4_:
  337|   202k|    bool operator==(const NullableValue& other) const {
  338|       |        // "fValue == other.fValue" returns UBool, not bool (causes compiler warnings)
  339|   202k|        return fNull ? other.fNull : (other.fNull ? false : static_cast<bool>(fValue == other.fValue));
  ------------------
  |  Branch (339:16): [True: 202k, False: 0]
  |  Branch (339:39): [True: 0, False: 0]
  ------------------
  340|   202k|    }
_ZNK6icu_786number4impl13NullableValueI25UNumberFormatRoundingModeEeqERKS4_:
  337|   202k|    bool operator==(const NullableValue& other) const {
  338|       |        // "fValue == other.fValue" returns UBool, not bool (causes compiler warnings)
  339|   202k|        return fNull ? other.fNull : (other.fNull ? false : static_cast<bool>(fValue == other.fValue));
  ------------------
  |  Branch (339:16): [True: 202k, False: 0]
  |  Branch (339:39): [True: 0, False: 0]
  ------------------
  340|   202k|    }
_ZN6icu_786number4impl19MicroPropsGeneratorD2Ev:
  277|  57.0k|    virtual ~MicroPropsGenerator() = default;
_ZNK6icu_786number4impl13NullableValueI25UNumberFormatRoundingModeE12getOrDefaultES3_:
  362|   202k|    T getOrDefault(T defaultValue) const {
  363|   202k|        return fNull ? defaultValue : fValue;
  ------------------
  |  Branch (363:16): [True: 202k, False: 0]
  ------------------
  364|   202k|    }
_ZNK6icu_786number4impl13NullableValueI19UNumberCompactStyleE6isNullEv:
  347|   202k|    bool isNull() const {
  348|   202k|        return fNull;
  349|   202k|    }

_ZN6icu_786number4impl10StringPropC2EOS2_:
   63|   405k|StringProp::StringProp(StringProp &&src) noexcept : fValue(src.fValue),
   64|   405k|                                                      fLength(src.fLength),
   65|   405k|                                                      fError(src.fError) {
   66|       |    // Take ownership away from src if necessary
   67|   405k|    src.fValue = nullptr;
   68|   405k|}
_ZN6icu_786number4impl10StringPropaSEOS2_:
   71|  1.21M|StringProp &StringProp::operator=(StringProp &&src) noexcept {
   72|  1.21M|    if (this == &src) {
  ------------------
  |  Branch (72:9): [True: 0, False: 1.21M]
  ------------------
   73|      0|        return *this;
   74|      0|    }
   75|  1.21M|    if (fValue != nullptr) {
  ------------------
  |  Branch (75:9): [True: 0, False: 1.21M]
  ------------------
   76|      0|        uprv_free(fValue);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   77|      0|    }
   78|  1.21M|    fValue = src.fValue;
   79|  1.21M|    fLength = src.fLength;
   80|  1.21M|    fError = src.fError;
   81|       |    // Take ownership away from src if necessary
   82|  1.21M|    src.fValue = nullptr;
   83|  1.21M|    return *this;
   84|  1.21M|}
_ZN6icu_786number4impl10StringPropD2Ev:
   86|  1.83M|StringProp::~StringProp() {
   87|  1.83M|    if (fValue != nullptr) {
  ------------------
  |  Branch (87:9): [True: 0, False: 1.83M]
  ------------------
   88|      0|        uprv_free(fValue);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   89|      0|        fValue = nullptr;
   90|      0|    }
   91|  1.83M|}

_ZN6icu_786number4impl5utils18getPatternForStyleERKNS_6LocaleEPKcNS1_16CldrPatternStyleER10UErrorCode:
   53|  66.5k|                                          UErrorCode& status) {
   54|  66.5k|    const char* patternKey;
   55|  66.5k|    switch (style) {
   56|  66.5k|        case CLDR_PATTERN_STYLE_DECIMAL:
  ------------------
  |  Branch (56:9): [True: 66.5k, False: 0]
  ------------------
   57|  66.5k|            patternKey = "decimalFormat";
   58|  66.5k|            break;
   59|      0|        case CLDR_PATTERN_STYLE_CURRENCY:
  ------------------
  |  Branch (59:9): [True: 0, False: 66.5k]
  ------------------
   60|      0|            patternKey = "currencyFormat";
   61|      0|            break;
   62|      0|        case CLDR_PATTERN_STYLE_ACCOUNTING:
  ------------------
  |  Branch (62:9): [True: 0, False: 66.5k]
  ------------------
   63|      0|            patternKey = "accountingFormat";
   64|      0|            break;
   65|      0|        case CLDR_PATTERN_STYLE_PERCENT:
  ------------------
  |  Branch (65:9): [True: 0, False: 66.5k]
  ------------------
   66|      0|            patternKey = "percentFormat";
   67|      0|            break;
   68|      0|        case CLDR_PATTERN_STYLE_SCIENTIFIC:
  ------------------
  |  Branch (68:9): [True: 0, False: 66.5k]
  ------------------
   69|      0|            patternKey = "scientificFormat";
   70|      0|            break;
   71|      0|        default:
  ------------------
  |  Branch (71:9): [True: 0, False: 66.5k]
  ------------------
   72|      0|            patternKey = "decimalFormat"; // silence compiler error
   73|      0|            UPRV_UNREACHABLE_EXIT;
  ------------------
  |  |   68|      0|#   define UPRV_UNREACHABLE_EXIT abort()
  ------------------
   74|  66.5k|    }
   75|  66.5k|    LocalUResourceBundlePointer res(ures_open(nullptr, locale.getName(), &status));
  ------------------
  |  | 1691|  66.5k|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|  66.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  66.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  66.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   76|  66.5k|    if (U_FAILURE(status)) { return u""; }
  ------------------
  |  Branch (76:9): [True: 25, False: 66.5k]
  ------------------
   77|       |
   78|       |    // Attempt to get the pattern with the native numbering system.
   79|  66.5k|    UErrorCode localStatus = U_ZERO_ERROR;
   80|  66.5k|    const char16_t* pattern;
   81|  66.5k|    pattern = doGetPattern(res.getAlias(), nsName, patternKey, status, localStatus);
   82|  66.5k|    if (U_FAILURE(status)) { return u""; }
  ------------------
  |  Branch (82:9): [True: 0, False: 66.5k]
  ------------------
   83|       |
   84|       |    // Fall back to latn if native numbering system does not have the right pattern
   85|  66.5k|    if (U_FAILURE(localStatus) && uprv_strcmp("latn", nsName) != 0) {
  ------------------
  |  |   38|    264|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    264|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (85:9): [True: 264, False: 66.2k]
  |  Branch (85:35): [True: 264, False: 0]
  ------------------
   86|    264|        localStatus = U_ZERO_ERROR;
   87|    264|        pattern = doGetPattern(res.getAlias(), "latn", patternKey, status, localStatus);
   88|    264|        if (U_FAILURE(status)) { return u""; }
  ------------------
  |  Branch (88:13): [True: 0, False: 264]
  ------------------
   89|    264|    }
   90|       |
   91|  66.5k|    return pattern;
   92|  66.5k|}
number_utils.cpp:_ZN12_GLOBAL__N_112doGetPatternEP15UResourceBundlePKcS3_R10UErrorCodeS5_:
   36|  66.7k|             UErrorCode& localStatus) {
   37|       |    // Construct the path into the resource bundle
   38|  66.7k|    CharString key;
   39|  66.7k|    key.append("NumberElements/", publicStatus);
   40|  66.7k|    key.append(nsName, publicStatus);
   41|  66.7k|    key.append("/patterns/", publicStatus);
   42|  66.7k|    key.append(patternKey, publicStatus);
   43|  66.7k|    if (U_FAILURE(publicStatus)) {
  ------------------
  |  Branch (43:9): [True: 0, False: 66.7k]
  ------------------
   44|      0|        return u"";
   45|      0|    }
   46|  66.7k|    return ures_getStringByKeyWithFallback(res, key.data(), nullptr, &localStatus);
  ------------------
  |  | 1678|  66.7k|#define ures_getStringByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getStringByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  66.7k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  66.7k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  66.7k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   47|  66.7k|}

_ZN6icu_786number4impl5utils22insertDigitFromSymbolsERNS_22FormattedStringBuilderEiaRKNS_20DecimalFormatSymbolsENS3_5FieldER10UErrorCode:
   40|   272k|                                      UErrorCode& status) {
   41|   272k|    if (symbols.getCodePointZero() != -1) {
  ------------------
  |  Branch (41:9): [True: 272k, False: 0]
  ------------------
   42|   272k|        return output.insertCodePoint(index, symbols.getCodePointZero() + digit, field, status);
   43|   272k|    }
   44|      0|    return output.insert(index, symbols.getConstDigitSymbol(digit), field, status);
   45|   272k|}

_ZN6icu_786number4impl20UFormattedNumberDataC2Ev:
   34|   100k|    UFormattedNumberData() : FormattedValueStringBuilderImpl(kUndefinedField) {}

_ZN6icu_7812NumberFormatC2Ev:
  232|  51.4k|:   fGroupingUsed(true),
  233|  51.4k|    fMaxIntegerDigits(gDefaultMaxIntegerDigits),
  234|  51.4k|    fMinIntegerDigits(1),
  235|  51.4k|    fMaxFractionDigits(3), // invariant, >= minFractionDigits
  236|  51.4k|    fMinFractionDigits(0),
  237|  51.4k|    fParseIntegerOnly(false),
  238|  51.4k|    fLenient(false),
  239|  51.4k|    fCapitalizationContext(UDISPCTX_CAPITALIZATION_NONE)
  240|  51.4k|{
  241|  51.4k|    fCurrency[0] = 0;
  242|  51.4k|}
_ZN6icu_7812NumberFormatD2Ev:
  247|   110k|{
  248|   110k|}
_ZN6icu_7818SharedNumberFormatD2Ev:
  250|  10.7k|SharedNumberFormat::~SharedNumberFormat() {
  251|  10.7k|    delete ptr;
  252|  10.7k|}
_ZN6icu_7812NumberFormatC2ERKS0_:
  258|  59.2k|:   Format(source)
  259|  59.2k|{
  260|  59.2k|    *this = source;
  261|  59.2k|}
_ZN6icu_7812NumberFormataSERKS0_:
  268|  61.1k|{
  269|  61.1k|    if (this != &rhs)
  ------------------
  |  Branch (269:9): [True: 61.1k, False: 0]
  ------------------
  270|  61.1k|    {
  271|  61.1k|        Format::operator=(rhs);
  272|  61.1k|        fGroupingUsed = rhs.fGroupingUsed;
  273|  61.1k|        fMaxIntegerDigits = rhs.fMaxIntegerDigits;
  274|  61.1k|        fMinIntegerDigits = rhs.fMinIntegerDigits;
  275|  61.1k|        fMaxFractionDigits = rhs.fMaxFractionDigits;
  276|  61.1k|        fMinFractionDigits = rhs.fMinFractionDigits;
  277|  61.1k|        fParseIntegerOnly = rhs.fParseIntegerOnly;
  278|  61.1k|        u_strncpy(fCurrency, rhs.fCurrency, 3);
  ------------------
  |  |  398|  61.1k|#define u_strncpy U_ICU_ENTRY_POINT_RENAME(u_strncpy)
  |  |  ------------------
  |  |  |  |  123|  61.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  61.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  61.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  279|  61.1k|        fCurrency[3] = 0;
  280|  61.1k|        fLenient = rhs.fLenient;
  281|  61.1k|        fCapitalizationContext = rhs.fCapitalizationContext;
  282|  61.1k|    }
  283|  61.1k|    return *this;
  284|  61.1k|}
_ZN6icu_7812NumberFormat19setParseIntegerOnlyEa:
  756|  59.2k|{
  757|  59.2k|    fParseIntegerOnly = value;
  758|  59.2k|}
_ZN6icu_7812NumberFormat14createInstanceERKNS_6LocaleER10UErrorCode:
  783|  60.1k|{
  784|  60.1k|    return createInstance(inLocale, UNUM_DECIMAL, status);
  785|  60.1k|}
_ZN6icu_7812NumberFormat22internalCreateInstanceERKNS_6LocaleE18UNumberFormatStyleR10UErrorCode:
 1038|  9.70k|NumberFormat::internalCreateInstance(const Locale& loc, UNumberFormatStyle kind, UErrorCode& status) {
 1039|  9.70k|    if (kind == UNUM_CURRENCY) {
  ------------------
  |  Branch (1039:9): [True: 0, False: 9.70k]
  ------------------
 1040|      0|        char cfKeyValue[kKeyValueLenMax] = {0};
 1041|      0|        UErrorCode kvStatus = U_ZERO_ERROR;
 1042|      0|        int32_t kLen = loc.getKeywordValue("cf", cfKeyValue, kKeyValueLenMax, kvStatus);
 1043|      0|        if (U_SUCCESS(kvStatus) && kLen > 0 && uprv_strcmp(cfKeyValue,"account")==0) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1043:13): [True: 0, False: 0]
  |  Branch (1043:36): [True: 0, False: 0]
  |  Branch (1043:48): [True: 0, False: 0]
  ------------------
 1044|      0|            kind = UNUM_CURRENCY_ACCOUNTING;
 1045|      0|        }
 1046|      0|    }
 1047|  9.70k|#if !UCONFIG_NO_SERVICE
 1048|  9.70k|    if (haveService()) {
  ------------------
  |  Branch (1048:9): [True: 0, False: 9.70k]
  ------------------
 1049|      0|        return (NumberFormat*)gService->get(loc, kind, status);
 1050|      0|    }
 1051|  9.70k|#endif
 1052|  9.70k|    return makeInstance(loc, kind, status);
 1053|  9.70k|}
_ZN6icu_7812NumberFormat14createInstanceERKNS_6LocaleE18UNumberFormatStyleR10UErrorCode:
 1056|  60.1k|NumberFormat::createInstance(const Locale& loc, UNumberFormatStyle kind, UErrorCode& status) {
 1057|  60.1k|    if (kind != UNUM_DECIMAL) {
  ------------------
  |  Branch (1057:9): [True: 0, False: 60.1k]
  ------------------
 1058|      0|        return internalCreateInstance(loc, kind, status);
 1059|      0|    }
 1060|  60.1k|    const SharedNumberFormat *shared = createSharedInstance(loc, kind, status);
 1061|  60.1k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1061:9): [True: 937, False: 59.2k]
  ------------------
 1062|    937|        return nullptr;
 1063|    937|    }
 1064|  59.2k|    NumberFormat *result = (*shared)->clone();
 1065|  59.2k|    shared->removeRef();
 1066|  59.2k|    if (result == nullptr) {
  ------------------
  |  Branch (1066:9): [True: 0, False: 59.2k]
  ------------------
 1067|      0|        status = U_MEMORY_ALLOCATION_ERROR;
 1068|      0|    }
 1069|  59.2k|    return result;
 1070|  60.1k|}
_ZN6icu_7812NumberFormat15setGroupingUsedEa:
 1089|   241k|{
 1090|   241k|    fGroupingUsed = newValue;
 1091|   241k|}
_ZN6icu_7812NumberFormat23setMaximumIntegerDigitsEi:
 1108|   202k|{
 1109|   202k|    fMaxIntegerDigits = uprv_max(0, uprv_min(newValue, gDefaultMaxIntegerDigits));
  ------------------
  |  | 1526|   202k|#define uprv_max U_ICU_ENTRY_POINT_RENAME(uprv_max)
  |  |  ------------------
  |  |  |  |  123|   202k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   202k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   202k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  fMaxIntegerDigits = uprv_max(0, uprv_min(newValue, gDefaultMaxIntegerDigits));
  ------------------
  |  | 1529|   202k|#define uprv_min U_ICU_ENTRY_POINT_RENAME(uprv_min)
  |  |  ------------------
  |  |  |  |  123|   202k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   202k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   202k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1110|   202k|    if(fMinIntegerDigits > fMaxIntegerDigits)
  ------------------
  |  Branch (1110:8): [True: 0, False: 202k]
  ------------------
 1111|      0|        fMinIntegerDigits = fMaxIntegerDigits;
 1112|   202k|}
_ZN6icu_7812NumberFormat23setMinimumIntegerDigitsEi:
 1130|   202k|{
 1131|   202k|    fMinIntegerDigits = uprv_max(0, uprv_min(newValue, gDefaultMinIntegerDigits));
  ------------------
  |  | 1526|   202k|#define uprv_max U_ICU_ENTRY_POINT_RENAME(uprv_max)
  |  |  ------------------
  |  |  |  |  123|   202k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   202k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   202k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  fMinIntegerDigits = uprv_max(0, uprv_min(newValue, gDefaultMinIntegerDigits));
  ------------------
  |  | 1529|   202k|#define uprv_min U_ICU_ENTRY_POINT_RENAME(uprv_min)
  |  |  ------------------
  |  |  |  |  123|   202k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   202k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   202k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1132|   202k|    if(fMinIntegerDigits > fMaxIntegerDigits)
  ------------------
  |  Branch (1132:8): [True: 0, False: 202k]
  ------------------
 1133|      0|        fMaxIntegerDigits = fMinIntegerDigits;
 1134|   202k|}
_ZN6icu_7812NumberFormat24setMaximumFractionDigitsEi:
 1152|   202k|{
 1153|   202k|    fMaxFractionDigits = uprv_max(0, uprv_min(newValue, gDefaultMaxIntegerDigits));
  ------------------
  |  | 1526|   202k|#define uprv_max U_ICU_ENTRY_POINT_RENAME(uprv_max)
  |  |  ------------------
  |  |  |  |  123|   202k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   202k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   202k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  fMaxFractionDigits = uprv_max(0, uprv_min(newValue, gDefaultMaxIntegerDigits));
  ------------------
  |  | 1529|   202k|#define uprv_min U_ICU_ENTRY_POINT_RENAME(uprv_min)
  |  |  ------------------
  |  |  |  |  123|   202k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   202k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   202k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1154|   202k|    if(fMaxFractionDigits < fMinFractionDigits)
  ------------------
  |  Branch (1154:8): [True: 0, False: 202k]
  ------------------
 1155|      0|        fMinFractionDigits = fMaxFractionDigits;
 1156|   202k|}
_ZN6icu_7812NumberFormat24setMinimumFractionDigitsEi:
 1174|   204k|{
 1175|   204k|    fMinFractionDigits = uprv_max(0, uprv_min(newValue, gDefaultMinIntegerDigits));
  ------------------
  |  | 1526|   204k|#define uprv_max U_ICU_ENTRY_POINT_RENAME(uprv_max)
  |  |  ------------------
  |  |  |  |  123|   204k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   204k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   204k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  fMinFractionDigits = uprv_max(0, uprv_min(newValue, gDefaultMinIntegerDigits));
  ------------------
  |  | 1529|   204k|#define uprv_min U_ICU_ENTRY_POINT_RENAME(uprv_min)
  |  |  ------------------
  |  |  |  |  123|   204k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   204k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   204k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1176|   204k|    if (fMaxFractionDigits < fMinFractionDigits)
  ------------------
  |  Branch (1176:9): [True: 0, False: 204k]
  ------------------
 1177|      0|        fMaxFractionDigits = fMinFractionDigits;
 1178|   204k|}
_ZN6icu_7812NumberFormat11setCurrencyEPKDsR10UErrorCode:
 1182|   202k|void NumberFormat::setCurrency(const char16_t* theCurrency, UErrorCode& ec) {
 1183|   202k|    if (U_FAILURE(ec)) {
  ------------------
  |  Branch (1183:9): [True: 0, False: 202k]
  ------------------
 1184|      0|        return;
 1185|      0|    }
 1186|   202k|    if (theCurrency) {
  ------------------
  |  Branch (1186:9): [True: 202k, False: 0]
  ------------------
 1187|   202k|        u_strncpy(fCurrency, theCurrency, 3);
  ------------------
  |  |  398|   202k|#define u_strncpy U_ICU_ENTRY_POINT_RENAME(u_strncpy)
  |  |  ------------------
  |  |  |  |  123|   202k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   202k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   202k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1188|   202k|        fCurrency[3] = 0;
 1189|   202k|    } else {
 1190|      0|        fCurrency[0] = 0;
 1191|      0|    }
 1192|   202k|}
_ZNK6icu_7812NumberFormat10getContextE19UDisplayContextTypeR10UErrorCode:
 1228|    761|{
 1229|    761|    if (U_FAILURE(status))
  ------------------
  |  Branch (1229:9): [True: 0, False: 761]
  ------------------
 1230|      0|        return static_cast<UDisplayContext>(0);
 1231|    761|    if (type != UDISPCTX_TYPE_CAPITALIZATION) {
  ------------------
  |  Branch (1231:9): [True: 0, False: 761]
  ------------------
 1232|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 1233|      0|        return static_cast<UDisplayContext>(0);
 1234|      0|    }
 1235|    761|    return fCapitalizationContext;
 1236|    761|}
_ZNK6icu_7814LocaleCacheKeyINS_18SharedNumberFormatEE12createObjectEPKvR10UErrorCode:
 1261|  9.70k|        const void * /*unused*/, UErrorCode &status) const {
 1262|  9.70k|    const char *localeId = fLoc.getName();
 1263|  9.70k|    NumberFormat *nf = NumberFormat::internalCreateInstance(
 1264|  9.70k|            localeId, UNUM_DECIMAL, status);
 1265|  9.70k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1265:9): [True: 210, False: 9.49k]
  ------------------
 1266|    210|        return nullptr;
 1267|    210|    }
 1268|  9.49k|    SharedNumberFormat *result = new SharedNumberFormat(nf);
 1269|  9.49k|    if (result == nullptr) {
  ------------------
  |  Branch (1269:9): [True: 0, False: 9.49k]
  ------------------
 1270|      0|        status = U_MEMORY_ALLOCATION_ERROR;
 1271|      0|        delete nf;
 1272|      0|        return nullptr;
 1273|      0|    }
 1274|  9.49k|    result->addRef();
 1275|  9.49k|    return result;
 1276|  9.49k|}
_ZN6icu_7812NumberFormat20createSharedInstanceERKNS_6LocaleE18UNumberFormatStyleR10UErrorCode:
 1279|  60.1k|NumberFormat::createSharedInstance(const Locale& loc, UNumberFormatStyle kind, UErrorCode& status) {
 1280|  60.1k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1280:9): [True: 0, False: 60.1k]
  ------------------
 1281|      0|        return nullptr;
 1282|      0|    }
 1283|  60.1k|    if (kind != UNUM_DECIMAL) {
  ------------------
  |  Branch (1283:9): [True: 0, False: 60.1k]
  ------------------
 1284|      0|        status = U_UNSUPPORTED_ERROR;
 1285|      0|        return nullptr;
 1286|      0|    }
 1287|  60.1k|    const SharedNumberFormat *result = nullptr;
 1288|  60.1k|    UnifiedCache::getByLocale(loc, result, status);
 1289|  60.1k|    return result;
 1290|  60.1k|}
_ZN6icu_7812NumberFormat16isStyleSupportedE18UNumberFormatStyle:
 1293|  9.70k|NumberFormat::isStyleSupported(UNumberFormatStyle style) {
 1294|  9.70k|    return gLastResortNumberPatterns[style] != nullptr;
 1295|  9.70k|}
_ZN6icu_7812NumberFormat12makeInstanceERKNS_6LocaleE18UNumberFormatStyleR10UErrorCode:
 1300|  9.70k|                           UErrorCode& status) {
 1301|  9.70k|  return makeInstance(desiredLocale, style, false, status);
 1302|  9.70k|}
_ZN6icu_7812NumberFormat12makeInstanceERKNS_6LocaleE18UNumberFormatStyleaR10UErrorCode:
 1308|  9.70k|                           UErrorCode& status) {
 1309|  9.70k|    if (U_FAILURE(status)) return nullptr;
  ------------------
  |  Branch (1309:9): [True: 0, False: 9.70k]
  ------------------
 1310|       |
 1311|  9.70k|    if (style < 0 || style >= UNUM_FORMAT_STYLE_COUNT) {
  ------------------
  |  Branch (1311:9): [True: 0, False: 9.70k]
  |  Branch (1311:22): [True: 0, False: 9.70k]
  ------------------
 1312|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 1313|      0|        return nullptr;
 1314|      0|    }
 1315|       |    
 1316|       |    // For the purposes of general number formatting, UNUM_NUMBERING_SYSTEM should behave the same
 1317|       |    // was as UNUM_DECIMAL.  In both cases, you get either a DecimalFormat or a RuleBasedNumberFormat
 1318|       |    // depending on the locale's numbering system (either the default one for the locale or a specific
 1319|       |    // one specified by using the "@numbers=" or "-u-nu-" parameter in the locale ID.
 1320|  9.70k|    if (style == UNUM_NUMBERING_SYSTEM) {
  ------------------
  |  Branch (1320:9): [True: 0, False: 9.70k]
  ------------------
 1321|      0|        style = UNUM_DECIMAL;
 1322|      0|    }
 1323|       |
 1324|       |    // Some styles are not supported. This is a result of merging
 1325|       |    // the @draft ICU 4.2 NumberFormat::EStyles into the long-existing UNumberFormatStyle.
 1326|       |    // Ticket #8503 is for reviewing/fixing/merging the two relevant implementations:
 1327|       |    // this one and unum_open().
 1328|       |    // The UNUM_PATTERN_ styles are not supported here
 1329|       |    // because this method does not take a pattern string.
 1330|  9.70k|    if (!isStyleSupported(style)) {
  ------------------
  |  Branch (1330:9): [True: 0, False: 9.70k]
  ------------------
 1331|      0|        status = U_UNSUPPORTED_ERROR;
 1332|      0|        return nullptr;
 1333|      0|    }
 1334|       |
 1335|       |#if U_PLATFORM_USES_ONLY_WIN32_API
 1336|       |    if (!mustBeDecimalFormat) {
 1337|       |        char buffer[8];
 1338|       |        int32_t count = desiredLocale.getKeywordValue("compat", buffer, sizeof(buffer), status);
 1339|       |
 1340|       |        // if the locale has "@compat=host", create a host-specific NumberFormat
 1341|       |        if (U_SUCCESS(status) && count > 0 && uprv_strcmp(buffer, "host") == 0) {
 1342|       |            UBool curr = true;
 1343|       |
 1344|       |            switch (style) {
 1345|       |            case UNUM_DECIMAL:
 1346|       |                curr = false;
 1347|       |                // fall-through
 1348|       |                U_FALLTHROUGH;
 1349|       |
 1350|       |            case UNUM_CURRENCY:
 1351|       |            case UNUM_CURRENCY_ISO: // do not support plural formatting here
 1352|       |            case UNUM_CURRENCY_PLURAL:
 1353|       |            case UNUM_CURRENCY_ACCOUNTING:
 1354|       |            case UNUM_CASH_CURRENCY:
 1355|       |            case UNUM_CURRENCY_STANDARD:
 1356|       |            {
 1357|       |                LocalPointer<Win32NumberFormat> f(new Win32NumberFormat(desiredLocale, curr, status), status);
 1358|       |                if (U_SUCCESS(status)) {
 1359|       |                    return f.orphan();
 1360|       |                }
 1361|       |            }
 1362|       |            break;
 1363|       |            default:
 1364|       |                break;
 1365|       |            }
 1366|       |        }
 1367|       |    }
 1368|       |#endif
 1369|       |    // Use numbering system cache hashtable
 1370|  9.70k|    umtx_initOnce(gNSCacheInitOnce, &nscacheInit);
 1371|       |
 1372|       |    // Get cached numbering system
 1373|  9.70k|    LocalPointer<NumberingSystem> ownedNs;
 1374|  9.70k|    NumberingSystem *ns = nullptr;
 1375|  9.70k|    if (NumberingSystem_cache != nullptr) {
  ------------------
  |  Branch (1375:9): [True: 9.70k, False: 0]
  ------------------
 1376|       |        // TODO: Bad hash key usage, see ticket #8504.
 1377|  9.70k|        int32_t hashKey = desiredLocale.hashCode();
 1378|       |
 1379|  9.70k|        static UMutex nscacheMutex;
 1380|  9.70k|        Mutex lock(&nscacheMutex);
 1381|  9.70k|        ns = static_cast<NumberingSystem*>(uhash_iget(NumberingSystem_cache, hashKey));
  ------------------
  |  | 1019|  9.70k|#define uhash_iget U_ICU_ENTRY_POINT_RENAME(uhash_iget)
  |  |  ------------------
  |  |  |  |  123|  9.70k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.70k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.70k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1382|  9.70k|        if (ns == nullptr) {
  ------------------
  |  Branch (1382:13): [True: 5.88k, False: 3.82k]
  ------------------
 1383|  5.88k|            ns = NumberingSystem::createInstance(desiredLocale,status);
 1384|  5.88k|            uhash_iput(NumberingSystem_cache, hashKey, (void*)ns, &status);
  ------------------
  |  | 1024|  5.88k|#define uhash_iput U_ICU_ENTRY_POINT_RENAME(uhash_iput)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1385|  5.88k|        }
 1386|  9.70k|    } else {
 1387|      0|        ownedNs.adoptInstead(NumberingSystem::createInstance(desiredLocale,status));
 1388|      0|        ns = ownedNs.getAlias();
 1389|      0|    }
 1390|       |
 1391|       |    // check results of getting a numbering system
 1392|  9.70k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1392:9): [True: 176, False: 9.52k]
  ------------------
 1393|    176|        return nullptr;
 1394|    176|    }
 1395|       |
 1396|  9.52k|    if (mustBeDecimalFormat && ns->isAlgorithmic()) {
  ------------------
  |  Branch (1396:9): [True: 0, False: 9.52k]
  |  Branch (1396:32): [True: 0, False: 0]
  ------------------
 1397|      0|        status = U_UNSUPPORTED_ERROR;
 1398|      0|        return nullptr;
 1399|      0|    }
 1400|       |
 1401|  9.52k|    LocalPointer<DecimalFormatSymbols> symbolsToAdopt;
 1402|  9.52k|    UnicodeString pattern;
 1403|  9.52k|    LocalUResourceBundlePointer ownedResource(ures_open(nullptr, desiredLocale.getName(), &status));
  ------------------
  |  | 1691|  9.52k|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|  9.52k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.52k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.52k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1404|  9.52k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1404:9): [True: 0, False: 9.52k]
  ------------------
 1405|      0|        return nullptr;
 1406|      0|    }
 1407|  9.52k|    else {
 1408|       |        // Loads the decimal symbols of the desired locale.
 1409|  9.52k|        symbolsToAdopt.adoptInsteadAndCheckErrorCode(new DecimalFormatSymbols(desiredLocale, status), status);
 1410|  9.52k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (1410:13): [True: 34, False: 9.49k]
  ------------------
 1411|     34|            return nullptr;
 1412|     34|        }
 1413|       |
 1414|       |        // Load the pattern from data using the common library function
 1415|  9.49k|        const char16_t* patternPtr = number::impl::utils::getPatternForStyle(
 1416|  9.49k|                desiredLocale,
 1417|  9.49k|                ns->getName(),
 1418|  9.49k|                gFormatCldrStyles[style],
 1419|  9.49k|                status);
 1420|  9.49k|        pattern = UnicodeString(true, patternPtr, -1);
 1421|  9.49k|    }
 1422|  9.49k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1422:9): [True: 0, False: 9.49k]
  ------------------
 1423|      0|        return nullptr;
 1424|      0|    }
 1425|  9.49k|    if(style==UNUM_CURRENCY || style == UNUM_CURRENCY_ISO || style == UNUM_CURRENCY_ACCOUNTING 
  ------------------
  |  Branch (1425:8): [True: 0, False: 9.49k]
  |  Branch (1425:32): [True: 0, False: 9.49k]
  |  Branch (1425:62): [True: 0, False: 9.49k]
  ------------------
 1426|  9.49k|        || style == UNUM_CASH_CURRENCY || style == UNUM_CURRENCY_STANDARD){
  ------------------
  |  Branch (1426:12): [True: 0, False: 9.49k]
  |  Branch (1426:43): [True: 0, False: 9.49k]
  ------------------
 1427|      0|        const char16_t* currPattern = symbolsToAdopt->getCurrencyPattern();
 1428|      0|        if(currPattern!=nullptr){
  ------------------
  |  Branch (1428:12): [True: 0, False: 0]
  ------------------
 1429|      0|            pattern.setTo(currPattern, u_strlen(currPattern));
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1430|      0|        }
 1431|      0|    }
 1432|       |
 1433|  9.49k|    LocalPointer<NumberFormat> f;
 1434|  9.49k|    if (ns->isAlgorithmic()) {
  ------------------
  |  Branch (1434:9): [True: 264, False: 9.23k]
  ------------------
 1435|    264|        UnicodeString nsDesc;
 1436|    264|        UnicodeString nsRuleSetGroup;
 1437|    264|        UnicodeString nsRuleSetName;
 1438|    264|        Locale nsLoc;
 1439|    264|        URBNFRuleSetTag desiredRulesType = URBNF_NUMBERING_SYSTEM;
 1440|       |
 1441|    264|        nsDesc.setTo(ns->getDescription());
 1442|    264|        int32_t firstSlash = nsDesc.indexOf(gSlash);
 1443|    264|        int32_t lastSlash = nsDesc.lastIndexOf(gSlash);
 1444|    264|        if ( lastSlash > firstSlash ) {
  ------------------
  |  Branch (1444:14): [True: 60, False: 204]
  ------------------
 1445|     60|            CharString nsLocID;
 1446|       |
 1447|     60|            nsLocID.appendInvariantChars(nsDesc.tempSubString(0, firstSlash), status);
 1448|     60|            nsRuleSetGroup.setTo(nsDesc,firstSlash+1,lastSlash-firstSlash-1);
 1449|     60|            nsRuleSetName.setTo(nsDesc,lastSlash+1);
 1450|       |
 1451|     60|            nsLoc = Locale::createFromName(nsLocID.data());
 1452|       |
 1453|     60|            UnicodeString SpelloutRules = UNICODE_STRING_SIMPLE("SpelloutRules");
  ------------------
  |  |  135|     60|#define UNICODE_STRING_SIMPLE(cs) UNICODE_STRING(cs, -1)
  |  |  ------------------
  |  |  |  |  121|     60|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  |  |  ------------------
  ------------------
 1454|     60|            if ( nsRuleSetGroup.compare(SpelloutRules) == 0 ) {
  ------------------
  |  Branch (1454:18): [True: 60, False: 0]
  ------------------
 1455|     60|                desiredRulesType = URBNF_SPELLOUT;
 1456|     60|            }
 1457|    204|        } else {
 1458|    204|            nsLoc = desiredLocale;
 1459|    204|            nsRuleSetName.setTo(nsDesc);
 1460|    204|        }
 1461|       |
 1462|    264|        RuleBasedNumberFormat *r = new RuleBasedNumberFormat(desiredRulesType,nsLoc,status);
 1463|    264|        if (r == nullptr) {
  ------------------
  |  Branch (1463:13): [True: 0, False: 264]
  ------------------
 1464|      0|            status = U_MEMORY_ALLOCATION_ERROR;
 1465|      0|            return nullptr;
 1466|      0|        }
 1467|    264|        r->setDefaultRuleSet(nsRuleSetName,status);
 1468|    264|        f.adoptInstead(r);
 1469|  9.23k|    } else {
 1470|       |        // replace single currency sign in the pattern with double currency sign
 1471|       |        // if the style is UNUM_CURRENCY_ISO
 1472|  9.23k|        if (style == UNUM_CURRENCY_ISO) {
  ------------------
  |  Branch (1472:13): [True: 0, False: 9.23k]
  ------------------
 1473|      0|            pattern.findAndReplace(UnicodeString(true, gSingleCurrencySign, 1),
 1474|      0|                                   UnicodeString(true, gDoubleCurrencySign, 2));
 1475|      0|        }
 1476|       |
 1477|       |        // "new DecimalFormat()" does not adopt the symbols argument if its memory allocation fails.
 1478|       |        // So we can't use adoptInsteadAndCheckErrorCode as we need to know if the 'new' failed.
 1479|  9.23k|        DecimalFormatSymbols *syms = symbolsToAdopt.getAlias();
 1480|  9.23k|        LocalPointer<DecimalFormat> df(new DecimalFormat(pattern, syms, style, status));
 1481|       |
 1482|  9.23k|        if (df.isValid()) {
  ------------------
  |  Branch (1482:13): [True: 9.23k, False: 0]
  ------------------
 1483|       |            // if the DecimalFormat object was successfully new'ed, then it will own symbolsToAdopt, even if the status is a failure.
 1484|  9.23k|            symbolsToAdopt.orphan();
 1485|  9.23k|        }
 1486|      0|        else {
 1487|      0|            status = U_MEMORY_ALLOCATION_ERROR;
 1488|      0|        }
 1489|       |
 1490|  9.23k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (1490:13): [True: 0, False: 9.23k]
  ------------------
 1491|      0|            return nullptr;
 1492|      0|        }
 1493|       |
 1494|       |        // if it is cash currency style, setCurrencyUsage with usage
 1495|  9.23k|        if (style == UNUM_CASH_CURRENCY){
  ------------------
  |  Branch (1495:13): [True: 0, False: 9.23k]
  ------------------
 1496|      0|            df->setCurrencyUsage(UCURR_USAGE_CASH, &status);
 1497|      0|        }
 1498|       |
 1499|  9.23k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (1499:13): [True: 0, False: 9.23k]
  ------------------
 1500|      0|            return nullptr;
 1501|      0|        }
 1502|       |
 1503|  9.23k|        f.adoptInstead(df.orphan());
 1504|  9.23k|    }
 1505|       |
 1506|  9.49k|    f->setLocaleIDs(ures_getLocaleByType(ownedResource.getAlias(), ULOC_VALID_LOCALE, &status),
  ------------------
  |  | 1669|  9.49k|#define ures_getLocaleByType U_ICU_ENTRY_POINT_RENAME(ures_getLocaleByType)
  |  |  ------------------
  |  |  |  |  123|  9.49k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.49k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.49k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1507|  9.49k|                    ures_getLocaleByType(ownedResource.getAlias(), ULOC_ACTUAL_LOCALE, &status));
  ------------------
  |  | 1669|  9.49k|#define ures_getLocaleByType U_ICU_ENTRY_POINT_RENAME(ures_getLocaleByType)
  |  |  ------------------
  |  |  |  |  123|  9.49k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.49k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.49k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1508|  9.49k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1508:9): [True: 0, False: 9.49k]
  ------------------
 1509|      0|        return nullptr;
 1510|      0|    }
 1511|  9.49k|    return f.orphan();
 1512|  9.49k|}
numfmt.cpp:_ZN6icu_78L11haveServiceEv:
  982|  9.70k|static UBool haveService() {
  983|  9.70k|    return !gServiceInitOnce.isReset() && (getNumberFormatService() != nullptr);
  ------------------
  |  Branch (983:12): [True: 0, False: 9.70k]
  |  Branch (983:43): [True: 0, False: 0]
  ------------------
  984|  9.70k|}
numfmt.cpp:_ZN6icu_78L11nscacheInitEv:
 1243|      1|static void U_CALLCONV nscacheInit() {
 1244|      1|    U_ASSERT(NumberingSystem_cache == nullptr);
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
 1245|      1|    ucln_i18n_registerCleanup(UCLN_I18N_NUMFMT, numfmt_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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1246|      1|    UErrorCode status = U_ZERO_ERROR;
 1247|      1|    NumberingSystem_cache = uhash_open(uhash_hashLong,
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  NumberingSystem_cache = uhash_open(uhash_hashLong,
  ------------------
  |  | 1014|      1|#define uhash_hashLong U_ICU_ENTRY_POINT_RENAME(uhash_hashLong)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1248|      1|                                       uhash_compareLong,
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1249|      1|                                       nullptr,
 1250|      1|                                       &status);
 1251|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1251:9): [True: 0, False: 1]
  ------------------
 1252|       |        // Number Format code will run with no cache if creation fails.
 1253|      0|        NumberingSystem_cache = nullptr;
 1254|      0|        return;
 1255|      0|    }
 1256|      1|    uhash_setValueDeleter(NumberingSystem_cache, deleteNumberingSystem);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1257|      1|}

_ZN6icu_7815NumberingSystemC2Ev:
   62|  88.0k|NumberingSystem::NumberingSystem() {
   63|  88.0k|     radix = 10;
   64|  88.0k|     algorithmic = false;
   65|  88.0k|     UnicodeString defaultDigits = DEFAULT_DIGITS;
  ------------------
  |  |   40|  88.0k|#define DEFAULT_DIGITS UNICODE_STRING_SIMPLE("0123456789")
  |  |  ------------------
  |  |  |  |  135|  88.0k|#define UNICODE_STRING_SIMPLE(cs) UNICODE_STRING(cs, -1)
  |  |  |  |  ------------------
  |  |  |  |  |  |  121|  88.0k|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   66|  88.0k|     desc.setTo(defaultDigits);
   67|  88.0k|     uprv_strcpy(name,gLatn);
  ------------------
  |  |   36|  88.0k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  88.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
   68|  88.0k|}
_ZN6icu_7815NumberingSystem14createInstanceEiaRKNS_13UnicodeStringER10UErrorCode:
   81|  88.0k|NumberingSystem::createInstance(int32_t radix_in, UBool isAlgorithmic_in, const UnicodeString & desc_in, UErrorCode &status) {
   82|       |
   83|  88.0k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (83:9): [True: 0, False: 88.0k]
  ------------------
   84|      0|        return nullptr;
   85|      0|    }
   86|       |
   87|  88.0k|    if ( radix_in < 2 ) {
  ------------------
  |  Branch (87:10): [True: 0, False: 88.0k]
  ------------------
   88|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
   89|      0|        return nullptr;
   90|      0|    }
   91|       |
   92|  88.0k|    if ( !isAlgorithmic_in ) {
  ------------------
  |  Branch (92:10): [True: 87.1k, False: 838]
  ------------------
   93|  87.1k|       if ( desc_in.countChar32() != radix_in ) {
  ------------------
  |  Branch (93:13): [True: 0, False: 87.1k]
  ------------------
   94|      0|           status = U_ILLEGAL_ARGUMENT_ERROR;
   95|      0|           return nullptr;
   96|      0|       }
   97|  87.1k|    }
   98|       |
   99|  88.0k|    LocalPointer<NumberingSystem> ns(new NumberingSystem(), status);
  100|  88.0k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (100:9): [True: 0, False: 88.0k]
  ------------------
  101|      0|        return nullptr;
  102|      0|    }
  103|       |
  104|  88.0k|    ns->setRadix(radix_in);
  105|  88.0k|    ns->setDesc(desc_in);
  106|  88.0k|    ns->setAlgorithmic(isAlgorithmic_in);
  107|  88.0k|    ns->setName(nullptr);
  108|       |
  109|  88.0k|    return ns.orphan();
  110|  88.0k|}
_ZN6icu_7815NumberingSystem14createInstanceERKNS_6LocaleER10UErrorCode:
  113|  88.5k|NumberingSystem::createInstance(const Locale & inLocale, UErrorCode& status) {
  114|       |
  115|  88.5k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (115:9): [True: 0, False: 88.5k]
  ------------------
  116|      0|        return nullptr;
  117|      0|    }
  118|       |
  119|  88.5k|    UBool nsResolved = true;
  120|  88.5k|    UBool usingFallback = false;
  121|  88.5k|    char buffer[ULOC_KEYWORDS_CAPACITY] = "";
  122|  88.5k|    int32_t count = inLocale.getKeywordValue("numbers", buffer, sizeof(buffer), status);
  123|  88.5k|    if (U_FAILURE(status) || status == U_STRING_NOT_TERMINATED_WARNING) {
  ------------------
  |  Branch (123:9): [True: 3.48k, False: 85.0k]
  |  Branch (123:30): [True: 12, False: 84.9k]
  ------------------
  124|       |        // the "numbers" keyword exceeds ULOC_KEYWORDS_CAPACITY; ignore and use default.
  125|  3.50k|        count = 0;
  126|  3.50k|        status = U_ZERO_ERROR;
  127|  3.50k|    }
  128|  88.5k|    if ( count > 0 ) { // @numbers keyword was specified in the locale
  ------------------
  |  Branch (128:10): [True: 1.31k, False: 87.1k]
  ------------------
  129|  1.31k|        U_ASSERT(count < ULOC_KEYWORDS_CAPACITY);
  ------------------
  |  |   35|  1.31k|#   define U_ASSERT(exp) (void)0
  ------------------
  130|  1.31k|        buffer[count] = '\0'; // Make sure it is null terminated.
  131|  1.31k|        if ( !uprv_strcmp(buffer,gDefault) || !uprv_strcmp(buffer,gNative) || 
  ------------------
  |  |   38|  1.31k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  1.31k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                      if ( !uprv_strcmp(buffer,gDefault) || !uprv_strcmp(buffer,gNative) || 
  ------------------
  |  |   38|  1.30k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  1.30k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (131:14): [True: 8, False: 1.30k]
  |  Branch (131:47): [True: 11, False: 1.29k]
  ------------------
  132|  1.31k|             !uprv_strcmp(buffer,gTraditional) || !uprv_strcmp(buffer,gFinance)) {
  ------------------
  |  |   38|  1.29k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  1.29k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                           !uprv_strcmp(buffer,gTraditional) || !uprv_strcmp(buffer,gFinance)) {
  ------------------
  |  |   38|  1.28k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  1.28k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (132:14): [True: 17, False: 1.28k]
  |  Branch (132:51): [True: 16, False: 1.26k]
  ------------------
  133|     52|            nsResolved = false;
  134|     52|        }
  135|  87.1k|    } else {
  136|  87.1k|        uprv_strcpy(buffer, gDefault);
  ------------------
  |  |   36|  87.1k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  87.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  137|  87.1k|        nsResolved = false;
  138|  87.1k|    }
  139|       |
  140|  88.5k|    if (!nsResolved) { // Resolve the numbering system ( default, native, traditional or finance ) into a "real" numbering system
  ------------------
  |  Branch (140:9): [True: 87.2k, False: 1.26k]
  ------------------
  141|  87.2k|        UErrorCode localStatus = U_ZERO_ERROR;
  142|  87.2k|        LocalUResourceBundlePointer resource(ures_open(nullptr, inLocale.getName(), &localStatus));
  ------------------
  |  | 1691|  87.2k|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|  87.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  87.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  87.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  143|  87.2k|        LocalUResourceBundlePointer numberElementsRes(ures_getByKey(resource.getAlias(), gNumberElements, nullptr, &localStatus));
  ------------------
  |  | 1661|  87.2k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  87.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  87.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  87.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  144|       |        // Don't stomp on the catastrophic failure of OOM.
  145|  87.2k|        if (localStatus == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (145:13): [True: 0, False: 87.2k]
  ------------------
  146|      0|            status = U_MEMORY_ALLOCATION_ERROR;
  147|      0|            return nullptr;
  148|      0|        }
  149|   174k|        while (!nsResolved) {
  ------------------
  |  Branch (149:16): [True: 87.2k, False: 87.2k]
  ------------------
  150|  87.2k|            localStatus = U_ZERO_ERROR;
  151|  87.2k|            count = 0;
  152|  87.2k|            const char16_t *nsName = ures_getStringByKeyWithFallback(numberElementsRes.getAlias(), buffer, &count, &localStatus);
  ------------------
  |  | 1678|  87.2k|#define ures_getStringByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getStringByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  87.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  87.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  87.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  153|       |            // Don't stomp on the catastrophic failure of OOM.
  154|  87.2k|            if (localStatus == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (154:17): [True: 0, False: 87.2k]
  ------------------
  155|      0|                status = U_MEMORY_ALLOCATION_ERROR;
  156|      0|                return nullptr;
  157|      0|            }
  158|  87.2k|            if ( count > 0 && count < ULOC_KEYWORDS_CAPACITY ) { // numbering system found
  ------------------
  |  |  277|  87.1k|#define ULOC_KEYWORDS_CAPACITY 96
  ------------------
  |  Branch (158:18): [True: 87.1k, False: 88]
  |  Branch (158:31): [True: 87.1k, False: 0]
  ------------------
  159|  87.1k|                u_UCharsToChars(nsName, buffer, count);
  ------------------
  |  |  211|  87.1k|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|  87.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  87.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  87.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  160|  87.1k|                buffer[count] = '\0'; // Make sure it is null terminated.
  161|  87.1k|                nsResolved = true;
  162|  87.1k|            } 
  163|       |
  164|  87.2k|            if (!nsResolved) { // Fallback behavior per TR35 - traditional falls back to native, finance and native fall back to default
  ------------------
  |  Branch (164:17): [True: 88, False: 87.1k]
  ------------------
  165|     88|                if (!uprv_strcmp(buffer,gNative) || !uprv_strcmp(buffer,gFinance)) { 
  ------------------
  |  |   38|     88|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|     88|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                              if (!uprv_strcmp(buffer,gNative) || !uprv_strcmp(buffer,gFinance)) { 
  ------------------
  |  |   38|     88|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|     88|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (165:21): [True: 0, False: 88]
  |  Branch (165:53): [True: 13, False: 75]
  ------------------
  166|     13|                    uprv_strcpy(buffer,gDefault);
  ------------------
  |  |   36|     13|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|     13|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  167|     75|                } else if (!uprv_strcmp(buffer,gTraditional)) {
  ------------------
  |  |   38|     75|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|     75|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (167:28): [True: 8, False: 67]
  ------------------
  168|      8|                    uprv_strcpy(buffer,gNative);
  ------------------
  |  |   36|      8|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      8|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  169|     67|                } else { // If we get here we couldn't find even the default numbering system
  170|     67|                    usingFallback = true;
  171|     67|                    nsResolved = true;
  172|     67|                }
  173|     88|            }
  174|  87.2k|        }
  175|  87.2k|    }
  176|       |
  177|  88.5k|    if (usingFallback) {
  ------------------
  |  Branch (177:9): [True: 67, False: 88.4k]
  ------------------
  178|     67|        status = U_USING_FALLBACK_WARNING;
  179|     67|        NumberingSystem *ns = new NumberingSystem();
  180|     67|        if (ns == nullptr) {
  ------------------
  |  Branch (180:13): [True: 0, False: 67]
  ------------------
  181|      0|            status = U_MEMORY_ALLOCATION_ERROR;
  182|      0|        }
  183|     67|        return ns;
  184|  88.4k|    } else {
  185|  88.4k|        return NumberingSystem::createInstanceByName(buffer, status);
  186|  88.4k|    }
  187|  88.5k| }
_ZN6icu_7815NumberingSystem20createInstanceByNameEPKcR10UErrorCode:
  195|  88.4k|NumberingSystem::createInstanceByName(const char *name, UErrorCode& status) {
  196|  88.4k|    int32_t radix = 10;
  197|  88.4k|    int32_t algorithmic = 0;
  198|       |
  199|  88.4k|    LocalUResourceBundlePointer numberingSystemsInfo(ures_openDirect(nullptr, gNumberingSystems, &status));
  ------------------
  |  | 1693|  88.4k|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|  88.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  88.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  88.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  200|  88.4k|    LocalUResourceBundlePointer nsCurrent(ures_getByKey(numberingSystemsInfo.getAlias(), gNumberingSystems, nullptr, &status));
  ------------------
  |  | 1661|  88.4k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  88.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  88.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  88.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  201|  88.4k|    LocalUResourceBundlePointer nsTop(ures_getByKey(nsCurrent.getAlias(), name, nullptr, &status));
  ------------------
  |  | 1661|  88.4k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  88.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  88.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  88.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  202|       |
  203|  88.4k|    UnicodeString nsd = ures_getUnicodeStringByKey(nsTop.getAlias(), gDesc, &status);
  204|       |
  205|  88.4k|    ures_getByKey(nsTop.getAlias(), gRadix, nsCurrent.getAlias(), &status);
  ------------------
  |  | 1661|  88.4k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  88.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  88.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  88.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  206|  88.4k|    radix = ures_getInt(nsCurrent.getAlias(), &status);
  ------------------
  |  | 1664|  88.4k|#define ures_getInt U_ICU_ENTRY_POINT_RENAME(ures_getInt)
  |  |  ------------------
  |  |  |  |  123|  88.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  88.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  88.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  207|       |
  208|  88.4k|    ures_getByKey(nsTop.getAlias(), gAlgorithmic, nsCurrent.getAlias(), &status);
  ------------------
  |  | 1661|  88.4k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  88.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  88.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  88.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  209|  88.4k|    algorithmic = ures_getInt(nsCurrent.getAlias(), &status);
  ------------------
  |  | 1664|  88.4k|#define ures_getInt U_ICU_ENTRY_POINT_RENAME(ures_getInt)
  |  |  ------------------
  |  |  |  |  123|  88.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  88.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  88.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  210|       |
  211|  88.4k|    UBool isAlgorithmic = ( algorithmic == 1 );
  212|       |
  213|  88.4k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (213:9): [True: 417, False: 88.0k]
  ------------------
  214|       |        // Don't stomp on the catastrophic failure of OOM.
  215|    417|        if (status != U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (215:13): [True: 417, False: 0]
  ------------------
  216|    417|            status = U_UNSUPPORTED_ERROR;
  217|    417|        }
  218|    417|        return nullptr;
  219|    417|    }
  220|       |
  221|  88.0k|    LocalPointer<NumberingSystem> ns(NumberingSystem::createInstance(radix, isAlgorithmic, nsd, status), status);
  222|  88.0k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (222:9): [True: 0, False: 88.0k]
  ------------------
  223|      0|        return nullptr;
  224|      0|    }
  225|  88.0k|    ns->setName(name);
  226|  88.0k|    return ns.orphan();
  227|  88.0k|}
_ZN6icu_7815NumberingSystemD2Ev:
  233|  82.3k|NumberingSystem::~NumberingSystem() {
  234|  82.3k|}
_ZNK6icu_7815NumberingSystem8getRadixEv:
  236|  65.1k|int32_t NumberingSystem::getRadix() const {
  237|  65.1k|    return radix;
  238|  65.1k|}
_ZNK6icu_7815NumberingSystem14getDescriptionEv:
  240|  72.5k|UnicodeString NumberingSystem::getDescription() const {
  241|  72.5k|    return desc;
  242|  72.5k|}
_ZNK6icu_7815NumberingSystem7getNameEv:
  244|  83.6k|const char * NumberingSystem::getName() const {
  245|  83.6k|    return name;
  246|  83.6k|}
_ZN6icu_7815NumberingSystem8setRadixEi:
  248|  88.0k|void NumberingSystem::setRadix(int32_t r) {
  249|  88.0k|    radix = r;
  250|  88.0k|}
_ZN6icu_7815NumberingSystem14setAlgorithmicEa:
  252|  88.0k|void NumberingSystem::setAlgorithmic(UBool c) {
  253|  88.0k|    algorithmic = c;
  254|  88.0k|}
_ZN6icu_7815NumberingSystem7setDescERKNS_13UnicodeStringE:
  256|  88.0k|void NumberingSystem::setDesc(const UnicodeString &d) {
  257|  88.0k|    desc.setTo(d);
  258|  88.0k|}
_ZN6icu_7815NumberingSystem7setNameEPKc:
  259|   176k|void NumberingSystem::setName(const char *n) {
  260|   176k|    if ( n == nullptr ) {
  ------------------
  |  Branch (260:10): [True: 88.0k, False: 88.0k]
  ------------------
  261|  88.0k|        name[0] = static_cast<char>(0);
  262|  88.0k|    } else {
  263|  88.0k|        uprv_strncpy(name,n,kInternalNumSysNameCapacity);
  ------------------
  |  |   43|  88.0k|#define uprv_strncpy(dst, src, size) U_STANDARD_CPP_NAMESPACE strncpy(dst, src, size)
  |  |  ------------------
  |  |  |  |  393|  88.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  264|  88.0k|        name[kInternalNumSysNameCapacity] = '\0'; // Make sure it is null terminated.
  265|  88.0k|    }
  266|   176k|}
_ZNK6icu_7815NumberingSystem13isAlgorithmicEv:
  267|  82.3k|UBool NumberingSystem::isAlgorithmic() const {
  268|  82.3k|    return ( algorithmic );
  269|  82.3k|}

_ZN6icu_7813OlsonTimeZoneC2EPK15UResourceBundleS3_RKNS_13UnicodeStringER10UErrorCode:
  124|    158|  BasicTimeZone(tzid), finalZone(nullptr)
  125|    158|{
  126|    158|    clearTransitionRules();
  127|    158|    U_DEBUG_TZ_MSG(("OlsonTimeZone(%s)\n", ures_getKey((UResourceBundle*)res)));
  128|    158|    if ((top == nullptr || res == nullptr) && U_SUCCESS(ec)) {
  ------------------
  |  Branch (128:10): [True: 0, False: 158]
  |  Branch (128:28): [True: 0, False: 158]
  |  Branch (128:47): [True: 0, False: 0]
  ------------------
  129|      0|        ec = U_ILLEGAL_ARGUMENT_ERROR;
  130|      0|    }
  131|    158|    if (U_SUCCESS(ec)) {
  ------------------
  |  Branch (131:9): [True: 158, False: 0]
  ------------------
  132|       |        // TODO -- clean up -- Doesn't work if res points to an alias
  133|       |        //        // TODO remove nonconst casts below when ures_* API is fixed
  134|       |        //        setID(ures_getKey((UResourceBundle*) res)); // cast away const
  135|       |
  136|    158|        int32_t len;
  137|    158|        StackUResourceBundle r;
  138|       |
  139|       |        // Pre-32bit second transitions
  140|    158|        ures_getByKey(res, kTRANSPRE32, r.getAlias(), &ec);
  ------------------
  |  | 1661|    158|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|    158|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    158|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    158|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      ures_getByKey(res, kTRANSPRE32, r.getAlias(), &ec);
  ------------------
  |  |   71|    158|#define kTRANSPRE32     "transPre32"
  ------------------
  141|    158|        transitionTimesPre32 = ures_getIntVector(r.getAlias(), &len, &ec);
  ------------------
  |  | 1665|    158|#define ures_getIntVector U_ICU_ENTRY_POINT_RENAME(ures_getIntVector)
  |  |  ------------------
  |  |  |  |  123|    158|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    158|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    158|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  142|    158|        transitionCountPre32 = static_cast<int16_t>(len >> 1);
  143|    158|        if (ec == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (143:13): [True: 75, False: 83]
  ------------------
  144|       |            // No pre-32bit transitions
  145|     75|            transitionTimesPre32 = nullptr;
  146|     75|            transitionCountPre32 = 0;
  147|     75|            ec = U_ZERO_ERROR;
  148|     83|        } else if (U_SUCCESS(ec) && (len < 0 || len > 0x7FFF || (len & 1) != 0) /* len must be even */) {
  ------------------
  |  Branch (148:20): [True: 83, False: 0]
  |  Branch (148:38): [True: 0, False: 83]
  |  Branch (148:49): [True: 0, False: 83]
  |  Branch (148:65): [True: 0, False: 83]
  ------------------
  149|      0|            ec = U_INVALID_FORMAT_ERROR;
  150|      0|        }
  151|       |
  152|       |        // 32bit second transitions
  153|    158|        ures_getByKey(res, kTRANS, r.getAlias(), &ec);
  ------------------
  |  | 1661|    158|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|    158|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    158|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    158|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      ures_getByKey(res, kTRANS, r.getAlias(), &ec);
  ------------------
  |  |   70|    158|#define kTRANS          "trans"
  ------------------
  154|    158|        transitionTimes32 = ures_getIntVector(r.getAlias(), &len, &ec);
  ------------------
  |  | 1665|    158|#define ures_getIntVector U_ICU_ENTRY_POINT_RENAME(ures_getIntVector)
  |  |  ------------------
  |  |  |  |  123|    158|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    158|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    158|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  155|    158|        transitionCount32 = static_cast<int16_t>(len);
  156|    158|        if (ec == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (156:13): [True: 58, False: 100]
  ------------------
  157|       |            // No 32bit transitions
  158|     58|            transitionTimes32 = nullptr;
  159|     58|            transitionCount32 = 0;
  160|     58|            ec = U_ZERO_ERROR;
  161|    100|        } else if (U_SUCCESS(ec) && (len < 0 || len > 0x7FFF)) {
  ------------------
  |  Branch (161:20): [True: 100, False: 0]
  |  Branch (161:38): [True: 0, False: 100]
  |  Branch (161:49): [True: 0, False: 100]
  ------------------
  162|      0|            ec = U_INVALID_FORMAT_ERROR;
  163|      0|        }
  164|       |
  165|       |        // Post-32bit second transitions
  166|    158|        ures_getByKey(res, kTRANSPOST32, r.getAlias(), &ec);
  ------------------
  |  | 1661|    158|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|    158|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    158|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    158|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      ures_getByKey(res, kTRANSPOST32, r.getAlias(), &ec);
  ------------------
  |  |   72|    158|#define kTRANSPOST32    "transPost32"
  ------------------
  167|    158|        transitionTimesPost32 = ures_getIntVector(r.getAlias(), &len, &ec);
  ------------------
  |  | 1665|    158|#define ures_getIntVector U_ICU_ENTRY_POINT_RENAME(ures_getIntVector)
  |  |  ------------------
  |  |  |  |  123|    158|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    158|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    158|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  168|    158|        transitionCountPost32 = static_cast<int16_t>(len >> 1);
  169|    158|        if (ec == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (169:13): [True: 158, False: 0]
  ------------------
  170|       |            // No pre-32bit transitions
  171|    158|            transitionTimesPost32 = nullptr;
  172|    158|            transitionCountPost32 = 0;
  173|    158|            ec = U_ZERO_ERROR;
  174|    158|        } else if (U_SUCCESS(ec) && (len < 0 || len > 0x7FFF || (len & 1) != 0) /* len must be even */) {
  ------------------
  |  Branch (174:20): [True: 0, False: 0]
  |  Branch (174:38): [True: 0, False: 0]
  |  Branch (174:49): [True: 0, False: 0]
  |  Branch (174:65): [True: 0, False: 0]
  ------------------
  175|      0|            ec = U_INVALID_FORMAT_ERROR;
  176|      0|        }
  177|       |
  178|       |        // Type offsets list must be of even size, with size >= 2
  179|    158|        ures_getByKey(res, kTYPEOFFSETS, r.getAlias(), &ec);
  ------------------
  |  | 1661|    158|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|    158|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    158|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    158|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      ures_getByKey(res, kTYPEOFFSETS, r.getAlias(), &ec);
  ------------------
  |  |   73|    158|#define kTYPEOFFSETS    "typeOffsets"
  ------------------
  180|    158|        typeOffsets = ures_getIntVector(r.getAlias(), &len, &ec);
  ------------------
  |  | 1665|    158|#define ures_getIntVector U_ICU_ENTRY_POINT_RENAME(ures_getIntVector)
  |  |  ------------------
  |  |  |  |  123|    158|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    158|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    158|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  181|    158|        if (U_SUCCESS(ec) && (len < 2 || len > 0x7FFE || (len & 1) != 0)) {
  ------------------
  |  Branch (181:13): [True: 158, False: 0]
  |  Branch (181:31): [True: 0, False: 158]
  |  Branch (181:42): [True: 0, False: 158]
  |  Branch (181:58): [True: 0, False: 158]
  ------------------
  182|      0|            ec = U_INVALID_FORMAT_ERROR;
  183|      0|        }
  184|    158|        typeCount = static_cast<int16_t>(len) >> 1;
  185|       |
  186|       |        // Type map data must be of the same size as the transition count
  187|    158|        typeMapData =  nullptr;
  188|    158|        if (transitionCount() > 0) {
  ------------------
  |  Branch (188:13): [True: 100, False: 58]
  ------------------
  189|    100|            ures_getByKey(res, kTYPEMAP, r.getAlias(), &ec);
  ------------------
  |  | 1661|    100|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|    100|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    100|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    100|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          ures_getByKey(res, kTYPEMAP, r.getAlias(), &ec);
  ------------------
  |  |   74|    100|#define kTYPEMAP        "typeMap"
  ------------------
  190|    100|            typeMapData = ures_getBinary(r.getAlias(), &len, &ec);
  ------------------
  |  | 1659|    100|#define ures_getBinary U_ICU_ENTRY_POINT_RENAME(ures_getBinary)
  |  |  ------------------
  |  |  |  |  123|    100|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    100|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    100|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  191|    100|            if (ec == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (191:17): [True: 0, False: 100]
  ------------------
  192|       |                // no type mapping data
  193|      0|                ec = U_INVALID_FORMAT_ERROR;
  194|    100|            } else if (U_SUCCESS(ec) && len != transitionCount()) {
  ------------------
  |  Branch (194:24): [True: 100, False: 0]
  |  Branch (194:41): [True: 0, False: 100]
  ------------------
  195|      0|                ec = U_INVALID_FORMAT_ERROR;
  196|      0|            }
  197|    100|        }
  198|       |
  199|       |        // Process final rule and data, if any
  200|    158|        if (U_SUCCESS(ec)) {
  ------------------
  |  Branch (200:13): [True: 158, False: 0]
  ------------------
  201|    158|            const char16_t *ruleIdUStr = ures_getStringByKey(res, kFINALRULE, &len, &ec);
  ------------------
  |  | 1677|    158|#define ures_getStringByKey U_ICU_ENTRY_POINT_RENAME(ures_getStringByKey)
  |  |  ------------------
  |  |  |  |  123|    158|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    158|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    158|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          const char16_t *ruleIdUStr = ures_getStringByKey(res, kFINALRULE, &len, &ec);
  ------------------
  |  |   76|    158|#define kFINALRULE      "finalRule"
  ------------------
  202|    158|            ures_getByKey(res, kFINALRAW, r.getAlias(), &ec);
  ------------------
  |  | 1661|    158|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|    158|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    158|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    158|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          ures_getByKey(res, kFINALRAW, r.getAlias(), &ec);
  ------------------
  |  |   77|    158|#define kFINALRAW       "finalRaw"
  ------------------
  203|    158|            int32_t ruleRaw = ures_getInt(r.getAlias(), &ec);
  ------------------
  |  | 1664|    158|#define ures_getInt U_ICU_ENTRY_POINT_RENAME(ures_getInt)
  |  |  ------------------
  |  |  |  |  123|    158|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    158|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    158|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  204|    158|            ures_getByKey(res, kFINALYEAR, r.getAlias(), &ec);
  ------------------
  |  | 1661|    158|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|    158|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    158|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    158|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          ures_getByKey(res, kFINALYEAR, r.getAlias(), &ec);
  ------------------
  |  |   78|    158|#define kFINALYEAR      "finalYear"
  ------------------
  205|    158|            int32_t ruleYear = ures_getInt(r.getAlias(), &ec);
  ------------------
  |  | 1664|    158|#define ures_getInt U_ICU_ENTRY_POINT_RENAME(ures_getInt)
  |  |  ------------------
  |  |  |  |  123|    158|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    158|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    158|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  206|    158|            if (U_SUCCESS(ec)) {
  ------------------
  |  Branch (206:17): [True: 64, False: 94]
  ------------------
  207|     64|                UnicodeString ruleID(true, ruleIdUStr, len);
  208|     64|                UResourceBundle *rule = TimeZone::loadRule(top, ruleID, nullptr, ec);
  209|     64|                const int32_t *ruleData = ures_getIntVector(rule, &len, &ec); 
  ------------------
  |  | 1665|     64|#define ures_getIntVector U_ICU_ENTRY_POINT_RENAME(ures_getIntVector)
  |  |  ------------------
  |  |  |  |  123|     64|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     64|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     64|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  210|     64|                if (U_SUCCESS(ec) && len == 11) {
  ------------------
  |  Branch (210:21): [True: 64, False: 0]
  |  Branch (210:38): [True: 64, False: 0]
  ------------------
  211|     64|                    UnicodeString emptyStr;
  212|     64|                    finalZone = new SimpleTimeZone(
  213|     64|                        ruleRaw * U_MILLIS_PER_SECOND,
  ------------------
  |  |  221|     64|#define U_MILLIS_PER_SECOND        (1000)
  ------------------
  214|     64|                        emptyStr,
  215|     64|                        static_cast<int8_t>(ruleData[0]), static_cast<int8_t>(ruleData[1]), static_cast<int8_t>(ruleData[2]),
  216|     64|                        ruleData[3] * U_MILLIS_PER_SECOND,
  ------------------
  |  |  221|     64|#define U_MILLIS_PER_SECOND        (1000)
  ------------------
  217|     64|                        static_cast<SimpleTimeZone::TimeMode>(ruleData[4]),
  218|     64|                        static_cast<int8_t>(ruleData[5]), static_cast<int8_t>(ruleData[6]), static_cast<int8_t>(ruleData[7]),
  219|     64|                        ruleData[8] * U_MILLIS_PER_SECOND,
  ------------------
  |  |  221|     64|#define U_MILLIS_PER_SECOND        (1000)
  ------------------
  220|     64|                        static_cast<SimpleTimeZone::TimeMode>(ruleData[9]),
  221|     64|                        ruleData[10] * U_MILLIS_PER_SECOND, ec);
  ------------------
  |  |  221|     64|#define U_MILLIS_PER_SECOND        (1000)
  ------------------
  222|     64|                    if (finalZone == nullptr) {
  ------------------
  |  Branch (222:25): [True: 0, False: 64]
  ------------------
  223|      0|                        ec = U_MEMORY_ALLOCATION_ERROR;
  224|     64|                    } else {
  225|     64|                        finalStartYear = ruleYear;
  226|       |
  227|       |                        // Note: Setting finalStartYear to the finalZone is problematic.  When a date is around
  228|       |                        // year boundary, SimpleTimeZone may return false result when DST is observed at the 
  229|       |                        // beginning of year.  We could apply safe margin (day or two), but when one of recurrent
  230|       |                        // rules falls around year boundary, it could return false result.  Without setting the
  231|       |                        // start year, finalZone works fine around the year boundary of the start year.
  232|       |
  233|       |                        // finalZone->setStartYear(finalStartYear);
  234|       |
  235|       |
  236|       |                        // Compute the millis for Jan 1, 0:00 GMT of the finalYear
  237|       |
  238|       |                        // Note: finalStartMillis is used for detecting either if
  239|       |                        // historic transition data or finalZone to be used.  In an
  240|       |                        // extreme edge case - for example, two transitions fall into
  241|       |                        // small windows of time around the year boundary, this may
  242|       |                        // result incorrect offset computation.  But I think it will
  243|       |                        // never happen practically.  Yoshito - Feb 20, 2010
  244|     64|                        finalStartMillis = Grego::fieldsToDay(finalStartYear, 0, 1) * U_MILLIS_PER_DAY;
  ------------------
  |  |  227|     64|#define U_MILLIS_PER_DAY       (86400000)
  ------------------
  245|     64|                    }
  246|     64|                } else {
  247|      0|                    ec = U_INVALID_FORMAT_ERROR;
  248|      0|                }
  249|     64|                ures_close(rule);
  ------------------
  |  | 1652|     64|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|     64|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     64|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     64|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  250|     94|            } else if (ec == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (250:24): [True: 94, False: 0]
  ------------------
  251|       |                // No final zone
  252|     94|                ec = U_ZERO_ERROR;
  253|     94|            }
  254|    158|        }
  255|       |
  256|       |        // initialize canonical ID
  257|    158|        canonicalID = ZoneMeta::getCanonicalCLDRID(tzid, ec);
  258|    158|    }
  259|       |
  260|    158|    if (U_FAILURE(ec)) {
  ------------------
  |  Branch (260:9): [True: 0, False: 158]
  ------------------
  261|      0|        constructEmpty();
  262|      0|    }
  263|    158|}
_ZN6icu_7813OlsonTimeZoneC2ERKS0_:
  269|   209k|    BasicTimeZone(other), finalZone(nullptr) {
  270|   209k|    *this = other;
  271|   209k|}
_ZN6icu_7813OlsonTimeZoneaSERKS0_:
  276|   209k|OlsonTimeZone& OlsonTimeZone::operator=(const OlsonTimeZone& other) {
  277|   209k|    if (this == &other) { return *this; }  // self-assignment: no-op
  ------------------
  |  Branch (277:9): [True: 0, False: 209k]
  ------------------
  278|   209k|    canonicalID = other.canonicalID;
  279|       |
  280|   209k|    transitionTimesPre32 = other.transitionTimesPre32;
  281|   209k|    transitionTimes32 = other.transitionTimes32;
  282|   209k|    transitionTimesPost32 = other.transitionTimesPost32;
  283|       |
  284|   209k|    transitionCountPre32 = other.transitionCountPre32;
  285|   209k|    transitionCount32 = other.transitionCount32;
  286|   209k|    transitionCountPost32 = other.transitionCountPost32;
  287|       |
  288|   209k|    typeCount = other.typeCount;
  289|   209k|    typeOffsets = other.typeOffsets;
  290|   209k|    typeMapData = other.typeMapData;
  291|       |
  292|   209k|    delete finalZone;
  293|   209k|    finalZone = other.finalZone != nullptr ? other.finalZone->clone() : nullptr;
  ------------------
  |  Branch (293:17): [True: 54, False: 209k]
  ------------------
  294|       |
  295|   209k|    finalStartYear = other.finalStartYear;
  296|   209k|    finalStartMillis = other.finalStartMillis;
  297|       |
  298|   209k|    clearTransitionRules();
  299|       |
  300|   209k|    return *this;
  301|   209k|}
_ZN6icu_7813OlsonTimeZoneD2Ev:
  306|   209k|OlsonTimeZone::~OlsonTimeZone() {
  307|   209k|    deleteTransitionRules();
  308|   209k|    delete finalZone;
  309|   209k|}
_ZNK6icu_7813OlsonTimeZone5cloneEv:
  324|   209k|OlsonTimeZone* OlsonTimeZone::clone() const {
  325|   209k|    return new OlsonTimeZone(*this);
  326|   209k|}
_ZNK6icu_7813OlsonTimeZone9getOffsetEdaRiS1_R10UErrorCode:
  392|  37.4k|                              int32_t& dstoff, UErrorCode& ec) const {
  393|  37.4k|    if (U_FAILURE(ec)) {
  ------------------
  |  Branch (393:9): [True: 0, False: 37.4k]
  ------------------
  394|      0|        return;
  395|      0|    }
  396|  37.4k|    if (finalZone != nullptr && date >= finalStartMillis) {
  ------------------
  |  Branch (396:9): [True: 0, False: 37.4k]
  |  Branch (396:33): [True: 0, False: 0]
  ------------------
  397|      0|        finalZone->getOffset(date, local, rawoff, dstoff, ec);
  398|  37.4k|    } else {
  399|  37.4k|        getHistoricalOffset(date, local, kFormer, kLatter, rawoff, dstoff);
  400|  37.4k|    }
  401|  37.4k|}
_ZNK6icu_7813OlsonTimeZone18getOffsetFromLocalEd20UTimeZoneLocalOptionS1_RiS2_R10UErrorCode:
  405|     12|                                       int32_t& rawoff, int32_t& dstoff, UErrorCode& ec) const {
  406|     12|    if (U_FAILURE(ec)) {
  ------------------
  |  Branch (406:9): [True: 0, False: 12]
  ------------------
  407|      0|        return;
  408|      0|    }
  409|     12|    if (finalZone != nullptr && date >= finalStartMillis) {
  ------------------
  |  Branch (409:9): [True: 0, False: 12]
  |  Branch (409:33): [True: 0, False: 0]
  ------------------
  410|      0|        finalZone->getOffsetFromLocal(date, nonExistingTimeOpt, duplicatedTimeOpt, rawoff, dstoff, ec);
  411|     12|    } else {
  412|     12|        getHistoricalOffset(date, true, nonExistingTimeOpt, duplicatedTimeOpt, rawoff, dstoff);
  413|     12|    }
  414|     12|}
_ZNK6icu_7813OlsonTimeZone12getRawOffsetEv:
  430|      1|int32_t OlsonTimeZone::getRawOffset() const {
  431|      1|    UErrorCode ec = U_ZERO_ERROR;
  432|      1|    int32_t raw, dst;
  433|      1|    getOffset(uprv_getUTCtime(), false, raw, dst, ec);
  ------------------
  |  | 1512|      1|#define uprv_getUTCtime U_ICU_ENTRY_POINT_RENAME(uprv_getUTCtime)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  434|      1|    return raw;
  435|      1|}
_ZNK6icu_7813OlsonTimeZone19getHistoricalOffsetEdaiiRiS1_:
  476|  37.4k|                                   int32_t& rawoff, int32_t& dstoff) const {
  477|  37.4k|    U_DEBUG_TZ_MSG(("getHistoricalOffset(%.1f, %s, %d, %d, raw, dst)\n",
  478|  37.4k|        date, local?"T":"F", NonExistingTimeOpt, DuplicatedTimeOpt));
  479|       |#if defined U_DEBUG_TZ
  480|       |        printTime(date*1000.0);
  481|       |#endif
  482|  37.4k|    int16_t transCount = transitionCount();
  483|       |
  484|  37.4k|    if (transCount > 0) {
  ------------------
  |  Branch (484:9): [True: 0, False: 37.4k]
  ------------------
  485|      0|        double sec = uprv_floor(date / U_MILLIS_PER_SECOND);
  ------------------
  |  | 1499|      0|#define uprv_floor U_ICU_ENTRY_POINT_RENAME(uprv_floor)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      double sec = uprv_floor(date / U_MILLIS_PER_SECOND);
  ------------------
  |  |  221|      0|#define U_MILLIS_PER_SECOND        (1000)
  ------------------
  486|      0|        if (!local && sec < transitionTimeInSeconds(0)) {
  ------------------
  |  Branch (486:13): [True: 0, False: 0]
  |  Branch (486:23): [True: 0, False: 0]
  ------------------
  487|       |            // Before the first transition time
  488|      0|            rawoff = initialRawOffset() * U_MILLIS_PER_SECOND;
  ------------------
  |  |  221|      0|#define U_MILLIS_PER_SECOND        (1000)
  ------------------
  489|      0|            dstoff = initialDstOffset() * U_MILLIS_PER_SECOND;
  ------------------
  |  |  221|      0|#define U_MILLIS_PER_SECOND        (1000)
  ------------------
  490|      0|        } else {
  491|       |            // Linear search from the end is the fastest approach, since
  492|       |            // most lookups will happen at/near the end.
  493|      0|            int16_t transIdx;
  494|      0|            for (transIdx = transCount - 1; transIdx >= 0; transIdx--) {
  ------------------
  |  Branch (494:45): [True: 0, False: 0]
  ------------------
  495|      0|                int64_t transition = transitionTimeInSeconds(transIdx);
  496|       |
  497|      0|                if (local && (sec >= (transition - MAX_OFFSET_SECONDS))) {
  ------------------
  |  |  471|      0|#define MAX_OFFSET_SECONDS 86400
  ------------------
  |  Branch (497:21): [True: 0, False: 0]
  |  Branch (497:30): [True: 0, False: 0]
  ------------------
  498|      0|                    int32_t offsetBefore = zoneOffsetAt(transIdx - 1);
  499|      0|                    UBool dstBefore = dstOffsetAt(transIdx - 1) != 0;
  500|       |
  501|      0|                    int32_t offsetAfter = zoneOffsetAt(transIdx);
  502|      0|                    UBool dstAfter = dstOffsetAt(transIdx) != 0;
  503|       |
  504|      0|                    UBool dstToStd = dstBefore && !dstAfter;
  ------------------
  |  Branch (504:38): [True: 0, False: 0]
  |  Branch (504:51): [True: 0, False: 0]
  ------------------
  505|      0|                    UBool stdToDst = !dstBefore && dstAfter;
  ------------------
  |  Branch (505:38): [True: 0, False: 0]
  |  Branch (505:52): [True: 0, False: 0]
  ------------------
  506|       |                    
  507|      0|                    if (offsetAfter - offsetBefore >= 0) {
  ------------------
  |  Branch (507:25): [True: 0, False: 0]
  ------------------
  508|       |                        // Positive transition, which makes a non-existing local time range
  509|      0|                        if (((NonExistingTimeOpt & kStdDstMask) == kStandard && dstToStd)
  ------------------
  |  Branch (509:30): [True: 0, False: 0]
  |  Branch (509:81): [True: 0, False: 0]
  ------------------
  510|      0|                                || ((NonExistingTimeOpt & kStdDstMask) == kDaylight && stdToDst)) {
  ------------------
  |  Branch (510:37): [True: 0, False: 0]
  |  Branch (510:88): [True: 0, False: 0]
  ------------------
  511|      0|                            transition += offsetBefore;
  512|      0|                        } else if (((NonExistingTimeOpt & kStdDstMask) == kStandard && stdToDst)
  ------------------
  |  Branch (512:37): [True: 0, False: 0]
  |  Branch (512:88): [True: 0, False: 0]
  ------------------
  513|      0|                                || ((NonExistingTimeOpt & kStdDstMask) == kDaylight && dstToStd)) {
  ------------------
  |  Branch (513:37): [True: 0, False: 0]
  |  Branch (513:88): [True: 0, False: 0]
  ------------------
  514|      0|                            transition += offsetAfter;
  515|      0|                        } else if ((NonExistingTimeOpt & kFormerLatterMask) == kLatter) {
  ------------------
  |  Branch (515:36): [True: 0, False: 0]
  ------------------
  516|      0|                            transition += offsetBefore;
  517|      0|                        } else {
  518|       |                            // Interprets the time with rule before the transition,
  519|       |                            // default for non-existing time range
  520|      0|                            transition += offsetAfter;
  521|      0|                        }
  522|      0|                    } else {
  523|       |                        // Negative transition, which makes a duplicated local time range
  524|      0|                        if (((DuplicatedTimeOpt & kStdDstMask) == kStandard && dstToStd)
  ------------------
  |  Branch (524:30): [True: 0, False: 0]
  |  Branch (524:80): [True: 0, False: 0]
  ------------------
  525|      0|                                || ((DuplicatedTimeOpt & kStdDstMask) == kDaylight && stdToDst)) {
  ------------------
  |  Branch (525:37): [True: 0, False: 0]
  |  Branch (525:87): [True: 0, False: 0]
  ------------------
  526|      0|                            transition += offsetAfter;
  527|      0|                        } else if (((DuplicatedTimeOpt & kStdDstMask) == kStandard && stdToDst)
  ------------------
  |  Branch (527:37): [True: 0, False: 0]
  |  Branch (527:87): [True: 0, False: 0]
  ------------------
  528|      0|                                || ((DuplicatedTimeOpt & kStdDstMask) == kDaylight && dstToStd)) {
  ------------------
  |  Branch (528:37): [True: 0, False: 0]
  |  Branch (528:87): [True: 0, False: 0]
  ------------------
  529|      0|                            transition += offsetBefore;
  530|      0|                        } else if ((DuplicatedTimeOpt & kFormerLatterMask) == kFormer) {
  ------------------
  |  Branch (530:36): [True: 0, False: 0]
  ------------------
  531|      0|                            transition += offsetBefore;
  532|      0|                        } else {
  533|       |                            // Interprets the time with rule after the transition,
  534|       |                            // default for duplicated local time range
  535|      0|                            transition += offsetAfter;
  536|      0|                        }
  537|      0|                    }
  538|      0|                }
  539|      0|                if (sec >= transition) {
  ------------------
  |  Branch (539:21): [True: 0, False: 0]
  ------------------
  540|      0|                    break;
  541|      0|                }
  542|      0|            }
  543|       |            // transIdx could be -1 when local=true
  544|      0|            rawoff = rawOffsetAt(transIdx) * U_MILLIS_PER_SECOND;
  ------------------
  |  |  221|      0|#define U_MILLIS_PER_SECOND        (1000)
  ------------------
  545|      0|            dstoff = dstOffsetAt(transIdx) * U_MILLIS_PER_SECOND;
  ------------------
  |  |  221|      0|#define U_MILLIS_PER_SECOND        (1000)
  ------------------
  546|      0|        }
  547|  37.4k|    } else {
  548|       |        // No transitions, single pair of offsets only
  549|  37.4k|        rawoff = initialRawOffset() * U_MILLIS_PER_SECOND;
  ------------------
  |  |  221|  37.4k|#define U_MILLIS_PER_SECOND        (1000)
  ------------------
  550|  37.4k|        dstoff = initialDstOffset() * U_MILLIS_PER_SECOND;
  ------------------
  |  |  221|  37.4k|#define U_MILLIS_PER_SECOND        (1000)
  ------------------
  551|  37.4k|    }
  552|  37.4k|    U_DEBUG_TZ_MSG(("getHistoricalOffset(%.1f, %s, %d, %d, raw, dst) - raw=%d, dst=%d\n",
  553|  37.4k|        date, local?"T":"F", NonExistingTimeOpt, DuplicatedTimeOpt, rawoff, dstoff));
  554|  37.4k|}
_ZNK6icu_7813OlsonTimeZone14inDaylightTimeEdR10UErrorCode:
  604|  4.04k|UBool OlsonTimeZone::inDaylightTime(UDate date, UErrorCode& ec) const {
  605|  4.04k|    int32_t raw, dst;
  606|  4.04k|    getOffset(date, false, raw, dst, ec);
  607|  4.04k|    return dst != 0;
  608|  4.04k|}
_ZN6icu_7813OlsonTimeZone20clearTransitionRulesEv:
  656|   419k|OlsonTimeZone::clearTransitionRules() {
  657|   419k|    initialRule = nullptr;
  658|   419k|    firstTZTransition = nullptr;
  659|   419k|    firstFinalTZTransition = nullptr;
  660|   419k|    historicRules = nullptr;
  661|   419k|    historicRuleCount = 0;
  662|   419k|    finalZoneWithStartYear = nullptr;
  663|   419k|    firstTZTransitionIdx = 0;
  664|   419k|    transitionRulesInitOnce.reset();
  665|   419k|}
_ZN6icu_7813OlsonTimeZone21deleteTransitionRulesEv:
  668|   209k|OlsonTimeZone::deleteTransitionRules() {
  669|   209k|    delete initialRule;
  670|   209k|    delete firstTZTransition;
  671|   209k|    delete firstFinalTZTransition;
  672|   209k|    delete finalZoneWithStartYear;
  673|   209k|    if (historicRules != nullptr) {
  ------------------
  |  Branch (673:9): [True: 0, False: 209k]
  ------------------
  674|      0|        for (int i = 0; i < historicRuleCount; i++) {
  ------------------
  |  Branch (674:25): [True: 0, False: 0]
  ------------------
  675|      0|            if (historicRules[i] != nullptr) {
  ------------------
  |  Branch (675:17): [True: 0, False: 0]
  ------------------
  676|      0|                delete historicRules[i];
  677|      0|            }
  678|      0|        }
  679|      0|        uprv_free(historicRules);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  680|      0|    }
  681|   209k|    clearTransitionRules();
  682|   209k|}

_ZNK6icu_7813OlsonTimeZone15transitionCountEv:
  407|  37.6k|OlsonTimeZone::transitionCount() const {
  408|  37.6k|    return transitionCountPre32 + transitionCount32 + transitionCountPost32;
  409|  37.6k|}
_ZNK6icu_7813OlsonTimeZone16initialRawOffsetEv:
  435|  37.4k|OlsonTimeZone::initialRawOffset() const {
  436|  37.4k|    return typeOffsets[0];
  437|  37.4k|}
_ZNK6icu_7813OlsonTimeZone16initialDstOffsetEv:
  440|  37.4k|OlsonTimeZone::initialDstOffset() const {
  441|  37.4k|    return typeOffsets[1];
  442|  37.4k|}
_ZNK6icu_7813OlsonTimeZone14getCanonicalIDEv:
  445|  7.87k|OlsonTimeZone::getCanonicalID() const {
  446|  7.87k|    return canonicalID;
  447|  7.87k|}

_ZNK6icu_7815PersianCalendar7getTypeEv:
  117|  1.84k|const char *PersianCalendar::getType() const { 
  118|  1.84k|    return "persian";
  119|  1.84k|}
_ZNK6icu_7815PersianCalendar5cloneEv:
  121|  4.62k|PersianCalendar* PersianCalendar::clone() const {
  122|  4.62k|    return new PersianCalendar(*this);
  123|  4.62k|}
_ZN6icu_7815PersianCalendarC2ERKNS_6LocaleER10UErrorCode:
  126|    179|  :   Calendar(TimeZone::forLocaleOrDefault(aLocale), aLocale, success)
  127|    179|{
  128|    179|}
_ZN6icu_7815PersianCalendarC2ERKS0_:
  130|  4.62k|PersianCalendar::PersianCalendar(const PersianCalendar& other) : Calendar(other) {
  131|  4.62k|}
_ZN6icu_7815PersianCalendarD2Ev:
  134|  4.80k|{
  135|  4.80k|}
_ZNK6icu_7815PersianCalendar14handleGetLimitE19UCalendarDateFieldsNS_8Calendar10ELimitTypeE:
  142|      3|int32_t PersianCalendar::handleGetLimit(UCalendarDateFields field, ELimitType limitType) const {
  143|      3|    return kPersianCalendarLimits[field][limitType];
  144|      3|}
_ZN6icu_7815PersianCalendar10isLeapYearEi:
  154|  1.43k|{
  155|  1.43k|    if (year >= gMinCorrection && getLeapCorrection()->contains(year)) {
  ------------------
  |  Branch (155:9): [True: 789, False: 650]
  |  Branch (155:35): [True: 10, False: 779]
  ------------------
  156|     10|        return false;
  157|     10|    }
  158|  1.42k|    if (year > gMinCorrection && getLeapCorrection()->contains(year-1)) {
  ------------------
  |  Branch (158:9): [True: 779, False: 650]
  |  Branch (158:34): [True: 17, False: 762]
  ------------------
  159|     17|        return true;
  160|     17|    }
  161|  1.41k|    int64_t y = static_cast<int64_t>(year) * 25LL + 11LL;
  162|  1.41k|    bool res = (y % 33L < 8);
  163|  1.41k|    return res;
  164|  1.42k|}
_ZNK6icu_7815PersianCalendar20handleGetMonthLengthEiiR10UErrorCode:
  195|      1|int32_t PersianCalendar::handleGetMonthLength(int32_t extendedYear, int32_t month, UErrorCode& /*status*/) const {
  196|       |    // If the month is out of range, adjust it into range, and
  197|       |    // modify the extended year value accordingly.
  198|      1|    if (month < 0 || month > 11) {
  ------------------
  |  Branch (198:9): [True: 0, False: 1]
  |  Branch (198:22): [True: 0, False: 1]
  ------------------
  199|      0|        extendedYear += ClockMath::floorDivide(month, 12, &month);
  200|      0|    }
  201|       |
  202|      1|    return isLeapYear(extendedYear) ? kPersianLeapMonthLength[month] : kPersianMonthLength[month];
  ------------------
  |  Branch (202:12): [True: 0, False: 1]
  ------------------
  203|      1|}
_ZNK6icu_7815PersianCalendar19handleGetYearLengthEiR10UErrorCode:
  208|  1.43k|int32_t PersianCalendar::handleGetYearLength(int32_t extendedYear, UErrorCode& status) const {
  209|  1.43k|    if (U_FAILURE(status)) return 0;
  ------------------
  |  Branch (209:9): [True: 0, False: 1.43k]
  ------------------
  210|  1.43k|    return isLeapYear(extendedYear) ? 366 : 365;
  ------------------
  |  Branch (210:12): [True: 291, False: 1.14k]
  ------------------
  211|  1.43k|}
_ZNK6icu_7815PersianCalendar23handleComputeMonthStartEiiaR10UErrorCode:
  227|      2|int64_t PersianCalendar::handleComputeMonthStart(int32_t eyear, int32_t month, UBool /*useMonth*/, UErrorCode& status) const {
  228|      2|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (228:9): [True: 0, False: 2]
  ------------------
  229|      0|        return 0;
  230|      0|    }
  231|       |    // If the month is out of range, adjust it into range, and
  232|       |    // modify the extended year value accordingly.
  233|      2|    if (month < 0 || month > 11) {
  ------------------
  |  Branch (233:9): [True: 0, False: 2]
  |  Branch (233:22): [True: 0, False: 2]
  ------------------
  234|      0|        if (uprv_add32_overflow(eyear, ClockMath::floorDivide(month, 12, &month), &eyear)) {
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (234:13): [True: 0, False: 0]
  ------------------
  235|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  236|      0|            return 0;
  237|      0|        }
  238|      0|    }
  239|       |
  240|      2|    int64_t julianDay = PERSIAN_EPOCH - 1LL + firstJulianOfYear(eyear);
  241|       |
  242|      2|    if (month != 0) {
  ------------------
  |  Branch (242:9): [True: 2, False: 0]
  ------------------
  243|      2|        julianDay += kPersianNumDays[month];
  244|      2|    }
  245|       |
  246|      2|    return julianDay;
  247|      2|}
_ZN6icu_7815PersianCalendar21handleGetExtendedYearER10UErrorCode:
  253|      2|int32_t PersianCalendar::handleGetExtendedYear(UErrorCode& status) {
  254|      2|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (254:9): [True: 0, False: 2]
  ------------------
  255|      0|        return 0;
  256|      0|    }
  257|      2|    if (newerField(UCAL_EXTENDED_YEAR, UCAL_YEAR) == UCAL_EXTENDED_YEAR) {
  ------------------
  |  Branch (257:9): [True: 0, False: 2]
  ------------------
  258|      0|        return internalGet(UCAL_EXTENDED_YEAR, 1); // Default to year 1
  259|      0|    }
  260|      2|    return internalGet(UCAL_YEAR, 1); // Default to year 1
  261|      2|}
_ZN6icu_7815PersianCalendar19handleComputeFieldsEiR10UErrorCode:
  277|  1.43k|void PersianCalendar::handleComputeFields(int32_t julianDay, UErrorCode& status) {
  278|  1.43k|    int64_t daysSinceEpoch = julianDay;
  279|  1.43k|    daysSinceEpoch -= PERSIAN_EPOCH;
  280|       |
  281|  1.43k|    int64_t year = ClockMath::floorDivideInt64(
  282|  1.43k|        33LL * daysSinceEpoch + 3LL, 12053LL) + 1LL;
  283|  1.43k|    if (year > INT32_MAX || year < INT32_MIN) {
  ------------------
  |  Branch (283:9): [True: 0, False: 1.43k]
  |  Branch (283:29): [True: 0, False: 1.43k]
  ------------------
  284|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  285|      0|        return;
  286|      0|    }
  287|       |
  288|  1.43k|    int64_t farvardin1 = firstJulianOfYear(year);
  289|       |
  290|  1.43k|    int32_t dayOfYear = daysSinceEpoch - farvardin1; // 0-based
  291|  1.43k|    U_ASSERT(dayOfYear >= 0);
  ------------------
  |  |   35|  1.43k|#   define U_ASSERT(exp) (void)0
  ------------------
  292|  1.43k|    U_ASSERT(dayOfYear < 366);
  ------------------
  |  |   35|  1.43k|#   define U_ASSERT(exp) (void)0
  ------------------
  293|       |
  294|  1.43k|    if (dayOfYear == 365 && year >= gMinCorrection && getLeapCorrection()->contains(year)) {
  ------------------
  |  Branch (294:9): [True: 52, False: 1.38k]
  |  Branch (294:29): [True: 26, False: 26]
  |  Branch (294:55): [True: 6, False: 20]
  ------------------
  295|      6|        year++;
  296|      6|        dayOfYear = 0;
  297|      6|    }
  298|  1.43k|    int32_t month;
  299|  1.43k|    if (dayOfYear < 216) { // Compute 0-based month
  ------------------
  |  Branch (299:9): [True: 416, False: 1.02k]
  ------------------
  300|    416|        month = dayOfYear / 31;
  301|  1.02k|    } else {
  302|  1.02k|        month = (dayOfYear - 6) / 30;
  303|  1.02k|    }
  304|  1.43k|    U_ASSERT(month >= 0);
  ------------------
  |  |   35|  1.43k|#   define U_ASSERT(exp) (void)0
  ------------------
  305|  1.43k|    U_ASSERT(month < 12);
  ------------------
  |  |   35|  1.43k|#   define U_ASSERT(exp) (void)0
  ------------------
  306|       |
  307|  1.43k|    ++dayOfYear; // Make it 1-based now
  308|  1.43k|    int32_t dayOfMonth = dayOfYear - kPersianNumDays[month];
  309|  1.43k|    U_ASSERT(dayOfMonth > 0);
  ------------------
  |  |   35|  1.43k|#   define U_ASSERT(exp) (void)0
  ------------------
  310|  1.43k|    U_ASSERT(dayOfMonth <= 31);
  ------------------
  |  |   35|  1.43k|#   define U_ASSERT(exp) (void)0
  ------------------
  311|       |
  312|       |
  313|  1.43k|    internalSet(UCAL_ERA, 0);
  314|  1.43k|    internalSet(UCAL_YEAR, year);
  315|  1.43k|    internalSet(UCAL_EXTENDED_YEAR, year);
  316|  1.43k|    internalSet(UCAL_MONTH, month);
  317|  1.43k|    internalSet(UCAL_ORDINAL_MONTH, month);
  318|  1.43k|    internalSet(UCAL_DAY_OF_MONTH, dayOfMonth);
  319|  1.43k|    internalSet(UCAL_DAY_OF_YEAR, dayOfYear);
  320|  1.43k|}    
persncal.cpp:_ZN12_GLOBAL__N_117getLeapCorrectionEv:
  102|  2.38k|const icu::UnicodeSet* getLeapCorrection() {
  103|  2.38k|    umtx_initOnce(gCorrectionInitOnce, &initLeapCorrection);
  104|  2.38k|    return gLeapCorrection;
  105|  2.38k|}
persncal.cpp:_ZN12_GLOBAL__N_118initLeapCorrectionEv:
   86|      1|static void U_CALLCONV initLeapCorrection() {
   87|      1|    static int16_t nonLeapYears[] = {
   88|      1|       1502, 1601, 1634, 1667, 1700, 1733, 1766, 1799, 1832, 1865, 1898, 1931, 1964, 1997, 2030, 2059,
   89|      1|       2063, 2096, 2129, 2158, 2162, 2191, 2195, 2224, 2228, 2257, 2261, 2290, 2294, 2323, 2327, 2356,
   90|      1|       2360, 2389, 2393, 2422, 2426, 2455, 2459, 2488, 2492, 2521, 2525, 2554, 2558, 2587, 2591, 2620,
   91|      1|       2624, 2653, 2657, 2686, 2690, 2719, 2723, 2748, 2752, 2756, 2781, 2785, 2789, 2818, 2822, 2847,
   92|      1|       2851, 2855, 2880, 2884, 2888, 2913, 2917, 2921, 2946, 2950, 2954, 2979, 2983, 2987,
   93|      1|    };
   94|      1|    gMinCorrection = nonLeapYears[0];
   95|      1|    icu::UnicodeSet prefab;
   96|     78|    for (auto year : nonLeapYears) {
  ------------------
  |  Branch (96:20): [True: 78, False: 1]
  ------------------
   97|     78|        prefab.add(year);
   98|     78|    }
   99|      1|    gLeapCorrection = prefab.cloneAsThawed()->freeze();
  100|      1|    ucln_i18n_registerCleanup(UCLN_I18N_PERSIAN_CALENDAR, calendar_persian_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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  101|      1|}
persncal.cpp:_ZN6icu_78L17firstJulianOfYearEl:
  217|  1.44k|static int64_t firstJulianOfYear(int64_t year) {
  218|  1.44k|    int64_t julianDay = 365LL * (year - 1LL) + ClockMath::floorDivide(8LL * year + 21, 33);
  219|  1.44k|    if (year > gMinCorrection && getLeapCorrection()->contains(year-1)) {
  ------------------
  |  Branch (219:9): [True: 789, False: 651]
  |  Branch (219:34): [True: 11, False: 778]
  ------------------
  220|     11|        julianDay--;
  221|     11|    }
  222|  1.44k|    return julianDay;
  223|  1.44k|}

_ZN6icu_7821RuleBasedNumberFormatC2ENS_15URBNFRuleSetTagERKNS_6LocaleER10UErrorCode:
  810|    264|  : fRuleSets(nullptr)
  811|    264|  , ruleSetDescriptions(nullptr)
  812|    264|  , numRuleSets(0)
  813|    264|  , defaultRuleSet(nullptr)
  814|    264|  , locale(alocale)
  815|    264|  , collator(nullptr)
  816|    264|  , decimalFormatSymbols(nullptr)
  817|    264|  , defaultInfinityRule(nullptr)
  818|    264|  , defaultNaNRule(nullptr)
  819|    264|  , fRoundingMode(DecimalFormat::ERoundingMode::kRoundUnnecessary)
  820|    264|  , lenient(false)
  821|    264|  , lenientParseRules(nullptr)
  822|    264|  , localizations(nullptr)
  823|    264|  , capitalizationInfoSet(false)
  824|    264|  , capitalizationForUIListMenu(false)
  825|    264|  , capitalizationForStandAlone(false)
  826|    264|  , capitalizationBrkIter(nullptr)
  827|    264|{
  828|    264|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (828:9): [True: 0, False: 264]
  ------------------
  829|      0|        return;
  830|      0|    }
  831|       |
  832|    264|    const char* rules_tag = "RBNFRules";
  833|    264|    const char* fmt_tag = "";
  834|    264|    switch (tag) {
  835|     60|    case URBNF_SPELLOUT: fmt_tag = "SpelloutRules"; break;
  ------------------
  |  Branch (835:5): [True: 60, False: 204]
  ------------------
  836|      0|    case URBNF_ORDINAL: fmt_tag = "OrdinalRules"; break;
  ------------------
  |  Branch (836:5): [True: 0, False: 264]
  ------------------
  837|      0|    case URBNF_DURATION: fmt_tag = "DurationRules"; break;
  ------------------
  |  Branch (837:5): [True: 0, False: 264]
  ------------------
  838|    204|    case URBNF_NUMBERING_SYSTEM: fmt_tag = "NumberingSystemRules"; break;
  ------------------
  |  Branch (838:5): [True: 204, False: 60]
  ------------------
  839|      0|    default: status = U_ILLEGAL_ARGUMENT_ERROR; return;
  ------------------
  |  Branch (839:5): [True: 0, False: 264]
  ------------------
  840|    264|    }
  841|       |
  842|       |    // TODO: read localization info from resource
  843|    264|    LocalizationInfo* locinfo = nullptr;
  844|       |
  845|    264|    UResourceBundle* nfrb = ures_open(U_ICUDATA_RBNF, locale.getName(), &status);
  ------------------
  |  | 1691|    264|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|    264|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    264|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    264|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  UResourceBundle* nfrb = ures_open(U_ICUDATA_RBNF, locale.getName(), &status);
  ------------------
  |  |   46|    264|#define U_ICUDATA_RBNF U_ICUDATA_NAME U_TREE_SEPARATOR_STRING "rbnf"
  |  |  ------------------
  |  |  |  |  154|    264|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  ------------------
  846|    264|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (846:9): [True: 264, False: 0]
  ------------------
  847|    264|        setLocaleIDs(ures_getLocaleByType(nfrb, ULOC_VALID_LOCALE, &status),
  ------------------
  |  | 1669|    264|#define ures_getLocaleByType U_ICU_ENTRY_POINT_RENAME(ures_getLocaleByType)
  |  |  ------------------
  |  |  |  |  123|    264|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    264|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    264|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  848|    264|                     ures_getLocaleByType(nfrb, ULOC_ACTUAL_LOCALE, &status));
  ------------------
  |  | 1669|    264|#define ures_getLocaleByType U_ICU_ENTRY_POINT_RENAME(ures_getLocaleByType)
  |  |  ------------------
  |  |  |  |  123|    264|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    264|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    264|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  849|       |
  850|    264|        UResourceBundle* rbnfRules = ures_getByKeyWithFallback(nfrb, rules_tag, nullptr, &status);
  ------------------
  |  | 1662|    264|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|    264|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    264|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    264|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  851|    264|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (851:13): [True: 0, False: 264]
  ------------------
  852|      0|            ures_close(nfrb);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  853|      0|        }
  854|    264|        UResourceBundle* ruleSets = ures_getByKeyWithFallback(rbnfRules, fmt_tag, nullptr, &status);
  ------------------
  |  | 1662|    264|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|    264|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    264|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    264|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  855|    264|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (855:13): [True: 0, False: 264]
  ------------------
  856|      0|            ures_close(rbnfRules);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  857|      0|            ures_close(nfrb);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  858|      0|            return;
  859|      0|        }
  860|       |
  861|    264|        UnicodeString desc;
  862|   145k|        while (ures_hasNext(ruleSets)) {
  ------------------
  |  | 1689|   145k|#define ures_hasNext U_ICU_ENTRY_POINT_RENAME(ures_hasNext)
  |  |  ------------------
  |  |  |  |  123|   145k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   145k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   145k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (862:16): [True: 144k, False: 264]
  ------------------
  863|   144k|           desc.append(ures_getNextUnicodeString(ruleSets,nullptr,&status));
  864|   144k|        }
  865|    264|        UParseError perror;
  866|       |
  867|    264|        init(desc, locinfo, perror, status);
  868|       |
  869|    264|        ures_close(ruleSets);
  ------------------
  |  | 1652|    264|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|    264|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    264|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    264|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  870|    264|        ures_close(rbnfRules);
  ------------------
  |  | 1652|    264|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|    264|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    264|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    264|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  871|    264|    }
  872|    264|    ures_close(nfrb);
  ------------------
  |  | 1652|    264|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|    264|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    264|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    264|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  873|    264|}
_ZN6icu_7821RuleBasedNumberFormatC2ERKS0_:
  876|  1.91k|  : NumberFormat(rhs)
  877|  1.91k|  , fRuleSets(nullptr)
  878|  1.91k|  , ruleSetDescriptions(nullptr)
  879|  1.91k|  , numRuleSets(0)
  880|  1.91k|  , defaultRuleSet(nullptr)
  881|  1.91k|  , locale(rhs.locale)
  882|  1.91k|  , collator(nullptr)
  883|  1.91k|  , decimalFormatSymbols(nullptr)
  884|  1.91k|  , defaultInfinityRule(nullptr)
  885|  1.91k|  , defaultNaNRule(nullptr)
  886|  1.91k|  , fRoundingMode(DecimalFormat::ERoundingMode::kRoundUnnecessary)
  887|  1.91k|  , lenient(false)
  888|  1.91k|  , lenientParseRules(nullptr)
  889|  1.91k|  , localizations(nullptr)
  890|  1.91k|  , capitalizationInfoSet(false)
  891|  1.91k|  , capitalizationForUIListMenu(false)
  892|  1.91k|  , capitalizationForStandAlone(false)
  893|  1.91k|  , capitalizationBrkIter(nullptr)
  894|  1.91k|{
  895|  1.91k|    this->operator=(rhs);
  896|  1.91k|}
_ZN6icu_7821RuleBasedNumberFormataSERKS0_:
  902|  1.91k|{
  903|  1.91k|    if (this == &rhs) {
  ------------------
  |  Branch (903:9): [True: 0, False: 1.91k]
  ------------------
  904|      0|        return *this;
  905|      0|    }
  906|  1.91k|    NumberFormat::operator=(rhs);
  907|  1.91k|    UErrorCode status = U_ZERO_ERROR;
  908|  1.91k|    dispose();
  909|  1.91k|    locale = rhs.locale;
  910|  1.91k|    lenient = rhs.lenient;
  911|       |
  912|  1.91k|    UParseError perror;
  913|  1.91k|    setDecimalFormatSymbols(*rhs.getDecimalFormatSymbols());
  914|  1.91k|    init(rhs.originalDescription, rhs.localizations ? rhs.localizations->ref() : nullptr, perror, status);
  ------------------
  |  Branch (914:35): [True: 0, False: 1.91k]
  ------------------
  915|  1.91k|    setDefaultRuleSet(rhs.getDefaultRuleSetName(), status);
  916|  1.91k|    setRoundingMode(rhs.getRoundingMode());
  917|       |
  918|  1.91k|    capitalizationInfoSet = rhs.capitalizationInfoSet;
  919|  1.91k|    capitalizationForUIListMenu = rhs.capitalizationForUIListMenu;
  920|  1.91k|    capitalizationForStandAlone = rhs.capitalizationForStandAlone;
  921|  1.91k|#if !UCONFIG_NO_BREAK_ITERATION
  922|  1.91k|    capitalizationBrkIter = (rhs.capitalizationBrkIter!=nullptr)? rhs.capitalizationBrkIter->clone(): nullptr;
  ------------------
  |  Branch (922:29): [True: 0, False: 1.91k]
  ------------------
  923|  1.91k|#endif
  924|       |
  925|  1.91k|    return *this;
  926|  1.91k|}
_ZN6icu_7821RuleBasedNumberFormatD2Ev:
  929|  2.17k|{
  930|  2.17k|    dispose();
  931|  2.17k|}
_ZNK6icu_7821RuleBasedNumberFormat5cloneEv:
  935|  1.91k|{
  936|  1.91k|    return new RuleBasedNumberFormat(*this);
  937|  1.91k|}
_ZNK6icu_7821RuleBasedNumberFormat11findRuleSetERKNS_13UnicodeStringER10UErrorCode:
 1106|   209k|{
 1107|   209k|    if (U_SUCCESS(status) && fRuleSets) {
  ------------------
  |  Branch (1107:9): [True: 209k, False: 0]
  |  Branch (1107:30): [True: 209k, False: 0]
  ------------------
 1108|  2.82M|        for (NFRuleSet** p = fRuleSets; *p; ++p) {
  ------------------
  |  Branch (1108:41): [True: 2.82M, False: 0]
  ------------------
 1109|  2.82M|            NFRuleSet* rs = *p;
 1110|  2.82M|            if (rs->isNamed(name)) {
  ------------------
  |  Branch (1110:17): [True: 209k, False: 2.61M]
  ------------------
 1111|   209k|                return rs;
 1112|   209k|            }
 1113|  2.82M|        }
 1114|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 1115|      0|    }
 1116|      0|    return nullptr;
 1117|   209k|}
_ZNK6icu_7821RuleBasedNumberFormat6formatEiRNS_13UnicodeStringERNS_13FieldPositionE:
 1161|    761|{
 1162|    761|    return format(static_cast<int64_t>(number), toAppendTo, pos);
 1163|    761|}
_ZNK6icu_7821RuleBasedNumberFormat6formatElRNS_13UnicodeStringERNS_13FieldPositionE:
 1170|    761|{
 1171|    761|    if (defaultRuleSet) {
  ------------------
  |  Branch (1171:9): [True: 761, False: 0]
  ------------------
 1172|    761|        UErrorCode status = U_ZERO_ERROR;
 1173|    761|        format(number, defaultRuleSet, toAppendTo, status);
 1174|    761|    }
 1175|    761|    return toAppendTo;
 1176|    761|}
_ZNK6icu_7821RuleBasedNumberFormat6formatElPNS_9NFRuleSetERNS_13UnicodeStringER10UErrorCode:
 1276|    761|{
 1277|       |    // all API format() routines that take a double vector through
 1278|       |    // here.  We have these two identical functions-- one taking a
 1279|       |    // double and one taking a long-- the couple digits of precision
 1280|       |    // that long has but double doesn't (both types are 8 bytes long,
 1281|       |    // but double has to borrow some of the mantissa bits to hold
 1282|       |    // the exponent).
 1283|       |    // Create an empty string buffer where the result will
 1284|       |    // be built, and pass it to the rule set (along with an insertion
 1285|       |    // position of 0 and the number being formatted) to the rule set
 1286|       |    // for formatting
 1287|       |
 1288|    761|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1288:9): [True: 761, False: 0]
  ------------------
 1289|    761|        if (number == U_INT64_MIN) {
  ------------------
  |  |  245|    761|#     define U_INT64_MIN       ((int64_t)(INT64_C(-9223372036854775807)-1))
  ------------------
  |  Branch (1289:13): [True: 0, False: 761]
  ------------------
 1290|       |            // We can't handle this value right now. Provide an accurate default value.
 1291|       |
 1292|       |            // TODO this section should probably be optimized. The DecimalFormat is shared in ICU4J.
 1293|      0|            NumberFormat *decimalFormat = NumberFormat::createInstance(locale, UNUM_DECIMAL, status);
 1294|      0|            if (decimalFormat == nullptr) {
  ------------------
  |  Branch (1294:17): [True: 0, False: 0]
  ------------------
 1295|      0|                return toAppendTo;
 1296|      0|            }
 1297|      0|            Formattable f;
 1298|      0|            FieldPosition pos(FieldPosition::DONT_CARE);
 1299|      0|            DecimalQuantity *decimalQuantity = new DecimalQuantity();
 1300|      0|            if (decimalQuantity == nullptr) {
  ------------------
  |  Branch (1300:17): [True: 0, False: 0]
  ------------------
 1301|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 1302|      0|                delete decimalFormat;
 1303|      0|                return toAppendTo;
 1304|      0|            }
 1305|      0|            decimalQuantity->setToLong(number);
 1306|      0|            f.adoptDecimalQuantity(decimalQuantity); // f now owns decimalQuantity.
 1307|      0|            decimalFormat->format(f, toAppendTo, pos, status);
 1308|      0|            delete decimalFormat;
 1309|      0|        }
 1310|    761|        else {
 1311|    761|            int32_t startPos = toAppendTo.length();
 1312|    761|            ruleSet->format(number, toAppendTo, toAppendTo.length(), 0, status);
 1313|    761|            adjustForCapitalizationContext(startPos, toAppendTo, status);
 1314|    761|        }
 1315|    761|    }
 1316|    761|    return toAppendTo;
 1317|    761|}
_ZNK6icu_7821RuleBasedNumberFormat30adjustForCapitalizationContextEiRNS_13UnicodeStringER10UErrorCode:
 1323|    761|{
 1324|    761|#if !UCONFIG_NO_BREAK_ITERATION
 1325|    761|    UDisplayContext capitalizationContext = getContext(UDISPCTX_TYPE_CAPITALIZATION, status);
 1326|    761|    if (capitalizationContext != UDISPCTX_CAPITALIZATION_NONE && startPos == 0 && currentResult.length() > 0) {
  ------------------
  |  Branch (1326:9): [True: 0, False: 761]
  |  Branch (1326:66): [True: 0, False: 0]
  |  Branch (1326:83): [True: 0, False: 0]
  ------------------
 1327|       |        // capitalize currentResult according to context
 1328|      0|        UChar32 ch = currentResult.char32At(0);
 1329|      0|        if (u_islower(ch) && U_SUCCESS(status) && capitalizationBrkIter != nullptr &&
  ------------------
  |  |  318|      0|#define u_islower U_ICU_ENTRY_POINT_RENAME(u_islower)
  |  |  ------------------
  |  |  |  |  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 (1329:13): [True: 0, False: 0]
  |  Branch (1329:30): [True: 0, False: 0]
  |  Branch (1329:51): [True: 0, False: 0]
  ------------------
 1330|      0|              ( capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE ||
  ------------------
  |  Branch (1330:17): [True: 0, False: 0]
  ------------------
 1331|      0|                (capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU && capitalizationForUIListMenu) ||
  ------------------
  |  Branch (1331:18): [True: 0, False: 0]
  |  Branch (1331:90): [True: 0, False: 0]
  ------------------
 1332|      0|                (capitalizationContext == UDISPCTX_CAPITALIZATION_FOR_STANDALONE && capitalizationForStandAlone)) ) {
  ------------------
  |  Branch (1332:18): [True: 0, False: 0]
  |  Branch (1332:85): [True: 0, False: 0]
  ------------------
 1333|       |            // titlecase first word of currentResult, here use sentence iterator unlike current implementations
 1334|       |            // in LocaleDisplayNamesImpl::adjustForUsageAndContext and RelativeDateFormat::format
 1335|      0|            currentResult.toTitle(capitalizationBrkIter, locale, U_TITLECASE_NO_LOWERCASE | U_TITLECASE_NO_BREAK_ADJUSTMENT);
  ------------------
  |  |   85|      0|#define U_TITLECASE_NO_LOWERCASE 0x100
  ------------------
                          currentResult.toTitle(capitalizationBrkIter, locale, U_TITLECASE_NO_LOWERCASE | U_TITLECASE_NO_BREAK_ADJUSTMENT);
  ------------------
  |  |  109|      0|#define U_TITLECASE_NO_BREAK_ADJUSTMENT 0x200
  ------------------
 1336|      0|        }
 1337|      0|    }
 1338|    761|#endif
 1339|    761|    return currentResult;
 1340|    761|}
_ZN6icu_7821RuleBasedNumberFormat17setDefaultRuleSetERKNS_13UnicodeStringER10UErrorCode:
 1412|  2.17k|RuleBasedNumberFormat::setDefaultRuleSet(const UnicodeString& ruleSetName, UErrorCode& status) {
 1413|  2.17k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1413:9): [True: 2.17k, False: 0]
  ------------------
 1414|  2.17k|        if (ruleSetName.isEmpty()) {
  ------------------
  |  Branch (1414:13): [True: 0, False: 2.17k]
  ------------------
 1415|      0|          if (localizations) {
  ------------------
  |  Branch (1415:15): [True: 0, False: 0]
  ------------------
 1416|      0|              UnicodeString name(true, localizations->getRuleSetName(0), -1);
 1417|      0|              defaultRuleSet = findRuleSet(name, status);
 1418|      0|          } else {
 1419|      0|            initDefaultRuleSet();
 1420|      0|          }
 1421|  2.17k|        } else if (ruleSetName.startsWith(UNICODE_STRING_SIMPLE("%%"))) {
  ------------------
  |  |  135|  2.17k|#define UNICODE_STRING_SIMPLE(cs) UNICODE_STRING(cs, -1)
  |  |  ------------------
  |  |  |  |  121|  2.17k|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  |  |  ------------------
  ------------------
  |  Branch (1421:20): [True: 0, False: 2.17k]
  ------------------
 1422|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
 1423|  2.17k|        } else {
 1424|  2.17k|            NFRuleSet* result = findRuleSet(ruleSetName, status);
 1425|  2.17k|            if (result != nullptr) {
  ------------------
  |  Branch (1425:17): [True: 2.17k, False: 0]
  ------------------
 1426|  2.17k|                defaultRuleSet = result;
 1427|  2.17k|            }
 1428|  2.17k|        }
 1429|  2.17k|    }
 1430|  2.17k|}
_ZNK6icu_7821RuleBasedNumberFormat21getDefaultRuleSetNameEv:
 1433|  1.91k|RuleBasedNumberFormat::getDefaultRuleSetName() const {
 1434|  1.91k|    UnicodeString result;
 1435|  1.91k|    if (defaultRuleSet && defaultRuleSet->isPublic()) {
  ------------------
  |  Branch (1435:9): [True: 1.91k, False: 0]
  |  Branch (1435:27): [True: 1.91k, False: 0]
  ------------------
 1436|  1.91k|        defaultRuleSet->getName(result);
 1437|  1.91k|    } else {
 1438|      0|        result.setToBogus();
 1439|      0|    }
 1440|  1.91k|    return result;
 1441|  1.91k|}
_ZN6icu_7821RuleBasedNumberFormat18initDefaultRuleSetEv:
 1445|  2.17k|{
 1446|  2.17k|    defaultRuleSet = nullptr;
 1447|  2.17k|    if (!fRuleSets) {
  ------------------
  |  Branch (1447:9): [True: 0, False: 2.17k]
  ------------------
 1448|      0|        return;
 1449|      0|    }
 1450|       |
 1451|  2.17k|    const UnicodeString spellout(UNICODE_STRING_SIMPLE("%spellout-numbering"));
  ------------------
  |  |  135|  2.17k|#define UNICODE_STRING_SIMPLE(cs) UNICODE_STRING(cs, -1)
  |  |  ------------------
  |  |  |  |  121|  2.17k|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  |  |  ------------------
  ------------------
 1452|  2.17k|    const UnicodeString ordinal(UNICODE_STRING_SIMPLE("%digits-ordinal"));
  ------------------
  |  |  135|  2.17k|#define UNICODE_STRING_SIMPLE(cs) UNICODE_STRING(cs, -1)
  |  |  ------------------
  |  |  |  |  121|  2.17k|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  |  |  ------------------
  ------------------
 1453|  2.17k|    const UnicodeString duration(UNICODE_STRING_SIMPLE("%duration"));
  ------------------
  |  |  135|  2.17k|#define UNICODE_STRING_SIMPLE(cs) UNICODE_STRING(cs, -1)
  |  |  ------------------
  |  |  |  |  121|  2.17k|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  |  |  ------------------
  ------------------
 1454|       |
 1455|  2.17k|    NFRuleSet**p = &fRuleSets[0];
 1456|  49.1k|    while (*p) {
  ------------------
  |  Branch (1456:12): [True: 47.4k, False: 1.68k]
  ------------------
 1457|  47.4k|        if ((*p)->isNamed(spellout) || (*p)->isNamed(ordinal) || (*p)->isNamed(duration)) {
  ------------------
  |  Branch (1457:13): [True: 488, False: 46.9k]
  |  Branch (1457:40): [True: 0, False: 46.9k]
  |  Branch (1457:66): [True: 0, False: 46.9k]
  ------------------
 1458|    488|            defaultRuleSet = *p;
 1459|    488|            return;
 1460|  46.9k|        } else {
 1461|  46.9k|            ++p;
 1462|  46.9k|        }
 1463|  47.4k|    }
 1464|       |
 1465|  1.68k|    defaultRuleSet = *--p;
 1466|  1.68k|    if (!defaultRuleSet->isPublic()) {
  ------------------
  |  Branch (1466:9): [True: 0, False: 1.68k]
  ------------------
 1467|      0|        while (p != fRuleSets) {
  ------------------
  |  Branch (1467:16): [True: 0, False: 0]
  ------------------
 1468|      0|            if ((*--p)->isPublic()) {
  ------------------
  |  Branch (1468:17): [True: 0, False: 0]
  ------------------
 1469|      0|                defaultRuleSet = *p;
 1470|      0|                break;
 1471|      0|            }
 1472|      0|        }
 1473|      0|    }
 1474|  1.68k|}
_ZN6icu_7821RuleBasedNumberFormat4initERKNS_13UnicodeStringEPNS_16LocalizationInfoER11UParseErrorR10UErrorCode:
 1480|  2.17k|{
 1481|       |    // TODO: implement UParseError
 1482|  2.17k|    uprv_memset(&pErr, 0, sizeof(UParseError));
  ------------------
  |  |  100|  2.17k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  2.17k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1483|       |    // Note: this can leave ruleSets == nullptr, so remaining code should check
 1484|  2.17k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1484:9): [True: 0, False: 2.17k]
  ------------------
 1485|      0|        return;
 1486|      0|    }
 1487|       |
 1488|  2.17k|    initializeDecimalFormatSymbols(status);
 1489|  2.17k|    initializeDefaultInfinityRule(status);
 1490|  2.17k|    initializeDefaultNaNRule(status);
 1491|  2.17k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1491:9): [True: 0, False: 2.17k]
  ------------------
 1492|      0|        return;
 1493|      0|    }
 1494|       |
 1495|  2.17k|    this->localizations = localizationInfos == nullptr ? nullptr : localizationInfos->ref();
  ------------------
  |  Branch (1495:27): [True: 2.17k, False: 0]
  ------------------
 1496|       |
 1497|  2.17k|    UnicodeString description(rules);
 1498|  2.17k|    if (!description.length()) {
  ------------------
  |  Branch (1498:9): [True: 0, False: 2.17k]
  ------------------
 1499|      0|        status = U_MEMORY_ALLOCATION_ERROR;
 1500|      0|        return;
 1501|      0|    }
 1502|       |
 1503|       |    // start by stripping the trailing whitespace from all the rules
 1504|       |    // (this is all the whitespace following each semicolon in the
 1505|       |    // description).  This allows us to look for rule-set boundaries
 1506|       |    // by searching for ";%" without having to worry about whitespace
 1507|       |    // between the ; and the %
 1508|  2.17k|    stripWhitespace(description);
 1509|       |
 1510|       |    // check to see if there's a set of lenient-parse rules.  If there
 1511|       |    // is, pull them out into our temporary holding place for them,
 1512|       |    // and delete them from the description before the real desciption-
 1513|       |    // parsing code sees them
 1514|  2.17k|    int32_t lp = description.indexOf(gLenientParse, -1, 0);
 1515|  2.17k|    if (lp != -1) {
  ------------------
  |  Branch (1515:9): [True: 0, False: 2.17k]
  ------------------
 1516|       |        // we've got to make sure we're not in the middle of a rule
 1517|       |        // (where "%%lenient-parse" would actually get treated as
 1518|       |        // rule text)
 1519|      0|        if (lp == 0 || description.charAt(lp - 1) == gSemiColon) {
  ------------------
  |  Branch (1519:13): [True: 0, False: 0]
  |  Branch (1519:24): [True: 0, False: 0]
  ------------------
 1520|       |            // locate the beginning and end of the actual collation
 1521|       |            // rules (there may be whitespace between the name and
 1522|       |            // the first token in the description)
 1523|      0|            int lpEnd = description.indexOf(gSemiPercent, 2, lp);
 1524|       |
 1525|      0|            if (lpEnd == -1) {
  ------------------
  |  Branch (1525:17): [True: 0, False: 0]
  ------------------
 1526|      0|                lpEnd = description.length() - 1;
 1527|      0|            }
 1528|      0|            int lpStart = lp + u_strlen(gLenientParse);
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1529|      0|            while (PatternProps::isWhiteSpace(description.charAt(lpStart))) {
  ------------------
  |  Branch (1529:20): [True: 0, False: 0]
  ------------------
 1530|      0|                ++lpStart;
 1531|      0|            }
 1532|       |
 1533|       |            // copy out the lenient-parse rules and delete them
 1534|       |            // from the description
 1535|      0|            lenientParseRules = new UnicodeString();
 1536|       |            /* test for nullptr */
 1537|      0|            if (lenientParseRules == nullptr) {
  ------------------
  |  Branch (1537:17): [True: 0, False: 0]
  ------------------
 1538|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 1539|      0|                return;
 1540|      0|            }
 1541|      0|            lenientParseRules->setTo(description, lpStart, lpEnd - lpStart);
 1542|       |
 1543|      0|            description.remove(lp, lpEnd + 1 - lp);
 1544|      0|        }
 1545|      0|    }
 1546|       |
 1547|       |    // pre-flight parsing the description and count the number of
 1548|       |    // rule sets (";%" marks the end of one rule set and the beginning
 1549|       |    // of the next)
 1550|  2.17k|    numRuleSets = 0;
 1551|  57.1k|    for (int32_t p = description.indexOf(gSemiPercent, 2, 0); p != -1; p = description.indexOf(gSemiPercent, 2, p)) {
  ------------------
  |  Branch (1551:63): [True: 54.9k, False: 2.17k]
  ------------------
 1552|  54.9k|        ++numRuleSets;
 1553|  54.9k|        ++p;
 1554|  54.9k|    }
 1555|  2.17k|    ++numRuleSets;
 1556|       |
 1557|       |    // our rule list is an array of the appropriate size
 1558|  2.17k|    fRuleSets = static_cast<NFRuleSet**>(uprv_malloc((numRuleSets + 1) * sizeof(NFRuleSet*)));
  ------------------
  |  | 1524|  2.17k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  2.17k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.17k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.17k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1559|       |    /* test for nullptr */
 1560|  2.17k|    if (fRuleSets == nullptr) {
  ------------------
  |  Branch (1560:9): [True: 0, False: 2.17k]
  ------------------
 1561|      0|        status = U_MEMORY_ALLOCATION_ERROR;
 1562|      0|        return;
 1563|      0|    }
 1564|       |
 1565|  61.4k|    for (int i = 0; i <= numRuleSets; ++i) {
  ------------------
  |  Branch (1565:21): [True: 59.3k, False: 2.17k]
  ------------------
 1566|  59.3k|        fRuleSets[i] = nullptr;
 1567|  59.3k|    }
 1568|       |
 1569|       |    // divide up the descriptions into individual rule-set descriptions
 1570|       |    // and store them in a temporary array.  At each step, we also
 1571|       |    // create a rule set, but all this does is initialize its name
 1572|       |    // and remove it from its description.  We can't actually parse
 1573|       |    // the rest of the descriptions and finish initializing everything
 1574|       |    // because we have to know the names and locations of all the rule
 1575|       |    // sets before we can actually set everything up
 1576|  2.17k|    if (!numRuleSets) {
  ------------------
  |  Branch (1576:9): [True: 0, False: 2.17k]
  ------------------
 1577|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 1578|      0|        return;
 1579|      0|    }
 1580|       |
 1581|  2.17k|    ruleSetDescriptions = new UnicodeString[numRuleSets];
 1582|  2.17k|    if (ruleSetDescriptions == nullptr) {
  ------------------
  |  Branch (1582:9): [True: 0, False: 2.17k]
  ------------------
 1583|      0|        status = U_MEMORY_ALLOCATION_ERROR;
 1584|      0|        return;
 1585|      0|    }
 1586|       |
 1587|  2.17k|    {
 1588|  2.17k|        int curRuleSet = 0;
 1589|  2.17k|        int32_t start = 0;
 1590|  57.1k|        for (int32_t p = description.indexOf(gSemiPercent, 2, 0); p != -1; p = description.indexOf(gSemiPercent, 2, start)) {
  ------------------
  |  Branch (1590:67): [True: 54.9k, False: 2.17k]
  ------------------
 1591|  54.9k|            ruleSetDescriptions[curRuleSet].setTo(description, start, p + 1 - start);
 1592|  54.9k|            fRuleSets[curRuleSet] = new NFRuleSet(this, ruleSetDescriptions, curRuleSet, status);
 1593|  54.9k|            if (fRuleSets[curRuleSet] == nullptr) {
  ------------------
  |  Branch (1593:17): [True: 0, False: 54.9k]
  ------------------
 1594|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 1595|      0|                return;
 1596|      0|            }
 1597|  54.9k|            ++curRuleSet;
 1598|  54.9k|            start = p + 1;
 1599|  54.9k|        }
 1600|  2.17k|        ruleSetDescriptions[curRuleSet].setTo(description, start, description.length() - start);
 1601|  2.17k|        fRuleSets[curRuleSet] = new NFRuleSet(this, ruleSetDescriptions, curRuleSet, status);
 1602|  2.17k|        if (fRuleSets[curRuleSet] == nullptr) {
  ------------------
  |  Branch (1602:13): [True: 0, False: 2.17k]
  ------------------
 1603|      0|            status = U_MEMORY_ALLOCATION_ERROR;
 1604|      0|            return;
 1605|      0|        }
 1606|  2.17k|    }
 1607|       |
 1608|       |    // now we can take note of the formatter's default rule set, which
 1609|       |    // is the last public rule set in the description (it's the last
 1610|       |    // rather than the first so that a user can create a new formatter
 1611|       |    // from an existing formatter and change its default behavior just
 1612|       |    // by appending more rule sets to the end)
 1613|       |
 1614|       |    // {dlf} Initialization of a fraction rule set requires the default rule
 1615|       |    // set to be known.  For purposes of initialization, this is always the 
 1616|       |    // last public rule set, no matter what the localization data says.
 1617|  2.17k|    initDefaultRuleSet();
 1618|       |
 1619|       |    // Now that we know all the rule names, we can go back through
 1620|       |    // the temporary descriptions list and finish setting up the substructure
 1621|       |    // (and we throw away the temporary descriptions as we go)
 1622|  2.17k|    {
 1623|  59.3k|        for (int i = 0; i < numRuleSets; i++) {
  ------------------
  |  Branch (1623:25): [True: 57.1k, False: 2.17k]
  ------------------
 1624|  57.1k|            fRuleSets[i]->parseRules(ruleSetDescriptions[i], status);
 1625|  57.1k|        }
 1626|  2.17k|    }
 1627|       |
 1628|       |    // Now that the rules are initialized, the 'real' default rule
 1629|       |    // set can be adjusted by the localization data.
 1630|       |
 1631|       |    // The C code keeps the localization array as is, rather than building
 1632|       |    // a separate array of the public rule set names, so we have less work
 1633|       |    // to do here-- but we still need to check the names.
 1634|       |    
 1635|  2.17k|    if (localizationInfos) {
  ------------------
  |  Branch (1635:9): [True: 0, False: 2.17k]
  ------------------
 1636|       |        // confirm the names, if any aren't in the rules, that's an error
 1637|       |        // it is ok if the rules contain public rule sets that are not in this list
 1638|      0|        for (int32_t i = 0; i < localizationInfos->getNumberOfRuleSets(); ++i) {
  ------------------
  |  Branch (1638:29): [True: 0, False: 0]
  ------------------
 1639|      0|            UnicodeString name(true, localizationInfos->getRuleSetName(i), -1);
 1640|      0|            NFRuleSet* rs = findRuleSet(name, status);
 1641|      0|            if (rs == nullptr) {
  ------------------
  |  Branch (1641:17): [True: 0, False: 0]
  ------------------
 1642|      0|                break; // error
 1643|      0|            }
 1644|      0|            if (i == 0) {
  ------------------
  |  Branch (1644:17): [True: 0, False: 0]
  ------------------
 1645|      0|                defaultRuleSet = rs;
 1646|      0|            }
 1647|      0|        }
 1648|  2.17k|    } else {
 1649|  2.17k|        defaultRuleSet = getDefaultRuleSet();
 1650|  2.17k|    }
 1651|  2.17k|    originalDescription = rules;
 1652|  2.17k|}
_ZN6icu_7821RuleBasedNumberFormat15stripWhitespaceERNS_13UnicodeStringE:
 1704|  2.17k|{
 1705|       |    // iterate through the characters...
 1706|  2.17k|    UnicodeString result;
 1707|       |
 1708|  2.17k|    int start = 0;
 1709|  2.17k|    UChar ch;
 1710|  1.13M|    while (start < description.length()) {
  ------------------
  |  Branch (1710:12): [True: 1.13M, False: 2.17k]
  ------------------
 1711|       |        // Seek to the first non-whitespace character...
 1712|       |        // If the first non-whitespace character is semicolon, skip it and continue
 1713|  1.13M|        while (start < description.length()
  ------------------
  |  Branch (1713:16): [True: 1.13M, False: 0]
  ------------------
 1714|  1.13M|            && (PatternProps::isWhiteSpace(ch = description.charAt(start)) || ch == gSemiColon))
  ------------------
  |  Branch (1714:17): [True: 0, False: 1.13M]
  |  Branch (1714:79): [True: 0, False: 1.13M]
  ------------------
 1715|      0|        {
 1716|      0|            ++start;
 1717|      0|        }
 1718|       |
 1719|       |        // locate the next semicolon in the text and copy the text from
 1720|       |        // our current position up to that semicolon into the result
 1721|  1.13M|        int32_t p = description.indexOf(gSemiColon, start);
 1722|  1.13M|        if (p == -1) {
  ------------------
  |  Branch (1722:13): [True: 0, False: 1.13M]
  ------------------
 1723|       |            // or if we don't find a semicolon, just copy the rest of
 1724|       |            // the string into the result
 1725|      0|            result.append(description, start, description.length() - start);
 1726|      0|            break;
 1727|      0|        }
 1728|  1.13M|        else if (p < description.length()) {
  ------------------
  |  Branch (1728:18): [True: 1.13M, False: 0]
  ------------------
 1729|  1.13M|            result.append(description, start, p + 1 - start);
 1730|  1.13M|            start = p + 1;
 1731|  1.13M|        }
 1732|       |        // when we get here from the else, we've seeked off the end of the string, and
 1733|       |        // we terminate the loop (we continue until *start* is -1 rather
 1734|       |        // than until *p* is -1, because otherwise we'd miss the last
 1735|       |        // rule in the description)
 1736|  1.13M|    }
 1737|       |
 1738|  2.17k|    description.setTo(result);
 1739|  2.17k|}
_ZN6icu_7821RuleBasedNumberFormat7disposeEv:
 1744|  4.08k|{
 1745|  4.08k|    if (fRuleSets) {
  ------------------
  |  Branch (1745:9): [True: 2.17k, False: 1.91k]
  ------------------
 1746|  59.2k|        for (NFRuleSet** p = fRuleSets; *p; ++p) {
  ------------------
  |  Branch (1746:41): [True: 57.0k, False: 2.17k]
  ------------------
 1747|  57.0k|            delete *p;
 1748|  57.0k|        }
 1749|  2.17k|        uprv_free(fRuleSets);
  ------------------
  |  | 1503|  2.17k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  2.17k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.17k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.17k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1750|  2.17k|        fRuleSets = nullptr;
 1751|  2.17k|    }
 1752|       |
 1753|  4.08k|    if (ruleSetDescriptions) {
  ------------------
  |  Branch (1753:9): [True: 2.17k, False: 1.91k]
  ------------------
 1754|  2.17k|        delete [] ruleSetDescriptions;
 1755|  2.17k|        ruleSetDescriptions = nullptr;
 1756|  2.17k|    }
 1757|       |
 1758|  4.08k|#if !UCONFIG_NO_COLLATION
 1759|  4.08k|    delete collator;
 1760|  4.08k|#endif
 1761|  4.08k|    collator = nullptr;
 1762|       |
 1763|  4.08k|    delete decimalFormatSymbols;
 1764|  4.08k|    decimalFormatSymbols = nullptr;
 1765|       |
 1766|  4.08k|    delete defaultInfinityRule;
 1767|  4.08k|    defaultInfinityRule = nullptr;
 1768|       |
 1769|  4.08k|    delete defaultNaNRule;
 1770|  4.08k|    defaultNaNRule = nullptr;
 1771|       |
 1772|  4.08k|    delete lenientParseRules;
 1773|  4.08k|    lenientParseRules = nullptr;
 1774|       |
 1775|  4.08k|#if !UCONFIG_NO_BREAK_ITERATION
 1776|  4.08k|    delete capitalizationBrkIter;
 1777|  4.08k|    capitalizationBrkIter = nullptr;
 1778|  4.08k|#endif
 1779|       |
 1780|  4.08k|    if (localizations) {
  ------------------
  |  Branch (1780:9): [True: 0, False: 4.08k]
  ------------------
 1781|      0|        localizations = localizations->unref();
 1782|      0|    }
 1783|  4.08k|}
_ZN6icu_7821RuleBasedNumberFormat30initializeDecimalFormatSymbolsER10UErrorCode:
 1848|  2.17k|{
 1849|       |    // lazy-evaluate the DecimalFormatSymbols object.  This object
 1850|       |    // is shared by all DecimalFormat instances belonging to this
 1851|       |    // formatter
 1852|  2.17k|    if (decimalFormatSymbols == nullptr) {
  ------------------
  |  Branch (1852:9): [True: 264, False: 1.91k]
  ------------------
 1853|    264|        LocalPointer<DecimalFormatSymbols> temp(new DecimalFormatSymbols(locale, status), status);
 1854|    264|        if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1854:13): [True: 264, False: 0]
  ------------------
 1855|    264|            decimalFormatSymbols = temp.orphan();
 1856|    264|        }
 1857|    264|    }
 1858|  2.17k|    return decimalFormatSymbols;
 1859|  2.17k|}
_ZNK6icu_7821RuleBasedNumberFormat23getDecimalFormatSymbolsEv:
 1867|  48.2k|{
 1868|  48.2k|    return decimalFormatSymbols;
 1869|  48.2k|}
_ZN6icu_7821RuleBasedNumberFormat29initializeDefaultInfinityRuleER10UErrorCode:
 1873|  4.08k|{
 1874|  4.08k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1874:9): [True: 0, False: 4.08k]
  ------------------
 1875|      0|        return nullptr;
 1876|      0|    }
 1877|  4.08k|    if (defaultInfinityRule == nullptr) {
  ------------------
  |  Branch (1877:9): [True: 2.17k, False: 1.91k]
  ------------------
 1878|  2.17k|        UnicodeString rule(UNICODE_STRING_SIMPLE("Inf: "));
  ------------------
  |  |  135|  2.17k|#define UNICODE_STRING_SIMPLE(cs) UNICODE_STRING(cs, -1)
  |  |  ------------------
  |  |  |  |  121|  2.17k|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  |  |  ------------------
  ------------------
 1879|  2.17k|        rule.append(getDecimalFormatSymbols()->getSymbol(DecimalFormatSymbols::kInfinitySymbol));
 1880|  2.17k|        LocalPointer<NFRule> temp(new NFRule(this, rule, status), status);
 1881|  2.17k|        if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1881:13): [True: 2.17k, False: 0]
  ------------------
 1882|  2.17k|            defaultInfinityRule = temp.orphan();
 1883|  2.17k|        }
 1884|  2.17k|    }
 1885|  4.08k|    return defaultInfinityRule;
 1886|  4.08k|}
_ZN6icu_7821RuleBasedNumberFormat24initializeDefaultNaNRuleER10UErrorCode:
 1896|  4.08k|{
 1897|  4.08k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1897:9): [True: 0, False: 4.08k]
  ------------------
 1898|      0|        return nullptr;
 1899|      0|    }
 1900|  4.08k|    if (defaultNaNRule == nullptr) {
  ------------------
  |  Branch (1900:9): [True: 2.17k, False: 1.91k]
  ------------------
 1901|  2.17k|        UnicodeString rule(UNICODE_STRING_SIMPLE("NaN: "));
  ------------------
  |  |  135|  2.17k|#define UNICODE_STRING_SIMPLE(cs) UNICODE_STRING(cs, -1)
  |  |  ------------------
  |  |  |  |  121|  2.17k|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  |  |  ------------------
  ------------------
 1902|  2.17k|        rule.append(getDecimalFormatSymbols()->getSymbol(DecimalFormatSymbols::kNaNSymbol));
 1903|  2.17k|        LocalPointer<NFRule> temp(new NFRule(this, rule, status), status);
 1904|  2.17k|        if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1904:13): [True: 2.17k, False: 0]
  ------------------
 1905|  2.17k|            defaultNaNRule = temp.orphan();
 1906|  2.17k|        }
 1907|  2.17k|    }
 1908|  4.08k|    return defaultNaNRule;
 1909|  4.08k|}
_ZN6icu_7821RuleBasedNumberFormat25adoptDecimalFormatSymbolsEPNS_20DecimalFormatSymbolsE:
 1920|  1.91k|{
 1921|  1.91k|    if (symbolsToAdopt == nullptr) {
  ------------------
  |  Branch (1921:9): [True: 0, False: 1.91k]
  ------------------
 1922|      0|        return; // do not allow caller to set decimalFormatSymbols to nullptr
 1923|      0|    }
 1924|       |
 1925|  1.91k|    delete decimalFormatSymbols;
 1926|  1.91k|    decimalFormatSymbols = symbolsToAdopt;
 1927|       |
 1928|  1.91k|    {
 1929|       |        // Apply the new decimalFormatSymbols by reparsing the rulesets
 1930|  1.91k|        UErrorCode status = U_ZERO_ERROR;
 1931|       |
 1932|  1.91k|        delete defaultInfinityRule;
 1933|  1.91k|        defaultInfinityRule = nullptr;
 1934|  1.91k|        initializeDefaultInfinityRule(status); // Reset with the new DecimalFormatSymbols
 1935|       |
 1936|  1.91k|        delete defaultNaNRule;
 1937|  1.91k|        defaultNaNRule = nullptr;
 1938|  1.91k|        initializeDefaultNaNRule(status); // Reset with the new DecimalFormatSymbols
 1939|       |
 1940|  1.91k|        if (fRuleSets) {
  ------------------
  |  Branch (1940:13): [True: 0, False: 1.91k]
  ------------------
 1941|      0|            for (int32_t i = 0; i < numRuleSets; i++) {
  ------------------
  |  Branch (1941:33): [True: 0, False: 0]
  ------------------
 1942|      0|                fRuleSets[i]->setDecimalFormatSymbols(*symbolsToAdopt, status);
 1943|      0|            }
 1944|      0|        }
 1945|  1.91k|    }
 1946|  1.91k|}
_ZN6icu_7821RuleBasedNumberFormat23setDecimalFormatSymbolsERKNS_20DecimalFormatSymbolsE:
 1951|  1.91k|{
 1952|  1.91k|    adoptDecimalFormatSymbols(new DecimalFormatSymbols(symbols));
 1953|  1.91k|}
_ZNK6icu_7821RuleBasedNumberFormat15getRoundingModeEv:
 1971|  1.91k|DecimalFormat::ERoundingMode RuleBasedNumberFormat::getRoundingMode() const {
 1972|  1.91k|    return fRoundingMode;
 1973|  1.91k|}
_ZN6icu_7821RuleBasedNumberFormat15setRoundingModeENS_12NumberFormat13ERoundingModeE:
 1980|  1.91k|void RuleBasedNumberFormat::setRoundingMode(DecimalFormat::ERoundingMode roundingMode) {
 1981|  1.91k|    fRoundingMode = roundingMode;
 1982|  1.91k|}

_ZN6icu_786Region14loadRegionDataER10UErrorCode:
   79|      1|void U_CALLCONV Region::loadRegionData(UErrorCode &status) {
   80|       |
   81|       |    // Construct service objs first
   82|      1|    LocalUHashtablePointer newRegionIDMap(uhash_open(uhash_hashUnicodeString, uhash_compareUnicodeString, 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  LocalUHashtablePointer newRegionIDMap(uhash_open(uhash_hashUnicodeString, uhash_compareUnicodeString, nullptr, &status));
  ------------------
  |  | 1017|      1|#define uhash_hashUnicodeString U_ICU_ENTRY_POINT_RENAME(uhash_hashUnicodeString)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  LocalUHashtablePointer newRegionIDMap(uhash_open(uhash_hashUnicodeString, uhash_compareUnicodeString, nullptr, &status));
  ------------------
  |  |  999|      1|#define uhash_compareUnicodeString U_ICU_ENTRY_POINT_RENAME(uhash_compareUnicodeString)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   83|      1|    LocalUHashtablePointer newNumericCodeMap(uhash_open(uhash_hashLong,uhash_compareLong,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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  LocalUHashtablePointer newNumericCodeMap(uhash_open(uhash_hashLong,uhash_compareLong,nullptr,&status));
  ------------------
  |  | 1014|      1|#define uhash_hashLong U_ICU_ENTRY_POINT_RENAME(uhash_hashLong)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  LocalUHashtablePointer newNumericCodeMap(uhash_open(uhash_hashLong,uhash_compareLong,nullptr,&status));
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   84|      1|    LocalUHashtablePointer newRegionAliases(uhash_open(uhash_hashUnicodeString,uhash_compareUnicodeString,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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  LocalUHashtablePointer newRegionAliases(uhash_open(uhash_hashUnicodeString,uhash_compareUnicodeString,nullptr,&status));
  ------------------
  |  | 1017|      1|#define uhash_hashUnicodeString U_ICU_ENTRY_POINT_RENAME(uhash_hashUnicodeString)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  LocalUHashtablePointer newRegionAliases(uhash_open(uhash_hashUnicodeString,uhash_compareUnicodeString,nullptr,&status));
  ------------------
  |  |  999|      1|#define uhash_compareUnicodeString U_ICU_ENTRY_POINT_RENAME(uhash_compareUnicodeString)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   85|       |
   86|      1|    LocalPointer<UVector> continents(new UVector(uprv_deleteUObject, uhash_compareUnicodeString, status), status);
  ------------------
  |  | 1489|      1|#define uprv_deleteUObject U_ICU_ENTRY_POINT_RENAME(uprv_deleteUObject)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  LocalPointer<UVector> continents(new UVector(uprv_deleteUObject, uhash_compareUnicodeString, status), status);
  ------------------
  |  |  999|      1|#define uhash_compareUnicodeString U_ICU_ENTRY_POINT_RENAME(uhash_compareUnicodeString)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   87|      1|    LocalPointer<UVector> groupings(new UVector(uprv_deleteUObject, uhash_compareUnicodeString, status), status);
  ------------------
  |  | 1489|      1|#define uprv_deleteUObject U_ICU_ENTRY_POINT_RENAME(uprv_deleteUObject)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  LocalPointer<UVector> groupings(new UVector(uprv_deleteUObject, uhash_compareUnicodeString, status), status);
  ------------------
  |  |  999|      1|#define uhash_compareUnicodeString U_ICU_ENTRY_POINT_RENAME(uhash_compareUnicodeString)
  |  |  ------------------
  |  |  |  |  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|    LocalPointer<UVector> lpAllRegions(new UVector(uprv_deleteUObject, uhash_compareUnicodeString, status), status);
  ------------------
  |  | 1489|      1|#define uprv_deleteUObject U_ICU_ENTRY_POINT_RENAME(uprv_deleteUObject)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  LocalPointer<UVector> lpAllRegions(new UVector(uprv_deleteUObject, uhash_compareUnicodeString, status), status);
  ------------------
  |  |  999|      1|#define uhash_compareUnicodeString U_ICU_ENTRY_POINT_RENAME(uhash_compareUnicodeString)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   89|      1|    allRegions = lpAllRegions.orphan();
   90|       |
   91|      1|    LocalUResourceBundlePointer metadata(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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   92|      1|    LocalUResourceBundlePointer metadataAlias(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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   93|      1|    LocalUResourceBundlePointer territoryAlias(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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   94|       |
   95|      1|    LocalUResourceBundlePointer supplementalData(ures_openDirect(nullptr,"supplementalData",&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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   96|      1|    LocalUResourceBundlePointer codeMappings(ures_getByKey(supplementalData.getAlias(),"codeMappings",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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   97|       |
   98|      1|    LocalUResourceBundlePointer idValidity(ures_getByKey(supplementalData.getAlias(),"idValidity",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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   99|      1|    LocalUResourceBundlePointer regionList(ures_getByKey(idValidity.getAlias(),"region",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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  100|      1|    LocalUResourceBundlePointer regionRegular(ures_getByKey(regionList.getAlias(),"regular",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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  101|      1|    LocalUResourceBundlePointer regionMacro(ures_getByKey(regionList.getAlias(),"macroregion",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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  102|      1|    LocalUResourceBundlePointer regionUnknown(ures_getByKey(regionList.getAlias(),"unknown",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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  103|       |
  104|      1|    LocalUResourceBundlePointer territoryContainment(ures_getByKey(supplementalData.getAlias(),"territoryContainment",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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  105|      1|    LocalUResourceBundlePointer worldContainment(ures_getByKey(territoryContainment.getAlias(),"001",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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  106|      1|    LocalUResourceBundlePointer groupingContainment(ures_getByKey(territoryContainment.getAlias(),"grouping",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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  107|       |
  108|      1|    ucln_i18n_registerCleanup(UCLN_I18N_REGION, region_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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  109|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (109:9): [True: 0, False: 1]
  ------------------
  110|      0|        return;
  111|      0|    }
  112|       |
  113|       |    // now, initialize
  114|      1|    uhash_setValueDeleter(newRegionIDMap.getAlias(), uprv_deleteUObject);  // regionIDMap owns objs
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  uhash_setValueDeleter(newRegionIDMap.getAlias(), uprv_deleteUObject);  // regionIDMap owns objs
  ------------------
  |  | 1489|      1|#define uprv_deleteUObject U_ICU_ENTRY_POINT_RENAME(uprv_deleteUObject)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  115|      1|    uhash_setKeyDeleter(newRegionAliases.getAlias(), uprv_deleteUObject);  // regionAliases owns the string keys
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  uhash_setKeyDeleter(newRegionAliases.getAlias(), uprv_deleteUObject);  // regionAliases owns the string keys
  ------------------
  |  | 1489|      1|#define uprv_deleteUObject U_ICU_ENTRY_POINT_RENAME(uprv_deleteUObject)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  116|       |
  117|       |
  118|    120|    while (U_SUCCESS(status) && ures_hasNext(regionRegular.getAlias())) {
  ------------------
  |  | 1689|    120|#define ures_hasNext U_ICU_ENTRY_POINT_RENAME(ures_hasNext)
  |  |  ------------------
  |  |  |  |  123|    120|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    120|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    120|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (118:12): [True: 120, False: 0]
  |  Branch (118:33): [True: 119, False: 1]
  ------------------
  119|    119|        UnicodeString regionName = ures_getNextUnicodeString(regionRegular.getAlias(),nullptr,&status);
  120|    119|        int32_t rangeMarkerLocation = regionName.indexOf(RANGE_MARKER);
  121|    119|        char16_t buf[6];
  122|    119|        regionName.extract(buf,6,status);
  123|    119|        if ( rangeMarkerLocation > 0 ) {
  ------------------
  |  Branch (123:14): [True: 49, False: 70]
  ------------------
  124|     49|            char16_t endRange = regionName.charAt(rangeMarkerLocation+1);
  125|     49|            buf[rangeMarkerLocation] = 0;
  126|    236|            while (U_SUCCESS(status) && buf[rangeMarkerLocation-1] <= endRange) {
  ------------------
  |  Branch (126:20): [True: 236, False: 0]
  |  Branch (126:41): [True: 187, False: 49]
  ------------------
  127|    187|                LocalPointer<UnicodeString> newRegion(new UnicodeString(buf), status);
  128|    187|                allRegions->adoptElement(newRegion.orphan(), status);
  129|    187|                buf[rangeMarkerLocation-1]++;
  130|    187|            }
  131|     70|        } else {
  132|     70|            LocalPointer<UnicodeString> newRegion(new UnicodeString(regionName), status);
  133|     70|            allRegions->adoptElement(newRegion.orphan(), status);
  134|     70|        }
  135|    119|    }
  136|       |
  137|     25|    while (U_SUCCESS(status) && ures_hasNext(regionMacro.getAlias())) {
  ------------------
  |  | 1689|     25|#define ures_hasNext U_ICU_ENTRY_POINT_RENAME(ures_hasNext)
  |  |  ------------------
  |  |  |  |  123|     25|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     25|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     25|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (137:12): [True: 25, False: 0]
  |  Branch (137:33): [True: 24, False: 1]
  ------------------
  138|     24|        UnicodeString regionName = ures_getNextUnicodeString(regionMacro.getAlias(),nullptr,&status);
  139|     24|        int32_t rangeMarkerLocation = regionName.indexOf(RANGE_MARKER);
  140|     24|        char16_t buf[6];
  141|     24|        regionName.extract(buf,6,status);
  142|     24|        if ( rangeMarkerLocation > 0 ) {
  ------------------
  |  Branch (142:14): [True: 8, False: 16]
  ------------------
  143|      8|            char16_t endRange = regionName.charAt(rangeMarkerLocation+1);
  144|      8|            buf[rangeMarkerLocation] = 0;
  145|     27|            while ( buf[rangeMarkerLocation-1] <= endRange && U_SUCCESS(status)) {
  ------------------
  |  Branch (145:21): [True: 19, False: 8]
  |  Branch (145:63): [True: 19, False: 0]
  ------------------
  146|     19|                LocalPointer<UnicodeString> newRegion(new UnicodeString(buf), status);
  147|     19|                allRegions->adoptElement(newRegion.orphan(),status);
  148|     19|                buf[rangeMarkerLocation-1]++;
  149|     19|            }
  150|     16|        } else {
  151|     16|            LocalPointer<UnicodeString> newRegion(new UnicodeString(regionName), status);
  152|     16|            allRegions->adoptElement(newRegion.orphan(),status);
  153|     16|        }
  154|     24|    }
  155|       |
  156|      2|    while (U_SUCCESS(status) && ures_hasNext(regionUnknown.getAlias())) {
  ------------------
  |  | 1689|      2|#define ures_hasNext U_ICU_ENTRY_POINT_RENAME(ures_hasNext)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (156:12): [True: 2, False: 0]
  |  Branch (156:33): [True: 1, False: 1]
  ------------------
  157|      1|        LocalPointer<UnicodeString> regionName (
  158|      1|            new UnicodeString(ures_getNextUnicodeString(regionUnknown.getAlias(), nullptr, &status), status));
  159|      1|        allRegions->adoptElement(regionName.orphan(),status);
  160|      1|    }
  161|       |
  162|      6|    while (U_SUCCESS(status) && ures_hasNext(worldContainment.getAlias())) {
  ------------------
  |  | 1689|      6|#define ures_hasNext U_ICU_ENTRY_POINT_RENAME(ures_hasNext)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (162:12): [True: 6, False: 0]
  |  Branch (162:33): [True: 5, False: 1]
  ------------------
  163|      5|        UnicodeString *continentName = new UnicodeString(ures_getNextUnicodeString(worldContainment.getAlias(),nullptr,&status));
  164|      5|        continents->adoptElement(continentName,status);
  165|      5|    }
  166|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (166:9): [True: 0, False: 1]
  ------------------
  167|      0|        return;
  168|      0|    }
  169|       |
  170|    294|    for ( int32_t i = 0 ; i < allRegions->size() ; i++ ) {
  ------------------
  |  Branch (170:27): [True: 293, False: 1]
  ------------------
  171|    293|        LocalPointer<Region> r(new Region(), status);
  172|    293|        if ( U_FAILURE(status) ) {
  ------------------
  |  Branch (172:14): [True: 0, False: 293]
  ------------------
  173|      0|           return;
  174|      0|        }
  175|    293|        UnicodeString* regionName = static_cast<UnicodeString*>(allRegions->elementAt(i));
  176|    293|        r->idStr = *regionName;
  177|       |
  178|    293|        r->idStr.extract(0,r->idStr.length(),r->id,sizeof(r->id),US_INV);
  ------------------
  |  |   98|    293|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  179|    293|        r->fType = URGN_TERRITORY; // Only temporary - figure out the real type later once the aliases are known.
  180|       |
  181|    293|        int32_t pos = 0;
  182|    293|        int32_t result = ICU_Utility::parseAsciiInteger(r->idStr, pos);
  183|    293|        if (pos > 0) {
  ------------------
  |  Branch (183:13): [True: 31, False: 262]
  ------------------
  184|     31|            r->code = result; // Convert string to number
  185|     31|            uhash_iput(newNumericCodeMap.getAlias(),r->code,(void *)(r.getAlias()),&status);
  ------------------
  |  | 1024|     31|#define uhash_iput U_ICU_ENTRY_POINT_RENAME(uhash_iput)
  |  |  ------------------
  |  |  |  |  123|     31|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     31|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     31|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  186|     31|            r->fType = URGN_SUBCONTINENT;
  187|    262|        } else {
  188|    262|            r->code = -1;
  189|    262|        }
  190|    293|        void* idStrAlias = (void*)&(r->idStr); // about to orphan 'r'. Save this off.
  191|    293|        uhash_put(newRegionIDMap.getAlias(),idStrAlias,(void *)(r.orphan()),&status); // regionIDMap takes ownership
  ------------------
  |  | 1032|    293|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|    293|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    293|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    293|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  192|    293|    }
  193|       |
  194|      1|    UResourceBundle *groupingBundle = nullptr;
  195|      7|    while (U_SUCCESS(status) && ures_hasNext(groupingContainment.getAlias())) {
  ------------------
  |  | 1689|      7|#define ures_hasNext U_ICU_ENTRY_POINT_RENAME(ures_hasNext)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (195:12): [True: 7, False: 0]
  |  Branch (195:33): [True: 6, False: 1]
  ------------------
  196|      6|        groupingBundle = ures_getNextResource(groupingContainment.getAlias(), groupingBundle, &status);
  ------------------
  |  | 1672|      6|#define ures_getNextResource U_ICU_ENTRY_POINT_RENAME(ures_getNextResource)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  197|      6|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (197:13): [True: 0, False: 6]
  ------------------
  198|      0|            break;
  199|      0|        }
  200|      6|        UnicodeString *groupingName = new UnicodeString(ures_getKey(groupingBundle), -1, US_INV);
  ------------------
  |  | 1666|      6|#define ures_getKey U_ICU_ENTRY_POINT_RENAME(ures_getKey)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      UnicodeString *groupingName = new UnicodeString(ures_getKey(groupingBundle), -1, US_INV);
  ------------------
  |  |   98|      6|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  201|      6|        LocalPointer<UnicodeString> lpGroupingName(groupingName, status);
  202|      6|        groupings->adoptElement(lpGroupingName.orphan(), status);
  203|      6|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (203:13): [True: 0, False: 6]
  ------------------
  204|      0|            break;
  205|      0|        }
  206|      6|        Region* grouping = static_cast<Region*>(uhash_get(newRegionIDMap.getAlias(), groupingName));
  ------------------
  |  | 1007|      6|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  207|      6|        if (grouping != nullptr) {
  ------------------
  |  Branch (207:13): [True: 6, False: 0]
  ------------------
  208|    255|            for (int32_t i = 0; i < ures_getSize(groupingBundle) && U_SUCCESS(status); i++) {
  ------------------
  |  | 1674|    255|#define ures_getSize U_ICU_ENTRY_POINT_RENAME(ures_getSize)
  |  |  ------------------
  |  |  |  |  123|    255|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    255|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    255|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (208:33): [True: 249, False: 6]
  |  Branch (208:69): [True: 249, False: 0]
  ------------------
  209|    249|                UnicodeString child = ures_getUnicodeStringByIndex(groupingBundle, i, &status);
  210|    249|                if (U_SUCCESS(status)) {
  ------------------
  |  Branch (210:21): [True: 249, False: 0]
  ------------------
  211|    249|                    if (grouping->containedRegions == nullptr) {
  ------------------
  |  Branch (211:25): [True: 6, False: 243]
  ------------------
  212|      6|                        LocalPointer<UVector> lpContainedRegions(
  213|      6|                            new UVector(uprv_deleteUObject, uhash_compareUnicodeString, status), status);
  ------------------
  |  | 1489|      6|#define uprv_deleteUObject U_ICU_ENTRY_POINT_RENAME(uprv_deleteUObject)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                                          new UVector(uprv_deleteUObject, uhash_compareUnicodeString, status), status);
  ------------------
  |  |  999|      6|#define uhash_compareUnicodeString U_ICU_ENTRY_POINT_RENAME(uhash_compareUnicodeString)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  214|      6|                        grouping->containedRegions = lpContainedRegions.orphan();
  215|      6|                        if (U_FAILURE(status)) {
  ------------------
  |  Branch (215:29): [True: 0, False: 6]
  ------------------
  216|      0|                            break;
  217|      0|                        }
  218|      6|                    }
  219|    249|                    LocalPointer<UnicodeString> lpChildCopy(new UnicodeString(child), status);
  220|    249|                    grouping->containedRegions->adoptElement(lpChildCopy.orphan(), status);
  221|    249|                }
  222|    249|            }
  223|      6|        }
  224|      6|    }
  225|      1|    ures_close(groupingBundle);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  226|       |    
  227|       |    // Process the territory aliases
  228|    641|    while (U_SUCCESS(status) && ures_hasNext(territoryAlias.getAlias())) {
  ------------------
  |  | 1689|    641|#define ures_hasNext U_ICU_ENTRY_POINT_RENAME(ures_hasNext)
  |  |  ------------------
  |  |  |  |  123|    641|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    641|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    641|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (228:12): [True: 641, False: 0]
  |  Branch (228:33): [True: 640, False: 1]
  ------------------
  229|    640|        LocalUResourceBundlePointer res(ures_getNextResource(territoryAlias.getAlias(),nullptr,&status));
  ------------------
  |  | 1672|    640|#define ures_getNextResource U_ICU_ENTRY_POINT_RENAME(ures_getNextResource)
  |  |  ------------------
  |  |  |  |  123|    640|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    640|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    640|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  230|    640|        const char *aliasFrom = ures_getKey(res.getAlias());
  ------------------
  |  | 1666|    640|#define ures_getKey U_ICU_ENTRY_POINT_RENAME(ures_getKey)
  |  |  ------------------
  |  |  |  |  123|    640|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    640|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    640|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  231|    640|        LocalPointer<UnicodeString> aliasFromStr(new UnicodeString(aliasFrom, -1, US_INV), status);
  ------------------
  |  |   98|    640|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  232|    640|        UnicodeString aliasTo = ures_getUnicodeStringByKey(res.getAlias(),"replacement",&status);
  233|    640|        res.adoptInstead(nullptr);
  234|       |
  235|    640|        const Region* aliasToRegion = static_cast<Region*>(uhash_get(newRegionIDMap.getAlias(), &aliasTo));
  ------------------
  |  | 1007|    640|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|    640|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    640|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    640|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  236|    640|        Region* aliasFromRegion = static_cast<Region*>(uhash_get(newRegionIDMap.getAlias(), aliasFromStr.getAlias()));
  ------------------
  |  | 1007|    640|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|    640|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    640|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    640|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  237|       |
  238|    640|        if ( aliasToRegion != nullptr && aliasFromRegion == nullptr ) { // This is just an alias from some string to a region
  ------------------
  |  Branch (238:14): [True: 541, False: 99]
  |  Branch (238:42): [True: 541, False: 0]
  ------------------
  239|    541|            uhash_put(newRegionAliases.getAlias(),(void *)aliasFromStr.orphan(), (void *)aliasToRegion,&status);
  ------------------
  |  | 1032|    541|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|    541|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    541|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    541|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  240|    541|        } else {
  241|     99|            if ( aliasFromRegion == nullptr ) { // Deprecated region code not in the primary codes list - so need to create a deprecated region for it.
  ------------------
  |  Branch (241:18): [True: 99, False: 0]
  ------------------
  242|     99|                LocalPointer<Region> newRgn(new Region, status); 
  243|     99|                if ( U_SUCCESS(status) ) {
  ------------------
  |  Branch (243:22): [True: 99, False: 0]
  ------------------
  244|     99|                    aliasFromRegion = newRgn.orphan();
  245|     99|                } else {
  246|      0|                    return; // error out
  247|      0|                }
  248|     99|                aliasFromRegion->idStr.setTo(*aliasFromStr);
  249|     99|                aliasFromRegion->idStr.extract(0,aliasFromRegion->idStr.length(),aliasFromRegion->id,sizeof(aliasFromRegion->id),US_INV);
  ------------------
  |  |   98|     99|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  250|     99|                uhash_put(newRegionIDMap.getAlias(),(void *)&(aliasFromRegion->idStr),(void *)aliasFromRegion,&status);
  ------------------
  |  | 1032|     99|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  251|     99|                int32_t pos = 0;
  252|     99|                int32_t result = ICU_Utility::parseAsciiInteger(aliasFromRegion->idStr, pos);
  253|     99|                if ( pos > 0 ) {
  ------------------
  |  Branch (253:22): [True: 49, False: 50]
  ------------------
  254|     49|                    aliasFromRegion->code = result; // Convert string to number
  255|     49|                    uhash_iput(newNumericCodeMap.getAlias(),aliasFromRegion->code,(void *)aliasFromRegion,&status);
  ------------------
  |  | 1024|     49|#define uhash_iput U_ICU_ENTRY_POINT_RENAME(uhash_iput)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  256|     50|                } else {
  257|     50|                    aliasFromRegion->code = -1;
  258|     50|                }
  259|     99|                aliasFromRegion->fType = URGN_DEPRECATED;
  260|     99|            } else {
  261|      0|                aliasFromRegion->fType = URGN_DEPRECATED;
  262|      0|            }
  263|       |
  264|     99|            {
  265|     99|                LocalPointer<UVector> newPreferredValues(new UVector(uprv_deleteUObject, uhash_compareUnicodeString, status), status);
  ------------------
  |  | 1489|     99|#define uprv_deleteUObject U_ICU_ENTRY_POINT_RENAME(uprv_deleteUObject)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                              LocalPointer<UVector> newPreferredValues(new UVector(uprv_deleteUObject, uhash_compareUnicodeString, status), status);
  ------------------
  |  |  999|     99|#define uhash_compareUnicodeString U_ICU_ENTRY_POINT_RENAME(uhash_compareUnicodeString)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  266|     99|                aliasFromRegion->preferredValues = newPreferredValues.orphan();
  267|     99|            }
  268|     99|            if( U_FAILURE(status)) {
  ------------------
  |  Branch (268:17): [True: 0, False: 99]
  ------------------
  269|      0|                return;
  270|      0|            }
  271|     99|            UnicodeString currentRegion;
  272|       |            //currentRegion.remove();   TODO: was already 0 length?
  273|    551|            for (int32_t i = 0 ; i < aliasTo.length() && U_SUCCESS(status); i++ ) {
  ------------------
  |  Branch (273:34): [True: 452, False: 99]
  |  Branch (273:58): [True: 452, False: 0]
  ------------------
  274|    452|                if ( aliasTo.charAt(i) != 0x0020 ) {
  ------------------
  |  Branch (274:22): [True: 368, False: 84]
  ------------------
  275|    368|                    currentRegion.append(aliasTo.charAt(i));
  276|    368|                }
  277|    452|                if ( aliasTo.charAt(i) == 0x0020 || i+1 == aliasTo.length() ) {
  ------------------
  |  Branch (277:22): [True: 84, False: 368]
  |  Branch (277:53): [True: 99, False: 269]
  ------------------
  278|    183|                    Region* target = static_cast<Region*>(uhash_get(newRegionIDMap.getAlias(), &currentRegion));
  ------------------
  |  | 1007|    183|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  279|    183|                    if (target) {
  ------------------
  |  Branch (279:25): [True: 107, False: 76]
  ------------------
  280|    107|                        LocalPointer<UnicodeString> preferredValue(new UnicodeString(target->idStr), status);
  281|    107|                        aliasFromRegion->preferredValues->adoptElement(preferredValue.orphan(),status);  // may add null if err
  282|    107|                    }
  283|    183|                    currentRegion.remove();
  284|    183|                }
  285|    452|            }
  286|     99|        }
  287|    640|    }
  288|       |
  289|       |    // Process the code mappings - This will allow us to assign numeric codes to most of the territories.
  290|    304|    while (U_SUCCESS(status) && ures_hasNext(codeMappings.getAlias())) {
  ------------------
  |  | 1689|    304|#define ures_hasNext U_ICU_ENTRY_POINT_RENAME(ures_hasNext)
  |  |  ------------------
  |  |  |  |  123|    304|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    304|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    304|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (290:12): [True: 304, False: 0]
  |  Branch (290:33): [True: 303, False: 1]
  ------------------
  291|    303|        UResourceBundle *mapping = ures_getNextResource(codeMappings.getAlias(),nullptr,&status);
  ------------------
  |  | 1672|    303|#define ures_getNextResource U_ICU_ENTRY_POINT_RENAME(ures_getNextResource)
  |  |  ------------------
  |  |  |  |  123|    303|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    303|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    303|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  292|    303|        if (U_SUCCESS(status) && ures_getType(mapping) == URES_ARRAY && ures_getSize(mapping) == 3) {
  ------------------
  |  | 1679|    303|#define ures_getType U_ICU_ENTRY_POINT_RENAME(ures_getType)
  |  |  ------------------
  |  |  |  |  123|    303|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    303|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    303|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      if (U_SUCCESS(status) && ures_getType(mapping) == URES_ARRAY && ures_getSize(mapping) == 3) {
  ------------------
  |  | 1674|    303|#define ures_getSize U_ICU_ENTRY_POINT_RENAME(ures_getSize)
  |  |  ------------------
  |  |  |  |  123|    303|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    303|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    303|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (292:13): [True: 303, False: 0]
  |  Branch (292:34): [True: 303, False: 0]
  |  Branch (292:73): [True: 303, False: 0]
  ------------------
  293|    303|            UnicodeString codeMappingID = ures_getUnicodeStringByIndex(mapping,0,&status);
  294|    303|            UnicodeString codeMappingNumber = ures_getUnicodeStringByIndex(mapping,1,&status);
  295|    303|            UnicodeString codeMapping3Letter = ures_getUnicodeStringByIndex(mapping,2,&status);
  296|       |
  297|    303|            Region* r = static_cast<Region*>(uhash_get(newRegionIDMap.getAlias(), &codeMappingID));
  ------------------
  |  | 1007|    303|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|    303|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    303|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    303|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  298|    303|            if ( r ) {
  ------------------
  |  Branch (298:18): [True: 258, False: 45]
  ------------------
  299|    258|                int32_t pos = 0;
  300|    258|                int32_t result = ICU_Utility::parseAsciiInteger(codeMappingNumber, pos);
  301|    258|                if ( pos > 0 ) {
  ------------------
  |  Branch (301:22): [True: 258, False: 0]
  ------------------
  302|    258|                    r->code = result; // Convert string to number
  303|    258|                    uhash_iput(newNumericCodeMap.getAlias(),r->code,(void *)r,&status);
  ------------------
  |  | 1024|    258|#define uhash_iput U_ICU_ENTRY_POINT_RENAME(uhash_iput)
  |  |  ------------------
  |  |  |  |  123|    258|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    258|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    258|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  304|    258|                }
  305|    258|                LocalPointer<UnicodeString> code3(new UnicodeString(codeMapping3Letter), status);
  306|    258|                uhash_put(newRegionAliases.getAlias(),(void *)code3.orphan(), (void *)r,&status);
  ------------------
  |  | 1032|    258|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|    258|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    258|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    258|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  307|    258|            }
  308|    303|        }
  309|    303|        ures_close(mapping);
  ------------------
  |  | 1652|    303|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|    303|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    303|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    303|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  310|    303|    }
  311|       |
  312|       |    // Now fill in the special cases for WORLD, UNKNOWN, CONTINENTS, and GROUPINGS
  313|      1|    Region *r;
  314|      1|    UnicodeString WORLD_ID_STRING(WORLD_ID);
  315|      1|    r = static_cast<Region*>(uhash_get(newRegionIDMap.getAlias(), &WORLD_ID_STRING));
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  316|      1|    if ( r ) {
  ------------------
  |  Branch (316:10): [True: 1, False: 0]
  ------------------
  317|      1|        r->fType = URGN_WORLD;
  318|      1|    }
  319|       |
  320|      1|    UnicodeString UNKNOWN_REGION_ID_STRING(UNKNOWN_REGION_ID);
  321|      1|    r = static_cast<Region*>(uhash_get(newRegionIDMap.getAlias(), &UNKNOWN_REGION_ID_STRING));
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  322|      1|    if ( r ) {
  ------------------
  |  Branch (322:10): [True: 1, False: 0]
  ------------------
  323|      1|        r->fType = URGN_UNKNOWN;
  324|      1|    }
  325|       |
  326|      6|    for ( int32_t i = 0 ; i < continents->size() ; i++ ) {
  ------------------
  |  Branch (326:27): [True: 5, False: 1]
  ------------------
  327|      5|        r = static_cast<Region*>(uhash_get(newRegionIDMap.getAlias(), continents->elementAt(i)));
  ------------------
  |  | 1007|      5|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  328|      5|        if ( r ) {
  ------------------
  |  Branch (328:14): [True: 5, False: 0]
  ------------------
  329|      5|            r->fType = URGN_CONTINENT;
  330|      5|        }
  331|      5|    }
  332|       |
  333|      7|    for ( int32_t i = 0 ; i < groupings->size() ; i++ ) {
  ------------------
  |  Branch (333:27): [True: 6, False: 1]
  ------------------
  334|      6|        r = static_cast<Region*>(uhash_get(newRegionIDMap.getAlias(), groupings->elementAt(i)));
  ------------------
  |  | 1007|      6|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  335|      6|        if ( r ) {
  ------------------
  |  Branch (335:14): [True: 6, False: 0]
  ------------------
  336|      6|            r->fType = URGN_GROUPING;
  337|      6|        }
  338|      6|    }
  339|       |
  340|       |    // Special case: The region code "QO" (Outlying Oceania) is a subcontinent code added by CLDR
  341|       |    // even though it looks like a territory code.  Need to handle it here.
  342|       |
  343|      1|    UnicodeString OUTLYING_OCEANIA_REGION_ID_STRING(OUTLYING_OCEANIA_REGION_ID);
  344|      1|    r = static_cast<Region*>(uhash_get(newRegionIDMap.getAlias(), &OUTLYING_OCEANIA_REGION_ID_STRING));
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  345|      1|    if ( r ) {
  ------------------
  |  Branch (345:10): [True: 1, False: 0]
  ------------------
  346|      1|        r->fType = URGN_SUBCONTINENT;
  347|      1|    }
  348|       |
  349|       |    // Load territory containment info from the supplemental data.
  350|     33|    while ( ures_hasNext(territoryContainment.getAlias()) ) {
  ------------------
  |  | 1689|     33|#define ures_hasNext U_ICU_ENTRY_POINT_RENAME(ures_hasNext)
  |  |  ------------------
  |  |  |  |  123|     33|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     33|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     33|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (350:13): [True: 32, False: 1]
  ------------------
  351|     32|        LocalUResourceBundlePointer mapping(ures_getNextResource(territoryContainment.getAlias(),nullptr,&status));
  ------------------
  |  | 1672|     32|#define ures_getNextResource U_ICU_ENTRY_POINT_RENAME(ures_getNextResource)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  352|     32|        if( U_FAILURE(status) ) {
  ------------------
  |  Branch (352:13): [True: 0, False: 32]
  ------------------
  353|      0|            return;  // error out
  354|      0|        }
  355|     32|        const char *parent = ures_getKey(mapping.getAlias());
  ------------------
  |  | 1666|     32|#define ures_getKey U_ICU_ENTRY_POINT_RENAME(ures_getKey)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  356|     32|        if (uprv_strcmp(parent, "containedGroupings") == 0 || uprv_strcmp(parent, "deprecated") == 0) {
  ------------------
  |  |   38|     32|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|     32|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                      if (uprv_strcmp(parent, "containedGroupings") == 0 || uprv_strcmp(parent, "deprecated") == 0) {
  ------------------
  |  |   38|     31|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|     31|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (356:13): [True: 1, False: 31]
  |  Branch (356:63): [True: 1, False: 30]
  ------------------
  357|      2|            continue; // handle new pseudo-parent types added in ICU data per cldrbug 7808; for now just skip.
  358|       |            // #11232 is to do something useful with these.
  359|      2|        }
  360|     30|        UnicodeString parentStr = UnicodeString(parent, -1 , US_INV);
  ------------------
  |  |   98|     30|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  361|     30|        Region* parentRegion = static_cast<Region*>(uhash_get(newRegionIDMap.getAlias(), &parentStr));
  ------------------
  |  | 1007|     30|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|     30|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     30|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     30|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  362|       |
  363|    321|        for ( int j = 0 ; j < ures_getSize(mapping.getAlias()); j++ ) {
  ------------------
  |  | 1674|    321|#define ures_getSize U_ICU_ENTRY_POINT_RENAME(ures_getSize)
  |  |  ------------------
  |  |  |  |  123|    321|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    321|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    321|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (363:27): [True: 291, False: 30]
  ------------------
  364|    291|            UnicodeString child = ures_getUnicodeStringByIndex(mapping.getAlias(),j,&status);
  365|    291|            Region* childRegion = static_cast<Region*>(uhash_get(newRegionIDMap.getAlias(), &child));
  ------------------
  |  | 1007|    291|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|    291|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    291|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    291|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  366|    291|            if ( parentRegion != nullptr && childRegion != nullptr ) {
  ------------------
  |  Branch (366:18): [True: 285, False: 6]
  |  Branch (366:45): [True: 285, False: 0]
  ------------------
  367|       |
  368|       |                // Add the child region to the set of regions contained by the parent
  369|    285|                if (parentRegion->containedRegions == nullptr) {
  ------------------
  |  Branch (369:21): [True: 29, False: 256]
  ------------------
  370|     29|                    LocalPointer<UVector> lpContainedRegions(
  371|     29|                        new UVector(uprv_deleteUObject, uhash_compareUnicodeString, status), status);
  ------------------
  |  | 1489|     29|#define uprv_deleteUObject U_ICU_ENTRY_POINT_RENAME(uprv_deleteUObject)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                                      new UVector(uprv_deleteUObject, uhash_compareUnicodeString, status), status);
  ------------------
  |  |  999|     29|#define uhash_compareUnicodeString U_ICU_ENTRY_POINT_RENAME(uhash_compareUnicodeString)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  372|     29|                    parentRegion->containedRegions = lpContainedRegions.orphan();
  373|     29|                    if (U_FAILURE(status)) {
  ------------------
  |  Branch (373:25): [True: 0, False: 29]
  ------------------
  374|      0|                        return;
  375|      0|                    }
  376|     29|                }
  377|       |
  378|    285|                LocalPointer<UnicodeString> childStr(new UnicodeString(), status);
  379|    285|                if (U_FAILURE(status)) {
  ------------------
  |  Branch (379:21): [True: 0, False: 285]
  ------------------
  380|      0|                    return;  // error out
  381|      0|                }
  382|    285|                childStr->fastCopyFrom(childRegion->idStr);
  383|    285|                parentRegion->containedRegions->adoptElement(childStr.orphan(),status);
  384|    285|                if (U_FAILURE(status)) {
  ------------------
  |  Branch (384:21): [True: 0, False: 285]
  ------------------
  385|      0|                    return;
  386|      0|                }
  387|       |
  388|       |                // Set the parent region to be the containing region of the child.
  389|       |                // Regions of type GROUPING can't be set as the parent, since another region
  390|       |                // such as a SUBCONTINENT, CONTINENT, or WORLD must always be the parent.
  391|    285|                if ( parentRegion->fType != URGN_GROUPING) {
  ------------------
  |  Branch (391:22): [True: 285, False: 0]
  ------------------
  392|    285|                    childRegion->containingRegion = parentRegion;
  393|    285|                }
  394|    285|            }
  395|    291|        }
  396|     30|    }
  397|       |
  398|       |    // Create the availableRegions lists
  399|      1|    int32_t pos = UHASH_FIRST;
  ------------------
  |  |  610|      1|#define UHASH_FIRST (-1)
  ------------------
  400|    393|    while ( const UHashElement* element = uhash_nextElement(newRegionIDMap.getAlias(),&pos)) {
  ------------------
  |  Branch (400:33): [True: 392, False: 1]
  ------------------
  401|    392|        Region* ar = static_cast<Region*>(element->value.pointer);
  402|    392|        if ( availableRegions[ar->fType] == nullptr ) {
  ------------------
  |  Branch (402:14): [True: 7, False: 385]
  ------------------
  403|      7|            LocalPointer<UVector> newAr(new UVector(uprv_deleteUObject, uhash_compareUnicodeString, status), status);
  ------------------
  |  | 1489|      7|#define uprv_deleteUObject U_ICU_ENTRY_POINT_RENAME(uprv_deleteUObject)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          LocalPointer<UVector> newAr(new UVector(uprv_deleteUObject, uhash_compareUnicodeString, status), status);
  ------------------
  |  |  999|      7|#define uhash_compareUnicodeString U_ICU_ENTRY_POINT_RENAME(uhash_compareUnicodeString)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  404|      7|            availableRegions[ar->fType] = newAr.orphan();
  405|      7|        }
  406|    392|        LocalPointer<UnicodeString> arString(new UnicodeString(ar->idStr), status);
  407|    392|        if( U_FAILURE(status) ) {
  ------------------
  |  Branch (407:13): [True: 0, False: 392]
  ------------------
  408|      0|            return;  // error out
  409|      0|        }
  410|    392|        availableRegions[ar->fType]->adoptElement(arString.orphan(), status);
  411|    392|    }
  412|       |    
  413|       |    // copy hashtables
  414|      1|    numericCodeMap = newNumericCodeMap.orphan();
  415|      1|    regionIDMap = newRegionIDMap.orphan();
  416|      1|    regionAliases = newRegionAliases.orphan();
  417|      1|}
_ZN6icu_786RegionC2Ev:
  449|    392|        : code(-1),
  450|    392|          fType(URGN_UNKNOWN),
  451|    392|          containingRegion(nullptr),
  452|    392|          containedRegions(nullptr),
  453|    392|          preferredValues(nullptr) {
  454|    392|    id[0] = 0;
  455|    392|}
_ZN6icu_786Region11getInstanceEPKcR10UErrorCode:
  487|    800|Region::getInstance(const char *region_code, UErrorCode &status) {
  488|       |
  489|    800|    umtx_initOnce(gRegionDataInitOnce, &loadRegionData, status);
  490|    800|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (490:9): [True: 0, False: 800]
  ------------------
  491|      0|        return nullptr;
  492|      0|    }
  493|       |
  494|    800|    if ( !region_code ) {
  ------------------
  |  Branch (494:10): [True: 0, False: 800]
  ------------------
  495|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  496|      0|        return nullptr;
  497|      0|    }
  498|       |
  499|    800|    UnicodeString regionCodeString = UnicodeString(region_code, -1, US_INV);
  ------------------
  |  |   98|    800|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  500|    800|    Region* r = static_cast<Region*>(uhash_get(regionIDMap, &regionCodeString));
  ------------------
  |  | 1007|    800|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|    800|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    800|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    800|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  501|       |
  502|    800|    if ( !r ) {
  ------------------
  |  Branch (502:10): [True: 704, False: 96]
  ------------------
  503|    704|        r = static_cast<Region*>(uhash_get(regionAliases, &regionCodeString));
  ------------------
  |  | 1007|    704|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|    704|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    704|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    704|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  504|    704|    }
  505|       |
  506|    800|    if ( !r ) { // Unknown region code
  ------------------
  |  Branch (506:10): [True: 678, False: 122]
  ------------------
  507|    678|        status = U_ILLEGAL_ARGUMENT_ERROR;
  508|    678|        return nullptr;
  509|    678|    }
  510|       |
  511|    122|    if ( r->fType == URGN_DEPRECATED && r->preferredValues->size() == 1) {
  ------------------
  |  Branch (511:10): [True: 9, False: 113]
  |  Branch (511:41): [True: 0, False: 9]
  ------------------
  512|      0|        StringEnumeration *pv = r->getPreferredValues(status);
  513|      0|        pv->reset(status);
  514|      0|        const UnicodeString *ustr = pv->snext(status);
  515|      0|        r = static_cast<Region*>(uhash_get(regionIDMap, ustr));
  ------------------
  |  | 1007|      0|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  516|      0|        delete pv;
  517|      0|    }
  518|       |
  519|    122|    return r;
  520|       |
  521|    800|}
_ZNK6icu_786Region13getRegionCodeEv:
  703|    122|Region::getRegionCode() const {
  704|    122|    return id;
  705|    122|}

_ZN6icu_7818RelativeDateFormatC2E16UDateFormatStyleS1_RKNS_6LocaleER10UErrorCode:
   72|  10.9k| DateFormat(), fDateTimeFormatter(nullptr), fDatePattern(), fTimePattern(), fCombinedFormat(nullptr),
   73|  10.9k| fDateStyle(dateStyle), fLocale(locale), fDatesLen(0), fDates(nullptr),
   74|  10.9k| fCombinedHasDateAtStart(false), fCapitalizationInfoSet(false),
   75|  10.9k| fCapitalizationOfRelativeUnitsForUIListMenu(false), fCapitalizationOfRelativeUnitsForStandAlone(false),
   76|  10.9k| fCapitalizationBrkIter(nullptr)
   77|  10.9k|{
   78|  10.9k|    if(U_FAILURE(status) ) {
  ------------------
  |  Branch (78:8): [True: 0, False: 10.9k]
  ------------------
   79|      0|        return;
   80|      0|    }
   81|  10.9k|    if (dateStyle != UDAT_FULL_RELATIVE &&
  ------------------
  |  Branch (81:9): [True: 8.40k, False: 2.55k]
  ------------------
   82|  10.9k|        dateStyle != UDAT_LONG_RELATIVE &&
  ------------------
  |  Branch (82:9): [True: 7.05k, False: 1.35k]
  ------------------
   83|  10.9k|        dateStyle != UDAT_MEDIUM_RELATIVE &&
  ------------------
  |  Branch (83:9): [True: 5.85k, False: 1.19k]
  ------------------
   84|  10.9k|        dateStyle != UDAT_SHORT_RELATIVE &&
  ------------------
  |  Branch (84:9): [True: 3.65k, False: 2.20k]
  ------------------
   85|  10.9k|        dateStyle != UDAT_RELATIVE) {
  ------------------
  |  Branch (85:9): [True: 3.65k, False: 0]
  ------------------
   86|  3.65k|        status = U_ILLEGAL_ARGUMENT_ERROR;
   87|  3.65k|        return;
   88|  3.65k|    }
   89|       |
   90|  7.30k|    if (timeStyle < UDAT_NONE || timeStyle > UDAT_SHORT) {
  ------------------
  |  Branch (90:9): [True: 86, False: 7.22k]
  |  Branch (90:34): [True: 2.12k, False: 5.09k]
  ------------------
   91|       |        // don't support other time styles (e.g. relative styles), for now
   92|  2.21k|        status = U_ILLEGAL_ARGUMENT_ERROR;
   93|  2.21k|        return;
   94|  2.21k|    }
   95|  5.09k|    UDateFormatStyle baseDateStyle = (dateStyle > UDAT_SHORT) ? static_cast<UDateFormatStyle>(dateStyle & ~UDAT_RELATIVE) : dateStyle;
  ------------------
  |  Branch (95:38): [True: 5.09k, False: 0]
  ------------------
   96|  5.09k|    DateFormat * df;
   97|       |    // Get fDateTimeFormatter from either date or time style (does not matter, we will override the pattern).
   98|       |    // We do need to get separate patterns for the date & time styles.
   99|  5.09k|    if (baseDateStyle != UDAT_NONE) {
  ------------------
  |  Branch (99:9): [True: 5.09k, False: 0]
  ------------------
  100|  5.09k|        df = createDateInstance(static_cast<EStyle>(baseDateStyle), locale);
  101|  5.09k|        fDateTimeFormatter=dynamic_cast<SimpleDateFormat *>(df);
  102|  5.09k|        if (fDateTimeFormatter == nullptr) {
  ------------------
  |  Branch (102:13): [True: 145, False: 4.94k]
  ------------------
  103|    145|            status = U_UNSUPPORTED_ERROR;
  104|    145|             return;
  105|    145|        }
  106|  4.94k|        fDateTimeFormatter->toPattern(fDatePattern);
  107|  4.94k|        if (timeStyle != UDAT_NONE) {
  ------------------
  |  Branch (107:13): [True: 4.21k, False: 738]
  ------------------
  108|  4.21k|            df = createTimeInstance(static_cast<EStyle>(timeStyle), locale);
  109|  4.21k|            SimpleDateFormat *sdf = dynamic_cast<SimpleDateFormat *>(df);
  110|  4.21k|            if (sdf != nullptr) {
  ------------------
  |  Branch (110:17): [True: 4.21k, False: 0]
  ------------------
  111|  4.21k|                sdf->toPattern(fTimePattern);
  112|  4.21k|                delete sdf;
  113|  4.21k|            }
  114|  4.21k|        }
  115|  4.94k|    } else {
  116|       |        // does not matter whether timeStyle is UDAT_NONE, we need something for fDateTimeFormatter
  117|      0|        df = createTimeInstance(static_cast<EStyle>(timeStyle), locale);
  118|      0|        fDateTimeFormatter=dynamic_cast<SimpleDateFormat *>(df);
  119|      0|        if (fDateTimeFormatter == nullptr) {
  ------------------
  |  Branch (119:13): [True: 0, False: 0]
  ------------------
  120|      0|            status = U_UNSUPPORTED_ERROR;
  121|      0|            delete df;
  122|      0|            return;
  123|      0|        }
  124|      0|        fDateTimeFormatter->toPattern(fTimePattern);
  125|      0|    }
  126|       |
  127|       |    // Initialize the parent fCalendar, so that parse() works correctly.
  128|  4.94k|    initializeCalendar(nullptr, locale, status);
  129|  4.94k|    loadDates(status);
  130|  4.94k|}
_ZN6icu_7818RelativeDateFormatD2Ev:
  132|  10.9k|RelativeDateFormat::~RelativeDateFormat() {
  133|  10.9k|    delete fDateTimeFormatter;
  134|  10.9k|    delete fCombinedFormat;
  135|  10.9k|    uprv_free(fDates);
  ------------------
  |  | 1503|  10.9k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  10.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  10.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  10.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  136|  10.9k|#if !UCONFIG_NO_BREAK_ITERATION
  137|  10.9k|    delete fCapitalizationBrkIter;
  138|  10.9k|#endif
  139|  10.9k|}
_ZNK6icu_7818RelativeDateFormat6formatERNS_8CalendarERNS_13UnicodeStringERNS_13FieldPositionE:
  164|  2.52k|                                FieldPosition& pos) const {
  165|       |                                
  166|  2.52k|    UErrorCode status = U_ZERO_ERROR;
  167|  2.52k|    UnicodeString relativeDayString;
  168|  2.52k|    UDisplayContext capitalizationContext = getContext(UDISPCTX_TYPE_CAPITALIZATION, status);
  169|       |    
  170|       |    // calculate the difference, in days, between 'cal' and now.
  171|  2.52k|    int dayDiff = dayDifference(cal, status);
  172|       |
  173|       |    // look up string
  174|  2.52k|    int32_t len = 0;
  175|  2.52k|    const char16_t *theString = getStringForDay(dayDiff, len, status);
  176|  2.52k|    if(U_SUCCESS(status) && (theString!=nullptr)) {
  ------------------
  |  Branch (176:8): [True: 2.52k, False: 0]
  |  Branch (176:29): [True: 29, False: 2.50k]
  ------------------
  177|       |        // found a relative string
  178|     29|        relativeDayString.setTo(theString, len);
  179|     29|    }
  180|       |
  181|  2.52k|    if ( relativeDayString.length() > 0 && !fDatePattern.isEmpty() && 
  ------------------
  |  Branch (181:10): [True: 29, False: 2.50k]
  |  Branch (181:44): [True: 29, False: 0]
  ------------------
  182|  2.52k|         (fTimePattern.isEmpty() || fCombinedFormat == nullptr || fCombinedHasDateAtStart)) {
  ------------------
  |  Branch (182:11): [True: 9, False: 20]
  |  Branch (182:37): [True: 0, False: 20]
  |  Branch (182:67): [True: 17, False: 3]
  ------------------
  183|     26|#if !UCONFIG_NO_BREAK_ITERATION
  184|       |        // capitalize relativeDayString according to context for relative, set formatter no context
  185|     26|        if ( u_islower(relativeDayString.char32At(0)) && fCapitalizationBrkIter!= nullptr &&
  ------------------
  |  |  318|     26|#define u_islower U_ICU_ENTRY_POINT_RENAME(u_islower)
  |  |  ------------------
  |  |  |  |  123|     26|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     26|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     26|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (185:14): [True: 6, False: 20]
  |  Branch (185:58): [True: 0, False: 6]
  ------------------
  186|     26|             ( capitalizationContext==UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE ||
  ------------------
  |  Branch (186:16): [True: 0, False: 0]
  ------------------
  187|      0|               (capitalizationContext==UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU && fCapitalizationOfRelativeUnitsForUIListMenu) ||
  ------------------
  |  Branch (187:17): [True: 0, False: 0]
  |  Branch (187:87): [True: 0, False: 0]
  ------------------
  188|      0|               (capitalizationContext==UDISPCTX_CAPITALIZATION_FOR_STANDALONE && fCapitalizationOfRelativeUnitsForStandAlone) ) ) {
  ------------------
  |  Branch (188:17): [True: 0, False: 0]
  |  Branch (188:82): [True: 0, False: 0]
  ------------------
  189|       |            // titlecase first word of relativeDayString
  190|      0|            relativeDayString.toTitle(fCapitalizationBrkIter, fLocale, U_TITLECASE_NO_LOWERCASE | U_TITLECASE_NO_BREAK_ADJUSTMENT);
  ------------------
  |  |   85|      0|#define U_TITLECASE_NO_LOWERCASE 0x100
  ------------------
                          relativeDayString.toTitle(fCapitalizationBrkIter, fLocale, U_TITLECASE_NO_LOWERCASE | U_TITLECASE_NO_BREAK_ADJUSTMENT);
  ------------------
  |  |  109|      0|#define U_TITLECASE_NO_BREAK_ADJUSTMENT 0x200
  ------------------
  191|      0|        }
  192|     26|#endif
  193|     26|        fDateTimeFormatter->setContext(UDISPCTX_CAPITALIZATION_NONE, status);
  194|  2.50k|    } else {
  195|       |        // set our context for the formatter
  196|  2.50k|        fDateTimeFormatter->setContext(capitalizationContext, status);
  197|  2.50k|    }
  198|       |
  199|  2.52k|    if (fDatePattern.isEmpty()) {
  ------------------
  |  Branch (199:9): [True: 0, False: 2.52k]
  ------------------
  200|      0|        fDateTimeFormatter->applyPattern(fTimePattern);
  201|      0|        fDateTimeFormatter->format(cal,appendTo,pos);
  202|  2.52k|    } else if (fTimePattern.isEmpty() || fCombinedFormat == nullptr) {
  ------------------
  |  Branch (202:16): [True: 392, False: 2.13k]
  |  Branch (202:42): [True: 0, False: 2.13k]
  ------------------
  203|    392|        if (relativeDayString.length() > 0) {
  ------------------
  |  Branch (203:13): [True: 9, False: 383]
  ------------------
  204|      9|            appendTo.append(relativeDayString);
  205|    383|        } else {
  206|    383|            fDateTimeFormatter->applyPattern(fDatePattern);
  207|    383|            fDateTimeFormatter->format(cal,appendTo,pos);
  208|    383|        }
  209|  2.13k|    } else {
  210|  2.13k|        UnicodeString datePattern;
  211|  2.13k|        if (relativeDayString.length() > 0) {
  ------------------
  |  Branch (211:13): [True: 20, False: 2.11k]
  ------------------
  212|       |            // Need to quote the relativeDayString to make it a legal date pattern
  213|     20|            relativeDayString.findAndReplace(UNICODE_STRING("'", 1), UNICODE_STRING("''", 2)); // double any existing APOSTROPHE
  ------------------
  |  |  121|     20|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  ------------------
                          relativeDayString.findAndReplace(UNICODE_STRING("'", 1), UNICODE_STRING("''", 2)); // double any existing APOSTROPHE
  ------------------
  |  |  121|     20|# define UNICODE_STRING(cs, _length) icu::UnicodeString(true, u ## cs, _length)
  ------------------
  214|     20|            relativeDayString.insert(0, APOSTROPHE); // add APOSTROPHE at beginning...
  215|     20|            relativeDayString.append(APOSTROPHE); // and at end
  216|     20|            datePattern.setTo(relativeDayString);
  217|  2.11k|        } else {
  218|  2.11k|            datePattern.setTo(fDatePattern);
  219|  2.11k|        }
  220|  2.13k|        UnicodeString combinedPattern;
  221|  2.13k|        fCombinedFormat->format(fTimePattern, datePattern, combinedPattern, status);
  222|  2.13k|        fDateTimeFormatter->applyPattern(combinedPattern);
  223|  2.13k|        fDateTimeFormatter->format(cal,appendTo,pos);
  224|  2.13k|    }
  225|       |
  226|  2.52k|    return appendTo;
  227|  2.52k|}
_ZNK6icu_7818RelativeDateFormat15getStringForDayEiRiR10UErrorCode:
  358|  2.52k|const char16_t *RelativeDateFormat::getStringForDay(int32_t day, int32_t &len, UErrorCode &status) const {
  359|  2.52k|    if(U_FAILURE(status)) {
  ------------------
  |  Branch (359:8): [True: 0, False: 2.52k]
  ------------------
  360|      0|        return nullptr;
  361|      0|    }
  362|       |
  363|       |    // Is it inside the resource bundle's range?
  364|  2.52k|    int n = day + UDAT_DIRECTION_THIS;
  365|  2.52k|    if (n >= 0 && n < fDatesLen) {
  ------------------
  |  Branch (365:9): [True: 1.27k, False: 1.25k]
  |  Branch (365:19): [True: 31, False: 1.24k]
  ------------------
  366|     31|        if (fDates[n].offset == day && fDates[n].string != nullptr) {
  ------------------
  |  Branch (366:13): [True: 29, False: 2]
  |  Branch (366:40): [True: 29, False: 0]
  ------------------
  367|     29|            len = fDates[n].len;
  368|     29|            return fDates[n].string;
  369|     29|        }
  370|     31|    }
  371|  2.50k|    return nullptr;  // not found.
  372|  2.52k|}
_ZN6icu_7818RelativeDateFormat9loadDatesER10UErrorCode:
  526|  4.94k|void RelativeDateFormat::loadDates(UErrorCode &status) {
  527|  4.94k|    UResourceBundle *rb = ures_open(nullptr, fLocale.getBaseName(), &status);
  ------------------
  |  | 1691|  4.94k|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|  4.94k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.94k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.94k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  528|  4.94k|    LocalUResourceBundlePointer dateTimePatterns(
  529|  4.94k|        ures_getByKeyWithFallback(rb,
  ------------------
  |  | 1662|  4.94k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  4.94k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.94k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.94k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  530|  4.94k|                                  "calendar/gregorian/DateTimePatterns",
  531|  4.94k|                                  (UResourceBundle*)nullptr, &status));
  532|  4.94k|    if(U_SUCCESS(status)) {
  ------------------
  |  Branch (532:8): [True: 4.91k, False: 33]
  ------------------
  533|  4.91k|        int32_t patternsSize = ures_getSize(dateTimePatterns.getAlias());
  ------------------
  |  | 1674|  4.91k|#define ures_getSize U_ICU_ENTRY_POINT_RENAME(ures_getSize)
  |  |  ------------------
  |  |  |  |  123|  4.91k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.91k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.91k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  534|  4.91k|        if (patternsSize > kDateTime) {
  ------------------
  |  Branch (534:13): [True: 4.91k, False: 0]
  ------------------
  535|  4.91k|            int32_t resStrLen = 0;
  536|  4.91k|            int32_t glueIndex = kDateTime;
  537|  4.91k|            if (patternsSize >= (kDateTimeOffset + kShort + 1)) {
  ------------------
  |  Branch (537:17): [True: 4.91k, False: 0]
  ------------------
  538|  4.91k|                int32_t offsetIncrement = (fDateStyle & ~kRelative); // Remove relative bit.
  539|  4.91k|                if (offsetIncrement >= static_cast<int32_t>(kFull) &&
  ------------------
  |  Branch (539:21): [True: 4.91k, False: 0]
  ------------------
  540|  4.91k|                    offsetIncrement <= static_cast<int32_t>(kShortRelative)) {
  ------------------
  |  Branch (540:21): [True: 4.91k, False: 0]
  ------------------
  541|  4.91k|                    glueIndex = kDateTimeOffset + offsetIncrement;
  542|  4.91k|                }
  543|  4.91k|            }
  544|       |
  545|  4.91k|            const char16_t *resStr = ures_getStringByIndex(dateTimePatterns.getAlias(), glueIndex, &resStrLen, &status);
  ------------------
  |  | 1676|  4.91k|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|  4.91k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.91k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.91k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  546|  4.91k|            if (U_SUCCESS(status) && resStrLen >= patItem1Len && u_strncmp(resStr,patItem1,patItem1Len)==0) {
  ------------------
  |  |  396|  4.91k|#define u_strncmp U_ICU_ENTRY_POINT_RENAME(u_strncmp)
  |  |  ------------------
  |  |  |  |  123|  4.91k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.91k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.91k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (546:17): [True: 4.91k, False: 0]
  |  Branch (546:38): [True: 4.91k, False: 0]
  |  Branch (546:66): [True: 4.85k, False: 60]
  ------------------
  547|  4.85k|                fCombinedHasDateAtStart = true;
  548|  4.85k|            }
  549|  4.91k|            fCombinedFormat = new SimpleFormatter(UnicodeString(true, resStr, resStrLen), 2, 2, status);
  550|  4.91k|        }
  551|  4.91k|    }
  552|       |
  553|       |    // Data loading for relative names, e.g., "yesterday", "today", "tomorrow".
  554|  4.94k|    fDatesLen = UDAT_DIRECTION_COUNT; // Maximum defined by data.
  555|  4.94k|    fDates = static_cast<URelativeString*>(uprv_malloc(sizeof(fDates[0]) * fDatesLen));
  ------------------
  |  | 1524|  4.94k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  4.94k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.94k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.94k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  556|       |
  557|  4.94k|    RelDateFmtDataSink sink(fDates, fDatesLen);
  558|  4.94k|    ures_getAllItemsWithFallback(rb, "fields/day/relative", sink, status);
  ------------------
  |  | 1658|  4.94k|#define ures_getAllItemsWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getAllItemsWithFallback)
  |  |  ------------------
  |  |  |  |  123|  4.94k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.94k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.94k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  559|       |
  560|  4.94k|    ures_close(rb);
  ------------------
  |  | 1652|  4.94k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  4.94k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.94k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.94k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  561|       |
  562|  4.94k|    if(U_FAILURE(status)) {
  ------------------
  |  Branch (562:8): [True: 33, False: 4.91k]
  ------------------
  563|     33|        fDatesLen=0;
  564|     33|        return;
  565|     33|    }
  566|  4.94k|}
_ZN6icu_7818RelativeDateFormat18initializeCalendarEPNS_8TimeZoneERKNS_6LocaleER10UErrorCode:
  574|  4.94k|{
  575|  4.94k|    if(!U_FAILURE(status)) {
  ------------------
  |  Branch (575:8): [True: 4.94k, False: 0]
  ------------------
  576|  4.94k|        fCalendar = Calendar::createInstance(adoptZone?adoptZone:TimeZone::createDefault(), locale, status);
  ------------------
  |  Branch (576:46): [True: 0, False: 4.94k]
  ------------------
  577|  4.94k|    }
  578|  4.94k|    if (U_SUCCESS(status) && fCalendar == nullptr) {
  ------------------
  |  Branch (578:9): [True: 4.94k, False: 0]
  |  Branch (578:30): [True: 0, False: 4.94k]
  ------------------
  579|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  580|      0|    }
  581|  4.94k|    return fCalendar;
  582|  4.94k|}
_ZN6icu_7818RelativeDateFormat13dayDifferenceERNS_8CalendarER10UErrorCode:
  584|  2.52k|int32_t RelativeDateFormat::dayDifference(Calendar &cal, UErrorCode &status) {
  585|  2.52k|    if(U_FAILURE(status)) {
  ------------------
  |  Branch (585:8): [True: 0, False: 2.52k]
  ------------------
  586|      0|        return 0;
  587|      0|    }
  588|       |    // TODO: Cache the nowCal to avoid heap allocs? Would be difficult, don't know the calendar type
  589|  2.52k|    Calendar *nowCal = cal.clone();
  590|  2.52k|    nowCal->setTime(Calendar::getNow(), status);
  591|       |
  592|       |    // For the day difference, we are interested in the difference in the (modified) julian day number
  593|       |    // which is midnight to midnight.  Using fieldDifference() is NOT correct here, because 
  594|       |    // 6pm Jan 4th  to 10am Jan 5th should be considered "tomorrow".
  595|  2.52k|    int32_t dayDiff = cal.get(UCAL_JULIAN_DAY, status) - nowCal->get(UCAL_JULIAN_DAY, status);
  596|       |
  597|  2.52k|    delete nowCal;
  598|  2.52k|    return dayDiff;
  599|  2.52k|}
reldtfmt.cpp:_ZN6icu_7812_GLOBAL__N_118RelDateFmtDataSinkC2EPNS_15URelativeStringEi:
  485|  4.94k|  RelDateFmtDataSink(URelativeString* fDates, int32_t len) : fDatesPtr(fDates), fDatesLen(len) {
  486|  34.6k|    for (int32_t i = 0; i < fDatesLen; ++i) {
  ------------------
  |  Branch (486:25): [True: 29.6k, False: 4.94k]
  ------------------
  487|  29.6k|      fDatesPtr[i].offset = 0;
  488|  29.6k|      fDatesPtr[i].string = nullptr;
  489|  29.6k|      fDatesPtr[i].len = -1;
  490|  29.6k|    }
  491|  4.94k|  }
reldtfmt.cpp:_ZN6icu_7812_GLOBAL__N_118RelDateFmtDataSink3putEPKcRNS_13ResourceValueEaR10UErrorCode:
  496|  8.51k|                   UBool /*noFallback*/, UErrorCode &errorCode) override {
  497|  8.51k|      ResourceTable relDayTable = value.getTable(errorCode);
  498|  8.51k|      int32_t n = 0;
  499|  8.51k|      int32_t len = 0;
  500|  36.7k|      for (int32_t i = 0; relDayTable.getKeyAndValue(i, key, value); ++i) {
  ------------------
  |  Branch (500:27): [True: 28.2k, False: 8.51k]
  ------------------
  501|       |        // Find the relative offset.
  502|  28.2k|        int32_t offset = atoi(key);
  503|       |
  504|       |        // Put in the proper spot, but don't override existing data.
  505|  28.2k|        n = offset + UDAT_DIRECTION_THIS; // Converts to index in UDAT_R
  506|  28.2k|        if (0 <= n && n < fDatesLen && fDatesPtr[n].string == nullptr) {
  ------------------
  |  Branch (506:13): [True: 28.2k, False: 0]
  |  Branch (506:23): [True: 28.2k, False: 0]
  |  Branch (506:40): [True: 17.4k, False: 10.8k]
  ------------------
  507|       |          // Not found and n is an empty slot.
  508|  17.4k|          fDatesPtr[n].offset = offset;
  509|  17.4k|          fDatesPtr[n].string = value.getString(len, errorCode);
  510|  17.4k|          fDatesPtr[n].len = len;
  511|  17.4k|        }
  512|  28.2k|      }
  513|  8.51k|  }

_ZN6icu_7814SharedCalendarC2EPNS_8CalendarE:
   24|  9.47k|    SharedCalendar(Calendar *calToAdopt) : ptr(calToAdopt) { }
_ZNK6icu_7814SharedCalendarptEv:
   27|   106k|    const Calendar *operator->() const { return ptr; }

_ZN6icu_7823SharedDateFormatSymbolsC2ERKNS_6LocaleEPKcR10UErrorCode:
   29|  9.46k|            : dfs(loc, type, status) { }
_ZNK6icu_7823SharedDateFormatSymbols3getEv:
   31|  78.0k|    const DateFormatSymbols &get() const { return dfs; }

_ZNK6icu_7818SharedNumberFormatdeEv:
   28|    788|    const NumberFormat &operator*() const { return *ptr; }
_ZN6icu_7818SharedNumberFormatC2EPNS_12NumberFormatE:
   24|  10.9k|    SharedNumberFormat(NumberFormat *nfToAdopt) : ptr(nfToAdopt) { }
_ZNK6icu_7818SharedNumberFormatptEv:
   27|  59.2k|    const NumberFormat *operator->() const { return ptr; }

_ZN6icu_7814SimpleTimeZoneC2EiRKNS_13UnicodeStringE:
   66|    158|:   BasicTimeZone(ID),
   67|    158|    startMonth(0),
   68|    158|    startDay(0),
   69|    158|    startDayOfWeek(0),
   70|    158|    startTime(0),
   71|    158|    startTimeMode(WALL_TIME),
   72|    158|    endTimeMode(WALL_TIME),
   73|    158|    endMonth(0),
   74|    158|    endDay(0),
   75|    158|    endDayOfWeek(0),
   76|    158|    endTime(0),
   77|    158|    startYear(0),
   78|    158|    rawOffset(rawOffsetGMT),
   79|    158|    useDaylight(false),
   80|    158|    startMode(DOM_MODE),
   81|    158|    endMode(DOM_MODE),
   82|    158|    dstSavings(U_MILLIS_PER_HOUR)
  ------------------
  |  |  225|    158|#define U_MILLIS_PER_HOUR       (3600000)
  ------------------
   83|    158|{
   84|    158|    clearTransitionRules();
   85|    158|}
_ZN6icu_7814SimpleTimeZoneC2EiRKNS_13UnicodeStringEaaaiNS0_8TimeModeEaaaiS4_iR10UErrorCode:
  135|     64|:   BasicTimeZone(ID)
  136|     64|{
  137|     64|    clearTransitionRules();
  138|     64|    construct(rawOffsetGMT,
  139|     64|              savingsStartMonth, savingsStartDay, savingsStartDayOfWeek,
  140|     64|              savingsStartTime, savingsStartTimeMode,
  141|     64|              savingsEndMonth, savingsEndDay, savingsEndDayOfWeek,
  142|     64|              savingsEndTime, savingsEndTimeMode,
  143|     64|              savingsDST, status);
  144|     64|}
_ZN6icu_7814SimpleTimeZone9constructEiaaaiNS0_8TimeModeEaaaiS1_iR10UErrorCode:
  162|     64|{
  163|     64|    this->rawOffset      = rawOffsetGMT;
  164|     64|    this->startMonth     = savingsStartMonth;
  165|     64|    this->startDay       = savingsStartDay;
  166|     64|    this->startDayOfWeek = savingsStartDayOfWeek;
  167|     64|    this->startTime      = savingsStartTime;
  168|     64|    this->startTimeMode  = savingsStartTimeMode;
  169|     64|    this->endMonth       = savingsEndMonth;
  170|     64|    this->endDay         = savingsEndDay;
  171|     64|    this->endDayOfWeek   = savingsEndDayOfWeek;
  172|     64|    this->endTime        = savingsEndTime;
  173|     64|    this->endTimeMode    = savingsEndTimeMode;
  174|     64|    this->dstSavings     = savingsDST;
  175|     64|    this->startYear      = 0;
  176|     64|    this->startMode      = DOM_MODE;
  177|     64|    this->endMode        = DOM_MODE;
  178|       |
  179|     64|    decodeRules(status);
  180|       |
  181|     64|    if (savingsDST == 0) {
  ------------------
  |  Branch (181:9): [True: 0, False: 64]
  ------------------
  182|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  183|      0|    }
  184|     64|}
_ZN6icu_7814SimpleTimeZoneD2Ev:
  189|  1.81k|{
  190|  1.81k|    deleteTransitionRules();
  191|  1.81k|}
_ZN6icu_7814SimpleTimeZoneC2ERKS0_:
  197|  1.59k|:   BasicTimeZone(source)
  198|  1.59k|{
  199|  1.59k|    *this = source;
  200|  1.59k|}
_ZN6icu_7814SimpleTimeZoneaSERKS0_:
  207|  1.59k|{
  208|  1.59k|    if (this != &right)
  ------------------
  |  Branch (208:9): [True: 1.59k, False: 0]
  ------------------
  209|  1.59k|    {
  210|  1.59k|        TimeZone::operator=(right);
  211|  1.59k|        rawOffset      = right.rawOffset;
  212|  1.59k|        startMonth     = right.startMonth;
  213|  1.59k|        startDay       = right.startDay;
  214|  1.59k|        startDayOfWeek = right.startDayOfWeek;
  215|  1.59k|        startTime      = right.startTime;
  216|  1.59k|        startTimeMode  = right.startTimeMode;
  217|  1.59k|        startMode      = right.startMode;
  218|  1.59k|        endMonth       = right.endMonth;
  219|  1.59k|        endDay         = right.endDay;
  220|  1.59k|        endDayOfWeek   = right.endDayOfWeek;
  221|  1.59k|        endTime        = right.endTime;
  222|  1.59k|        endTimeMode    = right.endTimeMode;
  223|  1.59k|        endMode        = right.endMode;
  224|  1.59k|        startYear      = right.startYear;
  225|  1.59k|        dstSavings     = right.dstSavings;
  226|  1.59k|        useDaylight    = right.useDaylight;
  227|  1.59k|        clearTransitionRules();
  228|  1.59k|    }
  229|  1.59k|    return *this;
  230|  1.59k|}
_ZNK6icu_7814SimpleTimeZone5cloneEv:
  248|  1.59k|{
  249|  1.59k|    return new SimpleTimeZone(*this);
  250|  1.59k|}
_ZN6icu_7814SimpleTimeZone11decodeRulesER10UErrorCode:
  840|     64|{
  841|     64|    decodeStartRule(status);
  842|     64|    decodeEndRule(status);
  843|     64|}
_ZN6icu_7814SimpleTimeZone15decodeStartRuleER10UErrorCode:
  871|     64|{
  872|     64|    if(U_FAILURE(status)) return;
  ------------------
  |  Branch (872:8): [True: 0, False: 64]
  ------------------
  873|       |
  874|     64|    useDaylight = static_cast<UBool>(startDay != 0 && endDay != 0);
  ------------------
  |  Branch (874:38): [True: 64, False: 0]
  |  Branch (874:55): [True: 64, False: 0]
  ------------------
  875|     64|    if (useDaylight && dstSavings == 0) {
  ------------------
  |  Branch (875:9): [True: 64, False: 0]
  |  Branch (875:24): [True: 0, False: 64]
  ------------------
  876|      0|        dstSavings = U_MILLIS_PER_HOUR;
  ------------------
  |  |  225|      0|#define U_MILLIS_PER_HOUR       (3600000)
  ------------------
  877|      0|    }
  878|     64|    if (startDay != 0) {
  ------------------
  |  Branch (878:9): [True: 64, False: 0]
  ------------------
  879|     64|        if (startMonth < UCAL_JANUARY || startMonth > UCAL_DECEMBER) {
  ------------------
  |  Branch (879:13): [True: 0, False: 64]
  |  Branch (879:42): [True: 0, False: 64]
  ------------------
  880|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  881|      0|            return;
  882|      0|        }
  883|     64|        if (startTime < 0 || startTime > U_MILLIS_PER_DAY ||
  ------------------
  |  |  227|    128|#define U_MILLIS_PER_DAY       (86400000)
  ------------------
  |  Branch (883:13): [True: 0, False: 64]
  |  Branch (883:30): [True: 0, False: 64]
  ------------------
  884|     64|            startTimeMode < WALL_TIME || startTimeMode > UTC_TIME) {
  ------------------
  |  Branch (884:13): [True: 0, False: 64]
  |  Branch (884:42): [True: 0, False: 64]
  ------------------
  885|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  886|      0|            return;
  887|      0|        }
  888|     64|        if (startDayOfWeek == 0) {
  ------------------
  |  Branch (888:13): [True: 0, False: 64]
  ------------------
  889|      0|            startMode = DOM_MODE;
  890|     64|        } else {
  891|     64|            if (startDayOfWeek > 0) {
  ------------------
  |  Branch (891:17): [True: 0, False: 64]
  ------------------
  892|      0|                startMode = DOW_IN_MONTH_MODE;
  893|     64|            } else {
  894|     64|                startDayOfWeek = static_cast<int8_t>(-startDayOfWeek);
  895|     64|                if (startDay > 0) {
  ------------------
  |  Branch (895:21): [True: 32, False: 32]
  ------------------
  896|     32|                    startMode = DOW_GE_DOM_MODE;
  897|     32|                } else {
  898|     32|                    startDay = static_cast<int8_t>(-startDay);
  899|     32|                    startMode = DOW_LE_DOM_MODE;
  900|     32|                }
  901|     64|            }
  902|     64|            if (startDayOfWeek > UCAL_SATURDAY) {
  ------------------
  |  Branch (902:17): [True: 0, False: 64]
  ------------------
  903|      0|                status = U_ILLEGAL_ARGUMENT_ERROR;
  904|      0|                return;
  905|      0|            }
  906|     64|        }
  907|     64|        if (startMode == DOW_IN_MONTH_MODE) {
  ------------------
  |  Branch (907:13): [True: 0, False: 64]
  ------------------
  908|      0|            if (startDay < -5 || startDay > 5) {
  ------------------
  |  Branch (908:17): [True: 0, False: 0]
  |  Branch (908:34): [True: 0, False: 0]
  ------------------
  909|      0|                status = U_ILLEGAL_ARGUMENT_ERROR;
  910|      0|                return;
  911|      0|            }
  912|     64|        } else if (startDay<1 || startDay > STATICMONTHLENGTH[startMonth]) {
  ------------------
  |  Branch (912:20): [True: 0, False: 64]
  |  Branch (912:34): [True: 0, False: 64]
  ------------------
  913|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  914|      0|            return;
  915|      0|        }
  916|     64|    }
  917|     64|}
_ZN6icu_7814SimpleTimeZone13decodeEndRuleER10UErrorCode:
  926|     64|{
  927|     64|    if(U_FAILURE(status)) return;
  ------------------
  |  Branch (927:8): [True: 0, False: 64]
  ------------------
  928|       |
  929|     64|    useDaylight = static_cast<UBool>(startDay != 0 && endDay != 0);
  ------------------
  |  Branch (929:38): [True: 64, False: 0]
  |  Branch (929:55): [True: 64, False: 0]
  ------------------
  930|     64|    if (useDaylight && dstSavings == 0) {
  ------------------
  |  Branch (930:9): [True: 64, False: 0]
  |  Branch (930:24): [True: 0, False: 64]
  ------------------
  931|      0|        dstSavings = U_MILLIS_PER_HOUR;
  ------------------
  |  |  225|      0|#define U_MILLIS_PER_HOUR       (3600000)
  ------------------
  932|      0|    }
  933|     64|    if (endDay != 0) {
  ------------------
  |  Branch (933:9): [True: 64, False: 0]
  ------------------
  934|     64|        if (endMonth < UCAL_JANUARY || endMonth > UCAL_DECEMBER) {
  ------------------
  |  Branch (934:13): [True: 0, False: 64]
  |  Branch (934:40): [True: 0, False: 64]
  ------------------
  935|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  936|      0|            return;
  937|      0|        }
  938|     64|        if (endTime < 0 || endTime > U_MILLIS_PER_DAY ||
  ------------------
  |  |  227|    128|#define U_MILLIS_PER_DAY       (86400000)
  ------------------
  |  Branch (938:13): [True: 0, False: 64]
  |  Branch (938:28): [True: 0, False: 64]
  ------------------
  939|     64|            endTimeMode < WALL_TIME || endTimeMode > UTC_TIME) {
  ------------------
  |  Branch (939:13): [True: 0, False: 64]
  |  Branch (939:40): [True: 0, False: 64]
  ------------------
  940|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  941|      0|            return;
  942|      0|        }
  943|     64|        if (endDayOfWeek == 0) {
  ------------------
  |  Branch (943:13): [True: 0, False: 64]
  ------------------
  944|      0|            endMode = DOM_MODE;
  945|     64|        } else {
  946|     64|            if (endDayOfWeek > 0) {
  ------------------
  |  Branch (946:17): [True: 0, False: 64]
  ------------------
  947|      0|                endMode = DOW_IN_MONTH_MODE;
  948|     64|            } else {
  949|     64|                endDayOfWeek = static_cast<int8_t>(-endDayOfWeek);
  950|     64|                if (endDay > 0) {
  ------------------
  |  Branch (950:21): [True: 32, False: 32]
  ------------------
  951|     32|                    endMode = DOW_GE_DOM_MODE;
  952|     32|                } else {
  953|     32|                    endDay = static_cast<int8_t>(-endDay);
  954|     32|                    endMode = DOW_LE_DOM_MODE;
  955|     32|                }
  956|     64|            }
  957|     64|            if (endDayOfWeek > UCAL_SATURDAY) {
  ------------------
  |  Branch (957:17): [True: 0, False: 64]
  ------------------
  958|      0|                status = U_ILLEGAL_ARGUMENT_ERROR;
  959|      0|                return;
  960|      0|            }
  961|     64|        }
  962|     64|        if (endMode == DOW_IN_MONTH_MODE) {
  ------------------
  |  Branch (962:13): [True: 0, False: 64]
  ------------------
  963|      0|            if (endDay < -5 || endDay > 5) {
  ------------------
  |  Branch (963:17): [True: 0, False: 0]
  |  Branch (963:32): [True: 0, False: 0]
  ------------------
  964|      0|                status = U_ILLEGAL_ARGUMENT_ERROR;
  965|      0|                return;
  966|      0|            }
  967|     64|        } else if (endDay<1 || endDay > STATICMONTHLENGTH[endMonth]) {
  ------------------
  |  Branch (967:20): [True: 0, False: 64]
  |  Branch (967:32): [True: 0, False: 64]
  ------------------
  968|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  969|      0|            return;
  970|      0|        }
  971|     64|    }
  972|     64|}
_ZN6icu_7814SimpleTimeZone20clearTransitionRulesEv:
 1043|  3.63k|SimpleTimeZone::clearTransitionRules() {
 1044|  3.63k|    initialRule = nullptr;
 1045|  3.63k|    firstTransition = nullptr;
 1046|  3.63k|    stdRule = nullptr;
 1047|  3.63k|    dstRule = nullptr;
 1048|  3.63k|    transitionRulesInitialized = false;
 1049|  3.63k|}
_ZN6icu_7814SimpleTimeZone21deleteTransitionRulesEv:
 1052|  1.81k|SimpleTimeZone::deleteTransitionRules() {
 1053|  1.81k|    delete initialRule;
 1054|  1.81k|    delete firstTransition;
 1055|  1.81k|    delete stdRule;
 1056|  1.81k|    delete dstRule;
 1057|  1.81k|    clearTransitionRules();
 1058|  1.81k| }

_ZN6icu_7816SimpleDateFormat10NSOverrideD2Ev:
  251|  1.48k|SimpleDateFormat::NSOverride::~NSOverride() {
  252|  1.48k|    if (snf != nullptr) {
  ------------------
  |  Branch (252:9): [True: 1.47k, False: 7]
  ------------------
  253|  1.47k|        snf->removeRef();
  254|  1.47k|    }
  255|  1.48k|}
_ZN6icu_7816SimpleDateFormat10NSOverride4freeEv:
  258|  1.47k|void SimpleDateFormat::NSOverride::free() {
  259|  1.47k|    NSOverride *cur = this;
  260|  2.95k|    while (cur) {
  ------------------
  |  Branch (260:12): [True: 1.47k, False: 1.47k]
  ------------------
  261|  1.47k|        NSOverride *next_temp = cur->next;
  262|  1.47k|        delete cur;
  263|  1.47k|        cur = next_temp;
  264|  1.47k|    }
  265|  1.47k|}
_ZNK6icu_7816SimpleDateFormat22getNumberFormatByIndexE16UDateFormatField:
  323|   132k|        UDateFormatField index) const {
  324|   132k|    if (fSharedNumberFormatters == nullptr ||
  ------------------
  |  Branch (324:9): [True: 128k, False: 3.91k]
  ------------------
  325|   132k|        fSharedNumberFormatters[index] == nullptr) {
  ------------------
  |  Branch (325:9): [True: 3.12k, False: 788]
  ------------------
  326|   131k|        return fNumberFormat;
  327|   131k|    }
  328|    788|    return &(**fSharedNumberFormatters[index]);
  329|   132k|}
_ZN6icu_7816SimpleDateFormatD2Ev:
  334|  78.7k|{
  335|  78.7k|    delete fSymbols;
  336|  78.7k|    if (fSharedNumberFormatters) {
  ------------------
  |  Branch (336:9): [True: 1.18k, False: 77.5k]
  ------------------
  337|  1.18k|        freeSharedNumberFormatters(fSharedNumberFormatters);
  338|  1.18k|    }
  339|  78.7k|    delete fTimeZoneFormat;
  340|  78.7k|    delete fSimpleNumberFormatter;
  341|       |
  342|  78.7k|#if !UCONFIG_NO_BREAK_ITERATION
  343|  78.7k|    delete fCapitalizationBrkIter;
  344|  78.7k|#endif
  345|  78.7k|}
_ZN6icu_7816SimpleDateFormatC2ERKNS_13UnicodeStringERKNS_6LocaleER10UErrorCode:
  398|  23.2k|:   fPattern(pattern),
  399|  23.2k|    fLocale(locale)
  400|  23.2k|{
  401|       |
  402|  23.2k|    fDateOverride.setToBogus();
  403|  23.2k|    fTimeOverride.setToBogus();
  404|  23.2k|    initializeBooleanAttributes();
  405|       |
  406|  23.2k|    initializeCalendar(nullptr,fLocale,status);
  407|  23.2k|    fSymbols = DateFormatSymbols::createForLocale(fLocale, status);
  408|  23.2k|    initialize(fLocale, status);
  409|  23.2k|    initializeDefaultCentury();
  410|  23.2k|}
_ZN6icu_7816SimpleDateFormatC2ENS_10DateFormat6EStyleES2_RKNS_6LocaleER10UErrorCode:
  480|  35.3k|:   fLocale(locale)
  481|  35.3k|{
  482|  35.3k|    initializeBooleanAttributes();
  483|  35.3k|    construct(timeStyle, dateStyle, fLocale, status);
  484|  35.3k|    if(U_SUCCESS(status)) {
  ------------------
  |  Branch (484:8): [True: 15.2k, False: 20.1k]
  ------------------
  485|  15.2k|      initializeDefaultCentury();
  486|  15.2k|    }
  487|  35.3k|}
_ZN6icu_7816SimpleDateFormatC2ERKNS_6LocaleER10UErrorCode:
  498|  20.1k|:   fPattern(gDefaultPattern),
  499|  20.1k|    fLocale(locale)
  500|  20.1k|{
  501|  20.1k|    if (U_FAILURE(status)) return;
  ------------------
  |  Branch (501:9): [True: 0, False: 20.1k]
  ------------------
  502|  20.1k|    initializeBooleanAttributes();
  503|  20.1k|    initializeCalendar(nullptr, fLocale, status);
  504|  20.1k|    fSymbols = DateFormatSymbols::createForLocale(fLocale, status);
  505|  20.1k|    if (U_FAILURE(status))
  ------------------
  |  Branch (505:9): [True: 310, False: 19.7k]
  ------------------
  506|    310|    {
  507|    310|        status = U_ZERO_ERROR;
  508|    310|        delete fSymbols;
  509|       |        // This constructor doesn't fail; it uses last resort data
  510|    310|        fSymbols = new DateFormatSymbols(status);
  511|       |        /* test for nullptr */
  512|    310|        if (fSymbols == nullptr) {
  ------------------
  |  Branch (512:13): [True: 0, False: 310]
  ------------------
  513|      0|            status = U_MEMORY_ALLOCATION_ERROR;
  514|      0|            return;
  515|      0|        }
  516|    310|    }
  517|       |
  518|  20.1k|    fDateOverride.setToBogus();
  519|  20.1k|    fTimeOverride.setToBogus();
  520|       |
  521|  20.1k|    initialize(fLocale, status);
  522|  20.1k|    if(U_SUCCESS(status)) {
  ------------------
  |  Branch (522:8): [True: 19.4k, False: 655]
  ------------------
  523|  19.4k|      initializeDefaultCentury();
  524|  19.4k|    }
  525|  20.1k|}
_ZN6icu_7816SimpleDateFormat9constructENS_10DateFormat6EStyleES2_RKNS_6LocaleER10UErrorCode:
  665|  35.3k|{
  666|       |    // called by several constructors to load pattern data from the resources
  667|  35.3k|    if (U_FAILURE(status)) return;
  ------------------
  |  Branch (667:9): [True: 0, False: 35.3k]
  ------------------
  668|       |
  669|       |    // We will need the calendar to know what type of symbols to load.
  670|  35.3k|    initializeCalendar(nullptr, locale, status);
  671|  35.3k|    if (U_FAILURE(status)) return;
  ------------------
  |  Branch (671:9): [True: 0, False: 35.3k]
  ------------------
  672|       |
  673|       |    // Load date time patterns directly from resources.
  674|  35.3k|    const char* cType = fCalendar ? fCalendar->getType() : nullptr;
  ------------------
  |  Branch (674:25): [True: 35.3k, False: 0]
  ------------------
  675|  35.3k|    LocalUResourceBundlePointer bundle(ures_open(nullptr, locale.getBaseName(), &status));
  ------------------
  |  | 1691|  35.3k|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|  35.3k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  35.3k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  35.3k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  676|  35.3k|    if (U_FAILURE(status)) return;
  ------------------
  |  Branch (676:9): [True: 121, False: 35.2k]
  ------------------
  677|       |
  678|  35.2k|    UBool cTypeIsGregorian = true;
  679|  35.2k|    LocalUResourceBundlePointer dateTimePatterns;
  680|  35.2k|    if (cType != nullptr && uprv_strcmp(cType, "gregorian") != 0) {
  ------------------
  |  |   38|  35.2k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  35.2k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (680:9): [True: 35.2k, False: 0]
  |  Branch (680:29): [True: 1.58k, False: 33.6k]
  ------------------
  681|  1.58k|        CharString resourcePath("calendar/", status);
  682|  1.58k|        resourcePath.append(cType, status).append("/DateTimePatterns", status);
  683|  1.58k|        dateTimePatterns.adoptInstead(
  684|  1.58k|            ures_getByKeyWithFallback(bundle.getAlias(), resourcePath.data(),
  ------------------
  |  | 1662|  1.58k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  1.58k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.58k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.58k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  685|  1.58k|                                      (UResourceBundle*)nullptr, &status));
  686|  1.58k|        cTypeIsGregorian = false;
  687|  1.58k|    }
  688|       |
  689|       |    // Check for "gregorian" fallback.
  690|  35.2k|    if (cTypeIsGregorian || status == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (690:9): [True: 33.6k, False: 1.58k]
  |  Branch (690:29): [True: 17, False: 1.57k]
  ------------------
  691|  33.7k|        status = U_ZERO_ERROR;
  692|  33.7k|        dateTimePatterns.adoptInstead(
  693|  33.7k|            ures_getByKeyWithFallback(bundle.getAlias(),
  ------------------
  |  | 1662|  33.7k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  33.7k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  33.7k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  33.7k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  694|  33.7k|                                      "calendar/gregorian/DateTimePatterns",
  695|  33.7k|                                      (UResourceBundle*)nullptr, &status));
  696|  33.7k|    }
  697|  35.2k|    if (U_FAILURE(status)) return;
  ------------------
  |  Branch (697:9): [True: 189, False: 35.0k]
  ------------------
  698|       |
  699|  35.0k|    LocalUResourceBundlePointer currentBundle;
  700|       |
  701|  35.0k|    if (ures_getSize(dateTimePatterns.getAlias()) <= kDateTime)
  ------------------
  |  | 1674|  35.0k|#define ures_getSize U_ICU_ENTRY_POINT_RENAME(ures_getSize)
  |  |  ------------------
  |  |  |  |  123|  35.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  35.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  35.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (701:9): [True: 0, False: 35.0k]
  ------------------
  702|      0|    {
  703|      0|        status = U_INVALID_FORMAT_ERROR;
  704|      0|        return;
  705|      0|    }
  706|       |
  707|  35.0k|    setLocaleIDs(ures_getLocaleByType(dateTimePatterns.getAlias(), ULOC_VALID_LOCALE, &status),
  ------------------
  |  | 1669|  35.0k|#define ures_getLocaleByType U_ICU_ENTRY_POINT_RENAME(ures_getLocaleByType)
  |  |  ------------------
  |  |  |  |  123|  35.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  35.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  35.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  708|  35.0k|                 ures_getLocaleByType(dateTimePatterns.getAlias(), ULOC_ACTUAL_LOCALE, &status));
  ------------------
  |  | 1669|  35.0k|#define ures_getLocaleByType U_ICU_ENTRY_POINT_RENAME(ures_getLocaleByType)
  |  |  ------------------
  |  |  |  |  123|  35.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  35.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  35.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  709|       |
  710|       |    // create a symbols object from the locale
  711|  35.0k|    fSymbols = DateFormatSymbols::createForLocale(locale, status);
  712|  35.0k|    if (U_FAILURE(status)) return;
  ------------------
  |  Branch (712:9): [True: 0, False: 35.0k]
  ------------------
  713|       |    /* test for nullptr */
  714|  35.0k|    if (fSymbols == nullptr) {
  ------------------
  |  Branch (714:9): [True: 0, False: 35.0k]
  ------------------
  715|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  716|      0|        return;
  717|      0|    }
  718|       |
  719|  35.0k|    const char16_t *resStr,*ovrStr;
  720|  35.0k|    int32_t resStrLen,ovrStrLen = 0;
  721|  35.0k|    fDateOverride.setToBogus();
  722|  35.0k|    fTimeOverride.setToBogus();
  723|       |
  724|  35.0k|    UnicodeString timePattern;
  725|  35.0k|    if (timeStyle >= kFull && timeStyle <= kShort) {
  ------------------
  |  Branch (725:9): [True: 25.5k, False: 9.58k]
  |  Branch (725:31): [True: 11.4k, False: 14.0k]
  ------------------
  726|  11.4k|        bool hasRgOrHcSubtag = false;
  727|       |        // also use DTPG if the locale has the "rg" or "hc" ("hours") subtag-- even if the overriding region
  728|       |        // or hour cycle is the same as the one we get by default, we go through the DateTimePatternGenerator
  729|  11.4k|        UErrorCode dummyErr1 = U_ZERO_ERROR, dummyErr2 = U_ZERO_ERROR;
  730|  11.4k|        if (locale.getKeywordValue("rg", nullptr, 0, dummyErr1) > 0 || locale.getKeywordValue("hours", nullptr, 0, dummyErr2) > 0) {
  ------------------
  |  Branch (730:13): [True: 80, False: 11.3k]
  |  Branch (730:72): [True: 53, False: 11.2k]
  ------------------
  731|    133|            hasRgOrHcSubtag = true;
  732|    133|        }
  733|       |
  734|  11.4k|        const char* baseLocID = locale.getBaseName();
  735|  11.4k|        if (baseLocID != nullptr && uprv_strcmp(baseLocID,"und")!=0) {
  ------------------
  |  |   38|  11.1k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  11.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (735:13): [True: 11.1k, False: 276]
  |  Branch (735:37): [True: 11.1k, False: 0]
  ------------------
  736|  11.1k|            UErrorCode useStatus = U_ZERO_ERROR;
  737|  11.1k|            Locale baseLoc(baseLocID);
  738|  11.1k|            Locale validLoc(getLocale(ULOC_VALID_LOCALE, useStatus));
  739|  11.1k|            if (hasRgOrHcSubtag || (U_SUCCESS(useStatus) && validLoc!=baseLoc)) {
  ------------------
  |  Branch (739:17): [True: 133, False: 10.9k]
  |  Branch (739:37): [True: 10.9k, False: 0]
  |  Branch (739:61): [True: 4.25k, False: 6.74k]
  ------------------
  740|  4.38k|                bool useDTPG = hasRgOrHcSubtag;
  741|  4.38k|                const char* baseReg = baseLoc.getCountry(); // empty string if no region
  742|  4.38k|                if ((baseReg != nullptr && baseReg[0] != 0 &&
  ------------------
  |  Branch (742:22): [True: 4.38k, False: 0]
  |  Branch (742:44): [True: 1.11k, False: 3.26k]
  ------------------
  743|  4.38k|                     uprv_strncmp(baseReg,validLoc.getCountry(),ULOC_COUNTRY_CAPACITY)!=0)
  ------------------
  |  |   44|  1.11k|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|  1.11k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (743:22): [True: 1.08k, False: 33]
  ------------------
  744|  4.38k|                        || uprv_strncmp(baseLoc.getLanguage(),validLoc.getLanguage(),ULOC_LANG_CAPACITY)!=0) {
  ------------------
  |  |   44|  3.29k|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|  3.29k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (744:28): [True: 2.81k, False: 486]
  ------------------
  745|       |                    // use DTPG if
  746|       |                    // * baseLoc has a region and validLoc does not have the same one (or has none), OR
  747|       |                    // * validLoc has a different language code than baseLoc
  748|       |                    // * the original locale has the rg or hc subtag
  749|  3.89k|                    useDTPG = true;
  750|  3.89k|                }
  751|  4.38k|                if (useDTPG) {
  ------------------
  |  Branch (751:21): [True: 3.97k, False: 412]
  ------------------
  752|       |                    // The standard time formats may have the wrong time cycle, because:
  753|       |                    // the valid locale differs in important ways (region, language) from
  754|       |                    // the base locale.
  755|       |                    // We could *also* check whether they do actually have a mismatch with
  756|       |                    // the time cycle preferences for the region, but that is a lot more
  757|       |                    // work for little or no additional benefit, since just going ahead
  758|       |                    // and always synthesizing the time format as per the following should
  759|       |                    // create a locale-appropriate pattern with cycle that matches the
  760|       |                    // region preferences anyway.
  761|  3.97k|                    LocalPointer<DateTimePatternGenerator> dtpg(DateTimePatternGenerator::createInstanceNoStdPat(locale, useStatus));
  762|  3.97k|                    if (U_SUCCESS(useStatus)) {
  ------------------
  |  Branch (762:25): [True: 3.53k, False: 439]
  ------------------
  763|  3.53k|                        UnicodeString timeSkeleton(true, timeSkeletons[timeStyle], -1);
  764|  3.53k|                        timePattern = dtpg->getBestPattern(timeSkeleton, useStatus);
  765|  3.53k|                    }
  766|  3.97k|                }
  767|  4.38k|            }
  768|  11.1k|        }
  769|  11.4k|    }
  770|       |
  771|       |    // if the pattern should include both date and time information, use the date/time
  772|       |    // pattern string as a guide to tell use how to glue together the appropriate date
  773|       |    // and time pattern strings.
  774|  35.0k|    if ((timeStyle != kNone) && (dateStyle != kNone))
  ------------------
  |  Branch (774:9): [True: 27.6k, False: 7.42k]
  |  Branch (774:33): [True: 20.9k, False: 6.68k]
  ------------------
  775|  20.9k|    {
  776|  20.9k|        UnicodeString tempus1(timePattern);
  777|  20.9k|        if (tempus1.length() == 0) {
  ------------------
  |  Branch (777:13): [True: 19.0k, False: 1.92k]
  ------------------
  778|  19.0k|            currentBundle.adoptInstead(
  779|  19.0k|                    ures_getByIndex(dateTimePatterns.getAlias(), static_cast<int32_t>(timeStyle), nullptr, &status));
  ------------------
  |  | 1660|  19.0k|#define ures_getByIndex U_ICU_ENTRY_POINT_RENAME(ures_getByIndex)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  780|  19.0k|            if (U_FAILURE(status)) {
  ------------------
  |  Branch (780:17): [True: 12.4k, False: 6.58k]
  ------------------
  781|  12.4k|               status = U_INVALID_FORMAT_ERROR;
  782|  12.4k|               return;
  783|  12.4k|            }
  784|  6.58k|            switch (ures_getType(currentBundle.getAlias())) {
  ------------------
  |  | 1679|  6.58k|#define ures_getType U_ICU_ENTRY_POINT_RENAME(ures_getType)
  |  |  ------------------
  |  |  |  |  123|  6.58k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.58k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.58k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  785|  6.23k|                case URES_STRING: {
  ------------------
  |  Branch (785:17): [True: 6.23k, False: 345]
  ------------------
  786|  6.23k|                   resStr = ures_getString(currentBundle.getAlias(), &resStrLen, &status);
  ------------------
  |  | 1675|  6.23k|#define ures_getString U_ICU_ENTRY_POINT_RENAME(ures_getString)
  |  |  ------------------
  |  |  |  |  123|  6.23k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.23k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.23k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  787|  6.23k|                   break;
  788|      0|                }
  789|    345|                case URES_ARRAY: {
  ------------------
  |  Branch (789:17): [True: 345, False: 6.23k]
  ------------------
  790|    345|                   resStr = ures_getStringByIndex(currentBundle.getAlias(), 0, &resStrLen, &status);
  ------------------
  |  | 1676|    345|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|    345|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    345|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    345|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  791|    345|                   ovrStr = ures_getStringByIndex(currentBundle.getAlias(), 1, &ovrStrLen, &status);
  ------------------
  |  | 1676|    345|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|    345|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    345|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    345|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  792|    345|                   fTimeOverride.setTo(true, ovrStr, ovrStrLen);
  793|    345|                   break;
  794|      0|                }
  795|      0|                default: {
  ------------------
  |  Branch (795:17): [True: 0, False: 6.58k]
  ------------------
  796|      0|                   status = U_INVALID_FORMAT_ERROR;
  797|      0|                   return;
  798|      0|                }
  799|  6.58k|            }
  800|       |
  801|  6.58k|            tempus1.setTo(true, resStr, resStrLen);
  802|  6.58k|        }
  803|       |
  804|  8.50k|        currentBundle.adoptInstead(
  805|  8.50k|                ures_getByIndex(dateTimePatterns.getAlias(), static_cast<int32_t>(dateStyle), nullptr, &status));
  ------------------
  |  | 1660|  8.50k|#define ures_getByIndex U_ICU_ENTRY_POINT_RENAME(ures_getByIndex)
  |  |  ------------------
  |  |  |  |  123|  8.50k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  8.50k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  8.50k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  806|  8.50k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (806:13): [True: 3.56k, False: 4.94k]
  ------------------
  807|  3.56k|           status = U_INVALID_FORMAT_ERROR;
  808|  3.56k|           return;
  809|  3.56k|        }
  810|  4.94k|        switch (ures_getType(currentBundle.getAlias())) {
  ------------------
  |  | 1679|  4.94k|#define ures_getType U_ICU_ENTRY_POINT_RENAME(ures_getType)
  |  |  ------------------
  |  |  |  |  123|  4.94k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.94k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.94k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  811|  4.42k|            case URES_STRING: {
  ------------------
  |  Branch (811:13): [True: 4.42k, False: 519]
  ------------------
  812|  4.42k|               resStr = ures_getString(currentBundle.getAlias(), &resStrLen, &status);
  ------------------
  |  | 1675|  4.42k|#define ures_getString U_ICU_ENTRY_POINT_RENAME(ures_getString)
  |  |  ------------------
  |  |  |  |  123|  4.42k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.42k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.42k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  813|  4.42k|               break;
  814|      0|            }
  815|    519|            case URES_ARRAY: {
  ------------------
  |  Branch (815:13): [True: 519, False: 4.42k]
  ------------------
  816|    519|               resStr = ures_getStringByIndex(currentBundle.getAlias(), 0, &resStrLen, &status);
  ------------------
  |  | 1676|    519|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|    519|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    519|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    519|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  817|    519|               ovrStr = ures_getStringByIndex(currentBundle.getAlias(), 1, &ovrStrLen, &status);
  ------------------
  |  | 1676|    519|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|    519|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    519|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    519|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  818|    519|               fDateOverride.setTo(true, ovrStr, ovrStrLen);
  819|    519|               break;
  820|      0|            }
  821|      0|            default: {
  ------------------
  |  Branch (821:13): [True: 0, False: 4.94k]
  ------------------
  822|      0|               status = U_INVALID_FORMAT_ERROR;
  823|      0|               return;
  824|      0|            }
  825|  4.94k|        }
  826|       |
  827|  4.94k|        UnicodeString tempus2(true, resStr, resStrLen);
  828|       |
  829|       |        // Currently, for compatibility with pre-CLDR-42 data, we default to the "atTime"
  830|       |        // combining patterns. Depending on guidance in CLDR 42 spec and on DisplayOptions,
  831|       |        // we may change this.
  832|  4.94k|        LocalUResourceBundlePointer dateAtTimePatterns;
  833|  4.94k|        if (!cTypeIsGregorian) {
  ------------------
  |  Branch (833:13): [True: 205, False: 4.73k]
  ------------------
  834|    205|            CharString resourcePath("calendar/", status);
  835|    205|            resourcePath.append(cType, status).append("/DateTimePatterns%atTime", status);
  836|    205|            dateAtTimePatterns.adoptInstead(
  837|    205|                ures_getByKeyWithFallback(bundle.getAlias(), resourcePath.data(),
  ------------------
  |  | 1662|    205|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|    205|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    205|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    205|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  838|    205|                                          nullptr, &status));
  839|    205|        }
  840|  4.94k|        if (cTypeIsGregorian || status == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (840:13): [True: 4.73k, False: 205]
  |  Branch (840:33): [True: 201, False: 4]
  ------------------
  841|  4.94k|            status = U_ZERO_ERROR;
  842|  4.94k|            dateAtTimePatterns.adoptInstead(
  843|  4.94k|                ures_getByKeyWithFallback(bundle.getAlias(),
  ------------------
  |  | 1662|  4.94k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  4.94k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.94k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.94k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  844|  4.94k|                                          "calendar/gregorian/DateTimePatterns%atTime",
  845|  4.94k|                                          nullptr, &status));
  846|  4.94k|        }
  847|  4.94k|        if (U_SUCCESS(status) && ures_getSize(dateAtTimePatterns.getAlias()) >= 4) {
  ------------------
  |  | 1674|  2.86k|#define ures_getSize U_ICU_ENTRY_POINT_RENAME(ures_getSize)
  |  |  ------------------
  |  |  |  |  123|  2.86k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.86k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.86k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (847:13): [True: 2.86k, False: 2.08k]
  |  Branch (847:34): [True: 2.86k, False: 0]
  ------------------
  848|  2.86k|            resStr = ures_getStringByIndex(dateAtTimePatterns.getAlias(), dateStyle - kDateOffset, &resStrLen, &status);
  ------------------
  |  | 1676|  2.86k|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|  2.86k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.86k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.86k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  849|  2.86k|        } else {
  850|  2.08k|            status = U_ZERO_ERROR;
  851|  2.08k|            int32_t glueIndex = kDateTime;
  852|  2.08k|            int32_t patternsSize = ures_getSize(dateTimePatterns.getAlias());
  ------------------
  |  | 1674|  2.08k|#define ures_getSize U_ICU_ENTRY_POINT_RENAME(ures_getSize)
  |  |  ------------------
  |  |  |  |  123|  2.08k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.08k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.08k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  853|  2.08k|            if (patternsSize >= (kDateTimeOffset + kShort + 1)) {
  ------------------
  |  Branch (853:17): [True: 2.08k, False: 0]
  ------------------
  854|       |                // Get proper date time format
  855|  2.08k|                glueIndex = static_cast<int32_t>(kDateTimeOffset + (dateStyle - kDateOffset));
  856|  2.08k|            }
  857|       |
  858|  2.08k|            resStr = ures_getStringByIndex(dateTimePatterns.getAlias(), glueIndex, &resStrLen, &status);
  ------------------
  |  | 1676|  2.08k|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|  2.08k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.08k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.08k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  859|  2.08k|        }
  860|  4.94k|        SimpleFormatter(UnicodeString(true, resStr, resStrLen), 2, 2, status).
  861|  4.94k|                format(tempus1, tempus2, fPattern, status);
  862|  4.94k|    }
  863|       |    // if the pattern includes just time data or just date date, load the appropriate
  864|       |    // pattern string from the resources
  865|       |    // setTo() - see DateFormatSymbols::assignArray comments
  866|  14.1k|    else if (timeStyle != kNone) {
  ------------------
  |  Branch (866:14): [True: 6.68k, False: 7.42k]
  ------------------
  867|  6.68k|        fPattern.setTo(timePattern);
  868|  6.68k|        if (fPattern.length() == 0) {
  ------------------
  |  Branch (868:13): [True: 5.08k, False: 1.60k]
  ------------------
  869|  5.08k|            currentBundle.adoptInstead(
  870|  5.08k|                    ures_getByIndex(dateTimePatterns.getAlias(), static_cast<int32_t>(timeStyle), nullptr, &status));
  ------------------
  |  | 1660|  5.08k|#define ures_getByIndex U_ICU_ENTRY_POINT_RENAME(ures_getByIndex)
  |  |  ------------------
  |  |  |  |  123|  5.08k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.08k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.08k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  871|  5.08k|            if (U_FAILURE(status)) {
  ------------------
  |  Branch (871:17): [True: 697, False: 4.38k]
  ------------------
  872|    697|               status = U_INVALID_FORMAT_ERROR;
  873|    697|               return;
  874|    697|            }
  875|  4.38k|            switch (ures_getType(currentBundle.getAlias())) {
  ------------------
  |  | 1679|  4.38k|#define ures_getType U_ICU_ENTRY_POINT_RENAME(ures_getType)
  |  |  ------------------
  |  |  |  |  123|  4.38k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.38k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.38k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  876|  4.38k|                case URES_STRING: {
  ------------------
  |  Branch (876:17): [True: 4.38k, False: 4]
  ------------------
  877|  4.38k|                   resStr = ures_getString(currentBundle.getAlias(), &resStrLen, &status);
  ------------------
  |  | 1675|  4.38k|#define ures_getString U_ICU_ENTRY_POINT_RENAME(ures_getString)
  |  |  ------------------
  |  |  |  |  123|  4.38k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.38k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.38k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  878|  4.38k|                   break;
  879|      0|                }
  880|      4|                case URES_ARRAY: {
  ------------------
  |  Branch (880:17): [True: 4, False: 4.38k]
  ------------------
  881|      4|                   resStr = ures_getStringByIndex(currentBundle.getAlias(), 0, &resStrLen, &status);
  ------------------
  |  | 1676|      4|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  882|      4|                   ovrStr = ures_getStringByIndex(currentBundle.getAlias(), 1, &ovrStrLen, &status);
  ------------------
  |  | 1676|      4|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  883|      4|                   fDateOverride.setTo(true, ovrStr, ovrStrLen);
  884|      4|                   break;
  885|      0|                }
  886|      0|                default: {
  ------------------
  |  Branch (886:17): [True: 0, False: 4.38k]
  ------------------
  887|      0|                   status = U_INVALID_FORMAT_ERROR;
  888|      0|                   return;
  889|      0|                }
  890|  4.38k|            }
  891|  4.38k|            fPattern.setTo(true, resStr, resStrLen);
  892|  4.38k|        }
  893|  6.68k|    }
  894|  7.42k|    else if (dateStyle != kNone) {
  ------------------
  |  Branch (894:14): [True: 6.14k, False: 1.28k]
  ------------------
  895|  6.14k|        currentBundle.adoptInstead(
  896|  6.14k|                ures_getByIndex(dateTimePatterns.getAlias(), static_cast<int32_t>(dateStyle), nullptr, &status));
  ------------------
  |  | 1660|  6.14k|#define ures_getByIndex U_ICU_ENTRY_POINT_RENAME(ures_getByIndex)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  897|  6.14k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (897:13): [True: 377, False: 5.77k]
  ------------------
  898|    377|           status = U_INVALID_FORMAT_ERROR;
  899|    377|           return;
  900|    377|        }
  901|  5.77k|        switch (ures_getType(currentBundle.getAlias())) {
  ------------------
  |  | 1679|  5.77k|#define ures_getType U_ICU_ENTRY_POINT_RENAME(ures_getType)
  |  |  ------------------
  |  |  |  |  123|  5.77k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.77k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.77k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  902|  5.13k|            case URES_STRING: {
  ------------------
  |  Branch (902:13): [True: 5.13k, False: 642]
  ------------------
  903|  5.13k|               resStr = ures_getString(currentBundle.getAlias(), &resStrLen, &status);
  ------------------
  |  | 1675|  5.13k|#define ures_getString U_ICU_ENTRY_POINT_RENAME(ures_getString)
  |  |  ------------------
  |  |  |  |  123|  5.13k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.13k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.13k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  904|  5.13k|               break;
  905|      0|            }
  906|    642|            case URES_ARRAY: {
  ------------------
  |  Branch (906:13): [True: 642, False: 5.13k]
  ------------------
  907|    642|               resStr = ures_getStringByIndex(currentBundle.getAlias(), 0, &resStrLen, &status);
  ------------------
  |  | 1676|    642|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|    642|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    642|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    642|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  908|    642|               ovrStr = ures_getStringByIndex(currentBundle.getAlias(), 1, &ovrStrLen, &status);
  ------------------
  |  | 1676|    642|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|    642|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    642|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    642|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  909|    642|               fDateOverride.setTo(true, ovrStr, ovrStrLen);
  910|    642|               break;
  911|      0|            }
  912|      0|            default: {
  ------------------
  |  Branch (912:13): [True: 0, False: 5.77k]
  ------------------
  913|      0|               status = U_INVALID_FORMAT_ERROR;
  914|      0|               return;
  915|      0|            }
  916|  5.77k|        }
  917|  5.77k|        fPattern.setTo(true, resStr, resStrLen);
  918|  5.77k|    }
  919|       |
  920|       |    // and if it includes _neither_, that's an error
  921|  1.28k|    else
  922|  1.28k|        status = U_INVALID_FORMAT_ERROR;
  923|       |
  924|       |    // finally, finish initializing by creating a Calendar and a NumberFormat
  925|  17.9k|    initialize(locale, status);
  926|  17.9k|}
_ZN6icu_7816SimpleDateFormat18initializeCalendarEPNS_8TimeZoneERKNS_6LocaleER10UErrorCode:
  932|  78.7k|{
  933|  78.7k|    if(!U_FAILURE(status)) {
  ------------------
  |  Branch (933:8): [True: 78.7k, False: 0]
  ------------------
  934|  78.7k|        fCalendar = Calendar::createInstance(
  935|  78.7k|            adoptZone ? adoptZone : TimeZone::forLocaleOrDefault(locale), locale, status);
  ------------------
  |  Branch (935:13): [True: 0, False: 78.7k]
  ------------------
  936|  78.7k|    }
  937|  78.7k|    return fCalendar;
  938|  78.7k|}
_ZN6icu_7816SimpleDateFormat10initializeERKNS_6LocaleER10UErrorCode:
  943|  61.3k|{
  944|  61.3k|    if (U_FAILURE(status)) return;
  ------------------
  |  Branch (944:9): [True: 2.66k, False: 58.6k]
  ------------------
  945|       |
  946|  58.6k|    parsePattern(); // Need this before initNumberFormatters(), to set fHasHanYearChar
  947|       |
  948|       |    // Simple-minded hack to force Gannen year numbering for ja@calendar=japanese
  949|       |    // if format is non-numeric (includes 年) and fDateOverride is not already specified.
  950|       |    // Now this does get updated if applyPattern subsequently changes the pattern type.
  951|  58.6k|    if (fDateOverride.isBogus() && fHasHanYearChar &&
  ------------------
  |  Branch (951:9): [True: 57.5k, False: 1.16k]
  |  Branch (951:36): [True: 211, False: 57.3k]
  ------------------
  952|  58.6k|            fCalendar != nullptr &&
  ------------------
  |  Branch (952:13): [True: 211, False: 0]
  ------------------
  953|  58.6k|            typeid(*fCalendar) == typeid(JapaneseCalendar) &&
  ------------------
  |  Branch (953:13): [True: 0, False: 211]
  ------------------
  954|  58.6k|            uprv_strcmp(fLocale.getLanguage(),"ja") == 0) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (954:13): [True: 0, False: 0]
  ------------------
  955|      0|        fDateOverride.setTo(u"y=jpanyear", -1);
  956|      0|    }
  957|       |
  958|       |    // We don't need to check that the row count is >= 1, since all 2d arrays have at
  959|       |    // least one row
  960|  58.6k|    fNumberFormat = NumberFormat::createInstance(locale, status);
  961|  58.6k|    if (fNumberFormat != nullptr && U_SUCCESS(status))
  ------------------
  |  Branch (961:9): [True: 57.7k, False: 930]
  |  Branch (961:37): [True: 57.7k, False: 0]
  ------------------
  962|  57.7k|    {
  963|  57.7k|        fixNumberFormatForDates(*fNumberFormat);
  964|       |        //fNumberFormat->setLenient(true); // Java uses a custom DateNumberFormat to format/parse
  965|       |
  966|  57.7k|        initNumberFormatters(locale, status);
  967|  57.7k|        initSimpleNumberFormatter(status);
  968|       |
  969|  57.7k|    }
  970|    930|    else if (U_SUCCESS(status))
  ------------------
  |  Branch (970:14): [True: 0, False: 930]
  ------------------
  971|      0|    {
  972|      0|        status = U_MISSING_RESOURCE_ERROR;
  973|      0|    }
  974|  58.6k|}
_ZN6icu_7816SimpleDateFormat24initializeDefaultCenturyEv:
  980|  57.9k|{
  981|  57.9k|  if(fCalendar) {
  ------------------
  |  Branch (981:6): [True: 57.9k, False: 0]
  ------------------
  982|  57.9k|    fHaveDefaultCentury = fCalendar->haveDefaultCentury();
  983|  57.9k|    if(fHaveDefaultCentury) {
  ------------------
  |  Branch (983:8): [True: 57.9k, False: 0]
  ------------------
  984|  57.9k|      fDefaultCenturyStart = fCalendar->defaultCenturyStart();
  985|  57.9k|      fDefaultCenturyStartYear = fCalendar->defaultCenturyStartYear();
  986|  57.9k|    } else {
  987|      0|      fDefaultCenturyStart = DBL_MIN;
  988|      0|      fDefaultCenturyStartYear = -1;
  989|      0|    }
  990|  57.9k|  }
  991|  57.9k|}
_ZN6icu_7816SimpleDateFormat27initializeBooleanAttributesEv:
  997|  78.7k|{
  998|  78.7k|    UErrorCode status = U_ZERO_ERROR;
  999|       |
 1000|  78.7k|    setBooleanAttribute(UDAT_PARSE_ALLOW_WHITESPACE, true, status);
 1001|  78.7k|    setBooleanAttribute(UDAT_PARSE_ALLOW_NUMERIC, true, status);
 1002|  78.7k|    setBooleanAttribute(UDAT_PARSE_PARTIAL_LITERAL_MATCH, true, status);
 1003|  78.7k|    setBooleanAttribute(UDAT_PARSE_MULTIPLE_PATTERNS_FOR_MATCH, true, status);
 1004|  78.7k|}
_ZNK6icu_7816SimpleDateFormat6formatERNS_8CalendarERNS_13UnicodeStringERNS_13FieldPositionE:
 1031|  30.6k|{
 1032|  30.6k|  UErrorCode status = U_ZERO_ERROR;
 1033|  30.6k|  FieldPositionOnlyHandler handler(pos);
 1034|  30.6k|  return _format(cal, appendTo, handler, status);
 1035|  30.6k|}
_ZNK6icu_7816SimpleDateFormat7_formatERNS_8CalendarERNS_13UnicodeStringERNS_20FieldPositionHandlerER10UErrorCode:
 1052|  30.6k|{
 1053|  30.6k|    if ( U_FAILURE(status) ) {
  ------------------
  |  Branch (1053:10): [True: 0, False: 30.6k]
  ------------------
 1054|      0|       return appendTo;
 1055|      0|    }
 1056|  30.6k|    Calendar* workCal = &cal;
 1057|  30.6k|    Calendar* calClone = nullptr;
 1058|  30.6k|    if (&cal != fCalendar && typeid(cal) != typeid(*fCalendar)) {
  ------------------
  |  Branch (1058:9): [True: 30.6k, False: 0]
  |  Branch (1058:30): [True: 0, False: 30.6k]
  ------------------
 1059|       |        // Different calendar type
 1060|       |        // We use the time and time zone from the input calendar, but
 1061|       |        // do not use the input calendar for field calculation.
 1062|      0|        calClone = fCalendar->clone();
 1063|      0|        if (calClone != nullptr) {
  ------------------
  |  Branch (1063:13): [True: 0, False: 0]
  ------------------
 1064|      0|            UDate t = cal.getTime(status);
 1065|      0|            calClone->setTime(t, status);
 1066|      0|            calClone->setTimeZone(cal.getTimeZone());
 1067|      0|            workCal = calClone;
 1068|      0|        } else {
 1069|      0|            status = U_MEMORY_ALLOCATION_ERROR;
 1070|      0|            return appendTo;
 1071|      0|        }
 1072|      0|    }
 1073|       |
 1074|  30.6k|    UBool inQuote = false;
 1075|  30.6k|    char16_t prevCh = 0;
 1076|  30.6k|    int32_t count = 0;
 1077|  30.6k|    int32_t fieldNum = 0;
 1078|  30.6k|    UDisplayContext capitalizationContext = getContext(UDISPCTX_TYPE_CAPITALIZATION, status);
 1079|       |
 1080|       |    // loop through the pattern string character by character
 1081|  30.6k|    int32_t patternLength = fPattern.length();
 1082|   463k|    for (int32_t i = 0; i < patternLength && U_SUCCESS(status); ++i) {
  ------------------
  |  Branch (1082:25): [True: 433k, False: 30.6k]
  |  Branch (1082:46): [True: 433k, False: 0]
  ------------------
 1083|   433k|        char16_t ch = fPattern[i];
 1084|       |
 1085|       |        // Use subFormat() to format a repeated pattern character
 1086|       |        // when a different pattern or non-pattern character is seen
 1087|   433k|        if (ch != prevCh && count > 0) {
  ------------------
  |  Branch (1087:13): [True: 301k, False: 131k]
  |  Branch (1087:29): [True: 108k, False: 193k]
  ------------------
 1088|   108k|            subFormat(appendTo, prevCh, count, capitalizationContext, fieldNum++,
 1089|   108k|                      prevCh, handler, *workCal, status);
 1090|   108k|            count = 0;
 1091|   108k|        }
 1092|   433k|        if (ch == QUOTE) {
  ------------------
  |  Branch (1092:13): [True: 11.6k, False: 421k]
  ------------------
 1093|       |            // Consecutive single quotes are a single quote literal,
 1094|       |            // either outside of quotes or between quotes
 1095|  11.6k|            if ((i+1) < patternLength && fPattern[i+1] == QUOTE) {
  ------------------
  |  Branch (1095:17): [True: 11.5k, False: 62]
  |  Branch (1095:42): [True: 0, False: 11.5k]
  ------------------
 1096|      0|                appendTo += QUOTE;
 1097|      0|                ++i;
 1098|  11.6k|            } else {
 1099|  11.6k|                inQuote = ! inQuote;
 1100|  11.6k|            }
 1101|  11.6k|        }
 1102|   421k|        else if (!inQuote && isSyntaxChar(ch)) {
  ------------------
  |  Branch (1102:18): [True: 386k, False: 35.2k]
  |  Branch (1102:30): [True: 262k, False: 123k]
  ------------------
 1103|       |            // ch is a date-time pattern character to be interpreted
 1104|       |            // by subFormat(); count the number of times it is repeated
 1105|   262k|            prevCh = ch;
 1106|   262k|            ++count;
 1107|   262k|        }
 1108|   158k|        else {
 1109|       |            // Append quoted characters and unquoted non-pattern characters
 1110|   158k|            appendTo += ch;
 1111|   158k|        }
 1112|   433k|    }
 1113|       |
 1114|       |    // Format the last item in the pattern, if any
 1115|  30.6k|    if (count > 0) {
  ------------------
  |  Branch (1115:9): [True: 23.8k, False: 6.71k]
  ------------------
 1116|  23.8k|        subFormat(appendTo, prevCh, count, capitalizationContext, fieldNum++,
 1117|  23.8k|                  prevCh, handler, *workCal, status);
 1118|  23.8k|    }
 1119|       |
 1120|  30.6k|    delete calClone;
 1121|       |
 1122|  30.6k|    return appendTo;
 1123|  30.6k|}
_ZN6icu_7816SimpleDateFormat12isSyntaxCharEDs:
 1176|   386k|UBool SimpleDateFormat::isSyntaxChar(char16_t ch) {
 1177|   386k|    static const UBool mapCharToIsSyntax[] = {
 1178|       |        //
 1179|   386k|        false, false, false, false, false, false, false, false,
 1180|       |        //
 1181|   386k|        false, false, false, false, false, false, false, false,
 1182|       |        //
 1183|   386k|        false, false, false, false, false, false, false, false,
 1184|       |        //
 1185|   386k|        false, false, false, false, false, false, false, false,
 1186|       |        //         !      "      #      $      %      &      '
 1187|   386k|        false, false, false, false, false, false, false, false,
 1188|       |        //  (      )      *      +      ,      -      .      /
 1189|   386k|        false, false, false, false, false, false, false, false,
 1190|       |        //  0      1      2      3      4      5      6      7
 1191|   386k|        false, false, false, false, false, false, false, false,
 1192|       |#if UDAT_HAS_PATTERN_CHAR_FOR_TIME_SEPARATOR
 1193|       |        //  8      9      :      ;      <      =      >      ?
 1194|       |        false, false,  true, false, false, false, false, false,
 1195|       |#else
 1196|       |        //  8      9      :      ;      <      =      >      ?
 1197|   386k|        false, false, false, false, false, false, false, false,
 1198|   386k|#endif
 1199|       |        //  @      A      B      C      D      E      F      G
 1200|   386k|        false,  true,  true,  true,  true,  true,  true,  true,
 1201|       |        //  H      I      J      K      L      M      N      O
 1202|   386k|         true,  true,  true,  true,  true,  true,  true,  true,
 1203|       |        //  P      Q      R      S      T      U      V      W
 1204|   386k|         true,  true,  true,  true,  true,  true,  true,  true,
 1205|       |        //  X      Y      Z      [      \      ]      ^      _
 1206|   386k|         true,  true,  true, false, false, false, false, false,
 1207|       |        //  `      a      b      c      d      e      f      g
 1208|   386k|        false,  true,  true,  true,  true,  true,  true,  true,
 1209|       |        //  h      i      j      k      l      m      n      o
 1210|   386k|         true,  true,  true,  true,  true,  true,  true,  true,
 1211|       |        //  p      q      r      s      t      u      v      w
 1212|   386k|         true,  true,  true,  true,  true,  true,  true,  true,
 1213|       |        //  x      y      z      {      |      }      ~
 1214|   386k|         true,  true,  true, false, false, false, false, false
 1215|   386k|    };
 1216|       |
 1217|   386k|    return ch < UPRV_LENGTHOF(mapCharToIsSyntax) ? mapCharToIsSyntax[ch] : false;
  ------------------
  |  |   99|   386k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1217:12): [True: 375k, False: 11.2k]
  ------------------
 1218|   386k|}
_ZN6icu_7816SimpleDateFormat25initSimpleNumberFormatterER10UErrorCode:
 1312|  57.7k|SimpleDateFormat::initSimpleNumberFormatter(UErrorCode &status) {
 1313|  57.7k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1313:9): [True: 7, False: 57.7k]
  ------------------
 1314|      7|        return;
 1315|      7|    }
 1316|  57.7k|    const auto* df = dynamic_cast<const DecimalFormat*>(fNumberFormat);
 1317|  57.7k|    if (df == nullptr) {
  ------------------
  |  Branch (1317:9): [True: 692, False: 57.0k]
  ------------------
 1318|    692|        return;
 1319|    692|    }
 1320|  57.0k|    const DecimalFormatSymbols* syms = df->getDecimalFormatSymbols();
 1321|  57.0k|    if (syms == nullptr) {
  ------------------
  |  Branch (1321:9): [True: 0, False: 57.0k]
  ------------------
 1322|      0|        return;
 1323|      0|    }
 1324|  57.0k|    fSimpleNumberFormatter = new number::SimpleNumberFormatter(
 1325|  57.0k|        number::SimpleNumberFormatter::forLocaleAndSymbolsAndGroupingStrategy(
 1326|  57.0k|            fLocale, *syms, UNUM_GROUPING_OFF, status
 1327|  57.0k|        )
 1328|  57.0k|    );
 1329|  57.0k|    if (fSimpleNumberFormatter == nullptr) {
  ------------------
  |  Branch (1329:9): [True: 0, False: 57.0k]
  ------------------
 1330|      0|        status = U_MEMORY_ALLOCATION_ERROR;
 1331|      0|    }
 1332|  57.0k|}
_ZN6icu_7816SimpleDateFormat20initNumberFormattersERKNS_6LocaleER10UErrorCode:
 1335|  57.7k|SimpleDateFormat::initNumberFormatters(const Locale &locale,UErrorCode &status) {
 1336|  57.7k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1336:9): [True: 0, False: 57.7k]
  ------------------
 1337|      0|        return;
 1338|      0|    }
 1339|  57.7k|    if ( fDateOverride.isBogus() && fTimeOverride.isBogus() ) {
  ------------------
  |  Branch (1339:10): [True: 56.5k, False: 1.16k]
  |  Branch (1339:37): [True: 56.5k, False: 23]
  ------------------
 1340|  56.5k|        return;
 1341|  56.5k|    }
 1342|  1.18k|    umtx_lock(&LOCK);
  ------------------
  |  | 1250|  1.18k|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  123|  1.18k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.18k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.18k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1343|  1.18k|    if (fSharedNumberFormatters == nullptr) {
  ------------------
  |  Branch (1343:9): [True: 1.18k, False: 0]
  ------------------
 1344|  1.18k|        fSharedNumberFormatters = allocSharedNumberFormatters();
 1345|  1.18k|        if (fSharedNumberFormatters == nullptr) {
  ------------------
  |  Branch (1345:13): [True: 0, False: 1.18k]
  ------------------
 1346|      0|            status = U_MEMORY_ALLOCATION_ERROR;
 1347|      0|        }
 1348|  1.18k|    }
 1349|  1.18k|    umtx_unlock(&LOCK);
  ------------------
  |  | 1251|  1.18k|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  123|  1.18k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.18k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.18k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1350|       |
 1351|  1.18k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1351:9): [True: 0, False: 1.18k]
  ------------------
 1352|      0|        return;
 1353|      0|    }
 1354|       |
 1355|  1.18k|    processOverrideString(locale,fDateOverride,kOvrStrDate,status);
 1356|  1.18k|    processOverrideString(locale,fTimeOverride,kOvrStrTime,status);
 1357|  1.18k|}
_ZN6icu_7816SimpleDateFormat21processOverrideStringERKNS_6LocaleERKNS_13UnicodeStringEaR10UErrorCode:
 1360|  2.37k|SimpleDateFormat::processOverrideString(const Locale &locale, const UnicodeString &str, int8_t type, UErrorCode &status) {
 1361|  2.37k|    if (str.isBogus() || U_FAILURE(status)) {
  ------------------
  |  Branch (1361:9): [True: 885, False: 1.48k]
  |  Branch (1361:26): [True: 4, False: 1.48k]
  ------------------
 1362|    889|        return;
 1363|    889|    }
 1364|       |
 1365|  1.48k|    int32_t start = 0;
 1366|  1.48k|    int32_t len;
 1367|  1.48k|    UnicodeString nsName;
 1368|  1.48k|    UnicodeString ovrField;
 1369|  1.48k|    UBool moreToProcess = true;
 1370|  1.48k|    NSOverride *overrideList = nullptr;
 1371|       |
 1372|  2.95k|    while (moreToProcess) {
  ------------------
  |  Branch (1372:12): [True: 1.48k, False: 1.47k]
  ------------------
 1373|  1.48k|        int32_t delimiterPosition = str.indexOf(static_cast<char16_t>(ULOC_KEYWORD_ITEM_SEPARATOR_UNICODE), start);
  ------------------
  |  |  322|  1.48k|#define ULOC_KEYWORD_ITEM_SEPARATOR_UNICODE 0x3B
  ------------------
 1374|  1.48k|        if (delimiterPosition == -1) {
  ------------------
  |  Branch (1374:13): [True: 1.48k, False: 0]
  ------------------
 1375|  1.48k|            moreToProcess = false;
 1376|  1.48k|            len = str.length() - start;
 1377|  1.48k|        } else {
 1378|      0|            len = delimiterPosition - start;
 1379|      0|        }
 1380|  1.48k|        UnicodeString currentString(str,start,len);
 1381|  1.48k|        int32_t equalSignPosition = currentString.indexOf(static_cast<char16_t>(ULOC_KEYWORD_ASSIGN_UNICODE), 0);
  ------------------
  |  |  309|  1.48k|#define ULOC_KEYWORD_ASSIGN_UNICODE 0x3D
  ------------------
 1382|  1.48k|        if (equalSignPosition == -1) { // Simple override string such as "hebrew"
  ------------------
  |  Branch (1382:13): [True: 25, False: 1.45k]
  ------------------
 1383|     25|            nsName.setTo(currentString);
 1384|     25|            ovrField.setToBogus();
 1385|  1.45k|        } else { // Field specific override string such as "y=hebrew"
 1386|  1.45k|            nsName.setTo(currentString,equalSignPosition+1);
 1387|  1.45k|            ovrField.setTo(currentString,0,1); // We just need the first character.
 1388|  1.45k|        }
 1389|       |
 1390|  1.48k|        int32_t nsNameHash = nsName.hashCode();
 1391|       |        // See if the numbering system is in the override list, if not, then add it.
 1392|  1.48k|        NSOverride *curr = overrideList;
 1393|  1.48k|        const SharedNumberFormat *snf = nullptr;
 1394|  1.48k|        UBool found = false;
 1395|  1.48k|        while ( curr && !found ) {
  ------------------
  |  Branch (1395:17): [True: 0, False: 1.48k]
  |  Branch (1395:25): [True: 0, False: 0]
  ------------------
 1396|      0|            if ( curr->hash == nsNameHash ) {
  ------------------
  |  Branch (1396:18): [True: 0, False: 0]
  ------------------
 1397|      0|                snf = curr->snf;
 1398|      0|                found = true;
 1399|      0|            }
 1400|      0|            curr = curr->next;
 1401|      0|        }
 1402|       |
 1403|  1.48k|        if (!found) {
  ------------------
  |  Branch (1403:13): [True: 1.48k, False: 0]
  ------------------
 1404|  1.48k|           LocalPointer<NSOverride> cur(new NSOverride);
 1405|  1.48k|           if (!cur.isNull()) {
  ------------------
  |  Branch (1405:16): [True: 1.48k, False: 0]
  ------------------
 1406|  1.48k|               char kw[ULOC_KEYWORD_AND_VALUES_CAPACITY];
 1407|  1.48k|               uprv_strcpy(kw,"numbers=");
  ------------------
  |  |   36|  1.48k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  1.48k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1408|  1.48k|               nsName.extract(0,len,kw+8,ULOC_KEYWORD_AND_VALUES_CAPACITY-8,US_INV);
  ------------------
  |  |  283|  1.48k|#define ULOC_KEYWORD_AND_VALUES_CAPACITY 100
  ------------------
                             nsName.extract(0,len,kw+8,ULOC_KEYWORD_AND_VALUES_CAPACITY-8,US_INV);
  ------------------
  |  |   98|  1.48k|#define US_INV icu::UnicodeString::kInvariant
  ------------------
 1409|       |
 1410|  1.48k|               Locale ovrLoc(locale.getLanguage(),locale.getCountry(),locale.getVariant(),kw);
 1411|  1.48k|               cur->hash = nsNameHash;
 1412|  1.48k|               cur->next = overrideList;
 1413|  1.48k|               SharedObject::copyPtr(
 1414|  1.48k|                       createSharedNumberFormat(ovrLoc, status), cur->snf);
 1415|  1.48k|               if (U_FAILURE(status)) {
  ------------------
  |  Branch (1415:20): [True: 7, False: 1.47k]
  ------------------
 1416|      7|                   if (overrideList) {
  ------------------
  |  Branch (1416:24): [True: 0, False: 7]
  ------------------
 1417|      0|                       overrideList->free();
 1418|      0|                   }
 1419|      7|                   return;
 1420|      7|               }
 1421|  1.47k|               snf = cur->snf;
 1422|  1.47k|               overrideList = cur.orphan();
 1423|  1.47k|           } else {
 1424|      0|               status = U_MEMORY_ALLOCATION_ERROR;
 1425|      0|               if (overrideList) {
  ------------------
  |  Branch (1425:20): [True: 0, False: 0]
  ------------------
 1426|      0|                   overrideList->free();
 1427|      0|               }
 1428|      0|               return;
 1429|      0|           }
 1430|  1.48k|        }
 1431|       |
 1432|       |        // Now that we have an appropriate number formatter, fill in the appropriate spaces in the
 1433|       |        // number formatters table.
 1434|  1.47k|        if (ovrField.isBogus()) {
  ------------------
  |  Branch (1434:13): [True: 25, False: 1.45k]
  ------------------
 1435|     25|            switch (type) {
  ------------------
  |  Branch (1435:21): [True: 0, False: 25]
  ------------------
 1436|     16|                case kOvrStrDate:
  ------------------
  |  Branch (1436:17): [True: 16, False: 9]
  ------------------
 1437|     16|                case kOvrStrBoth: {
  ------------------
  |  Branch (1437:17): [True: 0, False: 25]
  ------------------
 1438|    272|                    for ( int8_t i=0 ; i<kDateFieldsCount; i++ ) {
  ------------------
  |  Branch (1438:40): [True: 256, False: 16]
  ------------------
 1439|    256|                        SharedObject::copyPtr(snf, fSharedNumberFormatters[kDateFields[i]]);
 1440|    256|                    }
 1441|     16|                    if (type==kOvrStrDate) {
  ------------------
  |  Branch (1441:25): [True: 16, False: 0]
  ------------------
 1442|     16|                        break;
 1443|     16|                    }
 1444|      0|                    U_FALLTHROUGH;
  ------------------
  |  |  511|      0|#       define U_FALLTHROUGH [[clang::fallthrough]]
  ------------------
 1445|      0|                }
 1446|      9|                case kOvrStrTime : {
  ------------------
  |  Branch (1446:17): [True: 9, False: 16]
  ------------------
 1447|     99|                    for ( int8_t i=0 ; i<kTimeFieldsCount; i++ ) {
  ------------------
  |  Branch (1447:40): [True: 90, False: 9]
  ------------------
 1448|     90|                        SharedObject::copyPtr(snf, fSharedNumberFormatters[kTimeFields[i]]);
 1449|     90|                    }
 1450|      9|                    break;
 1451|      0|                }
 1452|     25|            }
 1453|  1.45k|        } else {
 1454|       |           // if the pattern character is unrecognized, signal an error and bail out
 1455|  1.45k|           UDateFormatField patternCharIndex =
 1456|  1.45k|              DateFormatSymbols::getPatternCharIndex(ovrField.charAt(0));
 1457|  1.45k|           if (patternCharIndex == UDAT_FIELD_COUNT) {
  ------------------
  |  Branch (1457:16): [True: 0, False: 1.45k]
  ------------------
 1458|      0|               status = U_INVALID_FORMAT_ERROR;
 1459|      0|               if (overrideList) {
  ------------------
  |  Branch (1459:20): [True: 0, False: 0]
  ------------------
 1460|      0|                   overrideList->free();
 1461|      0|               }
 1462|      0|               return;
 1463|      0|           }
 1464|  1.45k|           SharedObject::copyPtr(snf, fSharedNumberFormatters[patternCharIndex]);
 1465|  1.45k|        }
 1466|       |
 1467|  1.47k|        start = delimiterPosition + 1;
 1468|  1.47k|    }
 1469|  1.47k|    if (overrideList) {
  ------------------
  |  Branch (1469:9): [True: 1.47k, False: 0]
  ------------------
 1470|  1.47k|        overrideList->free();
 1471|  1.47k|    }
 1472|  1.47k|}
_ZNK6icu_7816SimpleDateFormat9subFormatERNS_13UnicodeStringEDsi15UDisplayContextiDsRNS_20FieldPositionHandlerERNS_8CalendarER10UErrorCode:
 1485|   132k|{
 1486|   132k|    static const int32_t maxIntCount = 10;
 1487|   132k|    static const UnicodeString hebr(u"hebr");
 1488|       |
 1489|   132k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1489:9): [True: 0, False: 132k]
  ------------------
 1490|      0|        return;
 1491|      0|    }
 1492|       |
 1493|       |    // this function gets called by format() to produce the appropriate substitution
 1494|       |    // text for an individual pattern symbol (e.g., "HH" or "yyyy")
 1495|       |
 1496|   132k|    UDateFormatField patternCharIndex = DateFormatSymbols::getPatternCharIndex(ch);
 1497|   132k|    int32_t beginOffset = appendTo.length();
 1498|   132k|    DateFormatSymbols::ECapitalizationContextUsageType capContextUsageType = DateFormatSymbols::kCapContextUsageOther;
 1499|       |
 1500|       |    // if the pattern character is unrecognized, signal an error and dump out
 1501|   132k|    if (patternCharIndex == UDAT_FIELD_COUNT)
  ------------------
  |  Branch (1501:9): [True: 0, False: 132k]
  ------------------
 1502|      0|    {
 1503|      0|        if (ch != 0x6C) { // pattern char 'l' (SMALL LETTER L) just gets ignored
  ------------------
  |  Branch (1503:13): [True: 0, False: 0]
  ------------------
 1504|      0|            status = U_INVALID_FORMAT_ERROR;
 1505|      0|        }
 1506|      0|        return;
 1507|      0|    }
 1508|       |
 1509|   132k|    UCalendarDateFields field = fgPatternIndexToCalendarField[patternCharIndex];
 1510|   132k|    int32_t value = 0;
 1511|       |    // Don't get value unless it is useful
 1512|   132k|    if (field < UCAL_FIELD_COUNT) {
  ------------------
  |  Branch (1512:9): [True: 131k, False: 977]
  ------------------
 1513|   131k|        value = (patternCharIndex != UDAT_RELATED_YEAR_FIELD)? cal.get(field, status): cal.getRelatedYear(status);
  ------------------
  |  Branch (1513:17): [True: 131k, False: 0]
  ------------------
 1514|   131k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (1514:13): [True: 0, False: 131k]
  ------------------
 1515|      0|            return;
 1516|      0|        }
 1517|   131k|    }
 1518|       |
 1519|   132k|    const NumberFormat *currentNumberFormat = getNumberFormatByIndex(patternCharIndex);
 1520|   132k|    if (currentNumberFormat == nullptr) {
  ------------------
  |  Branch (1520:9): [True: 0, False: 132k]
  ------------------
 1521|      0|        status = U_INTERNAL_PROGRAM_ERROR;
 1522|      0|        return;
 1523|      0|    }
 1524|       |
 1525|   132k|    switch (patternCharIndex) {
 1526|       |
 1527|       |    // for any "G" symbol, write out the appropriate era string
 1528|       |    // "GGGG" is wide era name, "GGGGG" is narrow era name, anything else is abbreviated name
 1529|  1.06k|    case UDAT_ERA_FIELD:
  ------------------
  |  Branch (1529:5): [True: 1.06k, False: 131k]
  ------------------
 1530|  1.06k|        {
 1531|  1.06k|            if (typeid(cal) == typeid(ChineseCalendar) ||
  ------------------
  |  Branch (1531:17): [True: 0, False: 1.06k]
  ------------------
 1532|  1.06k|                typeid(cal) == typeid(DangiCalendar)) {
  ------------------
  |  Branch (1532:17): [True: 0, False: 1.06k]
  ------------------
 1533|      0|                zeroPaddingNumber(currentNumberFormat,appendTo, value, 1, 9); // as in ICU4J
 1534|  1.06k|            } else {
 1535|  1.06k|                if (count == 5) {
  ------------------
  |  Branch (1535:21): [True: 80, False: 985]
  ------------------
 1536|     80|                    _appendSymbol(appendTo, value, fSymbols->fNarrowEras, fSymbols->fNarrowErasCount);
 1537|     80|                    capContextUsageType = DateFormatSymbols::kCapContextUsageEraNarrow;
 1538|    985|                } else if (count == 4) {
  ------------------
  |  Branch (1538:28): [True: 8, False: 977]
  ------------------
 1539|      8|                    _appendSymbol(appendTo, value, fSymbols->fEraNames, fSymbols->fEraNamesCount);
 1540|      8|                    capContextUsageType = DateFormatSymbols::kCapContextUsageEraWide;
 1541|    977|                } else {
 1542|    977|                    _appendSymbol(appendTo, value, fSymbols->fEras, fSymbols->fErasCount);
 1543|    977|                    capContextUsageType = DateFormatSymbols::kCapContextUsageEraAbbrev;
 1544|    977|                }
 1545|  1.06k|            }
 1546|  1.06k|        }
 1547|  1.06k|        break;
 1548|       |
 1549|      0|     case UDAT_YEAR_NAME_FIELD:
  ------------------
  |  Branch (1549:6): [True: 0, False: 132k]
  ------------------
 1550|      0|        if (fSymbols->fShortYearNames != nullptr && value <= fSymbols->fShortYearNamesCount) {
  ------------------
  |  Branch (1550:13): [True: 0, False: 0]
  |  Branch (1550:53): [True: 0, False: 0]
  ------------------
 1551|       |            // the Calendar YEAR field runs 1 through 60 for cyclic years
 1552|      0|            _appendSymbol(appendTo, value - 1, fSymbols->fShortYearNames, fSymbols->fShortYearNamesCount);
 1553|      0|            break;
 1554|      0|        }
 1555|       |        // else fall through to numeric year handling, do not break here
 1556|      0|        U_FALLTHROUGH;
  ------------------
  |  |  511|      0|#       define U_FALLTHROUGH [[clang::fallthrough]]
  ------------------
 1557|       |
 1558|       |   // OLD: for "yyyy", write out the whole year; for "yy", write out the last 2 digits
 1559|       |    // NEW: UTS#35:
 1560|       |//Year         y     yy     yyy     yyyy     yyyyy
 1561|       |//AD 1         1     01     001     0001     00001
 1562|       |//AD 12       12     12     012     0012     00012
 1563|       |//AD 123     123     23     123     0123     00123
 1564|       |//AD 1234   1234     34    1234     1234     01234
 1565|       |//AD 12345 12345     45   12345    12345     12345
 1566|  19.8k|    case UDAT_YEAR_FIELD:
  ------------------
  |  Branch (1566:5): [True: 19.8k, False: 112k]
  ------------------
 1567|  20.5k|    case UDAT_YEAR_WOY_FIELD:
  ------------------
  |  Branch (1567:5): [True: 645, False: 132k]
  ------------------
 1568|  20.5k|        if (fDateOverride.compare(hebr)==0 && value>HEBREW_CAL_CUR_MILLENIUM_START_YEAR && value<HEBREW_CAL_CUR_MILLENIUM_END_YEAR) {
  ------------------
  |  Branch (1568:13): [True: 0, False: 20.5k]
  |  Branch (1568:47): [True: 0, False: 0]
  |  Branch (1568:92): [True: 0, False: 0]
  ------------------
 1569|      0|            value-=HEBREW_CAL_CUR_MILLENIUM_START_YEAR;
 1570|      0|        }
 1571|  20.5k|        if(count == 2)
  ------------------
  |  Branch (1571:12): [True: 1.27k, False: 19.2k]
  ------------------
 1572|  1.27k|            zeroPaddingNumber(currentNumberFormat, appendTo, value, 2, 2);
 1573|  19.2k|        else
 1574|  19.2k|            zeroPaddingNumber(currentNumberFormat, appendTo, value, count, maxIntCount);
 1575|  20.5k|        break;
 1576|       |
 1577|       |    // for "MMMM"/"LLLL", write out the whole month name, for "MMM"/"LLL", write out the month
 1578|       |    // abbreviation, for "M"/"L" or "MM"/"LL", write out the month as a number with the
 1579|       |    // appropriate number of digits
 1580|       |    // for "MMMMM"/"LLLLL", use the narrow form
 1581|  17.1k|    case UDAT_MONTH_FIELD:
  ------------------
  |  Branch (1581:5): [True: 17.1k, False: 115k]
  ------------------
 1582|  17.9k|    case UDAT_STANDALONE_MONTH_FIELD:
  ------------------
  |  Branch (1582:5): [True: 806, False: 131k]
  ------------------
 1583|  17.9k|        if (typeid(cal) == typeid(HebrewCalendar)) {
  ------------------
  |  Branch (1583:13): [True: 0, False: 17.9k]
  ------------------
 1584|      0|           if (HebrewCalendar::isLeapYear(cal.get(UCAL_YEAR,status)) && value == 6 && count >= 3 )
  ------------------
  |  Branch (1584:16): [True: 0, False: 0]
  |  Branch (1584:73): [True: 0, False: 0]
  |  Branch (1584:87): [True: 0, False: 0]
  ------------------
 1585|      0|               value = 13; // Show alternate form for Adar II in leap years in Hebrew calendar.
 1586|      0|           if (!HebrewCalendar::isLeapYear(cal.get(UCAL_YEAR,status)) && value >= 6 && count < 3 )
  ------------------
  |  Branch (1586:16): [True: 0, False: 0]
  |  Branch (1586:74): [True: 0, False: 0]
  |  Branch (1586:88): [True: 0, False: 0]
  ------------------
 1587|      0|               value--; // Adjust the month number down 1 in Hebrew non-leap years, i.e. Adar is 6, not 7.
 1588|      0|        }
 1589|  17.9k|        {
 1590|  17.9k|            int32_t isLeapMonth = (fSymbols->fLeapMonthPatterns != nullptr && fSymbols->fLeapMonthPatternsCount >= DateFormatSymbols::kMonthPatternsCount)?
  ------------------
  |  Branch (1590:36): [True: 0, False: 17.9k]
  |  Branch (1590:79): [True: 0, False: 0]
  ------------------
 1591|  17.9k|                        cal.get(UCAL_IS_LEAP_MONTH, status): 0;
 1592|       |            // should consolidate the next section by using arrays of pointers & counts for the right symbols...
 1593|  17.9k|            if (count == 5) {
  ------------------
  |  Branch (1593:17): [True: 14, False: 17.9k]
  ------------------
 1594|     14|                if (patternCharIndex == UDAT_MONTH_FIELD) {
  ------------------
  |  Branch (1594:21): [True: 6, False: 8]
  ------------------
 1595|      6|                    _appendSymbolWithMonthPattern(appendTo, value, fSymbols->fNarrowMonths, fSymbols->fNarrowMonthsCount,
 1596|      6|                            (isLeapMonth!=0)? &(fSymbols->fLeapMonthPatterns[DateFormatSymbols::kLeapMonthPatternFormatNarrow]): nullptr, status);
  ------------------
  |  Branch (1596:29): [True: 0, False: 6]
  ------------------
 1597|      8|                } else {
 1598|      8|                    _appendSymbolWithMonthPattern(appendTo, value, fSymbols->fStandaloneNarrowMonths, fSymbols->fStandaloneNarrowMonthsCount,
 1599|      8|                            (isLeapMonth!=0)? &(fSymbols->fLeapMonthPatterns[DateFormatSymbols::kLeapMonthPatternStandaloneNarrow]): nullptr, status);
  ------------------
  |  Branch (1599:29): [True: 0, False: 8]
  ------------------
 1600|      8|                }
 1601|     14|                capContextUsageType = DateFormatSymbols::kCapContextUsageMonthNarrow;
 1602|  17.9k|            } else if (count == 4) {
  ------------------
  |  Branch (1602:24): [True: 2.27k, False: 15.7k]
  ------------------
 1603|  2.27k|                if (patternCharIndex == UDAT_MONTH_FIELD) {
  ------------------
  |  Branch (1603:21): [True: 2.25k, False: 17]
  ------------------
 1604|  2.25k|                    _appendSymbolWithMonthPattern(appendTo, value, fSymbols->fMonths, fSymbols->fMonthsCount,
 1605|  2.25k|                            (isLeapMonth!=0)? &(fSymbols->fLeapMonthPatterns[DateFormatSymbols::kLeapMonthPatternFormatWide]): nullptr, status);
  ------------------
  |  Branch (1605:29): [True: 0, False: 2.25k]
  ------------------
 1606|  2.25k|                    capContextUsageType = DateFormatSymbols::kCapContextUsageMonthFormat;
 1607|  2.25k|                } else {
 1608|     17|                    _appendSymbolWithMonthPattern(appendTo, value, fSymbols->fStandaloneMonths, fSymbols->fStandaloneMonthsCount,
 1609|     17|                            (isLeapMonth!=0)? &(fSymbols->fLeapMonthPatterns[DateFormatSymbols::kLeapMonthPatternStandaloneWide]): nullptr, status);
  ------------------
  |  Branch (1609:29): [True: 0, False: 17]
  ------------------
 1610|     17|                    capContextUsageType = DateFormatSymbols::kCapContextUsageMonthStandalone;
 1611|     17|                }
 1612|  15.7k|            } else if (count == 3) {
  ------------------
  |  Branch (1612:24): [True: 614, False: 15.0k]
  ------------------
 1613|    614|                if (patternCharIndex == UDAT_MONTH_FIELD) {
  ------------------
  |  Branch (1613:21): [True: 599, False: 15]
  ------------------
 1614|    599|                    _appendSymbolWithMonthPattern(appendTo, value, fSymbols->fShortMonths, fSymbols->fShortMonthsCount,
 1615|    599|                            (isLeapMonth!=0)? &(fSymbols->fLeapMonthPatterns[DateFormatSymbols::kLeapMonthPatternFormatAbbrev]): nullptr, status);
  ------------------
  |  Branch (1615:29): [True: 0, False: 599]
  ------------------
 1616|    599|                    capContextUsageType = DateFormatSymbols::kCapContextUsageMonthFormat;
 1617|    599|                } else {
 1618|     15|                    _appendSymbolWithMonthPattern(appendTo, value, fSymbols->fStandaloneShortMonths, fSymbols->fStandaloneShortMonthsCount,
 1619|     15|                            (isLeapMonth!=0)? &(fSymbols->fLeapMonthPatterns[DateFormatSymbols::kLeapMonthPatternStandaloneAbbrev]): nullptr, status);
  ------------------
  |  Branch (1619:29): [True: 0, False: 15]
  ------------------
 1620|     15|                    capContextUsageType = DateFormatSymbols::kCapContextUsageMonthStandalone;
 1621|     15|                }
 1622|  15.0k|            } else {
 1623|  15.0k|                UnicodeString monthNumber;
 1624|  15.0k|                zeroPaddingNumber(currentNumberFormat,monthNumber, value + 1, count, maxIntCount);
 1625|  15.0k|                _appendSymbolWithMonthPattern(appendTo, 0, &monthNumber, 1,
 1626|  15.0k|                        (isLeapMonth!=0)? &(fSymbols->fLeapMonthPatterns[DateFormatSymbols::kLeapMonthPatternNumeric]): nullptr, status);
  ------------------
  |  Branch (1626:25): [True: 0, False: 15.0k]
  ------------------
 1627|  15.0k|            }
 1628|  17.9k|        }
 1629|  17.9k|        break;
 1630|       |
 1631|       |    // for "k" and "kk", write out the hour, adjusting midnight to appear as "24"
 1632|      0|    case UDAT_HOUR_OF_DAY1_FIELD:
  ------------------
  |  Branch (1632:5): [True: 0, False: 132k]
  ------------------
 1633|      0|        if (value == 0)
  ------------------
  |  Branch (1633:13): [True: 0, False: 0]
  ------------------
 1634|      0|            zeroPaddingNumber(currentNumberFormat,appendTo, cal.getMaximum(UCAL_HOUR_OF_DAY) + 1, count, maxIntCount);
 1635|      0|        else
 1636|      0|            zeroPaddingNumber(currentNumberFormat,appendTo, value, count, maxIntCount);
 1637|      0|        break;
 1638|       |
 1639|    778|    case UDAT_FRACTIONAL_SECOND_FIELD:
  ------------------
  |  Branch (1639:5): [True: 778, False: 131k]
  ------------------
 1640|       |        // Fractional seconds left-justify
 1641|    778|        {
 1642|    778|            int32_t minDigits = (count > 3) ? 3 : count;
  ------------------
  |  Branch (1642:33): [True: 37, False: 741]
  ------------------
 1643|    778|            if (count == 1) {
  ------------------
  |  Branch (1643:17): [True: 721, False: 57]
  ------------------
 1644|    721|                value /= 100;
 1645|    721|            } else if (count == 2) {
  ------------------
  |  Branch (1645:24): [True: 13, False: 44]
  ------------------
 1646|     13|                value /= 10;
 1647|     13|            }
 1648|    778|            zeroPaddingNumber(currentNumberFormat, appendTo, value, minDigits, maxIntCount);
 1649|    778|            if (count > 3) {
  ------------------
  |  Branch (1649:17): [True: 37, False: 741]
  ------------------
 1650|     37|                zeroPaddingNumber(currentNumberFormat, appendTo, 0, count - 3, maxIntCount);
 1651|     37|            }
 1652|    778|        }
 1653|    778|        break;
 1654|       |
 1655|       |    // for "ee" or "e", use local numeric day-of-the-week
 1656|       |    // for "EEEEEE" or "eeeeee", write out the short day-of-the-week name
 1657|       |    // for "EEEEE" or "eeeee", write out the narrow day-of-the-week name
 1658|       |    // for "EEEE" or "eeee", write out the wide day-of-the-week name
 1659|       |    // for "EEE" or "EE" or "E" or "eee", write out the abbreviated day-of-the-week name
 1660|  1.41k|    case UDAT_DOW_LOCAL_FIELD:
  ------------------
  |  Branch (1660:5): [True: 1.41k, False: 131k]
  ------------------
 1661|  1.41k|        if ( count < 3 ) {
  ------------------
  |  Branch (1661:14): [True: 1.41k, False: 0]
  ------------------
 1662|  1.41k|            zeroPaddingNumber(currentNumberFormat,appendTo, value, count, maxIntCount);
 1663|  1.41k|            break;
 1664|  1.41k|        }
 1665|       |        // fall through to EEEEE-EEE handling, but for that we don't want local day-of-week,
 1666|       |        // we want standard day-of-week, so first fix value to work for EEEEE-EEE.
 1667|      0|        value = cal.get(UCAL_DAY_OF_WEEK, status);
 1668|      0|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (1668:13): [True: 0, False: 0]
  ------------------
 1669|      0|            return;
 1670|      0|        }
 1671|       |        // fall through, do not break here
 1672|      0|        U_FALLTHROUGH;
  ------------------
  |  |  511|      0|#       define U_FALLTHROUGH [[clang::fallthrough]]
  ------------------
 1673|  1.70k|    case UDAT_DAY_OF_WEEK_FIELD:
  ------------------
  |  Branch (1673:5): [True: 1.70k, False: 130k]
  ------------------
 1674|  1.70k|        if (count == 5) {
  ------------------
  |  Branch (1674:13): [True: 3, False: 1.70k]
  ------------------
 1675|      3|            _appendSymbol(appendTo, value, fSymbols->fNarrowWeekdays,
 1676|      3|                          fSymbols->fNarrowWeekdaysCount);
 1677|      3|            capContextUsageType = DateFormatSymbols::kCapContextUsageDayNarrow;
 1678|  1.70k|        } else if (count == 4) {
  ------------------
  |  Branch (1678:20): [True: 1.57k, False: 130]
  ------------------
 1679|  1.57k|            _appendSymbol(appendTo, value, fSymbols->fWeekdays,
 1680|  1.57k|                          fSymbols->fWeekdaysCount);
 1681|  1.57k|            capContextUsageType = DateFormatSymbols::kCapContextUsageDayFormat;
 1682|  1.57k|        } else if (count == 6) {
  ------------------
  |  Branch (1682:20): [True: 3, False: 127]
  ------------------
 1683|      3|            _appendSymbol(appendTo, value, fSymbols->fShorterWeekdays,
 1684|      3|                          fSymbols->fShorterWeekdaysCount);
 1685|      3|            capContextUsageType = DateFormatSymbols::kCapContextUsageDayFormat;
 1686|    127|        } else {
 1687|    127|            _appendSymbol(appendTo, value, fSymbols->fShortWeekdays,
 1688|    127|                          fSymbols->fShortWeekdaysCount);
 1689|    127|            capContextUsageType = DateFormatSymbols::kCapContextUsageDayFormat;
 1690|    127|        }
 1691|  1.70k|        break;
 1692|       |
 1693|       |    // for "ccc", write out the abbreviated day-of-the-week name
 1694|       |    // for "cccc", write out the wide day-of-the-week name
 1695|       |    // for "ccccc", use the narrow day-of-the-week name
 1696|       |    // for "ccccc", use the short day-of-the-week name
 1697|  2.99k|    case UDAT_STANDALONE_DAY_FIELD:
  ------------------
  |  Branch (1697:5): [True: 2.99k, False: 129k]
  ------------------
 1698|  2.99k|        if ( count < 3 ) {
  ------------------
  |  Branch (1698:14): [True: 2.66k, False: 329]
  ------------------
 1699|  2.66k|            zeroPaddingNumber(currentNumberFormat,appendTo, value, 1, maxIntCount);
 1700|  2.66k|            break;
 1701|  2.66k|        }
 1702|       |        // fall through to alpha DOW handling, but for that we don't want local day-of-week,
 1703|       |        // we want standard day-of-week, so first fix value.
 1704|    329|        value = cal.get(UCAL_DAY_OF_WEEK, status);
 1705|    329|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (1705:13): [True: 0, False: 329]
  ------------------
 1706|      0|            return;
 1707|      0|        }
 1708|    329|        if (count == 5) {
  ------------------
  |  Branch (1708:13): [True: 5, False: 324]
  ------------------
 1709|      5|            _appendSymbol(appendTo, value, fSymbols->fStandaloneNarrowWeekdays,
 1710|      5|                          fSymbols->fStandaloneNarrowWeekdaysCount);
 1711|      5|            capContextUsageType = DateFormatSymbols::kCapContextUsageDayNarrow;
 1712|    324|        } else if (count == 4) {
  ------------------
  |  Branch (1712:20): [True: 26, False: 298]
  ------------------
 1713|     26|            _appendSymbol(appendTo, value, fSymbols->fStandaloneWeekdays,
 1714|     26|                          fSymbols->fStandaloneWeekdaysCount);
 1715|     26|            capContextUsageType = DateFormatSymbols::kCapContextUsageDayStandalone;
 1716|    298|        } else if (count == 6) {
  ------------------
  |  Branch (1716:20): [True: 3, False: 295]
  ------------------
 1717|      3|            _appendSymbol(appendTo, value, fSymbols->fStandaloneShorterWeekdays,
 1718|      3|                          fSymbols->fStandaloneShorterWeekdaysCount);
 1719|      3|            capContextUsageType = DateFormatSymbols::kCapContextUsageDayStandalone;
 1720|    295|        } else { // count == 3
 1721|    295|            _appendSymbol(appendTo, value, fSymbols->fStandaloneShortWeekdays,
 1722|    295|                          fSymbols->fStandaloneShortWeekdaysCount);
 1723|    295|            capContextUsageType = DateFormatSymbols::kCapContextUsageDayStandalone;
 1724|    295|        }
 1725|    329|        break;
 1726|       |
 1727|       |    // for "a" symbol, write out the whole AM/PM string
 1728|  16.5k|    case UDAT_AM_PM_FIELD:
  ------------------
  |  Branch (1728:5): [True: 16.5k, False: 116k]
  ------------------
 1729|  16.5k|        if (count < 5) {
  ------------------
  |  Branch (1729:13): [True: 16.3k, False: 219]
  ------------------
 1730|  16.3k|            _appendSymbol(appendTo, value, fSymbols->fAmPms,
 1731|  16.3k|                          fSymbols->fAmPmsCount);
 1732|  16.3k|        } else {
 1733|    219|            _appendSymbol(appendTo, value, fSymbols->fNarrowAmPms,
 1734|    219|                          fSymbols->fNarrowAmPmsCount);
 1735|    219|        }
 1736|  16.5k|        break;
 1737|       |
 1738|       |    // if we see pattern character for UDAT_TIME_SEPARATOR_FIELD (none currently defined),
 1739|       |    // write out the time separator string. Leave support in for future definition.
 1740|      0|    case UDAT_TIME_SEPARATOR_FIELD:
  ------------------
  |  Branch (1740:5): [True: 0, False: 132k]
  ------------------
 1741|      0|        {
 1742|      0|            UnicodeString separator;
 1743|      0|            appendTo += fSymbols->getTimeSeparatorString(separator);
 1744|      0|        }
 1745|      0|        break;
 1746|       |
 1747|       |    // for "h" and "hh", write out the hour, adjusting noon and midnight to show up
 1748|       |    // as "12"
 1749|  14.9k|    case UDAT_HOUR1_FIELD:
  ------------------
  |  Branch (1749:5): [True: 14.9k, False: 117k]
  ------------------
 1750|  14.9k|        if (value == 0)
  ------------------
  |  Branch (1750:13): [True: 12.9k, False: 1.99k]
  ------------------
 1751|  12.9k|            zeroPaddingNumber(currentNumberFormat,appendTo, cal.getLeastMaximum(UCAL_HOUR) + 1, count, maxIntCount);
 1752|  1.99k|        else
 1753|  1.99k|            zeroPaddingNumber(currentNumberFormat,appendTo, value, count, maxIntCount);
 1754|  14.9k|        break;
 1755|       |
 1756|  4.04k|    case UDAT_TIMEZONE_FIELD: // 'z'
  ------------------
  |  Branch (1756:5): [True: 4.04k, False: 128k]
  ------------------
 1757|  4.63k|    case UDAT_TIMEZONE_RFC_FIELD: // 'Z'
  ------------------
  |  Branch (1757:5): [True: 590, False: 132k]
  ------------------
 1758|  5.91k|    case UDAT_TIMEZONE_GENERIC_FIELD: // 'v'
  ------------------
  |  Branch (1758:5): [True: 1.28k, False: 131k]
  ------------------
 1759|  6.24k|    case UDAT_TIMEZONE_SPECIAL_FIELD: // 'V'
  ------------------
  |  Branch (1759:5): [True: 326, False: 132k]
  ------------------
 1760|  6.63k|    case UDAT_TIMEZONE_LOCALIZED_GMT_OFFSET_FIELD: // 'O'
  ------------------
  |  Branch (1760:5): [True: 392, False: 132k]
  ------------------
 1761|  7.15k|    case UDAT_TIMEZONE_ISO_FIELD: // 'X'
  ------------------
  |  Branch (1761:5): [True: 518, False: 132k]
  ------------------
 1762|  7.66k|    case UDAT_TIMEZONE_ISO_LOCAL_FIELD: // 'x'
  ------------------
  |  Branch (1762:5): [True: 516, False: 132k]
  ------------------
 1763|  7.66k|        {
 1764|  7.66k|            char16_t zsbuf[ZONE_NAME_U16_MAX];
 1765|  7.66k|            UnicodeString zoneString(zsbuf, 0, UPRV_LENGTHOF(zsbuf));
  ------------------
  |  |   99|  7.66k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1766|  7.66k|            const TimeZone& tz = cal.getTimeZone();
 1767|  7.66k|            UDate date = cal.getTime(status);
 1768|  7.66k|            const TimeZoneFormat *tzfmt = tzFormat(status);
 1769|  7.66k|            if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1769:17): [True: 7.66k, False: 0]
  ------------------
 1770|  7.66k|                switch (patternCharIndex) {
 1771|  4.04k|                case UDAT_TIMEZONE_FIELD:
  ------------------
  |  Branch (1771:17): [True: 4.04k, False: 3.62k]
  ------------------
 1772|  4.04k|                    if (count < 4) {
  ------------------
  |  Branch (1772:25): [True: 2.37k, False: 1.66k]
  ------------------
 1773|       |                        // "z", "zz", "zzz"
 1774|  2.37k|                        tzfmt->format(UTZFMT_STYLE_SPECIFIC_SHORT, tz, date, zoneString);
 1775|  2.37k|                        capContextUsageType = DateFormatSymbols::kCapContextUsageMetazoneShort;
 1776|  2.37k|                    } else {
 1777|       |                        // "zzzz" or longer
 1778|  1.66k|                        tzfmt->format(UTZFMT_STYLE_SPECIFIC_LONG, tz, date, zoneString);
 1779|  1.66k|                        capContextUsageType = DateFormatSymbols::kCapContextUsageMetazoneLong;
 1780|  1.66k|                    }
 1781|  4.04k|                    break;
 1782|    590|                case UDAT_TIMEZONE_RFC_FIELD:
  ------------------
  |  Branch (1782:17): [True: 590, False: 7.07k]
  ------------------
 1783|    590|                    if (count < 4) {
  ------------------
  |  Branch (1783:25): [True: 576, False: 14]
  ------------------
 1784|       |                        // "Z"
 1785|    576|                        tzfmt->format(UTZFMT_STYLE_ISO_BASIC_LOCAL_FULL, tz, date, zoneString);
 1786|    576|                    } else if (count == 5) {
  ------------------
  |  Branch (1786:32): [True: 4, False: 10]
  ------------------
 1787|       |                        // "ZZZZZ"
 1788|      4|                        tzfmt->format(UTZFMT_STYLE_ISO_EXTENDED_FULL, tz, date, zoneString);
 1789|     10|                    } else {
 1790|       |                        // "ZZ", "ZZZ", "ZZZZ"
 1791|     10|                        tzfmt->format(UTZFMT_STYLE_LOCALIZED_GMT, tz, date, zoneString);
 1792|     10|                    }
 1793|    590|                    break;
 1794|  1.28k|                case UDAT_TIMEZONE_GENERIC_FIELD:
  ------------------
  |  Branch (1794:17): [True: 1.28k, False: 6.38k]
  ------------------
 1795|  1.28k|                    if (count == 1) {
  ------------------
  |  Branch (1795:25): [True: 1.26k, False: 23]
  ------------------
 1796|       |                        // "v"
 1797|  1.26k|                        tzfmt->format(UTZFMT_STYLE_GENERIC_SHORT, tz, date, zoneString);
 1798|  1.26k|                        capContextUsageType = DateFormatSymbols::kCapContextUsageMetazoneShort;
 1799|  1.26k|                    } else if (count == 4) {
  ------------------
  |  Branch (1799:32): [True: 2, False: 21]
  ------------------
 1800|       |                        // "vvvv"
 1801|      2|                        tzfmt->format(UTZFMT_STYLE_GENERIC_LONG, tz, date, zoneString);
 1802|      2|                        capContextUsageType = DateFormatSymbols::kCapContextUsageMetazoneLong;
 1803|      2|                    }
 1804|  1.28k|                    break;
 1805|    326|                case UDAT_TIMEZONE_SPECIAL_FIELD:
  ------------------
  |  Branch (1805:17): [True: 326, False: 7.34k]
  ------------------
 1806|    326|                    if (count == 1) {
  ------------------
  |  Branch (1806:25): [True: 288, False: 38]
  ------------------
 1807|       |                        // "V"
 1808|    288|                        tzfmt->format(UTZFMT_STYLE_ZONE_ID_SHORT, tz, date, zoneString);
 1809|    288|                    } else if (count == 2) {
  ------------------
  |  Branch (1809:32): [True: 6, False: 32]
  ------------------
 1810|       |                        // "VV"
 1811|      6|                        tzfmt->format(UTZFMT_STYLE_ZONE_ID, tz, date, zoneString);
 1812|     32|                    } else if (count == 3) {
  ------------------
  |  Branch (1812:32): [True: 16, False: 16]
  ------------------
 1813|       |                        // "VVV"
 1814|     16|                        tzfmt->format(UTZFMT_STYLE_EXEMPLAR_LOCATION, tz, date, zoneString);
 1815|     16|                    } else if (count == 4) {
  ------------------
  |  Branch (1815:32): [True: 2, False: 14]
  ------------------
 1816|       |                        // "VVVV"
 1817|      2|                        tzfmt->format(UTZFMT_STYLE_GENERIC_LOCATION, tz, date, zoneString);
 1818|      2|                        capContextUsageType = DateFormatSymbols::kCapContextUsageZoneLong;
 1819|      2|                    }
 1820|    326|                    break;
 1821|    392|                case UDAT_TIMEZONE_LOCALIZED_GMT_OFFSET_FIELD:
  ------------------
  |  Branch (1821:17): [True: 392, False: 7.27k]
  ------------------
 1822|    392|                    if (count == 1) {
  ------------------
  |  Branch (1822:25): [True: 364, False: 28]
  ------------------
 1823|       |                        // "O"
 1824|    364|                        tzfmt->format(UTZFMT_STYLE_LOCALIZED_GMT_SHORT, tz, date, zoneString);
 1825|    364|                    } else if (count == 4) {
  ------------------
  |  Branch (1825:32): [True: 2, False: 26]
  ------------------
 1826|       |                        // "OOOO"
 1827|      2|                        tzfmt->format(UTZFMT_STYLE_LOCALIZED_GMT, tz, date, zoneString);
 1828|      2|                    }
 1829|    392|                    break;
 1830|    518|                case UDAT_TIMEZONE_ISO_FIELD:
  ------------------
  |  Branch (1830:17): [True: 518, False: 7.15k]
  ------------------
 1831|    518|                    if (count == 1) {
  ------------------
  |  Branch (1831:25): [True: 430, False: 88]
  ------------------
 1832|       |                        // "X"
 1833|    430|                        tzfmt->format(UTZFMT_STYLE_ISO_BASIC_SHORT, tz, date, zoneString);
 1834|    430|                    } else if (count == 2) {
  ------------------
  |  Branch (1834:32): [True: 24, False: 64]
  ------------------
 1835|       |                        // "XX"
 1836|     24|                        tzfmt->format(UTZFMT_STYLE_ISO_BASIC_FIXED, tz, date, zoneString);
 1837|     64|                    } else if (count == 3) {
  ------------------
  |  Branch (1837:32): [True: 6, False: 58]
  ------------------
 1838|       |                        // "XXX"
 1839|      6|                        tzfmt->format(UTZFMT_STYLE_ISO_EXTENDED_FIXED, tz, date, zoneString);
 1840|     58|                    } else if (count == 4) {
  ------------------
  |  Branch (1840:32): [True: 2, False: 56]
  ------------------
 1841|       |                        // "XXXX"
 1842|      2|                        tzfmt->format(UTZFMT_STYLE_ISO_BASIC_FULL, tz, date, zoneString);
 1843|     56|                    } else if (count == 5) {
  ------------------
  |  Branch (1843:32): [True: 2, False: 54]
  ------------------
 1844|       |                        // "XXXXX"
 1845|      2|                        tzfmt->format(UTZFMT_STYLE_ISO_EXTENDED_FULL, tz, date, zoneString);
 1846|      2|                    }
 1847|    518|                    break;
 1848|    516|                case UDAT_TIMEZONE_ISO_LOCAL_FIELD:
  ------------------
  |  Branch (1848:17): [True: 516, False: 7.15k]
  ------------------
 1849|    516|                    if (count == 1) {
  ------------------
  |  Branch (1849:25): [True: 490, False: 26]
  ------------------
 1850|       |                        // "x"
 1851|    490|                        tzfmt->format(UTZFMT_STYLE_ISO_BASIC_LOCAL_SHORT, tz, date, zoneString);
 1852|    490|                    } else if (count == 2) {
  ------------------
  |  Branch (1852:32): [True: 14, False: 12]
  ------------------
 1853|       |                        // "xx"
 1854|     14|                        tzfmt->format(UTZFMT_STYLE_ISO_BASIC_LOCAL_FIXED, tz, date, zoneString);
 1855|     14|                    } else if (count == 3) {
  ------------------
  |  Branch (1855:32): [True: 2, False: 10]
  ------------------
 1856|       |                        // "xxx"
 1857|      2|                        tzfmt->format(UTZFMT_STYLE_ISO_EXTENDED_LOCAL_FIXED, tz, date, zoneString);
 1858|     10|                    } else if (count == 4) {
  ------------------
  |  Branch (1858:32): [True: 4, False: 6]
  ------------------
 1859|       |                        // "xxxx"
 1860|      4|                        tzfmt->format(UTZFMT_STYLE_ISO_BASIC_LOCAL_FULL, tz, date, zoneString);
 1861|      6|                    } else if (count == 5) {
  ------------------
  |  Branch (1861:32): [True: 2, False: 4]
  ------------------
 1862|       |                        // "xxxxx"
 1863|      2|                        tzfmt->format(UTZFMT_STYLE_ISO_EXTENDED_LOCAL_FULL, tz, date, zoneString);
 1864|      2|                    }
 1865|    516|                    break;
 1866|      0|                default:
  ------------------
  |  Branch (1866:17): [True: 0, False: 7.66k]
  ------------------
 1867|      0|                    UPRV_UNREACHABLE_EXIT;
  ------------------
  |  |   68|      0|#   define UPRV_UNREACHABLE_EXIT abort()
  ------------------
 1868|  7.66k|                }
 1869|  7.66k|            }
 1870|  7.66k|            appendTo += zoneString;
 1871|  7.66k|        }
 1872|      0|        break;
 1873|       |
 1874|    381|    case UDAT_QUARTER_FIELD:
  ------------------
  |  Branch (1874:5): [True: 381, False: 132k]
  ------------------
 1875|    381|        if (count >= 5)
  ------------------
  |  Branch (1875:13): [True: 13, False: 368]
  ------------------
 1876|     13|            _appendSymbol(appendTo, value/3, fSymbols->fNarrowQuarters,
 1877|     13|                          fSymbols->fNarrowQuartersCount);
 1878|    368|         else if (count == 4)
  ------------------
  |  Branch (1878:19): [True: 3, False: 365]
  ------------------
 1879|      3|            _appendSymbol(appendTo, value/3, fSymbols->fQuarters,
 1880|      3|                          fSymbols->fQuartersCount);
 1881|    365|        else if (count == 3)
  ------------------
  |  Branch (1881:18): [True: 10, False: 355]
  ------------------
 1882|     10|            _appendSymbol(appendTo, value/3, fSymbols->fShortQuarters,
 1883|     10|                          fSymbols->fShortQuartersCount);
 1884|    355|        else
 1885|    355|            zeroPaddingNumber(currentNumberFormat,appendTo, (value/3) + 1, count, maxIntCount);
 1886|    381|        break;
 1887|       |
 1888|    318|    case UDAT_STANDALONE_QUARTER_FIELD:
  ------------------
  |  Branch (1888:5): [True: 318, False: 132k]
  ------------------
 1889|    318|        if (count >= 5)
  ------------------
  |  Branch (1889:13): [True: 11, False: 307]
  ------------------
 1890|     11|            _appendSymbol(appendTo, value/3, fSymbols->fStandaloneNarrowQuarters,
 1891|     11|                          fSymbols->fStandaloneNarrowQuartersCount);
 1892|    307|        else if (count == 4)
  ------------------
  |  Branch (1892:18): [True: 3, False: 304]
  ------------------
 1893|      3|            _appendSymbol(appendTo, value/3, fSymbols->fStandaloneQuarters,
 1894|      3|                          fSymbols->fStandaloneQuartersCount);
 1895|    304|        else if (count == 3)
  ------------------
  |  Branch (1895:18): [True: 5, False: 299]
  ------------------
 1896|      5|            _appendSymbol(appendTo, value/3, fSymbols->fStandaloneShortQuarters,
 1897|      5|                          fSymbols->fStandaloneShortQuartersCount);
 1898|    299|        else
 1899|    299|            zeroPaddingNumber(currentNumberFormat,appendTo, (value/3) + 1, count, maxIntCount);
 1900|    318|        break;
 1901|       |
 1902|    368|    case UDAT_AM_PM_MIDNIGHT_NOON_FIELD:
  ------------------
  |  Branch (1902:5): [True: 368, False: 132k]
  ------------------
 1903|    368|    {
 1904|    368|        const UnicodeString *toAppend = nullptr;
 1905|    368|        int32_t hour = cal.get(UCAL_HOUR_OF_DAY, status);
 1906|       |
 1907|       |        // Note: "midnight" can be ambiguous as to whether it refers to beginning of day or end of day.
 1908|       |        // For ICU 57 output of "midnight" is temporarily suppressed.
 1909|       |
 1910|       |        // For "midnight" and "noon":
 1911|       |        // Time, as displayed, must be exactly noon or midnight.
 1912|       |        // This means minutes and seconds, if present, must be zero.
 1913|    368|        if ((/*hour == 0 ||*/ hour == 12) &&
  ------------------
  |  Branch (1913:13): [True: 29, False: 339]
  ------------------
 1914|    368|                (!fHasMinute || cal.get(UCAL_MINUTE, status) == 0) &&
  ------------------
  |  Branch (1914:18): [True: 23, False: 6]
  |  Branch (1914:33): [True: 3, False: 3]
  ------------------
 1915|    368|                (!fHasSecond || cal.get(UCAL_SECOND, status) == 0)) {
  ------------------
  |  Branch (1915:18): [True: 19, False: 7]
  |  Branch (1915:33): [True: 3, False: 4]
  ------------------
 1916|       |            // Stealing am/pm value to use as our array index.
 1917|       |            // It works out: am/midnight are both 0, pm/noon are both 1,
 1918|       |            // 12 am is 12 midnight, and 12 pm is 12 noon.
 1919|     22|            int32_t val = cal.get(UCAL_AM_PM, status);
 1920|       |
 1921|     22|            if (count <= 3) {
  ------------------
  |  Branch (1921:17): [True: 11, False: 11]
  ------------------
 1922|     11|                toAppend = &fSymbols->fAbbreviatedDayPeriods[val];
 1923|     11|            } else if (count == 4 || count > 5) {
  ------------------
  |  Branch (1923:24): [True: 3, False: 8]
  |  Branch (1923:38): [True: 5, False: 3]
  ------------------
 1924|      8|                toAppend = &fSymbols->fWideDayPeriods[val];
 1925|      8|            } else { // count == 5
 1926|      3|                toAppend = &fSymbols->fNarrowDayPeriods[val];
 1927|      3|            }
 1928|     22|        }
 1929|       |
 1930|       |        // toAppend is nullptr if time isn't exactly midnight or noon (as displayed).
 1931|       |        // toAppend is bogus if time is midnight or noon, but no localized string exists.
 1932|       |        // In either case, fall back to am/pm.
 1933|    368|        if (toAppend == nullptr || toAppend->isBogus()) {
  ------------------
  |  Branch (1933:13): [True: 346, False: 22]
  |  Branch (1933:36): [True: 8, False: 14]
  ------------------
 1934|       |            // Reformat with identical arguments except ch, now changed to 'a'.
 1935|       |            // We are passing a different fieldToOutput because we want to add
 1936|       |            // 'b' to field position. This makes this fallback stable when
 1937|       |            // there is a data change on locales.
 1938|    354|            subFormat(appendTo, u'a', count, capitalizationContext, fieldNum, u'b', handler, cal, status);
 1939|    354|            return;
 1940|    354|        } else {
 1941|     14|            appendTo += *toAppend;
 1942|     14|        }
 1943|       |
 1944|     14|        break;
 1945|    368|    }
 1946|       |
 1947|    609|    case UDAT_FLEXIBLE_DAY_PERIOD_FIELD:
  ------------------
  |  Branch (1947:5): [True: 609, False: 132k]
  ------------------
 1948|    609|    {
 1949|       |        // TODO: Maybe fetch the DayperiodRules during initialization (instead of at the first
 1950|       |        // loading of an instance) if a relevant pattern character (b or B) is used.
 1951|    609|        const DayPeriodRules *ruleSet = DayPeriodRules::getInstance(this->getSmpFmtLocale(), status);
 1952|    609|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (1952:13): [True: 0, False: 609]
  ------------------
 1953|       |            // Data doesn't conform to spec, therefore loading failed.
 1954|      0|            break;
 1955|      0|        }
 1956|    609|        if (ruleSet == nullptr) {
  ------------------
  |  Branch (1956:13): [True: 95, False: 514]
  ------------------
 1957|       |            // Data doesn't exist for the locale we're looking for.
 1958|       |            // Falling back to am/pm.
 1959|       |            // We are passing a different fieldToOutput because we want to add
 1960|       |            // 'B' to field position. This makes this fallback stable when
 1961|       |            // there is a data change on locales.
 1962|     95|            subFormat(appendTo, u'a', count, capitalizationContext, fieldNum, u'B', handler, cal, status);
 1963|     95|            return;
 1964|     95|        }
 1965|       |
 1966|       |        // Get current display time.
 1967|    514|        int32_t hour = cal.get(UCAL_HOUR_OF_DAY, status);
 1968|    514|        int32_t minute = 0;
 1969|    514|        if (fHasMinute) {
  ------------------
  |  Branch (1969:13): [True: 125, False: 389]
  ------------------
 1970|    125|            minute = cal.get(UCAL_MINUTE, status);
 1971|    125|        }
 1972|    514|        int32_t second = 0;
 1973|    514|        if (fHasSecond) {
  ------------------
  |  Branch (1973:13): [True: 91, False: 423]
  ------------------
 1974|     91|            second = cal.get(UCAL_SECOND, status);
 1975|     91|        }
 1976|       |
 1977|       |        // Determine day period.
 1978|    514|        DayPeriodRules::DayPeriod periodType;
 1979|    514|        if (hour == 0 && minute == 0 && second == 0 && ruleSet->hasMidnight()) {
  ------------------
  |  Branch (1979:13): [True: 380, False: 134]
  |  Branch (1979:26): [True: 362, False: 18]
  |  Branch (1979:41): [True: 350, False: 12]
  |  Branch (1979:56): [True: 323, False: 27]
  ------------------
 1980|    323|            periodType = DayPeriodRules::DAYPERIOD_MIDNIGHT;
 1981|    323|        } else if (hour == 12 && minute == 0 && second == 0 && ruleSet->hasNoon()) {
  ------------------
  |  Branch (1981:20): [True: 33, False: 158]
  |  Branch (1981:34): [True: 21, False: 12]
  |  Branch (1981:49): [True: 11, False: 10]
  |  Branch (1981:64): [True: 4, False: 7]
  ------------------
 1982|      4|            periodType = DayPeriodRules::DAYPERIOD_NOON;
 1983|    187|        } else {
 1984|    187|            periodType = ruleSet->getDayPeriodForHour(hour);
 1985|    187|        }
 1986|       |
 1987|       |        // Rule set exists, therefore periodType can't be UNKNOWN.
 1988|       |        // Get localized string.
 1989|    514|        U_ASSERT(periodType != DayPeriodRules::DAYPERIOD_UNKNOWN);
  ------------------
  |  |   35|    514|#   define U_ASSERT(exp) (void)0
  ------------------
 1990|    514|        UnicodeString *toAppend = nullptr;
 1991|    514|        int32_t index;
 1992|       |
 1993|       |        // Note: "midnight" can be ambiguous as to whether it refers to beginning of day or end of day.
 1994|       |        // For ICU 57 output of "midnight" is temporarily suppressed.
 1995|       |
 1996|    514|        if (periodType != DayPeriodRules::DAYPERIOD_AM &&
  ------------------
  |  Branch (1996:13): [True: 514, False: 0]
  ------------------
 1997|    514|                periodType != DayPeriodRules::DAYPERIOD_PM &&
  ------------------
  |  Branch (1997:17): [True: 514, False: 0]
  ------------------
 1998|    514|                periodType != DayPeriodRules::DAYPERIOD_MIDNIGHT) {
  ------------------
  |  Branch (1998:17): [True: 191, False: 323]
  ------------------
 1999|    191|            index = static_cast<int32_t>(periodType);
 2000|    191|            if (count <= 3) {
  ------------------
  |  Branch (2000:17): [True: 171, False: 20]
  ------------------
 2001|    171|                toAppend = &fSymbols->fAbbreviatedDayPeriods[index];  // i.e. short
 2002|    171|            } else if (count == 4 || count > 5) {
  ------------------
  |  Branch (2002:24): [True: 3, False: 17]
  |  Branch (2002:38): [True: 14, False: 3]
  ------------------
 2003|     17|                toAppend = &fSymbols->fWideDayPeriods[index];
 2004|     17|            } else {  // count == 5
 2005|      3|                toAppend = &fSymbols->fNarrowDayPeriods[index];
 2006|      3|            }
 2007|    191|        }
 2008|       |
 2009|       |        // Fallback schedule:
 2010|       |        // Midnight/Noon -> General Periods -> AM/PM.
 2011|       |
 2012|       |        // Midnight/Noon -> General Periods.
 2013|    514|        if ((toAppend == nullptr || toAppend->isBogus()) &&
  ------------------
  |  Branch (2013:14): [True: 323, False: 191]
  |  Branch (2013:37): [True: 2, False: 189]
  ------------------
 2014|    514|                (periodType == DayPeriodRules::DAYPERIOD_MIDNIGHT ||
  ------------------
  |  Branch (2014:18): [True: 323, False: 2]
  ------------------
 2015|    325|                 periodType == DayPeriodRules::DAYPERIOD_NOON)) {
  ------------------
  |  Branch (2015:18): [True: 1, False: 1]
  ------------------
 2016|    324|            periodType = ruleSet->getDayPeriodForHour(hour);
 2017|    324|            index = static_cast<int32_t>(periodType);
 2018|       |
 2019|    324|            if (count <= 3) {
  ------------------
  |  Branch (2019:17): [True: 303, False: 21]
  ------------------
 2020|    303|                toAppend = &fSymbols->fAbbreviatedDayPeriods[index];  // i.e. short
 2021|    303|            } else if (count == 4 || count > 5) {
  ------------------
  |  Branch (2021:24): [True: 3, False: 18]
  |  Branch (2021:38): [True: 12, False: 6]
  ------------------
 2022|     15|                toAppend = &fSymbols->fWideDayPeriods[index];
 2023|     15|            } else {  // count == 5
 2024|      6|                toAppend = &fSymbols->fNarrowDayPeriods[index];
 2025|      6|            }
 2026|    324|        }
 2027|       |
 2028|       |        // General Periods -> AM/PM.
 2029|    514|        if (periodType == DayPeriodRules::DAYPERIOD_AM ||
  ------------------
  |  Branch (2029:13): [True: 0, False: 514]
  ------------------
 2030|    514|            periodType == DayPeriodRules::DAYPERIOD_PM ||
  ------------------
  |  Branch (2030:13): [True: 0, False: 514]
  ------------------
 2031|    514|            toAppend->isBogus()) {
  ------------------
  |  Branch (2031:13): [True: 4, False: 510]
  ------------------
 2032|       |            // We are passing a different fieldToOutput because we want to add
 2033|       |            // 'B' to field position iterator. This makes this fallback stable when
 2034|       |            // there is a data change on locales.
 2035|      4|            subFormat(appendTo, u'a', count, capitalizationContext, fieldNum, u'B', handler, cal, status);
 2036|      4|            return;
 2037|      4|        }
 2038|    510|        else {
 2039|    510|            appendTo += *toAppend;
 2040|    510|        }
 2041|       |
 2042|    510|        break;
 2043|    514|    }
 2044|       |
 2045|       |    // all of the other pattern symbols can be formatted as simple numbers with
 2046|       |    // appropriate zero padding
 2047|  45.3k|    default:
  ------------------
  |  Branch (2047:5): [True: 45.3k, False: 87.3k]
  ------------------
 2048|  45.3k|        zeroPaddingNumber(currentNumberFormat,appendTo, value, count, maxIntCount);
 2049|  45.3k|        break;
 2050|   132k|    }
 2051|   132k|#if !UCONFIG_NO_BREAK_ITERATION
 2052|       |    // if first field, check to see whether we need to and are able to titlecase it
 2053|   132k|    if (fieldNum == 0 && fCapitalizationBrkIter != nullptr && appendTo.length() > beginOffset &&
  ------------------
  |  Branch (2053:9): [True: 27.0k, False: 105k]
  |  Branch (2053:26): [True: 0, False: 27.0k]
  |  Branch (2053:63): [True: 0, False: 0]
  ------------------
 2054|   132k|            u_islower(appendTo.char32At(beginOffset))) {
  ------------------
  |  |  318|      0|#define u_islower U_ICU_ENTRY_POINT_RENAME(u_islower)
  |  |  ------------------
  |  |  |  |  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 (2054:13): [True: 0, False: 0]
  ------------------
 2055|      0|        UBool titlecase = false;
 2056|      0|        switch (capitalizationContext) {
 2057|      0|            case UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE:
  ------------------
  |  Branch (2057:13): [True: 0, False: 0]
  ------------------
 2058|      0|                titlecase = true;
 2059|      0|                break;
 2060|      0|            case UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU:
  ------------------
  |  Branch (2060:13): [True: 0, False: 0]
  ------------------
 2061|      0|                titlecase = fSymbols->fCapitalization[capContextUsageType][0];
 2062|      0|                break;
 2063|      0|            case UDISPCTX_CAPITALIZATION_FOR_STANDALONE:
  ------------------
  |  Branch (2063:13): [True: 0, False: 0]
  ------------------
 2064|      0|                titlecase = fSymbols->fCapitalization[capContextUsageType][1];
 2065|      0|                break;
 2066|      0|            default:
  ------------------
  |  Branch (2066:13): [True: 0, False: 0]
  ------------------
 2067|       |                // titlecase = false;
 2068|      0|                break;
 2069|      0|        }
 2070|      0|        if (titlecase) {
  ------------------
  |  Branch (2070:13): [True: 0, False: 0]
  ------------------
 2071|      0|            BreakIterator* const mutableCapitalizationBrkIter = fCapitalizationBrkIter->clone();
 2072|      0|            UnicodeString firstField(appendTo, beginOffset);
 2073|      0|            firstField.toTitle(mutableCapitalizationBrkIter, fLocale, U_TITLECASE_NO_LOWERCASE | U_TITLECASE_NO_BREAK_ADJUSTMENT);
  ------------------
  |  |   85|      0|#define U_TITLECASE_NO_LOWERCASE 0x100
  ------------------
                          firstField.toTitle(mutableCapitalizationBrkIter, fLocale, U_TITLECASE_NO_LOWERCASE | U_TITLECASE_NO_BREAK_ADJUSTMENT);
  ------------------
  |  |  109|      0|#define U_TITLECASE_NO_BREAK_ADJUSTMENT 0x200
  ------------------
 2074|      0|            appendTo.replaceBetween(beginOffset, appendTo.length(), firstField);
 2075|      0|            delete mutableCapitalizationBrkIter;
 2076|      0|        }
 2077|      0|    }
 2078|   132k|#endif
 2079|       |
 2080|   132k|    handler.addAttribute(DateFormatSymbols::getPatternCharIndex(fieldToOutput), beginOffset, appendTo.length());
 2081|   132k|}
_ZNK6icu_7816SimpleDateFormat17zeroPaddingNumberEPKNS_12NumberFormatERNS_13UnicodeStringEiii:
 2159|   101k|{
 2160|       |
 2161|   101k|    if (currentNumberFormat == fNumberFormat && fSimpleNumberFormatter) {
  ------------------
  |  Branch (2161:9): [True: 100k, False: 761]
  |  Branch (2161:49): [True: 100k, False: 0]
  ------------------
 2162|       |        // Can use fast path
 2163|       |        // We create UFormattedNumberData ourselves to avoid a heap allocation
 2164|       |        // and corresponding free. Set the pointer to null afterwards to prevent
 2165|       |        // the implementation from attempting to free it.
 2166|   100k|        UErrorCode localStatus = U_ZERO_ERROR;
 2167|   100k|        number::impl::UFormattedNumberData data;
 2168|   100k|        data.quantity.setToLong(value);
 2169|   100k|        number::SimpleNumber number(&data, localStatus);
 2170|   100k|        number.setMinimumIntegerDigits(minDigits, localStatus);
 2171|   100k|        number.setMaximumIntegerDigits(maxDigits, localStatus);
 2172|       |
 2173|   100k|        number::FormattedNumber result = fSimpleNumberFormatter->format(std::move(number), localStatus);
 2174|   100k|        if (U_FAILURE(localStatus)) {
  ------------------
  |  Branch (2174:13): [True: 0, False: 100k]
  ------------------
 2175|      0|            result.fData = nullptr;
 2176|      0|            return;
 2177|      0|        }
 2178|   100k|        UnicodeStringAppendable appendable(appendTo);
 2179|   100k|        result.appendTo(appendable, localStatus);
 2180|   100k|        result.fData = nullptr;
 2181|   100k|        return;
 2182|   100k|    }
 2183|       |
 2184|       |    // Check for RBNF (no clone necessary)
 2185|    761|    const auto* rbnf = dynamic_cast<const RuleBasedNumberFormat*>(currentNumberFormat);
 2186|    761|    if (rbnf != nullptr) {
  ------------------
  |  Branch (2186:9): [True: 761, False: 0]
  ------------------
 2187|    761|        FieldPosition pos(FieldPosition::DONT_CARE);
 2188|    761|        rbnf->format(value, appendTo, pos);  // 3rd arg is there to speed up processing
 2189|    761|        return;
 2190|    761|    }
 2191|       |
 2192|       |    // Fall back to slow path (clone and mutate the NumberFormat)
 2193|      0|    if (currentNumberFormat != nullptr) {
  ------------------
  |  Branch (2193:9): [True: 0, False: 0]
  ------------------
 2194|      0|        FieldPosition pos(FieldPosition::DONT_CARE);
 2195|      0|        LocalPointer<NumberFormat> nf(currentNumberFormat->clone());
 2196|      0|        nf->setMinimumIntegerDigits(minDigits);
 2197|      0|        nf->setMaximumIntegerDigits(maxDigits);
 2198|      0|        nf->format(value, appendTo, pos);  // 3rd arg is there to speed up processing
 2199|      0|    }
 2200|      0|}
_ZNK6icu_7816SimpleDateFormat9toPatternERNS_13UnicodeStringE:
 4016|  9.16k|{
 4017|  9.16k|    result = fPattern;
 4018|  9.16k|    return result;
 4019|  9.16k|}
_ZN6icu_7816SimpleDateFormat12applyPatternERKNS_13UnicodeStringE:
 4037|  2.52k|{
 4038|  2.52k|    fPattern = pattern;
 4039|  2.52k|    parsePattern();
 4040|       |
 4041|       |    // Hack to update use of Gannen year numbering for ja@calendar=japanese -
 4042|       |    // use only if format is non-numeric (includes 年) and no other fDateOverride.
 4043|  2.52k|    if (fCalendar != nullptr && typeid(*fCalendar) == typeid(JapaneseCalendar) &&
  ------------------
  |  Branch (4043:9): [True: 2.52k, False: 0]
  |  Branch (4043:33): [True: 0, False: 2.52k]
  ------------------
 4044|  2.52k|            uprv_strcmp(fLocale.getLanguage(),"ja") == 0) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (4044:13): [True: 0, False: 0]
  ------------------
 4045|      0|        if (fDateOverride==UnicodeString(u"y=jpanyear") && !fHasHanYearChar) {
  ------------------
  |  Branch (4045:13): [True: 0, False: 0]
  |  Branch (4045:13): [True: 0, False: 0]
  |  Branch (4045:60): [True: 0, False: 0]
  ------------------
 4046|       |            // Gannen numbering is set but new pattern should not use it, unset;
 4047|       |            // use procedure from adoptNumberFormat to clear overrides
 4048|      0|            if (fSharedNumberFormatters) {
  ------------------
  |  Branch (4048:17): [True: 0, False: 0]
  ------------------
 4049|      0|                freeSharedNumberFormatters(fSharedNumberFormatters);
 4050|      0|                fSharedNumberFormatters = nullptr;
 4051|      0|            }
 4052|      0|            fDateOverride.setToBogus(); // record status
 4053|      0|        } else if (fDateOverride.isBogus() && fHasHanYearChar) {
  ------------------
  |  Branch (4053:20): [True: 0, False: 0]
  |  Branch (4053:47): [True: 0, False: 0]
  ------------------
 4054|       |            // No current override (=> no Gannen numbering) but new pattern needs it;
 4055|       |            // use procedures from initNUmberFormatters / adoptNumberFormat
 4056|      0|            umtx_lock(&LOCK);
  ------------------
  |  | 1250|      0|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4057|      0|            if (fSharedNumberFormatters == nullptr) {
  ------------------
  |  Branch (4057:17): [True: 0, False: 0]
  ------------------
 4058|      0|                fSharedNumberFormatters = allocSharedNumberFormatters();
 4059|      0|            }
 4060|      0|            umtx_unlock(&LOCK);
  ------------------
  |  | 1251|      0|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 4061|      0|            if (fSharedNumberFormatters != nullptr) {
  ------------------
  |  Branch (4061:17): [True: 0, False: 0]
  ------------------
 4062|      0|                Locale ovrLoc(fLocale.getLanguage(),fLocale.getCountry(),fLocale.getVariant(),"numbers=jpanyear");
 4063|      0|                UErrorCode status = U_ZERO_ERROR;
 4064|      0|                const SharedNumberFormat *snf = createSharedNumberFormat(ovrLoc, status);
 4065|      0|                if (U_SUCCESS(status)) {
  ------------------
  |  Branch (4065:21): [True: 0, False: 0]
  ------------------
 4066|       |                    // Now that we have an appropriate number formatter, fill in the
 4067|       |                    // appropriate slot in the number formatters table.
 4068|      0|                    UDateFormatField patternCharIndex = DateFormatSymbols::getPatternCharIndex(u'y');
 4069|      0|                    SharedObject::copyPtr(snf, fSharedNumberFormatters[patternCharIndex]);
 4070|      0|                    snf->deleteIfZeroRefCount();
 4071|      0|                    fDateOverride.setTo(u"y=jpanyear", -1); // record status
 4072|      0|                }
 4073|      0|            }
 4074|      0|        }
 4075|      0|    }
 4076|  2.52k|}
_ZN6icu_7816SimpleDateFormat10setContextE15UDisplayContextR10UErrorCode:
 4170|  2.52k|{
 4171|  2.52k|    DateFormat::setContext(value, status);
 4172|  2.52k|#if !UCONFIG_NO_BREAK_ITERATION
 4173|  2.52k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (4173:9): [True: 2.52k, False: 0]
  ------------------
 4174|  2.52k|        if ( fCapitalizationBrkIter == nullptr && (value==UDISPCTX_CAPITALIZATION_FOR_BEGINNING_OF_SENTENCE ||
  ------------------
  |  Branch (4174:14): [True: 2.52k, False: 0]
  |  Branch (4174:52): [True: 0, False: 2.52k]
  ------------------
 4175|  2.52k|                value==UDISPCTX_CAPITALIZATION_FOR_UI_LIST_OR_MENU || value==UDISPCTX_CAPITALIZATION_FOR_STANDALONE) ) {
  ------------------
  |  Branch (4175:17): [True: 0, False: 2.52k]
  |  Branch (4175:71): [True: 0, False: 2.52k]
  ------------------
 4176|      0|            status = U_ZERO_ERROR;
 4177|      0|            fCapitalizationBrkIter = BreakIterator::createSentenceInstance(fLocale, status);
 4178|      0|            if (U_FAILURE(status)) {
  ------------------
  |  Branch (4178:17): [True: 0, False: 0]
  ------------------
 4179|      0|                delete fCapitalizationBrkIter;
 4180|      0|                fCapitalizationBrkIter = nullptr;
 4181|      0|            }
 4182|      0|        }
 4183|  2.52k|    }
 4184|  2.52k|#endif
 4185|  2.52k|}
_ZNK6icu_7816SimpleDateFormat15getSmpFmtLocaleEv:
 4242|    609|SimpleDateFormat::getSmpFmtLocale() const {
 4243|    609|    return fLocale;
 4244|    609|}
_ZNK6icu_7816SimpleDateFormat8tzFormatER10UErrorCode:
 4391|  7.66k|SimpleDateFormat::tzFormat(UErrorCode &status) const {
 4392|  7.66k|    Mutex m(&LOCK);
 4393|  7.66k|    if (fTimeZoneFormat == nullptr && U_SUCCESS(status)) {
  ------------------
  |  Branch (4393:9): [True: 7.66k, False: 0]
  |  Branch (4393:39): [True: 7.66k, False: 0]
  ------------------
 4394|  7.66k|        const_cast<SimpleDateFormat *>(this)->fTimeZoneFormat =
 4395|  7.66k|                TimeZoneFormat::createInstance(fLocale, status);
 4396|  7.66k|    }
 4397|  7.66k|    return fTimeZoneFormat;
 4398|  7.66k|}
_ZN6icu_7816SimpleDateFormat12parsePatternEv:
 4400|  61.2k|void SimpleDateFormat::parsePattern() {
 4401|  61.2k|    fHasMinute = false;
 4402|  61.2k|    fHasSecond = false;
 4403|  61.2k|    fHasHanYearChar = false;
 4404|       |
 4405|  61.2k|    int len = fPattern.length();
 4406|  61.2k|    UBool inQuote = false;
 4407|   173M|    for (int32_t i = 0; i < len; ++i) {
  ------------------
  |  Branch (4407:25): [True: 173M, False: 61.2k]
  ------------------
 4408|   173M|        char16_t ch = fPattern[i];
 4409|   173M|        if (ch == QUOTE) {
  ------------------
  |  Branch (4409:13): [True: 53.4k, False: 173M]
  ------------------
 4410|  53.4k|            inQuote = !inQuote;
 4411|  53.4k|        }
 4412|   173M|        if (ch == 0x5E74) { // don't care whether this is inside quotes
  ------------------
  |  Branch (4412:13): [True: 307, False: 173M]
  ------------------
 4413|    307|            fHasHanYearChar = true;
 4414|    307|        }
 4415|   173M|        if (!inQuote) {
  ------------------
  |  Branch (4415:13): [True: 129M, False: 43.8M]
  ------------------
 4416|   129M|            if (ch == 0x6D) {  // 0x6D == 'm'
  ------------------
  |  Branch (4416:17): [True: 83.3k, False: 129M]
  ------------------
 4417|  83.3k|                fHasMinute = true;
 4418|  83.3k|            }
 4419|   129M|            if (ch == 0x73) {  // 0x73 == 's'
  ------------------
  |  Branch (4419:17): [True: 80.1k, False: 129M]
  ------------------
 4420|  80.1k|                fHasSecond = true;
 4421|  80.1k|            }
 4422|   129M|        }
 4423|   173M|    }
 4424|  61.2k|}
smpdtfmt.cpp:_ZN6icu_78L26freeSharedNumberFormattersEPPKNS_18SharedNumberFormatE:
  315|  1.18k|static void freeSharedNumberFormatters(const SharedNumberFormat ** list) {
  316|  46.2k|    for (int32_t i = 0; i < UDAT_FIELD_COUNT; ++i) {
  ------------------
  |  Branch (316:25): [True: 45.0k, False: 1.18k]
  ------------------
  317|  45.0k|        SharedObject::clearPtr(list[i]);
  318|  45.0k|    }
  319|  1.18k|    uprv_free(list);
  ------------------
  |  | 1503|  1.18k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  1.18k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.18k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.18k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  320|  1.18k|}
smpdtfmt.cpp:_ZN6icu_78L27allocSharedNumberFormattersEv:
  303|  1.18k|static const SharedNumberFormat **allocSharedNumberFormatters() {
  304|  1.18k|    const SharedNumberFormat** result = static_cast<const SharedNumberFormat**>(
  305|  1.18k|            uprv_malloc(UDAT_FIELD_COUNT * sizeof(const SharedNumberFormat*)));
  ------------------
  |  | 1524|  1.18k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  1.18k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.18k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.18k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  306|  1.18k|    if (result == nullptr) {
  ------------------
  |  Branch (306:9): [True: 0, False: 1.18k]
  ------------------
  307|      0|        return nullptr;
  308|      0|    }
  309|  46.2k|    for (int32_t i = 0; i < UDAT_FIELD_COUNT; ++i) {
  ------------------
  |  Branch (309:25): [True: 45.0k, False: 1.18k]
  ------------------
  310|  45.0k|        result[i] = nullptr;
  311|  45.0k|    }
  312|  1.18k|    return result;
  313|  1.18k|}
smpdtfmt.cpp:_ZN6icu_78L23fixNumberFormatForDatesERNS_12NumberFormatE:
  270|  59.2k|static void fixNumberFormatForDates(NumberFormat &nf) {
  271|  59.2k|    nf.setGroupingUsed(false);
  272|  59.2k|    DecimalFormat* decfmt = dynamic_cast<DecimalFormat*>(&nf);
  273|  59.2k|    if (decfmt != nullptr) {
  ------------------
  |  Branch (273:9): [True: 57.3k, False: 1.91k]
  ------------------
  274|  57.3k|        decfmt->setDecimalSeparatorAlwaysShown(false);
  275|  57.3k|    }
  276|  59.2k|    nf.setParseIntegerOnly(true);
  277|  59.2k|    nf.setMinimumFractionDigits(0); // To prevent "Jan 1.00, 1997.00"
  278|  59.2k|}
smpdtfmt.cpp:_ZN6icu_78L24createSharedNumberFormatERKNS_6LocaleER10UErrorCode:
  291|  1.48k|        const Locale &loc, UErrorCode &status) {
  292|  1.48k|    NumberFormat *nf = NumberFormat::createInstance(loc, status);
  293|  1.48k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (293:9): [True: 7, False: 1.47k]
  ------------------
  294|      7|        return nullptr;
  295|      7|    }
  296|  1.47k|    const SharedNumberFormat *result = createSharedNumberFormat(nf);
  297|  1.47k|    if (result == nullptr) {
  ------------------
  |  Branch (297:9): [True: 0, False: 1.47k]
  ------------------
  298|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  299|      0|    }
  300|  1.47k|    return result;
  301|  1.48k|}
smpdtfmt.cpp:_ZN6icu_78L13_appendSymbolERNS_13UnicodeStringEiPKS0_i:
 1289|  19.7k|              int32_t symbolsCount) {
 1290|  19.7k|    U_ASSERT(0 <= value && value < symbolsCount);
  ------------------
  |  |   35|  19.7k|#   define U_ASSERT(exp) (void)0
  ------------------
 1291|  19.7k|    if (0 <= value && value < symbolsCount) {
  ------------------
  |  Branch (1291:9): [True: 19.7k, False: 0]
  |  Branch (1291:23): [True: 19.7k, False: 0]
  ------------------
 1292|  19.7k|        dst += symbols[value];
 1293|  19.7k|    }
 1294|  19.7k|}
smpdtfmt.cpp:_ZN6icu_78L29_appendSymbolWithMonthPatternERNS_13UnicodeStringEiPKS0_iS3_R10UErrorCode:
 1298|  17.9k|              const UnicodeString* monthPattern, UErrorCode& status) {
 1299|  17.9k|    U_ASSERT(0 <= value && value < symbolsCount);
  ------------------
  |  |   35|  17.9k|#   define U_ASSERT(exp) (void)0
  ------------------
 1300|  17.9k|    if (0 <= value && value < symbolsCount) {
  ------------------
  |  Branch (1300:9): [True: 17.9k, False: 0]
  |  Branch (1300:23): [True: 17.9k, False: 0]
  ------------------
 1301|  17.9k|        if (monthPattern == nullptr) {
  ------------------
  |  Branch (1301:13): [True: 17.9k, False: 0]
  ------------------
 1302|  17.9k|            dst += symbols[value];
 1303|  17.9k|        } else {
 1304|      0|            SimpleFormatter(*monthPattern, 1, 1, status).format(symbols[value], dst, status);
 1305|      0|        }
 1306|  17.9k|    }
 1307|  17.9k|}
smpdtfmt.cpp:_ZN6icu_78L24createSharedNumberFormatEPNS_12NumberFormatE:
  281|  1.47k|        NumberFormat *nfToAdopt) {
  282|  1.47k|    fixNumberFormatForDates(*nfToAdopt);
  283|  1.47k|    const SharedNumberFormat *result = new SharedNumberFormat(nfToAdopt);
  284|  1.47k|    if (result == nullptr) {
  ------------------
  |  Branch (284:9): [True: 0, False: 1.47k]
  ------------------
  285|      0|        delete nfToAdopt;
  286|      0|    }
  287|  1.47k|    return result;
  288|  1.47k|}

_ZN6icu_7814TaiwanCalendarC2ERKNS_6LocaleER10UErrorCode:
   37|      5|:   GregorianCalendar(aLocale, success)
   38|      5|{
   39|      5|}
_ZN6icu_7814TaiwanCalendarD2Ev:
   42|     45|{
   43|     45|}
_ZN6icu_7814TaiwanCalendarC2ERKS0_:
   46|     40|: GregorianCalendar(source)
   47|     40|{
   48|     40|}
_ZNK6icu_7814TaiwanCalendar5cloneEv:
   51|     40|{
   52|     40|    return new TaiwanCalendar(*this);
   53|     40|}
_ZNK6icu_7814TaiwanCalendar7getTypeEv:
   56|     23|{
   57|     23|    return "roc";
   58|     23|}
_ZN6icu_7814TaiwanCalendar21handleGetExtendedYearER10UErrorCode:
   61|      2|{
   62|      2|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (62:9): [True: 0, False: 2]
  ------------------
   63|      0|        return 0;
   64|      0|    }
   65|       |
   66|       |    // EXTENDED_YEAR in TaiwanCalendar is a Gregorian year
   67|       |    // The default value of EXTENDED_YEAR is 1970 (Minguo 59)
   68|      2|    if (newerField(UCAL_EXTENDED_YEAR, UCAL_YEAR) == UCAL_EXTENDED_YEAR
  ------------------
  |  Branch (68:9): [True: 0, False: 2]
  ------------------
   69|      2|        && newerField(UCAL_EXTENDED_YEAR, UCAL_ERA) == UCAL_EXTENDED_YEAR) {
  ------------------
  |  Branch (69:12): [True: 0, False: 0]
  ------------------
   70|      0|        return internalGet(UCAL_EXTENDED_YEAR, kGregorianEpoch);
   71|      0|    }
   72|      2|    int32_t era = internalGet(UCAL_ERA, MINGUO);
   73|      2|    int32_t year = internalGet(UCAL_YEAR, 1);
   74|      2|    switch (era) {
   75|      2|        case MINGUO:
  ------------------
  |  Branch (75:9): [True: 2, False: 0]
  ------------------
   76|      2|            if (uprv_add32_overflow(year, kTaiwanEraStart, &year)) {
  ------------------
  |  | 1394|      2|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (76:17): [True: 0, False: 2]
  ------------------
   77|      0|                status = U_ILLEGAL_ARGUMENT_ERROR;
   78|      0|                return 0;
   79|      0|            }
   80|      2|            return year;
   81|      0|        case BEFORE_MINGUO:
  ------------------
  |  Branch (81:9): [True: 0, False: 2]
  ------------------
   82|      0|            if (uprv_add32_overflow(1 + kTaiwanEraStart, -year, &year)) {
  ------------------
  |  | 1394|      0|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  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 (82:17): [True: 0, False: 0]
  ------------------
   83|      0|                status = U_ILLEGAL_ARGUMENT_ERROR;
   84|      0|                return 0;
   85|      0|            }
   86|      0|            return year;
   87|      0|        default:
  ------------------
  |  Branch (87:9): [True: 0, False: 2]
  ------------------
   88|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
   89|      0|            return 0;
   90|      2|    }
   91|      2|}
_ZN6icu_7814TaiwanCalendar19handleComputeFieldsEiR10UErrorCode:
   94|      4|{
   95|      4|    GregorianCalendar::handleComputeFields(julianDay, status);
   96|      4|    int32_t y = internalGet(UCAL_EXTENDED_YEAR) - kTaiwanEraStart;
   97|      4|    if(y>0) {
  ------------------
  |  Branch (97:8): [True: 4, False: 0]
  ------------------
   98|      4|        internalSet(UCAL_ERA, MINGUO);
   99|      4|        internalSet(UCAL_YEAR, y);
  100|      4|    } else {
  101|      0|        internalSet(UCAL_ERA, BEFORE_MINGUO);
  102|      0|        internalSet(UCAL_YEAR, 1-y);
  103|      0|    }
  104|      4|}
_ZNK6icu_7814TaiwanCalendar14handleGetLimitE19UCalendarDateFieldsNS_8Calendar10ELimitTypeE:
  107|      2|{
  108|      2|    if(field != UCAL_ERA) {
  ------------------
  |  Branch (108:8): [True: 2, False: 0]
  ------------------
  109|      2|        return GregorianCalendar::handleGetLimit(field,limitType);
  110|      2|    }
  111|      0|    if (limitType == UCAL_LIMIT_MINIMUM || limitType == UCAL_LIMIT_GREATEST_MINIMUM) {
  ------------------
  |  Branch (111:9): [True: 0, False: 0]
  |  Branch (111:44): [True: 0, False: 0]
  ------------------
  112|      0|        return BEFORE_MINGUO;
  113|      0|    }
  114|      0|    return MINGUO;
  115|      0|}

_ZN6icu_788TimeZone8loadRuleEPK15UResourceBundleRKNS_13UnicodeStringEPS1_R10UErrorCode:
  259|     64|UResourceBundle* TimeZone::loadRule(const UResourceBundle* top, const UnicodeString& ruleid, UResourceBundle* oldbundle, UErrorCode& status) {
  260|     64|    char key[64];
  261|     64|    ruleid.extract(0, sizeof(key) - 1, key, static_cast<int32_t>(sizeof(key)) - 1, US_INV);
  ------------------
  |  |   98|     64|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  262|     64|    U_DEBUG_TZ_MSG(("loadRule(%s)\n", key));
  263|     64|    UResourceBundle *r = ures_getByKey(top, kRULES, oldbundle, &status);
  ------------------
  |  | 1661|     64|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|     64|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     64|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     64|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  UResourceBundle *r = ures_getByKey(top, kRULES, oldbundle, &status);
  ------------------
  |  |   95|     64|#define kRULES    "Rules"
  ------------------
  264|     64|    U_DEBUG_TZ_MSG(("loadRule(%s) -> kRULES [%s]\n", key, u_errorName(status)));
  265|     64|    r = ures_getByKey(r, key, r, &status);
  ------------------
  |  | 1661|     64|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|     64|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     64|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     64|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  266|     64|    U_DEBUG_TZ_MSG(("loadRule(%s) -> item [%s]\n", key, u_errorName(status)));
  267|     64|    return r;
  268|     64|}
_ZN6icu_788TimeZone10getUnknownEv:
  326|    752|{
  327|    752|    umtx_initOnce(gStaticZonesInitOnce, &initStaticTimeZones);
  328|    752|    return *reinterpret_cast<SimpleTimeZone*>(gRawUNKNOWN);
  329|    752|}
_ZN6icu_788TimeZoneC2ERKNS_13UnicodeStringE:
  352|    380|    :   UObject(), fID(id)
  353|    380|{
  354|    380|}
_ZN6icu_788TimeZoneD2Ev:
  359|   211k|{
  360|   211k|}
_ZN6icu_788TimeZoneC2ERKS0_:
  365|   211k|    :   UObject(source), fID(source.fID)
  366|   211k|{
  367|   211k|}
_ZN6icu_788TimeZoneaSERKS0_:
  373|  1.59k|{
  374|  1.59k|    if (this != &right) fID = right.fID;
  ------------------
  |  Branch (374:9): [True: 1.59k, False: 0]
  ------------------
  375|  1.59k|    return *this;
  376|  1.59k|}
_ZN6icu_788TimeZone14createTimeZoneERKNS_13UnicodeStringE:
  431|  1.06k|{
  432|       |    /* We first try to lookup the zone ID in our system list.  If this
  433|       |     * fails, we try to parse it as a custom string GMT[+-]hh:mm.  If
  434|       |     * all else fails, we return GMT, which is probably not what the
  435|       |     * user wants, but at least is a functioning TimeZone object.
  436|       |     *
  437|       |     * We cannot return nullptr, because that would break compatibility
  438|       |     * with the JDK.
  439|       |     */
  440|  1.06k|    TimeZone* result = createSystemTimeZone(ID);
  441|       |
  442|  1.06k|    if (result == nullptr) {
  ------------------
  |  Branch (442:9): [True: 908, False: 157]
  ------------------
  443|    908|        U_DEBUG_TZ_MSG(("failed to load system time zone with id - falling to custom"));
  444|    908|        result = createCustomTimeZone(ID);
  445|    908|    }
  446|  1.06k|    if (result == nullptr) {
  ------------------
  |  Branch (446:9): [True: 752, False: 313]
  ------------------
  447|    752|        U_DEBUG_TZ_MSG(("failed to load time zone with id - falling to Etc/Unknown(GMT)"));
  448|    752|        const TimeZone& unknown = getUnknown();
  449|       |        // Unknown zone uses statically allocated memory, so creation of it can never fail due to OOM.
  450|    752|        result = unknown.clone();
  451|    752|    }
  452|  1.06k|    return result;
  453|  1.06k|}
_ZN6icu_788TimeZone18detectHostTimeZoneEv:
  459|      1|{
  460|       |    // We access system timezone data through uprv_tzset(), uprv_tzname(), and others,
  461|       |    // which have platform specific implementations in putil.cpp
  462|      1|    int32_t rawOffset = 0;
  463|      1|    const char *hostID;
  464|      1|    UBool hostDetectionSucceeded = true;
  465|       |
  466|       |    // First, try to create a system timezone, based
  467|       |    // on the string ID in tzname[0].
  468|       |
  469|      1|    uprv_tzset(); // Initialize tz... system data
  ------------------
  |  | 1551|      1|#define uprv_tzset U_ICU_ENTRY_POINT_RENAME(uprv_tzset)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  470|       |
  471|      1|    uprv_tzname_clear_cache();
  ------------------
  |  | 1550|      1|#define uprv_tzname_clear_cache U_ICU_ENTRY_POINT_RENAME(uprv_tzname_clear_cache)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  472|       |
  473|       |    // Get the timezone ID from the host.  This function should do
  474|       |    // any required host-specific remapping; e.g., on Windows this
  475|       |    // function maps the Windows Time Zone name to an ICU timezone ID.
  476|      1|    hostID = uprv_tzname(0);
  ------------------
  |  | 1549|      1|#define uprv_tzname U_ICU_ENTRY_POINT_RENAME(uprv_tzname)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  477|       |
  478|       |    // Invert sign because UNIX semantics are backwards
  479|      1|    rawOffset = uprv_timezone() * -U_MILLIS_PER_SECOND;
  ------------------
  |  | 1546|      1|#define uprv_timezone U_ICU_ENTRY_POINT_RENAME(uprv_timezone)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  rawOffset = uprv_timezone() * -U_MILLIS_PER_SECOND;
  ------------------
  |  |  221|      1|#define U_MILLIS_PER_SECOND        (1000)
  ------------------
  480|       |
  481|      1|    TimeZone* hostZone = nullptr;
  482|       |
  483|      1|    UnicodeString hostStrID(hostID, -1, US_INV);
  ------------------
  |  |   98|      1|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  484|       |
  485|      1|    if (hostStrID.length() == 0) {
  ------------------
  |  Branch (485:9): [True: 0, False: 1]
  ------------------
  486|       |        // The host time zone detection (or remapping) above has failed and
  487|       |        // we have no name at all. Fallback to using the Unknown zone.
  488|      0|        hostStrID = UnicodeString(true, UNKNOWN_ZONE_ID, UNKNOWN_ZONE_ID_LENGTH);
  489|      0|        hostDetectionSucceeded = false;
  490|      0|    }
  491|       |
  492|      1|    hostZone = createSystemTimeZone(hostStrID);
  493|       |
  494|       |#if U_PLATFORM_USES_ONLY_WIN32_API
  495|       |    // hostID points to a heap-allocated location on Windows.
  496|       |    uprv_free(const_cast<char *>(hostID));
  497|       |#endif
  498|       |
  499|      1|    int32_t hostIDLen = hostStrID.length();
  500|      1|    if (hostZone != nullptr && rawOffset != hostZone->getRawOffset()
  ------------------
  |  Branch (500:9): [True: 1, False: 0]
  |  Branch (500:32): [True: 0, False: 1]
  ------------------
  501|      1|        && (3 <= hostIDLen && hostIDLen <= 4))
  ------------------
  |  Branch (501:13): [True: 0, False: 0]
  |  Branch (501:31): [True: 0, False: 0]
  ------------------
  502|      0|    {
  503|       |        // Uh oh. This probably wasn't a good id.
  504|       |        // It was probably an ambiguous abbreviation
  505|      0|        delete hostZone;
  506|      0|        hostZone = nullptr;
  507|      0|    }
  508|       |
  509|       |    // Construct a fixed standard zone with the host's ID
  510|       |    // and raw offset.
  511|      1|    if (hostZone == nullptr && hostDetectionSucceeded) {
  ------------------
  |  Branch (511:9): [True: 0, False: 1]
  |  Branch (511:32): [True: 0, False: 0]
  ------------------
  512|      0|        hostZone = new SimpleTimeZone(rawOffset, hostStrID);
  513|      0|    }
  514|       |
  515|       |    // If we _still_ don't have a time zone, use the Unknown zone.
  516|       |    //
  517|       |    // Note: This is extremely unlikely situation. If
  518|       |    // new SimpleTimeZone(...) above fails, the following
  519|       |    // code may also fail.
  520|      1|    if (hostZone == nullptr) {
  ------------------
  |  Branch (520:9): [True: 0, False: 1]
  ------------------
  521|       |        // Unknown zone uses static allocated memory, so it must always exist.
  522|       |        // However, clone() allocates memory and can fail.
  523|      0|        hostZone = TimeZone::getUnknown().clone();
  524|      0|    }
  525|       |
  526|      1|    return hostZone;
  527|      1|}
_ZN6icu_788TimeZone13createDefaultEv:
  573|  93.1k|{
  574|  93.1k|    umtx_initOnce(gDefaultZoneInitOnce, initDefault);
  575|  93.1k|    {
  576|  93.1k|        Mutex lock(&gDefaultZoneMutex);
  577|  93.1k|        return (DEFAULT_ZONE != nullptr) ? DEFAULT_ZONE->clone() : nullptr;
  ------------------
  |  Branch (577:16): [True: 93.1k, False: 0]
  ------------------
  578|  93.1k|    }
  579|  93.1k|}
_ZN6icu_788TimeZone18forLocaleOrDefaultERKNS_6LocaleE:
  585|  88.2k|{
  586|  88.2k|    char buffer[ULOC_KEYWORDS_CAPACITY] = "";
  587|  88.2k|    UErrorCode localStatus = U_ZERO_ERROR;
  588|  88.2k|    int32_t count = locale.getKeywordValue("timezone", buffer, sizeof(buffer), localStatus);
  589|  88.2k|    if (U_FAILURE(localStatus) || localStatus == U_STRING_NOT_TERMINATED_WARNING) {
  ------------------
  |  Branch (589:9): [True: 6.95k, False: 81.2k]
  |  Branch (589:35): [True: 17, False: 81.2k]
  ------------------
  590|       |        // the "timezone" keyword exceeds ULOC_KEYWORDS_CAPACITY; ignore and use default.
  591|  6.97k|        count = 0;
  592|  6.97k|    }
  593|  88.2k|    if (count > 0) {
  ------------------
  |  Branch (593:9): [True: 1.06k, False: 87.1k]
  ------------------
  594|  1.06k|        return TimeZone::createTimeZone(UnicodeString(buffer, count, US_INV));
  ------------------
  |  |   98|  1.06k|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  595|  1.06k|    }
  596|  87.1k|    return TimeZone::createDefault();
  597|  88.2k|}
_ZN6icu_788TimeZone6findIDERKNS_13UnicodeStringE:
 1097|  1.03k|TimeZone::findID(const UnicodeString& id) {
 1098|  1.03k|    const char16_t *result = nullptr;
 1099|  1.03k|    UErrorCode ec = U_ZERO_ERROR;
 1100|  1.03k|    UResourceBundle *rb = ures_openDirect(nullptr, kZONEINFO, &ec);
  ------------------
  |  | 1693|  1.03k|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|  1.03k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.03k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.03k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  UResourceBundle *rb = ures_openDirect(nullptr, kZONEINFO, &ec);
  ------------------
  |  |   92|  1.03k|#define kZONEINFO "zoneinfo64"
  ------------------
 1101|       |
 1102|       |    // resolve zone index by name
 1103|  1.03k|    UResourceBundle *names = ures_getByKey(rb, kNAMES, nullptr, &ec);
  ------------------
  |  | 1661|  1.03k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  1.03k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.03k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.03k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  UResourceBundle *names = ures_getByKey(rb, kNAMES, nullptr, &ec);
  ------------------
  |  |   96|  1.03k|#define kNAMES    "Names"
  ------------------
 1104|  1.03k|    int32_t idx = findInStringArray(names, id, ec);
 1105|  1.03k|    result = ures_getStringByIndex(names, idx, nullptr, &ec);
  ------------------
  |  | 1676|  1.03k|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|  1.03k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.03k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.03k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1106|  1.03k|    if (U_FAILURE(ec)) {
  ------------------
  |  Branch (1106:9): [True: 0, False: 1.03k]
  ------------------
 1107|      0|        result = nullptr;
 1108|      0|    }
 1109|  1.03k|    ures_close(names);
  ------------------
  |  | 1652|  1.03k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  1.03k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.03k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.03k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1110|  1.03k|    ures_close(rb);
  ------------------
  |  | 1652|  1.03k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  1.03k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.03k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.03k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1111|  1.03k|    return result;
 1112|  1.03k|}
_ZN6icu_788TimeZone16dereferOlsonLinkERKNS_13UnicodeStringE:
 1116|      8|TimeZone::dereferOlsonLink(const UnicodeString& id) {
 1117|      8|    const char16_t *result = nullptr;
 1118|      8|    UErrorCode ec = U_ZERO_ERROR;
 1119|      8|    UResourceBundle *rb = ures_openDirect(nullptr, kZONEINFO, &ec);
  ------------------
  |  | 1693|      8|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|      8|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      8|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      8|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  UResourceBundle *rb = ures_openDirect(nullptr, kZONEINFO, &ec);
  ------------------
  |  |   92|      8|#define kZONEINFO "zoneinfo64"
  ------------------
 1120|       |
 1121|       |    // resolve zone index by name
 1122|      8|    UResourceBundle *names = ures_getByKey(rb, kNAMES, nullptr, &ec);
  ------------------
  |  | 1661|      8|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      8|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      8|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      8|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  UResourceBundle *names = ures_getByKey(rb, kNAMES, nullptr, &ec);
  ------------------
  |  |   96|      8|#define kNAMES    "Names"
  ------------------
 1123|      8|    int32_t idx = findInStringArray(names, id, ec);
 1124|      8|    result = ures_getStringByIndex(names, idx, nullptr, &ec);
  ------------------
  |  | 1676|      8|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|      8|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      8|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      8|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1125|       |
 1126|       |    // open the zone bundle by index
 1127|      8|    ures_getByKey(rb, kZONES, rb, &ec);
  ------------------
  |  | 1661|      8|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      8|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      8|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      8|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  ures_getByKey(rb, kZONES, rb, &ec);
  ------------------
  |  |   94|      8|#define kZONES    "Zones"
  ------------------
 1128|      8|    ures_getByIndex(rb, idx, rb, &ec); 
  ------------------
  |  | 1660|      8|#define ures_getByIndex U_ICU_ENTRY_POINT_RENAME(ures_getByIndex)
  |  |  ------------------
  |  |  |  |  123|      8|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      8|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      8|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1129|       |
 1130|      8|    if (U_SUCCESS(ec)) {
  ------------------
  |  Branch (1130:9): [True: 8, False: 0]
  ------------------
 1131|      8|        if (ures_getType(rb) == URES_INT) {
  ------------------
  |  | 1679|      8|#define ures_getType U_ICU_ENTRY_POINT_RENAME(ures_getType)
  |  |  ------------------
  |  |  |  |  123|      8|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      8|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      8|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1131:13): [True: 8, False: 0]
  ------------------
 1132|       |            // this is a link - dereference the link
 1133|      8|            int32_t deref = ures_getInt(rb, &ec);
  ------------------
  |  | 1664|      8|#define ures_getInt U_ICU_ENTRY_POINT_RENAME(ures_getInt)
  |  |  ------------------
  |  |  |  |  123|      8|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      8|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      8|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1134|      8|            const char16_t* tmp = ures_getStringByIndex(names, deref, nullptr, &ec);
  ------------------
  |  | 1676|      8|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|      8|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      8|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      8|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1135|      8|            if (U_SUCCESS(ec)) {
  ------------------
  |  Branch (1135:17): [True: 8, False: 0]
  ------------------
 1136|      8|                result = tmp;
 1137|      8|            }
 1138|      8|        }
 1139|      8|    }
 1140|       |
 1141|      8|    ures_close(names);
  ------------------
  |  | 1652|      8|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|      8|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      8|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      8|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1142|      8|    ures_close(rb);
  ------------------
  |  | 1652|      8|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|      8|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      8|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      8|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1143|       |
 1144|      8|    return result;
 1145|      8|}
_ZN6icu_788TimeZone9getRegionERKNS_13UnicodeStringE:
 1148|    278|TimeZone::getRegion(const UnicodeString& id) {
 1149|    278|    UErrorCode status = U_ZERO_ERROR;
 1150|    278|    return getRegion(id, status);
 1151|    278|}
_ZN6icu_788TimeZone9getRegionERKNS_13UnicodeStringER10UErrorCode:
 1154|    278|TimeZone::getRegion(const UnicodeString& id, UErrorCode& status) {
 1155|    278|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1155:9): [True: 0, False: 278]
  ------------------
 1156|      0|        return nullptr;
 1157|      0|    }
 1158|    278|    const char16_t *result = nullptr;
 1159|    278|    UResourceBundle *rb = ures_openDirect(nullptr, kZONEINFO, &status);
  ------------------
  |  | 1693|    278|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  UResourceBundle *rb = ures_openDirect(nullptr, kZONEINFO, &status);
  ------------------
  |  |   92|    278|#define kZONEINFO "zoneinfo64"
  ------------------
 1160|       |
 1161|       |    // resolve zone index by name
 1162|    278|    UResourceBundle *res = ures_getByKey(rb, kNAMES, nullptr, &status);
  ------------------
  |  | 1661|    278|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  UResourceBundle *res = ures_getByKey(rb, kNAMES, nullptr, &status);
  ------------------
  |  |   96|    278|#define kNAMES    "Names"
  ------------------
 1163|    278|    int32_t idx = findInStringArray(res, id, status);
 1164|       |
 1165|       |    // get region mapping
 1166|    278|    ures_getByKey(rb, kREGIONS, res, &status);
  ------------------
  |  | 1661|    278|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  ures_getByKey(rb, kREGIONS, res, &status);
  ------------------
  |  |   93|    278|#define kREGIONS  "Regions"
  ------------------
 1167|    278|    const char16_t *tmp = ures_getStringByIndex(res, idx, nullptr, &status);
  ------------------
  |  | 1676|    278|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1168|    278|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1168:9): [True: 278, False: 0]
  ------------------
 1169|    278|        result = tmp;
 1170|    278|    }
 1171|       |
 1172|    278|    ures_close(res);
  ------------------
  |  | 1652|    278|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1173|    278|    ures_close(rb);
  ------------------
  |  | 1652|    278|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1174|       |
 1175|    278|    return result;
 1176|    278|}
_ZN6icu_788TimeZone20createCustomTimeZoneERKNS_13UnicodeStringE:
 1344|    908|{
 1345|    908|    int32_t sign, hour, min, sec;
 1346|    908|    if (parseCustomID(id, sign, hour, min, sec)) {
  ------------------
  |  Branch (1346:9): [True: 156, False: 752]
  ------------------
 1347|    156|        UnicodeString customID;
 1348|    156|        formatCustomID(hour, min, sec, (sign < 0), customID);
 1349|    156|        int32_t offset = sign * ((hour * 60 + min) * 60 + sec) * 1000;
 1350|    156|        return new SimpleTimeZone(offset, customID);
 1351|    156|    }
 1352|    752|    return nullptr;
 1353|    908|}
_ZN6icu_788TimeZone13parseCustomIDERKNS_13UnicodeStringERiS4_S4_S4_:
 1372|    908|                        int32_t& hour, int32_t& min, int32_t& sec) {
 1373|    908|    if (id.length() < GMT_ID_LENGTH) {
  ------------------
  |  Branch (1373:9): [True: 31, False: 877]
  ------------------
 1374|     31|      return false;
 1375|     31|    }
 1376|    877|    if (0 != u_strncasecmp(id.getBuffer(), GMT_ID, GMT_ID_LENGTH, 0)) {
  ------------------
  |  |  394|    877|#define u_strncasecmp U_ICU_ENTRY_POINT_RENAME(u_strncasecmp)
  |  |  ------------------
  |  |  |  |  123|    877|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    877|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    877|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1376:9): [True: 203, False: 674]
  ------------------
 1377|    203|        return false;
 1378|    203|    }
 1379|    674|    sign = 1;
 1380|    674|    hour = 0;
 1381|    674|    min = 0;
 1382|    674|    sec = 0;
 1383|       |
 1384|    674|    if (id[GMT_ID_LENGTH] == MINUS /*'-'*/) {
  ------------------
  |  |  102|    674|#define MINUS 0x002D
  ------------------
  |  Branch (1384:9): [True: 345, False: 329]
  ------------------
 1385|    345|        sign = -1;
 1386|    345|    } else if (id[GMT_ID_LENGTH] != PLUS /*'+'*/) {
  ------------------
  |  |  103|    329|#define PLUS 0x002B
  ------------------
  |  Branch (1386:16): [True: 48, False: 281]
  ------------------
 1387|     48|        return false;
 1388|     48|    }
 1389|       |
 1390|    626|    int32_t start = GMT_ID_LENGTH + 1;
 1391|    626|    int32_t pos = start;
 1392|    626|    hour = ICU_Utility::parseNumber(id, pos, 10);
 1393|    626|    if (pos == id.length()) {
  ------------------
  |  Branch (1393:9): [True: 428, False: 198]
  ------------------
 1394|       |        // Handle the following cases
 1395|       |        // HHmmss
 1396|       |        // Hmmss
 1397|       |        // HHmm
 1398|       |        // Hmm
 1399|       |        // HH
 1400|       |        // H
 1401|       |
 1402|       |        // Get all digits
 1403|       |        // Should be 1 to 6 digits.
 1404|    428|        int32_t length = pos - start;
 1405|    428|        switch (length) {
 1406|     17|            case 1:  // H
  ------------------
  |  Branch (1406:13): [True: 17, False: 411]
  ------------------
 1407|     77|            case 2:  // HH
  ------------------
  |  Branch (1407:13): [True: 60, False: 368]
  ------------------
 1408|       |                // already set to hour
 1409|     77|                break;
 1410|     44|            case 3:  // Hmm
  ------------------
  |  Branch (1410:13): [True: 44, False: 384]
  ------------------
 1411|     82|            case 4:  // HHmm
  ------------------
  |  Branch (1411:13): [True: 38, False: 390]
  ------------------
 1412|     82|                min = hour % 100;
 1413|     82|                hour /= 100;
 1414|     82|                break;
 1415|     75|            case 5:  // Hmmss
  ------------------
  |  Branch (1415:13): [True: 75, False: 353]
  ------------------
 1416|     96|            case 6:  // HHmmss
  ------------------
  |  Branch (1416:13): [True: 21, False: 407]
  ------------------
 1417|     96|                sec = hour % 100;
 1418|     96|                min = (hour/100) % 100;
 1419|     96|                hour /= 10000;
 1420|     96|                break;
 1421|    173|            default:
  ------------------
  |  Branch (1421:13): [True: 173, False: 255]
  ------------------
 1422|       |                // invalid range
 1423|    173|                return false;
 1424|    428|        }
 1425|    428|    } else {
 1426|       |        // Handle the following cases
 1427|       |        // HH:mm:ss
 1428|       |        // H:mm:ss
 1429|       |        // HH:mm
 1430|       |        // H:mm
 1431|    198|        if (pos - start < 1 || pos - start > 2 || id[pos] != COLON) {
  ------------------
  |  |  105|     64|#define COLON 0x003A
  ------------------
  |  Branch (1431:13): [True: 102, False: 96]
  |  Branch (1431:32): [True: 32, False: 64]
  |  Branch (1431:51): [True: 64, False: 0]
  ------------------
 1432|    198|            return false;
 1433|    198|        }
 1434|      0|        pos++; // skip : after H or HH
 1435|      0|        if (id.length() == pos) {
  ------------------
  |  Branch (1435:13): [True: 0, False: 0]
  ------------------
 1436|      0|            return false;
 1437|      0|        }
 1438|      0|        start = pos;
 1439|      0|        min = ICU_Utility::parseNumber(id, pos, 10);
 1440|      0|        if (pos - start != 2) {
  ------------------
  |  Branch (1440:13): [True: 0, False: 0]
  ------------------
 1441|      0|            return false;
 1442|      0|        }
 1443|      0|        if (id.length() > pos) {
  ------------------
  |  Branch (1443:13): [True: 0, False: 0]
  ------------------
 1444|      0|            if (id[pos] != COLON) {
  ------------------
  |  |  105|      0|#define COLON 0x003A
  ------------------
  |  Branch (1444:17): [True: 0, False: 0]
  ------------------
 1445|      0|                return false;
 1446|      0|            }
 1447|      0|            pos++; // skip : after mm
 1448|      0|            start = pos;
 1449|      0|            sec = ICU_Utility::parseNumber(id, pos, 10);
 1450|      0|            if (pos - start != 2 || id.length() > pos) {
  ------------------
  |  Branch (1450:17): [True: 0, False: 0]
  |  Branch (1450:37): [True: 0, False: 0]
  ------------------
 1451|      0|                return false;
 1452|      0|            }
 1453|      0|        }
 1454|      0|    }
 1455|    255|    if (hour > kMAX_CUSTOM_HOUR ||
  ------------------
  |  |   99|    510|#define kMAX_CUSTOM_HOUR    23
  ------------------
  |  Branch (1455:9): [True: 50, False: 205]
  ------------------
 1456|    255|        min > kMAX_CUSTOM_MIN ||
  ------------------
  |  |  100|    460|#define kMAX_CUSTOM_MIN     59
  ------------------
  |  Branch (1456:9): [True: 25, False: 180]
  ------------------
 1457|    255|        sec > kMAX_CUSTOM_SEC) {
  ------------------
  |  |  101|    180|#define kMAX_CUSTOM_SEC     59
  ------------------
  |  Branch (1457:9): [True: 24, False: 156]
  ------------------
 1458|     99|        return false;
 1459|     99|    }
 1460|    156|    return true;
 1461|    255|}
_ZN6icu_788TimeZone14formatCustomIDEiiiaRNS_13UnicodeStringE:
 1465|    156|                         UBool negative, UnicodeString& id) {
 1466|       |    // Create time zone ID - GMT[+|-]hhmm[ss]
 1467|    156|    id.setTo(GMT_ID, GMT_ID_LENGTH);
 1468|    156|    if (hour | min | sec) {
  ------------------
  |  Branch (1468:9): [True: 138, False: 18]
  ------------------
 1469|    138|        if (negative) {
  ------------------
  |  Branch (1469:13): [True: 121, False: 17]
  ------------------
 1470|    121|            id += static_cast<char16_t>(MINUS);
  ------------------
  |  |  102|    121|#define MINUS 0x002D
  ------------------
 1471|    121|        } else {
 1472|     17|            id += static_cast<char16_t>(PLUS);
  ------------------
  |  |  103|     17|#define PLUS 0x002B
  ------------------
 1473|     17|        }
 1474|       |
 1475|    138|        if (hour < 10) {
  ------------------
  |  Branch (1475:13): [True: 107, False: 31]
  ------------------
 1476|    107|            id += static_cast<char16_t>(ZERO_DIGIT);
  ------------------
  |  |  104|    107|#define ZERO_DIGIT 0x0030
  ------------------
 1477|    107|        } else {
 1478|     31|            id += static_cast<char16_t>(ZERO_DIGIT + hour / 10);
  ------------------
  |  |  104|     31|#define ZERO_DIGIT 0x0030
  ------------------
 1479|     31|        }
 1480|    138|        id += static_cast<char16_t>(ZERO_DIGIT + hour % 10);
  ------------------
  |  |  104|    138|#define ZERO_DIGIT 0x0030
  ------------------
 1481|    138|        id += static_cast<char16_t>(COLON);
  ------------------
  |  |  105|    138|#define COLON 0x003A
  ------------------
 1482|    138|        if (min < 10) {
  ------------------
  |  Branch (1482:13): [True: 63, False: 75]
  ------------------
 1483|     63|            id += static_cast<char16_t>(ZERO_DIGIT);
  ------------------
  |  |  104|     63|#define ZERO_DIGIT 0x0030
  ------------------
 1484|     75|        } else {
 1485|     75|            id += static_cast<char16_t>(ZERO_DIGIT + min / 10);
  ------------------
  |  |  104|     75|#define ZERO_DIGIT 0x0030
  ------------------
 1486|     75|        }
 1487|    138|        id += static_cast<char16_t>(ZERO_DIGIT + min % 10);
  ------------------
  |  |  104|    138|#define ZERO_DIGIT 0x0030
  ------------------
 1488|       |
 1489|    138|        if (sec) {
  ------------------
  |  Branch (1489:13): [True: 45, False: 93]
  ------------------
 1490|     45|            id += static_cast<char16_t>(COLON);
  ------------------
  |  |  105|     45|#define COLON 0x003A
  ------------------
 1491|     45|            if (sec < 10) {
  ------------------
  |  Branch (1491:17): [True: 20, False: 25]
  ------------------
 1492|     20|                id += static_cast<char16_t>(ZERO_DIGIT);
  ------------------
  |  |  104|     20|#define ZERO_DIGIT 0x0030
  ------------------
 1493|     25|            } else {
 1494|     25|                id += static_cast<char16_t>(ZERO_DIGIT + sec / 10);
  ------------------
  |  |  104|     25|#define ZERO_DIGIT 0x0030
  ------------------
 1495|     25|            }
 1496|     45|            id += static_cast<char16_t>(ZERO_DIGIT + sec % 10);
  ------------------
  |  |  104|     45|#define ZERO_DIGIT 0x0030
  ------------------
 1497|     45|        }
 1498|    138|    }
 1499|    156|    return id;
 1500|    156|}
timezone.cpp:_ZN6icu_7812_GLOBAL__N_119initStaticTimeZonesEv:
  310|      1|void U_CALLCONV initStaticTimeZones() {
  311|       |    // Initialize _GMT independently of other static data; it should
  312|       |    // be valid even if we can't load the time zone UDataMemory.
  313|      1|    ucln_i18n_registerCleanup(UCLN_I18N_TIMEZONE, timeZone_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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  314|       |
  315|       |    // new can't fail below, as we use placement new into statically allocated space.
  316|      1|    new(gRawGMT) SimpleTimeZone(0, UnicodeString(true, GMT_ID, GMT_ID_LENGTH));
  317|      1|    new(gRawUNKNOWN) SimpleTimeZone(0, UnicodeString(true, UNKNOWN_ZONE_ID, UNKNOWN_ZONE_ID_LENGTH));
  318|       |
  319|      1|    gStaticZonesInitialized = true;
  320|      1|}
timezone.cpp:_ZN6icu_7812_GLOBAL__N_120createSystemTimeZoneERKNS_13UnicodeStringE:
  422|  1.06k|createSystemTimeZone(const UnicodeString& id) {
  423|  1.06k|    UErrorCode ec = U_ZERO_ERROR;
  424|  1.06k|    return createSystemTimeZone(id, ec);
  425|  1.06k|}
timezone.cpp:_ZN6icu_7812_GLOBAL__N_120createSystemTimeZoneERKNS_13UnicodeStringER10UErrorCode:
  391|  1.06k|createSystemTimeZone(const UnicodeString& id, UErrorCode& ec) {
  392|  1.06k|    if (U_FAILURE(ec)) {
  ------------------
  |  Branch (392:9): [True: 0, False: 1.06k]
  ------------------
  393|      0|        return nullptr;
  394|      0|    }
  395|  1.06k|    TimeZone* z = nullptr;
  396|  1.06k|    StackUResourceBundle res;
  397|  1.06k|    U_DEBUG_TZ_MSG(("pre-err=%s\n", u_errorName(ec)));
  398|  1.06k|    UResourceBundle *top = openOlsonResource(id, res.ref(), ec);
  399|  1.06k|    U_DEBUG_TZ_MSG(("post-err=%s\n", u_errorName(ec)));
  400|  1.06k|    if (U_SUCCESS(ec)) {
  ------------------
  |  Branch (400:9): [True: 158, False: 908]
  ------------------
  401|    158|        z = new OlsonTimeZone(top, res.getAlias(), id, ec);
  402|    158|        if (z == nullptr) {
  ------------------
  |  Branch (402:13): [True: 0, False: 158]
  ------------------
  403|      0|            ec = U_MEMORY_ALLOCATION_ERROR;
  404|      0|            U_DEBUG_TZ_MSG(("cstz: olson time zone failed to initialize - err %s\n", u_errorName(ec)));
  405|      0|        }
  406|    158|    }
  407|  1.06k|    ures_close(top);
  ------------------
  |  | 1652|  1.06k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  408|  1.06k|    if (U_FAILURE(ec)) {
  ------------------
  |  Branch (408:9): [True: 908, False: 158]
  ------------------
  409|    908|        U_DEBUG_TZ_MSG(("cstz: failed to create, err %s\n", u_errorName(ec)));
  410|    908|        delete z;
  411|    908|        z = nullptr;
  412|    908|    }
  413|  1.06k|    return z;
  414|  1.06k|}
timezone.cpp:_ZN6icu_78L11initDefaultEv:
  539|      1|{
  540|      1|    ucln_i18n_registerCleanup(UCLN_I18N_TIMEZONE, timeZone_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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  541|       |
  542|      1|    Mutex lock(&gDefaultZoneMutex);
  543|       |    // If setDefault() has already been called we can skip getting the
  544|       |    // default zone information from the system.
  545|      1|    if (DEFAULT_ZONE != nullptr) {
  ------------------
  |  Branch (545:9): [True: 0, False: 1]
  ------------------
  546|      0|        return;
  547|      0|    }
  548|       |    
  549|       |    // NOTE:  this code is safely single threaded, being only
  550|       |    // run via umtx_initOnce().
  551|       |    //
  552|       |    // Some of the locale/timezone OS functions may not be thread safe,
  553|       |    //
  554|       |    // The operating system might actually use ICU to implement timezones.
  555|       |    // So we may have ICU calling ICU here, like on AIX.
  556|       |    // There shouldn't be a problem with this; initOnce does not hold a mutex
  557|       |    // while the init function is being run.
  558|       |
  559|       |    // The code detecting the host time zone was separated from this
  560|       |    // and implemented as TimeZone::detectHostTimeZone()
  561|       |
  562|      1|    TimeZone *default_zone = TimeZone::detectHostTimeZone();
  563|       |
  564|      1|    U_ASSERT(DEFAULT_ZONE == nullptr);
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
  565|       |
  566|      1|    DEFAULT_ZONE = default_zone;
  567|      1|}
timezone.cpp:_ZN6icu_78L17openOlsonResourceERKNS_13UnicodeStringER15UResourceBundleR10UErrorCode:
  281|  1.06k|{
  282|       |#ifdef U_DEBUG_TZ
  283|       |    char buf[128];
  284|       |    id.extract(0, sizeof(buf)-1, buf, sizeof(buf), "");
  285|       |#endif
  286|  1.06k|    UResourceBundle *top = ures_openDirect(nullptr, kZONEINFO, &ec);
  ------------------
  |  | 1693|  1.06k|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  UResourceBundle *top = ures_openDirect(nullptr, kZONEINFO, &ec);
  ------------------
  |  |   92|  1.06k|#define kZONEINFO "zoneinfo64"
  ------------------
  287|  1.06k|    U_DEBUG_TZ_MSG(("pre: res sz=%d\n", ures_getSize(&res)));
  288|  1.06k|    /* &res = */ getZoneByName(top, id, &res, ec);
  289|       |    // Dereference if this is an alias.  Docs say result should be 1
  290|       |    // but it is 0 in 2.8 (?).
  291|  1.06k|    U_DEBUG_TZ_MSG(("Loading zone '%s' (%s, size %d) - %s\n", buf, ures_getKey((UResourceBundle*)&res), ures_getSize(&res), u_errorName(ec)));
  292|  1.06k|    if (ures_getType(&res) == URES_INT) {
  ------------------
  |  | 1679|  1.06k|#define ures_getType U_ICU_ENTRY_POINT_RENAME(ures_getType)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (292:9): [True: 83, False: 983]
  ------------------
  293|     83|        int32_t deref = ures_getInt(&res, &ec) + 0;
  ------------------
  |  | 1664|     83|#define ures_getInt U_ICU_ENTRY_POINT_RENAME(ures_getInt)
  |  |  ------------------
  |  |  |  |  123|     83|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     83|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     83|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  294|     83|        U_DEBUG_TZ_MSG(("getInt: %s - type is %d\n", u_errorName(ec), ures_getType(&res)));
  295|     83|        UResourceBundle *ares = ures_getByKey(top, kZONES, nullptr, &ec); // dereference Zones section
  ------------------
  |  | 1661|     83|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|     83|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     83|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     83|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      UResourceBundle *ares = ures_getByKey(top, kZONES, nullptr, &ec); // dereference Zones section
  ------------------
  |  |   94|     83|#define kZONES    "Zones"
  ------------------
  296|     83|        ures_getByIndex(ares, deref, &res, &ec);
  ------------------
  |  | 1660|     83|#define ures_getByIndex U_ICU_ENTRY_POINT_RENAME(ures_getByIndex)
  |  |  ------------------
  |  |  |  |  123|     83|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     83|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     83|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  297|     83|        ures_close(ares);
  ------------------
  |  | 1652|     83|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|     83|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     83|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     83|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  298|     83|        U_DEBUG_TZ_MSG(("alias to #%d (%s) - %s\n", deref, "??", u_errorName(ec)));
  299|    983|    } else {
  300|    983|        U_DEBUG_TZ_MSG(("not an alias - size %d\n", ures_getSize(&res)));
  301|    983|    }
  302|  1.06k|    U_DEBUG_TZ_MSG(("%s - final status is %s\n", buf, u_errorName(ec)));
  303|  1.06k|    return top;
  304|  1.06k|}
timezone.cpp:_ZN6icu_78L13getZoneByNameEPK15UResourceBundleRKNS_13UnicodeStringEPS0_R10UErrorCode:
  230|  1.06k|static UResourceBundle* getZoneByName(const UResourceBundle* top, const UnicodeString& id, UResourceBundle *oldbundle, UErrorCode& status) {
  231|       |    // load the Rules object
  232|  1.06k|    UResourceBundle *tmp = ures_getByKey(top, kNAMES, nullptr, &status);
  ------------------
  |  | 1661|  1.06k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  UResourceBundle *tmp = ures_getByKey(top, kNAMES, nullptr, &status);
  ------------------
  |  |   96|  1.06k|#define kNAMES    "Names"
  ------------------
  233|       |
  234|       |    // search for the string
  235|  1.06k|    int32_t idx = findInStringArray(tmp, id, status);
  236|       |
  237|  1.06k|    if((idx == -1) && U_SUCCESS(status)) {
  ------------------
  |  Branch (237:8): [True: 908, False: 158]
  |  Branch (237:23): [True: 908, False: 0]
  ------------------
  238|       |        // not found
  239|    908|        status = U_MISSING_RESOURCE_ERROR;
  240|       |        //ures_close(oldbundle);
  241|       |        //oldbundle = nullptr;
  242|    908|    } else {
  243|    158|        U_DEBUG_TZ_MSG(("gzbn: oldbundle= size %d, type %d, %s\n", ures_getSize(tmp), ures_getType(tmp), u_errorName(status)));
  244|    158|        tmp = ures_getByKey(top, kZONES, tmp, &status); // get Zones object from top
  ------------------
  |  | 1661|    158|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|    158|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    158|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    158|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      tmp = ures_getByKey(top, kZONES, tmp, &status); // get Zones object from top
  ------------------
  |  |   94|    158|#define kZONES    "Zones"
  ------------------
  245|    158|        U_DEBUG_TZ_MSG(("gzbn: loaded ZONES, size %d, type %d, path %s %s\n", ures_getSize(tmp), ures_getType(tmp), ures_getPath(tmp), u_errorName(status)));
  246|    158|        oldbundle = ures_getByIndex(tmp, idx, oldbundle, &status); // get nth Zone object
  ------------------
  |  | 1660|    158|#define ures_getByIndex U_ICU_ENTRY_POINT_RENAME(ures_getByIndex)
  |  |  ------------------
  |  |  |  |  123|    158|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    158|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    158|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  247|    158|        U_DEBUG_TZ_MSG(("gzbn: loaded z#%d, size %d, type %d, path %s, %s\n", idx, ures_getSize(oldbundle), ures_getType(oldbundle), ures_getPath(oldbundle),  u_errorName(status)));
  248|    158|    }
  249|  1.06k|    ures_close(tmp);
  ------------------
  |  | 1652|  1.06k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  250|  1.06k|    if(U_FAILURE(status)) {
  ------------------
  |  Branch (250:8): [True: 908, False: 158]
  ------------------
  251|       |        //ures_close(oldbundle);
  252|    908|        return nullptr;
  253|    908|    } else {
  254|    158|        return oldbundle;
  255|    158|    }
  256|  1.06k|}
timezone.cpp:_ZN6icu_78L17findInStringArrayEP15UResourceBundleRKNS_13UnicodeStringER10UErrorCode:
  183|  2.38k|{
  184|  2.38k|    UnicodeString copy;
  185|  2.38k|    const char16_t *u;
  186|  2.38k|    int32_t len;
  187|       |
  188|  2.38k|    int32_t start = 0;
  189|  2.38k|    int32_t limit = ures_getSize(array);
  ------------------
  |  | 1674|  2.38k|#define ures_getSize U_ICU_ENTRY_POINT_RENAME(ures_getSize)
  |  |  ------------------
  |  |  |  |  123|  2.38k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.38k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.38k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  190|  2.38k|    int32_t mid;
  191|  2.38k|    int32_t lastMid = INT32_MAX;
  192|  2.38k|    if(U_FAILURE(status) || (limit < 1)) {
  ------------------
  |  Branch (192:8): [True: 0, False: 2.38k]
  |  Branch (192:29): [True: 0, False: 2.38k]
  ------------------
  193|      0|        return -1;
  194|      0|    }
  195|  2.38k|    U_DEBUG_TZ_MSG(("fisa: Looking for %s, between %d and %d\n", U_DEBUG_TZ_STR(UnicodeString(id).getTerminatedBuffer()), start, limit));
  196|       |
  197|  24.7k|    for (;;) {
  198|  24.7k|        mid = static_cast<int32_t>((start + limit) / 2);
  199|  24.7k|        if (lastMid == mid) {   /* Have we moved? */
  ------------------
  |  Branch (199:13): [True: 908, False: 23.8k]
  ------------------
  200|    908|            break;  /* We haven't moved, and it wasn't found. */
  201|    908|        }
  202|  23.8k|        lastMid = mid;
  203|  23.8k|        u = ures_getStringByIndex(array, mid, &len, &status);
  ------------------
  |  | 1676|  23.8k|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|  23.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  23.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  23.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  204|  23.8k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (204:13): [True: 0, False: 23.8k]
  ------------------
  205|      0|            break;
  206|      0|        }
  207|  23.8k|        U_DEBUG_TZ_MSG(("tz: compare to %s, %d .. [%d] .. %d\n", U_DEBUG_TZ_STR(u), start, mid, limit));
  208|  23.8k|        copy.setTo(true, u, len);
  209|  23.8k|        int r = id.compare(copy);
  210|  23.8k|        if(r==0) {
  ------------------
  |  Branch (210:12): [True: 1.47k, False: 22.3k]
  ------------------
  211|  1.47k|            U_DEBUG_TZ_MSG(("fisa: found at %d\n", mid));
  212|  1.47k|            return mid;
  213|  22.3k|        } else if(r<0) {
  ------------------
  |  Branch (213:19): [True: 5.12k, False: 17.2k]
  ------------------
  214|  5.12k|            limit = mid;
  215|  17.2k|        } else {
  216|  17.2k|            start = mid;
  217|  17.2k|        }
  218|  23.8k|    }
  219|    908|    U_DEBUG_TZ_MSG(("fisa: not found\n"));
  220|    908|    return -1;
  221|  2.38k|}

_ZN6icu_7814GMTOffsetFieldC2Ev:
  207|   183k|: fText(nullptr), fType(TEXT), fWidth(0) {
  208|   183k|}
_ZN6icu_7814GMTOffsetFieldD2Ev:
  210|   183k|GMTOffsetField::~GMTOffsetField() {
  211|   183k|    if (fText) {
  ------------------
  |  Branch (211:9): [True: 91.9k, False: 92.0k]
  ------------------
  212|  91.9k|        uprv_free(fText);
  ------------------
  |  | 1503|  91.9k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  91.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  91.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  91.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  213|  91.9k|    }
  214|   183k|}
_ZN6icu_7814GMTOffsetField10createTextERKNS_13UnicodeStringER10UErrorCode:
  217|  91.9k|GMTOffsetField::createText(const UnicodeString& text, UErrorCode& status) {
  218|  91.9k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (218:9): [True: 0, False: 91.9k]
  ------------------
  219|      0|        return nullptr;
  220|      0|    }
  221|  91.9k|    GMTOffsetField* result = new GMTOffsetField();
  222|  91.9k|    if (result == nullptr) {
  ------------------
  |  Branch (222:9): [True: 0, False: 91.9k]
  ------------------
  223|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  224|      0|        return nullptr;
  225|      0|    }
  226|       |
  227|  91.9k|    int32_t len = text.length();
  228|  91.9k|    result->fText = static_cast<char16_t*>(uprv_malloc((len + 1) * sizeof(char16_t)));
  ------------------
  |  | 1524|  91.9k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  91.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  91.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  91.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  229|  91.9k|    if (result->fText == nullptr) {
  ------------------
  |  Branch (229:9): [True: 0, False: 91.9k]
  ------------------
  230|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  231|      0|        delete result;
  232|      0|        return nullptr;
  233|      0|    }
  234|  91.9k|    u_strncpy(result->fText, text.getBuffer(), len);
  ------------------
  |  |  398|  91.9k|#define u_strncpy U_ICU_ENTRY_POINT_RENAME(u_strncpy)
  |  |  ------------------
  |  |  |  |  123|  91.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  91.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  91.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  235|  91.9k|    result->fText[len] = 0;
  236|  91.9k|    result->fType = TEXT;
  237|       |
  238|  91.9k|    return result;
  239|  91.9k|}
_ZN6icu_7814GMTOffsetField15createTimeFieldENS0_9FieldTypeEhR10UErrorCode:
  242|  92.0k|GMTOffsetField::createTimeField(FieldType type, uint8_t width, UErrorCode& status) {
  243|  92.0k|    U_ASSERT(type != TEXT);
  ------------------
  |  |   35|  92.0k|#   define U_ASSERT(exp) (void)0
  ------------------
  244|  92.0k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (244:9): [True: 0, False: 92.0k]
  ------------------
  245|      0|        return nullptr;
  246|      0|    }
  247|  92.0k|    GMTOffsetField* result = new GMTOffsetField();
  248|  92.0k|    if (result == nullptr) {
  ------------------
  |  Branch (248:9): [True: 0, False: 92.0k]
  ------------------
  249|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  250|      0|        return nullptr;
  251|      0|    }
  252|       |
  253|  92.0k|    result->fType = type;
  254|  92.0k|    result->fWidth = width;
  255|       |
  256|  92.0k|    return result;
  257|  92.0k|}
_ZN6icu_7814GMTOffsetField7isValidENS0_9FieldTypeEi:
  260|  92.0k|GMTOffsetField::isValid(FieldType type, int32_t width) {
  261|  92.0k|    switch (type) {
  262|  46.0k|    case HOUR:
  ------------------
  |  Branch (262:5): [True: 46.0k, False: 46.0k]
  ------------------
  263|  46.0k|        return (width == 1 || width == 2);
  ------------------
  |  Branch (263:17): [True: 2.40k, False: 43.6k]
  |  Branch (263:31): [True: 43.6k, False: 0]
  ------------------
  264|  30.6k|    case MINUTE:
  ------------------
  |  Branch (264:5): [True: 30.6k, False: 61.3k]
  ------------------
  265|  46.0k|    case SECOND:
  ------------------
  |  Branch (265:5): [True: 15.3k, False: 76.6k]
  ------------------
  266|  46.0k|        return (width == 2);
  267|      0|    default:
  ------------------
  |  Branch (267:5): [True: 0, False: 92.0k]
  ------------------
  268|      0|        UPRV_UNREACHABLE_EXIT;
  ------------------
  |  |   68|      0|#   define UPRV_UNREACHABLE_EXIT abort()
  ------------------
  269|  92.0k|    }
  270|      0|    return (width > 0);
  271|  92.0k|}
_ZN6icu_7814GMTOffsetField15getTypeByLetterEDs:
  274|   274k|GMTOffsetField::getTypeByLetter(char16_t ch) {
  275|   274k|    if (ch == 0x0048 /* H */) {
  ------------------
  |  Branch (275:9): [True: 89.6k, False: 184k]
  ------------------
  276|  89.6k|        return HOUR;
  277|   184k|    } else if (ch == 0x006D /* m */) {
  ------------------
  |  Branch (277:16): [True: 61.3k, False: 123k]
  ------------------
  278|  61.3k|        return MINUTE;
  279|   123k|    } else if (ch == 0x0073 /* s */) {
  ------------------
  |  Branch (279:16): [True: 30.6k, False: 92.8k]
  ------------------
  280|  30.6k|        return SECOND;
  281|  30.6k|    }
  282|  92.8k|    return TEXT;
  283|   274k|}
_ZN6icu_7814TimeZoneFormatC2ERKNS_6LocaleER10UErrorCode:
  315|  7.66k|: fLocale(locale), fTimeZoneNames(nullptr), fTimeZoneGenericNames(nullptr),
  316|  7.66k|  fDefParseOptionFlags(0), fTZDBTimeZoneNames(nullptr) {
  317|       |
  318|  53.6k|    for (int32_t i = 0; i < UTZFMT_PAT_COUNT; i++) {
  ------------------
  |  Branch (318:25): [True: 46.0k, False: 7.66k]
  ------------------
  319|  46.0k|        fGMTOffsetPatternItems[i] = nullptr;
  320|  46.0k|    }
  321|       |
  322|  7.66k|    const char* region = fLocale.getCountry();
  323|  7.66k|    int32_t regionLen = static_cast<int32_t>(uprv_strlen(region));
  ------------------
  |  |   37|  7.66k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  7.66k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  324|  7.66k|    if (regionLen == 0) {
  ------------------
  |  Branch (324:9): [True: 1.66k, False: 6.00k]
  ------------------
  325|  1.66k|        UErrorCode tempStatus = U_ZERO_ERROR;
  326|  1.66k|        CharString loc = ulocimp_addLikelySubtags(fLocale.getName(), tempStatus);
  ------------------
  |  | 1196|  1.66k|#define ulocimp_addLikelySubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_addLikelySubtags)
  |  |  ------------------
  |  |  |  |  123|  1.66k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.66k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.66k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  327|       |
  328|  1.66k|        regionLen = uloc_getCountry(loc.data(), fTargetRegion, sizeof(fTargetRegion), &tempStatus);
  ------------------
  |  | 1115|  1.66k|#define uloc_getCountry U_ICU_ENTRY_POINT_RENAME(uloc_getCountry)
  |  |  ------------------
  |  |  |  |  123|  1.66k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.66k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.66k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  329|  1.66k|        if (U_SUCCESS(tempStatus)) {
  ------------------
  |  Branch (329:13): [True: 1.66k, False: 0]
  ------------------
  330|  1.66k|            fTargetRegion[regionLen] = 0;
  331|  1.66k|        } else {
  332|      0|            fTargetRegion[0] = 0;
  333|      0|        }
  334|  6.00k|    } else if (regionLen < static_cast<int32_t>(sizeof(fTargetRegion))) {
  ------------------
  |  Branch (334:16): [True: 6.00k, False: 0]
  ------------------
  335|  6.00k|        uprv_strcpy(fTargetRegion, region);
  ------------------
  |  |   36|  6.00k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  6.00k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  336|  6.00k|    } else {
  337|      0|        fTargetRegion[0] = 0;
  338|      0|    }
  339|       |
  340|  7.66k|    fTimeZoneNames = TimeZoneNames::createInstance(locale, status);
  341|       |    // fTimeZoneGenericNames is lazily instantiated
  342|  7.66k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (342:9): [True: 0, False: 7.66k]
  ------------------
  343|      0|        return;
  344|      0|    }
  345|       |
  346|  7.66k|    const char16_t* gmtPattern = nullptr;
  347|  7.66k|    const char16_t* hourFormats = nullptr;
  348|       |
  349|  7.66k|    UResourceBundle *zoneBundle = ures_open(U_ICUDATA_ZONE, locale.getName(), &status);
  ------------------
  |  | 1691|  7.66k|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|  7.66k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.66k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.66k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  UResourceBundle *zoneBundle = ures_open(U_ICUDATA_ZONE, locale.getName(), &status);
  ------------------
  |  |   22|  7.66k|#define U_ICUDATA_ZONE U_ICUDATA_NAME U_TREE_SEPARATOR_STRING "zone"
  |  |  ------------------
  |  |  |  |  154|  7.66k|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  ------------------
  350|  7.66k|    UResourceBundle *zoneStringsArray = ures_getByKeyWithFallback(zoneBundle, gZoneStringsTag, nullptr, &status);
  ------------------
  |  | 1662|  7.66k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  7.66k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.66k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.66k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  351|  7.66k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (351:9): [True: 7.66k, False: 0]
  ------------------
  352|  7.66k|        const char16_t* resStr;
  353|  7.66k|        int32_t len;
  354|  7.66k|        resStr = ures_getStringByKeyWithFallback(zoneStringsArray, gGmtFormatTag, &len, &status);
  ------------------
  |  | 1678|  7.66k|#define ures_getStringByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getStringByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  7.66k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.66k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.66k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  355|  7.66k|        if (len > 0) {
  ------------------
  |  Branch (355:13): [True: 7.66k, False: 0]
  ------------------
  356|  7.66k|            gmtPattern = resStr;
  357|  7.66k|        }
  358|  7.66k|        resStr = ures_getStringByKeyWithFallback(zoneStringsArray, gGmtZeroFormatTag, &len, &status);
  ------------------
  |  | 1678|  7.66k|#define ures_getStringByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getStringByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  7.66k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.66k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.66k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  359|  7.66k|        if (len > 0) {
  ------------------
  |  Branch (359:13): [True: 7.66k, False: 0]
  ------------------
  360|  7.66k|            fGMTZeroFormat.setTo(true, resStr, len);
  361|  7.66k|        }
  362|  7.66k|        resStr = ures_getStringByKeyWithFallback(zoneStringsArray, gHourFormatTag, &len, &status);
  ------------------
  |  | 1678|  7.66k|#define ures_getStringByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getStringByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  7.66k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.66k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.66k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  363|  7.66k|        if (len > 0) {
  ------------------
  |  Branch (363:13): [True: 7.66k, False: 0]
  ------------------
  364|  7.66k|            hourFormats = resStr;
  365|  7.66k|        }
  366|  7.66k|        ures_close(zoneStringsArray);
  ------------------
  |  | 1652|  7.66k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  7.66k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.66k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.66k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  367|  7.66k|        ures_close(zoneBundle);
  ------------------
  |  | 1652|  7.66k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  7.66k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.66k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.66k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  368|  7.66k|    }
  369|       |
  370|  7.66k|    if (gmtPattern == nullptr) {
  ------------------
  |  Branch (370:9): [True: 0, False: 7.66k]
  ------------------
  371|      0|        gmtPattern = DEFAULT_GMT_PATTERN;
  372|      0|    }
  373|  7.66k|    initGMTPattern(UnicodeString(true, gmtPattern, -1), status);
  374|       |
  375|  7.66k|    UBool useDefaultOffsetPatterns = true;
  376|  7.66k|    if (hourFormats) {
  ------------------
  |  Branch (376:9): [True: 7.66k, False: 0]
  ------------------
  377|  7.66k|        char16_t* sep = u_strchr(hourFormats, static_cast<char16_t>(0x003B) /* ';' */);
  ------------------
  |  |  385|  7.66k|#define u_strchr U_ICU_ENTRY_POINT_RENAME(u_strchr)
  |  |  ------------------
  |  |  |  |  123|  7.66k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.66k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.66k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  378|  7.66k|        if (sep != nullptr) {
  ------------------
  |  Branch (378:13): [True: 7.66k, False: 0]
  ------------------
  379|  7.66k|            UErrorCode tmpStatus = U_ZERO_ERROR;
  380|  7.66k|            fGMTOffsetPatterns[UTZFMT_PAT_POSITIVE_HM].setTo(false, hourFormats, static_cast<int32_t>(sep - hourFormats));
  381|  7.66k|            fGMTOffsetPatterns[UTZFMT_PAT_NEGATIVE_HM].setTo(true, sep + 1, -1);
  382|  7.66k|            expandOffsetPattern(fGMTOffsetPatterns[UTZFMT_PAT_POSITIVE_HM], fGMTOffsetPatterns[UTZFMT_PAT_POSITIVE_HMS], tmpStatus);
  383|  7.66k|            expandOffsetPattern(fGMTOffsetPatterns[UTZFMT_PAT_NEGATIVE_HM], fGMTOffsetPatterns[UTZFMT_PAT_NEGATIVE_HMS], tmpStatus);
  384|  7.66k|            truncateOffsetPattern(fGMTOffsetPatterns[UTZFMT_PAT_POSITIVE_HM], fGMTOffsetPatterns[UTZFMT_PAT_POSITIVE_H], tmpStatus);
  385|  7.66k|            truncateOffsetPattern(fGMTOffsetPatterns[UTZFMT_PAT_NEGATIVE_HM], fGMTOffsetPatterns[UTZFMT_PAT_NEGATIVE_H], tmpStatus);
  386|  7.66k|            if (U_SUCCESS(tmpStatus)) {
  ------------------
  |  Branch (386:17): [True: 7.66k, False: 0]
  ------------------
  387|  7.66k|                useDefaultOffsetPatterns = false;
  388|  7.66k|            }
  389|  7.66k|        }
  390|  7.66k|    }
  391|  7.66k|    if (useDefaultOffsetPatterns) {
  ------------------
  |  Branch (391:9): [True: 0, False: 7.66k]
  ------------------
  392|      0|        fGMTOffsetPatterns[UTZFMT_PAT_POSITIVE_H].setTo(true, DEFAULT_GMT_POSITIVE_H, -1);
  393|      0|        fGMTOffsetPatterns[UTZFMT_PAT_POSITIVE_HM].setTo(true, DEFAULT_GMT_POSITIVE_HM, -1);
  394|      0|        fGMTOffsetPatterns[UTZFMT_PAT_POSITIVE_HMS].setTo(true, DEFAULT_GMT_POSITIVE_HMS, -1);
  395|      0|        fGMTOffsetPatterns[UTZFMT_PAT_NEGATIVE_H].setTo(true, DEFAULT_GMT_NEGATIVE_H, -1);
  396|      0|        fGMTOffsetPatterns[UTZFMT_PAT_NEGATIVE_HM].setTo(true, DEFAULT_GMT_NEGATIVE_HM, -1);
  397|      0|        fGMTOffsetPatterns[UTZFMT_PAT_NEGATIVE_HMS].setTo(true, DEFAULT_GMT_NEGATIVE_HMS, -1);
  398|      0|    }
  399|  7.66k|    initGMTOffsetPatterns(status);
  400|       |
  401|  7.66k|    NumberingSystem* ns = NumberingSystem::createInstance(locale, status);
  402|  7.66k|    UBool useDefDigits = true;
  403|  7.66k|    if (ns && !ns->isAlgorithmic()) {
  ------------------
  |  Branch (403:9): [True: 7.66k, False: 0]
  |  Branch (403:15): [True: 7.66k, False: 0]
  ------------------
  404|  7.66k|        UnicodeString digits = ns->getDescription();
  405|  7.66k|        useDefDigits = !toCodePoints(digits, fGMTOffsetDigits, 10);
  406|  7.66k|    }
  407|  7.66k|    if (useDefDigits) {
  ------------------
  |  Branch (407:9): [True: 0, False: 7.66k]
  ------------------
  408|      0|        uprv_memcpy(fGMTOffsetDigits, DEFAULT_GMT_DIGITS, sizeof(UChar32) * 10);
  ------------------
  |  |   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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  409|      0|    }
  410|  7.66k|    delete ns;
  411|  7.66k|}
_ZN6icu_7814TimeZoneFormatD2Ev:
  424|  7.66k|TimeZoneFormat::~TimeZoneFormat() {
  425|  7.66k|    delete fTimeZoneNames;
  426|  7.66k|    delete fTimeZoneGenericNames;
  427|  7.66k|    delete fTZDBTimeZoneNames;
  428|  53.6k|    for (int32_t i = 0; i < UTZFMT_PAT_COUNT; i++) {
  ------------------
  |  Branch (428:25): [True: 46.0k, False: 7.66k]
  ------------------
  429|  46.0k|        delete fGMTOffsetPatternItems[i];
  430|  46.0k|    }
  431|  7.66k|}
_ZN6icu_7814TimeZoneFormat14createInstanceERKNS_6LocaleER10UErrorCode:
  506|  7.66k|TimeZoneFormat::createInstance(const Locale& locale, UErrorCode& status) {
  507|  7.66k|    TimeZoneFormat* tzfmt = new TimeZoneFormat(locale, status);
  508|  7.66k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (508:9): [True: 7.66k, False: 0]
  ------------------
  509|  7.66k|        return tzfmt;
  510|  7.66k|    }
  511|      0|    delete tzfmt;
  512|      0|    return nullptr;
  513|  7.66k|}
_ZNK6icu_7814TimeZoneFormat6formatE20UTimeZoneFormatStyleRKNS_8TimeZoneEdRNS_13UnicodeStringEP23UTimeZoneFormatTimeType:
  647|  7.55k|        UnicodeString& name, UTimeZoneFormatTimeType* timeType /* = nullptr */) const {
  648|  7.55k|    if (timeType) {
  ------------------
  |  Branch (648:9): [True: 0, False: 7.55k]
  ------------------
  649|      0|        *timeType = UTZFMT_TIME_TYPE_UNKNOWN;
  650|      0|    }
  651|       |
  652|  7.55k|    UBool noOffsetFormatFallback = false;
  653|       |
  654|  7.55k|    switch (style) {
  655|      2|    case UTZFMT_STYLE_GENERIC_LOCATION:
  ------------------
  |  Branch (655:5): [True: 2, False: 7.54k]
  ------------------
  656|      2|        formatGeneric(tz, UTZGNM_LOCATION, date, name);
  657|      2|        break;
  658|      2|    case UTZFMT_STYLE_GENERIC_LONG:
  ------------------
  |  Branch (658:5): [True: 2, False: 7.54k]
  ------------------
  659|      2|        formatGeneric(tz, UTZGNM_LONG, date, name);
  660|      2|        break;
  661|  1.26k|    case UTZFMT_STYLE_GENERIC_SHORT:
  ------------------
  |  Branch (661:5): [True: 1.26k, False: 6.28k]
  ------------------
  662|  1.26k|        formatGeneric(tz, UTZGNM_SHORT, date, name);
  663|  1.26k|        break;
  664|  1.66k|    case UTZFMT_STYLE_SPECIFIC_LONG:
  ------------------
  |  Branch (664:5): [True: 1.66k, False: 5.88k]
  ------------------
  665|  1.66k|        formatSpecific(tz, UTZNM_LONG_STANDARD, UTZNM_LONG_DAYLIGHT, date, name, timeType);
  666|  1.66k|        break;
  667|  2.37k|    case UTZFMT_STYLE_SPECIFIC_SHORT:
  ------------------
  |  Branch (667:5): [True: 2.37k, False: 5.17k]
  ------------------
  668|  2.37k|        formatSpecific(tz, UTZNM_SHORT_STANDARD, UTZNM_SHORT_DAYLIGHT, date, name, timeType);
  669|  2.37k|        break;
  670|       |
  671|      6|    case UTZFMT_STYLE_ZONE_ID:
  ------------------
  |  Branch (671:5): [True: 6, False: 7.54k]
  ------------------
  672|      6|        tz.getID(name);
  673|      6|        noOffsetFormatFallback = true;
  674|      6|        break;
  675|    288|    case UTZFMT_STYLE_ZONE_ID_SHORT:
  ------------------
  |  Branch (675:5): [True: 288, False: 7.26k]
  ------------------
  676|    288|        {
  677|    288|            const char16_t* shortID = ZoneMeta::getShortID(tz);
  678|    288|            if (shortID == nullptr) {
  ------------------
  |  Branch (678:17): [True: 0, False: 288]
  ------------------
  679|      0|                shortID = UNKNOWN_SHORT_ZONE_ID;
  680|      0|            }
  681|    288|            name.setTo(shortID, -1);
  682|    288|        }
  683|    288|        noOffsetFormatFallback = true;
  684|    288|        break;
  685|       |
  686|     16|    case UTZFMT_STYLE_EXEMPLAR_LOCATION:
  ------------------
  |  Branch (686:5): [True: 16, False: 7.53k]
  ------------------
  687|     16|        formatExemplarLocation(tz, name);
  688|     16|        noOffsetFormatFallback = true;
  689|     16|        break;
  690|       |
  691|  1.93k|    default:
  ------------------
  |  Branch (691:5): [True: 1.93k, False: 5.61k]
  ------------------
  692|       |        // will be handled below
  693|  1.93k|        break;
  694|  7.55k|    }
  695|       |
  696|  7.55k|    if (name.isEmpty() && !noOffsetFormatFallback) {
  ------------------
  |  Branch (696:9): [True: 3.73k, False: 3.81k]
  |  Branch (696:27): [True: 3.73k, False: 0]
  ------------------
  697|  3.73k|        UErrorCode status = U_ZERO_ERROR;
  698|  3.73k|        int32_t rawOffset, dstOffset;
  699|  3.73k|        tz.getOffset(date, false, rawOffset, dstOffset, status);
  700|  3.73k|        int32_t offset = rawOffset + dstOffset;
  701|  3.73k|        if (U_SUCCESS(status)) {
  ------------------
  |  Branch (701:13): [True: 3.73k, False: 0]
  ------------------
  702|  3.73k|            switch (style) {
  703|      2|            case UTZFMT_STYLE_GENERIC_LOCATION:
  ------------------
  |  Branch (703:13): [True: 2, False: 3.73k]
  ------------------
  704|      4|            case UTZFMT_STYLE_GENERIC_LONG:
  ------------------
  |  Branch (704:13): [True: 2, False: 3.73k]
  ------------------
  705|    542|            case UTZFMT_STYLE_SPECIFIC_LONG:
  ------------------
  |  Branch (705:13): [True: 538, False: 3.19k]
  ------------------
  706|    554|            case UTZFMT_STYLE_LOCALIZED_GMT:
  ------------------
  |  Branch (706:13): [True: 12, False: 3.72k]
  ------------------
  707|    554|                formatOffsetLocalizedGMT(offset, name, status);
  708|    554|                break;
  709|       |
  710|  1.26k|            case UTZFMT_STYLE_GENERIC_SHORT:
  ------------------
  |  Branch (710:13): [True: 1.26k, False: 2.47k]
  ------------------
  711|  1.26k|            case UTZFMT_STYLE_SPECIFIC_SHORT:
  ------------------
  |  Branch (711:13): [True: 0, False: 3.73k]
  ------------------
  712|  1.62k|            case UTZFMT_STYLE_LOCALIZED_GMT_SHORT:
  ------------------
  |  Branch (712:13): [True: 364, False: 3.37k]
  ------------------
  713|  1.62k|                formatOffsetShortLocalizedGMT(offset, name, status);
  714|  1.62k|                break;
  715|       |
  716|    430|            case UTZFMT_STYLE_ISO_BASIC_SHORT:
  ------------------
  |  Branch (716:13): [True: 430, False: 3.30k]
  ------------------
  717|    430|                formatOffsetISO8601Basic(offset, true, true, true, name, status);
  718|    430|                break;
  719|       |
  720|    490|            case UTZFMT_STYLE_ISO_BASIC_LOCAL_SHORT:
  ------------------
  |  Branch (720:13): [True: 490, False: 3.24k]
  ------------------
  721|    490|                formatOffsetISO8601Basic(offset, false, true, true, name, status);
  722|    490|                break;
  723|       |
  724|     24|            case UTZFMT_STYLE_ISO_BASIC_FIXED:
  ------------------
  |  Branch (724:13): [True: 24, False: 3.71k]
  ------------------
  725|     24|                formatOffsetISO8601Basic(offset, true, false, true, name, status);
  726|     24|                break;
  727|       |
  728|     14|            case UTZFMT_STYLE_ISO_BASIC_LOCAL_FIXED:
  ------------------
  |  Branch (728:13): [True: 14, False: 3.72k]
  ------------------
  729|     14|                formatOffsetISO8601Basic(offset, false, false, true, name, status);
  730|     14|                break;
  731|       |
  732|      6|            case UTZFMT_STYLE_ISO_EXTENDED_FIXED:
  ------------------
  |  Branch (732:13): [True: 6, False: 3.72k]
  ------------------
  733|      6|                formatOffsetISO8601Extended(offset, true, false, true, name, status);
  734|      6|                break;
  735|       |
  736|      2|            case UTZFMT_STYLE_ISO_EXTENDED_LOCAL_FIXED:
  ------------------
  |  Branch (736:13): [True: 2, False: 3.73k]
  ------------------
  737|      2|                formatOffsetISO8601Extended(offset, false, false, true, name, status);
  738|      2|                break;
  739|       |
  740|      2|            case UTZFMT_STYLE_ISO_BASIC_FULL:
  ------------------
  |  Branch (740:13): [True: 2, False: 3.73k]
  ------------------
  741|      2|                formatOffsetISO8601Basic(offset, true, false, false, name, status);
  742|      2|                break;
  743|       |
  744|    580|            case UTZFMT_STYLE_ISO_BASIC_LOCAL_FULL:
  ------------------
  |  Branch (744:13): [True: 580, False: 3.15k]
  ------------------
  745|    580|                formatOffsetISO8601Basic(offset, false, false, false, name, status);
  746|    580|                break;
  747|       |
  748|      6|            case UTZFMT_STYLE_ISO_EXTENDED_FULL:
  ------------------
  |  Branch (748:13): [True: 6, False: 3.72k]
  ------------------
  749|      6|                formatOffsetISO8601Extended(offset, true, false, false, name, status);
  750|      6|                break;
  751|       |
  752|      2|            case UTZFMT_STYLE_ISO_EXTENDED_LOCAL_FULL:
  ------------------
  |  Branch (752:13): [True: 2, False: 3.73k]
  ------------------
  753|      2|                formatOffsetISO8601Extended(offset, false, false, false, name, status);
  754|      2|                break;
  755|       |
  756|      0|            default:
  ------------------
  |  Branch (756:13): [True: 0, False: 3.73k]
  ------------------
  757|       |              // UTZFMT_STYLE_ZONE_ID, UTZFMT_STYLE_ZONE_ID_SHORT, UTZFMT_STYLE_EXEMPLAR_LOCATION
  758|      0|              break;
  759|  3.73k|            }
  760|       |
  761|  3.73k|            if (timeType) {
  ------------------
  |  Branch (761:17): [True: 0, False: 3.73k]
  ------------------
  762|      0|                *timeType = (dstOffset != 0) ? UTZFMT_TIME_TYPE_DAYLIGHT : UTZFMT_TIME_TYPE_STANDARD;
  ------------------
  |  Branch (762:29): [True: 0, False: 0]
  ------------------
  763|      0|            }
  764|  3.73k|        }
  765|  3.73k|    }
  766|       |
  767|  7.55k|    return name;
  768|  7.55k|}
_ZNK6icu_7814TimeZoneFormat13formatGenericERKNS_8TimeZoneEidRNS_13UnicodeStringE:
 1329|  1.26k|TimeZoneFormat::formatGeneric(const TimeZone& tz, int32_t genType, UDate date, UnicodeString& name) const {
 1330|  1.26k|    UErrorCode status = U_ZERO_ERROR;
 1331|  1.26k|    const TimeZoneGenericNames* gnames = getTimeZoneGenericNames(status);
 1332|  1.26k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1332:9): [True: 0, False: 1.26k]
  ------------------
 1333|      0|        name.setToBogus();
 1334|      0|        return name;
 1335|      0|    }
 1336|       |
 1337|  1.26k|    if (genType == UTZGNM_LOCATION) {
  ------------------
  |  Branch (1337:9): [True: 2, False: 1.26k]
  ------------------
 1338|      2|        const char16_t* canonicalID = ZoneMeta::getCanonicalCLDRID(tz);
 1339|      2|        if (canonicalID == nullptr) {
  ------------------
  |  Branch (1339:13): [True: 0, False: 2]
  ------------------
 1340|      0|            name.setToBogus();
 1341|      0|            return name;
 1342|      0|        }
 1343|      2|        return gnames->getGenericLocationName(UnicodeString(true, canonicalID, -1), name);
 1344|      2|    }
 1345|  1.26k|    return gnames->getDisplayName(tz, static_cast<UTimeZoneGenericNameType>(genType), date, name);
 1346|  1.26k|}
_ZNK6icu_7814TimeZoneFormat14formatSpecificERKNS_8TimeZoneE17UTimeZoneNameTypeS4_dRNS_13UnicodeStringEP23UTimeZoneFormatTimeType:
 1350|  4.04k|        UDate date, UnicodeString& name, UTimeZoneFormatTimeType *timeType) const {
 1351|  4.04k|    if (fTimeZoneNames == nullptr) {
  ------------------
  |  Branch (1351:9): [True: 0, False: 4.04k]
  ------------------
 1352|      0|        name.setToBogus();
 1353|      0|        return name;
 1354|      0|    }
 1355|       |
 1356|  4.04k|    UErrorCode status = U_ZERO_ERROR;
 1357|  4.04k|    UBool isDaylight = tz.inDaylightTime(date, status);
 1358|  4.04k|    const char16_t* canonicalID = ZoneMeta::getCanonicalCLDRID(tz);
 1359|       |
 1360|  4.04k|    if (U_FAILURE(status) || canonicalID == nullptr) {
  ------------------
  |  Branch (1360:9): [True: 0, False: 4.04k]
  |  Branch (1360:30): [True: 0, False: 4.04k]
  ------------------
 1361|      0|        name.setToBogus();
 1362|      0|        return name;
 1363|      0|    }
 1364|       |
 1365|  4.04k|    if (isDaylight) {
  ------------------
  |  Branch (1365:9): [True: 0, False: 4.04k]
  ------------------
 1366|      0|        fTimeZoneNames->getDisplayName(UnicodeString(true, canonicalID, -1), dstType, date, name);
 1367|  4.04k|    } else {
 1368|  4.04k|        fTimeZoneNames->getDisplayName(UnicodeString(true, canonicalID, -1), stdType, date, name);
 1369|  4.04k|    }
 1370|       |
 1371|  4.04k|    if (timeType && !name.isEmpty()) {
  ------------------
  |  Branch (1371:9): [True: 0, False: 4.04k]
  |  Branch (1371:21): [True: 0, False: 0]
  ------------------
 1372|      0|        *timeType = isDaylight ? UTZFMT_TIME_TYPE_DAYLIGHT : UTZFMT_TIME_TYPE_STANDARD;
  ------------------
  |  Branch (1372:21): [True: 0, False: 0]
  ------------------
 1373|      0|    }
 1374|  4.04k|    return name;
 1375|  4.04k|}
_ZNK6icu_7814TimeZoneFormat23getTimeZoneGenericNamesER10UErrorCode:
 1378|  1.26k|TimeZoneFormat::getTimeZoneGenericNames(UErrorCode& status) const {
 1379|  1.26k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1379:9): [True: 0, False: 1.26k]
  ------------------
 1380|      0|        return nullptr;
 1381|      0|    }
 1382|       |
 1383|  1.26k|    umtx_lock(&gLock);
  ------------------
  |  | 1250|  1.26k|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  123|  1.26k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.26k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.26k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1384|  1.26k|    if (fTimeZoneGenericNames == nullptr) {
  ------------------
  |  Branch (1384:9): [True: 1.26k, False: 0]
  ------------------
 1385|  1.26k|        TimeZoneFormat *nonConstThis = const_cast<TimeZoneFormat *>(this);
 1386|  1.26k|        nonConstThis->fTimeZoneGenericNames = TimeZoneGenericNames::createInstance(fLocale, status);
 1387|  1.26k|    }
 1388|  1.26k|    umtx_unlock(&gLock);
  ------------------
  |  | 1251|  1.26k|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  123|  1.26k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.26k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.26k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1389|       |
 1390|  1.26k|    return fTimeZoneGenericNames;
 1391|  1.26k|}
_ZNK6icu_7814TimeZoneFormat22formatExemplarLocationERKNS_8TimeZoneERNS_13UnicodeStringE:
 1415|     16|TimeZoneFormat::formatExemplarLocation(const TimeZone& tz, UnicodeString& name) const {
 1416|     16|    char16_t locationBuf[ZONE_NAME_U16_MAX];
 1417|     16|    UnicodeString location(locationBuf, 0, UPRV_LENGTHOF(locationBuf));
  ------------------
  |  |   99|     16|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1418|     16|    const char16_t* canonicalID = ZoneMeta::getCanonicalCLDRID(tz);
 1419|       |
 1420|     16|    if (canonicalID) {
  ------------------
  |  Branch (1420:9): [True: 16, False: 0]
  ------------------
 1421|     16|        fTimeZoneNames->getExemplarLocationName(UnicodeString(true, canonicalID, -1), location);
 1422|     16|    }
 1423|     16|    if (location.length() > 0) {
  ------------------
  |  Branch (1423:9): [True: 0, False: 16]
  ------------------
 1424|      0|        name.setTo(location);
 1425|     16|    } else {
 1426|       |        // Use "unknown" location
 1427|     16|        fTimeZoneNames->getExemplarLocationName(UnicodeString(true, UNKNOWN_ZONE_ID, -1), location);
 1428|     16|        if (location.length() > 0) {
  ------------------
  |  Branch (1428:13): [True: 14, False: 2]
  ------------------
 1429|     14|            name.setTo(location);
 1430|     14|        } else {
 1431|       |            // last resort
 1432|      2|            name.setTo(UNKNOWN_LOCATION, -1);
 1433|      2|        }
 1434|     16|    }
 1435|     16|    return name;
 1436|     16|}
_ZNK6icu_7814TimeZoneFormat24formatOffsetISO8601BasicEiaaaRNS_13UnicodeStringER10UErrorCode:
 1444|  1.54k|        UnicodeString& result, UErrorCode& status) const {
 1445|  1.54k|    return formatOffsetISO8601(offset, true, useUtcIndicator, isShort, ignoreSeconds, result, status);
 1446|  1.54k|}
_ZNK6icu_7814TimeZoneFormat27formatOffsetISO8601ExtendedEiaaaRNS_13UnicodeStringER10UErrorCode:
 1450|     16|        UnicodeString& result, UErrorCode& status) const {
 1451|     16|    return formatOffsetISO8601(offset, false, useUtcIndicator, isShort, ignoreSeconds, result, status);
 1452|     16|}
_ZNK6icu_7814TimeZoneFormat24formatOffsetLocalizedGMTEiRNS_13UnicodeStringER10UErrorCode:
 1455|    554|TimeZoneFormat::formatOffsetLocalizedGMT(int32_t offset, UnicodeString& result, UErrorCode& status) const {
 1456|    554|    return formatOffsetLocalizedGMT(offset, false, result, status);
 1457|    554|}
_ZNK6icu_7814TimeZoneFormat29formatOffsetShortLocalizedGMTEiRNS_13UnicodeStringER10UErrorCode:
 1460|  1.62k|TimeZoneFormat::formatOffsetShortLocalizedGMT(int32_t offset, UnicodeString& result, UErrorCode& status) const {
 1461|  1.62k|    return formatOffsetLocalizedGMT(offset, true, result, status);
 1462|  1.62k|}
_ZNK6icu_7814TimeZoneFormat19formatOffsetISO8601EiaaaaRNS_13UnicodeStringER10UErrorCode:
 1484|  1.55k|        UBool isShort, UBool ignoreSeconds, UnicodeString& result, UErrorCode& status) const {
 1485|  1.55k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1485:9): [True: 0, False: 1.55k]
  ------------------
 1486|      0|        result.setToBogus();
 1487|      0|        return result;
 1488|      0|    }
 1489|  1.55k|    int32_t absOffset = offset < 0 ? -offset : offset;
  ------------------
  |  Branch (1489:25): [True: 0, False: 1.55k]
  ------------------
 1490|  1.55k|    if (useUtcIndicator && (absOffset < MILLIS_PER_SECOND || (ignoreSeconds && absOffset < MILLIS_PER_MINUTE))) {
  ------------------
  |  Branch (1490:9): [True: 468, False: 1.08k]
  |  Branch (1490:29): [True: 468, False: 0]
  |  Branch (1490:63): [True: 0, False: 0]
  |  Branch (1490:80): [True: 0, False: 0]
  ------------------
 1491|    468|        result.setTo(ISO8601_UTC);
 1492|    468|        return result;
 1493|    468|    }
 1494|       |
 1495|  1.08k|    OffsetFields minFields = isShort ? FIELDS_H : FIELDS_HM;
  ------------------
  |  Branch (1495:30): [True: 490, False: 598]
  ------------------
 1496|  1.08k|    OffsetFields maxFields = ignoreSeconds ? FIELDS_HM : FIELDS_HMS;
  ------------------
  |  Branch (1496:30): [True: 506, False: 582]
  ------------------
 1497|  1.08k|    char16_t sep = isBasic ? 0 : ISO8601_SEP;
  ------------------
  |  Branch (1497:20): [True: 1.08k, False: 4]
  ------------------
 1498|       |
 1499|       |    // Note: FIELDS_HMS as maxFields is a CLDR/ICU extension. ISO 8601 specification does
 1500|       |    // not support seconds field.
 1501|       |
 1502|  1.08k|    if (absOffset >= MAX_OFFSET) {
  ------------------
  |  Branch (1502:9): [True: 0, False: 1.08k]
  ------------------
 1503|      0|        result.setToBogus();
 1504|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 1505|      0|        return result;
 1506|      0|    }
 1507|       |
 1508|  1.08k|    int fields[3];
 1509|  1.08k|    fields[0] = absOffset / MILLIS_PER_HOUR;
 1510|  1.08k|    absOffset = absOffset % MILLIS_PER_HOUR;
 1511|  1.08k|    fields[1] = absOffset / MILLIS_PER_MINUTE;
 1512|  1.08k|    absOffset = absOffset % MILLIS_PER_MINUTE;
 1513|  1.08k|    fields[2] = absOffset / MILLIS_PER_SECOND;
 1514|       |
 1515|  1.08k|    U_ASSERT(fields[0] >= 0 && fields[0] <= MAX_OFFSET_HOUR);
  ------------------
  |  |   35|  1.08k|#   define U_ASSERT(exp) (void)0
  ------------------
 1516|  1.08k|    U_ASSERT(fields[1] >= 0 && fields[1] <= MAX_OFFSET_MINUTE);
  ------------------
  |  |   35|  1.08k|#   define U_ASSERT(exp) (void)0
  ------------------
 1517|  1.08k|    U_ASSERT(fields[2] >= 0 && fields[2] <= MAX_OFFSET_SECOND);
  ------------------
  |  |   35|  1.08k|#   define U_ASSERT(exp) (void)0
  ------------------
 1518|       |
 1519|  1.08k|    int32_t lastIdx = maxFields;
 1520|  2.16k|    while (lastIdx > minFields) {
  ------------------
  |  Branch (1520:12): [True: 1.07k, False: 1.08k]
  ------------------
 1521|  1.07k|        if (fields[lastIdx] != 0) {
  ------------------
  |  Branch (1521:13): [True: 0, False: 1.07k]
  ------------------
 1522|      0|            break;
 1523|      0|        }
 1524|  1.07k|        lastIdx--;
 1525|  1.07k|    }
 1526|       |
 1527|  1.08k|    char16_t sign = PLUS;
 1528|  1.08k|    if (offset < 0) {
  ------------------
  |  Branch (1528:9): [True: 0, False: 1.08k]
  ------------------
 1529|       |        // if all output fields are 0s, do not use negative sign
 1530|      0|        for (int32_t idx = 0; idx <= lastIdx; idx++) {
  ------------------
  |  Branch (1530:31): [True: 0, False: 0]
  ------------------
 1531|      0|            if (fields[idx] != 0) {
  ------------------
  |  Branch (1531:17): [True: 0, False: 0]
  ------------------
 1532|      0|                sign = MINUS;
 1533|      0|                break;
 1534|      0|            }
 1535|      0|        }
 1536|      0|    }
 1537|  1.08k|    result.setTo(sign);
 1538|       |
 1539|  2.77k|    for (int32_t idx = 0; idx <= lastIdx; idx++) {
  ------------------
  |  Branch (1539:27): [True: 1.68k, False: 1.08k]
  ------------------
 1540|  1.68k|        if (sep && idx != 0) {
  ------------------
  |  Branch (1540:13): [True: 8, False: 1.67k]
  |  Branch (1540:20): [True: 4, False: 4]
  ------------------
 1541|      4|            result.append(sep);
 1542|      4|        }
 1543|  1.68k|        result.append(static_cast<char16_t>(0x0030 + fields[idx] / 10));
 1544|  1.68k|        result.append(static_cast<char16_t>(0x0030 + fields[idx] % 10));
 1545|  1.68k|    }
 1546|       |
 1547|  1.08k|    return result;
 1548|  1.08k|}
_ZNK6icu_7814TimeZoneFormat24formatOffsetLocalizedGMTEiaRNS_13UnicodeStringER10UErrorCode:
 1551|  2.17k|TimeZoneFormat::formatOffsetLocalizedGMT(int32_t offset, UBool isShort, UnicodeString& result, UErrorCode& status) const {
 1552|  2.17k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1552:9): [True: 0, False: 2.17k]
  ------------------
 1553|      0|        result.setToBogus();
 1554|      0|        return result;
 1555|      0|    }
 1556|  2.17k|    if (offset <= -MAX_OFFSET || offset >= MAX_OFFSET) {
  ------------------
  |  Branch (1556:9): [True: 0, False: 2.17k]
  |  Branch (1556:34): [True: 0, False: 2.17k]
  ------------------
 1557|      0|        result.setToBogus();
 1558|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 1559|      0|        return result;
 1560|      0|    }
 1561|       |
 1562|  2.17k|    if (offset == 0) {
  ------------------
  |  Branch (1562:9): [True: 2.17k, False: 0]
  ------------------
 1563|  2.17k|        result.setTo(fGMTZeroFormat);
 1564|  2.17k|        return result;
 1565|  2.17k|    }
 1566|       |
 1567|      0|    UBool positive = true;
 1568|      0|    if (offset < 0) {
  ------------------
  |  Branch (1568:9): [True: 0, False: 0]
  ------------------
 1569|      0|        offset = -offset;
 1570|      0|        positive = false;
 1571|      0|    }
 1572|       |
 1573|      0|    int32_t offsetH = offset / MILLIS_PER_HOUR;
 1574|      0|    offset = offset % MILLIS_PER_HOUR;
 1575|      0|    int32_t offsetM = offset / MILLIS_PER_MINUTE;
 1576|      0|    offset = offset % MILLIS_PER_MINUTE;
 1577|      0|    int32_t offsetS = offset / MILLIS_PER_SECOND;
 1578|       |
 1579|      0|    U_ASSERT(offsetH <= MAX_OFFSET_HOUR && offsetM <= MAX_OFFSET_MINUTE && offsetS <= MAX_OFFSET_SECOND);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1580|       |
 1581|      0|    const UVector* offsetPatternItems = nullptr;
 1582|      0|    if (positive) {
  ------------------
  |  Branch (1582:9): [True: 0, False: 0]
  ------------------
 1583|      0|        if (offsetS != 0) {
  ------------------
  |  Branch (1583:13): [True: 0, False: 0]
  ------------------
 1584|      0|            offsetPatternItems = fGMTOffsetPatternItems[UTZFMT_PAT_POSITIVE_HMS];
 1585|      0|        } else if (offsetM != 0 || !isShort) {
  ------------------
  |  Branch (1585:20): [True: 0, False: 0]
  |  Branch (1585:36): [True: 0, False: 0]
  ------------------
 1586|      0|            offsetPatternItems = fGMTOffsetPatternItems[UTZFMT_PAT_POSITIVE_HM];
 1587|      0|        } else {
 1588|      0|            offsetPatternItems = fGMTOffsetPatternItems[UTZFMT_PAT_POSITIVE_H];
 1589|      0|        }
 1590|      0|    } else {
 1591|      0|        if (offsetS != 0) {
  ------------------
  |  Branch (1591:13): [True: 0, False: 0]
  ------------------
 1592|      0|            offsetPatternItems = fGMTOffsetPatternItems[UTZFMT_PAT_NEGATIVE_HMS];
 1593|      0|        } else if (offsetM != 0 || !isShort) {
  ------------------
  |  Branch (1593:20): [True: 0, False: 0]
  |  Branch (1593:36): [True: 0, False: 0]
  ------------------
 1594|      0|            offsetPatternItems = fGMTOffsetPatternItems[UTZFMT_PAT_NEGATIVE_HM];
 1595|      0|        } else {
 1596|      0|            offsetPatternItems = fGMTOffsetPatternItems[UTZFMT_PAT_NEGATIVE_H];
 1597|      0|        }
 1598|      0|    }
 1599|       |
 1600|      0|    U_ASSERT(offsetPatternItems != nullptr);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1601|       |
 1602|       |    // Building the GMT format string
 1603|      0|    result.setTo(fGMTPatternPrefix);
 1604|       |
 1605|      0|    for (int32_t i = 0; i < offsetPatternItems->size(); i++) {
  ------------------
  |  Branch (1605:25): [True: 0, False: 0]
  ------------------
 1606|      0|        const GMTOffsetField* item = static_cast<GMTOffsetField*>(offsetPatternItems->elementAt(i));
 1607|      0|        GMTOffsetField::FieldType type = item->getType();
 1608|       |
 1609|      0|        switch (type) {
  ------------------
  |  Branch (1609:17): [True: 0, False: 0]
  ------------------
 1610|      0|        case GMTOffsetField::TEXT:
  ------------------
  |  Branch (1610:9): [True: 0, False: 0]
  ------------------
 1611|      0|            result.append(item->getPatternText(), -1);
 1612|      0|            break;
 1613|       |
 1614|      0|        case GMTOffsetField::HOUR:
  ------------------
  |  Branch (1614:9): [True: 0, False: 0]
  ------------------
 1615|      0|            appendOffsetDigits(result, offsetH, (isShort ? 1 : 2));
  ------------------
  |  Branch (1615:50): [True: 0, False: 0]
  ------------------
 1616|      0|            break;
 1617|       |
 1618|      0|        case GMTOffsetField::MINUTE:
  ------------------
  |  Branch (1618:9): [True: 0, False: 0]
  ------------------
 1619|      0|            appendOffsetDigits(result, offsetM, 2);
 1620|      0|            break;
 1621|       |
 1622|      0|        case GMTOffsetField::SECOND:
  ------------------
  |  Branch (1622:9): [True: 0, False: 0]
  ------------------
 1623|      0|            appendOffsetDigits(result, offsetS, 2);
 1624|      0|            break;
 1625|      0|        }
 1626|      0|    }
 1627|       |
 1628|      0|    result.append(fGMTPatternSuffix);
 1629|      0|    return result;
 1630|      0|}
_ZN6icu_7814TimeZoneFormat14initGMTPatternERKNS_13UnicodeStringER10UErrorCode:
 2382|  7.66k|TimeZoneFormat::initGMTPattern(const UnicodeString& gmtPattern, UErrorCode& status) {
 2383|  7.66k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2383:9): [True: 0, False: 7.66k]
  ------------------
 2384|      0|        return;
 2385|      0|    }
 2386|       |    // This implementation not perfect, but sufficient practically.
 2387|  7.66k|    int32_t idx = gmtPattern.indexOf(ARG0, ARG0_LEN, 0);
 2388|  7.66k|    if (idx < 0) {
  ------------------
  |  Branch (2388:9): [True: 0, False: 7.66k]
  ------------------
 2389|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 2390|      0|        return;
 2391|      0|    }
 2392|  7.66k|    fGMTPattern.setTo(gmtPattern);
 2393|  7.66k|    unquote(gmtPattern.tempSubString(0, idx), fGMTPatternPrefix);
 2394|  7.66k|    unquote(gmtPattern.tempSubString(idx + ARG0_LEN), fGMTPatternSuffix);
 2395|  7.66k|}
_ZN6icu_7814TimeZoneFormat7unquoteERKNS_13UnicodeStringERS1_:
 2398|  15.3k|TimeZoneFormat::unquote(const UnicodeString& pattern, UnicodeString& result) {
 2399|  15.3k|    if (pattern.indexOf(SINGLEQUOTE) < 0) {
  ------------------
  |  Branch (2399:9): [True: 15.3k, False: 0]
  ------------------
 2400|  15.3k|        result.setTo(pattern);
 2401|  15.3k|        return result;
 2402|  15.3k|    }
 2403|      0|    result.remove();
 2404|      0|    UBool isPrevQuote = false;
 2405|      0|    UBool inQuote = false;
 2406|      0|    for (int32_t i = 0; i < pattern.length(); i++) {
  ------------------
  |  Branch (2406:25): [True: 0, False: 0]
  ------------------
 2407|      0|        char16_t c = pattern.charAt(i);
 2408|      0|        if (c == SINGLEQUOTE) {
  ------------------
  |  Branch (2408:13): [True: 0, False: 0]
  ------------------
 2409|      0|            if (isPrevQuote) {
  ------------------
  |  Branch (2409:17): [True: 0, False: 0]
  ------------------
 2410|      0|                result.append(c);
 2411|      0|                isPrevQuote = false;
 2412|      0|            } else {
 2413|      0|                isPrevQuote = true;
 2414|      0|            }
 2415|      0|            inQuote = !inQuote;
 2416|      0|        } else {
 2417|      0|            isPrevQuote = false;
 2418|      0|            result.append(c);
 2419|      0|        }
 2420|      0|    }
 2421|      0|    return result;
 2422|  15.3k|}
_ZN6icu_7814TimeZoneFormat18parseOffsetPatternERKNS_13UnicodeStringENS0_12OffsetFieldsER10UErrorCode:
 2425|  46.0k|TimeZoneFormat::parseOffsetPattern(const UnicodeString& pattern, OffsetFields required, UErrorCode& status) {
 2426|  46.0k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2426:9): [True: 0, False: 46.0k]
  ------------------
 2427|      0|        return nullptr;
 2428|      0|    }
 2429|  46.0k|    UVector* result = new UVector(deleteGMTOffsetField, nullptr, status);
 2430|  46.0k|    if (result == nullptr) {
  ------------------
  |  Branch (2430:9): [True: 0, False: 46.0k]
  ------------------
 2431|      0|        status = U_MEMORY_ALLOCATION_ERROR;
 2432|      0|        return nullptr;
 2433|      0|    }
 2434|       |
 2435|  46.0k|    int32_t checkBits = 0;
 2436|  46.0k|    UBool isPrevQuote = false;
 2437|  46.0k|    UBool inQuote = false;
 2438|  46.0k|    char16_t textBuf[32];
 2439|  46.0k|    UnicodeString text(textBuf, 0, UPRV_LENGTHOF(textBuf));
  ------------------
  |  |   99|  46.0k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 2440|  46.0k|    GMTOffsetField::FieldType itemType = GMTOffsetField::TEXT;
 2441|  46.0k|    int32_t itemLength = 1;
 2442|       |
 2443|   320k|    for (int32_t i = 0; i < pattern.length(); i++) {
  ------------------
  |  Branch (2443:25): [True: 274k, False: 46.0k]
  ------------------
 2444|   274k|        char16_t ch = pattern.charAt(i);
 2445|   274k|        if (ch == SINGLEQUOTE) {
  ------------------
  |  Branch (2445:13): [True: 0, False: 274k]
  ------------------
 2446|      0|            if (isPrevQuote) {
  ------------------
  |  Branch (2446:17): [True: 0, False: 0]
  ------------------
 2447|      0|                text.append(SINGLEQUOTE);
 2448|      0|                isPrevQuote = false;
 2449|      0|            } else {
 2450|      0|                isPrevQuote = true;
 2451|      0|                if (itemType != GMTOffsetField::TEXT) {
  ------------------
  |  Branch (2451:21): [True: 0, False: 0]
  ------------------
 2452|      0|                    if (GMTOffsetField::isValid(itemType, itemLength)) {
  ------------------
  |  Branch (2452:25): [True: 0, False: 0]
  ------------------
 2453|      0|                        GMTOffsetField* fld = GMTOffsetField::createTimeField(itemType, static_cast<uint8_t>(itemLength), status);
 2454|      0|                        result->adoptElement(fld, status);
 2455|      0|                        if (U_FAILURE(status)) {
  ------------------
  |  Branch (2455:29): [True: 0, False: 0]
  ------------------
 2456|      0|                            break;
 2457|      0|                        }
 2458|      0|                    } else {
 2459|      0|                        status = U_ILLEGAL_ARGUMENT_ERROR;
 2460|      0|                        break;
 2461|      0|                    }
 2462|      0|                    itemType = GMTOffsetField::TEXT;
 2463|      0|                }
 2464|      0|            }
 2465|      0|            inQuote = !inQuote;
 2466|   274k|        } else {
 2467|   274k|            isPrevQuote = false;
 2468|   274k|            if (inQuote) {
  ------------------
  |  Branch (2468:17): [True: 0, False: 274k]
  ------------------
 2469|      0|                text.append(ch);
 2470|   274k|            } else {
 2471|   274k|                GMTOffsetField::FieldType tmpType = GMTOffsetField::getTypeByLetter(ch);
 2472|   274k|                if (tmpType != GMTOffsetField::TEXT) {
  ------------------
  |  Branch (2472:21): [True: 181k, False: 92.8k]
  ------------------
 2473|       |                    // an offset time pattern character
 2474|   181k|                    if (tmpType == itemType) {
  ------------------
  |  Branch (2474:25): [True: 89.6k, False: 92.0k]
  ------------------
 2475|  89.6k|                        itemLength++;
 2476|  92.0k|                    } else {
 2477|  92.0k|                        if (itemType == GMTOffsetField::TEXT) {
  ------------------
  |  Branch (2477:29): [True: 91.8k, False: 138]
  ------------------
 2478|  91.8k|                            if (text.length() > 0) {
  ------------------
  |  Branch (2478:33): [True: 91.8k, False: 0]
  ------------------
 2479|  91.8k|                                GMTOffsetField* textfld = GMTOffsetField::createText(text, status);
 2480|  91.8k|                                result->adoptElement(textfld, status);
 2481|  91.8k|                                if (U_FAILURE(status)) {
  ------------------
  |  Branch (2481:37): [True: 0, False: 91.8k]
  ------------------
 2482|      0|                                    break;
 2483|      0|                                }
 2484|  91.8k|                                text.remove();
 2485|  91.8k|                            }
 2486|  91.8k|                        } else {
 2487|    138|                            if (GMTOffsetField::isValid(itemType, itemLength)) {
  ------------------
  |  Branch (2487:33): [True: 138, False: 0]
  ------------------
 2488|    138|                                GMTOffsetField* fld = GMTOffsetField::createTimeField(itemType, static_cast<uint8_t>(itemLength), status);
 2489|    138|                                result->adoptElement(fld, status);
 2490|    138|                                if (U_FAILURE(status)) {
  ------------------
  |  Branch (2490:37): [True: 0, False: 138]
  ------------------
 2491|      0|                                    break;
 2492|      0|                                }
 2493|    138|                            } else {
 2494|      0|                                status = U_ILLEGAL_ARGUMENT_ERROR;
 2495|      0|                                break;
 2496|      0|                            }
 2497|    138|                        }
 2498|  92.0k|                        itemType = tmpType;
 2499|  92.0k|                        itemLength = 1;
 2500|  92.0k|                        checkBits |= tmpType;
 2501|  92.0k|                    }
 2502|   181k|                } else {
 2503|       |                    // a string literal
 2504|  92.8k|                    if (itemType != GMTOffsetField::TEXT) {
  ------------------
  |  Branch (2504:25): [True: 45.9k, False: 46.9k]
  ------------------
 2505|  45.9k|                        if (GMTOffsetField::isValid(itemType, itemLength)) {
  ------------------
  |  Branch (2505:29): [True: 45.9k, False: 0]
  ------------------
 2506|  45.9k|                            GMTOffsetField* fld = GMTOffsetField::createTimeField(itemType, static_cast<uint8_t>(itemLength), status);
 2507|  45.9k|                            result->adoptElement(fld, status);
 2508|  45.9k|                            if (U_FAILURE(status)) {
  ------------------
  |  Branch (2508:33): [True: 0, False: 45.9k]
  ------------------
 2509|      0|                                break;
 2510|      0|                            }
 2511|  45.9k|                        } else {
 2512|      0|                            status = U_ILLEGAL_ARGUMENT_ERROR;
 2513|      0|                            break;
 2514|      0|                        }
 2515|  45.9k|                        itemType = GMTOffsetField::TEXT;
 2516|  45.9k|                    }
 2517|  92.8k|                    text.append(ch);
 2518|  92.8k|                }
 2519|   274k|            }
 2520|   274k|        }
 2521|   274k|    }
 2522|       |    // handle last item
 2523|  46.0k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (2523:9): [True: 46.0k, False: 0]
  ------------------
 2524|  46.0k|        if (itemType == GMTOffsetField::TEXT) {
  ------------------
  |  Branch (2524:13): [True: 30, False: 45.9k]
  ------------------
 2525|     30|            if (text.length() > 0) {
  ------------------
  |  Branch (2525:17): [True: 30, False: 0]
  ------------------
 2526|     30|                GMTOffsetField* tfld = GMTOffsetField::createText(text, status);
 2527|     30|                result->adoptElement(tfld, status);
 2528|     30|            }
 2529|  45.9k|        } else {
 2530|  45.9k|            if (GMTOffsetField::isValid(itemType, itemLength)) {
  ------------------
  |  Branch (2530:17): [True: 45.9k, False: 0]
  ------------------
 2531|  45.9k|                GMTOffsetField* fld = GMTOffsetField::createTimeField(itemType, static_cast<uint8_t>(itemLength), status);
 2532|  45.9k|                result->adoptElement(fld, status);
 2533|  45.9k|            } else {
 2534|      0|                status = U_ILLEGAL_ARGUMENT_ERROR;
 2535|      0|            }
 2536|  45.9k|        }
 2537|       |
 2538|       |        // Check all required fields are set
 2539|  46.0k|        if (U_SUCCESS(status)) {
  ------------------
  |  Branch (2539:13): [True: 46.0k, False: 0]
  ------------------
 2540|  46.0k|            int32_t reqBits = 0;
 2541|  46.0k|            switch (required) {
  ------------------
  |  Branch (2541:21): [True: 0, False: 46.0k]
  ------------------
 2542|  15.3k|            case FIELDS_H:
  ------------------
  |  Branch (2542:13): [True: 15.3k, False: 30.6k]
  ------------------
 2543|  15.3k|                reqBits = GMTOffsetField::HOUR;
 2544|  15.3k|                break;
 2545|  15.3k|            case FIELDS_HM:
  ------------------
  |  Branch (2545:13): [True: 15.3k, False: 30.6k]
  ------------------
 2546|  15.3k|                reqBits = GMTOffsetField::HOUR | GMTOffsetField::MINUTE;
 2547|  15.3k|                break;
 2548|  15.3k|            case FIELDS_HMS:
  ------------------
  |  Branch (2548:13): [True: 15.3k, False: 30.6k]
  ------------------
 2549|  15.3k|                reqBits = GMTOffsetField::HOUR | GMTOffsetField::MINUTE | GMTOffsetField::SECOND;
 2550|  15.3k|                break;
 2551|  46.0k|            }
 2552|  46.0k|            if (checkBits == reqBits) {
  ------------------
  |  Branch (2552:17): [True: 46.0k, False: 0]
  ------------------
 2553|       |                // all required fields are set, no extra fields
 2554|  46.0k|                return result;
 2555|  46.0k|            }
 2556|  46.0k|        }
 2557|  46.0k|    }
 2558|       |
 2559|       |    // error
 2560|      0|    delete result;
 2561|      0|    return nullptr;
 2562|  46.0k|}
_ZN6icu_7814TimeZoneFormat19expandOffsetPatternERKNS_13UnicodeStringERS1_R10UErrorCode:
 2565|  15.3k|TimeZoneFormat::expandOffsetPattern(const UnicodeString& offsetHM, UnicodeString& result, UErrorCode& status) {
 2566|  15.3k|    result.setToBogus();
 2567|  15.3k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2567:9): [True: 0, False: 15.3k]
  ------------------
 2568|      0|        return result;
 2569|      0|    }
 2570|  15.3k|    U_ASSERT(u_strlen(DEFAULT_GMT_OFFSET_MINUTE_PATTERN) == 2);
  ------------------
  |  |   35|  15.3k|#   define U_ASSERT(exp) (void)0
  ------------------
 2571|       |
 2572|  15.3k|    int32_t idx_mm = offsetHM.indexOf(DEFAULT_GMT_OFFSET_MINUTE_PATTERN, 2, 0);
 2573|  15.3k|    if (idx_mm < 0) {
  ------------------
  |  Branch (2573:9): [True: 0, False: 15.3k]
  ------------------
 2574|       |        // Bad time zone hour pattern data
 2575|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 2576|      0|        return result;
 2577|      0|    }
 2578|       |
 2579|  15.3k|    UnicodeString sep;
 2580|  15.3k|    int32_t idx_H = offsetHM.tempSubString(0, idx_mm).lastIndexOf(static_cast<char16_t>(0x0048) /* H */);
 2581|  15.3k|    if (idx_H >= 0) {
  ------------------
  |  Branch (2581:9): [True: 15.3k, False: 0]
  ------------------
 2582|  15.3k|        sep = offsetHM.tempSubString(idx_H + 1, idx_mm - (idx_H + 1));
 2583|  15.3k|    }
 2584|  15.3k|    result.setTo(offsetHM.tempSubString(0, idx_mm + 2));
 2585|  15.3k|    result.append(sep);
 2586|  15.3k|    result.append(DEFAULT_GMT_OFFSET_SECOND_PATTERN, -1);
 2587|  15.3k|    result.append(offsetHM.tempSubString(idx_mm + 2));
 2588|  15.3k|    return result;
 2589|  15.3k|}
_ZN6icu_7814TimeZoneFormat21truncateOffsetPatternERKNS_13UnicodeStringERS1_R10UErrorCode:
 2592|  15.3k|TimeZoneFormat::truncateOffsetPattern(const UnicodeString& offsetHM, UnicodeString& result, UErrorCode& status) {
 2593|  15.3k|    result.setToBogus();
 2594|  15.3k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2594:9): [True: 0, False: 15.3k]
  ------------------
 2595|      0|        return result;
 2596|      0|    }
 2597|  15.3k|    U_ASSERT(u_strlen(DEFAULT_GMT_OFFSET_MINUTE_PATTERN) == 2);
  ------------------
  |  |   35|  15.3k|#   define U_ASSERT(exp) (void)0
  ------------------
 2598|       |
 2599|  15.3k|    int32_t idx_mm = offsetHM.indexOf(DEFAULT_GMT_OFFSET_MINUTE_PATTERN, 2, 0);
 2600|  15.3k|    if (idx_mm < 0) {
  ------------------
  |  Branch (2600:9): [True: 0, False: 15.3k]
  ------------------
 2601|       |        // Bad time zone hour pattern data
 2602|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
 2603|      0|        return result;
 2604|      0|    }
 2605|  15.3k|    char16_t HH[] = {0x0048, 0x0048};
 2606|  15.3k|    int32_t idx_HH = offsetHM.tempSubString(0, idx_mm).lastIndexOf(HH, 2, 0);
 2607|  15.3k|    if (idx_HH >= 0) {
  ------------------
  |  Branch (2607:9): [True: 14.5k, False: 802]
  ------------------
 2608|  14.5k|        return result.setTo(offsetHM.tempSubString(0, idx_HH + 2));
 2609|  14.5k|    }
 2610|    802|    int32_t idx_H = offsetHM.tempSubString(0, idx_mm).lastIndexOf(static_cast<char16_t>(0x0048), 0);
 2611|    802|    if (idx_H >= 0) {
  ------------------
  |  Branch (2611:9): [True: 802, False: 0]
  ------------------
 2612|    802|        return result.setTo(offsetHM.tempSubString(0, idx_H + 1));
 2613|    802|    }
 2614|       |    // Bad time zone hour pattern data
 2615|      0|    status = U_ILLEGAL_ARGUMENT_ERROR;
 2616|      0|    return result;
 2617|    802|}
_ZN6icu_7814TimeZoneFormat21initGMTOffsetPatternsER10UErrorCode:
 2620|  7.66k|TimeZoneFormat::initGMTOffsetPatterns(UErrorCode& status) {
 2621|  53.6k|    for (int32_t type = 0; type < UTZFMT_PAT_COUNT; type++) {
  ------------------
  |  Branch (2621:28): [True: 46.0k, False: 7.66k]
  ------------------
 2622|  46.0k|        switch (type) {
  ------------------
  |  Branch (2622:17): [True: 0, False: 46.0k]
  ------------------
 2623|  7.66k|        case UTZFMT_PAT_POSITIVE_H:
  ------------------
  |  Branch (2623:9): [True: 7.66k, False: 38.3k]
  ------------------
 2624|  15.3k|        case UTZFMT_PAT_NEGATIVE_H:
  ------------------
  |  Branch (2624:9): [True: 7.66k, False: 38.3k]
  ------------------
 2625|  15.3k|            fGMTOffsetPatternItems[type] = parseOffsetPattern(fGMTOffsetPatterns[type], FIELDS_H, status);
 2626|  15.3k|            break;
 2627|  7.66k|        case UTZFMT_PAT_POSITIVE_HM:
  ------------------
  |  Branch (2627:9): [True: 7.66k, False: 38.3k]
  ------------------
 2628|  15.3k|        case UTZFMT_PAT_NEGATIVE_HM:
  ------------------
  |  Branch (2628:9): [True: 7.66k, False: 38.3k]
  ------------------
 2629|  15.3k|            fGMTOffsetPatternItems[type] = parseOffsetPattern(fGMTOffsetPatterns[type], FIELDS_HM, status);
 2630|  15.3k|            break;
 2631|  7.66k|        case UTZFMT_PAT_POSITIVE_HMS:
  ------------------
  |  Branch (2631:9): [True: 7.66k, False: 38.3k]
  ------------------
 2632|  15.3k|        case UTZFMT_PAT_NEGATIVE_HMS:
  ------------------
  |  Branch (2632:9): [True: 7.66k, False: 38.3k]
  ------------------
 2633|  15.3k|            fGMTOffsetPatternItems[type] = parseOffsetPattern(fGMTOffsetPatterns[type], FIELDS_HMS, status);
 2634|  15.3k|            break;
 2635|  46.0k|        }
 2636|  46.0k|    }
 2637|  7.66k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2637:9): [True: 0, False: 7.66k]
  ------------------
 2638|      0|        return;
 2639|      0|    }
 2640|  7.66k|    checkAbuttingHoursAndMinutes();
 2641|  7.66k|}
_ZN6icu_7814TimeZoneFormat28checkAbuttingHoursAndMinutesEv:
 2644|  7.66k|TimeZoneFormat::checkAbuttingHoursAndMinutes() {
 2645|  7.66k|    fAbuttingOffsetHoursAndMinutes= false;
 2646|  53.5k|    for (int32_t type = 0; type < UTZFMT_PAT_COUNT; type++) {
  ------------------
  |  Branch (2646:28): [True: 45.8k, False: 7.64k]
  ------------------
 2647|  45.8k|        UBool afterH = false;
 2648|  45.8k|        UVector *items = fGMTOffsetPatternItems[type];
 2649|   137k|        for (int32_t i = 0; i < items->size(); i++) {
  ------------------
  |  Branch (2649:29): [True: 122k, False: 15.2k]
  ------------------
 2650|   122k|            const GMTOffsetField* item = static_cast<GMTOffsetField*>(items->elementAt(i));
 2651|   122k|            GMTOffsetField::FieldType fieldType = item->getType();
 2652|   122k|            if (fieldType != GMTOffsetField::TEXT) {
  ------------------
  |  Branch (2652:17): [True: 45.9k, False: 76.4k]
  ------------------
 2653|  45.9k|                if (afterH) {
  ------------------
  |  Branch (2653:21): [True: 23, False: 45.8k]
  ------------------
 2654|     23|                    fAbuttingOffsetHoursAndMinutes = true;
 2655|     23|                    break;
 2656|  45.8k|                } else if (fieldType == GMTOffsetField::HOUR) {
  ------------------
  |  Branch (2656:28): [True: 45.8k, False: 0]
  ------------------
 2657|  45.8k|                    afterH = true;
 2658|  45.8k|                }
 2659|  76.4k|            } else if (afterH) {
  ------------------
  |  Branch (2659:24): [True: 30.5k, False: 45.8k]
  ------------------
 2660|  30.5k|                break;
 2661|  30.5k|            }
 2662|   122k|        }
 2663|  45.8k|        if (fAbuttingOffsetHoursAndMinutes) {
  ------------------
  |  Branch (2663:13): [True: 23, False: 45.8k]
  ------------------
 2664|     23|            break;
 2665|     23|        }
 2666|  45.8k|    }
 2667|  7.66k|}
_ZN6icu_7814TimeZoneFormat12toCodePointsERKNS_13UnicodeStringEPii:
 2670|  7.66k|TimeZoneFormat::toCodePoints(const UnicodeString& str, UChar32* codeArray, int32_t size) {
 2671|  7.66k|    int32_t count = str.countChar32();
 2672|  7.66k|    if (count != size) {
  ------------------
  |  Branch (2672:9): [True: 0, False: 7.66k]
  ------------------
 2673|      0|        return false;
 2674|      0|    }
 2675|       |
 2676|  84.3k|    for (int32_t idx = 0, start = 0; idx < size; idx++) {
  ------------------
  |  Branch (2676:38): [True: 76.6k, False: 7.66k]
  ------------------
 2677|  76.6k|        codeArray[idx] = str.char32At(start);
 2678|  76.6k|        start = str.moveIndex32(start, 1);
 2679|  76.6k|    }
 2680|       |
 2681|  7.66k|    return true;
 2682|  7.66k|}
_ZNK6icu_7814GMTOffsetField7getTypeEv:
  286|   122k|GMTOffsetField::getType() const {
  287|   122k|     return fType;
  288|   122k| }
tzfmt.cpp:_ZN6icu_78L20deleteGMTOffsetFieldEPv:
  303|   183k|deleteGMTOffsetField(void *obj) {
  304|   183k|    delete static_cast<GMTOffsetField *>(obj);
  305|   183k|}

_ZN6icu_788TZGNCoreC2ERKNS_6LocaleER10UErrorCode:
  330|    278|: fLocale(locale),
  331|    278|  fTimeZoneNames(nullptr),
  332|    278|  fLocationNamesMap(nullptr),
  333|    278|  fPartialLocationNamesMap(nullptr),
  334|    278|  fLocaleDisplayNames(nullptr),
  335|    278|  fStringPool(status),
  336|    278|  fGNamesTrie(true, deleteGNameInfo),
  337|    278|  fGNamesTrieFullyLoaded(false),
  338|    278|  fTargetRegion() {
  339|    278|    initialize(locale, status);
  340|    278|}
_ZN6icu_788TZGNCore10initializeERKNS_6LocaleER10UErrorCode:
  347|    278|TZGNCore::initialize(const Locale& locale, UErrorCode& status) {
  348|    278|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (348:9): [True: 0, False: 278]
  ------------------
  349|      0|        return;
  350|      0|    }
  351|       |
  352|       |    // TimeZoneNames
  353|    278|    fTimeZoneNames = TimeZoneNames::createInstance(locale, status);
  354|    278|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (354:9): [True: 0, False: 278]
  ------------------
  355|      0|        return;
  356|      0|    }
  357|       |
  358|       |    // Initialize format patterns
  359|    278|    UnicodeString rpat(true, gDefRegionPattern, -1);
  360|    278|    UnicodeString fpat(true, gDefFallbackPattern, -1);
  361|       |
  362|    278|    UErrorCode tmpsts = U_ZERO_ERROR;   // OK with fallback warning..
  363|    278|    UResourceBundle *zoneStrings = ures_open(U_ICUDATA_ZONE, locale.getName(), &tmpsts);
  ------------------
  |  | 1691|    278|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  UResourceBundle *zoneStrings = ures_open(U_ICUDATA_ZONE, locale.getName(), &tmpsts);
  ------------------
  |  |   22|    278|#define U_ICUDATA_ZONE U_ICUDATA_NAME U_TREE_SEPARATOR_STRING "zone"
  |  |  ------------------
  |  |  |  |  154|    278|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  ------------------
  364|    278|    zoneStrings = ures_getByKeyWithFallback(zoneStrings, gZoneStrings, zoneStrings, &tmpsts);
  ------------------
  |  | 1662|    278|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  365|       |
  366|    278|    if (U_SUCCESS(tmpsts)) {
  ------------------
  |  Branch (366:9): [True: 278, False: 0]
  ------------------
  367|    278|        const char16_t *regionPattern = ures_getStringByKeyWithFallback(zoneStrings, gRegionFormatTag, nullptr, &tmpsts);
  ------------------
  |  | 1678|    278|#define ures_getStringByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getStringByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  368|    278|        if (U_SUCCESS(tmpsts) && u_strlen(regionPattern) > 0) {
  ------------------
  |  |  393|    278|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (368:13): [True: 278, False: 0]
  |  Branch (368:34): [True: 278, False: 0]
  ------------------
  369|    278|            rpat.setTo(regionPattern, -1);
  370|    278|        }
  371|    278|        tmpsts = U_ZERO_ERROR;
  372|    278|        const char16_t *fallbackPattern = ures_getStringByKeyWithFallback(zoneStrings, gFallbackFormatTag, nullptr, &tmpsts);
  ------------------
  |  | 1678|    278|#define ures_getStringByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getStringByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  373|    278|        if (U_SUCCESS(tmpsts) && u_strlen(fallbackPattern) > 0) {
  ------------------
  |  |  393|    278|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (373:13): [True: 278, False: 0]
  |  Branch (373:34): [True: 278, False: 0]
  ------------------
  374|    278|            fpat.setTo(fallbackPattern, -1);
  375|    278|        }
  376|    278|    }
  377|    278|    ures_close(zoneStrings);
  ------------------
  |  | 1652|    278|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  378|       |
  379|    278|    fRegionFormat.applyPatternMinMaxArguments(rpat, 1, 1, status);
  380|    278|    fFallbackFormat.applyPatternMinMaxArguments(fpat, 2, 2, status);
  381|    278|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (381:9): [True: 0, False: 278]
  ------------------
  382|      0|        cleanup();
  383|      0|        return;
  384|      0|    }
  385|       |
  386|       |    // locale display names
  387|    278|    fLocaleDisplayNames = LocaleDisplayNames::createInstance(locale);
  388|       |
  389|       |    // hash table for names - no key/value deleters
  390|    278|    fLocationNamesMap = uhash_open(uhash_hashUChars, uhash_compareUChars, nullptr, &status);
  ------------------
  |  | 1030|    278|#define uhash_open U_ICU_ENTRY_POINT_RENAME(uhash_open)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  fLocationNamesMap = uhash_open(uhash_hashUChars, uhash_compareUChars, nullptr, &status);
  ------------------
  |  | 1016|    278|#define uhash_hashUChars U_ICU_ENTRY_POINT_RENAME(uhash_hashUChars)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  fLocationNamesMap = uhash_open(uhash_hashUChars, uhash_compareUChars, nullptr, &status);
  ------------------
  |  |  998|    278|#define uhash_compareUChars U_ICU_ENTRY_POINT_RENAME(uhash_compareUChars)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  391|    278|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (391:9): [True: 0, False: 278]
  ------------------
  392|      0|        cleanup();
  393|      0|        return;
  394|      0|    }
  395|       |
  396|    278|    fPartialLocationNamesMap = uhash_open(hashPartialLocationKey, comparePartialLocationKey, nullptr, &status);
  ------------------
  |  | 1030|    278|#define uhash_open U_ICU_ENTRY_POINT_RENAME(uhash_open)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  397|    278|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (397:9): [True: 0, False: 278]
  ------------------
  398|      0|        cleanup();
  399|      0|        return;
  400|      0|    }
  401|    278|    uhash_setKeyDeleter(fPartialLocationNamesMap, uprv_free);
  ------------------
  |  | 1040|    278|#define uhash_setKeyDeleter U_ICU_ENTRY_POINT_RENAME(uhash_setKeyDeleter)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  uhash_setKeyDeleter(fPartialLocationNamesMap, uprv_free);
  ------------------
  |  | 1503|    278|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  402|       |    // no value deleter
  403|       |
  404|       |    // target region
  405|    278|    const char* region = fLocale.getCountry();
  406|    278|    int32_t regionLen = static_cast<int32_t>(uprv_strlen(region));
  ------------------
  |  |   37|    278|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    278|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  407|    278|    if (regionLen == 0) {
  ------------------
  |  Branch (407:9): [True: 86, False: 192]
  ------------------
  408|     86|        CharString loc = ulocimp_addLikelySubtags(fLocale.getName(), status);
  ------------------
  |  | 1196|     86|#define ulocimp_addLikelySubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_addLikelySubtags)
  |  |  ------------------
  |  |  |  |  123|     86|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     86|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     86|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  409|     86|        ulocimp_getSubtags(loc.toStringPiece(), nullptr, nullptr, &fTargetRegion, nullptr, nullptr, status);
  ------------------
  |  | 1209|     86|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|     86|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     86|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     86|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  410|     86|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (410:13): [True: 0, False: 86]
  ------------------
  411|      0|            cleanup();
  412|      0|            return;
  413|      0|        }
  414|    192|    } else {
  415|    192|        fTargetRegion.append(region, regionLen, status);
  416|    192|    }
  417|       |
  418|       |    // preload generic names for the default zone
  419|    278|    TimeZone *tz = TimeZone::createDefault();
  420|    278|    const char16_t *tzID = ZoneMeta::getCanonicalCLDRID(*tz);
  421|    278|    if (tzID != nullptr) {
  ------------------
  |  Branch (421:9): [True: 278, False: 0]
  ------------------
  422|    278|        loadStrings(UnicodeString(true, tzID, -1));
  423|    278|    }
  424|    278|    delete tz;
  425|    278|}
_ZNK6icu_788TZGNCore14getDisplayNameERKNS_8TimeZoneE24UTimeZoneGenericNameTypedRNS_13UnicodeStringE:
  438|  1.26k|TZGNCore::getDisplayName(const TimeZone& tz, UTimeZoneGenericNameType type, UDate date, UnicodeString& name) const {
  439|  1.26k|    name.setToBogus();
  440|  1.26k|    switch (type) {
  441|      0|    case UTZGNM_LOCATION:
  ------------------
  |  Branch (441:5): [True: 0, False: 1.26k]
  ------------------
  442|      0|        {
  443|      0|            const char16_t* tzCanonicalID = ZoneMeta::getCanonicalCLDRID(tz);
  444|      0|            if (tzCanonicalID != nullptr) {
  ------------------
  |  Branch (444:17): [True: 0, False: 0]
  ------------------
  445|      0|                getGenericLocationName(UnicodeString(true, tzCanonicalID, -1), name);
  446|      0|            }
  447|      0|        }
  448|      0|        break;
  449|      2|    case UTZGNM_LONG:
  ------------------
  |  Branch (449:5): [True: 2, False: 1.26k]
  ------------------
  450|  1.26k|    case UTZGNM_SHORT:
  ------------------
  |  Branch (450:5): [True: 1.26k, False: 2]
  ------------------
  451|  1.26k|        formatGenericNonLocationName(tz, type, date, name);
  452|  1.26k|        if (name.isEmpty()) {
  ------------------
  |  Branch (452:13): [True: 1.26k, False: 0]
  ------------------
  453|  1.26k|            const char16_t* tzCanonicalID = ZoneMeta::getCanonicalCLDRID(tz);
  454|  1.26k|            if (tzCanonicalID != nullptr) {
  ------------------
  |  Branch (454:17): [True: 1.26k, False: 0]
  ------------------
  455|  1.26k|                getGenericLocationName(UnicodeString(true, tzCanonicalID, -1), name);
  456|  1.26k|            }
  457|  1.26k|        }
  458|  1.26k|        break;
  459|      0|    default:
  ------------------
  |  Branch (459:5): [True: 0, False: 1.26k]
  ------------------
  460|      0|        break;
  461|  1.26k|    }
  462|  1.26k|    return name;
  463|  1.26k|}
_ZNK6icu_788TZGNCore22getGenericLocationNameERKNS_13UnicodeStringERS1_:
  466|  1.26k|TZGNCore::getGenericLocationName(const UnicodeString& tzCanonicalID, UnicodeString& name) const {
  467|  1.26k|    if (tzCanonicalID.isEmpty()) {
  ------------------
  |  Branch (467:9): [True: 0, False: 1.26k]
  ------------------
  468|      0|        name.setToBogus();
  469|      0|        return name;
  470|      0|    }
  471|       |
  472|  1.26k|    const char16_t *locname = nullptr;
  473|  1.26k|    TZGNCore *nonConstThis = const_cast<TZGNCore *>(this);
  474|  1.26k|    umtx_lock(&gLock);
  ------------------
  |  | 1250|  1.26k|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  123|  1.26k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.26k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.26k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  475|  1.26k|    {
  476|  1.26k|        locname = nonConstThis->getGenericLocationName(tzCanonicalID);
  477|  1.26k|    }
  478|  1.26k|    umtx_unlock(&gLock);
  ------------------
  |  | 1251|  1.26k|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  123|  1.26k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.26k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.26k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  479|       |
  480|  1.26k|    if (locname == nullptr) {
  ------------------
  |  Branch (480:9): [True: 1.26k, False: 0]
  ------------------
  481|  1.26k|        name.setToBogus();
  482|  1.26k|    } else {
  483|      0|        name.setTo(locname, u_strlen(locname));
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  484|      0|    }
  485|       |
  486|  1.26k|    return name;
  487|  1.26k|}
_ZN6icu_788TZGNCore22getGenericLocationNameERKNS_13UnicodeStringE:
  493|  1.54k|TZGNCore::getGenericLocationName(const UnicodeString& tzCanonicalID) {
  494|  1.54k|    U_ASSERT(!tzCanonicalID.isEmpty());
  ------------------
  |  |   35|  1.54k|#   define U_ASSERT(exp) (void)0
  ------------------
  495|  1.54k|    if (tzCanonicalID.length() > ZID_KEY_MAX) {
  ------------------
  |  |   41|  1.54k|#define ZID_KEY_MAX  128
  ------------------
  |  Branch (495:9): [True: 0, False: 1.54k]
  ------------------
  496|      0|        return nullptr;
  497|      0|    }
  498|       |
  499|  1.54k|    UErrorCode status = U_ZERO_ERROR;
  500|  1.54k|    char16_t tzIDKey[ZID_KEY_MAX + 1];
  501|  1.54k|    int32_t tzIDKeyLen = tzCanonicalID.extract(tzIDKey, ZID_KEY_MAX + 1, status);
  ------------------
  |  |   41|  1.54k|#define ZID_KEY_MAX  128
  ------------------
  502|  1.54k|    U_ASSERT(status == U_ZERO_ERROR);   // already checked length above
  ------------------
  |  |   35|  1.54k|#   define U_ASSERT(exp) (void)0
  ------------------
  503|  1.54k|    tzIDKey[tzIDKeyLen] = 0;
  504|       |
  505|  1.54k|    const char16_t* locname = static_cast<const char16_t*>(uhash_get(fLocationNamesMap, tzIDKey));
  ------------------
  |  | 1007|  1.54k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  1.54k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.54k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.54k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  506|       |
  507|  1.54k|    if (locname != nullptr) {
  ------------------
  |  Branch (507:9): [True: 1.26k, False: 278]
  ------------------
  508|       |        // gEmpty indicate the name is not available
  509|  1.26k|        if (locname == gEmpty) {
  ------------------
  |  Branch (509:13): [True: 1.26k, False: 0]
  ------------------
  510|  1.26k|            return nullptr;
  511|  1.26k|        }
  512|      0|        return locname;
  513|  1.26k|    }
  514|       |
  515|       |    // Construct location name
  516|    278|    UnicodeString name;
  517|    278|    UnicodeString usCountryCode;
  518|    278|    UBool isPrimary = false;
  519|       |
  520|    278|    ZoneMeta::getCanonicalCountry(tzCanonicalID, usCountryCode, &isPrimary);
  521|       |
  522|    278|    if (!usCountryCode.isEmpty()) {
  ------------------
  |  Branch (522:9): [True: 0, False: 278]
  ------------------
  523|      0|        if (isPrimary) {
  ------------------
  |  Branch (523:13): [True: 0, False: 0]
  ------------------
  524|       |            // If this is the primary zone in the country, use the country name.
  525|      0|            char countryCode[ULOC_COUNTRY_CAPACITY];
  526|      0|            U_ASSERT(usCountryCode.length() < ULOC_COUNTRY_CAPACITY);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
  527|      0|            int32_t ccLen = usCountryCode.extract(0, usCountryCode.length(), countryCode, sizeof(countryCode), US_INV);
  ------------------
  |  |   98|      0|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  528|      0|            countryCode[ccLen] = 0;
  529|       |
  530|      0|            UnicodeString country;
  531|      0|            fLocaleDisplayNames->regionDisplayName(countryCode, country);
  532|      0|            fRegionFormat.format(country, name, status);
  533|      0|        } else {
  534|       |            // If this is not the primary zone in the country,
  535|       |            // use the exemplar city name.
  536|       |
  537|       |            // getExemplarLocationName should return non-empty string
  538|       |            // if the time zone is associated with a region
  539|       |
  540|      0|            UnicodeString city;
  541|      0|            fTimeZoneNames->getExemplarLocationName(tzCanonicalID, city);
  542|      0|            fRegionFormat.format(city, name, status);
  543|      0|        }
  544|      0|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (544:13): [True: 0, False: 0]
  ------------------
  545|      0|            return nullptr;
  546|      0|        }
  547|      0|    }
  548|       |
  549|    278|    locname = name.isEmpty() ? nullptr : fStringPool.get(name, status);
  ------------------
  |  Branch (549:15): [True: 278, False: 0]
  ------------------
  550|    278|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (550:9): [True: 278, False: 0]
  ------------------
  551|       |        // Cache the result
  552|    278|        const char16_t* cacheID = ZoneMeta::findTimeZoneID(tzCanonicalID);
  553|    278|        U_ASSERT(cacheID != nullptr);
  ------------------
  |  |   35|    278|#   define U_ASSERT(exp) (void)0
  ------------------
  554|    278|        if (locname == nullptr) {
  ------------------
  |  Branch (554:13): [True: 278, False: 0]
  ------------------
  555|       |            // gEmpty to indicate - no location name available
  556|    278|            uhash_put(fLocationNamesMap, (void *)cacheID, (void *)gEmpty, &status);
  ------------------
  |  | 1032|    278|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  557|    278|        } else {
  558|      0|            uhash_put(fLocationNamesMap, (void *)cacheID, (void *)locname, &status);
  ------------------
  |  | 1032|      0|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  559|      0|            if (U_FAILURE(status)) {
  ------------------
  |  Branch (559:17): [True: 0, False: 0]
  ------------------
  560|      0|                locname = nullptr;
  561|      0|            } else {
  562|       |                // put the name info into the trie
  563|      0|                GNameInfo* nameinfo = static_cast<ZNameInfo*>(uprv_malloc(sizeof(GNameInfo)));
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  564|      0|                if (nameinfo != nullptr) {
  ------------------
  |  Branch (564:21): [True: 0, False: 0]
  ------------------
  565|      0|                    nameinfo->type = UTZGNM_LOCATION;
  566|      0|                    nameinfo->tzID = cacheID;
  567|      0|                    fGNamesTrie.put(locname, nameinfo, status);
  568|      0|                }
  569|      0|            }
  570|      0|        }
  571|    278|    }
  572|       |
  573|    278|    return locname;
  574|    278|}
_ZNK6icu_788TZGNCore28formatGenericNonLocationNameERKNS_8TimeZoneE24UTimeZoneGenericNameTypedRNS_13UnicodeStringE:
  577|  1.26k|TZGNCore::formatGenericNonLocationName(const TimeZone& tz, UTimeZoneGenericNameType type, UDate date, UnicodeString& name) const {
  578|  1.26k|    U_ASSERT(type == UTZGNM_LONG || type == UTZGNM_SHORT);
  ------------------
  |  |   35|  1.26k|#   define U_ASSERT(exp) (void)0
  ------------------
  579|  1.26k|    name.setToBogus();
  580|       |
  581|  1.26k|    const char16_t* uID = ZoneMeta::getCanonicalCLDRID(tz);
  582|  1.26k|    if (uID == nullptr) {
  ------------------
  |  Branch (582:9): [True: 0, False: 1.26k]
  ------------------
  583|      0|        return name;
  584|      0|    }
  585|       |
  586|  1.26k|    UnicodeString tzID(true, uID, -1);
  587|       |
  588|       |    // Try to get a name from time zone first
  589|  1.26k|    UTimeZoneNameType nameType = (type == UTZGNM_LONG) ? UTZNM_LONG_GENERIC : UTZNM_SHORT_GENERIC;
  ------------------
  |  Branch (589:34): [True: 2, False: 1.26k]
  ------------------
  590|  1.26k|    fTimeZoneNames->getTimeZoneDisplayName(tzID, nameType, name);
  591|       |
  592|  1.26k|    if (!name.isEmpty()) {
  ------------------
  |  Branch (592:9): [True: 0, False: 1.26k]
  ------------------
  593|      0|        return name;
  594|      0|    }
  595|       |
  596|       |    // Try meta zone
  597|  1.26k|    char16_t mzIDBuf[32];
  598|  1.26k|    UnicodeString mzID(mzIDBuf, 0, UPRV_LENGTHOF(mzIDBuf));
  ------------------
  |  |   99|  1.26k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  599|  1.26k|    fTimeZoneNames->getMetaZoneID(tzID, date, mzID);
  600|  1.26k|    if (!mzID.isEmpty()) {
  ------------------
  |  Branch (600:9): [True: 0, False: 1.26k]
  ------------------
  601|      0|        UErrorCode status = U_ZERO_ERROR;
  602|      0|        UBool useStandard = false;
  603|      0|        int32_t raw, sav;
  604|      0|        char16_t tmpNameBuf[ZONE_NAME_U16_MAX];
  605|       |
  606|      0|        tz.getOffset(date, false, raw, sav, status);
  607|      0|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (607:13): [True: 0, False: 0]
  ------------------
  608|      0|            return name;
  609|      0|        }
  610|       |
  611|      0|        if (sav == 0) {
  ------------------
  |  Branch (611:13): [True: 0, False: 0]
  ------------------
  612|      0|            useStandard = true;
  613|       |
  614|      0|            TimeZone *tmptz = tz.clone();
  615|       |            // Check if the zone actually uses daylight saving time around the time
  616|      0|            BasicTimeZone *btz = nullptr;
  617|      0|            if (dynamic_cast<OlsonTimeZone *>(tmptz) != nullptr
  ------------------
  |  Branch (617:17): [True: 0, False: 0]
  ------------------
  618|      0|                || dynamic_cast<SimpleTimeZone *>(tmptz) != nullptr
  ------------------
  |  Branch (618:20): [True: 0, False: 0]
  ------------------
  619|      0|                || dynamic_cast<RuleBasedTimeZone *>(tmptz) != nullptr
  ------------------
  |  Branch (619:20): [True: 0, False: 0]
  ------------------
  620|      0|                || dynamic_cast<VTimeZone *>(tmptz) != nullptr) {
  ------------------
  |  Branch (620:20): [True: 0, False: 0]
  ------------------
  621|      0|                btz = (BasicTimeZone*)tmptz;
  622|      0|            }
  623|       |
  624|      0|            if (btz != nullptr) {
  ------------------
  |  Branch (624:17): [True: 0, False: 0]
  ------------------
  625|      0|                TimeZoneTransition before;
  626|      0|                UBool beforTrs = btz->getPreviousTransition(date, true, before);
  627|      0|                if (beforTrs
  ------------------
  |  Branch (627:21): [True: 0, False: 0]
  ------------------
  628|      0|                        && (date - before.getTime() < kDstCheckRange)
  ------------------
  |  Branch (628:28): [True: 0, False: 0]
  ------------------
  629|      0|                        && before.getFrom()->getDSTSavings() != 0) {
  ------------------
  |  Branch (629:28): [True: 0, False: 0]
  ------------------
  630|      0|                    useStandard = false;
  631|      0|                } else {
  632|      0|                    TimeZoneTransition after;
  633|      0|                    UBool afterTrs = btz->getNextTransition(date, false, after);
  634|      0|                    if (afterTrs
  ------------------
  |  Branch (634:25): [True: 0, False: 0]
  ------------------
  635|      0|                            && (after.getTime() - date < kDstCheckRange)
  ------------------
  |  Branch (635:32): [True: 0, False: 0]
  ------------------
  636|      0|                            && after.getTo()->getDSTSavings() != 0) {
  ------------------
  |  Branch (636:32): [True: 0, False: 0]
  ------------------
  637|      0|                        useStandard = false;
  638|      0|                    }
  639|      0|                }
  640|      0|            } else {
  641|       |                // If not BasicTimeZone... only if the instance is not an ICU's implementation.
  642|       |                // We may get a wrong answer in edge case, but it should practically work OK.
  643|      0|                tmptz->getOffset(date - kDstCheckRange, false, raw, sav, status);
  644|      0|                if (sav != 0) {
  ------------------
  |  Branch (644:21): [True: 0, False: 0]
  ------------------
  645|      0|                    useStandard = false;
  646|      0|                } else {
  647|      0|                    tmptz->getOffset(date + kDstCheckRange, false, raw, sav, status);
  648|      0|                    if (sav != 0){
  ------------------
  |  Branch (648:25): [True: 0, False: 0]
  ------------------
  649|      0|                        useStandard = false;
  650|      0|                    }
  651|      0|                }
  652|      0|                if (U_FAILURE(status)) {
  ------------------
  |  Branch (652:21): [True: 0, False: 0]
  ------------------
  653|      0|                    delete tmptz;
  654|      0|                    return name;
  655|      0|                }
  656|      0|            }
  657|      0|            delete tmptz;
  658|      0|        }
  659|      0|        if (useStandard) {
  ------------------
  |  Branch (659:13): [True: 0, False: 0]
  ------------------
  660|      0|            UTimeZoneNameType stdNameType = (nameType == UTZNM_LONG_GENERIC)
  ------------------
  |  Branch (660:45): [True: 0, False: 0]
  ------------------
  661|      0|                ? UTZNM_LONG_STANDARD : UTZNM_SHORT_STANDARD;
  662|      0|            UnicodeString stdName(tmpNameBuf, 0, UPRV_LENGTHOF(tmpNameBuf));
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  663|      0|            fTimeZoneNames->getDisplayName(tzID, stdNameType, date, stdName);
  664|      0|            if (!stdName.isEmpty()) {
  ------------------
  |  Branch (664:17): [True: 0, False: 0]
  ------------------
  665|      0|                name.setTo(stdName);
  666|       |
  667|       |                // TODO: revisit this issue later
  668|       |                // In CLDR, a same display name is used for both generic and standard
  669|       |                // for some meta zones in some locales.  This looks like a data bugs.
  670|       |                // For now, we check if the standard name is different from its generic
  671|       |                // name below.
  672|      0|                char16_t genNameBuf[ZONE_NAME_U16_MAX];
  673|      0|                UnicodeString mzGenericName(genNameBuf, 0, UPRV_LENGTHOF(genNameBuf));
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  674|      0|                fTimeZoneNames->getMetaZoneDisplayName(mzID, nameType, mzGenericName);
  675|      0|                if (stdName.caseCompare(mzGenericName, 0) == 0) {
  ------------------
  |  Branch (675:21): [True: 0, False: 0]
  ------------------
  676|      0|                    name.setToBogus();
  677|      0|                }
  678|      0|            }
  679|      0|        }
  680|      0|        if (name.isEmpty()) {
  ------------------
  |  Branch (680:13): [True: 0, False: 0]
  ------------------
  681|       |            // Get a name from meta zone
  682|      0|            UnicodeString mzName(tmpNameBuf, 0, UPRV_LENGTHOF(tmpNameBuf));
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  683|      0|            fTimeZoneNames->getMetaZoneDisplayName(mzID, nameType, mzName);
  684|      0|            if (!mzName.isEmpty()) {
  ------------------
  |  Branch (684:17): [True: 0, False: 0]
  ------------------
  685|       |                // Check if we need to use a partial location format.
  686|       |                // This check is done by comparing offset with the meta zone's
  687|       |                // golden zone at the given date.
  688|      0|                char16_t idBuf[32];
  689|      0|                UnicodeString goldenID(idBuf, 0, UPRV_LENGTHOF(idBuf));
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  690|      0|                fTimeZoneNames->getReferenceZoneID(mzID, fTargetRegion.data(), goldenID);
  691|      0|                if (!goldenID.isEmpty() && goldenID != tzID) {
  ------------------
  |  Branch (691:21): [True: 0, False: 0]
  |  Branch (691:44): [True: 0, False: 0]
  ------------------
  692|      0|                    TimeZone *goldenZone = TimeZone::createTimeZone(goldenID);
  693|      0|                    int32_t raw1, sav1;
  694|       |
  695|       |                    // Check offset in the golden zone with wall time.
  696|       |                    // With getOffset(date, false, offsets1),
  697|       |                    // you may get incorrect results because of time overlap at DST->STD
  698|       |                    // transition.
  699|      0|                    goldenZone->getOffset(date + raw + sav, true, raw1, sav1, status);
  700|      0|                    delete goldenZone;
  701|      0|                    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (701:25): [True: 0, False: 0]
  ------------------
  702|      0|                        if (raw != raw1 || sav != sav1) {
  ------------------
  |  Branch (702:29): [True: 0, False: 0]
  |  Branch (702:44): [True: 0, False: 0]
  ------------------
  703|       |                            // Now we need to use a partial location format
  704|      0|                            getPartialLocationName(tzID, mzID, (nameType == UTZNM_LONG_GENERIC), mzName, name);
  705|      0|                        } else {
  706|      0|                            name.setTo(mzName);
  707|      0|                        }
  708|      0|                    }
  709|      0|                } else {
  710|      0|                    name.setTo(mzName);
  711|      0|                }
  712|      0|            }
  713|      0|        }
  714|      0|    }
  715|  1.26k|    return name;
  716|  1.26k|}
_ZN6icu_788TZGNCore11loadStringsERKNS_13UnicodeStringE:
  829|    278|TZGNCore::loadStrings(const UnicodeString& tzCanonicalID) {
  830|       |    // load the generic location name
  831|    278|    getGenericLocationName(tzCanonicalID);
  832|       |
  833|       |    // partial location names
  834|    278|    UErrorCode status = U_ZERO_ERROR;
  835|       |
  836|    278|    const UnicodeString *mzID;
  837|    278|    UnicodeString goldenID;
  838|    278|    UnicodeString mzGenName;
  839|    278|    UTimeZoneNameType genNonLocTypes[] = {
  840|    278|        UTZNM_LONG_GENERIC, UTZNM_SHORT_GENERIC,
  841|    278|        UTZNM_UNKNOWN /*terminator*/
  842|    278|    };
  843|       |
  844|    278|    StringEnumeration *mzIDs = fTimeZoneNames->getAvailableMetaZoneIDs(tzCanonicalID, status);
  845|    278|    while ((mzID = mzIDs->snext(status)) != nullptr) {
  ------------------
  |  Branch (845:12): [True: 0, False: 278]
  ------------------
  846|      0|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (846:13): [True: 0, False: 0]
  ------------------
  847|      0|            break;
  848|      0|        }
  849|       |        // if this time zone is not the golden zone of the meta zone,
  850|       |        // partial location name (such as "PT (Los Angeles)") might be
  851|       |        // available.
  852|      0|        fTimeZoneNames->getReferenceZoneID(*mzID, fTargetRegion.data(), goldenID);
  853|      0|        if (tzCanonicalID != goldenID) {
  ------------------
  |  Branch (853:13): [True: 0, False: 0]
  ------------------
  854|      0|            for (int32_t i = 0; genNonLocTypes[i] != UTZNM_UNKNOWN; i++) {
  ------------------
  |  Branch (854:33): [True: 0, False: 0]
  ------------------
  855|      0|                fTimeZoneNames->getMetaZoneDisplayName(*mzID, genNonLocTypes[i], mzGenName);
  856|      0|                if (!mzGenName.isEmpty()) {
  ------------------
  |  Branch (856:21): [True: 0, False: 0]
  ------------------
  857|       |                    // getPartialLocationName formats a name and put it into the trie
  858|      0|                    getPartialLocationName(tzCanonicalID, *mzID,
  859|      0|                        (genNonLocTypes[i] == UTZNM_LONG_GENERIC), mzGenName);
  860|      0|                }
  861|      0|            }
  862|      0|        }
  863|      0|    }
  864|    278|    delete mzIDs;
  865|    278|}
_ZN6icu_7820TimeZoneGenericNamesC2Ev:
 1157|  1.26k|: fRef(nullptr) {
 1158|  1.26k|}
_ZN6icu_7820TimeZoneGenericNamesD2Ev:
 1160|  1.26k|TimeZoneGenericNames::~TimeZoneGenericNames() {
 1161|  1.26k|    umtx_lock(&gTZGNLock);
  ------------------
  |  | 1250|  1.26k|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  123|  1.26k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.26k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.26k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1162|  1.26k|    {
 1163|  1.26k|        U_ASSERT(fRef->refCount > 0);
  ------------------
  |  |   35|  1.26k|#   define U_ASSERT(exp) (void)0
  ------------------
 1164|       |        // Just decrement the reference count
 1165|  1.26k|        fRef->refCount--;
 1166|  1.26k|    }
 1167|  1.26k|    umtx_unlock(&gTZGNLock);
  ------------------
  |  | 1251|  1.26k|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  123|  1.26k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.26k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.26k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1168|  1.26k|}
_ZN6icu_7820TimeZoneGenericNames14createInstanceERKNS_6LocaleER10UErrorCode:
 1171|  1.26k|TimeZoneGenericNames::createInstance(const Locale& locale, UErrorCode& status) {
 1172|  1.26k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1172:9): [True: 0, False: 1.26k]
  ------------------
 1173|      0|        return nullptr;
 1174|      0|    }
 1175|  1.26k|    LocalPointer<TimeZoneGenericNames> instance(new TimeZoneGenericNames(), status);
 1176|  1.26k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1176:9): [True: 0, False: 1.26k]
  ------------------
 1177|      0|        return nullptr;
 1178|      0|    }
 1179|       |
 1180|  1.26k|    TZGNCoreRef *cacheEntry = nullptr;
 1181|  1.26k|    {
 1182|  1.26k|        Mutex lock(&gTZGNLock);
 1183|       |
 1184|  1.26k|        if (!gTZGNCoreCacheInitialized) {
  ------------------
  |  Branch (1184:13): [True: 1, False: 1.26k]
  ------------------
 1185|       |            // Create empty hashtable
 1186|      1|            gTZGNCoreCache = 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          gTZGNCoreCache = 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          gTZGNCoreCache = 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1187|      1|            if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1187:17): [True: 1, False: 0]
  ------------------
 1188|      1|                uhash_setKeyDeleter(gTZGNCoreCache, uprv_free);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                              uhash_setKeyDeleter(gTZGNCoreCache, uprv_free);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1189|      1|                uhash_setValueDeleter(gTZGNCoreCache, deleteTZGNCoreRef);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1190|      1|                gTZGNCoreCacheInitialized = true;
 1191|      1|                ucln_i18n_registerCleanup(UCLN_I18N_TIMEZONEGENERICNAMES, tzgnCore_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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1192|      1|            }
 1193|      1|        }
 1194|  1.26k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (1194:13): [True: 0, False: 1.26k]
  ------------------
 1195|      0|            return nullptr;
 1196|      0|        }
 1197|       |
 1198|       |        // Check the cache, if not available, create new one and cache
 1199|  1.26k|        const char *key = locale.getName();
 1200|  1.26k|        cacheEntry = static_cast<TZGNCoreRef*>(uhash_get(gTZGNCoreCache, key));
  ------------------
  |  | 1007|  1.26k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  1.26k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.26k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.26k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1201|  1.26k|        if (cacheEntry == nullptr) {
  ------------------
  |  Branch (1201:13): [True: 278, False: 987]
  ------------------
 1202|    278|            TZGNCore *tzgnCore = nullptr;
 1203|    278|            char *newKey = nullptr;
 1204|       |
 1205|    278|            tzgnCore = new TZGNCore(locale, status);
 1206|    278|            if (tzgnCore == nullptr) {
  ------------------
  |  Branch (1206:17): [True: 0, False: 278]
  ------------------
 1207|      0|                status = U_MEMORY_ALLOCATION_ERROR;
 1208|      0|            }
 1209|    278|            if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1209:17): [True: 278, False: 0]
  ------------------
 1210|    278|                newKey = static_cast<char*>(uprv_malloc(uprv_strlen(key) + 1));
  ------------------
  |  | 1524|    278|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                              newKey = static_cast<char*>(uprv_malloc(uprv_strlen(key) + 1));
  ------------------
  |  |   37|    278|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    278|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1211|    278|                if (newKey == nullptr) {
  ------------------
  |  Branch (1211:21): [True: 0, False: 278]
  ------------------
 1212|      0|                    status = U_MEMORY_ALLOCATION_ERROR;
 1213|    278|                } else {
 1214|    278|                    uprv_strcpy(newKey, key);
  ------------------
  |  |   36|    278|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|    278|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1215|    278|                }
 1216|    278|            }
 1217|    278|            if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1217:17): [True: 278, False: 0]
  ------------------
 1218|    278|                cacheEntry = static_cast<TZGNCoreRef*>(uprv_malloc(sizeof(TZGNCoreRef)));
  ------------------
  |  | 1524|    278|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1219|    278|                if (cacheEntry == nullptr) {
  ------------------
  |  Branch (1219:21): [True: 0, False: 278]
  ------------------
 1220|      0|                    status = U_MEMORY_ALLOCATION_ERROR;
 1221|    278|                } else {
 1222|    278|                    cacheEntry->obj = tzgnCore;
 1223|    278|                    cacheEntry->refCount = 1;
 1224|    278|                    cacheEntry->lastAccess = static_cast<double>(uprv_getUTCtime());
  ------------------
  |  | 1512|    278|#define uprv_getUTCtime U_ICU_ENTRY_POINT_RENAME(uprv_getUTCtime)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1225|       |
 1226|    278|                    uhash_put(gTZGNCoreCache, newKey, cacheEntry, &status);
  ------------------
  |  | 1032|    278|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1227|    278|                }
 1228|    278|            }
 1229|    278|            if (U_FAILURE(status)) {
  ------------------
  |  Branch (1229:17): [True: 0, False: 278]
  ------------------
 1230|      0|                delete tzgnCore;
 1231|      0|                if (newKey != nullptr) {
  ------------------
  |  Branch (1231:21): [True: 0, False: 0]
  ------------------
 1232|      0|                    uprv_free(newKey);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1233|      0|                }
 1234|      0|                if (cacheEntry != nullptr) {
  ------------------
  |  Branch (1234:21): [True: 0, False: 0]
  ------------------
 1235|      0|                    uprv_free(cacheEntry);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1236|      0|                }
 1237|      0|                cacheEntry = nullptr;
 1238|      0|            }
 1239|    987|        } else {
 1240|       |            // Update the reference count
 1241|    987|            cacheEntry->refCount++;
 1242|    987|            cacheEntry->lastAccess = static_cast<double>(uprv_getUTCtime());
  ------------------
  |  | 1512|    987|#define uprv_getUTCtime U_ICU_ENTRY_POINT_RENAME(uprv_getUTCtime)
  |  |  ------------------
  |  |  |  |  123|    987|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    987|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    987|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1243|    987|        }
 1244|  1.26k|        gAccessCount++;
 1245|  1.26k|        if (gAccessCount >= SWEEP_INTERVAL) {
  ------------------
  |  | 1104|  1.26k|#define SWEEP_INTERVAL 100
  ------------------
  |  Branch (1245:13): [True: 12, False: 1.25k]
  ------------------
 1246|       |            // sweep
 1247|     12|            sweepCache();
 1248|     12|            gAccessCount = 0;
 1249|     12|        }
 1250|  1.26k|    }  // End of mutex locked block
 1251|       |
 1252|  1.26k|    if (cacheEntry == nullptr) {
  ------------------
  |  Branch (1252:9): [True: 0, False: 1.26k]
  ------------------
 1253|      0|        return nullptr;
 1254|      0|    }
 1255|       |
 1256|  1.26k|    instance->fRef = cacheEntry;
 1257|  1.26k|    return instance.orphan();
 1258|  1.26k|}
_ZNK6icu_7820TimeZoneGenericNames14getDisplayNameERKNS_8TimeZoneE24UTimeZoneGenericNameTypedRNS_13UnicodeStringE:
 1284|  1.26k|                        UDate date, UnicodeString& name) const {
 1285|  1.26k|    return fRef->obj->getDisplayName(tz, type, date, name);
 1286|  1.26k|}
_ZNK6icu_7820TimeZoneGenericNames22getGenericLocationNameERKNS_13UnicodeStringERS1_:
 1289|      2|TimeZoneGenericNames::getGenericLocationName(const UnicodeString& tzCanonicalID, UnicodeString& name) const {
 1290|      2|    return fRef->obj->getGenericLocationName(tzCanonicalID, name);
 1291|      2|}
tzgnames.cpp:_ZN6icu_78L10sweepCacheEv:
 1142|     12|static void sweepCache() {
 1143|     12|    int32_t pos = UHASH_FIRST;
  ------------------
  |  |  610|     12|#define UHASH_FIRST (-1)
  ------------------
 1144|     12|    const UHashElement* elem;
 1145|     12|    double now = static_cast<double>(uprv_getUTCtime());
  ------------------
  |  | 1512|     12|#define uprv_getUTCtime U_ICU_ENTRY_POINT_RENAME(uprv_getUTCtime)
  |  |  ------------------
  |  |  |  |  123|     12|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     12|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     12|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1146|       |
 1147|  2.20k|    while ((elem = uhash_nextElement(gTZGNCoreCache, &pos)) != nullptr) {
  ------------------
  |  | 1029|  2.20k|#define uhash_nextElement U_ICU_ENTRY_POINT_RENAME(uhash_nextElement)
  |  |  ------------------
  |  |  |  |  123|  2.20k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.20k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.20k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1147:12): [True: 2.19k, False: 12]
  ------------------
 1148|  2.19k|        TZGNCoreRef* entry = static_cast<TZGNCoreRef*>(elem->value.pointer);
 1149|  2.19k|        if (entry->refCount <= 0 && (now - entry->lastAccess) > CACHE_EXPIRATION) {
  ------------------
  |  | 1110|  2.18k|#define CACHE_EXPIRATION 180000.0
  ------------------
  |  Branch (1149:13): [True: 2.18k, False: 12]
  |  Branch (1149:37): [True: 0, False: 2.18k]
  ------------------
 1150|       |            // delete this entry
 1151|      0|            uhash_removeElement(gTZGNCoreCache, elem);
  ------------------
  |  | 1037|      0|#define uhash_removeElement U_ICU_ENTRY_POINT_RENAME(uhash_removeElement)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1152|      0|        }
 1153|  2.19k|    }
 1154|     12|}

_ZN6icu_7821TimeZoneNamesDelegateC2ERKNS_6LocaleER10UErrorCode:
  138|  7.94k|TimeZoneNamesDelegate::TimeZoneNamesDelegate(const Locale& locale, UErrorCode& status) {
  139|  7.94k|    Mutex lock(&gTimeZoneNamesLock);
  140|  7.94k|    if (!gTimeZoneNamesCacheInitialized) {
  ------------------
  |  Branch (140:9): [True: 1, False: 7.94k]
  ------------------
  141|       |        // Create empty hashtable if it is not already initialized.
  142|      1|        gTimeZoneNamesCache = 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      gTimeZoneNamesCache = 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      gTimeZoneNamesCache = 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  143|      1|        if (U_SUCCESS(status)) {
  ------------------
  |  Branch (143:13): [True: 1, False: 0]
  ------------------
  144|      1|            uhash_setKeyDeleter(gTimeZoneNamesCache, uprv_free);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          uhash_setKeyDeleter(gTimeZoneNamesCache, uprv_free);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  145|      1|            uhash_setValueDeleter(gTimeZoneNamesCache, deleteTimeZoneNamesCacheEntry);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  146|      1|            gTimeZoneNamesCacheInitialized = true;
  147|      1|            ucln_i18n_registerCleanup(UCLN_I18N_TIMEZONENAMES, timeZoneNames_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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  148|      1|        }
  149|      1|    }
  150|       |
  151|  7.94k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (151:9): [True: 0, False: 7.94k]
  ------------------
  152|      0|        return;
  153|      0|    }
  154|       |
  155|       |    // Check the cache, if not available, create new one and cache
  156|  7.94k|    TimeZoneNamesCacheEntry *cacheEntry = nullptr;
  157|       |
  158|  7.94k|    const char *key = locale.getName();
  159|  7.94k|    cacheEntry = static_cast<TimeZoneNamesCacheEntry*>(uhash_get(gTimeZoneNamesCache, key));
  ------------------
  |  | 1007|  7.94k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  7.94k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.94k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.94k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  160|  7.94k|    if (cacheEntry == nullptr) {
  ------------------
  |  Branch (160:9): [True: 721, False: 7.22k]
  ------------------
  161|    721|        TimeZoneNames *tznames = nullptr;
  162|    721|        char *newKey = nullptr;
  163|       |
  164|    721|        tznames = new TimeZoneNamesImpl(locale, status);
  165|    721|        if (tznames == nullptr) {
  ------------------
  |  Branch (165:13): [True: 0, False: 721]
  ------------------
  166|      0|            status = U_MEMORY_ALLOCATION_ERROR;
  167|      0|        }
  168|    721|        if (U_SUCCESS(status)) {
  ------------------
  |  Branch (168:13): [True: 721, False: 0]
  ------------------
  169|    721|            newKey = static_cast<char*>(uprv_malloc(uprv_strlen(key) + 1));
  ------------------
  |  | 1524|    721|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    721|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    721|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    721|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          newKey = static_cast<char*>(uprv_malloc(uprv_strlen(key) + 1));
  ------------------
  |  |   37|    721|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    721|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  170|    721|            if (newKey == nullptr) {
  ------------------
  |  Branch (170:17): [True: 0, False: 721]
  ------------------
  171|      0|                status = U_MEMORY_ALLOCATION_ERROR;
  172|    721|            } else {
  173|    721|                uprv_strcpy(newKey, key);
  ------------------
  |  |   36|    721|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|    721|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  174|    721|            }
  175|    721|        }
  176|    721|        if (U_SUCCESS(status)) {
  ------------------
  |  Branch (176:13): [True: 721, False: 0]
  ------------------
  177|    721|            cacheEntry = static_cast<TimeZoneNamesCacheEntry*>(uprv_malloc(sizeof(TimeZoneNamesCacheEntry)));
  ------------------
  |  | 1524|    721|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    721|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    721|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    721|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  178|    721|            if (cacheEntry == nullptr) {
  ------------------
  |  Branch (178:17): [True: 0, False: 721]
  ------------------
  179|      0|                status = U_MEMORY_ALLOCATION_ERROR;
  180|    721|            } else {
  181|    721|                cacheEntry->names = tznames;
  182|       |                // The initial refCount is 2 because the entry is referenced both
  183|       |                // by this TimeZoneDelegate and by the gTimeZoneNamesCache
  184|    721|                cacheEntry->refCount = 2;
  185|    721|                cacheEntry->lastAccess = static_cast<double>(uprv_getUTCtime());
  ------------------
  |  | 1512|    721|#define uprv_getUTCtime U_ICU_ENTRY_POINT_RENAME(uprv_getUTCtime)
  |  |  ------------------
  |  |  |  |  123|    721|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    721|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    721|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  186|       |
  187|    721|                uhash_put(gTimeZoneNamesCache, newKey, cacheEntry, &status);
  ------------------
  |  | 1032|    721|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|    721|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    721|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    721|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  188|    721|            }
  189|    721|        }
  190|    721|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (190:13): [True: 0, False: 721]
  ------------------
  191|      0|            delete tznames;
  192|      0|            if (newKey != nullptr) {
  ------------------
  |  Branch (192:17): [True: 0, False: 0]
  ------------------
  193|      0|                uprv_free(newKey);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  194|      0|            }
  195|      0|            if (cacheEntry != nullptr) {
  ------------------
  |  Branch (195:17): [True: 0, False: 0]
  ------------------
  196|      0|                uprv_free(cacheEntry);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  197|      0|            }
  198|      0|            cacheEntry = nullptr;
  199|      0|        }
  200|  7.22k|    } else {
  201|       |        // Update the reference count
  202|  7.22k|        cacheEntry->refCount++;
  203|  7.22k|        cacheEntry->lastAccess = static_cast<double>(uprv_getUTCtime());
  ------------------
  |  | 1512|  7.22k|#define uprv_getUTCtime U_ICU_ENTRY_POINT_RENAME(uprv_getUTCtime)
  |  |  ------------------
  |  |  |  |  123|  7.22k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.22k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.22k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  204|  7.22k|    }
  205|  7.94k|    gAccessCount++;
  206|  7.94k|    if (gAccessCount >= SWEEP_INTERVAL) {
  ------------------
  |  |   41|  7.94k|#define SWEEP_INTERVAL 100
  ------------------
  |  Branch (206:9): [True: 79, False: 7.86k]
  ------------------
  207|       |        // sweep
  208|     79|        sweepCache();
  209|     79|        gAccessCount = 0;
  210|     79|    }
  211|  7.94k|    fTZnamesCacheEntry = cacheEntry;
  212|  7.94k|}
_ZN6icu_7821TimeZoneNamesDelegateD2Ev:
  214|  7.66k|TimeZoneNamesDelegate::~TimeZoneNamesDelegate() {
  215|  7.66k|    umtx_lock(&gTimeZoneNamesLock);
  ------------------
  |  | 1250|  7.66k|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  123|  7.66k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.66k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.66k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  216|  7.66k|    {
  217|  7.66k|        if (fTZnamesCacheEntry) {
  ------------------
  |  Branch (217:13): [True: 7.66k, False: 0]
  ------------------
  218|  7.66k|            if (fTZnamesCacheEntry->refCount <= 1) {
  ------------------
  |  Branch (218:17): [True: 0, False: 7.66k]
  ------------------
  219|      0|                delete fTZnamesCacheEntry->names;
  220|      0|                uprv_free(fTZnamesCacheEntry);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  221|  7.66k|            } else {
  222|       |                // Just decrement the reference count
  223|  7.66k|                fTZnamesCacheEntry->refCount--;
  224|  7.66k|            }
  225|  7.66k|        }
  226|  7.66k|    }
  227|  7.66k|    umtx_unlock(&gTimeZoneNamesLock);
  ------------------
  |  | 1251|  7.66k|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  123|  7.66k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.66k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.66k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  228|  7.66k|}
_ZNK6icu_7821TimeZoneNamesDelegate23getAvailableMetaZoneIDsERKNS_13UnicodeStringER10UErrorCode:
  265|    278|TimeZoneNamesDelegate::getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const {
  266|    278|    return fTZnamesCacheEntry->names->getAvailableMetaZoneIDs(tzID, status);
  267|    278|}
_ZNK6icu_7821TimeZoneNamesDelegate13getMetaZoneIDERKNS_13UnicodeStringEdRS1_:
  270|  1.80k|TimeZoneNamesDelegate::getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) const {
  271|  1.80k|    return fTZnamesCacheEntry->names->getMetaZoneID(tzID, date, mzID);
  272|  1.80k|}
_ZNK6icu_7821TimeZoneNamesDelegate22getMetaZoneDisplayNameERKNS_13UnicodeStringE17UTimeZoneNameTypeRS1_:
  280|    538|TimeZoneNamesDelegate::getMetaZoneDisplayName(const UnicodeString& mzID, UTimeZoneNameType type, UnicodeString& name) const {
  281|    538|    return fTZnamesCacheEntry->names->getMetaZoneDisplayName(mzID, type, name);
  282|    538|}
_ZNK6icu_7821TimeZoneNamesDelegate22getTimeZoneDisplayNameERKNS_13UnicodeStringE17UTimeZoneNameTypeRS1_:
  285|  5.30k|TimeZoneNamesDelegate::getTimeZoneDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, UnicodeString& name) const {
  286|  5.30k|    return fTZnamesCacheEntry->names->getTimeZoneDisplayName(tzID, type, name);
  287|  5.30k|}
_ZNK6icu_7821TimeZoneNamesDelegate23getExemplarLocationNameERKNS_13UnicodeStringERS1_:
  290|     32|TimeZoneNamesDelegate::getExemplarLocationName(const UnicodeString& tzID, UnicodeString& name) const {
  291|     32|    return fTZnamesCacheEntry->names->getExemplarLocationName(tzID, name);
  292|     32|}
_ZN6icu_7813TimeZoneNamesD2Ev:
  312|  7.66k|TimeZoneNames::~TimeZoneNames() {
  313|  7.66k|}
_ZN6icu_7813TimeZoneNames14createInstanceERKNS_6LocaleER10UErrorCode:
  316|  7.94k|TimeZoneNames::createInstance(const Locale& locale, UErrorCode& status) {
  317|  7.94k|    TimeZoneNames *instance = nullptr;
  318|  7.94k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (318:9): [True: 7.94k, False: 0]
  ------------------
  319|  7.94k|        instance = new TimeZoneNamesDelegate(locale, status);
  320|  7.94k|        if (instance == nullptr && U_SUCCESS(status)) {
  ------------------
  |  Branch (320:13): [True: 0, False: 7.94k]
  |  Branch (320:36): [True: 0, False: 0]
  ------------------
  321|      0|            status = U_MEMORY_ALLOCATION_ERROR;
  322|      0|        }
  323|  7.94k|    }
  324|  7.94k|    return instance;
  325|  7.94k|}
_ZNK6icu_7813TimeZoneNames14getDisplayNameERKNS_13UnicodeStringE17UTimeZoneNameTypedRS1_:
  345|  4.04k|TimeZoneNames::getDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, UDate date, UnicodeString& name) const {
  346|  4.04k|    getTimeZoneDisplayName(tzID, type, name);
  347|  4.04k|    if (name.isEmpty()) {
  ------------------
  |  Branch (347:9): [True: 538, False: 3.50k]
  ------------------
  348|    538|        char16_t mzIDBuf[32];
  349|    538|        UnicodeString mzID(mzIDBuf, 0, UPRV_LENGTHOF(mzIDBuf));
  ------------------
  |  |   99|    538|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  350|    538|        getMetaZoneID(tzID, date, mzID);
  351|    538|        getMetaZoneDisplayName(mzID, type, name);
  352|    538|    }
  353|  4.04k|    return name;
  354|  4.04k|}
tznames.cpp:_ZN6icu_78L10sweepCacheEv:
   89|     79|static void sweepCache() {
   90|     79|    int32_t pos = UHASH_FIRST;
  ------------------
  |  |  610|     79|#define UHASH_FIRST (-1)
  ------------------
   91|     79|    const UHashElement* elem;
   92|     79|    double now = static_cast<double>(uprv_getUTCtime());
  ------------------
  |  | 1512|     79|#define uprv_getUTCtime U_ICU_ENTRY_POINT_RENAME(uprv_getUTCtime)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   93|       |
   94|  44.2k|    while ((elem = uhash_nextElement(gTimeZoneNamesCache, &pos)) != nullptr) {
  ------------------
  |  | 1029|  44.2k|#define uhash_nextElement U_ICU_ENTRY_POINT_RENAME(uhash_nextElement)
  |  |  ------------------
  |  |  |  |  123|  44.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  44.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  44.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (94:12): [True: 44.1k, False: 79]
  ------------------
   95|  44.1k|        TimeZoneNamesCacheEntry* entry = static_cast<TimeZoneNamesCacheEntry*>(elem->value.pointer);
   96|  44.1k|        if (entry->refCount <= 0 && (now - entry->lastAccess) > CACHE_EXPIRATION) {
  ------------------
  |  |   47|      0|#define CACHE_EXPIRATION 180000.0
  ------------------
  |  Branch (96:13): [True: 0, False: 44.1k]
  |  Branch (96:37): [True: 0, False: 0]
  ------------------
   97|       |            // delete this entry
   98|      0|            uhash_removeElement(gTimeZoneNamesCache, elem);
  ------------------
  |  | 1037|      0|#define uhash_removeElement U_ICU_ENTRY_POINT_RENAME(uhash_removeElement)
  |  |  ------------------
  |  |  |  |  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|  44.1k|    }
  101|     79|}

_ZN6icu_7811TextTrieMapC2EaPFvPvE:
  190|    999|: fIgnoreCase(ignoreCase), fNodes(nullptr), fNodesCapacity(0), fNodesCount(0), 
  191|    999|  fLazyContents(nullptr), fIsEmpty(true), fValueDeleter(valueDeleter) {
  192|    999|}
_ZN6icu_7817ZNStringPoolChunkC2Ev:
  461|    278|ZNStringPoolChunk::ZNStringPoolChunk() {
  462|    278|    fNext = nullptr;
  463|    278|    fLimit = 0;
  464|    278|}
_ZN6icu_7812ZNStringPoolC2ER10UErrorCode:
  466|    278|ZNStringPool::ZNStringPool(UErrorCode &status) {
  467|    278|    fChunks = nullptr;
  468|    278|    fHash   = nullptr;
  469|    278|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (469:9): [True: 0, False: 278]
  ------------------
  470|      0|        return;
  471|      0|    }
  472|    278|    fChunks = new ZNStringPoolChunk;
  473|    278|    if (fChunks == nullptr) {
  ------------------
  |  Branch (473:9): [True: 0, False: 278]
  ------------------
  474|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  475|      0|        return;
  476|      0|    }
  477|       |
  478|    278|    fHash   = uhash_open(uhash_hashUChars      /* keyHash */, 
  ------------------
  |  | 1030|    278|#define uhash_open U_ICU_ENTRY_POINT_RENAME(uhash_open)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  fHash   = uhash_open(uhash_hashUChars      /* keyHash */, 
  ------------------
  |  | 1016|    278|#define uhash_hashUChars U_ICU_ENTRY_POINT_RENAME(uhash_hashUChars)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  479|    278|                         uhash_compareUChars   /* keyComp */, 
  ------------------
  |  |  998|    278|#define uhash_compareUChars U_ICU_ENTRY_POINT_RENAME(uhash_compareUChars)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  480|    278|                         uhash_compareUChars   /* valueComp */, 
  ------------------
  |  |  998|    278|#define uhash_compareUChars U_ICU_ENTRY_POINT_RENAME(uhash_compareUChars)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  481|    278|                         &status);
  482|    278|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (482:9): [True: 0, False: 278]
  ------------------
  483|      0|        return;
  484|      0|    }
  485|    278|}
_ZN6icu_786ZNames12ZNamesLoaderD2Ev:
  856|    730|ZNames::ZNamesLoader::~ZNamesLoader() {}
_ZN6icu_7822MetaZoneIDsEnumerationC2Ev:
  883|    999|: fLen(0), fPos(0), fMetaZoneIDs(nullptr), fLocalVector(nullptr) {
  884|    999|}
_ZN6icu_7822MetaZoneIDsEnumeration5snextER10UErrorCode:
  900|    999|MetaZoneIDsEnumeration::snext(UErrorCode& status) {
  901|    999|    if (U_SUCCESS(status) && fMetaZoneIDs != nullptr && fPos < fLen) {
  ------------------
  |  Branch (901:9): [True: 999, False: 0]
  |  Branch (901:30): [True: 0, False: 999]
  |  Branch (901:57): [True: 0, False: 0]
  ------------------
  902|      0|        unistr.setTo(static_cast<const char16_t*>(fMetaZoneIDs->elementAt(fPos++)), -1);
  903|      0|        return &unistr;
  904|      0|    }
  905|    999|    return nullptr;
  906|    999|}
_ZN6icu_7822MetaZoneIDsEnumerationD2Ev:
  918|    999|MetaZoneIDsEnumeration::~MetaZoneIDsEnumeration() {
  919|    999|}
_ZN6icu_7817TimeZoneNamesImplC2ERKNS_6LocaleER10UErrorCode:
 1026|    721|: fLocale(locale),
 1027|    721|  fZoneStrings(nullptr),
 1028|    721|  fTZNamesMap(nullptr),
 1029|    721|  fMZNamesMap(nullptr),
 1030|    721|  fNamesTrieFullyLoaded(false),
 1031|    721|  fNamesFullyLoaded(false),
 1032|    721|  fNamesTrie(true, deleteZNameInfo) {
 1033|    721|    initialize(locale, status);
 1034|    721|}
_ZN6icu_7817TimeZoneNamesImpl10initializeERKNS_6LocaleER10UErrorCode:
 1037|    721|TimeZoneNamesImpl::initialize(const Locale& locale, UErrorCode& status) {
 1038|    721|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1038:9): [True: 0, False: 721]
  ------------------
 1039|      0|        return;
 1040|      0|    }
 1041|       |
 1042|       |    // Load zoneStrings bundle
 1043|    721|    UErrorCode tmpsts = U_ZERO_ERROR;   // OK with fallback warning..
 1044|    721|    fZoneStrings = ures_open(U_ICUDATA_ZONE, locale.getName(), &tmpsts);
  ------------------
  |  | 1691|    721|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|    721|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    721|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    721|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  fZoneStrings = ures_open(U_ICUDATA_ZONE, locale.getName(), &tmpsts);
  ------------------
  |  |   22|    721|#define U_ICUDATA_ZONE U_ICUDATA_NAME U_TREE_SEPARATOR_STRING "zone"
  |  |  ------------------
  |  |  |  |  154|    721|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  ------------------
 1045|    721|    fZoneStrings = ures_getByKeyWithFallback(fZoneStrings, gZoneStrings, fZoneStrings, &tmpsts);
  ------------------
  |  | 1662|    721|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|    721|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    721|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    721|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1046|    721|    if (U_FAILURE(tmpsts)) {
  ------------------
  |  Branch (1046:9): [True: 0, False: 721]
  ------------------
 1047|      0|        status = tmpsts;
 1048|      0|        cleanup();
 1049|      0|        return;
 1050|      0|    }
 1051|       |
 1052|       |    // Initialize hashtables holding time zone/meta zone names
 1053|    721|    fMZNamesMap = uhash_open(uhash_hashUChars, uhash_compareUChars, nullptr, &status);
  ------------------
  |  | 1030|    721|#define uhash_open U_ICU_ENTRY_POINT_RENAME(uhash_open)
  |  |  ------------------
  |  |  |  |  123|    721|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    721|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    721|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  fMZNamesMap = uhash_open(uhash_hashUChars, uhash_compareUChars, nullptr, &status);
  ------------------
  |  | 1016|    721|#define uhash_hashUChars U_ICU_ENTRY_POINT_RENAME(uhash_hashUChars)
  |  |  ------------------
  |  |  |  |  123|    721|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    721|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    721|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  fMZNamesMap = uhash_open(uhash_hashUChars, uhash_compareUChars, nullptr, &status);
  ------------------
  |  |  998|    721|#define uhash_compareUChars U_ICU_ENTRY_POINT_RENAME(uhash_compareUChars)
  |  |  ------------------
  |  |  |  |  123|    721|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    721|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    721|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1054|    721|    fTZNamesMap = uhash_open(uhash_hashUChars, uhash_compareUChars, nullptr, &status);
  ------------------
  |  | 1030|    721|#define uhash_open U_ICU_ENTRY_POINT_RENAME(uhash_open)
  |  |  ------------------
  |  |  |  |  123|    721|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    721|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    721|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  fTZNamesMap = uhash_open(uhash_hashUChars, uhash_compareUChars, nullptr, &status);
  ------------------
  |  | 1016|    721|#define uhash_hashUChars U_ICU_ENTRY_POINT_RENAME(uhash_hashUChars)
  |  |  ------------------
  |  |  |  |  123|    721|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    721|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    721|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  fTZNamesMap = uhash_open(uhash_hashUChars, uhash_compareUChars, nullptr, &status);
  ------------------
  |  |  998|    721|#define uhash_compareUChars U_ICU_ENTRY_POINT_RENAME(uhash_compareUChars)
  |  |  ------------------
  |  |  |  |  123|    721|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    721|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    721|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1055|    721|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1055:9): [True: 0, False: 721]
  ------------------
 1056|      0|        cleanup();
 1057|      0|        return;
 1058|      0|    }
 1059|       |
 1060|    721|    uhash_setValueDeleter(fMZNamesMap, deleteZNames);
  ------------------
  |  | 1044|    721|#define uhash_setValueDeleter U_ICU_ENTRY_POINT_RENAME(uhash_setValueDeleter)
  |  |  ------------------
  |  |  |  |  123|    721|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    721|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    721|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1061|    721|    uhash_setValueDeleter(fTZNamesMap, deleteZNames);
  ------------------
  |  | 1044|    721|#define uhash_setValueDeleter U_ICU_ENTRY_POINT_RENAME(uhash_setValueDeleter)
  |  |  ------------------
  |  |  |  |  123|    721|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    721|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    721|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1062|       |    // no key deleters for name maps
 1063|       |
 1064|       |    // preload zone strings for the default zone
 1065|    721|    TimeZone *tz = TimeZone::createDefault();
 1066|    721|    const char16_t *tzID = ZoneMeta::getCanonicalCLDRID(*tz);
 1067|    721|    if (tzID != nullptr) {
  ------------------
  |  Branch (1067:9): [True: 721, False: 0]
  ------------------
 1068|    721|        loadStrings(UnicodeString(tzID), status);
 1069|    721|    }
 1070|    721|    delete tz;
 1071|    721|}
_ZN6icu_7817TimeZoneNamesImpl11loadStringsERKNS_13UnicodeStringER10UErrorCode:
 1078|    721|TimeZoneNamesImpl::loadStrings(const UnicodeString& tzCanonicalID, UErrorCode& status) {
 1079|    721|    loadTimeZoneNames(tzCanonicalID, status);
 1080|    721|    LocalPointer<StringEnumeration> mzIDs(getAvailableMetaZoneIDs(tzCanonicalID, status));
 1081|    721|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1081:9): [True: 0, False: 721]
  ------------------
 1082|    721|    U_ASSERT(!mzIDs.isNull());
  ------------------
  |  |   35|    721|#   define U_ASSERT(exp) (void)0
  ------------------
 1083|       |
 1084|    721|    const UnicodeString *mzID;
 1085|    721|    while (((mzID = mzIDs->snext(status)) != nullptr) && U_SUCCESS(status)) {
  ------------------
  |  Branch (1085:12): [True: 0, False: 721]
  |  Branch (1085:58): [True: 0, False: 0]
  ------------------
 1086|      0|        loadMetaZoneNames(*mzID, status);
 1087|      0|    }
 1088|    721|}
_ZNK6icu_7817TimeZoneNamesImpl23getAvailableMetaZoneIDsERKNS_13UnicodeStringER10UErrorCode:
 1144|    999|TimeZoneNamesImpl::getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const {
 1145|    999|    return TimeZoneNamesImpl::_getAvailableMetaZoneIDs(tzID, status);
 1146|    999|}
_ZN6icu_7817TimeZoneNamesImpl24_getAvailableMetaZoneIDsERKNS_13UnicodeStringER10UErrorCode:
 1150|    999|TimeZoneNamesImpl::_getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) {
 1151|    999|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1151:9): [True: 0, False: 999]
  ------------------
 1152|      0|        return nullptr;
 1153|      0|    }
 1154|    999|    const UVector* mappings = ZoneMeta::getMetazoneMappings(tzID);
 1155|    999|    if (mappings == nullptr) {
  ------------------
  |  Branch (1155:9): [True: 999, False: 0]
  ------------------
 1156|    999|        return new MetaZoneIDsEnumeration();
 1157|    999|    }
 1158|       |
 1159|      0|    LocalPointer<MetaZoneIDsEnumeration> senum;
 1160|      0|    LocalPointer<UVector> mzIDs(new UVector(nullptr, uhash_compareUChars, status), status);
  ------------------
  |  |  998|      0|#define uhash_compareUChars U_ICU_ENTRY_POINT_RENAME(uhash_compareUChars)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1161|      0|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1161:9): [True: 0, False: 0]
  ------------------
 1162|      0|        U_ASSERT(mzIDs.isValid());
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1163|      0|        for (int32_t i = 0; U_SUCCESS(status) && i < mappings->size(); i++) {
  ------------------
  |  Branch (1163:29): [True: 0, False: 0]
  |  Branch (1163:50): [True: 0, False: 0]
  ------------------
 1164|       |
 1165|      0|            OlsonToMetaMappingEntry* map = static_cast<OlsonToMetaMappingEntry*>(mappings->elementAt(i));
 1166|      0|            const char16_t *mzID = map->mzid;
 1167|      0|            if (!mzIDs->contains((void *)mzID)) {
  ------------------
  |  Branch (1167:17): [True: 0, False: 0]
  ------------------
 1168|      0|                mzIDs->addElement((void *)mzID, status);
 1169|      0|            }
 1170|      0|        }
 1171|      0|        if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1171:13): [True: 0, False: 0]
  ------------------
 1172|      0|            senum.adoptInsteadAndCheckErrorCode(new MetaZoneIDsEnumeration(std::move(mzIDs)), status);
 1173|      0|        }
 1174|      0|    }
 1175|      0|    return U_SUCCESS(status) ? senum.orphan() : nullptr;
  ------------------
  |  Branch (1175:12): [True: 0, False: 0]
  ------------------
 1176|    999|}
_ZNK6icu_7817TimeZoneNamesImpl13getMetaZoneIDERKNS_13UnicodeStringEdRS1_:
 1179|  1.80k|TimeZoneNamesImpl::getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) const {
 1180|  1.80k|    return TimeZoneNamesImpl::_getMetaZoneID(tzID, date, mzID);
 1181|  1.80k|}
_ZN6icu_7817TimeZoneNamesImpl14_getMetaZoneIDERKNS_13UnicodeStringEdRS1_:
 1185|  1.80k|TimeZoneNamesImpl::_getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) {
 1186|  1.80k|    ZoneMeta::getMetazoneID(tzID, date, mzID);
 1187|  1.80k|    return mzID;
 1188|  1.80k|}
_ZNK6icu_7817TimeZoneNamesImpl22getMetaZoneDisplayNameERKNS_13UnicodeStringE17UTimeZoneNameTypeRS1_:
 1205|    538|                                          UnicodeString& name) const {
 1206|    538|    name.setToBogus();  // cleanup result.
 1207|    538|    if (mzID.isEmpty()) {
  ------------------
  |  Branch (1207:9): [True: 538, False: 0]
  ------------------
 1208|    538|        return name;
 1209|    538|    }
 1210|       |
 1211|      0|    ZNames *znames = nullptr;
 1212|      0|    TimeZoneNamesImpl *nonConstThis = const_cast<TimeZoneNamesImpl *>(this);
 1213|       |
 1214|      0|    {
 1215|      0|        Mutex lock(&gDataMutex);
 1216|      0|        UErrorCode status = U_ZERO_ERROR;
 1217|      0|        znames = nonConstThis->loadMetaZoneNames(mzID, status);
 1218|      0|        if (U_FAILURE(status)) { return name; }
  ------------------
  |  Branch (1218:13): [True: 0, False: 0]
  ------------------
 1219|      0|    }
 1220|       |
 1221|      0|    if (znames != nullptr) {
  ------------------
  |  Branch (1221:9): [True: 0, False: 0]
  ------------------
 1222|      0|        const char16_t* s = znames->getName(type);
 1223|      0|        if (s != nullptr) {
  ------------------
  |  Branch (1223:13): [True: 0, False: 0]
  ------------------
 1224|      0|            name.setTo(true, s, -1);
 1225|      0|        }
 1226|      0|    }
 1227|      0|    return name;
 1228|      0|}
_ZNK6icu_7817TimeZoneNamesImpl22getTimeZoneDisplayNameERKNS_13UnicodeStringE17UTimeZoneNameTypeRS1_:
 1231|  5.30k|TimeZoneNamesImpl::getTimeZoneDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, UnicodeString& name) const {
 1232|  5.30k|    name.setToBogus();  // cleanup result.
 1233|  5.30k|    if (tzID.isEmpty()) {
  ------------------
  |  Branch (1233:9): [True: 0, False: 5.30k]
  ------------------
 1234|      0|        return name;
 1235|      0|    }
 1236|       |
 1237|  5.30k|    ZNames *tznames = nullptr;
 1238|  5.30k|    TimeZoneNamesImpl *nonConstThis = const_cast<TimeZoneNamesImpl *>(this);
 1239|       |
 1240|  5.30k|    {
 1241|  5.30k|        Mutex lock(&gDataMutex);
 1242|  5.30k|        UErrorCode status = U_ZERO_ERROR;
 1243|  5.30k|        tznames = nonConstThis->loadTimeZoneNames(tzID, status);
 1244|  5.30k|        if (U_FAILURE(status)) { return name; }
  ------------------
  |  Branch (1244:13): [True: 0, False: 5.30k]
  ------------------
 1245|  5.30k|    }
 1246|       |
 1247|  5.30k|    if (tznames != nullptr) {
  ------------------
  |  Branch (1247:9): [True: 5.30k, False: 0]
  ------------------
 1248|  5.30k|        const char16_t *s = tznames->getName(type);
 1249|  5.30k|        if (s != nullptr) {
  ------------------
  |  Branch (1249:13): [True: 3.50k, False: 1.80k]
  ------------------
 1250|  3.50k|            name.setTo(true, s, -1);
 1251|  3.50k|        }
 1252|  5.30k|    }
 1253|  5.30k|    return name;
 1254|  5.30k|}
_ZNK6icu_7817TimeZoneNamesImpl23getExemplarLocationNameERKNS_13UnicodeStringERS1_:
 1257|     32|TimeZoneNamesImpl::getExemplarLocationName(const UnicodeString& tzID, UnicodeString& name) const {
 1258|     32|    name.setToBogus();  // cleanup result.
 1259|     32|    const char16_t* locName = nullptr;
 1260|     32|    ZNames *tznames = nullptr;
 1261|     32|    TimeZoneNamesImpl *nonConstThis = const_cast<TimeZoneNamesImpl *>(this);
 1262|       |
 1263|     32|    {
 1264|     32|        Mutex lock(&gDataMutex);
 1265|     32|        UErrorCode status = U_ZERO_ERROR;
 1266|     32|        tznames = nonConstThis->loadTimeZoneNames(tzID, status);
 1267|     32|        if (U_FAILURE(status)) { return name; }
  ------------------
  |  Branch (1267:13): [True: 0, False: 32]
  ------------------
 1268|     32|    }
 1269|       |
 1270|     32|    if (tznames != nullptr) {
  ------------------
  |  Branch (1270:9): [True: 32, False: 0]
  ------------------
 1271|     32|        locName = tznames->getName(UTZNM_EXEMPLAR_LOCATION);
 1272|     32|    }
 1273|     32|    if (locName != nullptr) {
  ------------------
  |  Branch (1273:9): [True: 14, False: 18]
  ------------------
 1274|     14|        name.setTo(true, locName, -1);
 1275|     14|    }
 1276|       |
 1277|     32|    return name;
 1278|     32|}
_ZN6icu_7817TimeZoneNamesImpl17loadTimeZoneNamesERKNS_13UnicodeStringER10UErrorCode:
 1345|  6.05k|TimeZoneNamesImpl::loadTimeZoneNames(const UnicodeString& tzID, UErrorCode& status) {
 1346|  6.05k|    if (U_FAILURE(status)) { return nullptr; }
  ------------------
  |  Branch (1346:9): [True: 0, False: 6.05k]
  ------------------
 1347|  6.05k|    if (tzID.length() > ZID_KEY_MAX) {
  ------------------
  |  |   42|  6.05k|#define ZID_KEY_MAX  128
  ------------------
  |  Branch (1347:9): [True: 0, False: 6.05k]
  ------------------
 1348|      0|        status = U_INTERNAL_PROGRAM_ERROR;
 1349|      0|        return nullptr;
 1350|      0|    }
 1351|       |
 1352|  6.05k|    char16_t tzIDKey[ZID_KEY_MAX + 1];
 1353|  6.05k|    int32_t tzIDKeyLen = tzID.extract(tzIDKey, ZID_KEY_MAX, status);
  ------------------
  |  |   42|  6.05k|#define ZID_KEY_MAX  128
  ------------------
 1354|  6.05k|    U_ASSERT(U_SUCCESS(status));   // already checked length above
  ------------------
  |  |   35|  6.05k|#   define U_ASSERT(exp) (void)0
  ------------------
 1355|  6.05k|    tzIDKey[tzIDKeyLen] = 0;
 1356|       |
 1357|  6.05k|    void *tznames = uhash_get(fTZNamesMap, tzIDKey);
  ------------------
  |  | 1007|  6.05k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  6.05k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.05k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.05k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1358|  6.05k|    if (tznames == nullptr) {
  ------------------
  |  Branch (1358:9): [True: 730, False: 5.32k]
  ------------------
 1359|    730|        ZNames::ZNamesLoader loader;
 1360|    730|        loader.loadTimeZone(fZoneStrings, tzID, status);
 1361|    730|        tznames = ZNames::createTimeZoneAndPutInCache(fTZNamesMap, loader.getNames(), tzID, status);
 1362|    730|        if (U_FAILURE(status)) { return nullptr; }
  ------------------
  |  Branch (1362:13): [True: 0, False: 730]
  ------------------
 1363|    730|    }
 1364|       |
 1365|       |    // tznames is never EMPTY
 1366|  6.05k|    return static_cast<ZNames*>(tznames);
 1367|  6.05k|}
_ZN6icu_7817TimeZoneNamesImpl30getDefaultExemplarLocationNameERKNS_13UnicodeStringERS1_:
 1706|    723|TimeZoneNamesImpl::getDefaultExemplarLocationName(const UnicodeString& tzID, UnicodeString& name) {
 1707|    723|    if (tzID.isEmpty() || tzID.startsWith(gEtcPrefix, gEtcPrefixLen)
  ------------------
  |  Branch (1707:9): [True: 0, False: 723]
  |  Branch (1707:9): [True: 723, False: 0]
  |  Branch (1707:27): [True: 723, False: 0]
  ------------------
 1708|    723|        || tzID.startsWith(gSystemVPrefix, gSystemVPrefixLen) || tzID.indexOf(gRiyadh8, gRiyadh8Len, 0) > 0) {
  ------------------
  |  Branch (1708:12): [True: 0, False: 0]
  |  Branch (1708:66): [True: 0, False: 0]
  ------------------
 1709|    723|        name.setToBogus();
 1710|    723|        return name;
 1711|    723|    }
 1712|       |
 1713|      0|    int32_t sep = tzID.lastIndexOf(static_cast<char16_t>(0x2F) /* '/' */);
 1714|      0|    if (sep > 0 && sep + 1 < tzID.length()) {
  ------------------
  |  Branch (1714:9): [True: 0, False: 0]
  |  Branch (1714:20): [True: 0, False: 0]
  ------------------
 1715|      0|        name.setTo(tzID, sep + 1);
 1716|      0|        name.findAndReplace(UnicodeString(static_cast<char16_t>(0x5f) /* _ */),
 1717|      0|                            UnicodeString(static_cast<char16_t>(0x20) /* space */));
 1718|      0|    } else {
 1719|      0|        name.setToBogus();
 1720|      0|    }
 1721|      0|    return name;
 1722|    723|}
_ZNK6icu_786ZNames7getNameE17UTimeZoneNameType:
  697|  5.33k|    const char16_t* getName(UTimeZoneNameType type) const {
  698|  5.33k|        UTimeZoneNameTypeIndex index = getTZNameTypeIndex(type);
  699|  5.33k|        return index >= 0 ? fNames[index] : nullptr;
  ------------------
  |  Branch (699:16): [True: 5.33k, False: 0]
  ------------------
  700|  5.33k|    }
_ZN6icu_786ZNames18getTZNameTypeIndexE17UTimeZoneNameType:
  584|  5.33k|    static UTimeZoneNameTypeIndex getTZNameTypeIndex(UTimeZoneNameType type) {
  585|  5.33k|        switch(type) {
  586|     32|        case UTZNM_EXEMPLAR_LOCATION: return UTZNM_INDEX_EXEMPLAR_LOCATION;
  ------------------
  |  Branch (586:9): [True: 32, False: 5.30k]
  ------------------
  587|      2|        case UTZNM_LONG_GENERIC: return UTZNM_INDEX_LONG_GENERIC;
  ------------------
  |  Branch (587:9): [True: 2, False: 5.33k]
  ------------------
  588|  1.66k|        case UTZNM_LONG_STANDARD: return UTZNM_INDEX_LONG_STANDARD;
  ------------------
  |  Branch (588:9): [True: 1.66k, False: 3.67k]
  ------------------
  589|      0|        case UTZNM_LONG_DAYLIGHT: return UTZNM_INDEX_LONG_DAYLIGHT;
  ------------------
  |  Branch (589:9): [True: 0, False: 5.33k]
  ------------------
  590|  1.26k|        case UTZNM_SHORT_GENERIC: return UTZNM_INDEX_SHORT_GENERIC;
  ------------------
  |  Branch (590:9): [True: 1.26k, False: 4.07k]
  ------------------
  591|  2.37k|        case UTZNM_SHORT_STANDARD: return UTZNM_INDEX_SHORT_STANDARD;
  ------------------
  |  Branch (591:9): [True: 2.37k, False: 2.96k]
  ------------------
  592|      0|        case UTZNM_SHORT_DAYLIGHT: return UTZNM_INDEX_SHORT_DAYLIGHT;
  ------------------
  |  Branch (592:9): [True: 0, False: 5.33k]
  ------------------
  593|      0|        default: return UTZNM_INDEX_UNKNOWN;
  ------------------
  |  Branch (593:9): [True: 0, False: 5.33k]
  ------------------
  594|  5.33k|        }
  595|  5.33k|    }
_ZN6icu_786ZNames12ZNamesLoaderC2Ev:
  741|    730|    ZNamesLoader() {
  742|    730|        clear();
  743|    730|    }
_ZN6icu_786ZNames12ZNamesLoader5clearEv:
  747|  1.46k|    void clear() {
  748|  1.46k|        uprv_memcpy(names, EMPTY_NAMES, sizeof(names));
  ------------------
  |  |   42|  1.46k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  1.46k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  1.46k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  1.46k|    _Pragma("clang diagnostic push") \
  |  |   45|  1.46k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  1.46k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.46k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  1.46k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.46k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  1.46k|    _Pragma("clang diagnostic pop") \
  |  |   49|  1.46k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  1.46k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  1.46k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  1.46k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  749|  1.46k|    }
_ZN6icu_786ZNames12ZNamesLoader9loadNamesEPK15UResourceBundlePKcR10UErrorCode:
  779|    730|    void loadNames(const UResourceBundle* zoneStrings, const char* key, UErrorCode& errorCode) {
  780|    730|        U_ASSERT(zoneStrings != nullptr);
  ------------------
  |  |   35|    730|#   define U_ASSERT(exp) (void)0
  ------------------
  781|    730|        U_ASSERT(key != nullptr);
  ------------------
  |  |   35|    730|#   define U_ASSERT(exp) (void)0
  ------------------
  782|    730|        U_ASSERT(key[0] != '\0');
  ------------------
  |  |   35|    730|#   define U_ASSERT(exp) (void)0
  ------------------
  783|       |
  784|    730|        UErrorCode localStatus = U_ZERO_ERROR;
  785|    730|        clear();
  786|    730|        ures_getAllItemsWithFallback(zoneStrings, key, *this, localStatus);
  ------------------
  |  | 1658|    730|#define ures_getAllItemsWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getAllItemsWithFallback)
  |  |  ------------------
  |  |  |  |  123|    730|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    730|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    730|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  787|       |
  788|       |        // Ignore errors, but propagate possible warnings.
  789|    730|        if (U_SUCCESS(localStatus)) {
  ------------------
  |  Branch (789:13): [True: 728, False: 2]
  ------------------
  790|    728|            errorCode = localStatus;
  791|    728|        }
  792|    730|    }
_ZN6icu_786ZNamesC2EPPKDsS2_:
  617|    730|            : fDidAddIntoTrie(false) {
  618|    730|        uprv_memcpy(fNames, names, sizeof(fNames));
  ------------------
  |  |   42|    730|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    730|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    730|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    730|    _Pragma("clang diagnostic push") \
  |  |   45|    730|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    730|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    730|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    730|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    730|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    730|    _Pragma("clang diagnostic pop") \
  |  |   49|    730|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    730|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    730|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    730|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  619|    730|        if (locationName != nullptr) {
  ------------------
  |  Branch (619:13): [True: 0, False: 730]
  ------------------
  620|      0|            fOwnsLocationName = true;
  621|      0|            fNames[UTZNM_INDEX_EXEMPLAR_LOCATION] = locationName;
  622|    730|        } else {
  623|    730|            fOwnsLocationName = false;
  624|    730|        }
  625|    730|    }
_ZN6icu_786ZNames12ZNamesLoader8getNamesEv:
  845|    730|    const char16_t** getNames() {
  846|       |        // Remove 'NO_NAME' references in the array and replace with 'nullptr'
  847|  5.84k|        for (int32_t i = 0; i < UTZNM_INDEX_COUNT; ++i) {
  ------------------
  |  Branch (847:29): [True: 5.11k, False: 730]
  ------------------
  848|  5.11k|            if (names[i] == NO_NAME) {
  ------------------
  |  Branch (848:17): [True: 0, False: 5.11k]
  ------------------
  849|      0|                names[i] = nullptr;
  850|      0|            }
  851|  5.11k|        }
  852|    730|        return names;
  853|    730|    }
_ZN6icu_786ZNames12ZNamesLoader12loadTimeZoneEPK15UResourceBundleRKNS_13UnicodeStringER10UErrorCode:
  760|    730|    void loadTimeZone(const UResourceBundle* zoneStrings, const UnicodeString& tzID, UErrorCode& errorCode) {
  761|       |        // Replace "/" with ":".
  762|    730|        UnicodeString uKey(tzID);
  763|  5.87k|        for (int32_t i = 0; i < uKey.length(); i++) {
  ------------------
  |  Branch (763:29): [True: 5.14k, False: 730]
  ------------------
  764|  5.14k|            if (uKey.charAt(i) == static_cast<char16_t>(0x2F)) {
  ------------------
  |  Branch (764:17): [True: 730, False: 4.41k]
  ------------------
  765|    730|                uKey.setCharAt(i, static_cast<char16_t>(0x3A));
  766|    730|            }
  767|  5.14k|        }
  768|       |
  769|    730|        char key[ZID_KEY_MAX + 1];
  770|    730|        if (uKey.length() > ZID_KEY_MAX) {
  ------------------
  |  |   42|    730|#define ZID_KEY_MAX  128
  ------------------
  |  Branch (770:13): [True: 0, False: 730]
  ------------------
  771|      0|            errorCode = U_INTERNAL_PROGRAM_ERROR;
  772|      0|            return;
  773|      0|        }
  774|    730|        uKey.extract(0, uKey.length(), key, sizeof(key), US_INV);
  ------------------
  |  |   98|    730|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  775|       |
  776|    730|        loadNames(zoneStrings, key, errorCode);
  777|    730|    }
_ZN6icu_786ZNames27createTimeZoneAndPutInCacheEP10UHashtablePPKDsRKNS_13UnicodeStringER10UErrorCode:
  661|    730|            const UnicodeString& tzID, UErrorCode& status) {
  662|    730|        if (U_FAILURE(status)) { return nullptr; }
  ------------------
  |  Branch (662:13): [True: 0, False: 730]
  ------------------
  663|    730|        U_ASSERT(names != nullptr);
  ------------------
  |  |   35|    730|#   define U_ASSERT(exp) (void)0
  ------------------
  664|       |
  665|       |        // If necessary, compute the location name from the time zone name.
  666|    730|        char16_t* locationName = nullptr;
  667|    730|        if (names[UTZNM_INDEX_EXEMPLAR_LOCATION] == nullptr) {
  ------------------
  |  Branch (667:13): [True: 723, False: 7]
  ------------------
  668|    723|            UnicodeString locationNameUniStr;
  669|    723|            TimeZoneNamesImpl::getDefaultExemplarLocationName(tzID, locationNameUniStr);
  670|       |
  671|       |            // Copy the computed location name to the heap
  672|    723|            if (locationNameUniStr.length() > 0) {
  ------------------
  |  Branch (672:17): [True: 0, False: 723]
  ------------------
  673|      0|                const char16_t* buff = locationNameUniStr.getTerminatedBuffer();
  674|      0|                int32_t len = sizeof(char16_t) * (locationNameUniStr.length() + 1);
  675|      0|                locationName = static_cast<char16_t*>(uprv_malloc(len));
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  676|      0|                if (locationName == nullptr) {
  ------------------
  |  Branch (676:21): [True: 0, False: 0]
  ------------------
  677|      0|                    status = U_MEMORY_ALLOCATION_ERROR;
  678|      0|                    return nullptr;
  679|      0|                }
  680|      0|                uprv_memcpy(locationName, buff, len);
  ------------------
  |  |   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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  681|      0|            }
  682|    723|        }
  683|       |
  684|       |        // Use the persistent ID as the resource key, so we can
  685|       |        // avoid duplications.
  686|       |        // TODO: Is there a more efficient way, like intern() in Java?
  687|    730|        void* key = (void*) ZoneMeta::findTimeZoneID(tzID);
  688|    730|        void* value = (void*) (new ZNames(names, locationName));
  689|    730|        if (value == nullptr) {
  ------------------
  |  Branch (689:13): [True: 0, False: 730]
  ------------------
  690|      0|            status = U_MEMORY_ALLOCATION_ERROR;
  691|      0|            return nullptr;
  692|      0|        }
  693|    730|        uhash_put(cache, key, value, &status);
  ------------------
  |  | 1032|    730|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|    730|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    730|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    730|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  694|    730|        return value;
  695|    730|    }
_ZN6icu_786ZNames12ZNamesLoader3putEPKcRNS_13ResourceValueEaR10UErrorCode:
  806|  1.28k|            UErrorCode &errorCode) override {
  807|  1.28k|        ResourceTable namesTable = value.getTable(errorCode);
  808|  1.28k|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (808:13): [True: 0, False: 1.28k]
  ------------------
  809|  2.58k|        for (int32_t i = 0; namesTable.getKeyAndValue(i, key, value); ++i) {
  ------------------
  |  Branch (809:29): [True: 1.30k, False: 1.28k]
  ------------------
  810|  1.30k|            if (value.isNoInheritanceMarker()) {
  ------------------
  |  Branch (810:17): [True: 0, False: 1.30k]
  ------------------
  811|      0|                setNameIfEmpty(key, nullptr, errorCode);
  812|  1.30k|            } else {
  813|  1.30k|                setNameIfEmpty(key, &value, errorCode);
  814|  1.30k|            }
  815|  1.30k|        }
  816|  1.28k|    }
_ZN6icu_786ZNames12ZNamesLoader14setNameIfEmptyEPKcPKNS_13ResourceValueER10UErrorCode:
  794|  1.30k|    void setNameIfEmpty(const char* key, const ResourceValue* value, UErrorCode& errorCode) {
  795|  1.30k|        UTimeZoneNameTypeIndex type = nameTypeFromKey(key);
  796|  1.30k|        if (type == UTZNM_INDEX_UNKNOWN) { return; }
  ------------------
  |  Branch (796:13): [True: 0, False: 1.30k]
  ------------------
  797|  1.30k|        if (names[type] == nullptr) {
  ------------------
  |  Branch (797:13): [True: 1.24k, False: 58]
  ------------------
  798|  1.24k|            int32_t length;
  799|       |            // 'NO_NAME' indicates internally that this field should remain empty.  It will be
  800|       |            // replaced by 'nullptr' in getNames()
  801|  1.24k|            names[type] = (value == nullptr) ? NO_NAME : value->getString(length, errorCode);
  ------------------
  |  Branch (801:27): [True: 0, False: 1.24k]
  ------------------
  802|  1.24k|        }
  803|  1.30k|    }
_ZN6icu_786ZNames12ZNamesLoader15nameTypeFromKeyEPKc:
  818|  1.30k|    static UTimeZoneNameTypeIndex nameTypeFromKey(const char *key) {
  819|  1.30k|        char c0, c1;
  820|  1.30k|        if ((c0 = key[0]) == 0 || (c1 = key[1]) == 0 || key[2] != 0) {
  ------------------
  |  Branch (820:13): [True: 0, False: 1.30k]
  |  Branch (820:35): [True: 0, False: 1.30k]
  |  Branch (820:57): [True: 0, False: 1.30k]
  ------------------
  821|      0|            return UTZNM_INDEX_UNKNOWN;
  822|      0|        }
  823|  1.30k|        if (c0 == 'l') {
  ------------------
  |  Branch (823:13): [True: 551, False: 754]
  ------------------
  824|    551|            return c1 == 'g' ? UTZNM_INDEX_LONG_GENERIC :
  ------------------
  |  Branch (824:20): [True: 0, False: 551]
  ------------------
  825|    551|                    c1 == 's' ? UTZNM_INDEX_LONG_STANDARD :
  ------------------
  |  Branch (825:21): [True: 551, False: 0]
  ------------------
  826|    551|                        c1 == 'd' ? UTZNM_INDEX_LONG_DAYLIGHT : UTZNM_INDEX_UNKNOWN;
  ------------------
  |  Branch (826:25): [True: 0, False: 0]
  ------------------
  827|    754|        } else if (c0 == 's') {
  ------------------
  |  Branch (827:20): [True: 746, False: 8]
  ------------------
  828|    746|            return c1 == 'g' ? UTZNM_INDEX_SHORT_GENERIC :
  ------------------
  |  Branch (828:20): [True: 0, False: 746]
  ------------------
  829|    746|                    c1 == 's' ? UTZNM_INDEX_SHORT_STANDARD :
  ------------------
  |  Branch (829:21): [True: 746, False: 0]
  ------------------
  830|    746|                        c1 == 'd' ? UTZNM_INDEX_SHORT_DAYLIGHT : UTZNM_INDEX_UNKNOWN;
  ------------------
  |  Branch (830:25): [True: 0, False: 0]
  ------------------
  831|    746|        } else if (c0 == 'e' && c1 == 'c') {
  ------------------
  |  Branch (831:20): [True: 8, False: 0]
  |  Branch (831:33): [True: 8, False: 0]
  ------------------
  832|      8|            return UTZNM_INDEX_EXEMPLAR_LOCATION;
  833|      8|        }
  834|      0|        return UTZNM_INDEX_UNKNOWN;
  835|  1.30k|    }

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

udat_open_78:
  142|  7.75k|{
  143|  7.75k|    DateFormat *fmt;
  144|  7.75k|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (144:8): [True: 0, False: 7.75k]
  ------------------
  145|      0|        return nullptr;
  146|      0|    }
  147|  7.75k|    if(gOpener!=nullptr) { // if it's registered
  ------------------
  |  Branch (147:8): [True: 0, False: 7.75k]
  ------------------
  148|      0|      fmt = (DateFormat*) (*gOpener)(timeStyle,dateStyle,locale,tzID,tzIDLength,pattern,patternLength,status);
  149|      0|      if(fmt!=nullptr) {
  ------------------
  |  Branch (149:10): [True: 0, False: 0]
  ------------------
  150|      0|        return (UDateFormat*)fmt;
  151|      0|      } // else fall through.
  152|      0|    }
  153|  7.75k|    if(timeStyle != UDAT_PATTERN) {
  ------------------
  |  Branch (153:8): [True: 0, False: 7.75k]
  ------------------
  154|      0|        if (locale == nullptr) {
  ------------------
  |  Branch (154:13): [True: 0, False: 0]
  ------------------
  155|      0|            fmt = DateFormat::createDateTimeInstance((DateFormat::EStyle)dateStyle,
  156|      0|                (DateFormat::EStyle)timeStyle);
  157|      0|        }
  158|      0|        else {
  159|      0|            fmt = DateFormat::createDateTimeInstance((DateFormat::EStyle)dateStyle,
  160|      0|                (DateFormat::EStyle)timeStyle,
  161|      0|                Locale(locale));
  162|      0|        }
  163|      0|    }
  164|  7.75k|    else {
  165|  7.75k|        UnicodeString pat(patternLength == -1, pattern, patternLength);
  166|       |
  167|  7.75k|        if (locale == nullptr) {
  ------------------
  |  Branch (167:13): [True: 0, False: 7.75k]
  ------------------
  168|      0|            fmt = new SimpleDateFormat(pat, *status);
  169|      0|        }
  170|  7.75k|        else {
  171|  7.75k|            fmt = new SimpleDateFormat(pat, Locale(locale), *status);
  172|  7.75k|        }
  173|  7.75k|    }
  174|       |
  175|  7.75k|    if(fmt == nullptr) {
  ------------------
  |  Branch (175:8): [True: 0, False: 7.75k]
  ------------------
  176|      0|        *status = U_MEMORY_ALLOCATION_ERROR;
  177|      0|        return nullptr;
  178|      0|    }
  179|  7.75k|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (179:9): [True: 275, False: 7.47k]
  ------------------
  180|    275|        delete fmt;
  181|    275|        return nullptr;
  182|    275|    }
  183|       |
  184|  7.47k|    if (tzID != nullptr) {
  ------------------
  |  Branch (184:9): [True: 0, False: 7.47k]
  ------------------
  185|      0|        TimeZone* zone = TimeZone::createTimeZone(UnicodeString(tzIDLength == -1, tzID, tzIDLength));
  186|      0|        if (zone == nullptr) {
  ------------------
  |  Branch (186:13): [True: 0, False: 0]
  ------------------
  187|      0|            *status = U_MEMORY_ALLOCATION_ERROR;
  188|      0|            delete fmt;
  189|      0|            return nullptr;
  190|      0|        }
  191|      0|        fmt->adoptTimeZone(zone);
  192|      0|    }
  193|       |
  194|  7.47k|    return (UDateFormat*)fmt;
  195|  7.47k|}
udat_close_78:
  200|  7.47k|{
  201|  7.47k|    if (format == nullptr) return;
  ------------------
  |  Branch (201:9): [True: 0, False: 7.47k]
  ------------------
  202|  7.47k|    delete (DateFormat*)format;
  203|  7.47k|}

_ZNK6icu_788Calendar7getTimeER10UErrorCode:
  432|  7.67k|    inline UDate getTime(UErrorCode& status) const { return getTimeInMillis(status); }
_ZN6icu_788Calendar7setTimeEdR10UErrorCode:
  444|  33.5k|    inline void setTime(UDate date, UErrorCode& status) { setTimeInMillis(date, status); }
_ZNK6icu_788Calendar11internalGetE19UCalendarDateFieldsi:
 1540|     30|    inline int32_t internalGet(UCalendarDateFields field, int32_t defaultValue) const {return fStamp[field]>kUnset ? fFields[field] : defaultValue;}
  ------------------
  |  Branch (1540:95): [True: 30, False: 0]
  ------------------
_ZNK6icu_788Calendar11internalGetE19UCalendarDateFields:
 1550|    213|    inline int32_t internalGet(UCalendarDateFields field) const {return fFields[field];}
_ZNK6icu_788Calendar22isEra0CountingBackwardEv:
 1557|      2|    virtual bool isEra0CountingBackward() const { return false; }
_ZNK6icu_788Calendar15internalGetTimeEv:
 1899|  29.6k|    UDate internalGetTime() const { return fTime; }
_ZN6icu_788Calendar15internalSetTimeEd:
 1908|     12|    void        internalSetTime(UDate time)     { fTime = time; }
_ZNK6icu_788Calendar16getGregorianYearEv:
 1967|  26.3k|    int32_t getGregorianYear() const {
 1968|  26.3k|        return fGregorianYear;
 1969|  26.3k|    }
_ZNK6icu_788Calendar17getGregorianMonthEv:
 1976|  26.3k|    int32_t getGregorianMonth() const {
 1977|  26.3k|        return fGregorianMonth;
 1978|  26.3k|    }
_ZNK6icu_788Calendar21getGregorianDayOfYearEv:
 1985|  26.3k|    int32_t getGregorianDayOfYear() const {
 1986|  26.3k|        return fGregorianDayOfYear;
 1987|  26.3k|    }
_ZNK6icu_788Calendar22getGregorianDayOfMonthEv:
 1994|  26.3k|    int32_t getGregorianDayOfMonth() const {
 1995|  26.3k|      return fGregorianDayOfMonth;
 1996|  26.3k|    }
_ZN6icu_788Calendar11internalSetE19UCalendarDateFieldsi:
 2555|   296k|{
 2556|   296k|    fFields[field] = value;
 2557|   296k|    fStamp[field] = kInternallySet;
 2558|   296k|}
_ZN6icu_788Calendar10weekNumberEii:
 2573|  29.6k|{
 2574|  29.6k|  return weekNumber(dayOfPeriod, dayOfPeriod, dayOfWeek);
 2575|  29.6k|}

_ZNK6icu_7812CurrencyUnit14getISOCurrencyEv:
  136|   202k|inline const char16_t* CurrencyUnit::getISOCurrency() const {
  137|   202k|    return isoCode;
  138|   202k|}

_ZNK6icu_7820DecimalFormatSymbols9getSymbolENS0_19ENumberFormatSymbolE:
  522|   131k|DecimalFormatSymbols::getSymbol(ENumberFormatSymbol symbol) const {
  523|   131k|    const UnicodeString *strPtr;
  524|   131k|    if(symbol < kFormatSymbolCount) {
  ------------------
  |  Branch (524:8): [True: 131k, False: 0]
  ------------------
  525|   131k|        strPtr = &fSymbols[symbol];
  526|   131k|    } else {
  527|      0|        strPtr = &fNoSymbol;
  528|      0|    }
  529|   131k|    return *strPtr;
  530|   131k|}
_ZNK6icu_7820DecimalFormatSymbols22isCustomCurrencySymbolEv:
  401|  57.0k|    inline UBool isCustomCurrencySymbol() const {
  402|  57.0k|        return fIsCustomCurrencySymbol;
  403|  57.0k|    }
_ZNK6icu_7820DecimalFormatSymbols26isCustomIntlCurrencySymbolEv:
  408|  57.0k|    inline UBool isCustomIntlCurrencySymbol() const {
  409|  57.0k|        return fIsCustomIntlCurrencySymbol;
  410|  57.0k|    }
_ZNK6icu_7820DecimalFormatSymbols16getCodePointZeroEv:
  415|   725k|    inline UChar32 getCodePointZero() const {
  416|   725k|        return fCodePointZero;
  417|   725k|    }
_ZNK6icu_7820DecimalFormatSymbols14getConstSymbolENS0_19ENumberFormatSymbolE:
  534|   375k|DecimalFormatSymbols::getConstSymbol(ENumberFormatSymbol symbol) const {
  535|   375k|    const UnicodeString *strPtr;
  536|   375k|    if(symbol < kFormatSymbolCount) {
  ------------------
  |  Branch (536:8): [True: 375k, False: 0]
  ------------------
  537|   375k|        strPtr = &fSymbols[symbol];
  538|   375k|    } else {
  539|      0|        strPtr = &fNoSymbol;
  540|      0|    }
  541|   375k|    return *strPtr;
  542|   375k|}
_ZNK6icu_7820DecimalFormatSymbols19getConstDigitSymbolEi:
  545|   651k|inline const UnicodeString& DecimalFormatSymbols::getConstDigitSymbol(int32_t digit) const {
  546|   651k|    if (digit < 0 || digit > 9) {
  ------------------
  |  Branch (546:9): [True: 0, False: 651k]
  |  Branch (546:22): [True: 0, False: 651k]
  ------------------
  547|      0|        digit = 0;
  548|      0|    }
  549|   651k|    if (digit == 0) {
  ------------------
  |  Branch (549:9): [True: 65.1k, False: 586k]
  ------------------
  550|  65.1k|        return fSymbols[kZeroDigitSymbol];
  551|  65.1k|    }
  552|   586k|    ENumberFormatSymbol key = static_cast<ENumberFormatSymbol>(kOneDigitSymbol + digit - 1);
  553|   586k|    return fSymbols[key];
  554|   651k|}
_ZN6icu_7820DecimalFormatSymbols9setSymbolENS0_19ENumberFormatSymbolERKNS_13UnicodeStringEa:
  560|   846k|DecimalFormatSymbols::setSymbol(ENumberFormatSymbol symbol, const UnicodeString &value, const UBool propagateDigits = true) {
  561|   846k|    if (symbol == kCurrencySymbol) {
  ------------------
  |  Branch (561:9): [True: 0, False: 846k]
  ------------------
  562|      0|        fIsCustomCurrencySymbol = true;
  563|      0|    }
  564|   846k|    else if (symbol == kIntlCurrencySymbol) {
  ------------------
  |  Branch (564:14): [True: 0, False: 846k]
  ------------------
  565|      0|        fIsCustomIntlCurrencySymbol = true;
  566|      0|    }
  567|   846k|    if(symbol<kFormatSymbolCount) {
  ------------------
  |  Branch (567:8): [True: 846k, False: 0]
  ------------------
  568|   846k|        fSymbols[symbol]=value;
  569|   846k|    }
  570|       |
  571|       |    // If the zero digit is being set to a known zero digit according to Unicode,
  572|       |    // then we automatically set the corresponding 1-9 digits
  573|       |    // Also record updates to fCodePointZero. Be conservative if in doubt.
  574|   846k|    if (symbol == kZeroDigitSymbol) {
  ------------------
  |  Branch (574:9): [True: 0, False: 846k]
  ------------------
  575|      0|        UChar32 sym = value.char32At(0);
  576|      0|        if ( propagateDigits && u_charDigitValue(sym) == 0 && value.countChar32() == 1 ) {
  ------------------
  |  |  220|      0|#define u_charDigitValue U_ICU_ENTRY_POINT_RENAME(u_charDigitValue)
  |  |  ------------------
  |  |  |  |  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 (576:14): [True: 0, False: 0]
  |  Branch (576:33): [True: 0, False: 0]
  |  Branch (576:63): [True: 0, False: 0]
  ------------------
  577|      0|            fCodePointZero = sym;
  578|      0|            for ( int8_t i = 1 ; i<= 9 ; i++ ) {
  ------------------
  |  Branch (578:34): [True: 0, False: 0]
  ------------------
  579|      0|                sym++;
  580|      0|                fSymbols[static_cast<int>(kOneDigitSymbol) + i - 1] = UnicodeString(sym);
  581|      0|            }
  582|      0|        } else {
  583|      0|            fCodePointZero = -1;
  584|      0|        }
  585|   846k|    } else if (symbol >= kOneDigitSymbol && symbol <= kNineDigitSymbol) {
  ------------------
  |  Branch (585:16): [True: 130k, False: 716k]
  |  Branch (585:45): [True: 0, False: 130k]
  ------------------
  586|      0|        fCodePointZero = -1;
  587|      0|    }
  588|   846k|}
_ZNK6icu_7820DecimalFormatSymbols9getLocaleEv:
  593|   462k|DecimalFormatSymbols::getLocale() const {
  594|   462k|    return locale;
  595|   462k|}
_ZNK6icu_7820DecimalFormatSymbols22getNumberingSystemNameEv:
  603|  57.0k|DecimalFormatSymbols::getNumberingSystemName() const {
  604|  57.0k|    return nsName;
  605|  57.0k|}

_ZN6icu_7813FieldPositionC2Ei:
  138|  31.7k|        : UObject(), fField(field), fBeginIndex(0), fEndIndex(0) {}
_ZNK6icu_7813FieldPosition8getFieldEv:
  195|   132k|    int32_t getField() const { return fField; }

_ZN6icu_786number15FormattedNumberC2EPNS0_4impl20UFormattedNumberDataE:
  181|   100k|        : fData(results), fErrorCode(U_ZERO_ERROR) {}

_ZN6icu_786number8NotationC2Ev:
  382|   716k|    Notation() : fType(NTN_SIMPLE), fUnion() {}
_ZN6icu_786number9PrecisionC2ERKNS1_13PrecisionTypeERKNS1_14PrecisionUnionE:
  767|   202k|            : fType(type), fUnion(union_) {}
_ZN6icu_786number9PrecisionC2Ev:
  773|  1.12M|    Precision() : fType(RND_BOGUS) {}
_ZNK6icu_786number9Precision7isBogusEv:
  775|   202k|    bool isBogus() const {
  776|   202k|        return fType == RND_BOGUS;
  777|   202k|    }
_ZN6icu_786number12IntegerWidthC2Ev:
 1035|   716k|    IntegerWidth() { // NOLINT
 1036|   716k|        fUnion.minMaxInt.fMinInt = -1;
 1037|   716k|    }
_ZN6icu_786number5ScaleC2Ev:
 1170|   716k|    Scale() : fMagnitude(0), fArbitrary(nullptr), fError(U_ZERO_ERROR) {}
_ZN6icu_786number4impl10StringPropC2Ev:
 1256|  1.43M|    StringProp() : fValue(nullptr), fLength(0), fError(U_ZERO_ERROR) {
 1257|  1.43M|    }
_ZN6icu_786number4impl14SymbolsWrapperC2Ev:
 1284|   716k|    SymbolsWrapper() : fType(SYMPTR_NONE), fPtr{nullptr} {}
_ZN6icu_786number4impl7GrouperC2Esss23UNumberGroupingStrategy:
 1388|   259k|            : fGrouping1(grouping1),
 1389|   259k|              fGrouping2(grouping2),
 1390|   259k|              fMinGrouping(minGrouping),
 1391|   259k|              fStrategy(strategy) {}
_ZN6icu_786number4impl7GrouperC2Ev:
 1427|   773k|    Grouper() : fGrouping1(-3) {}
_ZN6icu_786number4impl6PadderC2Ev:
 1487|   716k|    Padder() : fWidth(-2) {} // NOLINT
_ZN6icu_786number24LocalizedNumberFormatterC2Ev:
 2634|   108k|    LocalizedNumberFormatter() = default;
_ZN6icu_786number23NumberFormatterSettingsINS0_24LocalizedNumberFormatterEEC2Ev:
 2408|   311k|    NumberFormatterSettings() = default;
_ZN6icu_786number26UnlocalizedNumberFormatterC2Ev:
 2464|   202k|    UnlocalizedNumberFormatter() = default;
_ZN6icu_786number23NumberFormatterSettingsINS0_26UnlocalizedNumberFormatterEEC2Ev:
 2408|   202k|    NumberFormatterSettings() = default;

_ZNK6icu_7821RuleBasedNumberFormat17getDefaultRuleSetEv:
 1174|  2.17k|RuleBasedNumberFormat::getDefaultRuleSet() const {
 1175|  2.17k|    return defaultRuleSet;
 1176|  2.17k|}

_ZN6icu_786number21SimpleNumberFormatterD2Ev:
  251|  57.0k|    ~SimpleNumberFormatter() {
  252|  57.0k|        cleanup();
  253|  57.0k|    }
_ZN6icu_786number12SimpleNumberC2EOS1_:
  136|   100k|    SimpleNumber(SimpleNumber&& other) noexcept {
  137|   100k|        fData = other.fData;
  138|   100k|        fSign = other.fSign;
  139|   100k|        other.fData = nullptr;
  140|   100k|    }
_ZN6icu_786number12SimpleNumberD2Ev:
  127|   201k|    ~SimpleNumber() {
  128|   201k|        cleanup();
  129|   201k|    }
_ZN6icu_786number21SimpleNumberFormatterC2Ev:
  260|  57.0k|    SimpleNumberFormatter() = default;

_ZN6icu_7816SimpleDateFormat10NSOverrideC2Ev:
 1292|  1.48k|        NSOverride() : snf(nullptr), hash(0), next(nullptr) {
 1293|  1.48k|        }

_ZNK6icu_788TimeZone5getIDERNS_13UnicodeStringE:
 1048|      6|{
 1049|      6|    ID = fID;
 1050|      6|    return ID;
 1051|      6|}

_ZN6icu_788ZoneMeta18getCanonicalCLDRIDERKNS_13UnicodeStringER10UErrorCode:
  229|  2.95k|ZoneMeta::getCanonicalCLDRID(const UnicodeString &tzid, UErrorCode& status) {
  230|  2.95k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (230:9): [True: 0, False: 2.95k]
  ------------------
  231|      0|        return nullptr;
  232|      0|    }
  233|       |
  234|  2.95k|    if (tzid.isBogus() || tzid.length() > ZID_KEY_MAX) {
  ------------------
  |  |  113|  2.95k|#define ZID_KEY_MAX 128
  ------------------
  |  Branch (234:9): [True: 0, False: 2.95k]
  |  Branch (234:27): [True: 0, False: 2.95k]
  ------------------
  235|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  236|      0|        return nullptr;
  237|      0|    }
  238|       |
  239|       |    // Checking the cached results
  240|  2.95k|    umtx_initOnce(gCanonicalIDCacheInitOnce, &initCanonicalIDCache, status);
  241|  2.95k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (241:9): [True: 0, False: 2.95k]
  ------------------
  242|      0|        return nullptr;
  243|      0|    }
  244|       |
  245|  2.95k|    const char16_t *canonicalID = nullptr;
  246|       |
  247|  2.95k|    UErrorCode tmpStatus = U_ZERO_ERROR;
  248|  2.95k|    char16_t utzid[ZID_KEY_MAX + 1];
  249|  2.95k|    tzid.extract(utzid, ZID_KEY_MAX + 1, tmpStatus);
  ------------------
  |  |  113|  2.95k|#define ZID_KEY_MAX 128
  ------------------
  250|  2.95k|    U_ASSERT(tmpStatus == U_ZERO_ERROR);    // we checked the length of tzid already
  ------------------
  |  |   35|  2.95k|#   define U_ASSERT(exp) (void)0
  ------------------
  251|       |
  252|  2.95k|    if (!uprv_isInvariantUString(utzid, -1)) {
  ------------------
  |  | 1518|  2.95k|#define uprv_isInvariantUString U_ICU_ENTRY_POINT_RENAME(uprv_isInvariantUString)
  |  |  ------------------
  |  |  |  |  123|  2.95k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.95k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.95k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (252:9): [True: 0, False: 2.95k]
  ------------------
  253|       |        // All of known tz IDs are only containing ASCII invariant characters.
  254|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  255|      0|        return nullptr;
  256|      0|    }
  257|       |
  258|       |    // Check if it was already cached
  259|  2.95k|    umtx_lock(&gZoneMetaLock);
  ------------------
  |  | 1250|  2.95k|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  123|  2.95k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.95k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.95k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  260|  2.95k|    {
  261|  2.95k|        canonicalID = static_cast<const char16_t*>(uhash_get(gCanonicalIDCache, utzid));
  ------------------
  |  | 1007|  2.95k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  2.95k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.95k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.95k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  262|  2.95k|    }
  263|  2.95k|    umtx_unlock(&gZoneMetaLock);
  ------------------
  |  | 1251|  2.95k|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  123|  2.95k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.95k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.95k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  264|       |
  265|  2.95k|    if (canonicalID != nullptr) {
  ------------------
  |  Branch (265:9): [True: 2.93k, False: 20]
  ------------------
  266|  2.93k|        return canonicalID;
  267|  2.93k|    }
  268|       |
  269|       |    // If not, resolve CLDR canonical ID with resource data
  270|     20|    UBool isInputCanonical = false;
  271|     20|    char id[ZID_KEY_MAX + 1];
  272|     20|    tzid.extract(0, 0x7fffffff, id, UPRV_LENGTHOF(id), US_INV);
  ------------------
  |  |   99|     20|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
                  tzid.extract(0, 0x7fffffff, id, UPRV_LENGTHOF(id), US_INV);
  ------------------
  |  |   98|     20|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  273|       |
  274|       |    // replace '/' with ':'
  275|     20|    char *p = id;
  276|    150|    while (*p++) {
  ------------------
  |  Branch (276:12): [True: 130, False: 20]
  ------------------
  277|    130|        if (*p == '/') {
  ------------------
  |  Branch (277:13): [True: 7, False: 123]
  ------------------
  278|      7|            *p = ':';
  279|      7|        }
  280|    130|    }
  281|       |
  282|     20|    UResourceBundle *top = ures_openDirect(nullptr, gKeyTypeData, &tmpStatus);
  ------------------
  |  | 1693|     20|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|     20|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     20|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     20|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  283|     20|    UResourceBundle *rb = ures_getByKey(top, gTypeMapTag, nullptr, &tmpStatus);
  ------------------
  |  | 1661|     20|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|     20|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     20|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     20|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  284|     20|    ures_getByKey(rb, gTimezoneTag, rb, &tmpStatus);
  ------------------
  |  | 1661|     20|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|     20|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     20|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     20|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  285|     20|    ures_getByKey(rb, id, rb, &tmpStatus);
  ------------------
  |  | 1661|     20|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|     20|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     20|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     20|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  286|     20|    if (U_SUCCESS(tmpStatus)) {
  ------------------
  |  Branch (286:9): [True: 7, False: 13]
  ------------------
  287|       |        // type entry (canonical) found
  288|       |        // the input is the canonical ID. resolve to const char16_t*
  289|      7|        canonicalID = TimeZone::findID(tzid);
  290|      7|        isInputCanonical = true;
  291|      7|    }
  292|       |
  293|     20|    if (canonicalID == nullptr) {
  ------------------
  |  Branch (293:9): [True: 13, False: 7]
  ------------------
  294|       |        // If a map element not found, then look for an alias
  295|     13|        tmpStatus = U_ZERO_ERROR;
  296|     13|        ures_getByKey(top, gTypeAliasTag, rb, &tmpStatus);
  ------------------
  |  | 1661|     13|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  297|     13|        ures_getByKey(rb, gTimezoneTag, rb, &tmpStatus);
  ------------------
  |  | 1661|     13|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  298|     13|        const char16_t *canonical = ures_getStringByKey(rb,id,nullptr,&tmpStatus);
  ------------------
  |  | 1677|     13|#define ures_getStringByKey U_ICU_ENTRY_POINT_RENAME(ures_getStringByKey)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  299|     13|        if (U_SUCCESS(tmpStatus)) {
  ------------------
  |  Branch (299:13): [True: 5, False: 8]
  ------------------
  300|       |            // canonical map found
  301|      5|            canonicalID = canonical;
  302|      5|        }
  303|       |
  304|     13|        if (canonicalID == nullptr) {
  ------------------
  |  Branch (304:13): [True: 8, False: 5]
  ------------------
  305|       |            // Dereference the input ID using the tz data
  306|      8|            const char16_t *derefer = TimeZone::dereferOlsonLink(tzid);
  307|      8|            if (derefer == nullptr) {
  ------------------
  |  Branch (307:17): [True: 0, False: 8]
  ------------------
  308|      0|                status = U_ILLEGAL_ARGUMENT_ERROR;
  309|      8|            } else {
  310|      8|                int32_t len = u_strlen(derefer);
  ------------------
  |  |  393|      8|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|      8|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      8|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      8|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  311|      8|                u_UCharsToChars(derefer,id,len);
  ------------------
  |  |  211|      8|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|      8|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      8|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      8|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  312|      8|                id[len] = static_cast<char>(0); // Make sure it is null terminated.
  313|       |
  314|       |                // replace '/' with ':'
  315|      8|                char *q = id;
  316|    138|                while (*q++) {
  ------------------
  |  Branch (316:24): [True: 130, False: 8]
  ------------------
  317|    130|                    if (*q == '/') {
  ------------------
  |  Branch (317:25): [True: 9, False: 121]
  ------------------
  318|      9|                        *q = ':';
  319|      9|                    }
  320|    130|                }
  321|       |
  322|       |                // If a dereference turned something up then look for an alias.
  323|       |                // rb still points to the alias table, so we don't have to go looking
  324|       |                // for it.
  325|      8|                tmpStatus = U_ZERO_ERROR;
  326|      8|                canonical = ures_getStringByKey(rb,id,nullptr,&tmpStatus);
  ------------------
  |  | 1677|      8|#define ures_getStringByKey U_ICU_ENTRY_POINT_RENAME(ures_getStringByKey)
  |  |  ------------------
  |  |  |  |  123|      8|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      8|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      8|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  327|      8|                if (U_SUCCESS(tmpStatus)) {
  ------------------
  |  Branch (327:21): [True: 2, False: 6]
  ------------------
  328|       |                    // canonical map for the dereferenced ID found
  329|      2|                    canonicalID = canonical;
  330|      6|                } else {
  331|      6|                    canonicalID = derefer;
  332|      6|                    isInputCanonical = true;
  333|      6|                }
  334|      8|            }
  335|      8|        }
  336|     13|    }
  337|     20|    ures_close(rb);
  ------------------
  |  | 1652|     20|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|     20|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     20|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     20|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  338|     20|    ures_close(top);
  ------------------
  |  | 1652|     20|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|     20|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     20|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     20|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  339|       |
  340|     20|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (340:9): [True: 20, False: 0]
  ------------------
  341|     20|        U_ASSERT(canonicalID != nullptr);  // canocanilD must be non-nullptr here
  ------------------
  |  |   35|     20|#   define U_ASSERT(exp) (void)0
  ------------------
  342|       |
  343|       |        // Put the resolved canonical ID to the cache
  344|     20|        umtx_lock(&gZoneMetaLock);
  ------------------
  |  | 1250|     20|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  123|     20|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     20|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     20|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  345|     20|        {
  346|     20|            const char16_t* idInCache = static_cast<const char16_t*>(uhash_get(gCanonicalIDCache, utzid));
  ------------------
  |  | 1007|     20|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|     20|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     20|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     20|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  347|     20|            if (idInCache == nullptr) {
  ------------------
  |  Branch (347:17): [True: 20, False: 0]
  ------------------
  348|     20|                const char16_t* key = ZoneMeta::findTimeZoneID(tzid);
  349|     20|                U_ASSERT(key != nullptr);
  ------------------
  |  |   35|     20|#   define U_ASSERT(exp) (void)0
  ------------------
  350|     20|                if (key != nullptr) {
  ------------------
  |  Branch (350:21): [True: 20, False: 0]
  ------------------
  351|     20|                    idInCache = static_cast<const char16_t*>(uhash_put(gCanonicalIDCache, const_cast<char16_t*>(key), const_cast<char16_t*>(canonicalID), &status));
  ------------------
  |  | 1032|     20|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|     20|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     20|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     20|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  352|     20|                    U_ASSERT(idInCache == nullptr);
  ------------------
  |  |   35|     20|#   define U_ASSERT(exp) (void)0
  ------------------
  353|     20|                }
  354|     20|            }
  355|     20|            if (U_SUCCESS(status) && isInputCanonical) {
  ------------------
  |  Branch (355:17): [True: 20, False: 0]
  |  Branch (355:38): [True: 13, False: 7]
  ------------------
  356|       |                // Also put canonical ID itself into the cache if not exist
  357|     13|                const char16_t* canonicalInCache = static_cast<const char16_t*>(uhash_get(gCanonicalIDCache, canonicalID));
  ------------------
  |  | 1007|     13|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  358|     13|                if (canonicalInCache == nullptr) {
  ------------------
  |  Branch (358:21): [True: 6, False: 7]
  ------------------
  359|      6|                    canonicalInCache = static_cast<const char16_t*>(uhash_put(gCanonicalIDCache, const_cast<char16_t*>(canonicalID), const_cast<char16_t*>(canonicalID), &status));
  ------------------
  |  | 1032|      6|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  360|      6|                    U_ASSERT(canonicalInCache == nullptr);
  ------------------
  |  |   35|      6|#   define U_ASSERT(exp) (void)0
  ------------------
  361|      6|                }
  362|     13|            }
  363|     20|        }
  364|     20|        umtx_unlock(&gZoneMetaLock);
  ------------------
  |  | 1251|     20|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  123|     20|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     20|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     20|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  365|     20|    }
  366|       |
  367|     20|    return canonicalID;
  368|  2.95k|}
_ZN6icu_788ZoneMeta18getCanonicalCLDRIDERKNS_13UnicodeStringERS1_R10UErrorCode:
  371|  2.80k|ZoneMeta::getCanonicalCLDRID(const UnicodeString &tzid, UnicodeString &systemID, UErrorCode& status) {
  372|  2.80k|    const char16_t *canonicalID = getCanonicalCLDRID(tzid, status);
  373|  2.80k|    if (U_FAILURE(status) || canonicalID == nullptr) {
  ------------------
  |  Branch (373:9): [True: 0, False: 2.80k]
  |  Branch (373:30): [True: 0, False: 2.80k]
  ------------------
  374|      0|        systemID.setToBogus();
  375|      0|        return systemID;
  376|      0|    }
  377|  2.80k|    systemID.setTo(true, canonicalID, -1);
  378|  2.80k|    return systemID;
  379|  2.80k|}
_ZN6icu_788ZoneMeta18getCanonicalCLDRIDERKNS_8TimeZoneE:
  382|  7.58k|ZoneMeta::getCanonicalCLDRID(const TimeZone& tz) {
  383|  7.58k|    if (dynamic_cast<const OlsonTimeZone *>(&tz) != nullptr) {
  ------------------
  |  Branch (383:9): [True: 7.58k, False: 0]
  ------------------
  384|       |        // short cut for OlsonTimeZone
  385|  7.58k|        const OlsonTimeZone *otz = (const OlsonTimeZone*)&tz;
  386|  7.58k|        return otz->getCanonicalID();
  387|  7.58k|    }
  388|      0|    UErrorCode status = U_ZERO_ERROR;
  389|      0|    UnicodeString tzID;
  390|      0|    return getCanonicalCLDRID(tz.getID(tzID), status);
  391|  7.58k|}
_ZN6icu_788ZoneMeta19getCanonicalCountryERKNS_13UnicodeStringERS1_Pa:
  445|    278|ZoneMeta::getCanonicalCountry(const UnicodeString &tzid, UnicodeString &country, UBool *isPrimary /* = nullptr */) {
  446|    278|    if (isPrimary != nullptr) {
  ------------------
  |  Branch (446:9): [True: 278, False: 0]
  ------------------
  447|    278|        *isPrimary = false;
  448|    278|    }
  449|       |
  450|    278|    const char16_t *region = TimeZone::getRegion(tzid);
  451|    278|    if (region != nullptr && u_strcmp(gWorld, region) != 0) {
  ------------------
  |  |  387|    278|#define u_strcmp U_ICU_ENTRY_POINT_RENAME(u_strcmp)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (451:9): [True: 278, False: 0]
  |  Branch (451:30): [True: 0, False: 278]
  ------------------
  452|      0|        country.setTo(region, -1);
  453|    278|    } else {
  454|    278|        country.setToBogus();
  455|    278|        return country;
  456|    278|    }
  457|       |
  458|      0|    if (isPrimary != nullptr) {
  ------------------
  |  Branch (458:9): [True: 0, False: 0]
  ------------------
  459|      0|        char regionBuf[] = {0, 0, 0};
  460|       |
  461|       |        // Checking the cached results
  462|      0|        UErrorCode status = U_ZERO_ERROR;
  463|      0|        umtx_initOnce(gCountryInfoVectorsInitOnce, &countryInfoVectorsInit, status);
  464|      0|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (464:13): [True: 0, False: 0]
  ------------------
  465|      0|            return country;
  466|      0|        }
  467|       |
  468|       |        // Check if it was already cached
  469|      0|        UBool cached = false;
  470|      0|        UBool singleZone = false;
  471|      0|        umtx_lock(&gZoneMetaLock);
  ------------------
  |  | 1250|      0|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  472|      0|        {
  473|      0|            singleZone = cached = gSingleZoneCountries->contains((void*)region);
  474|      0|            if (!cached) {
  ------------------
  |  Branch (474:17): [True: 0, False: 0]
  ------------------
  475|      0|                cached = gMultiZonesCountries->contains((void*)region);
  476|      0|            }
  477|      0|        }
  478|      0|        umtx_unlock(&gZoneMetaLock);
  ------------------
  |  | 1251|      0|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  479|       |
  480|      0|        if (!cached) {
  ------------------
  |  Branch (480:13): [True: 0, False: 0]
  ------------------
  481|       |            // We need to go through all zones associated with the region.
  482|       |            // This is relatively heavy operation.
  483|       |
  484|      0|            U_ASSERT(u_strlen(region) == 2);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
  485|       |
  486|      0|            u_UCharsToChars(region, regionBuf, 2);
  ------------------
  |  |  211|      0|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  487|       |
  488|      0|            StringEnumeration *ids = TimeZone::createTimeZoneIDEnumeration(UCAL_ZONE_TYPE_CANONICAL_LOCATION, regionBuf, nullptr, status);
  489|      0|            int32_t idsLen = ids->count(status);
  490|      0|            if (U_SUCCESS(status) && idsLen == 1) {
  ------------------
  |  Branch (490:17): [True: 0, False: 0]
  |  Branch (490:38): [True: 0, False: 0]
  ------------------
  491|       |                // only the single zone is available for the region
  492|      0|                singleZone = true;
  493|      0|            }
  494|      0|            delete ids;
  495|       |
  496|       |            // Cache the result
  497|      0|            umtx_lock(&gZoneMetaLock);
  ------------------
  |  | 1250|      0|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  498|      0|            {
  499|      0|                UErrorCode ec = U_ZERO_ERROR;
  500|      0|                if (singleZone) {
  ------------------
  |  Branch (500:21): [True: 0, False: 0]
  ------------------
  501|      0|                    if (!gSingleZoneCountries->contains((void*)region)) {
  ------------------
  |  Branch (501:25): [True: 0, False: 0]
  ------------------
  502|      0|                        gSingleZoneCountries->addElement((void*)region, ec);
  503|      0|                    }
  504|      0|                } else {
  505|      0|                    if (!gMultiZonesCountries->contains((void*)region)) {
  ------------------
  |  Branch (505:25): [True: 0, False: 0]
  ------------------
  506|      0|                        gMultiZonesCountries->addElement((void*)region, ec);
  507|      0|                    }
  508|      0|                }
  509|      0|            }
  510|      0|            umtx_unlock(&gZoneMetaLock);
  ------------------
  |  | 1251|      0|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|      0|        }
  512|       |
  513|      0|        if (singleZone) {
  ------------------
  |  Branch (513:13): [True: 0, False: 0]
  ------------------
  514|      0|            *isPrimary = true;
  515|      0|        } else {
  516|       |            // Note: We may cache the primary zone map in future.
  517|       |
  518|       |            // Even a country has multiple zones, one of them might be
  519|       |            // dominant and treated as a primary zone
  520|      0|            int32_t idLen = 0;
  521|      0|            if (regionBuf[0] == 0) {
  ------------------
  |  Branch (521:17): [True: 0, False: 0]
  ------------------
  522|      0|                u_UCharsToChars(region, regionBuf, 2);
  ------------------
  |  |  211|      0|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  523|      0|            }
  524|       |
  525|      0|            UResourceBundle *rb = ures_openDirect(nullptr, gMetaZones, &status);
  ------------------
  |  | 1693|      0|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  526|      0|            ures_getByKey(rb, gPrimaryZonesTag, rb, &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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  527|      0|            const char16_t *primaryZone = ures_getStringByKey(rb, regionBuf, &idLen, &status);
  ------------------
  |  | 1677|      0|#define ures_getStringByKey U_ICU_ENTRY_POINT_RENAME(ures_getStringByKey)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  528|      0|            if (U_SUCCESS(status)) {
  ------------------
  |  Branch (528:17): [True: 0, False: 0]
  ------------------
  529|      0|                if (tzid.compare(primaryZone, idLen) == 0) {
  ------------------
  |  Branch (529:21): [True: 0, False: 0]
  ------------------
  530|      0|                    *isPrimary = true;
  531|      0|                } else {
  532|       |                    // The given ID might not be a canonical ID
  533|      0|                    UnicodeString canonicalID;
  534|      0|                    TimeZone::getCanonicalID(tzid, canonicalID, status);
  535|      0|                    if (U_SUCCESS(status) && canonicalID.compare(primaryZone, idLen) == 0) {
  ------------------
  |  Branch (535:25): [True: 0, False: 0]
  |  Branch (535:25): [True: 0, False: 0]
  |  Branch (535:46): [True: 0, False: 0]
  ------------------
  536|      0|                        *isPrimary = true;
  537|      0|                    }
  538|      0|                }
  539|      0|            }
  540|      0|            ures_close(rb);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  541|      0|        }
  542|      0|    }
  543|       |
  544|      0|    return country;
  545|      0|}
_ZN6icu_788ZoneMeta13getMetazoneIDERKNS_13UnicodeStringEdRS1_:
  548|  1.80k|ZoneMeta::getMetazoneID(const UnicodeString &tzid, UDate date, UnicodeString &result) {
  549|  1.80k|    UBool isSet = false;
  550|  1.80k|    const UVector *mappings = getMetazoneMappings(tzid);
  551|  1.80k|    if (mappings != nullptr) {
  ------------------
  |  Branch (551:9): [True: 0, False: 1.80k]
  ------------------
  552|      0|        for (int32_t i = 0; i < mappings->size(); i++) {
  ------------------
  |  Branch (552:29): [True: 0, False: 0]
  ------------------
  553|      0|            OlsonToMetaMappingEntry* mzm = static_cast<OlsonToMetaMappingEntry*>(mappings->elementAt(i));
  554|      0|            if (mzm->from <= date && mzm->to > date) {
  ------------------
  |  Branch (554:17): [True: 0, False: 0]
  |  Branch (554:38): [True: 0, False: 0]
  ------------------
  555|      0|                result.setTo(mzm->mzid, -1);
  556|      0|                isSet = true;
  557|      0|                break;
  558|      0|            }
  559|      0|        }
  560|      0|    }
  561|  1.80k|    if (!isSet) {
  ------------------
  |  Branch (561:9): [True: 1.80k, False: 0]
  ------------------
  562|  1.80k|        result.setToBogus();
  563|  1.80k|    }
  564|  1.80k|    return result;
  565|  1.80k|}
_ZN6icu_788ZoneMeta19getMetazoneMappingsERKNS_13UnicodeStringE:
  581|  2.80k|ZoneMeta::getMetazoneMappings(const UnicodeString &tzid) {
  582|  2.80k|    UErrorCode status = U_ZERO_ERROR;
  583|  2.80k|    char16_t tzidUChars[ZID_KEY_MAX + 1];
  584|  2.80k|    tzid.extract(tzidUChars, ZID_KEY_MAX + 1, status);
  ------------------
  |  |  113|  2.80k|#define ZID_KEY_MAX 128
  ------------------
  585|  2.80k|    if (U_FAILURE(status) || status == U_STRING_NOT_TERMINATED_WARNING) {
  ------------------
  |  Branch (585:9): [True: 0, False: 2.80k]
  |  Branch (585:30): [True: 0, False: 2.80k]
  ------------------
  586|      0|        return nullptr;
  587|      0|    }
  588|       |
  589|  2.80k|    umtx_initOnce(gOlsonToMetaInitOnce, &olsonToMetaInit, status);
  590|  2.80k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (590:9): [True: 0, False: 2.80k]
  ------------------
  591|      0|        return nullptr;
  592|      0|    }
  593|       |
  594|       |    // get the mapping from cache
  595|  2.80k|    const UVector *result = nullptr;
  596|       |
  597|  2.80k|    umtx_lock(&gZoneMetaLock);
  ------------------
  |  | 1250|  2.80k|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  123|  2.80k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.80k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.80k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  598|  2.80k|    {
  599|  2.80k|        result = static_cast<UVector*>(uhash_get(gOlsonToMeta, tzidUChars));
  ------------------
  |  | 1007|  2.80k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  2.80k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.80k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.80k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  600|  2.80k|    }
  601|  2.80k|    umtx_unlock(&gZoneMetaLock);
  ------------------
  |  | 1251|  2.80k|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  123|  2.80k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.80k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.80k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  602|       |
  603|  2.80k|    if (result != nullptr) {
  ------------------
  |  Branch (603:9): [True: 0, False: 2.80k]
  ------------------
  604|      0|        return result;
  605|      0|    }
  606|       |
  607|       |    // miss the cache - create new one
  608|  2.80k|    UVector *tmpResult = createMetazoneMappings(tzid);
  609|  2.80k|    if (tmpResult == nullptr) {
  ------------------
  |  Branch (609:9): [True: 2.80k, False: 0]
  ------------------
  610|       |        // not available
  611|  2.80k|        return nullptr;
  612|  2.80k|    }
  613|       |
  614|       |    // put the new one into the cache
  615|      0|    umtx_lock(&gZoneMetaLock);
  ------------------
  |  | 1250|      0|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  616|      0|    {
  617|       |        // make sure it's already created
  618|      0|        result = static_cast<UVector*>(uhash_get(gOlsonToMeta, tzidUChars));
  ------------------
  |  | 1007|      0|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  619|      0|        if (result == nullptr) {
  ------------------
  |  Branch (619:13): [True: 0, False: 0]
  ------------------
  620|       |            // add the one just created
  621|      0|            int32_t tzidLen = tzid.length() + 1;
  622|      0|            char16_t* key = static_cast<char16_t*>(uprv_malloc(tzidLen * sizeof(char16_t)));
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  623|      0|            if (key == nullptr) {
  ------------------
  |  Branch (623:17): [True: 0, False: 0]
  ------------------
  624|       |                // memory allocation error..  just return nullptr
  625|      0|                result = nullptr;
  626|      0|                delete tmpResult;
  627|      0|            } else {
  628|      0|                tzid.extract(key, tzidLen, status);
  629|      0|                uhash_put(gOlsonToMeta, key, tmpResult, &status);
  ------------------
  |  | 1032|      0|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  630|      0|                if (U_FAILURE(status)) {
  ------------------
  |  Branch (630:21): [True: 0, False: 0]
  ------------------
  631|       |                    // delete the mapping
  632|      0|                    result = nullptr;
  633|      0|                    delete tmpResult;
  634|      0|                } else {
  635|      0|                    result = tmpResult;
  636|      0|                }
  637|      0|            }
  638|      0|        } else {
  639|       |            // another thread already put the one
  640|      0|            delete tmpResult;
  641|      0|        }
  642|      0|    }
  643|      0|    umtx_unlock(&gZoneMetaLock);
  ------------------
  |  | 1251|      0|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  644|       |
  645|      0|    return result;
  646|  2.80k|}
_ZN6icu_788ZoneMeta22createMetazoneMappingsERKNS_13UnicodeStringE:
  649|  2.80k|ZoneMeta::createMetazoneMappings(const UnicodeString &tzid) {
  650|  2.80k|    LocalPointer <UVector> mzMappings;
  651|  2.80k|    UErrorCode status = U_ZERO_ERROR;
  652|       |
  653|  2.80k|    UnicodeString canonicalID;
  654|  2.80k|    UResourceBundle *rb = ures_openDirect(nullptr, gMetaZones, &status);
  ------------------
  |  | 1693|  2.80k|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|  2.80k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.80k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.80k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  655|  2.80k|    ures_getByKey(rb, gMetazoneInfo, rb, &status);
  ------------------
  |  | 1661|  2.80k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  2.80k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.80k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.80k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  656|  2.80k|    getCanonicalCLDRID(tzid, canonicalID, status);
  657|       |
  658|  2.80k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (658:9): [True: 2.80k, False: 0]
  ------------------
  659|  2.80k|        char tzKey[ZID_KEY_MAX + 1];
  660|  2.80k|        int32_t tzKeyLen = canonicalID.extract(0, canonicalID.length(), tzKey, sizeof(tzKey), US_INV);
  ------------------
  |  |   98|  2.80k|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  661|  2.80k|        tzKey[tzKeyLen] = 0;
  662|       |
  663|       |        // tzid keys are using ':' as separators
  664|  2.80k|        char *p = tzKey;
  665|  22.4k|        while (*p) {
  ------------------
  |  Branch (665:16): [True: 19.6k, False: 2.80k]
  ------------------
  666|  19.6k|            if (*p == '/') {
  ------------------
  |  Branch (666:17): [True: 2.80k, False: 16.8k]
  ------------------
  667|  2.80k|                *p = ':';
  668|  2.80k|            }
  669|  19.6k|            p++;
  670|  19.6k|        }
  671|       |
  672|  2.80k|        ures_getByKey(rb, tzKey, rb, &status);
  ------------------
  |  | 1661|  2.80k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  2.80k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.80k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.80k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  673|       |
  674|  2.80k|        if (U_SUCCESS(status)) {
  ------------------
  |  Branch (674:13): [True: 0, False: 2.80k]
  ------------------
  675|      0|            UResourceBundle *mz = nullptr;
  676|      0|            while (ures_hasNext(rb)) {
  ------------------
  |  | 1689|      0|#define ures_hasNext U_ICU_ENTRY_POINT_RENAME(ures_hasNext)
  |  |  ------------------
  |  |  |  |  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 (676:20): [True: 0, False: 0]
  ------------------
  677|      0|                mz = ures_getNextResource(rb, mz, &status);
  ------------------
  |  | 1672|      0|#define ures_getNextResource U_ICU_ENTRY_POINT_RENAME(ures_getNextResource)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  678|       |
  679|      0|                const char16_t *mz_name = ures_getStringByIndex(mz, 0, nullptr, &status);
  ------------------
  |  | 1676|      0|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  680|      0|                const char16_t *mz_from = gDefaultFrom;
  681|      0|                const char16_t *mz_to = gDefaultTo;
  682|       |
  683|      0|                if (ures_getSize(mz) == 3) {
  ------------------
  |  | 1674|      0|#define ures_getSize U_ICU_ENTRY_POINT_RENAME(ures_getSize)
  |  |  ------------------
  |  |  |  |  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 (683:21): [True: 0, False: 0]
  ------------------
  684|      0|                    mz_from = ures_getStringByIndex(mz, 1, nullptr, &status);
  ------------------
  |  | 1676|      0|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  685|      0|                    mz_to   = ures_getStringByIndex(mz, 2, nullptr, &status);
  ------------------
  |  | 1676|      0|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  686|      0|                }
  687|       |
  688|      0|                if(U_FAILURE(status)){
  ------------------
  |  Branch (688:20): [True: 0, False: 0]
  ------------------
  689|      0|                    status = U_ZERO_ERROR;
  690|      0|                    continue;
  691|      0|                }
  692|       |                // We do not want to use SimpleDateformat to parse boundary dates,
  693|       |                // because this code could be triggered by the initialization code
  694|       |                // used by SimpleDateFormat.
  695|      0|                UDate from = parseDate(mz_from, status);
  696|      0|                UDate to = parseDate(mz_to, status);
  697|      0|                if (U_FAILURE(status)) {
  ------------------
  |  Branch (697:21): [True: 0, False: 0]
  ------------------
  698|      0|                    status = U_ZERO_ERROR;
  699|      0|                    continue;
  700|      0|                }
  701|       |
  702|      0|                LocalPointer<OlsonToMetaMappingEntry> entry(new OlsonToMetaMappingEntry, status);
  703|      0|                if (U_FAILURE(status)) {
  ------------------
  |  Branch (703:21): [True: 0, False: 0]
  ------------------
  704|      0|                    break;
  705|      0|                }
  706|      0|                entry->mzid = mz_name;
  707|      0|                entry->from = from;
  708|      0|                entry->to = to;
  709|       |
  710|      0|                if (mzMappings.isNull()) {
  ------------------
  |  Branch (710:21): [True: 0, False: 0]
  ------------------
  711|      0|                    mzMappings.adoptInsteadAndCheckErrorCode(
  712|      0|                        new UVector(deleteOlsonToMetaMappingEntry, nullptr, status), status);
  713|      0|                    if (U_FAILURE(status)) {
  ------------------
  |  Branch (713:25): [True: 0, False: 0]
  ------------------
  714|      0|                        break;
  715|      0|                    }
  716|      0|                }
  717|       |
  718|      0|                mzMappings->adoptElement(entry.orphan(), status);
  719|      0|                if (U_FAILURE(status)) {
  ------------------
  |  Branch (719:21): [True: 0, False: 0]
  ------------------
  720|      0|                    break;
  721|      0|                }
  722|      0|            }
  723|      0|            ures_close(mz);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  724|      0|        }
  725|  2.80k|    }
  726|  2.80k|    ures_close(rb);
  ------------------
  |  | 1652|  2.80k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  2.80k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.80k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.80k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  727|  2.80k|    return U_SUCCESS(status) ? mzMappings.orphan() : nullptr;
  ------------------
  |  Branch (727:12): [True: 0, False: 2.80k]
  ------------------
  728|  2.80k|}
_ZN6icu_788ZoneMeta14findTimeZoneIDERKNS_13UnicodeStringE:
  854|  1.02k|ZoneMeta::findTimeZoneID(const UnicodeString& tzid) {
  855|  1.02k|    return TimeZone::findID(tzid);
  856|  1.02k|}
_ZN6icu_788ZoneMeta10getShortIDERKNS_8TimeZoneE:
  906|    288|ZoneMeta::getShortID(const TimeZone& tz) {
  907|    288|    const char16_t* canonicalID = nullptr;
  908|    288|    if (dynamic_cast<const OlsonTimeZone *>(&tz) != nullptr) {
  ------------------
  |  Branch (908:9): [True: 288, False: 0]
  ------------------
  909|       |        // short cut for OlsonTimeZone
  910|    288|        const OlsonTimeZone *otz = (const OlsonTimeZone*)&tz;
  911|    288|        canonicalID = otz->getCanonicalID();
  912|    288|    }
  913|    288|    if (canonicalID == nullptr) {
  ------------------
  |  Branch (913:9): [True: 0, False: 288]
  ------------------
  914|      0|        return nullptr;
  915|      0|    }
  916|    288|    return getShortIDFromCanonical(canonicalID);
  917|    288|}
_ZN6icu_788ZoneMeta23getShortIDFromCanonicalEPKDs:
  930|    288|ZoneMeta::getShortIDFromCanonical(const char16_t* canonicalID) {
  931|    288|    const char16_t* shortID = nullptr;
  932|    288|    int32_t len = u_strlen(canonicalID);
  ------------------
  |  |  393|    288|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|    288|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    288|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    288|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  933|    288|    char tzidKey[ZID_KEY_MAX + 1];
  934|       |
  935|    288|    u_UCharsToChars(canonicalID, tzidKey, len);
  ------------------
  |  |  211|    288|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|    288|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    288|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    288|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  936|    288|    tzidKey[len] = static_cast<char>(0); // Make sure it is null terminated.
  937|       |
  938|       |    // replace '/' with ':'
  939|    288|    char *p = tzidKey;
  940|  2.30k|    while (*p++) {
  ------------------
  |  Branch (940:12): [True: 2.01k, False: 288]
  ------------------
  941|  2.01k|        if (*p == '/') {
  ------------------
  |  Branch (941:13): [True: 288, False: 1.72k]
  ------------------
  942|    288|            *p = ':';
  943|    288|        }
  944|  2.01k|    }
  945|       |
  946|    288|    UErrorCode status = U_ZERO_ERROR;
  947|    288|    UResourceBundle *rb = ures_openDirect(nullptr, gKeyTypeData, &status);
  ------------------
  |  | 1693|    288|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|    288|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    288|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    288|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  948|    288|    ures_getByKey(rb, gTypeMapTag, rb, &status);
  ------------------
  |  | 1661|    288|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|    288|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    288|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    288|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  949|    288|    ures_getByKey(rb, gTimezoneTag, rb, &status);
  ------------------
  |  | 1661|    288|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|    288|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    288|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    288|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  950|    288|    shortID = ures_getStringByKey(rb, tzidKey, nullptr, &status);
  ------------------
  |  | 1677|    288|#define ures_getStringByKey U_ICU_ENTRY_POINT_RENAME(ures_getStringByKey)
  |  |  ------------------
  |  |  |  |  123|    288|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    288|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    288|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  951|    288|    ures_close(rb);
  ------------------
  |  | 1652|    288|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|    288|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    288|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    288|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  952|       |
  953|    288|    return shortID;
  954|    288|}
zonemeta.cpp:_ZN6icu_78L20initCanonicalIDCacheER10UErrorCode:
  215|      1|static void U_CALLCONV initCanonicalIDCache(UErrorCode &status) {
  216|      1|    gCanonicalIDCache = uhash_open(uhash_hashUChars, uhash_compareUChars, 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  gCanonicalIDCache = uhash_open(uhash_hashUChars, uhash_compareUChars, nullptr, &status);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  gCanonicalIDCache = uhash_open(uhash_hashUChars, uhash_compareUChars, nullptr, &status);
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  217|      1|    if (gCanonicalIDCache == nullptr) {
  ------------------
  |  Branch (217:9): [True: 0, False: 1]
  ------------------
  218|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  219|      0|    }
  220|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (220:9): [True: 0, False: 1]
  ------------------
  221|      0|        gCanonicalIDCache = nullptr;
  222|      0|    }
  223|       |    // No key/value deleters - keys/values are from a resource bundle
  224|      1|    ucln_i18n_registerCleanup(UCLN_I18N_ZONEMETA, zoneMeta_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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  225|      1|}
zonemeta.cpp:_ZN6icu_78L15olsonToMetaInitER10UErrorCode:
  567|      1|static void U_CALLCONV olsonToMetaInit(UErrorCode &status) {
  568|      1|    U_ASSERT(gOlsonToMeta == nullptr);
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
  569|      1|    ucln_i18n_registerCleanup(UCLN_I18N_ZONEMETA, zoneMeta_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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  570|      1|    gOlsonToMeta = uhash_open(uhash_hashUChars, uhash_compareUChars, 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  gOlsonToMeta = uhash_open(uhash_hashUChars, uhash_compareUChars, nullptr, &status);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  gOlsonToMeta = uhash_open(uhash_hashUChars, uhash_compareUChars, nullptr, &status);
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  571|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (571:9): [True: 0, False: 1]
  ------------------
  572|      0|        gOlsonToMeta = nullptr;
  573|      1|    } else {
  574|      1|        uhash_setKeyDeleter(gOlsonToMeta, deleteUCharString);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  575|      1|        uhash_setValueDeleter(gOlsonToMeta, uprv_deleteUObject);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      uhash_setValueDeleter(gOlsonToMeta, uprv_deleteUObject);
  ------------------
  |  | 1489|      1|#define uprv_deleteUObject U_ICU_ENTRY_POINT_RENAME(uprv_deleteUObject)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  576|      1|    }
  577|      1|}

LLVMFuzzerTestOneInput:
   13|  7.76k|extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
   14|  7.76k|    uint16_t rnd;
   15|  7.76k|    uint8_t rnd2;
   16|  7.76k|    UDate date;
   17|  7.76k|    icu::DateFormat::EStyle styles[] = {
   18|  7.76k|        icu::DateFormat::EStyle::kNone,
   19|  7.76k|        icu::DateFormat::EStyle::kFull,
   20|  7.76k|        icu::DateFormat::EStyle::kLong,
   21|  7.76k|        icu::DateFormat::EStyle::kMedium,
   22|  7.76k|        icu::DateFormat::EStyle::kShort,
   23|  7.76k|        icu::DateFormat::EStyle::kDateOffset,
   24|  7.76k|        icu::DateFormat::EStyle::kDateTime,
   25|  7.76k|        icu::DateFormat::EStyle::kDateTimeOffset,
   26|  7.76k|        icu::DateFormat::EStyle::kRelative,
   27|  7.76k|        icu::DateFormat::EStyle::kFullRelative,
   28|  7.76k|        icu::DateFormat::EStyle::kLongRelative,
   29|  7.76k|        icu::DateFormat::EStyle::kMediumRelative,
   30|  7.76k|        icu::DateFormat::EStyle::kShortRelative,
   31|  7.76k|    };
   32|  7.76k|    int32_t numStyles = sizeof(styles) / sizeof(icu::DateFormat::EStyle);
   33|       |
   34|  7.76k|    icu::DateFormat::EStyle dateStyle;
   35|  7.76k|    icu::DateFormat::EStyle timeStyle;
   36|  7.76k|    if (size < sizeof(rnd) + sizeof(date) + 2*sizeof(rnd2) +
  ------------------
  |  Branch (36:9): [True: 10, False: 7.75k]
  ------------------
   37|  7.76k|        sizeof(dateStyle) + sizeof(timeStyle) ) {
   38|     10|        return 0;
   39|     10|    }
   40|  7.75k|    icu::StringPiece fuzzData(reinterpret_cast<const char *>(data), size);
   41|       |
   42|  7.75k|    std::memcpy(&rnd, fuzzData.data(), sizeof(rnd));
   43|  7.75k|    fuzzData.remove_prefix(sizeof(rnd));
   44|  7.75k|    icu::Locale locale = GetRandomLocale(rnd);
   45|       |
   46|  7.75k|    std::memcpy(&dateStyle, fuzzData.data(), sizeof(dateStyle));
   47|  7.75k|    fuzzData.remove_prefix(sizeof(dateStyle));
   48|  7.75k|    std::memcpy(&timeStyle, fuzzData.data(), sizeof(timeStyle));
   49|  7.75k|    fuzzData.remove_prefix(sizeof(timeStyle));
   50|       |
   51|  7.75k|    std::memcpy(&rnd2, fuzzData.data(), sizeof(rnd2));
   52|  7.75k|    icu::DateFormat::EStyle dateStyle2 = styles[rnd2 % numStyles];
   53|  7.75k|    fuzzData.remove_prefix(sizeof(rnd2));
   54|       |
   55|  7.75k|    std::memcpy(&rnd2, fuzzData.data(), sizeof(rnd2));
   56|  7.75k|    icu::DateFormat::EStyle timeStyle2 = styles[rnd2 % numStyles];
   57|  7.75k|    fuzzData.remove_prefix(sizeof(rnd2));
   58|       |
   59|  7.75k|    std::memcpy(&date, fuzzData.data(), sizeof(date));
   60|  7.75k|    fuzzData.remove_prefix(sizeof(date));
   61|       |
   62|  7.75k|    std::unique_ptr<icu::DateFormat> df(
   63|  7.75k|        icu::DateFormat::createDateTimeInstance(dateStyle, timeStyle, locale));
   64|  7.75k|    icu::UnicodeString appendTo;
   65|  7.75k|    df->format(date, appendTo);
   66|       |
   67|  7.75k|    df.reset(
   68|  7.75k|        icu::DateFormat::createDateTimeInstance(dateStyle2, timeStyle2, locale));
   69|  7.75k|    appendTo.remove();
   70|  7.75k|    df->format(date, appendTo);
   71|  7.75k|    icu::UnicodeString skeleton = icu::UnicodeString::fromUTF8(fuzzData);
   72|       |
   73|  7.75k|    UErrorCode status = U_ZERO_ERROR;
   74|  7.75k|    appendTo.remove();
   75|  7.75k|    df.reset(icu::DateFormat::createInstanceForSkeleton(skeleton, status));
   76|  7.75k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (76:9): [True: 7.75k, False: 0]
  ------------------
   77|  7.75k|        df->format(date, appendTo);
   78|  7.75k|    }
   79|       |
   80|  7.75k|    status = U_ZERO_ERROR;
   81|  7.75k|    appendTo.remove();
   82|  7.75k|    df.reset(icu::DateFormat::createInstanceForSkeleton(skeleton, locale, status));
   83|  7.75k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (83:9): [True: 7.75k, False: 0]
  ------------------
   84|  7.75k|        df->format(date, appendTo);
   85|  7.75k|    }
   86|       |
   87|  7.75k|    std::string str(fuzzData.data(), fuzzData.size());
   88|  7.75k|    icu::Locale locale2(str.c_str());
   89|  7.75k|    df.reset(
   90|  7.75k|        icu::DateFormat::createDateTimeInstance(dateStyle, timeStyle, locale2));
   91|  7.75k|    df.reset(
   92|  7.75k|        icu::DateFormat::createDateTimeInstance(dateStyle2, timeStyle2, locale2));
   93|       |
   94|  7.75k|    UDateFormat* udf = udat_open(UDAT_PATTERN, UDAT_PATTERN, str.c_str(), nullptr, 0,
  ------------------
  |  |  868|  7.75k|#define udat_open U_ICU_ENTRY_POINT_RENAME(udat_open)
  |  |  ------------------
  |  |  |  |  123|  7.75k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.75k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.75k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   95|  7.75k|                                 skeleton.getBuffer(), skeleton.length(), &status);
   96|  7.75k|    if (udf && U_SUCCESS(status)) {
  ------------------
  |  Branch (96:9): [True: 7.47k, False: 275]
  |  Branch (96:16): [True: 7.47k, False: 0]
  ------------------
   97|  7.47k|        udat_close(udf);
  ------------------
  |  |  851|  7.47k|#define udat_close U_ICU_ENTRY_POINT_RENAME(udat_close)
  |  |  ------------------
  |  |  |  |  123|  7.47k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.47k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.47k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   98|  7.47k|    }
   99|  7.75k|    return EXIT_SUCCESS;
  100|  7.76k|}

_Z15GetRandomLocalet:
   19|  7.75k|const icu::Locale& GetRandomLocale(uint16_t rnd) {
   20|  7.75k|  int32_t num_locales = 0;
   21|  7.75k|  const icu::Locale* locales = icu::Locale::getAvailableLocales(num_locales);
   22|  7.75k|  assert(num_locales > 0);
   23|  7.75k|  return locales[rnd % num_locales];
   24|  7.75k|}

