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

locid.cpp:_ZN6icu_7812ByteSinkUtil28viaByteSinkToTerminatedCharsIZZNS_6Locale4initENS_11StringPieceEaENK3$_0clENSt3__117basic_string_viewIcNS5_11char_traitsIcEEEEPciR10UErrorCodeEUlRNS_8ByteSinkESC_E_vEEiSA_iOT_SC_:
  112|  1.78k|                                                UErrorCode& status) {
  113|  1.78k|        if (U_FAILURE(status)) { return 0; }
  ------------------
  |  Branch (113:13): [True: 0, False: 1.78k]
  ------------------
  114|  1.78k|        CheckedArrayByteSink sink(buffer, capacity);
  115|  1.78k|        lambda(sink, status);
  116|  1.78k|        if (U_FAILURE(status)) { return 0; }
  ------------------
  |  Branch (116:13): [True: 0, False: 1.78k]
  ------------------
  117|       |
  118|  1.78k|        int32_t reslen = sink.NumberOfBytesAppended();
  119|       |
  120|  1.78k|        if (sink.Overflowed()) {
  ------------------
  |  Branch (120:13): [True: 0, False: 1.78k]
  ------------------
  121|      0|            status = U_BUFFER_OVERFLOW_ERROR;
  122|      0|            return reslen;
  123|      0|        }
  124|       |
  125|  1.78k|        return u_terminateChars(buffer, capacity, reslen, &status);
  ------------------
  |  |  406|  1.78k|#define u_terminateChars U_ICU_ENTRY_POINT_RENAME(u_terminateChars)
  |  |  ------------------
  |  |  |  |  123|  1.78k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.78k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.78k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  126|  1.78k|    }
loclikely.cpp:_ZN6icu_7812ByteSinkUtil23viaByteSinkToCharStringIZ27ulocimp_addLikelySubtags_78PKcR10UErrorCodeE3$_0vEENS_10CharStringEOT_S5_:
  141|    447|    static CharString viaByteSinkToCharString(F&& lambda, UErrorCode& status) {
  142|    447|        if (U_FAILURE(status)) { return {}; }
  ------------------
  |  Branch (142:13): [True: 0, False: 447]
  ------------------
  143|    447|        CharString result;
  144|    447|        CharStringByteSink sink(&result);
  145|    447|        lambda(sink, status);
  146|    447|        return result;
  147|    447|    }
uloc.cpp:_ZN6icu_7812ByteSinkUtil23viaByteSinkToCharStringIZ22ulocimp_getBaseName_78NSt3__117basic_string_viewIcNS2_11char_traitsIcEEEER10UErrorCodeE3$_0vEENS_10CharStringEOT_S8_:
  141|    487|    static CharString viaByteSinkToCharString(F&& lambda, UErrorCode& status) {
  142|    487|        if (U_FAILURE(status)) { return {}; }
  ------------------
  |  Branch (142:13): [True: 0, False: 487]
  ------------------
  143|    487|        CharString result;
  144|    487|        CharStringByteSink sink(&result);
  145|    487|        lambda(sink, status);
  146|    487|        return result;
  147|    487|    }
uloc.cpp:_ZN6icu_7812ByteSinkUtil23viaByteSinkToCharStringIZ23ulocimp_canonicalize_78NSt3__117basic_string_viewIcNS2_11char_traitsIcEEEER10UErrorCodeE3$_0vEENS_10CharStringEOT_S8_:
  141|    448|    static CharString viaByteSinkToCharString(F&& lambda, UErrorCode& status) {
  142|    448|        if (U_FAILURE(status)) { return {}; }
  ------------------
  |  Branch (142:13): [True: 0, False: 448]
  ------------------
  143|    448|        CharString result;
  144|    448|        CharStringByteSink sink(&result);
  145|    448|        lambda(sink, status);
  146|    448|        return result;
  147|    448|    }

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

_ZN6icu_789BytesTrieD2Ev:
   26|    447|BytesTrie::~BytesTrie() {
   27|    447|    uprv_free(ownedArray_);
  ------------------
  |  | 1503|    447|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    447|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    447|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    447|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   28|    447|}
_ZN6icu_789BytesTrie9readValueEPKhi:
   32|    448|BytesTrie::readValue(const uint8_t *pos, int32_t leadByte) {
   33|    448|    int32_t value;
   34|    448|    if(leadByte<kMinTwoByteValueLead) {
  ------------------
  |  Branch (34:8): [True: 0, False: 448]
  ------------------
   35|      0|        value=leadByte-kMinOneByteValueLead;
   36|    448|    } else if(leadByte<kMinThreeByteValueLead) {
  ------------------
  |  Branch (36:15): [True: 434, False: 14]
  ------------------
   37|    434|        value=((leadByte-kMinTwoByteValueLead)<<8)|*pos;
   38|    434|    } else if(leadByte<kFourByteValueLead) {
  ------------------
  |  Branch (38:15): [True: 14, False: 0]
  ------------------
   39|     14|        value=((leadByte-kMinThreeByteValueLead)<<16)|(pos[0]<<8)|pos[1];
   40|     14|    } 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|    448|    return value;
   46|    448|}
_ZN6icu_789BytesTrie11jumpByDeltaEPKh:
   49|    808|BytesTrie::jumpByDelta(const uint8_t *pos) {
   50|    808|    int32_t delta=*pos++;
   51|    808|    if(delta<kMinTwoByteDeltaLead) {
  ------------------
  |  Branch (51:8): [True: 503, False: 305]
  ------------------
   52|       |        // nothing to do
   53|    503|    } else if(delta<kMinThreeByteDeltaLead) {
  ------------------
  |  Branch (53:15): [True: 287, False: 18]
  ------------------
   54|    287|        delta=((delta-kMinTwoByteDeltaLead)<<8)|*pos++;
   55|    287|    } else if(delta<kFourByteDeltaLead) {
  ------------------
  |  Branch (55:15): [True: 18, False: 0]
  ------------------
   56|     18|        delta=((delta-kMinThreeByteDeltaLead)<<16)|(pos[0]<<8)|pos[1];
   57|     18|        pos+=2;
   58|     18|    } 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|    808|    return pos+delta;
   66|    808|}
_ZN6icu_789BytesTrie10branchNextEPKhii:
   81|    815|BytesTrie::branchNext(const uint8_t *pos, int32_t length, int32_t inByte) {
   82|       |    // Branch according to the current byte.
   83|    815|    if(length==0) {
  ------------------
  |  Branch (83:8): [True: 625, False: 190]
  ------------------
   84|    625|        length=*pos++;
   85|    625|    }
   86|    815|    ++length;
   87|       |    // The length of the branch is the number of bytes to select from.
   88|       |    // The data structure encodes a binary search.
   89|  2.72k|    while(length>kMaxBranchLinearSubNodeLength) {
  ------------------
  |  Branch (89:11): [True: 1.91k, False: 815]
  ------------------
   90|  1.91k|        if(inByte<*pos++) {
  ------------------
  |  Branch (90:12): [True: 808, False: 1.10k]
  ------------------
   91|    808|            length>>=1;
   92|    808|            pos=jumpByDelta(pos);
   93|  1.10k|        } else {
   94|  1.10k|            length=length-(length>>1);
   95|  1.10k|            pos=skipDelta(pos);
   96|  1.10k|        }
   97|  1.91k|    }
   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|  1.69k|    do {
  102|  1.69k|        if(inByte==*pos++) {
  ------------------
  |  Branch (102:12): [True: 570, False: 1.12k]
  ------------------
  103|    570|            UStringTrieResult result;
  104|    570|            int32_t node=*pos;
  105|    570|            U_ASSERT(node>=kMinValueLead);
  ------------------
  |  |   35|    570|#   define U_ASSERT(exp) (void)0
  ------------------
  106|    570|            if(node&kValueIsFinal) {
  ------------------
  |  Branch (106:16): [True: 360, False: 210]
  ------------------
  107|       |                // Leave the final value for getValue() to read.
  108|    360|                result=USTRINGTRIE_FINAL_VALUE;
  109|    360|            } else {
  110|       |                // Use the non-final value as the jump delta.
  111|    210|                ++pos;
  112|       |                // int32_t delta=readValue(pos, node>>1);
  113|    210|                node>>=1;
  114|    210|                int32_t delta;
  115|    210|                if(node<kMinTwoByteValueLead) {
  ------------------
  |  Branch (115:20): [True: 81, False: 129]
  ------------------
  116|     81|                    delta=node-kMinOneByteValueLead;
  117|    129|                } else if(node<kMinThreeByteValueLead) {
  ------------------
  |  Branch (117:27): [True: 127, False: 2]
  ------------------
  118|    127|                    delta=((node-kMinTwoByteValueLead)<<8)|*pos++;
  119|    127|                } else if(node<kFourByteValueLead) {
  ------------------
  |  Branch (119:27): [True: 2, False: 0]
  ------------------
  120|      2|                    delta=((node-kMinThreeByteValueLead)<<16)|(pos[0]<<8)|pos[1];
  121|      2|                    pos+=2;
  122|      2|                } 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|    210|                pos+=delta;
  131|    210|                node=*pos;
  132|    210|                result= node>=kMinValueLead ? valueResult(node) : USTRINGTRIE_NO_VALUE;
  ------------------
  |  Branch (132:25): [True: 7, False: 203]
  ------------------
  133|    210|            }
  134|    570|            pos_=pos;
  135|    570|            return result;
  136|    570|        }
  137|  1.12k|        --length;
  138|  1.12k|        pos=skipValue(pos);
  139|  1.12k|    } while(length>1);
  ------------------
  |  Branch (139:13): [True: 884, False: 245]
  ------------------
  140|    245|    if(inByte==*pos++) {
  ------------------
  |  Branch (140:8): [True: 219, False: 26]
  ------------------
  141|    219|        pos_=pos;
  142|    219|        int32_t node=*pos;
  143|    219|        return node>=kMinValueLead ? valueResult(node) : USTRINGTRIE_NO_VALUE;
  ------------------
  |  Branch (143:16): [True: 81, False: 138]
  ------------------
  144|    219|    } else {
  145|     26|        stop();
  146|     26|        return USTRINGTRIE_NO_MATCH;
  147|     26|    }
  148|    245|}
_ZN6icu_789BytesTrie8nextImplEPKhi:
  151|    833|BytesTrie::nextImpl(const uint8_t *pos, int32_t inByte) {
  152|    840|    for(;;) {
  153|    840|        int32_t node=*pos++;
  154|    840|        if(node<kMinLinearMatch) {
  ------------------
  |  Branch (154:12): [True: 815, False: 25]
  ------------------
  155|    815|            return branchNext(pos, node, inByte);
  156|    815|        } else if(node<kMinValueLead) {
  ------------------
  |  Branch (156:19): [True: 18, False: 7]
  ------------------
  157|       |            // Match the first of length+1 bytes.
  158|     18|            int32_t length=node-kMinLinearMatch;  // Actual match length minus 1.
  159|     18|            if(inByte==*pos++) {
  ------------------
  |  Branch (159:16): [True: 18, False: 0]
  ------------------
  160|     18|                remainingMatchLength_=--length;
  161|     18|                pos_=pos;
  162|     18|                return (length<0 && (node=*pos)>=kMinValueLead) ?
  ------------------
  |  Branch (162:25): [True: 1, False: 17]
  |  Branch (162:37): [True: 1, False: 0]
  ------------------
  163|     17|                        valueResult(node) : USTRINGTRIE_NO_VALUE;
  164|     18|            } else {
  165|       |                // No match.
  166|      0|                break;
  167|      0|            }
  168|     18|        } else if(node&kValueIsFinal) {
  ------------------
  |  Branch (168:19): [True: 0, False: 7]
  ------------------
  169|       |            // No further matching bytes.
  170|      0|            break;
  171|      7|        } else {
  172|       |            // Skip intermediate value.
  173|      7|            pos=skipValue(pos, node);
  174|       |            // The next node must not also be a value node.
  175|      7|            U_ASSERT(*pos<kMinValueLead);
  ------------------
  |  |   35|      7|#   define U_ASSERT(exp) (void)0
  ------------------
  176|      7|        }
  177|    840|    }
  178|      0|    stop();
  179|      0|    return USTRINGTRIE_NO_MATCH;
  180|    833|}
_ZN6icu_789BytesTrie4nextEi:
  183|    863|BytesTrie::next(int32_t inByte) {
  184|    863|    const uint8_t *pos=pos_;
  185|    863|    if(pos==nullptr) {
  ------------------
  |  Branch (185:8): [True: 0, False: 863]
  ------------------
  186|      0|        return USTRINGTRIE_NO_MATCH;
  187|      0|    }
  188|    863|    if(inByte<0) {
  ------------------
  |  Branch (188:8): [True: 0, False: 863]
  ------------------
  189|      0|        inByte+=0x100;
  190|      0|    }
  191|    863|    int32_t length=remainingMatchLength_;  // Actual remaining match length minus 1.
  192|    863|    if(length>=0) {
  ------------------
  |  Branch (192:8): [True: 30, False: 833]
  ------------------
  193|       |        // Remaining part of a linear-match node.
  194|     30|        if(inByte==*pos++) {
  ------------------
  |  Branch (194:12): [True: 23, False: 7]
  ------------------
  195|     23|            remainingMatchLength_=--length;
  196|     23|            pos_=pos;
  197|     23|            int32_t node;
  198|     23|            return (length<0 && (node=*pos)>=kMinValueLead) ?
  ------------------
  |  Branch (198:21): [True: 10, False: 13]
  |  Branch (198:33): [True: 6, False: 4]
  ------------------
  199|     17|                    valueResult(node) : USTRINGTRIE_NO_VALUE;
  200|     23|        } else {
  201|      7|            stop();
  202|      7|            return USTRINGTRIE_NO_MATCH;
  203|      7|        }
  204|     30|    }
  205|    833|    return nextImpl(pos, inByte);
  206|    863|}

_ZNK6icu_7810CharString9cloneDataER10UErrorCode:
   41|    447|char *CharString::cloneData(UErrorCode &errorCode) const {
   42|    447|    if (U_FAILURE(errorCode)) { return nullptr; }
  ------------------
  |  Branch (42:9): [True: 0, False: 447]
  ------------------
   43|    447|    char *p = static_cast<char *>(uprv_malloc(len + 1));
  ------------------
  |  | 1524|    447|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    447|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    447|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    447|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   44|    447|    if (p == nullptr) {
  ------------------
  |  Branch (44:9): [True: 0, False: 447]
  ------------------
   45|      0|        errorCode = U_MEMORY_ALLOCATION_ERROR;
   46|      0|        return nullptr;
   47|      0|    }
   48|    447|    uprv_memcpy(p, buffer.getAlias(), len + 1);
  ------------------
  |  |   42|    447|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    447|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    447|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    447|    _Pragma("clang diagnostic push") \
  |  |   45|    447|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    447|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    447|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    447|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    447|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    447|    _Pragma("clang diagnostic pop") \
  |  |   49|    447|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    447|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    447|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    447|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   49|    447|    return p;
   50|    447|}
_ZN6icu_7810CharString6appendEcR10UErrorCode:
  113|  14.1k|CharString &CharString::append(char c, UErrorCode &errorCode) {
  114|  14.1k|    if(ensureCapacity(len+2, 0, errorCode)) {
  ------------------
  |  Branch (114:8): [True: 14.1k, False: 0]
  ------------------
  115|  14.1k|        buffer[len++]=c;
  116|  14.1k|        buffer[len]=0;
  117|  14.1k|    }
  118|  14.1k|    return *this;
  119|  14.1k|}
_ZN6icu_7810CharString6appendEPKciR10UErrorCode:
  121|  47.7k|CharString &CharString::append(const char *s, int32_t sLength, UErrorCode &errorCode) {
  122|  47.7k|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (122:8): [True: 0, False: 47.7k]
  ------------------
  123|      0|        return *this;
  124|      0|    }
  125|  47.7k|    if(sLength<-1 || (s==nullptr && sLength!=0)) {
  ------------------
  |  Branch (125:8): [True: 0, False: 47.7k]
  |  Branch (125:23): [True: 0, False: 47.7k]
  |  Branch (125:37): [True: 0, False: 0]
  ------------------
  126|      0|        errorCode=U_ILLEGAL_ARGUMENT_ERROR;
  127|      0|        return *this;
  128|      0|    }
  129|  47.7k|    if(sLength<0) {
  ------------------
  |  Branch (129:8): [True: 717, False: 47.0k]
  ------------------
  130|    717|        sLength= static_cast<int32_t>(uprv_strlen(s));
  ------------------
  |  |   37|    717|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    717|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  131|    717|    }
  132|  47.7k|    if(sLength>0) {
  ------------------
  |  Branch (132:8): [True: 46.6k, False: 1.16k]
  ------------------
  133|  46.6k|        if(s==(buffer.getAlias()+len)) {
  ------------------
  |  Branch (133:12): [True: 4.42k, False: 42.1k]
  ------------------
  134|       |            // The caller wrote into the getAppendBuffer().
  135|  4.42k|            if(sLength>=(buffer.getCapacity()-len)) {
  ------------------
  |  Branch (135:16): [True: 0, False: 4.42k]
  ------------------
  136|       |                // The caller wrote too much.
  137|      0|                errorCode=U_INTERNAL_PROGRAM_ERROR;
  138|  4.42k|            } else {
  139|  4.42k|                buffer[len+=sLength]=0;
  140|  4.42k|            }
  141|  42.1k|        } else if(buffer.getAlias()<=s && s<(buffer.getAlias()+len) &&
  ------------------
  |  Branch (141:19): [True: 12.9k, False: 29.2k]
  |  Branch (141:43): [True: 0, False: 12.9k]
  ------------------
  142|  42.1k|                  sLength>=(buffer.getCapacity()-len)
  ------------------
  |  Branch (142:19): [True: 0, False: 0]
  ------------------
  143|  42.1k|        ) {
  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|  42.1k|        } else if(ensureCapacity(len+sLength+1, 0, errorCode)) {
  ------------------
  |  Branch (147:19): [True: 42.1k, False: 0]
  ------------------
  148|  42.1k|            uprv_memcpy(buffer.getAlias()+len, s, sLength);
  ------------------
  |  |   42|  42.1k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  42.1k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  42.1k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  42.1k|    _Pragma("clang diagnostic push") \
  |  |   45|  42.1k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  42.1k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  42.1k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  42.1k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  42.1k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  42.1k|    _Pragma("clang diagnostic pop") \
  |  |   49|  42.1k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  42.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  42.1k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  42.1k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  149|  42.1k|            buffer[len+=sLength]=0;
  150|  42.1k|        }
  151|  46.6k|    }
  152|  47.7k|    return *this;
  153|  47.7k|}
_ZN6icu_7810CharString15getAppendBufferEiiRiR10UErrorCode:
  190|  5.46k|                                  UErrorCode &errorCode) {
  191|  5.46k|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (191:8): [True: 0, False: 5.46k]
  ------------------
  192|      0|        resultCapacity=0;
  193|      0|        return nullptr;
  194|      0|    }
  195|  5.46k|    int32_t appendCapacity=buffer.getCapacity()-len-1;  // -1 for NUL
  196|  5.46k|    if(appendCapacity>=minCapacity) {
  ------------------
  |  Branch (196:8): [True: 5.46k, False: 0]
  ------------------
  197|  5.46k|        resultCapacity=appendCapacity;
  198|  5.46k|        return buffer.getAlias()+len;
  199|  5.46k|    }
  200|      0|    if(ensureCapacity(len+minCapacity+1, len+desiredCapacityHint+1, errorCode)) {
  ------------------
  |  Branch (200:8): [True: 0, False: 0]
  ------------------
  201|      0|        resultCapacity=buffer.getCapacity()-len-1;
  202|      0|        return buffer.getAlias()+len;
  203|      0|    }
  204|      0|    resultCapacity=0;
  205|      0|    return nullptr;
  206|      0|}
_ZN6icu_7810CharString20appendInvariantCharsEPKDsiR10UErrorCode:
  212|  14.7k|CharString &CharString::appendInvariantChars(const char16_t* uchars, int32_t ucharsLen, UErrorCode &errorCode) {
  213|  14.7k|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (213:8): [True: 0, False: 14.7k]
  ------------------
  214|      0|        return *this;
  215|      0|    }
  216|  14.7k|    if (!uprv_isInvariantUString(uchars, ucharsLen)) {
  ------------------
  |  | 1518|  14.7k|#define uprv_isInvariantUString U_ICU_ENTRY_POINT_RENAME(uprv_isInvariantUString)
  |  |  ------------------
  |  |  |  |  123|  14.7k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  14.7k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  14.7k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (216:9): [True: 0, False: 14.7k]
  ------------------
  217|      0|        errorCode = U_INVARIANT_CONVERSION_ERROR;
  218|      0|        return *this;
  219|      0|    }
  220|  14.7k|    if(ensureCapacity(len+ucharsLen+1, 0, errorCode)) {
  ------------------
  |  Branch (220:8): [True: 14.7k, False: 0]
  ------------------
  221|  14.7k|        u_UCharsToChars(uchars, buffer.getAlias()+len, ucharsLen);
  ------------------
  |  |  211|  14.7k|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|  14.7k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  14.7k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  14.7k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  222|  14.7k|        len += ucharsLen;
  223|  14.7k|        buffer[len] = 0;
  224|  14.7k|    }
  225|  14.7k|    return *this;
  226|  14.7k|}
_ZN6icu_7810CharString14ensureCapacityEiiR10UErrorCode:
  230|  71.1k|                                 UErrorCode &errorCode) {
  231|  71.1k|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (231:8): [True: 0, False: 71.1k]
  ------------------
  232|      0|        return false;
  233|      0|    }
  234|  71.1k|    if(capacity>buffer.getCapacity()) {
  ------------------
  |  Branch (234:8): [True: 3.18k, False: 67.9k]
  ------------------
  235|  3.18k|        if(desiredCapacityHint==0) {
  ------------------
  |  Branch (235:12): [True: 3.18k, False: 0]
  ------------------
  236|  3.18k|            desiredCapacityHint=capacity+buffer.getCapacity();
  237|  3.18k|        }
  238|  3.18k|        if( (desiredCapacityHint<=capacity || buffer.resize(desiredCapacityHint, len+1)==nullptr) &&
  ------------------
  |  Branch (238:14): [True: 0, False: 3.18k]
  |  Branch (238:47): [True: 0, False: 3.18k]
  ------------------
  239|  3.18k|            buffer.resize(capacity, len+1)==nullptr
  ------------------
  |  Branch (239:13): [True: 0, False: 0]
  ------------------
  240|  3.18k|        ) {
  241|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  242|      0|            return false;
  243|      0|        }
  244|  3.18k|    }
  245|  71.1k|    return true;
  246|  71.1k|}

_ZN6icu_7810CharStringC2Ev:
   43|  42.0k|    CharString() : len(0) { buffer[0]=0; }
_ZN6icu_7810CharStringC2ENS_11StringPieceER10UErrorCode:
   44|  6.41k|    CharString(StringPiece s, UErrorCode &errorCode) : len(0) {
   45|  6.41k|        buffer[0]=0;
   46|  6.41k|        append(s, errorCode);
   47|  6.41k|    }
_ZN6icu_7810CharStringC2EPKciR10UErrorCode:
   52|  1.16k|    CharString(const char *s, int32_t sLength, UErrorCode &errorCode) : len(0) {
   53|  1.16k|        buffer[0]=0;
   54|  1.16k|        append(s, sLength, errorCode);
   55|  1.16k|    }
_ZN6icu_7810CharStringD2Ev:
   56|  49.6k|    ~CharString() {}
_ZNK6icu_7810CharString7isEmptyEv:
   79|  11.5k|    UBool isEmpty() const { return len==0; }
_ZNK6icu_7810CharString6lengthEv:
   80|  23.1k|    int32_t length() const { return len; }
_ZNK6icu_7810CharStringixEi:
   81|  6.04k|    char operator[](int32_t index) const { return buffer[index]; }
_ZNK6icu_7810CharString13toStringPieceEv:
   82|    447|    StringPiece toStringPiece() const { return StringPiece(buffer.getAlias(), len); }
_ZNK6icu_7810CharString4dataEv:
   84|  6.22k|    const char *data() const { return buffer.getAlias(); }
_ZN6icu_7810CharString4dataEv:
   85|  56.3k|    char *data() { return buffer.getAlias(); }
_ZNK6icu_7810CharStringeqERKS0_:
  108|    202|    bool operator==(const CharString& other) const {
  109|    202|        return len == other.length() && (len == 0 || uprv_memcmp(data(), other.data(), len) == 0);
  ------------------
  |  |  101|    202|#define uprv_memcmp(buffer1, buffer2, size) U_STANDARD_CPP_NAMESPACE memcmp(buffer1, buffer2,size)
  |  |  ------------------
  |  |  |  |  393|    202|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (109:16): [True: 202, False: 0]
  |  Branch (109:42): [True: 0, False: 202]
  |  Branch (109:54): [True: 180, False: 22]
  ------------------
  110|    202|    }
_ZNK6icu_7810CharStringeqENS_11StringPieceE:
  115|  13.3k|    bool operator==(StringPiece other) const {
  116|  13.3k|        return len == other.length() && (len == 0 || uprv_memcmp(data(), other.data(), len) == 0);
  ------------------
  |  |  101|    441|#define uprv_memcmp(buffer1, buffer2, size) U_STANDARD_CPP_NAMESPACE memcmp(buffer1, buffer2,size)
  |  |  ------------------
  |  |  |  |  393|    441|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (116:16): [True: 441, False: 12.8k]
  |  Branch (116:42): [True: 0, False: 441]
  |  Branch (116:54): [True: 0, False: 441]
  ------------------
  117|  13.3k|    }
_ZN6icu_7810CharString5clearEv:
  127|  6.90k|    CharString &clear() { len=0; buffer[0]=0; return *this; }
_ZN6icu_7810CharString6appendENS_11StringPieceER10UErrorCode:
  131|  26.6k|    CharString &append(StringPiece s, UErrorCode &errorCode) {
  132|  26.6k|        return append(s.data(), s.length(), errorCode);
  133|  26.6k|    }
_ZN6icu_7810CharString6appendERKS0_R10UErrorCode:
  134|  5.01k|    CharString &append(const CharString &s, UErrorCode &errorCode) {
  135|  5.01k|        return append(s.data(), s.length(), errorCode);
  136|  5.01k|    }

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

_ZN6icu_7815MaybeStackArrayIcLi40EEC2Ev:
  344|  49.6k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZN6icu_7815MaybeStackArrayIcLi40EED2Ev:
  363|  49.6k|    ~MaybeStackArray() { releaseArray(); }
_ZNK6icu_7815MaybeStackArrayIcLi40EE11getCapacityEv:
  376|  84.2k|    int32_t getCapacity() const { return capacity; }
_ZNK6icu_7815MaybeStackArrayIcLi40EE8getAliasEv:
  381|   227k|    T *getAlias() const { return ptr; }
_ZNK6icu_7815MaybeStackArrayIcLi40EEixEl:
  395|  6.04k|    const T &operator[](ptrdiff_t i) const { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIcLi40EEixEl:
  402|   146k|    T &operator[](ptrdiff_t i) { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIcLi40EE6resizeEii:
  505|  3.18k|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|  3.18k|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 3.18k, 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.18k|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|  3.18k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  3.18k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.18k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.18k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|  3.18k|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 3.18k, False: 0]
  ------------------
  512|  3.18k|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 3.18k, False: 0]
  ------------------
  513|  3.18k|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 3.18k]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|  3.18k|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 3.18k]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|  3.18k|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|  3.18k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  3.18k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  3.18k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  3.18k|    _Pragma("clang diagnostic push") \
  |  |   45|  3.18k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  3.18k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.18k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  3.18k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.18k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  3.18k|    _Pragma("clang diagnostic pop") \
  |  |   49|  3.18k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  3.18k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  3.18k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  3.18k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|  3.18k|            }
  521|  3.18k|            releaseArray();
  522|  3.18k|            ptr=p;
  523|  3.18k|            capacity=newCapacity;
  524|  3.18k|            needToRelease=true;
  525|  3.18k|        }
  526|  3.18k|        return p;
  527|  3.18k|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|  3.18k|}
_ZN6icu_7815MaybeStackArrayIcLi40EE12releaseArrayEv:
  458|  52.7k|    void releaseArray() {
  459|  52.7k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 3.17k, False: 49.6k]
  ------------------
  460|  3.17k|            uprv_free(ptr);
  ------------------
  |  | 1503|  3.17k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  3.17k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.17k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.17k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|  3.17k|        }
  462|  52.7k|    }
_ZN6icu_7811LocalMemoryIDsEC2EPDs:
  195|    190|    explicit LocalMemory(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZNK6icu_7811LocalMemoryIDsEixEl:
  274|    190|    T &operator[](ptrdiff_t i) const { return LocalPointerBase<T>::ptr[i]; }
_ZN6icu_7811LocalMemoryIDsED2Ev:
  206|    190|    ~LocalMemory() {
  207|    190|        uprv_free(LocalPointerBase<T>::ptr);
  ------------------
  |  | 1503|    190|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    190|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    190|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    190|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  208|    190|    }
_ZN6icu_7811LocalMemoryIiEC2EPi:
  195|     10|    explicit LocalMemory(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7811LocalMemoryIiED2Ev:
  206|     10|    ~LocalMemory() {
  207|     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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  208|     10|    }
_ZNK6icu_7811LocalMemoryIiEixEl:
  274|  24.3k|    T &operator[](ptrdiff_t i) const { return LocalPointerBase<T>::ptr[i]; }
_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|}
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();} ()

uprv_isASCIILetter_78:
   52|  8.39k|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|  8.39k|    return ('a'<=c && c<='z') || ('A'<=c && c<='Z');
  ------------------
  |  Branch (58:13): [True: 4.30k, False: 4.09k]
  |  Branch (58:23): [True: 4.30k, False: 0]
  |  Branch (58:35): [True: 4.07k, False: 18]
  |  Branch (58:45): [True: 4.07k, False: 0]
  ------------------
   59|  8.39k|#endif
   60|  8.39k|}
uprv_toupper_78:
   63|  3.82k|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|  3.82k|    if('a'<=c && c<='z') {
  ------------------
  |  Branch (69:8): [True: 0, False: 3.82k]
  |  Branch (69:18): [True: 0, False: 0]
  ------------------
   70|      0|        c=(char)(c+('A'-'a'));
   71|      0|    }
   72|  3.82k|#endif
   73|  3.82k|    return c;
   74|  3.82k|}
uprv_asciitolower_78:
  103|  15.8k|uprv_asciitolower(char c) {
  104|  15.8k|    if(0x41<=c && c<=0x5a) {
  ------------------
  |  Branch (104:8): [True: 15.8k, False: 1]
  |  Branch (104:19): [True: 5, False: 15.8k]
  ------------------
  105|      5|        c=(char)(c+0x20);
  106|      5|    }
  107|  15.8k|    return c;
  108|  15.8k|}
T_CString_toLowerCase_78:
  124|      1|{
  125|      1|    char* origPtr = str;
  126|       |
  127|      1|    if (str) {
  ------------------
  |  Branch (127:9): [True: 1, False: 0]
  ------------------
  128|      1|        do
  129|      6|            *str = uprv_tolower(*str);
  ------------------
  |  |   68|      6|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|      6|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  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
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  130|      6|        while (*(str++));
  ------------------
  |  Branch (130:16): [True: 5, False: 1]
  ------------------
  131|      1|    }
  132|       |
  133|      1|    return origPtr;
  134|      1|}
T_CString_integerToString_78:
  158|    152|{
  159|    152|    char      tbuf[30];
  160|    152|    int32_t   tbx    = sizeof(tbuf);
  161|    152|    uint8_t   digit;
  162|    152|    int32_t   length = 0;
  163|    152|    uint32_t  uval;
  164|       |    
  165|    152|    U_ASSERT(radix>=2 && radix<=16);
  ------------------
  |  |   35|    152|#   define U_ASSERT(exp) (void)0
  ------------------
  166|    152|    uval = (uint32_t) v;
  167|    152|    if(v<0 && radix == 10) {
  ------------------
  |  Branch (167:8): [True: 0, False: 152]
  |  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|    152|    tbx = sizeof(tbuf)-1;
  174|    152|    tbuf[tbx] = 0;   /* We are generating the digits backwards.  Null term the end. */
  175|    197|    do {
  176|    197|        digit = (uint8_t)(uval % radix);
  177|    197|        tbuf[--tbx] = (char)(T_CString_itosOffset(digit));
  ------------------
  |  |   81|    197|#define T_CString_itosOffset(a) ((a)<=9?('0'+(a)):('A'+(a)-10))
  |  |  ------------------
  |  |  |  Branch (81:34): [True: 197, False: 0]
  |  |  ------------------
  ------------------
  178|    197|        uval  = uval / radix;
  179|    197|    } while (uval != 0);
  ------------------
  |  Branch (179:14): [True: 45, False: 152]
  ------------------
  180|       |    
  181|       |    /* copy converted number into user buffer  */
  182|    152|    uprv_strcpy(buffer+length, tbuf+tbx);
  ------------------
  |  |   36|    152|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|    152|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  183|    152|    length += sizeof(tbuf) - tbx -1;
  184|    152|    return length;
  185|    152|}
uprv_strnicmp_78:
  274|  3.21k|uprv_strnicmp(const char *str1, const char *str2, uint32_t n) {
  275|  3.21k|    if(str1==nullptr) {
  ------------------
  |  Branch (275:8): [True: 0, False: 3.21k]
  ------------------
  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|  3.21k|    } else if(str2==nullptr) {
  ------------------
  |  Branch (281:15): [True: 0, False: 3.21k]
  ------------------
  282|      0|        return 1;
  283|  3.21k|    } else {
  284|       |        /* compare non-nullptr strings lexically with lowercase */
  285|  3.21k|        int rc;
  286|  3.21k|        unsigned char c1, c2;
  287|       |
  288|  3.24k|        for(; n--;) {
  ------------------
  |  Branch (288:15): [True: 3.24k, False: 0]
  ------------------
  289|  3.24k|            c1=(unsigned char)*str1;
  290|  3.24k|            c2=(unsigned char)*str2;
  291|  3.24k|            if(c1==0) {
  ------------------
  |  Branch (291:16): [True: 0, False: 3.24k]
  ------------------
  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|  3.24k|            } else if(c2==0) {
  ------------------
  |  Branch (297:23): [True: 0, False: 3.24k]
  ------------------
  298|      0|                return 1;
  299|  3.24k|            } else {
  300|       |                /* compare non-zero characters with lowercase */
  301|  3.24k|                rc=(int)(unsigned char)uprv_tolower(c1)-(int)(unsigned char)uprv_tolower(c2);
  ------------------
  |  |   68|  3.24k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  3.24k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  3.24k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  3.24k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  3.24k|#       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|  3.24k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  3.24k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  3.24k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  3.24k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  3.24k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  302|  3.24k|                if(rc!=0) {
  ------------------
  |  Branch (302:20): [True: 3.21k, False: 36]
  ------------------
  303|  3.21k|                    return rc;
  304|  3.21k|                }
  305|  3.24k|            }
  306|     36|            ++str1;
  307|     36|            ++str2;
  308|     36|        }
  309|  3.21k|    }
  310|       |
  311|      0|    return 0;
  312|  3.21k|}
uprv_strdup_78:
  315|    688|uprv_strdup(const char *src) {
  316|    688|    size_t len = uprv_strlen(src) + 1;
  ------------------
  |  |   37|    688|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    688|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  317|    688|    char *dup = (char *) uprv_malloc(len);
  ------------------
  |  | 1524|    688|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    688|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    688|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    688|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  318|       |
  319|    688|    if (dup) {
  ------------------
  |  Branch (319:9): [True: 688, False: 0]
  ------------------
  320|    688|        uprv_memcpy(dup, src, len);
  ------------------
  |  |   42|    688|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    688|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    688|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    688|    _Pragma("clang diagnostic push") \
  |  |   45|    688|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    688|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    688|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    688|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    688|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    688|    _Pragma("clang diagnostic pop") \
  |  |   49|    688|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    688|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    688|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    688|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  321|    688|    }
  322|       |
  323|    688|    return dup;
  324|    688|}

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

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

_ZN6icu_7827locale_set_default_internalEPKcR10UErrorCode:
  168|      1|Locale *locale_set_default_internal(const char *id, UErrorCode& status) {
  169|       |    // Synchronize this entire function.
  170|      1|    Mutex lock(&gDefaultLocaleMutex);
  171|       |
  172|      1|    UBool canonicalize = false;
  173|       |
  174|       |    // If given a nullptr string for the locale id, grab the default
  175|       |    //   name from the system.
  176|       |    //   (Different from most other locale APIs, where a null name means use
  177|       |    //    the current ICU default locale.)
  178|      1|    if (id == nullptr) {
  ------------------
  |  Branch (178:9): [True: 1, False: 0]
  ------------------
  179|      1|        id = uprv_getDefaultLocaleID();   // This function not thread safe? TODO: verify.
  ------------------
  |  | 1505|      1|#define uprv_getDefaultLocaleID U_ICU_ENTRY_POINT_RENAME(uprv_getDefaultLocaleID)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  180|      1|        canonicalize = true; // always canonicalize host ID
  181|      1|    }
  182|       |
  183|      1|    CharString localeNameBuf =
  184|      1|        canonicalize ? ulocimp_canonicalize(id, status) : ulocimp_getName(id, status);
  ------------------
  |  | 1197|      1|#define ulocimp_canonicalize U_ICU_ENTRY_POINT_RENAME(ulocimp_canonicalize)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      canonicalize ? ulocimp_canonicalize(id, status) : ulocimp_getName(id, status);
  ------------------
  |  | 1204|      0|#define ulocimp_getName U_ICU_ENTRY_POINT_RENAME(ulocimp_getName)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (184:9): [True: 1, False: 0]
  ------------------
  185|       |
  186|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (186:9): [True: 0, False: 1]
  ------------------
  187|      0|        return gDefaultLocale;
  188|      0|    }
  189|       |
  190|      1|    if (gDefaultLocalesHashT == nullptr) {
  ------------------
  |  Branch (190:9): [True: 1, False: 0]
  ------------------
  191|      1|        gDefaultLocalesHashT = uhash_open(uhash_hashChars, uhash_compareChars, nullptr, &status);
  ------------------
  |  | 1030|      1|#define uhash_open U_ICU_ENTRY_POINT_RENAME(uhash_open)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      gDefaultLocalesHashT = uhash_open(uhash_hashChars, uhash_compareChars, nullptr, &status);
  ------------------
  |  | 1011|      1|#define uhash_hashChars U_ICU_ENTRY_POINT_RENAME(uhash_hashChars)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      gDefaultLocalesHashT = uhash_open(uhash_hashChars, uhash_compareChars, nullptr, &status);
  ------------------
  |  |  993|      1|#define uhash_compareChars U_ICU_ENTRY_POINT_RENAME(uhash_compareChars)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  192|      1|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (192:13): [True: 0, False: 1]
  ------------------
  193|      0|            return gDefaultLocale;
  194|      0|        }
  195|      1|        uhash_setValueDeleter(gDefaultLocalesHashT, deleteLocale);
  ------------------
  |  | 1044|      1|#define uhash_setValueDeleter U_ICU_ENTRY_POINT_RENAME(uhash_setValueDeleter)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  196|      1|        ucln_common_registerCleanup(UCLN_COMMON_LOCALE, locale_cleanup);
  ------------------
  |  |  617|      1|#define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  197|      1|    }
  198|       |
  199|      1|    Locale* newDefault = static_cast<Locale*>(uhash_get(gDefaultLocalesHashT, localeNameBuf.data()));
  ------------------
  |  | 1007|      1|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  200|      1|    if (newDefault == nullptr) {
  ------------------
  |  Branch (200:9): [True: 1, False: 0]
  ------------------
  201|      1|        newDefault = new Locale(Locale::eBOGUS);
  202|      1|        if (newDefault == nullptr) {
  ------------------
  |  Branch (202:13): [True: 0, False: 1]
  ------------------
  203|      0|            status = U_MEMORY_ALLOCATION_ERROR;
  204|      0|            return gDefaultLocale;
  205|      0|        }
  206|      1|        newDefault->init(localeNameBuf.data(), false);
  207|      1|        uhash_put(gDefaultLocalesHashT, const_cast<char*>(newDefault->getName()), newDefault, &status);
  ------------------
  |  | 1032|      1|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  208|      1|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (208:13): [True: 0, False: 1]
  ------------------
  209|      0|            return gDefaultLocale;
  210|      0|        }
  211|      1|    }
  212|      1|    gDefaultLocale = newDefault;
  213|      1|    return gDefaultLocale;
  214|      1|}
locale_get_default_78:
  230|    923|{
  231|    923|    U_NAMESPACE_USE
  ------------------
  |  |  112|    923|#   define U_NAMESPACE_USE using namespace U_ICU_NAMESPACE;
  ------------------
  232|    923|    return Locale::getDefault().getName();
  233|    923|}
_ZN6icu_786LocaleD2Ev:
  247|  3.19k|{
  248|  3.19k|    if ((baseName != fullName) && (baseName != fullNameBuffer)) {
  ------------------
  |  Branch (248:9): [True: 0, False: 3.19k]
  |  Branch (248:35): [True: 0, False: 0]
  ------------------
  249|      0|        uprv_free(baseName);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  250|      0|    }
  251|  3.19k|    baseName = nullptr;
  252|       |    /*if fullName is on the heap, we free it*/
  253|  3.19k|    if (fullName != fullNameBuffer)
  ------------------
  |  Branch (253:9): [True: 0, False: 3.19k]
  ------------------
  254|      0|    {
  255|      0|        uprv_free(fullName);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  256|      0|        fullName = nullptr;
  257|      0|    }
  258|  3.19k|}
_ZN6icu_786LocaleC2Ev:
  261|    885|    : UObject(), fullName(fullNameBuffer), baseName(nullptr)
  262|    885|{
  263|    885|    init(nullptr, false);
  264|    885|}
_ZN6icu_786LocaleC2ENS0_11ELocaleTypeE:
  272|      1|    : UObject(), fullName(fullNameBuffer), baseName(nullptr)
  273|      1|{
  274|      1|    setToBogus();
  275|      1|}
_ZN6icu_786LocaleC2EPKcS2_S2_S2_:
  282|    447|    : UObject(), fullName(fullNameBuffer), baseName(nullptr)
  283|    447|{
  284|    447|    if( (newLanguage==nullptr) && (newCountry == nullptr) && (newVariant == nullptr) )
  ------------------
  |  Branch (284:9): [True: 0, False: 447]
  |  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|    447|    else
  289|    447|    {
  290|    447|        UErrorCode status = U_ZERO_ERROR;
  291|    447|        int32_t lsize = 0;
  292|    447|        int32_t csize = 0;
  293|    447|        int32_t vsize = 0;
  294|    447|        int32_t ksize = 0;
  295|       |
  296|       |        // Check the sizes of the input strings.
  297|       |
  298|       |        // Language
  299|    447|        if ( newLanguage != nullptr )
  ------------------
  |  Branch (299:14): [True: 447, False: 0]
  ------------------
  300|    447|        {
  301|    447|            lsize = static_cast<int32_t>(uprv_strlen(newLanguage));
  ------------------
  |  |   37|    447|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    447|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  302|    447|            if ( lsize < 0 || lsize > ULOC_STRING_LIMIT ) { // int32 wrap
  ------------------
  |  |   76|    447|#define ULOC_STRING_LIMIT 357913941
  ------------------
  |  Branch (302:18): [True: 0, False: 447]
  |  Branch (302:31): [True: 0, False: 447]
  ------------------
  303|      0|                setToBogus();
  304|      0|                return;
  305|      0|            }
  306|    447|        }
  307|       |
  308|    447|        CharString togo(newLanguage, lsize, status); // start with newLanguage
  309|       |
  310|       |        // _Country
  311|    447|        if ( newCountry != nullptr )
  ------------------
  |  Branch (311:14): [True: 0, False: 447]
  ------------------
  312|      0|        {
  313|      0|            csize = static_cast<int32_t>(uprv_strlen(newCountry));
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  314|      0|            if ( csize < 0 || csize > ULOC_STRING_LIMIT ) { // int32 wrap
  ------------------
  |  |   76|      0|#define ULOC_STRING_LIMIT 357913941
  ------------------
  |  Branch (314:18): [True: 0, False: 0]
  |  Branch (314:31): [True: 0, False: 0]
  ------------------
  315|      0|                setToBogus();
  316|      0|                return;
  317|      0|            }
  318|      0|        }
  319|       |
  320|       |        // _Variant
  321|    447|        if ( newVariant != nullptr )
  ------------------
  |  Branch (321:14): [True: 0, False: 447]
  ------------------
  322|      0|        {
  323|       |            // remove leading _'s
  324|      0|            while(newVariant[0] == SEP_CHAR)
  ------------------
  |  |  243|      0|#define SEP_CHAR '_'
  ------------------
  |  Branch (324:19): [True: 0, False: 0]
  ------------------
  325|      0|            {
  326|      0|                newVariant++;
  327|      0|            }
  328|       |
  329|       |            // remove trailing _'s
  330|      0|            vsize = static_cast<int32_t>(uprv_strlen(newVariant));
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  331|      0|            if ( vsize < 0 || vsize > ULOC_STRING_LIMIT ) { // int32 wrap
  ------------------
  |  |   76|      0|#define ULOC_STRING_LIMIT 357913941
  ------------------
  |  Branch (331:18): [True: 0, False: 0]
  |  Branch (331:31): [True: 0, False: 0]
  ------------------
  332|      0|                setToBogus();
  333|      0|                return;
  334|      0|            }
  335|      0|            while( (vsize>1) && (newVariant[vsize-1] == SEP_CHAR) )
  ------------------
  |  |  243|      0|#define SEP_CHAR '_'
  ------------------
  |  Branch (335:20): [True: 0, False: 0]
  |  Branch (335:33): [True: 0, False: 0]
  ------------------
  336|      0|            {
  337|      0|                vsize--;
  338|      0|            }
  339|      0|        }
  340|       |
  341|    447|        if ( newKeywords != nullptr)
  ------------------
  |  Branch (341:14): [True: 0, False: 447]
  ------------------
  342|      0|        {
  343|      0|            ksize = static_cast<int32_t>(uprv_strlen(newKeywords));
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  344|      0|            if ( ksize < 0 || ksize > ULOC_STRING_LIMIT ) {
  ------------------
  |  |   76|      0|#define ULOC_STRING_LIMIT 357913941
  ------------------
  |  Branch (344:18): [True: 0, False: 0]
  |  Branch (344:31): [True: 0, False: 0]
  ------------------
  345|      0|              setToBogus();
  346|      0|              return;
  347|      0|            }
  348|      0|        }
  349|       |
  350|       |        // We've checked the input sizes, now build up the full locale string..
  351|       |
  352|       |        // newLanguage is already copied
  353|       |
  354|    447|        if ( ( vsize != 0 ) || (csize != 0) )  // at least:  __v
  ------------------
  |  Branch (354:14): [True: 0, False: 447]
  |  Branch (354:32): [True: 0, False: 447]
  ------------------
  355|      0|        {                                      //            ^
  356|      0|            togo.append(SEP_CHAR, status);
  ------------------
  |  |  243|      0|#define SEP_CHAR '_'
  ------------------
  357|      0|        }
  358|       |
  359|    447|        if ( csize != 0 )
  ------------------
  |  Branch (359:14): [True: 0, False: 447]
  ------------------
  360|      0|        {
  361|      0|            togo.append(newCountry, status);
  362|      0|        }
  363|       |
  364|    447|        if ( vsize != 0)
  ------------------
  |  Branch (364:14): [True: 0, False: 447]
  ------------------
  365|      0|        {
  366|      0|            togo.append(SEP_CHAR, status)
  ------------------
  |  |  243|      0|#define SEP_CHAR '_'
  ------------------
  367|      0|                .append(newVariant, vsize, status);
  368|      0|        }
  369|       |
  370|    447|        if ( ksize != 0)
  ------------------
  |  Branch (370:14): [True: 0, False: 447]
  ------------------
  371|      0|        {
  372|      0|            if (uprv_strchr(newKeywords, '=')) {
  ------------------
  |  |   40|      0|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |  |  Branch (40:27): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  373|      0|                togo.append('@', status); /* keyword parsing */
  374|      0|            }
  375|      0|            else {
  376|      0|                togo.append('_', status); /* Variant parsing with a script */
  377|      0|                if ( vsize == 0) {
  ------------------
  |  Branch (377:22): [True: 0, False: 0]
  ------------------
  378|      0|                    togo.append('_', status); /* No country found */
  379|      0|                }
  380|      0|            }
  381|      0|            togo.append(newKeywords, status);
  382|      0|        }
  383|       |
  384|    447|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (384:13): [True: 0, False: 447]
  ------------------
  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|    447|        init(togo.data(), false);
  392|    447|    }
  393|    447|}
_ZN6icu_786LocaleC2ERKS0_:
  396|  3.23k|    : UObject(other), fullName(fullNameBuffer), baseName(nullptr)
  397|  3.23k|{
  398|  3.23k|    *this = other;
  399|  3.23k|}
_ZN6icu_786LocaleaSERKS0_:
  406|  4.12k|Locale& Locale::operator=(const Locale& other) {
  407|  4.12k|    if (this == &other) {
  ------------------
  |  Branch (407:9): [True: 0, False: 4.12k]
  ------------------
  408|      0|        return *this;
  409|      0|    }
  410|       |
  411|  4.12k|    setToBogus();
  412|       |
  413|  4.12k|    if (other.fullName == other.fullNameBuffer) {
  ------------------
  |  Branch (413:9): [True: 4.12k, False: 0]
  ------------------
  414|  4.12k|        uprv_strcpy(fullNameBuffer, other.fullNameBuffer);
  ------------------
  |  |   36|  4.12k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  4.12k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  415|  4.12k|    } else if (other.fullName == nullptr) {
  ------------------
  |  Branch (415:16): [True: 0, False: 0]
  ------------------
  416|      0|        fullName = nullptr;
  417|      0|    } else {
  418|      0|        fullName = uprv_strdup(other.fullName);
  ------------------
  |  | 1541|      0|#define uprv_strdup U_ICU_ENTRY_POINT_RENAME(uprv_strdup)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  419|      0|        if (fullName == nullptr) return *this;
  ------------------
  |  Branch (419:13): [True: 0, False: 0]
  ------------------
  420|      0|    }
  421|       |
  422|  4.12k|    if (other.baseName == other.fullName) {
  ------------------
  |  Branch (422:9): [True: 4.12k, False: 0]
  ------------------
  423|  4.12k|        baseName = fullName;
  424|  4.12k|    } else if (other.baseName != nullptr) {
  ------------------
  |  Branch (424:16): [True: 0, False: 0]
  ------------------
  425|      0|        baseName = uprv_strdup(other.baseName);
  ------------------
  |  | 1541|      0|#define uprv_strdup U_ICU_ENTRY_POINT_RENAME(uprv_strdup)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  426|      0|        if (baseName == nullptr) return *this;
  ------------------
  |  Branch (426:13): [True: 0, False: 0]
  ------------------
  427|      0|    }
  428|       |
  429|  4.12k|    uprv_strcpy(language, other.language);
  ------------------
  |  |   36|  4.12k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  4.12k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  430|  4.12k|    uprv_strcpy(script, other.script);
  ------------------
  |  |   36|  4.12k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  4.12k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  431|  4.12k|    uprv_strcpy(country, other.country);
  ------------------
  |  |   36|  4.12k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  4.12k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  432|       |
  433|  4.12k|    variantBegin = other.variantBegin;
  434|  4.12k|    fIsBogus = other.fIsBogus;
  435|       |
  436|  4.12k|    return *this;
  437|  4.12k|}
_ZN6icu_786Locale4initEPKca:
 1832|  2.66k|{
 1833|  2.66k|    return localeID == nullptr ? *this = getDefault() : init(StringPiece{localeID}, canonicalize);
  ------------------
  |  Branch (1833:12): [True: 885, False: 1.78k]
  ------------------
 1834|  2.66k|}
_ZN6icu_786Locale4initENS_11StringPieceEa:
 1838|  1.78k|{
 1839|  1.78k|    fIsBogus = false;
 1840|       |    /* Free our current storage */
 1841|  1.78k|    if ((baseName != fullName) && (baseName != fullNameBuffer)) {
  ------------------
  |  Branch (1841:9): [True: 448, False: 1.33k]
  |  Branch (1841:35): [True: 448, False: 0]
  ------------------
 1842|    448|        uprv_free(baseName);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1843|    448|    }
 1844|  1.78k|    baseName = nullptr;
 1845|  1.78k|    if(fullName != fullNameBuffer) {
  ------------------
  |  Branch (1845:8): [True: 0, False: 1.78k]
  ------------------
 1846|      0|        uprv_free(fullName);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1847|      0|        fullName = fullNameBuffer;
 1848|      0|    }
 1849|       |
 1850|       |    // not a loop:
 1851|       |    // just an easy way to have a common error-exit
 1852|       |    // without goto and without another function
 1853|  1.78k|    do {
 1854|  1.78k|        char *separator;
 1855|  1.78k|        char *field[5] = {nullptr};
 1856|  1.78k|        int32_t fieldLen[5] = {0};
 1857|  1.78k|        int32_t fieldIdx;
 1858|  1.78k|        int32_t variantField;
 1859|  1.78k|        int32_t length;
 1860|  1.78k|        UErrorCode err;
 1861|       |
 1862|       |        /* preset all fields to empty */
 1863|  1.78k|        language[0] = script[0] = country[0] = 0;
 1864|       |
 1865|  1.78k|        const auto parse = [canonicalize](std::string_view localeID,
 1866|  1.78k|                                          char* name,
 1867|  1.78k|                                          int32_t nameCapacity,
 1868|  1.78k|                                          UErrorCode& status) {
 1869|  1.78k|            return ByteSinkUtil::viaByteSinkToTerminatedChars(
 1870|  1.78k|                name, nameCapacity,
 1871|  1.78k|                [&](ByteSink& sink, UErrorCode& status) {
 1872|  1.78k|                    if (canonicalize) {
 1873|  1.78k|                        ulocimp_canonicalize(localeID, sink, status);
 1874|  1.78k|                    } else {
 1875|  1.78k|                        ulocimp_getName(localeID, sink, status);
 1876|  1.78k|                    }
 1877|  1.78k|                },
 1878|  1.78k|                status);
 1879|  1.78k|        };
 1880|       |
 1881|       |        // "canonicalize" the locale ID to ICU/Java format
 1882|  1.78k|        err = U_ZERO_ERROR;
 1883|  1.78k|        length = parse(localeID, fullName, sizeof fullNameBuffer, err);
 1884|       |
 1885|  1.78k|        if (err == U_BUFFER_OVERFLOW_ERROR || length >= static_cast<int32_t>(sizeof(fullNameBuffer))) {
  ------------------
  |  Branch (1885:13): [True: 0, False: 1.78k]
  |  Branch (1885:47): [True: 0, False: 1.78k]
  ------------------
 1886|      0|            U_ASSERT(baseName == nullptr);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1887|       |            /*Go to heap for the fullName if necessary*/
 1888|      0|            char* newFullName = static_cast<char*>(uprv_malloc(sizeof(char) * (length + 1)));
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1889|      0|            if (newFullName == nullptr) {
  ------------------
  |  Branch (1889:17): [True: 0, False: 0]
  ------------------
 1890|      0|                break; // error: out of memory
 1891|      0|            }
 1892|      0|            fullName = newFullName;
 1893|      0|            err = U_ZERO_ERROR;
 1894|      0|            length = parse(localeID, fullName, length + 1, err);
 1895|      0|        }
 1896|  1.78k|        if(U_FAILURE(err) || err == U_STRING_NOT_TERMINATED_WARNING) {
  ------------------
  |  Branch (1896:12): [True: 0, False: 1.78k]
  |  Branch (1896:30): [True: 0, False: 1.78k]
  ------------------
 1897|       |            /* should never occur */
 1898|      0|            break;
 1899|      0|        }
 1900|       |
 1901|  1.78k|        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|  1.78k|        separator = field[0] = fullName;
 1906|  1.78k|        fieldIdx = 1;
 1907|  1.78k|        char* at = uprv_strchr(fullName, '@');
  ------------------
  |  |   40|  1.78k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  1.78k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1908|  2.57k|        while ((separator = uprv_strchr(field[fieldIdx-1], SEP_CHAR)) != nullptr &&
  ------------------
  |  |   40|  2.57k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  2.57k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1908:16): [True: 795, False: 1.78k]
  ------------------
 1909|  2.57k|               fieldIdx < UPRV_LENGTHOF(field)-1 &&
  ------------------
  |  |   99|    795|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1909:16): [True: 795, False: 0]
  ------------------
 1910|  2.57k|               (at == nullptr || separator < at)) {
  ------------------
  |  Branch (1910:17): [True: 795, False: 0]
  |  Branch (1910:34): [True: 0, False: 0]
  ------------------
 1911|    795|            field[fieldIdx] = separator + 1;
 1912|    795|            fieldLen[fieldIdx - 1] = static_cast<int32_t>(separator - field[fieldIdx - 1]);
 1913|    795|            fieldIdx++;
 1914|    795|        }
 1915|       |        // variant may contain @foo or .foo POSIX cruft; remove it
 1916|  1.78k|        separator = uprv_strchr(field[fieldIdx-1], '@');
  ------------------
  |  |   40|  1.78k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  1.78k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1917|  1.78k|        char* sep2 = uprv_strchr(field[fieldIdx-1], '.');
  ------------------
  |  |   40|  1.78k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  1.78k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1918|  1.78k|        if (separator!=nullptr || sep2!=nullptr) {
  ------------------
  |  Branch (1918:13): [True: 0, False: 1.78k]
  |  Branch (1918:35): [True: 0, False: 1.78k]
  ------------------
 1919|      0|            if (separator==nullptr || (sep2!=nullptr && separator > sep2)) {
  ------------------
  |  Branch (1919:17): [True: 0, False: 0]
  |  Branch (1919:40): [True: 0, False: 0]
  |  Branch (1919:57): [True: 0, False: 0]
  ------------------
 1920|      0|                separator = sep2;
 1921|      0|            }
 1922|      0|            fieldLen[fieldIdx - 1] = static_cast<int32_t>(separator - field[fieldIdx - 1]);
 1923|  1.78k|        } else {
 1924|  1.78k|            fieldLen[fieldIdx - 1] = length - static_cast<int32_t>(field[fieldIdx - 1] - fullName);
 1925|  1.78k|        }
 1926|       |
 1927|  1.78k|        if (fieldLen[0] >= static_cast<int32_t>(sizeof(language)))
  ------------------
  |  Branch (1927:13): [True: 0, False: 1.78k]
  ------------------
 1928|      0|        {
 1929|      0|            break; // error: the language field is too long
 1930|      0|        }
 1931|       |
 1932|  1.78k|        variantField = 1; /* Usually the 2nd one, except when a script or country is also used. */
 1933|  1.78k|        if (fieldLen[0] > 0) {
  ------------------
  |  Branch (1933:13): [True: 1.33k, False: 447]
  ------------------
 1934|       |            /* We have a language */
 1935|  1.33k|            uprv_memcpy(language, fullName, fieldLen[0]);
  ------------------
  |  |   42|  1.33k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  1.33k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  1.33k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  1.33k|    _Pragma("clang diagnostic push") \
  |  |   45|  1.33k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  1.33k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.33k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  1.33k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.33k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  1.33k|    _Pragma("clang diagnostic pop") \
  |  |   49|  1.33k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  1.33k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  1.33k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  1.33k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1936|  1.33k|            language[fieldLen[0]] = 0;
 1937|  1.33k|        }
 1938|  1.78k|        if (fieldLen[1] == 4 && uprv_isASCIILetter(field[1][0]) &&
  ------------------
  |  | 1514|    183|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1938:13): [True: 183, False: 1.59k]
  |  Branch (1938:33): [True: 183, False: 0]
  ------------------
 1939|  1.78k|                uprv_isASCIILetter(field[1][1]) && uprv_isASCIILetter(field[1][2]) &&
  ------------------
  |  | 1514|    183|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                              uprv_isASCIILetter(field[1][1]) && uprv_isASCIILetter(field[1][2]) &&
  ------------------
  |  | 1514|    183|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1939:17): [True: 183, False: 0]
  |  Branch (1939:52): [True: 183, False: 0]
  ------------------
 1940|  1.78k|                uprv_isASCIILetter(field[1][3])) {
  ------------------
  |  | 1514|    183|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1940:17): [True: 183, False: 0]
  ------------------
 1941|       |            /* We have at least a script */
 1942|    183|            uprv_memcpy(script, field[1], fieldLen[1]);
  ------------------
  |  |   42|    183|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    183|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    183|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    183|    _Pragma("clang diagnostic push") \
  |  |   45|    183|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    183|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    183|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    183|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    183|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    183|    _Pragma("clang diagnostic pop") \
  |  |   49|    183|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    183|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    183|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    183|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1943|    183|            script[fieldLen[1]] = 0;
 1944|    183|            variantField++;
 1945|    183|        }
 1946|       |
 1947|  1.78k|        if (fieldLen[variantField] == 2 || fieldLen[variantField] == 3) {
  ------------------
  |  Branch (1947:13): [True: 603, False: 1.17k]
  |  Branch (1947:44): [True: 7, False: 1.17k]
  ------------------
 1948|       |            /* We have a country */
 1949|    610|            uprv_memcpy(country, field[variantField], fieldLen[variantField]);
  ------------------
  |  |   42|    610|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    610|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    610|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    610|    _Pragma("clang diagnostic push") \
  |  |   45|    610|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    610|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    610|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    610|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    610|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    610|    _Pragma("clang diagnostic pop") \
  |  |   49|    610|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    610|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    610|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    610|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1950|    610|            country[fieldLen[variantField]] = 0;
 1951|    610|            variantField++;
 1952|  1.17k|        } else if (fieldLen[variantField] == 0) {
  ------------------
  |  Branch (1952:20): [True: 1.17k, False: 0]
  ------------------
 1953|  1.17k|            variantField++; /* script or country empty but variant in next field (i.e. en__POSIX) */
 1954|  1.17k|        }
 1955|       |
 1956|  1.78k|        if (fieldLen[variantField] > 0) {
  ------------------
  |  Branch (1956:13): [True: 2, False: 1.77k]
  ------------------
 1957|       |            /* We have a variant */
 1958|      2|            variantBegin = static_cast<int32_t>(field[variantField] - fullName);
 1959|      2|        }
 1960|       |
 1961|  1.78k|        err = U_ZERO_ERROR;
 1962|  1.78k|        initBaseName(err);
 1963|  1.78k|        if (U_FAILURE(err)) {
  ------------------
  |  Branch (1963:13): [True: 0, False: 1.78k]
  ------------------
 1964|      0|            break;
 1965|      0|        }
 1966|       |
 1967|  1.78k|        if (canonicalize) {
  ------------------
  |  Branch (1967:13): [True: 885, False: 895]
  ------------------
 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|  1.78k|        return *this;
 1984|  1.78k|    } 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|      0|    setToBogus();
 1988|       |
 1989|      0|    return *this;
 1990|  1.78k|}
_ZN6icu_786Locale12initBaseNameER10UErrorCode:
 1999|  1.78k|Locale::initBaseName(UErrorCode &status) {
 2000|  1.78k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2000:9): [True: 0, False: 1.78k]
  ------------------
 2001|      0|        return;
 2002|      0|    }
 2003|  1.78k|    U_ASSERT(baseName==nullptr || baseName==fullName);
  ------------------
  |  |   35|  1.78k|#   define U_ASSERT(exp) (void)0
  ------------------
 2004|  1.78k|    const char *atPtr = uprv_strchr(fullName, '@');
  ------------------
  |  |   40|  1.78k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  1.78k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2005|  1.78k|    const char *eqPtr = uprv_strchr(fullName, '=');
  ------------------
  |  |   40|  1.78k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  1.78k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2006|  1.78k|    if (atPtr && eqPtr && atPtr < eqPtr) {
  ------------------
  |  Branch (2006:9): [True: 0, False: 1.78k]
  |  Branch (2006:18): [True: 0, False: 0]
  |  Branch (2006:27): [True: 0, False: 0]
  ------------------
 2007|       |        // Key words exist.
 2008|      0|        int32_t baseNameLength = static_cast<int32_t>(atPtr - fullName);
 2009|      0|        char* newBaseName = static_cast<char*>(uprv_malloc(baseNameLength + 1));
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2010|      0|        if (newBaseName == nullptr) {
  ------------------
  |  Branch (2010:13): [True: 0, False: 0]
  ------------------
 2011|      0|            status = U_MEMORY_ALLOCATION_ERROR;
 2012|      0|            return;
 2013|      0|        }
 2014|      0|        baseName = newBaseName;
 2015|      0|        uprv_strncpy(baseName, fullName, baseNameLength);
  ------------------
  |  |   43|      0|#define uprv_strncpy(dst, src, size) U_STANDARD_CPP_NAMESPACE strncpy(dst, src, size)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2016|      0|        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|      0|        if (variantBegin > baseNameLength) {
  ------------------
  |  Branch (2021:13): [True: 0, False: 0]
  ------------------
 2022|      0|            variantBegin = baseNameLength;
 2023|      0|        }
 2024|  1.78k|    } else {
 2025|  1.78k|        baseName = fullName;
 2026|  1.78k|    }
 2027|  1.78k|}
_ZN6icu_786Locale10setToBogusEv:
 2037|  4.12k|Locale::setToBogus() {
 2038|       |    /* Free our current storage */
 2039|  4.12k|    if((baseName != fullName) && (baseName != fullNameBuffer)) {
  ------------------
  |  Branch (2039:8): [True: 4.12k, False: 0]
  |  Branch (2039:34): [True: 4.12k, False: 0]
  ------------------
 2040|  4.12k|        uprv_free(baseName);
  ------------------
  |  | 1503|  4.12k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  4.12k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.12k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.12k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2041|  4.12k|    }
 2042|  4.12k|    baseName = nullptr;
 2043|  4.12k|    if(fullName != fullNameBuffer) {
  ------------------
  |  Branch (2043:8): [True: 0, False: 4.12k]
  ------------------
 2044|      0|        uprv_free(fullName);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2045|      0|        fullName = fullNameBuffer;
 2046|      0|    }
 2047|  4.12k|    *fullNameBuffer = 0;
 2048|  4.12k|    *language = 0;
 2049|  4.12k|    *script = 0;
 2050|  4.12k|    *country = 0;
 2051|  4.12k|    fIsBogus = true;
 2052|  4.12k|    variantBegin = 0;
 2053|  4.12k|}
_ZN6icu_786Locale10getDefaultEv:
 2057|  1.80k|{
 2058|  1.80k|    {
 2059|  1.80k|        Mutex lock(&gDefaultLocaleMutex);
 2060|  1.80k|        if (gDefaultLocale != nullptr) {
  ------------------
  |  Branch (2060:13): [True: 1.80k, False: 1]
  ------------------
 2061|  1.80k|            return *gDefaultLocale;
 2062|  1.80k|        }
 2063|  1.80k|    }
 2064|      1|    UErrorCode status = U_ZERO_ERROR;
 2065|      1|    return *locale_set_default_internal(nullptr, status);
 2066|  1.80k|}
_ZN6icu_786Locale14createFromNameEPKc:
 2204|    447|{
 2205|    447|    if (name) {
  ------------------
  |  Branch (2205:9): [True: 447, False: 0]
  ------------------
 2206|    447|        Locale l("");
 2207|    447|        l.init(name, false);
 2208|    447|        return l;
 2209|    447|    }
 2210|      0|    else {
 2211|      0|        return getDefault();
 2212|      0|    }
 2213|    447|}
_ZN6icu_786Locale14setFromPOSIXIDEPKc:
 2267|    885|{
 2268|    885|    init(posixID, true);
 2269|    885|}
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|  1.78k|                                          UErrorCode& status) {
 1869|  1.78k|            return ByteSinkUtil::viaByteSinkToTerminatedChars(
 1870|  1.78k|                name, nameCapacity,
 1871|  1.78k|                [&](ByteSink& sink, UErrorCode& status) {
 1872|  1.78k|                    if (canonicalize) {
 1873|  1.78k|                        ulocimp_canonicalize(localeID, sink, status);
 1874|  1.78k|                    } else {
 1875|  1.78k|                        ulocimp_getName(localeID, sink, status);
 1876|  1.78k|                    }
 1877|  1.78k|                },
 1878|  1.78k|                status);
 1879|  1.78k|        };
locid.cpp:_ZZZN6icu_786Locale4initENS_11StringPieceEaENK3$_0clENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEPciR10UErrorCodeENKUlRNS_8ByteSinkESA_E_clESC_SA_:
 1871|  1.78k|                [&](ByteSink& sink, UErrorCode& status) {
 1872|  1.78k|                    if (canonicalize) {
  ------------------
  |  Branch (1872:25): [True: 885, False: 895]
  ------------------
 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|    895|                    } else {
 1875|    895|                        ulocimp_getName(localeID, sink, status);
  ------------------
  |  | 1204|    895|#define ulocimp_getName U_ICU_ENTRY_POINT_RENAME(ulocimp_getName)
  |  |  ------------------
  |  |  |  |  123|    895|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    895|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    895|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1876|    895|                    }
 1877|  1.78k|                },
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|}

_Z27ulocimp_addLikelySubtags_78PKcR10UErrorCode:
  290|    447|                         UErrorCode& status) {
  291|    447|    return icu::ByteSinkUtil::viaByteSinkToCharString(
  292|    447|        [&](icu::ByteSink& sink, UErrorCode& status) {
  293|    447|            ulocimp_addLikelySubtags(localeID, sink, status);
  294|    447|        },
  295|    447|        status);
  296|    447|}
_Z27ulocimp_addLikelySubtags_78PKcRN6icu_788ByteSinkER10UErrorCode:
  301|    447|                         UErrorCode& status) {
  302|    447|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (302:9): [True: 0, False: 447]
  ------------------
  303|    447|    if (localeID == nullptr) {
  ------------------
  |  Branch (303:9): [True: 0, False: 447]
  ------------------
  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|    447|    icu::CharString localeBuffer = ulocimp_canonicalize(localeID, status);
  ------------------
  |  | 1197|    447|#define ulocimp_canonicalize U_ICU_ENTRY_POINT_RENAME(ulocimp_canonicalize)
  |  |  ------------------
  |  |  |  |  123|    447|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    447|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    447|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  307|    447|    _uloc_addLikelySubtags(localeBuffer.data(), sink, status);
  308|    447|}
loclikely.cpp:_ZN12_GLOBAL__N_122_uloc_addLikelySubtagsEPKcRN6icu_788ByteSinkER10UErrorCode:
  136|    447|                       UErrorCode& err) {
  137|    447|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (137:9): [True: 0, False: 447]
  ------------------
  138|      0|        return;
  139|      0|    }
  140|       |
  141|    447|    if (localeID == nullptr) {
  ------------------
  |  Branch (141:9): [True: 0, False: 447]
  ------------------
  142|      0|        err = U_ILLEGAL_ARGUMENT_ERROR;
  143|      0|        return;
  144|      0|    }
  145|       |
  146|    447|    icu::CharString lang;
  147|    447|    icu::CharString script;
  148|    447|    icu::CharString region;
  149|    447|    icu::CharString variant;
  150|    447|    const char* trailing = nullptr;
  151|    447|    ulocimp_getSubtags(localeID, &lang, &script, &region, &variant, &trailing, err);
  ------------------
  |  | 1209|    447|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|    447|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    447|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    447|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  152|    447|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (152:9): [True: 0, False: 447]
  ------------------
  153|      0|        return;
  154|      0|    }
  155|       |
  156|    447|    if (!CHECK_TRAILING_VARIANT_SIZE(variant.data(), variant.length())) {
  ------------------
  |  Branch (156:9): [True: 0, False: 447]
  ------------------
  157|      0|        err = U_ILLEGAL_ARGUMENT_ERROR;
  158|      0|        return;
  159|      0|    }
  160|       |
  161|    447|    if (lang.length() == 4) {
  ------------------
  |  Branch (161:9): [True: 0, False: 447]
  ------------------
  162|      0|        if (script.isEmpty()) {
  ------------------
  |  Branch (162:13): [True: 0, False: 0]
  ------------------
  163|      0|            script = std::move(lang);
  164|      0|            lang.clear();
  165|      0|        } else {
  166|      0|            err = U_ILLEGAL_ARGUMENT_ERROR;
  167|      0|            return;
  168|      0|        }
  169|    447|    } else if (lang.length() > 8) {
  ------------------
  |  Branch (169:16): [True: 0, False: 447]
  ------------------
  170|      0|        err = U_ILLEGAL_ARGUMENT_ERROR;
  171|      0|        return;
  172|      0|    }
  173|       |
  174|    447|    int32_t trailingLength = static_cast<int32_t>(uprv_strlen(trailing));
  ------------------
  |  |   37|    447|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    447|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  175|       |
  176|    447|    const icu::LikelySubtags* likelySubtags = icu::LikelySubtags::getSingleton(err);
  177|    447|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (177:9): [True: 0, False: 447]
  ------------------
  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|    447|    icu::Locale l = icu::Locale::createFromName(localeID);
  183|    447|    if (l.isBogus()) {
  ------------------
  |  Branch (183:9): [True: 0, False: 447]
  ------------------
  184|      0|        err = U_ILLEGAL_ARGUMENT_ERROR;
  185|      0|        return;
  186|      0|    }
  187|    447|    icu::LSR lsr = likelySubtags->makeMaximizedLsrFrom(l, true, err);
  188|    447|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (188:9): [True: 0, False: 447]
  ------------------
  189|      0|        return;
  190|      0|    }
  191|    447|    const char* language = lsr.language;
  192|    447|    if (uprv_strcmp(language, "und") == 0) {
  ------------------
  |  |   38|    447|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    447|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (192:9): [True: 0, False: 447]
  ------------------
  193|      0|        language = "";
  194|      0|    }
  195|    447|    createTagStringWithAlternates(
  196|    447|        language,
  197|    447|        static_cast<int32_t>(uprv_strlen(language)),
  ------------------
  |  |   37|    447|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    447|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  198|    447|        lsr.script,
  199|    447|        static_cast<int32_t>(uprv_strlen(lsr.script)),
  ------------------
  |  |   37|    447|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    447|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  200|    447|        lsr.region,
  201|    447|        static_cast<int32_t>(uprv_strlen(lsr.region)),
  ------------------
  |  |   37|    447|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    447|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  202|    447|        variant.data(),
  203|    447|        variant.length(),
  204|    447|        trailing,
  205|    447|        trailingLength,
  206|    447|        sink,
  207|    447|        err);
  208|    447|}
loclikely.cpp:_ZN12_GLOBAL__N_127CHECK_TRAILING_VARIANT_SIZEEPKci:
  119|    447|bool CHECK_TRAILING_VARIANT_SIZE(const char* variant, int32_t variantLength) {
  120|    447|    int32_t count = 0;
  121|    447|    for (int32_t i = 0; i < variantLength; i++) {
  ------------------
  |  Branch (121:25): [True: 0, False: 447]
  ------------------
  122|      0|        if (_isIDSeparator(variant[i])) {
  ------------------
  |  Branch (122:13): [True: 0, False: 0]
  ------------------
  123|      0|            count = 0;
  124|      0|        } else if (count == 8) {
  ------------------
  |  Branch (124:20): [True: 0, False: 0]
  ------------------
  125|      0|            return false;
  126|      0|        } else {
  127|      0|            count++;
  128|      0|        }
  129|      0|    }
  130|    447|    return true;
  131|    447|}
loclikely.cpp:_ZN12_GLOBAL__N_129createTagStringWithAlternatesEPKciS1_iS1_iS1_iS1_iRN6icu_788ByteSinkER10UErrorCode:
   76|    447|    UErrorCode& err) {
   77|    447|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (77:9): [True: 0, False: 447]
  ------------------
   78|      0|        return;
   79|      0|    }
   80|       |
   81|    447|    if (langLength >= ULOC_LANG_CAPACITY ||
  ------------------
  |  |  251|    894|#define ULOC_LANG_CAPACITY 12
  ------------------
  |  Branch (81:9): [True: 0, False: 447]
  ------------------
   82|    447|            scriptLength >= ULOC_SCRIPT_CAPACITY ||
  ------------------
  |  |  271|    894|#define ULOC_SCRIPT_CAPACITY 6
  ------------------
  |  Branch (82:13): [True: 0, False: 447]
  ------------------
   83|    447|            regionLength >= ULOC_COUNTRY_CAPACITY) {
  ------------------
  |  |  258|    447|#define ULOC_COUNTRY_CAPACITY 4
  ------------------
  |  Branch (83:13): [True: 0, False: 447]
  ------------------
   84|      0|        err = U_ILLEGAL_ARGUMENT_ERROR;
   85|      0|        return;
   86|      0|    }
   87|       |
   88|    447|    if (langLength > 0) {
  ------------------
  |  Branch (88:9): [True: 447, False: 0]
  ------------------
   89|    447|        sink.Append(lang, langLength);
   90|    447|    }
   91|       |
   92|    447|    if (scriptLength > 0) {
  ------------------
  |  Branch (92:9): [True: 447, False: 0]
  ------------------
   93|    447|        sink.Append("_", 1);
   94|    447|        sink.Append(script, scriptLength);
   95|    447|    }
   96|       |
   97|    447|    if (regionLength > 0) {
  ------------------
  |  Branch (97:9): [True: 447, False: 0]
  ------------------
   98|    447|        sink.Append("_", 1);
   99|    447|        sink.Append(region, regionLength);
  100|    447|    }
  101|       |
  102|    447|    if (variantLength > 0) {
  ------------------
  |  Branch (102:9): [True: 0, False: 447]
  ------------------
  103|      0|        if (regionLength == 0) {
  ------------------
  |  Branch (103:13): [True: 0, False: 0]
  ------------------
  104|       |            /* extra separator is required */
  105|      0|            sink.Append("_", 1);
  106|      0|        }
  107|      0|        sink.Append("_", 1);
  108|      0|        sink.Append(variant, variantLength);
  109|      0|    }
  110|       |
  111|    447|    if (trailingLength > 0) {
  ------------------
  |  Branch (111:9): [True: 0, False: 447]
  ------------------
  112|       |        /*
  113|       |         * Copy the trailing data into the supplied buffer.
  114|       |         */
  115|      0|        sink.Append(trailing, trailingLength);
  116|      0|    }
  117|    447|}
loclikely.cpp:_ZZ27ulocimp_addLikelySubtags_78PKcR10UErrorCodeENK3$_0clERN6icu_788ByteSinkES2_:
  292|    447|        [&](icu::ByteSink& sink, UErrorCode& status) {
  293|    447|            ulocimp_addLikelySubtags(localeID, sink, status);
  ------------------
  |  | 1196|    447|#define ulocimp_addLikelySubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_addLikelySubtags)
  |  |  ------------------
  |  |  |  |  123|    447|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    447|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    447|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  294|    447|        },

_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|    447|const LikelySubtags *LikelySubtags::getSingleton(UErrorCode &errorCode) {
  475|    447|    if (U_FAILURE(errorCode)) { return nullptr; }
  ------------------
  |  Branch (475:9): [True: 0, False: 447]
  ------------------
  476|    447|    umtx_initOnce(gInitOnce, &LikelySubtags::initLikelySubtags, errorCode);
  477|    447|    return gLikelySubtags;
  478|    447|}
_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|    447|                                         UErrorCode &errorCode) const {
  524|    447|    if (U_FAILURE(errorCode)) { return {}; }
  ------------------
  |  Branch (524:9): [True: 0, False: 447]
  ------------------
  525|    447|    if (locale.isBogus()) {
  ------------------
  |  Branch (525:9): [True: 0, False: 447]
  ------------------
  526|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  527|      0|        return {};
  528|      0|    }
  529|    447|    const char *name = locale.getName();
  530|    447|    if (!returnInputIfUnmatch && uprv_isAtSign(name[0]) && name[1] == 'x' && name[2] == '=') {  // name.startsWith("@x=")
  ------------------
  |  |  133|    447|#   define uprv_isAtSign(c) ((c)=='@')
  |  |  ------------------
  |  |  |  Branch (133:29): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (530:9): [True: 0, False: 447]
  |  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|    447|    LSR max = makeMaximizedLsr(locale.getLanguage(), locale.getScript(), locale.getCountry(),
  536|    447|                            locale.getVariant(), returnInputIfUnmatch, errorCode);
  537|       |
  538|    447|    if (uprv_strlen(max.language) == 0 &&
  ------------------
  |  |   37|    447|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    447|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (538:9): [True: 0, False: 447]
  ------------------
  539|    447|        uprv_strlen(max.script) == 0 &&
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (539:9): [True: 0, False: 0]
  ------------------
  540|    447|        uprv_strlen(max.region) == 0) {
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (540:9): [True: 0, 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|      0|        return LSR(locale.getLanguage(), locale.getScript(), locale.getCountry(), LSR::EXPLICIT_LSR, errorCode);
  546|      0|    }
  547|    447|    return max;
  548|    447|}
_ZNK6icu_7813LikelySubtags16makeMaximizedLsrEPKcS2_S2_S2_bR10UErrorCode:
  562|    447|                                     UErrorCode &errorCode) const {
  563|    447|    if (U_FAILURE(errorCode)) { return {}; }
  ------------------
  |  Branch (563:9): [True: 0, False: 447]
  ------------------
  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|    447|    if (!returnInputIfUnmatch) {
  ------------------
  |  Branch (567:9): [True: 0, False: 447]
  ------------------
  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|    447|    language = getCanonical(languageAliases, language);
  603|       |    // (We have no script mappings.)
  604|    447|    region = getCanonical(regionAliases, region);
  605|    447|    return maximize(language, script, region, returnInputIfUnmatch, errorCode);
  606|    447|}
_ZNK6icu_7813LikelySubtags8maximizeEPKcS2_S2_bR10UErrorCode:
  610|    447|                             UErrorCode &errorCode) const {
  611|    447|    if (U_FAILURE(errorCode)) { return {}; }
  ------------------
  |  Branch (611:9): [True: 0, False: 447]
  ------------------
  612|    447|    return maximize({language, static_cast<int32_t>(uprv_strlen(language))},
  ------------------
  |  |   37|    447|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    447|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  613|    447|                    {script, static_cast<int32_t>(uprv_strlen(script))},
  ------------------
  |  |   37|    447|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    447|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  614|    447|                    {region, static_cast<int32_t>(uprv_strlen(region))},
  ------------------
  |  |   37|    447|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    447|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  615|    447|                    returnInputIfUnmatch,
  616|    447|                    errorCode);
  617|    447|}
_ZNK6icu_7813LikelySubtags8maximizeENS_11StringPieceES1_S1_bR10UErrorCode:
  632|    447|                             UErrorCode &errorCode) const {
  633|    447|    if (U_FAILURE(errorCode)) { return {}; }
  ------------------
  |  Branch (633:9): [True: 0, False: 447]
  ------------------
  634|    447|    if (language.compare("und") == 0) {
  ------------------
  |  Branch (634:9): [True: 0, False: 447]
  ------------------
  635|      0|        language = "";
  636|      0|    }
  637|    447|    if (script.compare("Zzzz") == 0) {
  ------------------
  |  Branch (637:9): [True: 0, False: 447]
  ------------------
  638|      0|        script = "";
  639|      0|    }
  640|    447|    if (region.compare("ZZ") == 0) {
  ------------------
  |  Branch (640:9): [True: 0, False: 447]
  ------------------
  641|      0|        region = "";
  642|      0|    }
  643|    447|    if (!script.empty() && !region.empty() && !language.empty()) {
  ------------------
  |  Branch (643:9): [True: 70, False: 377]
  |  Branch (643:28): [True: 0, False: 70]
  |  Branch (643:47): [True: 0, False: 0]
  ------------------
  644|      0|        return LSR(language, script, region, LSR::EXPLICIT_LSR, errorCode);  // already maximized
  645|      0|    }
  646|    447|    bool retainLanguage = false;
  647|    447|    bool retainScript = false;
  648|    447|    bool retainRegion = false;
  649|       |
  650|    447|    BytesTrie iter(trie);
  651|    447|    uint64_t state;
  652|    447|    int32_t value;
  653|       |    // Small optimization: Array lookup for first language letter.
  654|    447|    int32_t c0;
  655|    447|    if (0 <= (c0 = uprv_lowerOrdinal(language.data()[0])) && c0 <= 25 &&
  ------------------
  |  Branch (655:9): [True: 447, False: 0]
  |  Branch (655:62): [True: 447, False: 0]
  ------------------
  656|    447|            language.length() >= 2 &&
  ------------------
  |  Branch (656:13): [True: 447, False: 0]
  ------------------
  657|    447|            (state = trieFirstLetterStates[c0]) != 0) {
  ------------------
  |  Branch (657:13): [True: 447, False: 0]
  ------------------
  658|    447|        value = trieNext(iter.resetToState64(state), language, 1);
  659|    447|    } else {
  660|      0|        value = trieNext(iter, language, 0);
  661|      0|    }
  662|    447|    bool matchLanguage = (value >= 0);
  663|    447|    bool matchScript = false;
  664|    447|    if (value >= 0) {
  ------------------
  |  Branch (664:9): [True: 447, False: 0]
  ------------------
  665|    447|        retainLanguage = !language.empty();
  666|    447|        state = iter.getState64();
  667|    447|    } else {
  668|      0|        retainLanguage = true;
  669|      0|        iter.resetToState64(trieUndState);  // "und" ("*")
  670|      0|        state = 0;
  671|      0|    }
  672|       |
  673|    447|    if (value >= 0 && !script.empty()) {
  ------------------
  |  Branch (673:9): [True: 447, False: 0]
  |  Branch (673:23): [True: 70, False: 377]
  ------------------
  674|     70|        matchScript = true;
  675|     70|    }
  676|    447|    if (value > 0) {
  ------------------
  |  Branch (676:9): [True: 384, False: 63]
  ------------------
  677|       |        // Intermediate or final value from just language.
  678|    384|        if (value == SKIP_SCRIPT) {
  ------------------
  |  Branch (678:13): [True: 7, False: 377]
  ------------------
  679|      7|            value = 0;
  680|      7|        }
  681|    384|        retainScript = !script.empty();
  682|    384|    } else {
  683|     63|        value = trieNext(iter, script, 0);
  684|     63|        if (value >= 0) {
  ------------------
  |  Branch (684:13): [True: 30, False: 33]
  ------------------
  685|     30|            retainScript = !script.empty();
  686|     30|            state = iter.getState64();
  687|     33|        } else {
  688|     33|            retainScript = true;
  689|     33|            if (state == 0) {
  ------------------
  |  Branch (689:17): [True: 0, False: 33]
  ------------------
  690|      0|                iter.resetToState64(trieUndZzzzState);  // "und-Zzzz" ("**")
  691|     33|            } else {
  692|     33|                iter.resetToState64(state);
  693|     33|                value = trieNext(iter, "", 0);
  694|     33|                U_ASSERT(value >= 0);
  ------------------
  |  |   35|     33|#   define U_ASSERT(exp) (void)0
  ------------------
  695|     33|                state = iter.getState64();
  696|     33|            }
  697|     33|        }
  698|     63|    }
  699|       |
  700|    447|    bool matchRegion = false;
  701|    447|    if (value > 0) {
  ------------------
  |  Branch (701:9): [True: 386, False: 61]
  ------------------
  702|       |        // Final value from just language or language+script.
  703|    386|        retainRegion = !region.empty();
  704|    386|    } else {
  705|     61|        value = trieNext(iter, region, 0);
  706|     61|        if (value >= 0) {
  ------------------
  |  Branch (706:13): [True: 61, False: 0]
  ------------------
  707|     61|            if (!region.empty() && !isMacroregion(region, errorCode)) {
  ------------------
  |  Branch (707:17): [True: 0, False: 61]
  |  Branch (707:36): [True: 0, False: 0]
  ------------------
  708|      0|                retainRegion = true;
  709|      0|                matchRegion = true;
  710|      0|            }
  711|     61|        } else {
  712|      0|            retainRegion = true;
  713|      0|            if (state == 0) {
  ------------------
  |  Branch (713:17): [True: 0, False: 0]
  ------------------
  714|      0|                value = defaultLsrIndex;
  715|      0|            } else {
  716|      0|                iter.resetToState64(state);
  717|      0|                value = trieNext(iter, "", 0);
  718|      0|                U_ASSERT(value != 0);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
  719|       |                // For the case of und_Latn
  720|      0|                if (value < 0) {
  ------------------
  |  Branch (720:21): [True: 0, False: 0]
  ------------------
  721|      0|                    retainLanguage = !language.empty();
  722|      0|                    retainScript = !script.empty();
  723|      0|                    retainRegion = !region.empty();
  724|       |                    // Fallback to und_$region =>
  725|      0|                    iter.resetToState64(trieUndState);  // "und" ("*")
  726|      0|                    value = trieNext(iter, "", 0);
  727|      0|                    U_ASSERT(value == 0);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
  728|      0|                    int64_t trieUndEmptyState = iter.getState64();
  729|      0|                    value = trieNext(iter, region, 0);
  730|       |                    // Fallback to und =>
  731|      0|                    if (value < 0) {
  ------------------
  |  Branch (731:25): [True: 0, False: 0]
  ------------------
  732|      0|                        iter.resetToState64(trieUndEmptyState);
  733|      0|                        value = trieNext(iter, "", 0);
  734|      0|                        U_ASSERT(value > 0);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
  735|      0|                    }
  736|      0|                }
  737|      0|            }
  738|      0|        }
  739|     61|    }
  740|    447|    U_ASSERT(value < lsrsLength);
  ------------------
  |  |   35|    447|#   define U_ASSERT(exp) (void)0
  ------------------
  741|    447|    if (returnInputIfUnmatch &&
  ------------------
  |  Branch (741:9): [True: 447, False: 0]
  ------------------
  742|    447|        (!(matchLanguage || matchScript || (matchRegion && language.empty())))) {
  ------------------
  |  Branch (742:12): [True: 447, False: 0]
  |  Branch (742:29): [True: 0, False: 0]
  |  Branch (742:45): [True: 0, False: 0]
  |  Branch (742:60): [True: 0, False: 0]
  ------------------
  743|      0|      return LSR("", "", "", LSR::EXPLICIT_LSR, errorCode);  // no matching.
  744|      0|    }
  745|    447|    if (language.empty()) {
  ------------------
  |  Branch (745:9): [True: 0, False: 447]
  ------------------
  746|      0|        language = StringPiece("und");
  747|      0|    }
  748|       |
  749|    447|    if (!(retainLanguage || retainScript || retainRegion)) {
  ------------------
  |  Branch (749:11): [True: 447, False: 0]
  |  Branch (749:29): [True: 0, False: 0]
  |  Branch (749:45): [True: 0, False: 0]
  ------------------
  750|      0|        U_ASSERT(value >= 0);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
  751|       |        // Quickly return a copy of the lookup-result LSR
  752|       |        // without new allocation of the subtags.
  753|      0|        const LSR &matched = lsrs[value];
  754|      0|        return LSR(matched.language, matched.script, matched.region, matched.flags);
  755|      0|    }
  756|    447|    if (!retainLanguage) {
  ------------------
  |  Branch (756:9): [True: 0, False: 447]
  ------------------
  757|      0|        U_ASSERT(value >= 0);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
  758|      0|        language = lsrs[value].language;
  759|      0|    }
  760|    447|    if (!retainScript) {
  ------------------
  |  Branch (760:9): [True: 377, False: 70]
  ------------------
  761|    377|        U_ASSERT(value >= 0);
  ------------------
  |  |   35|    377|#   define U_ASSERT(exp) (void)0
  ------------------
  762|    377|        script = lsrs[value].script;
  763|    377|    }
  764|    447|    if (!retainRegion) {
  ------------------
  |  Branch (764:9): [True: 447, False: 0]
  ------------------
  765|    447|        U_ASSERT(value >= 0);
  ------------------
  |  |   35|    447|#   define U_ASSERT(exp) (void)0
  ------------------
  766|    447|        region = lsrs[value].region;
  767|    447|    }
  768|    447|    int32_t retainMask = (retainLanguage ? 4 : 0) + (retainScript ? 2 : 0) + (retainRegion ? 1 : 0);
  ------------------
  |  Branch (768:27): [True: 447, False: 0]
  |  Branch (768:54): [True: 70, False: 377]
  |  Branch (768:79): [True: 0, False: 447]
  ------------------
  769|       |    // retainOldMask flags = LSR explicit-subtag flags
  770|    447|    return LSR(language, script, region, retainMask, errorCode);
  771|    447|}
_ZN6icu_7813LikelySubtags8trieNextERNS_9BytesTrieEPKci:
  873|     33|int32_t LikelySubtags::trieNext(BytesTrie &iter, const char *s, int32_t i) {
  874|     33|    UStringTrieResult result;
  875|     33|    uint8_t c;
  876|     33|    if ((c = s[i]) == 0) {
  ------------------
  |  Branch (876:9): [True: 33, False: 0]
  ------------------
  877|     33|        result = iter.next(u'*');
  878|     33|    } 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|     33|    switch (result) {
  897|      0|    case USTRINGTRIE_NO_MATCH: return -1;
  ------------------
  |  Branch (897:5): [True: 0, False: 33]
  ------------------
  898|     31|    case USTRINGTRIE_NO_VALUE: return 0;
  ------------------
  |  Branch (898:5): [True: 31, False: 2]
  ------------------
  899|      0|    case USTRINGTRIE_INTERMEDIATE_VALUE:
  ------------------
  |  Branch (899:5): [True: 0, False: 33]
  ------------------
  900|      0|        U_ASSERT(iter.getValue() == SKIP_SCRIPT);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
  901|      0|        return SKIP_SCRIPT;
  902|      2|    case USTRINGTRIE_FINAL_VALUE: return iter.getValue();
  ------------------
  |  Branch (902:5): [True: 2, False: 31]
  ------------------
  903|      0|    default: return -1;
  ------------------
  |  Branch (903:5): [True: 0, False: 33]
  ------------------
  904|     33|    }
  905|     33|}
_ZN6icu_7813LikelySubtags8trieNextERNS_9BytesTrieENS_11StringPieceEi:
  906|    571|int32_t LikelySubtags::trieNext(BytesTrie &iter, StringPiece s, int32_t i) {
  907|    571|    UStringTrieResult result;
  908|    571|    uint8_t c;
  909|    571|    if (s.length() == i) {
  ------------------
  |  Branch (909:9): [True: 85, False: 486]
  ------------------
  910|     85|        result = iter.next(u'*');
  911|    486|    } else {
  912|    486|        c = s.data()[i];
  913|    716|        for (;;) {
  914|    716|            c = uprv_invCharToAscii(c);
  ------------------
  |  |  173|    716|#   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|    716|            if (i+1 != s.length()) {
  ------------------
  |  Branch (917:17): [True: 252, False: 464]
  ------------------
  918|    252|                if (!USTRINGTRIE_HAS_NEXT(iter.next(c))) {
  ------------------
  |  |   95|    252|#define USTRINGTRIE_HAS_NEXT(result) ((result)&1)
  ------------------
  |  Branch (918:21): [True: 22, False: 230]
  ------------------
  919|     22|                    return -1;
  920|     22|                }
  921|    230|                c = s.data()[++i];
  922|    464|            } else {
  923|       |                // last character of this subtag
  924|    464|                result = iter.next(c | 0x80);
  925|    464|                break;
  926|    464|            }
  927|    716|        }
  928|    486|    }
  929|    549|    switch (result) {
  930|     11|    case USTRINGTRIE_NO_MATCH: return -1;
  ------------------
  |  Branch (930:5): [True: 11, False: 538]
  ------------------
  931|     86|    case USTRINGTRIE_NO_VALUE: return 0;
  ------------------
  |  Branch (931:5): [True: 86, False: 463]
  ------------------
  932|      7|    case USTRINGTRIE_INTERMEDIATE_VALUE:
  ------------------
  |  Branch (932:5): [True: 7, False: 542]
  ------------------
  933|      7|        U_ASSERT(iter.getValue() == SKIP_SCRIPT);
  ------------------
  |  |   35|      7|#   define U_ASSERT(exp) (void)0
  ------------------
  934|      7|        return SKIP_SCRIPT;
  935|    445|    case USTRINGTRIE_FINAL_VALUE: return iter.getValue();
  ------------------
  |  Branch (935:5): [True: 445, False: 104]
  ------------------
  936|      0|    default: return -1;
  ------------------
  |  Branch (936:5): [True: 0, False: 549]
  ------------------
  937|    549|    }
  938|    549|}
_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|    894|const char *getCanonical(const CharStringMap &aliases, const char *alias) {
  553|    894|    const char *canonical = aliases.get(alias);
  554|    894|    return canonical == nullptr ? alias : canonical;
  ------------------
  |  Branch (554:12): [True: 894, False: 0]
  ------------------
  555|    894|}

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

_ZN6icu_783LSRC2ENS_11StringPieceES1_S1_iR10UErrorCode:
   36|    447|        language(nullptr), script(nullptr), region(nullptr),
   37|    447|        regionIndex(indexForRegion(r.data())), flags(f) {
   38|    447|    if (U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (38:9): [True: 447, False: 0]
  ------------------
   39|    447|        CharString data;
   40|    447|        data.append(lang, errorCode).append('\0', errorCode);
   41|    447|        int32_t scriptOffset = data.length();
   42|    447|        data.append(scr, errorCode).append('\0', errorCode);
   43|    447|        int32_t regionOffset = data.length();
   44|    447|        data.append(r, errorCode);
   45|    447|        owned = data.cloneData(errorCode);
   46|    447|        if (U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (46:13): [True: 447, False: 0]
  ------------------
   47|    447|            language = owned;
   48|    447|            script = owned + scriptOffset;
   49|    447|            region = owned + regionOffset;
   50|    447|        }
   51|    447|    }
   52|    447|}
_ZN6icu_783LSRC2EOS0_:
   55|    447|        language(other.language), script(other.script), region(other.region), owned(other.owned),
   56|    447|        regionIndex(other.regionIndex), flags(other.flags),
   57|    447|        hashCode(other.hashCode) {
   58|    447|    if (owned != nullptr) {
  ------------------
  |  Branch (58:9): [True: 447, False: 0]
  ------------------
   59|    447|        other.language = other.script = "";
   60|    447|        other.owned = nullptr;
   61|    447|        other.hashCode = 0;
   62|    447|    }
   63|    447|}
_ZN6icu_783LSR11deleteOwnedEv:
   65|    447|void LSR::deleteOwned() {
   66|    447|    uprv_free(owned);
  ------------------
  |  | 1503|    447|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    447|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    447|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    447|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   67|    447|}
_ZN6icu_783LSRaSEOS0_:
   69|  7.50k|LSR &LSR::operator=(LSR &&other) noexcept {
   70|  7.50k|    this->~LSR();
   71|  7.50k|    language = other.language;
   72|  7.50k|    script = other.script;
   73|  7.50k|    region = other.region;
   74|  7.50k|    regionIndex = other.regionIndex;
   75|  7.50k|    flags = other.flags;
   76|  7.50k|    owned = other.owned;
   77|  7.50k|    hashCode = other.hashCode;
   78|  7.50k|    if (owned != nullptr) {
  ------------------
  |  Branch (78:9): [True: 0, False: 7.50k]
  ------------------
   79|      0|        other.language = other.script = "";
   80|      0|        other.owned = nullptr;
   81|      0|        other.hashCode = 0;
   82|      0|    }
   83|  7.50k|    return *this;
   84|  7.50k|}
_ZN6icu_783LSR14indexForRegionEPKc:
  105|  7.95k|int32_t LSR::indexForRegion(const char *region) {
  106|  7.95k|    int32_t c = region[0];
  107|  7.95k|    int32_t a = c - '0';
  108|  7.95k|    if (0 <= a && a <= 9) {  // digits: "419"
  ------------------
  |  Branch (108:9): [True: 7.95k, False: 2]
  |  Branch (108:19): [True: 24, False: 7.92k]
  ------------------
  109|     24|        int32_t b = region[1] - '0';
  110|     24|        if (b < 0 || 9 < b) { return 0; }
  ------------------
  |  Branch (110:13): [True: 0, False: 24]
  |  Branch (110:22): [True: 0, False: 24]
  ------------------
  111|     24|        c = region[2] - '0';
  112|     24|        if (c < 0 || 9 < c || region[3] != 0) { return 0; }
  ------------------
  |  Branch (112:13): [True: 0, False: 24]
  |  Branch (112:22): [True: 0, False: 24]
  |  Branch (112:31): [True: 0, False: 24]
  ------------------
  113|     24|        return (10 * a + b) * 10 + c + 1;
  114|  7.92k|    } else {  // letters: "DE"
  115|  7.92k|        a = uprv_upperOrdinal(c);
  116|  7.92k|        if (a < 0 || 25 < a) { return 0; }
  ------------------
  |  Branch (116:13): [True: 2, False: 7.92k]
  |  Branch (116:22): [True: 0, False: 7.92k]
  ------------------
  117|  7.92k|        int32_t b = uprv_upperOrdinal(region[1]);
  118|  7.92k|        if (b < 0 || 25 < b || region[2] != 0) { return 0; }
  ------------------
  |  Branch (118:13): [True: 0, False: 7.92k]
  |  Branch (118:22): [True: 0, False: 7.92k]
  |  Branch (118:32): [True: 0, False: 7.92k]
  ------------------
  119|  7.92k|        return 26 * a + b + 1001;
  120|  7.92k|    }
  121|      0|    return 0;
  122|  7.95k|}

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

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

_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|  1.38k|{
  297|       |#if defined(U_DEBUG_FAKETIME)
  298|       |    return getUTCtime_fake(); /* Hook for overriding the clock */
  299|       |#else
  300|  1.38k|    return uprv_getRawUTCtime();
  ------------------
  |  | 1510|  1.38k|#define uprv_getRawUTCtime U_ICU_ENTRY_POINT_RENAME(uprv_getRawUTCtime)
  |  |  ------------------
  |  |  |  |  123|  1.38k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.38k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.38k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  301|  1.38k|#endif
  302|  1.38k|}
uprv_getRawUTCtime_78:
  307|  1.38k|{
  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|  1.38k|#if HAVE_GETTIMEOFDAY
  316|  1.38k|    struct timeval posixTime;
  317|  1.38k|    gettimeofday(&posixTime, nullptr);
  318|  1.38k|    return (UDate)(((int64_t)posixTime.tv_sec * U_MILLIS_PER_SECOND) + (posixTime.tv_usec/1000));
  ------------------
  |  |  221|  1.38k|#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|  1.38k|#endif
  326|  1.38k|}
uprv_add32_overflow_78:
  524|    516|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|    516|    auto a64 = static_cast<int64_t>(a);
  528|    516|    auto b64 = static_cast<int64_t>(b);
  529|    516|    int64_t res64 = a64 + b64;
  530|    516|    *res = static_cast<int32_t>(res64);
  531|    516|    return res64 != *res;
  532|    516|}
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|    688|{
 1356|    688|  if(!path || !*path) {
  ------------------
  |  Branch (1356:6): [True: 0, False: 688]
  |  Branch (1356:15): [True: 0, False: 688]
  ------------------
 1357|      0|    return false;
 1358|      0|  }
 1359|       |
 1360|    688|  if(*path == U_FILE_SEP_CHAR) {
  ------------------
  |  |  130|    688|#   define U_FILE_SEP_CHAR '/'
  ------------------
  |  Branch (1360:6): [True: 0, False: 688]
  ------------------
 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|    688|  return false;
 1379|    688|}
u_getDataDirectory_78:
 1499|    696|u_getDataDirectory() {
 1500|    696|    umtx_initOnce(gDataDirInitOnce, &dataDirectoryInitFn);
 1501|    696|    return gDataDirectory;
 1502|    696|}
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|  1.48k|ResourceValue::~ResourceValue() {}
_ZN6icu_7812ResourceSinkD2Ev:
   20|  3.63k|ResourceSink::~ResourceSink() {}

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

_ZN6icu_7814ResourceTracerC2Ev:
  116|  1.50k|    ResourceTracer() {}
_ZN6icu_7814ResourceTracerC2EPKv:
  118|  58.0k|    ResourceTracer(const void*) {}
_ZN6icu_7814ResourceTracerC2EPKvPKc:
  120|  1.42k|    ResourceTracer(const void*, const char*) {}
_ZN6icu_7814ResourceTracerC2EPKvi:
  122|  59.8k|    ResourceTracer(const void*, int32_t) {}
_ZN6icu_7814ResourceTracerC2ERKS0_PKc:
  124|   264k|    ResourceTracer(const ResourceTracer&, const char*) {}
_ZN6icu_7814ResourceTracerC2ERKS0_i:
  126|    597|    ResourceTracer(const ResourceTracer&, int32_t) {}
_ZNK6icu_7814ResourceTracer5traceEPKc:
  128|  91.3k|    void trace(const char*) const {}
_ZNK6icu_7814ResourceTracer9traceOpenEv:
  130|  21.0k|    void traceOpen() const {}
_ZNK6icu_7814ResourceTracer10maybeTraceEPKc:
  132|  6.04k|    void maybeTrace(const char*) const {}
_ZN6icu_7810FileTracer9traceOpenEPKcS2_S2_:
  140|    695|    static void traceOpen(const char*, const char*, const char*) {}

_ZN6icu_7811StringPieceC2EPKc:
   19|  42.5k|    : ptr_(str), length_((str == nullptr) ? 0 : static_cast<int32_t>(uprv_strlen(str))) { }
  ------------------
  |  |   37|  42.5k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  42.5k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (19:26): [True: 0, False: 42.5k]
  ------------------
_ZN6icu_7811StringPiece7compareES0_:
   73|  1.34k|int32_t StringPiece::compare(StringPiece other) {
   74|  1.34k|  int32_t i = 0;
   75|  1.34k|  for (; i < length(); i++) {
  ------------------
  |  Branch (75:10): [True: 524, False: 824]
  ------------------
   76|    524|    if (i == other.length()) {
  ------------------
  |  Branch (76:9): [True: 0, False: 524]
  ------------------
   77|       |      // this is longer
   78|      0|      return 1;
   79|      0|    }
   80|    524|    char a = data()[i];
   81|    524|    char b = other.data()[i];
   82|    524|    if (a < b) {
  ------------------
  |  Branch (82:9): [True: 484, False: 40]
  ------------------
   83|    484|      return -1;
   84|    484|    } else if (a > b) {
  ------------------
  |  Branch (84:16): [True: 33, False: 7]
  ------------------
   85|     33|      return 1;
   86|     33|    }
   87|    524|  }
   88|    824|  if (i < other.length()) {
  ------------------
  |  Branch (88:7): [True: 824, False: 0]
  ------------------
   89|       |    // other is longer
   90|    824|    return -1;
   91|    824|  }
   92|      0|  return 0;
   93|    824|}

uprv_sortArray_78:
  258|    717|               UBool sortStable, UErrorCode *pErrorCode) {
  259|    717|    if(pErrorCode==nullptr || U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (259:8): [True: 0, False: 717]
  |  Branch (259:31): [True: 0, False: 717]
  ------------------
  260|      0|        return;
  261|      0|    }
  262|    717|    if((length>0 && array==nullptr) || length<0 || itemSize<=0 || cmp==nullptr) {
  ------------------
  |  Branch (262:9): [True: 1, False: 716]
  |  Branch (262:21): [True: 0, False: 1]
  |  Branch (262:40): [True: 0, False: 717]
  |  Branch (262:52): [True: 0, False: 717]
  |  Branch (262:67): [True: 0, False: 717]
  ------------------
  263|      0|        *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
  264|      0|        return;
  265|      0|    }
  266|       |
  267|    717|    if(length<=1) {
  ------------------
  |  Branch (267:8): [True: 717, False: 0]
  ------------------
  268|    717|        return;
  269|    717|    } else if(length<MIN_QSORT || sortStable) {
  ------------------
  |  Branch (269:15): [True: 0, False: 0]
  |  Branch (269:35): [True: 0, False: 0]
  ------------------
  270|      0|        insertionSort((char *)array, length, itemSize, cmp, context, pErrorCode);
  271|      0|    } else {
  272|      0|        quickSort((char *)array, length, itemSize, cmp, context, pErrorCode);
  273|      0|    }
  274|    717|}

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

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

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

UDataMemory_init_78:
   28|  1.39k|U_CFUNC void UDataMemory_init(UDataMemory *This) {
   29|  1.39k|    uprv_memset(This, 0, sizeof(UDataMemory));
  ------------------
  |  |  100|  1.39k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  1.39k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
   30|  1.39k|    This->length=-1;
   31|  1.39k|}
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|    372|U_CFUNC UDataMemory *UDataMemory_createNewInstance(UErrorCode *pErr) {
   42|    372|    UDataMemory *This;
   43|       |
   44|    372|    if (U_FAILURE(*pErr)) {
  ------------------
  |  Branch (44:9): [True: 0, False: 372]
  ------------------
   45|      0|        return nullptr;
   46|      0|    }
   47|    372|    This = (UDataMemory *)uprv_malloc(sizeof(UDataMemory));
  ------------------
  |  | 1524|    372|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    372|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    372|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    372|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   48|    372|    if (This == nullptr) {
  ------------------
  |  Branch (48:9): [True: 0, False: 372]
  ------------------
   49|      0|        *pErr = U_MEMORY_ALLOCATION_ERROR; }
   50|    372|    else {
   51|    372|        UDataMemory_init(This);
  ------------------
  |  |   80|    372|#define UDataMemory_init U_ICU_ENTRY_POINT_RENAME(UDataMemory_init)
  |  |  ------------------
  |  |  |  |  123|    372|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    372|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    372|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   52|    372|        This->heapAllocated = true;
   53|    372|    }
   54|    372|    return This;
   55|    372|}
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|    371|udata_getMemory(UDataMemory *pData) {
  105|    371|    if(pData!=nullptr && pData->pHeader!=nullptr) {
  ------------------
  |  Branch (105:8): [True: 371, False: 0]
  |  Branch (105:26): [True: 371, False: 0]
  ------------------
  106|    371|        return (char *)(pData->pHeader)+udata_getHeaderSize(pData->pHeader);
  ------------------
  |  |  887|    371|#define udata_getHeaderSize U_ICU_ENTRY_POINT_RENAME(udata_getHeaderSize)
  |  |  ------------------
  |  |  |  |  123|    371|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    371|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    371|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  107|    371|    } else {
  108|      0|        return nullptr;
  109|      0|    }
  110|    371|}
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|    983|           UErrorCode *status) {
  548|       |
  549|    983|    return _uhash_create(keyHash, keyComp, valueComp, DEFAULT_PRIME_INDEX, status);
  ------------------
  |  |   91|    983|#define DEFAULT_PRIME_INDEX 4
  ------------------
  550|    983|}
uhash_openSize_78:
  557|      7|               UErrorCode *status) {
  558|       |
  559|       |    /* Find the smallest index i for which PRIMES[i] >= size. */
  560|      7|    int32_t i = 0;
  561|     28|    while (i<(PRIMES_LENGTH-1) && PRIMES[i]<size) {
  ------------------
  |  |   90|     28|#define PRIMES_LENGTH UPRV_LENGTHOF(PRIMES)
  |  |  ------------------
  |  |  |  |   99|     28|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  |  |  ------------------
  ------------------
  |  Branch (561:12): [True: 28, False: 0]
  |  Branch (561:35): [True: 21, False: 7]
  ------------------
  562|     21|        ++i;
  563|     21|    }
  564|       |
  565|      7|    return _uhash_create(keyHash, keyComp, valueComp, i, status);
  566|      7|}
uhash_init_78:
  573|      2|           UErrorCode *status) {
  574|       |
  575|      2|    return _uhash_init(fillinResult, keyHash, keyComp, valueComp, DEFAULT_PRIME_INDEX, status);
  ------------------
  |  |   91|      2|#define DEFAULT_PRIME_INDEX 4
  ------------------
  576|      2|}
uhash_close_78:
  595|     16|uhash_close(UHashtable *hash) {
  596|     16|    if (hash == nullptr) {
  ------------------
  |  Branch (596:9): [True: 14, False: 2]
  ------------------
  597|     14|        return;
  598|     14|    }
  599|      2|    if (hash->elements != nullptr) {
  ------------------
  |  Branch (599:9): [True: 2, False: 0]
  ------------------
  600|      2|        if (hash->keyDeleter != nullptr || hash->valueDeleter != nullptr) {
  ------------------
  |  Branch (600:13): [True: 0, False: 2]
  |  Branch (600:44): [True: 0, False: 2]
  ------------------
  601|      0|            int32_t pos=UHASH_FIRST;
  ------------------
  |  |  610|      0|#define UHASH_FIRST (-1)
  ------------------
  602|      0|            UHashElement *e;
  603|      0|            while ((e = (UHashElement*) uhash_nextElement(hash, &pos)) != nullptr) {
  ------------------
  |  | 1029|      0|#define uhash_nextElement U_ICU_ENTRY_POINT_RENAME(uhash_nextElement)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (603:20): [True: 0, False: 0]
  ------------------
  604|      0|                HASH_DELETE_KEY_VALUE(hash, e->key.pointer, e->value.pointer);
  ------------------
  |  |  124|      0|#define HASH_DELETE_KEY_VALUE(hash, keypointer, valuepointer) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      0|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  125|      0|    if (hash->keyDeleter != nullptr && keypointer != nullptr) { \
  |  |  ------------------
  |  |  |  Branch (125:9): [True: 0, False: 0]
  |  |  |  Branch (125:40): [True: 0, False: 0]
  |  |  ------------------
  |  |  126|      0|        (*hash->keyDeleter)(keypointer); \
  |  |  127|      0|    } \
  |  |  128|      0|    if (hash->valueDeleter != nullptr && valuepointer != nullptr) { \
  |  |  ------------------
  |  |  |  Branch (128:9): [True: 0, False: 0]
  |  |  |  Branch (128:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  129|      0|        (*hash->valueDeleter)(valuepointer); \
  |  |  130|      0|    } \
  |  |  131|      0|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      0|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  605|      0|            }
  606|      0|        }
  607|      2|        uprv_free(hash->elements);
  ------------------
  |  | 1503|      2|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  608|      2|        hash->elements = nullptr;
  609|      2|    }
  610|      2|    if (hash->allocated) {
  ------------------
  |  Branch (610:9): [True: 0, False: 2]
  ------------------
  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|      2|}
uhash_setKeyDeleter_78:
  636|      3|uhash_setKeyDeleter(UHashtable *hash, UObjectDeleter *fn) {
  637|      3|    UObjectDeleter *result = hash->keyDeleter;
  638|      3|    hash->keyDeleter = fn;
  639|      3|    return result;
  640|      3|}
uhash_setValueDeleter_78:
  643|    979|uhash_setValueDeleter(UHashtable *hash, UObjectDeleter *fn) {
  644|    979|    UObjectDeleter *result = hash->valueDeleter;
  645|    979|    hash->valueDeleter = fn;
  646|    979|    return result;
  647|    979|}
uhash_get_78:
  665|  43.6k|          const void* key) {
  666|  43.6k|    UHashTok keyholder;
  667|  43.6k|    keyholder.pointer = (void*) key;
  668|  43.6k|    return _uhash_find(hash, keyholder, hash->keyHasher(keyholder))->value.pointer;
  669|  43.6k|}
uhash_geti_78:
  681|  32.6k|           const void* key) {
  682|  32.6k|    UHashTok keyholder;
  683|  32.6k|    keyholder.pointer = (void*) key;
  684|  32.6k|    return _uhash_find(hash, keyholder, hash->keyHasher(keyholder))->value.integer;
  685|  32.6k|}
uhash_put_78:
  721|  6.77k|          UErrorCode *status) {
  722|  6.77k|    UHashTok keyholder, valueholder;
  723|  6.77k|    keyholder.pointer = key;
  724|  6.77k|    valueholder.pointer = value;
  725|  6.77k|    return _uhash_put(hash, keyholder, valueholder,
  726|  6.77k|                      HINT_KEY_POINTER | HINT_VALUE_POINTER,
  ------------------
  |  |  139|  6.77k|#define HINT_KEY_POINTER   (1)
  ------------------
                                    HINT_KEY_POINTER | HINT_VALUE_POINTER,
  ------------------
  |  |  140|  6.77k|#define HINT_VALUE_POINTER (2)
  ------------------
  727|  6.77k|                      status).pointer;
  728|  6.77k|}
uhash_puti_78:
  747|  8.90k|           UErrorCode *status) {
  748|  8.90k|    UHashTok keyholder, valueholder;
  749|  8.90k|    keyholder.pointer = key;
  750|  8.90k|    valueholder.integer = value;
  751|  8.90k|    return _uhash_put(hash, keyholder, valueholder,
  752|  8.90k|                      HINT_KEY_POINTER,
  ------------------
  |  |  139|  8.90k|#define HINT_KEY_POINTER   (1)
  ------------------
  753|  8.90k|                      status).integer;
  754|  8.90k|}
uhash_nextElement_78:
  875|  4.69k|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|  4.69k|    int32_t i;
  880|  4.69k|    U_ASSERT(hash != nullptr);
  ------------------
  |  |   35|  4.69k|#   define U_ASSERT(exp) (void)0
  ------------------
  881|  11.4k|    for (i = *pos + 1; i < hash->length; ++i) {
  ------------------
  |  Branch (881:24): [True: 11.4k, False: 13]
  ------------------
  882|  11.4k|        if (!IS_EMPTY_OR_DELETED(hash->elements[i].hashcode)) {
  ------------------
  |  |  120|  11.4k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  ------------------
  |  Branch (882:13): [True: 4.68k, False: 6.79k]
  ------------------
  883|  4.68k|            *pos = i;
  884|  4.68k|            return &(hash->elements[i]);
  885|  4.68k|        }
  886|  11.4k|    }
  887|       |
  888|       |    /* No more elements */
  889|     13|    return nullptr;
  890|  4.69k|}
uhash_hashUChars_78:
  932|  59.0k|uhash_hashUChars(const UHashTok key) {
  933|  59.0k|    const char16_t *s = (const char16_t *)key.pointer;
  934|  59.0k|    return s == nullptr ? 0 : ustr_hashUCharsN(s, u_strlen(s));
  ------------------
  |  | 1880|  56.1k|#define ustr_hashUCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashUCharsN)
  |  |  ------------------
  |  |  |  |  123|  56.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  56.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  56.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  return s == nullptr ? 0 : ustr_hashUCharsN(s, u_strlen(s));
  ------------------
  |  |  393|  56.1k|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|  56.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  56.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  56.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (934:12): [True: 2.85k, False: 56.1k]
  ------------------
  935|  59.0k|}
uhash_hashChars_78:
  938|  54.6k|uhash_hashChars(const UHashTok key) {
  939|  54.6k|    const char *s = (const char *)key.pointer;
  940|  54.6k|    return s == nullptr ? 0 : static_cast<int32_t>(ustr_hashCharsN(s, static_cast<int32_t>(uprv_strlen(s))));
  ------------------
  |  | 1878|  34.6k|#define ustr_hashCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashCharsN)
  |  |  ------------------
  |  |  |  |  123|  34.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  34.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  34.6k|#       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|  34.6k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  34.6k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (940:12): [True: 20.0k, False: 34.6k]
  ------------------
  941|  54.6k|}
uhash_compareUChars_78:
 1012|  20.8k|uhash_compareUChars(const UHashTok key1, const UHashTok key2) {
 1013|  20.8k|    const char16_t *p1 = (const char16_t*) key1.pointer;
 1014|  20.8k|    const char16_t *p2 = (const char16_t*) key2.pointer;
 1015|  20.8k|    if (p1 == p2) {
  ------------------
  |  Branch (1015:9): [True: 2.79k, False: 18.0k]
  ------------------
 1016|  2.79k|        return true;
 1017|  2.79k|    }
 1018|  18.0k|    if (p1 == nullptr || p2 == nullptr) {
  ------------------
  |  Branch (1018:9): [True: 0, False: 18.0k]
  |  Branch (1018:26): [True: 153, False: 17.9k]
  ------------------
 1019|    153|        return false;
 1020|    153|    }
 1021|  76.6k|    while (*p1 != 0 && *p1 == *p2) {
  ------------------
  |  Branch (1021:12): [True: 59.2k, False: 17.4k]
  |  Branch (1021:24): [True: 58.7k, False: 487]
  ------------------
 1022|  58.7k|        ++p1;
 1023|  58.7k|        ++p2;
 1024|  58.7k|    }
 1025|  17.9k|    return *p1 == *p2;
 1026|  18.0k|}
uhash_compareChars_78:
 1029|  43.9k|uhash_compareChars(const UHashTok key1, const UHashTok key2) {
 1030|  43.9k|    const char *p1 = (const char*) key1.pointer;
 1031|  43.9k|    const char *p2 = (const char*) key2.pointer;
 1032|  43.9k|    if (p1 == p2) {
  ------------------
  |  Branch (1032:9): [True: 20.0k, False: 23.9k]
  ------------------
 1033|  20.0k|        return true;
 1034|  20.0k|    }
 1035|  23.9k|    if (p1 == nullptr || p2 == nullptr) {
  ------------------
  |  Branch (1035:9): [True: 0, False: 23.9k]
  |  Branch (1035:26): [True: 0, False: 23.9k]
  ------------------
 1036|      0|        return false;
 1037|      0|    }
 1038|   272k|    while (*p1 != 0 && *p1 == *p2) {
  ------------------
  |  Branch (1038:12): [True: 248k, False: 23.9k]
  |  Branch (1038:24): [True: 248k, False: 0]
  ------------------
 1039|   248k|        ++p1;
 1040|   248k|        ++p2;
 1041|   248k|    }
 1042|  23.9k|    return *p1 == *p2;
 1043|  23.9k|}
uhash.cpp:_ZL13_uhash_createPFi8UElementEPFaS_S_ES3_iP10UErrorCode:
  287|    990|              UErrorCode *status) {
  288|    990|    UHashtable *result;
  289|       |
  290|    990|    if (U_FAILURE(*status)) return nullptr;
  ------------------
  |  Branch (290:9): [True: 0, False: 990]
  ------------------
  291|       |
  292|    990|    result = static_cast<UHashtable*>(uprv_malloc(sizeof(UHashtable)));
  ------------------
  |  | 1524|    990|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    990|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    990|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    990|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  293|    990|    if (result == nullptr) {
  ------------------
  |  Branch (293:9): [True: 0, False: 990]
  ------------------
  294|      0|        *status = U_MEMORY_ALLOCATION_ERROR;
  295|      0|        return nullptr;
  296|      0|    }
  297|       |
  298|    990|    _uhash_init(result, keyHash, keyComp, valueComp, primeIndex, status);
  299|    990|    result->allocated       = true;
  300|       |
  301|    990|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (301:9): [True: 0, False: 990]
  ------------------
  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|    990|    return result;
  307|    990|}
uhash.cpp:_ZL11_uhash_initP10UHashtablePFi8UElementEPFaS1_S1_ES5_iP10UErrorCode:
  260|    992|{
  261|    992|    if (U_FAILURE(*status)) return nullptr;
  ------------------
  |  Branch (261:9): [True: 0, False: 992]
  ------------------
  262|    992|    U_ASSERT(keyHash != nullptr);
  ------------------
  |  |   35|    992|#   define U_ASSERT(exp) (void)0
  ------------------
  263|    992|    U_ASSERT(keyComp != nullptr);
  ------------------
  |  |   35|    992|#   define U_ASSERT(exp) (void)0
  ------------------
  264|       |
  265|    992|    result->keyHasher       = keyHash;
  266|    992|    result->keyComparator   = keyComp;
  267|    992|    result->valueComparator = valueComp;
  268|    992|    result->keyDeleter      = nullptr;
  269|    992|    result->valueDeleter    = nullptr;
  270|    992|    result->allocated       = false;
  271|    992|    _uhash_internalSetResizePolicy(result, U_GROW);
  272|       |
  273|    992|    _uhash_allocate(result, primeIndex, status);
  274|       |
  275|    992|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (275:9): [True: 0, False: 992]
  ------------------
  276|      0|        return nullptr;
  277|      0|    }
  278|       |
  279|    992|    return result;
  280|    992|}
uhash.cpp:_ZL15_uhash_allocateP10UHashtableiP10UErrorCode:
  217|  1.02k|                UErrorCode *status) {
  218|       |
  219|  1.02k|    UHashElement *p, *limit;
  220|  1.02k|    UHashTok emptytok;
  221|       |
  222|  1.02k|    if (U_FAILURE(*status)) return;
  ------------------
  |  Branch (222:9): [True: 0, False: 1.02k]
  ------------------
  223|       |
  224|  1.02k|    U_ASSERT(primeIndex >= 0 && primeIndex < PRIMES_LENGTH);
  ------------------
  |  |   35|  1.02k|#   define U_ASSERT(exp) (void)0
  ------------------
  225|       |
  226|  1.02k|    hash->primeIndex = static_cast<int8_t>(primeIndex);
  227|  1.02k|    hash->length = PRIMES[primeIndex];
  228|       |
  229|  1.02k|    p = hash->elements = static_cast<UHashElement*>(
  230|  1.02k|        uprv_malloc(sizeof(UHashElement) * hash->length));
  ------------------
  |  | 1524|  1.02k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  1.02k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.02k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.02k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  231|       |
  232|  1.02k|    if (hash->elements == nullptr) {
  ------------------
  |  Branch (232:9): [True: 0, False: 1.02k]
  ------------------
  233|      0|        *status = U_MEMORY_ALLOCATION_ERROR;
  234|      0|        return;
  235|      0|    }
  236|       |
  237|  1.02k|    emptytok.pointer = nullptr; /* Only one of these two is needed */
  238|  1.02k|    emptytok.integer = 0;    /* but we don't know which one. */
  239|       |
  240|  1.02k|    limit = p + hash->length;
  241|   176k|    while (p < limit) {
  ------------------
  |  Branch (241:12): [True: 175k, False: 1.02k]
  ------------------
  242|   175k|        p->key = emptytok;
  243|   175k|        p->value = emptytok;
  244|   175k|        p->hashcode = HASH_EMPTY;
  ------------------
  |  |  118|   175k|#define HASH_EMPTY      ((int32_t) HASH_DELETED + 1)
  |  |  ------------------
  |  |  |  |  117|   175k|#define HASH_DELETED    ((int32_t) 0x80000000)
  |  |  ------------------
  ------------------
  245|   175k|        ++p;
  246|   175k|    }
  247|       |
  248|  1.02k|    hash->count = 0;
  249|  1.02k|    hash->lowWaterMark = static_cast<int32_t>(hash->length * hash->lowWaterRatio);
  250|  1.02k|    hash->highWaterMark = static_cast<int32_t>(hash->length * hash->highWaterRatio);
  251|  1.02k|}
uhash.cpp:_ZL30_uhash_internalSetResizePolicyP10UHashtable17UHashResizePolicy:
  197|    992|_uhash_internalSetResizePolicy(UHashtable *hash, enum UHashResizePolicy policy) {
  198|    992|    U_ASSERT(hash != nullptr);
  ------------------
  |  |   35|    992|#   define U_ASSERT(exp) (void)0
  ------------------
  199|    992|    U_ASSERT(((int32_t)policy) >= 0);
  ------------------
  |  |   35|    992|#   define U_ASSERT(exp) (void)0
  ------------------
  200|    992|    U_ASSERT(((int32_t)policy) < 3);
  ------------------
  |  |   35|    992|#   define U_ASSERT(exp) (void)0
  ------------------
  201|    992|    hash->lowWaterRatio  = RESIZE_POLICY_RATIO_TABLE[policy * 2];
  202|    992|    hash->highWaterRatio = RESIZE_POLICY_RATIO_TABLE[policy * 2 + 1];
  203|    992|}
uhash.cpp:_ZL13_uhash_rehashP10UHashtableP10UErrorCode:
  399|     33|_uhash_rehash(UHashtable *hash, UErrorCode *status) {
  400|       |
  401|     33|    UHashElement *old = hash->elements;
  402|     33|    int32_t oldLength = hash->length;
  403|     33|    int32_t newPrimeIndex = hash->primeIndex;
  404|     33|    int32_t i;
  405|       |
  406|     33|    if (hash->count > hash->highWaterMark) {
  ------------------
  |  Branch (406:9): [True: 33, False: 0]
  ------------------
  407|     33|        if (++newPrimeIndex >= PRIMES_LENGTH) {
  ------------------
  |  |   90|     33|#define PRIMES_LENGTH UPRV_LENGTHOF(PRIMES)
  |  |  ------------------
  |  |  |  |   99|     33|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  |  |  ------------------
  ------------------
  |  Branch (407:13): [True: 0, False: 33]
  ------------------
  408|      0|            return;
  409|      0|        }
  410|     33|    } 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|     33|    _uhash_allocate(hash, newPrimeIndex, status);
  419|       |
  420|     33|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (420:9): [True: 0, False: 33]
  ------------------
  421|      0|        hash->elements = old;
  422|      0|        hash->length = oldLength;
  423|      0|        return;
  424|      0|    }
  425|       |
  426|  24.1k|    for (i = oldLength - 1; i >= 0; --i) {
  ------------------
  |  Branch (426:29): [True: 24.1k, False: 33]
  ------------------
  427|  24.1k|        if (!IS_EMPTY_OR_DELETED(old[i].hashcode)) {
  ------------------
  |  |  120|  24.1k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  ------------------
  |  Branch (427:13): [True: 12.0k, False: 12.0k]
  ------------------
  428|  12.0k|            UHashElement *e = _uhash_find(hash, old[i].key, old[i].hashcode);
  429|  12.0k|            U_ASSERT(e != nullptr);
  ------------------
  |  |   35|  12.0k|#   define U_ASSERT(exp) (void)0
  ------------------
  430|  12.0k|            U_ASSERT(e->hashcode == HASH_EMPTY);
  ------------------
  |  |   35|  12.0k|#   define U_ASSERT(exp) (void)0
  ------------------
  431|  12.0k|            e->key = old[i].key;
  432|  12.0k|            e->value = old[i].value;
  433|  12.0k|            e->hashcode = old[i].hashcode;
  434|  12.0k|            ++hash->count;
  435|  12.0k|        }
  436|  24.1k|    }
  437|       |
  438|     33|    uprv_free(old);
  ------------------
  |  | 1503|     33|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  439|     33|}
uhash.cpp:_ZL11_uhash_findPK10UHashtable8UElementi:
  339|   104k|            int32_t hashcode) {
  340|       |
  341|   104k|    int32_t firstDeleted = -1;  /* assume invalid index */
  342|   104k|    int32_t theIndex, startIndex;
  343|   104k|    int32_t jump = 0; /* lazy evaluate */
  344|   104k|    int32_t tableHash;
  345|   104k|    UHashElement *elements = hash->elements;
  346|       |
  347|   104k|    hashcode &= 0x7FFFFFFF; /* must be positive */
  348|   104k|    startIndex = theIndex = (hashcode ^ 0x4000000) % hash->length;
  349|       |
  350|   133k|    do {
  351|   133k|        tableHash = elements[theIndex].hashcode;
  352|   133k|        if (tableHash == hashcode) {          /* quick check */
  ------------------
  |  Branch (352:13): [True: 43.1k, False: 90.3k]
  ------------------
  353|  43.1k|            if ((*hash->keyComparator)(key, elements[theIndex].key)) {
  ------------------
  |  Branch (353:17): [True: 42.7k, False: 417]
  ------------------
  354|  42.7k|                return &(elements[theIndex]);
  355|  42.7k|            }
  356|  90.3k|        } else if (!IS_EMPTY_OR_DELETED(tableHash)) {
  ------------------
  |  |  120|  90.3k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  ------------------
  |  Branch (356:20): [True: 29.0k, False: 61.3k]
  ------------------
  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|  61.3k|        } else if (tableHash == HASH_EMPTY) { /* empty, end o' the line */
  ------------------
  |  |  118|  61.3k|#define HASH_EMPTY      ((int32_t) HASH_DELETED + 1)
  |  |  ------------------
  |  |  |  |  117|  61.3k|#define HASH_DELETED    ((int32_t) 0x80000000)
  |  |  ------------------
  ------------------
  |  Branch (361:20): [True: 61.3k, False: 0]
  ------------------
  362|  61.3k|            break;
  363|  61.3k|        } else if (firstDeleted < 0) { /* remember first deleted */
  ------------------
  |  Branch (363:20): [True: 0, False: 0]
  ------------------
  364|      0|            firstDeleted = theIndex;
  365|      0|        }
  366|  29.5k|        if (jump == 0) { /* lazy compute jump */
  ------------------
  |  Branch (366:13): [True: 19.9k, False: 9.55k]
  ------------------
  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|  19.9k|            jump = (hashcode % (hash->length - 1)) + 1;
  372|  19.9k|        }
  373|  29.5k|        theIndex = (theIndex + jump) % hash->length;
  374|  29.5k|    } while (theIndex != startIndex);
  ------------------
  |  Branch (374:14): [True: 29.5k, False: 0]
  ------------------
  375|       |
  376|  61.3k|    if (firstDeleted >= 0) {
  ------------------
  |  Branch (376:9): [True: 0, False: 61.3k]
  ------------------
  377|      0|        theIndex = firstDeleted; /* reset if had deleted slot */
  378|  61.3k|    } else if (tableHash != HASH_EMPTY) {
  ------------------
  |  |  118|  61.3k|#define HASH_EMPTY      ((int32_t) HASH_DELETED + 1)
  |  |  ------------------
  |  |  |  |  117|  61.3k|#define HASH_DELETED    ((int32_t) 0x80000000)
  |  |  ------------------
  ------------------
  |  Branch (378:16): [True: 0, False: 61.3k]
  ------------------
  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|  61.3k|    return &(elements[theIndex]);
  387|  61.3k|}
uhash.cpp:_ZL10_uhash_putP10UHashtable8UElementS1_aP10UErrorCode:
  471|  15.6k|           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|  15.6k|    int32_t hashcode;
  479|  15.6k|    UHashElement* e;
  480|  15.6k|    UHashTok emptytok;
  481|       |
  482|  15.6k|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (482:9): [True: 0, False: 15.6k]
  ------------------
  483|      0|        goto err;
  484|      0|    }
  485|  15.6k|    U_ASSERT(hash != nullptr);
  ------------------
  |  |   35|  15.6k|#   define U_ASSERT(exp) (void)0
  ------------------
  486|  15.6k|    if ((hint & HINT_VALUE_POINTER) ?
  ------------------
  |  |  140|  15.6k|#define HINT_VALUE_POINTER (2)
  ------------------
  |  Branch (486:9): [True: 6.77k, False: 8.90k]
  |  Branch (486:9): [True: 0, False: 15.6k]
  ------------------
  487|  6.77k|            value.pointer == nullptr :
  488|  15.6k|            value.integer == 0 && (hint & HINT_ALLOW_ZERO) == 0) {
  ------------------
  |  |  141|      0|#define HINT_ALLOW_ZERO    (4)
  ------------------
  |  Branch (488:13): [True: 0, False: 8.90k]
  |  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|  15.6k|    if (hash->count > hash->highWaterMark) {
  ------------------
  |  Branch (494:9): [True: 33, False: 15.6k]
  ------------------
  495|     33|        _uhash_rehash(hash, status);
  496|     33|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (496:13): [True: 0, False: 33]
  ------------------
  497|      0|            goto err;
  498|      0|        }
  499|     33|    }
  500|       |
  501|  15.6k|    hashcode = (*hash->keyHasher)(key);
  502|  15.6k|    e = _uhash_find(hash, key, hashcode);
  503|  15.6k|    U_ASSERT(e != nullptr);
  ------------------
  |  |   35|  15.6k|#   define U_ASSERT(exp) (void)0
  ------------------
  504|       |
  505|  15.6k|    if (IS_EMPTY_OR_DELETED(e->hashcode)) {
  ------------------
  |  |  120|  15.6k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  |  |  ------------------
  |  |  |  Branch (120:32): [True: 13.6k, False: 2.05k]
  |  |  ------------------
  ------------------
  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|  13.6k|        ++hash->count;
  514|  13.6k|        if (hash->count == hash->length) {
  ------------------
  |  Branch (514:13): [True: 0, False: 13.6k]
  ------------------
  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|  13.6k|    }
  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|  15.6k|    return _uhash_setElement(hash, e, hashcode & 0x7FFFFFFF, key, value, hint);
  527|       |
  528|      0| err:
  529|       |    /* If the deleters are non-nullptr, this method adopts its key and/or
  530|       |     * value arguments, and we must be sure to delete the key and/or
  531|       |     * value in all cases, even upon failure.
  532|       |     */
  533|      0|    HASH_DELETE_KEY_VALUE(hash, key.pointer, value.pointer);
  ------------------
  |  |  124|      0|#define HASH_DELETE_KEY_VALUE(hash, keypointer, valuepointer) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      0|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  125|      0|    if (hash->keyDeleter != nullptr && keypointer != nullptr) { \
  |  |  ------------------
  |  |  |  Branch (125:9): [True: 0, False: 0]
  |  |  |  Branch (125:40): [True: 0, False: 0]
  |  |  ------------------
  |  |  126|      0|        (*hash->keyDeleter)(keypointer); \
  |  |  127|      0|    } \
  |  |  128|      0|    if (hash->valueDeleter != nullptr && valuepointer != nullptr) { \
  |  |  ------------------
  |  |  |  Branch (128:9): [True: 0, False: 0]
  |  |  |  Branch (128:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  129|      0|        (*hash->valueDeleter)(valuepointer); \
  |  |  130|      0|    } \
  |  |  131|      0|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      0|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  534|      0|    emptytok.pointer = nullptr; emptytok.integer = 0;
  535|      0|    return emptytok;
  536|  15.6k|}
uhash.cpp:_ZL17_uhash_setElementP10UHashtableP12UHashElementi8UElementS3_a:
  150|  15.6k|                  UHashTok key, UHashTok value, int8_t hint) {
  151|       |
  152|  15.6k|    UHashTok oldValue = e->value;
  153|  15.6k|    if (hash->keyDeleter != nullptr && e->key.pointer != nullptr &&
  ------------------
  |  Branch (153:9): [True: 741, False: 14.9k]
  |  Branch (153:40): [True: 0, False: 741]
  ------------------
  154|  15.6k|        e->key.pointer != key.pointer) { /* Avoid double deletion */
  ------------------
  |  Branch (154:9): [True: 0, False: 0]
  ------------------
  155|      0|        (*hash->keyDeleter)(e->key.pointer);
  156|      0|    }
  157|  15.6k|    if (hash->valueDeleter != nullptr) {
  ------------------
  |  Branch (157:9): [True: 4.23k, False: 11.4k]
  ------------------
  158|  4.23k|        if (oldValue.pointer != nullptr &&
  ------------------
  |  Branch (158:13): [True: 2.05k, False: 2.18k]
  ------------------
  159|  4.23k|            oldValue.pointer != value.pointer) { /* Avoid double deletion */
  ------------------
  |  Branch (159:13): [True: 1.68k, False: 368]
  ------------------
  160|  1.68k|            (*hash->valueDeleter)(oldValue.pointer);
  161|  1.68k|        }
  162|  4.23k|        oldValue.pointer = nullptr;
  163|  4.23k|    }
  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|  15.6k|    if (hint & HINT_KEY_POINTER) {
  ------------------
  |  |  139|  15.6k|#define HINT_KEY_POINTER   (1)
  ------------------
  |  Branch (170:9): [True: 15.6k, False: 0]
  ------------------
  171|  15.6k|        e->key.pointer = key.pointer;
  172|  15.6k|    } else {
  173|      0|        e->key = key;
  174|      0|    }
  175|  15.6k|    if (hint & HINT_VALUE_POINTER) {
  ------------------
  |  |  140|  15.6k|#define HINT_VALUE_POINTER (2)
  ------------------
  |  Branch (175:9): [True: 6.77k, False: 8.90k]
  ------------------
  176|  6.77k|        e->value.pointer = value.pointer;
  177|  8.90k|    } else {
  178|  8.90k|        e->value = value;
  179|  8.90k|    }
  180|  15.6k|    e->hashcode = hashcode;
  181|  15.6k|    return oldValue;
  182|  15.6k|}

u_charsToUChars_78:
  185|  22.6k|u_charsToUChars(const char *cs, char16_t *us, int32_t length) {
  186|  22.6k|    char16_t u;
  187|  22.6k|    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|  91.4k|    while(length>0) {
  ------------------
  |  Branch (194:11): [True: 68.7k, False: 22.6k]
  ------------------
  195|  68.7k|        c=(uint8_t)(*cs++);
  196|  68.7k|        u=(char16_t)CHAR_TO_UCHAR(c);
  ------------------
  |  |  174|  68.7k|#define CHAR_TO_UCHAR(c) c
  ------------------
  197|  68.7k|        U_ASSERT((u!=0 || c==0)); /* only invariant chars converted? */
  ------------------
  |  |   35|  68.7k|#   define U_ASSERT(exp) (void)0
  ------------------
  198|  68.7k|        *us++=u;
  199|  68.7k|        --length;
  200|  68.7k|    }
  201|  22.6k|}
u_UCharsToChars_78:
  204|  22.6k|u_UCharsToChars(const char16_t *us, char *cs, int32_t length) {
  205|  22.6k|    char16_t u;
  206|       |
  207|   384k|    while(length>0) {
  ------------------
  |  Branch (207:11): [True: 362k, False: 22.6k]
  ------------------
  208|   362k|        u=*us++;
  209|   362k|        if(!UCHAR_IS_INVARIANT(u)) {
  ------------------
  |  |  168|   362k|#define UCHAR_IS_INVARIANT(c) (((c)<=0x7f) && (invariantChars[(c)>>5]&((uint32_t)1<<((c)&0x1f)))!=0)
  |  |  ------------------
  |  |  |  Branch (168:32): [True: 339k, False: 22.1k]
  |  |  |  Branch (168:47): [True: 339k, False: 410]
  |  |  ------------------
  ------------------
  210|  22.5k|            U_ASSERT(false); /* Variant characters were used. These are not portable in ICU. */
  ------------------
  |  |   35|  22.5k|#   define U_ASSERT(exp) (void)0
  ------------------
  211|  22.5k|            u=0;
  212|  22.5k|        }
  213|   362k|        *cs++=(char)UCHAR_TO_CHAR(u);
  ------------------
  |  |  175|   362k|#define UCHAR_TO_CHAR(c) c
  ------------------
  214|   362k|        --length;
  215|   362k|    }
  216|  22.6k|}
uprv_isInvariantUString_78:
  263|  20.8k|uprv_isInvariantUString(const char16_t *s, int32_t length) {
  264|  20.8k|    char16_t c;
  265|       |
  266|   323k|    for(;;) {
  267|   323k|        if(length<0) {
  ------------------
  |  Branch (267:12): [True: 31.8k, False: 291k]
  ------------------
  268|       |            /* NUL-terminated */
  269|  31.8k|            c=*s++;
  270|  31.8k|            if(c==0) {
  ------------------
  |  Branch (270:16): [True: 3.55k, False: 28.3k]
  ------------------
  271|  3.55k|                break;
  272|  3.55k|            }
  273|   291k|        } else {
  274|       |            /* count length */
  275|   291k|            if(length==0) {
  ------------------
  |  Branch (275:16): [True: 15.4k, False: 275k]
  ------------------
  276|  15.4k|                break;
  277|  15.4k|            }
  278|   275k|            --length;
  279|   275k|            c=*s++;
  280|   275k|        }
  281|       |
  282|       |        /*
  283|       |         * no assertions here because these functions are legitimately called
  284|       |         * for strings with variant characters
  285|       |         */
  286|   304k|        if(!UCHAR_IS_INVARIANT(c)) {
  ------------------
  |  |  168|   304k|#define UCHAR_IS_INVARIANT(c) (((c)<=0x7f) && (invariantChars[(c)>>5]&((uint32_t)1<<((c)&0x1f)))!=0)
  |  |  ------------------
  |  |  |  Branch (168:32): [True: 302k, False: 1.83k]
  |  |  |  Branch (168:47): [True: 302k, False: 42]
  |  |  ------------------
  ------------------
  287|  1.87k|            return false; /* found a variant char */
  288|  1.87k|        }
  289|   304k|    }
  290|  18.9k|    return true;
  291|  20.8k|}

_ZN6icu_7817uprv_upperOrdinalEi:
   79|  15.8k|inline int32_t uprv_upperOrdinal(int32_t c) {
   80|  15.8k|#if U_CHARSET_FAMILY==U_ASCII_FAMILY
   81|  15.8k|    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|  15.8k|}
_ZN6icu_7817uprv_lowerOrdinalEi:
   97|    447|inline int32_t uprv_lowerOrdinal(int32_t c) {
   98|    447|#if U_CHARSET_FAMILY==U_ASCII_FAMILY
   99|    447|    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|    447|}

locale_getKeywordsStart_78:
  526|  3.43k|locale_getKeywordsStart(std::string_view localeID) {
  527|  3.43k|    if (size_t pos = localeID.find('@'); pos != std::string_view::npos) {
  ------------------
  |  Branch (527:42): [True: 0, False: 3.43k]
  ------------------
  528|      0|        return localeID.data() + pos;
  529|      0|    }
  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|  3.43k|    return nullptr;
  546|  3.43k|}
_Z21ulocimp_getSubtags_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEEPN6icu_7810CharStringES6_S6_S6_PPKcR10UErrorCode:
 1514|  4.16k|        UErrorCode& status) {
 1515|  4.16k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1515:9): [True: 0, False: 4.16k]
  ------------------
 1516|       |
 1517|  4.16k|    std::optional<CharStringByteSink> languageSink;
 1518|  4.16k|    std::optional<CharStringByteSink> scriptSink;
 1519|  4.16k|    std::optional<CharStringByteSink> regionSink;
 1520|  4.16k|    std::optional<CharStringByteSink> variantSink;
 1521|       |
 1522|  4.16k|    if (language != nullptr) { languageSink.emplace(language); }
  ------------------
  |  Branch (1522:9): [True: 3.71k, False: 447]
  ------------------
 1523|  4.16k|    if (script != nullptr) { scriptSink.emplace(script); }
  ------------------
  |  Branch (1523:9): [True: 3.71k, False: 447]
  ------------------
 1524|  4.16k|    if (region != nullptr) { regionSink.emplace(region); }
  ------------------
  |  Branch (1524:9): [True: 3.98k, False: 177]
  ------------------
 1525|  4.16k|    if (variant != nullptr) { variantSink.emplace(variant); }
  ------------------
  |  Branch (1525:9): [True: 3.16k, False: 1.00k]
  ------------------
 1526|       |
 1527|  4.16k|    ulocimp_getSubtags(
  ------------------
  |  | 1209|  4.16k|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|  4.16k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.16k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.16k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1528|  4.16k|            localeID,
 1529|  4.16k|            languageSink.has_value() ? &*languageSink : nullptr,
  ------------------
  |  Branch (1529:13): [True: 3.71k, False: 447]
  ------------------
 1530|  4.16k|            scriptSink.has_value() ? &*scriptSink : nullptr,
  ------------------
  |  Branch (1530:13): [True: 3.71k, False: 447]
  ------------------
 1531|  4.16k|            regionSink.has_value() ? &*regionSink : nullptr,
  ------------------
  |  Branch (1531:13): [True: 3.98k, False: 177]
  ------------------
 1532|  4.16k|            variantSink.has_value() ? &*variantSink : nullptr,
  ------------------
  |  Branch (1532:13): [True: 3.16k, False: 1.00k]
  ------------------
 1533|  4.16k|            pEnd,
 1534|  4.16k|            status);
 1535|  4.16k|}
_Z21ulocimp_getSubtags_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEEPN6icu_788ByteSinkES6_S6_S6_PPKcR10UErrorCode:
 1545|  4.54k|        UErrorCode& status) {
 1546|  4.54k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1546:9): [True: 0, False: 4.54k]
  ------------------
 1547|       |
 1548|  4.54k|    if (pEnd != nullptr) {
  ------------------
  |  Branch (1548:9): [True: 3.16k, False: 1.38k]
  ------------------
 1549|  3.16k|        *pEnd = localeID.data();
 1550|  3.16k|    } else if (language == nullptr &&
  ------------------
  |  Branch (1550:16): [True: 827, False: 556]
  ------------------
 1551|  1.38k|               script == nullptr &&
  ------------------
  |  Branch (1551:16): [True: 827, False: 0]
  ------------------
 1552|  1.38k|               region == nullptr &&
  ------------------
  |  Branch (1552:16): [True: 380, False: 447]
  ------------------
 1553|  1.38k|               variant == nullptr) {
  ------------------
  |  Branch (1553:16): [True: 0, False: 380]
  ------------------
 1554|      0|        return;
 1555|      0|    }
 1556|       |
 1557|  4.54k|    if (localeID.empty()) { return; }
  ------------------
  |  Branch (1557:9): [True: 447, False: 4.09k]
  ------------------
 1558|       |
 1559|  4.09k|    bool hasRegion = false;
 1560|       |
 1561|  4.09k|    {
 1562|  4.09k|        size_t len = _getLanguage(localeID, language, status);
 1563|  4.09k|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1563:13): [True: 0, False: 4.09k]
  ------------------
 1564|  4.09k|        if (len > 0) {
  ------------------
  |  Branch (1564:13): [True: 4.09k, False: 0]
  ------------------
 1565|  4.09k|            localeID.remove_prefix(len);
 1566|  4.09k|        }
 1567|  4.09k|    }
 1568|       |
 1569|  4.09k|    if (pEnd != nullptr) {
  ------------------
  |  Branch (1569:9): [True: 2.71k, False: 1.38k]
  ------------------
 1570|  2.71k|        *pEnd = localeID.data();
 1571|  2.71k|    } else if (script == nullptr &&
  ------------------
  |  Branch (1571:16): [True: 827, False: 556]
  ------------------
 1572|  1.38k|               region == nullptr &&
  ------------------
  |  Branch (1572:16): [True: 380, False: 447]
  ------------------
 1573|  1.38k|               variant == nullptr) {
  ------------------
  |  Branch (1573:16): [True: 0, False: 380]
  ------------------
 1574|      0|        return;
 1575|      0|    }
 1576|       |
 1577|  4.09k|    if (localeID.empty()) { return; }
  ------------------
  |  Branch (1577:9): [True: 1.51k, False: 2.58k]
  ------------------
 1578|       |
 1579|  2.58k|    if (_isIDSeparator(localeID.front())) {
  ------------------
  |  Branch (1579:9): [True: 2.58k, False: 0]
  ------------------
 1580|  2.58k|        std::string_view sub = localeID;
 1581|  2.58k|        sub.remove_prefix(1);
 1582|  2.58k|        size_t len = _getScript(sub, script);
 1583|  2.58k|        if (len > 0) {
  ------------------
  |  Branch (1583:13): [True: 1.25k, False: 1.33k]
  ------------------
 1584|  1.25k|            localeID.remove_prefix(len + 1);
 1585|  1.25k|            if (pEnd != nullptr) { *pEnd = localeID.data(); }
  ------------------
  |  Branch (1585:17): [True: 393, False: 858]
  ------------------
 1586|  1.25k|        }
 1587|  2.58k|    }
 1588|       |
 1589|  2.58k|    if ((region == nullptr && variant == nullptr && pEnd == nullptr) || localeID.empty()) { return; }
  ------------------
  |  Branch (1589:10): [True: 557, False: 2.03k]
  |  Branch (1589:31): [True: 177, False: 380]
  |  Branch (1589:53): [True: 177, False: 0]
  |  Branch (1589:73): [True: 613, False: 1.79k]
  ------------------
 1590|       |
 1591|  1.79k|    if (_isIDSeparator(localeID.front())) {
  ------------------
  |  Branch (1591:9): [True: 1.79k, False: 0]
  ------------------
 1592|  1.79k|        std::string_view sub = localeID;
 1593|  1.79k|        sub.remove_prefix(1);
 1594|  1.79k|        size_t len = _getRegion(sub, region);
 1595|  1.79k|        if (len > 0) {
  ------------------
  |  Branch (1595:13): [True: 1.79k, False: 0]
  ------------------
 1596|  1.79k|            hasRegion = true;
 1597|  1.79k|            localeID.remove_prefix(len + 1);
 1598|  1.79k|            if (pEnd != nullptr) { *pEnd = localeID.data(); }
  ------------------
  |  Branch (1598:17): [True: 936, False: 862]
  ------------------
 1599|  1.79k|        }
 1600|  1.79k|    }
 1601|       |
 1602|  1.79k|    if ((variant == nullptr && pEnd == nullptr) || localeID.empty()) { return; }
  ------------------
  |  Branch (1602:10): [True: 654, False: 1.14k]
  |  Branch (1602:32): [True: 654, False: 0]
  |  Branch (1602:52): [True: 1.13k, False: 5]
  ------------------
 1603|       |
 1604|      5|    bool hasVariant = false;
 1605|       |
 1606|      5|    if (_isIDSeparator(localeID.front()) && !_isBCP47Extension(localeID)) {
  ------------------
  |  Branch (1606:9): [True: 5, False: 0]
  |  Branch (1606:45): [True: 5, False: 0]
  ------------------
 1607|      5|        std::string_view sub = localeID;
 1608|       |        /* If there was no country ID, skip a possible extra IDSeparator */
 1609|      5|        size_t skip = !hasRegion && localeID.size() > 1 && _isIDSeparator(localeID[1]) ? 2 : 1;
  ------------------
  |  Branch (1609:23): [True: 0, False: 5]
  |  Branch (1609:37): [True: 0, False: 0]
  |  Branch (1609:60): [True: 0, False: 0]
  ------------------
 1610|      5|        sub.remove_prefix(skip);
 1611|      5|        size_t len = _getVariant(sub, localeID[0], variant, false, status);
 1612|      5|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1612:13): [True: 0, False: 5]
  ------------------
 1613|      5|        if (len > 0) {
  ------------------
  |  Branch (1613:13): [True: 5, False: 0]
  ------------------
 1614|      5|            hasVariant = true;
 1615|      5|            localeID.remove_prefix(skip + len);
 1616|      5|            if (pEnd != nullptr) { *pEnd = localeID.data(); }
  ------------------
  |  Branch (1616:17): [True: 4, False: 1]
  ------------------
 1617|      5|        }
 1618|      5|    }
 1619|       |
 1620|      5|    if ((variant == nullptr && pEnd == nullptr) || localeID.empty()) { return; }
  ------------------
  |  Branch (1620:10): [True: 0, False: 5]
  |  Branch (1620:32): [True: 0, False: 0]
  |  Branch (1620:52): [True: 5, False: 0]
  ------------------
 1621|       |
 1622|      0|    if (_isBCP47Extension(localeID)) {
  ------------------
  |  Branch (1622:9): [True: 0, False: 0]
  ------------------
 1623|      0|        localeID.remove_prefix(2);
 1624|      0|        constexpr char vaposix[] = "-va-posix";
 1625|      0|        constexpr size_t length = sizeof vaposix - 1;
 1626|      0|        for (size_t next;; localeID.remove_prefix(next)) {
 1627|      0|            next = localeID.find('-', 1);
 1628|      0|            if (next == std::string_view::npos) { break; }
  ------------------
  |  Branch (1628:17): [True: 0, False: 0]
  ------------------
 1629|      0|            next = localeID.find('-', next + 1);
 1630|      0|            bool finished = next == std::string_view::npos;
 1631|      0|            std::string_view sub = localeID;
 1632|      0|            if (!finished) { sub.remove_suffix(sub.length() - next); }
  ------------------
  |  Branch (1632:17): [True: 0, False: 0]
  ------------------
 1633|       |
 1634|      0|            if (sub.length() == length && uprv_strnicmp(sub.data(), vaposix, length) == 0) {
  ------------------
  |  | 1544|      0|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_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 (1634:17): [True: 0, False: 0]
  |  Branch (1634:43): [True: 0, False: 0]
  ------------------
 1635|      0|                if (variant != nullptr) {
  ------------------
  |  Branch (1635:21): [True: 0, False: 0]
  ------------------
 1636|      0|                    if (hasVariant) { variant->Append("_", 1); }
  ------------------
  |  Branch (1636:25): [True: 0, False: 0]
  ------------------
 1637|      0|                    constexpr char posix[] = "POSIX";
 1638|      0|                    variant->Append(posix, sizeof posix - 1);
 1639|      0|                }
 1640|      0|                if (pEnd != nullptr) { *pEnd = localeID.data() + length; }
  ------------------
  |  Branch (1640:21): [True: 0, False: 0]
  ------------------
 1641|      0|            }
 1642|       |
 1643|      0|            if (finished) { break; }
  ------------------
  |  Branch (1643:17): [True: 0, False: 0]
  ------------------
 1644|      0|        }
 1645|      0|    }
 1646|      0|}
_Z18ulocimp_getName_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEERN6icu_788ByteSinkER10UErrorCode:
 2171|    895|{
 2172|    895|    _canonicalize(localeID, sink, 0, err);
 2173|    895|}
_Z22ulocimp_getBaseName_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEER10UErrorCode:
 2195|    487|{
 2196|    487|    return ByteSinkUtil::viaByteSinkToCharString(
 2197|    487|        [&](ByteSink& sink, UErrorCode& status) {
 2198|    487|            ulocimp_getBaseName(localeID, sink, status);
 2199|    487|        },
 2200|    487|        err);
 2201|    487|}
_Z22ulocimp_getBaseName_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEERN6icu_788ByteSinkER10UErrorCode:
 2207|    487|{
 2208|    487|    _canonicalize(localeID, sink, _ULOC_STRIP_KEYWORDS, err);
  ------------------
  |  | 1785|    487|#define _ULOC_STRIP_KEYWORDS 0x2
  ------------------
 2209|    487|}
_Z23ulocimp_canonicalize_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEER10UErrorCode:
 2231|    448|{
 2232|    448|    return ByteSinkUtil::viaByteSinkToCharString(
 2233|    448|        [&](ByteSink& sink, UErrorCode& status) {
 2234|    448|            ulocimp_canonicalize(localeID, sink, status);
 2235|    448|        },
 2236|    448|        err);
 2237|    448|}
_Z23ulocimp_canonicalize_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEERN6icu_788ByteSinkER10UErrorCode:
 2243|  1.33k|{
 2244|  1.33k|    _canonicalize(localeID, sink, _ULOC_CANONICALIZE, err);
  ------------------
  |  | 1786|  1.33k|#define _ULOC_CANONICALIZE   0x1
  ------------------
 2245|  1.33k|}
uloc_getDefault_78:
 2336|    923|{
 2337|    923|    return locale_get_default();
  ------------------
  |  |  139|    923|#define locale_get_default U_ICU_ENTRY_POINT_RENAME(locale_get_default)
  |  |  ------------------
  |  |  |  |  123|    923|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    923|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    923|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2338|    923|}
uloc.cpp:_ZN12_GLOBAL__N_118_hasBCP47ExtensionENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  510|  2.71k|inline bool _hasBCP47Extension(std::string_view id) {
  511|  2.71k|    return id.find('@') == std::string_view::npos && getShortestSubtagLength(id) == 1;
  ------------------
  |  Branch (511:12): [True: 2.71k, False: 0]
  |  Branch (511:54): [True: 0, False: 2.71k]
  ------------------
  512|  2.71k|}
uloc.cpp:_ZN12_GLOBAL__N_123getShortestSubtagLengthENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  485|  2.71k|int32_t getShortestSubtagLength(std::string_view localeID) {
  486|  2.71k|    int32_t localeIDLength = static_cast<int32_t>(localeID.length());
  487|  2.71k|    int32_t length = localeIDLength;
  488|  2.71k|    int32_t tmpLength = 0;
  489|  2.71k|    int32_t i;
  490|  2.71k|    bool reset = true;
  491|       |
  492|  12.4k|    for (i = 0; i < localeIDLength; i++) {
  ------------------
  |  Branch (492:17): [True: 9.71k, False: 2.71k]
  ------------------
  493|  9.71k|        if (localeID[i] != '_' && localeID[i] != '-') {
  ------------------
  |  Branch (493:13): [True: 8.44k, False: 1.26k]
  |  Branch (493:35): [True: 8.44k, False: 0]
  ------------------
  494|  8.44k|            if (reset) {
  ------------------
  |  Branch (494:17): [True: 3.53k, False: 4.91k]
  ------------------
  495|  3.53k|                tmpLength = 0;
  496|  3.53k|                reset = false;
  497|  3.53k|            }
  498|  8.44k|            tmpLength++;
  499|  8.44k|        } else {
  500|  1.26k|            if (tmpLength != 0 && tmpLength < length) {
  ------------------
  |  Branch (500:17): [True: 1.26k, False: 0]
  |  Branch (500:35): [True: 1.13k, False: 128]
  ------------------
  501|  1.13k|                length = tmpLength;
  502|  1.13k|            }
  503|  1.26k|            reset = true;
  504|  1.26k|        }
  505|  9.71k|    }
  506|       |
  507|  2.71k|    return length;
  508|  2.71k|}
uloc.cpp:_ZN12_GLOBAL__N_110_findIndexEPKPKcS1_:
 1178|  1.06k|{
 1179|  1.06k|    const char* const* anchor = list;
 1180|  1.06k|    int32_t pass = 0;
 1181|       |
 1182|       |    /* Make two passes through two nullptr-terminated arrays at 'list' */
 1183|  1.10k|    while (pass++ < 2) {
  ------------------
  |  Branch (1183:12): [True: 1.08k, False: 19]
  ------------------
 1184|   311k|        while (*list) {
  ------------------
  |  Branch (1184:16): [True: 311k, False: 38]
  ------------------
 1185|   311k|            if (uprv_strcmp(key, *list) == 0) {
  ------------------
  |  |   38|   311k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   311k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1185:17): [True: 1.04k, False: 309k]
  ------------------
 1186|  1.04k|                return static_cast<int16_t>(list - anchor);
 1187|  1.04k|            }
 1188|   309k|            list++;
 1189|   309k|        }
 1190|     38|        ++list;     /* skip final nullptr *CWB*/
 1191|     38|    }
 1192|     19|    return std::nullopt;
 1193|  1.06k|}
uloc.cpp:_ZN12_GLOBAL__N_112_getLanguageENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEPN6icu_788ByteSinkER10UErrorCode:
 1219|  4.09k|size_t _getLanguage(std::string_view localeID, ByteSink* sink, UErrorCode& status) {
 1220|  4.09k|    size_t skip = 0;
 1221|  4.09k|    if (localeID.size() == 4 && uprv_strnicmp(localeID.data(), "root", 4) == 0) {
  ------------------
  |  | 1544|      0|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_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 (1221:9): [True: 0, False: 4.09k]
  |  Branch (1221:33): [True: 0, False: 0]
  ------------------
 1222|      0|        skip = 4;
 1223|      0|        localeID.remove_prefix(skip);
 1224|  4.09k|    } else if (localeID.size() >= 3 && uprv_strnicmp(localeID.data(), "und", 3) == 0 &&
  ------------------
  |  | 1544|  3.21k|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  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 (1224:16): [True: 3.21k, False: 888]
  |  Branch (1224:40): [True: 0, False: 3.21k]
  ------------------
 1225|  4.09k|               (localeID.size() == 3 ||
  ------------------
  |  Branch (1225:17): [True: 0, False: 0]
  ------------------
 1226|      0|                localeID[3] == '-' ||
  ------------------
  |  Branch (1226:17): [True: 0, False: 0]
  ------------------
 1227|      0|                localeID[3] == '_' ||
  ------------------
  |  Branch (1227:17): [True: 0, False: 0]
  ------------------
 1228|      0|                localeID[3] == '@')) {
  ------------------
  |  Branch (1228:17): [True: 0, False: 0]
  ------------------
 1229|      0|        skip = 3;
 1230|      0|        localeID.remove_prefix(skip);
 1231|      0|    }
 1232|       |
 1233|  4.09k|    constexpr int32_t MAXLEN = ULOC_LANG_CAPACITY - 1;  // Minus NUL.
  ------------------
  |  |  251|  4.09k|#define ULOC_LANG_CAPACITY 12
  ------------------
 1234|       |
 1235|       |    /* if it starts with i- or x- then copy that prefix */
 1236|  4.09k|    size_t len = _isIDPrefix(localeID) ? 2 : 0;
  ------------------
  |  Branch (1236:18): [True: 0, False: 4.09k]
  ------------------
 1237|  13.6k|    while (len < localeID.size() && !_isTerminator(localeID[len]) && !_isIDSeparator(localeID[len])) {
  ------------------
  |  Branch (1237:12): [True: 12.1k, False: 1.51k]
  |  Branch (1237:37): [True: 12.1k, False: 0]
  |  Branch (1237:70): [True: 9.52k, False: 2.58k]
  ------------------
 1238|  9.52k|        if (len == MAXLEN) {
  ------------------
  |  Branch (1238:13): [True: 0, False: 9.52k]
  ------------------
 1239|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
 1240|      0|            return 0;
 1241|      0|        }
 1242|  9.52k|        len++;
 1243|  9.52k|    }
 1244|       |
 1245|  4.09k|    if (sink == nullptr || len == 0) { return skip + len; }
  ------------------
  |  Branch (1245:9): [True: 827, False: 3.27k]
  |  Branch (1245:28): [True: 0, False: 3.27k]
  ------------------
 1246|       |
 1247|  3.27k|    int32_t minCapacity = uprv_max(static_cast<int32_t>(len), 4);  // Minimum 3 letters plus NUL.
  ------------------
  |  | 1526|  3.27k|#define uprv_max U_ICU_ENTRY_POINT_RENAME(uprv_max)
  |  |  ------------------
  |  |  |  |  123|  3.27k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.27k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.27k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1248|  3.27k|    char scratch[MAXLEN];
 1249|  3.27k|    int32_t capacity = 0;
 1250|  3.27k|    char* buffer = sink->GetAppendBuffer(
 1251|  3.27k|            minCapacity, minCapacity, scratch, UPRV_LENGTHOF(scratch), &capacity);
  ------------------
  |  |   99|  3.27k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1252|       |
 1253|  10.8k|    for (size_t i = 0; i < len; ++i) {
  ------------------
  |  Branch (1253:24): [True: 7.58k, False: 3.27k]
  ------------------
 1254|  7.58k|        buffer[i] = uprv_tolower(localeID[i]);
  ------------------
  |  |   68|  7.58k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  7.58k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  7.58k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  7.58k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  7.58k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1255|  7.58k|    }
 1256|  3.27k|    if (localeID.size() >= 2 && _isIDSeparator(localeID[1])) {
  ------------------
  |  Branch (1256:9): [True: 3.27k, False: 0]
  |  Branch (1256:33): [True: 0, False: 3.27k]
  ------------------
 1257|      0|        buffer[1] = '-';
 1258|      0|    }
 1259|       |
 1260|  3.27k|    if (len == 3) {
  ------------------
  |  Branch (1260:9): [True: 1.04k, False: 2.22k]
  ------------------
 1261|       |        /* convert 3 character code to 2 character code if possible *CWB*/
 1262|  1.04k|        U_ASSERT(capacity >= 4);
  ------------------
  |  |   35|  1.04k|#   define U_ASSERT(exp) (void)0
  ------------------
 1263|  1.04k|        buffer[3] = '\0';
 1264|  1.04k|        std::optional<int16_t> offset = _findIndex(LANGUAGES_3, buffer);
 1265|  1.04k|        if (offset.has_value()) {
  ------------------
  |  Branch (1265:13): [True: 1.04k, False: 0]
  ------------------
 1266|  1.04k|            const char* const alias = LANGUAGES[*offset];
 1267|  1.04k|            sink->Append(alias, static_cast<int32_t>(uprv_strlen(alias)));
  ------------------
  |  |   37|  1.04k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  1.04k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1268|  1.04k|            return skip + len;
 1269|  1.04k|        }
 1270|  1.04k|    }
 1271|       |
 1272|  2.22k|    sink->Append(buffer, static_cast<int32_t>(len));
 1273|  2.22k|    return skip + len;
 1274|  3.27k|}
uloc.cpp:_ZN12_GLOBAL__N_111_isIDPrefixENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
 1152|  4.09k|inline bool _isIDPrefix(std::string_view s) {
 1153|  4.09k|    return s.size() >= 2 && _isPrefixLetter(s[0]) && _isIDSeparator(s[1]);
  ------------------
  |  Branch (1153:12): [True: 4.09k, False: 0]
  |  Branch (1153:29): [True: 84, False: 4.01k]
  |  Branch (1153:54): [True: 0, False: 84]
  ------------------
 1154|  4.09k|}
uloc.cpp:_ZN12_GLOBAL__N_115_isPrefixLetterEc:
 1148|  4.09k|inline bool _isPrefixLetter(char a) { return a == 'x' || a == 'X' || a == 'i' || a == 'I'; }
  ------------------
  |  Branch (1148:46): [True: 32, False: 4.06k]
  |  Branch (1148:58): [True: 0, False: 4.06k]
  |  Branch (1148:70): [True: 52, False: 4.01k]
  |  Branch (1148:82): [True: 0, False: 4.01k]
  ------------------
uloc.cpp:_ZN12_GLOBAL__N_113_isTerminatorEc:
 1159|  24.0k|inline bool _isTerminator(char a) { return a == '.' || a == '@'; }
  ------------------
  |  Branch (1159:44): [True: 0, False: 24.0k]
  |  Branch (1159:56): [True: 0, False: 24.0k]
  ------------------
uloc.cpp:_ZN12_GLOBAL__N_110_getScriptENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEPN6icu_788ByteSinkE:
 1276|  2.58k|size_t _getScript(std::string_view localeID, ByteSink* sink) {
 1277|  2.58k|    constexpr int32_t LENGTH = 4;
 1278|       |
 1279|  2.58k|    size_t len = 0;
 1280|  10.2k|    while (len < localeID.size() && !_isTerminator(localeID[len]) && !_isIDSeparator(localeID[len]) &&
  ------------------
  |  Branch (1280:12): [True: 8.30k, False: 1.92k]
  |  Branch (1280:37): [True: 8.30k, False: 0]
  |  Branch (1280:70): [True: 7.66k, False: 644]
  ------------------
 1281|  10.2k|            uprv_isASCIILetter(localeID[len])) {
  ------------------
  |  | 1514|  7.66k|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1281:13): [True: 7.64k, False: 18]
  ------------------
 1282|  7.64k|        if (len == LENGTH) { return 0; }
  ------------------
  |  Branch (1282:13): [True: 0, False: 7.64k]
  ------------------
 1283|  7.64k|        len++;
 1284|  7.64k|    }
 1285|  2.58k|    if (len != LENGTH) { return 0; }
  ------------------
  |  Branch (1285:9): [True: 1.33k, False: 1.25k]
  ------------------
 1286|       |
 1287|  1.25k|    if (sink == nullptr) { return len; }
  ------------------
  |  Branch (1287:9): [True: 649, False: 602]
  ------------------
 1288|       |
 1289|    602|    char scratch[LENGTH];
 1290|    602|    int32_t capacity = 0;
 1291|    602|    char* buffer = sink->GetAppendBuffer(
 1292|    602|            LENGTH, LENGTH, scratch, UPRV_LENGTHOF(scratch), &capacity);
  ------------------
  |  |   99|    602|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1293|       |
 1294|    602|    buffer[0] = uprv_toupper(localeID[0]);
  ------------------
  |  | 1547|    602|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|    602|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    602|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    602|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1295|  2.40k|    for (int32_t i = 1; i < LENGTH; ++i) {
  ------------------
  |  Branch (1295:25): [True: 1.80k, False: 602]
  ------------------
 1296|  1.80k|        buffer[i] = uprv_tolower(localeID[i]);
  ------------------
  |  |   68|  1.80k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  1.80k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  1.80k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  1.80k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  1.80k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1297|  1.80k|    }
 1298|       |
 1299|    602|    sink->Append(buffer, LENGTH);
 1300|    602|    return len;
 1301|  1.25k|}
uloc.cpp:_ZN12_GLOBAL__N_110_getRegionENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEPN6icu_788ByteSinkE:
 1303|  1.79k|size_t _getRegion(std::string_view localeID, ByteSink* sink) {
 1304|  1.79k|    constexpr int32_t MINLEN = 2;
 1305|  1.79k|    constexpr int32_t MAXLEN = ULOC_COUNTRY_CAPACITY - 1;  // Minus NUL.
  ------------------
  |  |  258|  1.79k|#define ULOC_COUNTRY_CAPACITY 4
  ------------------
 1306|       |
 1307|  1.79k|    size_t len = 0;
 1308|  5.41k|    while (len < localeID.size() && !_isTerminator(localeID[len]) && !_isIDSeparator(localeID[len])) {
  ------------------
  |  Branch (1308:12): [True: 3.62k, False: 1.79k]
  |  Branch (1308:37): [True: 3.62k, False: 0]
  |  Branch (1308:70): [True: 3.61k, False: 5]
  ------------------
 1309|  3.61k|        if (len == MAXLEN) { return 0; }
  ------------------
  |  Branch (1309:13): [True: 0, False: 3.61k]
  ------------------
 1310|  3.61k|        len++;
 1311|  3.61k|    }
 1312|  1.79k|    if (len < MINLEN) { return 0; }
  ------------------
  |  Branch (1312:9): [True: 0, False: 1.79k]
  ------------------
 1313|       |
 1314|  1.79k|    if (sink == nullptr) { return len; }
  ------------------
  |  Branch (1314:9): [True: 208, False: 1.59k]
  ------------------
 1315|       |
 1316|  1.59k|    char scratch[ULOC_COUNTRY_CAPACITY];
 1317|  1.59k|    int32_t capacity = 0;
 1318|  1.59k|    char* buffer = sink->GetAppendBuffer(
 1319|  1.59k|            ULOC_COUNTRY_CAPACITY,
  ------------------
  |  |  258|  1.59k|#define ULOC_COUNTRY_CAPACITY 4
  ------------------
 1320|  1.59k|            ULOC_COUNTRY_CAPACITY,
  ------------------
  |  |  258|  1.59k|#define ULOC_COUNTRY_CAPACITY 4
  ------------------
 1321|  1.59k|            scratch,
 1322|  1.59k|            UPRV_LENGTHOF(scratch),
  ------------------
  |  |   99|  1.59k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1323|  1.59k|            &capacity);
 1324|       |
 1325|  4.78k|    for (size_t i = 0; i < len; ++i) {
  ------------------
  |  Branch (1325:24): [True: 3.19k, False: 1.59k]
  ------------------
 1326|  3.19k|        buffer[i] = uprv_toupper(localeID[i]);
  ------------------
  |  | 1547|  3.19k|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|  3.19k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.19k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.19k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1327|  3.19k|    }
 1328|       |
 1329|  1.59k|    if (len == 3) {
  ------------------
  |  Branch (1329:9): [True: 19, False: 1.57k]
  ------------------
 1330|       |        /* convert 3 character code to 2 character code if possible *CWB*/
 1331|     19|        U_ASSERT(capacity >= 4);
  ------------------
  |  |   35|     19|#   define U_ASSERT(exp) (void)0
  ------------------
 1332|     19|        buffer[3] = '\0';
 1333|     19|        std::optional<int16_t> offset = _findIndex(COUNTRIES_3, buffer);
 1334|     19|        if (offset.has_value()) {
  ------------------
  |  Branch (1334:13): [True: 0, False: 19]
  ------------------
 1335|      0|            const char* const alias = COUNTRIES[*offset];
 1336|      0|            sink->Append(alias, static_cast<int32_t>(uprv_strlen(alias)));
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1337|      0|            return len;
 1338|      0|        }
 1339|     19|    }
 1340|       |
 1341|  1.59k|    sink->Append(buffer, static_cast<int32_t>(len));
 1342|  1.59k|    return len;
 1343|  1.59k|}
uloc.cpp:_ZN12_GLOBAL__N_117_isBCP47ExtensionENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
 1161|      5|inline bool _isBCP47Extension(std::string_view p) {
 1162|      5|    return p.size() >= 3 &&
  ------------------
  |  Branch (1162:12): [True: 5, False: 0]
  ------------------
 1163|      5|           p[0] == '-' &&
  ------------------
  |  Branch (1163:12): [True: 0, False: 5]
  ------------------
 1164|      5|           (p[1] == 't' || p[1] == 'T' ||
  ------------------
  |  Branch (1164:13): [True: 0, False: 0]
  |  Branch (1164:28): [True: 0, False: 0]
  ------------------
 1165|      0|            p[1] == 'u' || p[1] == 'U' ||
  ------------------
  |  Branch (1165:13): [True: 0, False: 0]
  |  Branch (1165:28): [True: 0, False: 0]
  ------------------
 1166|      0|            p[1] == 'x' || p[1] == 'X') &&
  ------------------
  |  Branch (1166:13): [True: 0, False: 0]
  |  Branch (1166:28): [True: 0, False: 0]
  ------------------
 1167|      5|           p[2] == '-';
  ------------------
  |  Branch (1167:12): [True: 0, False: 0]
  ------------------
 1168|      5|}
uloc.cpp:_ZN12_GLOBAL__N_111_getVariantENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEcPN6icu_788ByteSinkEbR10UErrorCode:
 1354|      5|            UErrorCode& status) {
 1355|      5|    if (U_FAILURE(status) || localeID.empty()) return 0;
  ------------------
  |  Branch (1355:9): [True: 0, False: 5]
  |  Branch (1355:30): [True: 0, False: 5]
  ------------------
 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|      5|    constexpr int32_t MAX_VARIANTS_LENGTH = 179;
 1366|       |
 1367|       |    /* get one or more variant tags and separate them with '_' */
 1368|      5|    size_t index = 0;
 1369|      5|    if (_isIDSeparator(prev)) {
  ------------------
  |  Branch (1369:9): [True: 5, False: 0]
  ------------------
 1370|       |        /* get a variant string after a '-' or '_' */
 1371|      5|        for (std::string_view sub = localeID;;) {
 1372|      5|            size_t next = sub.find_first_of(".@_-");
 1373|       |            // For historical reasons, a trailing separator is included in the variant.
 1374|      5|            bool finished = next == std::string_view::npos || next + 1 == sub.length();
  ------------------
  |  Branch (1374:29): [True: 5, False: 0]
  |  Branch (1374:63): [True: 0, False: 0]
  ------------------
 1375|      5|            size_t limit = finished ? sub.length() : next;
  ------------------
  |  Branch (1375:28): [True: 5, False: 0]
  ------------------
 1376|      5|            index += limit;
 1377|      5|            if (index > MAX_VARIANTS_LENGTH) {
  ------------------
  |  Branch (1377:17): [True: 0, False: 5]
  ------------------
 1378|      0|                status = U_ILLEGAL_ARGUMENT_ERROR;
 1379|      0|                return 0;
 1380|      0|            }
 1381|       |
 1382|      5|            if (sink != nullptr) {
  ------------------
  |  Branch (1382:17): [True: 5, False: 0]
  ------------------
 1383|      5|                if (needSeparator) {
  ------------------
  |  Branch (1383:21): [True: 0, False: 5]
  ------------------
 1384|      0|                    sink->Append("_", 1);
 1385|      5|                } else {
 1386|      5|                    needSeparator = true;
 1387|      5|                }
 1388|       |
 1389|      5|                int32_t length = static_cast<int32_t>(limit);
 1390|      5|                int32_t minCapacity = uprv_min(length, MAX_VARIANTS_LENGTH);
  ------------------
  |  | 1529|      5|#define uprv_min U_ICU_ENTRY_POINT_RENAME(uprv_min)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1391|      5|                char scratch[MAX_VARIANTS_LENGTH];
 1392|      5|                int32_t capacity = 0;
 1393|      5|                char* buffer = sink->GetAppendBuffer(
 1394|      5|                        minCapacity, minCapacity, scratch, UPRV_LENGTHOF(scratch), &capacity);
  ------------------
  |  |   99|      5|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1395|       |
 1396|     30|                for (size_t i = 0; i < limit; ++i) {
  ------------------
  |  Branch (1396:36): [True: 25, False: 5]
  ------------------
 1397|     25|                    buffer[i] = uprv_toupper(sub[i]);
  ------------------
  |  | 1547|     25|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1398|     25|                }
 1399|      5|                sink->Append(buffer, length);
 1400|      5|            }
 1401|       |
 1402|      5|            if (finished) { return index; }
  ------------------
  |  Branch (1402:17): [True: 5, False: 0]
  ------------------
 1403|      0|            sub.remove_prefix(next);
 1404|      0|            if (_isTerminator(sub.front()) || _isBCP47Extension(sub)) { return index; }
  ------------------
  |  Branch (1404:17): [True: 0, False: 0]
  |  Branch (1404:47): [True: 0, False: 0]
  ------------------
 1405|      0|            sub.remove_prefix(1);
 1406|      0|            index++;
 1407|      0|        }
 1408|      5|    }
 1409|       |
 1410|      0|    size_t skip = 0;
 1411|       |    /* if there is no variant tag after a '-' or '_' then look for '@' */
 1412|      0|    if (prev == '@') {
  ------------------
  |  Branch (1412:9): [True: 0, False: 0]
  ------------------
 1413|       |        /* keep localeID */
 1414|      0|    } else if (const char* p = locale_getKeywordsStart(localeID); p != nullptr) {
  ------------------
  |  |  138|      0|#define locale_getKeywordsStart U_ICU_ENTRY_POINT_RENAME(locale_getKeywordsStart)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1414:67): [True: 0, False: 0]
  ------------------
 1415|      0|        skip = 1 + p - localeID.data(); /* point after the '@' */
 1416|      0|        localeID.remove_prefix(skip);
 1417|      0|    } else {
 1418|      0|        return 0;
 1419|      0|    }
 1420|      0|    for (; index < localeID.size() && !_isTerminator(localeID[index]); index++) {
  ------------------
  |  Branch (1420:12): [True: 0, False: 0]
  |  Branch (1420:39): [True: 0, False: 0]
  ------------------
 1421|      0|        if (index >= MAX_VARIANTS_LENGTH) { // same as length > MAX_VARIANTS_LENGTH
  ------------------
  |  Branch (1421:13): [True: 0, False: 0]
  ------------------
 1422|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
 1423|      0|            return 0;
 1424|      0|        }
 1425|      0|        if (needSeparator) {
  ------------------
  |  Branch (1425:13): [True: 0, False: 0]
  ------------------
 1426|      0|            if (sink != nullptr) {
  ------------------
  |  Branch (1426:17): [True: 0, False: 0]
  ------------------
 1427|      0|                sink->Append("_", 1);
 1428|      0|            }
 1429|      0|            needSeparator = false;
 1430|      0|        }
 1431|      0|        if (sink != nullptr) {
  ------------------
  |  Branch (1431:13): [True: 0, False: 0]
  ------------------
 1432|      0|            char c = uprv_toupper(localeID[index]);
  ------------------
  |  | 1547|      0|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1433|      0|            if (c == '-' || c == ',') c = '_';
  ------------------
  |  Branch (1433:17): [True: 0, False: 0]
  |  Branch (1433:29): [True: 0, False: 0]
  ------------------
 1434|      0|            sink->Append(&c, 1);
 1435|      0|        }
 1436|      0|    }
 1437|      0|    return skip + index;
 1438|      0|}
uloc.cpp:_ZN12_GLOBAL__N_113_canonicalizeENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEERN6icu_788ByteSinkEjR10UErrorCode:
 1806|  2.71k|              UErrorCode& err) {
 1807|  2.71k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (1807:9): [True: 0, False: 2.71k]
  ------------------
 1808|      0|        return;
 1809|      0|    }
 1810|       |
 1811|  2.71k|    int32_t j, fieldCount=0;
 1812|  2.71k|    CharString tempBuffer;  // if localeID has a BCP47 extension, tmpLocaleID points to this
 1813|  2.71k|    CharString localeIDWithHyphens;  // if localeID has a BPC47 extension and have _, tmpLocaleID points to this
 1814|  2.71k|    std::string_view origLocaleID;
 1815|  2.71k|    std::string_view tmpLocaleID;
 1816|  2.71k|    size_t keywordAssign = std::string_view::npos;
 1817|  2.71k|    size_t separatorIndicator = std::string_view::npos;
 1818|       |
 1819|  2.71k|    if (_hasBCP47Extension(localeID)) {
  ------------------
  |  Branch (1819:9): [True: 0, False: 2.71k]
  ------------------
 1820|      0|        std::string_view localeIDPtr = localeID;
 1821|       |
 1822|       |        // convert all underbars to hyphens, unless the "BCP47 extension" comes at the beginning of the string
 1823|      0|        if (localeID.size() >= 2 && localeID.find('_') != std::string_view::npos && localeID[1] != '-' && localeID[1] != '_') {
  ------------------
  |  Branch (1823:13): [True: 0, False: 0]
  |  Branch (1823:37): [True: 0, False: 0]
  |  Branch (1823:85): [True: 0, False: 0]
  |  Branch (1823:107): [True: 0, False: 0]
  ------------------
 1824|      0|            localeIDWithHyphens.append(localeID, err);
 1825|      0|            if (U_SUCCESS(err)) {
  ------------------
  |  Branch (1825:17): [True: 0, False: 0]
  ------------------
 1826|      0|                for (char* p = localeIDWithHyphens.data(); *p != '\0'; ++p) {
  ------------------
  |  Branch (1826:60): [True: 0, False: 0]
  ------------------
 1827|      0|                    if (*p == '_') {
  ------------------
  |  Branch (1827:25): [True: 0, False: 0]
  ------------------
 1828|      0|                        *p = '-';
 1829|      0|                    }
 1830|      0|                }
 1831|      0|                localeIDPtr = localeIDWithHyphens.toStringPiece();
 1832|      0|            }
 1833|      0|        }
 1834|       |
 1835|      0|        tempBuffer = ulocimp_forLanguageTag(localeIDPtr.data(), static_cast<int32_t>(localeIDPtr.size()), nullptr, err);
  ------------------
  |  | 1198|      0|#define ulocimp_forLanguageTag U_ICU_ENTRY_POINT_RENAME(ulocimp_forLanguageTag)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1836|      0|        tmpLocaleID = U_SUCCESS(err) && !tempBuffer.isEmpty() ? static_cast<std::string_view>(tempBuffer.toStringPiece()) : localeIDPtr;
  ------------------
  |  Branch (1836:23): [True: 0, False: 0]
  |  Branch (1836:41): [True: 0, False: 0]
  ------------------
 1837|  2.71k|    } else {
 1838|  2.71k|        tmpLocaleID=localeID;
 1839|  2.71k|    }
 1840|       |
 1841|  2.71k|    origLocaleID=tmpLocaleID;
 1842|       |
 1843|       |    /* get all pieces, one after another, and separate with '_' */
 1844|  2.71k|    CharString tag;
 1845|  2.71k|    CharString script;
 1846|  2.71k|    CharString country;
 1847|  2.71k|    CharString variant;
 1848|  2.71k|    const char* end = nullptr;
 1849|  2.71k|    ulocimp_getSubtags(
  ------------------
  |  | 1209|  2.71k|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|  2.71k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.71k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.71k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1850|  2.71k|            tmpLocaleID,
 1851|  2.71k|            &tag,
 1852|  2.71k|            &script,
 1853|  2.71k|            &country,
 1854|  2.71k|            &variant,
 1855|  2.71k|            &end,
 1856|  2.71k|            err);
 1857|  2.71k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (1857:9): [True: 0, False: 2.71k]
  ------------------
 1858|      0|        return;
 1859|      0|    }
 1860|  2.71k|    U_ASSERT(end != nullptr);
  ------------------
  |  |   35|  2.71k|#   define U_ASSERT(exp) (void)0
  ------------------
 1861|  2.71k|    if (end > tmpLocaleID.data()) {
  ------------------
  |  Branch (1861:9): [True: 2.26k, False: 447]
  ------------------
 1862|  2.26k|        tmpLocaleID.remove_prefix(end - tmpLocaleID.data());
 1863|  2.26k|    }
 1864|       |
 1865|  2.71k|    if (tag.length() == I_DEFAULT_LENGTH && origLocaleID.length() >= I_DEFAULT_LENGTH &&
  ------------------
  |  Branch (1865:9): [True: 0, False: 2.71k]
  |  Branch (1865:45): [True: 0, False: 0]
  ------------------
 1866|  2.71k|            uprv_strncmp(origLocaleID.data(), i_default, I_DEFAULT_LENGTH) == 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 (1866:13): [True: 0, False: 0]
  ------------------
 1867|      0|        tag.clear();
 1868|      0|        tag.append(uloc_getDefault(), err);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1869|  2.71k|    } else {
 1870|  2.71k|        if (!script.isEmpty()) {
  ------------------
  |  Branch (1870:13): [True: 323, False: 2.39k]
  ------------------
 1871|    323|            ++fieldCount;
 1872|    323|            tag.append('_', err);
 1873|    323|            tag.append(script, err);
 1874|    323|        }
 1875|  2.71k|        if (!country.isEmpty()) {
  ------------------
  |  Branch (1875:13): [True: 936, False: 1.77k]
  ------------------
 1876|    936|            ++fieldCount;
 1877|    936|            tag.append('_', err);
 1878|    936|            tag.append(country, err);
 1879|    936|        }
 1880|  2.71k|        if (!variant.isEmpty()) {
  ------------------
  |  Branch (1880:13): [True: 4, False: 2.71k]
  ------------------
 1881|      4|            ++fieldCount;
 1882|      4|            if (country.isEmpty()) {
  ------------------
  |  Branch (1882:17): [True: 0, False: 4]
  ------------------
 1883|      0|                tag.append('_', err);
 1884|      0|            }
 1885|      4|            tag.append('_', err);
 1886|      4|            tag.append(variant, err);
 1887|      4|        }
 1888|  2.71k|    }
 1889|       |
 1890|       |    /* Copy POSIX-style charset specifier, if any [mr.utf8] */
 1891|  2.71k|    if (!OPTION_SET(options, _ULOC_CANONICALIZE) && !tmpLocaleID.empty() && tmpLocaleID.front() == '.') {
  ------------------
  |  | 1786|  2.71k|#define _ULOC_CANONICALIZE   0x1
  ------------------
  |  Branch (1891:9): [True: 1.38k, False: 1.33k]
  |  Branch (1891:53): [True: 0, False: 1.38k]
  |  Branch (1891:77): [True: 0, False: 0]
  ------------------
 1892|      0|        tag.append('.', err);
 1893|      0|        tmpLocaleID.remove_prefix(1);
 1894|      0|        size_t length;
 1895|      0|        if (size_t atPos = tmpLocaleID.find('@'); atPos != std::string_view::npos) {
  ------------------
  |  Branch (1895:51): [True: 0, False: 0]
  ------------------
 1896|      0|            length = atPos;
 1897|      0|        } else {
 1898|      0|            length = tmpLocaleID.length();
 1899|      0|        }
 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|      0|        constexpr size_t kMaxCharsetLength = 64;
 1906|      0|        if (length > kMaxCharsetLength) {
  ------------------
  |  Branch (1906:13): [True: 0, False: 0]
  ------------------
 1907|      0|           err = U_ILLEGAL_ARGUMENT_ERROR; /* malformed keyword name */
 1908|      0|           return;
 1909|      0|        }
 1910|      0|        if (length > 0) {
  ------------------
  |  Branch (1910:13): [True: 0, False: 0]
  ------------------
 1911|      0|            tag.append(tmpLocaleID.data(), static_cast<int32_t>(length), err);
 1912|      0|            tmpLocaleID.remove_prefix(length);
 1913|      0|        }
 1914|      0|    }
 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|  2.71k|    if (const char* start = locale_getKeywordsStart(tmpLocaleID); start != nullptr) {
  ------------------
  |  |  138|  2.71k|#define locale_getKeywordsStart U_ICU_ENTRY_POINT_RENAME(locale_getKeywordsStart)
  |  |  ------------------
  |  |  |  |  123|  2.71k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.71k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.71k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1918:67): [True: 0, False: 2.71k]
  ------------------
 1919|      0|        if (start > tmpLocaleID.data()) {
  ------------------
  |  Branch (1919:13): [True: 0, False: 0]
  ------------------
 1920|      0|            tmpLocaleID.remove_prefix(start - tmpLocaleID.data());
 1921|      0|        }
 1922|      0|        keywordAssign = tmpLocaleID.find('=');
 1923|      0|        separatorIndicator = tmpLocaleID.find(';');
 1924|  2.71k|    } else {
 1925|  2.71k|        tmpLocaleID = {};
 1926|  2.71k|    }
 1927|       |
 1928|       |    /* Copy POSIX-style variant, if any [mr@FOO] */
 1929|  2.71k|    if (!OPTION_SET(options, _ULOC_CANONICALIZE) &&
  ------------------
  |  | 1786|  2.71k|#define _ULOC_CANONICALIZE   0x1
  ------------------
  |  Branch (1929:9): [True: 1.38k, False: 1.33k]
  ------------------
 1930|  2.71k|        !tmpLocaleID.empty() && keywordAssign == std::string_view::npos) {
  ------------------
  |  Branch (1930:9): [True: 0, False: 1.38k]
  |  Branch (1930:33): [True: 0, False: 0]
  ------------------
 1931|      0|        tag.append(tmpLocaleID, err);
 1932|      0|        tmpLocaleID = {};
 1933|      0|    }
 1934|       |
 1935|  2.71k|    if (OPTION_SET(options, _ULOC_CANONICALIZE)) {
  ------------------
  |  | 1786|  2.71k|#define _ULOC_CANONICALIZE   0x1
  ------------------
  |  Branch (1935:9): [True: 1.33k, False: 1.38k]
  ------------------
 1936|       |        /* Handle @FOO variant if @ is present and not followed by = */
 1937|  1.33k|        if (!tmpLocaleID.empty() && keywordAssign == std::string_view::npos) {
  ------------------
  |  Branch (1937:13): [True: 0, False: 1.33k]
  |  Branch (1937:37): [True: 0, False: 0]
  ------------------
 1938|       |            /* Add missing '_' if needed */
 1939|      0|            if (fieldCount < 2 || (fieldCount < 3 && !script.isEmpty())) {
  ------------------
  |  Branch (1939:17): [True: 0, False: 0]
  |  Branch (1939:36): [True: 0, False: 0]
  |  Branch (1939:54): [True: 0, False: 0]
  ------------------
 1940|      0|                do {
 1941|      0|                    tag.append('_', err);
 1942|      0|                    ++fieldCount;
 1943|      0|                } while(fieldCount<2);
  ------------------
  |  Branch (1943:25): [True: 0, False: 0]
  ------------------
 1944|      0|            }
 1945|       |
 1946|      0|            CharStringByteSink s(&tag);
 1947|      0|            std::string_view sub = tmpLocaleID;
 1948|      0|            sub.remove_prefix(1);
 1949|      0|            _getVariant(sub, '@', &s, !variant.isEmpty(), err);
 1950|      0|            if (U_FAILURE(err)) { return; }
  ------------------
  |  Branch (1950:17): [True: 0, False: 0]
  ------------------
 1951|      0|        }
 1952|       |
 1953|       |        /* Look up the ID in the canonicalization map */
 1954|  14.6k|        for (j=0; j<UPRV_LENGTHOF(CANONICALIZE_MAP); j++) {
  ------------------
  |  |   99|  14.6k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1954:19): [True: 13.3k, False: 1.33k]
  ------------------
 1955|  13.3k|            StringPiece id(CANONICALIZE_MAP[j].id);
 1956|  13.3k|            if (tag == id) {
  ------------------
  |  Branch (1956:17): [True: 0, False: 13.3k]
  ------------------
 1957|      0|                if (id.empty() && !tmpLocaleID.empty()) {
  ------------------
  |  Branch (1957:21): [True: 0, False: 0]
  |  Branch (1957:35): [True: 0, False: 0]
  ------------------
 1958|      0|                    break; /* Don't remap "" if keywords present */
 1959|      0|                }
 1960|      0|                tag.clear();
 1961|      0|                tag.append(CANONICALIZE_MAP[j].canonicalID, err);
 1962|      0|                break;
 1963|      0|            }
 1964|  13.3k|        }
 1965|  1.33k|    }
 1966|       |
 1967|  2.71k|    sink.Append(tag.data(), tag.length());
 1968|       |
 1969|  2.71k|    if (!OPTION_SET(options, _ULOC_STRIP_KEYWORDS)) {
  ------------------
  |  | 1785|  2.71k|#define _ULOC_STRIP_KEYWORDS 0x2
  ------------------
  |  Branch (1969:9): [True: 2.22k, False: 487]
  ------------------
 1970|  2.22k|        if (!tmpLocaleID.empty() && keywordAssign != std::string_view::npos &&
  ------------------
  |  Branch (1970:13): [True: 0, False: 2.22k]
  |  Branch (1970:37): [True: 0, False: 0]
  ------------------
 1971|  2.22k|            (separatorIndicator == std::string_view::npos || separatorIndicator > keywordAssign)) {
  ------------------
  |  Branch (1971:14): [True: 0, False: 0]
  |  Branch (1971:62): [True: 0, False: 0]
  ------------------
 1972|      0|            sink.Append("@", 1);
 1973|      0|            ++fieldCount;
 1974|      0|            tmpLocaleID.remove_prefix(1);
 1975|      0|            ulocimp_getKeywords(tmpLocaleID, '@', sink, true, err);
  ------------------
  |  | 1201|      0|#define ulocimp_getKeywords U_ICU_ENTRY_POINT_RENAME(ulocimp_getKeywords)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1976|      0|        }
 1977|  2.22k|    }
 1978|  2.71k|}
uloc.cpp:_ZN12_GLOBAL__N_110OPTION_SETEjj:
 1790|  10.8k|inline bool OPTION_SET(uint32_t options, uint32_t mask) { return (options & mask) != 0; }
uloc.cpp:_ZZ22ulocimp_getBaseName_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEER10UErrorCodeENK3$_0clERN6icu_788ByteSinkES5_:
 2197|    487|        [&](ByteSink& sink, UErrorCode& status) {
 2198|    487|            ulocimp_getBaseName(localeID, sink, status);
  ------------------
  |  | 1199|    487|#define ulocimp_getBaseName U_ICU_ENTRY_POINT_RENAME(ulocimp_getBaseName)
  |  |  ------------------
  |  |  |  |  123|    487|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    487|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    487|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2199|    487|        },
uloc.cpp:_ZZ23ulocimp_canonicalize_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEER10UErrorCodeENK3$_0clERN6icu_788ByteSinkES5_:
 2233|    448|        [&](ByteSink& sink, UErrorCode& status) {
 2234|    448|            ulocimp_canonicalize(localeID, sink, status);
  ------------------
  |  | 1197|    448|#define ulocimp_canonicalize U_ICU_ENTRY_POINT_RENAME(ulocimp_canonicalize)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2235|    448|        },

uloc.cpp:_ZN12_GLOBAL__N_114_isIDSeparatorEc:
   49|  31.7k|inline bool _isIDSeparator(char a) { return a == '_' || a == '-'; }
  ------------------
  |  Branch (49:45): [True: 7.63k, False: 24.1k]
  |  Branch (49:57): [True: 0, False: 24.1k]
  ------------------

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

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

_ZN6icu_788ByteSinkC2Ev:
   59|  18.1k|  ByteSink() { }
_ZNK6icu_7820CheckedArrayByteSink10OverflowedEv:
  240|  1.78k|  UBool Overflowed() const { return overflowed_; }
_ZNK6icu_7820CheckedArrayByteSink21NumberOfBytesAppendedEv:
  248|  2.16k|  int32_t NumberOfBytesAppended() const { return appended_; }

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

_ZN6icu_7814ConstChar16PtrC2EPKDs:
  229|  67.9k|ConstChar16Ptr::ConstChar16Ptr(const char16_t *p) : p_(p) {}
_ZN6icu_7814ConstChar16PtrD2Ev:
  237|  67.9k|ConstChar16Ptr::~ConstChar16Ptr() {
  238|  67.9k|    U_ALIASING_BARRIER(p_);
  ------------------
  |  |   35|  67.9k|#   define U_ALIASING_BARRIER(ptr) asm volatile("" : : "rm"(ptr) : "memory")
  ------------------
  239|  67.9k|}
_ZNK6icu_789Char16PtrcvPDsEv:
   97|  67.4k|    inline operator char16_t *() const { return get(); }
_ZNK6icu_7814ConstChar16PtrcvPKDsEv:
  205|  67.9k|    inline operator const char16_t *() const { return get(); }
_ZNK6icu_789Char16Ptr3getEv:
  133|  67.4k|char16_t *Char16Ptr::get() const { return p_; }
_ZNK6icu_7814ConstChar16Ptr3getEv:
  241|  67.9k|const char16_t *ConstChar16Ptr::get() const { return p_; }
_ZN6icu_788internal15toU16StringViewENSt3__117basic_string_viewIDsNS1_11char_traitsIDsEEEE:
  400|    720|inline std::u16string_view toU16StringView(std::u16string_view sv) { return sv; }
_ZN6icu_789Char16PtrC2EPDs:
  121|  19.3k|Char16Ptr::Char16Ptr(char16_t *p) : p_(p) {}
_ZN6icu_789Char16PtrD2Ev:
  129|  19.3k|Char16Ptr::~Char16Ptr() {
  130|  19.3k|    U_ALIASING_BARRIER(p_);
  ------------------
  |  |   35|  19.3k|#   define U_ALIASING_BARRIER(ptr) asm volatile("" : : "rm"(ptr) : "memory")
  ------------------
  131|  19.3k|}
_ZN6icu_788internal23toU16StringViewNullableIPKDsvvEENSt3__117basic_string_viewIDsNS4_11char_traitsIDsEEEERKT_:
  441|    511|inline std::u16string_view toU16StringViewNullable(const T& text) {
  442|    511|    if (text == nullptr) return {};  // For backward compatibility.
  ------------------
  |  Branch (442:9): [True: 0, False: 511]
  ------------------
  443|    511|    return toU16StringView(text);
  444|    511|}
_ZN6icu_788internal23toU16StringViewNullableIPDsvvEENSt3__117basic_string_viewIDsNS3_11char_traitsIDsEEEERKT_:
  441|    190|inline std::u16string_view toU16StringViewNullable(const T& text) {
  442|    190|    if (text == nullptr) return {};  // For backward compatibility.
  ------------------
  |  Branch (442:9): [True: 0, False: 190]
  ------------------
  443|    190|    return toU16StringView(text);
  444|    190|}
_ZN6icu_788internal23toU16StringViewNullableIA6_DsvEENSt3__117basic_string_viewIDsNS3_11char_traitsIDsEEEERKT_:
  430|     19|inline std::u16string_view toU16StringViewNullable(const T& text) {
  431|     19|    return toU16StringView(text);
  432|     19|}

_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_788internal16LocalOpenPointerI15UResourceBundleXadL_Z13ures_close_78EEEC2EPS2_:
  567|  7.33k|    explicit LocalOpenPointer(Type *p=nullptr) : LocalPointerBase<Type>(p) {}
_ZN6icu_7816LocalPointerBaseI15UResourceBundleEC2EPS1_:
   82|  7.33k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_788internal16LocalOpenPointerI15UResourceBundleXadL_Z13ures_close_78EEED2Ev:
  575|  7.33k|    ~LocalOpenPointer() { if (ptr != nullptr) { closeFunction(ptr); } }
  ------------------
  |  Branch (575:31): [True: 7.33k, False: 0]
  ------------------
_ZN6icu_7816LocalPointerBaseI15UResourceBundleED2Ev:
   88|  7.33k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseI15UResourceBundleE8getAliasEv:
  122|  8.63k|    T *getAlias() const { return ptr; }
_ZN6icu_7812LocalPointerINS_7UVectorEEC2EPS1_R10UErrorCode:
  214|    423|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|    423|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 423]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|    423|    }
_ZN6icu_7816LocalPointerBaseINS_7UVectorEEC2EPS1_:
   82|  11.9k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_7UVectorEED2Ev:
  245|  11.9k|    ~LocalPointer() {
  246|  11.9k|        delete LocalPointerBase<T>::ptr;
  247|  11.9k|    }
_ZN6icu_7816LocalPointerBaseINS_7UVectorEED2Ev:
   88|  11.9k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7812LocalPointerINS_13UnicodeStringEEC2EPS1_R10UErrorCode:
  214|    225|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|    225|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 225]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|    225|    }
_ZN6icu_7816LocalPointerBaseINS_13UnicodeStringEEC2EPS1_:
   82|    225|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_13UnicodeStringEED2Ev:
  245|    225|    ~LocalPointer() {
  246|    225|        delete LocalPointerBase<T>::ptr;
  247|    225|    }
_ZN6icu_7816LocalPointerBaseINS_13UnicodeStringEED2Ev:
   88|    225|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseINS_7UVectorEEptEv:
  134|  1.54k|    T *operator->() const { return ptr; }
_ZN6icu_7816LocalPointerBaseINS_13UnicodeStringEE6orphanEv:
  141|    225|    T *orphan() {
  142|    225|        T *p=ptr;
  143|    225|        ptr=nullptr;
  144|    225|        return p;
  145|    225|    }
_ZN6icu_7816LocalPointerBaseINS_7UVectorEE6orphanEv:
  141|     65|    T *orphan() {
  142|     65|        T *p=ptr;
  143|     65|        ptr=nullptr;
  144|     65|        return p;
  145|     65|    }
_ZN6icu_7816LocalPointerBaseINS_17StringEnumerationEEC2EPS1_:
   82|    487|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_17StringEnumerationEED2Ev:
  245|    487|    ~LocalPointer() {
  246|    487|        delete LocalPointerBase<T>::ptr;
  247|    487|    }
_ZN6icu_7816LocalPointerBaseINS_17StringEnumerationEED2Ev:
   88|    487|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7812LocalPointerINS_7UVectorEEC2EPS1_:
  200|  10.6k|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7812LocalPointerINS_7UVectorEEC2EOS2_:
  224|    844|    LocalPointer(LocalPointer<T> &&src) noexcept : LocalPointerBase<T>(src.ptr) {
  225|    844|        src.ptr=nullptr;
  226|    844|    }
_ZNK6icu_7816LocalPointerBaseINS_7UVectorEE8getAliasEv:
  122|    446|    T *getAlias() const { return ptr; }
_ZN6icu_7812LocalPointerINS_17StringEnumerationEEC2EPS1_:
  200|    487|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZNK6icu_7816LocalPointerBaseINS_17StringEnumerationEEptEv:
  134|    487|    T *operator->() const { return ptr; }
_ZN6icu_7812LocalPointerINS_22MetaZoneIDsEnumerationEEC2EPS1_:
  200|    422|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7816LocalPointerBaseINS_22MetaZoneIDsEnumerationEEC2EPS1_:
   82|    422|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_22MetaZoneIDsEnumerationEED2Ev:
  245|    422|    ~LocalPointer() {
  246|    422|        delete LocalPointerBase<T>::ptr;
  247|    422|    }
_ZN6icu_7816LocalPointerBaseINS_22MetaZoneIDsEnumerationEED2Ev:
   88|    422|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7812LocalPointerINS_22MetaZoneIDsEnumerationEE29adoptInsteadAndCheckErrorCodeEPS1_R10UErrorCode:
  319|    422|    void adoptInsteadAndCheckErrorCode(T *p, UErrorCode &errorCode) {
  320|    422|        if(U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (320:12): [True: 422, False: 0]
  ------------------
  321|    422|            delete LocalPointerBase<T>::ptr;
  322|    422|            LocalPointerBase<T>::ptr=p;
  323|    422|            if(p==nullptr) {
  ------------------
  |  Branch (323:16): [True: 0, False: 422]
  ------------------
  324|      0|                errorCode=U_MEMORY_ALLOCATION_ERROR;
  325|      0|            }
  326|    422|        } else {
  327|      0|            delete p;
  328|      0|        }
  329|    422|    }
_ZN6icu_7816LocalPointerBaseINS_22MetaZoneIDsEnumerationEE6orphanEv:
  141|    422|    T *orphan() {
  142|    422|        T *p=ptr;
  143|    422|        ptr=nullptr;
  144|    422|        return p;
  145|    422|    }
_ZN6icu_7816LocalPointerBaseIDsEC2EPDs:
   82|    190|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZNK6icu_7816LocalPointerBaseIDsE6isNullEv:
   94|    190|    UBool isNull() const { return ptr==nullptr; }
_ZNK6icu_7816LocalPointerBaseIDsE8getAliasEv:
  122|    570|    T *getAlias() const { return ptr; }
_ZNK6icu_7816LocalPointerBaseINS_13UnicodeStringEE8getAliasEv:
  122|    190|    T *getAlias() const { return ptr; }
_ZN6icu_7816LocalPointerBaseIDsE6orphanEv:
  141|    190|    T *orphan() {
  142|    190|        T *p=ptr;
  143|    190|        ptr=nullptr;
  144|    190|        return p;
  145|    190|    }
_ZN6icu_7816LocalPointerBaseIDsED2Ev:
   88|    190|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7812LocalPointerINS_23OlsonToMetaMappingEntryEEC2EPS1_R10UErrorCode:
  214|    129|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|    129|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 129]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|    129|    }
_ZN6icu_7816LocalPointerBaseINS_23OlsonToMetaMappingEntryEEC2EPS1_:
   82|    129|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_23OlsonToMetaMappingEntryEED2Ev:
  245|    129|    ~LocalPointer() {
  246|    129|        delete LocalPointerBase<T>::ptr;
  247|    129|    }
_ZN6icu_7816LocalPointerBaseINS_23OlsonToMetaMappingEntryEED2Ev:
   88|    129|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseINS_23OlsonToMetaMappingEntryEEptEv:
  134|    387|    T *operator->() const { return ptr; }
_ZNK6icu_7816LocalPointerBaseINS_7UVectorEE6isNullEv:
   94|    129|    UBool isNull() const { return ptr==nullptr; }
_ZN6icu_7812LocalPointerINS_7UVectorEE29adoptInsteadAndCheckErrorCodeEPS1_R10UErrorCode:
  319|     64|    void adoptInsteadAndCheckErrorCode(T *p, UErrorCode &errorCode) {
  320|     64|        if(U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (320:12): [True: 64, False: 0]
  ------------------
  321|     64|            delete LocalPointerBase<T>::ptr;
  322|     64|            LocalPointerBase<T>::ptr=p;
  323|     64|            if(p==nullptr) {
  ------------------
  |  Branch (323:16): [True: 0, False: 64]
  ------------------
  324|      0|                errorCode=U_MEMORY_ALLOCATION_ERROR;
  325|      0|            }
  326|     64|        } else {
  327|      0|            delete p;
  328|      0|        }
  329|     64|    }
_ZN6icu_7816LocalPointerBaseINS_23OlsonToMetaMappingEntryEE6orphanEv:
  141|    129|    T *orphan() {
  142|    129|        T *p=ptr;
  143|    129|        ptr=nullptr;
  144|    129|        return p;
  145|    129|    }
_ZN6icu_788internal16LocalOpenPointerI15UResourceBundleXadL_Z13ures_close_78EEE12adoptInsteadEPS2_:
  595|  6.04k|    void adoptInstead(Type *p) {
  596|  6.04k|        if (ptr != nullptr) { closeFunction(ptr); }
  ------------------
  |  Branch (596:13): [True: 0, False: 6.04k]
  ------------------
  597|  6.04k|        ptr=p;
  598|  6.04k|    }
_ZN6icu_7816LocalPointerBaseIiEC2EPi:
   82|     10|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7816LocalPointerBaseIiED2Ev:
   88|     10|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7816LocalPointerBaseIPKcEC2EPS2_:
   82|      5|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7816LocalPointerBaseIPKcED2Ev:
   88|      5|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_788internal16LocalOpenPointerI10UHashtableXadL_Z14uhash_close_78EEEC2EPS2_:
  567|      1|    explicit LocalOpenPointer(Type *p=nullptr) : LocalPointerBase<Type>(p) {}
_ZN6icu_7816LocalPointerBaseI10UHashtableEC2EPS1_:
   82|      1|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZNK6icu_7816LocalPointerBaseI10UHashtableE8getAliasEv:
  122|    178|    T *getAlias() const { return ptr; }
_ZN6icu_7816LocalPointerBaseI10UHashtableE6orphanEv:
  141|      1|    T *orphan() {
  142|      1|        T *p=ptr;
  143|      1|        ptr=nullptr;
  144|      1|        return p;
  145|      1|    }
_ZN6icu_788internal16LocalOpenPointerI10UHashtableXadL_Z14uhash_close_78EEED2Ev:
  575|      1|    ~LocalOpenPointer() { if (ptr != nullptr) { closeFunction(ptr); } }
  ------------------
  |  Branch (575:31): [True: 0, False: 1]
  ------------------
_ZN6icu_7816LocalPointerBaseI10UHashtableED2Ev:
   88|      1|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseI15UResourceBundleEptEv:
  134|  6.04k|    T *operator->() const { return ptr; }

_ZNK6icu_786Locale10getCountryEv:
 1204|  2.53k|{
 1205|  2.53k|    return country;
 1206|  2.53k|}
_ZNK6icu_786Locale11getLanguageEv:
 1210|  1.16k|{
 1211|  1.16k|    return language;
 1212|  1.16k|}
_ZNK6icu_786Locale9getScriptEv:
 1216|  1.16k|{
 1217|  1.16k|    return script;
 1218|  1.16k|}
_ZNK6icu_786Locale10getVariantEv:
 1222|  1.16k|{
 1223|  1.16k|    return fIsBogus ? "" : &baseName[variantBegin];
  ------------------
  |  Branch (1223:12): [True: 0, False: 1.16k]
  ------------------
 1224|  1.16k|}
_ZNK6icu_786Locale7getNameEv:
 1228|  4.39k|{
 1229|  4.39k|    return fullName;
 1230|  4.39k|}
_ZNK6icu_786Locale7isBogusEv:
 1289|    894|Locale::isBogus() const {
 1290|    894|    return fIsBogus;
 1291|    894|}

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

_ZN6icu_7811StringPieceC2EPKci:
  151|  3.16k|  StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { }
_ZNK6icu_7811StringPiece4dataEv:
  200|  37.4k|  const char* data() const { return ptr_; }
_ZN6icu_7811StringPiece13remove_prefixEi:
  267|  4.12k|  void remove_prefix(int32_t n) {
  268|  4.12k|    if (n >= 0) {
  ------------------
  |  Branch (268:9): [True: 4.12k, False: 0]
  ------------------
  269|  4.12k|      if (n > length_) {
  ------------------
  |  Branch (269:11): [True: 0, False: 4.12k]
  ------------------
  270|      0|        n = length_;
  271|      0|      }
  272|  4.12k|      ptr_ += n;
  273|  4.12k|      length_ -= n;
  274|  4.12k|    }
  275|  4.12k|  }
_ZNK6icu_7811StringPiece4sizeEv:
  206|  3.60k|  int32_t size() const { return length_; }
_ZN6icu_7811StringPieceC2Ev:
   71|      1|  StringPiece() : ptr_(nullptr), length_(0) { }
_ZNK6icu_7811StringPiececvNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEv:
  185|  2.22k|  inline operator std::string_view() const {
  186|  2.22k|    return {data(), static_cast<std::string_view::size_type>(size())};
  187|  2.22k|  }
_ZNK6icu_7811StringPiece6lengthEv:
  212|  44.3k|  int32_t length() const { return length_; }
_ZNK6icu_7811StringPiece5emptyEv:
  218|  2.71k|  UBool empty() const { return length_ == 0; }

_ZN6icu_7813UnicodeStringC2Ev:
 4182|  22.3k|UnicodeString::UnicodeString() {
 4183|  22.3k|  fUnion.fStackFields.fLengthAndFlags=kShortString;
 4184|  22.3k|}
_ZNK6icu_7813UnicodeString8doEqualsERKS0_i:
 3773|    230|  inline UBool doEquals(const UnicodeString &text, int32_t len) const {
 3774|    230|    return doEquals(text.getArrayStart(), len);
 3775|    230|  }
_ZNK6icu_7813UnicodeString8pinIndexERi:
 4138|  4.42k|{
 4139|       |  // pin index
 4140|  4.42k|  if(start < 0) {
  ------------------
  |  Branch (4140:6): [True: 0, False: 4.42k]
  ------------------
 4141|      0|    start = 0;
 4142|  4.42k|  } else if(start > length()) {
  ------------------
  |  Branch (4142:13): [True: 0, False: 4.42k]
  ------------------
 4143|      0|    start = length();
 4144|      0|  }
 4145|  4.42k|}
_ZNK6icu_7813UnicodeString10pinIndicesERiS1_:
 4150|   885k|{
 4151|       |  // pin indices
 4152|   885k|  int32_t len = length();
 4153|   885k|  if(start < 0) {
  ------------------
  |  Branch (4153:6): [True: 0, False: 885k]
  ------------------
 4154|      0|    start = 0;
 4155|   885k|  } else if(start > len) {
  ------------------
  |  Branch (4155:13): [True: 0, False: 885k]
  ------------------
 4156|      0|    start = len;
 4157|      0|  }
 4158|   885k|  if(_length < 0) {
  ------------------
  |  Branch (4158:6): [True: 0, False: 885k]
  ------------------
 4159|      0|    _length = 0;
 4160|   885k|  } else if(_length > (len - start)) {
  ------------------
  |  Branch (4160:13): [True: 5.51k, False: 879k]
  ------------------
 4161|  5.51k|    _length = (len - start);
 4162|  5.51k|  }
 4163|   885k|}
_ZN6icu_7813UnicodeString13getArrayStartEv:
 4166|   433k|UnicodeString::getArrayStart() {
 4167|   433k|  return (fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) ?
  ------------------
  |  Branch (4167:10): [True: 59.0k, False: 374k]
  ------------------
 4168|   374k|    fUnion.fStackFields.fBuffer : fUnion.fFields.fArray;
 4169|   433k|}
_ZNK6icu_7813UnicodeString13getArrayStartEv:
 4172|   760k|UnicodeString::getArrayStart() const {
 4173|   760k|  return (fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) ?
  ------------------
  |  Branch (4173:10): [True: 396k, False: 364k]
  ------------------
 4174|   396k|    fUnion.fStackFields.fBuffer : fUnion.fFields.fArray;
 4175|   760k|}
_ZNK6icu_7813UnicodeString14hasShortLengthEv:
 4202|  1.38M|UnicodeString::hasShortLength() const {
 4203|  1.38M|  return fUnion.fFields.fLengthAndFlags>=0;
 4204|  1.38M|}
_ZNK6icu_7813UnicodeString14getShortLengthEv:
 4207|   836k|UnicodeString::getShortLength() const {
 4208|       |  // fLengthAndFlags must be non-negative -> short length >= 0
 4209|       |  // and arithmetic or logical shift does not matter.
 4210|   836k|  return fUnion.fFields.fLengthAndFlags>>kLengthShift;
 4211|   836k|}
_ZNK6icu_7813UnicodeString6lengthEv:
 4214|  1.38M|UnicodeString::length() const {
 4215|  1.38M|  return hasShortLength() ? getShortLength() : fUnion.fFields.fLength;
  ------------------
  |  Branch (4215:10): [True: 827k, False: 553k]
  ------------------
 4216|  1.38M|}
_ZNK6icu_7813UnicodeString11getCapacityEv:
 4219|   251k|UnicodeString::getCapacity() const {
 4220|   251k|  return (fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) ?
  ------------------
  |  Branch (4220:10): [True: 58.8k, False: 193k]
  ------------------
 4221|   193k|    US_STACKBUF_SIZE : fUnion.fFields.fCapacity;
 4222|   251k|}
_ZNK6icu_7813UnicodeString8hashCodeEv:
 4226|  1.78k|{ return doHashCode(); }
_ZNK6icu_7813UnicodeString7isBogusEv:
 4230|   541k|{ return fUnion.fFields.fLengthAndFlags & kIsBogus; }
_ZNK6icu_7813UnicodeString10isWritableEv:
 4234|   433k|{ return !(fUnion.fFields.fLengthAndFlags & (kOpenGetBuffer | kIsBogus)); }
_ZNK6icu_7813UnicodeString16isBufferWritableEv:
 4238|   187k|{
 4239|   187k|  return
 4240|   187k|      !(fUnion.fFields.fLengthAndFlags&(kOpenGetBuffer|kIsBogus|kBufferIsReadonly)) &&
  ------------------
  |  Branch (4240:7): [True: 187k, False: 0]
  ------------------
 4241|   187k|      (!(fUnion.fFields.fLengthAndFlags&kRefCounted) || refCount()==1);
  ------------------
  |  Branch (4241:8): [True: 3.07k, False: 184k]
  |  Branch (4241:57): [True: 184k, False: 0]
  ------------------
 4242|   187k|}
_ZNK6icu_7813UnicodeString9doCompareEiiRKS0_ii:
 4264|  58.7k|{
 4265|  58.7k|  if(srcText.isBogus()) {
  ------------------
  |  Branch (4265:6): [True: 0, False: 58.7k]
  ------------------
 4266|      0|    return static_cast<int8_t>(!isBogus()); // 0 if both are bogus, 1 otherwise
 4267|  58.7k|  } else {
 4268|  58.7k|    srcText.pinIndices(srcStart, srcLength);
 4269|  58.7k|    return doCompare(start, thisLength, srcText.getArrayStart(), srcStart, srcLength);
 4270|  58.7k|  }
 4271|  58.7k|}
_ZNK6icu_7813UnicodeStringeqERKS0_:
 4290|    249|{
 4291|    249|  if(isBogus()) {
  ------------------
  |  Branch (4291:6): [True: 0, False: 249]
  ------------------
 4292|      0|    return text.isBogus();
 4293|    249|  } else {
 4294|    249|    int32_t len = length(), textLength = text.length();
 4295|    249|    return !text.isBogus() && len == textLength && doEquals(text, len);
  ------------------
  |  Branch (4295:12): [True: 249, False: 0]
  |  Branch (4295:31): [True: 230, False: 19]
  |  Branch (4295:52): [True: 200, False: 30]
  ------------------
 4296|    249|  }
 4297|    249|}
_ZNK6icu_7813UnicodeString7compareERKS0_:
 4321|  58.7k|{ return doCompare(0, length(), text, 0, text.length()); }
_ZNK6icu_7813UnicodeString7indexOfERKS0_iiii:
 4506|   185k|{
 4507|   185k|  if(!srcText.isBogus()) {
  ------------------
  |  Branch (4507:6): [True: 185k, False: 0]
  ------------------
 4508|   185k|    srcText.pinIndices(srcStart, srcLength);
 4509|   185k|    if(srcLength > 0) {
  ------------------
  |  Branch (4509:8): [True: 185k, False: 0]
  ------------------
 4510|   185k|      return indexOf(srcText.getArrayStart(), srcStart, srcLength, start, _length);
 4511|   185k|    }
 4512|   185k|  }
 4513|      0|  return -1;
 4514|   185k|}
_ZNK6icu_7813UnicodeString7indexOfEPKDsii:
 4536|  3.17k|               int32_t start) const {
 4537|  3.17k|  pinIndex(start);
 4538|  3.17k|  return indexOf(srcChars, 0, srcLength, start, length() - start);
 4539|  3.17k|}
_ZNK6icu_7813UnicodeString7indexOfEDs:
 4562|     24|{ return doIndexOf(c, 0, length()); }
_ZNK6icu_7813UnicodeString11lastIndexOfEDs:
 4645|  3.14k|{ return doLastIndexOf(c, 0, length()); }
_ZNK6icu_7813UnicodeString10startsWithENS_14ConstChar16PtrEi:
 4677|  6.87k|UnicodeString::startsWith(ConstChar16Ptr srcChars, int32_t srcLength) const {
 4678|  6.87k|  if(srcLength < 0) {
  ------------------
  |  Branch (4678:6): [True: 0, False: 6.87k]
  ------------------
 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|  6.87k|  return doEqualsSubstring(0, srcLength, srcChars, 0, srcLength);
 4682|  6.87k|}
_ZN6icu_7813UnicodeString7replaceEiiRKS0_ii:
 4741|   184k|{ return doReplace(start, _length, srcText, srcStart, srcLength); }
_ZN6icu_7813UnicodeString14findAndReplaceERKS0_S2_:
 4781|  1.24k|{ return findAndReplace(0, length(), oldText, 0, oldText.length(),
 4782|  1.24k|            newText, 0, newText.length()); }
_ZNK6icu_7813UnicodeString8doCharAtEi:
 4846|  40.5k|{
 4847|  40.5k|  if (static_cast<uint32_t>(offset) < static_cast<uint32_t>(length())) {
  ------------------
  |  Branch (4847:7): [True: 40.5k, False: 0]
  ------------------
 4848|  40.5k|    return getArrayStart()[offset];
 4849|  40.5k|  } else {
 4850|      0|    return kInvalidUChar;
 4851|      0|  }
 4852|  40.5k|}
_ZNK6icu_7813UnicodeString6charAtEi:
 4856|  40.5k|{ return doCharAt(offset); }
_ZNK6icu_7813UnicodeString7isEmptyEv:
 4863|  26.9k|UnicodeString::isEmpty() const {
 4864|       |  // Arithmetic or logical right shift does not matter: only testing for 0.
 4865|  26.9k|  return (fUnion.fFields.fLengthAndFlags>>kLengthShift) == 0;
 4866|  26.9k|}
_ZN6icu_7813UnicodeString14setShortLengthEi:
 4877|  93.9k|UnicodeString::setShortLength(int32_t len) {
 4878|       |  // requires 0 <= len <= kMaxShortLength
 4879|  93.9k|  fUnion.fFields.fLengthAndFlags =
 4880|  93.9k|    static_cast<int16_t>((fUnion.fFields.fLengthAndFlags & kAllStorageFlags) | (len << kLengthShift));
 4881|  93.9k|}
_ZN6icu_7813UnicodeString9setLengthEi:
 4884|   276k|UnicodeString::setLength(int32_t len) {
 4885|   276k|  if(len <= kMaxShortLength) {
  ------------------
  |  Branch (4885:6): [True: 93.9k, False: 182k]
  ------------------
 4886|  93.9k|    setShortLength(len);
 4887|   182k|  } else {
 4888|   182k|    fUnion.fFields.fLengthAndFlags |= kLengthIsLarge;
 4889|   182k|    fUnion.fFields.fLength = len;
 4890|   182k|  }
 4891|   276k|}
_ZN6icu_7813UnicodeString10setToEmptyEv:
 4894|    772|UnicodeString::setToEmpty() {
 4895|    772|  fUnion.fFields.fLengthAndFlags = kShortString;
 4896|    772|}
_ZN6icu_7813UnicodeString8setArrayEPDsii:
 4899|  63.8k|UnicodeString::setArray(char16_t *array, int32_t len, int32_t capacity) {
 4900|  63.8k|  setLength(len);
 4901|  63.8k|  fUnion.fFields.fArray = array;
 4902|  63.8k|  fUnion.fFields.fCapacity = capacity;
 4903|  63.8k|}
_ZN6icu_7813UnicodeString5setToERKS0_i:
 4925|  1.24k|{
 4926|  1.24k|  unBogus();
 4927|  1.24k|  srcText.pinIndex(srcStart);
 4928|  1.24k|  return doReplace(0, length(), srcText, srcStart, srcText.length() - srcStart);
 4929|  1.24k|}
_ZN6icu_7813UnicodeString5setToEPKDsi:
 4940|    688|{
 4941|    688|  unBogus();
 4942|    688|  return doReplace(0, length(), srcChars, 0, srcLength);
 4943|    688|}
_ZN6icu_7813UnicodeStringC2IPKDsvEERKT_:
 3274|    511|  UNISTR_FROM_STRING_EXPLICIT UnicodeString(const S &text) {
 3275|    511|    fUnion.fFields.fLengthAndFlags = kShortString;
 3276|    511|    doAppend(internal::toU16StringViewNullable(text));
 3277|    511|  }
_ZN6icu_7813UnicodeStringC2IPDsvEERKT_:
 3274|    190|  UNISTR_FROM_STRING_EXPLICIT UnicodeString(const S &text) {
 3275|    190|    fUnion.fFields.fLengthAndFlags = kShortString;
 3276|    190|    doAppend(internal::toU16StringViewNullable(text));
 3277|    190|  }
_ZN6icu_7813UnicodeStringC2IA6_DsvEERKT_:
 3274|     19|  UNISTR_FROM_STRING_EXPLICIT UnicodeString(const S &text) {
 3275|     19|    fUnion.fFields.fLengthAndFlags = kShortString;
 3276|     19|    doAppend(internal::toU16StringViewNullable(text));
 3277|     19|  }

time_zone_names_fuzzer.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  2.74k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
tznames.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  1.86k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
tznames.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  3.72k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
tznames_impl.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  38.3k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
tznames_impl.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  9.42k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
zonemeta.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  54.3k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
zonemeta.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  23.5k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
olsontz.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|      4|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
olsontz.cpp:_ZL9U_FAILURE10UErrorCode:
  737|      2|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
timezone.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  67.6k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
timezone.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  2.99k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
charstr.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   139k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
locavailable.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  2.66k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
locid.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  37.3k|    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|  3.12k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
loclikelysubtags.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  41.3k|    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; }
lsr.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|    894|    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; }
uarrsort.cpp:_ZL9U_FAILURE10UErrorCode:
  737|    717|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uhash.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  20.7k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uloc.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  19.1k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
unistr.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  19.3k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uresbund.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   338k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uresbund.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  37.4k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uresdata.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  5.47k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
ustring.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  28.8k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uvector.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  2.88k|    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; }
bytesinkutil.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  5.46k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
udata.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  4.45k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
udata.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  1.66k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
udatamem.cpp:_ZL9U_FAILURE10UErrorCode:
  737|    372|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
ucmndata.cpp:_ZL9U_FAILURE10UErrorCode:
  737|      2|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }

_ZN6icu_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|    }

_ZN6icu_7811ReplaceableD2Ev:
  106|  62.5k|Replaceable::~Replaceable() {}
_ZN6icu_7813UnicodeString9removeRefEv:
  151|    891|UnicodeString::removeRef() {
  152|    891|  return umtx_atomic_dec(reinterpret_cast<u_atomic_int32_t*>(fUnion.fFields.fArray) - 1);
  153|    891|}
_ZNK6icu_7813UnicodeString8refCountEv:
  156|   372k|UnicodeString::refCount() const {
  157|   372k|  return umtx_loadAcquire(*(reinterpret_cast<u_atomic_int32_t*>(fUnion.fFields.fArray) - 1));
  158|   372k|}
_ZN6icu_7813UnicodeString12releaseArrayEv:
  161|   157k|UnicodeString::releaseArray() {
  162|   157k|  if((fUnion.fFields.fLengthAndFlags & kRefCounted) && removeRef() == 0) {
  ------------------
  |  Branch (162:6): [True: 891, False: 156k]
  |  Branch (162:56): [True: 891, False: 0]
  ------------------
  163|    891|    uprv_free(reinterpret_cast<int32_t*>(fUnion.fFields.fArray) - 1);
  ------------------
  |  | 1503|    891|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    891|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    891|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    891|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  164|    891|  }
  165|   157k|}
_ZN6icu_7813UnicodeStringC2EDs:
  216|  2.49k|UnicodeString::UnicodeString(char16_t ch) {
  217|  2.49k|  fUnion.fFields.fLengthAndFlags = kLength1 | kShortString;
  218|  2.49k|  fUnion.fStackFields.fBuffer[0] = ch;
  219|  2.49k|}
_ZN6icu_7813UnicodeStringC2EaNS_14ConstChar16PtrEi:
  241|  1.39k|                             int32_t textLength) {
  242|  1.39k|  fUnion.fFields.fLengthAndFlags = kReadonlyAlias;
  243|  1.39k|  const char16_t *text = textPtr;
  244|  1.39k|  if(text == nullptr) {
  ------------------
  |  Branch (244:6): [True: 0, False: 1.39k]
  ------------------
  245|       |    // treat as an empty string, do not alias
  246|      0|    setToEmpty();
  247|  1.39k|  } else if(textLength < -1 ||
  ------------------
  |  Branch (247:13): [True: 0, False: 1.39k]
  ------------------
  248|  1.39k|            (textLength == -1 && !isTerminated) ||
  ------------------
  |  Branch (248:14): [True: 6, False: 1.39k]
  |  Branch (248:34): [True: 0, False: 6]
  ------------------
  249|  1.39k|            (textLength >= 0 && isTerminated && text[textLength] != 0)
  ------------------
  |  Branch (249:14): [True: 1.39k, False: 6]
  |  Branch (249:33): [True: 19, False: 1.37k]
  |  Branch (249:49): [True: 0, False: 19]
  ------------------
  250|  1.39k|  ) {
  251|      0|    setToBogus();
  252|  1.39k|  } else {
  253|  1.39k|    if(textLength == -1) {
  ------------------
  |  Branch (253:8): [True: 6, False: 1.39k]
  ------------------
  254|       |      // text is terminated, or else it would have failed the above test
  255|      6|      textLength = u_strlen(text);
  ------------------
  |  |  393|      6|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  256|      6|    }
  257|  1.39k|    setArray(const_cast<char16_t *>(text), textLength,
  258|  1.39k|             isTerminated ? textLength + 1 : textLength);
  ------------------
  |  Branch (258:14): [True: 25, False: 1.37k]
  ------------------
  259|  1.39k|  }
  260|  1.39k|}
_ZN6icu_7813UnicodeStringC2EPDsii:
  264|  2.72k|                             int32_t buffCapacity) {
  265|  2.72k|  fUnion.fFields.fLengthAndFlags = kWritableAlias;
  266|  2.72k|  if(buff == nullptr) {
  ------------------
  |  Branch (266:6): [True: 0, False: 2.72k]
  ------------------
  267|       |    // treat as an empty string, do not alias
  268|      0|    setToEmpty();
  269|  2.72k|  } else if(buffLength < -1 || buffCapacity < 0 || buffLength > buffCapacity) {
  ------------------
  |  Branch (269:13): [True: 0, False: 2.72k]
  |  Branch (269:32): [True: 0, False: 2.72k]
  |  Branch (269:52): [True: 0, False: 2.72k]
  ------------------
  270|      0|    setToBogus();
  271|  2.72k|  } else {
  272|  2.72k|    if(buffLength == -1) {
  ------------------
  |  Branch (272:8): [True: 0, False: 2.72k]
  ------------------
  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|  2.72k|    setArray(buff, buffLength, buffCapacity);
  281|  2.72k|  }
  282|  2.72k|}
_ZN6icu_7813UnicodeStringC2EPKciNS0_10EInvariantE:
  284|  22.4k|UnicodeString::UnicodeString(const char *src, int32_t length, EInvariant) {
  285|  22.4k|  fUnion.fFields.fLengthAndFlags = kShortString;
  286|  22.4k|  if(src==nullptr) {
  ------------------
  |  Branch (286:6): [True: 0, False: 22.4k]
  ------------------
  287|       |    // treat as an empty string
  288|  22.4k|  } else {
  289|  22.4k|    if(length<0) {
  ------------------
  |  Branch (289:8): [True: 1, False: 22.4k]
  ------------------
  290|      1|      length = static_cast<int32_t>(uprv_strlen(src));
  ------------------
  |  |   37|      1|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  291|      1|    }
  292|  22.4k|    if(cloneArrayIfNeeded(length, length, false)) {
  ------------------
  |  Branch (292:8): [True: 22.4k, False: 0]
  ------------------
  293|  22.4k|      u_charsToUChars(src, getArrayStart(), length);
  ------------------
  |  |  226|  22.4k|#define u_charsToUChars U_ICU_ENTRY_POINT_RENAME(u_charsToUChars)
  |  |  ------------------
  |  |  |  |  123|  22.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  22.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  22.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  294|  22.4k|      setLength(length);
  295|  22.4k|    } else {
  296|      0|      setToBogus();
  297|      0|    }
  298|  22.4k|  }
  299|  22.4k|}
_ZN6icu_7813UnicodeStringC2ERKS0_:
  345|  10.5k|UnicodeString::UnicodeString(const UnicodeString& that) {
  346|  10.5k|  fUnion.fFields.fLengthAndFlags = kShortString;
  347|  10.5k|  copyFrom(that);
  348|  10.5k|}
_ZN6icu_7813UnicodeString8allocateEi:
  409|  2.59k|UnicodeString::allocate(int32_t capacity) {
  410|  2.59k|  if(capacity <= US_STACKBUF_SIZE) {
  ------------------
  |  Branch (410:6): [True: 1.70k, False: 891]
  ------------------
  411|  1.70k|    fUnion.fFields.fLengthAndFlags = kShortString;
  412|  1.70k|    return true;
  413|  1.70k|  }
  414|    891|  if(capacity <= kMaxCapacity) {
  ------------------
  |  Branch (414:6): [True: 891, False: 0]
  ------------------
  415|    891|    ++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|    891|    size_t numBytes = sizeof(int32_t) + static_cast<size_t>(capacity) * U_SIZEOF_UCHAR;
  ------------------
  |  |  352|    891|#define U_SIZEOF_UCHAR 2
  ------------------
  419|       |    // Round up to a multiple of 16.
  420|    891|    numBytes = (numBytes + 15) & ~15;
  421|    891|    int32_t* array = static_cast<int32_t*>(uprv_malloc(numBytes));
  ------------------
  |  | 1524|    891|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    891|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    891|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    891|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  422|    891|    if(array != nullptr) {
  ------------------
  |  Branch (422:8): [True: 891, False: 0]
  ------------------
  423|       |      // set initial refCount and point behind the refCount
  424|    891|      *array++ = 1;
  425|    891|      numBytes -= sizeof(int32_t);
  426|       |
  427|       |      // have fArray point to the first char16_t
  428|    891|      fUnion.fFields.fArray = reinterpret_cast<char16_t*>(array);
  429|    891|      fUnion.fFields.fCapacity = static_cast<int32_t>(numBytes / U_SIZEOF_UCHAR);
  ------------------
  |  |  352|    891|#define U_SIZEOF_UCHAR 2
  ------------------
  430|    891|      fUnion.fFields.fLengthAndFlags = kLongString;
  431|    891|      return true;
  432|    891|    }
  433|    891|  }
  434|      0|  fUnion.fFields.fLengthAndFlags = kIsBogus;
  435|      0|  fUnion.fFields.fArray = nullptr;
  436|      0|  fUnion.fFields.fCapacity = 0;
  437|      0|  return false;
  438|    891|}
_ZN6icu_7813UnicodeStringD2Ev:
  462|  62.5k|{
  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|  62.5k|  releaseArray();
  478|  62.5k|}
_ZN6icu_7813UnicodeString8copyFromERKS0_a:
  537|  10.5k|UnicodeString::copyFrom(const UnicodeString &src, UBool fastCopy) {
  538|       |  // if assigning to ourselves, do nothing
  539|  10.5k|  if(this == &src) {
  ------------------
  |  Branch (539:6): [True: 0, False: 10.5k]
  ------------------
  540|      0|    return *this;
  541|      0|  }
  542|       |
  543|       |  // is the right side bogus?
  544|  10.5k|  if(src.isBogus()) {
  ------------------
  |  Branch (544:6): [True: 0, False: 10.5k]
  ------------------
  545|      0|    setToBogus();
  546|      0|    return *this;
  547|      0|  }
  548|       |
  549|       |  // delete the current contents
  550|  10.5k|  releaseArray();
  551|       |
  552|  10.5k|  if(src.isEmpty()) {
  ------------------
  |  Branch (552:6): [True: 162, False: 10.4k]
  ------------------
  553|       |    // empty string - use the stack buffer
  554|    162|    setToEmpty();
  555|    162|    return *this;
  556|    162|  }
  557|       |
  558|       |  // fLength>0 and not an "open" src.getBuffer(minCapacity)
  559|  10.4k|  fUnion.fFields.fLengthAndFlags = src.fUnion.fFields.fLengthAndFlags;
  560|  10.4k|  switch(src.fUnion.fFields.fLengthAndFlags & kAllStorageFlags) {
  561|  8.35k|  case kShortString:
  ------------------
  |  Branch (561:3): [True: 8.35k, False: 2.07k]
  ------------------
  562|       |    // short string using the stack buffer, do the same
  563|  8.35k|    uprv_memcpy(fUnion.fStackFields.fBuffer, src.fUnion.fStackFields.fBuffer,
  ------------------
  |  |   42|  8.35k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  8.35k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  8.35k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  8.35k|    _Pragma("clang diagnostic push") \
  |  |   45|  8.35k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  8.35k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  8.35k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  8.35k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  8.35k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  8.35k|    _Pragma("clang diagnostic pop") \
  |  |   49|  8.35k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  8.35k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  8.35k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  8.35k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  564|  8.35k|                getShortLength() * U_SIZEOF_UCHAR);
  565|  8.35k|    break;
  566|      0|  case kLongString:
  ------------------
  |  Branch (566:3): [True: 0, False: 10.4k]
  ------------------
  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|      0|    const_cast<UnicodeString &>(src).addRef();
  570|       |    // copy all fields, share the reference-counted buffer
  571|      0|    fUnion.fFields.fArray = src.fUnion.fFields.fArray;
  572|      0|    fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity;
  573|      0|    if(!hasShortLength()) {
  ------------------
  |  Branch (573:8): [True: 0, False: 0]
  ------------------
  574|      0|      fUnion.fFields.fLength = src.fUnion.fFields.fLength;
  575|      0|    }
  576|      0|    break;
  577|  2.07k|  case kReadonlyAlias:
  ------------------
  |  Branch (577:3): [True: 2.07k, False: 8.35k]
  ------------------
  578|  2.07k|    if(fastCopy) {
  ------------------
  |  Branch (578:8): [True: 0, False: 2.07k]
  ------------------
  579|       |      // src is a readonly alias, do the same
  580|       |      // -> maintain the readonly alias as such
  581|      0|      fUnion.fFields.fArray = src.fUnion.fFields.fArray;
  582|      0|      fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity;
  583|      0|      if(!hasShortLength()) {
  ------------------
  |  Branch (583:10): [True: 0, False: 0]
  ------------------
  584|      0|        fUnion.fFields.fLength = src.fUnion.fFields.fLength;
  585|      0|      }
  586|      0|      break;
  587|      0|    }
  588|       |    // else if(!fastCopy) fall through to case kWritableAlias
  589|       |    // -> allocate a new buffer and copy the contents
  590|  2.07k|    U_FALLTHROUGH;
  ------------------
  |  |  511|  2.07k|#       define U_FALLTHROUGH [[clang::fallthrough]]
  ------------------
  591|  2.07k|  case kWritableAlias: {
  ------------------
  |  Branch (591:3): [True: 0, False: 10.4k]
  ------------------
  592|       |    // src is a writable alias; we make a copy of that instead
  593|  2.07k|    int32_t srcLength = src.length();
  594|  2.07k|    if(allocate(srcLength)) {
  ------------------
  |  Branch (594:8): [True: 2.07k, False: 0]
  ------------------
  595|  2.07k|      u_memcpy(getArrayStart(), src.getArrayStart(), srcLength);
  ------------------
  |  |  334|  2.07k|#define u_memcpy U_ICU_ENTRY_POINT_RENAME(u_memcpy)
  |  |  ------------------
  |  |  |  |  123|  2.07k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.07k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.07k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  596|  2.07k|      setLength(srcLength);
  597|  2.07k|      break;
  598|  2.07k|    }
  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: 10.4k]
  ------------------
  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|  10.4k|  }
  610|       |
  611|  10.4k|  return *this;
  612|  10.4k|}
_ZNK6icu_7813UnicodeString8doEqualsEPKDsi:
  698|    230|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|    230|  return uprv_memcmp(getArrayStart(), text, len * U_SIZEOF_UCHAR) == 0;
  ------------------
  |  |  101|    230|#define uprv_memcmp(buffer1, buffer2, size) U_STANDARD_CPP_NAMESPACE memcmp(buffer1, buffer2,size)
  |  |  ------------------
  |  |  |  |  393|    230|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  702|    230|}
_ZNK6icu_7813UnicodeString17doEqualsSubstringEiiPKDsii:
  710|  6.87k|{
  711|       |  // compare illegal string values
  712|  6.87k|  if(isBogus()) {
  ------------------
  |  Branch (712:6): [True: 0, False: 6.87k]
  ------------------
  713|      0|    return false;
  714|      0|  }
  715|       |  
  716|       |  // pin indices to legal values
  717|  6.87k|  pinIndices(start, length);
  718|       |
  719|  6.87k|  if(srcChars == nullptr) {
  ------------------
  |  Branch (719:6): [True: 0, False: 6.87k]
  ------------------
  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|  6.87k|  const char16_t *chars = getArrayStart();
  726|       |
  727|  6.87k|  chars += start;
  728|  6.87k|  srcChars += srcStart;
  729|       |
  730|       |  // get the srcLength if necessary
  731|  6.87k|  if(srcLength < 0) {
  ------------------
  |  Branch (731:6): [True: 0, False: 6.87k]
  ------------------
  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|  6.87k|  if (length != srcLength) {
  ------------------
  |  Branch (735:7): [True: 2.48k, False: 4.39k]
  ------------------
  736|  2.48k|    return false;
  737|  2.48k|  }
  738|       |
  739|  4.39k|  if(length == 0 || chars == srcChars) {
  ------------------
  |  Branch (739:6): [True: 0, False: 4.39k]
  |  Branch (739:21): [True: 0, False: 4.39k]
  ------------------
  740|      0|    return true;
  741|      0|  }
  742|       |
  743|  4.39k|  return u_memcmp(chars, srcChars, srcLength) == 0;
  ------------------
  |  |  332|  4.39k|#define u_memcmp U_ICU_ENTRY_POINT_RENAME(u_memcmp)
  |  |  ------------------
  |  |  |  |  123|  4.39k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.39k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.39k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  744|  4.39k|}
_ZNK6icu_7813UnicodeString9doCompareEiiPKDsii:
  752|  58.7k|{
  753|       |  // compare illegal string values
  754|  58.7k|  if(isBogus()) {
  ------------------
  |  Branch (754:6): [True: 0, False: 58.7k]
  ------------------
  755|      0|    return -1;
  756|      0|  }
  757|       |  
  758|       |  // pin indices to legal values
  759|  58.7k|  pinIndices(start, length);
  760|       |
  761|  58.7k|  if(srcChars == nullptr) {
  ------------------
  |  Branch (761:6): [True: 0, False: 58.7k]
  ------------------
  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|  58.7k|  const char16_t *chars = getArrayStart();
  768|       |
  769|  58.7k|  chars += start;
  770|  58.7k|  srcChars += srcStart;
  771|       |
  772|  58.7k|  int32_t minLength;
  773|  58.7k|  int8_t lengthResult;
  774|       |
  775|       |  // get the srcLength if necessary
  776|  58.7k|  if(srcLength < 0) {
  ------------------
  |  Branch (776:6): [True: 0, False: 58.7k]
  ------------------
  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|  58.7k|  if(length != srcLength) {
  ------------------
  |  Branch (781:6): [True: 55.5k, False: 3.20k]
  ------------------
  782|  55.5k|    if(length < srcLength) {
  ------------------
  |  Branch (782:8): [True: 40.9k, False: 14.6k]
  ------------------
  783|  40.9k|      minLength = length;
  784|  40.9k|      lengthResult = -1;
  785|  40.9k|    } else {
  786|  14.6k|      minLength = srcLength;
  787|  14.6k|      lengthResult = 1;
  788|  14.6k|    }
  789|  55.5k|  } else {
  790|  3.20k|    minLength = length;
  791|  3.20k|    lengthResult = 0;
  792|  3.20k|  }
  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|  58.7k|  if(minLength > 0 && chars != srcChars) {
  ------------------
  |  Branch (802:6): [True: 47.5k, False: 11.2k]
  |  Branch (802:23): [True: 47.5k, False: 0]
  ------------------
  803|  47.5k|    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|   133k|      do {
  814|   133k|        result = static_cast<int32_t>(*(chars++)) - static_cast<int32_t>(*(srcChars++));
  815|   133k|        if(result != 0) {
  ------------------
  |  Branch (815:12): [True: 45.6k, False: 87.3k]
  ------------------
  816|  45.6k|          return static_cast<int8_t>(result >> 15 | 1);
  817|  45.6k|        }
  818|   133k|      } while(--minLength > 0);
  ------------------
  |  Branch (818:15): [True: 85.5k, False: 1.85k]
  ------------------
  819|  47.5k|#   endif
  820|  47.5k|  }
  821|  13.1k|  return lengthResult;
  822|  58.7k|}
_ZNK6icu_7813UnicodeString7extractENS_9Char16PtrEiR10UErrorCode:
  958|  19.3k|                       UErrorCode &errorCode) const {
  959|  19.3k|  int32_t len = length();
  960|  19.3k|  if(U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (960:6): [True: 19.3k, False: 0]
  ------------------
  961|  19.3k|    if (isBogus() || destCapacity < 0 || (destCapacity > 0 && dest == nullptr)) {
  ------------------
  |  Branch (961:9): [True: 0, False: 19.3k]
  |  Branch (961:22): [True: 0, False: 19.3k]
  |  Branch (961:43): [True: 19.3k, False: 0]
  |  Branch (961:63): [True: 0, False: 19.3k]
  ------------------
  962|      0|      errorCode=U_ILLEGAL_ARGUMENT_ERROR;
  963|  19.3k|    } else {
  964|  19.3k|      const char16_t *array = getArrayStart();
  965|  19.3k|      if(len>0 && len<=destCapacity && array!=dest) {
  ------------------
  |  Branch (965:10): [True: 17.2k, False: 2.09k]
  |  Branch (965:19): [True: 14.4k, False: 2.78k]
  |  Branch (965:40): [True: 14.4k, False: 0]
  ------------------
  966|  14.4k|        u_memcpy(dest, array, len);
  ------------------
  |  |  334|  14.4k|#define u_memcpy U_ICU_ENTRY_POINT_RENAME(u_memcpy)
  |  |  ------------------
  |  |  |  |  123|  14.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  14.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  14.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  967|  14.4k|      }
  968|  19.3k|      return u_terminateUChars(dest, destCapacity, len, &errorCode);
  ------------------
  |  |  408|  19.3k|#define u_terminateUChars U_ICU_ENTRY_POINT_RENAME(u_terminateUChars)
  |  |  ------------------
  |  |  |  |  123|  19.3k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  19.3k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  19.3k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  969|  19.3k|    }
  970|  19.3k|  }
  971|       |
  972|      0|  return len;
  973|  19.3k|}
_ZNK6icu_7813UnicodeString7extractEiiPciNS0_10EInvariantE:
  981|  7.75k|{
  982|       |  // if the arguments are illegal, then do nothing
  983|  7.75k|  if(targetCapacity < 0 || (targetCapacity > 0 && target == nullptr)) {
  ------------------
  |  Branch (983:6): [True: 0, False: 7.75k]
  |  Branch (983:29): [True: 7.75k, False: 0]
  |  Branch (983:51): [True: 0, False: 7.75k]
  ------------------
  984|      0|    return 0;
  985|      0|  }
  986|       |
  987|       |  // pin the indices to legal values
  988|  7.75k|  pinIndices(start, length);
  989|       |
  990|  7.75k|  if(length <= targetCapacity) {
  ------------------
  |  Branch (990:6): [True: 7.75k, False: 0]
  ------------------
  991|  7.75k|    u_UCharsToChars(getArrayStart() + start, target, length);
  ------------------
  |  |  211|  7.75k|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  992|  7.75k|  }
  993|  7.75k|  UErrorCode status = U_ZERO_ERROR;
  994|  7.75k|  return u_terminateChars(target, targetCapacity, length, &status);
  ------------------
  |  |  406|  7.75k|#define u_terminateChars U_ICU_ENTRY_POINT_RENAME(u_terminateChars)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  995|  7.75k|}
_ZNK6icu_7813UnicodeString7indexOfEPKDsiiii:
 1112|   189k|{
 1113|   189k|  if (isBogus() || srcChars == nullptr || srcStart < 0 || srcLength == 0) {
  ------------------
  |  Branch (1113:7): [True: 0, False: 189k]
  |  Branch (1113:20): [True: 0, False: 189k]
  |  Branch (1113:43): [True: 0, False: 189k]
  |  Branch (1113:59): [True: 0, False: 189k]
  ------------------
 1114|      0|    return -1;
 1115|      0|  }
 1116|       |
 1117|       |  // UnicodeString does not find empty substrings
 1118|   189k|  if(srcLength < 0 && srcChars[srcStart] == 0) {
  ------------------
  |  Branch (1118:6): [True: 0, False: 189k]
  |  Branch (1118:23): [True: 0, False: 0]
  ------------------
 1119|      0|    return -1;
 1120|      0|  }
 1121|       |
 1122|       |  // get the indices within bounds
 1123|   189k|  pinIndices(start, length);
 1124|       |
 1125|       |  // find the first occurrence of the substring
 1126|   189k|  const char16_t *array = getArrayStart();
 1127|   189k|  const char16_t *match = u_strFindFirst(array + start, length, srcChars + srcStart, srcLength);
  ------------------
  |  |  361|   189k|#define u_strFindFirst U_ICU_ENTRY_POINT_RENAME(u_strFindFirst)
  |  |  ------------------
  |  |  |  |  123|   189k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   189k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   189k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1128|   189k|  if(match == nullptr) {
  ------------------
  |  Branch (1128:6): [True: 4.19k, False: 184k]
  ------------------
 1129|  4.19k|    return -1;
 1130|   184k|  } else {
 1131|   184k|    return static_cast<int32_t>(match - array);
 1132|   184k|  }
 1133|   189k|}
_ZNK6icu_7813UnicodeString9doIndexOfEDsii:
 1139|     24|{
 1140|       |  // pin indices
 1141|     24|  pinIndices(start, length);
 1142|       |
 1143|       |  // find the first occurrence of c
 1144|     24|  const char16_t *array = getArrayStart();
 1145|     24|  const char16_t *match = u_memchr(array + start, c, length);
  ------------------
  |  |  330|     24|#define u_memchr U_ICU_ENTRY_POINT_RENAME(u_memchr)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1146|     24|  if(match == nullptr) {
  ------------------
  |  Branch (1146:6): [True: 16, False: 8]
  ------------------
 1147|     16|    return -1;
 1148|     16|  } else {
 1149|      8|    return static_cast<int32_t>(match - array);
 1150|      8|  }
 1151|     24|}
_ZNK6icu_7813UnicodeString13doLastIndexOfEDsii:
 1203|  3.14k|{
 1204|  3.14k|  if(isBogus()) {
  ------------------
  |  Branch (1204:6): [True: 0, False: 3.14k]
  ------------------
 1205|      0|    return -1;
 1206|      0|  }
 1207|       |
 1208|       |  // pin indices
 1209|  3.14k|  pinIndices(start, length);
 1210|       |
 1211|       |  // find the last occurrence of c
 1212|  3.14k|  const char16_t *array = getArrayStart();
 1213|  3.14k|  const char16_t *match = u_memrchr(array + start, c, length);
  ------------------
  |  |  336|  3.14k|#define u_memrchr U_ICU_ENTRY_POINT_RENAME(u_memrchr)
  |  |  ------------------
  |  |  |  |  123|  3.14k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.14k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.14k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1214|  3.14k|  if(match == nullptr) {
  ------------------
  |  Branch (1214:6): [True: 1.74k, False: 1.40k]
  ------------------
 1215|  1.74k|    return -1;
 1216|  1.74k|  } else {
 1217|  1.40k|    return static_cast<int32_t>(match - array);
 1218|  1.40k|  }
 1219|  3.14k|}
_ZN6icu_7813UnicodeString14findAndReplaceEiiRKS0_iiS2_ii:
 1251|  1.24k|{
 1252|  1.24k|  if(isBogus() || oldText.isBogus() || newText.isBogus()) {
  ------------------
  |  Branch (1252:6): [True: 0, False: 1.24k]
  |  Branch (1252:19): [True: 0, False: 1.24k]
  |  Branch (1252:40): [True: 0, False: 1.24k]
  ------------------
 1253|      0|    return *this;
 1254|      0|  }
 1255|       |
 1256|  1.24k|  pinIndices(start, length);
 1257|  1.24k|  oldText.pinIndices(oldStart, oldLength);
 1258|  1.24k|  newText.pinIndices(newStart, newLength);
 1259|       |
 1260|  1.24k|  if(oldLength == 0) {
  ------------------
  |  Branch (1260:6): [True: 0, False: 1.24k]
  ------------------
 1261|      0|    return *this;
 1262|      0|  }
 1263|       |
 1264|   186k|  while(length > 0 && length >= oldLength) {
  ------------------
  |  Branch (1264:9): [True: 185k, False: 196]
  |  Branch (1264:23): [True: 185k, False: 0]
  ------------------
 1265|   185k|    int32_t pos = indexOf(oldText, oldStart, oldLength, start, length);
 1266|   185k|    if(pos < 0) {
  ------------------
  |  Branch (1266:8): [True: 1.05k, False: 184k]
  ------------------
 1267|       |      // no more oldText's here: done
 1268|  1.05k|      break;
 1269|   184k|    } else {
 1270|       |      // we found oldText, replace it by newText and go beyond it
 1271|   184k|      replace(pos, oldLength, newText, newStart, newLength);
 1272|   184k|      length -= pos + oldLength - start;
 1273|   184k|      start = pos + newLength;
 1274|   184k|    }
 1275|   185k|  }
 1276|       |
 1277|  1.24k|  return *this;
 1278|  1.24k|}
_ZN6icu_7813UnicodeString10setToBogusEv:
 1283|  24.3k|{
 1284|  24.3k|  releaseArray();
 1285|       |
 1286|  24.3k|  fUnion.fFields.fLengthAndFlags = kIsBogus;
 1287|  24.3k|  fUnion.fFields.fArray = nullptr;
 1288|  24.3k|  fUnion.fFields.fCapacity = 0;
 1289|  24.3k|}
_ZN6icu_7813UnicodeString7unBogusEv:
 1293|  1.93k|UnicodeString::unBogus() {
 1294|  1.93k|  if(fUnion.fFields.fLengthAndFlags & kIsBogus) {
  ------------------
  |  Branch (1294:6): [True: 610, False: 1.32k]
  ------------------
 1295|    610|    setToEmpty();
 1296|    610|  }
 1297|  1.93k|}
_ZN6icu_7813UnicodeString19getTerminatedBufferEv:
 1300|  30.5k|UnicodeString::getTerminatedBuffer() {
 1301|  30.5k|  if(!isWritable()) {
  ------------------
  |  Branch (1301:6): [True: 0, False: 30.5k]
  ------------------
 1302|      0|    return nullptr;
 1303|      0|  }
 1304|  30.5k|  char16_t *array = getArrayStart();
 1305|  30.5k|  int32_t len = length();
 1306|  30.5k|  if(len < getCapacity()) {
  ------------------
  |  Branch (1306:6): [True: 30.5k, False: 3]
  ------------------
 1307|  30.5k|    if(fUnion.fFields.fLengthAndFlags & kBufferIsReadonly) {
  ------------------
  |  Branch (1307:8): [True: 25, False: 30.4k]
  ------------------
 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|  30.4k|    } else if(((fUnion.fFields.fLengthAndFlags & kRefCounted) == 0 || refCount() == 1)) {
  ------------------
  |  Branch (1315:16): [True: 30.3k, False: 147]
  |  Branch (1315:71): [True: 147, 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|  30.4k|      array[len] = 0;
 1325|  30.4k|      return array;
 1326|  30.4k|    }
 1327|  30.5k|  }
 1328|      3|  if(len<INT32_MAX && cloneArrayIfNeeded(len+1)) {
  ------------------
  |  Branch (1328:6): [True: 3, False: 0]
  |  Branch (1328:23): [True: 3, False: 0]
  ------------------
 1329|      3|    array = getArrayStart();
 1330|      3|    array[len] = 0;
 1331|      3|    return array;
 1332|      3|  } else {
 1333|      0|    return nullptr;
 1334|      0|  }
 1335|      3|}
_ZN6icu_7813UnicodeString5setToEaNS_14ConstChar16PtrEi:
 1342|  59.7k|{
 1343|  59.7k|  if(fUnion.fFields.fLengthAndFlags & kOpenGetBuffer) {
  ------------------
  |  Branch (1343:6): [True: 0, False: 59.7k]
  ------------------
 1344|       |    // do not modify a string that has an "open" getBuffer(minCapacity)
 1345|      0|    return *this;
 1346|      0|  }
 1347|       |
 1348|  59.7k|  const char16_t *text = textPtr;
 1349|  59.7k|  if(text == nullptr) {
  ------------------
  |  Branch (1349:6): [True: 0, False: 59.7k]
  ------------------
 1350|       |    // treat as an empty string, do not alias
 1351|      0|    releaseArray();
 1352|      0|    setToEmpty();
 1353|      0|    return *this;
 1354|      0|  }
 1355|       |
 1356|  59.7k|  if( textLength < -1 ||
  ------------------
  |  Branch (1356:7): [True: 0, False: 59.7k]
  ------------------
 1357|  59.7k|      (textLength == -1 && !isTerminated) ||
  ------------------
  |  Branch (1357:8): [True: 947, False: 58.7k]
  |  Branch (1357:28): [True: 0, False: 947]
  ------------------
 1358|  59.7k|      (textLength >= 0 && isTerminated && text[textLength] != 0)
  ------------------
  |  Branch (1358:8): [True: 58.7k, False: 947]
  |  Branch (1358:27): [True: 58.7k, False: 0]
  |  Branch (1358:43): [True: 0, False: 58.7k]
  ------------------
 1359|  59.7k|  ) {
 1360|      0|    setToBogus();
 1361|      0|    return *this;
 1362|      0|  }
 1363|       |
 1364|  59.7k|  releaseArray();
 1365|       |
 1366|  59.7k|  if(textLength == -1) {
  ------------------
  |  Branch (1366:6): [True: 947, False: 58.7k]
  ------------------
 1367|       |    // text is terminated, or else it would have failed the above test
 1368|    947|    textLength = u_strlen(text);
  ------------------
  |  |  393|    947|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|    947|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    947|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    947|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1369|    947|  }
 1370|  59.7k|  fUnion.fFields.fLengthAndFlags = kReadonlyAlias;
 1371|  59.7k|  setArray(const_cast<char16_t*>(text), textLength, isTerminated ? textLength + 1 : textLength);
  ------------------
  |  Branch (1371:53): [True: 59.7k, False: 0]
  ------------------
 1372|  59.7k|  return *this;
 1373|  59.7k|}
_ZN6icu_7813UnicodeString9setCharAtEiDs:
 1439|  5.17k|{
 1440|  5.17k|  int32_t len = length();
 1441|  5.17k|  if(cloneArrayIfNeeded() && len > 0) {
  ------------------
  |  Branch (1441:6): [True: 5.17k, False: 0]
  |  Branch (1441:30): [True: 5.17k, False: 0]
  ------------------
 1442|  5.17k|    if(offset < 0) {
  ------------------
  |  Branch (1442:8): [True: 0, False: 5.17k]
  ------------------
 1443|      0|      offset = 0;
 1444|  5.17k|    } else if(offset >= len) {
  ------------------
  |  Branch (1444:15): [True: 0, False: 5.17k]
  ------------------
 1445|      0|      offset = len - 1;
 1446|      0|    }
 1447|       |
 1448|  5.17k|    getArrayStart()[offset] = c;
 1449|  5.17k|  }
 1450|  5.17k|  return *this;
 1451|  5.17k|}
_ZN6icu_7813UnicodeString9doReplaceEiiRKS0_ii:
 1484|   186k|{
 1485|       |  // pin the indices to legal values
 1486|   186k|  src.pinIndices(srcStart, srcLength);
 1487|       |
 1488|       |  // get the characters from src
 1489|       |  // and replace the range in ourselves with them
 1490|   186k|  return doReplace(start, length, src.getArrayStart(), srcStart, srcLength);
 1491|   186k|}
_ZN6icu_7813UnicodeString9doReplaceEiiPKDsii:
 1499|   186k|{
 1500|   186k|  if(!isWritable()) {
  ------------------
  |  Branch (1500:6): [True: 0, False: 186k]
  ------------------
 1501|      0|    return *this;
 1502|      0|  }
 1503|       |
 1504|   186k|  int32_t oldLength = this->length();
 1505|       |
 1506|       |  // optimize (read-only alias).remove(0, start) and .remove(start, end)
 1507|   186k|  if((fUnion.fFields.fLengthAndFlags&kBufferIsReadonly) && srcLength == 0) {
  ------------------
  |  Branch (1507:6): [True: 0, False: 186k]
  |  Branch (1507:60): [True: 0, False: 0]
  ------------------
 1508|      0|    if(start == 0) {
  ------------------
  |  Branch (1508:8): [True: 0, False: 0]
  ------------------
 1509|       |      // remove prefix by adjusting the array pointer
 1510|      0|      pinIndex(length);
 1511|      0|      fUnion.fFields.fArray += length;
 1512|      0|      fUnion.fFields.fCapacity -= length;
 1513|      0|      setLength(oldLength - length);
 1514|      0|      return *this;
 1515|      0|    } else {
 1516|      0|      pinIndex(start);
 1517|      0|      if(length >= (oldLength - start)) {
  ------------------
  |  Branch (1517:10): [True: 0, False: 0]
  ------------------
 1518|       |        // remove suffix by reducing the length (like truncate())
 1519|      0|        setLength(start);
 1520|      0|        fUnion.fFields.fCapacity = start;  // not NUL-terminated any more
 1521|      0|        return *this;
 1522|      0|      }
 1523|      0|    }
 1524|      0|  }
 1525|       |
 1526|   186k|  if(start == oldLength) {
  ------------------
  |  Branch (1526:6): [True: 1.93k, False: 184k]
  ------------------
 1527|  1.93k|    return doAppend(srcChars, srcStart, srcLength);
 1528|  1.93k|  }
 1529|       |
 1530|   184k|  if (srcChars == nullptr) {
  ------------------
  |  Branch (1530:7): [True: 0, False: 184k]
  ------------------
 1531|      0|    srcLength = 0;
 1532|   184k|  } else {
 1533|       |    // Perform all remaining operations relative to srcChars + srcStart.
 1534|       |    // From this point forward, do not use srcStart.
 1535|   184k|    srcChars += srcStart;
 1536|   184k|    if (srcLength < 0) {
  ------------------
  |  Branch (1536:9): [True: 0, False: 184k]
  ------------------
 1537|       |      // get the srcLength if necessary
 1538|      0|      srcLength = u_strlen(srcChars);
  ------------------
  |  |  393|      0|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1539|      0|    }
 1540|   184k|  }
 1541|       |
 1542|       |  // pin the indices to legal values
 1543|   184k|  pinIndices(start, length);
 1544|       |
 1545|       |  // Calculate the size of the string after the replace.
 1546|       |  // Avoid int32_t overflow.
 1547|   184k|  int32_t newLength = oldLength - length;
 1548|   184k|  if(srcLength > (INT32_MAX - newLength)) {
  ------------------
  |  Branch (1548:6): [True: 0, False: 184k]
  ------------------
 1549|      0|    setToBogus();
 1550|      0|    return *this;
 1551|      0|  }
 1552|   184k|  newLength += srcLength;
 1553|       |
 1554|       |  // Check for insertion into ourself
 1555|   184k|  const char16_t *oldArray = getArrayStart();
 1556|   184k|  if (isBufferWritable() &&
  ------------------
  |  Branch (1556:7): [True: 184k, False: 0]
  ------------------
 1557|   184k|      oldArray < srcChars + srcLength &&
  ------------------
  |  Branch (1557:7): [True: 184k, False: 422]
  ------------------
 1558|   184k|      srcChars < oldArray + oldLength) {
  ------------------
  |  Branch (1558:7): [True: 0, False: 184k]
  ------------------
 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|   184k|  char16_t oldStackBuffer[US_STACKBUF_SIZE];
 1571|   184k|  if((fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) && (newLength > US_STACKBUF_SIZE)) {
  ------------------
  |  Branch (1571:6): [True: 422, False: 184k]
  |  Branch (1571:60): [True: 0, False: 422]
  ------------------
 1572|       |    // copy the stack buffer contents because it will be overwritten with
 1573|       |    // fUnion.fFields values
 1574|      0|    u_memcpy(oldStackBuffer, oldArray, oldLength);
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1575|      0|    oldArray = oldStackBuffer;
 1576|      0|  }
 1577|       |
 1578|       |  // clone our array and allocate a bigger array if needed
 1579|   184k|  int32_t *bufferToDelete = nullptr;
 1580|   184k|  if(!cloneArrayIfNeeded(newLength, getGrowCapacity(newLength),
  ------------------
  |  Branch (1580:6): [True: 0, False: 184k]
  ------------------
 1581|   184k|                         false, &bufferToDelete)
 1582|   184k|  ) {
 1583|      0|    return *this;
 1584|      0|  }
 1585|       |
 1586|       |  // now do the replace
 1587|       |
 1588|   184k|  char16_t *newArray = getArrayStart();
 1589|   184k|  if(newArray != oldArray) {
  ------------------
  |  Branch (1589:6): [True: 0, False: 184k]
  ------------------
 1590|       |    // if fArray changed, then we need to copy everything except what will change
 1591|      0|    us_arrayCopy(oldArray, 0, newArray, 0, start);
 1592|      0|    us_arrayCopy(oldArray, start + length,
 1593|      0|                 newArray, start + srcLength,
 1594|      0|                 oldLength - (start + length));
 1595|   184k|  } else if(length != srcLength) {
  ------------------
  |  Branch (1595:13): [True: 0, False: 184k]
  ------------------
 1596|       |    // fArray did not change; copy only the portion that isn't changing, leaving a hole
 1597|      0|    us_arrayCopy(oldArray, start + length,
 1598|      0|                 newArray, start + srcLength,
 1599|      0|                 oldLength - (start + length));
 1600|      0|  }
 1601|       |
 1602|       |  // now fill in the hole with the new string
 1603|   184k|  us_arrayCopy(srcChars, 0, newArray, start, srcLength);
 1604|       |
 1605|   184k|  setLength(newLength);
 1606|       |
 1607|       |  // delayed delete in case srcChars == fArray when we started, and
 1608|       |  // to keep oldArray alive for the above operations
 1609|   184k|  if (bufferToDelete) {
  ------------------
  |  Branch (1609:7): [True: 0, False: 184k]
  ------------------
 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|   184k|  return *this;
 1614|   184k|}
_ZN6icu_7813UnicodeString8doAppendEPKDsii:
 1643|  2.65k|UnicodeString::doAppend(const char16_t *srcChars, int32_t srcStart, int32_t srcLength) {
 1644|  2.65k|  if(!isWritable() || srcLength == 0 || srcChars == nullptr) {
  ------------------
  |  Branch (1644:6): [True: 0, False: 2.65k]
  |  Branch (1644:23): [True: 0, False: 2.65k]
  |  Branch (1644:41): [True: 0, False: 2.65k]
  ------------------
 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|  2.65k|  srcChars += srcStart;
 1651|       |
 1652|  2.65k|  if(srcLength < 0) {
  ------------------
  |  Branch (1652:6): [True: 688, False: 1.96k]
  ------------------
 1653|       |    // get the srcLength if necessary
 1654|    688|    if((srcLength = u_strlen(srcChars)) == 0) {
  ------------------
  |  |  393|    688|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|    688|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    688|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    688|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1654:8): [True: 0, False: 688]
  ------------------
 1655|      0|      return *this;
 1656|      0|    }
 1657|    688|  }
 1658|       |
 1659|  2.65k|  int32_t oldLength = length();
 1660|  2.65k|  int32_t newLength;
 1661|       |
 1662|  2.65k|  if (srcLength <= getCapacity() - oldLength && isBufferWritable()) {
  ------------------
  |  Branch (1662:7): [True: 2.14k, False: 516]
  |  Branch (1662:49): [True: 2.14k, False: 0]
  ------------------
 1663|  2.14k|    newLength = oldLength + srcLength;
 1664|       |    // Faster than a memmove
 1665|  2.14k|    if (srcLength <= 4) {
  ------------------
  |  Branch (1665:9): [True: 726, False: 1.41k]
  ------------------
 1666|    726|      char16_t *arr = getArrayStart();
 1667|    726|      arr[oldLength] = srcChars[0];
 1668|    726|      if (srcLength > 1) arr[oldLength+1] = srcChars[1];
  ------------------
  |  Branch (1668:11): [True: 450, False: 276]
  ------------------
 1669|    726|      if (srcLength > 2) arr[oldLength+2] = srcChars[2];
  ------------------
  |  Branch (1669:11): [True: 324, False: 402]
  ------------------
 1670|    726|      if (srcLength > 3) arr[oldLength+3] = srcChars[3];
  ------------------
  |  Branch (1670:11): [True: 106, False: 620]
  ------------------
 1671|    726|      setLength(newLength);
 1672|    726|      return *this;
 1673|    726|    }
 1674|  2.14k|  } else {
 1675|    516|    if (uprv_add32_overflow(oldLength, srcLength, &newLength)) {
  ------------------
  |  | 1394|    516|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  123|    516|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    516|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    516|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1675:9): [True: 0, False: 516]
  ------------------
 1676|      0|      setToBogus();
 1677|      0|      return *this;
 1678|      0|    }
 1679|       |
 1680|       |    // Check for append onto ourself
 1681|    516|    const char16_t* oldArray = getArrayStart();
 1682|    516|    if (isBufferWritable() &&
  ------------------
  |  Branch (1682:9): [True: 516, False: 0]
  ------------------
 1683|    516|        oldArray < srcChars + srcLength &&
  ------------------
  |  Branch (1683:9): [True: 0, False: 516]
  ------------------
 1684|    516|        srcChars < oldArray + oldLength) {
  ------------------
  |  Branch (1684:9): [True: 0, False: 0]
  ------------------
 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|    516|    if (!cloneArrayIfNeeded(newLength, getGrowCapacity(newLength))) {
  ------------------
  |  Branch (1695:9): [True: 0, False: 516]
  ------------------
 1696|      0|      return *this;
 1697|      0|    }
 1698|    516|  }
 1699|       |
 1700|  1.93k|  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|  1.93k|  if(srcChars != newArray + oldLength) {
  ------------------
  |  Branch (1708:6): [True: 1.93k, False: 0]
  ------------------
 1709|  1.93k|    us_arrayCopy(srcChars, 0, newArray, oldLength, srcLength);
 1710|  1.93k|  }
 1711|  1.93k|  setLength(newLength);
 1712|       |
 1713|  1.93k|  return *this;
 1714|  2.65k|}
_ZN6icu_7813UnicodeString8doAppendENSt3__117basic_string_viewIDsNS1_11char_traitsIDsEEEE:
 1717|    720|UnicodeString::doAppend(std::u16string_view src) {
 1718|    720|  if (!isWritable() || src.empty()) {
  ------------------
  |  Branch (1718:7): [True: 0, False: 720]
  |  Branch (1718:24): [True: 0, False: 720]
  ------------------
 1719|      0|    return *this;
 1720|      0|  }
 1721|    720|  if (src.length() > INT32_MAX) {
  ------------------
  |  Branch (1721:7): [True: 0, False: 720]
  ------------------
 1722|      0|    setToBogus();
 1723|      0|    return *this;
 1724|      0|  }
 1725|    720|  return doAppend(src.data(), 0, static_cast<int32_t>(src.length()));
 1726|    720|}
_ZNK6icu_7813UnicodeString10doHashCodeEv:
 1864|  1.78k|{
 1865|       |    /* Delegate hash computation to uhash.  This makes UnicodeString
 1866|       |     * hashing consistent with char16_t* hashing.  */
 1867|  1.78k|    int32_t hashCode = ustr_hashUCharsN(getArrayStart(), length());
  ------------------
  |  | 1880|  1.78k|#define ustr_hashUCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashUCharsN)
  |  |  ------------------
  |  |  |  |  123|  1.78k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.78k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.78k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1868|  1.78k|    if (hashCode == kInvalidHashCode) {
  ------------------
  |  Branch (1868:9): [True: 15, False: 1.76k]
  ------------------
 1869|     15|        hashCode = kEmptyHashCode;
 1870|     15|    }
 1871|  1.78k|    return hashCode;
 1872|  1.78k|}
_ZN6icu_7813UnicodeString18cloneArrayIfNeededEiiaPPia:
 1917|   213k|                                  UBool forceClone) {
 1918|       |  // default parameters need to be static, therefore
 1919|       |  // the defaults are -1 to have convenience defaults
 1920|   213k|  if(newCapacity == -1) {
  ------------------
  |  Branch (1920:6): [True: 5.17k, False: 207k]
  ------------------
 1921|  5.17k|    newCapacity = getCapacity();
 1922|  5.17k|  }
 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|   213k|  if(!isWritable()) {
  ------------------
  |  Branch (1927:6): [True: 0, False: 213k]
  ------------------
 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|   213k|  if(forceClone ||
  ------------------
  |  Branch (1938:6): [True: 0, False: 213k]
  ------------------
 1939|   213k|     fUnion.fFields.fLengthAndFlags & kBufferIsReadonly ||
  ------------------
  |  Branch (1939:6): [True: 0, False: 213k]
  ------------------
 1940|   213k|     (fUnion.fFields.fLengthAndFlags & kRefCounted && refCount() > 1) ||
  ------------------
  |  Branch (1940:7): [True: 188k, False: 24.8k]
  |  Branch (1940:55): [True: 0, False: 188k]
  ------------------
 1941|   213k|     newCapacity > getCapacity()
  ------------------
  |  Branch (1941:6): [True: 519, False: 212k]
  ------------------
 1942|   213k|  ) {
 1943|       |    // check growCapacity for default value and use of the stack buffer
 1944|    519|    if(growCapacity < 0) {
  ------------------
  |  Branch (1944:8): [True: 3, False: 516]
  ------------------
 1945|      3|      growCapacity = newCapacity;
 1946|    516|    } else if(newCapacity <= US_STACKBUF_SIZE && growCapacity > US_STACKBUF_SIZE) {
  ------------------
  |  Branch (1946:15): [True: 0, False: 516]
  |  Branch (1946:50): [True: 0, False: 0]
  ------------------
 1947|      0|      growCapacity = US_STACKBUF_SIZE;
 1948|    516|    } else if(newCapacity > growCapacity) {
  ------------------
  |  Branch (1948:15): [True: 0, False: 516]
  ------------------
 1949|      0|      setToBogus();
 1950|      0|      return false;  // bad inputs
 1951|      0|    }
 1952|    519|    if(growCapacity > kMaxCapacity) {
  ------------------
  |  Branch (1952:8): [True: 0, False: 519]
  ------------------
 1953|      0|      setToBogus();
 1954|      0|      return false;
 1955|      0|    }
 1956|       |
 1957|       |    // save old values
 1958|    519|    char16_t oldStackBuffer[US_STACKBUF_SIZE];
 1959|    519|    char16_t *oldArray;
 1960|    519|    int32_t oldLength = length();
 1961|    519|    int16_t flags = fUnion.fFields.fLengthAndFlags;
 1962|       |
 1963|    519|    if(flags&kUsingStackBuffer) {
  ------------------
  |  Branch (1963:8): [True: 519, False: 0]
  ------------------
 1964|    519|      U_ASSERT(!(flags&kRefCounted)); /* kRefCounted and kUsingStackBuffer are mutally exclusive */
  ------------------
  |  |   35|    519|#   define U_ASSERT(exp) (void)0
  ------------------
 1965|    519|      if(doCopyArray && growCapacity > US_STACKBUF_SIZE) {
  ------------------
  |  Branch (1965:10): [True: 519, False: 0]
  |  Branch (1965:25): [True: 519, False: 0]
  ------------------
 1966|       |        // copy the stack buffer contents because it will be overwritten with
 1967|       |        // fUnion.fFields values
 1968|    519|        us_arrayCopy(fUnion.fStackFields.fBuffer, 0, oldStackBuffer, 0, oldLength);
 1969|    519|        oldArray = oldStackBuffer;
 1970|    519|      } else {
 1971|      0|        oldArray = nullptr; // no need to copy from the stack buffer to itself
 1972|      0|      }
 1973|    519|    } else {
 1974|      0|      oldArray = fUnion.fFields.fArray;
 1975|      0|      U_ASSERT(oldArray!=nullptr); /* when stack buffer is not used, oldArray must have a non-nullptr reference */
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1976|      0|    }
 1977|       |
 1978|       |    // allocate a new array
 1979|    519|    if(allocate(growCapacity) ||
  ------------------
  |  Branch (1979:8): [True: 519, False: 0]
  ------------------
 1980|    519|       (newCapacity < growCapacity && allocate(newCapacity))
  ------------------
  |  Branch (1980:9): [True: 0, False: 0]
  |  Branch (1980:39): [True: 0, False: 0]
  ------------------
 1981|    519|    ) {
 1982|    519|      if(doCopyArray) {
  ------------------
  |  Branch (1982:10): [True: 519, False: 0]
  ------------------
 1983|       |        // copy the contents
 1984|       |        // do not copy more than what fits - it may be smaller than before
 1985|    519|        int32_t minLength = oldLength;
 1986|    519|        newCapacity = getCapacity();
 1987|    519|        if(newCapacity < minLength) {
  ------------------
  |  Branch (1987:12): [True: 0, False: 519]
  ------------------
 1988|      0|          minLength = newCapacity;
 1989|      0|        }
 1990|    519|        if(oldArray != nullptr) {
  ------------------
  |  Branch (1990:12): [True: 519, False: 0]
  ------------------
 1991|    519|          us_arrayCopy(oldArray, 0, getArrayStart(), 0, minLength);
 1992|    519|        }
 1993|    519|        setLength(minLength);
 1994|    519|      } else {
 1995|      0|        setZeroLength();
 1996|      0|      }
 1997|       |
 1998|       |      // release the old array
 1999|    519|      if(flags & kRefCounted) {
  ------------------
  |  Branch (1999:10): [True: 0, False: 519]
  ------------------
 2000|       |        // the array is refCounted; decrement and release if 0
 2001|      0|        u_atomic_int32_t* pRefCount = reinterpret_cast<u_atomic_int32_t*>(oldArray) - 1;
 2002|      0|        if(umtx_atomic_dec(pRefCount) == 0) {
  ------------------
  |  Branch (2002:12): [True: 0, False: 0]
  ------------------
 2003|      0|          if (pBufferToDelete == nullptr) {
  ------------------
  |  Branch (2003:15): [True: 0, 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|      0|            uprv_free((void *)pRefCount);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2008|      0|          } else {
 2009|       |            // the caller requested to delete it himself
 2010|      0|            *pBufferToDelete = reinterpret_cast<int32_t*>(pRefCount);
 2011|      0|          }
 2012|      0|        }
 2013|      0|      }
 2014|    519|    } 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|    519|  }
 2025|   213k|  return true;
 2026|   213k|}
uhash_hashUnicodeString_78:
 2081|  1.78k|uhash_hashUnicodeString(const UElement key) {
 2082|  1.78k|    const UnicodeString *str = (const UnicodeString*) key.pointer;
 2083|  1.78k|    return (str == nullptr) ? 0 : str->hashCode();
  ------------------
  |  Branch (2083:12): [True: 0, False: 1.78k]
  ------------------
 2084|  1.78k|}
uhash_compareUnicodeString_78:
 2089|    249|uhash_compareUnicodeString(const UElement key1, const UElement key2) {
 2090|    249|    const UnicodeString *str1 = (const UnicodeString*) key1.pointer;
 2091|    249|    const UnicodeString *str2 = (const UnicodeString*) key2.pointer;
 2092|    249|    if (str1 == str2) {
  ------------------
  |  Branch (2092:9): [True: 0, False: 249]
  ------------------
 2093|      0|        return true;
 2094|      0|    }
 2095|    249|    if (str1 == nullptr || str2 == nullptr) {
  ------------------
  |  Branch (2095:9): [True: 0, False: 249]
  |  Branch (2095:28): [True: 0, False: 249]
  ------------------
 2096|      0|        return false;
 2097|      0|    }
 2098|    249|    return *str1 == *str2;
 2099|    249|}
unistr.cpp:_ZL12us_arrayCopyPKDsiPDsii:
   87|   187k|{
   88|   187k|  if(count>0) {
  ------------------
  |  Branch (88:6): [True: 186k, False: 1.03k]
  ------------------
   89|   186k|    uprv_memmove(dst+dstStart, src+srcStart, (size_t)count*sizeof(*src));
  ------------------
  |  |   51|   186k|#define uprv_memmove(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   186k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   52|   186k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   53|   186k|    _Pragma("clang diagnostic push") \
  |  |   54|   186k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   55|   186k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|   186k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   56|   186k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|   186k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   57|   186k|    _Pragma("clang diagnostic pop") \
  |  |   58|   186k|    U_STANDARD_CPP_NAMESPACE memmove(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|   186k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   59|   186k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   186k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   90|   186k|  }
   91|   187k|}
unistr.cpp:_ZN6icu_7812_GLOBAL__N_115getGrowCapacityEi:
  397|   185k|int32_t getGrowCapacity(int32_t newLength) {
  398|   185k|  int32_t growSize = (newLength >> 2) + kGrowSize;
  399|   185k|  if(growSize <= (kMaxCapacity - newLength)) {
  ------------------
  |  Branch (399:6): [True: 185k, False: 0]
  ------------------
  400|   185k|    return newLength + growSize;
  401|   185k|  } else {
  402|      0|    return kMaxCapacity;
  403|      0|  }
  404|   185k|}

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

ures_initStackObject_78:
  726|  6.74k|U_CFUNC void ures_initStackObject(UResourceBundle* resB) {
  727|  6.74k|  uprv_memset(resB, 0, sizeof(UResourceBundle));
  ------------------
  |  |  100|  6.74k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  6.74k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  728|  6.74k|  ures_setIsStackObject(resB, true);
  729|  6.74k|}
_ZN6icu_7820StackUResourceBundleC2Ev:
  733|  6.74k|StackUResourceBundle::StackUResourceBundle() {
  734|  6.74k|    ures_initStackObject(&bundle);
  ------------------
  |  | 1690|  6.74k|#define ures_initStackObject U_ICU_ENTRY_POINT_RENAME(ures_initStackObject)
  |  |  ------------------
  |  |  |  |  123|  6.74k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.74k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.74k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  735|  6.74k|}
_ZN6icu_7820StackUResourceBundleD2Ev:
  737|  6.74k|StackUResourceBundle::~StackUResourceBundle() {
  738|  6.74k|    ures_close(&bundle);
  ------------------
  |  | 1652|  6.74k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  6.74k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.74k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.74k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  739|  6.74k|}
ures_close_78:
 1147|  42.6k|{
 1148|  42.6k|    ures_closeBundle(resB, true);
 1149|  42.6k|}
ures_getIntVector_78:
 1630|      4|                                                   UErrorCode*               status) {
 1631|      4|  const int32_t *p;
 1632|      4|  if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1632:7): [True: 0, False: 4]
  |  Branch (1632:26): [True: 3, False: 1]
  ------------------
 1633|      3|    return nullptr;
 1634|      3|  }
 1635|      1|  if(resB == nullptr) {
  ------------------
  |  Branch (1635:6): [True: 0, False: 1]
  ------------------
 1636|      0|    *status = U_ILLEGAL_ARGUMENT_ERROR;
 1637|      0|    return nullptr;
 1638|      0|  }
 1639|      1|  p = res_getIntVector({resB}, &resB->getResData(), resB->fRes, len);
 1640|      1|  if (p == nullptr) {
  ------------------
  |  Branch (1640:7): [True: 0, False: 1]
  ------------------
 1641|      0|    *status = U_RESOURCE_TYPE_MISMATCH;
 1642|      0|  }
 1643|      1|  return p;
 1644|      1|}
ures_getInt_78:
 1648|     24|U_CAPI int32_t U_EXPORT2 ures_getInt(const UResourceBundle* resB, UErrorCode *status) {
 1649|     24|  if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1649:7): [True: 0, False: 24]
  |  Branch (1649:26): [True: 2, False: 22]
  ------------------
 1650|      2|    return 0xffffffff;
 1651|      2|  }
 1652|     22|  if(resB == nullptr) {
  ------------------
  |  Branch (1652:6): [True: 0, False: 22]
  ------------------
 1653|      0|    *status = U_ILLEGAL_ARGUMENT_ERROR;
 1654|      0|    return 0xffffffff;
 1655|      0|  }
 1656|     22|  if(RES_GET_TYPE(resB->fRes) != URES_INT) {
  ------------------
  |  |   68|     22|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (1656:6): [True: 0, False: 22]
  ------------------
 1657|      0|    *status = U_RESOURCE_TYPE_MISMATCH;
 1658|      0|    return 0xffffffff;
 1659|      0|  }
 1660|     22|  return res_getInt({resB}, resB->fRes);
 1661|     22|}
ures_getType_78:
 1678|     23|U_CAPI UResType U_EXPORT2 ures_getType(const UResourceBundle *resB) {
 1679|     23|  if(resB == nullptr) {
  ------------------
  |  Branch (1679:6): [True: 0, False: 23]
  ------------------
 1680|      0|    return URES_NONE;
 1681|      0|  }
 1682|     23|  return res_getPublicType(resB->fRes);
  ------------------
  |  |  203|     23|#define res_getPublicType U_ICU_ENTRY_POINT_RENAME(res_getPublicType)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1683|     23|}
ures_getKey_78:
 1685|  1.48k|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|  1.48k|  if(resB == nullptr) {
  ------------------
  |  Branch (1695:6): [True: 0, False: 1.48k]
  ------------------
 1696|      0|    return nullptr;
 1697|      0|  }
 1698|  1.48k|  return(resB->fKey);
 1699|  1.48k|}
ures_getSize_78:
 1701|  6.04k|U_CAPI int32_t U_EXPORT2 ures_getSize(const UResourceBundle *resB) {
 1702|  6.04k|  if(resB == nullptr) {
  ------------------
  |  Branch (1702:6): [True: 0, False: 6.04k]
  ------------------
 1703|      0|    return 0;
 1704|      0|  }
 1705|       |  
 1706|  6.04k|  return resB->fSize;
 1707|  6.04k|}
ures_hasNext_78:
 1728|  1.67k|U_CAPI UBool U_EXPORT2 ures_hasNext(const UResourceBundle *resB) {
 1729|  1.67k|  if(resB == nullptr) {
  ------------------
  |  Branch (1729:6): [True: 0, False: 1.67k]
  ------------------
 1730|      0|    return false;
 1731|      0|  }
 1732|  1.67k|  return resB->fIndex < resB->fSize-1;
 1733|  1.67k|}
ures_getNextResource_78:
 1784|  1.60k|U_CAPI UResourceBundle* U_EXPORT2 ures_getNextResource(UResourceBundle *resB, UResourceBundle *fillIn, UErrorCode *status) {
 1785|  1.60k|    const char *key = nullptr;
 1786|  1.60k|    Resource r = RES_BOGUS;
  ------------------
  |  |   65|  1.60k|#define RES_BOGUS 0xffffffff
  ------------------
 1787|       |
 1788|  1.60k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1788:9): [True: 0, False: 1.60k]
  |  Branch (1788:28): [True: 0, False: 1.60k]
  ------------------
 1789|       |            /*return nullptr;*/
 1790|      0|            return fillIn;
 1791|      0|    }
 1792|  1.60k|    if(resB == nullptr) {
  ------------------
  |  Branch (1792:8): [True: 0, False: 1.60k]
  ------------------
 1793|      0|            *status = U_ILLEGAL_ARGUMENT_ERROR;
 1794|       |            /*return nullptr;*/
 1795|      0|            return fillIn;
 1796|      0|    }
 1797|       |
 1798|  1.60k|    if(resB->fIndex == resB->fSize-1) {
  ------------------
  |  Branch (1798:8): [True: 0, False: 1.60k]
  ------------------
 1799|      0|      *status = U_INDEX_OUTOFBOUNDS_ERROR;
 1800|       |      /*return nullptr;*/
 1801|  1.60k|    } else {
 1802|  1.60k|        resB->fIndex++;
 1803|  1.60k|        switch(RES_GET_TYPE(resB->fRes)) {
  ------------------
  |  |   68|  1.60k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 1804|      0|        case URES_INT:
  ------------------
  |  Branch (1804:9): [True: 0, False: 1.60k]
  ------------------
 1805|      0|        case URES_BINARY:
  ------------------
  |  Branch (1805:9): [True: 0, False: 1.60k]
  ------------------
 1806|      0|        case URES_STRING:
  ------------------
  |  Branch (1806:9): [True: 0, False: 1.60k]
  ------------------
 1807|      0|        case URES_STRING_V2:
  ------------------
  |  Branch (1807:9): [True: 0, False: 1.60k]
  ------------------
 1808|      0|        case URES_INT_VECTOR:
  ------------------
  |  Branch (1808:9): [True: 0, False: 1.60k]
  ------------------
 1809|      0|            return ures_copyResb(fillIn, resB, status);
  ------------------
  |  | 1653|      0|#define ures_copyResb U_ICU_ENTRY_POINT_RENAME(ures_copyResb)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1810|  1.48k|        case URES_TABLE:
  ------------------
  |  Branch (1810:9): [True: 1.48k, False: 129]
  ------------------
 1811|  1.48k|        case URES_TABLE16:
  ------------------
  |  Branch (1811:9): [True: 0, False: 1.60k]
  ------------------
 1812|  1.48k|        case URES_TABLE32:
  ------------------
  |  Branch (1812:9): [True: 0, False: 1.60k]
  ------------------
 1813|  1.48k|            r = res_getTableItemByIndex(&resB->getResData(), resB->fRes, resB->fIndex, &key);
  ------------------
  |  |  206|  1.48k|#define res_getTableItemByIndex U_ICU_ENTRY_POINT_RENAME(res_getTableItemByIndex)
  |  |  ------------------
  |  |  |  |  123|  1.48k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.48k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.48k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1814|  1.48k|            if(r == RES_BOGUS && resB->fHasFallback) {
  ------------------
  |  |   65|  2.96k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1814:16): [True: 0, False: 1.48k]
  |  Branch (1814:34): [True: 0, False: 0]
  ------------------
 1815|       |                /* TODO: do the fallback */
 1816|      0|            }
 1817|  1.48k|            return init_resb_result(resB->fData, r, key, resB->fIndex, resB, fillIn, status);
 1818|    129|        case URES_ARRAY:
  ------------------
  |  Branch (1818:9): [True: 129, False: 1.48k]
  ------------------
 1819|    129|        case URES_ARRAY16:
  ------------------
  |  Branch (1819:9): [True: 0, False: 1.60k]
  ------------------
 1820|    129|            r = res_getArrayItem(&resB->getResData(), resB->fRes, resB->fIndex);
  ------------------
  |  |  200|    129|#define res_getArrayItem U_ICU_ENTRY_POINT_RENAME(res_getArrayItem)
  |  |  ------------------
  |  |  |  |  123|    129|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    129|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    129|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1821|    129|            if(r == RES_BOGUS && resB->fHasFallback) {
  ------------------
  |  |   65|    258|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1821:16): [True: 0, False: 129]
  |  Branch (1821:34): [True: 0, False: 0]
  ------------------
 1822|       |                /* TODO: do the fallback */
 1823|      0|            }
 1824|    129|            return init_resb_result(resB->fData, r, key, resB->fIndex, resB, fillIn, status);
 1825|      0|        default:
  ------------------
  |  Branch (1825:9): [True: 0, False: 1.60k]
  ------------------
 1826|       |            /*return nullptr;*/
 1827|      0|            return fillIn;
 1828|  1.60k|        }
 1829|  1.60k|    }
 1830|       |    /*return nullptr;*/
 1831|      0|    return fillIn;
 1832|  1.60k|}
ures_getByIndex_78:
 1834|  2.97k|U_CAPI UResourceBundle* U_EXPORT2 ures_getByIndex(const UResourceBundle *resB, int32_t indexR, UResourceBundle *fillIn, UErrorCode *status) {
 1835|  2.97k|    const char* key = nullptr;
 1836|  2.97k|    Resource r = RES_BOGUS;
  ------------------
  |  |   65|  2.97k|#define RES_BOGUS 0xffffffff
  ------------------
 1837|       |
 1838|  2.97k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1838:9): [True: 0, False: 2.97k]
  |  Branch (1838:28): [True: 2.95k, False: 23]
  ------------------
 1839|       |        /*return nullptr;*/
 1840|  2.95k|        return fillIn;
 1841|  2.95k|    }
 1842|     23|    if(resB == nullptr) {
  ------------------
  |  Branch (1842:8): [True: 0, False: 23]
  ------------------
 1843|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 1844|       |        /*return nullptr;*/
 1845|      0|        return fillIn;
 1846|      0|    }
 1847|       |
 1848|     23|    if(indexR >= 0 && resB->fSize > indexR) {
  ------------------
  |  Branch (1848:8): [True: 23, False: 0]
  |  Branch (1848:23): [True: 23, False: 0]
  ------------------
 1849|     23|        switch(RES_GET_TYPE(resB->fRes)) {
  ------------------
  |  |   68|     23|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 1850|      0|        case URES_INT:
  ------------------
  |  Branch (1850:9): [True: 0, False: 23]
  ------------------
 1851|      0|        case URES_BINARY:
  ------------------
  |  Branch (1851:9): [True: 0, False: 23]
  ------------------
 1852|      0|        case URES_STRING:
  ------------------
  |  Branch (1852:9): [True: 0, False: 23]
  ------------------
 1853|      0|        case URES_STRING_V2:
  ------------------
  |  Branch (1853:9): [True: 0, False: 23]
  ------------------
 1854|      0|        case URES_INT_VECTOR:
  ------------------
  |  Branch (1854:9): [True: 0, False: 23]
  ------------------
 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: 23]
  ------------------
 1857|      0|        case URES_TABLE16:
  ------------------
  |  Branch (1857:9): [True: 0, False: 23]
  ------------------
 1858|      0|        case URES_TABLE32:
  ------------------
  |  Branch (1858:9): [True: 0, False: 23]
  ------------------
 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|     23|        case URES_ARRAY:
  ------------------
  |  Branch (1864:9): [True: 23, False: 0]
  ------------------
 1865|     23|        case URES_ARRAY16:
  ------------------
  |  Branch (1865:9): [True: 0, False: 23]
  ------------------
 1866|     23|            r = res_getArrayItem(&resB->getResData(), resB->fRes, indexR);
  ------------------
  |  |  200|     23|#define res_getArrayItem U_ICU_ENTRY_POINT_RENAME(res_getArrayItem)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1867|     23|            if(r == RES_BOGUS && resB->fHasFallback) {
  ------------------
  |  |   65|     46|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1867:16): [True: 0, False: 23]
  |  Branch (1867:34): [True: 0, False: 0]
  ------------------
 1868|       |                /* TODO: do the fallback */
 1869|      0|            }
 1870|     23|            return init_resb_result(resB->fData, r, key, indexR, resB, fillIn, status);
 1871|      0|        default:
  ------------------
  |  Branch (1871:9): [True: 0, False: 23]
  ------------------
 1872|       |            /*return nullptr;*/
 1873|      0|            return fillIn;
 1874|     23|        }
 1875|     23|    } else {
 1876|      0|        *status = U_MISSING_RESOURCE_ERROR;
 1877|      0|    }
 1878|       |    /*return nullptr;*/
 1879|      0|    return fillIn;
 1880|     23|}
ures_getStringByIndex_78:
 1882|  65.0k|U_CAPI const char16_t* U_EXPORT2 ures_getStringByIndex(const UResourceBundle *resB, int32_t indexS, int32_t* len, UErrorCode *status) {
 1883|  65.0k|    const char* key = nullptr;
 1884|  65.0k|    Resource r = RES_BOGUS;
  ------------------
  |  |   65|  65.0k|#define RES_BOGUS 0xffffffff
  ------------------
 1885|       |
 1886|  65.0k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1886:9): [True: 0, False: 65.0k]
  |  Branch (1886:28): [True: 0, False: 65.0k]
  ------------------
 1887|      0|        return nullptr;
 1888|      0|    }
 1889|  65.0k|    if(resB == nullptr) {
  ------------------
  |  Branch (1889:8): [True: 0, False: 65.0k]
  ------------------
 1890|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 1891|      0|        return nullptr;
 1892|      0|    }
 1893|       |
 1894|  65.0k|    if(indexS >= 0 && resB->fSize > indexS) {
  ------------------
  |  Branch (1894:8): [True: 59.8k, False: 5.16k]
  |  Branch (1894:23): [True: 59.8k, False: 0]
  ------------------
 1895|  59.8k|        switch(RES_GET_TYPE(resB->fRes)) {
  ------------------
  |  |   68|  59.8k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 1896|      0|        case URES_STRING:
  ------------------
  |  Branch (1896:9): [True: 0, False: 59.8k]
  ------------------
 1897|      5|        case URES_STRING_V2:
  ------------------
  |  Branch (1897:9): [True: 5, False: 59.8k]
  ------------------
 1898|      5|            return res_getString({resB}, &resB->getResData(), resB->fRes, len);
 1899|      0|        case URES_TABLE:
  ------------------
  |  Branch (1899:9): [True: 0, False: 59.8k]
  ------------------
 1900|      0|        case URES_TABLE16:
  ------------------
  |  Branch (1900:9): [True: 0, False: 59.8k]
  ------------------
 1901|      0|        case URES_TABLE32:
  ------------------
  |  Branch (1901:9): [True: 0, False: 59.8k]
  ------------------
 1902|      0|            r = res_getTableItemByIndex(&resB->getResData(), resB->fRes, indexS, &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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1903|      0|            if(r == RES_BOGUS && resB->fHasFallback) {
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1903:16): [True: 0, False: 0]
  |  Branch (1903:34): [True: 0, False: 0]
  ------------------
 1904|       |                /* TODO: do the fallback */
 1905|      0|            }
 1906|      0|            return ures_getStringWithAlias(resB, r, indexS, len, status);
 1907|      0|        case URES_ARRAY:
  ------------------
  |  Branch (1907:9): [True: 0, False: 59.8k]
  ------------------
 1908|  59.8k|        case URES_ARRAY16:
  ------------------
  |  Branch (1908:9): [True: 59.8k, False: 5]
  ------------------
 1909|  59.8k|            r = res_getArrayItem(&resB->getResData(), resB->fRes, indexS);
  ------------------
  |  |  200|  59.8k|#define res_getArrayItem U_ICU_ENTRY_POINT_RENAME(res_getArrayItem)
  |  |  ------------------
  |  |  |  |  123|  59.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  59.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  59.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1910|  59.8k|            if(r == RES_BOGUS && resB->fHasFallback) {
  ------------------
  |  |   65|   119k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1910:16): [True: 0, False: 59.8k]
  |  Branch (1910:34): [True: 0, False: 0]
  ------------------
 1911|       |                /* TODO: do the fallback */
 1912|      0|            }
 1913|  59.8k|            return ures_getStringWithAlias(resB, r, indexS, len, status);
 1914|      0|        case URES_ALIAS:
  ------------------
  |  Branch (1914:9): [True: 0, False: 59.8k]
  ------------------
 1915|      0|            return ures_getStringWithAlias(resB, resB->fRes, indexS, len, status);
 1916|      0|        case URES_INT:
  ------------------
  |  Branch (1916:9): [True: 0, False: 59.8k]
  ------------------
 1917|      0|        case URES_BINARY:
  ------------------
  |  Branch (1917:9): [True: 0, False: 59.8k]
  ------------------
 1918|      0|        case URES_INT_VECTOR:
  ------------------
  |  Branch (1918:9): [True: 0, False: 59.8k]
  ------------------
 1919|      0|            *status = U_RESOURCE_TYPE_MISMATCH;
 1920|      0|            break;
 1921|      0|        default:
  ------------------
  |  Branch (1921:9): [True: 0, False: 59.8k]
  ------------------
 1922|       |          /* must not occur */
 1923|      0|          *status = U_INTERNAL_PROGRAM_ERROR;
 1924|      0|          break;
 1925|  59.8k|        }
 1926|  59.8k|    } else {
 1927|  5.16k|        *status = U_MISSING_RESOURCE_ERROR;
 1928|  5.16k|    }
 1929|  5.16k|    return nullptr;
 1930|  65.0k|}
ures_getByKeyWithFallback_78:
 2164|  4.94k|                          UErrorCode *status) {
 2165|  4.94k|    Resource res = RES_BOGUS, rootRes = RES_BOGUS;
  ------------------
  |  |   65|  4.94k|#define RES_BOGUS 0xffffffff
  ------------------
                  Resource res = RES_BOGUS, rootRes = RES_BOGUS;
  ------------------
  |  |   65|  4.94k|#define RES_BOGUS 0xffffffff
  ------------------
 2166|  4.94k|    UResourceBundle *helper = nullptr;
 2167|       |
 2168|  4.94k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (2168:9): [True: 0, False: 4.94k]
  |  Branch (2168:28): [True: 0, False: 4.94k]
  ------------------
 2169|      0|        return fillIn;
 2170|      0|    }
 2171|  4.94k|    if(resB == nullptr) {
  ------------------
  |  Branch (2171:8): [True: 0, False: 4.94k]
  ------------------
 2172|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 2173|      0|        return fillIn;
 2174|      0|    }
 2175|       |
 2176|  4.94k|    int32_t type = RES_GET_TYPE(resB->fRes);
  ------------------
  |  |   68|  4.94k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2177|  4.94k|    if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|  4.94k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 4.81k, False: 127]
  |  |  |  Branch (84:61): [True: 127, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2178|  4.94k|        const char* origResPath = resB->fResPath;
 2179|  4.94k|        int32_t origResPathLen = resB->fResPathLen;
 2180|  4.94k|        res = getTableItemByKeyPath(&resB->getResData(), resB->fRes, inKey);
 2181|  4.94k|        const char* key = inKey;
 2182|  4.94k|        bool didRootOnce = false;
 2183|  4.94k|        if(res == RES_BOGUS) {
  ------------------
  |  |   65|  4.94k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2183:12): [True: 2.78k, False: 2.15k]
  ------------------
 2184|  2.78k|            UResourceDataEntry *dataEntry = resB->fData;
 2185|  2.78k|            CharString path;
 2186|  2.78k|            char *myPath = nullptr;
 2187|  2.78k|            const char* resPath = resB->fResPath;
 2188|  2.78k|            int32_t len = resB->fResPathLen;
 2189|  8.39k|            while(res == RES_BOGUS && (dataEntry->fParent != nullptr || !didRootOnce)) { /* Otherwise, we'll look in parents */
  ------------------
  |  |   65|  16.7k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2189:19): [True: 7.96k, False: 436]
  |  Branch (2189:40): [True: 3.26k, False: 4.69k]
  |  Branch (2189:73): [True: 2.34k, False: 2.34k]
  ------------------
 2190|  5.61k|                if (dataEntry->fParent != nullptr) {
  ------------------
  |  Branch (2190:21): [True: 3.26k, False: 2.34k]
  ------------------
 2191|  3.26k|                    dataEntry = dataEntry->fParent;
 2192|  3.26k|                } 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|  2.34k|                    didRootOnce = true;
 2199|  2.34k|                }
 2200|  5.61k|                rootRes = dataEntry->fData.rootRes;
 2201|       |
 2202|  5.61k|                if(dataEntry->fBogus == U_ZERO_ERROR) {
  ------------------
  |  Branch (2202:20): [True: 5.61k, False: 0]
  ------------------
 2203|  5.61k|                    createPath(origResPath, origResPathLen, resPath, len, inKey, path, status);
 2204|  5.61k|                    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (2204:25): [True: 0, False: 5.61k]
  ------------------
 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|  5.61k|                    myPath = path.data();
 2209|  5.61k|                    key = inKey;
 2210|  5.61k|                    do {
 2211|  5.61k|                        res = res_findResource(&(dataEntry->fData), rootRes, &myPath, &key);
  ------------------
  |  |  198|  5.61k|#define res_findResource U_ICU_ENTRY_POINT_RENAME(res_findResource)
  |  |  ------------------
  |  |  |  |  123|  5.61k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.61k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.61k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2212|  5.61k|                        if (RES_GET_TYPE(res) == URES_ALIAS && *myPath) {
  ------------------
  |  |   68|  5.61k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (2212:29): [True: 0, False: 5.61k]
  |  Branch (2212:64): [True: 0, False: 0]
  ------------------
 2213|       |                            /* We hit an alias, but we didn't finish following the path. */
 2214|      0|                            helper = init_resb_result(dataEntry, res, nullptr, -1, resB, helper, status);
 2215|       |                            /*helper = init_resb_result(dataEntry, res, inKey, -1, resB, helper, status);*/
 2216|      0|                            if(helper) {
  ------------------
  |  Branch (2216:32): [True: 0, False: 0]
  ------------------
 2217|      0|                              dataEntry = helper->fData;
 2218|      0|                              rootRes = helper->fRes;
 2219|      0|                              resPath = helper->fResPath;
 2220|      0|                              len = helper->fResPathLen;
 2221|       |
 2222|      0|                            } else {
 2223|      0|                              break;
 2224|      0|                            }
 2225|  5.61k|                        } else if (res == RES_BOGUS) {
  ------------------
  |  |   65|  5.61k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2225:36): [True: 5.17k, False: 440]
  ------------------
 2226|  5.17k|                            break;
 2227|  5.17k|                        }
 2228|  5.61k|                    } while(*myPath); /* Continue until the whole path is consumed */
  ------------------
  |  Branch (2228:29): [True: 4, False: 436]
  ------------------
 2229|  5.61k|                }
 2230|  5.61k|            }
 2231|       |            /*dataEntry = getFallbackData(resB, &key, &res, status);*/
 2232|  2.78k|            if(res != RES_BOGUS) {
  ------------------
  |  |   65|  2.78k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2232:16): [True: 436, False: 2.34k]
  ------------------
 2233|       |              /* check if resB->fResPath gives the right name here */
 2234|    436|                if(uprv_strcmp(dataEntry->fName, uloc_getDefault())==0 || uprv_strcmp(dataEntry->fName, kRootLocaleName)==0) {
  ------------------
  |  |   38|    436|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    436|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                              if(uprv_strcmp(dataEntry->fName, uloc_getDefault())==0 || uprv_strcmp(dataEntry->fName, kRootLocaleName)==0) {
  ------------------
  |  |   38|    436|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    436|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (2234:20): [True: 0, False: 436]
  |  Branch (2234:75): [True: 161, False: 275]
  ------------------
 2235|    161|                    *status = U_USING_DEFAULT_WARNING;
 2236|    275|                } else {
 2237|    275|                    *status = U_USING_FALLBACK_WARNING;
 2238|    275|                }
 2239|       |
 2240|    436|                fillIn = init_resb_result(dataEntry, res, key, -1, resB, fillIn, status);
 2241|    436|                if (resPath != nullptr) {
  ------------------
  |  Branch (2241:21): [True: 229, False: 207]
  ------------------
 2242|    229|                    createPath(origResPath, origResPathLen, resPath, len, inKey, path, status);
 2243|    229|                } else {
 2244|    207|                    const char* separator = nullptr;
 2245|    207|                    if (fillIn->fResPath != nullptr) {
  ------------------
  |  Branch (2245:25): [True: 207, False: 0]
  ------------------
 2246|    207|                        separator = uprv_strchr(fillIn->fResPath, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|    207|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|    207|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2247|    207|                    }
 2248|    207|                    if (separator != nullptr && separator[1] != '\0') {
  ------------------
  |  Branch (2248:25): [True: 207, False: 0]
  |  Branch (2248:49): [True: 0, False: 207]
  ------------------
 2249|      0|                        createPath(origResPath, origResPathLen, fillIn->fResPath,
 2250|      0|                                   static_cast<int32_t>(uprv_strlen(fillIn->fResPath)), inKey, path, status);
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2251|    207|                    } else {
 2252|    207|                        createPath(origResPath, origResPathLen, "", 0, inKey, path, status);
 2253|    207|                    }
 2254|    207|                }
 2255|    436|                ures_freeResPath(fillIn);
 2256|    436|                ures_appendResPath(fillIn, path.data(), path.length(), status);
 2257|    436|                if(fillIn->fResPath[fillIn->fResPathLen-1] != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|    436|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2257:20): [True: 387, False: 49]
  ------------------
 2258|    387|                    ures_appendResPath(fillIn, RES_PATH_SEPARATOR_S, 1, status);
  ------------------
  |  |   61|    387|#define RES_PATH_SEPARATOR_S   "/"
  ------------------
 2259|    387|                }
 2260|  2.34k|            } else {
 2261|  2.34k|                *status = U_MISSING_RESOURCE_ERROR;
 2262|  2.34k|            }
 2263|  2.78k|        } else {
 2264|  2.15k|            fillIn = init_resb_result(resB->fData, res, key, -1, resB, fillIn, status);
 2265|  2.15k|        }
 2266|  4.94k|    } 
 2267|      0|    else {
 2268|      0|        *status = U_RESOURCE_TYPE_MISMATCH;
 2269|      0|    }
 2270|  4.94k|    ures_close(helper);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2271|  4.94k|    return fillIn;
 2272|  4.94k|}
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|  3.63k|                             icu::ResourceSink &sink, UErrorCode &errorCode) {
 2472|  3.63k|    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (2472:9): [True: 0, False: 3.63k]
  ------------------
 2473|  3.63k|    if (path == nullptr) {
  ------------------
  |  Branch (2473:9): [True: 0, False: 3.63k]
  ------------------
 2474|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
 2475|      0|        return;
 2476|      0|    }
 2477|  3.63k|    StackUResourceBundle stackBundle;
 2478|  3.63k|    const UResourceBundle *rb;
 2479|  3.63k|    if (*path == 0) {
  ------------------
  |  Branch (2479:9): [True: 735, False: 2.89k]
  ------------------
 2480|       |        // empty path
 2481|    735|        rb = bundle;
 2482|  2.89k|    } else {
 2483|  2.89k|        rb = ures_getByKeyWithFallback(bundle, path, stackBundle.getAlias(), &errorCode);
  ------------------
  |  | 1662|  2.89k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  2.89k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.89k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.89k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2484|  2.89k|        if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (2484:13): [True: 2.15k, False: 748]
  ------------------
 2485|  2.15k|            return;
 2486|  2.15k|        }
 2487|  2.89k|    }
 2488|       |    // Get all table items with fallback.
 2489|  1.48k|    ResourceDataValue value;
 2490|  1.48k|    getAllItemsWithFallback(rb, value, sink, errorCode);
 2491|  1.48k|}
ures_getByKey_78:
 2493|  30.7k|U_CAPI UResourceBundle* U_EXPORT2 ures_getByKey(const UResourceBundle *resB, const char* inKey, UResourceBundle *fillIn, UErrorCode *status) {
 2494|  30.7k|    Resource res = RES_BOGUS;
  ------------------
  |  |   65|  30.7k|#define RES_BOGUS 0xffffffff
  ------------------
 2495|  30.7k|    UResourceDataEntry *dataEntry = nullptr;
 2496|  30.7k|    const char *key = inKey;
 2497|       |
 2498|  30.7k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (2498:9): [True: 0, False: 30.7k]
  |  Branch (2498:28): [True: 2.96k, False: 27.7k]
  ------------------
 2499|  2.96k|        return fillIn;
 2500|  2.96k|    }
 2501|  27.7k|    if(resB == nullptr) {
  ------------------
  |  Branch (2501:8): [True: 0, False: 27.7k]
  ------------------
 2502|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 2503|      0|        return fillIn;
 2504|      0|    }
 2505|       |
 2506|  27.7k|    int32_t type = RES_GET_TYPE(resB->fRes);
  ------------------
  |  |   68|  27.7k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2507|  27.7k|    if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|  27.7k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 24.7k, False: 3.07k]
  |  |  |  Branch (84:61): [True: 3.07k, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2508|  27.7k|        int32_t t;
 2509|  27.7k|        res = res_getTableItemByKey(&resB->getResData(), resB->fRes, &t, &key);
  ------------------
  |  |  207|  27.7k|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|  27.7k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  27.7k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  27.7k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2510|  27.7k|        if(res == RES_BOGUS) {
  ------------------
  |  |   65|  27.7k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2510:12): [True: 3.92k, False: 23.8k]
  ------------------
 2511|  3.92k|            key = inKey;
 2512|  3.92k|            if(resB->fHasFallback) {
  ------------------
  |  Branch (2512:16): [True: 0, False: 3.92k]
  ------------------
 2513|      0|                dataEntry = getFallbackData(resB, &key, &res, status);
 2514|      0|                if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (2514:20): [True: 0, False: 0]
  ------------------
 2515|       |                    /* check if resB->fResPath gives the right name here */
 2516|      0|                    return init_resb_result(dataEntry, res, key, -1, resB, fillIn, status);
 2517|      0|                } else {
 2518|      0|                    *status = U_MISSING_RESOURCE_ERROR;
 2519|      0|                }
 2520|  3.92k|            } else {
 2521|  3.92k|                *status = U_MISSING_RESOURCE_ERROR;
 2522|  3.92k|            }
 2523|  23.8k|        } else {
 2524|  23.8k|            return init_resb_result(resB->fData, res, key, -1, resB, fillIn, status);
 2525|  23.8k|        }
 2526|  27.7k|    } 
 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|  3.92k|    return fillIn;
 2544|  27.7k|}
ures_getStringByKey_78:
 2546|  4.42k|U_CAPI const char16_t* U_EXPORT2 ures_getStringByKey(const UResourceBundle *resB, const char* inKey, int32_t* len, UErrorCode *status) {
 2547|  4.42k|    Resource res = RES_BOGUS;
  ------------------
  |  |   65|  4.42k|#define RES_BOGUS 0xffffffff
  ------------------
 2548|  4.42k|    UResourceDataEntry *dataEntry = nullptr;
 2549|  4.42k|    const char* key = inKey;
 2550|       |
 2551|  4.42k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (2551:9): [True: 0, False: 4.42k]
  |  Branch (2551:28): [True: 0, False: 4.42k]
  ------------------
 2552|      0|        return nullptr;
 2553|      0|    }
 2554|  4.42k|    if(resB == nullptr) {
  ------------------
  |  Branch (2554:8): [True: 0, False: 4.42k]
  ------------------
 2555|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 2556|      0|        return nullptr;
 2557|      0|    }
 2558|       |
 2559|  4.42k|    int32_t type = RES_GET_TYPE(resB->fRes);
  ------------------
  |  |   68|  4.42k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2560|  4.42k|    if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|  4.42k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 9, False: 4.41k]
  |  |  |  Branch (84:61): [True: 4.41k, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2561|  4.42k|        int32_t t=0;
 2562|       |
 2563|  4.42k|        res = res_getTableItemByKey(&resB->getResData(), resB->fRes, &t, &key);
  ------------------
  |  |  207|  4.42k|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2564|       |
 2565|  4.42k|        if(res == RES_BOGUS) {
  ------------------
  |  |   65|  4.42k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2565:12): [True: 3.00k, False: 1.42k]
  ------------------
 2566|  3.00k|            key = inKey;
 2567|  3.00k|            if(resB->fHasFallback) {
  ------------------
  |  Branch (2567:16): [True: 0, False: 3.00k]
  ------------------
 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|  3.00k|            } else {
 2589|  3.00k|                *status = U_MISSING_RESOURCE_ERROR;
 2590|  3.00k|            }
 2591|  3.00k|        } else {
 2592|  1.42k|            switch (RES_GET_TYPE(res)) {
  ------------------
  |  |   68|  1.42k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2593|      0|            case URES_STRING:
  ------------------
  |  Branch (2593:13): [True: 0, False: 1.42k]
  ------------------
 2594|  1.42k|            case URES_STRING_V2:
  ------------------
  |  Branch (2594:13): [True: 1.42k, False: 0]
  ------------------
 2595|  1.42k|                return res_getString({resB, key}, &resB->getResData(), res, len);
 2596|      0|            case URES_ALIAS:
  ------------------
  |  Branch (2596:13): [True: 0, False: 1.42k]
  ------------------
 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: 1.42k]
  ------------------
 2605|      0|                *status = U_RESOURCE_TYPE_MISMATCH;
 2606|  1.42k|            }
 2607|  1.42k|        }
 2608|  4.42k|    } 
 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|  3.00k|    return nullptr;
 2627|  4.42k|}
ures_open_78:
 2769|    487|ures_open(const char* path, const char* localeID, UErrorCode* status) {
 2770|    487|    return ures_openWithType(nullptr, path, localeID, URES_OPEN_LOCALE_DEFAULT_ROOT, status);
 2771|    487|}
ures_openDirect_78:
 2783|  20.5k|ures_openDirect(const char* path, const char* localeID, UErrorCode* status) {
 2784|  20.5k|    return ures_openWithType(nullptr, path, localeID, URES_OPEN_DIRECT, status);
 2785|  20.5k|}
uresbund.cpp:_ZL21ures_setIsStackObjectP15UResourceBundlea:
  711|  38.1k|static void ures_setIsStackObject( UResourceBundle* resB, UBool state) {
  712|  38.1k|    if(state) {
  ------------------
  |  Branch (712:8): [True: 6.74k, False: 31.4k]
  ------------------
  713|  6.74k|        resB->fMagic1 = 0;
  714|  6.74k|        resB->fMagic2 = 0;
  715|  31.4k|    } else {
  716|  31.4k|        resB->fMagic1 = MAGIC1;
  ------------------
  |  |   30|  31.4k|#define MAGIC1 19700503
  ------------------
  717|  31.4k|        resB->fMagic2 = MAGIC2;
  ------------------
  |  |   31|  31.4k|#define MAGIC2 19641227
  ------------------
  718|  31.4k|    }
  719|  38.1k|}
uresbund.cpp:_ZL16ures_closeBundleP15UResourceBundlea:
 1123|  42.6k|{
 1124|  42.6k|    if(resB != nullptr) {
  ------------------
  |  Branch (1124:8): [True: 37.6k, False: 4.98k]
  ------------------
 1125|  37.6k|        if(resB->fData != nullptr) {
  ------------------
  |  Branch (1125:12): [True: 34.5k, False: 3.08k]
  ------------------
 1126|  34.5k|            entryClose(resB->fData);
 1127|  34.5k|        }
 1128|  37.6k|        if(resB->fVersion != nullptr) {
  ------------------
  |  Branch (1128:12): [True: 0, False: 37.6k]
  ------------------
 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|  37.6k|        ures_freeResPath(resB);
 1132|       |
 1133|  37.6k|        if(ures_isStackObject(resB) == false && freeBundleObj) {
  ------------------
  |  Branch (1133:12): [True: 30.9k, False: 6.74k]
  |  Branch (1133:49): [True: 30.9k, False: 0]
  ------------------
 1134|  30.9k|            uprv_free(resB);
  ------------------
  |  | 1503|  30.9k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  30.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  30.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  30.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1135|  30.9k|        }
 1136|       |#if 0 /*U_DEBUG*/
 1137|       |        else {
 1138|       |            /* poison the data */
 1139|       |            uprv_memset(resB, -1, sizeof(UResourceBundle));
 1140|       |        }
 1141|       |#endif
 1142|  37.6k|    }
 1143|  42.6k|}
uresbund.cpp:_ZL10entryCloseP18UResourceDataEntry:
 1061|  50.1k|static void entryClose(UResourceDataEntry *resB) {
 1062|  50.1k|  Mutex lock(&resbMutex);
 1063|  50.1k|  entryCloseInt(resB);
 1064|  50.1k|}
uresbund.cpp:_ZL13entryCloseIntP18UResourceDataEntry:
 1028|  50.1k|static void entryCloseInt(UResourceDataEntry *resB) {
 1029|  50.1k|    UResourceDataEntry *p = resB;
 1030|       |
 1031|   103k|    while(resB != nullptr) {
  ------------------
  |  Branch (1031:11): [True: 53.6k, False: 50.1k]
  ------------------
 1032|  53.6k|        p = resB->fParent;
 1033|  53.6k|        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|  53.6k|        resB = p;
 1054|  53.6k|    }
 1055|  50.1k|}
uresbund.cpp:_ZL18ures_isStackObjectPK15UResourceBundle:
  721|  37.6k|static UBool ures_isStackObject(const UResourceBundle* resB) {
  722|  37.6k|  return((resB->fMagic1 == MAGIC1 && resB->fMagic2 == MAGIC2)?false:true);
  ------------------
  |  |   30|  75.3k|#define MAGIC1 19700503
  ------------------
                return((resB->fMagic1 == MAGIC1 && resB->fMagic2 == MAGIC2)?false:true);
  ------------------
  |  |   31|  30.9k|#define MAGIC2 19641227
  ------------------
  |  Branch (722:11): [True: 30.9k, False: 6.74k]
  |  Branch (722:38): [True: 30.9k, False: 0]
  ------------------
  723|  37.6k|}
uresbund.cpp:_ZL18ures_appendResPathP15UResourceBundlePKciP10UErrorCode:
 1083|  70.1k|static void ures_appendResPath(UResourceBundle *resB, const char* toAdd, int32_t lenToAdd, UErrorCode *status) {
 1084|  70.1k|    int32_t resPathLenOrig = resB->fResPathLen;
 1085|  70.1k|    if(resB->fResPath == nullptr) {
  ------------------
  |  Branch (1085:8): [True: 34.3k, False: 35.8k]
  ------------------
 1086|  34.3k|        resB->fResPath = resB->fResBuf;
 1087|  34.3k|        *(resB->fResPath) = 0;
 1088|  34.3k|        resB->fResPathLen = 0;
 1089|  34.3k|    } 
 1090|  70.1k|    resB->fResPathLen += lenToAdd;
 1091|  70.1k|    if(RES_BUFSIZE <= resB->fResPathLen+1) {
  ------------------
  |  |   59|  70.1k|#define RES_BUFSIZE 64
  ------------------
  |  Branch (1091:8): [True: 0, False: 70.1k]
  ------------------
 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|  70.1k|    uprv_strcpy(resB->fResPath + resPathLenOrig, toAdd);
  ------------------
  |  |   36|  70.1k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  70.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1111|  70.1k|}
uresbund.cpp:_ZL13entryIncreaseP18UResourceDataEntry:
  304|  29.6k|static void entryIncrease(UResourceDataEntry *entry) {
  305|  29.6k|    Mutex lock(&resbMutex);
  306|  29.6k|    entry->fCountExisting++;
  307|  32.4k|    while(entry->fParent != nullptr) {
  ------------------
  |  Branch (307:11): [True: 2.80k, False: 29.6k]
  ------------------
  308|  2.80k|      entry = entry->fParent;
  309|  2.80k|      entry->fCountExisting++;
  310|  2.80k|    }
  311|  29.6k|}
uresbund.cpp:_ZL23ures_getStringWithAliasPK15UResourceBundlejiPiP10UErrorCode:
 1709|  59.8k|static const char16_t* ures_getStringWithAlias(const UResourceBundle *resB, Resource r, int32_t sIndex, int32_t *len, UErrorCode *status) {
 1710|  59.8k|  if(RES_GET_TYPE(r) == URES_ALIAS) {
  ------------------
  |  |   68|  59.8k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (1710:6): [True: 0, False: 59.8k]
  ------------------
 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|  59.8k|  } else {
 1717|  59.8k|    return res_getString({resB, sIndex}, &resB->getResData(), r, len); 
 1718|  59.8k|  }
 1719|  59.8k|}
uresbund.cpp:_ZN12_GLOBAL__N_116init_resb_resultEP18UResourceDataEntryjPKciPK15UResourceBundlePS4_P10UErrorCode:
 1480|  28.0k|        UResourceBundle *resB, UErrorCode *status) {
 1481|  28.0k|    return init_resb_result(
 1482|  28.0k|        dataEntry, r, key, idx,
 1483|  28.0k|        container->fValidLocaleDataEntry, container->fResPath, 0, resB, status);
 1484|  28.0k|}
uresbund.cpp:_ZN12_GLOBAL__N_116init_resb_resultEP18UResourceDataEntryjPKciS1_S3_iP15UResourceBundleP10UErrorCode:
 1389|  34.1k|        UResourceBundle *resB, UErrorCode *status) {
 1390|       |    // TODO: When an error occurs: Should we return nullptr vs. resB?
 1391|  34.1k|    if(status == nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1391:8): [True: 0, False: 34.1k]
  |  Branch (1391:29): [True: 0, False: 34.1k]
  ------------------
 1392|      0|        return resB;
 1393|      0|    }
 1394|  34.1k|    if (validLocaleDataEntry == nullptr) {
  ------------------
  |  Branch (1394:9): [True: 0, False: 34.1k]
  ------------------
 1395|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 1396|      0|        return nullptr;
 1397|      0|    }
 1398|  34.1k|    if(RES_GET_TYPE(r) == URES_ALIAS) {
  ------------------
  |  |   68|  34.1k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (1398:8): [True: 6.04k, False: 28.0k]
  ------------------
 1399|       |        // This is an alias, need to exchange with real data.
 1400|  6.04k|        if(recursionDepth >= URES_MAX_ALIAS_LEVEL) {
  ------------------
  |  |   33|  6.04k|#define URES_MAX_ALIAS_LEVEL 256
  ------------------
  |  Branch (1400:12): [True: 0, False: 6.04k]
  ------------------
 1401|      0|            *status = U_TOO_MANY_ALIASES_ERROR;
 1402|      0|            return resB;
 1403|      0|        }
 1404|  6.04k|        return getAliasTargetAsResourceBundle(
 1405|  6.04k|            dataEntry->fData, r, key, idx,
 1406|  6.04k|            validLocaleDataEntry, containerResPath, recursionDepth, resB, status);
 1407|  6.04k|    }
 1408|  28.0k|    if(resB == nullptr) {
  ------------------
  |  Branch (1408:8): [True: 10.3k, False: 17.7k]
  ------------------
 1409|  10.3k|        resB = static_cast<UResourceBundle*>(uprv_malloc(sizeof(UResourceBundle)));
  ------------------
  |  | 1524|  10.3k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1410|  10.3k|        if (resB == nullptr) {
  ------------------
  |  Branch (1410:13): [True: 0, False: 10.3k]
  ------------------
 1411|      0|            *status = U_MEMORY_ALLOCATION_ERROR;
 1412|      0|            return nullptr;
 1413|      0|        }
 1414|  10.3k|        ures_setIsStackObject(resB, false);
 1415|  10.3k|        resB->fResPath = nullptr;
 1416|  10.3k|        resB->fResPathLen = 0;
 1417|  17.7k|    } else {
 1418|  17.7k|        if(resB->fData != nullptr) {
  ------------------
  |  Branch (1418:12): [True: 15.6k, False: 2.10k]
  ------------------
 1419|  15.6k|            entryClose(resB->fData);
 1420|  15.6k|        }
 1421|  17.7k|        if(resB->fVersion != nullptr) {
  ------------------
  |  Branch (1421:12): [True: 0, False: 17.7k]
  ------------------
 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|  17.7k|        if(containerResPath != resB->fResPath) {
  ------------------
  |  Branch (1435:12): [True: 10.0k, False: 7.66k]
  ------------------
 1436|  10.0k|            ures_freeResPath(resB);
 1437|  10.0k|        }
 1438|  17.7k|    }
 1439|  28.0k|    resB->fData = dataEntry;
 1440|  28.0k|    entryIncrease(resB->fData);
 1441|  28.0k|    resB->fHasFallback = false;
 1442|  28.0k|    resB->fIsTopLevel = false;
 1443|  28.0k|    resB->fIndex = -1;
 1444|  28.0k|    resB->fKey = key; 
 1445|  28.0k|    resB->fValidLocaleDataEntry = validLocaleDataEntry;
 1446|  28.0k|    if(containerResPath != resB->fResPath) {
  ------------------
  |  Branch (1446:8): [True: 2.42k, False: 25.6k]
  ------------------
 1447|  2.42k|        ures_appendResPath(
 1448|  2.42k|            resB, containerResPath, static_cast<int32_t>(uprv_strlen(containerResPath)), status);
  ------------------
  |  |   37|  2.42k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  2.42k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1449|  2.42k|    }
 1450|  28.0k|    if(key != nullptr) {
  ------------------
  |  Branch (1450:8): [True: 27.9k, False: 152]
  ------------------
 1451|  27.9k|        ures_appendResPath(resB, key, static_cast<int32_t>(uprv_strlen(key)), status);
  ------------------
  |  |   37|  27.9k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  27.9k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1452|  27.9k|        if(resB->fResPath[resB->fResPathLen-1] != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|  27.9k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (1452:12): [True: 26.6k, False: 1.30k]
  ------------------
 1453|  26.6k|            ures_appendResPath(resB, RES_PATH_SEPARATOR_S, 1, status);
  ------------------
  |  |   61|  26.6k|#define RES_PATH_SEPARATOR_S   "/"
  ------------------
 1454|  26.6k|        }
 1455|  27.9k|    } else if(idx >= 0) {
  ------------------
  |  Branch (1455:15): [True: 152, False: 0]
  ------------------
 1456|    152|        char buf[256];
 1457|    152|        int32_t len = T_CString_integerToString(buf, idx, 10);
  ------------------
  |  |   67|    152|#define T_CString_integerToString U_ICU_ENTRY_POINT_RENAME(T_CString_integerToString)
  |  |  ------------------
  |  |  |  |  123|    152|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    152|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    152|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1458|    152|        ures_appendResPath(resB, buf, len, status);
 1459|    152|        if(resB->fResPath[resB->fResPathLen-1] != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|    152|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (1459:12): [True: 152, False: 0]
  ------------------
 1460|    152|            ures_appendResPath(resB, RES_PATH_SEPARATOR_S, 1, status);
  ------------------
  |  |   61|    152|#define RES_PATH_SEPARATOR_S   "/"
  ------------------
 1461|    152|        }
 1462|    152|    }
 1463|       |    /* Make sure that Purify doesn't complain about uninitialized memory copies. */
 1464|  28.0k|    {
 1465|  28.0k|        int32_t usedLen = ((resB->fResBuf == resB->fResPath) ? resB->fResPathLen : 0);
  ------------------
  |  Branch (1465:28): [True: 28.0k, False: 0]
  ------------------
 1466|  28.0k|        uprv_memset(resB->fResBuf + usedLen, 0, sizeof(resB->fResBuf) - usedLen);
  ------------------
  |  |  100|  28.0k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  28.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1467|  28.0k|    }
 1468|       |
 1469|  28.0k|    resB->fVersion = nullptr;
 1470|  28.0k|    resB->fRes = r;
 1471|  28.0k|    resB->fSize = res_countArrayItems(&resB->getResData(), resB->fRes);
  ------------------
  |  |  197|  28.0k|#define res_countArrayItems U_ICU_ENTRY_POINT_RENAME(res_countArrayItems)
  |  |  ------------------
  |  |  |  |  123|  28.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  28.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  28.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1472|  28.0k|    ResourceTracer(resB).trace("get");
 1473|  28.0k|    return resB;
 1474|  28.0k|}
uresbund.cpp:_ZN12_GLOBAL__N_130getAliasTargetAsResourceBundleERK12ResourceDatajPKciP18UResourceDataEntryS4_iP15UResourceBundleP10UErrorCode:
 1166|  6.04k|        UResourceBundle *resB, UErrorCode *status) {
 1167|       |    // TODO: When an error occurs: Should we return nullptr vs. resB?
 1168|  6.04k|    if (U_FAILURE(*status)) { return resB; }
  ------------------
  |  Branch (1168:9): [True: 0, False: 6.04k]
  ------------------
 1169|  6.04k|    U_ASSERT(RES_GET_TYPE(r) == URES_ALIAS);
  ------------------
  |  |   35|  6.04k|#   define U_ASSERT(exp) (void)0
  ------------------
 1170|  6.04k|    int32_t len = 0;
 1171|  6.04k|    const char16_t *alias = res_getAlias(&resData, r, &len);
  ------------------
  |  |  199|  6.04k|#define res_getAlias U_ICU_ENTRY_POINT_RENAME(res_getAlias)
  |  |  ------------------
  |  |  |  |  123|  6.04k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.04k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.04k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1172|  6.04k|    if(len <= 0) {
  ------------------
  |  Branch (1172:8): [True: 0, False: 6.04k]
  ------------------
 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|  6.04k|    CharString chAlias;
 1189|  6.04k|    chAlias.appendInvariantChars(alias, len, *status);
 1190|  6.04k|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (1190:9): [True: 0, False: 6.04k]
  ------------------
 1191|      0|        return nullptr;
 1192|      0|    }
 1193|       |
 1194|       |    // We have an alias, now let's cut it up.
 1195|  6.04k|    const char *path = nullptr, *locale = nullptr, *keyPath = nullptr;
 1196|  6.04k|    if(chAlias[0] == RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|  6.04k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (1196:8): [True: 6.04k, False: 0]
  ------------------
 1197|       |        // There is a path included.
 1198|  6.04k|        char *chAliasData = chAlias.data();
 1199|  6.04k|        char *sep = chAliasData + 1;
 1200|  6.04k|        path = sep;
 1201|  6.04k|        sep = uprv_strchr(sep, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|  6.04k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  6.04k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1202|  6.04k|        if(sep != nullptr) {
  ------------------
  |  Branch (1202:12): [True: 6.04k, False: 0]
  ------------------
 1203|  6.04k|            *sep++ = 0;
 1204|  6.04k|        }
 1205|  6.04k|        if(uprv_strcmp(path, "LOCALE") == 0) {
  ------------------
  |  |   38|  6.04k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  6.04k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1205:12): [True: 0, False: 6.04k]
  ------------------
 1206|       |            // This is an XPath alias, starting with "/LOCALE/".
 1207|       |            // It contains the path to a resource which should be looked up
 1208|       |            // starting in the valid locale.
 1209|       |            // TODO: Can/should we forbid a /LOCALE alias without key path?
 1210|       |            //   It seems weird to alias to the same path, just starting from the valid locale.
 1211|       |            //   That will often yield an infinite loop.
 1212|      0|            keyPath = sep;
 1213|       |            // Read from the valid locale which we already have.
 1214|      0|            path = locale = nullptr;
 1215|  6.04k|        } else {
 1216|  6.04k|            if(uprv_strcmp(path, "ICUDATA") == 0) { /* want ICU data */
  ------------------
  |  |   38|  6.04k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  6.04k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1216:16): [True: 6.04k, False: 0]
  ------------------
 1217|  6.04k|                path = nullptr;
 1218|  6.04k|            }
 1219|  6.04k|            if (sep == nullptr) {
  ------------------
  |  Branch (1219:17): [True: 0, False: 6.04k]
  ------------------
 1220|       |                // TODO: This ends up using the root bundle. Can/should we forbid this?
 1221|      0|                locale = "";
 1222|  6.04k|            } else {
 1223|  6.04k|                locale = sep;
 1224|  6.04k|                sep = uprv_strchr(sep, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|  6.04k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  6.04k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1225|  6.04k|                if(sep != nullptr) {
  ------------------
  |  Branch (1225:20): [True: 6.04k, False: 0]
  ------------------
 1226|  6.04k|                    *sep++ = 0;
 1227|  6.04k|                }
 1228|  6.04k|                keyPath = sep;
 1229|  6.04k|            }
 1230|  6.04k|        }
 1231|  6.04k|    } 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|  6.04k|    LocalUResourceBundlePointer mainRes;
 1246|  6.04k|    UResourceDataEntry *dataEntry;
 1247|  6.04k|    if (locale == nullptr) {
  ------------------
  |  Branch (1247:9): [True: 0, False: 6.04k]
  ------------------
 1248|       |        // alias = /LOCALE/keyPath
 1249|       |        // Read from the valid locale which we already have.
 1250|      0|        dataEntry = validLocaleDataEntry;
 1251|  6.04k|    } else {
 1252|  6.04k|        UErrorCode intStatus = U_ZERO_ERROR;
 1253|       |        // TODO: Shouldn't we use ures_open() for locale data bundles (!noFallback)?
 1254|  6.04k|        mainRes.adoptInstead(ures_openDirect(path, locale, &intStatus));
  ------------------
  |  | 1693|  6.04k|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|  6.04k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.04k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.04k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1255|  6.04k|        if(U_FAILURE(intStatus)) {
  ------------------
  |  Branch (1255:12): [True: 0, False: 6.04k]
  ------------------
 1256|       |            // We failed to open the resource bundle we're aliasing to.
 1257|      0|            *status = intStatus;
 1258|      0|            return resB;
 1259|      0|        }
 1260|  6.04k|        dataEntry = mainRes->fData;
 1261|  6.04k|    }
 1262|       |
 1263|  6.04k|    const char* temp = nullptr;
 1264|  6.04k|    if(keyPath == nullptr) {
  ------------------
  |  Branch (1264:8): [True: 0, False: 6.04k]
  ------------------
 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|  6.04k|    } 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|  6.04k|        CharString pathBuf(keyPath, *status);
 1317|  6.04k|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (1317:13): [True: 0, False: 6.04k]
  ------------------
 1318|      0|            return nullptr;
 1319|      0|        }
 1320|  6.04k|        char *myPath = pathBuf.data();
 1321|  6.04k|        containerResPath = nullptr;
 1322|       |        // Now we have fallback following here.
 1323|  6.04k|        for(;;) {
 1324|  6.04k|            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|  12.0k|            while(*myPath && U_SUCCESS(*status)) {
  ------------------
  |  Branch (1329:19): [True: 6.04k, False: 6.04k]
  |  Branch (1329:30): [True: 6.04k, False: 0]
  ------------------
 1330|  6.04k|                r = res_findResource(&(dataEntry->fData), r, &myPath, &temp);
  ------------------
  |  |  198|  6.04k|#define res_findResource U_ICU_ENTRY_POINT_RENAME(res_findResource)
  |  |  ------------------
  |  |  |  |  123|  6.04k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.04k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.04k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1331|  6.04k|                if(r == RES_BOGUS) {
  ------------------
  |  |   65|  6.04k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1331:20): [True: 0, False: 6.04k]
  ------------------
 1332|       |                    // No resource found, we don't really want to look anymore on this level.
 1333|      0|                    break;
 1334|      0|                }
 1335|       |                // Found a resource, but it might be an indirection.
 1336|  6.04k|                resB = init_resb_result(
 1337|  6.04k|                    dataEntry, r, temp, -1,
 1338|  6.04k|                    validLocaleDataEntry, containerResPath, recursionDepth+1,
 1339|  6.04k|                    resB, status);
 1340|  6.04k|                if (U_FAILURE(*status)) {
  ------------------
  |  Branch (1340:21): [True: 0, False: 6.04k]
  ------------------
 1341|      0|                    break;
 1342|      0|                }
 1343|  6.04k|                if (temp == nullptr || uprv_strcmp(keyPath, temp) != 0) {
  ------------------
  |  |   38|  6.04k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  6.04k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1343:21): [True: 0, False: 6.04k]
  |  Branch (1343:40): [True: 6.04k, 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|  6.04k|                    ures_freeResPath(resB);
 1350|  6.04k|                    ures_appendResPath(resB, keyPath, static_cast<int32_t>(uprv_strlen(keyPath)), status);
  ------------------
  |  |   37|  6.04k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  6.04k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1351|  6.04k|                    if(resB->fResPath[resB->fResPathLen-1] != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|  6.04k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (1351:24): [True: 6.04k, False: 0]
  ------------------
 1352|  6.04k|                        ures_appendResPath(resB, RES_PATH_SEPARATOR_S, 1, status);
  ------------------
  |  |   61|  6.04k|#define RES_PATH_SEPARATOR_S   "/"
  ------------------
 1353|  6.04k|                    }
 1354|  6.04k|                    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (1354:25): [True: 0, False: 6.04k]
  ------------------
 1355|      0|                        break;
 1356|      0|                    }
 1357|  6.04k|                }
 1358|  6.04k|                r = resB->fRes; /* switch to a new resource, possibly a new tree */
 1359|  6.04k|                dataEntry = resB->fData;
 1360|  6.04k|                containerResPath = resB->fResPath;
 1361|  6.04k|            }
 1362|  6.04k|            if (U_FAILURE(*status) || r != RES_BOGUS) {
  ------------------
  |  |   65|  6.04k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1362:17): [True: 0, False: 6.04k]
  |  Branch (1362:39): [True: 6.04k, False: 0]
  ------------------
 1363|  6.04k|                break;
 1364|  6.04k|            }
 1365|       |            // Fall back to the parent bundle, if there is one.
 1366|      0|            dataEntry = dataEntry->fParent;
 1367|      0|            if (dataEntry == nullptr) {
  ------------------
  |  Branch (1367:17): [True: 0, False: 0]
  ------------------
 1368|      0|                *status = U_MISSING_RESOURCE_ERROR;
 1369|      0|                break;
 1370|      0|            }
 1371|       |            // Copy the same keyPath again.
 1372|      0|            myPath = pathBuf.data();
 1373|      0|            uprv_strcpy(myPath, keyPath);
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1374|      0|        }
 1375|  6.04k|    }
 1376|  6.04k|    if(mainRes.getAlias() == resB) {
  ------------------
  |  Branch (1376:8): [True: 0, False: 6.04k]
  ------------------
 1377|      0|        mainRes.orphan();
 1378|      0|    }
 1379|  6.04k|    ResourceTracer(resB).maybeTrace("getalias");
 1380|  6.04k|    return resB;
 1381|  6.04k|}
uresbund.cpp:_ZL21getTableItemByKeyPathPK12ResourceDatajPKc:
 2059|  4.94k|static Resource getTableItemByKeyPath(const ResourceData *pResData, Resource table, const char *key) {
 2060|  4.94k|  Resource resource = table;  /* The current resource */
 2061|  4.94k|  icu::CharString path;
 2062|  4.94k|  UErrorCode errorCode = U_ZERO_ERROR;
 2063|  4.94k|  path.append(key, errorCode);
 2064|  4.94k|  if (U_FAILURE(errorCode)) { return RES_BOGUS; }
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2064:7): [True: 0, False: 4.94k]
  ------------------
 2065|  4.94k|  char *pathPart = path.data();  /* Path from current resource to desired resource */
 2066|  4.94k|  UResType type = static_cast<UResType>(RES_GET_TYPE(resource)); /* the current resource type */
  ------------------
  |  |   68|  4.94k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2067|  10.5k|  while (*pathPart && resource != RES_BOGUS && URES_IS_CONTAINER(type)) {
  ------------------
  |  |   65|  16.4k|#define RES_BOGUS 0xffffffff
  ------------------
                while (*pathPart && resource != RES_BOGUS && URES_IS_CONTAINER(type)) {
  ------------------
  |  |   85|  5.65k|#define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   84|  11.3k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (84:30): [True: 5.51k, False: 148]
  |  |  |  |  |  Branch (84:61): [True: 145, False: 3]
  |  |  |  |  |  Branch (84:94): [True: 0, False: 3]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   83|      3|#define URES_IS_ARRAY(type) ((int32_t)(type)==URES_ARRAY || (int32_t)(type)==URES_ARRAY16)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (83:30): [True: 0, False: 3]
  |  |  |  |  |  Branch (83:61): [True: 0, False: 3]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2067:10): [True: 5.86k, False: 4.73k]
  |  Branch (2067:23): [True: 5.65k, False: 203]
  ------------------
 2068|  5.65k|    char *nextPathPart = uprv_strchr(pathPart, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|  5.65k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  5.65k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2069|  5.65k|    if (nextPathPart != nullptr) {
  ------------------
  |  Branch (2069:9): [True: 2.48k, False: 3.17k]
  ------------------
 2070|  2.48k|      *nextPathPart = 0;  /* Terminating null for this part of path. */
 2071|  2.48k|      nextPathPart++;
 2072|  3.17k|    } else {
 2073|  3.17k|      nextPathPart = uprv_strchr(pathPart, 0);
  ------------------
  |  |   40|  3.17k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  3.17k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2074|  3.17k|    }
 2075|  5.65k|    int32_t t;
 2076|  5.65k|    const char *pathP = pathPart;
 2077|  5.65k|    resource = res_getTableItemByKey(pResData, resource, &t, &pathP);
  ------------------
  |  |  207|  5.65k|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|  5.65k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.65k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.65k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2078|  5.65k|    type = static_cast<UResType>(RES_GET_TYPE(resource));
  ------------------
  |  |   68|  5.65k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2079|  5.65k|    pathPart = nextPathPart; 
 2080|  5.65k|  }
 2081|  4.94k|  if (*pathPart) {
  ------------------
  |  Branch (2081:7): [True: 206, False: 4.73k]
  ------------------
 2082|    206|    return RES_BOGUS;
  ------------------
  |  |   65|    206|#define RES_BOGUS 0xffffffff
  ------------------
 2083|    206|  }
 2084|  4.73k|  return resource;
 2085|  4.94k|}
uresbund.cpp:_ZL10createPathPKciS0_iS0_RN6icu_7810CharStringEP10UErrorCode:
 2093|  6.05k|                       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|  6.05k|    path.clear();
 2107|  6.05k|    const char* key = inKey;
 2108|  6.05k|    if (resPathLen > 0) {
  ------------------
  |  Branch (2108:9): [True: 5.41k, False: 638]
  ------------------
 2109|  5.41k|        path.append(resPath, resPathLen, *status);
 2110|  5.41k|        if (U_SUCCESS(*status)) {
  ------------------
  |  Branch (2110:13): [True: 5.41k, False: 0]
  ------------------
 2111|  5.41k|            const char* resPathLimit = resPath + resPathLen;
 2112|  5.41k|            const char* origResPathLimit = origResPath + origResPathLen;
 2113|  5.41k|            const char* resPathPtr = resPath;
 2114|  5.41k|            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|  10.8k|            while (origResPathPtr < origResPathLimit && resPathPtr < resPathLimit) {
  ------------------
  |  Branch (2118:20): [True: 5.41k, False: 5.41k]
  |  Branch (2118:57): [True: 5.41k, False: 0]
  ------------------
 2119|  64.9k|                while (origResPathPtr < origResPathLimit && *origResPathPtr != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|  64.9k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2119:24): [True: 64.9k, False: 0]
  |  Branch (2119:61): [True: 59.5k, False: 5.41k]
  ------------------
 2120|  59.5k|                    ++origResPathPtr;
 2121|  59.5k|                }
 2122|  5.41k|                if (origResPathPtr < origResPathLimit && *origResPathPtr == RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|  5.41k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2122:21): [True: 5.41k, False: 0]
  |  Branch (2122:58): [True: 5.41k, False: 0]
  ------------------
 2123|  5.41k|                    ++origResPathPtr;
 2124|  5.41k|                }
 2125|  64.9k|                while (resPathPtr < resPathLimit && *resPathPtr != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|  64.9k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2125:24): [True: 64.9k, False: 0]
  |  Branch (2125:53): [True: 59.5k, False: 5.41k]
  ------------------
 2126|  59.5k|                    ++resPathPtr;
 2127|  59.5k|                }
 2128|  5.41k|                if (resPathPtr < resPathLimit && *resPathPtr == RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|  5.41k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2128:21): [True: 5.41k, False: 0]
  |  Branch (2128:50): [True: 5.41k, False: 0]
  ------------------
 2129|  5.41k|                    ++resPathPtr;
 2130|  5.41k|                }
 2131|  5.41k|            }
 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|  5.41k|            while (resPathPtr < resPathLimit && *key != '\0') {
  ------------------
  |  Branch (2135:20): [True: 0, False: 5.41k]
  |  Branch (2135:49): [True: 0, False: 0]
  ------------------
 2136|      0|                while (resPathPtr < resPathLimit && *resPathPtr != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|      0|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2136:24): [True: 0, False: 0]
  |  Branch (2136:53): [True: 0, False: 0]
  ------------------
 2137|      0|                    ++resPathPtr;
 2138|      0|                }
 2139|      0|                if (resPathPtr < resPathLimit && *resPathPtr == RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|      0|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2139:21): [True: 0, False: 0]
  |  Branch (2139:50): [True: 0, False: 0]
  ------------------
 2140|      0|                    ++resPathPtr;
 2141|      0|                }
 2142|      0|                while (*key != '\0' && *key != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|      0|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2142:24): [True: 0, False: 0]
  |  Branch (2142:40): [True: 0, False: 0]
  ------------------
 2143|      0|                    ++key;
 2144|      0|                }
 2145|      0|                if (*key == RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|      0|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2145:21): [True: 0, False: 0]
  ------------------
 2146|      0|                    ++key;
 2147|      0|                }
 2148|      0|            }
 2149|  5.41k|        }
 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|  5.41k|        path.append(key, *status);
 2155|  5.41k|    } else {
 2156|    638|        path.append(inKey, *status);
 2157|    638|    }
 2158|  6.05k|}
uresbund.cpp:_ZL16ures_freeResPathP15UResourceBundle:
 1113|  54.1k|static void ures_freeResPath(UResourceBundle *resB) {
 1114|  54.1k|    if (resB->fResPath && resB->fResPath != resB->fResBuf) {
  ------------------
  |  Branch (1114:9): [True: 33.8k, False: 20.3k]
  |  Branch (1114:27): [True: 0, False: 33.8k]
  ------------------
 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|  54.1k|    resB->fResPath = nullptr;
 1118|  54.1k|    resB->fResPathLen = 0;
 1119|  54.1k|}
uresbund.cpp:_ZN12_GLOBAL__N_123getAllItemsWithFallbackEPK15UResourceBundleRN6icu_7817ResourceDataValueERNS3_12ResourceSinkER10UErrorCode:
 2278|  2.84k|        ResourceSink &sink, UErrorCode &errorCode) {
 2279|  2.84k|    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (2279:9): [True: 7, False: 2.83k]
  ------------------
 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|  2.83k|    value.setData(bundle->getResData());
 2291|  2.83k|    value.setValidLocaleDataEntry(bundle->fValidLocaleDataEntry);
 2292|  2.83k|    UResourceDataEntry *parentEntry = bundle->fData->fParent;
 2293|  2.83k|    UBool hasParent = parentEntry != nullptr && U_SUCCESS(parentEntry->fBogus);
  ------------------
  |  Branch (2293:23): [True: 1.55k, False: 1.28k]
  |  Branch (2293:49): [True: 1.55k, False: 0]
  ------------------
 2294|  2.83k|    value.setResource(bundle->fRes, ResourceTracer(bundle));
 2295|  2.83k|    sink.put(bundle->fKey, value, !hasParent, errorCode);
 2296|  2.83k|    if (hasParent) {
  ------------------
  |  Branch (2296:9): [True: 1.55k, False: 1.28k]
  ------------------
 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|  1.55k|        StackUResourceBundle parentBundle;
 2306|  1.55k|        UResourceBundle &parentRef = parentBundle.ref();
 2307|  1.55k|        parentRef.fData = parentEntry;
 2308|  1.55k|        parentRef.fValidLocaleDataEntry = bundle->fValidLocaleDataEntry;
 2309|  1.55k|        parentRef.fHasFallback = !parentRef.getResData().noFallback;
 2310|  1.55k|        parentRef.fIsTopLevel = true;
 2311|  1.55k|        parentRef.fRes = parentRef.getResData().rootRes;
 2312|  1.55k|        parentRef.fSize = res_countArrayItems(&parentRef.getResData(), parentRef.fRes);
  ------------------
  |  |  197|  1.55k|#define res_countArrayItems U_ICU_ENTRY_POINT_RENAME(res_countArrayItems)
  |  |  ------------------
  |  |  |  |  123|  1.55k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.55k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.55k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2313|  1.55k|        parentRef.fIndex = -1;
 2314|  1.55k|        entryIncrease(parentEntry);
 2315|       |
 2316|       |        // Look up the container item in the parent bundle.
 2317|  1.55k|        StackUResourceBundle containerBundle;
 2318|  1.55k|        const UResourceBundle *rb;
 2319|  1.55k|        UErrorCode pathErrorCode = U_ZERO_ERROR;  // Ignore if parents up to root do not have this path.
 2320|  1.55k|        if (bundle->fResPath == nullptr || *bundle->fResPath == 0) {
  ------------------
  |  Branch (2320:13): [True: 0, False: 1.55k]
  |  Branch (2320:44): [True: 0, False: 1.55k]
  ------------------
 2321|      0|            rb = parentBundle.getAlias();
 2322|  1.55k|        } else {
 2323|  1.55k|            rb = ures_getByKeyWithFallback(parentBundle.getAlias(), bundle->fResPath,
  ------------------
  |  | 1662|  1.55k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  1.55k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.55k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.55k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2324|  1.55k|                                           containerBundle.getAlias(), &pathErrorCode);
 2325|  1.55k|        }
 2326|  1.55k|        if (U_SUCCESS(pathErrorCode)) {
  ------------------
  |  Branch (2326:13): [True: 1.35k, False: 195]
  ------------------
 2327|  1.35k|            getAllItemsWithFallback(rb, value, sink, errorCode);
 2328|  1.35k|        }
 2329|  1.55k|    }
 2330|  2.83k|}
uresbund.cpp:_ZL17ures_openWithTypeP15UResourceBundlePKcS2_12UResOpenTypeP10UErrorCode:
 2712|  21.0k|                  UResOpenType openType, UErrorCode* status) {
 2713|  21.0k|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (2713:8): [True: 0, False: 21.0k]
  ------------------
 2714|      0|        return nullptr;
 2715|      0|    }
 2716|       |
 2717|  21.0k|    UResourceDataEntry *entry;
 2718|  21.0k|    if(openType != URES_OPEN_DIRECT) {
  ------------------
  |  Branch (2718:8): [True: 487, False: 20.5k]
  ------------------
 2719|    487|        if (localeID == nullptr) {
  ------------------
  |  Branch (2719:13): [True: 0, False: 487]
  ------------------
 2720|      0|            localeID = uloc_getDefault();
  ------------------
  |  | 1118|      0|#define uloc_getDefault U_ICU_ENTRY_POINT_RENAME(uloc_getDefault)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2721|      0|        }
 2722|       |        /* first "canonicalize" the locale ID */
 2723|    487|        CharString canonLocaleID = ulocimp_getBaseName(localeID, *status);
  ------------------
  |  | 1199|    487|#define ulocimp_getBaseName U_ICU_ENTRY_POINT_RENAME(ulocimp_getBaseName)
  |  |  ------------------
  |  |  |  |  123|    487|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    487|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    487|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2724|    487|        if(U_FAILURE(*status)) {
  ------------------
  |  Branch (2724:12): [True: 0, False: 487]
  ------------------
 2725|      0|            *status = U_ILLEGAL_ARGUMENT_ERROR;
 2726|      0|            return nullptr;
 2727|      0|        }
 2728|    487|        entry = entryOpen(path, canonLocaleID.data(), openType, status);
 2729|  20.5k|    } else {
 2730|  20.5k|        entry = entryOpenDirect(path, localeID, status);
 2731|  20.5k|    }
 2732|  21.0k|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (2732:8): [True: 0, False: 21.0k]
  ------------------
 2733|      0|        return nullptr;
 2734|      0|    }
 2735|  21.0k|    if(entry == nullptr) {
  ------------------
  |  Branch (2735:8): [True: 0, False: 21.0k]
  ------------------
 2736|      0|        *status = U_MISSING_RESOURCE_ERROR;
 2737|      0|        return nullptr;
 2738|      0|    }
 2739|       |
 2740|  21.0k|    UBool isStackObject;
 2741|  21.0k|    if(r == nullptr) {
  ------------------
  |  Branch (2741:8): [True: 21.0k, False: 0]
  ------------------
 2742|  21.0k|        r = static_cast<UResourceBundle*>(uprv_malloc(sizeof(UResourceBundle)));
  ------------------
  |  | 1524|  21.0k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  21.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  21.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  21.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2743|  21.0k|        if(r == nullptr) {
  ------------------
  |  Branch (2743:12): [True: 0, False: 21.0k]
  ------------------
 2744|      0|            entryClose(entry);
 2745|      0|            *status = U_MEMORY_ALLOCATION_ERROR;
 2746|      0|            return nullptr;
 2747|      0|        }
 2748|  21.0k|        isStackObject = false;
 2749|  21.0k|    } else {  // fill-in
 2750|      0|        isStackObject = ures_isStackObject(r);
 2751|      0|        ures_closeBundle(r, false);
 2752|      0|    }
 2753|  21.0k|    uprv_memset(r, 0, sizeof(UResourceBundle));
  ------------------
  |  |  100|  21.0k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  21.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2754|  21.0k|    ures_setIsStackObject(r, isStackObject);
 2755|       |
 2756|  21.0k|    r->fValidLocaleDataEntry = r->fData = entry;
 2757|  21.0k|    r->fHasFallback = openType != URES_OPEN_DIRECT && !r->getResData().noFallback;
  ------------------
  |  Branch (2757:23): [True: 487, False: 20.5k]
  |  Branch (2757:55): [True: 487, False: 0]
  ------------------
 2758|  21.0k|    r->fIsTopLevel = true;
 2759|  21.0k|    r->fRes = r->getResData().rootRes;
 2760|  21.0k|    r->fSize = res_countArrayItems(&r->getResData(), r->fRes);
  ------------------
  |  |  197|  21.0k|#define res_countArrayItems U_ICU_ENTRY_POINT_RENAME(res_countArrayItems)
  |  |  ------------------
  |  |  |  |  123|  21.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  21.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  21.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2761|  21.0k|    r->fIndex = -1;
 2762|       |
 2763|  21.0k|    ResourceTracer(r).traceOpen();
 2764|       |
 2765|  21.0k|    return r;
 2766|  21.0k|}
uresbund.cpp:_ZL9entryOpenPKcS0_12UResOpenTypeP10UErrorCode:
  812|    487|                                     UResOpenType openType, UErrorCode* status) {
  813|    487|    U_ASSERT(openType != URES_OPEN_DIRECT);
  ------------------
  |  |   35|    487|#   define U_ASSERT(exp) (void)0
  ------------------
  814|    487|    UErrorCode intStatus = U_ZERO_ERROR;
  815|    487|    UResourceDataEntry *r = nullptr;
  816|    487|    UResourceDataEntry *t1 = nullptr;
  817|    487|    UBool isDefault = false;
  818|    487|    UBool isRoot = false;
  819|    487|    UBool hasRealData = false;
  820|    487|    UBool hasChopped = true;
  821|    487|    UBool usingUSRData = U_USE_USRDATA && ( path == nullptr || uprv_strncmp(path,U_ICUDATA_NAME,8) == 0);
  ------------------
  |  |  157|    974|#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|    487|    char name[ULOC_FULLNAME_CAPACITY];
  824|    487|    char usrDataPath[96];
  825|       |
  826|    487|    initCache(status);
  827|       |
  828|    487|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (828:8): [True: 0, False: 487]
  ------------------
  829|      0|        return nullptr;
  830|      0|    }
  831|       |
  832|    487|    uprv_strncpy(name, localeID, sizeof(name) - 1);
  ------------------
  |  |   43|    487|#define uprv_strncpy(dst, src, size) U_STANDARD_CPP_NAMESPACE strncpy(dst, src, size)
  |  |  ------------------
  |  |  |  |  393|    487|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  833|    487|    name[sizeof(name) - 1] = 0;
  834|       |
  835|    487|    if ( usingUSRData ) {
  ------------------
  |  Branch (835:10): [True: 0, False: 487]
  ------------------
  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|    487|    const char *defaultLocale = uloc_getDefault();
  ------------------
  |  | 1118|    487|#define uloc_getDefault U_ICU_ENTRY_POINT_RENAME(uloc_getDefault)
  |  |  ------------------
  |  |  |  |  123|    487|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    487|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    487|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  849|       |
  850|    487|    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|    487|    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|    487|    if (intStatus == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (856:9): [True: 0, False: 487]
  ------------------
  857|      0|        *status = intStatus;
  858|      0|        goto finish;
  859|      0|    }
  860|       |
  861|    487|    if(r != nullptr) { /* if there is one real locale, we can look for parents. */
  ------------------
  |  Branch (861:8): [True: 487, False: 0]
  ------------------
  862|    487|        t1 = r;
  863|    487|        hasRealData = true;
  864|    487|        if ( usingUSRData ) {  /* This code inserts user override data into the inheritance chain */
  ------------------
  |  Branch (864:14): [True: 0, False: 487]
  ------------------
  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|    487|        if ((hasChopped || mayHaveParent(name)) && !isRoot) {
  ------------------
  |  Branch (882:14): [True: 175, False: 312]
  |  Branch (882:28): [True: 4, False: 308]
  |  Branch (882:52): [True: 179, False: 0]
  ------------------
  883|    179|            if (!loadParentsExceptRoot(t1, name, UPRV_LENGTHOF(name), usingUSRData, usrDataPath, status)) {
  ------------------
  |  |   99|    179|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (883:17): [True: 0, False: 179]
  ------------------
  884|      0|                goto finish;
  885|      0|            }
  886|    179|        }
  887|    487|    }
  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|    487|    if(r==nullptr && openType == URES_OPEN_LOCALE_DEFAULT_ROOT && !isDefault && !isRoot) {
  ------------------
  |  Branch (891:8): [True: 0, False: 487]
  |  Branch (891:22): [True: 0, False: 0]
  |  Branch (891:67): [True: 0, False: 0]
  |  Branch (891:81): [True: 0, False: 0]
  ------------------
  892|       |        /* insert default locale */
  893|      0|        uprv_strcpy(name, defaultLocale);
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  894|      0|        r = findFirstExisting(path, name, defaultLocale, openType, &isRoot, &hasChopped, &isDefault, &intStatus);
  895|       |        // If we failed due to out-of-memory, report the failure and exit early.
  896|      0|        if (intStatus == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (896:13): [True: 0, False: 0]
  ------------------
  897|      0|            *status = intStatus;
  898|      0|            goto finish;
  899|      0|        }
  900|      0|        intStatus = U_USING_DEFAULT_WARNING;
  901|      0|        if(r != nullptr) { /* the default locale exists */
  ------------------
  |  Branch (901:12): [True: 0, False: 0]
  ------------------
  902|      0|            t1 = r;
  903|      0|            hasRealData = true;
  904|      0|            isDefault = true;
  905|       |            // TODO: Why not if (usingUSRData) { ... } like in the non-default-locale code path?
  906|      0|            if ((hasChopped || mayHaveParent(name)) && !isRoot) {
  ------------------
  |  Branch (906:18): [True: 0, False: 0]
  |  Branch (906:32): [True: 0, False: 0]
  |  Branch (906:56): [True: 0, False: 0]
  ------------------
  907|      0|                if (!loadParentsExceptRoot(t1, name, UPRV_LENGTHOF(name), usingUSRData, usrDataPath, status)) {
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (907:21): [True: 0, False: 0]
  ------------------
  908|      0|                    goto finish;
  909|      0|                }
  910|      0|            }
  911|      0|        }
  912|      0|    }
  913|       |
  914|       |    /* we could still have r == nullptr at this point - maybe even default locale is not */
  915|       |    /* present */
  916|    487|    if(r == nullptr) {
  ------------------
  |  Branch (916:8): [True: 0, False: 487]
  ------------------
  917|      0|        uprv_strcpy(name, kRootLocaleName);
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  918|      0|        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|      0|        if (intStatus == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (920:13): [True: 0, False: 0]
  ------------------
  921|      0|            *status = intStatus;
  922|      0|            goto finish;
  923|      0|        }
  924|      0|        if(r != nullptr) {
  ------------------
  |  Branch (924:12): [True: 0, False: 0]
  ------------------
  925|      0|            t1 = r;
  926|      0|            intStatus = U_USING_DEFAULT_WARNING;
  927|      0|            hasRealData = true;
  928|      0|        } else { /* we don't even have the root locale */
  929|      0|            *status = U_MISSING_RESOURCE_ERROR;
  930|      0|            goto finish;
  931|      0|        }
  932|    487|    } else if(!isRoot && uprv_strcmp(t1->fName, kRootLocaleName) != 0 &&
  ------------------
  |  |   38|    487|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    487|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (932:15): [True: 487, False: 0]
  |  Branch (932:26): [True: 487, False: 0]
  ------------------
  933|    487|            t1->fParent == nullptr && !r->fData.noFallback) {
  ------------------
  |  Branch (933:13): [True: 217, False: 270]
  |  Branch (933:39): [True: 217, False: 0]
  ------------------
  934|    217|        if (!insertRootBundle(t1, status)) {
  ------------------
  |  Branch (934:13): [True: 0, False: 217]
  ------------------
  935|      0|            goto finish;
  936|      0|        }
  937|    217|        if(!hasRealData) {
  ------------------
  |  Branch (937:12): [True: 0, False: 217]
  ------------------
  938|      0|            r->fBogus = U_USING_DEFAULT_WARNING;
  939|      0|        }
  940|    217|    }
  941|       |
  942|       |    // TODO: Does this ever loop?
  943|    884|    while(r != nullptr && !isRoot && t1->fParent != nullptr) {
  ------------------
  |  Branch (943:11): [True: 884, False: 0]
  |  Branch (943:27): [True: 884, False: 0]
  |  Branch (943:38): [True: 397, False: 487]
  ------------------
  944|    397|        t1->fParent->fCountExisting++;
  945|    397|        t1 = t1->fParent;
  946|    397|    }
  947|       |
  948|    487|finish:
  949|    487|    if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (949:8): [True: 487, False: 0]
  ------------------
  950|    487|        if(intStatus != U_ZERO_ERROR) {
  ------------------
  |  Branch (950:12): [True: 201, False: 286]
  ------------------
  951|    201|            *status = intStatus;  
  952|    201|        }
  953|    487|        return r;
  954|    487|    } else {
  955|      0|        return nullptr;
  956|      0|    }
  957|    487|}
uresbund.cpp:_ZL9initCacheP10UErrorCode:
  483|  21.0k|static void initCache(UErrorCode *status) {
  484|  21.0k|    umtx_initOnce(gCacheInitOnce, &createCache, *status);
  485|  21.0k|}
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|  23.5k|static int32_t U_CALLCONV hashEntry(const UHashTok parm) {
   59|  23.5k|    UResourceDataEntry* b = static_cast<UResourceDataEntry*>(parm.pointer);
   60|  23.5k|    UHashTok namekey, pathkey;
   61|  23.5k|    namekey.pointer = b->fName;
   62|  23.5k|    pathkey.pointer = b->fPath;
   63|  23.5k|    return uhash_hashChars(namekey)+37u*uhash_hashChars(pathkey);
  ------------------
  |  | 1011|  23.5k|#define uhash_hashChars U_ICU_ENTRY_POINT_RENAME(uhash_hashChars)
  |  |  ------------------
  |  |  |  |  123|  23.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  23.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  23.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  return uhash_hashChars(namekey)+37u*uhash_hashChars(pathkey);
  ------------------
  |  | 1011|  23.5k|#define uhash_hashChars U_ICU_ENTRY_POINT_RENAME(uhash_hashChars)
  |  |  ------------------
  |  |  |  |  123|  23.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  23.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  23.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   64|  23.5k|}
uresbund.cpp:_ZL14compareEntries8UElementS_:
   67|  21.4k|static UBool U_CALLCONV compareEntries(const UHashTok p1, const UHashTok p2) {
   68|  21.4k|    UResourceDataEntry* b1 = static_cast<UResourceDataEntry*>(p1.pointer);
   69|  21.4k|    UResourceDataEntry* b2 = static_cast<UResourceDataEntry*>(p2.pointer);
   70|  21.4k|    UHashTok name1, name2, path1, path2;
   71|  21.4k|    name1.pointer = b1->fName;
   72|  21.4k|    name2.pointer = b2->fName;
   73|  21.4k|    path1.pointer = b1->fPath;
   74|  21.4k|    path2.pointer = b2->fPath;
   75|  21.4k|    return uhash_compareChars(name1, name2) && uhash_compareChars(path1, path2);
  ------------------
  |  |  993|  21.4k|#define uhash_compareChars U_ICU_ENTRY_POINT_RENAME(uhash_compareChars)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  return uhash_compareChars(name1, name2) && uhash_compareChars(path1, path2);
  ------------------
  |  |  993|  21.4k|#define uhash_compareChars U_ICU_ENTRY_POINT_RENAME(uhash_compareChars)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (75:12): [True: 21.4k, False: 0]
  |  Branch (75:48): [True: 21.4k, False: 0]
  ------------------
   76|  21.4k|}
uresbund.cpp:_ZL17findFirstExistingPKcPcS0_12UResOpenTypePaS3_S3_P10UErrorCode:
  665|    487|                  UBool *isRoot, UBool *foundParent, UBool *isDefault, UErrorCode* status) {
  666|    487|    UResourceDataEntry *r = nullptr;
  667|    487|    UBool hasRealData = false;
  668|    487|    *foundParent = true; /* we're starting with a fresh name */
  669|    487|    char origName[ULOC_FULLNAME_CAPACITY];
  670|       |
  671|    487|    uprv_strcpy(origName, name);
  ------------------
  |  |   36|    487|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|    487|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  672|  1.35k|    while(*foundParent && !hasRealData) {
  ------------------
  |  Branch (672:11): [True: 1.04k, False: 312]
  |  Branch (672:27): [True: 867, False: 175]
  ------------------
  673|    867|        r = init_entry(name, path, status);
  674|       |        /* Null pointer test */
  675|    867|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (675:13): [True: 0, False: 867]
  ------------------
  676|      0|            return nullptr;
  677|      0|        }
  678|    867|        *isDefault = static_cast<UBool>(uprv_strncmp(name, defaultLocale, uprv_strlen(name)) == 0);
  ------------------
  |  |   44|    867|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|    867|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  679|    867|        hasRealData = static_cast<UBool>(r->fBogus == U_ZERO_ERROR);
  680|    867|        if(!hasRealData) {
  ------------------
  |  Branch (680:12): [True: 380, False: 487]
  ------------------
  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|    380|            r->fCountExisting--;
  687|       |            /*entryCloseInt(r);*/
  688|    380|            r = nullptr;
  689|    380|            *status = U_USING_FALLBACK_WARNING;
  690|    487|        } else {
  691|    487|            uprv_strcpy(name, r->fName); /* this is needed for supporting aliases */
  ------------------
  |  |   36|    487|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|    487|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  692|    487|        }
  693|       |
  694|    867|        *isRoot = static_cast<UBool>(uprv_strcmp(name, kRootLocaleName) == 0);
  ------------------
  |  |   38|    867|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    867|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  695|       |
  696|       |        /*Fallback data stuff*/
  697|    867|        if (!hasRealData) {
  ------------------
  |  Branch (697:13): [True: 380, False: 487]
  ------------------
  698|    380|            *foundParent = getParentLocaleID(name, origName, openType);
  699|    487|        } 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|    487|            *foundParent = chopLocale(name);
  703|    487|        }
  704|    867|        if (*foundParent && *name == '\0') {
  ------------------
  |  Branch (704:13): [True: 555, False: 312]
  |  Branch (704:29): [True: 0, False: 555]
  ------------------
  705|      0|            uprv_strcpy(name, "und");
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  706|      0|        }
  707|    867|    }
  708|    487|    return r;
  709|    487|}
uresbund.cpp:_ZL17getParentLocaleIDPcPKc12UResOpenType:
  211|    380|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|    380|    size_t nameLen = uprv_strlen(name);
  ------------------
  |  |   37|    380|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    380|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  214|    380|    if (!nameLen || name[nameLen - 1] == '_' || hasVariant(name)) {
  ------------------
  |  Branch (214:9): [True: 0, False: 380]
  |  Branch (214:21): [True: 0, False: 380]
  |  Branch (214:49): [True: 1, False: 379]
  ------------------
  215|      1|        return chopLocale(name);
  216|      1|    }
  217|       |    
  218|    379|    UErrorCode err = U_ZERO_ERROR;
  219|    379|    CharString language;
  220|    379|    CharString script;
  221|    379|    CharString region;
  222|    379|    ulocimp_getSubtags(name, &language, &script, &region, nullptr, nullptr, err);
  ------------------
  |  | 1209|    379|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|    379|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    379|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    379|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  223|       |
  224|    379|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (224:9): [True: 0, False: 379]
  ------------------
  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|    379|    if (openType == URES_OPEN_LOCALE_DEFAULT_ROOT) {
  ------------------
  |  Branch (234:9): [True: 379, False: 0]
  ------------------
  235|    379|        const char* parentID = performFallbackLookup(name, parentLocaleChars, parentLocaleChars, parentLocaleTable, UPRV_LENGTHOF(parentLocaleTable));
  ------------------
  |  |   99|    379|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  236|    379|        if (parentID != nullptr) {
  ------------------
  |  Branch (236:13): [True: 0, False: 379]
  ------------------
  237|      0|            uprv_strcpy(name, parentID);
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  238|      0|            return true;
  239|      0|        }
  240|    379|    }
  241|       |
  242|    379|    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|    379|    if (!script.isEmpty() && !region.isEmpty()) {
  ------------------
  |  Branch (246:9): [True: 202, False: 177]
  |  Branch (246:30): [True: 30, False: 172]
  ------------------
  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|     30|        if (getDefaultScript(language, region) == script) {
  ------------------
  |  Branch (250:13): [True: 8, False: 22]
  ------------------
  251|      8|            workingLocale.append(language, err).append("_", err).append(region, err);
  252|     22|        } else {
  253|     22|            workingLocale.append(language, err).append("_", err).append(script, err);
  254|     22|        }
  255|    349|    } else if (!region.isEmpty()) {
  ------------------
  |  Branch (255:16): [True: 177, False: 172]
  ------------------
  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|    177|        UErrorCode err = U_ZERO_ERROR;
  260|    177|        CharString origNameLanguage;
  261|    177|        CharString origNameScript;
  262|    177|        ulocimp_getSubtags(origName, &origNameLanguage, &origNameScript, nullptr, nullptr, nullptr, err);
  ------------------
  |  | 1209|    177|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|    177|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    177|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    177|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  263|    177|        if (!origNameScript.isEmpty()) {
  ------------------
  |  Branch (263:13): [True: 7, False: 170]
  ------------------
  264|      7|            workingLocale.append(language, err).append("_", err).append(origNameScript, err);
  265|    170|        } else {
  266|    170|            workingLocale.append(language, err).append("_", err).append(getDefaultScript(language, region), err);
  267|    170|        }
  268|    177|    } else if (!script.isEmpty()) {
  ------------------
  |  Branch (268:16): [True: 172, False: 0]
  ------------------
  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|    172|        if (openType != URES_OPEN_LOCALE_DEFAULT_ROOT || getDefaultScript(language, CharString()) == script) {
  ------------------
  |  Branch (275:13): [True: 0, False: 172]
  |  Branch (275:13): [True: 172, False: 0]
  |  Branch (275:58): [True: 172, False: 0]
  ------------------
  276|    172|            workingLocale.append(language, err);
  277|    172|        } else {
  278|      0|            return false;
  279|      0|        }
  280|    172|    } else {
  281|       |        // if "name" just contains a language code, return false so the calling code falls back to "root"
  282|      0|        return false;
  283|      0|    }
  284|    379|    if (U_SUCCESS(err) && !workingLocale.isEmpty()) {
  ------------------
  |  Branch (284:9): [True: 379, False: 0]
  |  Branch (284:27): [True: 379, False: 0]
  ------------------
  285|    379|        uprv_strcpy(name, workingLocale.data());
  ------------------
  |  |   36|    379|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|    379|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  286|    379|        return true;
  287|    379|    } else {
  288|      0|        return false;
  289|      0|    }
  290|    379|}
uresbund.cpp:_ZL10hasVariantPKc:
   94|    380|static UBool hasVariant(const char* localeID) {
   95|    380|    UErrorCode err = U_ZERO_ERROR;
   96|    380|    CheckedArrayByteSink sink(nullptr, 0);
   97|    380|    ulocimp_getSubtags(
  ------------------
  |  | 1209|    380|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|    380|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    380|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    380|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   98|    380|            localeID,
   99|    380|            nullptr,
  100|    380|            nullptr,
  101|    380|            nullptr,
  102|    380|            &sink,
  103|    380|            nullptr,
  104|    380|            err);
  105|    380|    return sink.NumberOfBytesAppended() != 0;
  106|    380|}
uresbund.cpp:_ZL21performFallbackLookupPKcS0_S0_PKii:
  118|    948|                                         int32_t lookupTableLength) {
  119|    948|    const int32_t* bottom = lookupTable;
  120|    948|    const int32_t* top = lookupTable + lookupTableLength;
  121|       |
  122|  9.28k|    while (bottom < top) {
  ------------------
  |  Branch (122:12): [True: 8.46k, False: 815]
  ------------------
  123|       |        // Effectively, divide by 2 and round down to an even index
  124|  8.46k|        const int32_t* middle = bottom + (((top - bottom) / 4) * 2);
  125|  8.46k|        const char* entryKey = &(keyStrs[*middle]);
  126|  8.46k|        int32_t strcmpResult = uprv_strcmp(key, entryKey);
  ------------------
  |  |   38|  8.46k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  8.46k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  127|  8.46k|        if (strcmpResult == 0) {
  ------------------
  |  Branch (127:13): [True: 133, False: 8.33k]
  ------------------
  128|    133|            return &(valueStrs[middle[1]]);
  129|  8.33k|        } else if (strcmpResult < 0) {
  ------------------
  |  Branch (129:20): [True: 4.12k, False: 4.21k]
  ------------------
  130|  4.12k|            top = middle;
  131|  4.21k|        } else {
  132|  4.21k|            bottom = middle + 2;
  133|  4.21k|        }
  134|  8.46k|    }
  135|    815|    return nullptr;
  136|    948|}
uresbund.cpp:_ZL16getDefaultScriptRKN6icu_7810CharStringES2_:
  138|    372|static CharString getDefaultScript(const CharString& language, const CharString& region) {
  139|    372|    const char* defaultScript = nullptr;
  140|    372|    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|    372|    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|    372|    if (!region.isEmpty()) {
  ------------------
  |  Branch (147:9): [True: 200, False: 172]
  ------------------
  148|    200|        CharString localeID;
  149|    200|        localeID.append(language, err).append("_", err).append(region, err);
  150|    200|        if (U_FAILURE(err)) {
  ------------------
  |  Branch (150:13): [True: 0, False: 200]
  ------------------
  151|      0|            return result;
  152|      0|        }
  153|    200|        defaultScript = performFallbackLookup(localeID.data(), dsLocaleIDChars, scriptCodeChars, defaultScriptTable, UPRV_LENGTHOF(defaultScriptTable));
  ------------------
  |  |   99|    200|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  154|    200|    }
  155|       |    
  156|       |    // if we didn't find anything, look up just the language in the default script table
  157|    372|    if (defaultScript == nullptr) {
  ------------------
  |  Branch (157:9): [True: 369, False: 3]
  ------------------
  158|    369|        defaultScript = performFallbackLookup(language.data(), dsLocaleIDChars, scriptCodeChars, defaultScriptTable, UPRV_LENGTHOF(defaultScriptTable));
  ------------------
  |  |   99|    369|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  159|    369|    }
  160|       |    
  161|       |    // if either lookup above succeeded, copy the result from "defaultScript" into "result"; otherwise, return "Latn"
  162|    372|    if (defaultScript != nullptr) {
  ------------------
  |  Branch (162:9): [True: 133, False: 239]
  ------------------
  163|    133|        result.clear();
  164|    133|        result.append(defaultScript, err);
  165|    133|    }
  166|    372|    return result;
  167|    372|}
uresbund.cpp:_ZL10chopLocalePc:
   83|    632|static UBool chopLocale(char *name) {
   84|    632|    char *i = uprv_strrchr(name, '_');
  ------------------
  |  |   42|    632|#define uprv_strrchr(s, c) U_STANDARD_CPP_NAMESPACE strrchr(s, c)
  |  |  ------------------
  |  |  |  |  393|    632|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
   85|       |
   86|    632|    if(i != nullptr) {
  ------------------
  |  Branch (86:8): [True: 281, False: 351]
  ------------------
   87|    281|        *i = '\0';
   88|    281|        return true;
   89|    281|    }
   90|       |
   91|    351|    return false;
   92|    632|}
uresbund.cpp:_ZL10init_entryPKcS0_P10UErrorCode:
  514|  22.1k|static UResourceDataEntry *init_entry(const char *localeID, const char *path, UErrorCode *status) {
  515|  22.1k|    UResourceDataEntry *r = nullptr;
  516|  22.1k|    UResourceDataEntry find;
  517|       |    /*int32_t hashValue;*/
  518|  22.1k|    const char *name;
  519|  22.1k|    char aliasName[100] = { 0 };
  520|  22.1k|    int32_t aliasLen = 0;
  521|       |    /*UBool isAlias = false;*/
  522|       |    /*UHashTok hashkey; */
  523|       |
  524|  22.1k|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (524:8): [True: 0, False: 22.1k]
  ------------------
  525|      0|        return nullptr;
  526|      0|    }
  527|       |
  528|       |    /* here we try to deduce the right locale name */
  529|  22.1k|    if(localeID == nullptr) { /* if localeID is nullptr, we're trying to open default locale */
  ------------------
  |  Branch (529:8): [True: 0, False: 22.1k]
  ------------------
  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|  22.1k|    } else if(*localeID == 0) { /* if localeID is "" then we try to open root locale */
  ------------------
  |  Branch (531:15): [True: 0, False: 22.1k]
  ------------------
  532|      0|        name = kRootLocaleName;
  ------------------
  |  |   18|      0|#define kRootLocaleName         "root"
  ------------------
  533|  22.1k|    } else { /* otherwise, we'll open what we're given */
  534|  22.1k|        name = localeID;
  535|  22.1k|    }
  536|       |
  537|  22.1k|    find.fName = const_cast<char*>(name);
  538|  22.1k|    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|  22.1k|    r = static_cast<UResourceDataEntry*>(uhash_get(cache, &find));
  ------------------
  |  | 1007|  22.1k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  22.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  22.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  22.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  546|  22.1k|    if(r == nullptr) {
  ------------------
  |  Branch (546:8): [True: 695, False: 21.4k]
  ------------------
  547|       |        /* if the entry is not yet in the hash table, we'll try to construct a new one */
  548|    695|        r = static_cast<UResourceDataEntry*>(uprv_malloc(sizeof(UResourceDataEntry)));
  ------------------
  |  | 1524|    695|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    695|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    695|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    695|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  549|    695|        if(r == nullptr) {
  ------------------
  |  Branch (549:12): [True: 0, False: 695]
  ------------------
  550|      0|            *status = U_MEMORY_ALLOCATION_ERROR;
  551|      0|            return nullptr;
  552|      0|        }
  553|       |
  554|    695|        uprv_memset(r, 0, sizeof(UResourceDataEntry));
  ------------------
  |  |  100|    695|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|    695|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  555|       |        /*r->fHashKey = hashValue;*/
  556|       |
  557|    695|        setEntryName(r, name, status);
  558|    695|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (558:13): [True: 0, False: 695]
  ------------------
  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|    695|        if(path != nullptr) {
  ------------------
  |  Branch (563:12): [True: 688, False: 7]
  ------------------
  564|    688|            r->fPath = uprv_strdup(path);
  ------------------
  |  | 1541|    688|#define uprv_strdup U_ICU_ENTRY_POINT_RENAME(uprv_strdup)
  |  |  ------------------
  |  |  |  |  123|    688|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    688|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    688|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  565|    688|            if(r->fPath == nullptr) {
  ------------------
  |  Branch (565:16): [True: 0, False: 688]
  ------------------
  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|    688|        }
  571|       |
  572|       |        /* this is the actual loading */
  573|    695|        res_load(&(r->fData), r->fPath, r->fName, status);
  ------------------
  |  |  208|    695|#define res_load U_ICU_ENTRY_POINT_RENAME(res_load)
  |  |  ------------------
  |  |  |  |  123|    695|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    695|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    695|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  574|       |
  575|    695|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (575:13): [True: 324, False: 371]
  ------------------
  576|       |            /* if we failed to load due to an out-of-memory error, exit early. */
  577|    324|            if (*status == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (577:17): [True: 0, False: 324]
  ------------------
  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|    324|            *status = U_USING_FALLBACK_WARNING;
  583|    324|            r->fBogus = U_USING_FALLBACK_WARNING;
  584|    371|        } else { /* if we have a regular entry */
  585|    371|            Resource aliasres;
  586|    371|            if (r->fData.usesPoolBundle) {
  ------------------
  |  Branch (586:17): [True: 362, False: 9]
  ------------------
  587|    362|                r->fPool = getPoolEntry(r->fPath, status);
  588|    362|                if (U_SUCCESS(*status)) {
  ------------------
  |  Branch (588:21): [True: 362, False: 0]
  ------------------
  589|    362|                    const int32_t *poolIndexes = r->fPool->fData.pRoot + 1;
  590|    362|                    if(r->fData.pRoot[1 + URES_INDEX_POOL_CHECKSUM] == poolIndexes[URES_INDEX_POOL_CHECKSUM]) {
  ------------------
  |  Branch (590:24): [True: 362, False: 0]
  ------------------
  591|    362|                        r->fData.poolBundleKeys = reinterpret_cast<const char*>(poolIndexes + (poolIndexes[URES_INDEX_LENGTH] & 0xff));
  592|    362|                        r->fData.poolBundleStrings = r->fPool->fData.p16BitUnits;
  593|    362|                    } else {
  594|      0|                        r->fBogus = *status = U_INVALID_FORMAT_ERROR;
  595|      0|                    }
  596|    362|                } else {
  597|      0|                    r->fBogus = *status;
  598|      0|                }
  599|    362|            }
  600|    371|            if (U_SUCCESS(*status)) {
  ------------------
  |  Branch (600:17): [True: 371, False: 0]
  ------------------
  601|       |                /* handle the alias by trying to get out the %%Alias tag.*/
  602|       |                /* We'll try to get alias string from the bundle */
  603|    371|                aliasres = res_getResource(&(r->fData), "%%ALIAS");
  ------------------
  |  |  204|    371|#define res_getResource U_ICU_ENTRY_POINT_RENAME(res_getResource)
  |  |  ------------------
  |  |  |  |  123|    371|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    371|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    371|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  604|    371|                if (aliasres != RES_BOGUS) {
  ------------------
  |  |   65|    371|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (604:21): [True: 1, False: 370]
  ------------------
  605|       |                    // No tracing: called during initial data loading
  606|      1|                    const char16_t *alias = res_getStringNoTrace(&(r->fData), aliasres, &aliasLen);
  ------------------
  |  |  205|      1|#define res_getStringNoTrace U_ICU_ENTRY_POINT_RENAME(res_getStringNoTrace)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  607|      1|                    if(alias != nullptr && aliasLen > 0) { /* if there is actual alias - unload and load new data */
  ------------------
  |  Branch (607:24): [True: 1, False: 0]
  |  Branch (607:44): [True: 1, False: 0]
  ------------------
  608|      1|                        u_UCharsToChars(alias, aliasName, aliasLen+1);
  ------------------
  |  |  211|      1|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  609|      1|                        r->fAlias = init_entry(aliasName, path, status);
  610|      1|                    }
  611|      1|                }
  612|    371|            }
  613|    371|        }
  614|       |
  615|    695|        {
  616|    695|            UResourceDataEntry *oldR = nullptr;
  617|    695|            if ((oldR = static_cast<UResourceDataEntry*>(uhash_get(cache, r))) == nullptr) { /* if the data is not cached */
  ------------------
  |  | 1007|    695|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|    695|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    695|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    695|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (617:17): [True: 695, False: 0]
  ------------------
  618|       |                /* just insert it in the cache */
  619|    695|                UErrorCode cacheStatus = U_ZERO_ERROR;
  620|    695|                uhash_put(cache, (void *)r, r, &cacheStatus);
  ------------------
  |  | 1032|    695|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|    695|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    695|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    695|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  621|    695|                if (U_FAILURE(cacheStatus)) {
  ------------------
  |  Branch (621:21): [True: 0, False: 695]
  ------------------
  622|      0|                    *status = cacheStatus;
  623|      0|                    free_entry(r);
  624|      0|                    r = nullptr;
  625|      0|                }
  626|    695|            } 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|    695|        }
  633|       |
  634|    695|    }
  635|  22.1k|    if(r != nullptr) {
  ------------------
  |  Branch (635:8): [True: 22.1k, False: 0]
  ------------------
  636|       |        /* return the real bundle */
  637|  22.1k|        while(r->fAlias != nullptr) {
  ------------------
  |  Branch (637:15): [True: 1, False: 22.1k]
  ------------------
  638|      1|            r = r->fAlias;
  639|      1|        }
  640|  22.1k|        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|  22.1k|        if(r->fBogus != U_ZERO_ERROR && U_SUCCESS(*status)) {
  ------------------
  |  Branch (643:12): [True: 380, False: 21.7k]
  |  Branch (643:41): [True: 380, False: 0]
  ------------------
  644|    380|             *status = r->fBogus; /* set the returning status */
  645|    380|        }
  646|  22.1k|    }
  647|  22.1k|    return r;
  648|  22.1k|}
uresbund.cpp:_ZL12setEntryNameP18UResourceDataEntryPKcP10UErrorCode:
  489|    695|static void setEntryName(UResourceDataEntry *res, const char *name, UErrorCode *status) {
  490|    695|    int32_t len = static_cast<int32_t>(uprv_strlen(name));
  ------------------
  |  |   37|    695|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    695|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  491|    695|    if(res->fName != nullptr && res->fName != res->fNameBuffer) {
  ------------------
  |  Branch (491:8): [True: 0, False: 695]
  |  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|    695|    if (len < static_cast<int32_t>(sizeof(res->fNameBuffer))) {
  ------------------
  |  Branch (494:9): [True: 123, False: 572]
  ------------------
  495|    123|        res->fName = res->fNameBuffer;
  496|    123|    }
  497|    572|    else {
  498|    572|        res->fName = static_cast<char*>(uprv_malloc(len + 1));
  ------------------
  |  | 1524|    572|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    572|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    572|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    572|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  499|    572|    }
  500|    695|    if(res->fName == nullptr) {
  ------------------
  |  Branch (500:8): [True: 0, False: 695]
  ------------------
  501|      0|        *status = U_MEMORY_ALLOCATION_ERROR;
  502|    695|    } else {
  503|    695|        uprv_strcpy(res->fName, name);
  ------------------
  |  |   36|    695|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|    695|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  504|    695|    }
  505|    695|}
uresbund.cpp:_ZL12getPoolEntryPKcP10UErrorCode:
  651|    362|getPoolEntry(const char *path, UErrorCode *status) {
  652|    362|    UResourceDataEntry *poolBundle = init_entry(kPoolBundleName, path, status);
  ------------------
  |  |   19|    362|#define kPoolBundleName         "pool"
  ------------------
  653|    362|    if( U_SUCCESS(*status) &&
  ------------------
  |  Branch (653:9): [True: 362, False: 0]
  ------------------
  654|    362|        (poolBundle == nullptr || poolBundle->fBogus != U_ZERO_ERROR || !poolBundle->fData.isPoolBundle)
  ------------------
  |  Branch (654:10): [True: 0, False: 362]
  |  Branch (654:35): [True: 0, False: 362]
  |  Branch (654:73): [True: 0, False: 362]
  ------------------
  655|    362|    ) {
  656|      0|        *status = U_INVALID_FORMAT_ERROR;
  657|      0|    }
  658|    362|    return poolBundle;
  659|    362|}
uresbund.cpp:_ZL13mayHaveParentPc:
  297|    350|static UBool mayHaveParent(char *name) {
  298|    350|    return (name[0] != 0 && uprv_strstr("nb nn",name) != nullptr);
  ------------------
  |  |   41|    350|#define uprv_strstr(s, c) U_STANDARD_CPP_NAMESPACE strstr(s, c)
  |  |  ------------------
  |  |  |  |  393|    350|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (298:13): [True: 350, False: 0]
  |  Branch (298:29): [True: 5, False: 345]
  ------------------
  299|    350|}
uresbund.cpp:_ZL21loadParentsExceptRootRP18UResourceDataEntryPciaS2_P10UErrorCode:
  746|    179|                      UBool usingUSRData, char usrDataPath[], UErrorCode *status) {
  747|    179|    if (U_FAILURE(*status)) { return false; }
  ------------------
  |  Branch (747:9): [True: 0, False: 179]
  ------------------
  748|    179|    UBool checkParent = true;
  749|    322|    while (checkParent && t1->fParent == nullptr && !t1->fData.noFallback &&
  ------------------
  |  Branch (749:12): [True: 285, False: 37]
  |  Branch (749:27): [True: 158, False: 127]
  |  Branch (749:53): [True: 158, False: 0]
  ------------------
  750|    322|            res_getResource(&t1->fData,"%%ParentIsRoot") == RES_BOGUS) {
  ------------------
  |  |  204|    158|#define res_getResource U_ICU_ENTRY_POINT_RENAME(res_getResource)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          res_getResource(&t1->fData,"%%ParentIsRoot") == RES_BOGUS) {
  ------------------
  |  |   65|    158|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (750:13): [True: 158, False: 0]
  ------------------
  751|    158|        Resource parentRes = res_getResource(&t1->fData, "%%Parent");
  ------------------
  |  |  204|    158|#define res_getResource U_ICU_ENTRY_POINT_RENAME(res_getResource)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  752|    158|        if (parentRes != RES_BOGUS) {  // An explicit parent was found.
  ------------------
  |  |   65|    158|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (752:13): [True: 104, False: 54]
  ------------------
  753|    104|            int32_t parentLocaleLen = 0;
  754|       |            // No tracing: called during initial data loading
  755|    104|            const char16_t *parentLocaleName = res_getStringNoTrace(&(t1->fData), parentRes, &parentLocaleLen);
  ------------------
  |  |  205|    104|#define res_getStringNoTrace U_ICU_ENTRY_POINT_RENAME(res_getStringNoTrace)
  |  |  ------------------
  |  |  |  |  123|    104|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    104|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    104|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  756|    104|            if(parentLocaleName != nullptr && 0 < parentLocaleLen && parentLocaleLen < nameCapacity) {
  ------------------
  |  Branch (756:16): [True: 104, False: 0]
  |  Branch (756:47): [True: 104, False: 0]
  |  Branch (756:70): [True: 104, False: 0]
  ------------------
  757|    104|                u_UCharsToChars(parentLocaleName, name, parentLocaleLen + 1);
  ------------------
  |  |  211|    104|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|    104|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    104|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    104|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  758|    104|                if (uprv_strcmp(name, kRootLocaleName) == 0) {
  ------------------
  |  |   38|    104|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    104|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (758:21): [True: 15, False: 89]
  ------------------
  759|     15|                    return true;
  760|     15|                }
  761|    104|            }
  762|    104|        }
  763|       |        // Insert regular parents.
  764|    143|        UErrorCode parentStatus = U_ZERO_ERROR;
  765|    143|        UResourceDataEntry *t2 = init_entry(name, t1->fPath, &parentStatus);
  766|    143|        if (U_FAILURE(parentStatus)) {
  ------------------
  |  Branch (766:13): [True: 0, False: 143]
  ------------------
  767|      0|            *status = parentStatus;
  768|      0|            return false;
  769|      0|        }
  770|    143|        UResourceDataEntry *u2 = nullptr;
  771|    143|        UErrorCode usrStatus = U_ZERO_ERROR;
  772|    143|        if (usingUSRData) {  // This code inserts user override data into the inheritance chain.
  ------------------
  |  Branch (772:13): [True: 0, False: 143]
  ------------------
  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|    143|        if (usingUSRData && U_SUCCESS(usrStatus) && u2->fBogus == U_ZERO_ERROR) {
  ------------------
  |  Branch (781:13): [True: 0, False: 143]
  |  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|    143|        } else {
  785|    143|            t1->fParent = t2;
  786|    143|            if (usingUSRData) {
  ------------------
  |  Branch (786:17): [True: 0, False: 143]
  ------------------
  787|       |                // The USR override data wasn't found, set it to be deleted.
  788|      0|                u2->fCountExisting = 0;
  789|      0|            }
  790|    143|        }
  791|    143|        t1 = t2;
  792|    143|        checkParent = chopLocale(name) || mayHaveParent(name);
  ------------------
  |  Branch (792:23): [True: 105, False: 38]
  |  Branch (792:43): [True: 1, False: 37]
  ------------------
  793|    143|    }
  794|    164|    return true;
  795|    179|}
uresbund.cpp:_ZL16insertRootBundleRP18UResourceDataEntryP10UErrorCode:
  798|    218|insertRootBundle(UResourceDataEntry *&t1, UErrorCode *status) {
  799|    218|    if (U_FAILURE(*status)) { return false; }
  ------------------
  |  Branch (799:9): [True: 0, False: 218]
  ------------------
  800|    218|    UErrorCode parentStatus = U_ZERO_ERROR;
  801|    218|    UResourceDataEntry *t2 = init_entry(kRootLocaleName, t1->fPath, &parentStatus);
  ------------------
  |  |   18|    218|#define kRootLocaleName         "root"
  ------------------
  802|    218|    if (U_FAILURE(parentStatus)) {
  ------------------
  |  Branch (802:9): [True: 0, False: 218]
  ------------------
  803|      0|        *status = parentStatus;
  804|      0|        return false;
  805|      0|    }
  806|    218|    t1->fParent = t2;
  807|    218|    t1 = t2;
  808|    218|    return true;
  809|    218|}
uresbund.cpp:_ZL15entryOpenDirectPKcS0_P10UErrorCode:
  966|  20.5k|entryOpenDirect(const char* path, const char* localeID, UErrorCode* status) {
  967|  20.5k|    initCache(status);
  968|  20.5k|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (968:8): [True: 0, False: 20.5k]
  ------------------
  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|  20.5k|    if (localeID == nullptr) {
  ------------------
  |  Branch (974:9): [True: 0, False: 20.5k]
  ------------------
  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|  20.5k|    } else if (*localeID == 0) {
  ------------------
  |  Branch (976:16): [True: 0, False: 20.5k]
  ------------------
  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|  20.5k|    Mutex lock(&resbMutex);
  982|       |
  983|       |    // findFirstExisting() without fallbacks.
  984|  20.5k|    UResourceDataEntry *r = init_entry(localeID, path, status);
  985|  20.5k|    if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (985:8): [True: 20.5k, False: 0]
  ------------------
  986|  20.5k|        if(r->fBogus != U_ZERO_ERROR) {
  ------------------
  |  Branch (986:12): [True: 0, False: 20.5k]
  ------------------
  987|      0|            r->fCountExisting--;
  988|      0|            r = nullptr;
  989|      0|        }
  990|  20.5k|    } 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|  20.5k|    UResourceDataEntry *t1 = r;
  997|  20.5k|    if(r != nullptr && uprv_strcmp(localeID, kRootLocaleName) != 0 &&  // not root
  ------------------
  |  |   38|  20.5k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  20.5k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (997:8): [True: 20.5k, False: 0]
  |  Branch (997:24): [True: 20.5k, False: 0]
  ------------------
  998|  20.5k|            r->fParent == nullptr && !r->fData.noFallback &&
  ------------------
  |  Branch (998:13): [True: 20.0k, False: 494]
  |  Branch (998:38): [True: 1, False: 20.0k]
  ------------------
  999|  20.5k|            uprv_strlen(localeID) < ULOC_FULLNAME_CAPACITY) {
  ------------------
  |  |   37|      1|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                          uprv_strlen(localeID) < ULOC_FULLNAME_CAPACITY) {
  ------------------
  |  |  264|      1|#define ULOC_FULLNAME_CAPACITY 157
  ------------------
  |  Branch (999:13): [True: 1, False: 0]
  ------------------
 1000|      1|        char name[ULOC_FULLNAME_CAPACITY];
 1001|      1|        uprv_strcpy(name, localeID);
  ------------------
  |  |   36|      1|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1002|      1|        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: 1, False: 0]
  |  Branch (1002:33): [True: 0, False: 0]
  ------------------
 1003|      1|                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|      1|            if(uprv_strcmp(t1->fName, kRootLocaleName) != 0 && t1->fParent == nullptr) {
  ------------------
  |  |   38|      1|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1004:16): [True: 1, False: 0]
  |  Branch (1004:64): [True: 1, False: 0]
  ------------------
 1005|      1|                insertRootBundle(t1, status);
 1006|      1|            }
 1007|      1|        }
 1008|      1|        if(U_FAILURE(*status)) {
  ------------------
  |  Branch (1008:12): [True: 0, False: 1]
  ------------------
 1009|      0|            r = nullptr;
 1010|      0|        }
 1011|      1|    }
 1012|       |
 1013|  20.5k|    if(r != nullptr) {
  ------------------
  |  Branch (1013:8): [True: 20.5k, False: 0]
  ------------------
 1014|       |        // TODO: Does this ever loop?
 1015|  21.0k|        while(t1->fParent != nullptr) {
  ------------------
  |  Branch (1015:15): [True: 494, False: 20.5k]
  ------------------
 1016|    494|            t1->fParent->fCountExisting++;
 1017|    494|            t1 = t1->fParent;
 1018|    494|        }
 1019|  20.5k|    }
 1020|  20.5k|    return r;
 1021|  20.5k|}

res_load_78:
  260|    695|         const char *path, const char *name, UErrorCode *errorCode) {
  261|    695|    UVersionInfo formatVersion;
  262|       |
  263|    695|    uprv_memset(pResData, 0, sizeof(ResourceData));
  ------------------
  |  |  100|    695|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|    695|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  264|       |
  265|       |    /* load the ResourceBundle file */
  266|    695|    pResData->data=udata_openChoice(path, "res", name, isAcceptable, formatVersion, errorCode);
  ------------------
  |  |  894|    695|#define udata_openChoice U_ICU_ENTRY_POINT_RENAME(udata_openChoice)
  |  |  ------------------
  |  |  |  |  123|    695|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    695|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    695|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  267|    695|    if(U_FAILURE(*errorCode)) {
  ------------------
  |  Branch (267:8): [True: 324, False: 371]
  ------------------
  268|    324|        return;
  269|    324|    }
  270|       |
  271|       |    /* get its memory and initialize *pResData */
  272|    371|    res_init(pResData, formatVersion, udata_getMemory(pResData->data), -1, errorCode);
  ------------------
  |  |  891|    371|#define udata_getMemory U_ICU_ENTRY_POINT_RENAME(udata_getMemory)
  |  |  ------------------
  |  |  |  |  123|    371|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    371|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    371|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  273|    371|}
res_getPublicType_78:
  306|     23|res_getPublicType(Resource res) {
  307|     23|    return (UResType)gPublicTypes[RES_GET_TYPE(res)];
  ------------------
  |  |   68|     23|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  308|     23|}
res_getStringNoTrace_78:
  311|  63.3k|res_getStringNoTrace(const ResourceData *pResData, Resource res, int32_t *pLength) {
  312|  63.3k|    const char16_t *p;
  313|  63.3k|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|  63.3k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  314|  63.3k|    int32_t length;
  315|  63.3k|    if(RES_GET_TYPE(res)==URES_STRING_V2) {
  ------------------
  |  |   68|  63.3k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (315:8): [True: 63.3k, False: 0]
  ------------------
  316|  63.3k|        int32_t first;
  317|  63.3k|        if((int32_t)offset<pResData->poolStringIndexLimit) {
  ------------------
  |  Branch (317:12): [True: 870, False: 62.4k]
  ------------------
  318|    870|            p=(const char16_t *)pResData->poolBundleStrings+offset;
  319|  62.4k|        } else {
  320|  62.4k|            p=(const char16_t *)pResData->p16BitUnits+(offset-pResData->poolStringIndexLimit);
  321|  62.4k|        }
  322|  63.3k|        first=*p;
  323|  63.3k|        if(!U16_IS_TRAIL(first)) {
  ------------------
  |  |   67|  63.3k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  ------------------
  |  Branch (323:12): [True: 63.2k, False: 37]
  ------------------
  324|  63.2k|            length=u_strlen(p);
  ------------------
  |  |  393|  63.2k|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|  63.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  63.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  63.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  325|  63.2k|        } else if(first<0xdfef) {
  ------------------
  |  Branch (325:19): [True: 37, False: 0]
  ------------------
  326|     37|            length=first&0x3ff;
  327|     37|            ++p;
  328|     37|        } 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|  63.3k|    } else if(res==offset) /* RES_GET_TYPE(res)==URES_STRING */ {
  ------------------
  |  Branch (335:15): [True: 0, False: 0]
  ------------------
  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|      0|    } else {
  340|      0|        p=nullptr;
  341|      0|        length=0;
  342|      0|    }
  343|  63.3k|    if(pLength) {
  ------------------
  |  Branch (343:8): [True: 60.9k, False: 2.40k]
  ------------------
  344|  60.9k|        *pLength=length;
  345|  60.9k|    }
  346|  63.3k|    return p;
  347|  63.3k|}
res_getAlias_78:
  420|  6.04k|res_getAlias(const ResourceData *pResData, Resource res, int32_t *pLength) {
  421|  6.04k|    const char16_t *p;
  422|  6.04k|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|  6.04k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  423|  6.04k|    int32_t length;
  424|  6.04k|    if(RES_GET_TYPE(res)==URES_ALIAS) {
  ------------------
  |  |   68|  6.04k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (424:8): [True: 6.04k, False: 0]
  ------------------
  425|  6.04k|        const int32_t *p32= offset==0 ? &gEmptyString.length : pResData->pRoot+offset;
  ------------------
  |  Branch (425:29): [True: 0, False: 6.04k]
  ------------------
  426|  6.04k|        length=*p32++;
  427|  6.04k|        p=(const char16_t *)p32;
  428|  6.04k|    } else {
  429|      0|        p=nullptr;
  430|      0|        length=0;
  431|      0|    }
  432|  6.04k|    if(pLength) {
  ------------------
  |  Branch (432:8): [True: 6.04k, False: 0]
  ------------------
  433|  6.04k|        *pLength=length;
  434|  6.04k|    }
  435|  6.04k|    return p;
  436|  6.04k|}
res_getBinaryNoTrace_78:
  439|      3|res_getBinaryNoTrace(const ResourceData *pResData, Resource res, int32_t *pLength) {
  440|      3|    const uint8_t *p;
  441|      3|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|      3|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  442|      3|    int32_t length;
  443|      3|    if(RES_GET_TYPE(res)==URES_BINARY) {
  ------------------
  |  |   68|      3|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (443:8): [True: 3, False: 0]
  ------------------
  444|      3|        const int32_t *p32= offset==0 ? (const int32_t*)&gEmpty32 : pResData->pRoot+offset;
  ------------------
  |  Branch (444:29): [True: 0, False: 3]
  ------------------
  445|      3|        length=*p32++;
  446|      3|        p=(const uint8_t *)p32;
  447|      3|    } else {
  448|      0|        p=nullptr;
  449|      0|        length=0;
  450|      0|    }
  451|      3|    if(pLength) {
  ------------------
  |  Branch (451:8): [True: 3, False: 0]
  ------------------
  452|      3|        *pLength=length;
  453|      3|    }
  454|      3|    return p;
  455|      3|}
res_getIntVectorNoTrace_78:
  459|      4|res_getIntVectorNoTrace(const ResourceData *pResData, Resource res, int32_t *pLength) {
  460|      4|    const int32_t *p;
  461|      4|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|      4|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  462|      4|    int32_t length;
  463|      4|    if(RES_GET_TYPE(res)==URES_INT_VECTOR) {
  ------------------
  |  |   68|      4|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (463:8): [True: 4, False: 0]
  ------------------
  464|      4|        p= offset==0 ? (const int32_t *)&gEmpty32 : pResData->pRoot+offset;
  ------------------
  |  Branch (464:12): [True: 0, False: 4]
  ------------------
  465|      4|        length=*p++;
  466|      4|    } else {
  467|      0|        p=nullptr;
  468|      0|        length=0;
  469|      0|    }
  470|      4|    if(pLength) {
  ------------------
  |  Branch (470:8): [True: 4, False: 0]
  ------------------
  471|      4|        *pLength=length;
  472|      4|    }
  473|      4|    return p;
  474|      4|}
res_countArrayItems_78:
  477|  50.6k|res_countArrayItems(const ResourceData *pResData, Resource res) {
  478|  50.6k|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|  50.6k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  479|  50.6k|    switch(RES_GET_TYPE(res)) {
  ------------------
  |  |   68|  50.6k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  480|      0|    case URES_STRING:
  ------------------
  |  Branch (480:5): [True: 0, False: 50.6k]
  ------------------
  481|    156|    case URES_STRING_V2:
  ------------------
  |  Branch (481:5): [True: 156, False: 50.5k]
  ------------------
  482|    156|    case URES_BINARY:
  ------------------
  |  Branch (482:5): [True: 0, False: 50.6k]
  ------------------
  483|    156|    case URES_ALIAS:
  ------------------
  |  Branch (483:5): [True: 0, False: 50.6k]
  ------------------
  484|    178|    case URES_INT:
  ------------------
  |  Branch (484:5): [True: 22, False: 50.6k]
  ------------------
  485|    179|    case URES_INT_VECTOR:
  ------------------
  |  Branch (485:5): [True: 1, False: 50.6k]
  ------------------
  486|    179|        return 1;
  487|     87|    case URES_ARRAY:
  ------------------
  |  Branch (487:5): [True: 87, False: 50.5k]
  ------------------
  488|     87|    case URES_TABLE32:
  ------------------
  |  Branch (488:5): [True: 0, False: 50.6k]
  ------------------
  489|     87|        return offset==0 ? 0 : *(pResData->pRoot+offset);
  ------------------
  |  Branch (489:16): [True: 0, False: 87]
  ------------------
  490|  35.5k|    case URES_TABLE:
  ------------------
  |  Branch (490:5): [True: 35.5k, False: 15.1k]
  ------------------
  491|  35.5k|        return offset==0 ? 0 : *((const uint16_t *)(pResData->pRoot+offset));
  ------------------
  |  Branch (491:16): [True: 103, False: 35.4k]
  ------------------
  492|  6.03k|    case URES_ARRAY16:
  ------------------
  |  Branch (492:5): [True: 6.03k, False: 44.6k]
  ------------------
  493|  14.9k|    case URES_TABLE16:
  ------------------
  |  Branch (493:5): [True: 8.87k, False: 41.8k]
  ------------------
  494|  14.9k|        return pResData->p16BitUnits[offset];
  495|      0|    default:
  ------------------
  |  Branch (495:5): [True: 0, False: 50.6k]
  ------------------
  496|      0|        return 0;
  497|  50.6k|    }
  498|  50.6k|}
_ZN6icu_7817ResourceDataValueD2Ev:
  502|  1.48k|ResourceDataValue::~ResourceDataValue() {}
_ZNK6icu_7817ResourceDataValue9getStringERiR10UErrorCode:
  508|  1.93k|const char16_t *ResourceDataValue::getString(int32_t &length, UErrorCode &errorCode) const {
  509|  1.93k|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (509:8): [True: 0, False: 1.93k]
  ------------------
  510|      0|        return nullptr;
  511|      0|    }
  512|  1.93k|    const char16_t *s = res_getString(fTraceInfo, &getData(), res, &length);
  513|  1.93k|    if(s == nullptr) {
  ------------------
  |  Branch (513:8): [True: 0, False: 1.93k]
  ------------------
  514|      0|        errorCode = U_RESOURCE_TYPE_MISMATCH;
  515|      0|    }
  516|  1.93k|    return s;
  517|  1.93k|}
_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|      4|ResourceArray ResourceDataValue::getArray(UErrorCode &errorCode) const {
  573|      4|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (573:8): [True: 0, False: 4]
  ------------------
  574|      0|        return {};
  575|      0|    }
  576|      4|    const uint16_t *items16 = nullptr;
  577|      4|    const Resource *items32 = nullptr;
  578|      4|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|      4|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  579|      4|    int32_t length = 0;
  580|      4|    switch(RES_GET_TYPE(res)) {
  ------------------
  |  |   68|      4|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  581|      0|    case URES_ARRAY:
  ------------------
  |  Branch (581:5): [True: 0, False: 4]
  ------------------
  582|      0|        if (offset!=0) {  // empty if offset==0
  ------------------
  |  Branch (582:13): [True: 0, False: 0]
  ------------------
  583|      0|            items32 = reinterpret_cast<const Resource*>(getData().pRoot) + offset;
  584|      0|            length = *items32++;
  585|      0|        }
  586|      0|        break;
  587|      4|    case URES_ARRAY16:
  ------------------
  |  Branch (587:5): [True: 4, False: 0]
  ------------------
  588|      4|        items16 = getData().p16BitUnits+offset;
  589|      4|        length = *items16++;
  590|      4|        break;
  591|      0|    default:
  ------------------
  |  Branch (591:5): [True: 0, False: 4]
  ------------------
  592|      0|        errorCode = U_RESOURCE_TYPE_MISMATCH;
  593|      0|        return {};
  594|      4|    }
  595|      4|    return ResourceArray(items16, items32, length, fTraceInfo);
  596|      4|}
_ZNK6icu_7817ResourceDataValue8getTableER10UErrorCode:
  598|  2.83k|ResourceTable ResourceDataValue::getTable(UErrorCode &errorCode) const {
  599|  2.83k|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (599:8): [True: 0, False: 2.83k]
  ------------------
  600|      0|        return {};
  601|      0|    }
  602|  2.83k|    const uint16_t *keys16 = nullptr;
  603|  2.83k|    const int32_t *keys32 = nullptr;
  604|  2.83k|    const uint16_t *items16 = nullptr;
  605|  2.83k|    const Resource *items32 = nullptr;
  606|  2.83k|    uint32_t offset = RES_GET_OFFSET(res);
  ------------------
  |  |   69|  2.83k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  607|  2.83k|    int32_t length = 0;
  608|  2.83k|    switch(RES_GET_TYPE(res)) {
  ------------------
  |  |   68|  2.83k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  609|  1.56k|    case URES_TABLE:
  ------------------
  |  Branch (609:5): [True: 1.56k, False: 1.27k]
  ------------------
  610|  1.56k|        if (offset != 0) {  // empty if offset==0
  ------------------
  |  Branch (610:13): [True: 1.56k, False: 0]
  ------------------
  611|  1.56k|            keys16 = reinterpret_cast<const uint16_t*>(getData().pRoot + offset);
  612|  1.56k|            length = *keys16++;
  613|  1.56k|            items32 = reinterpret_cast<const Resource*>(keys16 + length + (~length & 1));
  614|  1.56k|        }
  615|  1.56k|        break;
  616|  1.25k|    case URES_TABLE16:
  ------------------
  |  Branch (616:5): [True: 1.25k, False: 1.57k]
  ------------------
  617|  1.25k|        keys16 = getData().p16BitUnits+offset;
  618|  1.25k|        length = *keys16++;
  619|  1.25k|        items16 = keys16 + length;
  620|  1.25k|        break;
  621|      0|    case URES_TABLE32:
  ------------------
  |  Branch (621:5): [True: 0, False: 2.83k]
  ------------------
  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|     19|    default:
  ------------------
  |  Branch (628:5): [True: 19, False: 2.81k]
  ------------------
  629|     19|        errorCode = U_RESOURCE_TYPE_MISMATCH;
  630|     19|        return {};
  631|  2.83k|    }
  632|  2.81k|    return ResourceTable(keys16, keys32, items16, items32, length, fTraceInfo);
  633|  2.83k|}
_ZNK6icu_7817ResourceDataValue21isNoInheritanceMarkerEv:
  635|   263k|UBool ResourceDataValue::isNoInheritanceMarker() const {
  636|   263k|    return ::isNoInheritanceMarker(&getData(), res);
  637|   263k|}
res_getTableItemByKey_78:
  713|  61.6k|                      int32_t *indexR, const char **key) {
  714|  61.6k|    uint32_t offset=RES_GET_OFFSET(table);
  ------------------
  |  |   69|  61.6k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  715|  61.6k|    int32_t length;
  716|  61.6k|    int32_t idx;
  717|  61.6k|    if(key == nullptr || *key == nullptr) {
  ------------------
  |  Branch (717:8): [True: 0, False: 61.6k]
  |  Branch (717:26): [True: 0, False: 61.6k]
  ------------------
  718|      0|        return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  719|      0|    }
  720|  61.6k|    switch(RES_GET_TYPE(table)) {
  ------------------
  |  |   68|  61.6k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  721|  53.7k|    case URES_TABLE: {
  ------------------
  |  Branch (721:5): [True: 53.7k, False: 7.87k]
  ------------------
  722|  53.7k|        if (offset!=0) { /* empty if offset==0 */
  ------------------
  |  Branch (722:13): [True: 53.5k, False: 241]
  ------------------
  723|  53.5k|            const uint16_t *p= (const uint16_t *)(pResData->pRoot+offset);
  724|  53.5k|            length=*p++;
  725|  53.5k|            *indexR=idx=_res_findTableItem(pResData, p, length, *key, key);
  726|  53.5k|            if(idx>=0) {
  ------------------
  |  Branch (726:16): [True: 44.5k, False: 8.97k]
  ------------------
  727|  44.5k|                const Resource *p32=(const Resource *)(p+length+(~length&1));
  728|  44.5k|                return p32[idx];
  729|  44.5k|            }
  730|  53.5k|        }
  731|  9.21k|        break;
  732|  53.7k|    }
  733|  9.21k|    case URES_TABLE16: {
  ------------------
  |  Branch (733:5): [True: 7.87k, False: 53.7k]
  ------------------
  734|  7.87k|        const uint16_t *p=pResData->p16BitUnits+offset;
  735|  7.87k|        length=*p++;
  736|  7.87k|        *indexR=idx=_res_findTableItem(pResData, p, length, *key, key);
  737|  7.87k|        if(idx>=0) {
  ------------------
  |  Branch (737:12): [True: 1.62k, False: 6.24k]
  ------------------
  738|  1.62k|            return makeResourceFrom16(pResData, p[length+idx]);
  739|  1.62k|        }
  740|  6.24k|        break;
  741|  7.87k|    }
  742|  6.24k|    case URES_TABLE32: {
  ------------------
  |  Branch (742:5): [True: 0, False: 61.6k]
  ------------------
  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: 61.6k]
  ------------------
  754|      0|        break;
  755|  61.6k|    }
  756|  15.4k|    return RES_BOGUS;
  ------------------
  |  |   65|  15.4k|#define RES_BOGUS 0xffffffff
  ------------------
  757|  61.6k|}
res_getTableItemByIndex_78:
  761|  1.48k|                        int32_t indexR, const char **key) {
  762|  1.48k|    uint32_t offset=RES_GET_OFFSET(table);
  ------------------
  |  |   69|  1.48k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  763|  1.48k|    int32_t length;
  764|  1.48k|    if (indexR < 0) {
  ------------------
  |  Branch (764:9): [True: 0, False: 1.48k]
  ------------------
  765|      0|        return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  766|      0|    }
  767|  1.48k|    switch(RES_GET_TYPE(table)) {
  ------------------
  |  |   68|  1.48k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  768|  1.48k|    case URES_TABLE: {
  ------------------
  |  Branch (768:5): [True: 1.48k, False: 0]
  ------------------
  769|  1.48k|        if (offset != 0) { /* empty if offset==0 */
  ------------------
  |  Branch (769:13): [True: 1.48k, False: 0]
  ------------------
  770|  1.48k|            const uint16_t *p= (const uint16_t *)(pResData->pRoot+offset);
  771|  1.48k|            length=*p++;
  772|  1.48k|            if(indexR<length) {
  ------------------
  |  Branch (772:16): [True: 1.48k, False: 0]
  ------------------
  773|  1.48k|                const Resource *p32=(const Resource *)(p+length+(~length&1));
  774|  1.48k|                if(key!=nullptr) {
  ------------------
  |  Branch (774:20): [True: 1.48k, False: 0]
  ------------------
  775|  1.48k|                    *key=RES_GET_KEY16(pResData, p[indexR]);
  ------------------
  |  |   44|  1.48k|    ((keyOffset)<(pResData)->localKeyLimit ? \
  |  |  ------------------
  |  |  |  Branch (44:6): [True: 1.48k, False: 0]
  |  |  ------------------
  |  |   45|  1.48k|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   46|  1.48k|        (pResData)->poolBundleKeys+(keyOffset)-(pResData)->localKeyLimit)
  ------------------
  776|  1.48k|                }
  777|  1.48k|                return p32[indexR];
  778|  1.48k|            }
  779|  1.48k|        }
  780|      0|        break;
  781|  1.48k|    }
  782|      0|    case URES_TABLE16: {
  ------------------
  |  Branch (782:5): [True: 0, False: 1.48k]
  ------------------
  783|      0|        const uint16_t *p=pResData->p16BitUnits+offset;
  784|      0|        length=*p++;
  785|      0|        if(indexR<length) {
  ------------------
  |  Branch (785:12): [True: 0, False: 0]
  ------------------
  786|      0|            if(key!=nullptr) {
  ------------------
  |  Branch (786:16): [True: 0, False: 0]
  ------------------
  787|      0|                *key=RES_GET_KEY16(pResData, p[indexR]);
  ------------------
  |  |   44|      0|    ((keyOffset)<(pResData)->localKeyLimit ? \
  |  |  ------------------
  |  |  |  Branch (44:6): [True: 0, False: 0]
  |  |  ------------------
  |  |   45|      0|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   46|      0|        (pResData)->poolBundleKeys+(keyOffset)-(pResData)->localKeyLimit)
  ------------------
  788|      0|            }
  789|      0|            return makeResourceFrom16(pResData, p[length+indexR]);
  790|      0|        }
  791|      0|        break;
  792|      0|    }
  793|      0|    case URES_TABLE32: {
  ------------------
  |  Branch (793:5): [True: 0, False: 1.48k]
  ------------------
  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: 1.48k]
  ------------------
  807|      0|        break;
  808|  1.48k|    }
  809|      0|    return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  810|  1.48k|}
res_getResource_78:
  813|    687|res_getResource(const ResourceData *pResData, const char *key) {
  814|    687|    const char *realKey=key;
  815|    687|    int32_t idx;
  816|    687|    return res_getTableItemByKey(pResData, pResData->rootRes, &idx, &realKey);
  ------------------
  |  |  207|    687|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|    687|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    687|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    687|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  817|    687|}
_ZNK6icu_7813ResourceTable14getKeyAndValueEiRPKcRNS_13ResourceValueE:
  821|   266k|                                         const char *&key, icu::ResourceValue &value) const {
  822|   266k|    if(0 <= i && i < length) {
  ------------------
  |  Branch (822:8): [True: 266k, False: 0]
  |  Branch (822:18): [True: 264k, False: 2.81k]
  ------------------
  823|   264k|        icu::ResourceDataValue &rdValue = static_cast<icu::ResourceDataValue &>(value);
  824|   264k|        if (keys16 != nullptr) {
  ------------------
  |  Branch (824:13): [True: 264k, False: 0]
  ------------------
  825|   264k|            key = RES_GET_KEY16(&rdValue.getData(), keys16[i]);
  ------------------
  |  |   44|   264k|    ((keyOffset)<(pResData)->localKeyLimit ? \
  |  |  ------------------
  |  |  |  Branch (44:6): [True: 941, False: 263k]
  |  |  ------------------
  |  |   45|   264k|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   46|   264k|        (pResData)->poolBundleKeys+(keyOffset)-(pResData)->localKeyLimit)
  ------------------
  826|   264k|        } 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|   264k|        Resource res;
  830|   264k|        if (items16 != nullptr) {
  ------------------
  |  Branch (830:13): [True: 2.60k, False: 261k]
  ------------------
  831|  2.60k|            res = makeResourceFrom16(&rdValue.getData(), items16[i]);
  832|   261k|        } else {
  833|   261k|            res = items32[i];
  834|   261k|        }
  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|   264k|        rdValue.setResource(res, ResourceTracer(fTraceInfo, key));
  840|   264k|        return true;
  841|   264k|    }
  842|  2.81k|    return false;
  843|   266k|}
_ZNK6icu_7813ResourceTable9findValueEPKcRNS_13ResourceValueE:
  845|     10|UBool icu::ResourceTable::findValue(const char *key, ResourceValue &value) const {
  846|     10|    icu::ResourceDataValue &rdValue = static_cast<icu::ResourceDataValue &>(value);
  847|     10|    const char *realKey = nullptr;
  848|     10|    int32_t i;
  849|     10|    if (keys16 != nullptr) {
  ------------------
  |  Branch (849:9): [True: 10, False: 0]
  ------------------
  850|     10|        i = _res_findTableItem(&rdValue.getData(), keys16, length, key, &realKey);
  851|     10|    } else {
  852|      0|        i = _res_findTable32Item(&rdValue.getData(), keys32, length, key, &realKey);
  853|      0|    }
  854|     10|    if (i >= 0) {
  ------------------
  |  Branch (854:9): [True: 10, False: 0]
  ------------------
  855|     10|        Resource res;
  856|     10|        if (items16 != nullptr) {
  ------------------
  |  Branch (856:13): [True: 0, False: 10]
  ------------------
  857|      0|            res = makeResourceFrom16(&rdValue.getData(), items16[i]);
  858|     10|        } else {
  859|     10|            res = items32[i];
  860|     10|        }
  861|       |        // Same note about lifetime as in getKeyAndValue().
  862|     10|        rdValue.setResource(res, ResourceTracer(fTraceInfo, key));
  863|     10|        return true;
  864|     10|    }
  865|      0|    return false;
  866|     10|}
res_getArrayItem_78:
  869|  60.0k|res_getArrayItem(const ResourceData *pResData, Resource array, int32_t indexR) {
  870|  60.0k|    uint32_t offset=RES_GET_OFFSET(array);
  ------------------
  |  |   69|  60.0k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  871|  60.0k|    if (indexR < 0) {
  ------------------
  |  Branch (871:9): [True: 0, False: 60.0k]
  ------------------
  872|      0|        return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  873|      0|    }
  874|  60.0k|    switch(RES_GET_TYPE(array)) {
  ------------------
  |  |   68|  60.0k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  875|    152|    case URES_ARRAY: {
  ------------------
  |  Branch (875:5): [True: 152, False: 59.8k]
  ------------------
  876|    152|        if (offset!=0) { /* empty if offset==0 */
  ------------------
  |  Branch (876:13): [True: 152, False: 0]
  ------------------
  877|    152|            const int32_t *p= pResData->pRoot+offset;
  878|    152|            if(indexR<*p) {
  ------------------
  |  Branch (878:16): [True: 152, False: 0]
  ------------------
  879|    152|                return (Resource)p[1+indexR];
  880|    152|            }
  881|    152|        }
  882|      0|        break;
  883|    152|    }
  884|  59.8k|    case URES_ARRAY16: {
  ------------------
  |  Branch (884:5): [True: 59.8k, False: 152]
  ------------------
  885|  59.8k|        const uint16_t *p=pResData->p16BitUnits+offset;
  886|  59.8k|        if(indexR<*p) {
  ------------------
  |  Branch (886:12): [True: 59.8k, False: 0]
  ------------------
  887|  59.8k|            return makeResourceFrom16(pResData, p[1+indexR]);
  888|  59.8k|        }
  889|      0|        break;
  890|  59.8k|    }
  891|      0|    default:
  ------------------
  |  Branch (891:5): [True: 0, False: 60.0k]
  ------------------
  892|      0|        break;
  893|  60.0k|    }
  894|      0|    return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  895|  60.0k|}
_ZNK6icu_7813ResourceArray19internalGetResourceEPK12ResourceDatai:
  897|    597|uint32_t icu::ResourceArray::internalGetResource(const ResourceData *pResData, int32_t i) const {
  898|    597|    if (items16 != nullptr) {
  ------------------
  |  Branch (898:9): [True: 597, False: 0]
  ------------------
  899|    597|        return makeResourceFrom16(pResData, items16[i]);
  900|    597|    } else {
  901|      0|        return items32[i];
  902|      0|    }
  903|    597|}
_ZNK6icu_7813ResourceArray8getValueEiRNS_13ResourceValueE:
  905|    597|UBool icu::ResourceArray::getValue(int32_t i, icu::ResourceValue &value) const {
  906|    597|    if(0 <= i && i < length) {
  ------------------
  |  Branch (906:8): [True: 597, False: 0]
  |  Branch (906:18): [True: 597, False: 0]
  ------------------
  907|    597|        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|    597|        rdValue.setResource(
  913|    597|            internalGetResource(&rdValue.getData(), i),
  914|    597|            ResourceTracer(fTraceInfo, i));
  915|    597|        return true;
  916|    597|    }
  917|      0|    return false;
  918|    597|}
res_findResource_78:
  921|  11.6k|res_findResource(const ResourceData *pResData, Resource r, char** path, const char** key) {
  922|  11.6k|  char *pathP = *path, *nextSepP = *path;
  923|  11.6k|  char *closeIndex = nullptr;
  924|  11.6k|  Resource t1 = r;
  925|  11.6k|  Resource t2;
  926|  11.6k|  int32_t indexR = 0;
  927|  11.6k|  UResType type = (UResType)RES_GET_TYPE(t1);
  ------------------
  |  |   68|  11.6k|#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|  11.6k|  if(!uprv_strlen(pathP)) {
  ------------------
  |  |   37|  11.6k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  11.6k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (930:6): [True: 0, False: 11.6k]
  ------------------
  931|      0|      return r;
  932|      0|  }
  933|       |
  934|       |  /* one needs to have an aggregate resource in order to search in it */
  935|  11.6k|  if(!URES_IS_CONTAINER(type)) {
  ------------------
  |  |   85|  11.6k|#define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   84|  23.3k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (84:30): [True: 11.6k, False: 1]
  |  |  |  |  |  Branch (84:61): [True: 1, 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|  34.7k|  while(nextSepP && *pathP && t1 != RES_BOGUS && URES_IS_CONTAINER(type)) {
  ------------------
  |  |   65|  58.3k|#define RES_BOGUS 0xffffffff
  ------------------
                while(nextSepP && *pathP && t1 != RES_BOGUS && URES_IS_CONTAINER(type)) {
  ------------------
  |  |   85|  23.1k|#define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   84|  46.2k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (84:30): [True: 23.0k, False: 22]
  |  |  |  |  |  Branch (84:61): [True: 18, False: 4]
  |  |  |  |  |  Branch (84:94): [True: 0, False: 4]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   83|      4|#define URES_IS_ARRAY(type) ((int32_t)(type)==URES_ARRAY || (int32_t)(type)==URES_ARRAY16)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (83:30): [True: 0, False: 4]
  |  |  |  |  |  Branch (83:61): [True: 0, False: 4]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (939:9): [True: 23.8k, False: 10.8k]
  |  Branch (939:21): [True: 23.5k, False: 302]
  |  Branch (939:31): [True: 23.1k, False: 473]
  ------------------
  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|  23.1k|    nextSepP = uprv_strchr(pathP, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|  23.1k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  23.1k|#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|  23.1k|    if(nextSepP != nullptr) {
  ------------------
  |  Branch (947:8): [True: 12.2k, False: 10.8k]
  ------------------
  948|  12.2k|      if(nextSepP == pathP) {
  ------------------
  |  Branch (948:10): [True: 4, False: 12.2k]
  ------------------
  949|       |        // Empty key string.
  950|      4|        return RES_BOGUS;
  ------------------
  |  |   65|      4|#define RES_BOGUS 0xffffffff
  ------------------
  951|      4|      }
  952|  12.2k|      *nextSepP = 0; /* overwrite the separator with a NUL to terminate the key */
  953|  12.2k|      *path = nextSepP+1;
  954|  12.2k|    } else {
  955|  10.8k|      *path = uprv_strchr(pathP, 0);
  ------------------
  |  |   40|  10.8k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  10.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  956|  10.8k|    }
  957|       |
  958|       |    /* if the resource is a table */
  959|       |    /* try the key based access */
  960|  23.1k|    if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|  23.1k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 23.0k, False: 15]
  |  |  |  Branch (84:61): [True: 15, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  961|  23.1k|      *key = pathP;
  962|  23.1k|      t2 = res_getTableItemByKey(pResData, t1, &indexR, key);
  ------------------
  |  |  207|  23.1k|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|  23.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  23.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  23.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  963|  23.1k|    } 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|  23.1k|    t1 = t2;
  975|  23.1k|    type = (UResType)RES_GET_TYPE(t1);
  ------------------
  |  |   68|  23.1k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  976|       |    /* position pathP to next resource key/index */
  977|  23.1k|    pathP = *path;
  978|  23.1k|  }
  979|       |
  980|  11.6k|  return t1;
  981|  11.6k|}
uresdata.cpp:_ZL12isAcceptablePvPKcS1_PK9UDataInfo:
  141|    371|             const UDataInfo *pInfo) {
  142|    371|    uprv_memcpy(context, pInfo->formatVersion, 4);
  ------------------
  |  |   42|    371|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    371|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    371|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    371|    _Pragma("clang diagnostic push") \
  |  |   45|    371|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    371|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    371|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    371|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    371|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    371|    _Pragma("clang diagnostic pop") \
  |  |   49|    371|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    371|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    371|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    371|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  143|    371|    return
  144|    371|        pInfo->size>=20 &&
  ------------------
  |  Branch (144:9): [True: 371, False: 0]
  ------------------
  145|    371|        pInfo->isBigEndian==U_IS_BIG_ENDIAN &&
  ------------------
  |  |  353|    742|#   define U_IS_BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
  ------------------
  |  Branch (145:9): [True: 371, False: 0]
  ------------------
  146|    371|        pInfo->charsetFamily==U_CHARSET_FAMILY &&
  ------------------
  |  |  588|    371|#   define U_CHARSET_FAMILY U_ASCII_FAMILY
  |  |  ------------------
  |  |  |  |  531|    742|#define U_ASCII_FAMILY 0
  |  |  ------------------
  ------------------
  |  Branch (146:9): [True: 371, False: 0]
  ------------------
  147|    371|        pInfo->sizeofUChar==U_SIZEOF_UCHAR &&
  ------------------
  |  |  352|    742|#define U_SIZEOF_UCHAR 2
  ------------------
  |  Branch (147:9): [True: 371, False: 0]
  ------------------
  148|    371|        pInfo->dataFormat[0]==0x52 &&   /* dataFormat="ResB" */
  ------------------
  |  Branch (148:9): [True: 371, False: 0]
  ------------------
  149|    371|        pInfo->dataFormat[1]==0x65 &&
  ------------------
  |  Branch (149:9): [True: 371, False: 0]
  ------------------
  150|    371|        pInfo->dataFormat[2]==0x73 &&
  ------------------
  |  Branch (150:9): [True: 371, False: 0]
  ------------------
  151|    371|        pInfo->dataFormat[3]==0x42 &&
  ------------------
  |  Branch (151:9): [True: 371, False: 0]
  ------------------
  152|    371|        (1<=pInfo->formatVersion[0] && pInfo->formatVersion[0]<=3);
  ------------------
  |  Branch (152:10): [True: 371, False: 0]
  |  Branch (152:40): [True: 371, False: 0]
  ------------------
  153|    371|}
uresdata.cpp:_ZL8res_initP12ResourceDataPhPKviP10UErrorCode:
  160|    371|         UErrorCode *errorCode) {
  161|    371|    UResType rootType;
  162|       |
  163|       |    /* get the root resource */
  164|    371|    pResData->pRoot = static_cast<const int32_t*>(inBytes);
  165|    371|    pResData->rootRes = static_cast<Resource>(*pResData->pRoot);
  166|    371|    pResData->p16BitUnits=&gEmpty16;
  167|       |
  168|       |    /* formatVersion 1.1 must have a root item and at least 5 indexes */
  169|    371|    if(length>=0 && (length/4)<((formatVersion[0]==1 && formatVersion[1]==0) ? 1 : 1+5)) {
  ------------------
  |  Branch (169:8): [True: 0, False: 371]
  |  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|    371|    rootType = static_cast<UResType>(RES_GET_TYPE(pResData->rootRes));
  ------------------
  |  |   68|    371|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  177|    371|    if(!URES_IS_TABLE(rootType)) {
  ------------------
  |  |   84|    371|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 296, False: 75]
  |  |  |  Branch (84:61): [True: 75, 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|    371|    if(formatVersion[0]==1 && formatVersion[1]==0) {
  ------------------
  |  Branch (183:8): [True: 0, False: 371]
  |  Branch (183:31): [True: 0, False: 0]
  ------------------
  184|      0|        pResData->localKeyLimit=0x10000;  /* greater than any 16-bit key string offset */
  185|    371|    } else {
  186|       |        /* bundles with formatVersion 1.1 and later contain an indexes[] array */
  187|    371|        const int32_t *indexes=pResData->pRoot+1;
  188|    371|        int32_t indexLength=indexes[URES_INDEX_LENGTH]&0xff;
  189|    371|        if(indexLength<=URES_INDEX_MAX_TABLE_LENGTH) {
  ------------------
  |  Branch (189:12): [True: 0, False: 371]
  ------------------
  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|    371|        if( length>=0 &&
  ------------------
  |  Branch (194:13): [True: 0, False: 371]
  ------------------
  195|    371|            (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|    371|        ) {
  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|    371|        if(indexes[URES_INDEX_KEYS_TOP]>(1+indexLength)) {
  ------------------
  |  Branch (202:12): [True: 9, False: 362]
  ------------------
  203|      9|            pResData->localKeyLimit=indexes[URES_INDEX_KEYS_TOP]<<2;
  204|      9|        }
  205|    371|        if(formatVersion[0]>=3) {
  ------------------
  |  Branch (205:12): [True: 256, False: 115]
  ------------------
  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|    256|            pResData->poolStringIndexLimit = static_cast<int32_t>(static_cast<uint32_t>(indexes[URES_INDEX_LENGTH]) >> 8);
  211|    256|        }
  212|    371|        if(indexLength>URES_INDEX_ATTRIBUTES) {
  ------------------
  |  Branch (212:12): [True: 371, False: 0]
  ------------------
  213|    371|            int32_t att=indexes[URES_INDEX_ATTRIBUTES];
  214|    371|            pResData->noFallback = static_cast<UBool>(att & URES_ATT_NO_FALLBACK);
  ------------------
  |  |  148|    371|#define URES_ATT_NO_FALLBACK 1
  ------------------
  215|    371|            pResData->isPoolBundle = static_cast<UBool>((att & URES_ATT_IS_POOL_BUNDLE) != 0);
  ------------------
  |  |  156|    371|#define URES_ATT_IS_POOL_BUNDLE 2
  ------------------
  216|    371|            pResData->usesPoolBundle = static_cast<UBool>((att & URES_ATT_USES_POOL_BUNDLE) != 0);
  ------------------
  |  |  157|    371|#define URES_ATT_USES_POOL_BUNDLE 4
  ------------------
  217|    371|            pResData->poolStringIndexLimit|=(att&0xf000)<<12;  // bits 15..12 -> 27..24
  218|    371|            pResData->poolStringIndex16Limit = static_cast<int32_t>(static_cast<uint32_t>(att) >> 16);
  219|    371|        }
  220|    371|        if((pResData->isPoolBundle || pResData->usesPoolBundle) && indexLength<=URES_INDEX_POOL_CHECKSUM) {
  ------------------
  |  Branch (220:13): [True: 1, False: 370]
  |  Branch (220:39): [True: 362, False: 8]
  |  Branch (220:68): [True: 0, False: 363]
  ------------------
  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|    371|        if( indexLength>URES_INDEX_16BIT_TOP &&
  ------------------
  |  Branch (225:13): [True: 371, False: 0]
  ------------------
  226|    371|            indexes[URES_INDEX_16BIT_TOP]>indexes[URES_INDEX_KEYS_TOP]
  ------------------
  |  Branch (226:13): [True: 371, False: 0]
  ------------------
  227|    371|        ) {
  228|    371|            pResData->p16BitUnits = reinterpret_cast<const uint16_t*>(pResData->pRoot + indexes[URES_INDEX_KEYS_TOP]);
  229|    371|        }
  230|    371|    }
  231|       |
  232|    371|    if(formatVersion[0]==1 || U_CHARSET_FAMILY==U_ASCII_FAMILY) {
  ------------------
  |  |  588|    371|#   define U_CHARSET_FAMILY U_ASCII_FAMILY
  |  |  ------------------
  |  |  |  |  531|    371|#define U_ASCII_FAMILY 0
  |  |  ------------------
  ------------------
                  if(formatVersion[0]==1 || U_CHARSET_FAMILY==U_ASCII_FAMILY) {
  ------------------
  |  |  531|    371|#define U_ASCII_FAMILY 0
  ------------------
  |  Branch (232:8): [True: 0, False: 371]
  |  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|    371|        pResData->useNativeStrcmp=true;
  238|    371|    }
  239|    371|}
uresdata.cpp:_ZN12_GLOBAL__N_121isNoInheritanceMarkerEPK12ResourceDataj:
  357|   263k|UBool isNoInheritanceMarker(const ResourceData *pResData, Resource res) {
  358|   263k|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|   263k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  359|   263k|    if (offset == 0) {
  ------------------
  |  Branch (359:9): [True: 0, False: 263k]
  ------------------
  360|       |        // empty string
  361|   263k|    } else if (res == offset) {
  ------------------
  |  Branch (361:16): [True: 0, False: 263k]
  ------------------
  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|   263k|    } else if (RES_GET_TYPE(res) == URES_STRING_V2) {
  ------------------
  |  |   68|   263k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (366:16): [True: 9.82k, False: 253k]
  ------------------
  367|  9.82k|        const char16_t *p;
  368|  9.82k|        if (static_cast<int32_t>(offset) < pResData->poolStringIndexLimit) {
  ------------------
  |  Branch (368:13): [True: 5.36k, False: 4.45k]
  ------------------
  369|  5.36k|            p = reinterpret_cast<const char16_t*>(pResData->poolBundleStrings) + offset;
  370|  5.36k|        } else {
  371|  4.45k|            p = reinterpret_cast<const char16_t*>(pResData->p16BitUnits) + (offset - pResData->poolStringIndexLimit);
  372|  4.45k|        }
  373|  9.82k|        int32_t first=*p;
  374|  9.82k|        if (first == 0x2205) {  // implicit length
  ------------------
  |  Branch (374:13): [True: 72, False: 9.75k]
  ------------------
  375|     72|            return p[1] == 0x2205 && p[2] == 0x2205 && p[3] == 0;
  ------------------
  |  Branch (375:20): [True: 72, False: 0]
  |  Branch (375:38): [True: 72, False: 0]
  |  Branch (375:56): [True: 72, False: 0]
  ------------------
  376|  9.75k|        } else if (first == 0xdc03) {  // explicit length 3 (should not occur)
  ------------------
  |  Branch (376:20): [True: 0, False: 9.75k]
  ------------------
  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|  9.75k|        } else {
  379|       |            // Assume that the string has not been stored with more length units than necessary.
  380|  9.75k|            return false;
  381|  9.75k|        }
  382|  9.82k|    }
  383|   253k|    return false;
  384|   263k|}
uresdata.cpp:_ZL18_res_findTableItemPK12ResourceDataPKtiPKcPS5_:
   76|  61.4k|                   const char *key, const char **realKey) {
   77|  61.4k|    const char *tableKey;
   78|  61.4k|    int32_t mid, start, limit;
   79|  61.4k|    int result;
   80|       |
   81|       |    /* do a binary search for the key */
   82|  61.4k|    start=0;
   83|  61.4k|    limit=length;
   84|   211k|    while(start<limit) {
  ------------------
  |  Branch (84:11): [True: 196k, False: 15.2k]
  ------------------
   85|   196k|        mid = (start + limit) / 2;
   86|   196k|        tableKey = RES_GET_KEY16(pResData, keyOffsets[mid]);
  ------------------
  |  |   44|   196k|    ((keyOffset)<(pResData)->localKeyLimit ? \
  |  |  ------------------
  |  |  |  Branch (44:6): [True: 128k, False: 67.4k]
  |  |  ------------------
  |  |   45|   196k|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   46|   196k|        (pResData)->poolBundleKeys+(keyOffset)-(pResData)->localKeyLimit)
  ------------------
   87|   196k|        if (pResData->useNativeStrcmp) {
  ------------------
  |  Branch (87:13): [True: 196k, False: 0]
  ------------------
   88|   196k|            result = uprv_strcmp(key, tableKey);
  ------------------
  |  |   38|   196k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   196k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
   89|   196k|        } 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|   196k|        if (result < 0) {
  ------------------
  |  Branch (92:13): [True: 86.1k, False: 110k]
  ------------------
   93|  86.1k|            limit = mid;
   94|   110k|        } else if (result > 0) {
  ------------------
  |  Branch (94:20): [True: 64.1k, False: 46.2k]
  ------------------
   95|  64.1k|            start = mid + 1;
   96|  64.1k|        } else {
   97|       |            /* We found it! */
   98|  46.2k|            *realKey=tableKey;
   99|  46.2k|            return mid;
  100|  46.2k|        }
  101|   196k|    }
  102|  15.2k|    return URESDATA_ITEM_NOT_FOUND;  /* not found or table is empty. */
  ------------------
  |  |   53|  15.2k|#define URESDATA_ITEM_NOT_FOUND -1
  ------------------
  103|  61.4k|}
uresdata.cpp:_ZL18makeResourceFrom16PK12ResourceDatai:
  700|  64.6k|makeResourceFrom16(const ResourceData *pResData, int32_t res16) {
  701|  64.6k|    if(res16<pResData->poolStringIndex16Limit) {
  ------------------
  |  Branch (701:8): [True: 1.05k, False: 63.6k]
  ------------------
  702|       |        // Pool string, nothing to do.
  703|  63.6k|    } else {
  704|       |        // Local string, adjust the 16-bit offset to a regular one,
  705|       |        // with a larger pool string index limit.
  706|  63.6k|        res16=res16-pResData->poolStringIndex16Limit+pResData->poolStringIndexLimit;
  707|  63.6k|    }
  708|  64.6k|    return URES_MAKE_RESOURCE(URES_STRING_V2, res16);
  ------------------
  |  |   87|  64.6k|#define URES_MAKE_RESOURCE(type, offset) (((Resource)(type)<<28)|(Resource)(offset))
  ------------------
  709|  64.6k|}

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

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

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

u_strFindFirst_78:
   57|   189k|               const char16_t *sub, int32_t subLength) {
   58|   189k|    const char16_t *start, *p, *q, *subLimit;
   59|   189k|    char16_t c, cs, cq;
   60|       |
   61|   189k|    if(sub==nullptr || subLength<-1) {
  ------------------
  |  Branch (61:8): [True: 0, False: 189k]
  |  Branch (61:24): [True: 0, False: 189k]
  ------------------
   62|      0|        return (char16_t *)s;
   63|      0|    }
   64|   189k|    if(s==nullptr || length<-1) {
  ------------------
  |  Branch (64:8): [True: 0, False: 189k]
  |  Branch (64:22): [True: 0, False: 189k]
  ------------------
   65|      0|        return nullptr;
   66|      0|    }
   67|       |
   68|   189k|    start=s;
   69|       |
   70|   189k|    if(length<0 && subLength<0) {
  ------------------
  |  Branch (70:8): [True: 0, False: 189k]
  |  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|   189k|    if(subLength<0) {
  ------------------
  |  Branch (109:8): [True: 0, False: 189k]
  ------------------
  110|      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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  111|      0|    }
  112|   189k|    if(subLength==0) {
  ------------------
  |  Branch (112:8): [True: 0, False: 189k]
  ------------------
  113|      0|        return (char16_t *)s;
  114|      0|    }
  115|       |
  116|       |    /* get sub[0] to search for it fast */
  117|   189k|    cs=*sub++;
  118|   189k|    --subLength;
  119|   189k|    subLimit=sub+subLength;
  120|       |
  121|   189k|    if(subLength==0 && !U16_IS_SURROGATE(cs)) {
  ------------------
  |  |   75|   185k|#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
  |  |  ------------------
  |  |  |  |  193|   185k|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  ------------------
  ------------------
  |  Branch (121:8): [True: 185k, False: 3.17k]
  |  Branch (121:24): [True: 185k, False: 0]
  ------------------
  122|       |        /* the substring consists of a single, non-surrogate BMP code point */
  123|   185k|        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|   185k|#define u_memchr U_ICU_ENTRY_POINT_RENAME(u_memchr)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (123:16): [True: 0, False: 185k]
  ------------------
  124|   185k|    }
  125|       |
  126|  3.17k|    if(length<0) {
  ------------------
  |  Branch (126:8): [True: 0, False: 3.17k]
  ------------------
  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|  3.17k|    } else {
  153|  3.17k|        const char16_t *limit, *preLimit;
  154|       |
  155|       |        /* subLength was decremented above */
  156|  3.17k|        if(length<=subLength) {
  ------------------
  |  Branch (156:12): [True: 1.41k, False: 1.76k]
  ------------------
  157|  1.41k|            return nullptr; /* s is shorter than sub */
  158|  1.41k|        }
  159|       |
  160|  1.76k|        limit=s+length;
  161|       |
  162|       |        /* the substring must start before preLimit */
  163|  1.76k|        preLimit=limit-subLength;
  164|       |
  165|  37.0M|        while(s!=preLimit) {
  ------------------
  |  Branch (165:15): [True: 37.0M, False: 1.72k]
  ------------------
  166|  37.0M|            c=*s++;
  167|  37.0M|            if(c==cs) {
  ------------------
  |  Branch (167:16): [True: 1.07k, False: 37.0M]
  ------------------
  168|       |                /* found first substring char16_t, compare rest */
  169|  1.07k|                p=s;
  170|  1.07k|                q=sub;
  171|  1.73k|                for(;;) {
  172|  1.73k|                    if(q==subLimit) {
  ------------------
  |  Branch (172:24): [True: 38, False: 1.70k]
  ------------------
  173|     38|                        if(isMatchAtCPBoundary(start, s-1, p, limit)) {
  ------------------
  |  Branch (173:28): [True: 38, False: 0]
  ------------------
  174|     38|                            return (char16_t *)(s-1); /* well-formed match */
  175|     38|                        } else {
  176|      0|                            break; /* no match because surrogate pair is split */
  177|      0|                        }
  178|     38|                    }
  179|  1.70k|                    if(*p!=*q) {
  ------------------
  |  Branch (179:24): [True: 1.03k, False: 664]
  ------------------
  180|  1.03k|                        break; /* no match */
  181|  1.03k|                    }
  182|    664|                    ++p;
  183|    664|                    ++q;
  184|    664|                }
  185|  1.07k|            }
  186|  37.0M|        }
  187|  1.76k|    }
  188|       |
  189|       |    /* not found */
  190|  1.72k|    return nullptr;
  191|  3.17k|}
u_memchr_78:
  241|   186k|u_memchr(const char16_t *s, char16_t c, int32_t count) {
  242|   186k|    if(count<=0) {
  ------------------
  |  Branch (242:8): [True: 0, False: 186k]
  ------------------
  243|      0|        return nullptr; /* no string */
  244|   186k|    } else if(U16_IS_SURROGATE(c)) {
  ------------------
  |  |   75|   186k|#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
  |  |  ------------------
  |  |  |  |  193|   186k|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (193:27): [True: 0, False: 186k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  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|   186k|    } else {
  248|       |        /* trivial search for a BMP code point */
  249|   186k|        const char16_t *limit=s+count;
  250|  22.0M|        do {
  251|  22.0M|            if(*s==c) {
  ------------------
  |  Branch (251:16): [True: 184k, False: 21.9M]
  ------------------
  252|   184k|                return (char16_t *)s;
  253|   184k|            }
  254|  22.0M|        } while(++s!=limit);
  ------------------
  |  Branch (254:17): [True: 21.9M, False: 1.06k]
  ------------------
  255|  1.06k|        return nullptr;
  256|   186k|    }
  257|   186k|}
u_memrchr_78:
  416|  3.14k|u_memrchr(const char16_t *s, char16_t c, int32_t count) {
  417|  3.14k|    if(count<=0) {
  ------------------
  |  Branch (417:8): [True: 0, False: 3.14k]
  ------------------
  418|      0|        return nullptr; /* no string */
  419|  3.14k|    } else if(U16_IS_SURROGATE(c)) {
  ------------------
  |  |   75|  3.14k|#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
  |  |  ------------------
  |  |  |  |  193|  3.14k|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (193:27): [True: 0, False: 3.14k]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  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|  3.14k|    } else {
  423|       |        /* trivial search for a BMP code point */
  424|  3.14k|        const char16_t *limit=s+count;
  425|  29.7M|        do {
  426|  29.7M|            if(*(--limit)==c) {
  ------------------
  |  Branch (426:16): [True: 1.40k, False: 29.7M]
  ------------------
  427|  1.40k|                return (char16_t *)limit;
  428|  1.40k|            }
  429|  29.7M|        } while(s!=limit);
  ------------------
  |  Branch (429:17): [True: 29.7M, False: 1.74k]
  ------------------
  430|  1.74k|        return nullptr;
  431|  3.14k|    }
  432|  3.14k|}
u_strlen_78:
  995|   130k|{
  996|       |#if U_SIZEOF_WCHAR_T == U_SIZEOF_UCHAR
  997|       |    return (int32_t)uprv_wcslen((const wchar_t *)s);
  998|       |#else
  999|   130k|    const char16_t *t = s;
 1000|  1.09M|    while(*t != 0) {
  ------------------
  |  Branch (1000:11): [True: 963k, False: 130k]
  ------------------
 1001|   963k|      ++t;
 1002|   963k|    }
 1003|   130k|    return t - s;
 1004|   130k|#endif
 1005|   130k|}
u_memcpy_78:
 1117|  16.5k|u_memcpy(char16_t *dest, const char16_t *src, int32_t count) {
 1118|  16.5k|    if(count > 0) {
  ------------------
  |  Branch (1118:8): [True: 16.5k, False: 0]
  ------------------
 1119|  16.5k|        uprv_memcpy(dest, src, (size_t)count*U_SIZEOF_UCHAR);
  ------------------
  |  |   42|  16.5k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  16.5k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  16.5k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  16.5k|    _Pragma("clang diagnostic push") \
  |  |   45|  16.5k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  16.5k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  16.5k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  16.5k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  16.5k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  16.5k|    _Pragma("clang diagnostic pop") \
  |  |   49|  16.5k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  16.5k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  16.5k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  16.5k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1120|  16.5k|    }
 1121|  16.5k|    return dest;
 1122|  16.5k|}
u_memcmp_78:
 1146|  4.39k|u_memcmp(const char16_t *buf1, const char16_t *buf2, int32_t count) {
 1147|  4.39k|    if(count > 0) {
  ------------------
  |  Branch (1147:8): [True: 4.39k, False: 0]
  ------------------
 1148|  4.39k|        const char16_t *limit = buf1 + count;
 1149|  4.39k|        int32_t result;
 1150|       |
 1151|  6.67k|        while (buf1 < limit) {
  ------------------
  |  Branch (1151:16): [True: 6.15k, False: 520]
  ------------------
 1152|  6.15k|            result = (int32_t)(uint16_t)*buf1 - (int32_t)(uint16_t)*buf2;
 1153|  6.15k|            if (result != 0) {
  ------------------
  |  Branch (1153:17): [True: 3.87k, False: 2.28k]
  ------------------
 1154|  3.87k|                return result;
 1155|  3.87k|            }
 1156|  2.28k|            buf1++;
 1157|  2.28k|            buf2++;
 1158|  2.28k|        }
 1159|  4.39k|    }
 1160|    520|    return 0;
 1161|  4.39k|}
u_terminateUChars_78:
 1469|  19.3k|u_terminateUChars(char16_t *dest, int32_t destCapacity, int32_t length, UErrorCode *pErrorCode) {
 1470|  19.3k|    __TERMINATE_STRING(dest, destCapacity, length, pErrorCode);
  ------------------
  |  | 1437|  19.3k|#define __TERMINATE_STRING(dest, destCapacity, length, pErrorCode) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  19.3k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  | 1438|  19.3k|    if(pErrorCode!=nullptr && U_SUCCESS(*pErrorCode)) {                    \
  |  |  ------------------
  |  |  |  Branch (1438:8): [True: 19.3k, False: 0]
  |  |  |  Branch (1438:31): [True: 19.3k, False: 0]
  |  |  ------------------
  |  | 1439|  19.3k|        /* not a public function, so no complete argument checking */   \
  |  | 1440|  19.3k|                                                                        \
  |  | 1441|  19.3k|        if(length<0) {                                                  \
  |  |  ------------------
  |  |  |  Branch (1441:12): [True: 0, False: 19.3k]
  |  |  ------------------
  |  | 1442|      0|            /* assume that the caller handles this */                   \
  |  | 1443|  19.3k|        } else if(length<destCapacity) {                                \
  |  |  ------------------
  |  |  |  Branch (1443:19): [True: 16.4k, False: 2.85k]
  |  |  ------------------
  |  | 1444|  16.4k|            /* NUL-terminate the string, the NUL fits */                \
  |  | 1445|  16.4k|            dest[length]=0;                                             \
  |  | 1446|  16.4k|            /* unset the not-terminated warning but leave all others */ \
  |  | 1447|  16.4k|            if(*pErrorCode==U_STRING_NOT_TERMINATED_WARNING) {          \
  |  |  ------------------
  |  |  |  Branch (1447:16): [True: 0, False: 16.4k]
  |  |  ------------------
  |  | 1448|      0|                *pErrorCode=U_ZERO_ERROR;                               \
  |  | 1449|      0|            }                                                           \
  |  | 1450|  16.4k|        } else if(length==destCapacity) {                               \
  |  |  ------------------
  |  |  |  Branch (1450:19): [True: 66, False: 2.78k]
  |  |  ------------------
  |  | 1451|     66|            /* unable to NUL-terminate, but the string itself fit - set a warning code */ \
  |  | 1452|     66|            *pErrorCode=U_STRING_NOT_TERMINATED_WARNING;                \
  |  | 1453|  2.78k|        } else /* length>destCapacity */ {                              \
  |  | 1454|  2.78k|            /* even the string itself did not fit - set an error code */ \
  |  | 1455|  2.78k|            *pErrorCode=U_BUFFER_OVERFLOW_ERROR;                        \
  |  | 1456|  2.78k|        }                                                               \
  |  | 1457|  19.3k|    } \
  |  | 1458|  19.3k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  19.3k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1471|  19.3k|    return length;
 1472|  19.3k|}
u_terminateChars_78:
 1475|  9.53k|u_terminateChars(char *dest, int32_t destCapacity, int32_t length, UErrorCode *pErrorCode) {
 1476|  9.53k|    __TERMINATE_STRING(dest, destCapacity, length, pErrorCode);
  ------------------
  |  | 1437|  9.53k|#define __TERMINATE_STRING(dest, destCapacity, length, pErrorCode) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  9.53k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  | 1438|  9.53k|    if(pErrorCode!=nullptr && U_SUCCESS(*pErrorCode)) {                    \
  |  |  ------------------
  |  |  |  Branch (1438:8): [True: 9.53k, False: 0]
  |  |  |  Branch (1438:31): [True: 9.53k, False: 0]
  |  |  ------------------
  |  | 1439|  9.53k|        /* not a public function, so no complete argument checking */   \
  |  | 1440|  9.53k|                                                                        \
  |  | 1441|  9.53k|        if(length<0) {                                                  \
  |  |  ------------------
  |  |  |  Branch (1441:12): [True: 0, False: 9.53k]
  |  |  ------------------
  |  | 1442|      0|            /* assume that the caller handles this */                   \
  |  | 1443|  9.53k|        } else if(length<destCapacity) {                                \
  |  |  ------------------
  |  |  |  Branch (1443:19): [True: 9.53k, False: 0]
  |  |  ------------------
  |  | 1444|  9.53k|            /* NUL-terminate the string, the NUL fits */                \
  |  | 1445|  9.53k|            dest[length]=0;                                             \
  |  | 1446|  9.53k|            /* unset the not-terminated warning but leave all others */ \
  |  | 1447|  9.53k|            if(*pErrorCode==U_STRING_NOT_TERMINATED_WARNING) {          \
  |  |  ------------------
  |  |  |  Branch (1447:16): [True: 0, False: 9.53k]
  |  |  ------------------
  |  | 1448|      0|                *pErrorCode=U_ZERO_ERROR;                               \
  |  | 1449|      0|            }                                                           \
  |  | 1450|  9.53k|        } else if(length==destCapacity) {                               \
  |  |  ------------------
  |  |  |  Branch (1450:19): [True: 0, False: 0]
  |  |  ------------------
  |  | 1451|      0|            /* unable to NUL-terminate, but the string itself fit - set a warning code */ \
  |  | 1452|      0|            *pErrorCode=U_STRING_NOT_TERMINATED_WARNING;                \
  |  | 1453|      0|        } 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|  9.53k|    } \
  |  | 1458|  9.53k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  9.53k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1477|  9.53k|    return length;
 1478|  9.53k|}
ustr_hashUCharsN_78:
 1523|  57.9k|ustr_hashUCharsN(const char16_t *str, int32_t length) {
 1524|  57.9k|    STRING_HASH(char16_t, str, length, *p);
  ------------------
  |  | 1506|  57.9k|#define STRING_HASH(TYPE, STR, STRLEN, DEREF) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  57.9k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  | 1507|  57.9k|    uint32_t hash = 0;                        \
  |  | 1508|  57.9k|    const TYPE *p = (const TYPE*) STR;        \
  |  | 1509|  57.9k|    if (p != nullptr) {                          \
  |  |  ------------------
  |  |  |  Branch (1509:9): [True: 57.9k, False: 0]
  |  |  ------------------
  |  | 1510|  57.9k|        int32_t len = (int32_t)(STRLEN);      \
  |  | 1511|  57.9k|        int32_t inc = ((len - 32) / 32) + 1;  \
  |  | 1512|  57.9k|        const TYPE *limit = p + len;          \
  |  | 1513|   300k|        while (p<limit) {                     \
  |  |  ------------------
  |  |  |  Branch (1513:16): [True: 242k, False: 57.9k]
  |  |  ------------------
  |  | 1514|   242k|            hash = (hash * 37) + DEREF;       \
  |  | 1515|   242k|            p += inc;                         \
  |  | 1516|   242k|        }                                     \
  |  | 1517|  57.9k|    }                                         \
  |  | 1518|  57.9k|    return static_cast<int32_t>(hash);        \
  |  | 1519|  57.9k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  57.9k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1525|  57.9k|}
ustr_hashCharsN_78:
 1528|  34.6k|ustr_hashCharsN(const char *str, int32_t length) {
 1529|  34.6k|    STRING_HASH(uint8_t, str, length, *p);
  ------------------
  |  | 1506|  34.6k|#define STRING_HASH(TYPE, STR, STRLEN, DEREF) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  34.6k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  | 1507|  34.6k|    uint32_t hash = 0;                        \
  |  | 1508|  34.6k|    const TYPE *p = (const TYPE*) STR;        \
  |  | 1509|  34.6k|    if (p != nullptr) {                          \
  |  |  ------------------
  |  |  |  Branch (1509:9): [True: 34.6k, False: 0]
  |  |  ------------------
  |  | 1510|  34.6k|        int32_t len = (int32_t)(STRLEN);      \
  |  | 1511|  34.6k|        int32_t inc = ((len - 32) / 32) + 1;  \
  |  | 1512|  34.6k|        const TYPE *limit = p + len;          \
  |  | 1513|   344k|        while (p<limit) {                     \
  |  |  ------------------
  |  |  |  Branch (1513:16): [True: 309k, False: 34.6k]
  |  |  ------------------
  |  | 1514|   309k|            hash = (hash * 37) + DEREF;       \
  |  | 1515|   309k|            p += inc;                         \
  |  | 1516|   309k|        }                                     \
  |  | 1517|  34.6k|    }                                         \
  |  | 1518|  34.6k|    return static_cast<int32_t>(hash);        \
  |  | 1519|  34.6k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  34.6k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1530|  34.6k|}
ustring.cpp:_ZL19isMatchAtCPBoundaryPKDsS0_S0_S0_:
   43|     38|isMatchAtCPBoundary(const char16_t *start, const char16_t *match, const char16_t *matchLimit, const char16_t *limit) {
   44|     38|    if(U16_IS_TRAIL(*match) && start!=match && U16_IS_LEAD(*(match-1))) {
  ------------------
  |  |   67|     76|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 0, False: 38]
  |  |  ------------------
  ------------------
                  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|     38|    if(U16_IS_LEAD(*(matchLimit-1)) && matchLimit!=limit && U16_IS_TRAIL(*matchLimit)) {
  ------------------
  |  |   59|     76|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 0, False: 38]
  |  |  ------------------
  ------------------
                  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|     38|    return true;
   53|     38|}

_ZN6icu_787UVectorC2EPFvPvEPFa8UElementS4_ER10UErrorCode:
   41|  1.20k|        UVector(d, c, DEFAULT_CAPACITY, status) {
   42|  1.20k|}
_ZN6icu_787UVectorC2EPFvPvEPFa8UElementS4_EiR10UErrorCode:
   45|  1.92k|    deleter(d),
   46|  1.92k|    comparer(c)
   47|  1.92k|{
   48|  1.92k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (48:9): [True: 0, False: 1.92k]
  ------------------
   49|      0|        return;
   50|      0|    }
   51|       |    // Fix bogus initialCapacity values; avoid malloc(0) and integer overflow
   52|  1.92k|    if ((initialCapacity < 1) || (initialCapacity > static_cast<int32_t>(INT32_MAX / sizeof(UElement)))) {
  ------------------
  |  Branch (52:9): [True: 0, False: 1.92k]
  |  Branch (52:34): [True: 0, False: 1.92k]
  ------------------
   53|      0|        initialCapacity = DEFAULT_CAPACITY;
   54|      0|    }
   55|  1.92k|    elements = static_cast<UElement*>(uprv_malloc(sizeof(UElement) * initialCapacity));
  ------------------
  |  | 1524|  1.92k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  1.92k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.92k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.92k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   56|  1.92k|    if (elements == nullptr) {
  ------------------
  |  Branch (56:9): [True: 0, False: 1.92k]
  ------------------
   57|      0|        status = U_MEMORY_ALLOCATION_ERROR;
   58|  1.92k|    } else {
   59|  1.92k|        capacity = initialCapacity;
   60|  1.92k|    }
   61|  1.92k|}
_ZN6icu_787UVectorD2Ev:
   63|  1.85k|UVector::~UVector() {
   64|  1.85k|    removeAllElements();
   65|  1.85k|    uprv_free(elements);
  ------------------
  |  | 1503|  1.85k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   66|  1.85k|    elements = nullptr;
   67|  1.85k|}
_ZN6icu_787UVector10addElementEPvR10UErrorCode:
  102|    605|void UVector::addElement(void* obj, UErrorCode &status) {
  103|    605|    U_ASSERT(deleter == nullptr);
  ------------------
  |  |   35|    605|#   define U_ASSERT(exp) (void)0
  ------------------
  104|    605|    if (ensureCapacity(count + 1, status)) {
  ------------------
  |  Branch (104:9): [True: 605, False: 0]
  ------------------
  105|    605|        elements[count++].pointer = obj;
  106|    605|    }
  107|    605|}
_ZN6icu_787UVector12adoptElementEPvR10UErrorCode:
  109|    354|void UVector::adoptElement(void* obj, UErrorCode &status) {
  110|    354|    U_ASSERT(deleter != nullptr);
  ------------------
  |  |   35|    354|#   define U_ASSERT(exp) (void)0
  ------------------
  111|    354|    if (ensureCapacity(count + 1, status)) {
  ------------------
  |  Branch (111:9): [True: 354, False: 0]
  ------------------
  112|    354|        elements[count++].pointer = obj;
  113|    354|    } else {
  114|      0|        (*deleter)(obj);
  115|      0|    }
  116|    354|}
_ZNK6icu_787UVector9elementAtEi:
  185|  2.04k|void* UVector::elementAt(int32_t index) const {
  186|  2.04k|    return (0 <= index && index < count) ? elements[index].pointer : nullptr;
  ------------------
  |  Branch (186:13): [True: 2.04k, False: 0]
  |  Branch (186:27): [True: 2.04k, False: 0]
  ------------------
  187|  2.04k|}
_ZN6icu_787UVector17removeAllElementsEv:
  251|  1.85k|void UVector::removeAllElements() {
  252|  1.85k|    if (deleter != nullptr) {
  ------------------
  |  Branch (252:9): [True: 717, False: 1.13k]
  ------------------
  253|    717|        for (int32_t i=0; i<count; ++i) {
  ------------------
  |  Branch (253:27): [True: 0, False: 717]
  ------------------
  254|      0|            if (elements[i].pointer != nullptr) {
  ------------------
  |  Branch (254:17): [True: 0, False: 0]
  ------------------
  255|      0|                (*deleter)(elements[i].pointer);
  256|      0|            }
  257|      0|        }
  258|    717|    }
  259|  1.85k|    count = 0;
  260|  1.85k|}
_ZNK6icu_787UVector7indexOfEPvi:
  288|    817|int32_t UVector::indexOf(void* obj, int32_t startIndex) const {
  289|    817|    UElement key;
  290|    817|    key.pointer = obj;
  291|    817|    return indexOf(key, startIndex, HINT_KEY_POINTER);
  292|    817|}
_ZNK6icu_787UVector7indexOfE8UElementia:
  300|    817|int32_t UVector::indexOf(UElement key, int32_t startIndex, int8_t hint) const {
  301|    817|    if (comparer != nullptr) {
  ------------------
  |  Branch (301:9): [True: 817, False: 0]
  ------------------
  302|  1.09k|        for (int32_t i=startIndex; i<count; ++i) {
  ------------------
  |  Branch (302:36): [True: 494, False: 605]
  ------------------
  303|    494|            if ((*comparer)(key, elements[i])) {
  ------------------
  |  Branch (303:17): [True: 212, False: 282]
  ------------------
  304|    212|                return i;
  305|    212|            }
  306|    494|        }
  307|    817|    } 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|    605|    return -1;
  324|    817|}
_ZN6icu_787UVector14ensureCapacityEiR10UErrorCode:
  326|    959|UBool UVector::ensureCapacity(int32_t minimumCapacity, UErrorCode &status) {
  327|    959|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (327:9): [True: 0, False: 959]
  ------------------
  328|      0|        return false;
  329|      0|    }
  330|    959|    if (minimumCapacity < 0) {
  ------------------
  |  Branch (330:9): [True: 0, False: 959]
  ------------------
  331|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  332|      0|        return false;
  333|      0|    }
  334|    959|    if (capacity < minimumCapacity) {
  ------------------
  |  Branch (334:9): [True: 10, False: 949]
  ------------------
  335|     10|        if (capacity > (INT32_MAX - 1) / 2) {        	// integer overflow check
  ------------------
  |  Branch (335:13): [True: 0, False: 10]
  ------------------
  336|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
  337|      0|            return false;
  338|      0|        }
  339|     10|        int32_t newCap = capacity * 2;
  340|     10|        if (newCap < minimumCapacity) {
  ------------------
  |  Branch (340:13): [True: 0, False: 10]
  ------------------
  341|      0|            newCap = minimumCapacity;
  342|      0|        }
  343|     10|        if (newCap > static_cast<int32_t>(INT32_MAX / sizeof(UElement))) { // integer overflow check
  ------------------
  |  Branch (343:13): [True: 0, False: 10]
  ------------------
  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|        UElement* newElems = static_cast<UElement*>(uprv_realloc(elements, sizeof(UElement) * newCap));
  ------------------
  |  | 1536|     10|#define uprv_realloc U_ICU_ENTRY_POINT_RENAME(uprv_realloc)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  349|     10|        if (newElems == nullptr) {
  ------------------
  |  Branch (349:13): [True: 0, False: 10]
  ------------------
  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|        elements = newElems;
  355|     10|        capacity = newCap;
  356|     10|    }
  357|    959|    return true;
  358|    959|}
_ZN6icu_787UVector10setDeleterEPFvPvE:
  397|      1|UObjectDeleter *UVector::setDeleter(UObjectDeleter *d) {
  398|      1|    UObjectDeleter *old = deleter;
  399|      1|    deleter = d;
  400|      1|    return old;
  401|      1|}
_ZN6icu_787UVector4sortEPFi8UElementS1_ER10UErrorCode:
  547|    717|void UVector::sort(UElementComparator *compare, UErrorCode &ec) {
  548|    717|    if (U_SUCCESS(ec)) {
  ------------------
  |  Branch (548:9): [True: 717, False: 0]
  ------------------
  549|    717|        uprv_sortArray(elements, count, sizeof(UElement),
  ------------------
  |  | 1538|    717|#define uprv_sortArray U_ICU_ENTRY_POINT_RENAME(uprv_sortArray)
  |  |  ------------------
  |  |  |  |  123|    717|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    717|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    717|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  550|    717|                       sortComparator, &compare, false, &ec);
  551|    717|    }
  552|    717|}

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

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

_ZN6icu_789ClockMath16floorDivideInt64Ell:
   30|    774|int64_t ClockMath::floorDivideInt64(int64_t numerator, int64_t denominator) {
   31|    774|    return (numerator >= 0) ?
  ------------------
  |  Branch (31:12): [True: 774, False: 0]
  ------------------
   32|    774|        numerator / denominator : ((numerator + 1) / denominator) - 1;
   33|    774|}
_ZN6icu_785Grego11fieldsToDayEiii:
  107|    258|int64_t Grego::fieldsToDay(int32_t year, int32_t month, int32_t dom) {
  108|       |
  109|    258|    int64_t y = year - 1;
  110|       |
  111|    258|    int64_t julian = 365LL * y +
  112|    258|        ClockMath::floorDivideInt64(y, 4LL) + (JULIAN_1_CE - 3) + // Julian cal
  113|    258|        ClockMath::floorDivideInt64(y, 400LL) -
  114|    258|        ClockMath::floorDivideInt64(y, 100LL) + 2 + // => Gregorian cal
  115|    258|        DAYS_BEFORE[month + (isLeapYear(year) ? 12 : 0)] + dom; // => month/dom
  ------------------
  |  Branch (115:30): [True: 45, False: 213]
  ------------------
  116|       |
  117|    258|    return julian - JULIAN_1970_CE; // JD => epoch day
  118|    258|}

_ZN6icu_785Grego10isLeapYearEi:
  331|    258|inline UBool Grego::isLeapYear(int32_t year) {
  332|       |    // year&0x3 == year%4
  333|    258|    return ((year&0x3) == 0) && ((year%100 != 0) || (year%400 == 0));
  ------------------
  |  Branch (333:12): [True: 45, False: 213]
  |  Branch (333:34): [True: 43, False: 2]
  |  Branch (333:53): [True: 2, False: 0]
  ------------------
  334|    258|}

_ZN6icu_7813OlsonTimeZoneC2EPK15UResourceBundleS3_RKNS_13UnicodeStringER10UErrorCode:
  124|      1|  BasicTimeZone(tzid), finalZone(nullptr)
  125|      1|{
  126|      1|    clearTransitionRules();
  127|      1|    U_DEBUG_TZ_MSG(("OlsonTimeZone(%s)\n", ures_getKey((UResourceBundle*)res)));
  128|      1|    if ((top == nullptr || res == nullptr) && U_SUCCESS(ec)) {
  ------------------
  |  Branch (128:10): [True: 0, False: 1]
  |  Branch (128:28): [True: 0, False: 1]
  |  Branch (128:47): [True: 0, False: 0]
  ------------------
  129|      0|        ec = U_ILLEGAL_ARGUMENT_ERROR;
  130|      0|    }
  131|      1|    if (U_SUCCESS(ec)) {
  ------------------
  |  Branch (131:9): [True: 1, 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|      1|        int32_t len;
  137|      1|        StackUResourceBundle r;
  138|       |
  139|       |        // Pre-32bit second transitions
  140|      1|        ures_getByKey(res, kTRANSPRE32, r.getAlias(), &ec);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      ures_getByKey(res, kTRANSPRE32, r.getAlias(), &ec);
  ------------------
  |  |   71|      1|#define kTRANSPRE32     "transPre32"
  ------------------
  141|      1|        transitionTimesPre32 = ures_getIntVector(r.getAlias(), &len, &ec);
  ------------------
  |  | 1665|      1|#define ures_getIntVector U_ICU_ENTRY_POINT_RENAME(ures_getIntVector)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  142|      1|        transitionCountPre32 = static_cast<int16_t>(len >> 1);
  143|      1|        if (ec == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (143:13): [True: 1, False: 0]
  ------------------
  144|       |            // No pre-32bit transitions
  145|      1|            transitionTimesPre32 = nullptr;
  146|      1|            transitionCountPre32 = 0;
  147|      1|            ec = U_ZERO_ERROR;
  148|      1|        } else if (U_SUCCESS(ec) && (len < 0 || len > 0x7FFF || (len & 1) != 0) /* len must be even */) {
  ------------------
  |  Branch (148:20): [True: 0, False: 0]
  |  Branch (148:38): [True: 0, False: 0]
  |  Branch (148:49): [True: 0, False: 0]
  |  Branch (148:65): [True: 0, False: 0]
  ------------------
  149|      0|            ec = U_INVALID_FORMAT_ERROR;
  150|      0|        }
  151|       |
  152|       |        // 32bit second transitions
  153|      1|        ures_getByKey(res, kTRANS, r.getAlias(), &ec);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      ures_getByKey(res, kTRANS, r.getAlias(), &ec);
  ------------------
  |  |   70|      1|#define kTRANS          "trans"
  ------------------
  154|      1|        transitionTimes32 = ures_getIntVector(r.getAlias(), &len, &ec);
  ------------------
  |  | 1665|      1|#define ures_getIntVector U_ICU_ENTRY_POINT_RENAME(ures_getIntVector)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  155|      1|        transitionCount32 = static_cast<int16_t>(len);
  156|      1|        if (ec == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (156:13): [True: 1, False: 0]
  ------------------
  157|       |            // No 32bit transitions
  158|      1|            transitionTimes32 = nullptr;
  159|      1|            transitionCount32 = 0;
  160|      1|            ec = U_ZERO_ERROR;
  161|      1|        } else if (U_SUCCESS(ec) && (len < 0 || len > 0x7FFF)) {
  ------------------
  |  Branch (161:20): [True: 0, False: 0]
  |  Branch (161:38): [True: 0, False: 0]
  |  Branch (161:49): [True: 0, False: 0]
  ------------------
  162|      0|            ec = U_INVALID_FORMAT_ERROR;
  163|      0|        }
  164|       |
  165|       |        // Post-32bit second transitions
  166|      1|        ures_getByKey(res, kTRANSPOST32, r.getAlias(), &ec);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      ures_getByKey(res, kTRANSPOST32, r.getAlias(), &ec);
  ------------------
  |  |   72|      1|#define kTRANSPOST32    "transPost32"
  ------------------
  167|      1|        transitionTimesPost32 = ures_getIntVector(r.getAlias(), &len, &ec);
  ------------------
  |  | 1665|      1|#define ures_getIntVector U_ICU_ENTRY_POINT_RENAME(ures_getIntVector)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  168|      1|        transitionCountPost32 = static_cast<int16_t>(len >> 1);
  169|      1|        if (ec == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (169:13): [True: 1, False: 0]
  ------------------
  170|       |            // No pre-32bit transitions
  171|      1|            transitionTimesPost32 = nullptr;
  172|      1|            transitionCountPost32 = 0;
  173|      1|            ec = U_ZERO_ERROR;
  174|      1|        } 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|      1|        ures_getByKey(res, kTYPEOFFSETS, r.getAlias(), &ec);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      ures_getByKey(res, kTYPEOFFSETS, r.getAlias(), &ec);
  ------------------
  |  |   73|      1|#define kTYPEOFFSETS    "typeOffsets"
  ------------------
  180|      1|        typeOffsets = ures_getIntVector(r.getAlias(), &len, &ec);
  ------------------
  |  | 1665|      1|#define ures_getIntVector U_ICU_ENTRY_POINT_RENAME(ures_getIntVector)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  181|      1|        if (U_SUCCESS(ec) && (len < 2 || len > 0x7FFE || (len & 1) != 0)) {
  ------------------
  |  Branch (181:13): [True: 1, False: 0]
  |  Branch (181:31): [True: 0, False: 1]
  |  Branch (181:42): [True: 0, False: 1]
  |  Branch (181:58): [True: 0, False: 1]
  ------------------
  182|      0|            ec = U_INVALID_FORMAT_ERROR;
  183|      0|        }
  184|      1|        typeCount = static_cast<int16_t>(len) >> 1;
  185|       |
  186|       |        // Type map data must be of the same size as the transition count
  187|      1|        typeMapData =  nullptr;
  188|      1|        if (transitionCount() > 0) {
  ------------------
  |  Branch (188:13): [True: 0, False: 1]
  ------------------
  189|      0|            ures_getByKey(res, kTYPEMAP, r.getAlias(), &ec);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          ures_getByKey(res, kTYPEMAP, r.getAlias(), &ec);
  ------------------
  |  |   74|      0|#define kTYPEMAP        "typeMap"
  ------------------
  190|      0|            typeMapData = ures_getBinary(r.getAlias(), &len, &ec);
  ------------------
  |  | 1659|      0|#define ures_getBinary U_ICU_ENTRY_POINT_RENAME(ures_getBinary)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  191|      0|            if (ec == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (191:17): [True: 0, False: 0]
  ------------------
  192|       |                // no type mapping data
  193|      0|                ec = U_INVALID_FORMAT_ERROR;
  194|      0|            } else if (U_SUCCESS(ec) && len != transitionCount()) {
  ------------------
  |  Branch (194:24): [True: 0, False: 0]
  |  Branch (194:41): [True: 0, False: 0]
  ------------------
  195|      0|                ec = U_INVALID_FORMAT_ERROR;
  196|      0|            }
  197|      0|        }
  198|       |
  199|       |        // Process final rule and data, if any
  200|      1|        if (U_SUCCESS(ec)) {
  ------------------
  |  Branch (200:13): [True: 1, False: 0]
  ------------------
  201|      1|            const char16_t *ruleIdUStr = ures_getStringByKey(res, kFINALRULE, &len, &ec);
  ------------------
  |  | 1677|      1|#define ures_getStringByKey U_ICU_ENTRY_POINT_RENAME(ures_getStringByKey)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          const char16_t *ruleIdUStr = ures_getStringByKey(res, kFINALRULE, &len, &ec);
  ------------------
  |  |   76|      1|#define kFINALRULE      "finalRule"
  ------------------
  202|      1|            ures_getByKey(res, kFINALRAW, r.getAlias(), &ec);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          ures_getByKey(res, kFINALRAW, r.getAlias(), &ec);
  ------------------
  |  |   77|      1|#define kFINALRAW       "finalRaw"
  ------------------
  203|      1|            int32_t ruleRaw = ures_getInt(r.getAlias(), &ec);
  ------------------
  |  | 1664|      1|#define ures_getInt U_ICU_ENTRY_POINT_RENAME(ures_getInt)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  204|      1|            ures_getByKey(res, kFINALYEAR, r.getAlias(), &ec);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          ures_getByKey(res, kFINALYEAR, r.getAlias(), &ec);
  ------------------
  |  |   78|      1|#define kFINALYEAR      "finalYear"
  ------------------
  205|      1|            int32_t ruleYear = ures_getInt(r.getAlias(), &ec);
  ------------------
  |  | 1664|      1|#define ures_getInt U_ICU_ENTRY_POINT_RENAME(ures_getInt)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  206|      1|            if (U_SUCCESS(ec)) {
  ------------------
  |  Branch (206:17): [True: 0, False: 1]
  ------------------
  207|      0|                UnicodeString ruleID(true, ruleIdUStr, len);
  208|      0|                UResourceBundle *rule = TimeZone::loadRule(top, ruleID, nullptr, ec);
  209|      0|                const int32_t *ruleData = ures_getIntVector(rule, &len, &ec); 
  ------------------
  |  | 1665|      0|#define ures_getIntVector U_ICU_ENTRY_POINT_RENAME(ures_getIntVector)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  210|      0|                if (U_SUCCESS(ec) && len == 11) {
  ------------------
  |  Branch (210:21): [True: 0, False: 0]
  |  Branch (210:38): [True: 0, False: 0]
  ------------------
  211|      0|                    UnicodeString emptyStr;
  212|      0|                    finalZone = new SimpleTimeZone(
  213|      0|                        ruleRaw * U_MILLIS_PER_SECOND,
  ------------------
  |  |  221|      0|#define U_MILLIS_PER_SECOND        (1000)
  ------------------
  214|      0|                        emptyStr,
  215|      0|                        static_cast<int8_t>(ruleData[0]), static_cast<int8_t>(ruleData[1]), static_cast<int8_t>(ruleData[2]),
  216|      0|                        ruleData[3] * U_MILLIS_PER_SECOND,
  ------------------
  |  |  221|      0|#define U_MILLIS_PER_SECOND        (1000)
  ------------------
  217|      0|                        static_cast<SimpleTimeZone::TimeMode>(ruleData[4]),
  218|      0|                        static_cast<int8_t>(ruleData[5]), static_cast<int8_t>(ruleData[6]), static_cast<int8_t>(ruleData[7]),
  219|      0|                        ruleData[8] * U_MILLIS_PER_SECOND,
  ------------------
  |  |  221|      0|#define U_MILLIS_PER_SECOND        (1000)
  ------------------
  220|      0|                        static_cast<SimpleTimeZone::TimeMode>(ruleData[9]),
  221|      0|                        ruleData[10] * U_MILLIS_PER_SECOND, ec);
  ------------------
  |  |  221|      0|#define U_MILLIS_PER_SECOND        (1000)
  ------------------
  222|      0|                    if (finalZone == nullptr) {
  ------------------
  |  Branch (222:25): [True: 0, False: 0]
  ------------------
  223|      0|                        ec = U_MEMORY_ALLOCATION_ERROR;
  224|      0|                    } else {
  225|      0|                        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|      0|                        finalStartMillis = Grego::fieldsToDay(finalStartYear, 0, 1) * U_MILLIS_PER_DAY;
  ------------------
  |  |  227|      0|#define U_MILLIS_PER_DAY       (86400000)
  ------------------
  245|      0|                    }
  246|      0|                } else {
  247|      0|                    ec = U_INVALID_FORMAT_ERROR;
  248|      0|                }
  249|      0|                ures_close(rule);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  250|      1|            } else if (ec == U_MISSING_RESOURCE_ERROR) {
  ------------------
  |  Branch (250:24): [True: 1, False: 0]
  ------------------
  251|       |                // No final zone
  252|      1|                ec = U_ZERO_ERROR;
  253|      1|            }
  254|      1|        }
  255|       |
  256|       |        // initialize canonical ID
  257|      1|        canonicalID = ZoneMeta::getCanonicalCLDRID(tzid, ec);
  258|      1|    }
  259|       |
  260|      1|    if (U_FAILURE(ec)) {
  ------------------
  |  Branch (260:9): [True: 0, False: 1]
  ------------------
  261|      0|        constructEmpty();
  262|      0|    }
  263|      1|}
_ZN6icu_7813OlsonTimeZoneC2ERKS0_:
  269|    487|    BasicTimeZone(other), finalZone(nullptr) {
  270|    487|    *this = other;
  271|    487|}
_ZN6icu_7813OlsonTimeZoneaSERKS0_:
  276|    487|OlsonTimeZone& OlsonTimeZone::operator=(const OlsonTimeZone& other) {
  277|    487|    if (this == &other) { return *this; }  // self-assignment: no-op
  ------------------
  |  Branch (277:9): [True: 0, False: 487]
  ------------------
  278|    487|    canonicalID = other.canonicalID;
  279|       |
  280|    487|    transitionTimesPre32 = other.transitionTimesPre32;
  281|    487|    transitionTimes32 = other.transitionTimes32;
  282|    487|    transitionTimesPost32 = other.transitionTimesPost32;
  283|       |
  284|    487|    transitionCountPre32 = other.transitionCountPre32;
  285|    487|    transitionCount32 = other.transitionCount32;
  286|    487|    transitionCountPost32 = other.transitionCountPost32;
  287|       |
  288|    487|    typeCount = other.typeCount;
  289|    487|    typeOffsets = other.typeOffsets;
  290|    487|    typeMapData = other.typeMapData;
  291|       |
  292|    487|    delete finalZone;
  293|    487|    finalZone = other.finalZone != nullptr ? other.finalZone->clone() : nullptr;
  ------------------
  |  Branch (293:17): [True: 0, False: 487]
  ------------------
  294|       |
  295|    487|    finalStartYear = other.finalStartYear;
  296|    487|    finalStartMillis = other.finalStartMillis;
  297|       |
  298|    487|    clearTransitionRules();
  299|       |
  300|    487|    return *this;
  301|    487|}
_ZN6icu_7813OlsonTimeZoneD2Ev:
  306|    487|OlsonTimeZone::~OlsonTimeZone() {
  307|    487|    deleteTransitionRules();
  308|    487|    delete finalZone;
  309|    487|}
_ZNK6icu_7813OlsonTimeZone5cloneEv:
  324|    487|OlsonTimeZone* OlsonTimeZone::clone() const {
  325|    487|    return new OlsonTimeZone(*this);
  326|    487|}
_ZNK6icu_7813OlsonTimeZone9getOffsetEdaRiS1_R10UErrorCode:
  392|      1|                              int32_t& dstoff, UErrorCode& ec) const {
  393|      1|    if (U_FAILURE(ec)) {
  ------------------
  |  Branch (393:9): [True: 0, False: 1]
  ------------------
  394|      0|        return;
  395|      0|    }
  396|      1|    if (finalZone != nullptr && date >= finalStartMillis) {
  ------------------
  |  Branch (396:9): [True: 0, False: 1]
  |  Branch (396:33): [True: 0, False: 0]
  ------------------
  397|      0|        finalZone->getOffset(date, local, rawoff, dstoff, ec);
  398|      1|    } else {
  399|      1|        getHistoricalOffset(date, local, kFormer, kLatter, rawoff, dstoff);
  400|      1|    }
  401|      1|}
_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|      1|                                   int32_t& rawoff, int32_t& dstoff) const {
  477|      1|    U_DEBUG_TZ_MSG(("getHistoricalOffset(%.1f, %s, %d, %d, raw, dst)\n",
  478|      1|        date, local?"T":"F", NonExistingTimeOpt, DuplicatedTimeOpt));
  479|       |#if defined U_DEBUG_TZ
  480|       |        printTime(date*1000.0);
  481|       |#endif
  482|      1|    int16_t transCount = transitionCount();
  483|       |
  484|      1|    if (transCount > 0) {
  ------------------
  |  Branch (484:9): [True: 0, False: 1]
  ------------------
  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|      1|    } else {
  548|       |        // No transitions, single pair of offsets only
  549|      1|        rawoff = initialRawOffset() * U_MILLIS_PER_SECOND;
  ------------------
  |  |  221|      1|#define U_MILLIS_PER_SECOND        (1000)
  ------------------
  550|      1|        dstoff = initialDstOffset() * U_MILLIS_PER_SECOND;
  ------------------
  |  |  221|      1|#define U_MILLIS_PER_SECOND        (1000)
  ------------------
  551|      1|    }
  552|      1|    U_DEBUG_TZ_MSG(("getHistoricalOffset(%.1f, %s, %d, %d, raw, dst) - raw=%d, dst=%d\n",
  553|      1|        date, local?"T":"F", NonExistingTimeOpt, DuplicatedTimeOpt, rawoff, dstoff));
  554|      1|}
_ZN6icu_7813OlsonTimeZone20clearTransitionRulesEv:
  656|    975|OlsonTimeZone::clearTransitionRules() {
  657|    975|    initialRule = nullptr;
  658|    975|    firstTZTransition = nullptr;
  659|    975|    firstFinalTZTransition = nullptr;
  660|    975|    historicRules = nullptr;
  661|    975|    historicRuleCount = 0;
  662|    975|    finalZoneWithStartYear = nullptr;
  663|    975|    firstTZTransitionIdx = 0;
  664|    975|    transitionRulesInitOnce.reset();
  665|    975|}
_ZN6icu_7813OlsonTimeZone21deleteTransitionRulesEv:
  668|    487|OlsonTimeZone::deleteTransitionRules() {
  669|    487|    delete initialRule;
  670|    487|    delete firstTZTransition;
  671|    487|    delete firstFinalTZTransition;
  672|    487|    delete finalZoneWithStartYear;
  673|    487|    if (historicRules != nullptr) {
  ------------------
  |  Branch (673:9): [True: 0, False: 487]
  ------------------
  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|    487|    clearTransitionRules();
  682|    487|}

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

_ZN6icu_788TimeZoneC2ERKNS_13UnicodeStringE:
  352|      1|    :   UObject(), fID(id)
  353|      1|{
  354|      1|}
_ZN6icu_788TimeZoneD2Ev:
  359|    487|{
  360|    487|}
_ZN6icu_788TimeZoneC2ERKS0_:
  365|    487|    :   UObject(source), fID(source.fID)
  366|    487|{
  367|    487|}
_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|    487|{
  574|    487|    umtx_initOnce(gDefaultZoneInitOnce, initDefault);
  575|    487|    {
  576|    487|        Mutex lock(&gDefaultZoneMutex);
  577|    487|        return (DEFAULT_ZONE != nullptr) ? DEFAULT_ZONE->clone() : nullptr;
  ------------------
  |  Branch (577:16): [True: 487, False: 0]
  ------------------
  578|    487|    }
  579|    487|}
_ZN6icu_788TimeZone6findIDERKNS_13UnicodeStringE:
 1097|  2.92k|TimeZone::findID(const UnicodeString& id) {
 1098|  2.92k|    const char16_t *result = nullptr;
 1099|  2.92k|    UErrorCode ec = U_ZERO_ERROR;
 1100|  2.92k|    UResourceBundle *rb = ures_openDirect(nullptr, kZONEINFO, &ec);
  ------------------
  |  | 1693|  2.92k|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|  2.92k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.92k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.92k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  UResourceBundle *rb = ures_openDirect(nullptr, kZONEINFO, &ec);
  ------------------
  |  |   92|  2.92k|#define kZONEINFO "zoneinfo64"
  ------------------
 1101|       |
 1102|       |    // resolve zone index by name
 1103|  2.92k|    UResourceBundle *names = ures_getByKey(rb, kNAMES, nullptr, &ec);
  ------------------
  |  | 1661|  2.92k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  2.92k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.92k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.92k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  UResourceBundle *names = ures_getByKey(rb, kNAMES, nullptr, &ec);
  ------------------
  |  |   96|  2.92k|#define kNAMES    "Names"
  ------------------
 1104|  2.92k|    int32_t idx = findInStringArray(names, id, ec);
 1105|  2.92k|    result = ures_getStringByIndex(names, idx, nullptr, &ec);
  ------------------
  |  | 1676|  2.92k|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|  2.92k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.92k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.92k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1106|  2.92k|    if (U_FAILURE(ec)) {
  ------------------
  |  Branch (1106:9): [True: 2.21k, False: 716]
  ------------------
 1107|  2.21k|        result = nullptr;
 1108|  2.21k|    }
 1109|  2.92k|    ures_close(names);
  ------------------
  |  | 1652|  2.92k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  2.92k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.92k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.92k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1110|  2.92k|    ures_close(rb);
  ------------------
  |  | 1652|  2.92k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  2.92k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.92k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.92k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1111|  2.92k|    return result;
 1112|  2.92k|}
_ZN6icu_788TimeZone16dereferOlsonLinkERKNS_13UnicodeStringE:
 1116|  2.97k|TimeZone::dereferOlsonLink(const UnicodeString& id) {
 1117|  2.97k|    const char16_t *result = nullptr;
 1118|  2.97k|    UErrorCode ec = U_ZERO_ERROR;
 1119|  2.97k|    UResourceBundle *rb = ures_openDirect(nullptr, kZONEINFO, &ec);
  ------------------
  |  | 1693|  2.97k|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|  2.97k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.97k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.97k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  UResourceBundle *rb = ures_openDirect(nullptr, kZONEINFO, &ec);
  ------------------
  |  |   92|  2.97k|#define kZONEINFO "zoneinfo64"
  ------------------
 1120|       |
 1121|       |    // resolve zone index by name
 1122|  2.97k|    UResourceBundle *names = ures_getByKey(rb, kNAMES, nullptr, &ec);
  ------------------
  |  | 1661|  2.97k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  2.97k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.97k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.97k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  UResourceBundle *names = ures_getByKey(rb, kNAMES, nullptr, &ec);
  ------------------
  |  |   96|  2.97k|#define kNAMES    "Names"
  ------------------
 1123|  2.97k|    int32_t idx = findInStringArray(names, id, ec);
 1124|  2.97k|    result = ures_getStringByIndex(names, idx, nullptr, &ec);
  ------------------
  |  | 1676|  2.97k|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|  2.97k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.97k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.97k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1125|       |
 1126|       |    // open the zone bundle by index
 1127|  2.97k|    ures_getByKey(rb, kZONES, rb, &ec);
  ------------------
  |  | 1661|  2.97k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  2.97k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.97k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.97k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  ures_getByKey(rb, kZONES, rb, &ec);
  ------------------
  |  |   94|  2.97k|#define kZONES    "Zones"
  ------------------
 1128|  2.97k|    ures_getByIndex(rb, idx, rb, &ec); 
  ------------------
  |  | 1660|  2.97k|#define ures_getByIndex U_ICU_ENTRY_POINT_RENAME(ures_getByIndex)
  |  |  ------------------
  |  |  |  |  123|  2.97k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.97k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.97k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1129|       |
 1130|  2.97k|    if (U_SUCCESS(ec)) {
  ------------------
  |  Branch (1130:9): [True: 22, False: 2.95k]
  ------------------
 1131|     22|        if (ures_getType(rb) == URES_INT) {
  ------------------
  |  | 1679|     22|#define ures_getType U_ICU_ENTRY_POINT_RENAME(ures_getType)
  |  |  ------------------
  |  |  |  |  123|     22|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     22|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     22|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1131:13): [True: 22, False: 0]
  ------------------
 1132|       |            // this is a link - dereference the link
 1133|     22|            int32_t deref = ures_getInt(rb, &ec);
  ------------------
  |  | 1664|     22|#define ures_getInt U_ICU_ENTRY_POINT_RENAME(ures_getInt)
  |  |  ------------------
  |  |  |  |  123|     22|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     22|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     22|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1134|     22|            const char16_t* tmp = ures_getStringByIndex(names, deref, nullptr, &ec);
  ------------------
  |  | 1676|     22|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|     22|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     22|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     22|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1135|     22|            if (U_SUCCESS(ec)) {
  ------------------
  |  Branch (1135:17): [True: 22, False: 0]
  ------------------
 1136|     22|                result = tmp;
 1137|     22|            }
 1138|     22|        }
 1139|     22|    }
 1140|       |
 1141|  2.97k|    ures_close(names);
  ------------------
  |  | 1652|  2.97k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  2.97k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.97k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.97k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1142|  2.97k|    ures_close(rb);
  ------------------
  |  | 1652|  2.97k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  2.97k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.97k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.97k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1143|       |
 1144|  2.97k|    return result;
 1145|  2.97k|}
timezone.cpp:_ZN6icu_7812_GLOBAL__N_120createSystemTimeZoneERKNS_13UnicodeStringE:
  422|      1|createSystemTimeZone(const UnicodeString& id) {
  423|      1|    UErrorCode ec = U_ZERO_ERROR;
  424|      1|    return createSystemTimeZone(id, ec);
  425|      1|}
timezone.cpp:_ZN6icu_7812_GLOBAL__N_120createSystemTimeZoneERKNS_13UnicodeStringER10UErrorCode:
  391|      1|createSystemTimeZone(const UnicodeString& id, UErrorCode& ec) {
  392|      1|    if (U_FAILURE(ec)) {
  ------------------
  |  Branch (392:9): [True: 0, False: 1]
  ------------------
  393|      0|        return nullptr;
  394|      0|    }
  395|      1|    TimeZone* z = nullptr;
  396|      1|    StackUResourceBundle res;
  397|      1|    U_DEBUG_TZ_MSG(("pre-err=%s\n", u_errorName(ec)));
  398|      1|    UResourceBundle *top = openOlsonResource(id, res.ref(), ec);
  399|      1|    U_DEBUG_TZ_MSG(("post-err=%s\n", u_errorName(ec)));
  400|      1|    if (U_SUCCESS(ec)) {
  ------------------
  |  Branch (400:9): [True: 1, False: 0]
  ------------------
  401|      1|        z = new OlsonTimeZone(top, res.getAlias(), id, ec);
  402|      1|        if (z == nullptr) {
  ------------------
  |  Branch (402:13): [True: 0, False: 1]
  ------------------
  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|      1|    }
  407|      1|    ures_close(top);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  408|      1|    if (U_FAILURE(ec)) {
  ------------------
  |  Branch (408:9): [True: 0, False: 1]
  ------------------
  409|      0|        U_DEBUG_TZ_MSG(("cstz: failed to create, err %s\n", u_errorName(ec)));
  410|      0|        delete z;
  411|      0|        z = nullptr;
  412|      0|    }
  413|      1|    return z;
  414|      1|}
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|{
  282|       |#ifdef U_DEBUG_TZ
  283|       |    char buf[128];
  284|       |    id.extract(0, sizeof(buf)-1, buf, sizeof(buf), "");
  285|       |#endif
  286|      1|    UResourceBundle *top = ures_openDirect(nullptr, kZONEINFO, &ec);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  UResourceBundle *top = ures_openDirect(nullptr, kZONEINFO, &ec);
  ------------------
  |  |   92|      1|#define kZONEINFO "zoneinfo64"
  ------------------
  287|      1|    U_DEBUG_TZ_MSG(("pre: res sz=%d\n", ures_getSize(&res)));
  288|      1|    /* &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|    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|    if (ures_getType(&res) == URES_INT) {
  ------------------
  |  | 1679|      1|#define ures_getType U_ICU_ENTRY_POINT_RENAME(ures_getType)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_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 (292:9): [True: 0, False: 1]
  ------------------
  293|      0|        int32_t deref = ures_getInt(&res, &ec) + 0;
  ------------------
  |  | 1664|      0|#define ures_getInt U_ICU_ENTRY_POINT_RENAME(ures_getInt)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  294|      0|        U_DEBUG_TZ_MSG(("getInt: %s - type is %d\n", u_errorName(ec), ures_getType(&res)));
  295|      0|        UResourceBundle *ares = ures_getByKey(top, kZONES, nullptr, &ec); // dereference Zones section
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      UResourceBundle *ares = ures_getByKey(top, kZONES, nullptr, &ec); // dereference Zones section
  ------------------
  |  |   94|      0|#define kZONES    "Zones"
  ------------------
  296|      0|        ures_getByIndex(ares, deref, &res, &ec);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  297|      0|        ures_close(ares);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  298|      0|        U_DEBUG_TZ_MSG(("alias to #%d (%s) - %s\n", deref, "??", u_errorName(ec)));
  299|      1|    } else {
  300|      1|        U_DEBUG_TZ_MSG(("not an alias - size %d\n", ures_getSize(&res)));
  301|      1|    }
  302|      1|    U_DEBUG_TZ_MSG(("%s - final status is %s\n", buf, u_errorName(ec)));
  303|      1|    return top;
  304|      1|}
timezone.cpp:_ZN6icu_78L13getZoneByNameEPK15UResourceBundleRKNS_13UnicodeStringEPS0_R10UErrorCode:
  230|      1|static UResourceBundle* getZoneByName(const UResourceBundle* top, const UnicodeString& id, UResourceBundle *oldbundle, UErrorCode& status) {
  231|       |    // load the Rules object
  232|      1|    UResourceBundle *tmp = ures_getByKey(top, kNAMES, 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  UResourceBundle *tmp = ures_getByKey(top, kNAMES, nullptr, &status);
  ------------------
  |  |   96|      1|#define kNAMES    "Names"
  ------------------
  233|       |
  234|       |    // search for the string
  235|      1|    int32_t idx = findInStringArray(tmp, id, status);
  236|       |
  237|      1|    if((idx == -1) && U_SUCCESS(status)) {
  ------------------
  |  Branch (237:8): [True: 0, False: 1]
  |  Branch (237:23): [True: 0, False: 0]
  ------------------
  238|       |        // not found
  239|      0|        status = U_MISSING_RESOURCE_ERROR;
  240|       |        //ures_close(oldbundle);
  241|       |        //oldbundle = nullptr;
  242|      1|    } else {
  243|      1|        U_DEBUG_TZ_MSG(("gzbn: oldbundle= size %d, type %d, %s\n", ures_getSize(tmp), ures_getType(tmp), u_errorName(status)));
  244|      1|        tmp = ures_getByKey(top, kZONES, tmp, &status); // get Zones object from top
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      tmp = ures_getByKey(top, kZONES, tmp, &status); // get Zones object from top
  ------------------
  |  |   94|      1|#define kZONES    "Zones"
  ------------------
  245|      1|        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|      1|        oldbundle = ures_getByIndex(tmp, idx, oldbundle, &status); // get nth Zone object
  ------------------
  |  | 1660|      1|#define ures_getByIndex U_ICU_ENTRY_POINT_RENAME(ures_getByIndex)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  247|      1|        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|      1|    }
  249|      1|    ures_close(tmp);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  250|      1|    if(U_FAILURE(status)) {
  ------------------
  |  Branch (250:8): [True: 0, False: 1]
  ------------------
  251|       |        //ures_close(oldbundle);
  252|      0|        return nullptr;
  253|      1|    } else {
  254|      1|        return oldbundle;
  255|      1|    }
  256|      1|}
timezone.cpp:_ZN6icu_78L17findInStringArrayEP15UResourceBundleRKNS_13UnicodeStringER10UErrorCode:
  183|  5.90k|{
  184|  5.90k|    UnicodeString copy;
  185|  5.90k|    const char16_t *u;
  186|  5.90k|    int32_t len;
  187|       |
  188|  5.90k|    int32_t start = 0;
  189|  5.90k|    int32_t limit = ures_getSize(array);
  ------------------
  |  | 1674|  5.90k|#define ures_getSize U_ICU_ENTRY_POINT_RENAME(ures_getSize)
  |  |  ------------------
  |  |  |  |  123|  5.90k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.90k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.90k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  190|  5.90k|    int32_t mid;
  191|  5.90k|    int32_t lastMid = INT32_MAX;
  192|  5.90k|    if(U_FAILURE(status) || (limit < 1)) {
  ------------------
  |  Branch (192:8): [True: 0, False: 5.90k]
  |  Branch (192:29): [True: 0, False: 5.90k]
  ------------------
  193|      0|        return -1;
  194|      0|    }
  195|  5.90k|    U_DEBUG_TZ_MSG(("fisa: Looking for %s, between %d and %d\n", U_DEBUG_TZ_STR(UnicodeString(id).getTerminatedBuffer()), start, limit));
  196|       |
  197|  63.9k|    for (;;) {
  198|  63.9k|        mid = static_cast<int32_t>((start + limit) / 2);
  199|  63.9k|        if (lastMid == mid) {   /* Have we moved? */
  ------------------
  |  Branch (199:13): [True: 5.16k, False: 58.7k]
  ------------------
  200|  5.16k|            break;  /* We haven't moved, and it wasn't found. */
  201|  5.16k|        }
  202|  58.7k|        lastMid = mid;
  203|  58.7k|        u = ures_getStringByIndex(array, mid, &len, &status);
  ------------------
  |  | 1676|  58.7k|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|  58.7k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  58.7k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  58.7k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  204|  58.7k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (204:13): [True: 0, False: 58.7k]
  ------------------
  205|      0|            break;
  206|      0|        }
  207|  58.7k|        U_DEBUG_TZ_MSG(("tz: compare to %s, %d .. [%d] .. %d\n", U_DEBUG_TZ_STR(u), start, mid, limit));
  208|  58.7k|        copy.setTo(true, u, len);
  209|  58.7k|        int r = id.compare(copy);
  210|  58.7k|        if(r==0) {
  ------------------
  |  Branch (210:12): [True: 739, False: 58.0k]
  ------------------
  211|    739|            U_DEBUG_TZ_MSG(("fisa: found at %d\n", mid));
  212|    739|            return mid;
  213|  58.0k|        } else if(r<0) {
  ------------------
  |  Branch (213:19): [True: 32.9k, False: 25.0k]
  ------------------
  214|  32.9k|            limit = mid;
  215|  32.9k|        } else {
  216|  25.0k|            start = mid;
  217|  25.0k|        }
  218|  58.7k|    }
  219|  5.16k|    U_DEBUG_TZ_MSG(("fisa: not found\n"));
  220|  5.16k|    return -1;
  221|  5.90k|}

_ZN6icu_7821TimeZoneNamesDelegateC2ERKNS_6LocaleER10UErrorCode:
  138|  1.37k|TimeZoneNamesDelegate::TimeZoneNamesDelegate(const Locale& locale, UErrorCode& status) {
  139|  1.37k|    Mutex lock(&gTimeZoneNamesLock);
  140|  1.37k|    if (!gTimeZoneNamesCacheInitialized) {
  ------------------
  |  Branch (140:9): [True: 1, False: 1.37k]
  ------------------
  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|  1.37k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (151:9): [True: 0, False: 1.37k]
  ------------------
  152|      0|        return;
  153|      0|    }
  154|       |
  155|       |    // Check the cache, if not available, create new one and cache
  156|  1.37k|    TimeZoneNamesCacheEntry *cacheEntry = nullptr;
  157|       |
  158|  1.37k|    const char *key = locale.getName();
  159|  1.37k|    cacheEntry = static_cast<TimeZoneNamesCacheEntry*>(uhash_get(gTimeZoneNamesCache, key));
  ------------------
  |  | 1007|  1.37k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  1.37k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.37k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.37k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  160|  1.37k|    if (cacheEntry == nullptr) {
  ------------------
  |  Branch (160:9): [True: 487, False: 887]
  ------------------
  161|    487|        TimeZoneNames *tznames = nullptr;
  162|    487|        char *newKey = nullptr;
  163|       |
  164|    487|        tznames = new TimeZoneNamesImpl(locale, status);
  165|    487|        if (tznames == nullptr) {
  ------------------
  |  Branch (165:13): [True: 0, False: 487]
  ------------------
  166|      0|            status = U_MEMORY_ALLOCATION_ERROR;
  167|      0|        }
  168|    487|        if (U_SUCCESS(status)) {
  ------------------
  |  Branch (168:13): [True: 487, False: 0]
  ------------------
  169|    487|            newKey = static_cast<char*>(uprv_malloc(uprv_strlen(key) + 1));
  ------------------
  |  | 1524|    487|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    487|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    487|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    487|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          newKey = static_cast<char*>(uprv_malloc(uprv_strlen(key) + 1));
  ------------------
  |  |   37|    487|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    487|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  170|    487|            if (newKey == nullptr) {
  ------------------
  |  Branch (170:17): [True: 0, False: 487]
  ------------------
  171|      0|                status = U_MEMORY_ALLOCATION_ERROR;
  172|    487|            } else {
  173|    487|                uprv_strcpy(newKey, key);
  ------------------
  |  |   36|    487|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|    487|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  174|    487|            }
  175|    487|        }
  176|    487|        if (U_SUCCESS(status)) {
  ------------------
  |  Branch (176:13): [True: 487, False: 0]
  ------------------
  177|    487|            cacheEntry = static_cast<TimeZoneNamesCacheEntry*>(uprv_malloc(sizeof(TimeZoneNamesCacheEntry)));
  ------------------
  |  | 1524|    487|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    487|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    487|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    487|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  178|    487|            if (cacheEntry == nullptr) {
  ------------------
  |  Branch (178:17): [True: 0, False: 487]
  ------------------
  179|      0|                status = U_MEMORY_ALLOCATION_ERROR;
  180|    487|            } else {
  181|    487|                cacheEntry->names = tznames;
  182|       |                // The initial refCount is 2 because the entry is referenced both
  183|       |                // by this TimeZoneDelegate and by the gTimeZoneNamesCache
  184|    487|                cacheEntry->refCount = 2;
  185|    487|                cacheEntry->lastAccess = static_cast<double>(uprv_getUTCtime());
  ------------------
  |  | 1512|    487|#define uprv_getUTCtime U_ICU_ENTRY_POINT_RENAME(uprv_getUTCtime)
  |  |  ------------------
  |  |  |  |  123|    487|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    487|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    487|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  186|       |
  187|    487|                uhash_put(gTimeZoneNamesCache, newKey, cacheEntry, &status);
  ------------------
  |  | 1032|    487|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|    487|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    487|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    487|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  188|    487|            }
  189|    487|        }
  190|    487|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (190:13): [True: 0, False: 487]
  ------------------
  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|    887|    } else {
  201|       |        // Update the reference count
  202|    887|        cacheEntry->refCount++;
  203|    887|        cacheEntry->lastAccess = static_cast<double>(uprv_getUTCtime());
  ------------------
  |  | 1512|    887|#define uprv_getUTCtime U_ICU_ENTRY_POINT_RENAME(uprv_getUTCtime)
  |  |  ------------------
  |  |  |  |  123|    887|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    887|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    887|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  204|    887|    }
  205|  1.37k|    gAccessCount++;
  206|  1.37k|    if (gAccessCount >= SWEEP_INTERVAL) {
  ------------------
  |  |   41|  1.37k|#define SWEEP_INTERVAL 100
  ------------------
  |  Branch (206:9): [True: 13, False: 1.36k]
  ------------------
  207|       |        // sweep
  208|     13|        sweepCache();
  209|     13|        gAccessCount = 0;
  210|     13|    }
  211|  1.37k|    fTZnamesCacheEntry = cacheEntry;
  212|  1.37k|}
_ZN6icu_7821TimeZoneNamesDelegateD2Ev:
  214|  1.37k|TimeZoneNamesDelegate::~TimeZoneNamesDelegate() {
  215|  1.37k|    umtx_lock(&gTimeZoneNamesLock);
  ------------------
  |  | 1250|  1.37k|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  123|  1.37k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.37k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.37k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  216|  1.37k|    {
  217|  1.37k|        if (fTZnamesCacheEntry) {
  ------------------
  |  Branch (217:13): [True: 1.37k, False: 0]
  ------------------
  218|  1.37k|            if (fTZnamesCacheEntry->refCount <= 1) {
  ------------------
  |  Branch (218:17): [True: 0, False: 1.37k]
  ------------------
  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|  1.37k|            } else {
  222|       |                // Just decrement the reference count
  223|  1.37k|                fTZnamesCacheEntry->refCount--;
  224|  1.37k|            }
  225|  1.37k|        }
  226|  1.37k|    }
  227|  1.37k|    umtx_unlock(&gTimeZoneNamesLock);
  ------------------
  |  | 1251|  1.37k|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  123|  1.37k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.37k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.37k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  228|  1.37k|}
_ZNK6icu_7821TimeZoneNamesDelegate23getAvailableMetaZoneIDsER10UErrorCode:
  260|  1.37k|TimeZoneNamesDelegate::getAvailableMetaZoneIDs(UErrorCode& status) const {
  261|  1.37k|    return fTZnamesCacheEntry->names->getAvailableMetaZoneIDs(status);
  262|  1.37k|}
_ZNK6icu_7821TimeZoneNamesDelegate23getAvailableMetaZoneIDsERKNS_13UnicodeStringER10UErrorCode:
  265|  1.37k|TimeZoneNamesDelegate::getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const {
  266|  1.37k|    return fTZnamesCacheEntry->names->getAvailableMetaZoneIDs(tzID, status);
  267|  1.37k|}
_ZNK6icu_7821TimeZoneNamesDelegate13getMetaZoneIDERKNS_13UnicodeStringEdRS1_:
  270|  2.72k|TimeZoneNamesDelegate::getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) const {
  271|  2.72k|    return fTZnamesCacheEntry->names->getMetaZoneID(tzID, date, mzID);
  272|  2.72k|}
_ZNK6icu_7821TimeZoneNamesDelegate22getMetaZoneDisplayNameERKNS_13UnicodeStringE17UTimeZoneNameTypeRS1_:
  280|  2.72k|TimeZoneNamesDelegate::getMetaZoneDisplayName(const UnicodeString& mzID, UTimeZoneNameType type, UnicodeString& name) const {
  281|  2.72k|    return fTZnamesCacheEntry->names->getMetaZoneDisplayName(mzID, type, name);
  282|  2.72k|}
_ZNK6icu_7821TimeZoneNamesDelegate22getTimeZoneDisplayNameERKNS_13UnicodeStringE17UTimeZoneNameTypeRS1_:
  285|  2.74k|TimeZoneNamesDelegate::getTimeZoneDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, UnicodeString& name) const {
  286|  2.74k|    return fTZnamesCacheEntry->names->getTimeZoneDisplayName(tzID, type, name);
  287|  2.74k|}
_ZNK6icu_7821TimeZoneNamesDelegate23getExemplarLocationNameERKNS_13UnicodeStringERS1_:
  290|  1.37k|TimeZoneNamesDelegate::getExemplarLocationName(const UnicodeString& tzID, UnicodeString& name) const {
  291|  1.37k|    return fTZnamesCacheEntry->names->getExemplarLocationName(tzID, name);
  292|  1.37k|}
_ZN6icu_7813TimeZoneNamesD2Ev:
  312|  2.74k|TimeZoneNames::~TimeZoneNames() {
  313|  2.74k|}
_ZN6icu_7813TimeZoneNames14createInstanceERKNS_6LocaleER10UErrorCode:
  316|  1.37k|TimeZoneNames::createInstance(const Locale& locale, UErrorCode& status) {
  317|  1.37k|    TimeZoneNames *instance = nullptr;
  318|  1.37k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (318:9): [True: 1.37k, False: 0]
  ------------------
  319|  1.37k|        instance = new TimeZoneNamesDelegate(locale, status);
  320|  1.37k|        if (instance == nullptr && U_SUCCESS(status)) {
  ------------------
  |  Branch (320:13): [True: 0, False: 1.37k]
  |  Branch (320:36): [True: 0, False: 0]
  ------------------
  321|      0|            status = U_MEMORY_ALLOCATION_ERROR;
  322|      0|        }
  323|  1.37k|    }
  324|  1.37k|    return instance;
  325|  1.37k|}
_ZN6icu_7813TimeZoneNames18createTZDBInstanceERKNS_6LocaleER10UErrorCode:
  328|  1.37k|TimeZoneNames::createTZDBInstance(const Locale& locale, UErrorCode& status) {
  329|  1.37k|    TimeZoneNames *instance = nullptr;
  330|  1.37k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (330:9): [True: 1.37k, False: 0]
  ------------------
  331|  1.37k|        instance = new TZDBTimeZoneNames(locale);
  332|  1.37k|        if (instance == nullptr && U_SUCCESS(status)) {
  ------------------
  |  Branch (332:13): [True: 0, False: 1.37k]
  |  Branch (332:36): [True: 0, False: 0]
  ------------------
  333|      0|            status = U_MEMORY_ALLOCATION_ERROR;
  334|      0|        }
  335|  1.37k|    }
  336|  1.37k|    return instance;
  337|  1.37k|}
_ZNK6icu_7813TimeZoneNames23getExemplarLocationNameERKNS_13UnicodeStringERS1_:
  340|  1.37k|TimeZoneNames::getExemplarLocationName(const UnicodeString& tzID, UnicodeString& name) const {
  341|  1.37k|    return TimeZoneNamesImpl::getDefaultExemplarLocationName(tzID, name);
  342|  1.37k|}
_ZNK6icu_7813TimeZoneNames14getDisplayNameERKNS_13UnicodeStringE17UTimeZoneNameTypedRS1_:
  345|  2.74k|TimeZoneNames::getDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, UDate date, UnicodeString& name) const {
  346|  2.74k|    getTimeZoneDisplayName(tzID, type, name);
  347|  2.74k|    if (name.isEmpty()) {
  ------------------
  |  Branch (347:9): [True: 2.72k, False: 22]
  ------------------
  348|  2.72k|        char16_t mzIDBuf[32];
  349|  2.72k|        UnicodeString mzID(mzIDBuf, 0, UPRV_LENGTHOF(mzIDBuf));
  ------------------
  |  |   99|  2.72k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  350|  2.72k|        getMetaZoneID(tzID, date, mzID);
  351|  2.72k|        getMetaZoneDisplayName(mzID, type, name);
  352|  2.72k|    }
  353|  2.74k|    return name;
  354|  2.74k|}
tznames.cpp:_ZN6icu_78L10sweepCacheEv:
   89|     13|static void sweepCache() {
   90|     13|    int32_t pos = UHASH_FIRST;
  ------------------
  |  |  610|     13|#define UHASH_FIRST (-1)
  ------------------
   91|     13|    const UHashElement* elem;
   92|     13|    double now = static_cast<double>(uprv_getUTCtime());
  ------------------
  |  | 1512|     13|#define uprv_getUTCtime U_ICU_ENTRY_POINT_RENAME(uprv_getUTCtime)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   93|       |
   94|  4.69k|    while ((elem = uhash_nextElement(gTimeZoneNamesCache, &pos)) != nullptr) {
  ------------------
  |  | 1029|  4.69k|#define uhash_nextElement U_ICU_ENTRY_POINT_RENAME(uhash_nextElement)
  |  |  ------------------
  |  |  |  |  123|  4.69k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.69k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.69k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (94:12): [True: 4.68k, False: 13]
  ------------------
   95|  4.68k|        TimeZoneNamesCacheEntry* entry = static_cast<TimeZoneNamesCacheEntry*>(elem->value.pointer);
   96|  4.68k|        if (entry->refCount <= 0 && (now - entry->lastAccess) > CACHE_EXPIRATION) {
  ------------------
  |  |   47|      0|#define CACHE_EXPIRATION 180000.0
  ------------------
  |  Branch (96:13): [True: 0, False: 4.68k]
  |  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|  4.68k|    }
  101|     13|}

_ZN6icu_7811TextTrieMapC2EaPFvPvE:
  190|    487|: fIgnoreCase(ignoreCase), fNodes(nullptr), fNodesCapacity(0), fNodesCount(0), 
  191|    487|  fLazyContents(nullptr), fIsEmpty(true), fValueDeleter(valueDeleter) {
  192|    487|}
_ZN6icu_786ZNames12ZNamesLoaderD2Ev:
  856|  3.63k|ZNames::ZNamesLoader::~ZNamesLoader() {}
_ZN6icu_7822MetaZoneIDsEnumerationC2Ev:
  883|  2.81k|: fLen(0), fPos(0), fMetaZoneIDs(nullptr), fLocalVector(nullptr) {
  884|  2.81k|}
_ZN6icu_7822MetaZoneIDsEnumerationC2ERKNS_7UVectorE:
  887|  2.74k|: fPos(0), fMetaZoneIDs(&mzIDs), fLocalVector(nullptr) {
  888|  2.74k|    fLen = fMetaZoneIDs->size();
  889|  2.74k|}
_ZN6icu_7822MetaZoneIDsEnumerationC2ENS_12LocalPointerINS_7UVectorEEE:
  892|    422|: fLen(0), fPos(0), fMetaZoneIDs(nullptr), fLocalVector(std::move(mzIDs)) {
  893|    422|    fMetaZoneIDs = fLocalVector.getAlias();
  894|    422|    if (fMetaZoneIDs) {
  ------------------
  |  Branch (894:9): [True: 422, False: 0]
  ------------------
  895|    422|        fLen = fMetaZoneIDs->size();
  896|    422|    }
  897|    422|}
_ZN6icu_7822MetaZoneIDsEnumeration5snextER10UErrorCode:
  900|    487|MetaZoneIDsEnumeration::snext(UErrorCode& status) {
  901|    487|    if (U_SUCCESS(status) && fMetaZoneIDs != nullptr && fPos < fLen) {
  ------------------
  |  Branch (901:9): [True: 487, False: 0]
  |  Branch (901:30): [True: 0, False: 487]
  |  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|    487|    return nullptr;
  906|    487|}
_ZN6icu_7822MetaZoneIDsEnumerationD2Ev:
  918|  5.98k|MetaZoneIDsEnumeration::~MetaZoneIDsEnumeration() {
  919|  5.98k|}
_ZN6icu_7817TimeZoneNamesImplC2ERKNS_6LocaleER10UErrorCode:
 1026|    487|: fLocale(locale),
 1027|    487|  fZoneStrings(nullptr),
 1028|    487|  fTZNamesMap(nullptr),
 1029|    487|  fMZNamesMap(nullptr),
 1030|    487|  fNamesTrieFullyLoaded(false),
 1031|    487|  fNamesFullyLoaded(false),
 1032|    487|  fNamesTrie(true, deleteZNameInfo) {
 1033|    487|    initialize(locale, status);
 1034|    487|}
_ZN6icu_7817TimeZoneNamesImpl10initializeERKNS_6LocaleER10UErrorCode:
 1037|    487|TimeZoneNamesImpl::initialize(const Locale& locale, UErrorCode& status) {
 1038|    487|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1038:9): [True: 0, False: 487]
  ------------------
 1039|      0|        return;
 1040|      0|    }
 1041|       |
 1042|       |    // Load zoneStrings bundle
 1043|    487|    UErrorCode tmpsts = U_ZERO_ERROR;   // OK with fallback warning..
 1044|    487|    fZoneStrings = ures_open(U_ICUDATA_ZONE, locale.getName(), &tmpsts);
  ------------------
  |  | 1691|    487|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|    487|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    487|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    487|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  fZoneStrings = ures_open(U_ICUDATA_ZONE, locale.getName(), &tmpsts);
  ------------------
  |  |   22|    487|#define U_ICUDATA_ZONE U_ICUDATA_NAME U_TREE_SEPARATOR_STRING "zone"
  |  |  ------------------
  |  |  |  |  154|    487|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  ------------------
 1045|    487|    fZoneStrings = ures_getByKeyWithFallback(fZoneStrings, gZoneStrings, fZoneStrings, &tmpsts);
  ------------------
  |  | 1662|    487|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|    487|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    487|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    487|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1046|    487|    if (U_FAILURE(tmpsts)) {
  ------------------
  |  Branch (1046:9): [True: 0, False: 487]
  ------------------
 1047|      0|        status = tmpsts;
 1048|      0|        cleanup();
 1049|      0|        return;
 1050|      0|    }
 1051|       |
 1052|       |    // Initialize hashtables holding time zone/meta zone names
 1053|    487|    fMZNamesMap = uhash_open(uhash_hashUChars, uhash_compareUChars, nullptr, &status);
  ------------------
  |  | 1030|    487|#define uhash_open U_ICU_ENTRY_POINT_RENAME(uhash_open)
  |  |  ------------------
  |  |  |  |  123|    487|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    487|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    487|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  fMZNamesMap = uhash_open(uhash_hashUChars, uhash_compareUChars, nullptr, &status);
  ------------------
  |  | 1016|    487|#define uhash_hashUChars U_ICU_ENTRY_POINT_RENAME(uhash_hashUChars)
  |  |  ------------------
  |  |  |  |  123|    487|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    487|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    487|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  fMZNamesMap = uhash_open(uhash_hashUChars, uhash_compareUChars, nullptr, &status);
  ------------------
  |  |  998|    487|#define uhash_compareUChars U_ICU_ENTRY_POINT_RENAME(uhash_compareUChars)
  |  |  ------------------
  |  |  |  |  123|    487|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    487|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    487|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1054|    487|    fTZNamesMap = uhash_open(uhash_hashUChars, uhash_compareUChars, nullptr, &status);
  ------------------
  |  | 1030|    487|#define uhash_open U_ICU_ENTRY_POINT_RENAME(uhash_open)
  |  |  ------------------
  |  |  |  |  123|    487|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    487|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    487|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  fTZNamesMap = uhash_open(uhash_hashUChars, uhash_compareUChars, nullptr, &status);
  ------------------
  |  | 1016|    487|#define uhash_hashUChars U_ICU_ENTRY_POINT_RENAME(uhash_hashUChars)
  |  |  ------------------
  |  |  |  |  123|    487|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    487|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    487|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  fTZNamesMap = uhash_open(uhash_hashUChars, uhash_compareUChars, nullptr, &status);
  ------------------
  |  |  998|    487|#define uhash_compareUChars U_ICU_ENTRY_POINT_RENAME(uhash_compareUChars)
  |  |  ------------------
  |  |  |  |  123|    487|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    487|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    487|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1055|    487|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1055:9): [True: 0, False: 487]
  ------------------
 1056|      0|        cleanup();
 1057|      0|        return;
 1058|      0|    }
 1059|       |
 1060|    487|    uhash_setValueDeleter(fMZNamesMap, deleteZNames);
  ------------------
  |  | 1044|    487|#define uhash_setValueDeleter U_ICU_ENTRY_POINT_RENAME(uhash_setValueDeleter)
  |  |  ------------------
  |  |  |  |  123|    487|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    487|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    487|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1061|    487|    uhash_setValueDeleter(fTZNamesMap, deleteZNames);
  ------------------
  |  | 1044|    487|#define uhash_setValueDeleter U_ICU_ENTRY_POINT_RENAME(uhash_setValueDeleter)
  |  |  ------------------
  |  |  |  |  123|    487|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    487|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    487|#       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|    487|    TimeZone *tz = TimeZone::createDefault();
 1066|    487|    const char16_t *tzID = ZoneMeta::getCanonicalCLDRID(*tz);
 1067|    487|    if (tzID != nullptr) {
  ------------------
  |  Branch (1067:9): [True: 487, False: 0]
  ------------------
 1068|    487|        loadStrings(UnicodeString(tzID), status);
 1069|    487|    }
 1070|    487|    delete tz;
 1071|    487|}
_ZN6icu_7817TimeZoneNamesImpl11loadStringsERKNS_13UnicodeStringER10UErrorCode:
 1078|    487|TimeZoneNamesImpl::loadStrings(const UnicodeString& tzCanonicalID, UErrorCode& status) {
 1079|    487|    loadTimeZoneNames(tzCanonicalID, status);
 1080|    487|    LocalPointer<StringEnumeration> mzIDs(getAvailableMetaZoneIDs(tzCanonicalID, status));
 1081|    487|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1081:9): [True: 0, False: 487]
  ------------------
 1082|    487|    U_ASSERT(!mzIDs.isNull());
  ------------------
  |  |   35|    487|#   define U_ASSERT(exp) (void)0
  ------------------
 1083|       |
 1084|    487|    const UnicodeString *mzID;
 1085|    487|    while (((mzID = mzIDs->snext(status)) != nullptr) && U_SUCCESS(status)) {
  ------------------
  |  Branch (1085:12): [True: 0, False: 487]
  |  Branch (1085:58): [True: 0, False: 0]
  ------------------
 1086|      0|        loadMetaZoneNames(*mzID, status);
 1087|      0|    }
 1088|    487|}
_ZNK6icu_7817TimeZoneNamesImpl23getAvailableMetaZoneIDsER10UErrorCode:
 1126|  1.37k|TimeZoneNamesImpl::getAvailableMetaZoneIDs(UErrorCode& status) const {
 1127|  1.37k|    return TimeZoneNamesImpl::_getAvailableMetaZoneIDs(status);
 1128|  1.37k|}
_ZN6icu_7817TimeZoneNamesImpl24_getAvailableMetaZoneIDsER10UErrorCode:
 1132|  2.74k|TimeZoneNamesImpl::_getAvailableMetaZoneIDs(UErrorCode& status) {
 1133|  2.74k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1133:9): [True: 0, False: 2.74k]
  ------------------
 1134|      0|        return nullptr;
 1135|      0|    }
 1136|  2.74k|    const UVector* mzIDs = ZoneMeta::getAvailableMetazoneIDs();
 1137|  2.74k|    if (mzIDs == nullptr) {
  ------------------
  |  Branch (1137:9): [True: 0, False: 2.74k]
  ------------------
 1138|      0|        return new MetaZoneIDsEnumeration();
 1139|      0|    }
 1140|  2.74k|    return new MetaZoneIDsEnumeration(*mzIDs);
 1141|  2.74k|}
_ZNK6icu_7817TimeZoneNamesImpl23getAvailableMetaZoneIDsERKNS_13UnicodeStringER10UErrorCode:
 1144|  1.86k|TimeZoneNamesImpl::getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const {
 1145|  1.86k|    return TimeZoneNamesImpl::_getAvailableMetaZoneIDs(tzID, status);
 1146|  1.86k|}
_ZN6icu_7817TimeZoneNamesImpl24_getAvailableMetaZoneIDsERKNS_13UnicodeStringER10UErrorCode:
 1150|  3.23k|TimeZoneNamesImpl::_getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) {
 1151|  3.23k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1151:9): [True: 0, False: 3.23k]
  ------------------
 1152|      0|        return nullptr;
 1153|      0|    }
 1154|  3.23k|    const UVector* mappings = ZoneMeta::getMetazoneMappings(tzID);
 1155|  3.23k|    if (mappings == nullptr) {
  ------------------
  |  Branch (1155:9): [True: 2.81k, False: 422]
  ------------------
 1156|  2.81k|        return new MetaZoneIDsEnumeration();
 1157|  2.81k|    }
 1158|       |
 1159|    422|    LocalPointer<MetaZoneIDsEnumeration> senum;
 1160|    422|    LocalPointer<UVector> mzIDs(new UVector(nullptr, uhash_compareUChars, status), status);
  ------------------
  |  |  998|    422|#define uhash_compareUChars U_ICU_ENTRY_POINT_RENAME(uhash_compareUChars)
  |  |  ------------------
  |  |  |  |  123|    422|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    422|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    422|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1161|    422|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1161:9): [True: 422, False: 0]
  ------------------
 1162|    422|        U_ASSERT(mzIDs.isValid());
  ------------------
  |  |   35|    422|#   define U_ASSERT(exp) (void)0
  ------------------
 1163|  1.23k|        for (int32_t i = 0; U_SUCCESS(status) && i < mappings->size(); i++) {
  ------------------
  |  Branch (1163:29): [True: 1.23k, False: 0]
  |  Branch (1163:50): [True: 816, False: 422]
  ------------------
 1164|       |
 1165|    816|            OlsonToMetaMappingEntry* map = static_cast<OlsonToMetaMappingEntry*>(mappings->elementAt(i));
 1166|    816|            const char16_t *mzID = map->mzid;
 1167|    816|            if (!mzIDs->contains((void *)mzID)) {
  ------------------
  |  Branch (1167:17): [True: 604, False: 212]
  ------------------
 1168|    604|                mzIDs->addElement((void *)mzID, status);
 1169|    604|            }
 1170|    816|        }
 1171|    422|        if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1171:13): [True: 422, False: 0]
  ------------------
 1172|    422|            senum.adoptInsteadAndCheckErrorCode(new MetaZoneIDsEnumeration(std::move(mzIDs)), status);
 1173|    422|        }
 1174|    422|    }
 1175|    422|    return U_SUCCESS(status) ? senum.orphan() : nullptr;
  ------------------
  |  Branch (1175:12): [True: 422, False: 0]
  ------------------
 1176|  3.23k|}
_ZNK6icu_7817TimeZoneNamesImpl13getMetaZoneIDERKNS_13UnicodeStringEdRS1_:
 1179|  2.72k|TimeZoneNamesImpl::getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) const {
 1180|  2.72k|    return TimeZoneNamesImpl::_getMetaZoneID(tzID, date, mzID);
 1181|  2.72k|}
_ZN6icu_7817TimeZoneNamesImpl14_getMetaZoneIDERKNS_13UnicodeStringEdRS1_:
 1185|  5.47k|TimeZoneNamesImpl::_getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) {
 1186|  5.47k|    ZoneMeta::getMetazoneID(tzID, date, mzID);
 1187|  5.47k|    return mzID;
 1188|  5.47k|}
_ZNK6icu_7817TimeZoneNamesImpl22getMetaZoneDisplayNameERKNS_13UnicodeStringE17UTimeZoneNameTypeRS1_:
 1205|  2.72k|                                          UnicodeString& name) const {
 1206|  2.72k|    name.setToBogus();  // cleanup result.
 1207|  2.72k|    if (mzID.isEmpty()) {
  ------------------
  |  Branch (1207:9): [True: 1.34k, False: 1.37k]
  ------------------
 1208|  1.34k|        return name;
 1209|  1.34k|    }
 1210|       |
 1211|  1.37k|    ZNames *znames = nullptr;
 1212|  1.37k|    TimeZoneNamesImpl *nonConstThis = const_cast<TimeZoneNamesImpl *>(this);
 1213|       |
 1214|  1.37k|    {
 1215|  1.37k|        Mutex lock(&gDataMutex);
 1216|  1.37k|        UErrorCode status = U_ZERO_ERROR;
 1217|  1.37k|        znames = nonConstThis->loadMetaZoneNames(mzID, status);
 1218|  1.37k|        if (U_FAILURE(status)) { return name; }
  ------------------
  |  Branch (1218:13): [True: 424, False: 955]
  ------------------
 1219|  1.37k|    }
 1220|       |
 1221|    955|    if (znames != nullptr) {
  ------------------
  |  Branch (1221:9): [True: 171, False: 784]
  ------------------
 1222|    171|        const char16_t* s = znames->getName(type);
 1223|    171|        if (s != nullptr) {
  ------------------
  |  Branch (1223:13): [True: 19, False: 152]
  ------------------
 1224|     19|            name.setTo(true, s, -1);
 1225|     19|        }
 1226|    171|    }
 1227|    955|    return name;
 1228|  1.37k|}
_ZNK6icu_7817TimeZoneNamesImpl22getTimeZoneDisplayNameERKNS_13UnicodeStringE17UTimeZoneNameTypeRS1_:
 1231|  2.74k|TimeZoneNamesImpl::getTimeZoneDisplayName(const UnicodeString& tzID, UTimeZoneNameType type, UnicodeString& name) const {
 1232|  2.74k|    name.setToBogus();  // cleanup result.
 1233|  2.74k|    if (tzID.isEmpty()) {
  ------------------
  |  Branch (1233:9): [True: 322, False: 2.42k]
  ------------------
 1234|    322|        return name;
 1235|    322|    }
 1236|       |
 1237|  2.42k|    ZNames *tznames = nullptr;
 1238|  2.42k|    TimeZoneNamesImpl *nonConstThis = const_cast<TimeZoneNamesImpl *>(this);
 1239|       |
 1240|  2.42k|    {
 1241|  2.42k|        Mutex lock(&gDataMutex);
 1242|  2.42k|        UErrorCode status = U_ZERO_ERROR;
 1243|  2.42k|        tznames = nonConstThis->loadTimeZoneNames(tzID, status);
 1244|  2.42k|        if (U_FAILURE(status)) { return name; }
  ------------------
  |  Branch (1244:13): [True: 808, False: 1.61k]
  ------------------
 1245|  2.42k|    }
 1246|       |
 1247|  1.61k|    if (tznames != nullptr) {
  ------------------
  |  Branch (1247:9): [True: 1.61k, False: 0]
  ------------------
 1248|  1.61k|        const char16_t *s = tznames->getName(type);
 1249|  1.61k|        if (s != nullptr) {
  ------------------
  |  Branch (1249:13): [True: 46, False: 1.57k]
  ------------------
 1250|     46|            name.setTo(true, s, -1);
 1251|     46|        }
 1252|  1.61k|    }
 1253|  1.61k|    return name;
 1254|  2.42k|}
_ZNK6icu_7817TimeZoneNamesImpl23getExemplarLocationNameERKNS_13UnicodeStringERS1_:
 1257|  1.37k|TimeZoneNamesImpl::getExemplarLocationName(const UnicodeString& tzID, UnicodeString& name) const {
 1258|  1.37k|    name.setToBogus();  // cleanup result.
 1259|  1.37k|    const char16_t* locName = nullptr;
 1260|  1.37k|    ZNames *tznames = nullptr;
 1261|  1.37k|    TimeZoneNamesImpl *nonConstThis = const_cast<TimeZoneNamesImpl *>(this);
 1262|       |
 1263|  1.37k|    {
 1264|  1.37k|        Mutex lock(&gDataMutex);
 1265|  1.37k|        UErrorCode status = U_ZERO_ERROR;
 1266|  1.37k|        tznames = nonConstThis->loadTimeZoneNames(tzID, status);
 1267|  1.37k|        if (U_FAILURE(status)) { return name; }
  ------------------
  |  Branch (1267:13): [True: 404, False: 970]
  ------------------
 1268|  1.37k|    }
 1269|       |
 1270|    970|    if (tznames != nullptr) {
  ------------------
  |  Branch (1270:9): [True: 970, False: 0]
  ------------------
 1271|    970|        locName = tznames->getName(UTZNM_EXEMPLAR_LOCATION);
 1272|    970|    }
 1273|    970|    if (locName != nullptr) {
  ------------------
  |  Branch (1273:9): [True: 266, False: 704]
  ------------------
 1274|    266|        name.setTo(true, locName, -1);
 1275|    266|    }
 1276|       |
 1277|    970|    return name;
 1278|  1.37k|}
_ZN6icu_7817TimeZoneNamesImpl17loadMetaZoneNamesERKNS_13UnicodeStringER10UErrorCode:
 1312|  1.37k|TimeZoneNamesImpl::loadMetaZoneNames(const UnicodeString& mzID, UErrorCode& status) {
 1313|  1.37k|    if (U_FAILURE(status)) { return nullptr; }
  ------------------
  |  Branch (1313:9): [True: 0, False: 1.37k]
  ------------------
 1314|  1.37k|    if (mzID.length() > ZID_KEY_MAX - MZ_PREFIX_LEN) {
  ------------------
  |  |   42|  1.37k|#define ZID_KEY_MAX  128
  ------------------
                  if (mzID.length() > ZID_KEY_MAX - MZ_PREFIX_LEN) {
  ------------------
  |  |   43|  1.37k|#define MZ_PREFIX_LEN 5
  ------------------
  |  Branch (1314:9): [True: 424, False: 955]
  ------------------
 1315|    424|        status = U_INTERNAL_PROGRAM_ERROR;
 1316|    424|        return nullptr;
 1317|    424|    }
 1318|       |
 1319|    955|    char16_t mzIDKey[ZID_KEY_MAX + 1];
 1320|    955|    mzID.extract(mzIDKey, ZID_KEY_MAX, status);
  ------------------
  |  |   42|    955|#define ZID_KEY_MAX  128
  ------------------
 1321|    955|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1321:9): [True: 0, False: 955]
  ------------------
 1322|      0|        return nullptr;
 1323|      0|    }
 1324|    955|    mzIDKey[mzID.length()] = 0;
 1325|       |
 1326|    955|    void* mznames = uhash_get(fMZNamesMap, mzIDKey);
  ------------------
  |  | 1007|    955|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|    955|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    955|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    955|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1327|    955|    if (mznames == nullptr) {
  ------------------
  |  Branch (1327:9): [True: 912, False: 43]
  ------------------
 1328|    912|        ZNames::ZNamesLoader loader;
 1329|    912|        loader.loadMetaZone(fZoneStrings, mzID, status);
 1330|    912|        mznames = ZNames::createMetaZoneAndPutInCache(fMZNamesMap, loader.getNames(), mzID, status);
 1331|    912|        if (U_FAILURE(status)) { return nullptr; }
  ------------------
  |  Branch (1331:13): [True: 0, False: 912]
  ------------------
 1332|    912|    }
 1333|       |
 1334|    955|    if (mznames != EMPTY) {
  ------------------
  |  Branch (1334:9): [True: 171, False: 784]
  ------------------
 1335|    171|        return static_cast<ZNames*>(mznames);
 1336|    784|    } else {
 1337|    784|        return nullptr;
 1338|    784|    }
 1339|    955|}
_ZN6icu_7817TimeZoneNamesImpl17loadTimeZoneNamesERKNS_13UnicodeStringER10UErrorCode:
 1345|  4.28k|TimeZoneNamesImpl::loadTimeZoneNames(const UnicodeString& tzID, UErrorCode& status) {
 1346|  4.28k|    if (U_FAILURE(status)) { return nullptr; }
  ------------------
  |  Branch (1346:9): [True: 0, False: 4.28k]
  ------------------
 1347|  4.28k|    if (tzID.length() > ZID_KEY_MAX) {
  ------------------
  |  |   42|  4.28k|#define ZID_KEY_MAX  128
  ------------------
  |  Branch (1347:9): [True: 1.21k, False: 3.07k]
  ------------------
 1348|  1.21k|        status = U_INTERNAL_PROGRAM_ERROR;
 1349|  1.21k|        return nullptr;
 1350|  1.21k|    }
 1351|       |
 1352|  3.07k|    char16_t tzIDKey[ZID_KEY_MAX + 1];
 1353|  3.07k|    int32_t tzIDKeyLen = tzID.extract(tzIDKey, ZID_KEY_MAX, status);
  ------------------
  |  |   42|  3.07k|#define ZID_KEY_MAX  128
  ------------------
 1354|  3.07k|    U_ASSERT(U_SUCCESS(status));   // already checked length above
  ------------------
  |  |   35|  3.07k|#   define U_ASSERT(exp) (void)0
  ------------------
 1355|  3.07k|    tzIDKey[tzIDKeyLen] = 0;
 1356|       |
 1357|  3.07k|    void *tznames = uhash_get(fTZNamesMap, tzIDKey);
  ------------------
  |  | 1007|  3.07k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  3.07k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.07k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.07k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1358|  3.07k|    if (tznames == nullptr) {
  ------------------
  |  Branch (1358:9): [True: 2.72k, False: 354]
  ------------------
 1359|  2.72k|        ZNames::ZNamesLoader loader;
 1360|  2.72k|        loader.loadTimeZone(fZoneStrings, tzID, status);
 1361|  2.72k|        tznames = ZNames::createTimeZoneAndPutInCache(fTZNamesMap, loader.getNames(), tzID, status);
 1362|  2.72k|        if (U_FAILURE(status)) { return nullptr; }
  ------------------
  |  Branch (1362:13): [True: 0, False: 2.72k]
  ------------------
 1363|  2.72k|    }
 1364|       |
 1365|       |    // tznames is never EMPTY
 1366|  3.07k|    return static_cast<ZNames*>(tznames);
 1367|  3.07k|}
_ZN6icu_7817TimeZoneNamesImpl30getDefaultExemplarLocationNameERKNS_13UnicodeStringERS1_:
 1706|  4.01k|TimeZoneNamesImpl::getDefaultExemplarLocationName(const UnicodeString& tzID, UnicodeString& name) {
 1707|  4.01k|    if (tzID.isEmpty() || tzID.startsWith(gEtcPrefix, gEtcPrefixLen)
  ------------------
  |  Branch (1707:9): [True: 322, False: 3.69k]
  |  Branch (1707:9): [True: 876, False: 3.14k]
  |  Branch (1707:27): [True: 520, False: 3.17k]
  ------------------
 1708|  4.01k|        || tzID.startsWith(gSystemVPrefix, gSystemVPrefixLen) || tzID.indexOf(gRiyadh8, gRiyadh8Len, 0) > 0) {
  ------------------
  |  Branch (1708:12): [True: 0, False: 3.17k]
  |  Branch (1708:66): [True: 34, False: 3.14k]
  ------------------
 1709|    876|        name.setToBogus();
 1710|    876|        return name;
 1711|    876|    }
 1712|       |
 1713|  3.14k|    int32_t sep = tzID.lastIndexOf(static_cast<char16_t>(0x2F) /* '/' */);
 1714|  3.14k|    if (sep > 0 && sep + 1 < tzID.length()) {
  ------------------
  |  Branch (1714:9): [True: 1.38k, False: 1.75k]
  |  Branch (1714:20): [True: 1.24k, False: 135]
  ------------------
 1715|  1.24k|        name.setTo(tzID, sep + 1);
 1716|  1.24k|        name.findAndReplace(UnicodeString(static_cast<char16_t>(0x5f) /* _ */),
 1717|  1.24k|                            UnicodeString(static_cast<char16_t>(0x20) /* space */));
 1718|  1.89k|    } else {
 1719|  1.89k|        name.setToBogus();
 1720|  1.89k|    }
 1721|  3.14k|    return name;
 1722|  4.01k|}
_ZN6icu_789TZDBNamesC2EPPKDsPPci:
 1749|     52|    :   fNames(names),
 1750|     52|        fRegions(regions),
 1751|     52|        fNumRegions(numRegions) {
 1752|     52|}
_ZN6icu_789TZDBNamesD2Ev:
 1754|      2|TZDBNames::~TZDBNames() {
 1755|      2|    if (fNames != nullptr) {
  ------------------
  |  Branch (1755:9): [True: 2, False: 0]
  ------------------
 1756|      2|        uprv_free(fNames);
  ------------------
  |  | 1503|      2|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1757|      2|    }
 1758|      2|    if (fRegions != nullptr) {
  ------------------
  |  Branch (1758:9): [True: 1, False: 1]
  ------------------
 1759|      1|        char **p = fRegions;
 1760|      3|        for (int32_t i = 0; i < fNumRegions; p++, i++) {
  ------------------
  |  Branch (1760:29): [True: 2, False: 1]
  ------------------
 1761|      2|            uprv_free(*p);
  ------------------
  |  | 1503|      2|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1762|      2|        }
 1763|      1|        uprv_free(fRegions);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1764|      1|    }
 1765|      2|}
_ZN6icu_789TZDBNames14createInstanceEP15UResourceBundlePKc:
 1768|    489|TZDBNames::createInstance(UResourceBundle* rb, const char* key) {
 1769|    489|    if (rb == nullptr || key == nullptr || *key == 0) {
  ------------------
  |  Branch (1769:9): [True: 0, False: 489]
  |  Branch (1769:26): [True: 0, False: 489]
  |  Branch (1769:44): [True: 0, False: 489]
  ------------------
 1770|      0|        return nullptr;
 1771|      0|    }
 1772|       |
 1773|    489|    UErrorCode status = U_ZERO_ERROR;
 1774|       |
 1775|    489|    const char16_t **names = nullptr;
 1776|    489|    char** regions = nullptr;
 1777|    489|    int32_t numRegions = 0;
 1778|       |
 1779|    489|    int32_t len = 0;
 1780|       |
 1781|    489|    UResourceBundle* rbTable = nullptr;
 1782|    489|    rbTable = ures_getByKey(rb, key, rbTable, &status);
  ------------------
  |  | 1661|    489|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|    489|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    489|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    489|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1783|    489|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1783:9): [True: 437, False: 52]
  ------------------
 1784|    437|        return nullptr;
 1785|    437|    }
 1786|       |
 1787|     52|    names = static_cast<const char16_t**>(uprv_malloc(sizeof(const char16_t*) * TZDBNAMES_KEYS_SIZE));
  ------------------
  |  | 1524|     52|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|     52|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     52|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     52|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1788|     52|    UBool isEmpty = true;
 1789|     52|    if (names != nullptr) {
  ------------------
  |  Branch (1789:9): [True: 52, False: 0]
  ------------------
 1790|    156|        for (int32_t i = 0; i < TZDBNAMES_KEYS_SIZE; i++) {
  ------------------
  |  Branch (1790:29): [True: 104, False: 52]
  ------------------
 1791|    104|            status = U_ZERO_ERROR;
 1792|    104|            const char16_t *value = ures_getStringByKey(rbTable, TZDBNAMES_KEYS[i], &len, &status);
  ------------------
  |  | 1677|    104|#define ures_getStringByKey U_ICU_ENTRY_POINT_RENAME(ures_getStringByKey)
  |  |  ------------------
  |  |  |  |  123|    104|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    104|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    104|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1793|    104|            if (U_FAILURE(status) || len == 0) {
  ------------------
  |  Branch (1793:17): [True: 11, False: 93]
  |  Branch (1793:38): [True: 0, False: 93]
  ------------------
 1794|     11|                names[i] = nullptr;
 1795|     93|            } else {
 1796|     93|                names[i] = value;
 1797|     93|                isEmpty = false;
 1798|     93|            }
 1799|    104|        }
 1800|     52|    }
 1801|       |
 1802|     52|    if (isEmpty) {
  ------------------
  |  Branch (1802:9): [True: 0, False: 52]
  ------------------
 1803|      0|        if (names != nullptr) {
  ------------------
  |  Branch (1803:13): [True: 0, False: 0]
  ------------------
 1804|      0|            uprv_free(names);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1805|      0|        }
 1806|      0|        return nullptr;
 1807|      0|    }
 1808|       |
 1809|     52|    UResourceBundle *regionsRes = ures_getByKey(rbTable, "parseRegions", nullptr, &status);
  ------------------
  |  | 1661|     52|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|     52|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     52|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     52|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1810|     52|    UBool regionError = false;
 1811|     52|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (1811:9): [True: 9, False: 43]
  ------------------
 1812|      9|        numRegions = ures_getSize(regionsRes);
  ------------------
  |  | 1674|      9|#define ures_getSize U_ICU_ENTRY_POINT_RENAME(ures_getSize)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1813|      9|        if (numRegions > 0) {
  ------------------
  |  Branch (1813:13): [True: 9, False: 0]
  ------------------
 1814|      9|            regions = static_cast<char**>(uprv_malloc(sizeof(char*) * numRegions));
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1815|      9|            if (regions != nullptr) {
  ------------------
  |  Branch (1815:17): [True: 9, False: 0]
  ------------------
 1816|      9|                char **pRegion = regions;
 1817|     26|                for (int32_t i = 0; i < numRegions; i++, pRegion++) {
  ------------------
  |  Branch (1817:37): [True: 17, False: 9]
  ------------------
 1818|     17|                    *pRegion = nullptr;
 1819|     17|                }
 1820|       |                // filling regions
 1821|      9|                pRegion = regions;
 1822|     26|                for (int32_t i = 0; i < numRegions; i++, pRegion++) {
  ------------------
  |  Branch (1822:37): [True: 17, False: 9]
  ------------------
 1823|     17|                    status = U_ZERO_ERROR;
 1824|     17|                    const char16_t *uregion = ures_getStringByIndex(regionsRes, i, &len, &status);
  ------------------
  |  | 1676|     17|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1825|     17|                    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1825:25): [True: 0, False: 17]
  ------------------
 1826|      0|                        regionError = true;
 1827|      0|                        break;
 1828|      0|                    }
 1829|     17|                    *pRegion = static_cast<char*>(uprv_malloc(sizeof(char) * (len + 1)));
  ------------------
  |  | 1524|     17|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1830|     17|                    if (*pRegion == nullptr) {
  ------------------
  |  Branch (1830:25): [True: 0, False: 17]
  ------------------
 1831|      0|                        regionError = true;
 1832|      0|                        break;
 1833|      0|                    }
 1834|     17|                    u_UCharsToChars(uregion, *pRegion, len);
  ------------------
  |  |  211|     17|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1835|     17|                    (*pRegion)[len] = 0;
 1836|     17|                }
 1837|      9|            }
 1838|      9|        }
 1839|      9|    }
 1840|     52|    ures_close(regionsRes);
  ------------------
  |  | 1652|     52|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|     52|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     52|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     52|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1841|     52|    ures_close(rbTable);
  ------------------
  |  | 1652|     52|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|     52|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     52|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     52|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1842|       |
 1843|     52|    if (regionError) {
  ------------------
  |  Branch (1843:9): [True: 0, False: 52]
  ------------------
 1844|      0|        if (names != nullptr) {
  ------------------
  |  Branch (1844:13): [True: 0, False: 0]
  ------------------
 1845|      0|            uprv_free(names);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1846|      0|        }
 1847|      0|        if (regions != nullptr) {
  ------------------
  |  Branch (1847:13): [True: 0, False: 0]
  ------------------
 1848|      0|            char **p = regions;
 1849|      0|            for (int32_t i = 0; i < numRegions; p++, i++) {
  ------------------
  |  Branch (1849:33): [True: 0, False: 0]
  ------------------
 1850|      0|                uprv_free(*p);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1851|      0|            }
 1852|      0|            uprv_free(regions);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1853|      0|        }
 1854|      0|        return nullptr;
 1855|      0|    }
 1856|       |
 1857|     52|    return new TZDBNames(names, regions, numRegions);
 1858|     52|}
_ZNK6icu_789TZDBNames7getNameE17UTimeZoneNameType:
 1861|    197|TZDBNames::getName(UTimeZoneNameType type) const {
 1862|    197|    if (fNames == nullptr) {
  ------------------
  |  Branch (1862:9): [True: 0, False: 197]
  ------------------
 1863|      0|        return nullptr;
 1864|      0|    }
 1865|    197|    const char16_t *name = nullptr;
 1866|    197|    switch(type) {
 1867|     11|    case UTZNM_SHORT_STANDARD:
  ------------------
  |  Branch (1867:5): [True: 11, False: 186]
  ------------------
 1868|     11|        name = fNames[0];
 1869|     11|        break;
 1870|      7|    case UTZNM_SHORT_DAYLIGHT:
  ------------------
  |  Branch (1870:5): [True: 7, False: 190]
  ------------------
 1871|      7|        name = fNames[1];
 1872|      7|        break;
 1873|    179|    default:
  ------------------
  |  Branch (1873:5): [True: 179, False: 18]
  ------------------
 1874|    179|        name = nullptr;
 1875|    197|    }
 1876|    197|    return name;
 1877|    197|}
_ZN6icu_7817TZDBTimeZoneNamesC2ERKNS_6LocaleE:
 2145|  1.37k|: fLocale(locale), fRegion() {
 2146|  1.37k|    UBool useWorld = true;
 2147|  1.37k|    const char* region = fLocale.getCountry();
 2148|  1.37k|    int32_t regionLen = static_cast<int32_t>(uprv_strlen(region));
  ------------------
  |  |   37|  1.37k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  1.37k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2149|  1.37k|    if (regionLen == 0) {
  ------------------
  |  Branch (2149:9): [True: 447, False: 927]
  ------------------
 2150|    447|        UErrorCode status = U_ZERO_ERROR;
 2151|    447|        CharString loc = ulocimp_addLikelySubtags(fLocale.getName(), status);
  ------------------
  |  | 1196|    447|#define ulocimp_addLikelySubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_addLikelySubtags)
  |  |  ------------------
  |  |  |  |  123|    447|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    447|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    447|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2152|    447|        ulocimp_getSubtags(loc.toStringPiece(), nullptr, nullptr, &fRegion, nullptr, nullptr, status);
  ------------------
  |  | 1209|    447|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|    447|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    447|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    447|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2153|    447|        if (U_SUCCESS(status)) {
  ------------------
  |  Branch (2153:13): [True: 447, False: 0]
  ------------------
 2154|    447|            useWorld = false;
 2155|    447|        }
 2156|    927|    } else {
 2157|    927|        UErrorCode status = U_ZERO_ERROR;
 2158|    927|        fRegion.append(region, regionLen, status);
 2159|    927|        U_ASSERT(U_SUCCESS(status));
  ------------------
  |  |   35|    927|#   define U_ASSERT(exp) (void)0
  ------------------
 2160|    927|        useWorld = false;
 2161|    927|    }
 2162|  1.37k|    if (useWorld) {
  ------------------
  |  Branch (2162:9): [True: 0, False: 1.37k]
  ------------------
 2163|      0|        UErrorCode status = U_ZERO_ERROR;
 2164|      0|        fRegion.append("001", status);
 2165|      0|        U_ASSERT(U_SUCCESS(status));
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 2166|      0|    }
 2167|  1.37k|}
_ZN6icu_7817TZDBTimeZoneNamesD2Ev:
 2169|  1.37k|TZDBTimeZoneNames::~TZDBTimeZoneNames() {
 2170|  1.37k|}
_ZNK6icu_7817TZDBTimeZoneNames23getAvailableMetaZoneIDsER10UErrorCode:
 2187|  1.37k|TZDBTimeZoneNames::getAvailableMetaZoneIDs(UErrorCode& status) const {
 2188|  1.37k|    return TimeZoneNamesImpl::_getAvailableMetaZoneIDs(status);
 2189|  1.37k|}
_ZNK6icu_7817TZDBTimeZoneNames23getAvailableMetaZoneIDsERKNS_13UnicodeStringER10UErrorCode:
 2192|  1.37k|TZDBTimeZoneNames::getAvailableMetaZoneIDs(const UnicodeString& tzID, UErrorCode& status) const {
 2193|  1.37k|    return TimeZoneNamesImpl::_getAvailableMetaZoneIDs(tzID, status);
 2194|  1.37k|}
_ZNK6icu_7817TZDBTimeZoneNames13getMetaZoneIDERKNS_13UnicodeStringEdRS1_:
 2197|  2.74k|TZDBTimeZoneNames::getMetaZoneID(const UnicodeString& tzID, UDate date, UnicodeString& mzID) const {
 2198|  2.74k|    return TimeZoneNamesImpl::_getMetaZoneID(tzID, date, mzID);
 2199|  2.74k|}
_ZNK6icu_7817TZDBTimeZoneNames22getMetaZoneDisplayNameERKNS_13UnicodeStringE17UTimeZoneNameTypeRS1_:
 2209|  2.74k|                                          UnicodeString& name) const {
 2210|  2.74k|    name.setToBogus();
 2211|  2.74k|    if (mzID.isEmpty()) {
  ------------------
  |  Branch (2211:9): [True: 1.36k, False: 1.38k]
  ------------------
 2212|  1.36k|        return name;
 2213|  1.36k|    }
 2214|       |
 2215|  1.38k|    UErrorCode status = U_ZERO_ERROR;
 2216|  1.38k|    const TZDBNames *tzdbNames = TZDBTimeZoneNames::getMetaZoneNames(mzID, status);
 2217|  1.38k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (2217:9): [True: 638, False: 749]
  ------------------
 2218|    638|        if (tzdbNames != nullptr) {
  ------------------
  |  Branch (2218:13): [True: 197, False: 441]
  ------------------
 2219|    197|            const char16_t *s = tzdbNames->getName(type);
 2220|    197|            if (s != nullptr) {
  ------------------
  |  Branch (2220:17): [True: 12, False: 185]
  ------------------
 2221|     12|                name.setTo(true, s, -1);
 2222|     12|            }
 2223|    197|        }
 2224|    638|    }
 2225|       |
 2226|  1.38k|    return name;
 2227|  2.74k|}
_ZNK6icu_7817TZDBTimeZoneNames22getTimeZoneDisplayNameERKNS_13UnicodeStringE17UTimeZoneNameTypeRS1_:
 2230|  2.74k|TZDBTimeZoneNames::getTimeZoneDisplayName(const UnicodeString& /* tzID */, UTimeZoneNameType /* type */, UnicodeString& name) const {
 2231|       |    // No abbreviations associated a zone directly for now.
 2232|  2.74k|    name.setToBogus();
 2233|  2.74k|    return name;
 2234|  2.74k|}
_ZN6icu_7817TZDBTimeZoneNames16getMetaZoneNamesERKNS_13UnicodeStringER10UErrorCode:
 2253|  1.38k|TZDBTimeZoneNames::getMetaZoneNames(const UnicodeString& mzID, UErrorCode& status) {
 2254|  1.38k|    umtx_initOnce(gTZDBNamesMapInitOnce, &initTZDBNamesMap, status);
 2255|  1.38k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2255:9): [True: 0, False: 1.38k]
  ------------------
 2256|      0|        return nullptr;
 2257|      0|    }
 2258|       |
 2259|  1.38k|    TZDBNames* tzdbNames = nullptr;
 2260|       |
 2261|  1.38k|    char16_t mzIDKey[ZID_KEY_MAX + 1];
 2262|  1.38k|    mzID.extract(mzIDKey, ZID_KEY_MAX, status);
  ------------------
  |  |   42|  1.38k|#define ZID_KEY_MAX  128
  ------------------
 2263|  1.38k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2263:9): [True: 404, False: 983]
  ------------------
 2264|    404|        return nullptr;
 2265|    404|    }
 2266|    983|    mzIDKey[mzID.length()] = 0;
 2267|    983|    if (!uprv_isInvariantUString(mzIDKey, mzID.length())) {
  ------------------
  |  | 1518|    983|#define uprv_isInvariantUString U_ICU_ENTRY_POINT_RENAME(uprv_isInvariantUString)
  |  |  ------------------
  |  |  |  |  123|    983|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    983|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    983|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2267:9): [True: 339, False: 644]
  ------------------
 2268|    339|        status = U_ILLEGAL_ARGUMENT_ERROR;
 2269|    339|        return nullptr;
 2270|    339|    }
 2271|       |
 2272|    644|    static UMutex gTZDBNamesMapLock;
 2273|    644|    umtx_lock(&gTZDBNamesMapLock);
  ------------------
  |  | 1250|    644|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  123|    644|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    644|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    644|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2274|    644|    {
 2275|    644|        void *cacheVal = uhash_get(gTZDBNamesMap, mzIDKey);
  ------------------
  |  | 1007|    644|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|    644|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    644|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    644|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2276|    644|        if (cacheVal == nullptr) {
  ------------------
  |  Branch (2276:13): [True: 495, False: 149]
  ------------------
 2277|    495|            UResourceBundle *zoneStringsRes = ures_openDirect(U_ICUDATA_ZONE, "tzdbNames", &status);
  ------------------
  |  | 1693|    495|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|    495|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    495|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    495|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          UResourceBundle *zoneStringsRes = ures_openDirect(U_ICUDATA_ZONE, "tzdbNames", &status);
  ------------------
  |  |   22|    495|#define U_ICUDATA_ZONE U_ICUDATA_NAME U_TREE_SEPARATOR_STRING "zone"
  |  |  ------------------
  |  |  |  |  154|    495|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  ------------------
 2278|    495|            zoneStringsRes = ures_getByKey(zoneStringsRes, gZoneStrings, zoneStringsRes, &status);
  ------------------
  |  | 1661|    495|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|    495|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    495|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    495|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2279|    495|            char key[ZID_KEY_MAX + 1];
 2280|    495|            mergeTimeZoneKey(mzID, key, sizeof(key), status);
 2281|    495|            if (U_SUCCESS(status)) {
  ------------------
  |  Branch (2281:17): [True: 489, False: 6]
  ------------------
 2282|    489|                tzdbNames = TZDBNames::createInstance(zoneStringsRes, key);
 2283|       |
 2284|    489|                if (tzdbNames == nullptr) {
  ------------------
  |  Branch (2284:21): [True: 437, False: 52]
  ------------------
 2285|    437|                    cacheVal = (void *)EMPTY;
 2286|    437|                } else {
 2287|     52|                    cacheVal = tzdbNames;
 2288|     52|                }
 2289|       |                // Use the persistent ID as the resource key, so we can
 2290|       |                // avoid duplications.
 2291|       |                // TODO: Is there a more efficient way, like intern() in Java?
 2292|    489|                void* newKey = (void*) ZoneMeta::findMetaZoneID(mzID);
 2293|    489|                if (newKey != nullptr) {
  ------------------
  |  Branch (2293:21): [True: 52, False: 437]
  ------------------
 2294|     52|                    uhash_put(gTZDBNamesMap, newKey, cacheVal, &status);
  ------------------
  |  | 1032|     52|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|     52|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     52|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     52|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2295|     52|                    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2295:25): [True: 0, False: 52]
  ------------------
 2296|      0|                        if (tzdbNames != nullptr) {
  ------------------
  |  Branch (2296:29): [True: 0, False: 0]
  ------------------
 2297|      0|                            delete tzdbNames;
 2298|      0|                            tzdbNames = nullptr;
 2299|      0|                        }
 2300|      0|                    }
 2301|    437|                } else {
 2302|       |                    // Should never happen with a valid input
 2303|    437|                    if (tzdbNames != nullptr) {
  ------------------
  |  Branch (2303:25): [True: 2, False: 435]
  ------------------
 2304|       |                        // It's not possible that we get a valid tzdbNames with unknown ID.
 2305|       |                        // But just in case..
 2306|      2|                        delete tzdbNames;
 2307|      2|                        tzdbNames = nullptr;
 2308|      2|                    }
 2309|    437|                }
 2310|    489|            }
 2311|    495|            ures_close(zoneStringsRes);
  ------------------
  |  | 1652|    495|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|    495|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    495|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    495|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2312|    495|        } else if (cacheVal != EMPTY) {
  ------------------
  |  Branch (2312:20): [True: 147, False: 2]
  ------------------
 2313|    147|            tzdbNames = static_cast<TZDBNames*>(cacheVal);
 2314|    147|        }
 2315|    644|    }
 2316|    644|    umtx_unlock(&gTZDBNamesMapLock);
  ------------------
  |  | 1251|    644|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  123|    644|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    644|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    644|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2317|       |
 2318|    644|    return tzdbNames;
 2319|    983|}
tznames_impl.cpp:_ZN6icu_78L12deleteZNamesEPv:
 1009|  1.68k|deleteZNames(void *obj) {
 1010|  1.68k|    if (obj != EMPTY) {
  ------------------
  |  Branch (1010:9): [True: 1.68k, False: 3]
  ------------------
 1011|  1.68k|        delete (ZNames*) obj;
 1012|  1.68k|    }
 1013|  1.68k|}
_ZN6icu_786ZNamesD2Ev:
  628|  1.68k|    ~ZNames() {
  629|  1.68k|        if (fOwnsLocationName) {
  ------------------
  |  Branch (629:13): [True: 521, False: 1.16k]
  ------------------
  630|    521|            const char16_t* locationName = fNames[UTZNM_INDEX_EXEMPLAR_LOCATION];
  631|    521|            U_ASSERT(locationName != nullptr);
  ------------------
  |  |   35|    521|#   define U_ASSERT(exp) (void)0
  ------------------
  632|    521|            uprv_free((void*) locationName);
  ------------------
  |  | 1503|    521|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    521|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    521|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    521|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  633|    521|        }
  634|  1.68k|    }
_ZNK6icu_786ZNames7getNameE17UTimeZoneNameType:
  697|  2.75k|    const char16_t* getName(UTimeZoneNameType type) const {
  698|  2.75k|        UTimeZoneNameTypeIndex index = getTZNameTypeIndex(type);
  699|  2.75k|        return index >= 0 ? fNames[index] : nullptr;
  ------------------
  |  Branch (699:16): [True: 1.18k, False: 1.57k]
  ------------------
  700|  2.75k|    }
_ZN6icu_786ZNames18getTZNameTypeIndexE17UTimeZoneNameType:
  584|  2.75k|    static UTimeZoneNameTypeIndex getTZNameTypeIndex(UTimeZoneNameType type) {
  585|  2.75k|        switch(type) {
  586|  1.03k|        case UTZNM_EXEMPLAR_LOCATION: return UTZNM_INDEX_EXEMPLAR_LOCATION;
  ------------------
  |  Branch (586:9): [True: 1.03k, False: 1.72k]
  ------------------
  587|     23|        case UTZNM_LONG_GENERIC: return UTZNM_INDEX_LONG_GENERIC;
  ------------------
  |  Branch (587:9): [True: 23, False: 2.73k]
  ------------------
  588|     21|        case UTZNM_LONG_STANDARD: return UTZNM_INDEX_LONG_STANDARD;
  ------------------
  |  Branch (588:9): [True: 21, False: 2.73k]
  ------------------
  589|     25|        case UTZNM_LONG_DAYLIGHT: return UTZNM_INDEX_LONG_DAYLIGHT;
  ------------------
  |  Branch (589:9): [True: 25, False: 2.73k]
  ------------------
  590|     18|        case UTZNM_SHORT_GENERIC: return UTZNM_INDEX_SHORT_GENERIC;
  ------------------
  |  Branch (590:9): [True: 18, False: 2.74k]
  ------------------
  591|     34|        case UTZNM_SHORT_STANDARD: return UTZNM_INDEX_SHORT_STANDARD;
  ------------------
  |  Branch (591:9): [True: 34, False: 2.72k]
  ------------------
  592|     20|        case UTZNM_SHORT_DAYLIGHT: return UTZNM_INDEX_SHORT_DAYLIGHT;
  ------------------
  |  Branch (592:9): [True: 20, False: 2.73k]
  ------------------
  593|  1.57k|        default: return UTZNM_INDEX_UNKNOWN;
  ------------------
  |  Branch (593:9): [True: 1.57k, False: 1.18k]
  ------------------
  594|  2.75k|        }
  595|  2.75k|    }
_ZN6icu_786ZNames12ZNamesLoaderC2Ev:
  741|  3.63k|    ZNamesLoader() {
  742|  3.63k|        clear();
  743|  3.63k|    }
_ZN6icu_786ZNames12ZNamesLoader5clearEv:
  747|  7.26k|    void clear() {
  748|  7.26k|        uprv_memcpy(names, EMPTY_NAMES, sizeof(names));
  ------------------
  |  |   42|  7.26k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  7.26k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  7.26k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  7.26k|    _Pragma("clang diagnostic push") \
  |  |   45|  7.26k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  7.26k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  7.26k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  7.26k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  7.26k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  7.26k|    _Pragma("clang diagnostic pop") \
  |  |   49|  7.26k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  7.26k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  7.26k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  7.26k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  749|  7.26k|    }
_ZN6icu_786ZNames12ZNamesLoader12loadMetaZoneEPK15UResourceBundleRKNS_13UnicodeStringER10UErrorCode:
  751|    912|    void loadMetaZone(const UResourceBundle* zoneStrings, const UnicodeString& mzID, UErrorCode& errorCode) {
  752|    912|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (752:13): [True: 0, False: 912]
  ------------------
  753|       |
  754|    912|        char key[ZID_KEY_MAX + 1];
  755|    912|        mergeTimeZoneKey(mzID, key, sizeof(key), errorCode);
  756|       |
  757|    912|        loadNames(zoneStrings, key, errorCode);
  758|    912|    }
_ZN6icu_786ZNames12ZNamesLoader9loadNamesEPK15UResourceBundlePKcR10UErrorCode:
  779|  3.63k|    void loadNames(const UResourceBundle* zoneStrings, const char* key, UErrorCode& errorCode) {
  780|  3.63k|        U_ASSERT(zoneStrings != nullptr);
  ------------------
  |  |   35|  3.63k|#   define U_ASSERT(exp) (void)0
  ------------------
  781|  3.63k|        U_ASSERT(key != nullptr);
  ------------------
  |  |   35|  3.63k|#   define U_ASSERT(exp) (void)0
  ------------------
  782|  3.63k|        U_ASSERT(key[0] != '\0');
  ------------------
  |  |   35|  3.63k|#   define U_ASSERT(exp) (void)0
  ------------------
  783|       |
  784|  3.63k|        UErrorCode localStatus = U_ZERO_ERROR;
  785|  3.63k|        clear();
  786|  3.63k|        ures_getAllItemsWithFallback(zoneStrings, key, *this, localStatus);
  ------------------
  |  | 1658|  3.63k|#define ures_getAllItemsWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getAllItemsWithFallback)
  |  |  ------------------
  |  |  |  |  123|  3.63k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.63k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.63k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  787|       |
  788|       |        // Ignore errors, but propagate possible warnings.
  789|  3.63k|        if (U_SUCCESS(localStatus)) {
  ------------------
  |  Branch (789:13): [True: 1.46k, False: 2.17k]
  ------------------
  790|  1.46k|            errorCode = localStatus;
  791|  1.46k|        }
  792|  3.63k|    }
_ZN6icu_786ZNames27createMetaZoneAndPutInCacheEP10UHashtablePPKDsRKNS_13UnicodeStringER10UErrorCode:
  638|    912|            const UnicodeString& mzID, UErrorCode& status) {
  639|    912|        if (U_FAILURE(status)) { return nullptr; }
  ------------------
  |  Branch (639:13): [True: 0, False: 912]
  ------------------
  640|    912|        U_ASSERT(names != nullptr);
  ------------------
  |  |   35|    912|#   define U_ASSERT(exp) (void)0
  ------------------
  641|       |
  642|       |        // Use the persistent ID as the resource key, so we can
  643|       |        // avoid duplications.
  644|       |        // TODO: Is there a more efficient way, like intern() in Java?
  645|    912|        void* key = (void*) ZoneMeta::findMetaZoneID(mzID);
  646|    912|        void* value;
  647|    912|        if (uprv_memcmp(names, EMPTY_NAMES, sizeof(EMPTY_NAMES)) == 0) {
  ------------------
  |  |  101|    912|#define uprv_memcmp(buffer1, buffer2, size) U_STANDARD_CPP_NAMESPACE memcmp(buffer1, buffer2,size)
  |  |  ------------------
  |  |  |  |  393|    912|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (647:13): [True: 777, False: 135]
  ------------------
  648|    777|            value = (void*) EMPTY;
  649|    777|        } else {
  650|    135|            value = (void*) (new ZNames(names, nullptr));
  651|    135|            if (value == nullptr) {
  ------------------
  |  Branch (651:17): [True: 0, False: 135]
  ------------------
  652|      0|                status = U_MEMORY_ALLOCATION_ERROR;
  653|      0|                return nullptr;
  654|      0|            }
  655|    135|        }
  656|    912|        uhash_put(cache, key, value, &status);
  ------------------
  |  | 1032|    912|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|    912|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    912|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    912|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  657|    912|        return value;
  658|    912|    }
_ZN6icu_786ZNamesC2EPPKDsS2_:
  617|  2.85k|            : fDidAddIntoTrie(false) {
  618|  2.85k|        uprv_memcpy(fNames, names, sizeof(fNames));
  ------------------
  |  |   42|  2.85k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  2.85k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  2.85k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  2.85k|    _Pragma("clang diagnostic push") \
  |  |   45|  2.85k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  2.85k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  2.85k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  2.85k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  2.85k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  2.85k|    _Pragma("clang diagnostic pop") \
  |  |   49|  2.85k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  2.85k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  2.85k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  2.85k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  619|  2.85k|        if (locationName != nullptr) {
  ------------------
  |  Branch (619:13): [True: 639, False: 2.21k]
  ------------------
  620|    639|            fOwnsLocationName = true;
  621|    639|            fNames[UTZNM_INDEX_EXEMPLAR_LOCATION] = locationName;
  622|  2.21k|        } else {
  623|  2.21k|            fOwnsLocationName = false;
  624|  2.21k|        }
  625|  2.85k|    }
_ZN6icu_786ZNames12ZNamesLoader8getNamesEv:
  845|  3.63k|    const char16_t** getNames() {
  846|       |        // Remove 'NO_NAME' references in the array and replace with 'nullptr'
  847|  29.0k|        for (int32_t i = 0; i < UTZNM_INDEX_COUNT; ++i) {
  ------------------
  |  Branch (847:29): [True: 25.4k, False: 3.63k]
  ------------------
  848|  25.4k|            if (names[i] == NO_NAME) {
  ------------------
  |  Branch (848:17): [True: 65, False: 25.3k]
  ------------------
  849|     65|                names[i] = nullptr;
  850|     65|            }
  851|  25.4k|        }
  852|  3.63k|        return names;
  853|  3.63k|    }
_ZN6icu_786ZNames12ZNamesLoader12loadTimeZoneEPK15UResourceBundleRKNS_13UnicodeStringER10UErrorCode:
  760|  2.72k|    void loadTimeZone(const UResourceBundle* zoneStrings, const UnicodeString& tzID, UErrorCode& errorCode) {
  761|       |        // Replace "/" with ":".
  762|  2.72k|        UnicodeString uKey(tzID);
  763|  43.2k|        for (int32_t i = 0; i < uKey.length(); i++) {
  ------------------
  |  Branch (763:29): [True: 40.5k, False: 2.72k]
  ------------------
  764|  40.5k|            if (uKey.charAt(i) == static_cast<char16_t>(0x2F)) {
  ------------------
  |  Branch (764:17): [True: 5.17k, False: 35.3k]
  ------------------
  765|  5.17k|                uKey.setCharAt(i, static_cast<char16_t>(0x3A));
  766|  5.17k|            }
  767|  40.5k|        }
  768|       |
  769|  2.72k|        char key[ZID_KEY_MAX + 1];
  770|  2.72k|        if (uKey.length() > ZID_KEY_MAX) {
  ------------------
  |  |   42|  2.72k|#define ZID_KEY_MAX  128
  ------------------
  |  Branch (770:13): [True: 0, False: 2.72k]
  ------------------
  771|      0|            errorCode = U_INTERNAL_PROGRAM_ERROR;
  772|      0|            return;
  773|      0|        }
  774|  2.72k|        uKey.extract(0, uKey.length(), key, sizeof(key), US_INV);
  ------------------
  |  |   98|  2.72k|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  775|       |
  776|  2.72k|        loadNames(zoneStrings, key, errorCode);
  777|  2.72k|    }
_ZN6icu_786ZNames27createTimeZoneAndPutInCacheEP10UHashtablePPKDsRKNS_13UnicodeStringER10UErrorCode:
  661|  2.72k|            const UnicodeString& tzID, UErrorCode& status) {
  662|  2.72k|        if (U_FAILURE(status)) { return nullptr; }
  ------------------
  |  Branch (662:13): [True: 0, False: 2.72k]
  ------------------
  663|  2.72k|        U_ASSERT(names != nullptr);
  ------------------
  |  |   35|  2.72k|#   define U_ASSERT(exp) (void)0
  ------------------
  664|       |
  665|       |        // If necessary, compute the location name from the time zone name.
  666|  2.72k|        char16_t* locationName = nullptr;
  667|  2.72k|        if (names[UTZNM_INDEX_EXEMPLAR_LOCATION] == nullptr) {
  ------------------
  |  Branch (667:13): [True: 2.64k, False: 76]
  ------------------
  668|  2.64k|            UnicodeString locationNameUniStr;
  669|  2.64k|            TimeZoneNamesImpl::getDefaultExemplarLocationName(tzID, locationNameUniStr);
  670|       |
  671|       |            // Copy the computed location name to the heap
  672|  2.64k|            if (locationNameUniStr.length() > 0) {
  ------------------
  |  Branch (672:17): [True: 639, False: 2.00k]
  ------------------
  673|    639|                const char16_t* buff = locationNameUniStr.getTerminatedBuffer();
  674|    639|                int32_t len = sizeof(char16_t) * (locationNameUniStr.length() + 1);
  675|    639|                locationName = static_cast<char16_t*>(uprv_malloc(len));
  ------------------
  |  | 1524|    639|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    639|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    639|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    639|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  676|    639|                if (locationName == nullptr) {
  ------------------
  |  Branch (676:21): [True: 0, False: 639]
  ------------------
  677|      0|                    status = U_MEMORY_ALLOCATION_ERROR;
  678|      0|                    return nullptr;
  679|      0|                }
  680|    639|                uprv_memcpy(locationName, buff, len);
  ------------------
  |  |   42|    639|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    639|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    639|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    639|    _Pragma("clang diagnostic push") \
  |  |   45|    639|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    639|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    639|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    639|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    639|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    639|    _Pragma("clang diagnostic pop") \
  |  |   49|    639|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    639|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    639|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    639|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  681|    639|            }
  682|  2.64k|        }
  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|  2.72k|        void* key = (void*) ZoneMeta::findTimeZoneID(tzID);
  688|  2.72k|        void* value = (void*) (new ZNames(names, locationName));
  689|  2.72k|        if (value == nullptr) {
  ------------------
  |  Branch (689:13): [True: 0, False: 2.72k]
  ------------------
  690|      0|            status = U_MEMORY_ALLOCATION_ERROR;
  691|      0|            return nullptr;
  692|      0|        }
  693|  2.72k|        uhash_put(cache, key, value, &status);
  ------------------
  |  | 1032|  2.72k|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|  2.72k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.72k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.72k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  694|  2.72k|        return value;
  695|  2.72k|    }
tznames_impl.cpp:_ZN6icu_78L16initTZDBNamesMapER10UErrorCode:
 2045|      1|static void U_CALLCONV initTZDBNamesMap(UErrorCode &status) {
 2046|      1|    gTZDBNamesMap = 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  gTZDBNamesMap = 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  gTZDBNamesMap = 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2047|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2047:9): [True: 0, False: 1]
  ------------------
 2048|      0|        gTZDBNamesMap = nullptr;
 2049|      0|        return;
 2050|      0|    }
 2051|       |    // no key deleters for tzdb name maps
 2052|      1|    uhash_setValueDeleter(gTZDBNamesMap, deleteTZDBNames);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2053|      1|    ucln_i18n_registerCleanup(UCLN_I18N_TZDBTIMEZONENAMES, tzdbTimeZoneNames_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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2054|      1|}
tznames_impl.cpp:_ZN6icu_78L16mergeTimeZoneKeyERKNS_13UnicodeStringEPcmR10UErrorCode:
 1283|  1.40k|                             UErrorCode& status) {
 1284|  1.40k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1284:9): [True: 0, False: 1.40k]
  ------------------
 1285|      0|        return;
 1286|      0|    }
 1287|  1.40k|    if (mzID.isEmpty()) {
  ------------------
  |  Branch (1287:9): [True: 0, False: 1.40k]
  ------------------
 1288|      0|        result[0] = '\0';
 1289|      0|        return;
 1290|      0|    }
 1291|       |
 1292|  1.40k|    if (MZ_PREFIX_LEN + 1 > capacity) {
  ------------------
  |  |   43|  1.40k|#define MZ_PREFIX_LEN 5
  ------------------
  |  Branch (1292:9): [True: 0, False: 1.40k]
  ------------------
 1293|      0|        result[0] = '\0';
 1294|      0|        status = U_INTERNAL_PROGRAM_ERROR;
 1295|      0|        return;
 1296|      0|    }
 1297|  1.40k|    uprv_memcpy((void *)result, (void *)gMZPrefix, MZ_PREFIX_LEN);
  ------------------
  |  |   42|  1.40k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  1.40k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  1.40k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  1.40k|    _Pragma("clang diagnostic push") \
  |  |   45|  1.40k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  1.40k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.40k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  1.40k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  1.40k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  1.40k|    _Pragma("clang diagnostic pop") \
  |  |   49|  1.40k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  1.40k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  1.40k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  1.40k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1298|  1.40k|    if (static_cast<size_t>(MZ_PREFIX_LEN +  mzID.length() + 1) > capacity) {
  ------------------
  |  |   43|  1.40k|#define MZ_PREFIX_LEN 5
  ------------------
  |  Branch (1298:9): [True: 6, False: 1.40k]
  ------------------
 1299|      6|        result[0] = '\0';
 1300|      6|        status = U_INTERNAL_PROGRAM_ERROR;
 1301|      6|        return;
 1302|      6|    }
 1303|  1.40k|    int32_t keyLen = mzID.extract(0, mzID.length(), result + MZ_PREFIX_LEN,
  ------------------
  |  |   43|  1.40k|#define MZ_PREFIX_LEN 5
  ------------------
 1304|  1.40k|                                  static_cast<int32_t>(capacity - MZ_PREFIX_LEN), US_INV);
  ------------------
  |  |   43|  1.40k|#define MZ_PREFIX_LEN 5
  ------------------
                                                static_cast<int32_t>(capacity - MZ_PREFIX_LEN), US_INV);
  ------------------
  |  |   98|  1.40k|#define US_INV icu::UnicodeString::kInvariant
  ------------------
 1305|  1.40k|    result[keyLen + MZ_PREFIX_LEN] = '\0';
  ------------------
  |  |   43|  1.40k|#define MZ_PREFIX_LEN 5
  ------------------
 1306|  1.40k|}
_ZN6icu_786ZNames12ZNamesLoader3putEPKcRNS_13ResourceValueEaR10UErrorCode:
  806|  2.83k|            UErrorCode &errorCode) override {
  807|  2.83k|        ResourceTable namesTable = value.getTable(errorCode);
  808|  2.83k|        if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (808:13): [True: 19, False: 2.81k]
  ------------------
  809|   266k|        for (int32_t i = 0; namesTable.getKeyAndValue(i, key, value); ++i) {
  ------------------
  |  Branch (809:29): [True: 263k, False: 2.81k]
  ------------------
  810|   263k|            if (value.isNoInheritanceMarker()) {
  ------------------
  |  Branch (810:17): [True: 72, False: 263k]
  ------------------
  811|     72|                setNameIfEmpty(key, nullptr, errorCode);
  812|   263k|            } else {
  813|   263k|                setNameIfEmpty(key, &value, errorCode);
  814|   263k|            }
  815|   263k|        }
  816|  2.81k|    }
_ZN6icu_786ZNames12ZNamesLoader14setNameIfEmptyEPKcPKNS_13ResourceValueER10UErrorCode:
  794|   263k|    void setNameIfEmpty(const char* key, const ResourceValue* value, UErrorCode& errorCode) {
  795|   263k|        UTimeZoneNameTypeIndex type = nameTypeFromKey(key);
  796|   263k|        if (type == UTZNM_INDEX_UNKNOWN) { return; }
  ------------------
  |  Branch (796:13): [True: 261k, False: 1.61k]
  ------------------
  797|  1.61k|        if (names[type] == nullptr) {
  ------------------
  |  Branch (797:13): [True: 1.40k, False: 208]
  ------------------
  798|  1.40k|            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.40k|            names[type] = (value == nullptr) ? NO_NAME : value->getString(length, errorCode);
  ------------------
  |  Branch (801:27): [True: 65, False: 1.34k]
  ------------------
  802|  1.40k|        }
  803|  1.61k|    }
_ZN6icu_786ZNames12ZNamesLoader15nameTypeFromKeyEPKc:
  818|   263k|    static UTimeZoneNameTypeIndex nameTypeFromKey(const char *key) {
  819|   263k|        char c0, c1;
  820|   263k|        if ((c0 = key[0]) == 0 || (c1 = key[1]) == 0 || key[2] != 0) {
  ------------------
  |  Branch (820:13): [True: 0, False: 263k]
  |  Branch (820:35): [True: 0, False: 263k]
  |  Branch (820:57): [True: 261k, False: 1.61k]
  ------------------
  821|   261k|            return UTZNM_INDEX_UNKNOWN;
  822|   261k|        }
  823|  1.61k|        if (c0 == 'l') {
  ------------------
  |  Branch (823:13): [True: 757, False: 856]
  ------------------
  824|    757|            return c1 == 'g' ? UTZNM_INDEX_LONG_GENERIC :
  ------------------
  |  Branch (824:20): [True: 95, False: 662]
  ------------------
  825|    757|                    c1 == 's' ? UTZNM_INDEX_LONG_STANDARD :
  ------------------
  |  Branch (825:21): [True: 564, False: 98]
  ------------------
  826|    662|                        c1 == 'd' ? UTZNM_INDEX_LONG_DAYLIGHT : UTZNM_INDEX_UNKNOWN;
  ------------------
  |  Branch (826:25): [True: 98, False: 0]
  ------------------
  827|    856|        } else if (c0 == 's') {
  ------------------
  |  Branch (827:20): [True: 753, False: 103]
  ------------------
  828|    753|            return c1 == 'g' ? UTZNM_INDEX_SHORT_GENERIC :
  ------------------
  |  Branch (828:20): [True: 66, False: 687]
  ------------------
  829|    753|                    c1 == 's' ? UTZNM_INDEX_SHORT_STANDARD :
  ------------------
  |  Branch (829:21): [True: 623, False: 64]
  ------------------
  830|    687|                        c1 == 'd' ? UTZNM_INDEX_SHORT_DAYLIGHT : UTZNM_INDEX_UNKNOWN;
  ------------------
  |  Branch (830:25): [True: 64, False: 0]
  ------------------
  831|    753|        } else if (c0 == 'e' && c1 == 'c') {
  ------------------
  |  Branch (831:20): [True: 103, False: 0]
  |  Branch (831:33): [True: 103, False: 0]
  ------------------
  832|    103|            return UTZNM_INDEX_EXEMPLAR_LOCATION;
  833|    103|        }
  834|      0|        return UTZNM_INDEX_UNKNOWN;
  835|  1.61k|    }

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

_ZN6icu_788ZoneMeta18getCanonicalCLDRIDERKNS_13UnicodeStringER10UErrorCode:
  229|  5.09k|ZoneMeta::getCanonicalCLDRID(const UnicodeString &tzid, UErrorCode& status) {
  230|  5.09k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (230:9): [True: 0, False: 5.09k]
  ------------------
  231|      0|        return nullptr;
  232|      0|    }
  233|       |
  234|  5.09k|    if (tzid.isBogus() || tzid.length() > ZID_KEY_MAX) {
  ------------------
  |  |  113|  5.09k|#define ZID_KEY_MAX 128
  ------------------
  |  Branch (234:9): [True: 0, False: 5.09k]
  |  Branch (234:27): [True: 0, False: 5.09k]
  ------------------
  235|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  236|      0|        return nullptr;
  237|      0|    }
  238|       |
  239|       |    // Checking the cached results
  240|  5.09k|    umtx_initOnce(gCanonicalIDCacheInitOnce, &initCanonicalIDCache, status);
  241|  5.09k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (241:9): [True: 0, False: 5.09k]
  ------------------
  242|      0|        return nullptr;
  243|      0|    }
  244|       |
  245|  5.09k|    const char16_t *canonicalID = nullptr;
  246|       |
  247|  5.09k|    UErrorCode tmpStatus = U_ZERO_ERROR;
  248|  5.09k|    char16_t utzid[ZID_KEY_MAX + 1];
  249|  5.09k|    tzid.extract(utzid, ZID_KEY_MAX + 1, tmpStatus);
  ------------------
  |  |  113|  5.09k|#define ZID_KEY_MAX 128
  ------------------
  250|  5.09k|    U_ASSERT(tmpStatus == U_ZERO_ERROR);    // we checked the length of tzid already
  ------------------
  |  |   35|  5.09k|#   define U_ASSERT(exp) (void)0
  ------------------
  251|       |
  252|  5.09k|    if (!uprv_isInvariantUString(utzid, -1)) {
  ------------------
  |  | 1518|  5.09k|#define uprv_isInvariantUString U_ICU_ENTRY_POINT_RENAME(uprv_isInvariantUString)
  |  |  ------------------
  |  |  |  |  123|  5.09k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.09k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.09k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (252:9): [True: 1.53k, False: 3.55k]
  ------------------
  253|       |        // All of known tz IDs are only containing ASCII invariant characters.
  254|  1.53k|        status = U_ILLEGAL_ARGUMENT_ERROR;
  255|  1.53k|        return nullptr;
  256|  1.53k|    }
  257|       |
  258|       |    // Check if it was already cached
  259|  3.55k|    umtx_lock(&gZoneMetaLock);
  ------------------
  |  | 1250|  3.55k|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  123|  3.55k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.55k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.55k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  260|  3.55k|    {
  261|  3.55k|        canonicalID = static_cast<const char16_t*>(uhash_get(gCanonicalIDCache, utzid));
  ------------------
  |  | 1007|  3.55k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  3.55k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.55k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.55k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  262|  3.55k|    }
  263|  3.55k|    umtx_unlock(&gZoneMetaLock);
  ------------------
  |  | 1251|  3.55k|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  123|  3.55k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.55k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.55k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  264|       |
  265|  3.55k|    if (canonicalID != nullptr) {
  ------------------
  |  Branch (265:9): [True: 524, False: 3.03k]
  ------------------
  266|    524|        return canonicalID;
  267|    524|    }
  268|       |
  269|       |    // If not, resolve CLDR canonical ID with resource data
  270|  3.03k|    UBool isInputCanonical = false;
  271|  3.03k|    char id[ZID_KEY_MAX + 1];
  272|  3.03k|    tzid.extract(0, 0x7fffffff, id, UPRV_LENGTHOF(id), US_INV);
  ------------------
  |  |   99|  3.03k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
                  tzid.extract(0, 0x7fffffff, id, UPRV_LENGTHOF(id), US_INV);
  ------------------
  |  |   98|  3.03k|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  273|       |
  274|       |    // replace '/' with ':'
  275|  3.03k|    char *p = id;
  276|  21.7k|    while (*p++) {
  ------------------
  |  Branch (276:12): [True: 18.6k, False: 3.03k]
  ------------------
  277|  18.6k|        if (*p == '/') {
  ------------------
  |  Branch (277:13): [True: 6.29k, False: 12.3k]
  ------------------
  278|  6.29k|            *p = ':';
  279|  6.29k|        }
  280|  18.6k|    }
  281|       |
  282|  3.03k|    UResourceBundle *top = ures_openDirect(nullptr, gKeyTypeData, &tmpStatus);
  ------------------
  |  | 1693|  3.03k|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  283|  3.03k|    UResourceBundle *rb = ures_getByKey(top, gTypeMapTag, nullptr, &tmpStatus);
  ------------------
  |  | 1661|  3.03k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  284|  3.03k|    ures_getByKey(rb, gTimezoneTag, rb, &tmpStatus);
  ------------------
  |  | 1661|  3.03k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  285|  3.03k|    ures_getByKey(rb, id, rb, &tmpStatus);
  ------------------
  |  | 1661|  3.03k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  286|  3.03k|    if (U_SUCCESS(tmpStatus)) {
  ------------------
  |  Branch (286:9): [True: 125, False: 2.90k]
  ------------------
  287|       |        // type entry (canonical) found
  288|       |        // the input is the canonical ID. resolve to const char16_t*
  289|    125|        canonicalID = TimeZone::findID(tzid);
  290|    125|        isInputCanonical = true;
  291|    125|    }
  292|       |
  293|  3.03k|    if (canonicalID == nullptr) {
  ------------------
  |  Branch (293:9): [True: 3.00k, False: 23]
  ------------------
  294|       |        // If a map element not found, then look for an alias
  295|  3.00k|        tmpStatus = U_ZERO_ERROR;
  296|  3.00k|        ures_getByKey(top, gTypeAliasTag, rb, &tmpStatus);
  ------------------
  |  | 1661|  3.00k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  3.00k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.00k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.00k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  297|  3.00k|        ures_getByKey(rb, gTimezoneTag, rb, &tmpStatus);
  ------------------
  |  | 1661|  3.00k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  3.00k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.00k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.00k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  298|  3.00k|        const char16_t *canonical = ures_getStringByKey(rb,id,nullptr,&tmpStatus);
  ------------------
  |  | 1677|  3.00k|#define ures_getStringByKey U_ICU_ENTRY_POINT_RENAME(ures_getStringByKey)
  |  |  ------------------
  |  |  |  |  123|  3.00k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.00k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.00k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  299|  3.00k|        if (U_SUCCESS(tmpStatus)) {
  ------------------
  |  Branch (299:13): [True: 36, False: 2.97k]
  ------------------
  300|       |            // canonical map found
  301|     36|            canonicalID = canonical;
  302|     36|        }
  303|       |
  304|  3.00k|        if (canonicalID == nullptr) {
  ------------------
  |  Branch (304:13): [True: 2.97k, False: 36]
  ------------------
  305|       |            // Dereference the input ID using the tz data
  306|  2.97k|            const char16_t *derefer = TimeZone::dereferOlsonLink(tzid);
  307|  2.97k|            if (derefer == nullptr) {
  ------------------
  |  Branch (307:17): [True: 2.95k, False: 22]
  ------------------
  308|  2.95k|                status = U_ILLEGAL_ARGUMENT_ERROR;
  309|  2.95k|            } else {
  310|     22|                int32_t len = u_strlen(derefer);
  ------------------
  |  |  393|     22|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|     22|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     22|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     22|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  311|     22|                u_UCharsToChars(derefer,id,len);
  ------------------
  |  |  211|     22|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|     22|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     22|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     22|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  312|     22|                id[len] = static_cast<char>(0); // Make sure it is null terminated.
  313|       |
  314|       |                // replace '/' with ':'
  315|     22|                char *q = id;
  316|    370|                while (*q++) {
  ------------------
  |  Branch (316:24): [True: 348, False: 22]
  ------------------
  317|    348|                    if (*q == '/') {
  ------------------
  |  Branch (317:25): [True: 24, False: 324]
  ------------------
  318|     24|                        *q = ':';
  319|     24|                    }
  320|    348|                }
  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|     22|                tmpStatus = U_ZERO_ERROR;
  326|     22|                canonical = ures_getStringByKey(rb,id,nullptr,&tmpStatus);
  ------------------
  |  | 1677|     22|#define ures_getStringByKey U_ICU_ENTRY_POINT_RENAME(ures_getStringByKey)
  |  |  ------------------
  |  |  |  |  123|     22|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     22|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     22|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  327|     22|                if (U_SUCCESS(tmpStatus)) {
  ------------------
  |  Branch (327:21): [True: 4, False: 18]
  ------------------
  328|       |                    // canonical map for the dereferenced ID found
  329|      4|                    canonicalID = canonical;
  330|     18|                } else {
  331|     18|                    canonicalID = derefer;
  332|     18|                    isInputCanonical = true;
  333|     18|                }
  334|     22|            }
  335|  2.97k|        }
  336|  3.00k|    }
  337|  3.03k|    ures_close(rb);
  ------------------
  |  | 1652|  3.03k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  338|  3.03k|    ures_close(top);
  ------------------
  |  | 1652|  3.03k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  339|       |
  340|  3.03k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (340:9): [True: 81, False: 2.95k]
  ------------------
  341|     81|        U_ASSERT(canonicalID != nullptr);  // canocanilD must be non-nullptr here
  ------------------
  |  |   35|     81|#   define U_ASSERT(exp) (void)0
  ------------------
  342|       |
  343|       |        // Put the resolved canonical ID to the cache
  344|     81|        umtx_lock(&gZoneMetaLock);
  ------------------
  |  | 1250|     81|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  123|     81|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     81|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     81|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  345|     81|        {
  346|     81|            const char16_t* idInCache = static_cast<const char16_t*>(uhash_get(gCanonicalIDCache, utzid));
  ------------------
  |  | 1007|     81|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|     81|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     81|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     81|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  347|     81|            if (idInCache == nullptr) {
  ------------------
  |  Branch (347:17): [True: 81, False: 0]
  ------------------
  348|     81|                const char16_t* key = ZoneMeta::findTimeZoneID(tzid);
  349|     81|                U_ASSERT(key != nullptr);
  ------------------
  |  |   35|     81|#   define U_ASSERT(exp) (void)0
  ------------------
  350|     81|                if (key != nullptr) {
  ------------------
  |  Branch (350:21): [True: 65, False: 16]
  ------------------
  351|     65|                    idInCache = static_cast<const char16_t*>(uhash_put(gCanonicalIDCache, const_cast<char16_t*>(key), const_cast<char16_t*>(canonicalID), &status));
  ------------------
  |  | 1032|     65|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|     65|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     65|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     65|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  352|     65|                    U_ASSERT(idInCache == nullptr);
  ------------------
  |  |   35|     65|#   define U_ASSERT(exp) (void)0
  ------------------
  353|     65|                }
  354|     81|            }
  355|     81|            if (U_SUCCESS(status) && isInputCanonical) {
  ------------------
  |  Branch (355:17): [True: 81, False: 0]
  |  Branch (355:38): [True: 41, False: 40]
  ------------------
  356|       |                // Also put canonical ID itself into the cache if not exist
  357|     41|                const char16_t* canonicalInCache = static_cast<const char16_t*>(uhash_get(gCanonicalIDCache, canonicalID));
  ------------------
  |  | 1007|     41|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|     41|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     41|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     41|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  358|     41|                if (canonicalInCache == nullptr) {
  ------------------
  |  Branch (358:21): [True: 18, False: 23]
  ------------------
  359|     18|                    canonicalInCache = static_cast<const char16_t*>(uhash_put(gCanonicalIDCache, const_cast<char16_t*>(canonicalID), const_cast<char16_t*>(canonicalID), &status));
  ------------------
  |  | 1032|     18|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|     18|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     18|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     18|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  360|     18|                    U_ASSERT(canonicalInCache == nullptr);
  ------------------
  |  |   35|     18|#   define U_ASSERT(exp) (void)0
  ------------------
  361|     18|                }
  362|     41|            }
  363|     81|        }
  364|     81|        umtx_unlock(&gZoneMetaLock);
  ------------------
  |  | 1251|     81|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  123|     81|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     81|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     81|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  365|     81|    }
  366|       |
  367|  3.03k|    return canonicalID;
  368|  3.55k|}
_ZN6icu_788ZoneMeta18getCanonicalCLDRIDERKNS_13UnicodeStringERS1_R10UErrorCode:
  371|  5.09k|ZoneMeta::getCanonicalCLDRID(const UnicodeString &tzid, UnicodeString &systemID, UErrorCode& status) {
  372|  5.09k|    const char16_t *canonicalID = getCanonicalCLDRID(tzid, status);
  373|  5.09k|    if (U_FAILURE(status) || canonicalID == nullptr) {
  ------------------
  |  Branch (373:9): [True: 4.49k, False: 604]
  |  Branch (373:30): [True: 0, False: 604]
  ------------------
  374|  4.49k|        systemID.setToBogus();
  375|  4.49k|        return systemID;
  376|  4.49k|    }
  377|    604|    systemID.setTo(true, canonicalID, -1);
  378|    604|    return systemID;
  379|  5.09k|}
_ZN6icu_788ZoneMeta18getCanonicalCLDRIDERKNS_8TimeZoneE:
  382|    487|ZoneMeta::getCanonicalCLDRID(const TimeZone& tz) {
  383|    487|    if (dynamic_cast<const OlsonTimeZone *>(&tz) != nullptr) {
  ------------------
  |  Branch (383:9): [True: 487, False: 0]
  ------------------
  384|       |        // short cut for OlsonTimeZone
  385|    487|        const OlsonTimeZone *otz = (const OlsonTimeZone*)&tz;
  386|    487|        return otz->getCanonicalID();
  387|    487|    }
  388|      0|    UErrorCode status = U_ZERO_ERROR;
  389|      0|    UnicodeString tzID;
  390|      0|    return getCanonicalCLDRID(tz.getID(tzID), status);
  391|    487|}
_ZN6icu_788ZoneMeta13getMetazoneIDERKNS_13UnicodeStringEdRS1_:
  548|  5.47k|ZoneMeta::getMetazoneID(const UnicodeString &tzid, UDate date, UnicodeString &result) {
  549|  5.47k|    UBool isSet = false;
  550|  5.47k|    const UVector *mappings = getMetazoneMappings(tzid);
  551|  5.47k|    if (mappings != nullptr) {
  ------------------
  |  Branch (551:9): [True: 833, False: 4.64k]
  ------------------
  552|  1.36k|        for (int32_t i = 0; i < mappings->size(); i++) {
  ------------------
  |  Branch (552:29): [True: 1.22k, False: 145]
  ------------------
  553|  1.22k|            OlsonToMetaMappingEntry* mzm = static_cast<OlsonToMetaMappingEntry*>(mappings->elementAt(i));
  554|  1.22k|            if (mzm->from <= date && mzm->to > date) {
  ------------------
  |  Branch (554:17): [True: 1.05k, False: 167]
  |  Branch (554:38): [True: 688, False: 368]
  ------------------
  555|    688|                result.setTo(mzm->mzid, -1);
  556|    688|                isSet = true;
  557|    688|                break;
  558|    688|            }
  559|  1.22k|        }
  560|    833|    }
  561|  5.47k|    if (!isSet) {
  ------------------
  |  Branch (561:9): [True: 4.78k, False: 688]
  ------------------
  562|  4.78k|        result.setToBogus();
  563|  4.78k|    }
  564|  5.47k|    return result;
  565|  5.47k|}
_ZN6icu_788ZoneMeta19getMetazoneMappingsERKNS_13UnicodeStringE:
  581|  8.70k|ZoneMeta::getMetazoneMappings(const UnicodeString &tzid) {
  582|  8.70k|    UErrorCode status = U_ZERO_ERROR;
  583|  8.70k|    char16_t tzidUChars[ZID_KEY_MAX + 1];
  584|  8.70k|    tzid.extract(tzidUChars, ZID_KEY_MAX + 1, status);
  ------------------
  |  |  113|  8.70k|#define ZID_KEY_MAX 128
  ------------------
  585|  8.70k|    if (U_FAILURE(status) || status == U_STRING_NOT_TERMINATED_WARNING) {
  ------------------
  |  Branch (585:9): [True: 2.38k, False: 6.32k]
  |  Branch (585:30): [True: 42, False: 6.28k]
  ------------------
  586|  2.42k|        return nullptr;
  587|  2.42k|    }
  588|       |
  589|  6.28k|    umtx_initOnce(gOlsonToMetaInitOnce, &olsonToMetaInit, status);
  590|  6.28k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (590:9): [True: 0, False: 6.28k]
  ------------------
  591|      0|        return nullptr;
  592|      0|    }
  593|       |
  594|       |    // get the mapping from cache
  595|  6.28k|    const UVector *result = nullptr;
  596|       |
  597|  6.28k|    umtx_lock(&gZoneMetaLock);
  ------------------
  |  | 1250|  6.28k|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  123|  6.28k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.28k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.28k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  598|  6.28k|    {
  599|  6.28k|        result = static_cast<UVector*>(uhash_get(gOlsonToMeta, tzidUChars));
  ------------------
  |  | 1007|  6.28k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  6.28k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.28k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.28k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  600|  6.28k|    }
  601|  6.28k|    umtx_unlock(&gZoneMetaLock);
  ------------------
  |  | 1251|  6.28k|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  123|  6.28k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.28k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.28k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  602|       |
  603|  6.28k|    if (result != nullptr) {
  ------------------
  |  Branch (603:9): [True: 1.19k, False: 5.09k]
  ------------------
  604|  1.19k|        return result;
  605|  1.19k|    }
  606|       |
  607|       |    // miss the cache - create new one
  608|  5.09k|    UVector *tmpResult = createMetazoneMappings(tzid);
  609|  5.09k|    if (tmpResult == nullptr) {
  ------------------
  |  Branch (609:9): [True: 5.03k, False: 64]
  ------------------
  610|       |        // not available
  611|  5.03k|        return nullptr;
  612|  5.03k|    }
  613|       |
  614|       |    // put the new one into the cache
  615|     64|    umtx_lock(&gZoneMetaLock);
  ------------------
  |  | 1250|     64|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  616|     64|    {
  617|       |        // make sure it's already created
  618|     64|        result = static_cast<UVector*>(uhash_get(gOlsonToMeta, tzidUChars));
  ------------------
  |  | 1007|     64|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  619|     64|        if (result == nullptr) {
  ------------------
  |  Branch (619:13): [True: 64, False: 0]
  ------------------
  620|       |            // add the one just created
  621|     64|            int32_t tzidLen = tzid.length() + 1;
  622|     64|            char16_t* key = static_cast<char16_t*>(uprv_malloc(tzidLen * sizeof(char16_t)));
  ------------------
  |  | 1524|     64|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  623|     64|            if (key == nullptr) {
  ------------------
  |  Branch (623:17): [True: 0, False: 64]
  ------------------
  624|       |                // memory allocation error..  just return nullptr
  625|      0|                result = nullptr;
  626|      0|                delete tmpResult;
  627|     64|            } else {
  628|     64|                tzid.extract(key, tzidLen, status);
  629|     64|                uhash_put(gOlsonToMeta, key, tmpResult, &status);
  ------------------
  |  | 1032|     64|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  630|     64|                if (U_FAILURE(status)) {
  ------------------
  |  Branch (630:21): [True: 0, False: 64]
  ------------------
  631|       |                    // delete the mapping
  632|      0|                    result = nullptr;
  633|      0|                    delete tmpResult;
  634|     64|                } else {
  635|     64|                    result = tmpResult;
  636|     64|                }
  637|     64|            }
  638|     64|        } else {
  639|       |            // another thread already put the one
  640|      0|            delete tmpResult;
  641|      0|        }
  642|     64|    }
  643|     64|    umtx_unlock(&gZoneMetaLock);
  ------------------
  |  | 1251|     64|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  644|       |
  645|     64|    return result;
  646|  5.09k|}
_ZN6icu_788ZoneMeta22createMetazoneMappingsERKNS_13UnicodeStringE:
  649|  5.09k|ZoneMeta::createMetazoneMappings(const UnicodeString &tzid) {
  650|  5.09k|    LocalPointer <UVector> mzMappings;
  651|  5.09k|    UErrorCode status = U_ZERO_ERROR;
  652|       |
  653|  5.09k|    UnicodeString canonicalID;
  654|  5.09k|    UResourceBundle *rb = ures_openDirect(nullptr, gMetaZones, &status);
  ------------------
  |  | 1693|  5.09k|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|  5.09k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.09k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.09k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  655|  5.09k|    ures_getByKey(rb, gMetazoneInfo, rb, &status);
  ------------------
  |  | 1661|  5.09k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  5.09k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.09k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.09k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  656|  5.09k|    getCanonicalCLDRID(tzid, canonicalID, status);
  657|       |
  658|  5.09k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (658:9): [True: 604, False: 4.49k]
  ------------------
  659|    604|        char tzKey[ZID_KEY_MAX + 1];
  660|    604|        int32_t tzKeyLen = canonicalID.extract(0, canonicalID.length(), tzKey, sizeof(tzKey), US_INV);
  ------------------
  |  |   98|    604|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  661|    604|        tzKey[tzKeyLen] = 0;
  662|       |
  663|       |        // tzid keys are using ':' as separators
  664|    604|        char *p = tzKey;
  665|  5.31k|        while (*p) {
  ------------------
  |  Branch (665:16): [True: 4.71k, False: 604]
  ------------------
  666|  4.71k|            if (*p == '/') {
  ------------------
  |  Branch (666:17): [True: 605, False: 4.10k]
  ------------------
  667|    605|                *p = ':';
  668|    605|            }
  669|  4.71k|            p++;
  670|  4.71k|        }
  671|       |
  672|    604|        ures_getByKey(rb, tzKey, rb, &status);
  ------------------
  |  | 1661|    604|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|    604|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    604|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    604|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  673|       |
  674|    604|        if (U_SUCCESS(status)) {
  ------------------
  |  Branch (674:13): [True: 64, False: 540]
  ------------------
  675|     64|            UResourceBundle *mz = nullptr;
  676|    193|            while (ures_hasNext(rb)) {
  ------------------
  |  | 1689|    193|#define ures_hasNext U_ICU_ENTRY_POINT_RENAME(ures_hasNext)
  |  |  ------------------
  |  |  |  |  123|    193|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    193|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    193|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (676:20): [True: 129, False: 64]
  ------------------
  677|    129|                mz = ures_getNextResource(rb, mz, &status);
  ------------------
  |  | 1672|    129|#define ures_getNextResource U_ICU_ENTRY_POINT_RENAME(ures_getNextResource)
  |  |  ------------------
  |  |  |  |  123|    129|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    129|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    129|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  678|       |
  679|    129|                const char16_t *mz_name = ures_getStringByIndex(mz, 0, nullptr, &status);
  ------------------
  |  | 1676|    129|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|    129|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    129|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    129|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  680|    129|                const char16_t *mz_from = gDefaultFrom;
  681|    129|                const char16_t *mz_to = gDefaultTo;
  682|       |
  683|    129|                if (ures_getSize(mz) == 3) {
  ------------------
  |  | 1674|    129|#define ures_getSize U_ICU_ENTRY_POINT_RENAME(ures_getSize)
  |  |  ------------------
  |  |  |  |  123|    129|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    129|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    129|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (683:21): [True: 93, False: 36]
  ------------------
  684|     93|                    mz_from = ures_getStringByIndex(mz, 1, nullptr, &status);
  ------------------
  |  | 1676|     93|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|     93|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     93|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     93|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  685|     93|                    mz_to   = ures_getStringByIndex(mz, 2, nullptr, &status);
  ------------------
  |  | 1676|     93|#define ures_getStringByIndex U_ICU_ENTRY_POINT_RENAME(ures_getStringByIndex)
  |  |  ------------------
  |  |  |  |  123|     93|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     93|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     93|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  686|     93|                }
  687|       |
  688|    129|                if(U_FAILURE(status)){
  ------------------
  |  Branch (688:20): [True: 0, False: 129]
  ------------------
  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|    129|                UDate from = parseDate(mz_from, status);
  696|    129|                UDate to = parseDate(mz_to, status);
  697|    129|                if (U_FAILURE(status)) {
  ------------------
  |  Branch (697:21): [True: 0, False: 129]
  ------------------
  698|      0|                    status = U_ZERO_ERROR;
  699|      0|                    continue;
  700|      0|                }
  701|       |
  702|    129|                LocalPointer<OlsonToMetaMappingEntry> entry(new OlsonToMetaMappingEntry, status);
  703|    129|                if (U_FAILURE(status)) {
  ------------------
  |  Branch (703:21): [True: 0, False: 129]
  ------------------
  704|      0|                    break;
  705|      0|                }
  706|    129|                entry->mzid = mz_name;
  707|    129|                entry->from = from;
  708|    129|                entry->to = to;
  709|       |
  710|    129|                if (mzMappings.isNull()) {
  ------------------
  |  Branch (710:21): [True: 64, False: 65]
  ------------------
  711|     64|                    mzMappings.adoptInsteadAndCheckErrorCode(
  712|     64|                        new UVector(deleteOlsonToMetaMappingEntry, nullptr, status), status);
  713|     64|                    if (U_FAILURE(status)) {
  ------------------
  |  Branch (713:25): [True: 0, False: 64]
  ------------------
  714|      0|                        break;
  715|      0|                    }
  716|     64|                }
  717|       |
  718|    129|                mzMappings->adoptElement(entry.orphan(), status);
  719|    129|                if (U_FAILURE(status)) {
  ------------------
  |  Branch (719:21): [True: 0, False: 129]
  ------------------
  720|      0|                    break;
  721|      0|                }
  722|    129|            }
  723|     64|            ures_close(mz);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  724|     64|        }
  725|    604|    }
  726|  5.09k|    ures_close(rb);
  ------------------
  |  | 1652|  5.09k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  5.09k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.09k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.09k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  727|  5.09k|    return U_SUCCESS(status) ? mzMappings.orphan() : nullptr;
  ------------------
  |  Branch (727:12): [True: 64, False: 5.03k]
  ------------------
  728|  5.09k|}
_ZN6icu_788ZoneMeta23getAvailableMetazoneIDsEv:
  839|  2.74k|ZoneMeta::getAvailableMetazoneIDs() {
  840|  2.74k|    umtx_initOnce(gMetaZoneIDsInitOnce, &initAvailableMetaZoneIDs);
  841|  2.74k|    return gMetaZoneIDs;
  842|  2.74k|}
_ZN6icu_788ZoneMeta14findMetaZoneIDERKNS_13UnicodeStringE:
  845|  1.40k|ZoneMeta::findMetaZoneID(const UnicodeString& mzid) {
  846|  1.40k|    umtx_initOnce(gMetaZoneIDsInitOnce, &initAvailableMetaZoneIDs);
  847|  1.40k|    if (gMetaZoneIDTable == nullptr) {
  ------------------
  |  Branch (847:9): [True: 0, False: 1.40k]
  ------------------
  848|      0|        return nullptr;
  849|      0|    }
  850|  1.40k|    return static_cast<const char16_t*>(uhash_get(gMetaZoneIDTable, &mzid));
  ------------------
  |  | 1007|  1.40k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  1.40k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.40k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.40k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  851|  1.40k|}
_ZN6icu_788ZoneMeta14findTimeZoneIDERKNS_13UnicodeStringE:
  854|  2.80k|ZoneMeta::findTimeZoneID(const UnicodeString& tzid) {
  855|  2.80k|    return TimeZone::findID(tzid);
  856|  2.80k|}
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|}
zonemeta.cpp:_ZN6icu_78L9parseDateEPKDsR10UErrorCode:
  145|    258|parseDate (const char16_t *text, UErrorCode &status) {
  146|    258|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (146:9): [True: 0, False: 258]
  ------------------
  147|      0|        return 0;
  148|      0|    }
  149|    258|    int32_t len = u_strlen(text);
  ------------------
  |  |  393|    258|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  150|    258|    if (len != 16 && len != 10) {
  ------------------
  |  Branch (150:9): [True: 0, False: 258]
  |  Branch (150:22): [True: 0, False: 0]
  ------------------
  151|       |        // It must be yyyy-MM-dd HH:mm (length 16) or yyyy-MM-dd (length 10)
  152|      0|        status = U_INVALID_FORMAT_ERROR;
  153|      0|        return 0;
  154|      0|    }
  155|       |
  156|    258|    int32_t year = 0, month = 0, day = 0, hour = 0, min = 0, n;
  157|    258|    int32_t idx;
  158|       |
  159|       |    // "yyyy" (0 - 3)
  160|  1.29k|    for (idx = 0; idx <= 3 && U_SUCCESS(status); idx++) {
  ------------------
  |  Branch (160:19): [True: 1.03k, False: 258]
  |  Branch (160:31): [True: 1.03k, False: 0]
  ------------------
  161|  1.03k|        n = ASCII_DIGIT((int32_t)text[idx]);
  ------------------
  |  |  138|  1.03k|#define ASCII_DIGIT(c) (((c)>=0x30 && (c)<=0x39) ? (c)-0x30 : -1)
  |  |  ------------------
  |  |  |  Branch (138:26): [True: 1.03k, False: 0]
  |  |  |  Branch (138:39): [True: 1.03k, False: 0]
  |  |  ------------------
  ------------------
  162|  1.03k|        if (n >= 0) {
  ------------------
  |  Branch (162:13): [True: 1.03k, False: 0]
  ------------------
  163|  1.03k|            year = 10*year + n;
  164|  1.03k|        } else {
  165|      0|            status = U_INVALID_FORMAT_ERROR;
  166|      0|        }
  167|  1.03k|    }
  168|       |    // "MM" (5 - 6)
  169|    774|    for (idx = 5; idx <= 6 && U_SUCCESS(status); idx++) {
  ------------------
  |  Branch (169:19): [True: 516, False: 258]
  |  Branch (169:31): [True: 516, False: 0]
  ------------------
  170|    516|        n = ASCII_DIGIT((int32_t)text[idx]);
  ------------------
  |  |  138|    516|#define ASCII_DIGIT(c) (((c)>=0x30 && (c)<=0x39) ? (c)-0x30 : -1)
  |  |  ------------------
  |  |  |  Branch (138:26): [True: 516, False: 0]
  |  |  |  Branch (138:39): [True: 516, False: 0]
  |  |  ------------------
  ------------------
  171|    516|        if (n >= 0) {
  ------------------
  |  Branch (171:13): [True: 516, False: 0]
  ------------------
  172|    516|            month = 10*month + n;
  173|    516|        } else {
  174|      0|            status = U_INVALID_FORMAT_ERROR;
  175|      0|        }
  176|    516|    }
  177|       |    // "dd" (8 - 9)
  178|    774|    for (idx = 8; idx <= 9 && U_SUCCESS(status); idx++) {
  ------------------
  |  Branch (178:19): [True: 516, False: 258]
  |  Branch (178:31): [True: 516, False: 0]
  ------------------
  179|    516|        n = ASCII_DIGIT((int32_t)text[idx]);
  ------------------
  |  |  138|    516|#define ASCII_DIGIT(c) (((c)>=0x30 && (c)<=0x39) ? (c)-0x30 : -1)
  |  |  ------------------
  |  |  |  Branch (138:26): [True: 516, False: 0]
  |  |  |  Branch (138:39): [True: 516, False: 0]
  |  |  ------------------
  ------------------
  180|    516|        if (n >= 0) {
  ------------------
  |  Branch (180:13): [True: 516, False: 0]
  ------------------
  181|    516|            day = 10*day + n;
  182|    516|        } else {
  183|      0|            status = U_INVALID_FORMAT_ERROR;
  184|      0|        }
  185|    516|    }
  186|    258|    if (len == 16) {
  ------------------
  |  Branch (186:9): [True: 258, False: 0]
  ------------------
  187|       |        // "HH" (11 - 12)
  188|    774|        for (idx = 11; idx <= 12 && U_SUCCESS(status); idx++) {
  ------------------
  |  Branch (188:24): [True: 516, False: 258]
  |  Branch (188:37): [True: 516, False: 0]
  ------------------
  189|    516|            n = ASCII_DIGIT((int32_t)text[idx]);
  ------------------
  |  |  138|    516|#define ASCII_DIGIT(c) (((c)>=0x30 && (c)<=0x39) ? (c)-0x30 : -1)
  |  |  ------------------
  |  |  |  Branch (138:26): [True: 516, False: 0]
  |  |  |  Branch (138:39): [True: 516, False: 0]
  |  |  ------------------
  ------------------
  190|    516|            if (n >= 0) {
  ------------------
  |  Branch (190:17): [True: 516, False: 0]
  ------------------
  191|    516|                hour = 10*hour + n;
  192|    516|            } else {
  193|      0|                status = U_INVALID_FORMAT_ERROR;
  194|      0|            }
  195|    516|        }
  196|       |        // "mm" (14 - 15)
  197|    774|        for (idx = 14; idx <= 15 && U_SUCCESS(status); idx++) {
  ------------------
  |  Branch (197:24): [True: 516, False: 258]
  |  Branch (197:37): [True: 516, False: 0]
  ------------------
  198|    516|            n = ASCII_DIGIT((int32_t)text[idx]);
  ------------------
  |  |  138|    516|#define ASCII_DIGIT(c) (((c)>=0x30 && (c)<=0x39) ? (c)-0x30 : -1)
  |  |  ------------------
  |  |  |  Branch (138:26): [True: 516, False: 0]
  |  |  |  Branch (138:39): [True: 516, False: 0]
  |  |  ------------------
  ------------------
  199|    516|            if (n >= 0) {
  ------------------
  |  Branch (199:17): [True: 516, False: 0]
  ------------------
  200|    516|                min = 10*min + n;
  201|    516|            } else {
  202|      0|                status = U_INVALID_FORMAT_ERROR;
  203|      0|            }
  204|    516|        }
  205|    258|    }
  206|       |
  207|    258|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (207:9): [True: 258, False: 0]
  ------------------
  208|    258|        UDate date = Grego::fieldsToDay(year, month - 1, day) * U_MILLIS_PER_DAY
  ------------------
  |  |  227|    258|#define U_MILLIS_PER_DAY       (86400000)
  ------------------
  209|    258|            + hour * U_MILLIS_PER_HOUR + min * U_MILLIS_PER_MINUTE;
  ------------------
  |  |  225|    258|#define U_MILLIS_PER_HOUR       (3600000)
  ------------------
                          + hour * U_MILLIS_PER_HOUR + min * U_MILLIS_PER_MINUTE;
  ------------------
  |  |  223|    258|#define U_MILLIS_PER_MINUTE       (60000)
  ------------------
  210|    258|        return date;
  211|    258|    }
  212|      0|    return 0;
  213|    258|}
zonemeta.cpp:_ZN6icu_78L24initAvailableMetaZoneIDsEv:
  776|      1|static void U_CALLCONV initAvailableMetaZoneIDs () {
  777|      1|    U_ASSERT(gMetaZoneIDs == nullptr);
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
  778|      1|    U_ASSERT(gMetaZoneIDTable == nullptr);
  ------------------
  |  |   35|      1|#   define U_ASSERT(exp) (void)0
  ------------------
  779|      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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  780|       |
  781|      1|    UErrorCode status = U_ZERO_ERROR;
  782|      1|    gMetaZoneIDTable = 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  gMetaZoneIDTable = 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  gMetaZoneIDTable = 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  783|      1|    if (U_FAILURE(status) || gMetaZoneIDTable == nullptr) {
  ------------------
  |  Branch (783:9): [True: 0, False: 1]
  |  Branch (783:30): [True: 0, False: 1]
  ------------------
  784|      0|        gMetaZoneIDTable = nullptr;
  785|      0|        return;
  786|      0|    }
  787|      1|    uhash_setKeyDeleter(gMetaZoneIDTable, uprv_deleteUObject);
  ------------------
  |  | 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(gMetaZoneIDTable, 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  788|       |    // No valueDeleter, because the vector maintain the value objects
  789|      1|    gMetaZoneIDs = new UVector(nullptr, uhash_compareUChars, 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  790|      1|    if (U_FAILURE(status) || gMetaZoneIDs == nullptr) {
  ------------------
  |  Branch (790:9): [True: 0, False: 1]
  |  Branch (790:30): [True: 0, False: 1]
  ------------------
  791|      0|        delete gMetaZoneIDs;
  792|      0|        gMetaZoneIDs = nullptr;
  793|      0|        uhash_close(gMetaZoneIDTable);
  ------------------
  |  |  991|      0|#define uhash_close U_ICU_ENTRY_POINT_RENAME(uhash_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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  794|      0|        gMetaZoneIDTable = nullptr;
  795|      0|        return;
  796|      0|    }
  797|      1|    gMetaZoneIDs->setDeleter(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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  798|       |
  799|      1|    UResourceBundle *rb = ures_openDirect(nullptr, gMetaZones, &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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  800|      1|    UResourceBundle *bundle = ures_getByKey(rb, gMapTimezonesTag, 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  801|      1|    StackUResourceBundle res;
  802|    191|    while (U_SUCCESS(status) && ures_hasNext(bundle)) {
  ------------------
  |  | 1689|    191|#define ures_hasNext U_ICU_ENTRY_POINT_RENAME(ures_hasNext)
  |  |  ------------------
  |  |  |  |  123|    191|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    191|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    191|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (802:12): [True: 191, False: 0]
  |  Branch (802:33): [True: 190, False: 1]
  ------------------
  803|    190|        ures_getNextResource(bundle, res.getAlias(), &status);
  ------------------
  |  | 1672|    190|#define ures_getNextResource U_ICU_ENTRY_POINT_RENAME(ures_getNextResource)
  |  |  ------------------
  |  |  |  |  123|    190|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    190|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    190|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  804|    190|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (804:13): [True: 0, False: 190]
  ------------------
  805|      0|            break;
  806|      0|        }
  807|    190|        const char *mzID = ures_getKey(res.getAlias());
  ------------------
  |  | 1666|    190|#define ures_getKey U_ICU_ENTRY_POINT_RENAME(ures_getKey)
  |  |  ------------------
  |  |  |  |  123|    190|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    190|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    190|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  808|    190|        int32_t len = static_cast<int32_t>(uprv_strlen(mzID));
  ------------------
  |  |   37|    190|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    190|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  809|    190|        LocalMemory<char16_t> uMzID(static_cast<char16_t*>(uprv_malloc(sizeof(char16_t) * (len + 1))));
  ------------------
  |  | 1524|    190|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    190|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    190|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    190|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  810|    190|        if (uMzID.isNull()) {
  ------------------
  |  Branch (810:13): [True: 0, False: 190]
  ------------------
  811|      0|            status = U_MEMORY_ALLOCATION_ERROR;
  812|      0|            break;
  813|      0|        }
  814|    190|        u_charsToUChars(mzID, uMzID.getAlias(), len);
  ------------------
  |  |  226|    190|#define u_charsToUChars U_ICU_ENTRY_POINT_RENAME(u_charsToUChars)
  |  |  ------------------
  |  |  |  |  123|    190|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    190|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    190|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  815|    190|        uMzID[len] = 0;
  816|    190|        LocalPointer<UnicodeString> usMzID(new UnicodeString(uMzID.getAlias()), status);
  817|    190|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (817:13): [True: 0, False: 190]
  ------------------
  818|      0|            break;
  819|      0|        }
  820|    190|        if (uhash_get(gMetaZoneIDTable, usMzID.getAlias()) == nullptr) {
  ------------------
  |  | 1007|    190|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|    190|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    190|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    190|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (820:13): [True: 190, False: 0]
  ------------------
  821|       |            // Note: gMetaZoneIDTable adopts its keys, but not its values.
  822|       |            //       gMetaZoneIDs adopts its values.
  823|    190|            uhash_put(gMetaZoneIDTable, usMzID.orphan(), uMzID.getAlias(), &status);
  ------------------
  |  | 1032|    190|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|    190|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    190|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    190|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  824|    190|            gMetaZoneIDs->adoptElement(uMzID.orphan(), status);
  825|    190|        }
  826|    190|    }
  827|      1|    ures_close(bundle);
  ------------------
  |  | 1652|      1|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  828|      1|    ures_close(rb);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  829|       |
  830|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (830:9): [True: 0, False: 1]
  ------------------
  831|      0|        uhash_close(gMetaZoneIDTable);
  ------------------
  |  |  991|      0|#define uhash_close U_ICU_ENTRY_POINT_RENAME(uhash_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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  832|      0|        delete gMetaZoneIDs;
  833|      0|        gMetaZoneIDTable = nullptr;
  834|      0|        gMetaZoneIDs = nullptr;
  835|      0|    }
  836|      1|}

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

_Z9TestNamesPN6icu_7813TimeZoneNamesERKNS_13UnicodeStringEd17UTimeZoneNameType:
   13|  2.74k|void TestNames(icu::TimeZoneNames* names, const icu::UnicodeString& text, UDate date, UTimeZoneNameType type) {
   14|  2.74k|    UErrorCode status = U_ZERO_ERROR;
   15|  2.74k|    std::unique_ptr<icu::StringEnumeration> enumeration(
   16|  2.74k|        names->getAvailableMetaZoneIDs(status));
   17|  2.74k|    status = U_ZERO_ERROR;
   18|  2.74k|    enumeration.reset(
   19|  2.74k|        names->getAvailableMetaZoneIDs(text, status));
   20|  2.74k|    icu::UnicodeString output;
   21|  2.74k|    names->getMetaZoneID(text, date, output);
   22|  2.74k|    names->getMetaZoneDisplayName(text, type, output);
   23|  2.74k|    names->getTimeZoneDisplayName(text, type, output);
   24|  2.74k|    names->getExemplarLocationName(text, output);
   25|  2.74k|    names->getDisplayName(text, type, date, output);
   26|  2.74k|}
LLVMFuzzerTestOneInput:
   27|  1.38k|extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
   28|  1.38k|    uint16_t rnd;
   29|  1.38k|    UDate date;
   30|       |
   31|  1.38k|    UTimeZoneNameType type;
   32|  1.38k|    if (size < sizeof(rnd) + sizeof(date) + sizeof(type)) return 0;
  ------------------
  |  Branch (32:9): [True: 7, False: 1.37k]
  ------------------
   33|  1.37k|    icu::StringPiece fuzzData(reinterpret_cast<const char *>(data), size);
   34|       |
   35|  1.37k|    std::memcpy(&rnd, fuzzData.data(), sizeof(rnd));
   36|  1.37k|    icu::Locale locale = GetRandomLocale(rnd);
   37|  1.37k|    fuzzData.remove_prefix(sizeof(rnd));
   38|       |
   39|  1.37k|    std::memcpy(&date, fuzzData.data(), sizeof(date));
   40|  1.37k|    fuzzData.remove_prefix(sizeof(date));
   41|       |
   42|  1.37k|    std::memcpy(&type, fuzzData.data(), sizeof(type));
   43|  1.37k|    fuzzData.remove_prefix(sizeof(type));
   44|       |
   45|  1.37k|    size_t len = fuzzData.size() / sizeof(char16_t);
   46|  1.37k|    icu::UnicodeString text(false, reinterpret_cast<const char16_t*>(fuzzData.data()), len);
   47|       |
   48|  1.37k|    UErrorCode status = U_ZERO_ERROR;
   49|  1.37k|    std::unique_ptr<icu::TimeZoneNames> names(
   50|  1.37k|        icu::TimeZoneNames::createInstance(locale, status));
   51|  1.37k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (51:9): [True: 1.37k, False: 0]
  ------------------
   52|  1.37k|        TestNames(names.get(), text, date, type);
   53|  1.37k|    }
   54|       |
   55|  1.37k|    status = U_ZERO_ERROR;
   56|  1.37k|    names.reset(
   57|  1.37k|        icu::TimeZoneNames::createTZDBInstance(locale, status));
   58|  1.37k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (58:9): [True: 1.37k, False: 0]
  ------------------
   59|  1.37k|        TestNames(names.get(), text, date, type);
   60|  1.37k|    }
   61|       |
   62|  1.37k|    return EXIT_SUCCESS;
   63|  1.38k|}

