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

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

_ZN6icu_788ByteSinkD2Ev:
   15|   103k|ByteSink::~ByteSink() {}
_ZN6icu_7820CheckedArrayByteSinkC2EPci:
   32|  11.4k|    : outbuf_(outbuf), capacity_(capacity < 0 ? 0 : capacity),
  ------------------
  |  Branch (32:34): [True: 0, False: 11.4k]
  ------------------
   33|  11.4k|      size_(0), appended_(0), overflowed_(false) {
   34|  11.4k|}
_ZN6icu_7820CheckedArrayByteSink6AppendEPKci:
   44|   122k|void CheckedArrayByteSink::Append(const char* bytes, int32_t n) {
   45|   122k|  if (n <= 0) {
  ------------------
  |  Branch (45:7): [True: 1.62k, False: 121k]
  ------------------
   46|  1.62k|    return;
   47|  1.62k|  }
   48|   121k|  if (n > (INT32_MAX - appended_)) {
  ------------------
  |  Branch (48:7): [True: 0, False: 121k]
  ------------------
   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|   121k|  appended_ += n;
   55|   121k|  int32_t available = capacity_ - size_;
   56|   121k|  if (n > available) {
  ------------------
  |  Branch (56:7): [True: 7.44k, False: 113k]
  ------------------
   57|  7.44k|    n = available;
   58|  7.44k|    overflowed_ = true;
   59|  7.44k|  }
   60|   121k|  if (n > 0 && bytes != (outbuf_ + size_)) {
  ------------------
  |  Branch (60:7): [True: 114k, False: 6.94k]
  |  Branch (60:16): [True: 114k, False: 0]
  ------------------
   61|   114k|    uprv_memcpy(outbuf_ + size_, bytes, n);
  ------------------
  |  |   42|   114k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   114k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|   114k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|   114k|    _Pragma("clang diagnostic push") \
  |  |   45|   114k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|   114k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|   114k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|   114k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|   114k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|   114k|    _Pragma("clang diagnostic pop") \
  |  |   49|   114k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|   114k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|   114k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   114k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   62|   114k|  }
   63|   121k|  size_ += n;
   64|   121k|}

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

_ZN6icu_7810CharStringC2ENS_11StringPieceER10UErrorCode:
   44|  8.12k|    CharString(StringPiece s, UErrorCode &errorCode) : len(0) {
   45|  8.12k|        buffer[0]=0;
   46|  8.12k|        append(s, errorCode);
   47|  8.12k|    }
_ZN6icu_7810CharString6appendENS_11StringPieceER10UErrorCode:
  131|  36.0k|    CharString &append(StringPiece s, UErrorCode &errorCode) {
  132|  36.0k|        return append(s.data(), s.length(), errorCode);
  133|  36.0k|    }
_ZN6icu_7810CharString4dataEv:
   85|   185k|    char *data() { return buffer.getAlias(); }
_ZNK6icu_7810CharString7isEmptyEv:
   79|  83.6k|    UBool isEmpty() const { return len==0; }
_ZN6icu_7810CharStringD2Ev:
   56|   195k|    ~CharString() {}
_ZN6icu_7810CharStringC2Ev:
   43|   150k|    CharString() : len(0) { buffer[0]=0; }
_ZNK6icu_7810CharString13toStringPieceEv:
   82|  4.18k|    StringPiece toStringPiece() const { return StringPiece(buffer.getAlias(), len); }
_ZNK6icu_7810CharString6lengthEv:
   80|  28.9k|    int32_t length() const { return len; }
_ZN6icu_7810CharStringC2EPKciR10UErrorCode:
   52|  37.5k|    CharString(const char *s, int32_t sLength, UErrorCode &errorCode) : len(0) {
   53|  37.5k|        buffer[0]=0;
   54|  37.5k|        append(s, sLength, errorCode);
   55|  37.5k|    }
_ZNK6icu_7810CharStringixEi:
   81|      3|    char operator[](int32_t index) const { return buffer[index]; }
_ZNK6icu_7810CharString4dataEv:
   84|  5.21k|    const char *data() const { return buffer.getAlias(); }
_ZNK6icu_7810CharStringeqENS_11StringPieceE:
  115|  8.86k|    bool operator==(StringPiece other) const {
  116|  8.86k|        return len == other.length() && (len == 0 || uprv_memcmp(data(), other.data(), len) == 0);
  ------------------
  |  |  101|    441|#define uprv_memcmp(buffer1, buffer2, size) U_STANDARD_CPP_NAMESPACE memcmp(buffer1, buffer2,size)
  |  |  ------------------
  |  |  |  |  393|    441|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (116:16): [True: 441, False: 8.41k]
  |  Branch (116:42): [True: 0, False: 441]
  |  Branch (116:54): [True: 0, False: 441]
  ------------------
  117|  8.86k|    }
_ZN6icu_7810CharString5clearEv:
  127|  9.77k|    CharString &clear() { len=0; buffer[0]=0; return *this; }
_ZN6icu_7810CharString6appendERKS0_R10UErrorCode:
  134|  4.77k|    CharString &append(const CharString &s, UErrorCode &errorCode) {
  135|  4.77k|        return append(s.data(), s.length(), errorCode);
  136|  4.77k|    }

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

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

_ZN6icu_7815MaybeStackArrayIcLi40EEC2Ev:
  344|   196k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZN6icu_7815MaybeStackArrayIcLi40EED2Ev:
  363|   195k|    ~MaybeStackArray() { releaseArray(); }
_ZN6icu_7815MaybeStackArrayIcLi40EEaSEOS1_:
  490|  41.2k|MaybeStackArray<T, stackCapacity>::operator=(MaybeStackArray <T, stackCapacity>&& src) noexcept {
  491|  41.2k|    releaseArray();  // in case this instance had its own memory allocated
  492|  41.2k|    capacity = src.capacity;
  493|  41.2k|    needToRelease = src.needToRelease;
  494|  41.2k|    if (src.ptr == src.stackArray) {
  ------------------
  |  Branch (494:9): [True: 17.1k, False: 24.1k]
  ------------------
  495|  17.1k|        ptr = stackArray;
  496|  17.1k|        uprv_memcpy(stackArray, src.stackArray, sizeof(T) * src.capacity);
  ------------------
  |  |   42|  17.1k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  17.1k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  17.1k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  17.1k|    _Pragma("clang diagnostic push") \
  |  |   45|  17.1k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  17.1k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  17.1k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  17.1k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  17.1k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  17.1k|    _Pragma("clang diagnostic pop") \
  |  |   49|  17.1k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  17.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  17.1k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  17.1k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  497|  24.1k|    } else {
  498|  24.1k|        ptr = src.ptr;
  499|  24.1k|        src.resetToStackArray();  // take ownership away from src
  500|  24.1k|    }
  501|  41.2k|    return *this;
  502|  41.2k|}
_ZNK6icu_7815MaybeStackArrayIcLi40EE11getCapacityEv:
  376|   322k|    int32_t getCapacity() const { return capacity; }
_ZNK6icu_7815MaybeStackArrayIcLi40EE8getAliasEv:
  381|   991k|    T *getAlias() const { return ptr; }
_ZNK6icu_7815MaybeStackArrayIcLi40EEixEl:
  395|      3|    const T &operator[](ptrdiff_t i) const { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIcLi40EEixEl:
  402|   481k|    T &operator[](ptrdiff_t i) { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIcLi40EE6resizeEii:
  505|  32.5k|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|  32.5k|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 32.5k, 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|  32.5k|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|  32.5k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  32.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  32.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  32.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|  32.5k|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 32.5k, False: 0]
  ------------------
  512|  32.5k|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 32.5k, False: 0]
  ------------------
  513|  32.5k|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 32.5k]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|  32.5k|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 32.5k]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|  32.5k|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|  32.5k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  32.5k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  32.5k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  32.5k|    _Pragma("clang diagnostic push") \
  |  |   45|  32.5k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  32.5k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  32.5k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  32.5k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  32.5k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  32.5k|    _Pragma("clang diagnostic pop") \
  |  |   49|  32.5k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  32.5k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  32.5k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  32.5k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|  32.5k|            }
  521|  32.5k|            releaseArray();
  522|  32.5k|            ptr=p;
  523|  32.5k|            capacity=newCapacity;
  524|  32.5k|            needToRelease=true;
  525|  32.5k|        }
  526|  32.5k|        return p;
  527|  32.5k|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|  32.5k|}
_ZN6icu_7815MaybeStackArrayIcLi40EE12releaseArrayEv:
  458|   268k|    void releaseArray() {
  459|   268k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 32.5k, False: 236k]
  ------------------
  460|  32.5k|            uprv_free(ptr);
  ------------------
  |  | 1503|  32.5k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  32.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  32.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  32.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|  32.5k|        }
  462|   268k|    }
_ZN6icu_7815MaybeStackArrayIcLi40EE17resetToStackArrayEv:
  463|  24.1k|    void resetToStackArray() {
  464|  24.1k|        ptr=stackArray;
  465|  24.1k|        capacity=stackCapacity;
  466|  24.1k|        needToRelease=false;
  467|  24.1k|    }
_ZN6icu_7815MaybeStackArrayINS_20StandardPluralRanges25StandardPluralRangeTripleELi3EED2Ev:
  363|  52.0k|    ~MaybeStackArray() { releaseArray(); }
_ZN6icu_7815MaybeStackArrayINS_20StandardPluralRanges25StandardPluralRangeTripleELi3EE12releaseArrayEv:
  458|  54.3k|    void releaseArray() {
  459|  54.3k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 2.33k, False: 52.0k]
  ------------------
  460|  2.33k|            uprv_free(ptr);
  ------------------
  |  | 1503|  2.33k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  2.33k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.33k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.33k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|  2.33k|        }
  462|  54.3k|    }
_ZN6icu_7815MaybeStackArrayINS_20StandardPluralRanges25StandardPluralRangeTripleELi3EEC2Ev:
  344|  26.5k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZN6icu_7815MaybeStackArrayINS_20StandardPluralRanges25StandardPluralRangeTripleELi3EEC2EOS3_:
  479|  26.5k|        : ptr(src.ptr), capacity(src.capacity), needToRelease(src.needToRelease) {
  480|  26.5k|    if (src.ptr == src.stackArray) {
  ------------------
  |  Branch (480:9): [True: 24.1k, False: 2.39k]
  ------------------
  481|  24.1k|        ptr = stackArray;
  482|  24.1k|        uprv_memcpy(stackArray, src.stackArray, sizeof(T) * src.capacity);
  ------------------
  |  |   42|  24.1k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  24.1k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  24.1k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  24.1k|    _Pragma("clang diagnostic push") \
  |  |   45|  24.1k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  24.1k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  24.1k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  24.1k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  24.1k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  24.1k|    _Pragma("clang diagnostic pop") \
  |  |   49|  24.1k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  24.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  24.1k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  24.1k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  483|  24.1k|    } else {
  484|  2.39k|        src.resetToStackArray();  // take ownership away from src
  485|  2.39k|    }
  486|  26.5k|}
_ZN6icu_7815MaybeStackArrayINS_20StandardPluralRanges25StandardPluralRangeTripleELi3EE17resetToStackArrayEv:
  463|  2.39k|    void resetToStackArray() {
  464|  2.39k|        ptr=stackArray;
  465|  2.39k|        capacity=stackCapacity;
  466|  2.39k|        needToRelease=false;
  467|  2.39k|    }
_ZNK6icu_7815MaybeStackArrayINS_20StandardPluralRanges25StandardPluralRangeTripleELi3EE11getCapacityEv:
  376|  18.5k|    int32_t getCapacity() const { return capacity; }
_ZN6icu_7815MaybeStackArrayINS_20StandardPluralRanges25StandardPluralRangeTripleELi3EE6resizeEii:
  505|  2.39k|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|  2.39k|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 2.39k, False: 0]
  ------------------
  507|       |#if U_DEBUG && defined(UPRV_MALLOC_COUNT)
  508|       |        ::fprintf(::stderr, "MaybeStackArray (resize) alloc %d * %lu\n", newCapacity, sizeof(T));
  509|       |#endif
  510|  2.39k|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|  2.39k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  2.39k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.39k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.39k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|  2.39k|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 2.39k, False: 0]
  ------------------
  512|  2.39k|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 0, False: 2.39k]
  ------------------
  513|      0|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 0]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|      0|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 0]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|      0|                uprv_memcpy(p, 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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|      0|            }
  521|  2.39k|            releaseArray();
  522|  2.39k|            ptr=p;
  523|  2.39k|            capacity=newCapacity;
  524|  2.39k|            needToRelease=true;
  525|  2.39k|        }
  526|  2.39k|        return p;
  527|  2.39k|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|  2.39k|}
_ZNK6icu_7815MaybeStackArrayINS_20StandardPluralRanges25StandardPluralRangeTripleELi3EE8getAliasEv:
  381|  30.0k|    T *getAlias() const { return ptr; }
_ZN6icu_7815MaybeStackArrayINS_20StandardPluralRanges25StandardPluralRangeTripleELi3EEixEl:
  402|  20.9k|    T &operator[](ptrdiff_t i) { return ptr[i]; }
_ZN6icu_7810MemoryPoolINS_13UnicodeStringELi8EEC2Ev:
  760|      1|    MemoryPool() : fCount(0), fPool() {}
_ZN6icu_7815MaybeStackArrayIPNS_13UnicodeStringELi8EEC2Ev:
  344|      1|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZN6icu_7810MemoryPoolINS_13UnicodeStringELi8EED2Ev:
  762|      1|    ~MemoryPool() {
  763|      1|        for (int32_t i = 0; i < fCount; ++i) {
  ------------------
  |  Branch (763:29): [True: 0, False: 1]
  ------------------
  764|      0|            delete fPool[i];
  765|      0|        }
  766|      1|    }
_ZN6icu_7815MaybeStackArrayIPNS_13UnicodeStringELi8EED2Ev:
  363|      1|    ~MaybeStackArray() { releaseArray(); }
_ZN6icu_7815MaybeStackArrayIPNS_13UnicodeStringELi8EE12releaseArrayEv:
  458|      1|    void releaseArray() {
  459|      1|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 0, False: 1]
  ------------------
  460|      0|            uprv_free(ptr);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|      0|        }
  462|      1|    }
_ZN6icu_7811LocalMemoryIPKcEC2EPS2_:
  195|      5|    explicit LocalMemory(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7811LocalMemoryIiEC2EPi:
  195|      5|    explicit LocalMemory(T *p=nullptr) : LocalPointerBase<T>(p) {}
_ZN6icu_7811LocalMemoryIPKcE22allocateInsteadAndCopyEii:
  294|      5|inline T *LocalMemory<T>::allocateInsteadAndCopy(int32_t newCapacity, int32_t length) {
  295|      5|    if(newCapacity>0) {
  ------------------
  |  Branch (295:8): [True: 5, False: 0]
  ------------------
  296|      5|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|      5|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      5|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      5|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      5|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  297|      5|        if(p!=nullptr) {
  ------------------
  |  Branch (297:12): [True: 5, False: 0]
  ------------------
  298|      5|            if(length>0) {
  ------------------
  |  Branch (298:16): [True: 0, False: 5]
  ------------------
  299|      0|                if(length>newCapacity) {
  ------------------
  |  Branch (299:20): [True: 0, False: 0]
  ------------------
  300|      0|                    length=newCapacity;
  301|      0|                }
  302|      0|                uprv_memcpy(p, LocalPointerBase<T>::ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|      0|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      0|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|      0|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|      0|    _Pragma("clang diagnostic push") \
  |  |   45|      0|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|      0|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|      0|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|      0|    _Pragma("clang diagnostic pop") \
  |  |   49|      0|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|      0|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      0|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  303|      0|            }
  304|      5|            uprv_free(LocalPointerBase<T>::ptr);
  ------------------
  |  | 1503|      5|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      5|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      5|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      5|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  305|      5|            LocalPointerBase<T>::ptr=p;
  306|      5|        }
  307|      5|        return p;
  308|      5|    } else {
  309|      0|        return nullptr;
  310|      0|    }
  311|      5|}
_ZN6icu_7811LocalMemoryIiE22allocateInsteadAndCopyEii:
  294|      5|inline T *LocalMemory<T>::allocateInsteadAndCopy(int32_t newCapacity, int32_t length) {
  295|      5|    if(newCapacity>0) {
  ------------------
  |  Branch (295:8): [True: 5, False: 0]
  ------------------
  296|      5|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|      5|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      5|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      5|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      5|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  297|      5|        if(p!=nullptr) {
  ------------------
  |  Branch (297:12): [True: 5, False: 0]
  ------------------
  298|      5|            if(length>0) {
  ------------------
  |  Branch (298:16): [True: 0, False: 5]
  ------------------
  299|      0|                if(length>newCapacity) {
  ------------------
  |  Branch (299:20): [True: 0, False: 0]
  ------------------
  300|      0|                    length=newCapacity;
  301|      0|                }
  302|      0|                uprv_memcpy(p, LocalPointerBase<T>::ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|      0|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      0|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|      0|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|      0|    _Pragma("clang diagnostic push") \
  |  |   45|      0|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|      0|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|      0|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|      0|    _Pragma("clang diagnostic pop") \
  |  |   49|      0|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|      0|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      0|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  303|      0|            }
  304|      5|            uprv_free(LocalPointerBase<T>::ptr);
  ------------------
  |  | 1503|      5|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      5|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      5|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      5|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  305|      5|            LocalPointerBase<T>::ptr=p;
  306|      5|        }
  307|      5|        return p;
  308|      5|    } else {
  309|      0|        return nullptr;
  310|      0|    }
  311|      5|}
_ZNK6icu_7811LocalMemoryIPKcEixEl:
  274|  1.29k|    T &operator[](ptrdiff_t i) const { return LocalPointerBase<T>::ptr[i]; }
_ZNK6icu_7811LocalMemoryIiEixEl:
  274|  1.29k|    T &operator[](ptrdiff_t i) const { return LocalPointerBase<T>::ptr[i]; }
_ZN6icu_7811LocalMemoryIiED2Ev:
  206|      5|    ~LocalMemory() {
  207|      5|        uprv_free(LocalPointerBase<T>::ptr);
  ------------------
  |  | 1503|      5|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      5|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      5|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      5|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  208|      5|    }
_ZN6icu_7811LocalMemoryIPKcED2Ev:
  206|      5|    ~LocalMemory() {
  207|      5|        uprv_free(LocalPointerBase<T>::ptr);
  ------------------
  |  | 1503|      5|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      5|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      5|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      5|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  208|      5|    }
_ZN6icu_7815MaybeStackArrayIP13LocExtKeyDataLi8EEixEl:
  402|     37|    T &operator[](ptrdiff_t i) { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIP13LocExtKeyDataLi8EE12releaseArrayEv:
  458|      2|    void releaseArray() {
  459|      2|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 1, False: 1]
  ------------------
  460|      1|            uprv_free(ptr);
  ------------------
  |  | 1503|      1|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|      1|        }
  462|      2|    }
_ZN6icu_7815MaybeStackArrayIP10LocExtTypeLi8EEixEl:
  402|  1.05k|    T &operator[](ptrdiff_t i) { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIP10LocExtTypeLi8EE12releaseArrayEv:
  458|      7|    void releaseArray() {
  459|      7|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 6, False: 1]
  ------------------
  460|      6|            uprv_free(ptr);
  ------------------
  |  | 1503|      6|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      6|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      6|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      6|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|      6|        }
  462|      7|    }
_ZN6icu_7815MaybeStackArrayIP9TypeAliasLi8EEixEl:
  402|    178|    T &operator[](ptrdiff_t i) { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIP9TypeAliasLi8EE12releaseArrayEv:
  458|      4|    void releaseArray() {
  459|      4|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 3, False: 1]
  ------------------
  460|      3|            uprv_free(ptr);
  ------------------
  |  | 1503|      3|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      3|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      3|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      3|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|      3|        }
  462|      4|    }
_ZN6icu_7810MemoryPoolINS_10CharStringELi8EED2Ev:
  762|  3.03k|    ~MemoryPool() {
  763|  31.0k|        for (int32_t i = 0; i < fCount; ++i) {
  ------------------
  |  Branch (763:29): [True: 27.9k, False: 3.03k]
  ------------------
  764|  27.9k|            delete fPool[i];
  765|  27.9k|        }
  766|  3.03k|    }
_ZN6icu_7815MaybeStackArrayIPNS_10CharStringELi8EEixEl:
  402|  57.0k|    T &operator[](ptrdiff_t i) { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIPNS_10CharStringELi8EED2Ev:
  363|  3.03k|    ~MaybeStackArray() { releaseArray(); }
_ZN6icu_7815MaybeStackArrayIPNS_10CharStringELi8EE12releaseArrayEv:
  458|  3.76k|    void releaseArray() {
  459|  3.76k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 725, False: 3.03k]
  ------------------
  460|    725|            uprv_free(ptr);
  ------------------
  |  | 1503|    725|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    725|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    725|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    725|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|    725|        }
  462|  3.76k|    }
_ZN6icu_7810MemoryPoolINS_10CharStringELi8EEC2Ev:
  760|  3.03k|    MemoryPool() : fCount(0), fPool() {}
_ZN6icu_7815MaybeStackArrayIPNS_10CharStringELi8EEC2Ev:
  344|  3.03k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZN6icu_7810MemoryPoolI13LocExtKeyDataLi8EEC2Ev:
  760|      1|    MemoryPool() : fCount(0), fPool() {}
_ZN6icu_7815MaybeStackArrayIP13LocExtKeyDataLi8EEC2Ev:
  344|      1|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZN6icu_7810MemoryPoolI10LocExtTypeLi8EEC2Ev:
  760|      1|    MemoryPool() : fCount(0), fPool() {}
_ZN6icu_7815MaybeStackArrayIP10LocExtTypeLi8EEC2Ev:
  344|      1|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZN6icu_7810MemoryPoolI9TypeAliasLi8EEC2Ev:
  760|      1|    MemoryPool() : fCount(0), fPool() {}
_ZN6icu_7815MaybeStackArrayIP9TypeAliasLi8EEC2Ev:
  344|      1|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZN6icu_7810MemoryPoolINS_10CharStringELi8EE6createIJEEEPS1_DpOT_:
  796|  1.12k|    T* create(Args&&... args) {
  797|  1.12k|        int32_t capacity = fPool.getCapacity();
  798|  1.12k|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 5, False: 1.12k]
  ------------------
  799|  1.12k|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 5]
  |  Branch (799:26): [True: 1, False: 4]
  ------------------
  800|      5|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|  1.12k|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|  1.12k|    }
_ZNK6icu_7815MaybeStackArrayIPNS_10CharStringELi8EE11getCapacityEv:
  376|  29.0k|    int32_t getCapacity() const { return capacity; }
_ZN6icu_7815MaybeStackArrayIPNS_10CharStringELi8EE6resizeEii:
  505|    726|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|    726|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 726, 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|    726|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|    726|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    726|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    726|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    726|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|    726|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 726, False: 0]
  ------------------
  512|    726|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 726, False: 0]
  ------------------
  513|    726|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 726]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|    726|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 726]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|    726|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|    726|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    726|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    726|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    726|    _Pragma("clang diagnostic push") \
  |  |   45|    726|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    726|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    726|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    726|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    726|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    726|    _Pragma("clang diagnostic pop") \
  |  |   49|    726|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    726|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    726|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    726|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|    726|            }
  521|    726|            releaseArray();
  522|    726|            ptr=p;
  523|    726|            capacity=newCapacity;
  524|    726|            needToRelease=true;
  525|    726|        }
  526|    726|        return p;
  527|    726|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|    726|}
_ZN6icu_7810MemoryPoolINS_10CharStringELi8EE6createIJRPKcR10UErrorCodeEEEPS1_DpOT_:
  796|    556|    T* create(Args&&... args) {
  797|    556|        int32_t capacity = fPool.getCapacity();
  798|    556|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 2, False: 554]
  ------------------
  799|    556|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 2]
  |  Branch (799:26): [True: 0, False: 2]
  ------------------
  800|      2|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|    556|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|    556|    }
_ZN6icu_7810MemoryPoolI10LocExtTypeLi8EE6createIJEEEPS1_DpOT_:
  796|  1.05k|    T* create(Args&&... args) {
  797|  1.05k|        int32_t capacity = fPool.getCapacity();
  798|  1.05k|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 7, False: 1.04k]
  ------------------
  799|  1.05k|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 7]
  |  Branch (799:26): [True: 1, False: 6]
  ------------------
  800|      7|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|  1.05k|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|  1.05k|    }
_ZNK6icu_7815MaybeStackArrayIP10LocExtTypeLi8EE11getCapacityEv:
  376|  1.05k|    int32_t getCapacity() const { return capacity; }
_ZN6icu_7815MaybeStackArrayIP10LocExtTypeLi8EE6resizeEii:
  505|      7|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|      7|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 7, False: 0]
  ------------------
  507|       |#if U_DEBUG && defined(UPRV_MALLOC_COUNT)
  508|       |        ::fprintf(::stderr, "MaybeStackArray (resize) alloc %d * %lu\n", newCapacity, sizeof(T));
  509|       |#endif
  510|      7|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|      7|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      7|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      7|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      7|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|      7|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 7, False: 0]
  ------------------
  512|      7|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 7, False: 0]
  ------------------
  513|      7|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 7]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|      7|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 7]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|      7|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|      7|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      7|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|      7|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|      7|    _Pragma("clang diagnostic push") \
  |  |   45|      7|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|      7|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|      7|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|      7|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|      7|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|      7|    _Pragma("clang diagnostic pop") \
  |  |   49|      7|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|      7|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|      7|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      7|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|      7|            }
  521|      7|            releaseArray();
  522|      7|            ptr=p;
  523|      7|            capacity=newCapacity;
  524|      7|            needToRelease=true;
  525|      7|        }
  526|      7|        return p;
  527|      7|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|      7|}
_ZN6icu_7810MemoryPoolI9TypeAliasLi8EE6createIJS1_EEEPS1_DpOT_:
  796|    178|    T* create(Args&&... args) {
  797|    178|        int32_t capacity = fPool.getCapacity();
  798|    178|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 4, False: 174]
  ------------------
  799|    178|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 4]
  |  Branch (799:26): [True: 1, False: 3]
  ------------------
  800|      4|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|    178|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|    178|    }
_ZNK6icu_7815MaybeStackArrayIP9TypeAliasLi8EE11getCapacityEv:
  376|    178|    int32_t getCapacity() const { return capacity; }
_ZN6icu_7815MaybeStackArrayIP9TypeAliasLi8EE6resizeEii:
  505|      4|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|      4|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 4, False: 0]
  ------------------
  507|       |#if U_DEBUG && defined(UPRV_MALLOC_COUNT)
  508|       |        ::fprintf(::stderr, "MaybeStackArray (resize) alloc %d * %lu\n", newCapacity, sizeof(T));
  509|       |#endif
  510|      4|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|      4|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      4|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      4|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      4|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|      4|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 4, False: 0]
  ------------------
  512|      4|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 4, False: 0]
  ------------------
  513|      4|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 4]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|      4|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 4]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|      4|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|      4|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      4|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|      4|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|      4|    _Pragma("clang diagnostic push") \
  |  |   45|      4|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|      4|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|      4|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|      4|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|      4|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|      4|    _Pragma("clang diagnostic pop") \
  |  |   49|      4|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|      4|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|      4|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      4|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|      4|            }
  521|      4|            releaseArray();
  522|      4|            ptr=p;
  523|      4|            capacity=newCapacity;
  524|      4|            needToRelease=true;
  525|      4|        }
  526|      4|        return p;
  527|      4|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|      4|}
_ZN6icu_7810MemoryPoolI13LocExtKeyDataLi8EE6createIJEEEPS1_DpOT_:
  796|     37|    T* create(Args&&... args) {
  797|     37|        int32_t capacity = fPool.getCapacity();
  798|     37|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 2, False: 35]
  ------------------
  799|     37|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 2]
  |  Branch (799:26): [True: 1, False: 1]
  ------------------
  800|      2|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|     37|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|     37|    }
_ZNK6icu_7815MaybeStackArrayIP13LocExtKeyDataLi8EE11getCapacityEv:
  376|     37|    int32_t getCapacity() const { return capacity; }
_ZN6icu_7815MaybeStackArrayIP13LocExtKeyDataLi8EE6resizeEii:
  505|      2|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|      2|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 2, False: 0]
  ------------------
  507|       |#if U_DEBUG && defined(UPRV_MALLOC_COUNT)
  508|       |        ::fprintf(::stderr, "MaybeStackArray (resize) alloc %d * %lu\n", newCapacity, sizeof(T));
  509|       |#endif
  510|      2|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|      2|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      2|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      2|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      2|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|      2|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 2, False: 0]
  ------------------
  512|      2|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 2, False: 0]
  ------------------
  513|      2|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 2]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|      2|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 2]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|      2|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|      2|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      2|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|      2|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|      2|    _Pragma("clang diagnostic push") \
  |  |   45|      2|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|      2|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|      2|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|      2|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|      2|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|      2|    _Pragma("clang diagnostic pop") \
  |  |   49|      2|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|      2|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|      2|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      2|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|      2|            }
  521|      2|            releaseArray();
  522|      2|            ptr=p;
  523|      2|            capacity=newCapacity;
  524|      2|            needToRelease=true;
  525|      2|        }
  526|      2|        return p;
  527|      2|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|      2|}
uloc_tag.cpp:_ZN6icu_7810MemoryPoolIN12_GLOBAL__N_118AttributeListEntryELi8EEC2Ev:
  760|  1.44k|    MemoryPool() : fCount(0), fPool() {}
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118AttributeListEntryELi8EEC2Ev:
  344|  1.44k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
uloc_tag.cpp:_ZN6icu_7810MemoryPoolIN12_GLOBAL__N_118ExtensionListEntryELi8EEC2Ev:
  760|  1.59k|    MemoryPool() : fCount(0), fPool() {}
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118ExtensionListEntryELi8EEC2Ev:
  344|  1.59k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
uloc_tag.cpp:_ZN6icu_7810MemoryPoolIN12_GLOBAL__N_118AttributeListEntryELi8EE6createIJEEEPS2_DpOT_:
  796|  11.0k|    T* create(Args&&... args) {
  797|  11.0k|        int32_t capacity = fPool.getCapacity();
  798|  11.0k|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 215, False: 10.8k]
  ------------------
  799|  11.0k|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 215]
  |  Branch (799:26): [True: 97, False: 118]
  ------------------
  800|    215|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|  11.0k|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|  11.0k|    }
uloc_tag.cpp:_ZNK6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118AttributeListEntryELi8EE11getCapacityEv:
  376|  11.0k|    int32_t getCapacity() const { return capacity; }
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118AttributeListEntryELi8EE6resizeEii:
  505|    215|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|    215|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 215, 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|    215|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|    215|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    215|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    215|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    215|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|    215|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 215, False: 0]
  ------------------
  512|    215|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 215, False: 0]
  ------------------
  513|    215|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 215]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|    215|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 215]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|    215|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|    215|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    215|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    215|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    215|    _Pragma("clang diagnostic push") \
  |  |   45|    215|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    215|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    215|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    215|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    215|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    215|    _Pragma("clang diagnostic pop") \
  |  |   49|    215|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    215|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    215|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    215|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|    215|            }
  521|    215|            releaseArray();
  522|    215|            ptr=p;
  523|    215|            capacity=newCapacity;
  524|    215|            needToRelease=true;
  525|    215|        }
  526|    215|        return p;
  527|    215|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|    215|}
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118AttributeListEntryELi8EE12releaseArrayEv:
  458|  1.65k|    void releaseArray() {
  459|  1.65k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 215, False: 1.44k]
  ------------------
  460|    215|            uprv_free(ptr);
  ------------------
  |  | 1503|    215|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    215|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    215|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    215|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|    215|        }
  462|  1.65k|    }
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118AttributeListEntryELi8EEixEl:
  402|  22.1k|    T &operator[](ptrdiff_t i) { return ptr[i]; }
uloc_tag.cpp:_ZN6icu_7810MemoryPoolIN12_GLOBAL__N_118ExtensionListEntryELi8EE6createIJEEEPS2_DpOT_:
  796|  26.9k|    T* create(Args&&... args) {
  797|  26.9k|        int32_t capacity = fPool.getCapacity();
  798|  26.9k|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 884, False: 26.0k]
  ------------------
  799|  26.9k|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 884]
  |  Branch (799:26): [True: 660, False: 224]
  ------------------
  800|    884|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|  26.9k|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|  26.9k|    }
uloc_tag.cpp:_ZNK6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118ExtensionListEntryELi8EE11getCapacityEv:
  376|  26.9k|    int32_t getCapacity() const { return capacity; }
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118ExtensionListEntryELi8EE6resizeEii:
  505|    884|inline T *MaybeStackArray<T, stackCapacity>::resize(int32_t newCapacity, int32_t length) {
  506|    884|    if(newCapacity>0) {
  ------------------
  |  Branch (506:8): [True: 884, 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|    884|        T *p=(T *)uprv_malloc(newCapacity*sizeof(T));
  ------------------
  |  | 1524|    884|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    884|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    884|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    884|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  511|    884|        if(p!=nullptr) {
  ------------------
  |  Branch (511:12): [True: 884, False: 0]
  ------------------
  512|    884|            if(length>0) {
  ------------------
  |  Branch (512:16): [True: 884, False: 0]
  ------------------
  513|    884|                if(length>capacity) {
  ------------------
  |  Branch (513:20): [True: 0, False: 884]
  ------------------
  514|      0|                    length=capacity;
  515|      0|                }
  516|    884|                if(length>newCapacity) {
  ------------------
  |  Branch (516:20): [True: 0, False: 884]
  ------------------
  517|      0|                    length=newCapacity;
  518|      0|                }
  519|    884|                uprv_memcpy(p, ptr, (size_t)length*sizeof(T));
  ------------------
  |  |   42|    884|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    884|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    884|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    884|    _Pragma("clang diagnostic push") \
  |  |   45|    884|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    884|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    884|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    884|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    884|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    884|    _Pragma("clang diagnostic pop") \
  |  |   49|    884|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    884|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    884|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    884|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  520|    884|            }
  521|    884|            releaseArray();
  522|    884|            ptr=p;
  523|    884|            capacity=newCapacity;
  524|    884|            needToRelease=true;
  525|    884|        }
  526|    884|        return p;
  527|    884|    } else {
  528|      0|        return nullptr;
  529|      0|    }
  530|    884|}
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118ExtensionListEntryELi8EE12releaseArrayEv:
  458|  2.47k|    void releaseArray() {
  459|  2.47k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 884, False: 1.59k]
  ------------------
  460|    884|            uprv_free(ptr);
  ------------------
  |  | 1503|    884|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|    884|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    884|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    884|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|    884|        }
  462|  2.47k|    }
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118ExtensionListEntryELi8EEixEl:
  402|  53.9k|    T &operator[](ptrdiff_t i) { return ptr[i]; }
uloc_tag.cpp:_ZN6icu_7810MemoryPoolIN12_GLOBAL__N_118ExtensionListEntryELi8EED2Ev:
  762|  1.59k|    ~MemoryPool() {
  763|  28.5k|        for (int32_t i = 0; i < fCount; ++i) {
  ------------------
  |  Branch (763:29): [True: 26.9k, False: 1.59k]
  ------------------
  764|  26.9k|            delete fPool[i];
  765|  26.9k|        }
  766|  1.59k|    }
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118ExtensionListEntryELi8EED2Ev:
  363|  1.59k|    ~MaybeStackArray() { releaseArray(); }
uloc_tag.cpp:_ZN6icu_7810MemoryPoolIN12_GLOBAL__N_118AttributeListEntryELi8EED2Ev:
  762|  1.44k|    ~MemoryPool() {
  763|  12.5k|        for (int32_t i = 0; i < fCount; ++i) {
  ------------------
  |  Branch (763:29): [True: 11.0k, False: 1.44k]
  ------------------
  764|  11.0k|            delete fPool[i];
  765|  11.0k|        }
  766|  1.44k|    }
uloc_tag.cpp:_ZN6icu_7815MaybeStackArrayIPN12_GLOBAL__N_118AttributeListEntryELi8EED2Ev:
  363|  1.44k|    ~MaybeStackArray() { releaseArray(); }
_ZN6icu_7810MemoryPoolINS_10CharStringELi8EE6createIJRPKcRiR10UErrorCodeEEEPS1_DpOT_:
  796|  27.3k|    T* create(Args&&... args) {
  797|  27.3k|        int32_t capacity = fPool.getCapacity();
  798|  27.3k|        if (fCount == capacity &&
  ------------------
  |  Branch (798:13): [True: 719, False: 26.6k]
  ------------------
  799|  27.3k|            fPool.resize(capacity == stackCapacity ? 4 * capacity : 2 * capacity,
  ------------------
  |  Branch (799:13): [True: 0, False: 719]
  |  Branch (799:26): [True: 413, False: 306]
  ------------------
  800|    719|                         capacity) == nullptr) {
  801|      0|            return nullptr;
  802|      0|        }
  803|  27.3k|        return fPool[fCount++] = new T(std::forward<Args>(args)...);
  804|  27.3k|    }
umutex.cpp:_ZZN6icu_78L9umtx_initEvENK3$_0clEv:
  144|      1|#define STATIC_NEW(type) [] () { \
  145|      1|    alignas(type) static char storage[sizeof(type)]; \
  146|      1|    return new(storage) type();} ()
umutex.cpp:_ZZN6icu_78L9umtx_initEvENK3$_1clEv:
  144|      1|#define STATIC_NEW(type) [] () { \
  145|      1|    alignas(type) static char storage[sizeof(type)]; \
  146|      1|    return new(storage) type();} ()
unifiedcache.cpp:_ZZN6icu_78L9cacheInitER10UErrorCodeENK3$_0clEv:
  144|      1|#define STATIC_NEW(type) [] () { \
  145|      1|    alignas(type) static char storage[sizeof(type)]; \
  146|      1|    return new(storage) type();} ()
unifiedcache.cpp:_ZZN6icu_78L9cacheInitER10UErrorCodeENK3$_1clEv:
  144|      1|#define STATIC_NEW(type) [] () { \
  145|      1|    alignas(type) static char storage[sizeof(type)]; \
  146|      1|    return new(storage) type();} ()
_ZN6icu_7815MaybeStackArrayI11max_align_tLi7EEC2Ev:
  344|  1.26k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZNK6icu_7815MaybeStackArrayI11max_align_tLi7EE11getCapacityEv:
  376|  1.26k|    int32_t getCapacity() const { return capacity; }
_ZN6icu_7815MaybeStackArrayI11max_align_tLi7EE12releaseArrayEv:
  458|  1.26k|    void releaseArray() {
  459|  1.26k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 0, False: 1.26k]
  ------------------
  460|      0|            uprv_free(ptr);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|      0|        }
  462|  1.26k|    }
_ZNK6icu_7815MaybeStackArrayI11max_align_tLi7EE8getAliasEv:
  381|  1.26k|    T *getAlias() const { return ptr; }
_ZN6icu_7815MaybeStackArrayI11max_align_tLi7EED2Ev:
  363|  1.26k|    ~MaybeStackArray() { releaseArray(); }
_ZN6icu_7815MaybeStackArrayI11max_align_tLi14EEC2Ev:
  344|  1.56k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZNK6icu_7815MaybeStackArrayI11max_align_tLi14EE11getCapacityEv:
  376|  1.56k|    int32_t getCapacity() const { return capacity; }
_ZN6icu_7815MaybeStackArrayI11max_align_tLi14EE12releaseArrayEv:
  458|  1.56k|    void releaseArray() {
  459|  1.56k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 0, False: 1.56k]
  ------------------
  460|      0|            uprv_free(ptr);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  461|      0|        }
  462|  1.56k|    }
_ZNK6icu_7815MaybeStackArrayI11max_align_tLi14EE8getAliasEv:
  381|  3.12k|    T *getAlias() const { return ptr; }
_ZN6icu_7815MaybeStackArrayI11max_align_tLi14EED2Ev:
  363|  1.56k|    ~MaybeStackArray() { releaseArray(); }

uprv_isASCIILetter_78:
   52|   430k|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|   430k|    return ('a'<=c && c<='z') || ('A'<=c && c<='Z');
  ------------------
  |  Branch (58:13): [True: 255k, False: 175k]
  |  Branch (58:23): [True: 255k, False: 77]
  |  Branch (58:35): [True: 78.4k, False: 96.8k]
  |  Branch (58:45): [True: 78.2k, False: 234]
  ------------------
   59|   430k|#endif
   60|   430k|}
uprv_toupper_78:
   63|   107k|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|   107k|    if('a'<=c && c<='z') {
  ------------------
  |  Branch (69:8): [True: 12.8k, False: 94.8k]
  |  Branch (69:18): [True: 11.9k, False: 932]
  ------------------
   70|  11.9k|        c=(char)(c+('A'-'a'));
   71|  11.9k|    }
   72|   107k|#endif
   73|   107k|    return c;
   74|   107k|}
uprv_asciitolower_78:
  103|  1.25M|uprv_asciitolower(char c) {
  104|  1.25M|    if(0x41<=c && c<=0x5a) {
  ------------------
  |  Branch (104:8): [True: 985k, False: 267k]
  |  Branch (104:19): [True: 102k, False: 882k]
  ------------------
  105|   102k|        c=(char)(c+0x20);
  106|   102k|    }
  107|  1.25M|    return c;
  108|  1.25M|}
T_CString_toLowerCase_78:
  124|  24.2k|{
  125|  24.2k|    char* origPtr = str;
  126|       |
  127|  24.2k|    if (str) {
  ------------------
  |  Branch (127:9): [True: 24.2k, False: 0]
  ------------------
  128|  24.2k|        do
  129|   461k|            *str = uprv_tolower(*str);
  ------------------
  |  |   68|   461k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|   461k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|   461k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|   461k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|   461k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  130|   461k|        while (*(str++));
  ------------------
  |  Branch (130:16): [True: 437k, False: 24.2k]
  ------------------
  131|  24.2k|    }
  132|       |
  133|  24.2k|    return origPtr;
  134|  24.2k|}
T_CString_toUpperCase_78:
  138|  3.29k|{
  139|  3.29k|    char* origPtr = str;
  140|       |
  141|  3.29k|    if (str) {
  ------------------
  |  Branch (141:9): [True: 3.29k, False: 0]
  ------------------
  142|  3.29k|        do
  143|  12.8k|            *str = uprv_toupper(*str);
  ------------------
  |  | 1547|  12.8k|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|  12.8k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.8k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.8k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  144|  12.8k|        while (*(str++));
  ------------------
  |  Branch (144:16): [True: 9.58k, False: 3.29k]
  ------------------
  145|  3.29k|    }
  146|       |
  147|  3.29k|    return origPtr;
  148|  3.29k|}
uprv_strnicmp_78:
  274|   149k|uprv_strnicmp(const char *str1, const char *str2, uint32_t n) {
  275|   149k|    if(str1==nullptr) {
  ------------------
  |  Branch (275:8): [True: 0, False: 149k]
  ------------------
  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|   149k|    } else if(str2==nullptr) {
  ------------------
  |  Branch (281:15): [True: 0, False: 149k]
  ------------------
  282|      0|        return 1;
  283|   149k|    } else {
  284|       |        /* compare non-nullptr strings lexically with lowercase */
  285|   149k|        int rc;
  286|   149k|        unsigned char c1, c2;
  287|       |
  288|   177k|        for(; n--;) {
  ------------------
  |  Branch (288:15): [True: 175k, False: 1.78k]
  ------------------
  289|   175k|            c1=(unsigned char)*str1;
  290|   175k|            c2=(unsigned char)*str2;
  291|   175k|            if(c1==0) {
  ------------------
  |  Branch (291:16): [True: 0, False: 175k]
  ------------------
  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|   175k|            } else if(c2==0) {
  ------------------
  |  Branch (297:23): [True: 0, False: 175k]
  ------------------
  298|      0|                return 1;
  299|   175k|            } else {
  300|       |                /* compare non-zero characters with lowercase */
  301|   175k|                rc=(int)(unsigned char)uprv_tolower(c1)-(int)(unsigned char)uprv_tolower(c2);
  ------------------
  |  |   68|   175k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|   175k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|   175k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|   175k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|   175k|#       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|   175k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|   175k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|   175k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|   175k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|   175k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  302|   175k|                if(rc!=0) {
  ------------------
  |  Branch (302:20): [True: 147k, False: 27.7k]
  ------------------
  303|   147k|                    return rc;
  304|   147k|                }
  305|   175k|            }
  306|  27.7k|            ++str1;
  307|  27.7k|            ++str2;
  308|  27.7k|        }
  309|   149k|    }
  310|       |
  311|  1.78k|    return 0;
  312|   149k|}
uprv_strdup_78:
  315|  5.47k|uprv_strdup(const char *src) {
  316|  5.47k|    size_t len = uprv_strlen(src) + 1;
  ------------------
  |  |   37|  5.47k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  5.47k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  317|  5.47k|    char *dup = (char *) uprv_malloc(len);
  ------------------
  |  | 1524|  5.47k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  5.47k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.47k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.47k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  318|       |
  319|  5.47k|    if (dup) {
  ------------------
  |  Branch (319:9): [True: 5.47k, False: 0]
  ------------------
  320|  5.47k|        uprv_memcpy(dup, src, len);
  ------------------
  |  |   42|  5.47k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  5.47k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  5.47k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  5.47k|    _Pragma("clang diagnostic push") \
  |  |   45|  5.47k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  5.47k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  5.47k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  5.47k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  5.47k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  5.47k|    _Pragma("clang diagnostic pop") \
  |  |   49|  5.47k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  5.47k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  5.47k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  5.47k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  321|  5.47k|    }
  322|       |
  323|  5.47k|    return dup;
  324|  5.47k|}

_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|  4.85k|{
   80|  4.85k|    umtx_initOnce(gInitOnceLocale, &locale_available_init);
   81|  4.85k|    count = availableLocaleListCount;
   82|  4.85k|    return availableLocaleList;
   83|  4.85k|}
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|     33|{
  231|     33|    U_NAMESPACE_USE
  ------------------
  |  |  112|     33|#   define U_NAMESPACE_USE using namespace U_ICU_NAMESPACE;
  ------------------
  232|     33|    return Locale::getDefault().getName();
  233|     33|}
_ZN6icu_786LocaleD2Ev:
  247|  33.0k|{
  248|  33.0k|    if ((baseName != fullName) && (baseName != fullNameBuffer)) {
  ------------------
  |  Branch (248:9): [True: 7.36k, False: 25.6k]
  |  Branch (248:35): [True: 7.36k, False: 0]
  ------------------
  249|  7.36k|        uprv_free(baseName);
  ------------------
  |  | 1503|  7.36k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  7.36k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.36k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.36k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  250|  7.36k|    }
  251|  33.0k|    baseName = nullptr;
  252|       |    /*if fullName is on the heap, we free it*/
  253|  33.0k|    if (fullName != fullNameBuffer)
  ------------------
  |  Branch (253:9): [True: 2.10k, False: 30.9k]
  ------------------
  254|  2.10k|    {
  255|  2.10k|        uprv_free(fullName);
  ------------------
  |  | 1503|  2.10k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  2.10k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.10k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.10k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  256|  2.10k|        fullName = nullptr;
  257|  2.10k|    }
  258|  33.0k|}
_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|  9.50k|    : UObject(), fullName(fullNameBuffer), baseName(nullptr)
  283|  9.50k|{
  284|  9.50k|    if( (newLanguage==nullptr) && (newCountry == nullptr) && (newVariant == nullptr) )
  ------------------
  |  Branch (284:9): [True: 0, False: 9.50k]
  |  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|  9.50k|    else
  289|  9.50k|    {
  290|  9.50k|        UErrorCode status = U_ZERO_ERROR;
  291|  9.50k|        int32_t lsize = 0;
  292|  9.50k|        int32_t csize = 0;
  293|  9.50k|        int32_t vsize = 0;
  294|  9.50k|        int32_t ksize = 0;
  295|       |
  296|       |        // Check the sizes of the input strings.
  297|       |
  298|       |        // Language
  299|  9.50k|        if ( newLanguage != nullptr )
  ------------------
  |  Branch (299:14): [True: 9.50k, False: 0]
  ------------------
  300|  9.50k|        {
  301|  9.50k|            lsize = static_cast<int32_t>(uprv_strlen(newLanguage));
  ------------------
  |  |   37|  9.50k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  9.50k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  302|  9.50k|            if ( lsize < 0 || lsize > ULOC_STRING_LIMIT ) { // int32 wrap
  ------------------
  |  |   76|  9.50k|#define ULOC_STRING_LIMIT 357913941
  ------------------
  |  Branch (302:18): [True: 0, False: 9.50k]
  |  Branch (302:31): [True: 0, False: 9.50k]
  ------------------
  303|      0|                setToBogus();
  304|      0|                return;
  305|      0|            }
  306|  9.50k|        }
  307|       |
  308|  9.50k|        CharString togo(newLanguage, lsize, status); // start with newLanguage
  309|       |
  310|       |        // _Country
  311|  9.50k|        if ( newCountry != nullptr )
  ------------------
  |  Branch (311:14): [True: 0, False: 9.50k]
  ------------------
  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|  9.50k|        if ( newVariant != nullptr )
  ------------------
  |  Branch (321:14): [True: 0, False: 9.50k]
  ------------------
  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|  9.50k|        if ( newKeywords != nullptr)
  ------------------
  |  Branch (341:14): [True: 0, False: 9.50k]
  ------------------
  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|  9.50k|        if ( ( vsize != 0 ) || (csize != 0) )  // at least:  __v
  ------------------
  |  Branch (354:14): [True: 0, False: 9.50k]
  |  Branch (354:32): [True: 0, False: 9.50k]
  ------------------
  355|      0|        {                                      //            ^
  356|      0|            togo.append(SEP_CHAR, status);
  ------------------
  |  |  243|      0|#define SEP_CHAR '_'
  ------------------
  357|      0|        }
  358|       |
  359|  9.50k|        if ( csize != 0 )
  ------------------
  |  Branch (359:14): [True: 0, False: 9.50k]
  ------------------
  360|      0|        {
  361|      0|            togo.append(newCountry, status);
  362|      0|        }
  363|       |
  364|  9.50k|        if ( vsize != 0)
  ------------------
  |  Branch (364:14): [True: 0, False: 9.50k]
  ------------------
  365|      0|        {
  366|      0|            togo.append(SEP_CHAR, status)
  ------------------
  |  |  243|      0|#define SEP_CHAR '_'
  ------------------
  367|      0|                .append(newVariant, vsize, status);
  368|      0|        }
  369|       |
  370|  9.50k|        if ( ksize != 0)
  ------------------
  |  Branch (370:14): [True: 0, False: 9.50k]
  ------------------
  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|  9.50k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (384:13): [True: 0, False: 9.50k]
  ------------------
  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|  9.50k|        init(togo.data(), false);
  392|  9.50k|    }
  393|  9.50k|}
_ZN6icu_786LocaleC2ERKS0_:
  396|  24.5k|    : UObject(other), fullName(fullNameBuffer), baseName(nullptr)
  397|  24.5k|{
  398|  24.5k|    *this = other;
  399|  24.5k|}
_ZN6icu_786LocaleaSERKS0_:
  406|  25.4k|Locale& Locale::operator=(const Locale& other) {
  407|  25.4k|    if (this == &other) {
  ------------------
  |  Branch (407:9): [True: 0, False: 25.4k]
  ------------------
  408|      0|        return *this;
  409|      0|    }
  410|       |
  411|  25.4k|    setToBogus();
  412|       |
  413|  25.4k|    if (other.fullName == other.fullNameBuffer) {
  ------------------
  |  Branch (413:9): [True: 24.0k, False: 1.41k]
  ------------------
  414|  24.0k|        uprv_strcpy(fullNameBuffer, other.fullNameBuffer);
  ------------------
  |  |   36|  24.0k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  24.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  415|  24.0k|    } else if (other.fullName == nullptr) {
  ------------------
  |  Branch (415:16): [True: 0, False: 1.41k]
  ------------------
  416|      0|        fullName = nullptr;
  417|  1.41k|    } else {
  418|  1.41k|        fullName = uprv_strdup(other.fullName);
  ------------------
  |  | 1541|  1.41k|#define uprv_strdup U_ICU_ENTRY_POINT_RENAME(uprv_strdup)
  |  |  ------------------
  |  |  |  |  123|  1.41k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.41k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.41k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  419|  1.41k|        if (fullName == nullptr) return *this;
  ------------------
  |  Branch (419:13): [True: 0, False: 1.41k]
  ------------------
  420|  1.41k|    }
  421|       |
  422|  25.4k|    if (other.baseName == other.fullName) {
  ------------------
  |  Branch (422:9): [True: 21.0k, False: 4.33k]
  ------------------
  423|  21.0k|        baseName = fullName;
  424|  21.0k|    } else if (other.baseName != nullptr) {
  ------------------
  |  Branch (424:16): [True: 4.05k, False: 277]
  ------------------
  425|  4.05k|        baseName = uprv_strdup(other.baseName);
  ------------------
  |  | 1541|  4.05k|#define uprv_strdup U_ICU_ENTRY_POINT_RENAME(uprv_strdup)
  |  |  ------------------
  |  |  |  |  123|  4.05k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.05k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.05k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  426|  4.05k|        if (baseName == nullptr) return *this;
  ------------------
  |  Branch (426:13): [True: 0, False: 4.05k]
  ------------------
  427|  4.05k|    }
  428|       |
  429|  25.4k|    uprv_strcpy(language, other.language);
  ------------------
  |  |   36|  25.4k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  25.4k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  430|  25.4k|    uprv_strcpy(script, other.script);
  ------------------
  |  |   36|  25.4k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  25.4k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  431|  25.4k|    uprv_strcpy(country, other.country);
  ------------------
  |  |   36|  25.4k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  25.4k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  432|       |
  433|  25.4k|    variantBegin = other.variantBegin;
  434|  25.4k|    fIsBogus = other.fIsBogus;
  435|       |
  436|  25.4k|    return *this;
  437|  25.4k|}
_ZNK6icu_786LocaleeqERKS0_:
  479|  18.3k|{
  480|  18.3k|    return (uprv_strcmp(other.fullName, fullName) == 0);
  ------------------
  |  |   38|  18.3k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  18.3k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  481|  18.3k|}
_ZN6icu_786Locale4initEPKca:
 1832|  11.2k|{
 1833|  11.2k|    return localeID == nullptr ? *this = getDefault() : init(StringPiece{localeID}, canonicalize);
  ------------------
  |  Branch (1833:12): [True: 885, False: 10.3k]
  ------------------
 1834|  11.2k|}
_ZN6icu_786Locale4initENS_11StringPieceEa:
 1838|  10.3k|{
 1839|  10.3k|    fIsBogus = false;
 1840|       |    /* Free our current storage */
 1841|  10.3k|    if ((baseName != fullName) && (baseName != fullNameBuffer)) {
  ------------------
  |  Branch (1841:9): [True: 9.50k, False: 885]
  |  Branch (1841:35): [True: 9.50k, False: 0]
  ------------------
 1842|  9.50k|        uprv_free(baseName);
  ------------------
  |  | 1503|  9.50k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  9.50k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.50k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.50k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1843|  9.50k|    }
 1844|  10.3k|    baseName = nullptr;
 1845|  10.3k|    if(fullName != fullNameBuffer) {
  ------------------
  |  Branch (1845:8): [True: 0, False: 10.3k]
  ------------------
 1846|      0|        uprv_free(fullName);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1847|      0|        fullName = fullNameBuffer;
 1848|      0|    }
 1849|       |
 1850|       |    // not a loop:
 1851|       |    // just an easy way to have a common error-exit
 1852|       |    // without goto and without another function
 1853|  10.3k|    do {
 1854|  10.3k|        char *separator;
 1855|  10.3k|        char *field[5] = {nullptr};
 1856|  10.3k|        int32_t fieldLen[5] = {0};
 1857|  10.3k|        int32_t fieldIdx;
 1858|  10.3k|        int32_t variantField;
 1859|  10.3k|        int32_t length;
 1860|  10.3k|        UErrorCode err;
 1861|       |
 1862|       |        /* preset all fields to empty */
 1863|  10.3k|        language[0] = script[0] = country[0] = 0;
 1864|       |
 1865|  10.3k|        const auto parse = [canonicalize](std::string_view localeID,
 1866|  10.3k|                                          char* name,
 1867|  10.3k|                                          int32_t nameCapacity,
 1868|  10.3k|                                          UErrorCode& status) {
 1869|  10.3k|            return ByteSinkUtil::viaByteSinkToTerminatedChars(
 1870|  10.3k|                name, nameCapacity,
 1871|  10.3k|                [&](ByteSink& sink, UErrorCode& status) {
 1872|  10.3k|                    if (canonicalize) {
 1873|  10.3k|                        ulocimp_canonicalize(localeID, sink, status);
 1874|  10.3k|                    } else {
 1875|  10.3k|                        ulocimp_getName(localeID, sink, status);
 1876|  10.3k|                    }
 1877|  10.3k|                },
 1878|  10.3k|                status);
 1879|  10.3k|        };
 1880|       |
 1881|       |        // "canonicalize" the locale ID to ICU/Java format
 1882|  10.3k|        err = U_ZERO_ERROR;
 1883|  10.3k|        length = parse(localeID, fullName, sizeof fullNameBuffer, err);
 1884|       |
 1885|  10.3k|        if (err == U_BUFFER_OVERFLOW_ERROR || length >= static_cast<int32_t>(sizeof(fullNameBuffer))) {
  ------------------
  |  Branch (1885:13): [True: 671, False: 9.71k]
  |  Branch (1885:47): [True: 419, False: 9.29k]
  ------------------
 1886|  1.09k|            U_ASSERT(baseName == nullptr);
  ------------------
  |  |   35|  1.09k|#   define U_ASSERT(exp) (void)0
  ------------------
 1887|       |            /*Go to heap for the fullName if necessary*/
 1888|  1.09k|            char* newFullName = static_cast<char*>(uprv_malloc(sizeof(char) * (length + 1)));
  ------------------
  |  | 1524|  1.09k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  1.09k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.09k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.09k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1889|  1.09k|            if (newFullName == nullptr) {
  ------------------
  |  Branch (1889:17): [True: 0, False: 1.09k]
  ------------------
 1890|      0|                break; // error: out of memory
 1891|      0|            }
 1892|  1.09k|            fullName = newFullName;
 1893|  1.09k|            err = U_ZERO_ERROR;
 1894|  1.09k|            length = parse(localeID, fullName, length + 1, err);
 1895|  1.09k|        }
 1896|  10.3k|        if(U_FAILURE(err) || err == U_STRING_NOT_TERMINATED_WARNING) {
  ------------------
  |  Branch (1896:12): [True: 212, False: 10.1k]
  |  Branch (1896:30): [True: 0, False: 10.1k]
  ------------------
 1897|       |            /* should never occur */
 1898|    212|            break;
 1899|    212|        }
 1900|       |
 1901|  10.1k|        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|  10.1k|        separator = field[0] = fullName;
 1906|  10.1k|        fieldIdx = 1;
 1907|  10.1k|        char* at = uprv_strchr(fullName, '@');
  ------------------
  |  |   40|  10.1k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  10.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1908|  17.3k|        while ((separator = uprv_strchr(field[fieldIdx-1], SEP_CHAR)) != nullptr &&
  ------------------
  |  |   40|  17.3k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  17.3k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1908:16): [True: 8.23k, False: 9.13k]
  ------------------
 1909|  17.3k|               fieldIdx < UPRV_LENGTHOF(field)-1 &&
  ------------------
  |  |   99|  8.23k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1909:16): [True: 7.31k, False: 916]
  ------------------
 1910|  17.3k|               (at == nullptr || separator < at)) {
  ------------------
  |  Branch (1910:17): [True: 6.40k, False: 913]
  |  Branch (1910:34): [True: 791, False: 122]
  ------------------
 1911|  7.19k|            field[fieldIdx] = separator + 1;
 1912|  7.19k|            fieldLen[fieldIdx - 1] = static_cast<int32_t>(separator - field[fieldIdx - 1]);
 1913|  7.19k|            fieldIdx++;
 1914|  7.19k|        }
 1915|       |        // variant may contain @foo or .foo POSIX cruft; remove it
 1916|  10.1k|        separator = uprv_strchr(field[fieldIdx-1], '@');
  ------------------
  |  |   40|  10.1k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  10.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1917|  10.1k|        char* sep2 = uprv_strchr(field[fieldIdx-1], '.');
  ------------------
  |  |   40|  10.1k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  10.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1918|  10.1k|        if (separator!=nullptr || sep2!=nullptr) {
  ------------------
  |  Branch (1918:13): [True: 3.45k, False: 6.71k]
  |  Branch (1918:35): [True: 160, False: 6.55k]
  ------------------
 1919|  3.61k|            if (separator==nullptr || (sep2!=nullptr && separator > sep2)) {
  ------------------
  |  Branch (1919:17): [True: 160, False: 3.45k]
  |  Branch (1919:40): [True: 112, False: 3.34k]
  |  Branch (1919:57): [True: 47, False: 65]
  ------------------
 1920|    207|                separator = sep2;
 1921|    207|            }
 1922|  3.61k|            fieldLen[fieldIdx - 1] = static_cast<int32_t>(separator - field[fieldIdx - 1]);
 1923|  6.55k|        } else {
 1924|  6.55k|            fieldLen[fieldIdx - 1] = length - static_cast<int32_t>(field[fieldIdx - 1] - fullName);
 1925|  6.55k|        }
 1926|       |
 1927|  10.1k|        if (fieldLen[0] >= static_cast<int32_t>(sizeof(language)))
  ------------------
  |  Branch (1927:13): [True: 4, False: 10.1k]
  ------------------
 1928|      4|        {
 1929|      4|            break; // error: the language field is too long
 1930|      4|        }
 1931|       |
 1932|  10.1k|        variantField = 1; /* Usually the 2nd one, except when a script or country is also used. */
 1933|  10.1k|        if (fieldLen[0] > 0) {
  ------------------
  |  Branch (1933:13): [True: 7.70k, False: 2.46k]
  ------------------
 1934|       |            /* We have a language */
 1935|  7.70k|            uprv_memcpy(language, fullName, fieldLen[0]);
  ------------------
  |  |   42|  7.70k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  7.70k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  7.70k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  7.70k|    _Pragma("clang diagnostic push") \
  |  |   45|  7.70k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  7.70k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  7.70k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  7.70k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  7.70k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  7.70k|    _Pragma("clang diagnostic pop") \
  |  |   49|  7.70k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  7.70k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  7.70k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  7.70k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1936|  7.70k|            language[fieldLen[0]] = 0;
 1937|  7.70k|        }
 1938|  10.1k|        if (fieldLen[1] == 4 && uprv_isASCIILetter(field[1][0]) &&
  ------------------
  |  | 1514|    402|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|    402|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    402|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    402|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1938:13): [True: 402, False: 9.76k]
  |  Branch (1938:33): [True: 397, False: 5]
  ------------------
 1939|  10.1k|                uprv_isASCIILetter(field[1][1]) && uprv_isASCIILetter(field[1][2]) &&
  ------------------
  |  | 1514|    397|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|    397|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    397|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    397|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                              uprv_isASCIILetter(field[1][1]) && uprv_isASCIILetter(field[1][2]) &&
  ------------------
  |  | 1514|    391|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|    391|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    391|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    391|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1939:17): [True: 391, False: 6]
  |  Branch (1939:52): [True: 388, False: 3]
  ------------------
 1940|  10.1k|                uprv_isASCIILetter(field[1][3])) {
  ------------------
  |  | 1514|    388|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|    388|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    388|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    388|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1940:17): [True: 383, False: 5]
  ------------------
 1941|       |            /* We have at least a script */
 1942|    383|            uprv_memcpy(script, field[1], fieldLen[1]);
  ------------------
  |  |   42|    383|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    383|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    383|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    383|    _Pragma("clang diagnostic push") \
  |  |   45|    383|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    383|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    383|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    383|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    383|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    383|    _Pragma("clang diagnostic pop") \
  |  |   49|    383|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    383|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    383|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    383|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1943|    383|            script[fieldLen[1]] = 0;
 1944|    383|            variantField++;
 1945|    383|        }
 1946|       |
 1947|  10.1k|        if (fieldLen[variantField] == 2 || fieldLen[variantField] == 3) {
  ------------------
  |  Branch (1947:13): [True: 1.88k, False: 8.28k]
  |  Branch (1947:44): [True: 188, False: 8.09k]
  ------------------
 1948|       |            /* We have a country */
 1949|  2.07k|            uprv_memcpy(country, field[variantField], fieldLen[variantField]);
  ------------------
  |  |   42|  2.07k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  2.07k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  2.07k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  2.07k|    _Pragma("clang diagnostic push") \
  |  |   45|  2.07k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  2.07k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  2.07k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  2.07k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  2.07k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  2.07k|    _Pragma("clang diagnostic pop") \
  |  |   49|  2.07k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  2.07k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  2.07k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  2.07k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1950|  2.07k|            country[fieldLen[variantField]] = 0;
 1951|  2.07k|            variantField++;
 1952|  8.09k|        } else if (fieldLen[variantField] == 0) {
  ------------------
  |  Branch (1952:20): [True: 8.06k, False: 30]
  ------------------
 1953|  8.06k|            variantField++; /* script or country empty but variant in next field (i.e. en__POSIX) */
 1954|  8.06k|        }
 1955|       |
 1956|  10.1k|        if (fieldLen[variantField] > 0) {
  ------------------
  |  Branch (1956:13): [True: 1.70k, False: 8.46k]
  ------------------
 1957|       |            /* We have a variant */
 1958|  1.70k|            variantBegin = static_cast<int32_t>(field[variantField] - fullName);
 1959|  1.70k|        }
 1960|       |
 1961|  10.1k|        err = U_ZERO_ERROR;
 1962|  10.1k|        initBaseName(err);
 1963|  10.1k|        if (U_FAILURE(err)) {
  ------------------
  |  Branch (1963:13): [True: 0, False: 10.1k]
  ------------------
 1964|      0|            break;
 1965|      0|        }
 1966|       |
 1967|  10.1k|        if (canonicalize) {
  ------------------
  |  Branch (1967:13): [True: 885, False: 9.28k]
  ------------------
 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|  10.1k|        return *this;
 1984|  10.1k|    } 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|    216|    setToBogus();
 1988|       |
 1989|    216|    return *this;
 1990|  10.3k|}
_ZN6icu_786Locale12initBaseNameER10UErrorCode:
 1999|  10.1k|Locale::initBaseName(UErrorCode &status) {
 2000|  10.1k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2000:9): [True: 0, False: 10.1k]
  ------------------
 2001|      0|        return;
 2002|      0|    }
 2003|  10.1k|    U_ASSERT(baseName==nullptr || baseName==fullName);
  ------------------
  |  |   35|  10.1k|#   define U_ASSERT(exp) (void)0
  ------------------
 2004|  10.1k|    const char *atPtr = uprv_strchr(fullName, '@');
  ------------------
  |  |   40|  10.1k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  10.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2005|  10.1k|    const char *eqPtr = uprv_strchr(fullName, '=');
  ------------------
  |  |   40|  10.1k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  10.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2006|  10.1k|    if (atPtr && eqPtr && atPtr < eqPtr) {
  ------------------
  |  Branch (2006:9): [True: 3.45k, False: 6.71k]
  |  Branch (2006:18): [True: 3.25k, False: 196]
  |  Branch (2006:27): [True: 3.23k, False: 27]
  ------------------
 2007|       |        // Key words exist.
 2008|  3.23k|        int32_t baseNameLength = static_cast<int32_t>(atPtr - fullName);
 2009|  3.23k|        char* newBaseName = static_cast<char*>(uprv_malloc(baseNameLength + 1));
  ------------------
  |  | 1524|  3.23k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  3.23k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.23k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.23k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2010|  3.23k|        if (newBaseName == nullptr) {
  ------------------
  |  Branch (2010:13): [True: 0, False: 3.23k]
  ------------------
 2011|      0|            status = U_MEMORY_ALLOCATION_ERROR;
 2012|      0|            return;
 2013|      0|        }
 2014|  3.23k|        baseName = newBaseName;
 2015|  3.23k|        uprv_strncpy(baseName, fullName, baseNameLength);
  ------------------
  |  |   43|  3.23k|#define uprv_strncpy(dst, src, size) U_STANDARD_CPP_NAMESPACE strncpy(dst, src, size)
  |  |  ------------------
  |  |  |  |  393|  3.23k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2016|  3.23k|        baseName[baseNameLength] = 0;
 2017|       |
 2018|       |        // The original computation of variantBegin leaves it equal to the length
 2019|       |        // of fullName if there is no variant.  It should instead be
 2020|       |        // the length of the baseName.
 2021|  3.23k|        if (variantBegin > baseNameLength) {
  ------------------
  |  Branch (2021:13): [True: 3.08k, False: 149]
  ------------------
 2022|  3.08k|            variantBegin = baseNameLength;
 2023|  3.08k|        }
 2024|  6.93k|    } else {
 2025|  6.93k|        baseName = fullName;
 2026|  6.93k|    }
 2027|  10.1k|}
_ZNK6icu_786Locale8hashCodeEv:
 2032|  24.3k|{
 2033|  24.3k|    return ustr_hashCharsN(fullName, static_cast<int32_t>(uprv_strlen(fullName)));
  ------------------
  |  | 1878|  24.3k|#define ustr_hashCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashCharsN)
  |  |  ------------------
  |  |  |  |  123|  24.3k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  24.3k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  24.3k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  return ustr_hashCharsN(fullName, static_cast<int32_t>(uprv_strlen(fullName)));
  ------------------
  |  |   37|  24.3k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  24.3k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2034|  24.3k|}
_ZN6icu_786Locale10setToBogusEv:
 2037|  25.6k|Locale::setToBogus() {
 2038|       |    /* Free our current storage */
 2039|  25.6k|    if((baseName != fullName) && (baseName != fullNameBuffer)) {
  ------------------
  |  Branch (2039:8): [True: 25.6k, False: 0]
  |  Branch (2039:34): [True: 25.6k, False: 0]
  ------------------
 2040|  25.6k|        uprv_free(baseName);
  ------------------
  |  | 1503|  25.6k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  25.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  25.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  25.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2041|  25.6k|    }
 2042|  25.6k|    baseName = nullptr;
 2043|  25.6k|    if(fullName != fullNameBuffer) {
  ------------------
  |  Branch (2043:8): [True: 1, False: 25.6k]
  ------------------
 2044|      1|        uprv_free(fullName);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2045|      1|        fullName = fullNameBuffer;
 2046|      1|    }
 2047|  25.6k|    *fullNameBuffer = 0;
 2048|  25.6k|    *language = 0;
 2049|  25.6k|    *script = 0;
 2050|  25.6k|    *country = 0;
 2051|  25.6k|    fIsBogus = true;
 2052|  25.6k|    variantBegin = 0;
 2053|  25.6k|}
_ZN6icu_786Locale10getDefaultEv:
 2057|    918|{
 2058|    918|    {
 2059|    918|        Mutex lock(&gDefaultLocaleMutex);
 2060|    918|        if (gDefaultLocale != nullptr) {
  ------------------
  |  Branch (2060:13): [True: 917, False: 1]
  ------------------
 2061|    917|            return *gDefaultLocale;
 2062|    917|        }
 2063|    918|    }
 2064|      1|    UErrorCode status = U_ZERO_ERROR;
 2065|      1|    return *locale_set_default_internal(nullptr, status);
 2066|    918|}
_ZN6icu_786Locale14setFromPOSIXIDEPKc:
 2267|    885|{
 2268|    885|    init(posixID, true);
 2269|    885|}
_ZNK6icu_786Locale11getBaseNameEv:
 2748|  16.2k|Locale::getBaseName() const {
 2749|  16.2k|    return baseName;
 2750|  16.2k|}
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|  11.4k|                                          UErrorCode& status) {
 1869|  11.4k|            return ByteSinkUtil::viaByteSinkToTerminatedChars(
 1870|  11.4k|                name, nameCapacity,
 1871|  11.4k|                [&](ByteSink& sink, UErrorCode& status) {
 1872|  11.4k|                    if (canonicalize) {
 1873|  11.4k|                        ulocimp_canonicalize(localeID, sink, status);
 1874|  11.4k|                    } else {
 1875|  11.4k|                        ulocimp_getName(localeID, sink, status);
 1876|  11.4k|                    }
 1877|  11.4k|                },
 1878|  11.4k|                status);
 1879|  11.4k|        };
locid.cpp:_ZZZN6icu_786Locale4initENS_11StringPieceEaENK3$_0clENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEPciR10UErrorCodeENKUlRNS_8ByteSinkESA_E_clESC_SA_:
 1871|  11.4k|                [&](ByteSink& sink, UErrorCode& status) {
 1872|  11.4k|                    if (canonicalize) {
  ------------------
  |  Branch (1872:25): [True: 885, False: 10.5k]
  ------------------
 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|  10.5k|                    } else {
 1875|  10.5k|                        ulocimp_getName(localeID, sink, status);
  ------------------
  |  | 1204|  10.5k|#define ulocimp_getName U_ICU_ENTRY_POINT_RENAME(ulocimp_getName)
  |  |  ------------------
  |  |  |  |  123|  10.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  10.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  10.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1876|  10.5k|                    }
 1877|  11.4k|                },
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|}

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

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

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

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

_ZN6icu_7814ResourceTracerC2Ev:
  116|  3.54k|    ResourceTracer() {}
_ZN6icu_7814ResourceTracerC2EPKv:
  118|   218k|    ResourceTracer(const void*) {}
_ZN6icu_7814ResourceTracerC2EPKvPKc:
  120|  4.61k|    ResourceTracer(const void*, const char*) {}
_ZN6icu_7814ResourceTracerC2EPKvi:
  122|  7.77k|    ResourceTracer(const void*, int32_t) {}
_ZN6icu_7814ResourceTracerC2ERKS0_PKc:
  124|    941|    ResourceTracer(const ResourceTracer&, const char*) {}
_ZN6icu_7814ResourceTracerC2ERKS0_i:
  126|  83.8k|    ResourceTracer(const ResourceTracer&, int32_t) {}
_ZNK6icu_7814ResourceTracer5traceEPKc:
  128|   267k|    void trace(const char*) const {}
_ZNK6icu_7814ResourceTracer9traceOpenEv:
  130|  22.9k|    void traceOpen() const {}
_ZNK6icu_7814ResourceTracer10maybeTraceEPKc:
  132|      3|    void maybeTrace(const char*) const {}
_ZN6icu_7810FileTracer9traceOpenEPKcS2_S2_:
  140|      6|    static void traceOpen(const char*, const char*, const char*) {}

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

_ZN6icu_7812SharedObjectC2Ev:
   58|  4.64k|            softRefCount(0),
   59|  4.64k|            hardRefCount(0),
   60|  4.64k|            cachePtr(nullptr) {}
_ZN6icu_7812SharedObject7copyPtrINS_17SharedPluralRulesEEEvPKT_RS5_:
  144|  15.0k|    static void copyPtr(const T *src, const T *&dest) {
  145|  15.0k|        if(src != dest) {
  ------------------
  |  Branch (145:12): [True: 15.0k, False: 0]
  ------------------
  146|  15.0k|            if(dest != nullptr) { dest->removeRef(); }
  ------------------
  |  Branch (146:16): [True: 0, False: 15.0k]
  ------------------
  147|  15.0k|            dest = src;
  148|  15.0k|            if(src != nullptr) { src->addRef(); }
  ------------------
  |  Branch (148:16): [True: 15.0k, False: 0]
  ------------------
  149|  15.0k|        }
  150|  15.0k|    }
_ZN6icu_7812SharedObject8clearPtrINS_17SharedPluralRulesEEEvRPKT_:
  156|  15.0k|    static void clearPtr(const T *&ptr) {
  157|  15.0k|        if (ptr != nullptr) {
  ------------------
  |  Branch (157:13): [True: 15.0k, False: 0]
  ------------------
  158|  15.0k|            ptr->removeRef();
  159|  15.0k|            ptr = nullptr;
  160|  15.0k|        }
  161|  15.0k|    }
_ZN6icu_7816UnifiedCacheBaseC2Ev:
   30|      1|    UnifiedCacheBase() { }
_ZNK6icu_7812SharedObject16noHardReferencesEv:
   96|  7.28k|    inline UBool noHardReferences() const { return getRefCount() == 0; }

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

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

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

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

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

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

UDataMemory_init_78:
   28|     14|U_CFUNC void UDataMemory_init(UDataMemory *This) {
   29|     14|    uprv_memset(This, 0, sizeof(UDataMemory));
  ------------------
  |  |  100|     14|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|     14|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
   30|     14|    This->length=-1;
   31|     14|}
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|      7|U_CFUNC UDataMemory *UDataMemory_createNewInstance(UErrorCode *pErr) {
   42|      7|    UDataMemory *This;
   43|       |
   44|      7|    if (U_FAILURE(*pErr)) {
  ------------------
  |  Branch (44:9): [True: 0, False: 7]
  ------------------
   45|      0|        return nullptr;
   46|      0|    }
   47|      7|    This = (UDataMemory *)uprv_malloc(sizeof(UDataMemory));
  ------------------
  |  | 1524|      7|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      7|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      7|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      7|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   48|      7|    if (This == nullptr) {
  ------------------
  |  Branch (48:9): [True: 0, False: 7]
  ------------------
   49|      0|        *pErr = U_MEMORY_ALLOCATION_ERROR; }
   50|      7|    else {
   51|      7|        UDataMemory_init(This);
  ------------------
  |  |   80|      7|#define UDataMemory_init U_ICU_ENTRY_POINT_RENAME(UDataMemory_init)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   52|      7|        This->heapAllocated = true;
   53|      7|    }
   54|      7|    return This;
   55|      7|}
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|      6|udata_getMemory(UDataMemory *pData) {
  105|      6|    if(pData!=nullptr && pData->pHeader!=nullptr) {
  ------------------
  |  Branch (105:8): [True: 6, False: 0]
  |  Branch (105:26): [True: 6, False: 0]
  ------------------
  106|      6|        return (char *)(pData->pHeader)+udata_getHeaderSize(pData->pHeader);
  ------------------
  |  |  887|      6|#define udata_getHeaderSize U_ICU_ENTRY_POINT_RENAME(udata_getHeaderSize)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  107|      6|    } else {
  108|      0|        return nullptr;
  109|      0|    }
  110|      6|}

uhash_open_78:
  547|     42|           UErrorCode *status) {
  548|       |
  549|     42|    return _uhash_create(keyHash, keyComp, valueComp, DEFAULT_PRIME_INDEX, status);
  ------------------
  |  |   91|     42|#define DEFAULT_PRIME_INDEX 4
  ------------------
  550|     42|}
uhash_openSize_78:
  557|      5|               UErrorCode *status) {
  558|       |
  559|       |    /* Find the smallest index i for which PRIMES[i] >= size. */
  560|      5|    int32_t i = 0;
  561|     18|    while (i<(PRIMES_LENGTH-1) && PRIMES[i]<size) {
  ------------------
  |  |   90|     18|#define PRIMES_LENGTH UPRV_LENGTHOF(PRIMES)
  |  |  ------------------
  |  |  |  |   99|     18|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  |  |  ------------------
  ------------------
  |  Branch (561:12): [True: 18, False: 0]
  |  Branch (561:35): [True: 13, False: 5]
  ------------------
  562|     13|        ++i;
  563|     13|    }
  564|       |
  565|      5|    return _uhash_create(keyHash, keyComp, valueComp, i, status);
  566|      5|}
uhash_init_78:
  573|      1|           UErrorCode *status) {
  574|       |
  575|      1|    return _uhash_init(fillinResult, keyHash, keyComp, valueComp, DEFAULT_PRIME_INDEX, status);
  ------------------
  |  |   91|      1|#define DEFAULT_PRIME_INDEX 4
  ------------------
  576|      1|}
uhash_close_78:
  595|     11|uhash_close(UHashtable *hash) {
  596|     11|    if (hash == nullptr) {
  ------------------
  |  Branch (596:9): [True: 10, False: 1]
  ------------------
  597|     10|        return;
  598|     10|    }
  599|      1|    if (hash->elements != nullptr) {
  ------------------
  |  Branch (599:9): [True: 1, False: 0]
  ------------------
  600|      1|        if (hash->keyDeleter != nullptr || hash->valueDeleter != nullptr) {
  ------------------
  |  Branch (600:13): [True: 0, False: 1]
  |  Branch (600:44): [True: 0, False: 1]
  ------------------
  601|      0|            int32_t pos=UHASH_FIRST;
  ------------------
  |  |  610|      0|#define UHASH_FIRST (-1)
  ------------------
  602|      0|            UHashElement *e;
  603|      0|            while ((e = (UHashElement*) uhash_nextElement(hash, &pos)) != nullptr) {
  ------------------
  |  | 1029|      0|#define uhash_nextElement U_ICU_ENTRY_POINT_RENAME(uhash_nextElement)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (603:20): [True: 0, False: 0]
  ------------------
  604|      0|                HASH_DELETE_KEY_VALUE(hash, e->key.pointer, e->value.pointer);
  ------------------
  |  |  124|      0|#define HASH_DELETE_KEY_VALUE(hash, keypointer, valuepointer) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      0|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  125|      0|    if (hash->keyDeleter != nullptr && keypointer != nullptr) { \
  |  |  ------------------
  |  |  |  Branch (125:9): [True: 0, False: 0]
  |  |  |  Branch (125:40): [True: 0, False: 0]
  |  |  ------------------
  |  |  126|      0|        (*hash->keyDeleter)(keypointer); \
  |  |  127|      0|    } \
  |  |  128|      0|    if (hash->valueDeleter != nullptr && valuepointer != nullptr) { \
  |  |  ------------------
  |  |  |  Branch (128:9): [True: 0, False: 0]
  |  |  |  Branch (128:42): [True: 0, False: 0]
  |  |  ------------------
  |  |  129|      0|        (*hash->valueDeleter)(valuepointer); \
  |  |  130|      0|    } \
  |  |  131|      0|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      0|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  605|      0|            }
  606|      0|        }
  607|      1|        uprv_free(hash->elements);
  ------------------
  |  | 1503|      1|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  608|      1|        hash->elements = nullptr;
  609|      1|    }
  610|      1|    if (hash->allocated) {
  ------------------
  |  Branch (610:9): [True: 0, False: 1]
  ------------------
  611|      0|        uprv_free(hash);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  612|      0|    }
  613|      1|}
uhash_setKeyDeleter_78:
  636|      1|uhash_setKeyDeleter(UHashtable *hash, UObjectDeleter *fn) {
  637|      1|    UObjectDeleter *result = hash->keyDeleter;
  638|      1|    hash->keyDeleter = fn;
  639|      1|    return result;
  640|      1|}
uhash_setValueDeleter_78:
  643|      1|uhash_setValueDeleter(UHashtable *hash, UObjectDeleter *fn) {
  644|      1|    UObjectDeleter *result = hash->valueDeleter;
  645|      1|    hash->valueDeleter = fn;
  646|      1|    return result;
  647|      1|}
uhash_count_78:
  659|  19.6k|uhash_count(const UHashtable *hash) {
  660|  19.6k|    return hash->count;
  661|  19.6k|}
uhash_get_78:
  665|  58.2k|          const void* key) {
  666|  58.2k|    UHashTok keyholder;
  667|  58.2k|    keyholder.pointer = (void*) key;
  668|  58.2k|    return _uhash_find(hash, keyholder, hash->keyHasher(keyholder))->value.pointer;
  669|  58.2k|}
uhash_geti_78:
  681|  2.17k|           const void* key) {
  682|  2.17k|    UHashTok keyholder;
  683|  2.17k|    keyholder.pointer = (void*) key;
  684|  2.17k|    return _uhash_find(hash, keyholder, hash->keyHasher(keyholder))->value.integer;
  685|  2.17k|}
uhash_put_78:
  721|  7.70k|          UErrorCode *status) {
  722|  7.70k|    UHashTok keyholder, valueholder;
  723|  7.70k|    keyholder.pointer = key;
  724|  7.70k|    valueholder.pointer = value;
  725|  7.70k|    return _uhash_put(hash, keyholder, valueholder,
  726|  7.70k|                      HINT_KEY_POINTER | HINT_VALUE_POINTER,
  ------------------
  |  |  139|  7.70k|#define HINT_KEY_POINTER   (1)
  ------------------
                                    HINT_KEY_POINTER | HINT_VALUE_POINTER,
  ------------------
  |  |  140|  7.70k|#define HINT_VALUE_POINTER (2)
  ------------------
  727|  7.70k|                      status).pointer;
  728|  7.70k|}
uhash_puti_78:
  747|    992|           UErrorCode *status) {
  748|    992|    UHashTok keyholder, valueholder;
  749|    992|    keyholder.pointer = key;
  750|    992|    valueholder.integer = value;
  751|    992|    return _uhash_put(hash, keyholder, valueholder,
  752|    992|                      HINT_KEY_POINTER,
  ------------------
  |  |  139|    992|#define HINT_KEY_POINTER   (1)
  ------------------
  753|    992|                      status).integer;
  754|    992|}
uhash_find_78:
  866|  19.6k|uhash_find(const UHashtable *hash, const void* key) {
  867|  19.6k|    UHashTok keyholder;
  868|  19.6k|    const UHashElement *e;
  869|  19.6k|    keyholder.pointer = (void*) key;
  870|  19.6k|    e = _uhash_find(hash, keyholder, hash->keyHasher(keyholder));
  871|  19.6k|    return IS_EMPTY_OR_DELETED(e->hashcode) ? nullptr : e;
  ------------------
  |  |  120|  19.6k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  |  |  ------------------
  |  |  |  Branch (120:32): [True: 4.64k, False: 15.0k]
  |  |  ------------------
  ------------------
  872|  19.6k|}
uhash_nextElement_78:
  875|  3.64k|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|  3.64k|    int32_t i;
  880|  3.64k|    U_ASSERT(hash != nullptr);
  ------------------
  |  |   35|  3.64k|#   define U_ASSERT(exp) (void)0
  ------------------
  881|  4.96k|    for (i = *pos + 1; i < hash->length; ++i) {
  ------------------
  |  Branch (881:24): [True: 4.96k, False: 2]
  ------------------
  882|  4.96k|        if (!IS_EMPTY_OR_DELETED(hash->elements[i].hashcode)) {
  ------------------
  |  |  120|  4.96k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  ------------------
  |  Branch (882:13): [True: 3.64k, False: 1.31k]
  ------------------
  883|  3.64k|            *pos = i;
  884|  3.64k|            return &(hash->elements[i]);
  885|  3.64k|        }
  886|  4.96k|    }
  887|       |
  888|       |    /* No more elements */
  889|      2|    return nullptr;
  890|  3.64k|}
uhash_removeElement_78:
  893|  3.64k|uhash_removeElement(UHashtable *hash, const UHashElement* e) {
  894|  3.64k|    U_ASSERT(hash != nullptr);
  ------------------
  |  |   35|  3.64k|#   define U_ASSERT(exp) (void)0
  ------------------
  895|  3.64k|    U_ASSERT(e != nullptr);
  ------------------
  |  |   35|  3.64k|#   define U_ASSERT(exp) (void)0
  ------------------
  896|  3.64k|    if (!IS_EMPTY_OR_DELETED(e->hashcode)) {
  ------------------
  |  |  120|  3.64k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  ------------------
  |  Branch (896:9): [True: 3.64k, False: 0]
  ------------------
  897|  3.64k|        UHashElement *nce = (UHashElement *)e;
  898|  3.64k|        return _uhash_internalRemoveElement(hash, nce).pointer;
  899|  3.64k|    }
  900|      0|    return nullptr;
  901|  3.64k|}
uhash_hashUChars_78:
  932|  2.10k|uhash_hashUChars(const UHashTok key) {
  933|  2.10k|    const char16_t *s = (const char16_t *)key.pointer;
  934|  2.10k|    return s == nullptr ? 0 : ustr_hashUCharsN(s, u_strlen(s));
  ------------------
  |  | 1880|  2.10k|#define ustr_hashUCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashUCharsN)
  |  |  ------------------
  |  |  |  |  123|  2.10k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.10k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.10k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  return s == nullptr ? 0 : ustr_hashUCharsN(s, u_strlen(s));
  ------------------
  |  |  393|  2.10k|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|  2.10k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.10k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.10k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (934:12): [True: 0, False: 2.10k]
  ------------------
  935|  2.10k|}
uhash_hashChars_78:
  938|  50.1k|uhash_hashChars(const UHashTok key) {
  939|  50.1k|    const char *s = (const char *)key.pointer;
  940|  50.1k|    return s == nullptr ? 0 : static_cast<int32_t>(ustr_hashCharsN(s, static_cast<int32_t>(uprv_strlen(s))));
  ------------------
  |  | 1878|  27.1k|#define ustr_hashCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashCharsN)
  |  |  ------------------
  |  |  |  |  123|  27.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  27.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  27.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  return s == nullptr ? 0 : static_cast<int32_t>(ustr_hashCharsN(s, static_cast<int32_t>(uprv_strlen(s))));
  ------------------
  |  |   37|  27.1k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  27.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (940:12): [True: 22.9k, False: 27.1k]
  ------------------
  941|  50.1k|}
uhash_hashIStringView_78:
  950|  35.2k|uhash_hashIStringView(const UHashTok key) {
  951|  35.2k|    const std::string_view* s = static_cast<std::string_view*>(key.pointer);
  952|  35.2k|    return s == nullptr ? 0 : ustr_hashICharsN(s->data(), static_cast<int32_t>(s->size()));
  ------------------
  |  | 1879|  35.2k|#define ustr_hashICharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashICharsN)
  |  |  ------------------
  |  |  |  |  123|  35.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  35.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  35.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (952:12): [True: 0, False: 35.2k]
  ------------------
  953|  35.2k|}
uhash_compareUChars_78:
 1012|    476|uhash_compareUChars(const UHashTok key1, const UHashTok key2) {
 1013|    476|    const char16_t *p1 = (const char16_t*) key1.pointer;
 1014|    476|    const char16_t *p2 = (const char16_t*) key2.pointer;
 1015|    476|    if (p1 == p2) {
  ------------------
  |  Branch (1015:9): [True: 476, False: 0]
  ------------------
 1016|    476|        return true;
 1017|    476|    }
 1018|      0|    if (p1 == nullptr || p2 == nullptr) {
  ------------------
  |  Branch (1018:9): [True: 0, False: 0]
  |  Branch (1018:26): [True: 0, False: 0]
  ------------------
 1019|      0|        return false;
 1020|      0|    }
 1021|      0|    while (*p1 != 0 && *p1 == *p2) {
  ------------------
  |  Branch (1021:12): [True: 0, False: 0]
  |  Branch (1021:24): [True: 0, False: 0]
  ------------------
 1022|      0|        ++p1;
 1023|      0|        ++p2;
 1024|      0|    }
 1025|      0|    return *p1 == *p2;
 1026|      0|}
uhash_compareChars_78:
 1029|  46.0k|uhash_compareChars(const UHashTok key1, const UHashTok key2) {
 1030|  46.0k|    const char *p1 = (const char*) key1.pointer;
 1031|  46.0k|    const char *p2 = (const char*) key2.pointer;
 1032|  46.0k|    if (p1 == p2) {
  ------------------
  |  Branch (1032:9): [True: 22.9k, False: 23.0k]
  ------------------
 1033|  22.9k|        return true;
 1034|  22.9k|    }
 1035|  23.0k|    if (p1 == nullptr || p2 == nullptr) {
  ------------------
  |  Branch (1035:9): [True: 0, False: 23.0k]
  |  Branch (1035:26): [True: 0, False: 23.0k]
  ------------------
 1036|      0|        return false;
 1037|      0|    }
 1038|   241k|    while (*p1 != 0 && *p1 == *p2) {
  ------------------
  |  Branch (1038:12): [True: 218k, False: 23.0k]
  |  Branch (1038:24): [True: 218k, False: 0]
  ------------------
 1039|   218k|        ++p1;
 1040|   218k|        ++p2;
 1041|   218k|    }
 1042|  23.0k|    return *p1 == *p2;
 1043|  23.0k|}
uhash_compareIStringView_78:
 1063|  18.1k|uhash_compareIStringView(const UHashTok key1, const UHashTok key2) {
 1064|  18.1k|    const std::string_view* p1 = static_cast<std::string_view*>(key1.pointer);
 1065|  18.1k|    const std::string_view* p2 = static_cast<std::string_view*>(key2.pointer);
 1066|  18.1k|    if (p1 == p2) {
  ------------------
  |  Branch (1066:9): [True: 0, False: 18.1k]
  ------------------
 1067|      0|        return true;
 1068|      0|    }
 1069|  18.1k|    if (p1 == nullptr || p2 == nullptr) {
  ------------------
  |  Branch (1069:9): [True: 0, False: 18.1k]
  |  Branch (1069:26): [True: 0, False: 18.1k]
  ------------------
 1070|      0|        return false;
 1071|      0|    }
 1072|  18.1k|    const std::string_view& v1 = *p1;
 1073|  18.1k|    const std::string_view& v2 = *p2;
 1074|  18.1k|    if (v1.size() != v2.size()) {
  ------------------
  |  Branch (1074:9): [True: 195, False: 17.9k]
  ------------------
 1075|    195|        return false;
 1076|    195|    }
 1077|  76.3k|    for (size_t i = 0; i < v1.size(); ++i) {
  ------------------
  |  Branch (1077:24): [True: 59.1k, False: 17.1k]
  ------------------
 1078|  59.1k|        if (uprv_tolower(v1[i]) != uprv_tolower(v2[i])) {
  ------------------
  |  |   68|  59.1k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  59.1k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  59.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  59.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  59.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      if (uprv_tolower(v1[i]) != uprv_tolower(v2[i])) {
  ------------------
  |  |   68|  59.1k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  59.1k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  59.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  59.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  59.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1078:13): [True: 768, False: 58.4k]
  ------------------
 1079|    768|            return false;
 1080|    768|        }
 1081|  59.1k|    }
 1082|  17.1k|    return true;
 1083|  17.9k|}
uhash.cpp:_ZL13_uhash_createPFi8UElementEPFaS_S_ES3_iP10UErrorCode:
  287|     47|              UErrorCode *status) {
  288|     47|    UHashtable *result;
  289|       |
  290|     47|    if (U_FAILURE(*status)) return nullptr;
  ------------------
  |  Branch (290:9): [True: 0, False: 47]
  ------------------
  291|       |
  292|     47|    result = static_cast<UHashtable*>(uprv_malloc(sizeof(UHashtable)));
  ------------------
  |  | 1524|     47|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|     47|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     47|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     47|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  293|     47|    if (result == nullptr) {
  ------------------
  |  Branch (293:9): [True: 0, False: 47]
  ------------------
  294|      0|        *status = U_MEMORY_ALLOCATION_ERROR;
  295|      0|        return nullptr;
  296|      0|    }
  297|       |
  298|     47|    _uhash_init(result, keyHash, keyComp, valueComp, primeIndex, status);
  299|     47|    result->allocated       = true;
  300|       |
  301|     47|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (301:9): [True: 0, False: 47]
  ------------------
  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|     47|    return result;
  307|     47|}
uhash.cpp:_ZL11_uhash_initP10UHashtablePFi8UElementEPFaS1_S1_ES5_iP10UErrorCode:
  260|     48|{
  261|     48|    if (U_FAILURE(*status)) return nullptr;
  ------------------
  |  Branch (261:9): [True: 0, False: 48]
  ------------------
  262|     48|    U_ASSERT(keyHash != nullptr);
  ------------------
  |  |   35|     48|#   define U_ASSERT(exp) (void)0
  ------------------
  263|     48|    U_ASSERT(keyComp != nullptr);
  ------------------
  |  |   35|     48|#   define U_ASSERT(exp) (void)0
  ------------------
  264|       |
  265|     48|    result->keyHasher       = keyHash;
  266|     48|    result->keyComparator   = keyComp;
  267|     48|    result->valueComparator = valueComp;
  268|     48|    result->keyDeleter      = nullptr;
  269|     48|    result->valueDeleter    = nullptr;
  270|     48|    result->allocated       = false;
  271|     48|    _uhash_internalSetResizePolicy(result, U_GROW);
  272|       |
  273|     48|    _uhash_allocate(result, primeIndex, status);
  274|       |
  275|     48|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (275:9): [True: 0, False: 48]
  ------------------
  276|      0|        return nullptr;
  277|      0|    }
  278|       |
  279|     48|    return result;
  280|     48|}
uhash.cpp:_ZL15_uhash_allocateP10UHashtableiP10UErrorCode:
  217|     75|                UErrorCode *status) {
  218|       |
  219|     75|    UHashElement *p, *limit;
  220|     75|    UHashTok emptytok;
  221|       |
  222|     75|    if (U_FAILURE(*status)) return;
  ------------------
  |  Branch (222:9): [True: 0, False: 75]
  ------------------
  223|       |
  224|     75|    U_ASSERT(primeIndex >= 0 && primeIndex < PRIMES_LENGTH);
  ------------------
  |  |   35|     75|#   define U_ASSERT(exp) (void)0
  ------------------
  225|       |
  226|     75|    hash->primeIndex = static_cast<int8_t>(primeIndex);
  227|     75|    hash->length = PRIMES[primeIndex];
  228|       |
  229|     75|    p = hash->elements = static_cast<UHashElement*>(
  230|     75|        uprv_malloc(sizeof(UHashElement) * hash->length));
  ------------------
  |  | 1524|     75|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|     75|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     75|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     75|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  231|       |
  232|     75|    if (hash->elements == nullptr) {
  ------------------
  |  Branch (232:9): [True: 0, False: 75]
  ------------------
  233|      0|        *status = U_MEMORY_ALLOCATION_ERROR;
  234|      0|        return;
  235|      0|    }
  236|       |
  237|     75|    emptytok.pointer = nullptr; /* Only one of these two is needed */
  238|     75|    emptytok.integer = 0;    /* but we don't know which one. */
  239|       |
  240|     75|    limit = p + hash->length;
  241|  29.4k|    while (p < limit) {
  ------------------
  |  Branch (241:12): [True: 29.4k, False: 75]
  ------------------
  242|  29.4k|        p->key = emptytok;
  243|  29.4k|        p->value = emptytok;
  244|  29.4k|        p->hashcode = HASH_EMPTY;
  ------------------
  |  |  118|  29.4k|#define HASH_EMPTY      ((int32_t) HASH_DELETED + 1)
  |  |  ------------------
  |  |  |  |  117|  29.4k|#define HASH_DELETED    ((int32_t) 0x80000000)
  |  |  ------------------
  ------------------
  245|  29.4k|        ++p;
  246|  29.4k|    }
  247|       |
  248|     75|    hash->count = 0;
  249|     75|    hash->lowWaterMark = static_cast<int32_t>(hash->length * hash->lowWaterRatio);
  250|     75|    hash->highWaterMark = static_cast<int32_t>(hash->length * hash->highWaterRatio);
  251|     75|}
uhash.cpp:_ZL30_uhash_internalSetResizePolicyP10UHashtable17UHashResizePolicy:
  197|     48|_uhash_internalSetResizePolicy(UHashtable *hash, enum UHashResizePolicy policy) {
  198|     48|    U_ASSERT(hash != nullptr);
  ------------------
  |  |   35|     48|#   define U_ASSERT(exp) (void)0
  ------------------
  199|     48|    U_ASSERT(((int32_t)policy) >= 0);
  ------------------
  |  |   35|     48|#   define U_ASSERT(exp) (void)0
  ------------------
  200|     48|    U_ASSERT(((int32_t)policy) < 3);
  ------------------
  |  |   35|     48|#   define U_ASSERT(exp) (void)0
  ------------------
  201|     48|    hash->lowWaterRatio  = RESIZE_POLICY_RATIO_TABLE[policy * 2];
  202|     48|    hash->highWaterRatio = RESIZE_POLICY_RATIO_TABLE[policy * 2 + 1];
  203|     48|}
uhash.cpp:_ZL13_uhash_rehashP10UHashtableP10UErrorCode:
  399|     27|_uhash_rehash(UHashtable *hash, UErrorCode *status) {
  400|       |
  401|     27|    UHashElement *old = hash->elements;
  402|     27|    int32_t oldLength = hash->length;
  403|     27|    int32_t newPrimeIndex = hash->primeIndex;
  404|     27|    int32_t i;
  405|       |
  406|     27|    if (hash->count > hash->highWaterMark) {
  ------------------
  |  Branch (406:9): [True: 27, False: 0]
  ------------------
  407|     27|        if (++newPrimeIndex >= PRIMES_LENGTH) {
  ------------------
  |  |   90|     27|#define PRIMES_LENGTH UPRV_LENGTHOF(PRIMES)
  |  |  ------------------
  |  |  |  |   99|     27|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  |  |  ------------------
  ------------------
  |  Branch (407:13): [True: 0, False: 27]
  ------------------
  408|      0|            return;
  409|      0|        }
  410|     27|    } 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|     27|    _uhash_allocate(hash, newPrimeIndex, status);
  419|       |
  420|     27|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (420:9): [True: 0, False: 27]
  ------------------
  421|      0|        hash->elements = old;
  422|      0|        hash->length = oldLength;
  423|      0|        return;
  424|      0|    }
  425|       |
  426|  11.2k|    for (i = oldLength - 1; i >= 0; --i) {
  ------------------
  |  Branch (426:29): [True: 11.1k, False: 27]
  ------------------
  427|  11.1k|        if (!IS_EMPTY_OR_DELETED(old[i].hashcode)) {
  ------------------
  |  |  120|  11.1k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  ------------------
  |  Branch (427:13): [True: 5.60k, False: 5.57k]
  ------------------
  428|  5.60k|            UHashElement *e = _uhash_find(hash, old[i].key, old[i].hashcode);
  429|  5.60k|            U_ASSERT(e != nullptr);
  ------------------
  |  |   35|  5.60k|#   define U_ASSERT(exp) (void)0
  ------------------
  430|  5.60k|            U_ASSERT(e->hashcode == HASH_EMPTY);
  ------------------
  |  |   35|  5.60k|#   define U_ASSERT(exp) (void)0
  ------------------
  431|  5.60k|            e->key = old[i].key;
  432|  5.60k|            e->value = old[i].value;
  433|  5.60k|            e->hashcode = old[i].hashcode;
  434|  5.60k|            ++hash->count;
  435|  5.60k|        }
  436|  11.1k|    }
  437|       |
  438|     27|    uprv_free(old);
  ------------------
  |  | 1503|     27|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|     27|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     27|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     27|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  439|     27|}
uhash.cpp:_ZL11_uhash_findPK10UHashtable8UElementi:
  339|  94.4k|            int32_t hashcode) {
  340|       |
  341|  94.4k|    int32_t firstDeleted = -1;  /* assume invalid index */
  342|  94.4k|    int32_t theIndex, startIndex;
  343|  94.4k|    int32_t jump = 0; /* lazy evaluate */
  344|  94.4k|    int32_t tableHash;
  345|  94.4k|    UHashElement *elements = hash->elements;
  346|       |
  347|  94.4k|    hashcode &= 0x7FFFFFFF; /* must be positive */
  348|  94.4k|    startIndex = theIndex = (hashcode ^ 0x4000000) % hash->length;
  349|       |
  350|   223k|    do {
  351|   223k|        tableHash = elements[theIndex].hashcode;
  352|   223k|        if (tableHash == hashcode) {          /* quick check */
  ------------------
  |  Branch (352:13): [True: 60.0k, False: 163k]
  ------------------
  353|  60.0k|            if ((*hash->keyComparator)(key, elements[theIndex].key)) {
  ------------------
  |  Branch (353:17): [True: 55.7k, False: 4.27k]
  ------------------
  354|  55.7k|                return &(elements[theIndex]);
  355|  55.7k|            }
  356|   163k|        } else if (!IS_EMPTY_OR_DELETED(tableHash)) {
  ------------------
  |  |  120|   163k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  ------------------
  |  Branch (356:20): [True: 80.5k, False: 82.9k]
  ------------------
  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|  82.9k|        } else if (tableHash == HASH_EMPTY) { /* empty, end o' the line */
  ------------------
  |  |  118|  82.9k|#define HASH_EMPTY      ((int32_t) HASH_DELETED + 1)
  |  |  ------------------
  |  |  |  |  117|  82.9k|#define HASH_DELETED    ((int32_t) 0x80000000)
  |  |  ------------------
  ------------------
  |  Branch (361:20): [True: 38.6k, False: 44.3k]
  ------------------
  362|  38.6k|            break;
  363|  44.3k|        } else if (firstDeleted < 0) { /* remember first deleted */
  ------------------
  |  Branch (363:20): [True: 5.96k, False: 38.3k]
  ------------------
  364|  5.96k|            firstDeleted = theIndex;
  365|  5.96k|        }
  366|   129k|        if (jump == 0) { /* lazy compute jump */
  ------------------
  |  Branch (366:13): [True: 25.9k, False: 103k]
  ------------------
  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|  25.9k|            jump = (hashcode % (hash->length - 1)) + 1;
  372|  25.9k|        }
  373|   129k|        theIndex = (theIndex + jump) % hash->length;
  374|   129k|    } while (theIndex != startIndex);
  ------------------
  |  Branch (374:14): [True: 129k, False: 0]
  ------------------
  375|       |
  376|  38.6k|    if (firstDeleted >= 0) {
  ------------------
  |  Branch (376:9): [True: 5.30k, False: 33.3k]
  ------------------
  377|  5.30k|        theIndex = firstDeleted; /* reset if had deleted slot */
  378|  33.3k|    } else if (tableHash != HASH_EMPTY) {
  ------------------
  |  |  118|  33.3k|#define HASH_EMPTY      ((int32_t) HASH_DELETED + 1)
  |  |  ------------------
  |  |  |  |  117|  33.3k|#define HASH_DELETED    ((int32_t) 0x80000000)
  |  |  ------------------
  ------------------
  |  Branch (378:16): [True: 0, False: 33.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|  38.6k|    return &(elements[theIndex]);
  387|  38.6k|}
uhash.cpp:_ZL10_uhash_putP10UHashtable8UElementS1_aP10UErrorCode:
  471|  8.70k|           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|  8.70k|    int32_t hashcode;
  479|  8.70k|    UHashElement* e;
  480|  8.70k|    UHashTok emptytok;
  481|       |
  482|  8.70k|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (482:9): [True: 0, False: 8.70k]
  ------------------
  483|      0|        goto err;
  484|      0|    }
  485|  8.70k|    U_ASSERT(hash != nullptr);
  ------------------
  |  |   35|  8.70k|#   define U_ASSERT(exp) (void)0
  ------------------
  486|  8.70k|    if ((hint & HINT_VALUE_POINTER) ?
  ------------------
  |  |  140|  8.70k|#define HINT_VALUE_POINTER (2)
  ------------------
  |  Branch (486:9): [True: 7.70k, False: 992]
  |  Branch (486:9): [True: 0, False: 8.70k]
  ------------------
  487|  7.70k|            value.pointer == nullptr :
  488|  8.70k|            value.integer == 0 && (hint & HINT_ALLOW_ZERO) == 0) {
  ------------------
  |  |  141|      0|#define HINT_ALLOW_ZERO    (4)
  ------------------
  |  Branch (488:13): [True: 0, False: 992]
  |  Branch (488:35): [True: 0, False: 0]
  ------------------
  489|       |        /* Disallow storage of nullptr values, since nullptr is returned by
  490|       |         * get() to indicate an absent key.  Storing nullptr == removing.
  491|       |         */
  492|      0|        return _uhash_remove(hash, key);
  493|      0|    }
  494|  8.70k|    if (hash->count > hash->highWaterMark) {
  ------------------
  |  Branch (494:9): [True: 27, False: 8.67k]
  ------------------
  495|     27|        _uhash_rehash(hash, status);
  496|     27|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (496:13): [True: 0, False: 27]
  ------------------
  497|      0|            goto err;
  498|      0|        }
  499|     27|    }
  500|       |
  501|  8.70k|    hashcode = (*hash->keyHasher)(key);
  502|  8.70k|    e = _uhash_find(hash, key, hashcode);
  503|  8.70k|    U_ASSERT(e != nullptr);
  ------------------
  |  |   35|  8.70k|#   define U_ASSERT(exp) (void)0
  ------------------
  504|       |
  505|  8.70k|    if (IS_EMPTY_OR_DELETED(e->hashcode)) {
  ------------------
  |  |  120|  8.70k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  |  |  ------------------
  |  |  |  Branch (120:32): [True: 8.69k, False: 6]
  |  |  ------------------
  ------------------
  506|       |        /* Important: We must never actually fill the table up.  If we
  507|       |         * do so, then _uhash_find() will return nullptr, and we'll have
  508|       |         * to check for nullptr after every call to _uhash_find().  To
  509|       |         * avoid this we make sure there is always at least one empty
  510|       |         * or deleted slot in the table.  This only is a problem if we
  511|       |         * are out of memory and rehash isn't working.
  512|       |         */
  513|  8.69k|        ++hash->count;
  514|  8.69k|        if (hash->count == hash->length) {
  ------------------
  |  Branch (514:13): [True: 0, False: 8.69k]
  ------------------
  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|  8.69k|    }
  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|  8.70k|    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|  8.70k|}
uhash.cpp:_ZL17_uhash_setElementP10UHashtableP12UHashElementi8UElementS3_a:
  150|  12.3k|                  UHashTok key, UHashTok value, int8_t hint) {
  151|       |
  152|  12.3k|    UHashTok oldValue = e->value;
  153|  12.3k|    if (hash->keyDeleter != nullptr && e->key.pointer != nullptr &&
  ------------------
  |  Branch (153:9): [True: 8.28k, False: 4.05k]
  |  Branch (153:40): [True: 3.64k, False: 4.64k]
  ------------------
  154|  12.3k|        e->key.pointer != key.pointer) { /* Avoid double deletion */
  ------------------
  |  Branch (154:9): [True: 3.64k, False: 0]
  ------------------
  155|  3.64k|        (*hash->keyDeleter)(e->key.pointer);
  156|  3.64k|    }
  157|  12.3k|    if (hash->valueDeleter != nullptr) {
  ------------------
  |  Branch (157:9): [True: 1, False: 12.3k]
  ------------------
  158|      1|        if (oldValue.pointer != nullptr &&
  ------------------
  |  Branch (158:13): [True: 0, False: 1]
  ------------------
  159|      1|            oldValue.pointer != value.pointer) { /* Avoid double deletion */
  ------------------
  |  Branch (159:13): [True: 0, False: 0]
  ------------------
  160|      0|            (*hash->valueDeleter)(oldValue.pointer);
  161|      0|        }
  162|      1|        oldValue.pointer = nullptr;
  163|      1|    }
  164|       |    /* Compilers should copy the UHashTok union correctly, but even if
  165|       |     * they do, memory heap tools (e.g. BoundsChecker) can get
  166|       |     * confused when a pointer is cloaked in a union and then copied.
  167|       |     * TO ALLEVIATE THIS, we use hints (based on what API the user is
  168|       |     * calling) to copy pointers when we know the user thinks
  169|       |     * something is a pointer. */
  170|  12.3k|    if (hint & HINT_KEY_POINTER) {
  ------------------
  |  |  139|  12.3k|#define HINT_KEY_POINTER   (1)
  ------------------
  |  Branch (170:9): [True: 8.70k, False: 3.64k]
  ------------------
  171|  8.70k|        e->key.pointer = key.pointer;
  172|  8.70k|    } else {
  173|  3.64k|        e->key = key;
  174|  3.64k|    }
  175|  12.3k|    if (hint & HINT_VALUE_POINTER) {
  ------------------
  |  |  140|  12.3k|#define HINT_VALUE_POINTER (2)
  ------------------
  |  Branch (175:9): [True: 7.70k, False: 4.63k]
  ------------------
  176|  7.70k|        e->value.pointer = value.pointer;
  177|  7.70k|    } else {
  178|  4.63k|        e->value = value;
  179|  4.63k|    }
  180|  12.3k|    e->hashcode = hashcode;
  181|  12.3k|    return oldValue;
  182|  12.3k|}
uhash.cpp:_ZL28_uhash_internalRemoveElementP10UHashtableP12UHashElement:
  188|  3.64k|_uhash_internalRemoveElement(UHashtable *hash, UHashElement* e) {
  189|  3.64k|    UHashTok empty;
  190|  3.64k|    U_ASSERT(!IS_EMPTY_OR_DELETED(e->hashcode));
  ------------------
  |  |   35|  3.64k|#   define U_ASSERT(exp) (void)0
  ------------------
  191|  3.64k|    --hash->count;
  192|  3.64k|    empty.pointer = nullptr; empty.integer = 0;
  193|  3.64k|    return _uhash_setElement(hash, e, HASH_DELETED, empty, empty, 0);
  ------------------
  |  |  117|  3.64k|#define HASH_DELETED    ((int32_t) 0x80000000)
  ------------------
  194|  3.64k|}

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

locale_getKeywordsStart_78:
  526|  12.1k|locale_getKeywordsStart(std::string_view localeID) {
  527|  12.1k|    if (size_t pos = localeID.find('@'); pos != std::string_view::npos) {
  ------------------
  |  Branch (527:42): [True: 4.55k, False: 7.54k]
  ------------------
  528|  4.55k|        return localeID.data() + pos;
  529|  4.55k|    }
  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|  7.54k|    return nullptr;
  546|  12.1k|}
_Z22ulocimp_getKeywords_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEEcRN6icu_788ByteSinkEbR10UErrorCode:
  614|  4.22k|{
  615|  4.22k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (615:9): [True: 0, False: 4.22k]
  ------------------
  616|       |
  617|  4.22k|    KeywordStruct keywordList[ULOC_MAX_NO_KEYWORDS];
  618|       |
  619|  4.22k|    int32_t maxKeywords = ULOC_MAX_NO_KEYWORDS;
  ------------------
  |  |  523|  4.22k|#define ULOC_MAX_NO_KEYWORDS 25
  ------------------
  620|  4.22k|    int32_t numKeywords = 0;
  621|  4.22k|    size_t equalSign = std::string_view::npos;
  622|  4.22k|    size_t semicolon = std::string_view::npos;
  623|  4.22k|    int32_t i = 0, j, n;
  624|       |
  625|  4.22k|    if(prev == '@') { /* start of keyword definition */
  ------------------
  |  Branch (625:8): [True: 4.22k, False: 0]
  ------------------
  626|       |        /* we will grab pairs, trim spaces, lowercase keywords, sort and return */
  627|  29.0k|        do {
  628|  29.0k|            bool duplicate = false;
  629|       |            /* skip leading spaces */
  630|  29.4k|            while (localeID.front() == ' ') {
  ------------------
  |  Branch (630:20): [True: 432, False: 29.0k]
  ------------------
  631|    432|                localeID.remove_prefix(1);
  632|    432|            }
  633|  29.0k|            if (localeID.empty()) { /* handle trailing "; " */
  ------------------
  |  Branch (633:17): [True: 12, False: 29.0k]
  ------------------
  634|     12|                break;
  635|     12|            }
  636|  29.0k|            if(numKeywords == maxKeywords) {
  ------------------
  |  Branch (636:16): [True: 15, False: 28.9k]
  ------------------
  637|     15|                status = U_INTERNAL_PROGRAM_ERROR;
  638|     15|                return;
  639|     15|            }
  640|  28.9k|            equalSign = localeID.find('=');
  641|  28.9k|            semicolon = localeID.find(';');
  642|       |            /* lack of '=' [foo@currency] is illegal */
  643|       |            /* ';' before '=' [foo@currency;collation=pinyin] is illegal */
  644|  28.9k|            if (equalSign == std::string_view::npos ||
  ------------------
  |  Branch (644:17): [True: 6, False: 28.9k]
  ------------------
  645|  28.9k|                (semicolon != std::string_view::npos && semicolon < equalSign)) {
  ------------------
  |  Branch (645:18): [True: 24.8k, False: 4.15k]
  |  Branch (645:57): [True: 1, False: 24.8k]
  ------------------
  646|      7|                status = U_INVALID_FORMAT_ERROR;
  647|      7|                return;
  648|      7|            }
  649|       |            /* zero-length keyword is an error. */
  650|  28.9k|            if (equalSign == 0) {
  ------------------
  |  Branch (650:17): [True: 23, False: 28.9k]
  ------------------
  651|     23|                status = U_INVALID_FORMAT_ERROR;
  652|     23|                return;
  653|     23|            }
  654|       |            /* need to normalize both keyword and keyword name */
  655|  28.9k|            if (equalSign >= ULOC_KEYWORD_BUFFER_LEN) {
  ------------------
  |  |  522|  28.9k|#define ULOC_KEYWORD_BUFFER_LEN 25
  ------------------
  |  Branch (655:17): [True: 40, False: 28.9k]
  ------------------
  656|       |                /* keyword name too long for internal buffer */
  657|     40|                status = U_INTERNAL_PROGRAM_ERROR;
  658|     40|                return;
  659|     40|            }
  660|   205k|            for (i = 0, n = 0; static_cast<size_t>(i) < equalSign; ++i) {
  ------------------
  |  Branch (660:32): [True: 176k, False: 28.9k]
  ------------------
  661|   176k|                if (localeID[i] != ' ') {
  ------------------
  |  Branch (661:21): [True: 176k, False: 248]
  ------------------
  662|   176k|                    keywordList[numKeywords].keyword[n++] = uprv_tolower(localeID[i]);
  ------------------
  |  |   68|   176k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|   176k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|   176k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|   176k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|   176k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  663|   176k|                }
  664|   176k|            }
  665|       |
  666|  28.9k|            keywordList[numKeywords].keyword[n] = 0;
  667|  28.9k|            keywordList[numKeywords].keywordLen = n;
  668|       |            /* now grab the value part. First we skip the '=' */
  669|  28.9k|            equalSign++;
  670|       |            /* then we leading spaces */
  671|  48.5k|            while (equalSign < localeID.length() && localeID[equalSign] == ' ') {
  ------------------
  |  Branch (671:20): [True: 48.4k, False: 29]
  |  Branch (671:53): [True: 19.6k, False: 28.8k]
  ------------------
  672|  19.6k|                equalSign++;
  673|  19.6k|            }
  674|       |
  675|       |            /* Premature end or zero-length value */
  676|  28.9k|            if (equalSign == localeID.length() || equalSign == semicolon) {
  ------------------
  |  Branch (676:17): [True: 29, False: 28.8k]
  |  Branch (676:51): [True: 4, False: 28.8k]
  ------------------
  677|     33|                status = U_INVALID_FORMAT_ERROR;
  678|     33|                return;
  679|     33|            }
  680|       |
  681|  28.8k|            keywordList[numKeywords].valueStart = localeID.data() + equalSign;
  682|       |
  683|  28.8k|            std::string_view value = localeID;
  684|  28.8k|            if (semicolon != std::string_view::npos) {
  ------------------
  |  Branch (684:17): [True: 24.8k, False: 4.08k]
  ------------------
  685|  24.8k|                value.remove_suffix(value.length() - semicolon);
  686|  24.8k|                localeID.remove_prefix(semicolon + 1);
  687|  24.8k|            } else {
  688|  4.08k|                localeID = {};
  689|  4.08k|            }
  690|  28.8k|            value.remove_prefix(equalSign);
  691|  28.8k|            if (size_t last = value.find_last_not_of(' '); last != std::string_view::npos) {
  ------------------
  |  Branch (691:60): [True: 28.8k, False: 0]
  ------------------
  692|  28.8k|                value.remove_suffix(value.length() - last - 1);
  693|  28.8k|            }
  694|  28.8k|            keywordList[numKeywords].valueLen = static_cast<int32_t>(value.length());
  695|       |
  696|       |            /* If this is a duplicate keyword, then ignore it */
  697|   204k|            for (j=0; j<numKeywords; ++j) {
  ------------------
  |  Branch (697:23): [True: 176k, False: 28.2k]
  ------------------
  698|   176k|                if (uprv_strcmp(keywordList[j].keyword, keywordList[numKeywords].keyword) == 0) {
  ------------------
  |  |   38|   176k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   176k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (698:21): [True: 671, False: 176k]
  ------------------
  699|    671|                    duplicate = true;
  700|    671|                    break;
  701|    671|                }
  702|   176k|            }
  703|  28.8k|            if (!duplicate) {
  ------------------
  |  Branch (703:17): [True: 28.2k, False: 671]
  ------------------
  704|  28.2k|                ++numKeywords;
  705|  28.2k|            }
  706|  28.8k|        } while (!localeID.empty());
  ------------------
  |  Branch (706:18): [True: 24.7k, False: 4.09k]
  ------------------
  707|       |
  708|       |        /* now we have a list of keywords */
  709|       |        /* we need to sort it */
  710|  4.11k|        uprv_sortArray(keywordList, numKeywords, sizeof(KeywordStruct), compareKeywordStructs, nullptr, false, &status);
  ------------------
  |  | 1538|  4.11k|#define uprv_sortArray U_ICU_ENTRY_POINT_RENAME(uprv_sortArray)
  |  |  ------------------
  |  |  |  |  123|  4.11k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.11k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.11k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  711|       |
  712|       |        /* Now construct the keyword part */
  713|  31.9k|        for(i = 0; i < numKeywords; i++) {
  ------------------
  |  Branch (713:20): [True: 27.8k, False: 4.11k]
  ------------------
  714|  27.8k|            sink.Append(keywordList[i].keyword, keywordList[i].keywordLen);
  715|  27.8k|            if(valuesToo) {
  ------------------
  |  Branch (715:16): [True: 27.8k, False: 0]
  ------------------
  716|  27.8k|                sink.Append("=", 1);
  717|  27.8k|                sink.Append(keywordList[i].valueStart, keywordList[i].valueLen);
  718|  27.8k|                if(i < numKeywords - 1) {
  ------------------
  |  Branch (718:20): [True: 23.7k, False: 4.11k]
  ------------------
  719|  23.7k|                    sink.Append(";", 1);
  720|  23.7k|                }
  721|  27.8k|            } else {
  722|      0|                sink.Append("\0", 1);
  723|      0|            }
  724|  27.8k|        }
  725|  4.11k|    }
  726|  4.22k|}
_Z21ulocimp_getSubtags_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEEPN6icu_7810CharStringES6_S6_S6_PPKcR10UErrorCode:
 1514|  11.4k|        UErrorCode& status) {
 1515|  11.4k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1515:9): [True: 0, False: 11.4k]
  ------------------
 1516|       |
 1517|  11.4k|    std::optional<CharStringByteSink> languageSink;
 1518|  11.4k|    std::optional<CharStringByteSink> scriptSink;
 1519|  11.4k|    std::optional<CharStringByteSink> regionSink;
 1520|  11.4k|    std::optional<CharStringByteSink> variantSink;
 1521|       |
 1522|  11.4k|    if (language != nullptr) { languageSink.emplace(language); }
  ------------------
  |  Branch (1522:9): [True: 11.4k, False: 0]
  ------------------
 1523|  11.4k|    if (script != nullptr) { scriptSink.emplace(script); }
  ------------------
  |  Branch (1523:9): [True: 11.4k, False: 0]
  ------------------
 1524|  11.4k|    if (region != nullptr) { regionSink.emplace(region); }
  ------------------
  |  Branch (1524:9): [True: 11.4k, False: 0]
  ------------------
 1525|  11.4k|    if (variant != nullptr) { variantSink.emplace(variant); }
  ------------------
  |  Branch (1525:9): [True: 11.4k, False: 0]
  ------------------
 1526|       |
 1527|  11.4k|    ulocimp_getSubtags(
  ------------------
  |  | 1209|  11.4k|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|  11.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  11.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  11.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1528|  11.4k|            localeID,
 1529|  11.4k|            languageSink.has_value() ? &*languageSink : nullptr,
  ------------------
  |  Branch (1529:13): [True: 11.4k, False: 0]
  ------------------
 1530|  11.4k|            scriptSink.has_value() ? &*scriptSink : nullptr,
  ------------------
  |  Branch (1530:13): [True: 11.4k, False: 0]
  ------------------
 1531|  11.4k|            regionSink.has_value() ? &*regionSink : nullptr,
  ------------------
  |  Branch (1531:13): [True: 11.4k, False: 0]
  ------------------
 1532|  11.4k|            variantSink.has_value() ? &*variantSink : nullptr,
  ------------------
  |  Branch (1532:13): [True: 11.4k, False: 0]
  ------------------
 1533|  11.4k|            pEnd,
 1534|  11.4k|            status);
 1535|  11.4k|}
_Z21ulocimp_getSubtags_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEEPN6icu_788ByteSinkES6_S6_S6_PPKcR10UErrorCode:
 1545|  11.4k|        UErrorCode& status) {
 1546|  11.4k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1546:9): [True: 0, False: 11.4k]
  ------------------
 1547|       |
 1548|  11.4k|    if (pEnd != nullptr) {
  ------------------
  |  Branch (1548:9): [True: 11.4k, False: 0]
  ------------------
 1549|  11.4k|        *pEnd = localeID.data();
 1550|  11.4k|    } else if (language == nullptr &&
  ------------------
  |  Branch (1550:16): [True: 0, False: 0]
  ------------------
 1551|      0|               script == nullptr &&
  ------------------
  |  Branch (1551:16): [True: 0, False: 0]
  ------------------
 1552|      0|               region == nullptr &&
  ------------------
  |  Branch (1552:16): [True: 0, False: 0]
  ------------------
 1553|      0|               variant == nullptr) {
  ------------------
  |  Branch (1553:16): [True: 0, False: 0]
  ------------------
 1554|      0|        return;
 1555|      0|    }
 1556|       |
 1557|  11.4k|    if (localeID.empty()) { return; }
  ------------------
  |  Branch (1557:9): [True: 281, False: 11.1k]
  ------------------
 1558|       |
 1559|  11.1k|    bool hasRegion = false;
 1560|       |
 1561|  11.1k|    {
 1562|  11.1k|        size_t len = _getLanguage(localeID, language, status);
 1563|  11.1k|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1563:13): [True: 32, False: 11.1k]
  ------------------
 1564|  11.1k|        if (len > 0) {
  ------------------
  |  Branch (1564:13): [True: 8.74k, False: 2.41k]
  ------------------
 1565|  8.74k|            localeID.remove_prefix(len);
 1566|  8.74k|        }
 1567|  11.1k|    }
 1568|       |
 1569|  11.1k|    if (pEnd != nullptr) {
  ------------------
  |  Branch (1569:9): [True: 11.1k, False: 0]
  ------------------
 1570|  11.1k|        *pEnd = localeID.data();
 1571|  11.1k|    } else if (script == nullptr &&
  ------------------
  |  Branch (1571:16): [True: 0, False: 0]
  ------------------
 1572|      0|               region == nullptr &&
  ------------------
  |  Branch (1572:16): [True: 0, False: 0]
  ------------------
 1573|      0|               variant == nullptr) {
  ------------------
  |  Branch (1573:16): [True: 0, False: 0]
  ------------------
 1574|      0|        return;
 1575|      0|    }
 1576|       |
 1577|  11.1k|    if (localeID.empty()) { return; }
  ------------------
  |  Branch (1577:9): [True: 2.69k, False: 8.47k]
  ------------------
 1578|       |
 1579|  8.47k|    if (_isIDSeparator(localeID.front())) {
  ------------------
  |  Branch (1579:9): [True: 4.41k, False: 4.06k]
  ------------------
 1580|  4.41k|        std::string_view sub = localeID;
 1581|  4.41k|        sub.remove_prefix(1);
 1582|  4.41k|        size_t len = _getScript(sub, script);
 1583|  4.41k|        if (len > 0) {
  ------------------
  |  Branch (1583:13): [True: 401, False: 4.01k]
  ------------------
 1584|    401|            localeID.remove_prefix(len + 1);
 1585|    401|            if (pEnd != nullptr) { *pEnd = localeID.data(); }
  ------------------
  |  Branch (1585:17): [True: 401, False: 0]
  ------------------
 1586|    401|        }
 1587|  4.41k|    }
 1588|       |
 1589|  8.47k|    if ((region == nullptr && variant == nullptr && pEnd == nullptr) || localeID.empty()) { return; }
  ------------------
  |  Branch (1589:10): [True: 0, False: 8.47k]
  |  Branch (1589:31): [True: 0, False: 0]
  |  Branch (1589:53): [True: 0, False: 0]
  |  Branch (1589:73): [True: 134, False: 8.34k]
  ------------------
 1590|       |
 1591|  8.34k|    if (_isIDSeparator(localeID.front())) {
  ------------------
  |  Branch (1591:9): [True: 4.24k, False: 4.09k]
  ------------------
 1592|  4.24k|        std::string_view sub = localeID;
 1593|  4.24k|        sub.remove_prefix(1);
 1594|  4.24k|        size_t len = _getRegion(sub, region);
 1595|  4.24k|        if (len > 0) {
  ------------------
  |  Branch (1595:13): [True: 2.20k, False: 2.04k]
  ------------------
 1596|  2.20k|            hasRegion = true;
 1597|  2.20k|            localeID.remove_prefix(len + 1);
 1598|  2.20k|            if (pEnd != nullptr) { *pEnd = localeID.data(); }
  ------------------
  |  Branch (1598:17): [True: 2.20k, False: 0]
  ------------------
 1599|  2.20k|        }
 1600|  4.24k|    }
 1601|       |
 1602|  8.34k|    if ((variant == nullptr && pEnd == nullptr) || localeID.empty()) { return; }
  ------------------
  |  Branch (1602:10): [True: 0, False: 8.34k]
  |  Branch (1602:32): [True: 0, False: 0]
  |  Branch (1602:52): [True: 1.75k, False: 6.58k]
  ------------------
 1603|       |
 1604|  6.58k|    bool hasVariant = false;
 1605|       |
 1606|  6.58k|    if (_isIDSeparator(localeID.front()) && !_isBCP47Extension(localeID)) {
  ------------------
  |  Branch (1606:9): [True: 2.41k, False: 4.17k]
  |  Branch (1606:45): [True: 2.28k, False: 125]
  ------------------
 1607|  2.28k|        std::string_view sub = localeID;
 1608|       |        /* If there was no country ID, skip a possible extra IDSeparator */
 1609|  2.28k|        size_t skip = !hasRegion && localeID.size() > 1 && _isIDSeparator(localeID[1]) ? 2 : 1;
  ------------------
  |  Branch (1609:23): [True: 1.93k, False: 352]
  |  Branch (1609:37): [True: 1.88k, False: 47]
  |  Branch (1609:60): [True: 1.27k, False: 608]
  ------------------
 1610|  2.28k|        sub.remove_prefix(skip);
 1611|  2.28k|        size_t len = _getVariant(sub, localeID[0], variant, false, status);
 1612|  2.28k|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1612:13): [True: 46, False: 2.23k]
  ------------------
 1613|  2.23k|        if (len > 0) {
  ------------------
  |  Branch (1613:13): [True: 2.17k, False: 64]
  ------------------
 1614|  2.17k|            hasVariant = true;
 1615|  2.17k|            localeID.remove_prefix(skip + len);
 1616|  2.17k|            if (pEnd != nullptr) { *pEnd = localeID.data(); }
  ------------------
  |  Branch (1616:17): [True: 2.17k, False: 0]
  ------------------
 1617|  2.17k|        }
 1618|  2.23k|    }
 1619|       |
 1620|  6.53k|    if ((variant == nullptr && pEnd == nullptr) || localeID.empty()) { return; }
  ------------------
  |  Branch (1620:10): [True: 0, False: 6.53k]
  |  Branch (1620:32): [True: 0, False: 0]
  |  Branch (1620:52): [True: 1.49k, False: 5.04k]
  ------------------
 1621|       |
 1622|  5.04k|    if (_isBCP47Extension(localeID)) {
  ------------------
  |  Branch (1622:9): [True: 252, False: 4.78k]
  ------------------
 1623|    252|        localeID.remove_prefix(2);
 1624|    252|        constexpr char vaposix[] = "-va-posix";
 1625|    252|        constexpr size_t length = sizeof vaposix - 1;
 1626|  3.47k|        for (size_t next;; localeID.remove_prefix(next)) {
 1627|  3.47k|            next = localeID.find('-', 1);
 1628|  3.47k|            if (next == std::string_view::npos) { break; }
  ------------------
  |  Branch (1628:17): [True: 124, False: 3.35k]
  ------------------
 1629|  3.35k|            next = localeID.find('-', next + 1);
 1630|  3.35k|            bool finished = next == std::string_view::npos;
 1631|  3.35k|            std::string_view sub = localeID;
 1632|  3.35k|            if (!finished) { sub.remove_suffix(sub.length() - next); }
  ------------------
  |  Branch (1632:17): [True: 3.22k, False: 128]
  ------------------
 1633|       |
 1634|  3.35k|            if (sub.length() == length && uprv_strnicmp(sub.data(), vaposix, length) == 0) {
  ------------------
  |  | 1544|  1.91k|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  123|  1.91k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.91k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.91k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1634:17): [True: 1.91k, False: 1.44k]
  |  Branch (1634:43): [True: 1.56k, False: 353]
  ------------------
 1635|  1.56k|                if (variant != nullptr) {
  ------------------
  |  Branch (1635:21): [True: 1.56k, False: 0]
  ------------------
 1636|  1.56k|                    if (hasVariant) { variant->Append("_", 1); }
  ------------------
  |  Branch (1636:25): [True: 1.31k, False: 249]
  ------------------
 1637|  1.56k|                    constexpr char posix[] = "POSIX";
 1638|  1.56k|                    variant->Append(posix, sizeof posix - 1);
 1639|  1.56k|                }
 1640|  1.56k|                if (pEnd != nullptr) { *pEnd = localeID.data() + length; }
  ------------------
  |  Branch (1640:21): [True: 1.56k, False: 0]
  ------------------
 1641|  1.56k|            }
 1642|       |
 1643|  3.35k|            if (finished) { break; }
  ------------------
  |  Branch (1643:17): [True: 128, False: 3.22k]
  ------------------
 1644|  3.35k|        }
 1645|    252|    }
 1646|  5.04k|}
_Z20ulocimp_getParent_78PKcR10UErrorCode:
 2001|  41.9k|{
 2002|  41.9k|    return ByteSinkUtil::viaByteSinkToCharString(
 2003|  41.9k|        [&](ByteSink& sink, UErrorCode& status) {
 2004|  41.9k|            ulocimp_getParent(localeID, sink, status);
 2005|  41.9k|        },
 2006|  41.9k|        err);
 2007|  41.9k|}
_Z20ulocimp_getParent_78PKcRN6icu_788ByteSinkER10UErrorCode:
 2013|  41.9k|{
 2014|  41.9k|    if (U_FAILURE(err)) { return; }
  ------------------
  |  Branch (2014:9): [True: 0, False: 41.9k]
  ------------------
 2015|       |
 2016|  41.9k|    const char *lastUnderscore;
 2017|  41.9k|    int32_t i;
 2018|       |
 2019|  41.9k|    if (localeID == nullptr)
  ------------------
  |  Branch (2019:9): [True: 0, False: 41.9k]
  ------------------
 2020|      0|        localeID = uloc_getDefault();
  ------------------
  |  | 1118|      0|#define uloc_getDefault U_ICU_ENTRY_POINT_RENAME(uloc_getDefault)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2021|       |
 2022|  41.9k|    lastUnderscore=uprv_strrchr(localeID, '_');
  ------------------
  |  |   42|  41.9k|#define uprv_strrchr(s, c) U_STANDARD_CPP_NAMESPACE strrchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  41.9k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2023|  41.9k|    if(lastUnderscore!=nullptr) {
  ------------------
  |  Branch (2023:8): [True: 37.2k, False: 4.70k]
  ------------------
 2024|  37.2k|        i = static_cast<int32_t>(lastUnderscore - localeID);
 2025|  37.2k|    } else {
 2026|  4.70k|        i=0;
 2027|  4.70k|    }
 2028|       |
 2029|  41.9k|    if (i > 0) {
  ------------------
  |  Branch (2029:9): [True: 36.6k, False: 5.32k]
  ------------------
 2030|  36.6k|        if (uprv_strnicmp(localeID, "und_", 4) == 0) {
  ------------------
  |  | 1544|  36.6k|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  123|  36.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  36.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  36.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2030:13): [True: 0, False: 36.6k]
  ------------------
 2031|      0|            localeID += 3;
 2032|      0|            i -= 3;
 2033|      0|        }
 2034|  36.6k|        sink.Append(localeID, i);
 2035|  36.6k|    }
 2036|  41.9k|}
_Z18ulocimp_getName_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEERN6icu_788ByteSinkER10UErrorCode:
 2171|  10.5k|{
 2172|  10.5k|    _canonicalize(localeID, sink, 0, err);
 2173|  10.5k|}
_Z23ulocimp_canonicalize_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEER10UErrorCode:
 2231|      1|{
 2232|      1|    return ByteSinkUtil::viaByteSinkToCharString(
 2233|      1|        [&](ByteSink& sink, UErrorCode& status) {
 2234|      1|            ulocimp_canonicalize(localeID, sink, status);
 2235|      1|        },
 2236|      1|        err);
 2237|      1|}
_Z23ulocimp_canonicalize_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEERN6icu_788ByteSinkER10UErrorCode:
 2243|    886|{
 2244|    886|    _canonicalize(localeID, sink, _ULOC_CANONICALIZE, err);
  ------------------
  |  | 1786|    886|#define _ULOC_CANONICALIZE   0x1
  ------------------
 2245|    886|}
uloc_getDefault_78:
 2336|     33|{
 2337|     33|    return locale_get_default();
  ------------------
  |  |  139|     33|#define locale_get_default U_ICU_ENTRY_POINT_RENAME(locale_get_default)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2338|     33|}
_Z34ulocimp_toLegacyKeyWithFallback_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEE:
 2456|  25.1k|{
 2457|  25.1k|    std::optional<std::string_view> legacyKey = ulocimp_toLegacyKey(keyword);
  ------------------
  |  | 1219|  25.1k|#define ulocimp_toLegacyKey U_ICU_ENTRY_POINT_RENAME(ulocimp_toLegacyKey)
  |  |  ------------------
  |  |  |  |  123|  25.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  25.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  25.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2458|  25.1k|    if (!legacyKey.has_value() && isWellFormedLegacyKey(keyword)) {
  ------------------
  |  Branch (2458:9): [True: 12.2k, False: 12.9k]
  |  Branch (2458:35): [True: 12.2k, False: 0]
  ------------------
 2459|       |        // Checks if the specified locale key is well-formed with the legacy locale syntax.
 2460|       |        //
 2461|       |        // Note:
 2462|       |        //  LDML/CLDR provides some definition of keyword syntax in
 2463|       |        //  * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier and
 2464|       |        //  * http://www.unicode.org/reports/tr35/#Old_Locale_Extension_Syntax
 2465|       |        //  Keys can only consist of [0-9a-zA-Z].
 2466|  12.2k|        return keyword;
 2467|  12.2k|    }
 2468|  12.9k|    return legacyKey;
 2469|  25.1k|}
_Z35ulocimp_toLegacyTypeWithFallback_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEES3_:
 2482|  4.49k|{
 2483|  4.49k|    std::optional<std::string_view> legacyType = ulocimp_toLegacyType(keyword, value);
  ------------------
  |  | 1221|  4.49k|#define ulocimp_toLegacyType U_ICU_ENTRY_POINT_RENAME(ulocimp_toLegacyType)
  |  |  ------------------
  |  |  |  |  123|  4.49k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.49k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.49k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2484|  4.49k|    if (!legacyType.has_value() && isWellFormedLegacyType(value)) {
  ------------------
  |  Branch (2484:9): [True: 3.58k, False: 913]
  |  Branch (2484:36): [True: 3.58k, False: 0]
  ------------------
 2485|       |        // Checks if the specified locale type is well-formed with the legacy locale syntax.
 2486|       |        //
 2487|       |        // Note:
 2488|       |        //  LDML/CLDR provides some definition of keyword syntax in
 2489|       |        //  * http://www.unicode.org/reports/tr35/#Unicode_locale_identifier and
 2490|       |        //  * http://www.unicode.org/reports/tr35/#Old_Locale_Extension_Syntax
 2491|       |        //  Values (types) can only consist of [0-9a-zA-Z], plus for legacy values
 2492|       |        //  we allow [/_-+] in the middle (e.g. "Etc/GMT+1", "Asia/Tel_Aviv")
 2493|  3.58k|        return value;
 2494|  3.58k|    }
 2495|    913|    return legacyType;
 2496|  4.49k|}
uloc.cpp:_ZN12_GLOBAL__N_121compareKeywordStructsEPKvS1_S1_:
  583|  91.1k|compareKeywordStructs(const void * /*context*/, const void *left, const void *right) {
  584|  91.1k|    const char* leftString = static_cast<const KeywordStruct*>(left)->keyword;
  585|  91.1k|    const char* rightString = static_cast<const KeywordStruct*>(right)->keyword;
  586|  91.1k|    return uprv_strcmp(leftString, rightString);
  ------------------
  |  |   38|  91.1k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  91.1k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  587|  91.1k|}
uloc.cpp:_ZN12_GLOBAL__N_118_hasBCP47ExtensionENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  510|  11.4k|inline bool _hasBCP47Extension(std::string_view id) {
  511|  11.4k|    return id.find('@') == std::string_view::npos && getShortestSubtagLength(id) == 1;
  ------------------
  |  Branch (511:12): [True: 8.48k, False: 2.99k]
  |  Branch (511:54): [True: 4.60k, False: 3.87k]
  ------------------
  512|  11.4k|}
uloc.cpp:_ZN12_GLOBAL__N_123getShortestSubtagLengthENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  485|  8.48k|int32_t getShortestSubtagLength(std::string_view localeID) {
  486|  8.48k|    int32_t localeIDLength = static_cast<int32_t>(localeID.length());
  487|  8.48k|    int32_t length = localeIDLength;
  488|  8.48k|    int32_t tmpLength = 0;
  489|  8.48k|    int32_t i;
  490|  8.48k|    bool reset = true;
  491|       |
  492|   720k|    for (i = 0; i < localeIDLength; i++) {
  ------------------
  |  Branch (492:17): [True: 711k, False: 8.48k]
  ------------------
  493|   711k|        if (localeID[i] != '_' && localeID[i] != '-') {
  ------------------
  |  Branch (493:13): [True: 627k, False: 84.2k]
  |  Branch (493:35): [True: 567k, False: 60.1k]
  ------------------
  494|   567k|            if (reset) {
  ------------------
  |  Branch (494:17): [True: 140k, False: 426k]
  ------------------
  495|   140k|                tmpLength = 0;
  496|   140k|                reset = false;
  497|   140k|            }
  498|   567k|            tmpLength++;
  499|   567k|        } else {
  500|   144k|            if (tmpLength != 0 && tmpLength < length) {
  ------------------
  |  Branch (500:17): [True: 141k, False: 2.92k]
  |  Branch (500:35): [True: 8.01k, False: 133k]
  ------------------
  501|  8.01k|                length = tmpLength;
  502|  8.01k|            }
  503|   144k|            reset = true;
  504|   144k|        }
  505|   711k|    }
  506|       |
  507|  8.48k|    return length;
  508|  8.48k|}
uloc.cpp:_ZN12_GLOBAL__N_115UPRV_ISALPHANUMEc:
  516|  66.4k|inline bool UPRV_ISALPHANUM(char c) { return uprv_isASCIILetter(c) || UPRV_ISDIGIT(c); }
  ------------------
  |  | 1514|  66.4k|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|  66.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  66.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  66.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (516:46): [True: 50.1k, False: 16.3k]
  |  Branch (516:71): [True: 16.3k, False: 0]
  ------------------
uloc.cpp:_ZN12_GLOBAL__N_112UPRV_ISDIGITEc:
  515|  16.3k|inline bool UPRV_ISDIGIT(char c) { return c >= '0' && c <= '9'; }
  ------------------
  |  Branch (515:43): [True: 16.3k, False: 0]
  |  Branch (515:55): [True: 16.3k, False: 0]
  ------------------
uloc.cpp:_ZN12_GLOBAL__N_110_findIndexEPKPKcS1_:
 1178|  1.25k|{
 1179|  1.25k|    const char* const* anchor = list;
 1180|  1.25k|    int32_t pass = 0;
 1181|       |
 1182|       |    /* Make two passes through two nullptr-terminated arrays at 'list' */
 1183|  2.36k|    while (pass++ < 2) {
  ------------------
  |  Branch (1183:12): [True: 1.81k, False: 551]
  ------------------
 1184|   467k|        while (*list) {
  ------------------
  |  Branch (1184:16): [True: 466k, False: 1.11k]
  ------------------
 1185|   466k|            if (uprv_strcmp(key, *list) == 0) {
  ------------------
  |  |   38|   466k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   466k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1185:17): [True: 704, False: 465k]
  ------------------
 1186|    704|                return static_cast<int16_t>(list - anchor);
 1187|    704|            }
 1188|   465k|            list++;
 1189|   465k|        }
 1190|  1.11k|        ++list;     /* skip final nullptr *CWB*/
 1191|  1.11k|    }
 1192|    551|    return std::nullopt;
 1193|  1.25k|}
uloc.cpp:_ZN12_GLOBAL__N_112_getLanguageENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEPN6icu_788ByteSinkER10UErrorCode:
 1219|  11.1k|size_t _getLanguage(std::string_view localeID, ByteSink* sink, UErrorCode& status) {
 1220|  11.1k|    size_t skip = 0;
 1221|  11.1k|    if (localeID.size() == 4 && uprv_strnicmp(localeID.data(), "root", 4) == 0) {
  ------------------
  |  | 1544|    312|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  123|    312|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    312|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    312|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1221:9): [True: 312, False: 10.8k]
  |  Branch (1221:33): [True: 1, False: 311]
  ------------------
 1222|      1|        skip = 4;
 1223|      1|        localeID.remove_prefix(skip);
 1224|  11.1k|    } else if (localeID.size() >= 3 && uprv_strnicmp(localeID.data(), "und", 3) == 0 &&
  ------------------
  |  | 1544|  9.14k|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  123|  9.14k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.14k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.14k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1224:16): [True: 9.14k, False: 2.05k]
  |  Branch (1224:40): [True: 93, False: 9.05k]
  ------------------
 1225|  11.1k|               (localeID.size() == 3 ||
  ------------------
  |  Branch (1225:17): [True: 2, False: 91]
  ------------------
 1226|     93|                localeID[3] == '-' ||
  ------------------
  |  Branch (1226:17): [True: 5, False: 86]
  ------------------
 1227|     93|                localeID[3] == '_' ||
  ------------------
  |  Branch (1227:17): [True: 9, False: 77]
  ------------------
 1228|     93|                localeID[3] == '@')) {
  ------------------
  |  Branch (1228:17): [True: 14, False: 63]
  ------------------
 1229|     30|        skip = 3;
 1230|     30|        localeID.remove_prefix(skip);
 1231|     30|    }
 1232|       |
 1233|  11.1k|    constexpr int32_t MAXLEN = ULOC_LANG_CAPACITY - 1;  // Minus NUL.
  ------------------
  |  |  251|  11.1k|#define ULOC_LANG_CAPACITY 12
  ------------------
 1234|       |
 1235|       |    /* if it starts with i- or x- then copy that prefix */
 1236|  11.1k|    size_t len = _isIDPrefix(localeID) ? 2 : 0;
  ------------------
  |  Branch (1236:18): [True: 430, False: 10.7k]
  ------------------
 1237|  32.1k|    while (len < localeID.size() && !_isTerminator(localeID[len]) && !_isIDSeparator(localeID[len])) {
  ------------------
  |  Branch (1237:12): [True: 29.4k, False: 2.69k]
  |  Branch (1237:37): [True: 25.3k, False: 4.06k]
  |  Branch (1237:70): [True: 20.9k, False: 4.41k]
  ------------------
 1238|  20.9k|        if (len == MAXLEN) {
  ------------------
  |  Branch (1238:13): [True: 32, False: 20.9k]
  ------------------
 1239|     32|            status = U_ILLEGAL_ARGUMENT_ERROR;
 1240|     32|            return 0;
 1241|     32|        }
 1242|  20.9k|        len++;
 1243|  20.9k|    }
 1244|       |
 1245|  11.1k|    if (sink == nullptr || len == 0) { return skip + len; }
  ------------------
  |  Branch (1245:9): [True: 0, False: 11.1k]
  |  Branch (1245:28): [True: 2.44k, False: 8.71k]
  ------------------
 1246|       |
 1247|  8.71k|    int32_t minCapacity = uprv_max(static_cast<int32_t>(len), 4);  // Minimum 3 letters plus NUL.
  ------------------
  |  | 1526|  8.71k|#define uprv_max U_ICU_ENTRY_POINT_RENAME(uprv_max)
  |  |  ------------------
  |  |  |  |  123|  8.71k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  8.71k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  8.71k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1248|  8.71k|    char scratch[MAXLEN];
 1249|  8.71k|    int32_t capacity = 0;
 1250|  8.71k|    char* buffer = sink->GetAppendBuffer(
 1251|  8.71k|            minCapacity, minCapacity, scratch, UPRV_LENGTHOF(scratch), &capacity);
  ------------------
  |  |   99|  8.71k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1252|       |
 1253|  30.1k|    for (size_t i = 0; i < len; ++i) {
  ------------------
  |  Branch (1253:24): [True: 21.4k, False: 8.71k]
  ------------------
 1254|  21.4k|        buffer[i] = uprv_tolower(localeID[i]);
  ------------------
  |  |   68|  21.4k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  21.4k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  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
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1255|  21.4k|    }
 1256|  8.71k|    if (localeID.size() >= 2 && _isIDSeparator(localeID[1])) {
  ------------------
  |  Branch (1256:9): [True: 7.60k, False: 1.11k]
  |  Branch (1256:33): [True: 631, False: 6.97k]
  ------------------
 1257|    631|        buffer[1] = '-';
 1258|    631|    }
 1259|       |
 1260|  8.71k|    if (len == 3) {
  ------------------
  |  Branch (1260:9): [True: 988, False: 7.72k]
  ------------------
 1261|       |        /* convert 3 character code to 2 character code if possible *CWB*/
 1262|    988|        U_ASSERT(capacity >= 4);
  ------------------
  |  |   35|    988|#   define U_ASSERT(exp) (void)0
  ------------------
 1263|    988|        buffer[3] = '\0';
 1264|    988|        std::optional<int16_t> offset = _findIndex(LANGUAGES_3, buffer);
 1265|    988|        if (offset.has_value()) {
  ------------------
  |  Branch (1265:13): [True: 695, False: 293]
  ------------------
 1266|    695|            const char* const alias = LANGUAGES[*offset];
 1267|    695|            sink->Append(alias, static_cast<int32_t>(uprv_strlen(alias)));
  ------------------
  |  |   37|    695|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    695|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1268|    695|            return skip + len;
 1269|    695|        }
 1270|    988|    }
 1271|       |
 1272|  8.02k|    sink->Append(buffer, static_cast<int32_t>(len));
 1273|  8.02k|    return skip + len;
 1274|  8.71k|}
uloc.cpp:_ZN12_GLOBAL__N_111_isIDPrefixENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
 1152|  11.1k|inline bool _isIDPrefix(std::string_view s) {
 1153|  11.1k|    return s.size() >= 2 && _isPrefixLetter(s[0]) && _isIDSeparator(s[1]);
  ------------------
  |  Branch (1153:12): [True: 10.0k, False: 1.17k]
  |  Branch (1153:29): [True: 1.12k, False: 8.89k]
  |  Branch (1153:54): [True: 430, False: 695]
  ------------------
 1154|  11.1k|}
uloc.cpp:_ZN12_GLOBAL__N_115_isPrefixLetterEc:
 1148|  10.0k|inline bool _isPrefixLetter(char a) { return a == 'x' || a == 'X' || a == 'i' || a == 'I'; }
  ------------------
  |  Branch (1148:46): [True: 239, False: 9.78k]
  |  Branch (1148:58): [True: 150, False: 9.63k]
  |  Branch (1148:70): [True: 714, False: 8.91k]
  |  Branch (1148:82): [True: 22, False: 8.89k]
  ------------------
uloc.cpp:_ZN12_GLOBAL__N_113_isTerminatorEc:
 1159|  69.2k|inline bool _isTerminator(char a) { return a == '.' || a == '@'; }
  ------------------
  |  Branch (1159:44): [True: 372, False: 68.9k]
  |  Branch (1159:56): [True: 4.44k, False: 64.4k]
  ------------------
uloc.cpp:_ZN12_GLOBAL__N_110_getScriptENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEPN6icu_788ByteSinkE:
 1276|  4.41k|size_t _getScript(std::string_view localeID, ByteSink* sink) {
 1277|  4.41k|    constexpr int32_t LENGTH = 4;
 1278|       |
 1279|  4.41k|    size_t len = 0;
 1280|  10.5k|    while (len < localeID.size() && !_isTerminator(localeID[len]) && !_isIDSeparator(localeID[len]) &&
  ------------------
  |  Branch (1280:12): [True: 8.81k, False: 1.70k]
  |  Branch (1280:37): [True: 8.73k, False: 85]
  |  Branch (1280:70): [True: 6.71k, False: 2.01k]
  ------------------
 1281|  10.5k|            uprv_isASCIILetter(localeID[len])) {
  ------------------
  |  | 1514|  6.71k|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|  6.71k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  6.71k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  6.71k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1281:13): [True: 6.17k, False: 544]
  ------------------
 1282|  6.17k|        if (len == LENGTH) { return 0; }
  ------------------
  |  Branch (1282:13): [True: 66, False: 6.10k]
  ------------------
 1283|  6.10k|        len++;
 1284|  6.10k|    }
 1285|  4.34k|    if (len != LENGTH) { return 0; }
  ------------------
  |  Branch (1285:9): [True: 3.94k, False: 401]
  ------------------
 1286|       |
 1287|    401|    if (sink == nullptr) { return len; }
  ------------------
  |  Branch (1287:9): [True: 0, False: 401]
  ------------------
 1288|       |
 1289|    401|    char scratch[LENGTH];
 1290|    401|    int32_t capacity = 0;
 1291|    401|    char* buffer = sink->GetAppendBuffer(
 1292|    401|            LENGTH, LENGTH, scratch, UPRV_LENGTHOF(scratch), &capacity);
  ------------------
  |  |   99|    401|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1293|       |
 1294|    401|    buffer[0] = uprv_toupper(localeID[0]);
  ------------------
  |  | 1547|    401|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|    401|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    401|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    401|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1295|  1.60k|    for (int32_t i = 1; i < LENGTH; ++i) {
  ------------------
  |  Branch (1295:25): [True: 1.20k, False: 401]
  ------------------
 1296|  1.20k|        buffer[i] = uprv_tolower(localeID[i]);
  ------------------
  |  |   68|  1.20k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  1.20k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  1.20k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  1.20k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  1.20k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1297|  1.20k|    }
 1298|       |
 1299|    401|    sink->Append(buffer, LENGTH);
 1300|    401|    return len;
 1301|    401|}
uloc.cpp:_ZN12_GLOBAL__N_110_getRegionENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEPN6icu_788ByteSinkE:
 1303|  4.24k|size_t _getRegion(std::string_view localeID, ByteSink* sink) {
 1304|  4.24k|    constexpr int32_t MINLEN = 2;
 1305|  4.24k|    constexpr int32_t MAXLEN = ULOC_COUNTRY_CAPACITY - 1;  // Minus NUL.
  ------------------
  |  |  258|  4.24k|#define ULOC_COUNTRY_CAPACITY 4
  ------------------
 1306|       |
 1307|  4.24k|    size_t len = 0;
 1308|  10.1k|    while (len < localeID.size() && !_isTerminator(localeID[len]) && !_isIDSeparator(localeID[len])) {
  ------------------
  |  Branch (1308:12): [True: 8.28k, False: 1.88k]
  |  Branch (1308:37): [True: 8.17k, False: 111]
  |  Branch (1308:70): [True: 6.20k, False: 1.97k]
  ------------------
 1309|  6.20k|        if (len == MAXLEN) { return 0; }
  ------------------
  |  Branch (1309:13): [True: 275, False: 5.93k]
  ------------------
 1310|  5.93k|        len++;
 1311|  5.93k|    }
 1312|  3.97k|    if (len < MINLEN) { return 0; }
  ------------------
  |  Branch (1312:9): [True: 1.76k, False: 2.20k]
  ------------------
 1313|       |
 1314|  2.20k|    if (sink == nullptr) { return len; }
  ------------------
  |  Branch (1314:9): [True: 0, False: 2.20k]
  ------------------
 1315|       |
 1316|  2.20k|    char scratch[ULOC_COUNTRY_CAPACITY];
 1317|  2.20k|    int32_t capacity = 0;
 1318|  2.20k|    char* buffer = sink->GetAppendBuffer(
 1319|  2.20k|            ULOC_COUNTRY_CAPACITY,
  ------------------
  |  |  258|  2.20k|#define ULOC_COUNTRY_CAPACITY 4
  ------------------
 1320|  2.20k|            ULOC_COUNTRY_CAPACITY,
  ------------------
  |  |  258|  2.20k|#define ULOC_COUNTRY_CAPACITY 4
  ------------------
 1321|  2.20k|            scratch,
 1322|  2.20k|            UPRV_LENGTHOF(scratch),
  ------------------
  |  |   99|  2.20k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1323|  2.20k|            &capacity);
 1324|       |
 1325|  6.87k|    for (size_t i = 0; i < len; ++i) {
  ------------------
  |  Branch (1325:24): [True: 4.67k, False: 2.20k]
  ------------------
 1326|  4.67k|        buffer[i] = uprv_toupper(localeID[i]);
  ------------------
  |  | 1547|  4.67k|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|  4.67k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.67k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.67k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1327|  4.67k|    }
 1328|       |
 1329|  2.20k|    if (len == 3) {
  ------------------
  |  Branch (1329:9): [True: 267, False: 1.93k]
  ------------------
 1330|       |        /* convert 3 character code to 2 character code if possible *CWB*/
 1331|    267|        U_ASSERT(capacity >= 4);
  ------------------
  |  |   35|    267|#   define U_ASSERT(exp) (void)0
  ------------------
 1332|    267|        buffer[3] = '\0';
 1333|    267|        std::optional<int16_t> offset = _findIndex(COUNTRIES_3, buffer);
 1334|    267|        if (offset.has_value()) {
  ------------------
  |  Branch (1334:13): [True: 9, False: 258]
  ------------------
 1335|      9|            const char* const alias = COUNTRIES[*offset];
 1336|      9|            sink->Append(alias, static_cast<int32_t>(uprv_strlen(alias)));
  ------------------
  |  |   37|      9|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      9|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1337|      9|            return len;
 1338|      9|        }
 1339|    267|    }
 1340|       |
 1341|  2.19k|    sink->Append(buffer, static_cast<int32_t>(len));
 1342|  2.19k|    return len;
 1343|  2.20k|}
uloc.cpp:_ZN12_GLOBAL__N_117_isBCP47ExtensionENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
 1161|  29.6k|inline bool _isBCP47Extension(std::string_view p) {
 1162|  29.6k|    return p.size() >= 3 &&
  ------------------
  |  Branch (1162:12): [True: 28.9k, False: 669]
  ------------------
 1163|  29.6k|           p[0] == '-' &&
  ------------------
  |  Branch (1163:12): [True: 6.77k, False: 22.1k]
  ------------------
 1164|  29.6k|           (p[1] == 't' || p[1] == 'T' ||
  ------------------
  |  Branch (1164:13): [True: 182, False: 6.59k]
  |  Branch (1164:28): [True: 436, False: 6.16k]
  ------------------
 1165|  6.77k|            p[1] == 'u' || p[1] == 'U' ||
  ------------------
  |  Branch (1165:13): [True: 260, False: 5.90k]
  |  Branch (1165:28): [True: 494, False: 5.40k]
  ------------------
 1166|  6.77k|            p[1] == 'x' || p[1] == 'X') &&
  ------------------
  |  Branch (1166:13): [True: 131, False: 5.27k]
  |  Branch (1166:28): [True: 351, False: 4.92k]
  ------------------
 1167|  29.6k|           p[2] == '-';
  ------------------
  |  Branch (1167:12): [True: 505, False: 1.34k]
  ------------------
 1168|  29.6k|}
uloc.cpp:_ZN12_GLOBAL__N_111_getVariantENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEcPN6icu_788ByteSinkEbR10UErrorCode:
 1354|  2.28k|            UErrorCode& status) {
 1355|  2.28k|    if (U_FAILURE(status) || localeID.empty()) return 0;
  ------------------
  |  Branch (1355:9): [True: 0, False: 2.28k]
  |  Branch (1355:30): [True: 51, False: 2.23k]
  ------------------
 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|  2.23k|    constexpr int32_t MAX_VARIANTS_LENGTH = 179;
 1366|       |
 1367|       |    /* get one or more variant tags and separate them with '_' */
 1368|  2.23k|    size_t index = 0;
 1369|  2.23k|    if (_isIDSeparator(prev)) {
  ------------------
  |  Branch (1369:9): [True: 2.23k, False: 0]
  ------------------
 1370|       |        /* get a variant string after a '-' or '_' */
 1371|  24.2k|        for (std::string_view sub = localeID;;) {
 1372|  24.2k|            size_t next = sub.find_first_of(".@_-");
 1373|       |            // For historical reasons, a trailing separator is included in the variant.
 1374|  24.2k|            bool finished = next == std::string_view::npos || next + 1 == sub.length();
  ------------------
  |  Branch (1374:29): [True: 1.12k, False: 23.1k]
  |  Branch (1374:63): [True: 395, False: 22.7k]
  ------------------
 1375|  24.2k|            size_t limit = finished ? sub.length() : next;
  ------------------
  |  Branch (1375:28): [True: 1.52k, False: 22.7k]
  ------------------
 1376|  24.2k|            index += limit;
 1377|  24.2k|            if (index > MAX_VARIANTS_LENGTH) {
  ------------------
  |  Branch (1377:17): [True: 46, False: 24.2k]
  ------------------
 1378|     46|                status = U_ILLEGAL_ARGUMENT_ERROR;
 1379|     46|                return 0;
 1380|     46|            }
 1381|       |
 1382|  24.2k|            if (sink != nullptr) {
  ------------------
  |  Branch (1382:17): [True: 24.2k, False: 0]
  ------------------
 1383|  24.2k|                if (needSeparator) {
  ------------------
  |  Branch (1383:21): [True: 22.0k, False: 2.21k]
  ------------------
 1384|  22.0k|                    sink->Append("_", 1);
 1385|  22.0k|                } else {
 1386|  2.21k|                    needSeparator = true;
 1387|  2.21k|                }
 1388|       |
 1389|  24.2k|                int32_t length = static_cast<int32_t>(limit);
 1390|  24.2k|                int32_t minCapacity = uprv_min(length, MAX_VARIANTS_LENGTH);
  ------------------
  |  | 1529|  24.2k|#define uprv_min U_ICU_ENTRY_POINT_RENAME(uprv_min)
  |  |  ------------------
  |  |  |  |  123|  24.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  24.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  24.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1391|  24.2k|                char scratch[MAX_VARIANTS_LENGTH];
 1392|  24.2k|                int32_t capacity = 0;
 1393|  24.2k|                char* buffer = sink->GetAppendBuffer(
 1394|  24.2k|                        minCapacity, minCapacity, scratch, UPRV_LENGTHOF(scratch), &capacity);
  ------------------
  |  |   99|  24.2k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1395|       |
 1396|   104k|                for (size_t i = 0; i < limit; ++i) {
  ------------------
  |  Branch (1396:36): [True: 80.1k, False: 24.2k]
  ------------------
 1397|  80.1k|                    buffer[i] = uprv_toupper(sub[i]);
  ------------------
  |  | 1547|  80.1k|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|  80.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  80.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  80.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1398|  80.1k|                }
 1399|  24.2k|                sink->Append(buffer, length);
 1400|  24.2k|            }
 1401|       |
 1402|  24.2k|            if (finished) { return index; }
  ------------------
  |  Branch (1402:17): [True: 1.49k, False: 22.7k]
  ------------------
 1403|  22.7k|            sub.remove_prefix(next);
 1404|  22.7k|            if (_isTerminator(sub.front()) || _isBCP47Extension(sub)) { return index; }
  ------------------
  |  Branch (1404:17): [True: 561, False: 22.1k]
  |  Branch (1404:47): [True: 128, False: 22.0k]
  ------------------
 1405|  22.0k|            sub.remove_prefix(1);
 1406|  22.0k|            index++;
 1407|  22.0k|        }
 1408|  2.23k|    }
 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|  11.4k|              UErrorCode& err) {
 1807|  11.4k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (1807:9): [True: 0, False: 11.4k]
  ------------------
 1808|      0|        return;
 1809|      0|    }
 1810|       |
 1811|  11.4k|    int32_t j, fieldCount=0;
 1812|  11.4k|    CharString tempBuffer;  // if localeID has a BCP47 extension, tmpLocaleID points to this
 1813|  11.4k|    CharString localeIDWithHyphens;  // if localeID has a BPC47 extension and have _, tmpLocaleID points to this
 1814|  11.4k|    std::string_view origLocaleID;
 1815|  11.4k|    std::string_view tmpLocaleID;
 1816|  11.4k|    size_t keywordAssign = std::string_view::npos;
 1817|  11.4k|    size_t separatorIndicator = std::string_view::npos;
 1818|       |
 1819|  11.4k|    if (_hasBCP47Extension(localeID)) {
  ------------------
  |  Branch (1819:9): [True: 4.60k, False: 6.86k]
  ------------------
 1820|  4.60k|        std::string_view localeIDPtr = localeID;
 1821|       |
 1822|       |        // convert all underbars to hyphens, unless the "BCP47 extension" comes at the beginning of the string
 1823|  4.60k|        if (localeID.size() >= 2 && localeID.find('_') != std::string_view::npos && localeID[1] != '-' && localeID[1] != '_') {
  ------------------
  |  Branch (1823:13): [True: 3.44k, False: 1.16k]
  |  Branch (1823:37): [True: 2.54k, False: 904]
  |  Branch (1823:85): [True: 2.38k, False: 151]
  |  Branch (1823:107): [True: 2.00k, False: 386]
  ------------------
 1824|  2.00k|            localeIDWithHyphens.append(localeID, err);
 1825|  2.00k|            if (U_SUCCESS(err)) {
  ------------------
  |  Branch (1825:17): [True: 2.00k, False: 0]
  ------------------
 1826|   517k|                for (char* p = localeIDWithHyphens.data(); *p != '\0'; ++p) {
  ------------------
  |  Branch (1826:60): [True: 515k, False: 2.00k]
  ------------------
 1827|   515k|                    if (*p == '_') {
  ------------------
  |  Branch (1827:25): [True: 69.3k, False: 446k]
  ------------------
 1828|  69.3k|                        *p = '-';
 1829|  69.3k|                    }
 1830|   515k|                }
 1831|  2.00k|                localeIDPtr = localeIDWithHyphens.toStringPiece();
 1832|  2.00k|            }
 1833|  2.00k|        }
 1834|       |
 1835|  4.60k|        tempBuffer = ulocimp_forLanguageTag(localeIDPtr.data(), static_cast<int32_t>(localeIDPtr.size()), nullptr, err);
  ------------------
  |  | 1198|  4.60k|#define ulocimp_forLanguageTag U_ICU_ENTRY_POINT_RENAME(ulocimp_forLanguageTag)
  |  |  ------------------
  |  |  |  |  123|  4.60k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.60k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.60k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1836|  4.60k|        tmpLocaleID = U_SUCCESS(err) && !tempBuffer.isEmpty() ? static_cast<std::string_view>(tempBuffer.toStringPiece()) : localeIDPtr;
  ------------------
  |  Branch (1836:23): [True: 4.60k, False: 0]
  |  Branch (1836:41): [True: 2.07k, False: 2.53k]
  ------------------
 1837|  6.86k|    } else {
 1838|  6.86k|        tmpLocaleID=localeID;
 1839|  6.86k|    }
 1840|       |
 1841|  11.4k|    origLocaleID=tmpLocaleID;
 1842|       |
 1843|       |    /* get all pieces, one after another, and separate with '_' */
 1844|  11.4k|    CharString tag;
 1845|  11.4k|    CharString script;
 1846|  11.4k|    CharString country;
 1847|  11.4k|    CharString variant;
 1848|  11.4k|    const char* end = nullptr;
 1849|  11.4k|    ulocimp_getSubtags(
  ------------------
  |  | 1209|  11.4k|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|  11.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  11.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  11.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1850|  11.4k|            tmpLocaleID,
 1851|  11.4k|            &tag,
 1852|  11.4k|            &script,
 1853|  11.4k|            &country,
 1854|  11.4k|            &variant,
 1855|  11.4k|            &end,
 1856|  11.4k|            err);
 1857|  11.4k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (1857:9): [True: 78, False: 11.3k]
  ------------------
 1858|     78|        return;
 1859|     78|    }
 1860|  11.3k|    U_ASSERT(end != nullptr);
  ------------------
  |  |   35|  11.3k|#   define U_ASSERT(exp) (void)0
  ------------------
 1861|  11.3k|    if (end > tmpLocaleID.data()) {
  ------------------
  |  Branch (1861:9): [True: 9.59k, False: 1.80k]
  ------------------
 1862|  9.59k|        tmpLocaleID.remove_prefix(end - tmpLocaleID.data());
 1863|  9.59k|    }
 1864|       |
 1865|  11.3k|    if (tag.length() == I_DEFAULT_LENGTH && origLocaleID.length() >= I_DEFAULT_LENGTH &&
  ------------------
  |  Branch (1865:9): [True: 234, False: 11.1k]
  |  Branch (1865:45): [True: 234, False: 0]
  ------------------
 1866|  11.3k|            uprv_strncmp(origLocaleID.data(), i_default, I_DEFAULT_LENGTH) == 0) {
  ------------------
  |  |   44|    234|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|    234|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1866:13): [True: 17, False: 217]
  ------------------
 1867|     17|        tag.clear();
 1868|     17|        tag.append(uloc_getDefault(), err);
  ------------------
  |  | 1118|     17|#define uloc_getDefault U_ICU_ENTRY_POINT_RENAME(uloc_getDefault)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1869|  11.3k|    } else {
 1870|  11.3k|        if (!script.isEmpty()) {
  ------------------
  |  Branch (1870:13): [True: 397, False: 10.9k]
  ------------------
 1871|    397|            ++fieldCount;
 1872|    397|            tag.append('_', err);
 1873|    397|            tag.append(script, err);
 1874|    397|        }
 1875|  11.3k|        if (!country.isEmpty()) {
  ------------------
  |  Branch (1875:13): [True: 2.18k, False: 9.19k]
  ------------------
 1876|  2.18k|            ++fieldCount;
 1877|  2.18k|            tag.append('_', err);
 1878|  2.18k|            tag.append(country, err);
 1879|  2.18k|        }
 1880|  11.3k|        if (!variant.isEmpty()) {
  ------------------
  |  Branch (1880:13): [True: 2.18k, False: 9.20k]
  ------------------
 1881|  2.18k|            ++fieldCount;
 1882|  2.18k|            if (country.isEmpty()) {
  ------------------
  |  Branch (1882:17): [True: 1.85k, False: 330]
  ------------------
 1883|  1.85k|                tag.append('_', err);
 1884|  1.85k|            }
 1885|  2.18k|            tag.append('_', err);
 1886|  2.18k|            tag.append(variant, err);
 1887|  2.18k|        }
 1888|  11.3k|    }
 1889|       |
 1890|       |    /* Copy POSIX-style charset specifier, if any [mr.utf8] */
 1891|  11.3k|    if (!OPTION_SET(options, _ULOC_CANONICALIZE) && !tmpLocaleID.empty() && tmpLocaleID.front() == '.') {
  ------------------
  |  | 1786|  11.3k|#define _ULOC_CANONICALIZE   0x1
  ------------------
  |  Branch (1891:9): [True: 10.5k, False: 886]
  |  Branch (1891:53): [True: 4.98k, False: 5.52k]
  |  Branch (1891:77): [True: 325, False: 4.66k]
  ------------------
 1892|    325|        tag.append('.', err);
 1893|    325|        tmpLocaleID.remove_prefix(1);
 1894|    325|        size_t length;
 1895|    325|        if (size_t atPos = tmpLocaleID.find('@'); atPos != std::string_view::npos) {
  ------------------
  |  Branch (1895:51): [True: 107, False: 218]
  ------------------
 1896|    107|            length = atPos;
 1897|    218|        } else {
 1898|    218|            length = tmpLocaleID.length();
 1899|    218|        }
 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|    325|        constexpr size_t kMaxCharsetLength = 64;
 1906|    325|        if (length > kMaxCharsetLength) {
  ------------------
  |  Branch (1906:13): [True: 16, False: 309]
  ------------------
 1907|     16|           err = U_ILLEGAL_ARGUMENT_ERROR; /* malformed keyword name */
 1908|     16|           return;
 1909|     16|        }
 1910|    309|        if (length > 0) {
  ------------------
  |  Branch (1910:13): [True: 234, False: 75]
  ------------------
 1911|    234|            tag.append(tmpLocaleID.data(), static_cast<int32_t>(length), err);
 1912|    234|            tmpLocaleID.remove_prefix(length);
 1913|    234|        }
 1914|    309|    }
 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|  11.3k|    if (const char* start = locale_getKeywordsStart(tmpLocaleID); start != nullptr) {
  ------------------
  |  |  138|  11.3k|#define locale_getKeywordsStart U_ICU_ENTRY_POINT_RENAME(locale_getKeywordsStart)
  |  |  ------------------
  |  |  |  |  123|  11.3k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  11.3k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  11.3k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1918:67): [True: 4.55k, False: 6.83k]
  ------------------
 1919|  4.55k|        if (start > tmpLocaleID.data()) {
  ------------------
  |  Branch (1919:13): [True: 76, False: 4.47k]
  ------------------
 1920|     76|            tmpLocaleID.remove_prefix(start - tmpLocaleID.data());
 1921|     76|        }
 1922|  4.55k|        keywordAssign = tmpLocaleID.find('=');
 1923|  4.55k|        separatorIndicator = tmpLocaleID.find(';');
 1924|  6.83k|    } else {
 1925|  6.83k|        tmpLocaleID = {};
 1926|  6.83k|    }
 1927|       |
 1928|       |    /* Copy POSIX-style variant, if any [mr@FOO] */
 1929|  11.3k|    if (!OPTION_SET(options, _ULOC_CANONICALIZE) &&
  ------------------
  |  | 1786|  11.3k|#define _ULOC_CANONICALIZE   0x1
  ------------------
  |  Branch (1929:9): [True: 10.4k, False: 886]
  ------------------
 1930|  11.3k|        !tmpLocaleID.empty() && keywordAssign == std::string_view::npos) {
  ------------------
  |  Branch (1930:9): [True: 4.55k, False: 5.94k]
  |  Branch (1930:33): [True: 259, False: 4.29k]
  ------------------
 1931|    259|        tag.append(tmpLocaleID, err);
 1932|    259|        tmpLocaleID = {};
 1933|    259|    }
 1934|       |
 1935|  11.3k|    if (OPTION_SET(options, _ULOC_CANONICALIZE)) {
  ------------------
  |  | 1786|  11.3k|#define _ULOC_CANONICALIZE   0x1
  ------------------
  |  Branch (1935:9): [True: 886, False: 10.4k]
  ------------------
 1936|       |        /* Handle @FOO variant if @ is present and not followed by = */
 1937|    886|        if (!tmpLocaleID.empty() && keywordAssign == std::string_view::npos) {
  ------------------
  |  Branch (1937:13): [True: 0, False: 886]
  |  Branch (1937:37): [True: 0, False: 0]
  ------------------
 1938|       |            /* Add missing '_' if needed */
 1939|      0|            if (fieldCount < 2 || (fieldCount < 3 && !script.isEmpty())) {
  ------------------
  |  Branch (1939:17): [True: 0, False: 0]
  |  Branch (1939:36): [True: 0, False: 0]
  |  Branch (1939:54): [True: 0, False: 0]
  ------------------
 1940|      0|                do {
 1941|      0|                    tag.append('_', err);
 1942|      0|                    ++fieldCount;
 1943|      0|                } while(fieldCount<2);
  ------------------
  |  Branch (1943:25): [True: 0, False: 0]
  ------------------
 1944|      0|            }
 1945|       |
 1946|      0|            CharStringByteSink s(&tag);
 1947|      0|            std::string_view sub = tmpLocaleID;
 1948|      0|            sub.remove_prefix(1);
 1949|      0|            _getVariant(sub, '@', &s, !variant.isEmpty(), err);
 1950|      0|            if (U_FAILURE(err)) { return; }
  ------------------
  |  Branch (1950:17): [True: 0, False: 0]
  ------------------
 1951|      0|        }
 1952|       |
 1953|       |        /* Look up the ID in the canonicalization map */
 1954|  9.74k|        for (j=0; j<UPRV_LENGTHOF(CANONICALIZE_MAP); j++) {
  ------------------
  |  |   99|  9.74k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1954:19): [True: 8.86k, False: 886]
  ------------------
 1955|  8.86k|            StringPiece id(CANONICALIZE_MAP[j].id);
 1956|  8.86k|            if (tag == id) {
  ------------------
  |  Branch (1956:17): [True: 0, False: 8.86k]
  ------------------
 1957|      0|                if (id.empty() && !tmpLocaleID.empty()) {
  ------------------
  |  Branch (1957:21): [True: 0, False: 0]
  |  Branch (1957:35): [True: 0, False: 0]
  ------------------
 1958|      0|                    break; /* Don't remap "" if keywords present */
 1959|      0|                }
 1960|      0|                tag.clear();
 1961|      0|                tag.append(CANONICALIZE_MAP[j].canonicalID, err);
 1962|      0|                break;
 1963|      0|            }
 1964|  8.86k|        }
 1965|    886|    }
 1966|       |
 1967|  11.3k|    sink.Append(tag.data(), tag.length());
 1968|       |
 1969|  11.3k|    if (!OPTION_SET(options, _ULOC_STRIP_KEYWORDS)) {
  ------------------
  |  | 1785|  11.3k|#define _ULOC_STRIP_KEYWORDS 0x2
  ------------------
  |  Branch (1969:9): [True: 11.3k, False: 0]
  ------------------
 1970|  11.3k|        if (!tmpLocaleID.empty() && keywordAssign != std::string_view::npos &&
  ------------------
  |  Branch (1970:13): [True: 4.29k, False: 7.09k]
  |  Branch (1970:37): [True: 4.29k, False: 0]
  ------------------
 1971|  11.3k|            (separatorIndicator == std::string_view::npos || separatorIndicator > keywordAssign)) {
  ------------------
  |  Branch (1971:14): [True: 1.32k, False: 2.96k]
  |  Branch (1971:62): [True: 2.90k, False: 64]
  ------------------
 1972|  4.22k|            sink.Append("@", 1);
 1973|  4.22k|            ++fieldCount;
 1974|  4.22k|            tmpLocaleID.remove_prefix(1);
 1975|  4.22k|            ulocimp_getKeywords(tmpLocaleID, '@', sink, true, err);
  ------------------
  |  | 1201|  4.22k|#define ulocimp_getKeywords U_ICU_ENTRY_POINT_RENAME(ulocimp_getKeywords)
  |  |  ------------------
  |  |  |  |  123|  4.22k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.22k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.22k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1976|  4.22k|        }
 1977|  11.3k|    }
 1978|  11.3k|}
uloc.cpp:_ZN12_GLOBAL__N_110OPTION_SETEjj:
 1790|  45.5k|inline bool OPTION_SET(uint32_t options, uint32_t mask) { return (options & mask) != 0; }
uloc.cpp:_ZN12_GLOBAL__N_121isWellFormedLegacyKeyENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
 2421|  12.2k|{
 2422|  12.2k|    return std::all_of(key.begin(), key.end(), UPRV_ISALPHANUM);
 2423|  12.2k|}
uloc.cpp:_ZN12_GLOBAL__N_122isWellFormedLegacyTypeENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
 2427|  3.58k|{
 2428|  3.58k|    int32_t alphaNumLen = 0;
 2429|  51.4k|    for (char c : legacyType) {
  ------------------
  |  Branch (2429:17): [True: 51.4k, False: 3.58k]
  ------------------
 2430|  51.4k|        if (c == '_' || c == '/' || c == '-') {
  ------------------
  |  Branch (2430:13): [True: 0, False: 51.4k]
  |  Branch (2430:25): [True: 0, False: 51.4k]
  |  Branch (2430:37): [True: 9.47k, False: 41.9k]
  ------------------
 2431|  9.47k|            if (alphaNumLen == 0) {
  ------------------
  |  Branch (2431:17): [True: 0, False: 9.47k]
  ------------------
 2432|      0|                return false;
 2433|      0|            }
 2434|  9.47k|            alphaNumLen = 0;
 2435|  41.9k|        } else if (UPRV_ISALPHANUM(c)) {
  ------------------
  |  Branch (2435:20): [True: 41.9k, False: 0]
  ------------------
 2436|  41.9k|            alphaNumLen++;
 2437|  41.9k|        } else {
 2438|      0|            return false;
 2439|      0|        }
 2440|  51.4k|    }
 2441|  3.58k|    return alphaNumLen != 0;
 2442|  3.58k|}
uloc.cpp:_ZZ20ulocimp_getParent_78PKcR10UErrorCodeENK3$_0clERN6icu_788ByteSinkES2_:
 2003|  41.9k|        [&](ByteSink& sink, UErrorCode& status) {
 2004|  41.9k|            ulocimp_getParent(localeID, sink, status);
  ------------------
  |  | 1205|  41.9k|#define ulocimp_getParent U_ICU_ENTRY_POINT_RENAME(ulocimp_getParent)
  |  |  ------------------
  |  |  |  |  123|  41.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  41.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  41.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2005|  41.9k|        },
uloc.cpp:_ZZ23ulocimp_canonicalize_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEER10UErrorCodeENK3$_0clERN6icu_788ByteSinkES5_:
 2233|      1|        [&](ByteSink& sink, UErrorCode& status) {
 2234|      1|            ulocimp_canonicalize(localeID, sink, status);
  ------------------
  |  | 1197|      1|#define ulocimp_canonicalize U_ICU_ENTRY_POINT_RENAME(ulocimp_canonicalize)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2235|      1|        },

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

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

uloc.cpp:_ZN12_GLOBAL__N_114_isIDSeparatorEc:
   49|  78.5k|inline bool _isIDSeparator(char a) { return a == '_' || a == '-'; }
  ------------------
  |  Branch (49:45): [True: 17.9k, False: 60.6k]
  |  Branch (49:57): [True: 6.14k, False: 54.4k]
  ------------------

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

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

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

_ZN6icu_7814ConstChar16PtrC2EPKDs:
  229|  1.42M|ConstChar16Ptr::ConstChar16Ptr(const char16_t *p) : p_(p) {}
_ZN6icu_7814ConstChar16PtrD2Ev:
  237|  1.42M|ConstChar16Ptr::~ConstChar16Ptr() {
  238|  1.42M|    U_ALIASING_BARRIER(p_);
  ------------------
  |  |   35|  1.42M|#   define U_ALIASING_BARRIER(ptr) asm volatile("" : : "rm"(ptr) : "memory")
  ------------------
  239|  1.42M|}
_ZNK6icu_7814ConstChar16PtrcvPKDsEv:
  205|  1.42M|    inline operator const char16_t *() const { return get(); }
_ZNK6icu_7814ConstChar16Ptr3getEv:
  241|  1.42M|const char16_t *ConstChar16Ptr::get() const { return p_; }
_ZN6icu_788internal15toU16StringViewENSt3__117basic_string_viewIDsNS1_11char_traitsIDsEEEE:
  400|  8.14k|inline std::u16string_view toU16StringView(std::u16string_view sv) { return sv; }
_ZN6icu_788internal23toU16StringViewNullableIA9_DsvEENSt3__117basic_string_viewIDsNS3_11char_traitsIDsEEEERKT_:
  430|  8.14k|inline std::u16string_view toU16StringViewNullable(const T& text) {
  431|  8.14k|    return toU16StringView(text);
  432|  8.14k|}

_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|  40.5k|    explicit LocalOpenPointer(Type *p=nullptr) : LocalPointerBase<Type>(p) {}
_ZN6icu_7816LocalPointerBaseI15UResourceBundleEC2EPS1_:
   82|  40.5k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_788internal16LocalOpenPointerI15UResourceBundleXadL_Z13ures_close_78EEED2Ev:
  575|  40.5k|    ~LocalOpenPointer() { if (ptr != nullptr) { closeFunction(ptr); } }
  ------------------
  |  Branch (575:31): [True: 40.5k, False: 70]
  ------------------
_ZN6icu_7816LocalPointerBaseI15UResourceBundleED2Ev:
   88|  40.5k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseI15UResourceBundleE8getAliasEv:
  122|   331k|    T *getAlias() const { return ptr; }
_ZN6icu_7812LocalPointerINS_11PluralRulesEEC2EPS1_R10UErrorCode:
  214|  36.0k|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|  36.0k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 36.0k]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|  36.0k|    }
_ZN6icu_7816LocalPointerBaseINS_11PluralRulesEEC2EPS1_:
   82|  36.0k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_11PluralRulesEED2Ev:
  245|  36.0k|    ~LocalPointer() {
  246|  36.0k|        delete LocalPointerBase<T>::ptr;
  247|  36.0k|    }
_ZN6icu_7816LocalPointerBaseINS_11PluralRulesEED2Ev:
   88|  36.0k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseINS_11PluralRulesEEptEv:
  134|  37.9k|    T *operator->() const { return ptr; }
_ZN6icu_7812LocalPointerINS_11PluralRulesEE12adoptInsteadEPS1_:
  300|  4.08k|    void adoptInstead(T *p) {
  301|  4.08k|        delete LocalPointerBase<T>::ptr;
  302|  4.08k|        LocalPointerBase<T>::ptr=p;
  303|  4.08k|    }
_ZN6icu_7816LocalPointerBaseINS_11PluralRulesEE6orphanEv:
  141|  36.0k|    T *orphan() {
  142|  36.0k|        T *p=ptr;
  143|  36.0k|        ptr=nullptr;
  144|  36.0k|        return p;
  145|  36.0k|    }
_ZN6icu_7812LocalPointerINS_20StandardPluralRangesEED2Ev:
  245|  26.5k|    ~LocalPointer() {
  246|  26.5k|        delete LocalPointerBase<T>::ptr;
  247|  26.5k|    }
_ZN6icu_7816LocalPointerBaseINS_20StandardPluralRangesEED2Ev:
   88|  26.5k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7816LocalPointerBaseINS_20StandardPluralRangesEE6orphanEv:
  141|  26.5k|    T *orphan() {
  142|  26.5k|        T *p=ptr;
  143|  26.5k|        ptr=nullptr;
  144|  26.5k|        return p;
  145|  26.5k|    }
_ZNK6icu_7816LocalPointerBaseINS_11PluralRulesEE8getAliasEv:
  122|  20.9k|    T *getAlias() const { return ptr; }
_ZN6icu_7812LocalPointerINS_17SharedPluralRulesEEC2EPS1_R10UErrorCode:
  214|  4.64k|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|  4.64k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 4.64k]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|  4.64k|    }
_ZN6icu_7816LocalPointerBaseINS_17SharedPluralRulesEEC2EPS1_:
   82|  4.64k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_17SharedPluralRulesEED2Ev:
  245|  4.64k|    ~LocalPointer() {
  246|  4.64k|        delete LocalPointerBase<T>::ptr;
  247|  4.64k|    }
_ZN6icu_7816LocalPointerBaseINS_17SharedPluralRulesEED2Ev:
   88|  4.64k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseINS_17SharedPluralRulesEEptEv:
  134|  4.64k|    T *operator->() const { return ptr; }
_ZN6icu_7816LocalPointerBaseINS_17SharedPluralRulesEE6orphanEv:
  141|  4.64k|    T *orphan() {
  142|  4.64k|        T *p=ptr;
  143|  4.64k|        ptr=nullptr;
  144|  4.64k|        return p;
  145|  4.64k|    }
_ZN6icu_7812LocalPointerINS_9UVector32EEC2EPS1_R10UErrorCode:
  214|  37.9k|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|  37.9k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 37.9k]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|  37.9k|    }
_ZN6icu_7816LocalPointerBaseINS_9UVector32EEC2EPS1_:
   82|  37.9k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_9UVector32EED2Ev:
  245|  37.9k|    ~LocalPointer() {
  246|  37.9k|        delete LocalPointerBase<T>::ptr;
  247|  37.9k|    }
_ZN6icu_7816LocalPointerBaseINS_9UVector32EED2Ev:
   88|  37.9k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7816LocalPointerBaseINS_9UVector32EE6orphanEv:
  141|  37.9k|    T *orphan() {
  142|  37.9k|        T *p=ptr;
  143|  37.9k|        ptr=nullptr;
  144|  37.9k|        return p;
  145|  37.9k|    }
_ZN6icu_7812LocalPointerINS_20StandardPluralRangesEEC2EPS1_R10UErrorCode:
  214|  26.5k|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|  26.5k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 26.5k]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|  26.5k|    }
_ZN6icu_7816LocalPointerBaseINS_20StandardPluralRangesEEC2EPS1_:
   82|  26.5k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7816LocalPointerBaseIPKcEC2EPS2_:
   82|      5|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7816LocalPointerBaseIiEC2EPi:
   82|      5|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7816LocalPointerBaseIiED2Ev:
   88|      5|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_7816LocalPointerBaseIPKcED2Ev:
   88|      5|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_788internal16LocalOpenPointerI10UHashtableXadL_Z14uhash_close_78EEEC2EPS2_:
  567|     38|    explicit LocalOpenPointer(Type *p=nullptr) : LocalPointerBase<Type>(p) {}
_ZN6icu_7816LocalPointerBaseI10UHashtableEC2EPS1_:
   82|     38|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZNK6icu_7816LocalPointerBaseI10UHashtableE8getAliasEv:
  122|  3.94k|    T *getAlias() const { return ptr; }
_ZN6icu_7816LocalPointerBaseI10UHashtableE6orphanEv:
  141|      1|    T *orphan() {
  142|      1|        T *p=ptr;
  143|      1|        ptr=nullptr;
  144|      1|        return p;
  145|      1|    }
_ZN6icu_788internal16LocalOpenPointerI10UHashtableXadL_Z14uhash_close_78EEED2Ev:
  575|      1|    ~LocalOpenPointer() { if (ptr != nullptr) { closeFunction(ptr); } }
  ------------------
  |  Branch (575:31): [True: 0, False: 1]
  ------------------
_ZN6icu_7816LocalPointerBaseI10UHashtableED2Ev:
   88|      1|    ~LocalPointerBase() { /* delete ptr; */ }
_ZN6icu_788internal16LocalOpenPointerI15UResourceBundleXadL_Z13ures_close_78EEE12adoptInsteadEPS2_:
  595|  79.8k|    void adoptInstead(Type *p) {
  596|  79.8k|        if (ptr != nullptr) { closeFunction(ptr); }
  ------------------
  |  Branch (596:13): [True: 0, False: 79.8k]
  ------------------
  597|  79.8k|        ptr=p;
  598|  79.8k|    }
_ZN6icu_7816LocalPointerBaseI15UResourceBundleE6orphanEv:
  141|  79.8k|    T *orphan() {
  142|  79.8k|        T *p=ptr;
  143|  79.8k|        ptr=nullptr;
  144|  79.8k|        return p;
  145|  79.8k|    }
_ZNK6icu_7816LocalPointerBaseI15UResourceBundleE7isValidEv:
  100|  2.17k|    UBool isValid() const { return ptr!=nullptr; }
_ZN6icu_788internal16LocalOpenPointerI10UHashtableXadL_Z14uhash_close_78EEE12adoptInsteadEPS2_:
  595|     37|    void adoptInstead(Type *p) {
  596|     37|        if (ptr != nullptr) { closeFunction(ptr); }
  ------------------
  |  Branch (596:13): [True: 0, False: 37]
  ------------------
  597|     37|        ptr=p;
  598|     37|    }
uloc_tag.cpp:_ZN6icu_7812LocalPointerIN12_GLOBAL__N_116VariantListEntryEEC2EPS2_R10UErrorCode:
  214|  3.13k|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|  3.13k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 3.13k]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|  3.13k|    }
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_116VariantListEntryEEC2EPS2_:
   82|  6.26k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_116VariantListEntryEEptEv:
  134|  47.2k|    T *operator->() const { return ptr; }
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_116VariantListEntryEE6orphanEv:
  141|  3.12k|    T *orphan() {
  142|  3.12k|        T *p=ptr;
  143|  3.12k|        ptr=nullptr;
  144|  3.12k|        return p;
  145|  3.12k|    }
uloc_tag.cpp:_ZN6icu_7812LocalPointerIN12_GLOBAL__N_116VariantListEntryEEC2EOS3_:
  224|  3.13k|    LocalPointer(LocalPointer<T> &&src) noexcept : LocalPointerBase<T>(src.ptr) {
  225|  3.13k|        src.ptr=nullptr;
  226|  3.13k|    }
uloc_tag.cpp:_ZN6icu_7812LocalPointerIN12_GLOBAL__N_116VariantListEntryEED2Ev:
  245|  6.26k|    ~LocalPointer() {
  246|  6.26k|        delete LocalPointerBase<T>::ptr;
  247|  6.26k|    }
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_116VariantListEntryEED2Ev:
   88|  6.26k|    ~LocalPointerBase() { /* delete ptr; */ }
uloc_tag.cpp:_ZN6icu_7812LocalPointerIN12_GLOBAL__N_118ExtensionListEntryEEC2EPS2_:
  200|  4.60k|    explicit LocalPointer(T *p=nullptr) : LocalPointerBase<T>(p) {}
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_118ExtensionListEntryEEC2EPS2_:
   82|  4.60k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_112ULanguageTagEE6isNullEv:
   94|  4.60k|    UBool isNull() const { return ptr==nullptr; }
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_112ULanguageTagEEptEv:
  134|  13.3k|    T *operator->() const { return ptr; }
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_112ULanguageTagEE6orphanEv:
  141|  4.60k|    T *orphan() {
  142|  4.60k|        T *p=ptr;
  143|  4.60k|        ptr=nullptr;
  144|  4.60k|        return p;
  145|  4.60k|    }
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_118ExtensionListEntryEE7isValidEv:
  100|  6.96k|    UBool isValid() const { return ptr!=nullptr; }
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_118ExtensionListEntryEE6orphanEv:
  141|  2.83k|    T *orphan() {
  142|  2.83k|        T *p=ptr;
  143|  2.83k|        ptr=nullptr;
  144|  2.83k|        return p;
  145|  2.83k|    }
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_118ExtensionListEntryEEptEv:
  134|  8.26k|    T *operator->() const { return ptr; }
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_118ExtensionListEntryEE8getAliasEv:
  122|  2.58k|    T *getAlias() const { return ptr; }
uloc_tag.cpp:_ZN6icu_7812LocalPointerIN12_GLOBAL__N_118ExtensionListEntryEE29adoptInsteadAndCheckErrorCodeEPS2_R10UErrorCode:
  319|  2.83k|    void adoptInsteadAndCheckErrorCode(T *p, UErrorCode &errorCode) {
  320|  2.83k|        if(U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (320:12): [True: 2.83k, False: 0]
  ------------------
  321|  2.83k|            delete LocalPointerBase<T>::ptr;
  322|  2.83k|            LocalPointerBase<T>::ptr=p;
  323|  2.83k|            if(p==nullptr) {
  ------------------
  |  Branch (323:16): [True: 0, False: 2.83k]
  ------------------
  324|      0|                errorCode=U_MEMORY_ALLOCATION_ERROR;
  325|      0|            }
  326|  2.83k|        } else {
  327|      0|            delete p;
  328|      0|        }
  329|  2.83k|    }
uloc_tag.cpp:_ZN6icu_7812LocalPointerIN12_GLOBAL__N_118ExtensionListEntryEED2Ev:
  245|  4.60k|    ~LocalPointer() {
  246|  4.60k|        delete LocalPointerBase<T>::ptr;
  247|  4.60k|    }
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_118ExtensionListEntryEED2Ev:
   88|  4.60k|    ~LocalPointerBase() { /* delete ptr; */ }
uloc_tag.cpp:_ZN6icu_788internal16LocalOpenPointerIN12_GLOBAL__N_112ULanguageTagEXadL_ZNS2_11ultag_closeEPS3_EEEC2ES4_:
  567|  9.21k|    explicit LocalOpenPointer(Type *p=nullptr) : LocalPointerBase<Type>(p) {}
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_112ULanguageTagEEC2EPS2_:
   82|  9.21k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
uloc_tag.cpp:_ZN6icu_788internal16LocalOpenPointerIN12_GLOBAL__N_112ULanguageTagEXadL_ZNS2_11ultag_closeEPS3_EEED2Ev:
  575|  9.21k|    ~LocalOpenPointer() { if (ptr != nullptr) { closeFunction(ptr); } }
  ------------------
  |  Branch (575:31): [True: 4.60k, False: 4.60k]
  ------------------
uloc_tag.cpp:_ZN6icu_7816LocalPointerBaseIN12_GLOBAL__N_112ULanguageTagEED2Ev:
   88|  9.21k|    ~LocalPointerBase() { /* delete ptr; */ }
uloc_tag.cpp:_ZNK6icu_7816LocalPointerBaseIN12_GLOBAL__N_112ULanguageTagEE8getAliasEv:
  122|  46.1k|    T *getAlias() const { return ptr; }
_ZNK6icu_7816LocalPointerBaseI15UResourceBundleEptEv:
  134|      3|    T *operator->() const { return ptr; }

_ZNK6icu_786Locale10getCountryEv:
 1204|    717|{
 1205|    717|    return country;
 1206|    717|}
_ZNK6icu_786Locale11getLanguageEv:
 1210|  12.1k|{
 1211|  12.1k|    return language;
 1212|  12.1k|}
_ZNK6icu_786Locale9getScriptEv:
 1216|    717|{
 1217|    717|    return script;
 1218|    717|}
_ZNK6icu_786Locale10getVariantEv:
 1222|    717|{
 1223|    717|    return fIsBogus ? "" : &baseName[variantBegin];
  ------------------
  |  Branch (1223:12): [True: 0, False: 717]
  ------------------
 1224|    717|}
_ZNK6icu_786Locale7getNameEv:
 1228|  5.39k|{
 1229|  5.39k|    return fullName;
 1230|  5.39k|}

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

_ZN6icu_7811StringPieceC2EPKci:
  151|  9.04k|  StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { }
_ZNK6icu_7811StringPiece4dataEv:
  200|  81.2k|  const char* data() const { return ptr_; }
_ZN6icu_7811StringPiece13remove_prefixEi:
  267|  19.4k|  void remove_prefix(int32_t n) {
  268|  19.4k|    if (n >= 0) {
  ------------------
  |  Branch (268:9): [True: 19.4k, False: 0]
  ------------------
  269|  19.4k|      if (n > length_) {
  ------------------
  |  Branch (269:11): [True: 0, False: 19.4k]
  ------------------
  270|      0|        n = length_;
  271|      0|      }
  272|  19.4k|      ptr_ += n;
  273|  19.4k|      length_ -= n;
  274|  19.4k|    }
  275|  19.4k|  }
_ZNK6icu_7811StringPiece4sizeEv:
  206|  25.3k|  int32_t size() const { return length_; }
_ZNK6icu_7811StringPiececvNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEv:
  185|  15.6k|  inline operator std::string_view() const {
  186|  15.6k|    return {data(), static_cast<std::string_view::size_type>(size())};
  187|  15.6k|  }
_ZNK6icu_7811StringPiece6lengthEv:
  212|  44.8k|  int32_t length() const { return length_; }
_ZN6icu_7811StringPieceC2INSt3__117basic_string_viewIcNS2_11char_traitsIcEEEEvEET_:
  142|  2.26k|      : ptr_(reinterpret_cast<const char*>(str.data())),
  143|  2.26k|        length_(static_cast<int32_t>(str.size())) {}

_ZNK6icu_7813UnicodeString10pinIndicesERiS1_:
 4150|  2.05M|{
 4151|       |  // pin indices
 4152|  2.05M|  int32_t len = length();
 4153|  2.05M|  if(start < 0) {
  ------------------
  |  Branch (4153:6): [True: 0, False: 2.05M]
  ------------------
 4154|      0|    start = 0;
 4155|  2.05M|  } else if(start > len) {
  ------------------
  |  Branch (4155:13): [True: 0, False: 2.05M]
  ------------------
 4156|      0|    start = len;
 4157|      0|  }
 4158|  2.05M|  if(_length < 0) {
  ------------------
  |  Branch (4158:6): [True: 0, False: 2.05M]
  ------------------
 4159|      0|    _length = 0;
 4160|  2.05M|  } else if(_length > (len - start)) {
  ------------------
  |  Branch (4160:13): [True: 0, False: 2.05M]
  ------------------
 4161|      0|    _length = (len - start);
 4162|      0|  }
 4163|  2.05M|}
_ZN6icu_7813UnicodeString13getArrayStartEv:
 4166|   770k|UnicodeString::getArrayStart() {
 4167|   770k|  return (fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) ?
  ------------------
  |  Branch (4167:10): [True: 661k, False: 109k]
  ------------------
 4168|   661k|    fUnion.fStackFields.fBuffer : fUnion.fFields.fArray;
 4169|   770k|}
_ZNK6icu_7813UnicodeString13getArrayStartEv:
 4172|  3.41M|UnicodeString::getArrayStart() const {
 4173|  3.41M|  return (fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) ?
  ------------------
  |  Branch (4173:10): [True: 1.64M, False: 1.76M]
  ------------------
 4174|  1.76M|    fUnion.fStackFields.fBuffer : fUnion.fFields.fArray;
 4175|  3.41M|}
_ZNK6icu_7813UnicodeString14hasShortLengthEv:
 4202|  8.92M|UnicodeString::hasShortLength() const {
 4203|  8.92M|  return fUnion.fFields.fLengthAndFlags>=0;
 4204|  8.92M|}
_ZNK6icu_7813UnicodeString14getShortLengthEv:
 4207|  8.97M|UnicodeString::getShortLength() const {
 4208|       |  // fLengthAndFlags must be non-negative -> short length >= 0
 4209|       |  // and arithmetic or logical shift does not matter.
 4210|  8.97M|  return fUnion.fFields.fLengthAndFlags>>kLengthShift;
 4211|  8.97M|}
_ZNK6icu_7813UnicodeString6lengthEv:
 4214|  8.90M|UnicodeString::length() const {
 4215|  8.90M|  return hasShortLength() ? getShortLength() : fUnion.fFields.fLength;
  ------------------
  |  Branch (4215:10): [True: 8.37M, False: 529k]
  ------------------
 4216|  8.90M|}
_ZNK6icu_7813UnicodeString11getCapacityEv:
 4219|   770k|UnicodeString::getCapacity() const {
 4220|   770k|  return (fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) ?
  ------------------
  |  Branch (4220:10): [True: 672k, False: 98.1k]
  ------------------
 4221|   672k|    US_STACKBUF_SIZE : fUnion.fFields.fCapacity;
 4222|   770k|}
_ZNK6icu_7813UnicodeString7isBogusEv:
 4230|  1.49M|{ return fUnion.fFields.fLengthAndFlags & kIsBogus; }
_ZNK6icu_7813UnicodeString10isWritableEv:
 4234|  1.24M|{ return !(fUnion.fFields.fLengthAndFlags & (kOpenGetBuffer | kIsBogus)); }
_ZNK6icu_7813UnicodeString16isBufferWritableEv:
 4238|   738k|{
 4239|   738k|  return
 4240|   738k|      !(fUnion.fFields.fLengthAndFlags&(kOpenGetBuffer|kIsBogus|kBufferIsReadonly)) &&
  ------------------
  |  Branch (4240:7): [True: 738k, False: 0]
  ------------------
 4241|   738k|      (!(fUnion.fFields.fLengthAndFlags&kRefCounted) || refCount()==1);
  ------------------
  |  Branch (4241:8): [True: 653k, False: 84.8k]
  |  Branch (4241:57): [True: 84.8k, False: 0]
  ------------------
 4242|   738k|}
_ZNK6icu_7813UnicodeString9getBufferEv:
 4245|    501|UnicodeString::getBuffer() const {
 4246|    501|  if(fUnion.fFields.fLengthAndFlags&(kIsBogus|kOpenGetBuffer)) {
  ------------------
  |  Branch (4246:6): [True: 0, False: 501]
  ------------------
 4247|      0|    return nullptr;
 4248|    501|  } else if(fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) {
  ------------------
  |  Branch (4248:13): [True: 0, False: 501]
  ------------------
 4249|      0|    return fUnion.fStackFields.fBuffer;
 4250|    501|  } else {
 4251|    501|    return fUnion.fFields.fArray;
 4252|    501|  }
 4253|    501|}
_ZNK6icu_7813UnicodeString7compareENS_14ConstChar16PtrEi:
 4332|  1.34M|{ return doCompare(0, length(), srcChars, 0, srcLength); }
_ZNK6icu_7813UnicodeString8doCharAtEi:
 4846|  1.27M|{
 4847|  1.27M|  if (static_cast<uint32_t>(offset) < static_cast<uint32_t>(length())) {
  ------------------
  |  Branch (4847:7): [True: 1.27M, False: 11]
  ------------------
 4848|  1.27M|    return getArrayStart()[offset];
 4849|  1.27M|  } else {
 4850|     11|    return kInvalidUChar;
 4851|     11|  }
 4852|  1.27M|}
_ZNK6icu_7813UnicodeString6charAtEi:
 4856|  1.27M|{ return doCharAt(offset); }
_ZNK6icu_7813UnicodeString7isEmptyEv:
 4863|   153k|UnicodeString::isEmpty() const {
 4864|       |  // Arithmetic or logical right shift does not matter: only testing for 0.
 4865|   153k|  return (fUnion.fFields.fLengthAndFlags>>kLengthShift) == 0;
 4866|   153k|}
_ZN6icu_7813UnicodeString14setShortLengthEi:
 4877|   836k|UnicodeString::setShortLength(int32_t len) {
 4878|       |  // requires 0 <= len <= kMaxShortLength
 4879|   836k|  fUnion.fFields.fLengthAndFlags =
 4880|   836k|    static_cast<int16_t>((fUnion.fFields.fLengthAndFlags & kAllStorageFlags) | (len << kLengthShift));
 4881|   836k|}
_ZN6icu_7813UnicodeString9setLengthEi:
 4884|   837k|UnicodeString::setLength(int32_t len) {
 4885|   837k|  if(len <= kMaxShortLength) {
  ------------------
  |  Branch (4885:6): [True: 836k, False: 277]
  ------------------
 4886|   836k|    setShortLength(len);
 4887|   836k|  } else {
 4888|    277|    fUnion.fFields.fLengthAndFlags |= kLengthIsLarge;
 4889|    277|    fUnion.fFields.fLength = len;
 4890|    277|  }
 4891|   837k|}
_ZN6icu_7813UnicodeString10setToEmptyEv:
 4894|  18.1k|UnicodeString::setToEmpty() {
 4895|  18.1k|  fUnion.fFields.fLengthAndFlags = kShortString;
 4896|  18.1k|}
_ZN6icu_7813UnicodeString8setArrayEPDsii:
 4899|  78.5k|UnicodeString::setArray(char16_t *array, int32_t len, int32_t capacity) {
 4900|  78.5k|  setLength(len);
 4901|  78.5k|  fUnion.fFields.fArray = array;
 4902|  78.5k|  fUnion.fFields.fCapacity = capacity;
 4903|  78.5k|}
_ZN6icu_7813UnicodeString5setToERKS0_ii:
 4917|   476k|{
 4918|   476k|  unBogus();
 4919|   476k|  return doReplace(0, length(), srcText, srcStart, srcLength);
 4920|   476k|}
_ZN6icu_7813UnicodeString6appendERKS0_:
 4967|   238k|{ return doAppend(srcText, 0, srcText.length()); }
_ZN6icu_7813UnicodeString6appendEDs:
 4982|  15.5k|{ return doAppend(&srcChar, 0, 1); }
_ZN6icu_7813UnicodeStringC2Ev:
 4182|   128k|UnicodeString::UnicodeString() {
 4183|   128k|  fUnion.fStackFields.fLengthAndFlags=kShortString;
 4184|   128k|}
_ZN6icu_7813UnicodeStringC2IA9_DsvEERKT_:
 3274|  8.14k|  UNISTR_FROM_STRING_EXPLICIT UnicodeString(const S &text) {
 3275|  8.14k|    fUnion.fFields.fLengthAndFlags = kShortString;
 3276|  8.14k|    doAppend(internal::toU16StringViewNullable(text));
 3277|  8.14k|  }

_ZN6icu_7821ures_getUnicodeStringEPK15UResourceBundleP10UErrorCode:
  813|  1.08k|ures_getUnicodeString(const UResourceBundle *resB, UErrorCode* status) {
  814|  1.08k|    UnicodeString result;
  815|  1.08k|    int32_t len = 0;
  816|  1.08k|    const char16_t *r = ConstChar16Ptr(ures_getString(resB, &len, status));
  ------------------
  |  | 1675|  1.08k|#define ures_getString U_ICU_ENTRY_POINT_RENAME(ures_getString)
  |  |  ------------------
  |  |  |  |  123|  1.08k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.08k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.08k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  817|  1.08k|    if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (817:8): [True: 1.08k, False: 0]
  ------------------
  818|  1.08k|        result.setTo(true, r, len);
  819|  1.08k|    } else {
  820|      0|        result.setToBogus();
  821|      0|    }
  822|  1.08k|    return result;
  823|  1.08k|}
_ZN6icu_7825ures_getNextUnicodeStringEP15UResourceBundlePPKcP10UErrorCode:
  838|  7.77k|ures_getNextUnicodeString(UResourceBundle *resB, const char ** key, UErrorCode* status) {
  839|  7.77k|    UnicodeString result;
  840|  7.77k|    int32_t len = 0;
  841|  7.77k|    const char16_t* r = ConstChar16Ptr(ures_getNextString(resB, &len, key, status));
  ------------------
  |  | 1673|  7.77k|#define ures_getNextString U_ICU_ENTRY_POINT_RENAME(ures_getNextString)
  |  |  ------------------
  |  |  |  |  123|  7.77k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.77k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.77k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  842|  7.77k|    if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (842:8): [True: 7.77k, False: 0]
  ------------------
  843|  7.77k|        result.setTo(true, r, len);
  844|  7.77k|    } else {
  845|      0|        result.setToBogus();
  846|      0|    }
  847|  7.77k|    return result;
  848|  7.77k|}

plurrule_fuzzer.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  43.7k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
plurrule.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  2.07M|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
plurrule.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  37.8k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
standardplural.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  62.8k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
pluralranges.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   132k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
charstr.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   535k|    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|  83.2k|    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; }
putil.cpp:_ZL9U_FAILURE10UErrorCode:
  737|      2|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
putil.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|      1|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uhash.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  9.01k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uloc.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   149k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uloc.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  6.61k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uloc_keytype.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   173k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uloc_keytype.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  79.7k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uloc_tag.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  56.8k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uloc_tag.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  7.61k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
unifiedcache.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  54.4k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
unifiedcache.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  4.64k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uresbund.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   543k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uresbund.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  22.9k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uresdata.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  87.4k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
ustring.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  10.5k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uvector.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  1.43k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uvector.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|    717|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uvectr32.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  1.17k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
bytesinkutil.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  24.4k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uarrsort.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  4.82k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
udata.cpp:_ZL9U_FAILURE10UErrorCode:
  737|     31|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
udata.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|      6|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
udatamem.cpp:_ZL9U_FAILURE10UErrorCode:
  737|      7|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
ucmndata.cpp:_ZL9U_FAILURE10UErrorCode:
  737|      2|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }

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

_ZN6icu_7812UnifiedCache11getByLocaleINS_17SharedPluralRulesEEEvRKNS_6LocaleERPKT_R10UErrorCode:
  269|  15.0k|           const Locale &loc, const T *&ptr, UErrorCode &status) {
  270|  15.0k|       const UnifiedCache *cache = getInstance(status);
  271|  15.0k|       if (U_FAILURE(status)) {
  ------------------
  |  Branch (271:12): [True: 0, False: 15.0k]
  ------------------
  272|      0|           return;
  273|      0|       }
  274|  15.0k|       cache->get(LocaleCacheKey<T>(loc), ptr, status);
  275|  15.0k|   }
_ZNK6icu_7812UnifiedCache3getINS_17SharedPluralRulesEEEvRKNS_8CacheKeyIT_EERPKS4_R10UErrorCode:
  205|  15.0k|           UErrorCode &status) const {
  206|  15.0k|       get(key, nullptr, ptr, status);
  207|  15.0k|   }
_ZNK6icu_7812UnifiedCache3getINS_17SharedPluralRulesEEEvRKNS_8CacheKeyIT_EEPKvRPKS4_R10UErrorCode:
  228|  15.0k|           UErrorCode &status) const {
  229|  15.0k|       if (U_FAILURE(status)) {
  ------------------
  |  Branch (229:12): [True: 0, False: 15.0k]
  ------------------
  230|      0|           return;
  231|      0|       }
  232|  15.0k|       UErrorCode creationStatus = U_ZERO_ERROR;
  233|  15.0k|       const SharedObject *value = nullptr;
  234|  15.0k|       _get(key, value, creationContext, creationStatus);
  235|  15.0k|       const T *tvalue = (const T *) value;
  236|  15.0k|       if (U_SUCCESS(creationStatus)) {
  ------------------
  |  Branch (236:12): [True: 15.0k, False: 0]
  ------------------
  237|  15.0k|           SharedObject::copyPtr(tvalue, ptr);
  238|  15.0k|       }
  239|  15.0k|       SharedObject::clearPtr(tvalue);
  240|       |       // Take care not to overwrite a warning status passed in with
  241|       |       // another warning or U_ZERO_ERROR.
  242|  15.0k|       if (status == U_ZERO_ERROR || U_FAILURE(creationStatus)) {
  ------------------
  |  Branch (242:12): [True: 15.0k, False: 0]
  |  Branch (242:38): [True: 0, False: 0]
  ------------------
  243|  15.0k|           status = creationStatus;
  244|  15.0k|       }
  245|  15.0k|   }
_ZN6icu_7814LocaleCacheKeyINS_17SharedPluralRulesEEC2ERKNS_6LocaleE:
  151|  15.0k|   LocaleCacheKey(const Locale &loc) : fLoc(loc) {}
_ZN6icu_7812CacheKeyBaseC2Ev:
   37|  15.0k|   CacheKeyBase() : fCreationStatus(U_ZERO_ERROR), fIsPrimary(false) {}
_ZNK6icu_788CacheKeyINS_17SharedPluralRulesEE8hashCodeEv:
  110|  24.3k|   virtual int32_t hashCode() const override {
  111|  24.3k|       const char *s = typeid(T).name();
  112|  24.3k|       return ustr_hashCharsN(s, static_cast<int32_t>(uprv_strlen(s)));
  ------------------
  |  | 1878|  24.3k|#define ustr_hashCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashCharsN)
  |  |  ------------------
  |  |  |  |  123|  24.3k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  24.3k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  24.3k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                     return ustr_hashCharsN(s, static_cast<int32_t>(uprv_strlen(s)));
  ------------------
  |  |   37|  24.3k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  24.3k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  113|  24.3k|   }
_ZNK6icu_788CacheKeyINS_17SharedPluralRulesEE6equalsERKNS_12CacheKeyBaseE:
  129|  18.3k|   virtual bool equals(const CacheKeyBase &other) const override {
  130|  18.3k|       return this == &other || typeid(*this) == typeid(other);
  ------------------
  |  Branch (130:15): [True: 0, False: 18.3k]
  |  Branch (130:33): [True: 18.3k, False: 0]
  ------------------
  131|  18.3k|   }
_ZNK6icu_7814LocaleCacheKeyINS_17SharedPluralRulesEE8hashCodeEv:
  155|  24.3k|   virtual int32_t hashCode() const override {
  156|  24.3k|       return (int32_t)(37u * (uint32_t)CacheKey<T>::hashCode() + (uint32_t)fLoc.hashCode());
  157|  24.3k|   }
_ZNK6icu_7814LocaleCacheKeyINS_17SharedPluralRulesEE5cloneEv:
  161|  4.64k|   virtual CacheKeyBase *clone() const override {
  162|  4.64k|       return new LocaleCacheKey<T>(*this);
  163|  4.64k|   }
_ZN6icu_7814LocaleCacheKeyINS_17SharedPluralRulesEEC2ERKS2_:
  153|  4.64k|           : CacheKey<T>(other), fLoc(other.fLoc) { }
_ZN6icu_7812CacheKeyBaseC2ERKS0_:
   43|  4.64k|           : UObject(other), fCreationStatus(other.fCreationStatus), fIsPrimary(false) { }
_ZNK6icu_7814LocaleCacheKeyINS_17SharedPluralRulesEE6equalsERKNS_12CacheKeyBaseE:
  142|  18.3k|   virtual bool equals(const CacheKeyBase &other) const override {
  143|  18.3k|       if (!CacheKey<T>::equals(other)) {
  ------------------
  |  Branch (143:12): [True: 0, False: 18.3k]
  ------------------
  144|      0|           return false;
  145|      0|       }
  146|       |       // We know this and other are of same class because equals() on
  147|       |       // CacheKey returned true.
  148|  18.3k|       return operator==(static_cast<const LocaleCacheKey<T> &>(other));
  149|  18.3k|   }
_ZNK6icu_7814LocaleCacheKeyINS_17SharedPluralRulesEEeqERKS2_:
  158|  18.3k|   inline bool operator == (const LocaleCacheKey<T> &other) const {
  159|  18.3k|       return fLoc == other.fLoc;
  160|  18.3k|   }
_ZN6icu_7814LocaleCacheKeyINS_17SharedPluralRulesEED2Ev:
  154|  18.6k|   virtual ~LocaleCacheKey() { }
_ZN6icu_78eqERKNS_12CacheKeyBaseES2_:
   79|  18.3k|                                 const CacheKeyBase& rhs) {
   80|  18.3k|       return lhs.equals(rhs);
   81|  18.3k|   }

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

_ZN6icu_7811ReplaceableD2Ev:
  106|   817k|Replaceable::~Replaceable() {}
_ZN6icu_7813UnicodeString6addRefEv:
  146|  20.7k|UnicodeString::addRef() {
  147|  20.7k|  umtx_atomic_inc(reinterpret_cast<u_atomic_int32_t*>(fUnion.fFields.fArray) - 1);
  148|  20.7k|}
_ZN6icu_7813UnicodeString9removeRefEv:
  151|  30.9k|UnicodeString::removeRef() {
  152|  30.9k|  return umtx_atomic_dec(reinterpret_cast<u_atomic_int32_t*>(fUnion.fFields.fArray) - 1);
  153|  30.9k|}
_ZNK6icu_7813UnicodeString8refCountEv:
  156|  85.9k|UnicodeString::refCount() const {
  157|  85.9k|  return umtx_loadAcquire(*(reinterpret_cast<u_atomic_int32_t*>(fUnion.fFields.fArray) - 1));
  158|  85.9k|}
_ZN6icu_7813UnicodeString12releaseArrayEv:
  161|  1.46M|UnicodeString::releaseArray() {
  162|  1.46M|  if((fUnion.fFields.fLengthAndFlags & kRefCounted) && removeRef() == 0) {
  ------------------
  |  Branch (162:6): [True: 30.9k, False: 1.43M]
  |  Branch (162:56): [True: 10.1k, False: 20.7k]
  ------------------
  163|  10.1k|    uprv_free(reinterpret_cast<int32_t*>(fUnion.fFields.fArray) - 1);
  ------------------
  |  | 1503|  10.1k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  10.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  10.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  10.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  164|  10.1k|  }
  165|  1.46M|}
_ZN6icu_7813UnicodeStringC2EaNS_14ConstChar16PtrEi:
  241|  69.7k|                             int32_t textLength) {
  242|  69.7k|  fUnion.fFields.fLengthAndFlags = kReadonlyAlias;
  243|  69.7k|  const char16_t *text = textPtr;
  244|  69.7k|  if(text == nullptr) {
  ------------------
  |  Branch (244:6): [True: 0, False: 69.7k]
  ------------------
  245|       |    // treat as an empty string, do not alias
  246|      0|    setToEmpty();
  247|  69.7k|  } else if(textLength < -1 ||
  ------------------
  |  Branch (247:13): [True: 0, False: 69.7k]
  ------------------
  248|  69.7k|            (textLength == -1 && !isTerminated) ||
  ------------------
  |  Branch (248:14): [True: 636, False: 69.0k]
  |  Branch (248:34): [True: 0, False: 636]
  ------------------
  249|  69.7k|            (textLength >= 0 && isTerminated && text[textLength] != 0)
  ------------------
  |  Branch (249:14): [True: 69.0k, False: 636]
  |  Branch (249:33): [True: 64.2k, False: 4.85k]
  |  Branch (249:49): [True: 0, False: 64.2k]
  ------------------
  250|  69.7k|  ) {
  251|      0|    setToBogus();
  252|  69.7k|  } else {
  253|  69.7k|    if(textLength == -1) {
  ------------------
  |  Branch (253:8): [True: 636, False: 69.0k]
  ------------------
  254|       |      // text is terminated, or else it would have failed the above test
  255|    636|      textLength = u_strlen(text);
  ------------------
  |  |  393|    636|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|    636|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    636|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    636|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  256|    636|    }
  257|  69.7k|    setArray(const_cast<char16_t *>(text), textLength,
  258|  69.7k|             isTerminated ? textLength + 1 : textLength);
  ------------------
  |  Branch (258:14): [True: 64.8k, False: 4.85k]
  ------------------
  259|  69.7k|  }
  260|  69.7k|}
_ZN6icu_7813UnicodeStringC2EPKciNS0_10EInvariantE:
  284|  7.77k|UnicodeString::UnicodeString(const char *src, int32_t length, EInvariant) {
  285|  7.77k|  fUnion.fFields.fLengthAndFlags = kShortString;
  286|  7.77k|  if(src==nullptr) {
  ------------------
  |  Branch (286:6): [True: 0, False: 7.77k]
  ------------------
  287|       |    // treat as an empty string
  288|  7.77k|  } else {
  289|  7.77k|    if(length<0) {
  ------------------
  |  Branch (289:8): [True: 7.77k, False: 0]
  ------------------
  290|  7.77k|      length = static_cast<int32_t>(uprv_strlen(src));
  ------------------
  |  |   37|  7.77k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  7.77k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  291|  7.77k|    }
  292|  7.77k|    if(cloneArrayIfNeeded(length, length, false)) {
  ------------------
  |  Branch (292:8): [True: 7.77k, False: 0]
  ------------------
  293|  7.77k|      u_charsToUChars(src, getArrayStart(), length);
  ------------------
  |  |  226|  7.77k|#define u_charsToUChars U_ICU_ENTRY_POINT_RENAME(u_charsToUChars)
  |  |  ------------------
  |  |  |  |  123|  7.77k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.77k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.77k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  294|  7.77k|      setLength(length);
  295|  7.77k|    } else {
  296|      0|      setToBogus();
  297|      0|    }
  298|  7.77k|  }
  299|  7.77k|}
_ZN6icu_7813UnicodeStringC2ERKS0_:
  345|   123k|UnicodeString::UnicodeString(const UnicodeString& that) {
  346|   123k|  fUnion.fFields.fLengthAndFlags = kShortString;
  347|   123k|  copyFrom(that);
  348|   123k|}
_ZN6icu_7813UnicodeStringC2EOS0_:
  350|  8.14k|UnicodeString::UnicodeString(UnicodeString &&src) noexcept {
  351|  8.14k|  copyFieldsFrom(src, true);
  352|  8.14k|}
_ZN6icu_7813UnicodeStringC2ERKS0_ii:
  362|   476k|                             int32_t srcLength) {
  363|   476k|  fUnion.fFields.fLengthAndFlags = kShortString;
  364|   476k|  setTo(that, srcStart, srcLength);
  365|   476k|}
_ZN6icu_7813UnicodeString8allocateEi:
  409|  12.2k|UnicodeString::allocate(int32_t capacity) {
  410|  12.2k|  if(capacity <= US_STACKBUF_SIZE) {
  ------------------
  |  Branch (410:6): [True: 0, False: 12.2k]
  ------------------
  411|      0|    fUnion.fFields.fLengthAndFlags = kShortString;
  412|      0|    return true;
  413|      0|  }
  414|  12.2k|  if(capacity <= kMaxCapacity) {
  ------------------
  |  Branch (414:6): [True: 12.2k, False: 0]
  ------------------
  415|  12.2k|    ++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|  12.2k|    size_t numBytes = sizeof(int32_t) + static_cast<size_t>(capacity) * U_SIZEOF_UCHAR;
  ------------------
  |  |  352|  12.2k|#define U_SIZEOF_UCHAR 2
  ------------------
  419|       |    // Round up to a multiple of 16.
  420|  12.2k|    numBytes = (numBytes + 15) & ~15;
  421|  12.2k|    int32_t* array = static_cast<int32_t*>(uprv_malloc(numBytes));
  ------------------
  |  | 1524|  12.2k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  12.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  422|  12.2k|    if(array != nullptr) {
  ------------------
  |  Branch (422:8): [True: 12.2k, False: 0]
  ------------------
  423|       |      // set initial refCount and point behind the refCount
  424|  12.2k|      *array++ = 1;
  425|  12.2k|      numBytes -= sizeof(int32_t);
  426|       |
  427|       |      // have fArray point to the first char16_t
  428|  12.2k|      fUnion.fFields.fArray = reinterpret_cast<char16_t*>(array);
  429|  12.2k|      fUnion.fFields.fCapacity = static_cast<int32_t>(numBytes / U_SIZEOF_UCHAR);
  ------------------
  |  |  352|  12.2k|#define U_SIZEOF_UCHAR 2
  ------------------
  430|  12.2k|      fUnion.fFields.fLengthAndFlags = kLongString;
  431|  12.2k|      return true;
  432|  12.2k|    }
  433|  12.2k|  }
  434|      0|  fUnion.fFields.fLengthAndFlags = kIsBogus;
  435|      0|  fUnion.fFields.fArray = nullptr;
  436|      0|  fUnion.fFields.fCapacity = 0;
  437|      0|  return false;
  438|  12.2k|}
_ZN6icu_7813UnicodeStringD2Ev:
  462|   817k|{
  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|   817k|  releaseArray();
  478|   817k|}
_ZN6icu_7813UnicodeStringaSERKS0_:
  527|  29.3k|UnicodeString::operator=(const UnicodeString &src) {
  528|  29.3k|  return copyFrom(src);
  529|  29.3k|}
_ZN6icu_7813UnicodeString8copyFromERKS0_a:
  537|   152k|UnicodeString::copyFrom(const UnicodeString &src, UBool fastCopy) {
  538|       |  // if assigning to ourselves, do nothing
  539|   152k|  if(this == &src) {
  ------------------
  |  Branch (539:6): [True: 0, False: 152k]
  ------------------
  540|      0|    return *this;
  541|      0|  }
  542|       |
  543|       |  // is the right side bogus?
  544|   152k|  if(src.isBogus()) {
  ------------------
  |  Branch (544:6): [True: 0, False: 152k]
  ------------------
  545|      0|    setToBogus();
  546|      0|    return *this;
  547|      0|  }
  548|       |
  549|       |  // delete the current contents
  550|   152k|  releaseArray();
  551|       |
  552|   152k|  if(src.isEmpty()) {
  ------------------
  |  Branch (552:6): [True: 18.1k, False: 134k]
  ------------------
  553|       |    // empty string - use the stack buffer
  554|  18.1k|    setToEmpty();
  555|  18.1k|    return *this;
  556|  18.1k|  }
  557|       |
  558|       |  // fLength>0 and not an "open" src.getBuffer(minCapacity)
  559|   134k|  fUnion.fFields.fLengthAndFlags = src.fUnion.fFields.fLengthAndFlags;
  560|   134k|  switch(src.fUnion.fFields.fLengthAndFlags & kAllStorageFlags) {
  561|   113k|  case kShortString:
  ------------------
  |  Branch (561:3): [True: 113k, False: 20.7k]
  ------------------
  562|       |    // short string using the stack buffer, do the same
  563|   113k|    uprv_memcpy(fUnion.fStackFields.fBuffer, src.fUnion.fStackFields.fBuffer,
  ------------------
  |  |   42|   113k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   113k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|   113k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|   113k|    _Pragma("clang diagnostic push") \
  |  |   45|   113k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|   113k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|   113k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|   113k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|   113k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|   113k|    _Pragma("clang diagnostic pop") \
  |  |   49|   113k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|   113k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|   113k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   113k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  564|   113k|                getShortLength() * U_SIZEOF_UCHAR);
  565|   113k|    break;
  566|  20.7k|  case kLongString:
  ------------------
  |  Branch (566:3): [True: 20.7k, False: 113k]
  ------------------
  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|  20.7k|    const_cast<UnicodeString &>(src).addRef();
  570|       |    // copy all fields, share the reference-counted buffer
  571|  20.7k|    fUnion.fFields.fArray = src.fUnion.fFields.fArray;
  572|  20.7k|    fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity;
  573|  20.7k|    if(!hasShortLength()) {
  ------------------
  |  Branch (573:8): [True: 33, False: 20.7k]
  ------------------
  574|     33|      fUnion.fFields.fLength = src.fUnion.fFields.fLength;
  575|     33|    }
  576|  20.7k|    break;
  577|      0|  case kReadonlyAlias:
  ------------------
  |  Branch (577:3): [True: 0, False: 134k]
  ------------------
  578|      0|    if(fastCopy) {
  ------------------
  |  Branch (578:8): [True: 0, False: 0]
  ------------------
  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|      0|    U_FALLTHROUGH;
  ------------------
  |  |  511|      0|#       define U_FALLTHROUGH [[clang::fallthrough]]
  ------------------
  591|      0|  case kWritableAlias: {
  ------------------
  |  Branch (591:3): [True: 0, False: 134k]
  ------------------
  592|       |    // src is a writable alias; we make a copy of that instead
  593|      0|    int32_t srcLength = src.length();
  594|      0|    if(allocate(srcLength)) {
  ------------------
  |  Branch (594:8): [True: 0, False: 0]
  ------------------
  595|      0|      u_memcpy(getArrayStart(), src.getArrayStart(), srcLength);
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  596|      0|      setLength(srcLength);
  597|      0|      break;
  598|      0|    }
  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: 134k]
  ------------------
  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|   134k|  }
  610|       |
  611|   134k|  return *this;
  612|   134k|}
_ZN6icu_7813UnicodeStringaSEOS0_:
  614|   484k|UnicodeString &UnicodeString::operator=(UnicodeString &&src) noexcept {
  615|       |  // No explicit check for self move assignment, consistent with standard library.
  616|       |  // Self move assignment causes no crash nor leak but might make the object bogus.
  617|   484k|  releaseArray();
  618|   484k|  copyFieldsFrom(src, true);
  619|   484k|  return *this;
  620|   484k|}
_ZN6icu_7813UnicodeString14copyFieldsFromERS0_a:
  623|   492k|void UnicodeString::copyFieldsFrom(UnicodeString &src, UBool setSrcToBogus) noexcept {
  624|   492k|  int16_t lengthAndFlags = fUnion.fFields.fLengthAndFlags = src.fUnion.fFields.fLengthAndFlags;
  625|   492k|  if(lengthAndFlags & kUsingStackBuffer) {
  ------------------
  |  Branch (625:6): [True: 492k, False: 255]
  ------------------
  626|       |    // Short string using the stack buffer, copy the contents.
  627|       |    // Check for self assignment to prevent "overlap in memcpy" warnings,
  628|       |    // although it should be harmless to copy a buffer to itself exactly.
  629|   492k|    if(this != &src) {
  ------------------
  |  Branch (629:8): [True: 492k, False: 0]
  ------------------
  630|   492k|      uprv_memcpy(fUnion.fStackFields.fBuffer, src.fUnion.fStackFields.fBuffer,
  ------------------
  |  |   42|   492k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   492k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|   492k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|   492k|    _Pragma("clang diagnostic push") \
  |  |   45|   492k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|   492k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|   492k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|   492k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|   492k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|   492k|    _Pragma("clang diagnostic pop") \
  |  |   49|   492k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|   492k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|   492k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   492k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  631|   492k|                  getShortLength() * U_SIZEOF_UCHAR);
  632|   492k|    }
  633|   492k|  } else {
  634|       |    // In all other cases, copy all fields.
  635|    255|    fUnion.fFields.fArray = src.fUnion.fFields.fArray;
  636|    255|    fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity;
  637|    255|    if(!hasShortLength()) {
  ------------------
  |  Branch (637:8): [True: 38, False: 217]
  ------------------
  638|     38|      fUnion.fFields.fLength = src.fUnion.fFields.fLength;
  639|     38|    }
  640|    255|    if(setSrcToBogus) {
  ------------------
  |  Branch (640:8): [True: 255, False: 0]
  ------------------
  641|       |      // Set src to bogus without releasing any memory.
  642|    255|      src.fUnion.fFields.fLengthAndFlags = kIsBogus;
  643|    255|      src.fUnion.fFields.fArray = nullptr;
  644|    255|      src.fUnion.fFields.fCapacity = 0;
  645|    255|    }
  646|    255|  }
  647|   492k|}
_ZNK6icu_7813UnicodeString9doCompareEiiPKDsii:
  752|  1.34M|{
  753|       |  // compare illegal string values
  754|  1.34M|  if(isBogus()) {
  ------------------
  |  Branch (754:6): [True: 0, False: 1.34M]
  ------------------
  755|      0|    return -1;
  756|      0|  }
  757|       |  
  758|       |  // pin indices to legal values
  759|  1.34M|  pinIndices(start, length);
  760|       |
  761|  1.34M|  if(srcChars == nullptr) {
  ------------------
  |  Branch (761:6): [True: 0, False: 1.34M]
  ------------------
  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|  1.34M|  const char16_t *chars = getArrayStart();
  768|       |
  769|  1.34M|  chars += start;
  770|  1.34M|  srcChars += srcStart;
  771|       |
  772|  1.34M|  int32_t minLength;
  773|  1.34M|  int8_t lengthResult;
  774|       |
  775|       |  // get the srcLength if necessary
  776|  1.34M|  if(srcLength < 0) {
  ------------------
  |  Branch (776:6): [True: 0, False: 1.34M]
  ------------------
  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|  1.34M|  if(length != srcLength) {
  ------------------
  |  Branch (781:6): [True: 1.08M, False: 255k]
  ------------------
  782|  1.08M|    if(length < srcLength) {
  ------------------
  |  Branch (782:8): [True: 834k, False: 250k]
  ------------------
  783|   834k|      minLength = length;
  784|   834k|      lengthResult = -1;
  785|   834k|    } else {
  786|   250k|      minLength = srcLength;
  787|   250k|      lengthResult = 1;
  788|   250k|    }
  789|  1.08M|  } else {
  790|   255k|    minLength = length;
  791|   255k|    lengthResult = 0;
  792|   255k|  }
  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|  1.34M|  if(minLength > 0 && chars != srcChars) {
  ------------------
  |  Branch (802:6): [True: 1.34M, False: 0]
  |  Branch (802:23): [True: 1.34M, False: 0]
  ------------------
  803|  1.34M|    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|  1.63M|      do {
  814|  1.63M|        result = static_cast<int32_t>(*(chars++)) - static_cast<int32_t>(*(srcChars++));
  815|  1.63M|        if(result != 0) {
  ------------------
  |  Branch (815:12): [True: 884k, False: 754k]
  ------------------
  816|   884k|          return static_cast<int8_t>(result >> 15 | 1);
  817|   884k|        }
  818|  1.63M|      } while(--minLength > 0);
  ------------------
  |  Branch (818:15): [True: 298k, False: 455k]
  ------------------
  819|  1.34M|#   endif
  820|  1.34M|  }
  821|   455k|  return lengthResult;
  822|  1.34M|}
_ZNK6icu_7813UnicodeString8char32AtEi:
  871|  75.2k|{
  872|  75.2k|  int32_t len = length();
  873|  75.2k|  if (static_cast<uint32_t>(offset) < static_cast<uint32_t>(len)) {
  ------------------
  |  Branch (873:7): [True: 75.2k, False: 0]
  ------------------
  874|  75.2k|    const char16_t *array = getArrayStart();
  875|  75.2k|    UChar32 c;
  876|  75.2k|    U16_GET(array, 0, offset, len, c);
  ------------------
  |  |  201|  75.2k|#define U16_GET(s, start, i, length, c) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  75.2k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  202|  75.2k|    (c)=(s)[i]; \
  |  |  203|  75.2k|    if(U16_IS_SURROGATE(c)) { \
  |  |  ------------------
  |  |  |  |   75|  75.2k|#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
  |  |  |  |  ------------------
  |  |  |  |  |  |  193|  75.2k|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (193:27): [True: 0, False: 75.2k]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  204|      0|        uint16_t __c2; \
  |  |  205|      0|        if(U16_IS_SURROGATE_LEAD(c)) { \
  |  |  ------------------
  |  |  |  |   84|      0|#define U16_IS_SURROGATE_LEAD(c) (((c)&0x400)==0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (84:34): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  206|      0|            if((i)+1!=(length) && U16_IS_TRAIL(__c2=(s)[(i)+1])) { \
  |  |  ------------------
  |  |  |  |   67|      0|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:25): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (206:16): [True: 0, False: 0]
  |  |  ------------------
  |  |  207|      0|                (c)=U16_GET_SUPPLEMENTARY((c), __c2); \
  |  |  ------------------
  |  |  |  |  113|      0|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |   99|      0|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  208|      0|            } \
  |  |  209|      0|        } else { \
  |  |  210|      0|            if((i)>(start) && U16_IS_LEAD(__c2=(s)[(i)-1])) { \
  |  |  ------------------
  |  |  |  |   59|      0|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (59:24): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (210:16): [True: 0, False: 0]
  |  |  ------------------
  |  |  211|      0|                (c)=U16_GET_SUPPLEMENTARY(__c2, (c)); \
  |  |  ------------------
  |  |  |  |  113|      0|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |   99|      0|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  212|      0|            } \
  |  |  213|      0|        } \
  |  |  214|      0|    } \
  |  |  215|  75.2k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  75.2k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  877|  75.2k|    return c;
  878|  75.2k|  } else {
  879|      0|    return kInvalidUChar;
  880|      0|  }
  881|  75.2k|}
_ZN6icu_7813UnicodeString7unBogusEv:
 1293|   476k|UnicodeString::unBogus() {
 1294|   476k|  if(fUnion.fFields.fLengthAndFlags & kIsBogus) {
  ------------------
  |  Branch (1294:6): [True: 0, False: 476k]
  ------------------
 1295|      0|    setToEmpty();
 1296|      0|  }
 1297|   476k|}
_ZN6icu_7813UnicodeString5setToEaNS_14ConstChar16PtrEi:
 1342|  8.85k|{
 1343|  8.85k|  if(fUnion.fFields.fLengthAndFlags & kOpenGetBuffer) {
  ------------------
  |  Branch (1343:6): [True: 0, False: 8.85k]
  ------------------
 1344|       |    // do not modify a string that has an "open" getBuffer(minCapacity)
 1345|      0|    return *this;
 1346|      0|  }
 1347|       |
 1348|  8.85k|  const char16_t *text = textPtr;
 1349|  8.85k|  if(text == nullptr) {
  ------------------
  |  Branch (1349:6): [True: 0, False: 8.85k]
  ------------------
 1350|       |    // treat as an empty string, do not alias
 1351|      0|    releaseArray();
 1352|      0|    setToEmpty();
 1353|      0|    return *this;
 1354|      0|  }
 1355|       |
 1356|  8.85k|  if( textLength < -1 ||
  ------------------
  |  Branch (1356:7): [True: 0, False: 8.85k]
  ------------------
 1357|  8.85k|      (textLength == -1 && !isTerminated) ||
  ------------------
  |  Branch (1357:8): [True: 0, False: 8.85k]
  |  Branch (1357:28): [True: 0, False: 0]
  ------------------
 1358|  8.85k|      (textLength >= 0 && isTerminated && text[textLength] != 0)
  ------------------
  |  Branch (1358:8): [True: 8.85k, False: 0]
  |  Branch (1358:27): [True: 8.85k, False: 0]
  |  Branch (1358:43): [True: 0, False: 8.85k]
  ------------------
 1359|  8.85k|  ) {
 1360|      0|    setToBogus();
 1361|      0|    return *this;
 1362|      0|  }
 1363|       |
 1364|  8.85k|  releaseArray();
 1365|       |
 1366|  8.85k|  if(textLength == -1) {
  ------------------
  |  Branch (1366:6): [True: 0, False: 8.85k]
  ------------------
 1367|       |    // text is terminated, or else it would have failed the above test
 1368|      0|    textLength = u_strlen(text);
  ------------------
  |  |  393|      0|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1369|      0|  }
 1370|  8.85k|  fUnion.fFields.fLengthAndFlags = kReadonlyAlias;
 1371|  8.85k|  setArray(const_cast<char16_t*>(text), textLength, isTerminated ? textLength + 1 : textLength);
  ------------------
  |  Branch (1371:53): [True: 8.85k, False: 0]
  ------------------
 1372|  8.85k|  return *this;
 1373|  8.85k|}
_ZN6icu_7813UnicodeString9doReplaceEiiRKS0_ii:
 1484|   476k|{
 1485|       |  // pin the indices to legal values
 1486|   476k|  src.pinIndices(srcStart, srcLength);
 1487|       |
 1488|       |  // get the characters from src
 1489|       |  // and replace the range in ourselves with them
 1490|   476k|  return doReplace(start, length, src.getArrayStart(), srcStart, srcLength);
 1491|   476k|}
_ZN6icu_7813UnicodeString9doReplaceEiiPKDsii:
 1499|   476k|{
 1500|   476k|  if(!isWritable()) {
  ------------------
  |  Branch (1500:6): [True: 0, False: 476k]
  ------------------
 1501|      0|    return *this;
 1502|      0|  }
 1503|       |
 1504|   476k|  int32_t oldLength = this->length();
 1505|       |
 1506|       |  // optimize (read-only alias).remove(0, start) and .remove(start, end)
 1507|   476k|  if((fUnion.fFields.fLengthAndFlags&kBufferIsReadonly) && srcLength == 0) {
  ------------------
  |  Branch (1507:6): [True: 0, False: 476k]
  |  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|   476k|  if(start == oldLength) {
  ------------------
  |  Branch (1526:6): [True: 476k, False: 0]
  ------------------
 1527|   476k|    return doAppend(srcChars, srcStart, srcLength);
 1528|   476k|  }
 1529|       |
 1530|      0|  if (srcChars == nullptr) {
  ------------------
  |  Branch (1530:7): [True: 0, False: 0]
  ------------------
 1531|      0|    srcLength = 0;
 1532|      0|  } else {
 1533|       |    // Perform all remaining operations relative to srcChars + srcStart.
 1534|       |    // From this point forward, do not use srcStart.
 1535|      0|    srcChars += srcStart;
 1536|      0|    if (srcLength < 0) {
  ------------------
  |  Branch (1536:9): [True: 0, False: 0]
  ------------------
 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|      0|  }
 1541|       |
 1542|       |  // pin the indices to legal values
 1543|      0|  pinIndices(start, length);
 1544|       |
 1545|       |  // Calculate the size of the string after the replace.
 1546|       |  // Avoid int32_t overflow.
 1547|      0|  int32_t newLength = oldLength - length;
 1548|      0|  if(srcLength > (INT32_MAX - newLength)) {
  ------------------
  |  Branch (1548:6): [True: 0, False: 0]
  ------------------
 1549|      0|    setToBogus();
 1550|      0|    return *this;
 1551|      0|  }
 1552|      0|  newLength += srcLength;
 1553|       |
 1554|       |  // Check for insertion into ourself
 1555|      0|  const char16_t *oldArray = getArrayStart();
 1556|      0|  if (isBufferWritable() &&
  ------------------
  |  Branch (1556:7): [True: 0, False: 0]
  ------------------
 1557|      0|      oldArray < srcChars + srcLength &&
  ------------------
  |  Branch (1557:7): [True: 0, False: 0]
  ------------------
 1558|      0|      srcChars < oldArray + oldLength) {
  ------------------
  |  Branch (1558:7): [True: 0, False: 0]
  ------------------
 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|      0|  char16_t oldStackBuffer[US_STACKBUF_SIZE];
 1571|      0|  if((fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) && (newLength > US_STACKBUF_SIZE)) {
  ------------------
  |  Branch (1571:6): [True: 0, False: 0]
  |  Branch (1571:60): [True: 0, False: 0]
  ------------------
 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|      0|  int32_t *bufferToDelete = nullptr;
 1580|      0|  if(!cloneArrayIfNeeded(newLength, getGrowCapacity(newLength),
  ------------------
  |  Branch (1580:6): [True: 0, False: 0]
  ------------------
 1581|      0|                         false, &bufferToDelete)
 1582|      0|  ) {
 1583|      0|    return *this;
 1584|      0|  }
 1585|       |
 1586|       |  // now do the replace
 1587|       |
 1588|      0|  char16_t *newArray = getArrayStart();
 1589|      0|  if(newArray != oldArray) {
  ------------------
  |  Branch (1589:6): [True: 0, False: 0]
  ------------------
 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|      0|  } else if(length != srcLength) {
  ------------------
  |  Branch (1595:13): [True: 0, False: 0]
  ------------------
 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|      0|  us_arrayCopy(srcChars, 0, newArray, start, srcLength);
 1604|       |
 1605|      0|  setLength(newLength);
 1606|       |
 1607|       |  // delayed delete in case srcChars == fArray when we started, and
 1608|       |  // to keep oldArray alive for the above operations
 1609|      0|  if (bufferToDelete) {
  ------------------
  |  Branch (1609:7): [True: 0, False: 0]
  ------------------
 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|      0|  return *this;
 1614|      0|}
_ZN6icu_7813UnicodeString8doAppendERKS0_ii:
 1632|   238k|UnicodeString::doAppend(const UnicodeString& src, int32_t srcStart, int32_t srcLength) {
 1633|   238k|  if(srcLength == 0) {
  ------------------
  |  Branch (1633:6): [True: 0, False: 238k]
  ------------------
 1634|      0|    return *this;
 1635|      0|  }
 1636|       |
 1637|       |  // pin the indices to legal values
 1638|   238k|  src.pinIndices(srcStart, srcLength);
 1639|   238k|  return doAppend(src.getArrayStart(), srcStart, srcLength);
 1640|   238k|}
_ZN6icu_7813UnicodeString8doAppendEPKDsii:
 1643|   738k|UnicodeString::doAppend(const char16_t *srcChars, int32_t srcStart, int32_t srcLength) {
 1644|   738k|  if(!isWritable() || srcLength == 0 || srcChars == nullptr) {
  ------------------
  |  Branch (1644:6): [True: 0, False: 738k]
  |  Branch (1644:23): [True: 0, False: 738k]
  |  Branch (1644:41): [True: 0, False: 738k]
  ------------------
 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|   738k|  srcChars += srcStart;
 1651|       |
 1652|   738k|  if(srcLength < 0) {
  ------------------
  |  Branch (1652:6): [True: 0, False: 738k]
  ------------------
 1653|       |    // get the srcLength if necessary
 1654|      0|    if((srcLength = u_strlen(srcChars)) == 0) {
  ------------------
  |  |  393|      0|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1654:8): [True: 0, False: 0]
  ------------------
 1655|      0|      return *this;
 1656|      0|    }
 1657|      0|  }
 1658|       |
 1659|   738k|  int32_t oldLength = length();
 1660|   738k|  int32_t newLength;
 1661|       |
 1662|   738k|  if (srcLength <= getCapacity() - oldLength && isBufferWritable()) {
  ------------------
  |  Branch (1662:7): [True: 726k, False: 12.2k]
  |  Branch (1662:49): [True: 726k, False: 0]
  ------------------
 1663|   726k|    newLength = oldLength + srcLength;
 1664|       |    // Faster than a memmove
 1665|   726k|    if (srcLength <= 4) {
  ------------------
  |  Branch (1665:9): [True: 659k, False: 66.3k]
  ------------------
 1666|   659k|      char16_t *arr = getArrayStart();
 1667|   659k|      arr[oldLength] = srcChars[0];
 1668|   659k|      if (srcLength > 1) arr[oldLength+1] = srcChars[1];
  ------------------
  |  Branch (1668:11): [True: 110k, False: 548k]
  ------------------
 1669|   659k|      if (srcLength > 2) arr[oldLength+2] = srcChars[2];
  ------------------
  |  Branch (1669:11): [True: 52.1k, False: 607k]
  ------------------
 1670|   659k|      if (srcLength > 3) arr[oldLength+3] = srcChars[3];
  ------------------
  |  Branch (1670:11): [True: 18.0k, False: 641k]
  ------------------
 1671|   659k|      setLength(newLength);
 1672|   659k|      return *this;
 1673|   659k|    }
 1674|   726k|  } else {
 1675|  12.2k|    if (uprv_add32_overflow(oldLength, srcLength, &newLength)) {
  ------------------
  |  | 1394|  12.2k|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  123|  12.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1675:9): [True: 0, False: 12.2k]
  ------------------
 1676|      0|      setToBogus();
 1677|      0|      return *this;
 1678|      0|    }
 1679|       |
 1680|       |    // Check for append onto ourself
 1681|  12.2k|    const char16_t* oldArray = getArrayStart();
 1682|  12.2k|    if (isBufferWritable() &&
  ------------------
  |  Branch (1682:9): [True: 12.2k, False: 0]
  ------------------
 1683|  12.2k|        oldArray < srcChars + srcLength &&
  ------------------
  |  Branch (1683:9): [True: 7.61k, False: 4.63k]
  ------------------
 1684|  12.2k|        srcChars < oldArray + oldLength) {
  ------------------
  |  Branch (1684:9): [True: 0, False: 7.61k]
  ------------------
 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|  12.2k|    if (!cloneArrayIfNeeded(newLength, getGrowCapacity(newLength))) {
  ------------------
  |  Branch (1695:9): [True: 0, False: 12.2k]
  ------------------
 1696|      0|      return *this;
 1697|      0|    }
 1698|  12.2k|  }
 1699|       |
 1700|  78.6k|  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|  78.6k|  if(srcChars != newArray + oldLength) {
  ------------------
  |  Branch (1708:6): [True: 78.6k, False: 0]
  ------------------
 1709|  78.6k|    us_arrayCopy(srcChars, 0, newArray, oldLength, srcLength);
 1710|  78.6k|  }
 1711|  78.6k|  setLength(newLength);
 1712|       |
 1713|  78.6k|  return *this;
 1714|   738k|}
_ZN6icu_7813UnicodeString8doAppendENSt3__117basic_string_viewIDsNS1_11char_traitsIDsEEEE:
 1717|  8.14k|UnicodeString::doAppend(std::u16string_view src) {
 1718|  8.14k|  if (!isWritable() || src.empty()) {
  ------------------
  |  Branch (1718:7): [True: 0, False: 8.14k]
  |  Branch (1718:24): [True: 0, False: 8.14k]
  ------------------
 1719|      0|    return *this;
 1720|      0|  }
 1721|  8.14k|  if (src.length() > INT32_MAX) {
  ------------------
  |  Branch (1721:7): [True: 0, False: 8.14k]
  ------------------
 1722|      0|    setToBogus();
 1723|      0|    return *this;
 1724|      0|  }
 1725|  8.14k|  return doAppend(src.data(), 0, static_cast<int32_t>(src.length()));
 1726|  8.14k|}
_ZN6icu_7813UnicodeString18cloneArrayIfNeededEiiaPPia:
 1917|  20.0k|                                  UBool forceClone) {
 1918|       |  // default parameters need to be static, therefore
 1919|       |  // the defaults are -1 to have convenience defaults
 1920|  20.0k|  if(newCapacity == -1) {
  ------------------
  |  Branch (1920:6): [True: 0, False: 20.0k]
  ------------------
 1921|      0|    newCapacity = getCapacity();
 1922|      0|  }
 1923|       |
 1924|       |  // while a getBuffer(minCapacity) is "open",
 1925|       |  // prevent any modifications of the string by returning false here
 1926|       |  // if the string is bogus, then only an assignment or similar can revive it
 1927|  20.0k|  if(!isWritable()) {
  ------------------
  |  Branch (1927:6): [True: 0, False: 20.0k]
  ------------------
 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|  20.0k|  if(forceClone ||
  ------------------
  |  Branch (1938:6): [True: 0, False: 20.0k]
  ------------------
 1939|  20.0k|     fUnion.fFields.fLengthAndFlags & kBufferIsReadonly ||
  ------------------
  |  Branch (1939:6): [True: 0, False: 20.0k]
  ------------------
 1940|  20.0k|     (fUnion.fFields.fLengthAndFlags & kRefCounted && refCount() > 1) ||
  ------------------
  |  Branch (1940:7): [True: 1.08k, False: 18.9k]
  |  Branch (1940:55): [True: 0, False: 1.08k]
  ------------------
 1941|  20.0k|     newCapacity > getCapacity()
  ------------------
  |  Branch (1941:6): [True: 12.2k, False: 7.77k]
  ------------------
 1942|  20.0k|  ) {
 1943|       |    // check growCapacity for default value and use of the stack buffer
 1944|  12.2k|    if(growCapacity < 0) {
  ------------------
  |  Branch (1944:8): [True: 0, False: 12.2k]
  ------------------
 1945|      0|      growCapacity = newCapacity;
 1946|  12.2k|    } else if(newCapacity <= US_STACKBUF_SIZE && growCapacity > US_STACKBUF_SIZE) {
  ------------------
  |  Branch (1946:15): [True: 0, False: 12.2k]
  |  Branch (1946:50): [True: 0, False: 0]
  ------------------
 1947|      0|      growCapacity = US_STACKBUF_SIZE;
 1948|  12.2k|    } else if(newCapacity > growCapacity) {
  ------------------
  |  Branch (1948:15): [True: 0, False: 12.2k]
  ------------------
 1949|      0|      setToBogus();
 1950|      0|      return false;  // bad inputs
 1951|      0|    }
 1952|  12.2k|    if(growCapacity > kMaxCapacity) {
  ------------------
  |  Branch (1952:8): [True: 0, False: 12.2k]
  ------------------
 1953|      0|      setToBogus();
 1954|      0|      return false;
 1955|      0|    }
 1956|       |
 1957|       |    // save old values
 1958|  12.2k|    char16_t oldStackBuffer[US_STACKBUF_SIZE];
 1959|  12.2k|    char16_t *oldArray;
 1960|  12.2k|    int32_t oldLength = length();
 1961|  12.2k|    int16_t flags = fUnion.fFields.fLengthAndFlags;
 1962|       |
 1963|  12.2k|    if(flags&kUsingStackBuffer) {
  ------------------
  |  Branch (1963:8): [True: 11.1k, False: 1.08k]
  ------------------
 1964|  11.1k|      U_ASSERT(!(flags&kRefCounted)); /* kRefCounted and kUsingStackBuffer are mutally exclusive */
  ------------------
  |  |   35|  11.1k|#   define U_ASSERT(exp) (void)0
  ------------------
 1965|  11.1k|      if(doCopyArray && growCapacity > US_STACKBUF_SIZE) {
  ------------------
  |  Branch (1965:10): [True: 11.1k, False: 0]
  |  Branch (1965:25): [True: 11.1k, False: 0]
  ------------------
 1966|       |        // copy the stack buffer contents because it will be overwritten with
 1967|       |        // fUnion.fFields values
 1968|  11.1k|        us_arrayCopy(fUnion.fStackFields.fBuffer, 0, oldStackBuffer, 0, oldLength);
 1969|  11.1k|        oldArray = oldStackBuffer;
 1970|  11.1k|      } else {
 1971|      0|        oldArray = nullptr; // no need to copy from the stack buffer to itself
 1972|      0|      }
 1973|  11.1k|    } else {
 1974|  1.08k|      oldArray = fUnion.fFields.fArray;
 1975|  1.08k|      U_ASSERT(oldArray!=nullptr); /* when stack buffer is not used, oldArray must have a non-nullptr reference */
  ------------------
  |  |   35|  1.08k|#   define U_ASSERT(exp) (void)0
  ------------------
 1976|  1.08k|    }
 1977|       |
 1978|       |    // allocate a new array
 1979|  12.2k|    if(allocate(growCapacity) ||
  ------------------
  |  Branch (1979:8): [True: 12.2k, False: 0]
  ------------------
 1980|  12.2k|       (newCapacity < growCapacity && allocate(newCapacity))
  ------------------
  |  Branch (1980:9): [True: 0, False: 0]
  |  Branch (1980:39): [True: 0, False: 0]
  ------------------
 1981|  12.2k|    ) {
 1982|  12.2k|      if(doCopyArray) {
  ------------------
  |  Branch (1982:10): [True: 12.2k, False: 0]
  ------------------
 1983|       |        // copy the contents
 1984|       |        // do not copy more than what fits - it may be smaller than before
 1985|  12.2k|        int32_t minLength = oldLength;
 1986|  12.2k|        newCapacity = getCapacity();
 1987|  12.2k|        if(newCapacity < minLength) {
  ------------------
  |  Branch (1987:12): [True: 0, False: 12.2k]
  ------------------
 1988|      0|          minLength = newCapacity;
 1989|      0|        }
 1990|  12.2k|        if(oldArray != nullptr) {
  ------------------
  |  Branch (1990:12): [True: 12.2k, False: 0]
  ------------------
 1991|  12.2k|          us_arrayCopy(oldArray, 0, getArrayStart(), 0, minLength);
 1992|  12.2k|        }
 1993|  12.2k|        setLength(minLength);
 1994|  12.2k|      } else {
 1995|      0|        setZeroLength();
 1996|      0|      }
 1997|       |
 1998|       |      // release the old array
 1999|  12.2k|      if(flags & kRefCounted) {
  ------------------
  |  Branch (1999:10): [True: 1.08k, False: 11.1k]
  ------------------
 2000|       |        // the array is refCounted; decrement and release if 0
 2001|  1.08k|        u_atomic_int32_t* pRefCount = reinterpret_cast<u_atomic_int32_t*>(oldArray) - 1;
 2002|  1.08k|        if(umtx_atomic_dec(pRefCount) == 0) {
  ------------------
  |  Branch (2002:12): [True: 1.08k, False: 0]
  ------------------
 2003|  1.08k|          if (pBufferToDelete == nullptr) {
  ------------------
  |  Branch (2003:15): [True: 1.08k, 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|  1.08k|            uprv_free((void *)pRefCount);
  ------------------
  |  | 1503|  1.08k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  1.08k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.08k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.08k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2008|  1.08k|          } else {
 2009|       |            // the caller requested to delete it himself
 2010|      0|            *pBufferToDelete = reinterpret_cast<int32_t*>(pRefCount);
 2011|      0|          }
 2012|  1.08k|        }
 2013|  1.08k|      }
 2014|  12.2k|    } 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|  12.2k|  }
 2025|  20.0k|  return true;
 2026|  20.0k|}
unistr.cpp:_ZL12us_arrayCopyPKDsiPDsii:
   87|   102k|{
   88|   102k|  if(count>0) {
  ------------------
  |  Branch (88:6): [True: 101k, False: 510]
  ------------------
   89|   101k|    uprv_memmove(dst+dstStart, src+srcStart, (size_t)count*sizeof(*src));
  ------------------
  |  |   51|   101k|#define uprv_memmove(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|   101k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   52|   101k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   53|   101k|    _Pragma("clang diagnostic push") \
  |  |   54|   101k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   55|   101k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|   101k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   56|   101k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|   101k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   57|   101k|    _Pragma("clang diagnostic pop") \
  |  |   58|   101k|    U_STANDARD_CPP_NAMESPACE memmove(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|   101k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   59|   101k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|   101k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   90|   101k|  }
   91|   102k|}
unistr.cpp:_ZN6icu_7812_GLOBAL__N_115getGrowCapacityEi:
  397|  12.2k|int32_t getGrowCapacity(int32_t newLength) {
  398|  12.2k|  int32_t growSize = (newLength >> 2) + kGrowSize;
  399|  12.2k|  if(growSize <= (kMaxCapacity - newLength)) {
  ------------------
  |  Branch (399:6): [True: 12.2k, False: 0]
  ------------------
  400|  12.2k|    return newLength + growSize;
  401|  12.2k|  } else {
  402|      0|    return kMaxCapacity;
  403|      0|  }
  404|  12.2k|}

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

ures_initStackObject_78:
  726|  15.0k|U_CFUNC void ures_initStackObject(UResourceBundle* resB) {
  727|  15.0k|  uprv_memset(resB, 0, sizeof(UResourceBundle));
  ------------------
  |  |  100|  15.0k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  15.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  728|  15.0k|  ures_setIsStackObject(resB, true);
  729|  15.0k|}
_ZN6icu_7820StackUResourceBundleC2Ev:
  733|  3.54k|StackUResourceBundle::StackUResourceBundle() {
  734|  3.54k|    ures_initStackObject(&bundle);
  ------------------
  |  | 1690|  3.54k|#define ures_initStackObject U_ICU_ENTRY_POINT_RENAME(ures_initStackObject)
  |  |  ------------------
  |  |  |  |  123|  3.54k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.54k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.54k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  735|  3.54k|}
_ZN6icu_7820StackUResourceBundleD2Ev:
  737|  3.54k|StackUResourceBundle::~StackUResourceBundle() {
  738|  3.54k|    ures_close(&bundle);
  ------------------
  |  | 1652|  3.54k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  3.54k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.54k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.54k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  739|  3.54k|}
ures_close_78:
 1147|  70.5k|{
 1148|  70.5k|    ures_closeBundle(resB, true);
 1149|  70.5k|}
ures_getString_78:
 1524|  91.2k|U_CAPI const char16_t* U_EXPORT2 ures_getString(const UResourceBundle* resB, int32_t* len, UErrorCode* status) {
 1525|  91.2k|    const char16_t *s;
 1526|  91.2k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1526:9): [True: 0, False: 91.2k]
  |  Branch (1526:28): [True: 5.45k, False: 85.7k]
  ------------------
 1527|  5.45k|        return nullptr;
 1528|  5.45k|    }
 1529|  85.7k|    if(resB == nullptr) {
  ------------------
  |  Branch (1529:8): [True: 0, False: 85.7k]
  ------------------
 1530|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 1531|      0|        return nullptr;
 1532|      0|    }
 1533|  85.7k|    s = res_getString({resB}, &resB->getResData(), resB->fRes, len);
 1534|  85.7k|    if (s == nullptr) {
  ------------------
  |  Branch (1534:9): [True: 2.45k, False: 83.3k]
  ------------------
 1535|  2.45k|        *status = U_RESOURCE_TYPE_MISMATCH;
 1536|  2.45k|    }
 1537|  85.7k|    return s;
 1538|  85.7k|}
ures_getKey_78:
 1685|  2.55k|U_CAPI const char * U_EXPORT2 ures_getKey(const UResourceBundle *resB) {
 1686|       |  //
 1687|       |  // TODO: Trace ures_getKey? I guess not usually.
 1688|       |  //
 1689|       |  // We usually get the key string to decide whether we want the value, or to
 1690|       |  // make a key-value pair. Tracing the value should suffice.
 1691|       |  //
 1692|       |  // However, I believe we have some data (e.g., in res_index) where the key
 1693|       |  // strings are the data. Tracing the enclosing table should suffice.
 1694|       |  //
 1695|  2.55k|  if(resB == nullptr) {
  ------------------
  |  Branch (1695:6): [True: 0, False: 2.55k]
  ------------------
 1696|      0|    return nullptr;
 1697|      0|  }
 1698|  2.55k|  return(resB->fKey);
 1699|  2.55k|}
ures_getSize_78:
 1701|  3.32k|U_CAPI int32_t U_EXPORT2 ures_getSize(const UResourceBundle *resB) {
 1702|  3.32k|  if(resB == nullptr) {
  ------------------
  |  Branch (1702:6): [True: 0, False: 3.32k]
  ------------------
 1703|      0|    return 0;
 1704|      0|  }
 1705|       |  
 1706|  3.32k|  return resB->fSize;
 1707|  3.32k|}
ures_resetIterator_78:
 1721|    917|U_CAPI void U_EXPORT2 ures_resetIterator(UResourceBundle *resB){
 1722|    917|  if(resB == nullptr) {
  ------------------
  |  Branch (1722:6): [True: 0, False: 917]
  ------------------
 1723|      0|    return;
 1724|      0|  }
 1725|    917|  resB->fIndex = -1;
 1726|    917|}
ures_hasNext_78:
 1728|  82.0k|U_CAPI UBool U_EXPORT2 ures_hasNext(const UResourceBundle *resB) {
 1729|  82.0k|  if(resB == nullptr) {
  ------------------
  |  Branch (1729:6): [True: 0, False: 82.0k]
  ------------------
 1730|      0|    return false;
 1731|      0|  }
 1732|  82.0k|  return resB->fIndex < resB->fSize-1;
 1733|  82.0k|}
ures_getNextString_78:
 1735|  7.77k|U_CAPI const char16_t* U_EXPORT2 ures_getNextString(UResourceBundle *resB, int32_t* len, const char ** key, UErrorCode *status) {
 1736|  7.77k|  Resource r = RES_BOGUS;
  ------------------
  |  |   65|  7.77k|#define RES_BOGUS 0xffffffff
  ------------------
 1737|       |  
 1738|  7.77k|  if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1738:7): [True: 0, False: 7.77k]
  |  Branch (1738:26): [True: 0, False: 7.77k]
  ------------------
 1739|      0|    return nullptr;
 1740|      0|  }
 1741|  7.77k|  if(resB == nullptr) {
  ------------------
  |  Branch (1741:6): [True: 0, False: 7.77k]
  ------------------
 1742|      0|    *status = U_ILLEGAL_ARGUMENT_ERROR;
 1743|      0|    return nullptr;
 1744|      0|  }
 1745|       |  
 1746|  7.77k|  if(resB->fIndex == resB->fSize-1) {
  ------------------
  |  Branch (1746:6): [True: 0, False: 7.77k]
  ------------------
 1747|      0|    *status = U_INDEX_OUTOFBOUNDS_ERROR;
 1748|  7.77k|  } else {
 1749|  7.77k|    resB->fIndex++;
 1750|  7.77k|    switch(RES_GET_TYPE(resB->fRes)) {
  ------------------
  |  |   68|  7.77k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 1751|      0|    case URES_STRING:
  ------------------
  |  Branch (1751:5): [True: 0, False: 7.77k]
  ------------------
 1752|      0|    case URES_STRING_V2:
  ------------------
  |  Branch (1752:5): [True: 0, False: 7.77k]
  ------------------
 1753|      0|      return res_getString({resB}, &resB->getResData(), resB->fRes, len);
 1754|      0|    case URES_TABLE:
  ------------------
  |  Branch (1754:5): [True: 0, False: 7.77k]
  ------------------
 1755|  7.77k|    case URES_TABLE16:
  ------------------
  |  Branch (1755:5): [True: 7.77k, False: 0]
  ------------------
 1756|  7.77k|    case URES_TABLE32:
  ------------------
  |  Branch (1756:5): [True: 0, False: 7.77k]
  ------------------
 1757|  7.77k|      r = res_getTableItemByIndex(&resB->getResData(), resB->fRes, resB->fIndex, key);
  ------------------
  |  |  206|  7.77k|#define res_getTableItemByIndex U_ICU_ENTRY_POINT_RENAME(res_getTableItemByIndex)
  |  |  ------------------
  |  |  |  |  123|  7.77k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.77k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.77k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1758|  7.77k|      if(r == RES_BOGUS && resB->fHasFallback) {
  ------------------
  |  |   65|  15.5k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1758:10): [True: 0, False: 7.77k]
  |  Branch (1758:28): [True: 0, False: 0]
  ------------------
 1759|       |        /* TODO: do the fallback */
 1760|      0|      }
 1761|  7.77k|      return ures_getStringWithAlias(resB, r, resB->fIndex, len, status);
 1762|      0|    case URES_ARRAY:
  ------------------
  |  Branch (1762:5): [True: 0, False: 7.77k]
  ------------------
 1763|      0|    case URES_ARRAY16:
  ------------------
  |  Branch (1763:5): [True: 0, False: 7.77k]
  ------------------
 1764|      0|      r = res_getArrayItem(&resB->getResData(), resB->fRes, resB->fIndex);
  ------------------
  |  |  200|      0|#define res_getArrayItem U_ICU_ENTRY_POINT_RENAME(res_getArrayItem)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1765|      0|      if(r == RES_BOGUS && resB->fHasFallback) {
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1765:10): [True: 0, False: 0]
  |  Branch (1765:28): [True: 0, False: 0]
  ------------------
 1766|       |        /* TODO: do the fallback */
 1767|      0|      }
 1768|      0|      return ures_getStringWithAlias(resB, r, resB->fIndex, len, status);
 1769|      0|    case URES_ALIAS:
  ------------------
  |  Branch (1769:5): [True: 0, False: 7.77k]
  ------------------
 1770|      0|      return ures_getStringWithAlias(resB, resB->fRes, resB->fIndex, len, status);
 1771|      0|    case URES_INT:
  ------------------
  |  Branch (1771:5): [True: 0, False: 7.77k]
  ------------------
 1772|      0|    case URES_BINARY:
  ------------------
  |  Branch (1772:5): [True: 0, False: 7.77k]
  ------------------
 1773|      0|    case URES_INT_VECTOR:
  ------------------
  |  Branch (1773:5): [True: 0, False: 7.77k]
  ------------------
 1774|      0|        *status = U_RESOURCE_TYPE_MISMATCH;
 1775|      0|        U_FALLTHROUGH;
  ------------------
  |  |  511|      0|#       define U_FALLTHROUGH [[clang::fallthrough]]
  ------------------
 1776|      0|    default:
  ------------------
  |  Branch (1776:5): [True: 0, False: 7.77k]
  ------------------
 1777|      0|      return nullptr;
 1778|  7.77k|    }
 1779|  7.77k|  }
 1780|       |
 1781|      0|  return nullptr;
 1782|  7.77k|}
ures_getNextResource_78:
 1784|  81.0k|U_CAPI UResourceBundle* U_EXPORT2 ures_getNextResource(UResourceBundle *resB, UResourceBundle *fillIn, UErrorCode *status) {
 1785|  81.0k|    const char *key = nullptr;
 1786|  81.0k|    Resource r = RES_BOGUS;
  ------------------
  |  |   65|  81.0k|#define RES_BOGUS 0xffffffff
  ------------------
 1787|       |
 1788|  81.0k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1788:9): [True: 0, False: 81.0k]
  |  Branch (1788:28): [True: 0, False: 81.0k]
  ------------------
 1789|       |            /*return nullptr;*/
 1790|      0|            return fillIn;
 1791|      0|    }
 1792|  81.0k|    if(resB == nullptr) {
  ------------------
  |  Branch (1792:8): [True: 0, False: 81.0k]
  ------------------
 1793|      0|            *status = U_ILLEGAL_ARGUMENT_ERROR;
 1794|       |            /*return nullptr;*/
 1795|      0|            return fillIn;
 1796|      0|    }
 1797|       |
 1798|  81.0k|    if(resB->fIndex == resB->fSize-1) {
  ------------------
  |  Branch (1798:8): [True: 0, False: 81.0k]
  ------------------
 1799|      0|      *status = U_INDEX_OUTOFBOUNDS_ERROR;
 1800|       |      /*return nullptr;*/
 1801|  81.0k|    } else {
 1802|  81.0k|        resB->fIndex++;
 1803|  81.0k|        switch(RES_GET_TYPE(resB->fRes)) {
  ------------------
  |  |   68|  81.0k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 1804|      0|        case URES_INT:
  ------------------
  |  Branch (1804:9): [True: 0, False: 81.0k]
  ------------------
 1805|      0|        case URES_BINARY:
  ------------------
  |  Branch (1805:9): [True: 0, False: 81.0k]
  ------------------
 1806|      0|        case URES_STRING:
  ------------------
  |  Branch (1806:9): [True: 0, False: 81.0k]
  ------------------
 1807|      0|        case URES_STRING_V2:
  ------------------
  |  Branch (1807:9): [True: 0, False: 81.0k]
  ------------------
 1808|      0|        case URES_INT_VECTOR:
  ------------------
  |  Branch (1808:9): [True: 0, False: 81.0k]
  ------------------
 1809|      0|            return ures_copyResb(fillIn, resB, status);
  ------------------
  |  | 1653|      0|#define ures_copyResb U_ICU_ENTRY_POINT_RENAME(ures_copyResb)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1810|  1.29k|        case URES_TABLE:
  ------------------
  |  Branch (1810:9): [True: 1.29k, False: 79.7k]
  ------------------
 1811|  81.0k|        case URES_TABLE16:
  ------------------
  |  Branch (1811:9): [True: 79.7k, False: 1.29k]
  ------------------
 1812|  81.0k|        case URES_TABLE32:
  ------------------
  |  Branch (1812:9): [True: 0, False: 81.0k]
  ------------------
 1813|  81.0k|            r = res_getTableItemByIndex(&resB->getResData(), resB->fRes, resB->fIndex, &key);
  ------------------
  |  |  206|  81.0k|#define res_getTableItemByIndex U_ICU_ENTRY_POINT_RENAME(res_getTableItemByIndex)
  |  |  ------------------
  |  |  |  |  123|  81.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  81.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  81.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1814|  81.0k|            if(r == RES_BOGUS && resB->fHasFallback) {
  ------------------
  |  |   65|   162k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1814:16): [True: 0, False: 81.0k]
  |  Branch (1814:34): [True: 0, False: 0]
  ------------------
 1815|       |                /* TODO: do the fallback */
 1816|      0|            }
 1817|  81.0k|            return init_resb_result(resB->fData, r, key, resB->fIndex, resB, fillIn, status);
 1818|      0|        case URES_ARRAY:
  ------------------
  |  Branch (1818:9): [True: 0, False: 81.0k]
  ------------------
 1819|      0|        case URES_ARRAY16:
  ------------------
  |  Branch (1819:9): [True: 0, False: 81.0k]
  ------------------
 1820|      0|            r = res_getArrayItem(&resB->getResData(), resB->fRes, resB->fIndex);
  ------------------
  |  |  200|      0|#define res_getArrayItem U_ICU_ENTRY_POINT_RENAME(res_getArrayItem)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1821|      0|            if(r == RES_BOGUS && resB->fHasFallback) {
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1821:16): [True: 0, False: 0]
  |  Branch (1821:34): [True: 0, False: 0]
  ------------------
 1822|       |                /* TODO: do the fallback */
 1823|      0|            }
 1824|      0|            return init_resb_result(resB->fData, r, key, resB->fIndex, resB, fillIn, status);
 1825|      0|        default:
  ------------------
  |  Branch (1825:9): [True: 0, False: 81.0k]
  ------------------
 1826|       |            /*return nullptr;*/
 1827|      0|            return fillIn;
 1828|  81.0k|        }
 1829|  81.0k|    }
 1830|       |    /*return nullptr;*/
 1831|      0|    return fillIn;
 1832|  81.0k|}
ures_getStringByKeyWithFallback_78:
 2033|  11.4k|                                UErrorCode *status) {
 2034|       |
 2035|  11.4k|    UResourceBundle stack;
 2036|  11.4k|    const char16_t* retVal = nullptr;
 2037|  11.4k|    ures_initStackObject(&stack);
  ------------------
  |  | 1690|  11.4k|#define ures_initStackObject U_ICU_ENTRY_POINT_RENAME(ures_initStackObject)
  |  |  ------------------
  |  |  |  |  123|  11.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  11.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  11.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2038|  11.4k|    ures_getByKeyWithFallback(resB, inKey, &stack, status);
  ------------------
  |  | 1662|  11.4k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  11.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  11.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  11.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2039|  11.4k|    int32_t length;
 2040|  11.4k|    retVal = ures_getString(&stack, &length, status);
  ------------------
  |  | 1675|  11.4k|#define ures_getString U_ICU_ENTRY_POINT_RENAME(ures_getString)
  |  |  ------------------
  |  |  |  |  123|  11.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  11.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  11.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2041|  11.4k|    ures_close(&stack);
  ------------------
  |  | 1652|  11.4k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  11.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  11.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  11.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2042|  11.4k|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (2042:9): [True: 7.91k, False: 3.54k]
  ------------------
 2043|  7.91k|        return nullptr;
 2044|  7.91k|    }
 2045|  3.54k|    if (length == 3 && retVal[0] == EMPTY_SET && retVal[1] == EMPTY_SET && retVal[2] == EMPTY_SET ) {
  ------------------
  |  |   35|  3.54k|#define EMPTY_SET 0x2205
  ------------------
                  if (length == 3 && retVal[0] == EMPTY_SET && retVal[1] == EMPTY_SET && retVal[2] == EMPTY_SET ) {
  ------------------
  |  |   35|  3.54k|#define EMPTY_SET 0x2205
  ------------------
                  if (length == 3 && retVal[0] == EMPTY_SET && retVal[1] == EMPTY_SET && retVal[2] == EMPTY_SET ) {
  ------------------
  |  |   35|      0|#define EMPTY_SET 0x2205
  ------------------
  |  Branch (2045:9): [True: 0, False: 3.54k]
  |  Branch (2045:24): [True: 0, False: 0]
  |  Branch (2045:50): [True: 0, False: 0]
  |  Branch (2045:76): [True: 0, False: 0]
  ------------------
 2046|      0|        retVal = nullptr;
 2047|      0|        length = 0;
 2048|      0|        *status = U_MISSING_RESOURCE_ERROR;
 2049|      0|    }
 2050|  3.54k|    if (len != nullptr) {
  ------------------
  |  Branch (2050:9): [True: 3.54k, False: 0]
  ------------------
 2051|  3.54k|        *len = length;
 2052|  3.54k|    }
 2053|  3.54k|    return retVal;
 2054|  11.4k|}
ures_getByKeyWithFallback_78:
 2164|  15.0k|                          UErrorCode *status) {
 2165|  15.0k|    Resource res = RES_BOGUS, rootRes = RES_BOGUS;
  ------------------
  |  |   65|  15.0k|#define RES_BOGUS 0xffffffff
  ------------------
                  Resource res = RES_BOGUS, rootRes = RES_BOGUS;
  ------------------
  |  |   65|  15.0k|#define RES_BOGUS 0xffffffff
  ------------------
 2166|  15.0k|    UResourceBundle *helper = nullptr;
 2167|       |
 2168|  15.0k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (2168:9): [True: 0, False: 15.0k]
  |  Branch (2168:28): [True: 0, False: 15.0k]
  ------------------
 2169|      0|        return fillIn;
 2170|      0|    }
 2171|  15.0k|    if(resB == nullptr) {
  ------------------
  |  Branch (2171:8): [True: 0, False: 15.0k]
  ------------------
 2172|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 2173|      0|        return fillIn;
 2174|      0|    }
 2175|       |
 2176|  15.0k|    int32_t type = RES_GET_TYPE(resB->fRes);
  ------------------
  |  |   68|  15.0k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2177|  15.0k|    if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|  15.0k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 15.0k, False: 0]
  |  |  |  Branch (84:61): [True: 0, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2178|  15.0k|        const char* origResPath = resB->fResPath;
 2179|  15.0k|        int32_t origResPathLen = resB->fResPathLen;
 2180|  15.0k|        res = getTableItemByKeyPath(&resB->getResData(), resB->fRes, inKey);
 2181|  15.0k|        const char* key = inKey;
 2182|  15.0k|        bool didRootOnce = false;
 2183|  15.0k|        if(res == RES_BOGUS) {
  ------------------
  |  |   65|  15.0k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2183:12): [True: 5.47k, False: 9.53k]
  ------------------
 2184|  5.47k|            UResourceDataEntry *dataEntry = resB->fData;
 2185|  5.47k|            CharString path;
 2186|  5.47k|            char *myPath = nullptr;
 2187|  5.47k|            const char* resPath = resB->fResPath;
 2188|  5.47k|            int32_t len = resB->fResPathLen;
 2189|  10.9k|            while(res == RES_BOGUS && (dataEntry->fParent != nullptr || !didRootOnce)) { /* Otherwise, we'll look in parents */
  ------------------
  |  |   65|  21.8k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2189:19): [True: 10.9k, False: 16]
  |  Branch (2189:40): [True: 0, False: 10.9k]
  |  Branch (2189:73): [True: 5.47k, False: 5.45k]
  ------------------
 2190|  5.47k|                if (dataEntry->fParent != nullptr) {
  ------------------
  |  Branch (2190:21): [True: 0, False: 5.47k]
  ------------------
 2191|      0|                    dataEntry = dataEntry->fParent;
 2192|  5.47k|                } 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|  5.47k|                    didRootOnce = true;
 2199|  5.47k|                }
 2200|  5.47k|                rootRes = dataEntry->fData.rootRes;
 2201|       |
 2202|  5.47k|                if(dataEntry->fBogus == U_ZERO_ERROR) {
  ------------------
  |  Branch (2202:20): [True: 5.47k, False: 0]
  ------------------
 2203|  5.47k|                    createPath(origResPath, origResPathLen, resPath, len, inKey, path, status);
 2204|  5.47k|                    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (2204:25): [True: 0, False: 5.47k]
  ------------------
 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.47k|                    myPath = path.data();
 2209|  5.47k|                    key = inKey;
 2210|  5.56k|                    do {
 2211|  5.56k|                        res = res_findResource(&(dataEntry->fData), rootRes, &myPath, &key);
  ------------------
  |  |  198|  5.56k|#define res_findResource U_ICU_ENTRY_POINT_RENAME(res_findResource)
  |  |  ------------------
  |  |  |  |  123|  5.56k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.56k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.56k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2212|  5.56k|                        if (RES_GET_TYPE(res) == URES_ALIAS && *myPath) {
  ------------------
  |  |   68|  5.56k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (2212:29): [True: 0, False: 5.56k]
  |  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.56k|                        } else if (res == RES_BOGUS) {
  ------------------
  |  |   65|  5.56k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2225:36): [True: 5.45k, False: 110]
  ------------------
 2226|  5.45k|                            break;
 2227|  5.45k|                        }
 2228|  5.56k|                    } while(*myPath); /* Continue until the whole path is consumed */
  ------------------
  |  Branch (2228:29): [True: 94, False: 16]
  ------------------
 2229|  5.47k|                }
 2230|  5.47k|            }
 2231|       |            /*dataEntry = getFallbackData(resB, &key, &res, status);*/
 2232|  5.47k|            if(res != RES_BOGUS) {
  ------------------
  |  |   65|  5.47k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2232:16): [True: 16, False: 5.45k]
  ------------------
 2233|       |              /* check if resB->fResPath gives the right name here */
 2234|     16|                if(uprv_strcmp(dataEntry->fName, uloc_getDefault())==0 || uprv_strcmp(dataEntry->fName, kRootLocaleName)==0) {
  ------------------
  |  |   38|     16|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|     16|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                              if(uprv_strcmp(dataEntry->fName, uloc_getDefault())==0 || uprv_strcmp(dataEntry->fName, kRootLocaleName)==0) {
  ------------------
  |  |   38|     16|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|     16|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (2234:20): [True: 0, False: 16]
  |  Branch (2234:75): [True: 0, False: 16]
  ------------------
 2235|      0|                    *status = U_USING_DEFAULT_WARNING;
 2236|     16|                } else {
 2237|     16|                    *status = U_USING_FALLBACK_WARNING;
 2238|     16|                }
 2239|       |
 2240|     16|                fillIn = init_resb_result(dataEntry, res, key, -1, resB, fillIn, status);
 2241|     16|                if (resPath != nullptr) {
  ------------------
  |  Branch (2241:21): [True: 0, False: 16]
  ------------------
 2242|      0|                    createPath(origResPath, origResPathLen, resPath, len, inKey, path, status);
 2243|     16|                } else {
 2244|     16|                    const char* separator = nullptr;
 2245|     16|                    if (fillIn->fResPath != nullptr) {
  ------------------
  |  Branch (2245:25): [True: 16, False: 0]
  ------------------
 2246|     16|                        separator = uprv_strchr(fillIn->fResPath, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|     16|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|     16|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2247|     16|                    }
 2248|     16|                    if (separator != nullptr && separator[1] != '\0') {
  ------------------
  |  Branch (2248:25): [True: 16, False: 0]
  |  Branch (2248:49): [True: 0, False: 16]
  ------------------
 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|     16|                    } else {
 2252|     16|                        createPath(origResPath, origResPathLen, "", 0, inKey, path, status);
 2253|     16|                    }
 2254|     16|                }
 2255|     16|                ures_freeResPath(fillIn);
 2256|     16|                ures_appendResPath(fillIn, path.data(), path.length(), status);
 2257|     16|                if(fillIn->fResPath[fillIn->fResPathLen-1] != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|     16|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2257:20): [True: 9, False: 7]
  ------------------
 2258|      9|                    ures_appendResPath(fillIn, RES_PATH_SEPARATOR_S, 1, status);
  ------------------
  |  |   61|      9|#define RES_PATH_SEPARATOR_S   "/"
  ------------------
 2259|      9|                }
 2260|  5.45k|            } else {
 2261|  5.45k|                *status = U_MISSING_RESOURCE_ERROR;
 2262|  5.45k|            }
 2263|  9.53k|        } else {
 2264|  9.53k|            fillIn = init_resb_result(resB->fData, res, key, -1, resB, fillIn, status);
 2265|  9.53k|        }
 2266|  15.0k|    } 
 2267|      0|    else {
 2268|      0|        *status = U_RESOURCE_TYPE_MISMATCH;
 2269|      0|    }
 2270|  15.0k|    ures_close(helper);
  ------------------
  |  | 1652|  15.0k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  15.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  15.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  15.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2271|  15.0k|    return fillIn;
 2272|  15.0k|}
ures_getAllItemsWithFallback_78:
 2471|  3.54k|                             icu::ResourceSink &sink, UErrorCode &errorCode) {
 2472|  3.54k|    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (2472:9): [True: 0, False: 3.54k]
  ------------------
 2473|  3.54k|    if (path == nullptr) {
  ------------------
  |  Branch (2473:9): [True: 0, False: 3.54k]
  ------------------
 2474|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
 2475|      0|        return;
 2476|      0|    }
 2477|  3.54k|    StackUResourceBundle stackBundle;
 2478|  3.54k|    const UResourceBundle *rb;
 2479|  3.54k|    if (*path == 0) {
  ------------------
  |  Branch (2479:9): [True: 1, False: 3.54k]
  ------------------
 2480|       |        // empty path
 2481|      1|        rb = bundle;
 2482|  3.54k|    } else {
 2483|  3.54k|        rb = ures_getByKeyWithFallback(bundle, path, stackBundle.getAlias(), &errorCode);
  ------------------
  |  | 1662|  3.54k|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  3.54k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.54k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.54k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2484|  3.54k|        if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (2484:13): [True: 0, False: 3.54k]
  ------------------
 2485|      0|            return;
 2486|      0|        }
 2487|  3.54k|    }
 2488|       |    // Get all table items with fallback.
 2489|  3.54k|    ResourceDataValue value;
 2490|  3.54k|    getAllItemsWithFallback(rb, value, sink, errorCode);
 2491|  3.54k|}
ures_getByKey_78:
 2493|  15.4k|U_CAPI UResourceBundle* U_EXPORT2 ures_getByKey(const UResourceBundle *resB, const char* inKey, UResourceBundle *fillIn, UErrorCode *status) {
 2494|  15.4k|    Resource res = RES_BOGUS;
  ------------------
  |  |   65|  15.4k|#define RES_BOGUS 0xffffffff
  ------------------
 2495|  15.4k|    UResourceDataEntry *dataEntry = nullptr;
 2496|  15.4k|    const char *key = inKey;
 2497|       |
 2498|  15.4k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (2498:9): [True: 0, False: 15.4k]
  |  Branch (2498:28): [True: 0, False: 15.4k]
  ------------------
 2499|      0|        return fillIn;
 2500|      0|    }
 2501|  15.4k|    if(resB == nullptr) {
  ------------------
  |  Branch (2501:8): [True: 0, False: 15.4k]
  ------------------
 2502|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 2503|      0|        return fillIn;
 2504|      0|    }
 2505|       |
 2506|  15.4k|    int32_t type = RES_GET_TYPE(resB->fRes);
  ------------------
  |  |   68|  15.4k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2507|  15.4k|    if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|  15.4k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 15.4k, False: 0]
  |  |  |  Branch (84:61): [True: 0, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2508|  15.4k|        int32_t t;
 2509|  15.4k|        res = res_getTableItemByKey(&resB->getResData(), resB->fRes, &t, &key);
  ------------------
  |  |  207|  15.4k|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|  15.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  15.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  15.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2510|  15.4k|        if(res == RES_BOGUS) {
  ------------------
  |  |   65|  15.4k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2510:12): [True: 70, False: 15.3k]
  ------------------
 2511|     70|            key = inKey;
 2512|     70|            if(resB->fHasFallback) {
  ------------------
  |  Branch (2512:16): [True: 0, False: 70]
  ------------------
 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|     70|            } else {
 2521|     70|                *status = U_MISSING_RESOURCE_ERROR;
 2522|     70|            }
 2523|  15.3k|        } else {
 2524|  15.3k|            return init_resb_result(resB->fData, res, key, -1, resB, fillIn, status);
 2525|  15.3k|        }
 2526|  15.4k|    } 
 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|     70|    return fillIn;
 2544|  15.4k|}
ures_getStringByKey_78:
 2546|  46.5k|U_CAPI const char16_t* U_EXPORT2 ures_getStringByKey(const UResourceBundle *resB, const char* inKey, int32_t* len, UErrorCode *status) {
 2547|  46.5k|    Resource res = RES_BOGUS;
  ------------------
  |  |   65|  46.5k|#define RES_BOGUS 0xffffffff
  ------------------
 2548|  46.5k|    UResourceDataEntry *dataEntry = nullptr;
 2549|  46.5k|    const char* key = inKey;
 2550|       |
 2551|  46.5k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (2551:9): [True: 0, False: 46.5k]
  |  Branch (2551:28): [True: 0, False: 46.5k]
  ------------------
 2552|      0|        return nullptr;
 2553|      0|    }
 2554|  46.5k|    if(resB == nullptr) {
  ------------------
  |  Branch (2554:8): [True: 0, False: 46.5k]
  ------------------
 2555|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 2556|      0|        return nullptr;
 2557|      0|    }
 2558|       |
 2559|  46.5k|    int32_t type = RES_GET_TYPE(resB->fRes);
  ------------------
  |  |   68|  46.5k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2560|  46.5k|    if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|  46.5k|#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: 46.5k]
  |  |  |  Branch (84:61): [True: 46.5k, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2561|  46.5k|        int32_t t=0;
 2562|       |
 2563|  46.5k|        res = res_getTableItemByKey(&resB->getResData(), resB->fRes, &t, &key);
  ------------------
  |  |  207|  46.5k|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|  46.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  46.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  46.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2564|       |
 2565|  46.5k|        if(res == RES_BOGUS) {
  ------------------
  |  |   65|  46.5k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2565:12): [True: 41.9k, False: 4.61k]
  ------------------
 2566|  41.9k|            key = inKey;
 2567|  41.9k|            if(resB->fHasFallback) {
  ------------------
  |  Branch (2567:16): [True: 0, False: 41.9k]
  ------------------
 2568|      0|                dataEntry = getFallbackData(resB, &key, &res, status);
 2569|      0|                if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (2569:20): [True: 0, False: 0]
  ------------------
 2570|      0|                    switch (RES_GET_TYPE(res)) {
  ------------------
  |  |   68|      0|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2571|      0|                    case URES_STRING:
  ------------------
  |  Branch (2571:21): [True: 0, False: 0]
  ------------------
 2572|      0|                    case URES_STRING_V2:
  ------------------
  |  Branch (2572:21): [True: 0, False: 0]
  ------------------
 2573|      0|                        return res_getString({resB, key}, &dataEntry->fData, res, len);
 2574|      0|                    case URES_ALIAS:
  ------------------
  |  Branch (2574:21): [True: 0, False: 0]
  ------------------
 2575|      0|                      {
 2576|      0|                        const char16_t* result = nullptr;
 2577|      0|                        UResourceBundle *tempRes = ures_getByKey(resB, inKey, nullptr, status);
  ------------------
  |  | 1661|      0|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2578|      0|                        result = ures_getString(tempRes, len, status);
  ------------------
  |  | 1675|      0|#define ures_getString U_ICU_ENTRY_POINT_RENAME(ures_getString)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2579|      0|                        ures_close(tempRes);
  ------------------
  |  | 1652|      0|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2580|      0|                        return result;
 2581|      0|                      }
 2582|      0|                    default:
  ------------------
  |  Branch (2582:21): [True: 0, False: 0]
  ------------------
 2583|      0|                        *status = U_RESOURCE_TYPE_MISMATCH;
 2584|      0|                    }
 2585|      0|                } else {
 2586|      0|                    *status = U_MISSING_RESOURCE_ERROR;
 2587|      0|                }
 2588|  41.9k|            } else {
 2589|  41.9k|                *status = U_MISSING_RESOURCE_ERROR;
 2590|  41.9k|            }
 2591|  41.9k|        } else {
 2592|  4.61k|            switch (RES_GET_TYPE(res)) {
  ------------------
  |  |   68|  4.61k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2593|      0|            case URES_STRING:
  ------------------
  |  Branch (2593:13): [True: 0, False: 4.61k]
  ------------------
 2594|  4.61k|            case URES_STRING_V2:
  ------------------
  |  Branch (2594:13): [True: 4.61k, False: 0]
  ------------------
 2595|  4.61k|                return res_getString({resB, key}, &resB->getResData(), res, len);
 2596|      0|            case URES_ALIAS:
  ------------------
  |  Branch (2596:13): [True: 0, False: 4.61k]
  ------------------
 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: 4.61k]
  ------------------
 2605|      0|                *status = U_RESOURCE_TYPE_MISMATCH;
 2606|  4.61k|            }
 2607|  4.61k|        }
 2608|  46.5k|    } 
 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|  41.9k|    return nullptr;
 2627|  46.5k|}
ures_openDirect_78:
 2783|  22.9k|ures_openDirect(const char* path, const char* localeID, UErrorCode* status) {
 2784|  22.9k|    return ures_openWithType(nullptr, path, localeID, URES_OPEN_DIRECT, status);
 2785|  22.9k|}
uresbund.cpp:_ZL21ures_setIsStackObjectP15UResourceBundlea:
  711|  55.5k|static void ures_setIsStackObject( UResourceBundle* resB, UBool state) {
  712|  55.5k|    if(state) {
  ------------------
  |  Branch (712:8): [True: 15.0k, False: 40.5k]
  ------------------
  713|  15.0k|        resB->fMagic1 = 0;
  714|  15.0k|        resB->fMagic2 = 0;
  715|  40.5k|    } else {
  716|  40.5k|        resB->fMagic1 = MAGIC1;
  ------------------
  |  |   30|  40.5k|#define MAGIC1 19700503
  ------------------
  717|  40.5k|        resB->fMagic2 = MAGIC2;
  ------------------
  |  |   31|  40.5k|#define MAGIC2 19641227
  ------------------
  718|  40.5k|    }
  719|  55.5k|}
uresbund.cpp:_ZL16ures_closeBundleP15UResourceBundlea:
 1123|  70.5k|{
 1124|  70.5k|    if(resB != nullptr) {
  ------------------
  |  Branch (1124:8): [True: 55.5k, False: 15.0k]
  ------------------
 1125|  55.5k|        if(resB->fData != nullptr) {
  ------------------
  |  Branch (1125:12): [True: 50.0k, False: 5.45k]
  ------------------
 1126|  50.0k|            entryClose(resB->fData);
 1127|  50.0k|        }
 1128|  55.5k|        if(resB->fVersion != nullptr) {
  ------------------
  |  Branch (1128:12): [True: 0, False: 55.5k]
  ------------------
 1129|      0|            uprv_free(resB->fVersion);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1130|      0|        }
 1131|  55.5k|        ures_freeResPath(resB);
 1132|       |
 1133|  55.5k|        if(ures_isStackObject(resB) == false && freeBundleObj) {
  ------------------
  |  Branch (1133:12): [True: 40.5k, False: 15.0k]
  |  Branch (1133:49): [True: 40.5k, False: 0]
  ------------------
 1134|  40.5k|            uprv_free(resB);
  ------------------
  |  | 1503|  40.5k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  40.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  40.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  40.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1135|  40.5k|        }
 1136|       |#if 0 /*U_DEBUG*/
 1137|       |        else {
 1138|       |            /* poison the data */
 1139|       |            uprv_memset(resB, -1, sizeof(UResourceBundle));
 1140|       |        }
 1141|       |#endif
 1142|  55.5k|    }
 1143|  70.5k|}
uresbund.cpp:_ZL10entryCloseP18UResourceDataEntry:
 1061|   128k|static void entryClose(UResourceDataEntry *resB) {
 1062|   128k|  Mutex lock(&resbMutex);
 1063|   128k|  entryCloseInt(resB);
 1064|   128k|}
uresbund.cpp:_ZL13entryCloseIntP18UResourceDataEntry:
 1028|   128k|static void entryCloseInt(UResourceDataEntry *resB) {
 1029|   128k|    UResourceDataEntry *p = resB;
 1030|       |
 1031|   257k|    while(resB != nullptr) {
  ------------------
  |  Branch (1031:11): [True: 128k, False: 128k]
  ------------------
 1032|   128k|        p = resB->fParent;
 1033|   128k|        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|   128k|        resB = p;
 1054|   128k|    }
 1055|   128k|}
uresbund.cpp:_ZL18ures_isStackObjectPK15UResourceBundle:
  721|  55.5k|static UBool ures_isStackObject(const UResourceBundle* resB) {
  722|  55.5k|  return((resB->fMagic1 == MAGIC1 && resB->fMagic2 == MAGIC2)?false:true);
  ------------------
  |  |   30|   111k|#define MAGIC1 19700503
  ------------------
                return((resB->fMagic1 == MAGIC1 && resB->fMagic2 == MAGIC2)?false:true);
  ------------------
  |  |   31|  40.5k|#define MAGIC2 19641227
  ------------------
  |  Branch (722:11): [True: 40.5k, False: 15.0k]
  |  Branch (722:38): [True: 40.5k, False: 0]
  ------------------
  723|  55.5k|}
uresbund.cpp:_ZL18ures_appendResPathP15UResourceBundlePKciP10UErrorCode:
 1083|   293k|static void ures_appendResPath(UResourceBundle *resB, const char* toAdd, int32_t lenToAdd, UErrorCode *status) {
 1084|   293k|    int32_t resPathLenOrig = resB->fResPathLen;
 1085|   293k|    if(resB->fResPath == nullptr) {
  ------------------
  |  Branch (1085:8): [True: 105k, False: 187k]
  ------------------
 1086|   105k|        resB->fResPath = resB->fResBuf;
 1087|   105k|        *(resB->fResPath) = 0;
 1088|   105k|        resB->fResPathLen = 0;
 1089|   105k|    } 
 1090|   293k|    resB->fResPathLen += lenToAdd;
 1091|   293k|    if(RES_BUFSIZE <= resB->fResPathLen+1) {
  ------------------
  |  |   59|   293k|#define RES_BUFSIZE 64
  ------------------
  |  Branch (1091:8): [True: 0, False: 293k]
  ------------------
 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|   293k|    uprv_strcpy(resB->fResPath + resPathLenOrig, toAdd);
  ------------------
  |  |   36|   293k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|   293k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1111|   293k|}
uresbund.cpp:_ZL13entryIncreaseP18UResourceDataEntry:
  304|   105k|static void entryIncrease(UResourceDataEntry *entry) {
  305|   105k|    Mutex lock(&resbMutex);
  306|   105k|    entry->fCountExisting++;
  307|   105k|    while(entry->fParent != nullptr) {
  ------------------
  |  Branch (307:11): [True: 0, False: 105k]
  ------------------
  308|      0|      entry = entry->fParent;
  309|      0|      entry->fCountExisting++;
  310|      0|    }
  311|   105k|}
uresbund.cpp:_ZL23ures_getStringWithAliasPK15UResourceBundlejiPiP10UErrorCode:
 1709|  7.77k|static const char16_t* ures_getStringWithAlias(const UResourceBundle *resB, Resource r, int32_t sIndex, int32_t *len, UErrorCode *status) {
 1710|  7.77k|  if(RES_GET_TYPE(r) == URES_ALIAS) {
  ------------------
  |  |   68|  7.77k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (1710:6): [True: 0, False: 7.77k]
  ------------------
 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|  7.77k|  } else {
 1717|  7.77k|    return res_getString({resB, sIndex}, &resB->getResData(), r, len); 
 1718|  7.77k|  }
 1719|  7.77k|}
uresbund.cpp:_ZN12_GLOBAL__N_116init_resb_resultEP18UResourceDataEntryjPKciPK15UResourceBundlePS4_P10UErrorCode:
 1480|   105k|        UResourceBundle *resB, UErrorCode *status) {
 1481|   105k|    return init_resb_result(
 1482|   105k|        dataEntry, r, key, idx,
 1483|   105k|        container->fValidLocaleDataEntry, container->fResPath, 0, resB, status);
 1484|   105k|}
uresbund.cpp:_ZN12_GLOBAL__N_116init_resb_resultEP18UResourceDataEntryjPKciS1_S3_iP15UResourceBundleP10UErrorCode:
 1389|   105k|        UResourceBundle *resB, UErrorCode *status) {
 1390|       |    // TODO: When an error occurs: Should we return nullptr vs. resB?
 1391|   105k|    if(status == nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1391:8): [True: 0, False: 105k]
  |  Branch (1391:29): [True: 0, False: 105k]
  ------------------
 1392|      0|        return resB;
 1393|      0|    }
 1394|   105k|    if (validLocaleDataEntry == nullptr) {
  ------------------
  |  Branch (1394:9): [True: 0, False: 105k]
  ------------------
 1395|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 1396|      0|        return nullptr;
 1397|      0|    }
 1398|   105k|    if(RES_GET_TYPE(r) == URES_ALIAS) {
  ------------------
  |  |   68|   105k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (1398:8): [True: 3, False: 105k]
  ------------------
 1399|       |        // This is an alias, need to exchange with real data.
 1400|      3|        if(recursionDepth >= URES_MAX_ALIAS_LEVEL) {
  ------------------
  |  |   33|      3|#define URES_MAX_ALIAS_LEVEL 256
  ------------------
  |  Branch (1400:12): [True: 0, False: 3]
  ------------------
 1401|      0|            *status = U_TOO_MANY_ALIASES_ERROR;
 1402|      0|            return resB;
 1403|      0|        }
 1404|      3|        return getAliasTargetAsResourceBundle(
 1405|      3|            dataEntry->fData, r, key, idx,
 1406|      3|            validLocaleDataEntry, containerResPath, recursionDepth, resB, status);
 1407|      3|    }
 1408|   105k|    if(resB == nullptr) {
  ------------------
  |  Branch (1408:8): [True: 17.5k, False: 88.3k]
  ------------------
 1409|  17.5k|        resB = static_cast<UResourceBundle*>(uprv_malloc(sizeof(UResourceBundle)));
  ------------------
  |  | 1524|  17.5k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  17.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  17.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  17.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1410|  17.5k|        if (resB == nullptr) {
  ------------------
  |  Branch (1410:13): [True: 0, False: 17.5k]
  ------------------
 1411|      0|            *status = U_MEMORY_ALLOCATION_ERROR;
 1412|      0|            return nullptr;
 1413|      0|        }
 1414|  17.5k|        ures_setIsStackObject(resB, false);
 1415|  17.5k|        resB->fResPath = nullptr;
 1416|  17.5k|        resB->fResPathLen = 0;
 1417|  88.3k|    } else {
 1418|  88.3k|        if(resB->fData != nullptr) {
  ------------------
  |  Branch (1418:12): [True: 78.8k, False: 9.55k]
  ------------------
 1419|  78.8k|            entryClose(resB->fData);
 1420|  78.8k|        }
 1421|  88.3k|        if(resB->fVersion != nullptr) {
  ------------------
  |  Branch (1421:12): [True: 0, False: 88.3k]
  ------------------
 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|  88.3k|        if(containerResPath != resB->fResPath) {
  ------------------
  |  Branch (1435:12): [True: 78.8k, False: 9.55k]
  ------------------
 1436|  78.8k|            ures_freeResPath(resB);
 1437|  78.8k|        }
 1438|  88.3k|    }
 1439|   105k|    resB->fData = dataEntry;
 1440|   105k|    entryIncrease(resB->fData);
 1441|   105k|    resB->fHasFallback = false;
 1442|   105k|    resB->fIsTopLevel = false;
 1443|   105k|    resB->fIndex = -1;
 1444|   105k|    resB->fKey = key; 
 1445|   105k|    resB->fValidLocaleDataEntry = validLocaleDataEntry;
 1446|   105k|    if(containerResPath != resB->fResPath) {
  ------------------
  |  Branch (1446:8): [True: 84.4k, False: 21.5k]
  ------------------
 1447|  84.4k|        ures_appendResPath(
 1448|  84.4k|            resB, containerResPath, static_cast<int32_t>(uprv_strlen(containerResPath)), status);
  ------------------
  |  |   37|  84.4k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  84.4k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1449|  84.4k|    }
 1450|   105k|    if(key != nullptr) {
  ------------------
  |  Branch (1450:8): [True: 105k, False: 0]
  ------------------
 1451|   105k|        ures_appendResPath(resB, key, static_cast<int32_t>(uprv_strlen(key)), status);
  ------------------
  |  |   37|   105k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|   105k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1452|   105k|        if(resB->fResPath[resB->fResPathLen-1] != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|   105k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (1452:12): [True: 103k, False: 2.44k]
  ------------------
 1453|   103k|            ures_appendResPath(resB, RES_PATH_SEPARATOR_S, 1, status);
  ------------------
  |  |   61|   103k|#define RES_PATH_SEPARATOR_S   "/"
  ------------------
 1454|   103k|        }
 1455|   105k|    } else if(idx >= 0) {
  ------------------
  |  Branch (1455:15): [True: 0, False: 0]
  ------------------
 1456|      0|        char buf[256];
 1457|      0|        int32_t len = T_CString_integerToString(buf, idx, 10);
  ------------------
  |  |   67|      0|#define T_CString_integerToString U_ICU_ENTRY_POINT_RENAME(T_CString_integerToString)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1458|      0|        ures_appendResPath(resB, buf, len, status);
 1459|      0|        if(resB->fResPath[resB->fResPathLen-1] != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|      0|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (1459:12): [True: 0, False: 0]
  ------------------
 1460|      0|            ures_appendResPath(resB, RES_PATH_SEPARATOR_S, 1, status);
  ------------------
  |  |   61|      0|#define RES_PATH_SEPARATOR_S   "/"
  ------------------
 1461|      0|        }
 1462|      0|    }
 1463|       |    /* Make sure that Purify doesn't complain about uninitialized memory copies. */
 1464|   105k|    {
 1465|   105k|        int32_t usedLen = ((resB->fResBuf == resB->fResPath) ? resB->fResPathLen : 0);
  ------------------
  |  Branch (1465:28): [True: 105k, False: 0]
  ------------------
 1466|   105k|        uprv_memset(resB->fResBuf + usedLen, 0, sizeof(resB->fResBuf) - usedLen);
  ------------------
  |  |  100|   105k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|   105k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1467|   105k|    }
 1468|       |
 1469|   105k|    resB->fVersion = nullptr;
 1470|   105k|    resB->fRes = r;
 1471|   105k|    resB->fSize = res_countArrayItems(&resB->getResData(), resB->fRes);
  ------------------
  |  |  197|   105k|#define res_countArrayItems U_ICU_ENTRY_POINT_RENAME(res_countArrayItems)
  |  |  ------------------
  |  |  |  |  123|   105k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   105k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   105k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1472|   105k|    ResourceTracer(resB).trace("get");
 1473|   105k|    return resB;
 1474|   105k|}
uresbund.cpp:_ZN12_GLOBAL__N_130getAliasTargetAsResourceBundleERK12ResourceDatajPKciP18UResourceDataEntryS4_iP15UResourceBundleP10UErrorCode:
 1166|      3|        UResourceBundle *resB, UErrorCode *status) {
 1167|       |    // TODO: When an error occurs: Should we return nullptr vs. resB?
 1168|      3|    if (U_FAILURE(*status)) { return resB; }
  ------------------
  |  Branch (1168:9): [True: 0, False: 3]
  ------------------
 1169|      3|    U_ASSERT(RES_GET_TYPE(r) == URES_ALIAS);
  ------------------
  |  |   35|      3|#   define U_ASSERT(exp) (void)0
  ------------------
 1170|      3|    int32_t len = 0;
 1171|      3|    const char16_t *alias = res_getAlias(&resData, r, &len);
  ------------------
  |  |  199|      3|#define res_getAlias U_ICU_ENTRY_POINT_RENAME(res_getAlias)
  |  |  ------------------
  |  |  |  |  123|      3|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      3|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      3|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1172|      3|    if(len <= 0) {
  ------------------
  |  Branch (1172:8): [True: 0, False: 3]
  ------------------
 1173|       |        // bad alias
 1174|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 1175|      0|        return resB;
 1176|      0|    }
 1177|       |
 1178|       |    // Copy the UTF-16 alias string into an invariant-character string.
 1179|       |    //
 1180|       |    // We do this so that res_findResource() can modify the path,
 1181|       |    // which allows us to remove redundant _res_findResource() variants
 1182|       |    // in uresdata.c.
 1183|       |    // res_findResource() now NUL-terminates each segment so that table keys
 1184|       |    // can always be compared with strcmp() instead of strncmp().
 1185|       |    // Saves code there and simplifies testing and code coverage.
 1186|       |    //
 1187|       |    // markus 2003oct17
 1188|      3|    CharString chAlias;
 1189|      3|    chAlias.appendInvariantChars(alias, len, *status);
 1190|      3|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (1190:9): [True: 0, False: 3]
  ------------------
 1191|      0|        return nullptr;
 1192|      0|    }
 1193|       |
 1194|       |    // We have an alias, now let's cut it up.
 1195|      3|    const char *path = nullptr, *locale = nullptr, *keyPath = nullptr;
 1196|      3|    if(chAlias[0] == RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|      3|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (1196:8): [True: 3, False: 0]
  ------------------
 1197|       |        // There is a path included.
 1198|      3|        char *chAliasData = chAlias.data();
 1199|      3|        char *sep = chAliasData + 1;
 1200|      3|        path = sep;
 1201|      3|        sep = uprv_strchr(sep, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|      3|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|      3|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1202|      3|        if(sep != nullptr) {
  ------------------
  |  Branch (1202:12): [True: 3, False: 0]
  ------------------
 1203|      3|            *sep++ = 0;
 1204|      3|        }
 1205|      3|        if(uprv_strcmp(path, "LOCALE") == 0) {
  ------------------
  |  |   38|      3|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      3|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1205:12): [True: 0, False: 3]
  ------------------
 1206|       |            // This is an XPath alias, starting with "/LOCALE/".
 1207|       |            // It contains the path to a resource which should be looked up
 1208|       |            // starting in the valid locale.
 1209|       |            // TODO: Can/should we forbid a /LOCALE alias without key path?
 1210|       |            //   It seems weird to alias to the same path, just starting from the valid locale.
 1211|       |            //   That will often yield an infinite loop.
 1212|      0|            keyPath = sep;
 1213|       |            // Read from the valid locale which we already have.
 1214|      0|            path = locale = nullptr;
 1215|      3|        } else {
 1216|      3|            if(uprv_strcmp(path, "ICUDATA") == 0) { /* want ICU data */
  ------------------
  |  |   38|      3|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      3|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1216:16): [True: 3, False: 0]
  ------------------
 1217|      3|                path = nullptr;
 1218|      3|            }
 1219|      3|            if (sep == nullptr) {
  ------------------
  |  Branch (1219:17): [True: 0, False: 3]
  ------------------
 1220|       |                // TODO: This ends up using the root bundle. Can/should we forbid this?
 1221|      0|                locale = "";
 1222|      3|            } else {
 1223|      3|                locale = sep;
 1224|      3|                sep = uprv_strchr(sep, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|      3|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|      3|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1225|      3|                if(sep != nullptr) {
  ------------------
  |  Branch (1225:20): [True: 3, False: 0]
  ------------------
 1226|      3|                    *sep++ = 0;
 1227|      3|                }
 1228|      3|                keyPath = sep;
 1229|      3|            }
 1230|      3|        }
 1231|      3|    } else {
 1232|       |        // No path, start with a locale.
 1233|      0|        char *sep = chAlias.data();
 1234|      0|        locale = sep;
 1235|      0|        sep = uprv_strchr(sep, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|      0|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1236|      0|        if(sep != nullptr) {
  ------------------
  |  Branch (1236:12): [True: 0, False: 0]
  ------------------
 1237|      0|            *sep++ = 0;
 1238|      0|        }
 1239|      0|        keyPath = sep;
 1240|      0|        path = validLocaleDataEntry->fPath;
 1241|      0|    }
 1242|       |
 1243|       |    // Got almost everything, let's try to open.
 1244|       |    // First, open the bundle with real data.
 1245|      3|    LocalUResourceBundlePointer mainRes;
 1246|      3|    UResourceDataEntry *dataEntry;
 1247|      3|    if (locale == nullptr) {
  ------------------
  |  Branch (1247:9): [True: 0, False: 3]
  ------------------
 1248|       |        // alias = /LOCALE/keyPath
 1249|       |        // Read from the valid locale which we already have.
 1250|      0|        dataEntry = validLocaleDataEntry;
 1251|      3|    } else {
 1252|      3|        UErrorCode intStatus = U_ZERO_ERROR;
 1253|       |        // TODO: Shouldn't we use ures_open() for locale data bundles (!noFallback)?
 1254|      3|        mainRes.adoptInstead(ures_openDirect(path, locale, &intStatus));
  ------------------
  |  | 1693|      3|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|      3|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      3|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      3|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1255|      3|        if(U_FAILURE(intStatus)) {
  ------------------
  |  Branch (1255:12): [True: 0, False: 3]
  ------------------
 1256|       |            // We failed to open the resource bundle we're aliasing to.
 1257|      0|            *status = intStatus;
 1258|      0|            return resB;
 1259|      0|        }
 1260|      3|        dataEntry = mainRes->fData;
 1261|      3|    }
 1262|       |
 1263|      3|    const char* temp = nullptr;
 1264|      3|    if(keyPath == nullptr) {
  ------------------
  |  Branch (1264:8): [True: 0, False: 3]
  ------------------
 1265|       |        // No key path. This means that we are going to to use the corresponding resource from
 1266|       |        // another bundle.
 1267|       |        // TODO: Why the special code path?
 1268|       |        //   Why not put together a key path from containerResPath + key or idx,
 1269|       |        //   as a comment below suggests, and go into the regular code branch?
 1270|       |        // First, we are going to get a corresponding container
 1271|       |        // resource to the one we are searching.
 1272|      0|        r = dataEntry->fData.rootRes;
 1273|      0|        if(containerResPath) {
  ------------------
  |  Branch (1273:12): [True: 0, False: 0]
  ------------------
 1274|      0|            chAlias.clear().append(containerResPath, *status);
 1275|      0|            if (U_FAILURE(*status)) {
  ------------------
  |  Branch (1275:17): [True: 0, False: 0]
  ------------------
 1276|      0|                return nullptr;
 1277|      0|            }
 1278|      0|            char *aKey = chAlias.data();
 1279|       |            // TODO: should res_findResource() return a new dataEntry, too?
 1280|      0|            r = res_findResource(&dataEntry->fData, r, &aKey, &temp);
  ------------------
  |  |  198|      0|#define res_findResource U_ICU_ENTRY_POINT_RENAME(res_findResource)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1281|      0|        }
 1282|      0|        if(key) {
  ------------------
  |  Branch (1282:12): [True: 0, False: 0]
  ------------------
 1283|       |            // We need to make keyPath from the containerResPath and
 1284|       |            // current key, if there is a key associated.
 1285|      0|            chAlias.clear().append(key, *status);
 1286|      0|            if (U_FAILURE(*status)) {
  ------------------
  |  Branch (1286:17): [True: 0, False: 0]
  ------------------
 1287|      0|                return nullptr;
 1288|      0|            }
 1289|      0|            char *aKey = chAlias.data();
 1290|      0|            r = res_findResource(&dataEntry->fData, r, &aKey, &temp);
  ------------------
  |  |  198|      0|#define res_findResource U_ICU_ENTRY_POINT_RENAME(res_findResource)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1291|      0|        } else if(idx != -1) {
  ------------------
  |  Branch (1291:19): [True: 0, False: 0]
  ------------------
 1292|       |            // If there is no key, but there is an index, try to get by the index.
 1293|       |            // Here we have either a table or an array, so get the element.
 1294|      0|            int32_t type = RES_GET_TYPE(r);
  ------------------
  |  |   68|      0|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 1295|      0|            if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|      0|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 0, False: 0]
  |  |  |  Branch (84:61): [True: 0, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 1296|      0|                const char *aKey;
 1297|      0|                r = res_getTableItemByIndex(&dataEntry->fData, r, idx, &aKey);
  ------------------
  |  |  206|      0|#define res_getTableItemByIndex U_ICU_ENTRY_POINT_RENAME(res_getTableItemByIndex)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1298|      0|            } else { /* array */
 1299|      0|                r = res_getArrayItem(&dataEntry->fData, r, idx);
  ------------------
  |  |  200|      0|#define res_getArrayItem U_ICU_ENTRY_POINT_RENAME(res_getArrayItem)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1300|      0|            }
 1301|      0|        }
 1302|      0|        if(r != RES_BOGUS) {
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1302:12): [True: 0, False: 0]
  ------------------
 1303|      0|            resB = init_resb_result(
 1304|      0|                dataEntry, r, temp, -1, validLocaleDataEntry, nullptr, recursionDepth+1,
 1305|      0|                resB, status);
 1306|      0|        } else {
 1307|      0|            *status = U_MISSING_RESOURCE_ERROR;
 1308|      0|        }
 1309|      3|    } else {
 1310|       |        // This one is a bit trickier.
 1311|       |        // We start finding keys, but after we resolve one alias, the path might continue.
 1312|       |        // Consider:
 1313|       |        //     aliastest:alias { "testtypes/anotheralias/Sequence" }
 1314|       |        //     anotheralias:alias { "/ICUDATA/sh/CollationElements" }
 1315|       |        // aliastest resource should finally have the sequence, not collation elements.
 1316|      3|        CharString pathBuf(keyPath, *status);
 1317|      3|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (1317:13): [True: 0, False: 3]
  ------------------
 1318|      0|            return nullptr;
 1319|      0|        }
 1320|      3|        char *myPath = pathBuf.data();
 1321|      3|        containerResPath = nullptr;
 1322|       |        // Now we have fallback following here.
 1323|      3|        for(;;) {
 1324|      3|            r = dataEntry->fData.rootRes;
 1325|       |            // TODO: Move  containerResPath = nullptr  to here,
 1326|       |            // consistent with restarting from the rootRes of another bundle?!
 1327|       |
 1328|       |            // This loop handles 'found' resources over several levels.
 1329|      6|            while(*myPath && U_SUCCESS(*status)) {
  ------------------
  |  Branch (1329:19): [True: 3, False: 3]
  |  Branch (1329:30): [True: 3, False: 0]
  ------------------
 1330|      3|                r = res_findResource(&(dataEntry->fData), r, &myPath, &temp);
  ------------------
  |  |  198|      3|#define res_findResource U_ICU_ENTRY_POINT_RENAME(res_findResource)
  |  |  ------------------
  |  |  |  |  123|      3|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      3|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      3|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1331|      3|                if(r == RES_BOGUS) {
  ------------------
  |  |   65|      3|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1331:20): [True: 0, False: 3]
  ------------------
 1332|       |                    // No resource found, we don't really want to look anymore on this level.
 1333|      0|                    break;
 1334|      0|                }
 1335|       |                // Found a resource, but it might be an indirection.
 1336|      3|                resB = init_resb_result(
 1337|      3|                    dataEntry, r, temp, -1,
 1338|      3|                    validLocaleDataEntry, containerResPath, recursionDepth+1,
 1339|      3|                    resB, status);
 1340|      3|                if (U_FAILURE(*status)) {
  ------------------
  |  Branch (1340:21): [True: 0, False: 3]
  ------------------
 1341|      0|                    break;
 1342|      0|                }
 1343|      3|                if (temp == nullptr || uprv_strcmp(keyPath, temp) != 0) {
  ------------------
  |  |   38|      3|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      3|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1343:21): [True: 0, False: 3]
  |  Branch (1343:40): [True: 3, False: 0]
  ------------------
 1344|       |                    // The call to init_resb_result() above will set resB->fKeyPath to be
 1345|       |                    // the same as resB->fKey,
 1346|       |                    // throwing away any additional path elements if we had them --
 1347|       |                    // if the key path wasn't just a single resource ID, clear out
 1348|       |                    // the bundle's key path and re-set it to be equal to keyPath.
 1349|      3|                    ures_freeResPath(resB);
 1350|      3|                    ures_appendResPath(resB, keyPath, static_cast<int32_t>(uprv_strlen(keyPath)), status);
  ------------------
  |  |   37|      3|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      3|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1351|      3|                    if(resB->fResPath[resB->fResPathLen-1] != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|      3|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (1351:24): [True: 3, False: 0]
  ------------------
 1352|      3|                        ures_appendResPath(resB, RES_PATH_SEPARATOR_S, 1, status);
  ------------------
  |  |   61|      3|#define RES_PATH_SEPARATOR_S   "/"
  ------------------
 1353|      3|                    }
 1354|      3|                    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (1354:25): [True: 0, False: 3]
  ------------------
 1355|      0|                        break;
 1356|      0|                    }
 1357|      3|                }
 1358|      3|                r = resB->fRes; /* switch to a new resource, possibly a new tree */
 1359|      3|                dataEntry = resB->fData;
 1360|      3|                containerResPath = resB->fResPath;
 1361|      3|            }
 1362|      3|            if (U_FAILURE(*status) || r != RES_BOGUS) {
  ------------------
  |  |   65|      3|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1362:17): [True: 0, False: 3]
  |  Branch (1362:39): [True: 3, False: 0]
  ------------------
 1363|      3|                break;
 1364|      3|            }
 1365|       |            // Fall back to the parent bundle, if there is one.
 1366|      0|            dataEntry = dataEntry->fParent;
 1367|      0|            if (dataEntry == nullptr) {
  ------------------
  |  Branch (1367:17): [True: 0, False: 0]
  ------------------
 1368|      0|                *status = U_MISSING_RESOURCE_ERROR;
 1369|      0|                break;
 1370|      0|            }
 1371|       |            // Copy the same keyPath again.
 1372|      0|            myPath = pathBuf.data();
 1373|      0|            uprv_strcpy(myPath, keyPath);
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1374|      0|        }
 1375|      3|    }
 1376|      3|    if(mainRes.getAlias() == resB) {
  ------------------
  |  Branch (1376:8): [True: 0, False: 3]
  ------------------
 1377|      0|        mainRes.orphan();
 1378|      0|    }
 1379|      3|    ResourceTracer(resB).maybeTrace("getalias");
 1380|      3|    return resB;
 1381|      3|}
uresbund.cpp:_ZL21getTableItemByKeyPathPK12ResourceDatajPKc:
 2059|  15.0k|static Resource getTableItemByKeyPath(const ResourceData *pResData, Resource table, const char *key) {
 2060|  15.0k|  Resource resource = table;  /* The current resource */
 2061|  15.0k|  icu::CharString path;
 2062|  15.0k|  UErrorCode errorCode = U_ZERO_ERROR;
 2063|  15.0k|  path.append(key, errorCode);
 2064|  15.0k|  if (U_FAILURE(errorCode)) { return RES_BOGUS; }
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2064:7): [True: 0, False: 15.0k]
  ------------------
 2065|  15.0k|  char *pathPart = path.data();  /* Path from current resource to desired resource */
 2066|  15.0k|  UResType type = static_cast<UResType>(RES_GET_TYPE(resource)); /* the current resource type */
  ------------------
  |  |   68|  15.0k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2067|  42.5k|  while (*pathPart && resource != RES_BOGUS && URES_IS_CONTAINER(type)) {
  ------------------
  |  |   65|  70.2k|#define RES_BOGUS 0xffffffff
  ------------------
                while (*pathPart && resource != RES_BOGUS && URES_IS_CONTAINER(type)) {
  ------------------
  |  |   85|  27.6k|#define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   84|  55.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: 18.5k, False: 9.11k]
  |  |  |  |  |  Branch (84:61): [True: 9.02k, False: 94]
  |  |  |  |  |  Branch (84:94): [True: 0, False: 94]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   83|     94|#define URES_IS_ARRAY(type) ((int32_t)(type)==URES_ARRAY || (int32_t)(type)==URES_ARRAY16)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (83:30): [True: 0, False: 94]
  |  |  |  |  |  Branch (83:61): [True: 0, False: 94]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2067:10): [True: 27.6k, False: 14.8k]
  |  Branch (2067:23): [True: 27.6k, False: 27]
  ------------------
 2068|  27.5k|    char *nextPathPart = uprv_strchr(pathPart, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|  27.5k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  27.5k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2069|  27.5k|    if (nextPathPart != nullptr) {
  ------------------
  |  Branch (2069:9): [True: 15.1k, False: 12.4k]
  ------------------
 2070|  15.1k|      *nextPathPart = 0;  /* Terminating null for this part of path. */
 2071|  15.1k|      nextPathPart++;
 2072|  15.1k|    } else {
 2073|  12.4k|      nextPathPart = uprv_strchr(pathPart, 0);
  ------------------
  |  |   40|  12.4k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  12.4k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2074|  12.4k|    }
 2075|  27.5k|    int32_t t;
 2076|  27.5k|    const char *pathP = pathPart;
 2077|  27.5k|    resource = res_getTableItemByKey(pResData, resource, &t, &pathP);
  ------------------
  |  |  207|  27.5k|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|  27.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  27.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  27.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2078|  27.5k|    type = static_cast<UResType>(RES_GET_TYPE(resource));
  ------------------
  |  |   68|  27.5k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2079|  27.5k|    pathPart = nextPathPart; 
 2080|  27.5k|  }
 2081|  15.0k|  if (*pathPart) {
  ------------------
  |  Branch (2081:7): [True: 121, False: 14.8k]
  ------------------
 2082|    121|    return RES_BOGUS;
  ------------------
  |  |   65|    121|#define RES_BOGUS 0xffffffff
  ------------------
 2083|    121|  }
 2084|  14.8k|  return resource;
 2085|  15.0k|}
uresbund.cpp:_ZL10createPathPKciS0_iS0_RN6icu_7810CharStringEP10UErrorCode:
 2093|  5.48k|                       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|  5.48k|    path.clear();
 2107|  5.48k|    const char* key = inKey;
 2108|  5.48k|    if (resPathLen > 0) {
  ------------------
  |  Branch (2108:9): [True: 0, False: 5.48k]
  ------------------
 2109|      0|        path.append(resPath, resPathLen, *status);
 2110|      0|        if (U_SUCCESS(*status)) {
  ------------------
  |  Branch (2110:13): [True: 0, False: 0]
  ------------------
 2111|      0|            const char* resPathLimit = resPath + resPathLen;
 2112|      0|            const char* origResPathLimit = origResPath + origResPathLen;
 2113|      0|            const char* resPathPtr = resPath;
 2114|      0|            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|      0|            while (origResPathPtr < origResPathLimit && resPathPtr < resPathLimit) {
  ------------------
  |  Branch (2118:20): [True: 0, False: 0]
  |  Branch (2118:57): [True: 0, False: 0]
  ------------------
 2119|      0|                while (origResPathPtr < origResPathLimit && *origResPathPtr != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|      0|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2119:24): [True: 0, False: 0]
  |  Branch (2119:61): [True: 0, False: 0]
  ------------------
 2120|      0|                    ++origResPathPtr;
 2121|      0|                }
 2122|      0|                if (origResPathPtr < origResPathLimit && *origResPathPtr == RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|      0|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2122:21): [True: 0, False: 0]
  |  Branch (2122:58): [True: 0, False: 0]
  ------------------
 2123|      0|                    ++origResPathPtr;
 2124|      0|                }
 2125|      0|                while (resPathPtr < resPathLimit && *resPathPtr != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|      0|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2125:24): [True: 0, False: 0]
  |  Branch (2125:53): [True: 0, False: 0]
  ------------------
 2126|      0|                    ++resPathPtr;
 2127|      0|                }
 2128|      0|                if (resPathPtr < resPathLimit && *resPathPtr == RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|      0|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2128:21): [True: 0, False: 0]
  |  Branch (2128:50): [True: 0, False: 0]
  ------------------
 2129|      0|                    ++resPathPtr;
 2130|      0|                }
 2131|      0|            }
 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|      0|            while (resPathPtr < resPathLimit && *key != '\0') {
  ------------------
  |  Branch (2135:20): [True: 0, False: 0]
  |  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|      0|        }
 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|      0|        path.append(key, *status);
 2155|  5.48k|    } else {
 2156|  5.48k|        path.append(inKey, *status);
 2157|  5.48k|    }
 2158|  5.48k|}
uresbund.cpp:_ZL16ures_freeResPathP15UResourceBundle:
 1113|   134k|static void ures_freeResPath(UResourceBundle *resB) {
 1114|   134k|    if (resB->fResPath && resB->fResPath != resB->fResBuf) {
  ------------------
  |  Branch (1114:9): [True: 105k, False: 28.3k]
  |  Branch (1114:27): [True: 0, False: 105k]
  ------------------
 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|   134k|    resB->fResPath = nullptr;
 1118|   134k|    resB->fResPathLen = 0;
 1119|   134k|}
uresbund.cpp:_ZN12_GLOBAL__N_123getAllItemsWithFallbackEPK15UResourceBundleRN6icu_7817ResourceDataValueERNS3_12ResourceSinkER10UErrorCode:
 2278|  3.54k|        ResourceSink &sink, UErrorCode &errorCode) {
 2279|  3.54k|    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (2279:9): [True: 0, False: 3.54k]
  ------------------
 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|  3.54k|    value.setData(bundle->getResData());
 2291|  3.54k|    value.setValidLocaleDataEntry(bundle->fValidLocaleDataEntry);
 2292|  3.54k|    UResourceDataEntry *parentEntry = bundle->fData->fParent;
 2293|  3.54k|    UBool hasParent = parentEntry != nullptr && U_SUCCESS(parentEntry->fBogus);
  ------------------
  |  Branch (2293:23): [True: 0, False: 3.54k]
  |  Branch (2293:49): [True: 0, False: 0]
  ------------------
 2294|  3.54k|    value.setResource(bundle->fRes, ResourceTracer(bundle));
 2295|  3.54k|    sink.put(bundle->fKey, value, !hasParent, errorCode);
 2296|  3.54k|    if (hasParent) {
  ------------------
  |  Branch (2296:9): [True: 0, False: 3.54k]
  ------------------
 2297|       |        // We might try to query the sink whether
 2298|       |        // any fallback from the parent bundle is still possible.
 2299|       |
 2300|       |        // Turn the parent UResourceDataEntry into a UResourceBundle,
 2301|       |        // much like in ures_openWithType().
 2302|       |        // TODO: See if we can refactor ures_getByKeyWithFallback()
 2303|       |        // and pull out an inner function that takes and returns a UResourceDataEntry
 2304|       |        // so that we need not create UResourceBundle objects.
 2305|      0|        StackUResourceBundle parentBundle;
 2306|      0|        UResourceBundle &parentRef = parentBundle.ref();
 2307|      0|        parentRef.fData = parentEntry;
 2308|      0|        parentRef.fValidLocaleDataEntry = bundle->fValidLocaleDataEntry;
 2309|      0|        parentRef.fHasFallback = !parentRef.getResData().noFallback;
 2310|      0|        parentRef.fIsTopLevel = true;
 2311|      0|        parentRef.fRes = parentRef.getResData().rootRes;
 2312|      0|        parentRef.fSize = res_countArrayItems(&parentRef.getResData(), parentRef.fRes);
  ------------------
  |  |  197|      0|#define res_countArrayItems U_ICU_ENTRY_POINT_RENAME(res_countArrayItems)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2313|      0|        parentRef.fIndex = -1;
 2314|      0|        entryIncrease(parentEntry);
 2315|       |
 2316|       |        // Look up the container item in the parent bundle.
 2317|      0|        StackUResourceBundle containerBundle;
 2318|      0|        const UResourceBundle *rb;
 2319|      0|        UErrorCode pathErrorCode = U_ZERO_ERROR;  // Ignore if parents up to root do not have this path.
 2320|      0|        if (bundle->fResPath == nullptr || *bundle->fResPath == 0) {
  ------------------
  |  Branch (2320:13): [True: 0, False: 0]
  |  Branch (2320:44): [True: 0, False: 0]
  ------------------
 2321|      0|            rb = parentBundle.getAlias();
 2322|      0|        } else {
 2323|      0|            rb = ures_getByKeyWithFallback(parentBundle.getAlias(), bundle->fResPath,
  ------------------
  |  | 1662|      0|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2324|      0|                                           containerBundle.getAlias(), &pathErrorCode);
 2325|      0|        }
 2326|      0|        if (U_SUCCESS(pathErrorCode)) {
  ------------------
  |  Branch (2326:13): [True: 0, False: 0]
  ------------------
 2327|      0|            getAllItemsWithFallback(rb, value, sink, errorCode);
 2328|      0|        }
 2329|      0|    }
 2330|  3.54k|}
uresbund.cpp:_ZL17ures_openWithTypeP15UResourceBundlePKcS2_12UResOpenTypeP10UErrorCode:
 2712|  22.9k|                  UResOpenType openType, UErrorCode* status) {
 2713|  22.9k|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (2713:8): [True: 0, False: 22.9k]
  ------------------
 2714|      0|        return nullptr;
 2715|      0|    }
 2716|       |
 2717|  22.9k|    UResourceDataEntry *entry;
 2718|  22.9k|    if(openType != URES_OPEN_DIRECT) {
  ------------------
  |  Branch (2718:8): [True: 0, False: 22.9k]
  ------------------
 2719|      0|        if (localeID == nullptr) {
  ------------------
  |  Branch (2719:13): [True: 0, False: 0]
  ------------------
 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|      0|        CharString canonLocaleID = ulocimp_getBaseName(localeID, *status);
  ------------------
  |  | 1199|      0|#define ulocimp_getBaseName U_ICU_ENTRY_POINT_RENAME(ulocimp_getBaseName)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2724|      0|        if(U_FAILURE(*status)) {
  ------------------
  |  Branch (2724:12): [True: 0, False: 0]
  ------------------
 2725|      0|            *status = U_ILLEGAL_ARGUMENT_ERROR;
 2726|      0|            return nullptr;
 2727|      0|        }
 2728|      0|        entry = entryOpen(path, canonLocaleID.data(), openType, status);
 2729|  22.9k|    } else {
 2730|  22.9k|        entry = entryOpenDirect(path, localeID, status);
 2731|  22.9k|    }
 2732|  22.9k|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (2732:8): [True: 0, False: 22.9k]
  ------------------
 2733|      0|        return nullptr;
 2734|      0|    }
 2735|  22.9k|    if(entry == nullptr) {
  ------------------
  |  Branch (2735:8): [True: 0, False: 22.9k]
  ------------------
 2736|      0|        *status = U_MISSING_RESOURCE_ERROR;
 2737|      0|        return nullptr;
 2738|      0|    }
 2739|       |
 2740|  22.9k|    UBool isStackObject;
 2741|  22.9k|    if(r == nullptr) {
  ------------------
  |  Branch (2741:8): [True: 22.9k, False: 0]
  ------------------
 2742|  22.9k|        r = static_cast<UResourceBundle*>(uprv_malloc(sizeof(UResourceBundle)));
  ------------------
  |  | 1524|  22.9k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  22.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  22.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  22.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2743|  22.9k|        if(r == nullptr) {
  ------------------
  |  Branch (2743:12): [True: 0, False: 22.9k]
  ------------------
 2744|      0|            entryClose(entry);
 2745|      0|            *status = U_MEMORY_ALLOCATION_ERROR;
 2746|      0|            return nullptr;
 2747|      0|        }
 2748|  22.9k|        isStackObject = false;
 2749|  22.9k|    } else {  // fill-in
 2750|      0|        isStackObject = ures_isStackObject(r);
 2751|      0|        ures_closeBundle(r, false);
 2752|      0|    }
 2753|  22.9k|    uprv_memset(r, 0, sizeof(UResourceBundle));
  ------------------
  |  |  100|  22.9k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  22.9k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2754|  22.9k|    ures_setIsStackObject(r, isStackObject);
 2755|       |
 2756|  22.9k|    r->fValidLocaleDataEntry = r->fData = entry;
 2757|  22.9k|    r->fHasFallback = openType != URES_OPEN_DIRECT && !r->getResData().noFallback;
  ------------------
  |  Branch (2757:23): [True: 0, False: 22.9k]
  |  Branch (2757:55): [True: 0, False: 0]
  ------------------
 2758|  22.9k|    r->fIsTopLevel = true;
 2759|  22.9k|    r->fRes = r->getResData().rootRes;
 2760|  22.9k|    r->fSize = res_countArrayItems(&r->getResData(), r->fRes);
  ------------------
  |  |  197|  22.9k|#define res_countArrayItems U_ICU_ENTRY_POINT_RENAME(res_countArrayItems)
  |  |  ------------------
  |  |  |  |  123|  22.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  22.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  22.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2761|  22.9k|    r->fIndex = -1;
 2762|       |
 2763|  22.9k|    ResourceTracer(r).traceOpen();
 2764|       |
 2765|  22.9k|    return r;
 2766|  22.9k|}
uresbund.cpp:_ZL9initCacheP10UErrorCode:
  483|  22.9k|static void initCache(UErrorCode *status) {
  484|  22.9k|    umtx_initOnce(gCacheInitOnce, &createCache, *status);
  485|  22.9k|}
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|  22.9k|static int32_t U_CALLCONV hashEntry(const UHashTok parm) {
   59|  22.9k|    UResourceDataEntry* b = static_cast<UResourceDataEntry*>(parm.pointer);
   60|  22.9k|    UHashTok namekey, pathkey;
   61|  22.9k|    namekey.pointer = b->fName;
   62|  22.9k|    pathkey.pointer = b->fPath;
   63|  22.9k|    return uhash_hashChars(namekey)+37u*uhash_hashChars(pathkey);
  ------------------
  |  | 1011|  22.9k|#define uhash_hashChars U_ICU_ENTRY_POINT_RENAME(uhash_hashChars)
  |  |  ------------------
  |  |  |  |  123|  22.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  22.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  22.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  return uhash_hashChars(namekey)+37u*uhash_hashChars(pathkey);
  ------------------
  |  | 1011|  22.9k|#define uhash_hashChars U_ICU_ENTRY_POINT_RENAME(uhash_hashChars)
  |  |  ------------------
  |  |  |  |  123|  22.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  22.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  22.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   64|  22.9k|}
uresbund.cpp:_ZL14compareEntries8UElementS_:
   67|  22.9k|static UBool U_CALLCONV compareEntries(const UHashTok p1, const UHashTok p2) {
   68|  22.9k|    UResourceDataEntry* b1 = static_cast<UResourceDataEntry*>(p1.pointer);
   69|  22.9k|    UResourceDataEntry* b2 = static_cast<UResourceDataEntry*>(p2.pointer);
   70|  22.9k|    UHashTok name1, name2, path1, path2;
   71|  22.9k|    name1.pointer = b1->fName;
   72|  22.9k|    name2.pointer = b2->fName;
   73|  22.9k|    path1.pointer = b1->fPath;
   74|  22.9k|    path2.pointer = b2->fPath;
   75|  22.9k|    return uhash_compareChars(name1, name2) && uhash_compareChars(path1, path2);
  ------------------
  |  |  993|  22.9k|#define uhash_compareChars U_ICU_ENTRY_POINT_RENAME(uhash_compareChars)
  |  |  ------------------
  |  |  |  |  123|  22.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  22.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  22.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  return uhash_compareChars(name1, name2) && uhash_compareChars(path1, path2);
  ------------------
  |  |  993|  22.9k|#define uhash_compareChars U_ICU_ENTRY_POINT_RENAME(uhash_compareChars)
  |  |  ------------------
  |  |  |  |  123|  22.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  22.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  22.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (75:12): [True: 22.9k, False: 0]
  |  Branch (75:48): [True: 22.9k, False: 0]
  ------------------
   76|  22.9k|}
uresbund.cpp:_ZL10init_entryPKcS0_P10UErrorCode:
  514|  22.9k|static UResourceDataEntry *init_entry(const char *localeID, const char *path, UErrorCode *status) {
  515|  22.9k|    UResourceDataEntry *r = nullptr;
  516|  22.9k|    UResourceDataEntry find;
  517|       |    /*int32_t hashValue;*/
  518|  22.9k|    const char *name;
  519|  22.9k|    char aliasName[100] = { 0 };
  520|  22.9k|    int32_t aliasLen = 0;
  521|       |    /*UBool isAlias = false;*/
  522|       |    /*UHashTok hashkey; */
  523|       |
  524|  22.9k|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (524:8): [True: 0, False: 22.9k]
  ------------------
  525|      0|        return nullptr;
  526|      0|    }
  527|       |
  528|       |    /* here we try to deduce the right locale name */
  529|  22.9k|    if(localeID == nullptr) { /* if localeID is nullptr, we're trying to open default locale */
  ------------------
  |  Branch (529:8): [True: 0, False: 22.9k]
  ------------------
  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.9k|    } else if(*localeID == 0) { /* if localeID is "" then we try to open root locale */
  ------------------
  |  Branch (531:15): [True: 0, False: 22.9k]
  ------------------
  532|      0|        name = kRootLocaleName;
  ------------------
  |  |   18|      0|#define kRootLocaleName         "root"
  ------------------
  533|  22.9k|    } else { /* otherwise, we'll open what we're given */
  534|  22.9k|        name = localeID;
  535|  22.9k|    }
  536|       |
  537|  22.9k|    find.fName = const_cast<char*>(name);
  538|  22.9k|    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.9k|    r = static_cast<UResourceDataEntry*>(uhash_get(cache, &find));
  ------------------
  |  | 1007|  22.9k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  22.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  22.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  22.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  546|  22.9k|    if(r == nullptr) {
  ------------------
  |  Branch (546:8): [True: 6, False: 22.9k]
  ------------------
  547|       |        /* if the entry is not yet in the hash table, we'll try to construct a new one */
  548|      6|        r = static_cast<UResourceDataEntry*>(uprv_malloc(sizeof(UResourceDataEntry)));
  ------------------
  |  | 1524|      6|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  549|      6|        if(r == nullptr) {
  ------------------
  |  Branch (549:12): [True: 0, False: 6]
  ------------------
  550|      0|            *status = U_MEMORY_ALLOCATION_ERROR;
  551|      0|            return nullptr;
  552|      0|        }
  553|       |
  554|      6|        uprv_memset(r, 0, sizeof(UResourceDataEntry));
  ------------------
  |  |  100|      6|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|      6|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  555|       |        /*r->fHashKey = hashValue;*/
  556|       |
  557|      6|        setEntryName(r, name, status);
  558|      6|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (558:13): [True: 0, False: 6]
  ------------------
  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|      6|        if(path != nullptr) {
  ------------------
  |  Branch (563:12): [True: 0, False: 6]
  ------------------
  564|      0|            r->fPath = uprv_strdup(path);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  565|      0|            if(r->fPath == nullptr) {
  ------------------
  |  Branch (565:16): [True: 0, False: 0]
  ------------------
  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|      0|        }
  571|       |
  572|       |        /* this is the actual loading */
  573|      6|        res_load(&(r->fData), r->fPath, r->fName, status);
  ------------------
  |  |  208|      6|#define res_load U_ICU_ENTRY_POINT_RENAME(res_load)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  574|       |
  575|      6|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (575:13): [True: 0, False: 6]
  ------------------
  576|       |            /* if we failed to load due to an out-of-memory error, exit early. */
  577|      0|            if (*status == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (577:17): [True: 0, False: 0]
  ------------------
  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|      0|            *status = U_USING_FALLBACK_WARNING;
  583|      0|            r->fBogus = U_USING_FALLBACK_WARNING;
  584|      6|        } else { /* if we have a regular entry */
  585|      6|            Resource aliasres;
  586|      6|            if (r->fData.usesPoolBundle) {
  ------------------
  |  Branch (586:17): [True: 0, False: 6]
  ------------------
  587|      0|                r->fPool = getPoolEntry(r->fPath, status);
  588|      0|                if (U_SUCCESS(*status)) {
  ------------------
  |  Branch (588:21): [True: 0, False: 0]
  ------------------
  589|      0|                    const int32_t *poolIndexes = r->fPool->fData.pRoot + 1;
  590|      0|                    if(r->fData.pRoot[1 + URES_INDEX_POOL_CHECKSUM] == poolIndexes[URES_INDEX_POOL_CHECKSUM]) {
  ------------------
  |  Branch (590:24): [True: 0, False: 0]
  ------------------
  591|      0|                        r->fData.poolBundleKeys = reinterpret_cast<const char*>(poolIndexes + (poolIndexes[URES_INDEX_LENGTH] & 0xff));
  592|      0|                        r->fData.poolBundleStrings = r->fPool->fData.p16BitUnits;
  593|      0|                    } else {
  594|      0|                        r->fBogus = *status = U_INVALID_FORMAT_ERROR;
  595|      0|                    }
  596|      0|                } else {
  597|      0|                    r->fBogus = *status;
  598|      0|                }
  599|      0|            }
  600|      6|            if (U_SUCCESS(*status)) {
  ------------------
  |  Branch (600:17): [True: 6, 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|      6|                aliasres = res_getResource(&(r->fData), "%%ALIAS");
  ------------------
  |  |  204|      6|#define res_getResource U_ICU_ENTRY_POINT_RENAME(res_getResource)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  604|      6|                if (aliasres != RES_BOGUS) {
  ------------------
  |  |   65|      6|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (604:21): [True: 0, False: 6]
  ------------------
  605|       |                    // No tracing: called during initial data loading
  606|      0|                    const char16_t *alias = res_getStringNoTrace(&(r->fData), aliasres, &aliasLen);
  ------------------
  |  |  205|      0|#define res_getStringNoTrace U_ICU_ENTRY_POINT_RENAME(res_getStringNoTrace)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  607|      0|                    if(alias != nullptr && aliasLen > 0) { /* if there is actual alias - unload and load new data */
  ------------------
  |  Branch (607:24): [True: 0, False: 0]
  |  Branch (607:44): [True: 0, False: 0]
  ------------------
  608|      0|                        u_UCharsToChars(alias, aliasName, aliasLen+1);
  ------------------
  |  |  211|      0|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  609|      0|                        r->fAlias = init_entry(aliasName, path, status);
  610|      0|                    }
  611|      0|                }
  612|      6|            }
  613|      6|        }
  614|       |
  615|      6|        {
  616|      6|            UResourceDataEntry *oldR = nullptr;
  617|      6|            if ((oldR = static_cast<UResourceDataEntry*>(uhash_get(cache, r))) == nullptr) { /* if the data is not cached */
  ------------------
  |  | 1007|      6|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|      6|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      6|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      6|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (617:17): [True: 6, False: 0]
  ------------------
  618|       |                /* just insert it in the cache */
  619|      6|                UErrorCode cacheStatus = U_ZERO_ERROR;
  620|      6|                uhash_put(cache, (void *)r, r, &cacheStatus);
  ------------------
  |  | 1032|      6|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|      6|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      6|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      6|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  621|      6|                if (U_FAILURE(cacheStatus)) {
  ------------------
  |  Branch (621:21): [True: 0, False: 6]
  ------------------
  622|      0|                    *status = cacheStatus;
  623|      0|                    free_entry(r);
  624|      0|                    r = nullptr;
  625|      0|                }
  626|      6|            } 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|      6|        }
  633|       |
  634|      6|    }
  635|  22.9k|    if(r != nullptr) {
  ------------------
  |  Branch (635:8): [True: 22.9k, False: 0]
  ------------------
  636|       |        /* return the real bundle */
  637|  22.9k|        while(r->fAlias != nullptr) {
  ------------------
  |  Branch (637:15): [True: 0, False: 22.9k]
  ------------------
  638|      0|            r = r->fAlias;
  639|      0|        }
  640|  22.9k|        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.9k|        if(r->fBogus != U_ZERO_ERROR && U_SUCCESS(*status)) {
  ------------------
  |  Branch (643:12): [True: 0, False: 22.9k]
  |  Branch (643:41): [True: 0, False: 0]
  ------------------
  644|      0|             *status = r->fBogus; /* set the returning status */
  645|      0|        }
  646|  22.9k|    }
  647|  22.9k|    return r;
  648|  22.9k|}
uresbund.cpp:_ZL12setEntryNameP18UResourceDataEntryPKcP10UErrorCode:
  489|      6|static void setEntryName(UResourceDataEntry *res, const char *name, UErrorCode *status) {
  490|      6|    int32_t len = static_cast<int32_t>(uprv_strlen(name));
  ------------------
  |  |   37|      6|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      6|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  491|      6|    if(res->fName != nullptr && res->fName != res->fNameBuffer) {
  ------------------
  |  Branch (491:8): [True: 0, False: 6]
  |  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|      6|    if (len < static_cast<int32_t>(sizeof(res->fNameBuffer))) {
  ------------------
  |  Branch (494:9): [True: 0, False: 6]
  ------------------
  495|      0|        res->fName = res->fNameBuffer;
  496|      0|    }
  497|      6|    else {
  498|      6|        res->fName = static_cast<char*>(uprv_malloc(len + 1));
  ------------------
  |  | 1524|      6|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  499|      6|    }
  500|      6|    if(res->fName == nullptr) {
  ------------------
  |  Branch (500:8): [True: 0, False: 6]
  ------------------
  501|      0|        *status = U_MEMORY_ALLOCATION_ERROR;
  502|      6|    } else {
  503|      6|        uprv_strcpy(res->fName, name);
  ------------------
  |  |   36|      6|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      6|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  504|      6|    }
  505|      6|}
uresbund.cpp:_ZL15entryOpenDirectPKcS0_P10UErrorCode:
  966|  22.9k|entryOpenDirect(const char* path, const char* localeID, UErrorCode* status) {
  967|  22.9k|    initCache(status);
  968|  22.9k|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (968:8): [True: 0, False: 22.9k]
  ------------------
  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|  22.9k|    if (localeID == nullptr) {
  ------------------
  |  Branch (974:9): [True: 0, False: 22.9k]
  ------------------
  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|  22.9k|    } else if (*localeID == 0) {
  ------------------
  |  Branch (976:16): [True: 0, False: 22.9k]
  ------------------
  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|  22.9k|    Mutex lock(&resbMutex);
  982|       |
  983|       |    // findFirstExisting() without fallbacks.
  984|  22.9k|    UResourceDataEntry *r = init_entry(localeID, path, status);
  985|  22.9k|    if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (985:8): [True: 22.9k, False: 0]
  ------------------
  986|  22.9k|        if(r->fBogus != U_ZERO_ERROR) {
  ------------------
  |  Branch (986:12): [True: 0, False: 22.9k]
  ------------------
  987|      0|            r->fCountExisting--;
  988|      0|            r = nullptr;
  989|      0|        }
  990|  22.9k|    } 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|  22.9k|    UResourceDataEntry *t1 = r;
  997|  22.9k|    if(r != nullptr && uprv_strcmp(localeID, kRootLocaleName) != 0 &&  // not root
  ------------------
  |  |   38|  22.9k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  22.9k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (997:8): [True: 22.9k, False: 0]
  |  Branch (997:24): [True: 22.9k, False: 0]
  ------------------
  998|  22.9k|            r->fParent == nullptr && !r->fData.noFallback &&
  ------------------
  |  Branch (998:13): [True: 22.9k, False: 0]
  |  Branch (998:38): [True: 0, False: 22.9k]
  ------------------
  999|  22.9k|            uprv_strlen(localeID) < ULOC_FULLNAME_CAPACITY) {
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                          uprv_strlen(localeID) < ULOC_FULLNAME_CAPACITY) {
  ------------------
  |  |  264|      0|#define ULOC_FULLNAME_CAPACITY 157
  ------------------
  |  Branch (999:13): [True: 0, False: 0]
  ------------------
 1000|      0|        char name[ULOC_FULLNAME_CAPACITY];
 1001|      0|        uprv_strcpy(name, localeID);
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1002|      0|        if(!chopLocale(name) || uprv_strcmp(name, kRootLocaleName) == 0 ||
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1002:12): [True: 0, False: 0]
  |  Branch (1002:33): [True: 0, False: 0]
  ------------------
 1003|      0|                loadParentsExceptRoot(t1, name, UPRV_LENGTHOF(name), false, nullptr, status)) {
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1003:17): [True: 0, False: 0]
  ------------------
 1004|      0|            if(uprv_strcmp(t1->fName, kRootLocaleName) != 0 && t1->fParent == nullptr) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1004:16): [True: 0, False: 0]
  |  Branch (1004:64): [True: 0, False: 0]
  ------------------
 1005|      0|                insertRootBundle(t1, status);
 1006|      0|            }
 1007|      0|        }
 1008|      0|        if(U_FAILURE(*status)) {
  ------------------
  |  Branch (1008:12): [True: 0, False: 0]
  ------------------
 1009|      0|            r = nullptr;
 1010|      0|        }
 1011|      0|    }
 1012|       |
 1013|  22.9k|    if(r != nullptr) {
  ------------------
  |  Branch (1013:8): [True: 22.9k, False: 0]
  ------------------
 1014|       |        // TODO: Does this ever loop?
 1015|  22.9k|        while(t1->fParent != nullptr) {
  ------------------
  |  Branch (1015:15): [True: 0, False: 22.9k]
  ------------------
 1016|      0|            t1->fParent->fCountExisting++;
 1017|      0|            t1 = t1->fParent;
 1018|      0|        }
 1019|  22.9k|    }
 1020|  22.9k|    return r;
 1021|  22.9k|}

res_load_78:
  260|      6|         const char *path, const char *name, UErrorCode *errorCode) {
  261|      6|    UVersionInfo formatVersion;
  262|       |
  263|      6|    uprv_memset(pResData, 0, sizeof(ResourceData));
  ------------------
  |  |  100|      6|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|      6|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  264|       |
  265|       |    /* load the ResourceBundle file */
  266|      6|    pResData->data=udata_openChoice(path, "res", name, isAcceptable, formatVersion, errorCode);
  ------------------
  |  |  894|      6|#define udata_openChoice U_ICU_ENTRY_POINT_RENAME(udata_openChoice)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  267|      6|    if(U_FAILURE(*errorCode)) {
  ------------------
  |  Branch (267:8): [True: 0, False: 6]
  ------------------
  268|      0|        return;
  269|      0|    }
  270|       |
  271|       |    /* get its memory and initialize *pResData */
  272|      6|    res_init(pResData, formatVersion, udata_getMemory(pResData->data), -1, errorCode);
  ------------------
  |  |  891|      6|#define udata_getMemory U_ICU_ENTRY_POINT_RENAME(udata_getMemory)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  273|      6|}
res_getStringNoTrace_78:
  311|   161k|res_getStringNoTrace(const ResourceData *pResData, Resource res, int32_t *pLength) {
  312|   161k|    const char16_t *p;
  313|   161k|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|   161k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  314|   161k|    int32_t length;
  315|   161k|    if(RES_GET_TYPE(res)==URES_STRING_V2) {
  ------------------
  |  |   68|   161k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (315:8): [True: 158k, False: 2.45k]
  ------------------
  316|   158k|        int32_t first;
  317|   158k|        if((int32_t)offset<pResData->poolStringIndexLimit) {
  ------------------
  |  Branch (317:12): [True: 0, False: 158k]
  ------------------
  318|      0|            p=(const char16_t *)pResData->poolBundleStrings+offset;
  319|   158k|        } else {
  320|   158k|            p=(const char16_t *)pResData->p16BitUnits+(offset-pResData->poolStringIndexLimit);
  321|   158k|        }
  322|   158k|        first=*p;
  323|   158k|        if(!U16_IS_TRAIL(first)) {
  ------------------
  |  |   67|   158k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  ------------------
  |  Branch (323:12): [True: 152k, False: 6.43k]
  ------------------
  324|   152k|            length=u_strlen(p);
  ------------------
  |  |  393|   152k|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|   152k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|   152k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|   152k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  325|   152k|        } else if(first<0xdfef) {
  ------------------
  |  Branch (325:19): [True: 6.43k, False: 0]
  ------------------
  326|  6.43k|            length=first&0x3ff;
  327|  6.43k|            ++p;
  328|  6.43k|        } 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|   158k|    } else if(res==offset) /* RES_GET_TYPE(res)==URES_STRING */ {
  ------------------
  |  Branch (335:15): [True: 0, False: 2.45k]
  ------------------
  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|  2.45k|    } else {
  340|  2.45k|        p=nullptr;
  341|  2.45k|        length=0;
  342|  2.45k|    }
  343|   161k|    if(pLength) {
  ------------------
  |  Branch (343:8): [True: 159k, False: 1.29k]
  ------------------
  344|   159k|        *pLength=length;
  345|   159k|    }
  346|   161k|    return p;
  347|   161k|}
res_getAlias_78:
  420|      3|res_getAlias(const ResourceData *pResData, Resource res, int32_t *pLength) {
  421|      3|    const char16_t *p;
  422|      3|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|      3|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  423|      3|    int32_t length;
  424|      3|    if(RES_GET_TYPE(res)==URES_ALIAS) {
  ------------------
  |  |   68|      3|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (424:8): [True: 3, False: 0]
  ------------------
  425|      3|        const int32_t *p32= offset==0 ? &gEmptyString.length : pResData->pRoot+offset;
  ------------------
  |  Branch (425:29): [True: 0, False: 3]
  ------------------
  426|      3|        length=*p32++;
  427|      3|        p=(const char16_t *)p32;
  428|      3|    } else {
  429|      0|        p=nullptr;
  430|      0|        length=0;
  431|      0|    }
  432|      3|    if(pLength) {
  ------------------
  |  Branch (432:8): [True: 3, False: 0]
  ------------------
  433|      3|        *pLength=length;
  434|      3|    }
  435|      3|    return p;
  436|      3|}
res_countArrayItems_78:
  477|   128k|res_countArrayItems(const ResourceData *pResData, Resource res) {
  478|   128k|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|   128k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  479|   128k|    switch(RES_GET_TYPE(res)) {
  ------------------
  |  |   68|   128k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  480|      0|    case URES_STRING:
  ------------------
  |  Branch (480:5): [True: 0, False: 128k]
  ------------------
  481|  83.3k|    case URES_STRING_V2:
  ------------------
  |  Branch (481:5): [True: 83.3k, False: 45.5k]
  ------------------
  482|  83.3k|    case URES_BINARY:
  ------------------
  |  Branch (482:5): [True: 0, False: 128k]
  ------------------
  483|  83.3k|    case URES_ALIAS:
  ------------------
  |  Branch (483:5): [True: 0, False: 128k]
  ------------------
  484|  83.3k|    case URES_INT:
  ------------------
  |  Branch (484:5): [True: 0, False: 128k]
  ------------------
  485|  83.3k|    case URES_INT_VECTOR:
  ------------------
  |  Branch (485:5): [True: 0, False: 128k]
  ------------------
  486|  83.3k|        return 1;
  487|  3.54k|    case URES_ARRAY:
  ------------------
  |  Branch (487:5): [True: 3.54k, False: 125k]
  ------------------
  488|  3.54k|    case URES_TABLE32:
  ------------------
  |  Branch (488:5): [True: 0, False: 128k]
  ------------------
  489|  3.54k|        return offset==0 ? 0 : *(pResData->pRoot+offset);
  ------------------
  |  Branch (489:16): [True: 0, False: 3.54k]
  ------------------
  490|  26.2k|    case URES_TABLE:
  ------------------
  |  Branch (490:5): [True: 26.2k, False: 102k]
  ------------------
  491|  26.2k|        return offset==0 ? 0 : *((const uint16_t *)(pResData->pRoot+offset));
  ------------------
  |  Branch (491:16): [True: 0, False: 26.2k]
  ------------------
  492|      0|    case URES_ARRAY16:
  ------------------
  |  Branch (492:5): [True: 0, False: 128k]
  ------------------
  493|  15.7k|    case URES_TABLE16:
  ------------------
  |  Branch (493:5): [True: 15.7k, False: 113k]
  ------------------
  494|  15.7k|        return pResData->p16BitUnits[offset];
  495|      0|    default:
  ------------------
  |  Branch (495:5): [True: 0, False: 128k]
  ------------------
  496|      0|        return 0;
  497|   128k|    }
  498|   128k|}
_ZN6icu_7817ResourceDataValueD2Ev:
  502|  3.54k|ResourceDataValue::~ResourceDataValue() {}
_ZNK6icu_7817ResourceDataValue9getStringERiR10UErrorCode:
  508|  62.8k|const char16_t *ResourceDataValue::getString(int32_t &length, UErrorCode &errorCode) const {
  509|  62.8k|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (509:8): [True: 0, False: 62.8k]
  ------------------
  510|      0|        return nullptr;
  511|      0|    }
  512|  62.8k|    const char16_t *s = res_getString(fTraceInfo, &getData(), res, &length);
  513|  62.8k|    if(s == nullptr) {
  ------------------
  |  Branch (513:8): [True: 0, False: 62.8k]
  ------------------
  514|      0|        errorCode = U_RESOURCE_TYPE_MISMATCH;
  515|      0|    }
  516|  62.8k|    return s;
  517|  62.8k|}
_ZNK6icu_7817ResourceDataValue8getArrayER10UErrorCode:
  572|  24.5k|ResourceArray ResourceDataValue::getArray(UErrorCode &errorCode) const {
  573|  24.5k|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (573:8): [True: 0, False: 24.5k]
  ------------------
  574|      0|        return {};
  575|      0|    }
  576|  24.5k|    const uint16_t *items16 = nullptr;
  577|  24.5k|    const Resource *items32 = nullptr;
  578|  24.5k|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|  24.5k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  579|  24.5k|    int32_t length = 0;
  580|  24.5k|    switch(RES_GET_TYPE(res)) {
  ------------------
  |  |   68|  24.5k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  581|  3.54k|    case URES_ARRAY:
  ------------------
  |  Branch (581:5): [True: 3.54k, False: 20.9k]
  ------------------
  582|  3.54k|        if (offset!=0) {  // empty if offset==0
  ------------------
  |  Branch (582:13): [True: 3.54k, False: 0]
  ------------------
  583|  3.54k|            items32 = reinterpret_cast<const Resource*>(getData().pRoot) + offset;
  584|  3.54k|            length = *items32++;
  585|  3.54k|        }
  586|  3.54k|        break;
  587|  20.9k|    case URES_ARRAY16:
  ------------------
  |  Branch (587:5): [True: 20.9k, False: 3.54k]
  ------------------
  588|  20.9k|        items16 = getData().p16BitUnits+offset;
  589|  20.9k|        length = *items16++;
  590|  20.9k|        break;
  591|      0|    default:
  ------------------
  |  Branch (591:5): [True: 0, False: 24.5k]
  ------------------
  592|      0|        errorCode = U_RESOURCE_TYPE_MISMATCH;
  593|      0|        return {};
  594|  24.5k|    }
  595|  24.5k|    return ResourceArray(items16, items32, length, fTraceInfo);
  596|  24.5k|}
_ZNK6icu_7817ResourceDataValue8getTableER10UErrorCode:
  598|      3|ResourceTable ResourceDataValue::getTable(UErrorCode &errorCode) const {
  599|      3|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (599:8): [True: 0, False: 3]
  ------------------
  600|      0|        return {};
  601|      0|    }
  602|      3|    const uint16_t *keys16 = nullptr;
  603|      3|    const int32_t *keys32 = nullptr;
  604|      3|    const uint16_t *items16 = nullptr;
  605|      3|    const Resource *items32 = nullptr;
  606|      3|    uint32_t offset = RES_GET_OFFSET(res);
  ------------------
  |  |   69|      3|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  607|      3|    int32_t length = 0;
  608|      3|    switch(RES_GET_TYPE(res)) {
  ------------------
  |  |   68|      3|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  609|      1|    case URES_TABLE:
  ------------------
  |  Branch (609:5): [True: 1, False: 2]
  ------------------
  610|      1|        if (offset != 0) {  // empty if offset==0
  ------------------
  |  Branch (610:13): [True: 1, False: 0]
  ------------------
  611|      1|            keys16 = reinterpret_cast<const uint16_t*>(getData().pRoot + offset);
  612|      1|            length = *keys16++;
  613|      1|            items32 = reinterpret_cast<const Resource*>(keys16 + length + (~length & 1));
  614|      1|        }
  615|      1|        break;
  616|      2|    case URES_TABLE16:
  ------------------
  |  Branch (616:5): [True: 2, False: 1]
  ------------------
  617|      2|        keys16 = getData().p16BitUnits+offset;
  618|      2|        length = *keys16++;
  619|      2|        items16 = keys16 + length;
  620|      2|        break;
  621|      0|    case URES_TABLE32:
  ------------------
  |  Branch (621:5): [True: 0, False: 3]
  ------------------
  622|      0|        if (offset != 0) {  // empty if offset==0
  ------------------
  |  Branch (622:13): [True: 0, False: 0]
  ------------------
  623|      0|            keys32 = getData().pRoot+offset;
  624|      0|            length = *keys32++;
  625|      0|            items32 = reinterpret_cast<const Resource*>(keys32) + length;
  626|      0|        }
  627|      0|        break;
  628|      0|    default:
  ------------------
  |  Branch (628:5): [True: 0, False: 3]
  ------------------
  629|      0|        errorCode = U_RESOURCE_TYPE_MISMATCH;
  630|      0|        return {};
  631|      3|    }
  632|      3|    return ResourceTable(keys16, keys32, items16, items32, length, fTraceInfo);
  633|      3|}
res_getTableItemByKey_78:
  713|   100k|                      int32_t *indexR, const char **key) {
  714|   100k|    uint32_t offset=RES_GET_OFFSET(table);
  ------------------
  |  |   69|   100k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  715|   100k|    int32_t length;
  716|   100k|    int32_t idx;
  717|   100k|    if(key == nullptr || *key == nullptr) {
  ------------------
  |  Branch (717:8): [True: 0, False: 100k]
  |  Branch (717:26): [True: 114, False: 100k]
  ------------------
  718|    114|        return RES_BOGUS;
  ------------------
  |  |   65|    114|#define RES_BOGUS 0xffffffff
  ------------------
  719|    114|    }
  720|   100k|    switch(RES_GET_TYPE(table)) {
  ------------------
  |  |   68|   100k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  721|  39.5k|    case URES_TABLE: {
  ------------------
  |  Branch (721:5): [True: 39.5k, False: 60.9k]
  ------------------
  722|  39.5k|        if (offset!=0) { /* empty if offset==0 */
  ------------------
  |  Branch (722:13): [True: 39.5k, False: 0]
  ------------------
  723|  39.5k|            const uint16_t *p= (const uint16_t *)(pResData->pRoot+offset);
  724|  39.5k|            length=*p++;
  725|  39.5k|            *indexR=idx=_res_findTableItem(pResData, p, length, *key, key);
  726|  39.5k|            if(idx>=0) {
  ------------------
  |  Branch (726:16): [True: 39.3k, False: 152]
  ------------------
  727|  39.3k|                const Resource *p32=(const Resource *)(p+length+(~length&1));
  728|  39.3k|                return p32[idx];
  729|  39.3k|            }
  730|  39.5k|        }
  731|    152|        break;
  732|  39.5k|    }
  733|  60.9k|    case URES_TABLE16: {
  ------------------
  |  Branch (733:5): [True: 60.9k, False: 39.5k]
  ------------------
  734|  60.9k|        const uint16_t *p=pResData->p16BitUnits+offset;
  735|  60.9k|        length=*p++;
  736|  60.9k|        *indexR=idx=_res_findTableItem(pResData, p, length, *key, key);
  737|  60.9k|        if(idx>=0) {
  ------------------
  |  Branch (737:12): [True: 8.34k, False: 52.6k]
  ------------------
  738|  8.34k|            return makeResourceFrom16(pResData, p[length+idx]);
  739|  8.34k|        }
  740|  52.6k|        break;
  741|  60.9k|    }
  742|  52.6k|    case URES_TABLE32: {
  ------------------
  |  Branch (742:5): [True: 0, False: 100k]
  ------------------
  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: 100k]
  ------------------
  754|      0|        break;
  755|   100k|    }
  756|  52.7k|    return RES_BOGUS;
  ------------------
  |  |   65|  52.7k|#define RES_BOGUS 0xffffffff
  ------------------
  757|   100k|}
res_getTableItemByIndex_78:
  761|  88.8k|                        int32_t indexR, const char **key) {
  762|  88.8k|    uint32_t offset=RES_GET_OFFSET(table);
  ------------------
  |  |   69|  88.8k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  763|  88.8k|    int32_t length;
  764|  88.8k|    if (indexR < 0) {
  ------------------
  |  Branch (764:9): [True: 0, False: 88.8k]
  ------------------
  765|      0|        return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  766|      0|    }
  767|  88.8k|    switch(RES_GET_TYPE(table)) {
  ------------------
  |  |   68|  88.8k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  768|  1.29k|    case URES_TABLE: {
  ------------------
  |  Branch (768:5): [True: 1.29k, False: 87.5k]
  ------------------
  769|  1.29k|        if (offset != 0) { /* empty if offset==0 */
  ------------------
  |  Branch (769:13): [True: 1.29k, False: 0]
  ------------------
  770|  1.29k|            const uint16_t *p= (const uint16_t *)(pResData->pRoot+offset);
  771|  1.29k|            length=*p++;
  772|  1.29k|            if(indexR<length) {
  ------------------
  |  Branch (772:16): [True: 1.29k, False: 0]
  ------------------
  773|  1.29k|                const Resource *p32=(const Resource *)(p+length+(~length&1));
  774|  1.29k|                if(key!=nullptr) {
  ------------------
  |  Branch (774:20): [True: 1.29k, False: 0]
  ------------------
  775|  1.29k|                    *key=RES_GET_KEY16(pResData, p[indexR]);
  ------------------
  |  |   44|  1.29k|    ((keyOffset)<(pResData)->localKeyLimit ? \
  |  |  ------------------
  |  |  |  Branch (44:6): [True: 1.29k, False: 0]
  |  |  ------------------
  |  |   45|  1.29k|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   46|  1.29k|        (pResData)->poolBundleKeys+(keyOffset)-(pResData)->localKeyLimit)
  ------------------
  776|  1.29k|                }
  777|  1.29k|                return p32[indexR];
  778|  1.29k|            }
  779|  1.29k|        }
  780|      0|        break;
  781|  1.29k|    }
  782|  87.5k|    case URES_TABLE16: {
  ------------------
  |  Branch (782:5): [True: 87.5k, False: 1.29k]
  ------------------
  783|  87.5k|        const uint16_t *p=pResData->p16BitUnits+offset;
  784|  87.5k|        length=*p++;
  785|  87.5k|        if(indexR<length) {
  ------------------
  |  Branch (785:12): [True: 87.5k, False: 0]
  ------------------
  786|  87.5k|            if(key!=nullptr) {
  ------------------
  |  Branch (786:16): [True: 87.5k, False: 0]
  ------------------
  787|  87.5k|                *key=RES_GET_KEY16(pResData, p[indexR]);
  ------------------
  |  |   44|  87.5k|    ((keyOffset)<(pResData)->localKeyLimit ? \
  |  |  ------------------
  |  |  |  Branch (44:6): [True: 87.5k, False: 0]
  |  |  ------------------
  |  |   45|  87.5k|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   46|  87.5k|        (pResData)->poolBundleKeys+(keyOffset)-(pResData)->localKeyLimit)
  ------------------
  788|  87.5k|            }
  789|  87.5k|            return makeResourceFrom16(pResData, p[length+indexR]);
  790|  87.5k|        }
  791|      0|        break;
  792|  87.5k|    }
  793|      0|    case URES_TABLE32: {
  ------------------
  |  Branch (793:5): [True: 0, False: 88.8k]
  ------------------
  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: 88.8k]
  ------------------
  807|      0|        break;
  808|  88.8k|    }
  809|      0|    return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  810|  88.8k|}
res_getResource_78:
  813|      6|res_getResource(const ResourceData *pResData, const char *key) {
  814|      6|    const char *realKey=key;
  815|      6|    int32_t idx;
  816|      6|    return res_getTableItemByKey(pResData, pResData->rootRes, &idx, &realKey);
  ------------------
  |  |  207|      6|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  817|      6|}
_ZNK6icu_7813ResourceTable14getKeyAndValueEiRPKcRNS_13ResourceValueE:
  821|    944|                                         const char *&key, icu::ResourceValue &value) const {
  822|    944|    if(0 <= i && i < length) {
  ------------------
  |  Branch (822:8): [True: 944, False: 0]
  |  Branch (822:18): [True: 941, False: 3]
  ------------------
  823|    941|        icu::ResourceDataValue &rdValue = static_cast<icu::ResourceDataValue &>(value);
  824|    941|        if (keys16 != nullptr) {
  ------------------
  |  Branch (824:13): [True: 941, False: 0]
  ------------------
  825|    941|            key = RES_GET_KEY16(&rdValue.getData(), keys16[i]);
  ------------------
  |  |   44|    941|    ((keyOffset)<(pResData)->localKeyLimit ? \
  |  |  ------------------
  |  |  |  Branch (44:6): [True: 941, False: 0]
  |  |  ------------------
  |  |   45|    941|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   46|    941|        (pResData)->poolBundleKeys+(keyOffset)-(pResData)->localKeyLimit)
  ------------------
  826|    941|        } else {
  827|      0|            key = RES_GET_KEY32(&rdValue.getData(), keys32[i]);
  ------------------
  |  |   49|      0|    ((keyOffset)>=0 ? \
  |  |  ------------------
  |  |  |  Branch (49:6): [True: 0, False: 0]
  |  |  ------------------
  |  |   50|      0|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   51|      0|        (pResData)->poolBundleKeys+((keyOffset)&0x7fffffff))
  ------------------
  828|      0|        }
  829|    941|        Resource res;
  830|    941|        if (items16 != nullptr) {
  ------------------
  |  Branch (830:13): [True: 938, False: 3]
  ------------------
  831|    938|            res = makeResourceFrom16(&rdValue.getData(), items16[i]);
  832|    938|        } else {
  833|      3|            res = items32[i];
  834|      3|        }
  835|       |        // Note: the ResourceTracer keeps a reference to the field of this
  836|       |        // ResourceTable. This is OK because the ResourceTable should remain
  837|       |        // alive for the duration that fields are being read from it
  838|       |        // (including nested fields).
  839|    941|        rdValue.setResource(res, ResourceTracer(fTraceInfo, key));
  840|    941|        return true;
  841|    941|    }
  842|      3|    return false;
  843|    944|}
_ZNK6icu_7813ResourceArray19internalGetResourceEPK12ResourceDatai:
  897|  83.8k|uint32_t icu::ResourceArray::internalGetResource(const ResourceData *pResData, int32_t i) const {
  898|  83.8k|    if (items16 != nullptr) {
  ------------------
  |  Branch (898:9): [True: 62.8k, False: 20.9k]
  ------------------
  899|  62.8k|        return makeResourceFrom16(pResData, items16[i]);
  900|  62.8k|    } else {
  901|  20.9k|        return items32[i];
  902|  20.9k|    }
  903|  83.8k|}
_ZNK6icu_7813ResourceArray8getValueEiRNS_13ResourceValueE:
  905|  87.3k|UBool icu::ResourceArray::getValue(int32_t i, icu::ResourceValue &value) const {
  906|  87.3k|    if(0 <= i && i < length) {
  ------------------
  |  Branch (906:8): [True: 87.3k, False: 0]
  |  Branch (906:18): [True: 83.8k, False: 3.54k]
  ------------------
  907|  83.8k|        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|  83.8k|        rdValue.setResource(
  913|  83.8k|            internalGetResource(&rdValue.getData(), i),
  914|  83.8k|            ResourceTracer(fTraceInfo, i));
  915|  83.8k|        return true;
  916|  83.8k|    }
  917|  3.54k|    return false;
  918|  87.3k|}
res_findResource_78:
  921|  5.56k|res_findResource(const ResourceData *pResData, Resource r, char** path, const char** key) {
  922|  5.56k|  char *pathP = *path, *nextSepP = *path;
  923|  5.56k|  char *closeIndex = nullptr;
  924|  5.56k|  Resource t1 = r;
  925|  5.56k|  Resource t2;
  926|  5.56k|  int32_t indexR = 0;
  927|  5.56k|  UResType type = (UResType)RES_GET_TYPE(t1);
  ------------------
  |  |   68|  5.56k|#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|  5.56k|  if(!uprv_strlen(pathP)) {
  ------------------
  |  |   37|  5.56k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  5.56k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (930:6): [True: 0, False: 5.56k]
  ------------------
  931|      0|      return r;
  932|      0|  }
  933|       |
  934|       |  /* one needs to have an aggregate resource in order to search in it */
  935|  5.56k|  if(!URES_IS_CONTAINER(type)) {
  ------------------
  |  |   85|  5.56k|#define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   84|  11.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: 5.56k, False: 0]
  |  |  |  |  |  Branch (84:61): [True: 0, 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|  16.6k|  while(nextSepP && *pathP && t1 != RES_BOGUS && URES_IS_CONTAINER(type)) {
  ------------------
  |  |   65|  27.7k|#define RES_BOGUS 0xffffffff
  ------------------
                while(nextSepP && *pathP && t1 != RES_BOGUS && URES_IS_CONTAINER(type)) {
  ------------------
  |  |   85|  11.1k|#define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   84|  22.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: 5.57k, False: 5.56k]
  |  |  |  |  |  Branch (84:61): [True: 5.47k, False: 94]
  |  |  |  |  |  Branch (84:94): [True: 0, False: 94]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   83|     94|#define URES_IS_ARRAY(type) ((int32_t)(type)==URES_ARRAY || (int32_t)(type)==URES_ARRAY16)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (83:30): [True: 0, False: 94]
  |  |  |  |  |  Branch (83:61): [True: 0, False: 94]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (939:9): [True: 11.1k, False: 5.41k]
  |  Branch (939:21): [True: 11.1k, False: 24]
  |  Branch (939:31): [True: 11.1k, False: 21]
  ------------------
  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|  11.0k|    nextSepP = uprv_strchr(pathP, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|  11.0k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  11.0k|#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|  11.0k|    if(nextSepP != nullptr) {
  ------------------
  |  Branch (947:8): [True: 5.62k, False: 5.41k]
  ------------------
  948|  5.62k|      if(nextSepP == pathP) {
  ------------------
  |  Branch (948:10): [True: 13, False: 5.61k]
  ------------------
  949|       |        // Empty key string.
  950|     13|        return RES_BOGUS;
  ------------------
  |  |   65|     13|#define RES_BOGUS 0xffffffff
  ------------------
  951|     13|      }
  952|  5.61k|      *nextSepP = 0; /* overwrite the separator with a NUL to terminate the key */
  953|  5.61k|      *path = nextSepP+1;
  954|  5.61k|    } else {
  955|  5.41k|      *path = uprv_strchr(pathP, 0);
  ------------------
  |  |   40|  5.41k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  5.41k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  956|  5.41k|    }
  957|       |
  958|       |    /* if the resource is a table */
  959|       |    /* try the key based access */
  960|  11.0k|    if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|  11.0k|#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.57k, False: 5.46k]
  |  |  |  Branch (84:61): [True: 5.46k, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  961|  11.0k|      *key = pathP;
  962|  11.0k|      t2 = res_getTableItemByKey(pResData, t1, &indexR, key);
  ------------------
  |  |  207|  11.0k|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|  11.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  11.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  11.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  963|  11.0k|    } 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|  11.0k|    t1 = t2;
  975|  11.0k|    type = (UResType)RES_GET_TYPE(t1);
  ------------------
  |  |   68|  11.0k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  976|       |    /* position pathP to next resource key/index */
  977|  11.0k|    pathP = *path;
  978|  11.0k|  }
  979|       |
  980|  5.55k|  return t1;
  981|  5.56k|}
uresdata.cpp:_ZL12isAcceptablePvPKcS1_PK9UDataInfo:
  141|      6|             const UDataInfo *pInfo) {
  142|      6|    uprv_memcpy(context, pInfo->formatVersion, 4);
  ------------------
  |  |   42|      6|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|      6|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|      6|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|      6|    _Pragma("clang diagnostic push") \
  |  |   45|      6|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|      6|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|      6|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|      6|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|      6|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|      6|    _Pragma("clang diagnostic pop") \
  |  |   49|      6|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|      6|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|      6|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|      6|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  143|      6|    return
  144|      6|        pInfo->size>=20 &&
  ------------------
  |  Branch (144:9): [True: 6, False: 0]
  ------------------
  145|      6|        pInfo->isBigEndian==U_IS_BIG_ENDIAN &&
  ------------------
  |  |  353|     12|#   define U_IS_BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
  ------------------
  |  Branch (145:9): [True: 6, False: 0]
  ------------------
  146|      6|        pInfo->charsetFamily==U_CHARSET_FAMILY &&
  ------------------
  |  |  588|      6|#   define U_CHARSET_FAMILY U_ASCII_FAMILY
  |  |  ------------------
  |  |  |  |  531|     12|#define U_ASCII_FAMILY 0
  |  |  ------------------
  ------------------
  |  Branch (146:9): [True: 6, False: 0]
  ------------------
  147|      6|        pInfo->sizeofUChar==U_SIZEOF_UCHAR &&
  ------------------
  |  |  352|     12|#define U_SIZEOF_UCHAR 2
  ------------------
  |  Branch (147:9): [True: 6, False: 0]
  ------------------
  148|      6|        pInfo->dataFormat[0]==0x52 &&   /* dataFormat="ResB" */
  ------------------
  |  Branch (148:9): [True: 6, False: 0]
  ------------------
  149|      6|        pInfo->dataFormat[1]==0x65 &&
  ------------------
  |  Branch (149:9): [True: 6, False: 0]
  ------------------
  150|      6|        pInfo->dataFormat[2]==0x73 &&
  ------------------
  |  Branch (150:9): [True: 6, False: 0]
  ------------------
  151|      6|        pInfo->dataFormat[3]==0x42 &&
  ------------------
  |  Branch (151:9): [True: 6, False: 0]
  ------------------
  152|      6|        (1<=pInfo->formatVersion[0] && pInfo->formatVersion[0]<=3);
  ------------------
  |  Branch (152:10): [True: 6, False: 0]
  |  Branch (152:40): [True: 6, False: 0]
  ------------------
  153|      6|}
uresdata.cpp:_ZL8res_initP12ResourceDataPhPKviP10UErrorCode:
  160|      6|         UErrorCode *errorCode) {
  161|      6|    UResType rootType;
  162|       |
  163|       |    /* get the root resource */
  164|      6|    pResData->pRoot = static_cast<const int32_t*>(inBytes);
  165|      6|    pResData->rootRes = static_cast<Resource>(*pResData->pRoot);
  166|      6|    pResData->p16BitUnits=&gEmpty16;
  167|       |
  168|       |    /* formatVersion 1.1 must have a root item and at least 5 indexes */
  169|      6|    if(length>=0 && (length/4)<((formatVersion[0]==1 && formatVersion[1]==0) ? 1 : 1+5)) {
  ------------------
  |  Branch (169:8): [True: 0, False: 6]
  |  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|      6|    rootType = static_cast<UResType>(RES_GET_TYPE(pResData->rootRes));
  ------------------
  |  |   68|      6|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  177|      6|    if(!URES_IS_TABLE(rootType)) {
  ------------------
  |  |   84|      6|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 6, False: 0]
  |  |  |  Branch (84:61): [True: 0, 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|      6|    if(formatVersion[0]==1 && formatVersion[1]==0) {
  ------------------
  |  Branch (183:8): [True: 0, False: 6]
  |  Branch (183:31): [True: 0, False: 0]
  ------------------
  184|      0|        pResData->localKeyLimit=0x10000;  /* greater than any 16-bit key string offset */
  185|      6|    } else {
  186|       |        /* bundles with formatVersion 1.1 and later contain an indexes[] array */
  187|      6|        const int32_t *indexes=pResData->pRoot+1;
  188|      6|        int32_t indexLength=indexes[URES_INDEX_LENGTH]&0xff;
  189|      6|        if(indexLength<=URES_INDEX_MAX_TABLE_LENGTH) {
  ------------------
  |  Branch (189:12): [True: 0, False: 6]
  ------------------
  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|      6|        if( length>=0 &&
  ------------------
  |  Branch (194:13): [True: 0, False: 6]
  ------------------
  195|      6|            (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|      6|        ) {
  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|      6|        if(indexes[URES_INDEX_KEYS_TOP]>(1+indexLength)) {
  ------------------
  |  Branch (202:12): [True: 6, False: 0]
  ------------------
  203|      6|            pResData->localKeyLimit=indexes[URES_INDEX_KEYS_TOP]<<2;
  204|      6|        }
  205|      6|        if(formatVersion[0]>=3) {
  ------------------
  |  Branch (205:12): [True: 0, False: 6]
  ------------------
  206|       |            // In formatVersion 1, the indexLength took up this whole int.
  207|       |            // In version 2, bits 31..8 were reserved and always 0.
  208|       |            // In version 3, they contain bits 23..0 of the poolStringIndexLimit.
  209|       |            // Bits 27..24 are in indexes[URES_INDEX_ATTRIBUTES] bits 15..12.
  210|      0|            pResData->poolStringIndexLimit = static_cast<int32_t>(static_cast<uint32_t>(indexes[URES_INDEX_LENGTH]) >> 8);
  211|      0|        }
  212|      6|        if(indexLength>URES_INDEX_ATTRIBUTES) {
  ------------------
  |  Branch (212:12): [True: 6, False: 0]
  ------------------
  213|      6|            int32_t att=indexes[URES_INDEX_ATTRIBUTES];
  214|      6|            pResData->noFallback = static_cast<UBool>(att & URES_ATT_NO_FALLBACK);
  ------------------
  |  |  148|      6|#define URES_ATT_NO_FALLBACK 1
  ------------------
  215|      6|            pResData->isPoolBundle = static_cast<UBool>((att & URES_ATT_IS_POOL_BUNDLE) != 0);
  ------------------
  |  |  156|      6|#define URES_ATT_IS_POOL_BUNDLE 2
  ------------------
  216|      6|            pResData->usesPoolBundle = static_cast<UBool>((att & URES_ATT_USES_POOL_BUNDLE) != 0);
  ------------------
  |  |  157|      6|#define URES_ATT_USES_POOL_BUNDLE 4
  ------------------
  217|      6|            pResData->poolStringIndexLimit|=(att&0xf000)<<12;  // bits 15..12 -> 27..24
  218|      6|            pResData->poolStringIndex16Limit = static_cast<int32_t>(static_cast<uint32_t>(att) >> 16);
  219|      6|        }
  220|      6|        if((pResData->isPoolBundle || pResData->usesPoolBundle) && indexLength<=URES_INDEX_POOL_CHECKSUM) {
  ------------------
  |  Branch (220:13): [True: 0, False: 6]
  |  Branch (220:39): [True: 0, False: 6]
  |  Branch (220:68): [True: 0, False: 0]
  ------------------
  221|      0|            *errorCode=U_INVALID_FORMAT_ERROR;
  222|      0|            res_unload(pResData);
  ------------------
  |  |  210|      0|#define res_unload U_ICU_ENTRY_POINT_RENAME(res_unload)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  223|      0|            return;
  224|      0|        }
  225|      6|        if( indexLength>URES_INDEX_16BIT_TOP &&
  ------------------
  |  Branch (225:13): [True: 6, False: 0]
  ------------------
  226|      6|            indexes[URES_INDEX_16BIT_TOP]>indexes[URES_INDEX_KEYS_TOP]
  ------------------
  |  Branch (226:13): [True: 6, False: 0]
  ------------------
  227|      6|        ) {
  228|      6|            pResData->p16BitUnits = reinterpret_cast<const uint16_t*>(pResData->pRoot + indexes[URES_INDEX_KEYS_TOP]);
  229|      6|        }
  230|      6|    }
  231|       |
  232|      6|    if(formatVersion[0]==1 || U_CHARSET_FAMILY==U_ASCII_FAMILY) {
  ------------------
  |  |  588|      6|#   define U_CHARSET_FAMILY U_ASCII_FAMILY
  |  |  ------------------
  |  |  |  |  531|      6|#define U_ASCII_FAMILY 0
  |  |  ------------------
  ------------------
                  if(formatVersion[0]==1 || U_CHARSET_FAMILY==U_ASCII_FAMILY) {
  ------------------
  |  |  531|      6|#define U_ASCII_FAMILY 0
  ------------------
  |  Branch (232:8): [True: 0, False: 6]
  |  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|      6|        pResData->useNativeStrcmp=true;
  238|      6|    }
  239|      6|}
uresdata.cpp:_ZL18_res_findTableItemPK12ResourceDataPKtiPKcPS5_:
   76|   100k|                   const char *key, const char **realKey) {
   77|   100k|    const char *tableKey;
   78|   100k|    int32_t mid, start, limit;
   79|   100k|    int result;
   80|       |
   81|       |    /* do a binary search for the key */
   82|   100k|    start=0;
   83|   100k|    limit=length;
   84|   564k|    while(start<limit) {
  ------------------
  |  Branch (84:11): [True: 512k, False: 52.7k]
  ------------------
   85|   512k|        mid = (start + limit) / 2;
   86|   512k|        tableKey = RES_GET_KEY16(pResData, keyOffsets[mid]);
  ------------------
  |  |   44|   512k|    ((keyOffset)<(pResData)->localKeyLimit ? \
  |  |  ------------------
  |  |  |  Branch (44:6): [True: 512k, False: 0]
  |  |  ------------------
  |  |   45|   512k|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   46|   512k|        (pResData)->poolBundleKeys+(keyOffset)-(pResData)->localKeyLimit)
  ------------------
   87|   512k|        if (pResData->useNativeStrcmp) {
  ------------------
  |  Branch (87:13): [True: 512k, False: 0]
  ------------------
   88|   512k|            result = uprv_strcmp(key, tableKey);
  ------------------
  |  |   38|   512k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   512k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
   89|   512k|        } 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|   512k|        if (result < 0) {
  ------------------
  |  Branch (92:13): [True: 302k, False: 209k]
  ------------------
   93|   302k|            limit = mid;
   94|   302k|        } else if (result > 0) {
  ------------------
  |  Branch (94:20): [True: 162k, False: 47.7k]
  ------------------
   95|   162k|            start = mid + 1;
   96|   162k|        } else {
   97|       |            /* We found it! */
   98|  47.7k|            *realKey=tableKey;
   99|  47.7k|            return mid;
  100|  47.7k|        }
  101|   512k|    }
  102|  52.7k|    return URESDATA_ITEM_NOT_FOUND;  /* not found or table is empty. */
  ------------------
  |  |   53|  52.7k|#define URESDATA_ITEM_NOT_FOUND -1
  ------------------
  103|   100k|}
uresdata.cpp:_ZL18makeResourceFrom16PK12ResourceDatai:
  700|   159k|makeResourceFrom16(const ResourceData *pResData, int32_t res16) {
  701|   159k|    if(res16<pResData->poolStringIndex16Limit) {
  ------------------
  |  Branch (701:8): [True: 0, False: 159k]
  ------------------
  702|       |        // Pool string, nothing to do.
  703|   159k|    } else {
  704|       |        // Local string, adjust the 16-bit offset to a regular one,
  705|       |        // with a larger pool string index limit.
  706|   159k|        res16=res16-pResData->poolStringIndex16Limit+pResData->poolStringIndexLimit;
  707|   159k|    }
  708|   159k|    return URES_MAKE_RESOURCE(URES_STRING_V2, res16);
  ------------------
  |  |   87|   159k|#define URES_MAKE_RESOURCE(type, offset) (((Resource)(type)<<28)|(Resource)(offset))
  ------------------
  709|   159k|}

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

_ZNK15UResourceBundle10getResDataEv:
   94|   419k|    inline const ResourceData &getResData() const { return fData->fData; }
_ZN6icu_7820StackUResourceBundle8getAliasEv:
  130|  3.54k|    UResourceBundle* getAlias() { return &bundle; }

u_strlen_78:
  995|   155k|{
  996|       |#if U_SIZEOF_WCHAR_T == U_SIZEOF_UCHAR
  997|       |    return (int32_t)uprv_wcslen((const wchar_t *)s);
  998|       |#else
  999|   155k|    const char16_t *t = s;
 1000|  1.52M|    while(*t != 0) {
  ------------------
  |  Branch (1000:11): [True: 1.36M, False: 155k]
  ------------------
 1001|  1.36M|      ++t;
 1002|  1.36M|    }
 1003|   155k|    return t - s;
 1004|   155k|#endif
 1005|   155k|}
u_terminateChars_78:
 1475|  10.5k|u_terminateChars(char *dest, int32_t destCapacity, int32_t length, UErrorCode *pErrorCode) {
 1476|  10.5k|    __TERMINATE_STRING(dest, destCapacity, length, pErrorCode);
  ------------------
  |  | 1437|  10.5k|#define __TERMINATE_STRING(dest, destCapacity, length, pErrorCode) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  10.5k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  | 1438|  10.5k|    if(pErrorCode!=nullptr && U_SUCCESS(*pErrorCode)) {                    \
  |  |  ------------------
  |  |  |  Branch (1438:8): [True: 10.5k, False: 0]
  |  |  |  Branch (1438:31): [True: 10.5k, False: 0]
  |  |  ------------------
  |  | 1439|  10.5k|        /* not a public function, so no complete argument checking */   \
  |  | 1440|  10.5k|                                                                        \
  |  | 1441|  10.5k|        if(length<0) {                                                  \
  |  |  ------------------
  |  |  |  Branch (1441:12): [True: 0, False: 10.5k]
  |  |  ------------------
  |  | 1442|      0|            /* assume that the caller handles this */                   \
  |  | 1443|  10.5k|        } else if(length<destCapacity) {                                \
  |  |  ------------------
  |  |  |  Branch (1443:19): [True: 10.1k, False: 419]
  |  |  ------------------
  |  | 1444|  10.1k|            /* NUL-terminate the string, the NUL fits */                \
  |  | 1445|  10.1k|            dest[length]=0;                                             \
  |  | 1446|  10.1k|            /* unset the not-terminated warning but leave all others */ \
  |  | 1447|  10.1k|            if(*pErrorCode==U_STRING_NOT_TERMINATED_WARNING) {          \
  |  |  ------------------
  |  |  |  Branch (1447:16): [True: 0, False: 10.1k]
  |  |  ------------------
  |  | 1448|      0|                *pErrorCode=U_ZERO_ERROR;                               \
  |  | 1449|      0|            }                                                           \
  |  | 1450|  10.1k|        } else if(length==destCapacity) {                               \
  |  |  ------------------
  |  |  |  Branch (1450:19): [True: 419, False: 0]
  |  |  ------------------
  |  | 1451|    419|            /* unable to NUL-terminate, but the string itself fit - set a warning code */ \
  |  | 1452|    419|            *pErrorCode=U_STRING_NOT_TERMINATED_WARNING;                \
  |  | 1453|    419|        } 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|  10.5k|    } \
  |  | 1458|  10.5k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  10.5k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1477|  10.5k|    return length;
 1478|  10.5k|}
ustr_hashUCharsN_78:
 1523|  2.10k|ustr_hashUCharsN(const char16_t *str, int32_t length) {
 1524|  2.10k|    STRING_HASH(char16_t, str, length, *p);
  ------------------
  |  | 1506|  2.10k|#define STRING_HASH(TYPE, STR, STRLEN, DEREF) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  2.10k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  | 1507|  2.10k|    uint32_t hash = 0;                        \
  |  | 1508|  2.10k|    const TYPE *p = (const TYPE*) STR;        \
  |  | 1509|  2.10k|    if (p != nullptr) {                          \
  |  |  ------------------
  |  |  |  Branch (1509:9): [True: 2.10k, False: 0]
  |  |  ------------------
  |  | 1510|  2.10k|        int32_t len = (int32_t)(STRLEN);      \
  |  | 1511|  2.10k|        int32_t inc = ((len - 32) / 32) + 1;  \
  |  | 1512|  2.10k|        const TYPE *limit = p + len;          \
  |  | 1513|  8.18k|        while (p<limit) {                     \
  |  |  ------------------
  |  |  |  Branch (1513:16): [True: 6.08k, False: 2.10k]
  |  |  ------------------
  |  | 1514|  6.08k|            hash = (hash * 37) + DEREF;       \
  |  | 1515|  6.08k|            p += inc;                         \
  |  | 1516|  6.08k|        }                                     \
  |  | 1517|  2.10k|    }                                         \
  |  | 1518|  2.10k|    return static_cast<int32_t>(hash);        \
  |  | 1519|  2.10k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  2.10k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1525|  2.10k|}
ustr_hashCharsN_78:
 1528|  75.8k|ustr_hashCharsN(const char *str, int32_t length) {
 1529|  75.8k|    STRING_HASH(uint8_t, str, length, *p);
  ------------------
  |  | 1506|  75.8k|#define STRING_HASH(TYPE, STR, STRLEN, DEREF) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  75.8k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  | 1507|  75.8k|    uint32_t hash = 0;                        \
  |  | 1508|  75.8k|    const TYPE *p = (const TYPE*) STR;        \
  |  | 1509|  75.8k|    if (p != nullptr) {                          \
  |  |  ------------------
  |  |  |  Branch (1509:9): [True: 75.8k, False: 0]
  |  |  ------------------
  |  | 1510|  75.8k|        int32_t len = (int32_t)(STRLEN);      \
  |  | 1511|  75.8k|        int32_t inc = ((len - 32) / 32) + 1;  \
  |  | 1512|  75.8k|        const TYPE *limit = p + len;          \
  |  | 1513|  1.28M|        while (p<limit) {                     \
  |  |  ------------------
  |  |  |  Branch (1513:16): [True: 1.21M, False: 75.8k]
  |  |  ------------------
  |  | 1514|  1.21M|            hash = (hash * 37) + DEREF;       \
  |  | 1515|  1.21M|            p += inc;                         \
  |  | 1516|  1.21M|        }                                     \
  |  | 1517|  75.8k|    }                                         \
  |  | 1518|  75.8k|    return static_cast<int32_t>(hash);        \
  |  | 1519|  75.8k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  75.8k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1530|  75.8k|}
ustr_hashICharsN_78:
 1533|  35.2k|ustr_hashICharsN(const char *str, int32_t length) {
 1534|  35.2k|    STRING_HASH(char, str, length, (uint8_t)uprv_tolower(*p));
  ------------------
  |  | 1506|  35.2k|#define STRING_HASH(TYPE, STR, STRLEN, DEREF) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  35.2k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  | 1507|  35.2k|    uint32_t hash = 0;                        \
  |  | 1508|  35.2k|    const TYPE *p = (const TYPE*) STR;        \
  |  | 1509|  35.2k|    if (p != nullptr) {                          \
  |  |  ------------------
  |  |  |  Branch (1509:9): [True: 35.2k, False: 0]
  |  |  ------------------
  |  | 1510|  35.2k|        int32_t len = (int32_t)(STRLEN);      \
  |  | 1511|  35.2k|        int32_t inc = ((len - 32) / 32) + 1;  \
  |  | 1512|  35.2k|        const TYPE *limit = p + len;          \
  |  | 1513|   153k|        while (p<limit) {                     \
  |  |  ------------------
  |  |  |  Branch (1513:16): [True: 117k, False: 35.2k]
  |  |  ------------------
  |  | 1514|   117k|            hash = (hash * 37) + DEREF;       \
  |  | 1515|   117k|            p += inc;                         \
  |  | 1516|   117k|        }                                     \
  |  | 1517|  35.2k|    }                                         \
  |  | 1518|  35.2k|    return static_cast<int32_t>(hash);        \
  |  | 1519|  35.2k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  35.2k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1535|  35.2k|}

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

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

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

_ZN6icu_789UVector32C2ER10UErrorCode:
   30|  37.9k|    count(0),
   31|  37.9k|    capacity(0),
   32|  37.9k|    maxCapacity(0),
   33|  37.9k|    elements(nullptr)
   34|  37.9k|{
   35|  37.9k|    _init(DEFAULT_CAPACITY, status);
  ------------------
  |  |   19|  37.9k|#define DEFAULT_CAPACITY 8
  ------------------
   36|  37.9k|}
_ZN6icu_789UVector325_initEiR10UErrorCode:
   49|  37.9k|void UVector32::_init(int32_t initialCapacity, UErrorCode &status) {
   50|       |    // Fix bogus initialCapacity values; avoid malloc(0)
   51|  37.9k|    if (initialCapacity < 1) {
  ------------------
  |  Branch (51:9): [True: 0, False: 37.9k]
  ------------------
   52|      0|        initialCapacity = DEFAULT_CAPACITY;
  ------------------
  |  |   19|      0|#define DEFAULT_CAPACITY 8
  ------------------
   53|      0|    }
   54|  37.9k|    if (maxCapacity>0 && maxCapacity<initialCapacity) {
  ------------------
  |  Branch (54:9): [True: 0, False: 37.9k]
  |  Branch (54:26): [True: 0, False: 0]
  ------------------
   55|      0|        initialCapacity = maxCapacity;
   56|      0|    }
   57|  37.9k|    if (initialCapacity > static_cast<int32_t>(INT32_MAX / sizeof(int32_t))) {
  ------------------
  |  Branch (57:9): [True: 0, False: 37.9k]
  ------------------
   58|      0|        initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity);
  ------------------
  |  | 1529|      0|#define uprv_min U_ICU_ENTRY_POINT_RENAME(uprv_min)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      initialCapacity = uprv_min(DEFAULT_CAPACITY, maxCapacity);
  ------------------
  |  |   19|      0|#define DEFAULT_CAPACITY 8
  ------------------
   59|      0|    }
   60|  37.9k|    elements = static_cast<int32_t*>(uprv_malloc(sizeof(int32_t) * initialCapacity));
  ------------------
  |  | 1524|  37.9k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  37.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  37.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  37.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   61|  37.9k|    if (elements == nullptr) {
  ------------------
  |  Branch (61:9): [True: 0, False: 37.9k]
  ------------------
   62|      0|        status = U_MEMORY_ALLOCATION_ERROR;
   63|  37.9k|    } else {
   64|  37.9k|        capacity = initialCapacity;
   65|  37.9k|    }
   66|  37.9k|}
_ZN6icu_789UVector32D2Ev:
   68|  37.0k|UVector32::~UVector32() {
   69|  37.0k|    uprv_free(elements);
  ------------------
  |  | 1503|  37.0k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  37.0k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  37.0k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  37.0k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   70|  37.0k|    elements = nullptr;
   71|  37.0k|}
_ZN6icu_789UVector326assignERKS0_R10UErrorCode:
   76|  22.8k|void UVector32::assign(const UVector32& other, UErrorCode &ec) {
   77|  22.8k|    if (ensureCapacity(other.count, ec)) {
  ------------------
  |  Branch (77:9): [True: 22.8k, False: 0]
  ------------------
   78|  22.8k|        setSize(other.count);
   79|  74.4k|        for (int32_t i=0; i<other.count; ++i) {
  ------------------
  |  Branch (79:27): [True: 51.5k, False: 22.8k]
  ------------------
   80|  51.5k|            elements[i] = other.elements[i];
   81|  51.5k|        }
   82|  22.8k|    }
   83|  22.8k|}
_ZN6icu_789UVector3212setElementAtEii:
   98|  61.2k|void UVector32::setElementAt(int32_t elem, int32_t index) {
   99|  61.2k|    if (0 <= index && index < count) {
  ------------------
  |  Branch (99:9): [True: 61.2k, False: 0]
  |  Branch (99:23): [True: 61.2k, False: 0]
  ------------------
  100|  61.2k|        elements[index] = elem;
  101|  61.2k|    }
  102|       |    /* else index out of range */
  103|  61.2k|}
_ZN6icu_789UVector3214expandCapacityEiR10UErrorCode:
  200|  1.17k|UBool UVector32::expandCapacity(int32_t minimumCapacity, UErrorCode &status) {
  201|  1.17k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (201:9): [True: 0, False: 1.17k]
  ------------------
  202|      0|        return false;
  203|      0|    }
  204|  1.17k|    if (minimumCapacity < 0) {
  ------------------
  |  Branch (204:9): [True: 0, False: 1.17k]
  ------------------
  205|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  206|      0|        return false;
  207|      0|    }
  208|  1.17k|    if (capacity >= minimumCapacity) {
  ------------------
  |  Branch (208:9): [True: 0, False: 1.17k]
  ------------------
  209|      0|        return true;
  210|      0|    }
  211|  1.17k|    if (maxCapacity>0 && minimumCapacity>maxCapacity) {
  ------------------
  |  Branch (211:9): [True: 0, False: 1.17k]
  |  Branch (211:26): [True: 0, False: 0]
  ------------------
  212|      0|        status = U_BUFFER_OVERFLOW_ERROR;
  213|      0|        return false;
  214|      0|    }
  215|  1.17k|    if (capacity > (INT32_MAX - 1) / 2) {  // integer overflow check
  ------------------
  |  Branch (215:9): [True: 0, False: 1.17k]
  ------------------
  216|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  217|      0|        return false;
  218|      0|    }
  219|  1.17k|    int32_t newCap = capacity * 2;
  220|  1.17k|    if (newCap < minimumCapacity) {
  ------------------
  |  Branch (220:9): [True: 0, False: 1.17k]
  ------------------
  221|      0|        newCap = minimumCapacity;
  222|      0|    }
  223|  1.17k|    if (maxCapacity > 0 && newCap > maxCapacity) {
  ------------------
  |  Branch (223:9): [True: 0, False: 1.17k]
  |  Branch (223:28): [True: 0, False: 0]
  ------------------
  224|      0|        newCap = maxCapacity;
  225|      0|    }
  226|  1.17k|    if (newCap > static_cast<int32_t>(INT32_MAX / sizeof(int32_t))) { // integer overflow check
  ------------------
  |  Branch (226:9): [True: 0, False: 1.17k]
  ------------------
  227|       |        // We keep the original memory contents on bad minimumCapacity/maxCapacity.
  228|      0|        status = U_ILLEGAL_ARGUMENT_ERROR;
  229|      0|        return false;
  230|      0|    }
  231|  1.17k|    int32_t* newElems = static_cast<int32_t*>(uprv_realloc(elements, sizeof(int32_t) * newCap));
  ------------------
  |  | 1536|  1.17k|#define uprv_realloc U_ICU_ENTRY_POINT_RENAME(uprv_realloc)
  |  |  ------------------
  |  |  |  |  123|  1.17k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.17k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.17k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  232|  1.17k|    if (newElems == nullptr) {
  ------------------
  |  Branch (232:9): [True: 0, False: 1.17k]
  ------------------
  233|       |        // We keep the original contents on the memory failure on realloc.
  234|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  235|      0|        return false;
  236|      0|    }
  237|  1.17k|    elements = newElems;
  238|  1.17k|    capacity = newCap;
  239|  1.17k|    return true;
  240|  1.17k|}
_ZN6icu_789UVector327setSizeEi:
  278|  22.8k|void UVector32::setSize(int32_t newSize) {
  279|  22.8k|    int32_t i;
  280|  22.8k|    if (newSize < 0) {
  ------------------
  |  Branch (280:9): [True: 0, False: 22.8k]
  ------------------
  281|      0|        return;
  282|      0|    }
  283|  22.8k|    if (newSize > count) {
  ------------------
  |  Branch (283:9): [True: 22.8k, False: 0]
  ------------------
  284|  22.8k|        UErrorCode ec = U_ZERO_ERROR;
  285|  22.8k|        if (!ensureCapacity(newSize, ec)) {
  ------------------
  |  Branch (285:13): [True: 0, False: 22.8k]
  ------------------
  286|      0|            return;
  287|      0|        }
  288|  74.4k|        for (i=count; i<newSize; ++i) {
  ------------------
  |  Branch (288:23): [True: 51.5k, False: 22.8k]
  ------------------
  289|  51.5k|            elements[i] = 0;
  290|  51.5k|        }
  291|  22.8k|    } 
  292|  22.8k|    count = newSize;
  293|  22.8k|}

_ZN6icu_789UVector3210addElementEiR10UErrorCode:
  228|  59.2k|inline void UVector32::addElement(int32_t elem, UErrorCode &status) {
  229|  59.2k|    if (ensureCapacity(count + 1, status)) {
  ------------------
  |  Branch (229:9): [True: 59.2k, False: 0]
  ------------------
  230|  59.2k|        elements[count] = elem;
  231|  59.2k|        count++;
  232|  59.2k|    }
  233|  59.2k|}
_ZN6icu_789UVector3214ensureCapacityEiR10UErrorCode:
  215|   105k|inline UBool UVector32::ensureCapacity(int32_t minimumCapacity, UErrorCode &status) {
  216|   105k|    if ((minimumCapacity >= 0) && (capacity >= minimumCapacity)) {
  ------------------
  |  Branch (216:9): [True: 105k, False: 0]
  |  Branch (216:35): [True: 103k, False: 1.17k]
  ------------------
  217|   103k|        return true;
  218|   103k|    } else {
  219|  1.17k|        return expandCapacity(minimumCapacity, status);
  220|  1.17k|    }
  221|   105k|}
_ZNK6icu_789UVector3210elementAtiEi:
  223|   123k|inline int32_t UVector32::elementAti(int32_t index) const {
  224|   123k|    return (index >= 0 && count > 0 && count - index > 0) ? elements[index] : 0;
  ------------------
  |  Branch (224:13): [True: 123k, False: 0]
  |  Branch (224:27): [True: 123k, False: 0]
  |  Branch (224:40): [True: 123k, False: 0]
  ------------------
  225|   123k|}
_ZNK6icu_789UVector324sizeEv:
  255|   105k|inline int32_t UVector32::size() const {
  256|   105k|    return count;
  257|   105k|}

_ZN6icu_7813IFixedDecimalD2Ev:
   73|  45.2k|icu::IFixedDecimal::~IFixedDecimal() = default;

_ZN6icu_7820StandardPluralRanges9forLocaleERKNS_6LocaleER10UErrorCode:
   84|  11.4k|StandardPluralRanges::forLocale(const Locale& locale, UErrorCode& status) {
   85|  11.4k|    StandardPluralRanges result;
   86|  11.4k|    getPluralRangesData(locale, result, status);
   87|  11.4k|    return result;
   88|  11.4k|}
_ZNK6icu_7820StandardPluralRanges4copyER10UErrorCode:
   91|  15.0k|StandardPluralRanges::copy(UErrorCode& status) const {
   92|  15.0k|    StandardPluralRanges result;
   93|  15.0k|    if (fTriplesLen > result.fTriples.getCapacity()) {
  ------------------
  |  Branch (93:9): [True: 1.42k, False: 13.6k]
  ------------------
   94|  1.42k|        if (result.fTriples.resize(fTriplesLen) == nullptr) {
  ------------------
  |  Branch (94:13): [True: 0, False: 1.42k]
  ------------------
   95|      0|            status = U_MEMORY_ALLOCATION_ERROR;
   96|      0|            return result;
   97|      0|        }
   98|  1.42k|    }
   99|  15.0k|    uprv_memcpy(result.fTriples.getAlias(),
  ------------------
  |  |   42|  15.0k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  15.0k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  15.0k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  15.0k|    _Pragma("clang diagnostic push") \
  |  |   45|  15.0k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  15.0k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  15.0k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  15.0k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  15.0k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  15.0k|    _Pragma("clang diagnostic pop") \
  |  |   49|  15.0k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  15.0k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  15.0k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  15.0k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  100|  15.0k|        fTriples.getAlias(),
  101|  15.0k|        fTriplesLen * sizeof(fTriples[0]));
  102|  15.0k|    result.fTriplesLen = fTriplesLen;
  103|  15.0k|    return result;
  104|  15.0k|}
_ZNO6icu_7820StandardPluralRanges9toPointerER10UErrorCode:
  107|  26.5k|StandardPluralRanges::toPointer(UErrorCode& status) && noexcept {
  108|  26.5k|    return LocalPointer<StandardPluralRanges>(new StandardPluralRanges(std::move(*this)), status);
  109|  26.5k|}
_ZN6icu_7820StandardPluralRanges14addPluralRangeENS_14StandardPlural4FormES2_S2_:
  114|  20.9k|        StandardPlural::Form result) {
  115|  20.9k|    U_ASSERT(fTriplesLen < fTriples.getCapacity());
  ------------------
  |  |   35|  20.9k|#   define U_ASSERT(exp) (void)0
  ------------------
  116|  20.9k|    fTriples[fTriplesLen] = {first, second, result};
  117|  20.9k|    fTriplesLen++;
  118|  20.9k|}
_ZN6icu_7820StandardPluralRanges11setCapacityEiR10UErrorCode:
  120|  3.54k|void StandardPluralRanges::setCapacity(int32_t length, UErrorCode& status) {
  121|  3.54k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (121:9): [True: 0, False: 3.54k]
  ------------------
  122|  3.54k|    if (length > fTriples.getCapacity()) {
  ------------------
  |  Branch (122:9): [True: 961, False: 2.58k]
  ------------------
  123|    961|        if (fTriples.resize(length, 0) == nullptr) {
  ------------------
  |  Branch (123:13): [True: 0, False: 961]
  ------------------
  124|      0|            status = U_MEMORY_ALLOCATION_ERROR;
  125|      0|        }
  126|    961|    }
  127|  3.54k|}
pluralranges.cpp:_ZN6icu_7812_GLOBAL__N_119getPluralRangesDataERKNS_6LocaleERNS_20StandardPluralRangesER10UErrorCode:
   58|  11.4k|void getPluralRangesData(const Locale& locale, StandardPluralRanges& output, UErrorCode& status) {
   59|  11.4k|    LocalUResourceBundlePointer rb(ures_openDirect(nullptr, "pluralRanges", &status));
  ------------------
  |  | 1693|  11.4k|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|  11.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  11.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  11.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   60|  11.4k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (60:9): [True: 0, False: 11.4k]
  ------------------
   61|       |
   62|  11.4k|    CharString dataPath;
   63|  11.4k|    dataPath.append("locales/", -1, status);
   64|  11.4k|    dataPath.append(locale.getLanguage(), -1, status);
   65|  11.4k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (65:9): [True: 0, False: 11.4k]
  ------------------
   66|  11.4k|    int32_t setLen;
   67|       |    // Not all languages are covered: fail gracefully
   68|  11.4k|    UErrorCode internalStatus = U_ZERO_ERROR;
   69|  11.4k|    const char16_t* set = ures_getStringByKeyWithFallback(rb.getAlias(), dataPath.data(), &setLen, &internalStatus);
  ------------------
  |  | 1678|  11.4k|#define ures_getStringByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getStringByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|  11.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  11.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  11.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   70|  11.4k|    if (U_FAILURE(internalStatus)) { return; }
  ------------------
  |  Branch (70:9): [True: 7.91k, False: 3.54k]
  ------------------
   71|       |
   72|  3.54k|    dataPath.clear();
   73|  3.54k|    dataPath.append("rules/", -1, status);
   74|  3.54k|    dataPath.appendInvariantChars(set, setLen, status);
   75|  3.54k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (75:9): [True: 0, False: 3.54k]
  ------------------
   76|  3.54k|    PluralRangesDataSink sink(output);
   77|  3.54k|    ures_getAllItemsWithFallback(rb.getAlias(), dataPath.data(), sink, status);
  ------------------
  |  | 1658|  3.54k|#define ures_getAllItemsWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getAllItemsWithFallback)
  |  |  ------------------
  |  |  |  |  123|  3.54k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.54k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.54k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   78|  3.54k|}
pluralranges.cpp:_ZN6icu_7812_GLOBAL__N_120PluralRangesDataSinkC2ERNS_20StandardPluralRangesE:
   27|  3.54k|    PluralRangesDataSink(StandardPluralRanges& output) : fOutput(output) {}
pluralranges.cpp:_ZN6icu_7812_GLOBAL__N_120PluralRangesDataSink3putEPKcRNS_13ResourceValueEaR10UErrorCode:
   29|  3.54k|    void put(const char* /*key*/, ResourceValue& value, UBool /*noFallback*/, UErrorCode& status) override {
   30|  3.54k|        ResourceArray entriesArray = value.getArray(status);
   31|  3.54k|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (31:13): [True: 0, False: 3.54k]
  ------------------
   32|  3.54k|        fOutput.setCapacity(entriesArray.getSize(), status);
   33|  3.54k|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (33:13): [True: 0, False: 3.54k]
  ------------------
   34|  24.5k|        for (int i = 0; entriesArray.getValue(i, value); i++) {
  ------------------
  |  Branch (34:25): [True: 20.9k, False: 3.54k]
  ------------------
   35|  20.9k|            ResourceArray pluralFormsArray = value.getArray(status);
   36|  20.9k|            if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (36:17): [True: 0, False: 20.9k]
  ------------------
   37|  20.9k|            if (pluralFormsArray.getSize() != 3) {
  ------------------
  |  Branch (37:17): [True: 0, False: 20.9k]
  ------------------
   38|      0|                status = U_RESOURCE_TYPE_MISMATCH;
   39|      0|                return;
   40|      0|            }
   41|  20.9k|            pluralFormsArray.getValue(0, value);
   42|  20.9k|            StandardPlural::Form first = StandardPlural::fromString(value.getUnicodeString(status), status);
   43|  20.9k|            if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (43:17): [True: 0, False: 20.9k]
  ------------------
   44|  20.9k|            pluralFormsArray.getValue(1, value);
   45|  20.9k|            StandardPlural::Form second = StandardPlural::fromString(value.getUnicodeString(status), status);
   46|  20.9k|            if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (46:17): [True: 0, False: 20.9k]
  ------------------
   47|  20.9k|            pluralFormsArray.getValue(2, value);
   48|  20.9k|            StandardPlural::Form result = StandardPlural::fromString(value.getUnicodeString(status), status);
   49|  20.9k|            if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (49:17): [True: 0, False: 20.9k]
  ------------------
   50|  20.9k|            fOutput.addPluralRange(first, second, result);
   51|  20.9k|        }
   52|  3.54k|    }

_ZN6icu_7811PluralRulesC2ER10UErrorCode:
   79|  16.3k|:   UObject(),
   80|  16.3k|    mRules(nullptr),
   81|  16.3k|    mStandardPluralRanges(nullptr),
   82|  16.3k|    mInternalStatus(U_ZERO_ERROR)
   83|  16.3k|{
   84|  16.3k|}
_ZN6icu_7811PluralRulesC2ERKS0_:
   87|  15.0k|: UObject(other),
   88|  15.0k|    mRules(nullptr),
   89|  15.0k|    mStandardPluralRanges(nullptr),
   90|  15.0k|    mInternalStatus(U_ZERO_ERROR)
   91|  15.0k|{
   92|  15.0k|    *this=other;
   93|  15.0k|}
_ZN6icu_7811PluralRulesD2Ev:
   95|  30.3k|PluralRules::~PluralRules() {
   96|  30.3k|    delete mRules;
   97|  30.3k|    delete mStandardPluralRanges;
   98|  30.3k|}
_ZN6icu_7817SharedPluralRulesD2Ev:
  100|  3.64k|SharedPluralRules::~SharedPluralRules() {
  101|  3.64k|    delete ptr;
  102|  3.64k|}
_ZNK6icu_7811PluralRules5cloneER10UErrorCode:
  113|  15.0k|PluralRules::clone(UErrorCode& status) const {
  114|  15.0k|    LocalPointer<PluralRules> newObj(new PluralRules(*this), status);
  115|  15.0k|    if (U_SUCCESS(status) && U_FAILURE(newObj->mInternalStatus)) {
  ------------------
  |  Branch (115:9): [True: 15.0k, False: 0]
  |  Branch (115:30): [True: 0, False: 15.0k]
  ------------------
  116|      0|        status = newObj->mInternalStatus;
  117|      0|        newObj.adoptInstead(nullptr);
  118|      0|    }
  119|  15.0k|    return newObj.orphan();
  120|  15.0k|}
_ZN6icu_7811PluralRulesaSERKS0_:
  123|  15.0k|PluralRules::operator=(const PluralRules& other) {
  124|  15.0k|    if (this != &other) {
  ------------------
  |  Branch (124:9): [True: 15.0k, False: 0]
  ------------------
  125|  15.0k|        delete mRules;
  126|  15.0k|        mRules = nullptr;
  127|  15.0k|        delete mStandardPluralRanges;
  128|  15.0k|        mStandardPluralRanges = nullptr;
  129|  15.0k|        mInternalStatus = other.mInternalStatus;
  130|  15.0k|        if (U_FAILURE(mInternalStatus)) {
  ------------------
  |  Branch (130:13): [True: 0, False: 15.0k]
  ------------------
  131|       |            // bail out early if the object we were copying from was already 'invalid'.
  132|      0|            return *this;
  133|      0|        }
  134|  15.0k|        if (other.mRules != nullptr) {
  ------------------
  |  Branch (134:13): [True: 15.0k, False: 0]
  ------------------
  135|  15.0k|            mRules = new RuleChain(*other.mRules);
  136|  15.0k|            if (mRules == nullptr) {
  ------------------
  |  Branch (136:17): [True: 0, False: 15.0k]
  ------------------
  137|      0|                mInternalStatus = U_MEMORY_ALLOCATION_ERROR;
  138|      0|            }
  139|  15.0k|            else if (U_FAILURE(mRules->fInternalStatus)) {
  ------------------
  |  Branch (139:22): [True: 0, False: 15.0k]
  ------------------
  140|       |                // If the RuleChain wasn't fully copied, then set our status to failure as well.
  141|      0|                mInternalStatus = mRules->fInternalStatus;
  142|      0|            }
  143|  15.0k|        }
  144|  15.0k|        if (other.mStandardPluralRanges != nullptr) {
  ------------------
  |  Branch (144:13): [True: 15.0k, False: 0]
  ------------------
  145|  15.0k|            mStandardPluralRanges = other.mStandardPluralRanges->copy(mInternalStatus)
  146|  15.0k|                .toPointer(mInternalStatus)
  147|  15.0k|                .orphan();
  148|  15.0k|        }
  149|  15.0k|    }
  150|  15.0k|    return *this;
  151|  15.0k|}
_ZN6icu_7811PluralRules11createRulesERKNS_13UnicodeStringER10UErrorCode:
  166|  4.85k|PluralRules::createRules(const UnicodeString& description, UErrorCode& status) {
  167|  4.85k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (167:9): [True: 0, False: 4.85k]
  ------------------
  168|      0|        return nullptr;
  169|      0|    }
  170|  4.85k|    PluralRuleParser parser;
  171|  4.85k|    LocalPointer<PluralRules> newRules(new PluralRules(status), status);
  172|  4.85k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (172:9): [True: 0, False: 4.85k]
  ------------------
  173|      0|        return nullptr;
  174|      0|    }
  175|  4.85k|    parser.parse(description, newRules.getAlias(), status);
  176|  4.85k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (176:9): [True: 4.08k, False: 774]
  ------------------
  177|  4.08k|        newRules.adoptInstead(nullptr);
  178|  4.08k|    }
  179|  4.85k|    return newRules.orphan();
  180|  4.85k|}
_ZNK6icu_7814LocaleCacheKeyINS_17SharedPluralRulesEE12createObjectEPKvR10UErrorCode:
  193|  4.64k|        const void * /*unused*/, UErrorCode &status) const {
  194|  4.64k|    const char *localeId = fLoc.getName();
  195|  4.64k|    LocalPointer<PluralRules> pr(PluralRules::internalForLocale(localeId, UPLURAL_TYPE_CARDINAL, status), status);
  196|  4.64k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (196:9): [True: 0, False: 4.64k]
  ------------------
  197|      0|        return nullptr;
  198|      0|    }
  199|  4.64k|    LocalPointer<SharedPluralRules> result(new SharedPluralRules(pr.getAlias()), status);
  200|  4.64k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (200:9): [True: 0, False: 4.64k]
  ------------------
  201|      0|        return nullptr;
  202|      0|    }
  203|  4.64k|    pr.orphan(); // result was successfully created so it nows pr.
  204|  4.64k|    result->addRef();
  205|  4.64k|    return result.orphan();
  206|  4.64k|}
_ZN6icu_7811PluralRules20createSharedInstanceERKNS_6LocaleE11UPluralTypeR10UErrorCode:
  213|  15.0k|        const Locale& locale, UPluralType type, UErrorCode& status) {
  214|  15.0k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (214:9): [True: 0, False: 15.0k]
  ------------------
  215|      0|        return nullptr;
  216|      0|    }
  217|  15.0k|    if (type != UPLURAL_TYPE_CARDINAL) {
  ------------------
  |  Branch (217:9): [True: 0, False: 15.0k]
  ------------------
  218|      0|        status = U_UNSUPPORTED_ERROR;
  219|      0|        return nullptr;
  220|      0|    }
  221|  15.0k|    const SharedPluralRules *result = nullptr;
  222|  15.0k|    UnifiedCache::getByLocale(locale, result, status);
  223|  15.0k|    return result;
  224|  15.0k|}
_ZN6icu_7811PluralRules9forLocaleERKNS_6LocaleER10UErrorCode:
  227|  9.71k|PluralRules::forLocale(const Locale& locale, UErrorCode& status) {
  228|  9.71k|    return forLocale(locale, UPLURAL_TYPE_CARDINAL, status);
  229|  9.71k|}
_ZN6icu_7811PluralRules9forLocaleERKNS_6LocaleE11UPluralTypeR10UErrorCode:
  232|  29.1k|PluralRules::forLocale(const Locale& locale, UPluralType type, UErrorCode& status) {
  233|  29.1k|    if (type != UPLURAL_TYPE_CARDINAL) {
  ------------------
  |  Branch (233:9): [True: 14.0k, False: 15.0k]
  ------------------
  234|  14.0k|        return internalForLocale(locale, type, status);
  235|  14.0k|    }
  236|  15.0k|    const SharedPluralRules *shared = createSharedInstance(
  237|  15.0k|            locale, type, status);
  238|  15.0k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (238:9): [True: 0, False: 15.0k]
  ------------------
  239|      0|        return nullptr;
  240|      0|    }
  241|  15.0k|    PluralRules *result = (*shared)->clone(status);
  242|  15.0k|    shared->removeRef();
  243|  15.0k|    return result;
  244|  15.0k|}
_ZN6icu_7811PluralRules17internalForLocaleERKNS_6LocaleE11UPluralTypeR10UErrorCode:
  247|  18.7k|PluralRules::internalForLocale(const Locale& locale, UPluralType type, UErrorCode& status) {
  248|  18.7k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (248:9): [True: 0, False: 18.7k]
  ------------------
  249|      0|        return nullptr;
  250|      0|    }
  251|  18.7k|    if (type >= UPLURAL_TYPE_COUNT) {
  ------------------
  |  Branch (251:9): [True: 7.27k, False: 11.4k]
  ------------------
  252|  7.27k|        status = U_ILLEGAL_ARGUMENT_ERROR;
  253|  7.27k|        return nullptr;
  254|  7.27k|    }
  255|  11.4k|    LocalPointer<PluralRules> newObj(new PluralRules(status), status);
  256|  11.4k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (256:9): [True: 0, False: 11.4k]
  ------------------
  257|      0|        return nullptr;
  258|      0|    }
  259|  11.4k|    UnicodeString locRule = newObj->getRuleFromResource(locale, type, status);
  260|       |    // TODO: which other errors, if any, should be returned?
  261|  11.4k|    if (locRule.length() == 0) {
  ------------------
  |  Branch (261:9): [True: 8.14k, False: 3.32k]
  ------------------
  262|       |        // If an out-of-memory error occurred, then stop and report the failure.
  263|  8.14k|        if (status == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (263:13): [True: 0, False: 8.14k]
  ------------------
  264|      0|            return nullptr;
  265|      0|        }
  266|       |        // Locales with no specific rules (all numbers have the "other" category
  267|       |        //   will return a U_MISSING_RESOURCE_ERROR at this point. This is not
  268|       |        //   an error.
  269|  8.14k|        locRule =  UnicodeString(PLURAL_DEFAULT_RULE);
  270|  8.14k|        status = U_ZERO_ERROR;
  271|  8.14k|    }
  272|  11.4k|    PluralRuleParser parser;
  273|  11.4k|    parser.parse(locRule, newObj.getAlias(), status);
  274|       |        //  TODO: should rule parse errors be returned, or
  275|       |        //        should we silently use default rules?
  276|       |        //        Original impl used default rules.
  277|       |        //        Ask the question to ICU Core.
  278|       |
  279|  11.4k|    newObj->mStandardPluralRanges = StandardPluralRanges::forLocale(locale, status)
  280|  11.4k|        .toPointer(status)
  281|  11.4k|        .orphan();
  282|       |
  283|  11.4k|    return newObj.orphan();
  284|  11.4k|}
_ZNK6icu_7811PluralRules6selectEi:
  287|  22.6k|PluralRules::select(int32_t number) const {
  288|  22.6k|    return select(FixedDecimal(number));
  289|  22.6k|}
_ZNK6icu_7811PluralRules6selectEd:
  292|  22.6k|PluralRules::select(double number) const {
  293|  22.6k|    return select(FixedDecimal(number));
  294|  22.6k|}
_ZNK6icu_7811PluralRules6selectERKNS_13IFixedDecimalE:
  311|  45.2k|PluralRules::select(const IFixedDecimal &number) const {
  312|  45.2k|    if (mRules == nullptr) {
  ------------------
  |  Branch (312:9): [True: 636, False: 44.6k]
  ------------------
  313|    636|        return UnicodeString(true, PLURAL_DEFAULT_RULE, -1);
  314|    636|    }
  315|  44.6k|    else {
  316|  44.6k|        return mRules->select(number);
  317|  44.6k|    }
  318|  45.2k|}
_ZN6icu_7816PluralRuleParser5parseERKNS_13UnicodeStringEPNS_11PluralRulesER10UErrorCode:
  602|  16.3k|{
  603|  16.3k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (603:9): [True: 0, False: 16.3k]
  ------------------
  604|      0|        return;
  605|      0|    }
  606|  16.3k|    U_ASSERT(ruleIndex == 0);    // Parsers are good for a single use only!
  ------------------
  |  |   35|  16.3k|#   define U_ASSERT(exp) (void)0
  ------------------
  607|  16.3k|    ruleSrc = &ruleData;
  608|       |
  609|   246k|    while (ruleIndex< ruleSrc->length()) {
  ------------------
  |  Branch (609:12): [True: 234k, False: 12.2k]
  ------------------
  610|   234k|        getNextToken(status);
  611|   234k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (611:13): [True: 3.64k, False: 230k]
  ------------------
  612|  3.64k|            return;
  613|  3.64k|        }
  614|   230k|        checkSyntax(status);
  615|   230k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (615:13): [True: 351, False: 230k]
  ------------------
  616|    351|            return;
  617|    351|        }
  618|   230k|        switch (type) {
  619|  2.74k|        case tAnd:
  ------------------
  |  Branch (619:9): [True: 2.74k, False: 227k]
  ------------------
  620|  2.74k|            U_ASSERT(curAndConstraint != nullptr);
  ------------------
  |  |   35|  2.74k|#   define U_ASSERT(exp) (void)0
  ------------------
  621|  2.74k|            curAndConstraint = curAndConstraint->add(status);
  622|  2.74k|            break;
  623|  5.76k|        case tOr:
  ------------------
  |  Branch (623:9): [True: 5.76k, False: 224k]
  ------------------
  624|  5.76k|            {
  625|  5.76k|                U_ASSERT(currentChain != nullptr);
  ------------------
  |  |   35|  5.76k|#   define U_ASSERT(exp) (void)0
  ------------------
  626|  5.76k|                OrConstraint *orNode=currentChain->ruleHeader;
  627|   497k|                while (orNode->next != nullptr) {
  ------------------
  |  Branch (627:24): [True: 492k, False: 5.76k]
  ------------------
  628|   492k|                    orNode = orNode->next;
  629|   492k|                }
  630|  5.76k|                orNode->next= new OrConstraint();
  631|  5.76k|                if (orNode->next == nullptr) {
  ------------------
  |  Branch (631:21): [True: 0, False: 5.76k]
  ------------------
  632|      0|                    status = U_MEMORY_ALLOCATION_ERROR;
  633|      0|                    break;
  634|      0|                }
  635|  5.76k|                orNode=orNode->next;
  636|  5.76k|                orNode->next=nullptr;
  637|  5.76k|                curAndConstraint = orNode->add(status);
  638|  5.76k|            }
  639|      0|            break;
  640|  1.33k|        case tIs:
  ------------------
  |  Branch (640:9): [True: 1.33k, False: 229k]
  ------------------
  641|  1.33k|            U_ASSERT(curAndConstraint != nullptr);
  ------------------
  |  |   35|  1.33k|#   define U_ASSERT(exp) (void)0
  ------------------
  642|  1.33k|            U_ASSERT(curAndConstraint->value == -1);
  ------------------
  |  |   35|  1.33k|#   define U_ASSERT(exp) (void)0
  ------------------
  643|  1.33k|            U_ASSERT(curAndConstraint->rangeList == nullptr);
  ------------------
  |  |   35|  1.33k|#   define U_ASSERT(exp) (void)0
  ------------------
  644|  1.33k|            break;
  645|  1.40k|        case tNot:
  ------------------
  |  Branch (645:9): [True: 1.40k, False: 229k]
  ------------------
  646|  1.40k|            U_ASSERT(curAndConstraint != nullptr);
  ------------------
  |  |   35|  1.40k|#   define U_ASSERT(exp) (void)0
  ------------------
  647|  1.40k|            curAndConstraint->negated=true;
  648|  1.40k|            break;
  649|       |
  650|  2.69k|        case tNotEqual:
  ------------------
  |  Branch (650:9): [True: 2.69k, False: 227k]
  ------------------
  651|  2.69k|            curAndConstraint->negated=true;
  652|  2.69k|            U_FALLTHROUGH;
  ------------------
  |  |  511|  2.69k|#       define U_FALLTHROUGH [[clang::fallthrough]]
  ------------------
  653|  3.37k|        case tIn:
  ------------------
  |  Branch (653:9): [True: 688, False: 229k]
  ------------------
  654|  3.37k|        case tWithin:
  ------------------
  |  Branch (654:9): [True: 0, False: 230k]
  ------------------
  655|  15.0k|        case tEqual:
  ------------------
  |  Branch (655:9): [True: 11.6k, False: 218k]
  ------------------
  656|  15.0k|            {
  657|  15.0k|                U_ASSERT(curAndConstraint != nullptr);
  ------------------
  |  |   35|  15.0k|#   define U_ASSERT(exp) (void)0
  ------------------
  658|  15.0k|                if (curAndConstraint->rangeList != nullptr) {
  ------------------
  |  Branch (658:21): [True: 27, False: 15.0k]
  ------------------
  659|       |                    // Already get a '='.
  660|     27|                    status = U_UNEXPECTED_TOKEN;
  661|     27|                    break;
  662|     27|                }
  663|  15.0k|                LocalPointer<UVector32> newRangeList(new UVector32(status), status);
  664|  15.0k|                if (U_FAILURE(status)) {
  ------------------
  |  Branch (664:21): [True: 0, False: 15.0k]
  ------------------
  665|      0|                    break;
  666|      0|                }
  667|  15.0k|                curAndConstraint->rangeList = newRangeList.orphan();
  668|  15.0k|                curAndConstraint->rangeList->addElement(-1, status);  // range Low
  669|  15.0k|                curAndConstraint->rangeList->addElement(-1, status);  // range Hi
  670|  15.0k|                rangeLowIdx = 0;
  671|  15.0k|                rangeHiIdx  = 1;
  672|  15.0k|                curAndConstraint->value=PLURAL_RANGE_HIGH;
  673|  15.0k|                curAndConstraint->integerOnly = (type != tWithin);
  674|  15.0k|            }
  675|      0|            break;
  676|  48.3k|        case tNumber:
  ------------------
  |  Branch (676:9): [True: 48.3k, False: 182k]
  ------------------
  677|  48.3k|            U_ASSERT(curAndConstraint != nullptr);
  ------------------
  |  |   35|  48.3k|#   define U_ASSERT(exp) (void)0
  ------------------
  678|  48.3k|            if ( (curAndConstraint->op==AndConstraint::MOD)&&
  ------------------
  |  Branch (678:18): [True: 23.0k, False: 25.3k]
  ------------------
  679|  48.3k|                 (curAndConstraint->opNum == -1 ) ) {
  ------------------
  |  Branch (679:18): [True: 14.5k, False: 8.54k]
  ------------------
  680|  14.5k|                int32_t num = getNumberValue(token);
  681|  14.5k|                if (num == -1) {
  ------------------
  |  Branch (681:21): [True: 9, False: 14.5k]
  ------------------
  682|      9|                    status = U_UNEXPECTED_TOKEN;
  683|      9|                    break;
  684|      9|                }
  685|  14.5k|                curAndConstraint->opNum=num;
  686|  14.5k|            }
  687|  33.8k|            else {
  688|  33.8k|                if (curAndConstraint->rangeList == nullptr) {
  ------------------
  |  Branch (688:21): [True: 2.18k, False: 31.6k]
  ------------------
  689|       |                    // this is for an 'is' rule
  690|  2.18k|                    int32_t num = getNumberValue(token);
  691|  2.18k|                    if (num == -1) {
  ------------------
  |  Branch (691:25): [True: 10, False: 2.17k]
  ------------------
  692|     10|                        status = U_UNEXPECTED_TOKEN;
  693|     10|                        break;
  694|     10|                    }
  695|  2.17k|                    curAndConstraint->value = num;
  696|  31.6k|                } else {
  697|       |                    // this is for an 'in' or 'within' rule
  698|  31.6k|                    if (curAndConstraint->rangeList->elementAti(rangeLowIdx) == -1) {
  ------------------
  |  Branch (698:25): [True: 29.5k, False: 2.11k]
  ------------------
  699|  29.5k|                        int32_t num = getNumberValue(token);
  700|  29.5k|                        if (num == -1) {
  ------------------
  |  Branch (700:29): [True: 7, False: 29.5k]
  ------------------
  701|      7|                            status = U_UNEXPECTED_TOKEN;
  702|      7|                            break;
  703|      7|                        }
  704|  29.5k|                        curAndConstraint->rangeList->setElementAt(num, rangeLowIdx);
  705|  29.5k|                        curAndConstraint->rangeList->setElementAt(num, rangeHiIdx);
  706|  29.5k|                    }
  707|  2.11k|                    else {
  708|  2.11k|                        int32_t num = getNumberValue(token);
  709|  2.11k|                        if (num == -1) {
  ------------------
  |  Branch (709:29): [True: 1, False: 2.11k]
  ------------------
  710|      1|                            status = U_UNEXPECTED_TOKEN;
  711|      1|                            break;
  712|      1|                        }
  713|  2.11k|                        curAndConstraint->rangeList->setElementAt(num, rangeHiIdx);
  714|  2.11k|                        if (curAndConstraint->rangeList->elementAti(rangeLowIdx) >
  ------------------
  |  Branch (714:29): [True: 34, False: 2.08k]
  ------------------
  715|  2.11k|                                curAndConstraint->rangeList->elementAti(rangeHiIdx)) {
  716|       |                            // Range Lower bound > Range Upper bound.
  717|       |                            // U_UNEXPECTED_TOKEN seems a little funny, but it is consistently
  718|       |                            // used for all plural rule parse errors.
  719|     34|                            status = U_UNEXPECTED_TOKEN;
  720|     34|                            break;
  721|     34|                        }
  722|  2.11k|                    }
  723|  31.6k|                }
  724|  33.8k|            }
  725|  48.3k|            break;
  726|  48.3k|        case tComma:
  ------------------
  |  Branch (726:9): [True: 14.5k, False: 216k]
  ------------------
  727|       |            // TODO: rule syntax checking is inadequate, can happen with badly formed rules.
  728|       |            //       Catch cases like "n mod 10, is 1" here instead.
  729|  14.5k|            if (curAndConstraint == nullptr || curAndConstraint->rangeList == nullptr) {
  ------------------
  |  Branch (729:17): [True: 0, False: 14.5k]
  |  Branch (729:48): [True: 1, False: 14.5k]
  ------------------
  730|      1|                status = U_UNEXPECTED_TOKEN;
  731|      1|                break;
  732|      1|            }
  733|  14.5k|            U_ASSERT(curAndConstraint->rangeList->size() >= 2);
  ------------------
  |  |   35|  14.5k|#   define U_ASSERT(exp) (void)0
  ------------------
  734|  14.5k|            rangeLowIdx = curAndConstraint->rangeList->size();
  735|  14.5k|            curAndConstraint->rangeList->addElement(-1, status);  // range Low
  736|  14.5k|            rangeHiIdx = curAndConstraint->rangeList->size();
  737|  14.5k|            curAndConstraint->rangeList->addElement(-1, status);  // range Hi
  738|  14.5k|            break;
  739|  14.5k|        case tMod:
  ------------------
  |  Branch (739:9): [True: 14.5k, False: 216k]
  ------------------
  740|  14.5k|            U_ASSERT(curAndConstraint != nullptr);
  ------------------
  |  |   35|  14.5k|#   define U_ASSERT(exp) (void)0
  ------------------
  741|  14.5k|            curAndConstraint->op=AndConstraint::MOD;
  742|  14.5k|            break;
  743|  12.1k|        case tVariableN:
  ------------------
  |  Branch (743:9): [True: 12.1k, False: 218k]
  ------------------
  744|  14.9k|        case tVariableI:
  ------------------
  |  Branch (744:9): [True: 2.84k, False: 227k]
  ------------------
  745|  15.5k|        case tVariableF:
  ------------------
  |  Branch (745:9): [True: 511, False: 230k]
  ------------------
  746|  15.8k|        case tVariableT:
  ------------------
  |  Branch (746:9): [True: 307, False: 230k]
  ------------------
  747|  24.4k|        case tVariableE:
  ------------------
  |  Branch (747:9): [True: 8.67k, False: 221k]
  ------------------
  748|  33.2k|        case tVariableC:
  ------------------
  |  Branch (748:9): [True: 8.78k, False: 221k]
  ------------------
  749|  34.3k|        case tVariableV:
  ------------------
  |  Branch (749:9): [True: 1.04k, False: 229k]
  ------------------
  750|  34.3k|            U_ASSERT(curAndConstraint != nullptr);
  ------------------
  |  |   35|  34.3k|#   define U_ASSERT(exp) (void)0
  ------------------
  751|  34.3k|            curAndConstraint->digitsType = type;
  752|  34.3k|            break;
  753|  29.3k|        case tKeyword:
  ------------------
  |  Branch (753:9): [True: 29.3k, False: 201k]
  ------------------
  754|  29.3k|            {
  755|  29.3k|            RuleChain *newChain = new RuleChain;
  756|  29.3k|            if (newChain == nullptr) {
  ------------------
  |  Branch (756:17): [True: 0, False: 29.3k]
  ------------------
  757|      0|                status = U_MEMORY_ALLOCATION_ERROR;
  758|      0|                break;
  759|      0|            }
  760|  29.3k|            newChain->fKeyword = token;
  761|  29.3k|            if (prules->mRules == nullptr) {
  ------------------
  |  Branch (761:17): [True: 12.3k, False: 17.0k]
  ------------------
  762|  12.3k|                prules->mRules = newChain;
  763|  17.0k|            } else {
  764|       |                // The new rule chain goes at the end of the linked list of rule chains,
  765|       |                //   unless there is an "other" keyword & chain. "other" must remain last.
  766|  17.0k|                RuleChain *insertAfter = prules->mRules;
  767|   827k|                while (insertAfter->fNext!=nullptr &&
  ------------------
  |  Branch (767:24): [True: 811k, False: 16.3k]
  |  Branch (767:24): [True: 810k, False: 17.0k]
  ------------------
  768|   827k|                       insertAfter->fNext->fKeyword.compare(PLURAL_KEYWORD_OTHER, 5) != 0 ){
  ------------------
  |  Branch (768:24): [True: 810k, False: 772]
  ------------------
  769|   810k|                    insertAfter=insertAfter->fNext;
  770|   810k|                }
  771|  17.0k|                newChain->fNext = insertAfter->fNext;
  772|  17.0k|                insertAfter->fNext = newChain;
  773|  17.0k|            }
  774|  29.3k|            OrConstraint *orNode = new OrConstraint();
  775|  29.3k|            if (orNode == nullptr) {
  ------------------
  |  Branch (775:17): [True: 0, False: 29.3k]
  ------------------
  776|      0|                status = U_MEMORY_ALLOCATION_ERROR;
  777|      0|                break;
  778|      0|            }
  779|  29.3k|            newChain->ruleHeader = orNode;
  780|  29.3k|            curAndConstraint = orNode->add(status);
  781|  29.3k|            currentChain = newChain;
  782|  29.3k|            }
  783|      0|            break;
  784|       |
  785|  7.70k|        case tInteger:
  ------------------
  |  Branch (785:9): [True: 7.70k, False: 222k]
  ------------------
  786|   116k|            for (;;) {
  787|   116k|                getNextToken(status);
  788|   116k|                if (U_FAILURE(status) || type == tSemiColon || type == tEOF || type == tAt) {
  ------------------
  |  Branch (788:21): [True: 0, False: 116k]
  |  Branch (788:42): [True: 4.07k, False: 112k]
  |  Branch (788:64): [True: 0, False: 112k]
  |  Branch (788:80): [True: 3.63k, False: 109k]
  ------------------
  789|  7.70k|                    break;
  790|  7.70k|                }
  791|   109k|                if (type == tEllipsis) {
  ------------------
  |  Branch (791:21): [True: 5.27k, False: 103k]
  ------------------
  792|  5.27k|                    currentChain->fIntegerSamplesUnbounded = true;
  793|  5.27k|                    continue;
  794|  5.27k|                }
  795|   103k|                currentChain->fIntegerSamples.append(token);
  796|   103k|            }
  797|  7.70k|            break;
  798|       |
  799|  3.69k|        case tDecimal:
  ------------------
  |  Branch (799:9): [True: 3.69k, False: 226k]
  ------------------
  800|   125k|            for (;;) {
  801|   125k|                getNextToken(status);
  802|   125k|                if (U_FAILURE(status) || type == tSemiColon || type == tEOF || type == tAt) {
  ------------------
  |  Branch (802:21): [True: 0, False: 125k]
  |  Branch (802:42): [True: 3.69k, False: 121k]
  |  Branch (802:64): [True: 0, False: 121k]
  |  Branch (802:80): [True: 0, False: 121k]
  ------------------
  803|  3.69k|                    break;
  804|  3.69k|                }
  805|   121k|                if (type == tEllipsis) {
  ------------------
  |  Branch (805:21): [True: 2.44k, False: 118k]
  ------------------
  806|  2.44k|                    currentChain->fDecimalSamplesUnbounded = true;
  807|  2.44k|                    continue;
  808|  2.44k|                }
  809|   118k|                currentChain->fDecimalSamples.append(token);
  810|   118k|            }
  811|  3.69k|            break;
  812|       |
  813|  51.6k|        default:
  ------------------
  |  Branch (813:9): [True: 51.6k, False: 178k]
  ------------------
  814|  51.6k|            break;
  815|   230k|        }
  816|   230k|        prevType=type;
  817|   230k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (817:13): [True: 89, False: 230k]
  ------------------
  818|     89|            break;
  819|     89|        }
  820|   230k|    }
  821|  16.3k|}
_ZN6icu_7811PluralRules19getRuleFromResourceERKNS_6LocaleE11UPluralTypeR10UErrorCode:
  824|  11.4k|PluralRules::getRuleFromResource(const Locale& locale, UPluralType type, UErrorCode& errCode) {
  825|  11.4k|    UnicodeString emptyStr;
  826|       |
  827|  11.4k|    if (U_FAILURE(errCode)) {
  ------------------
  |  Branch (827:9): [True: 0, False: 11.4k]
  ------------------
  828|      0|        return emptyStr;
  829|      0|    }
  830|  11.4k|    LocalUResourceBundlePointer rb(ures_openDirect(nullptr, "plurals", &errCode));
  ------------------
  |  | 1693|  11.4k|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|  11.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  11.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  11.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  831|  11.4k|    if(U_FAILURE(errCode)) {
  ------------------
  |  Branch (831:8): [True: 0, False: 11.4k]
  ------------------
  832|      0|        return emptyStr;
  833|      0|    }
  834|  11.4k|    const char *typeKey;
  835|  11.4k|    switch (type) {
  836|  4.64k|    case UPLURAL_TYPE_CARDINAL:
  ------------------
  |  Branch (836:5): [True: 4.64k, False: 6.81k]
  ------------------
  837|  4.64k|        typeKey = "locales";
  838|  4.64k|        break;
  839|  4.00k|    case UPLURAL_TYPE_ORDINAL:
  ------------------
  |  Branch (839:5): [True: 4.00k, False: 7.46k]
  ------------------
  840|  4.00k|        typeKey = "locales_ordinals";
  841|  4.00k|        break;
  842|  2.81k|    default:
  ------------------
  |  Branch (842:5): [True: 2.81k, False: 8.64k]
  ------------------
  843|       |        // Must not occur: The caller should have checked for valid types.
  844|  2.81k|        errCode = U_ILLEGAL_ARGUMENT_ERROR;
  845|  2.81k|        return emptyStr;
  846|  11.4k|    }
  847|  8.64k|    LocalUResourceBundlePointer locRes(ures_getByKey(rb.getAlias(), typeKey, nullptr, &errCode));
  ------------------
  |  | 1661|  8.64k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  8.64k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  8.64k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  8.64k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  848|  8.64k|    if(U_FAILURE(errCode)) {
  ------------------
  |  Branch (848:8): [True: 0, False: 8.64k]
  ------------------
  849|      0|        return emptyStr;
  850|      0|    }
  851|  8.64k|    int32_t resLen=0;
  852|  8.64k|    const char *curLocaleName=locale.getBaseName();
  853|  8.64k|    const char16_t* s = ures_getStringByKey(locRes.getAlias(), curLocaleName, &resLen, &errCode);
  ------------------
  |  | 1677|  8.64k|#define ures_getStringByKey U_ICU_ENTRY_POINT_RENAME(ures_getStringByKey)
  |  |  ------------------
  |  |  |  |  123|  8.64k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  8.64k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  8.64k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  854|       |
  855|  8.64k|    if (s == nullptr) {
  ------------------
  |  Branch (855:9): [True: 7.56k, False: 1.08k]
  ------------------
  856|       |        // Check parent locales.
  857|  7.56k|        UErrorCode status = U_ZERO_ERROR;
  858|  7.56k|        const char *curLocaleName2=locale.getBaseName();
  859|  7.56k|        CharString parentLocaleName(curLocaleName2, status);
  860|       |
  861|  41.9k|        for (;;) {
  862|  41.9k|            {
  863|  41.9k|                CharString tmp = ulocimp_getParent(parentLocaleName.data(), status);
  ------------------
  |  | 1205|  41.9k|#define ulocimp_getParent U_ICU_ENTRY_POINT_RENAME(ulocimp_getParent)
  |  |  ------------------
  |  |  |  |  123|  41.9k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  41.9k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  41.9k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  864|  41.9k|                if (tmp.isEmpty()) break;
  ------------------
  |  Branch (864:21): [True: 5.32k, False: 36.6k]
  ------------------
  865|  36.6k|                parentLocaleName = std::move(tmp);
  866|  36.6k|            }
  867|      0|            resLen=0;
  868|  36.6k|            s = ures_getStringByKey(locRes.getAlias(), parentLocaleName.data(), &resLen, &status);
  ------------------
  |  | 1677|  36.6k|#define ures_getStringByKey U_ICU_ENTRY_POINT_RENAME(ures_getStringByKey)
  |  |  ------------------
  |  |  |  |  123|  36.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  36.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  36.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  869|  36.6k|            if (s != nullptr) {
  ------------------
  |  Branch (869:17): [True: 2.23k, False: 34.4k]
  ------------------
  870|  2.23k|                errCode = U_ZERO_ERROR;
  871|  2.23k|                break;
  872|  2.23k|            }
  873|  34.4k|            status = U_ZERO_ERROR;
  874|  34.4k|        }
  875|  7.56k|    }
  876|  8.64k|    if (s==nullptr) {
  ------------------
  |  Branch (876:9): [True: 5.32k, False: 3.32k]
  ------------------
  877|  5.32k|        return emptyStr;
  878|  5.32k|    }
  879|       |
  880|  3.32k|    char setKey[256];
  881|  3.32k|    u_UCharsToChars(s, setKey, resLen + 1);
  ------------------
  |  |  211|  3.32k|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|  3.32k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.32k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.32k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  882|       |    // printf("\n PluralRule: %s\n", setKey);
  883|       |
  884|  3.32k|    LocalUResourceBundlePointer ruleRes(ures_getByKey(rb.getAlias(), "rules", nullptr, &errCode));
  ------------------
  |  | 1661|  3.32k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  3.32k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.32k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.32k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  885|  3.32k|    if(U_FAILURE(errCode)) {
  ------------------
  |  Branch (885:8): [True: 0, False: 3.32k]
  ------------------
  886|      0|        return emptyStr;
  887|      0|    }
  888|  3.32k|    LocalUResourceBundlePointer setRes(ures_getByKey(ruleRes.getAlias(), setKey, nullptr, &errCode));
  ------------------
  |  | 1661|  3.32k|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|  3.32k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.32k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.32k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  889|  3.32k|    if (U_FAILURE(errCode)) {
  ------------------
  |  Branch (889:9): [True: 0, False: 3.32k]
  ------------------
  890|      0|        return emptyStr;
  891|      0|    }
  892|       |
  893|  3.32k|    int32_t numberKeys = ures_getSize(setRes.getAlias());
  ------------------
  |  | 1674|  3.32k|#define ures_getSize U_ICU_ENTRY_POINT_RENAME(ures_getSize)
  |  |  ------------------
  |  |  |  |  123|  3.32k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.32k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.32k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  894|  3.32k|    UnicodeString result;
  895|  3.32k|    const char *key=nullptr;
  896|  11.0k|    for(int32_t i=0; i<numberKeys; ++i) {   // Keys are zero, one, few, ...
  ------------------
  |  Branch (896:22): [True: 7.77k, False: 3.32k]
  ------------------
  897|  7.77k|        UnicodeString rules = ures_getNextUnicodeString(setRes.getAlias(), &key, &errCode);
  898|  7.77k|        UnicodeString uKey(key, -1, US_INV);
  ------------------
  |  |   98|  7.77k|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  899|  7.77k|        result.append(uKey);
  900|  7.77k|        result.append(COLON);
  901|  7.77k|        result.append(rules);
  902|  7.77k|        result.append(SEMI_COLON);
  903|  7.77k|    }
  904|  3.32k|    return result;
  905|  3.32k|}
_ZN6icu_7813AndConstraintC2ERKS0_:
  917|  37.9k|AndConstraint::AndConstraint(const AndConstraint& other) {
  918|  37.9k|    this->fInternalStatus = other.fInternalStatus;
  919|  37.9k|    if (U_FAILURE(fInternalStatus)) {
  ------------------
  |  Branch (919:9): [True: 0, False: 37.9k]
  ------------------
  920|      0|        return; // stop early if the object we are copying from is invalid.
  921|      0|    }
  922|  37.9k|    this->op = other.op;
  923|  37.9k|    this->opNum=other.opNum;
  924|  37.9k|    this->value=other.value;
  925|  37.9k|    if (other.rangeList != nullptr) {
  ------------------
  |  Branch (925:9): [True: 22.8k, False: 15.0k]
  ------------------
  926|  22.8k|        LocalPointer<UVector32> newRangeList(new UVector32(fInternalStatus), fInternalStatus);
  927|  22.8k|        if (U_FAILURE(fInternalStatus)) {
  ------------------
  |  Branch (927:13): [True: 0, False: 22.8k]
  ------------------
  928|      0|            return;
  929|      0|        }
  930|  22.8k|        this->rangeList = newRangeList.orphan();
  931|  22.8k|        this->rangeList->assign(*other.rangeList, fInternalStatus);
  932|  22.8k|    }
  933|  37.9k|    this->integerOnly=other.integerOnly;
  934|  37.9k|    this->negated=other.negated;
  935|  37.9k|    this->digitsType = other.digitsType;
  936|  37.9k|    if (other.next != nullptr) {
  ------------------
  |  Branch (936:9): [True: 8.44k, False: 29.4k]
  ------------------
  937|  8.44k|        this->next = new AndConstraint(*other.next);
  938|  8.44k|        if (this->next == nullptr) {
  ------------------
  |  Branch (938:13): [True: 0, False: 8.44k]
  ------------------
  939|      0|            fInternalStatus = U_MEMORY_ALLOCATION_ERROR;
  940|      0|        }
  941|  8.44k|    }
  942|  37.9k|}
_ZN6icu_7813AndConstraintD2Ev:
  944|  73.9k|AndConstraint::~AndConstraint() {
  945|  73.9k|    delete rangeList;
  946|  73.9k|    rangeList = nullptr;
  947|  73.9k|    delete next;
  948|  73.9k|    next = nullptr;
  949|  73.9k|}
_ZN6icu_7813AndConstraint11isFulfilledERKNS_13IFixedDecimalE:
  952|  81.9k|AndConstraint::isFulfilled(const IFixedDecimal &number) {
  953|  81.9k|    UBool result = true;
  954|  81.9k|    if (digitsType == none) {
  ------------------
  |  Branch (954:9): [True: 15.1k, False: 66.8k]
  ------------------
  955|       |        // An empty AndConstraint, created by a rule with a keyword but no following expression.
  956|  15.1k|        return true;
  957|  15.1k|    }
  958|       |
  959|  66.8k|    PluralOperand operand = tokenTypeToPluralOperand(digitsType);
  960|  66.8k|    double n = number.getPluralOperand(operand);     // pulls n | i | v | f value for the number.
  961|       |                                                     // Will always be positive.
  962|       |                                                     // May be non-integer (n option only)
  963|  66.8k|    do {
  964|  66.8k|        if (integerOnly && n != uprv_floor(n)) {
  ------------------
  |  | 1499|  40.4k|#define uprv_floor U_ICU_ENTRY_POINT_RENAME(uprv_floor)
  |  |  ------------------
  |  |  |  |  123|  40.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  40.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  40.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (964:13): [True: 40.4k, False: 26.3k]
  |  Branch (964:28): [True: 5.02k, False: 35.4k]
  ------------------
  965|  5.02k|            result = false;
  966|  5.02k|            break;
  967|  5.02k|        }
  968|       |
  969|  61.8k|        if (op == MOD) {
  ------------------
  |  Branch (969:13): [True: 9.21k, False: 52.5k]
  ------------------
  970|  9.21k|            n = fmod(n, opNum);
  971|  9.21k|        }
  972|  61.8k|        if (rangeList == nullptr) {
  ------------------
  |  Branch (972:13): [True: 26.3k, False: 35.4k]
  ------------------
  973|  26.3k|            result = value == -1 ||    // empty rule
  ------------------
  |  Branch (973:22): [True: 25.5k, False: 842]
  ------------------
  974|  26.3k|                     n == value;       //  'is' rule
  ------------------
  |  Branch (974:22): [True: 343, False: 499]
  ------------------
  975|  26.3k|            break;
  976|  26.3k|        }
  977|  35.4k|        result = false;                // 'in' or 'within' rule
  978|  76.2k|        for (int32_t r=0; r<rangeList->size(); r+=2) {
  ------------------
  |  Branch (978:27): [True: 50.1k, False: 26.1k]
  ------------------
  979|  50.1k|            if (rangeList->elementAti(r) <= n && n <= rangeList->elementAti(r+1)) {
  ------------------
  |  Branch (979:17): [True: 37.6k, False: 12.4k]
  |  Branch (979:50): [True: 9.27k, False: 28.3k]
  ------------------
  980|  9.27k|                result = true;
  981|  9.27k|                break;
  982|  9.27k|            }
  983|  50.1k|        }
  984|  35.4k|    } while (false);
  ------------------
  |  Branch (984:14): [Folded - Ignored]
  ------------------
  985|       |
  986|  66.8k|    if (negated) {
  ------------------
  |  Branch (986:9): [True: 5.63k, False: 61.1k]
  ------------------
  987|  5.63k|        result = !result;
  988|  5.63k|    }
  989|  66.8k|    return result;
  990|  81.9k|}
_ZN6icu_7813AndConstraint3addER10UErrorCode:
  993|  2.74k|AndConstraint::add(UErrorCode& status) {
  994|  2.74k|    if (U_FAILURE(fInternalStatus)) {
  ------------------
  |  Branch (994:9): [True: 0, False: 2.74k]
  ------------------
  995|      0|        status = fInternalStatus;
  996|      0|        return nullptr;
  997|      0|    }
  998|  2.74k|    this->next = new AndConstraint();
  999|  2.74k|    if (this->next == nullptr) {
  ------------------
  |  Branch (999:9): [True: 0, False: 2.74k]
  ------------------
 1000|      0|        status = U_MEMORY_ALLOCATION_ERROR;
 1001|      0|    }
 1002|  2.74k|    return this->next;
 1003|  2.74k|}
_ZN6icu_7812OrConstraintC2ERKS0_:
 1006|  29.4k|OrConstraint::OrConstraint(const OrConstraint& other) {
 1007|  29.4k|    this->fInternalStatus = other.fInternalStatus;
 1008|  29.4k|    if (U_FAILURE(fInternalStatus)) {
  ------------------
  |  Branch (1008:9): [True: 0, False: 29.4k]
  ------------------
 1009|      0|        return; // stop early if the object we are copying from is invalid.
 1010|      0|    }
 1011|  29.4k|    if ( other.childNode != nullptr ) {
  ------------------
  |  Branch (1011:10): [True: 29.4k, False: 0]
  ------------------
 1012|  29.4k|        this->childNode = new AndConstraint(*(other.childNode));
 1013|  29.4k|        if (this->childNode == nullptr) {
  ------------------
  |  Branch (1013:13): [True: 0, False: 29.4k]
  ------------------
 1014|      0|            fInternalStatus = U_MEMORY_ALLOCATION_ERROR;
 1015|      0|            return;
 1016|      0|        }
 1017|  29.4k|    }
 1018|  29.4k|    if (other.next != nullptr ) {
  ------------------
  |  Branch (1018:9): [True: 2.91k, False: 26.5k]
  ------------------
 1019|  2.91k|        this->next = new OrConstraint(*(other.next));
 1020|  2.91k|        if (this->next == nullptr) {
  ------------------
  |  Branch (1020:13): [True: 0, False: 2.91k]
  ------------------
 1021|      0|            fInternalStatus = U_MEMORY_ALLOCATION_ERROR;
 1022|      0|            return;
 1023|      0|        }
 1024|  2.91k|        if (U_FAILURE(this->next->fInternalStatus)) {
  ------------------
  |  Branch (1024:13): [True: 0, False: 2.91k]
  ------------------
 1025|      0|            this->fInternalStatus = this->next->fInternalStatus;
 1026|      0|        }
 1027|  2.91k|    }
 1028|  29.4k|}
_ZN6icu_7812OrConstraintD2Ev:
 1030|  63.0k|OrConstraint::~OrConstraint() {
 1031|  63.0k|    delete childNode;
 1032|  63.0k|    childNode = nullptr;
 1033|  63.0k|    delete next;
 1034|  63.0k|    next = nullptr;
 1035|  63.0k|}
_ZN6icu_7812OrConstraint3addER10UErrorCode:
 1038|  35.1k|OrConstraint::add(UErrorCode& status) {
 1039|  35.1k|    if (U_FAILURE(fInternalStatus)) {
  ------------------
  |  Branch (1039:9): [True: 0, False: 35.1k]
  ------------------
 1040|      0|        status = fInternalStatus;
 1041|      0|        return nullptr;
 1042|      0|    }
 1043|  35.1k|    OrConstraint *curOrConstraint=this;
 1044|  35.1k|    {
 1045|  35.1k|        while (curOrConstraint->next!=nullptr) {
  ------------------
  |  Branch (1045:16): [True: 0, False: 35.1k]
  ------------------
 1046|      0|            curOrConstraint = curOrConstraint->next;
 1047|      0|        }
 1048|  35.1k|        U_ASSERT(curOrConstraint->childNode == nullptr);
  ------------------
  |  |   35|  35.1k|#   define U_ASSERT(exp) (void)0
  ------------------
 1049|  35.1k|        curOrConstraint->childNode = new AndConstraint();
 1050|  35.1k|        if (curOrConstraint->childNode == nullptr) {
  ------------------
  |  Branch (1050:13): [True: 0, False: 35.1k]
  ------------------
 1051|      0|            status = U_MEMORY_ALLOCATION_ERROR;
 1052|      0|        }
 1053|  35.1k|    }
 1054|  35.1k|    return curOrConstraint->childNode;
 1055|  35.1k|}
_ZN6icu_7812OrConstraint11isFulfilledERKNS_13IFixedDecimalE:
 1058|  70.9k|OrConstraint::isFulfilled(const IFixedDecimal &number) {
 1059|  70.9k|    OrConstraint* orRule=this;
 1060|  70.9k|    UBool result=false;
 1061|       |
 1062|   147k|    while (orRule!=nullptr && !result) {
  ------------------
  |  Branch (1062:12): [True: 77.0k, False: 70.1k]
  |  Branch (1062:31): [True: 76.2k, False: 774]
  ------------------
 1063|  76.2k|        result=true;
 1064|  76.2k|        AndConstraint* andRule = orRule->childNode;
 1065|   158k|        while (andRule!=nullptr && result) {
  ------------------
  |  Branch (1065:16): [True: 91.7k, False: 66.4k]
  |  Branch (1065:36): [True: 81.9k, False: 9.78k]
  ------------------
 1066|  81.9k|            result = andRule->isFulfilled(number);
 1067|  81.9k|            andRule=andRule->next;
 1068|  81.9k|        }
 1069|  76.2k|        orRule = orRule->next;
 1070|  76.2k|    }
 1071|       |
 1072|  70.9k|    return result;
 1073|  70.9k|}
_ZN6icu_789RuleChainC2ERKS0_:
 1077|  26.5k|        fKeyword(other.fKeyword), fDecimalSamples(other.fDecimalSamples),
 1078|  26.5k|        fIntegerSamples(other.fIntegerSamples), fDecimalSamplesUnbounded(other.fDecimalSamplesUnbounded),
 1079|  26.5k|        fIntegerSamplesUnbounded(other.fIntegerSamplesUnbounded), fInternalStatus(other.fInternalStatus) {
 1080|  26.5k|    if (U_FAILURE(this->fInternalStatus)) {
  ------------------
  |  Branch (1080:9): [True: 0, False: 26.5k]
  ------------------
 1081|      0|        return; // stop early if the object we are copying from is invalid. 
 1082|      0|    }
 1083|  26.5k|    if (other.ruleHeader != nullptr) {
  ------------------
  |  Branch (1083:9): [True: 26.5k, False: 0]
  ------------------
 1084|  26.5k|        this->ruleHeader = new OrConstraint(*(other.ruleHeader));
 1085|  26.5k|        if (this->ruleHeader == nullptr) {
  ------------------
  |  Branch (1085:13): [True: 0, False: 26.5k]
  ------------------
 1086|      0|            this->fInternalStatus = U_MEMORY_ALLOCATION_ERROR;
 1087|      0|        }
 1088|  26.5k|        else if (U_FAILURE(this->ruleHeader->fInternalStatus)) {
  ------------------
  |  Branch (1088:18): [True: 0, False: 26.5k]
  ------------------
 1089|       |            // If the OrConstraint wasn't fully copied, then set our status to failure as well.
 1090|      0|            this->fInternalStatus = this->ruleHeader->fInternalStatus;
 1091|      0|            return; // exit early.
 1092|      0|        }
 1093|  26.5k|    }
 1094|  26.5k|    if (other.fNext != nullptr ) {
  ------------------
  |  Branch (1094:9): [True: 11.5k, False: 15.0k]
  ------------------
 1095|  11.5k|        this->fNext = new RuleChain(*other.fNext);
 1096|  11.5k|        if (this->fNext == nullptr) {
  ------------------
  |  Branch (1096:13): [True: 0, False: 11.5k]
  ------------------
 1097|      0|            this->fInternalStatus = U_MEMORY_ALLOCATION_ERROR;
 1098|      0|        }
 1099|  11.5k|        else if (U_FAILURE(this->fNext->fInternalStatus)) {
  ------------------
  |  Branch (1099:18): [True: 0, False: 11.5k]
  ------------------
 1100|       |            // If the RuleChain wasn't fully copied, then set our status to failure as well.
 1101|      0|            this->fInternalStatus = this->fNext->fInternalStatus;
 1102|      0|        }
 1103|  11.5k|    }
 1104|  26.5k|}
_ZN6icu_789RuleChainD2Ev:
 1106|  54.5k|RuleChain::~RuleChain() {
 1107|  54.5k|    delete fNext;
 1108|  54.5k|    delete ruleHeader;
 1109|  54.5k|}
_ZNK6icu_789RuleChain6selectERKNS_13IFixedDecimalE:
 1112|  44.6k|RuleChain::select(const IFixedDecimal &number) const {
 1113|  44.6k|    if (!number.isNaN() && !number.isInfinite()) {
  ------------------
  |  Branch (1113:9): [True: 43.6k, False: 988]
  |  Branch (1113:28): [True: 43.6k, False: 27]
  ------------------
 1114|  71.2k|        for (const RuleChain *rules = this; rules != nullptr; rules = rules->fNext) {
  ------------------
  |  Branch (1114:45): [True: 70.9k, False: 323]
  ------------------
 1115|  70.9k|             if (rules->ruleHeader->isFulfilled(number)) {
  ------------------
  |  Branch (1115:18): [True: 43.2k, False: 27.6k]
  ------------------
 1116|  43.2k|                 return rules->fKeyword;
 1117|  43.2k|             }
 1118|  70.9k|        }
 1119|  43.6k|    }
 1120|  1.33k|    return UnicodeString(true, PLURAL_KEYWORD_OTHER, 5);
 1121|  44.6k|}
_ZN6icu_7816PluralRuleParserC2Ev:
 1272|  16.3k|        ruleIndex(0), token(), type(none), prevType(none),
 1273|  16.3k|        curAndConstraint(nullptr), currentChain(nullptr), rangeLowIdx(-1), rangeHiIdx(-1)
 1274|  16.3k|{
 1275|  16.3k|}
_ZN6icu_7816PluralRuleParserD2Ev:
 1277|  16.3k|PluralRuleParser::~PluralRuleParser() {
 1278|  16.3k|}
_ZN6icu_7816PluralRuleParser14getNumberValueERKNS_13UnicodeStringE:
 1282|  48.3k|PluralRuleParser::getNumberValue(const UnicodeString& token) {
 1283|  48.3k|    int32_t pos = 0;
 1284|  48.3k|    return ICU_Utility::parseNumber(token, pos, 10);
 1285|  48.3k|}
_ZN6icu_7816PluralRuleParser11checkSyntaxER10UErrorCode:
 1290|   230k|{
 1291|   230k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1291:9): [True: 0, False: 230k]
  ------------------
 1292|      0|        return;
 1293|      0|    }
 1294|   230k|    if (!(prevType==none || prevType==tSemiColon)) {
  ------------------
  |  Branch (1294:11): [True: 12.4k, False: 218k]
  |  Branch (1294:29): [True: 17.0k, False: 201k]
  ------------------
 1295|   201k|        type = getKeyType(token, type);  // Switch token type from tKeyword if we scanned a reserved word,
 1296|       |                                               //   and we are not at the start of a rule, where a
 1297|       |                                               //   keyword is expected.
 1298|   201k|    }
 1299|       |
 1300|   230k|    switch(prevType) {
 1301|  12.4k|    case none:
  ------------------
  |  Branch (1301:5): [True: 12.4k, False: 218k]
  ------------------
 1302|  29.5k|    case tSemiColon:
  ------------------
  |  Branch (1302:5): [True: 17.0k, False: 213k]
  ------------------
 1303|  29.5k|        if (type!=tKeyword && type != tEOF) {
  ------------------
  |  Branch (1303:13): [True: 145, False: 29.3k]
  |  Branch (1303:31): [True: 143, False: 2]
  ------------------
 1304|    143|            status = U_UNEXPECTED_TOKEN;
 1305|    143|        }
 1306|  29.5k|        break;
 1307|  4.01k|    case tVariableN:
  ------------------
  |  Branch (1307:5): [True: 4.01k, False: 226k]
  ------------------
 1308|  6.85k|    case tVariableI:
  ------------------
  |  Branch (1308:5): [True: 2.84k, False: 228k]
  ------------------
 1309|  7.35k|    case tVariableF:
  ------------------
  |  Branch (1309:5): [True: 506, False: 230k]
  ------------------
 1310|  7.65k|    case tVariableT:
  ------------------
  |  Branch (1310:5): [True: 302, False: 230k]
  ------------------
 1311|  16.3k|    case tVariableE:
  ------------------
  |  Branch (1311:5): [True: 8.65k, False: 222k]
  ------------------
 1312|  25.0k|    case tVariableC:
  ------------------
  |  Branch (1312:5): [True: 8.75k, False: 222k]
  ------------------
 1313|  26.1k|    case tVariableV:
  ------------------
  |  Branch (1313:5): [True: 1.04k, False: 229k]
  ------------------
 1314|  26.1k|        if (type != tIs && type != tMod && type != tIn &&
  ------------------
  |  Branch (1314:13): [True: 25.6k, False: 444]
  |  Branch (1314:28): [True: 11.0k, False: 14.5k]
  |  Branch (1314:44): [True: 10.7k, False: 294]
  ------------------
 1315|  26.1k|            type != tNot && type != tWithin && type != tEqual && type != tNotEqual) {
  ------------------
  |  Branch (1315:13): [True: 10.0k, False: 784]
  |  Branch (1315:29): [True: 10.0k, False: 0]
  |  Branch (1315:48): [True: 1.46k, False: 8.54k]
  |  Branch (1315:66): [True: 20, False: 1.44k]
  ------------------
 1316|     20|            status = U_UNEXPECTED_TOKEN;
 1317|     20|        }
 1318|  26.1k|        break;
 1319|  29.2k|    case tKeyword:
  ------------------
  |  Branch (1319:5): [True: 29.2k, False: 201k]
  ------------------
 1320|  29.2k|        if (type != tColon) {
  ------------------
  |  Branch (1320:13): [True: 25, False: 29.2k]
  ------------------
 1321|     25|            status = U_UNEXPECTED_TOKEN;
 1322|     25|        }
 1323|  29.2k|        break;
 1324|  29.2k|    case tColon:
  ------------------
  |  Branch (1324:5): [True: 29.2k, False: 201k]
  ------------------
 1325|  29.2k|        if (!(type == tVariableN ||
  ------------------
  |  Branch (1325:15): [True: 11.0k, False: 18.2k]
  ------------------
 1326|  29.2k|              type == tVariableI ||
  ------------------
  |  Branch (1326:15): [True: 1.43k, False: 16.7k]
  ------------------
 1327|  29.2k|              type == tVariableF ||
  ------------------
  |  Branch (1327:15): [True: 244, False: 16.5k]
  ------------------
 1328|  29.2k|              type == tVariableT ||
  ------------------
  |  Branch (1328:15): [True: 269, False: 16.2k]
  ------------------
 1329|  29.2k|              type == tVariableE ||
  ------------------
  |  Branch (1329:15): [True: 4.93k, False: 11.3k]
  ------------------
 1330|  29.2k|              type == tVariableC ||
  ------------------
  |  Branch (1330:15): [True: 7.66k, False: 3.66k]
  ------------------
 1331|  29.2k|              type == tVariableV ||
  ------------------
  |  Branch (1331:15): [True: 287, False: 3.37k]
  ------------------
 1332|  29.2k|              type == tAt)) {
  ------------------
  |  Branch (1332:15): [True: 3.32k, False: 46]
  ------------------
 1333|     46|            status = U_UNEXPECTED_TOKEN;
 1334|     46|        }
 1335|  29.2k|        break;
 1336|  1.31k|    case tIs:
  ------------------
  |  Branch (1336:5): [True: 1.31k, False: 229k]
  ------------------
 1337|  1.31k|        if ( type != tNumber && type != tNot) {
  ------------------
  |  Branch (1337:14): [True: 195, False: 1.11k]
  |  Branch (1337:33): [True: 1, False: 194]
  ------------------
 1338|      1|            status = U_UNEXPECTED_TOKEN;
 1339|      1|        }
 1340|  1.31k|        break;
 1341|  1.37k|    case tNot:
  ------------------
  |  Branch (1341:5): [True: 1.37k, False: 229k]
  ------------------
 1342|  1.37k|        if (type != tNumber && type != tIn && type != tWithin) {
  ------------------
  |  Branch (1342:13): [True: 200, False: 1.17k]
  |  Branch (1342:32): [True: 6, False: 194]
  |  Branch (1342:47): [True: 6, False: 0]
  ------------------
 1343|      6|            status = U_UNEXPECTED_TOKEN;
 1344|      6|        }
 1345|  1.37k|        break;
 1346|  14.5k|    case tMod:
  ------------------
  |  Branch (1346:5): [True: 14.5k, False: 216k]
  ------------------
 1347|  16.5k|    case tDot2:
  ------------------
  |  Branch (1347:5): [True: 2.00k, False: 228k]
  ------------------
 1348|  17.2k|    case tIn:
  ------------------
  |  Branch (1348:5): [True: 660, False: 230k]
  ------------------
 1349|  17.2k|    case tWithin:
  ------------------
  |  Branch (1349:5): [True: 0, False: 230k]
  ------------------
 1350|  28.8k|    case tEqual:
  ------------------
  |  Branch (1350:5): [True: 11.6k, False: 219k]
  ------------------
 1351|  31.5k|    case tNotEqual:
  ------------------
  |  Branch (1351:5): [True: 2.69k, False: 228k]
  ------------------
 1352|  31.5k|        if (type != tNumber) {
  ------------------
  |  Branch (1352:13): [True: 33, False: 31.5k]
  ------------------
 1353|     33|            status = U_UNEXPECTED_TOKEN;
 1354|     33|        }
 1355|  31.5k|        break;
 1356|  2.74k|    case tAnd:
  ------------------
  |  Branch (1356:5): [True: 2.74k, False: 228k]
  ------------------
 1357|  8.50k|    case tOr:
  ------------------
  |  Branch (1357:5): [True: 5.75k, False: 225k]
  ------------------
 1358|  8.50k|        if ( type != tVariableN &&
  ------------------
  |  Branch (1358:14): [True: 7.35k, False: 1.14k]
  ------------------
 1359|  8.50k|             type != tVariableI &&
  ------------------
  |  Branch (1359:14): [True: 5.94k, False: 1.40k]
  ------------------
 1360|  8.50k|             type != tVariableF &&
  ------------------
  |  Branch (1360:14): [True: 5.68k, False: 267]
  ------------------
 1361|  8.50k|             type != tVariableT &&
  ------------------
  |  Branch (1361:14): [True: 5.64k, False: 38]
  ------------------
 1362|  8.50k|             type != tVariableE &&
  ------------------
  |  Branch (1362:14): [True: 1.90k, False: 3.73k]
  ------------------
 1363|  8.50k|             type != tVariableC &&
  ------------------
  |  Branch (1363:14): [True: 792, False: 1.11k]
  ------------------
 1364|  8.50k|             type != tVariableV) {
  ------------------
  |  Branch (1364:14): [True: 31, False: 761]
  ------------------
 1365|     31|            status = U_UNEXPECTED_TOKEN;
 1366|     31|        }
 1367|  8.50k|        break;
 1368|  14.5k|    case tComma:
  ------------------
  |  Branch (1368:5): [True: 14.5k, False: 216k]
  ------------------
 1369|  14.5k|        if (type != tNumber) {
  ------------------
  |  Branch (1369:13): [True: 4, False: 14.5k]
  ------------------
 1370|      4|            status = U_UNEXPECTED_TOKEN;
 1371|      4|        }
 1372|  14.5k|        break;
 1373|  48.1k|    case tNumber:
  ------------------
  |  Branch (1373:5): [True: 48.1k, False: 182k]
  ------------------
 1374|  48.1k|        if (type != tDot2  && type != tSemiColon && type != tIs       && type != tNot    &&
  ------------------
  |  Branch (1374:13): [True: 46.1k, False: 2.00k]
  |  Branch (1374:31): [True: 33.4k, False: 12.6k]
  |  Branch (1374:53): [True: 32.5k, False: 891]
  |  Branch (1374:74): [True: 32.1k, False: 431]
  ------------------
 1375|  48.1k|            type != tIn    && type != tEqual     && type != tNotEqual && type != tWithin &&
  ------------------
  |  Branch (1375:13): [True: 31.9k, False: 200]
  |  Branch (1375:31): [True: 28.8k, False: 3.14k]
  |  Branch (1375:53): [True: 27.5k, False: 1.24k]
  |  Branch (1375:74): [True: 27.5k, False: 0]
  ------------------
 1376|  48.1k|            type != tAnd   && type != tOr        && type != tComma    && type != tAt     &&
  ------------------
  |  Branch (1376:13): [True: 24.8k, False: 2.74k]
  |  Branch (1376:31): [True: 19.0k, False: 5.76k]
  |  Branch (1376:53): [True: 4.48k, False: 14.5k]
  |  Branch (1376:74): [True: 34, False: 4.45k]
  ------------------
 1377|  48.1k|            type != tEOF)
  ------------------
  |  Branch (1377:13): [True: 33, False: 1]
  ------------------
 1378|     33|        {
 1379|     33|            status = U_UNEXPECTED_TOKEN;
 1380|     33|        }
 1381|       |        // TODO: a comma following a number that is not part of a range will be allowed.
 1382|       |        //       It's not the only case of this sort of thing. Parser needs a re-write.
 1383|  48.1k|        break;
 1384|  11.4k|    case tAt:
  ------------------
  |  Branch (1384:5): [True: 11.4k, False: 219k]
  ------------------
 1385|  11.4k|        if (type != tDecimal && type != tInteger) {
  ------------------
  |  Branch (1385:13): [True: 7.71k, False: 3.69k]
  |  Branch (1385:33): [True: 9, False: 7.70k]
  ------------------
 1386|      9|            status = U_UNEXPECTED_TOKEN;
 1387|      9|        }
 1388|  11.4k|        break;
 1389|      0|    default:
  ------------------
  |  Branch (1389:5): [True: 0, False: 230k]
  ------------------
 1390|      0|        status = U_UNEXPECTED_TOKEN;
 1391|      0|        break;
 1392|   230k|    }
 1393|   230k|}
_ZN6icu_7816PluralRuleParser12getNextTokenER10UErrorCode:
 1402|   476k|{
 1403|   476k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1403:9): [True: 0, False: 476k]
  ------------------
 1404|      0|        return;
 1405|      0|    }
 1406|       |
 1407|   476k|    char16_t ch;
 1408|   613k|    while (ruleIndex < ruleSrc->length()) {
  ------------------
  |  Branch (1408:12): [True: 613k, False: 32]
  ------------------
 1409|   613k|        ch = ruleSrc->charAt(ruleIndex);
 1410|   613k|        type = charType(ch);
 1411|   613k|        if (type != tSpace) {
  ------------------
  |  Branch (1411:13): [True: 476k, False: 137k]
  ------------------
 1412|   476k|            break;
 1413|   476k|        }
 1414|   137k|        ++(ruleIndex);
 1415|   137k|    }
 1416|   476k|    if (ruleIndex >= ruleSrc->length()) {
  ------------------
  |  Branch (1416:9): [True: 32, False: 476k]
  ------------------
 1417|     32|        type = tEOF;
 1418|     32|        return;
 1419|     32|    }
 1420|   476k|    int32_t curIndex= ruleIndex;
 1421|       |
 1422|   476k|    switch (type) {
 1423|  29.2k|      case tColon:
  ------------------
  |  Branch (1423:7): [True: 29.2k, False: 447k]
  ------------------
 1424|  49.6k|      case tSemiColon:
  ------------------
  |  Branch (1424:7): [True: 20.4k, False: 456k]
  ------------------
 1425|   131k|      case tComma:
  ------------------
  |  Branch (1425:7): [True: 82.3k, False: 394k]
  ------------------
 1426|   139k|      case tEllipsis:
  ------------------
  |  Branch (1426:7): [True: 7.72k, False: 468k]
  ------------------
 1427|   147k|      case tTilde:   // scanned '~'
  ------------------
  |  Branch (1427:7): [True: 7.99k, False: 468k]
  ------------------
 1428|   159k|      case tAt:      // scanned '@'
  ------------------
  |  Branch (1428:7): [True: 11.4k, False: 465k]
  ------------------
 1429|   170k|      case tEqual:   // scanned '='
  ------------------
  |  Branch (1429:7): [True: 11.6k, False: 464k]
  ------------------
 1430|   185k|      case tMod:     // scanned '%'
  ------------------
  |  Branch (1430:7): [True: 14.5k, False: 461k]
  ------------------
 1431|       |        // Single character tokens.
 1432|   185k|        ++curIndex;
 1433|   185k|        break;
 1434|       |
 1435|  2.73k|      case tNotEqual:  // scanned '!'
  ------------------
  |  Branch (1435:7): [True: 2.73k, False: 473k]
  ------------------
 1436|  2.73k|        if (ruleSrc->charAt(curIndex+1) == EQUALS) {
  ------------------
  |  Branch (1436:13): [True: 2.69k, False: 39]
  ------------------
 1437|  2.69k|            curIndex += 2;
 1438|  2.69k|        } else {
 1439|     39|            type = none;
 1440|     39|            curIndex += 1;
 1441|     39|        }
 1442|  2.73k|        break;
 1443|       |
 1444|  92.1k|      case tKeyword:
  ------------------
  |  Branch (1444:7): [True: 92.1k, False: 384k]
  ------------------
 1445|   376k|         while (type == tKeyword && ++curIndex < ruleSrc->length()) {
  ------------------
  |  Branch (1445:17): [True: 292k, False: 83.7k]
  |  Branch (1445:37): [True: 284k, False: 8.42k]
  ------------------
 1446|   284k|             ch = ruleSrc->charAt(curIndex);
 1447|   284k|             type = charType(ch);
 1448|   284k|         }
 1449|  92.1k|         type = tKeyword;
 1450|  92.1k|         break;
 1451|       |
 1452|   161k|      case tNumber:
  ------------------
  |  Branch (1452:7): [True: 161k, False: 314k]
  ------------------
 1453|   507k|         while (type == tNumber && ++curIndex < ruleSrc->length()) {
  ------------------
  |  Branch (1453:17): [True: 346k, False: 161k]
  |  Branch (1453:36): [True: 346k, False: 280]
  ------------------
 1454|   346k|             ch = ruleSrc->charAt(curIndex);
 1455|   346k|             type = charType(ch);
 1456|   346k|         }
 1457|   161k|         type = tNumber;
 1458|   161k|         break;
 1459|       |
 1460|  30.8k|       case tDot:
  ------------------
  |  Branch (1460:8): [True: 30.8k, False: 445k]
  ------------------
 1461|       |         // We could be looking at either ".." in a range, or "..." at the end of a sample.
 1462|  30.8k|         if (curIndex+1 >= ruleSrc->length() || ruleSrc->charAt(curIndex+1) != DOT) {
  ------------------
  |  Branch (1462:14): [True: 6, False: 30.8k]
  |  Branch (1462:49): [True: 28.8k, False: 2.04k]
  ------------------
 1463|  28.8k|             ++curIndex;
 1464|  28.8k|             break; // Single dot
 1465|  28.8k|         }
 1466|  2.04k|         if (curIndex+2 >= ruleSrc->length() || ruleSrc->charAt(curIndex+2) != DOT) {
  ------------------
  |  Branch (1466:14): [True: 6, False: 2.03k]
  |  Branch (1466:49): [True: 2.03k, False: 4]
  ------------------
 1467|  2.03k|             curIndex += 2;
 1468|  2.03k|             type = tDot2;
 1469|  2.03k|             break; // double dot
 1470|  2.03k|         }
 1471|      4|         type = tEllipsis;
 1472|      4|         curIndex += 3;
 1473|      4|         break;     // triple dot
 1474|       |
 1475|  3.64k|       default:
  ------------------
  |  Branch (1475:8): [True: 3.64k, False: 472k]
  ------------------
 1476|  3.64k|         status = U_UNEXPECTED_TOKEN;
 1477|  3.64k|         ++curIndex;
 1478|  3.64k|         break;
 1479|   476k|    }
 1480|       |
 1481|   476k|    U_ASSERT(ruleIndex <= ruleSrc->length());
  ------------------
  |  |   35|   476k|#   define U_ASSERT(exp) (void)0
  ------------------
 1482|   476k|    U_ASSERT(curIndex <= ruleSrc->length());
  ------------------
  |  |   35|   476k|#   define U_ASSERT(exp) (void)0
  ------------------
 1483|   476k|    token=UnicodeString(*ruleSrc, ruleIndex, curIndex-ruleIndex);
 1484|   476k|    ruleIndex = curIndex;
 1485|   476k|}
_ZN6icu_7816PluralRuleParser8charTypeEDs:
 1488|  1.24M|PluralRuleParser::charType(char16_t ch) {
 1489|  1.24M|    if ((ch>=U_ZERO) && (ch<=U_NINE)) {
  ------------------
  |  Branch (1489:9): [True: 807k, False: 436k]
  |  Branch (1489:25): [True: 354k, False: 453k]
  ------------------
 1490|   354k|        return tNumber;
 1491|   354k|    }
 1492|   889k|    if (ch>=LOW_A && ch<=LOW_Z) {
  ------------------
  |  Branch (1492:9): [True: 331k, False: 558k]
  |  Branch (1492:22): [True: 303k, False: 27.4k]
  ------------------
 1493|   303k|        return tKeyword;
 1494|   303k|    }
 1495|   586k|    switch (ch) {
 1496|  58.4k|    case COLON:
  ------------------
  |  Branch (1496:5): [True: 58.4k, False: 527k]
  ------------------
 1497|  58.4k|        return tColon;
 1498|   180k|    case SPACE:
  ------------------
  |  Branch (1498:5): [True: 180k, False: 405k]
  ------------------
 1499|   180k|        return tSpace;
 1500|  35.4k|    case SEMI_COLON:
  ------------------
  |  Branch (1500:5): [True: 35.4k, False: 550k]
  ------------------
 1501|  35.4k|        return tSemiColon;
 1502|  61.6k|    case DOT:
  ------------------
  |  Branch (1502:5): [True: 61.6k, False: 524k]
  ------------------
 1503|  61.6k|        return tDot;
 1504|   164k|    case COMMA:
  ------------------
  |  Branch (1504:5): [True: 164k, False: 421k]
  ------------------
 1505|   164k|        return tComma;
 1506|  3.65k|    case EXCLAMATION:
  ------------------
  |  Branch (1506:5): [True: 3.65k, False: 582k]
  ------------------
 1507|  3.65k|        return tNotEqual;
 1508|  16.9k|    case EQUALS:
  ------------------
  |  Branch (1508:5): [True: 16.9k, False: 569k]
  ------------------
 1509|  16.9k|        return tEqual;
 1510|  25.3k|    case PERCENT_SIGN:
  ------------------
  |  Branch (1510:5): [True: 25.3k, False: 560k]
  ------------------
 1511|  25.3k|        return tMod;
 1512|  11.4k|    case AT:
  ------------------
  |  Branch (1512:5): [True: 11.4k, False: 574k]
  ------------------
 1513|  11.4k|        return tAt;
 1514|  7.73k|    case ELLIPSIS:
  ------------------
  |  Branch (1514:5): [True: 7.73k, False: 578k]
  ------------------
 1515|  7.73k|        return tEllipsis;
 1516|  15.9k|    case TILDE:
  ------------------
  |  Branch (1516:5): [True: 15.9k, False: 570k]
  ------------------
 1517|  15.9k|        return tTilde;
 1518|  3.79k|    default :
  ------------------
  |  Branch (1518:5): [True: 3.79k, False: 582k]
  ------------------
 1519|  3.79k|        return none;
 1520|   586k|    }
 1521|   586k|}
_ZN6icu_7816PluralRuleParser10getKeyTypeERKNS_13UnicodeStringENS_9tokenTypeE:
 1528|   201k|{
 1529|   201k|    if (keyType != tKeyword) {
  ------------------
  |  Branch (1529:9): [True: 143k, False: 57.7k]
  ------------------
 1530|   143k|        return keyType;
 1531|   143k|    }
 1532|       |
 1533|  57.7k|    if (0 == token.compare(PK_VAR_N, 1)) {
  ------------------
  |  Branch (1533:9): [True: 12.1k, False: 45.5k]
  ------------------
 1534|  12.1k|        keyType = tVariableN;
 1535|  45.5k|    } else if (0 == token.compare(PK_VAR_I, 1)) {
  ------------------
  |  Branch (1535:16): [True: 2.85k, False: 42.7k]
  ------------------
 1536|  2.85k|        keyType = tVariableI;
 1537|  42.7k|    } else if (0 == token.compare(PK_VAR_F, 1)) {
  ------------------
  |  Branch (1537:16): [True: 516, False: 42.2k]
  ------------------
 1538|    516|        keyType = tVariableF;
 1539|  42.2k|    } else if (0 == token.compare(PK_VAR_T, 1)) {
  ------------------
  |  Branch (1539:16): [True: 309, False: 41.9k]
  ------------------
 1540|    309|        keyType = tVariableT;
 1541|  41.9k|    } else if (0 == token.compare(PK_VAR_E, 1)) {
  ------------------
  |  Branch (1541:16): [True: 8.67k, False: 33.2k]
  ------------------
 1542|  8.67k|        keyType = tVariableE;
 1543|  33.2k|    } else if (0 == token.compare(PK_VAR_C, 1)) {
  ------------------
  |  Branch (1543:16): [True: 8.79k, False: 24.4k]
  ------------------
 1544|  8.79k|        keyType = tVariableC;
 1545|  24.4k|    } else if (0 == token.compare(PK_VAR_V, 1)) {
  ------------------
  |  Branch (1545:16): [True: 1.04k, False: 23.3k]
  ------------------
 1546|  1.04k|        keyType = tVariableV;
 1547|  23.3k|    } else if (0 == token.compare(PK_IS, 2)) {
  ------------------
  |  Branch (1547:16): [True: 1.33k, False: 22.0k]
  ------------------
 1548|  1.33k|        keyType = tIs;
 1549|  22.0k|    } else if (0 == token.compare(PK_AND, 3)) {
  ------------------
  |  Branch (1549:16): [True: 2.74k, False: 19.3k]
  ------------------
 1550|  2.74k|        keyType = tAnd;
 1551|  19.3k|    } else if (0 == token.compare(PK_IN, 2)) {
  ------------------
  |  Branch (1551:16): [True: 689, False: 18.6k]
  ------------------
 1552|    689|        keyType = tIn;
 1553|  18.6k|    } else if (0 == token.compare(PK_WITHIN, 6)) {
  ------------------
  |  Branch (1553:16): [True: 0, False: 18.6k]
  ------------------
 1554|      0|        keyType = tWithin;
 1555|  18.6k|    } else if (0 == token.compare(PK_NOT, 3)) {
  ------------------
  |  Branch (1555:16): [True: 1.41k, False: 17.2k]
  ------------------
 1556|  1.41k|        keyType = tNot;
 1557|  17.2k|    } else if (0 == token.compare(PK_MOD, 3)) {
  ------------------
  |  Branch (1557:16): [True: 3, False: 17.2k]
  ------------------
 1558|      3|        keyType = tMod;
 1559|  17.2k|    } else if (0 == token.compare(PK_OR, 2)) {
  ------------------
  |  Branch (1559:16): [True: 5.76k, False: 11.4k]
  ------------------
 1560|  5.76k|        keyType = tOr;
 1561|  11.4k|    } else if (0 == token.compare(PK_DECIMAL, 7)) {
  ------------------
  |  Branch (1561:16): [True: 3.69k, False: 7.75k]
  ------------------
 1562|  3.69k|        keyType = tDecimal;
 1563|  7.75k|    } else if (0 == token.compare(PK_INTEGER, 7)) {
  ------------------
  |  Branch (1563:16): [True: 7.70k, False: 43]
  ------------------
 1564|  7.70k|        keyType = tInteger;
 1565|  7.70k|    }
 1566|  57.7k|    return keyType;
 1567|   201k|}
_ZN6icu_7824tokenTypeToPluralOperandENS_9tokenTypeE:
 1620|  66.8k|PluralOperand tokenTypeToPluralOperand(tokenType tt) {
 1621|  66.8k|    switch(tt) {
 1622|  41.3k|    case tVariableN:
  ------------------
  |  Branch (1622:5): [True: 41.3k, False: 25.5k]
  ------------------
 1623|  41.3k|        return PLURAL_OPERAND_N;
 1624|  11.0k|    case tVariableI:
  ------------------
  |  Branch (1624:5): [True: 11.0k, False: 55.7k]
  ------------------
 1625|  11.0k|        return PLURAL_OPERAND_I;
 1626|  1.32k|    case tVariableF:
  ------------------
  |  Branch (1626:5): [True: 1.32k, False: 65.5k]
  ------------------
 1627|  1.32k|        return PLURAL_OPERAND_F;
 1628|  3.31k|    case tVariableV:
  ------------------
  |  Branch (1628:5): [True: 3.31k, False: 63.5k]
  ------------------
 1629|  3.31k|        return PLURAL_OPERAND_V;
 1630|    280|    case tVariableT:
  ------------------
  |  Branch (1630:5): [True: 280, False: 66.5k]
  ------------------
 1631|    280|        return PLURAL_OPERAND_T;
 1632|  3.96k|    case tVariableE:
  ------------------
  |  Branch (1632:5): [True: 3.96k, False: 62.8k]
  ------------------
 1633|  3.96k|        return PLURAL_OPERAND_E;
 1634|  5.53k|    case tVariableC:
  ------------------
  |  Branch (1634:5): [True: 5.53k, False: 61.2k]
  ------------------
 1635|  5.53k|        return PLURAL_OPERAND_E;
 1636|      0|    default:
  ------------------
  |  Branch (1636:5): [True: 0, False: 66.8k]
  ------------------
 1637|      0|        UPRV_UNREACHABLE_EXIT;  // unexpected.
  ------------------
  |  |   68|      0|#   define UPRV_UNREACHABLE_EXIT abort()
  ------------------
 1638|  66.8k|    }
 1639|  66.8k|}
_ZN6icu_7812FixedDecimalC2Ed:
 1671|  45.2k|FixedDecimal::FixedDecimal(double n) {
 1672|  45.2k|    init(n);
 1673|  45.2k|}
_ZN6icu_7812FixedDecimalD2Ev:
 1746|  45.2k|FixedDecimal::~FixedDecimal() = default;
_ZN6icu_7812FixedDecimal4initEd:
 1753|  45.2k|void FixedDecimal::init(double n) {
 1754|  45.2k|    int32_t numFractionDigits = decimals(n);
 1755|  45.2k|    init(n, numFractionDigits, getFractionalDigits(n, numFractionDigits));
 1756|  45.2k|}
_ZN6icu_7812FixedDecimal4initEdil:
 1759|  45.2k|void FixedDecimal::init(double n, int32_t v, int64_t f) {
 1760|  45.2k|    int32_t exponent = 0;
 1761|  45.2k|    init(n, v, f, exponent);
 1762|  45.2k|}
_ZN6icu_7812FixedDecimal4initEdili:
 1764|  45.2k|void FixedDecimal::init(double n, int32_t v, int64_t f, int32_t e) {
 1765|       |    // Currently, `c` is an alias for `e`
 1766|  45.2k|    init(n, v, f, e, e);
 1767|  45.2k|}
_ZN6icu_7812FixedDecimal4initEdilii:
 1769|  45.2k|void FixedDecimal::init(double n, int32_t v, int64_t f, int32_t e, int32_t c) {
 1770|  45.2k|    isNegative = n < 0.0;
 1771|  45.2k|    source = fabs(n);
 1772|  45.2k|    _isNaN = uprv_isNaN(source);
  ------------------
  |  | 1519|  45.2k|#define uprv_isNaN U_ICU_ENTRY_POINT_RENAME(uprv_isNaN)
  |  |  ------------------
  |  |  |  |  123|  45.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  45.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  45.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1773|  45.2k|    _isInfinite = uprv_isInfinite(source);
  ------------------
  |  | 1516|  45.2k|#define uprv_isInfinite U_ICU_ENTRY_POINT_RENAME(uprv_isInfinite)
  |  |  ------------------
  |  |  |  |  123|  45.2k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  45.2k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  45.2k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1774|  45.2k|    exponent = e;
 1775|  45.2k|    if (exponent == 0) {
  ------------------
  |  Branch (1775:9): [True: 45.2k, False: 0]
  ------------------
 1776|  45.2k|        exponent = c;
 1777|  45.2k|    }
 1778|  45.2k|    if (_isNaN || _isInfinite ||
  ------------------
  |  Branch (1778:9): [True: 1.01k, False: 44.2k]
  |  Branch (1778:19): [True: 28, False: 44.2k]
  ------------------
 1779|  45.2k|        source > static_cast<double>(U_INT64_MAX) ||
  ------------------
  |  |  249|  44.2k|#     define U_INT64_MAX       ((int64_t)(INT64_C(9223372036854775807)))
  ------------------
  |  Branch (1779:9): [True: 9.20k, False: 35.0k]
  ------------------
 1780|  45.2k|        source < static_cast<double>(U_INT64_MIN)) {
  ------------------
  |  |  245|  35.0k|#     define U_INT64_MIN       ((int64_t)(INT64_C(-9223372036854775807)-1))
  ------------------
  |  Branch (1780:9): [True: 0, False: 35.0k]
  ------------------
 1781|  10.2k|        v = 0;
 1782|  10.2k|        f = 0;
 1783|  10.2k|        intValue = 0;
 1784|  10.2k|        _hasIntegerValue = false;
 1785|  35.0k|    } else {
 1786|  35.0k|        intValue = static_cast<int64_t>(source);
 1787|  35.0k|        _hasIntegerValue = (source == intValue);
 1788|  35.0k|    }
 1789|       |
 1790|  45.2k|    visibleDecimalDigitCount = v;
 1791|  45.2k|    decimalDigits = f;
 1792|  45.2k|    if (f == 0) {
  ------------------
  |  Branch (1792:9): [True: 33.1k, False: 12.0k]
  ------------------
 1793|  33.1k|         decimalDigitsWithoutTrailingZeros = 0;
 1794|  33.1k|    } else {
 1795|  12.0k|        int64_t fdwtz = f;
 1796|  12.6k|        while ((fdwtz%10) == 0) {
  ------------------
  |  Branch (1796:16): [True: 511, False: 12.0k]
  ------------------
 1797|    511|            fdwtz /= 10;
 1798|    511|        }
 1799|  12.0k|        decimalDigitsWithoutTrailingZeros = fdwtz;
 1800|  12.0k|    }
 1801|  45.2k|}
_ZN6icu_7812FixedDecimal8decimalsEd:
 1828|  45.2k|int32_t FixedDecimal::decimals(double n) {
 1829|       |    // Count the number of decimal digits in the fraction part of the number, excluding trailing zeros.
 1830|       |    // fastpath the common cases, integers or fractions with 3 or fewer digits
 1831|  45.2k|    n = fabs(n);
 1832|  97.6k|    for (int ndigits=0; ndigits<=3; ndigits++) {
  ------------------
  |  Branch (1832:25): [True: 84.5k, False: 13.0k]
  ------------------
 1833|  84.5k|        double scaledN = n * p10[ndigits];
 1834|  84.5k|        if (scaledN == floor(scaledN)) {
  ------------------
  |  Branch (1834:13): [True: 32.1k, False: 52.3k]
  ------------------
 1835|  32.1k|            return ndigits;
 1836|  32.1k|        }
 1837|  84.5k|    }
 1838|       |
 1839|       |    // Slow path, convert with snprintf, parse converted output.
 1840|  13.0k|    char  buf[30] = {0};
 1841|  13.0k|    snprintf(buf, sizeof(buf), "%1.15e", n);
 1842|       |    // formatted number looks like this: 1.234567890123457e-01
 1843|  13.0k|    int exponent = atoi(buf+18);
 1844|  13.0k|    int numFractionDigits = 15;
 1845|  14.9k|    for (int i=16; ; --i) {
 1846|  14.9k|        if (buf[i] != '0') {
  ------------------
  |  Branch (1846:13): [True: 13.0k, False: 1.91k]
  ------------------
 1847|  13.0k|            break;
 1848|  13.0k|        }
 1849|  1.91k|        --numFractionDigits;
 1850|  1.91k|    }
 1851|  13.0k|    numFractionDigits -= exponent;   // Fraction part of fixed point representation.
 1852|  13.0k|    return numFractionDigits;
 1853|  45.2k|}
_ZN6icu_7812FixedDecimal19getFractionalDigitsEdi:
 1863|  45.2k|int64_t FixedDecimal::getFractionalDigits(double n, int32_t v) {
 1864|  45.2k|    if (v == 0 || n == floor(n) || uprv_isNaN(n) || uprv_isPositiveInfinity(n)) {
  ------------------
  |  | 1519|  13.1k|#define uprv_isNaN U_ICU_ENTRY_POINT_RENAME(uprv_isNaN)
  |  |  ------------------
  |  |  |  |  123|  13.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  if (v == 0 || n == floor(n) || uprv_isNaN(n) || uprv_isPositiveInfinity(n)) {
  ------------------
  |  | 1521|  12.1k|#define uprv_isPositiveInfinity U_ICU_ENTRY_POINT_RENAME(uprv_isPositiveInfinity)
  |  |  ------------------
  |  |  |  |  123|  12.1k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  12.1k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  12.1k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1864:9): [True: 32.1k, False: 13.1k]
  |  Branch (1864:19): [True: 0, False: 13.1k]
  |  Branch (1864:36): [True: 1.01k, False: 12.1k]
  |  Branch (1864:53): [True: 0, False: 12.1k]
  ------------------
 1865|  33.1k|        return 0;
 1866|  33.1k|    }
 1867|  12.1k|    n = fabs(n);
 1868|  12.1k|    double fract = n - floor(n);
 1869|  12.1k|    switch (v) {
 1870|     24|      case 1: return static_cast<int64_t>(fract * 10.0 + 0.5);
  ------------------
  |  Branch (1870:7): [True: 24, False: 12.0k]
  ------------------
 1871|     17|      case 2: return static_cast<int64_t>(fract * 100.0 + 0.5);
  ------------------
  |  Branch (1871:7): [True: 17, False: 12.0k]
  ------------------
 1872|     24|      case 3: return static_cast<int64_t>(fract * 1000.0 + 0.5);
  ------------------
  |  Branch (1872:7): [True: 24, False: 12.0k]
  ------------------
 1873|  12.0k|      default:
  ------------------
  |  Branch (1873:7): [True: 12.0k, False: 65]
  ------------------
 1874|  12.0k|          double scaled = floor(fract * pow(10.0, static_cast<double>(v)) + 0.5);
 1875|  12.0k|          if (scaled >= static_cast<double>(U_INT64_MAX)) {
  ------------------
  |  |  249|  12.0k|#     define U_INT64_MAX       ((int64_t)(INT64_C(9223372036854775807)))
  ------------------
  |  Branch (1875:15): [True: 5.33k, False: 6.71k]
  ------------------
 1876|       |              // Note: a double cannot accurately represent U_INT64_MAX. Casting it to double
 1877|       |              //       will round up to the next representable value, which is U_INT64_MAX + 1.
 1878|  5.33k|              return U_INT64_MAX;
  ------------------
  |  |  249|  5.33k|#     define U_INT64_MAX       ((int64_t)(INT64_C(9223372036854775807)))
  ------------------
 1879|  6.71k|          } else {
 1880|  6.71k|              return static_cast<int64_t>(scaled);
 1881|  6.71k|          }
 1882|  12.1k|      }
 1883|  12.1k|}
_ZNK6icu_7812FixedDecimal16getPluralOperandENS_13PluralOperandE:
 1902|  66.8k|double FixedDecimal::getPluralOperand(PluralOperand operand) const {
 1903|  66.8k|    switch(operand) {
 1904|  41.3k|        case PLURAL_OPERAND_N: return (exponent == 0 ? source : source * pow(10.0, exponent));
  ------------------
  |  Branch (1904:9): [True: 41.3k, False: 25.5k]
  |  Branch (1904:40): [True: 41.3k, False: 0]
  ------------------
 1905|  11.0k|        case PLURAL_OPERAND_I: return static_cast<double>(longValue());
  ------------------
  |  Branch (1905:9): [True: 11.0k, False: 55.7k]
  ------------------
 1906|  1.32k|        case PLURAL_OPERAND_F: return static_cast<double>(decimalDigits);
  ------------------
  |  Branch (1906:9): [True: 1.32k, False: 65.5k]
  ------------------
 1907|    280|        case PLURAL_OPERAND_T: return static_cast<double>(decimalDigitsWithoutTrailingZeros);
  ------------------
  |  Branch (1907:9): [True: 280, False: 66.5k]
  ------------------
 1908|  3.31k|        case PLURAL_OPERAND_V: return visibleDecimalDigitCount;
  ------------------
  |  Branch (1908:9): [True: 3.31k, False: 63.5k]
  ------------------
 1909|  9.50k|        case PLURAL_OPERAND_E: return exponent;
  ------------------
  |  Branch (1909:9): [True: 9.50k, False: 57.3k]
  ------------------
 1910|      0|        case PLURAL_OPERAND_C: return exponent;
  ------------------
  |  Branch (1910:9): [True: 0, False: 66.8k]
  ------------------
 1911|      0|        default:
  ------------------
  |  Branch (1911:9): [True: 0, False: 66.8k]
  ------------------
 1912|      0|             UPRV_UNREACHABLE_EXIT;  // unexpected.
  ------------------
  |  |   68|      0|#   define UPRV_UNREACHABLE_EXIT abort()
  ------------------
 1913|  66.8k|    }
 1914|  66.8k|}
_ZNK6icu_7812FixedDecimal5isNaNEv:
 1916|  44.6k|bool FixedDecimal::isNaN() const {
 1917|  44.6k|    return _isNaN;
 1918|  44.6k|}
_ZNK6icu_7812FixedDecimal10isInfiniteEv:
 1920|  43.6k|bool FixedDecimal::isInfinite() const {
 1921|  43.6k|    return _isInfinite;
 1922|  43.6k|}
_ZNK6icu_7812FixedDecimal9longValueEv:
 1958|  11.0k|int64_t FixedDecimal::longValue() const {
 1959|  11.0k|    if (exponent == 0) {
  ------------------
  |  Branch (1959:9): [True: 11.0k, False: 0]
  ------------------
 1960|  11.0k|        return intValue;
 1961|  11.0k|    } else {
 1962|      0|        return static_cast<long>(pow(10.0, exponent) * intValue);
 1963|      0|    }
 1964|  11.0k|}

_ZN6icu_7812OrConstraintC2Ev:
  379|  35.1k|    OrConstraint() = default;
_ZN6icu_789RuleChainC2Ev:
  399|  29.3k|    RuleChain() = default;
_ZN6icu_7813AndConstraintC2Ev:
  364|  37.9k|    AndConstraint() = default;

_ZN6icu_7817SharedPluralRulesC2EPNS_11PluralRulesE:
   24|  4.64k|    SharedPluralRules(PluralRules *prToAdopt) : ptr(prToAdopt) { }
_ZNK6icu_7817SharedPluralRulesptEv:
   26|  15.0k|    const PluralRules *operator->() const { return ptr; }

_ZN6icu_7814StandardPlural25indexOrNegativeFromStringERKNS_13UnicodeStringE:
   96|  62.8k|int32_t StandardPlural::indexOrNegativeFromString(const UnicodeString &keyword) {
   97|  62.8k|    switch (keyword.length()) {
   98|      0|    case 1:
  ------------------
  |  Branch (98:5): [True: 0, False: 62.8k]
  ------------------
   99|      0|        if (keyword.charAt(0) == '0') {
  ------------------
  |  Branch (99:13): [True: 0, False: 0]
  ------------------
  100|      0|            return EQ_0;
  101|      0|        } else if (keyword.charAt(0) == '1') {
  ------------------
  |  Branch (101:20): [True: 0, False: 0]
  ------------------
  102|      0|            return EQ_1;
  103|      0|        }
  104|      0|        break;
  105|      0|    case 2:
  ------------------
  |  Branch (105:5): [True: 0, False: 62.8k]
  ------------------
  106|      0|        if (keyword.compare(gEq0, 2) == 0) {
  ------------------
  |  Branch (106:13): [True: 0, False: 0]
  ------------------
  107|      0|            return EQ_0;
  108|      0|        } else if (keyword.compare(gEq1, 2) == 0) {
  ------------------
  |  Branch (108:20): [True: 0, False: 0]
  ------------------
  109|      0|            return EQ_1;
  110|      0|        }
  111|      0|        break;
  112|  24.7k|    case 3:
  ------------------
  |  Branch (112:5): [True: 24.7k, False: 38.1k]
  ------------------
  113|  24.7k|        if (keyword.compare(gOne, 3) == 0) {
  ------------------
  |  Branch (113:13): [True: 13.0k, False: 11.7k]
  ------------------
  114|  13.0k|            return ONE;
  115|  13.0k|        } else if (keyword.compare(gTwo, 3) == 0) {
  ------------------
  |  Branch (115:20): [True: 3.03k, False: 8.69k]
  ------------------
  116|  3.03k|            return TWO;
  117|  8.69k|        } else if (keyword.compare(gFew, 3) == 0) {
  ------------------
  |  Branch (117:20): [True: 8.69k, False: 0]
  ------------------
  118|  8.69k|            return FEW;
  119|  8.69k|        }
  120|      0|        break;
  121|  9.89k|    case 4:
  ------------------
  |  Branch (121:5): [True: 9.89k, False: 52.9k]
  ------------------
  122|  9.89k|        if (keyword.compare(gMany, 4) == 0) {
  ------------------
  |  Branch (122:13): [True: 7.33k, False: 2.56k]
  ------------------
  123|  7.33k|            return MANY;
  124|  7.33k|        } else if (keyword.compare(gZero, 4) == 0) {
  ------------------
  |  Branch (124:20): [True: 2.56k, False: 0]
  ------------------
  125|  2.56k|            return ZERO;
  126|  2.56k|        }
  127|      0|        break;
  128|  28.2k|    case 5:
  ------------------
  |  Branch (128:5): [True: 28.2k, False: 34.6k]
  ------------------
  129|  28.2k|        if (keyword.compare(gOther, 5) == 0) {
  ------------------
  |  Branch (129:13): [True: 28.2k, False: 0]
  ------------------
  130|  28.2k|            return OTHER;
  131|  28.2k|        }
  132|      0|        break;
  133|      0|    default:
  ------------------
  |  Branch (133:5): [True: 0, False: 62.8k]
  ------------------
  134|      0|        break;
  135|  62.8k|    }
  136|      0|    return -1;
  137|  62.8k|}
_ZN6icu_7814StandardPlural15indexFromStringERKNS_13UnicodeStringER10UErrorCode:
  150|  62.8k|int32_t StandardPlural::indexFromString(const UnicodeString &keyword, UErrorCode &errorCode) {
  151|  62.8k|    if (U_FAILURE(errorCode)) { return OTHER; }
  ------------------
  |  Branch (151:9): [True: 0, False: 62.8k]
  ------------------
  152|  62.8k|    int32_t i = indexOrNegativeFromString(keyword);
  153|  62.8k|    if (i >= 0) {
  ------------------
  |  Branch (153:9): [True: 62.8k, False: 0]
  ------------------
  154|  62.8k|        return i;
  155|  62.8k|    } else {
  156|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  157|      0|        return OTHER;
  158|      0|    }
  159|  62.8k|}

_ZN6icu_7814StandardPlural10fromStringERKNS_13UnicodeStringER10UErrorCode:
   80|  62.8k|    static Form fromString(const UnicodeString &keyword, UErrorCode &errorCode) {
   81|  62.8k|        return static_cast<Form>(indexFromString(keyword, errorCode));
   82|  62.8k|    }

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

_Z15TestPluralRulesPN6icu_7811PluralRulesEidR10UErrorCode:
   14|  33.9k|void TestPluralRules(icu::PluralRules* pp, int32_t number, double dbl,  UErrorCode& status) {
   15|  33.9k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (15:9): [True: 11.3k, False: 22.6k]
  ------------------
   16|  11.3k|        return;
   17|  11.3k|    }
   18|  22.6k|    pp->select(number);
   19|  22.6k|    pp->select(dbl);
   20|  22.6k|}
_Z25TestPluralRulesWithLocaleRKN6icu_786LocaleEid11UPluralTypeR10UErrorCode:
   23|  9.71k|    const icu::Locale& locale, int32_t number, double dbl,  UPluralType type, UErrorCode& status) {
   24|  9.71k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (24:9): [True: 0, False: 9.71k]
  ------------------
   25|      0|        return;
   26|      0|    }
   27|  9.71k|    std::unique_ptr<icu::PluralRules> pp(icu::PluralRules::forLocale(locale, status));
   28|  9.71k|    TestPluralRules(pp.get(), number, dbl, status);
   29|       |
   30|  9.71k|    status = U_ZERO_ERROR;
   31|  9.71k|    pp.reset(icu::PluralRules::forLocale(locale, type, status));
   32|  9.71k|    TestPluralRules(pp.get(), number, dbl, status);
   33|       |
   34|  9.71k|    type = static_cast<UPluralType>(
   35|  9.71k|        static_cast<int>(type) % (static_cast<int>(UPLURAL_TYPE_COUNT)));
   36|       |
   37|  9.71k|    status = U_ZERO_ERROR;
   38|  9.71k|    pp.reset(icu::PluralRules::forLocale(locale, type, status));
   39|  9.71k|    TestPluralRules(pp.get(), number, dbl, status);
   40|  9.71k|}
LLVMFuzzerTestOneInput:
   42|  4.86k|extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
   43|  4.86k|    uint16_t rnd;
   44|  4.86k|    int32_t number;
   45|  4.86k|    double dbl;
   46|  4.86k|    UPluralType  type;
   47|  4.86k|    if (size > 5000) {
  ------------------
  |  Branch (47:9): [True: 8, False: 4.85k]
  ------------------
   48|      8|        size = 5000;
   49|      8|    }
   50|  4.86k|    if (size < sizeof(rnd) + sizeof(number) + sizeof(dbl) + sizeof(type)) return 0;
  ------------------
  |  Branch (50:9): [True: 11, False: 4.85k]
  ------------------
   51|  4.85k|    icu::StringPiece fuzzData(reinterpret_cast<const char *>(data), size);
   52|       |
   53|  4.85k|    std::memcpy(&rnd, fuzzData.data(), sizeof(rnd));
   54|  4.85k|    icu::Locale locale = GetRandomLocale(rnd);
   55|  4.85k|    fuzzData.remove_prefix(sizeof(rnd));
   56|       |
   57|  4.85k|    std::memcpy(&number, fuzzData.data(), sizeof(number));
   58|  4.85k|    fuzzData.remove_prefix(sizeof(number));
   59|       |
   60|  4.85k|    std::memcpy(&dbl, fuzzData.data(), sizeof(dbl));
   61|  4.85k|    fuzzData.remove_prefix(sizeof(dbl));
   62|       |
   63|  4.85k|    std::memcpy(&type, fuzzData.data(), sizeof(type));
   64|  4.85k|    fuzzData.remove_prefix(sizeof(type));
   65|       |
   66|  4.85k|    size_t len = fuzzData.size() / sizeof(char16_t);
   67|  4.85k|    icu::UnicodeString text(false, reinterpret_cast<const char16_t*>(fuzzData.data()), len);
   68|       |
   69|  4.85k|    UErrorCode status = U_ZERO_ERROR;
   70|  4.85k|    std::unique_ptr<icu::PluralRules> pp(
   71|  4.85k|        icu::PluralRules::createRules(text, status));
   72|  4.85k|    TestPluralRules(pp.get(), number, dbl, status);
   73|       |
   74|  4.85k|    status = U_ZERO_ERROR;
   75|  4.85k|    TestPluralRulesWithLocale(locale, number, dbl, type, status);
   76|       |
   77|  4.85k|    std::string str(fuzzData.data(), fuzzData.size()); // ensure null-terminate
   78|       |                                                       // by std::string c_str
   79|  4.85k|    icu::Locale locale2(str.c_str());
   80|       |
   81|  4.85k|    status = U_ZERO_ERROR;
   82|  4.85k|    TestPluralRulesWithLocale(locale2, number, dbl, type, status);
   83|  4.85k|    return EXIT_SUCCESS;
   84|  4.86k|}

