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

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

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

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

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

_ZN6icu_7810CharStringC2ENS_11StringPieceER10UErrorCode:
   44|  2.36k|    CharString(StringPiece s, UErrorCode &errorCode) : len(0) {
   45|  2.36k|        buffer[0]=0;
   46|  2.36k|        append(s, errorCode);
   47|  2.36k|    }
_ZN6icu_7810CharString6appendENS_11StringPieceER10UErrorCode:
  131|  11.7k|    CharString &append(StringPiece s, UErrorCode &errorCode) {
  132|  11.7k|        return append(s.data(), s.length(), errorCode);
  133|  11.7k|    }
_ZN6icu_7810CharString4dataEv:
   85|  10.9k|    char *data() { return buffer.getAlias(); }
_ZN6icu_7810CharStringD2Ev:
   56|  17.4k|    ~CharString() {}
_ZN6icu_7810CharStringC2Ev:
   43|  14.3k|    CharString() : len(0) { buffer[0]=0; }
_ZN6icu_7810CharStringC2EPKciR10UErrorCode:
   52|    717|    CharString(const char *s, int32_t sLength, UErrorCode &errorCode) : len(0) {
   53|    717|        buffer[0]=0;
   54|    717|        append(s, sLength, errorCode);
   55|    717|    }
_ZNK6icu_7810CharString7isEmptyEv:
   79|  5.15k|    UBool isEmpty() const { return len==0; }
_ZNK6icu_7810CharString6lengthEv:
   80|  6.26k|    int32_t length() const { return len; }
_ZNK6icu_7810CharString4dataEv:
   84|  2.20k|    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|  2.22k|    CharString &clear() { len=0; buffer[0]=0; return *this; }
_ZN6icu_7810CharString6appendERKS0_R10UErrorCode:
  134|  1.75k|    CharString &append(const CharString &s, UErrorCode &errorCode) {
  135|  1.75k|        return append(s.data(), s.length(), errorCode);
  136|  1.75k|    }

_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|  76.2k|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|  76.2k|    if (s > 0) {
  ------------------
  |  Branch (54:9): [True: 76.2k, False: 0]
  ------------------
   55|  76.2k|        if (pAlloc) {
  ------------------
  |  Branch (55:13): [True: 0, False: 76.2k]
  ------------------
   56|      0|            return (*pAlloc)(pContext, s);
   57|  76.2k|        } else {
   58|  76.2k|            return uprv_default_malloc(s);
  ------------------
  |  |  615|  76.2k|# define uprv_default_malloc(x) malloc(x)
  ------------------
   59|  76.2k|        }
   60|  76.2k|    } else {
   61|      0|        return (void *)zeroMem;
   62|      0|    }
   63|  76.2k|}
uprv_free_78:
   90|  76.0k|uprv_free(void *buffer) {
   91|       |#if U_DEBUG && defined(UPRV_MALLOC_COUNT)
   92|       |  putchar('<');
   93|       |  fflush(stdout);
   94|       |#endif
   95|  76.0k|    if (buffer != zeroMem) {
  ------------------
  |  Branch (95:9): [True: 76.0k, False: 0]
  ------------------
   96|  76.0k|        if (pFree) {
  ------------------
  |  Branch (96:13): [True: 0, False: 76.0k]
  ------------------
   97|      0|            (*pFree)(pContext, buffer);
   98|  76.0k|        } else {
   99|  76.0k|            uprv_default_free(buffer);
  ------------------
  |  |  617|  76.0k|# define uprv_default_free(x) free(x)
  ------------------
  100|  76.0k|        }
  101|  76.0k|    }
  102|  76.0k|}

_ZN6icu_7815MaybeStackArrayIcLi40EEC2Ev:
  344|  17.4k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZN6icu_7815MaybeStackArrayIcLi40EED2Ev:
  363|  17.4k|    ~MaybeStackArray() { releaseArray(); }
_ZNK6icu_7815MaybeStackArrayIcLi40EE11getCapacityEv:
  376|  26.0k|    int32_t getCapacity() const { return capacity; }
_ZNK6icu_7815MaybeStackArrayIcLi40EE8getAliasEv:
  381|  68.3k|    T *getAlias() const { return ptr; }
_ZN6icu_7815MaybeStackArrayIcLi40EEixEl:
  402|  48.5k|    T &operator[](ptrdiff_t i) { return ptr[i]; }
_ZN6icu_7815MaybeStackArrayIcLi40EE6resizeEii:
  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_7815MaybeStackArrayIcLi40EE12releaseArrayEv:
  458|  17.4k|    void releaseArray() {
  459|  17.4k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 6, False: 17.4k]
  ------------------
  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|  17.4k|    }
_ZN6icu_7815MaybeStackArrayINS_8SpanInfoELi8EEC2Ev:
  344|  23.6k|    MaybeStackArray() : ptr(stackArray), capacity(stackCapacity), needToRelease(false) {}
_ZN6icu_7815MaybeStackArrayINS_8SpanInfoELi8EED2Ev:
  363|  23.6k|    ~MaybeStackArray() { releaseArray(); }
_ZN6icu_7815MaybeStackArrayINS_8SpanInfoELi8EE12releaseArrayEv:
  458|  23.6k|    void releaseArray() {
  459|  23.6k|        if(needToRelease) {
  ------------------
  |  Branch (459:12): [True: 0, False: 23.6k]
  ------------------
  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|  23.6k|    }
_ZNK6icu_7815MaybeStackArrayINS_8SpanInfoELi8EE11getCapacityEv:
  376|  47.2k|    int32_t getCapacity() const { return capacity; }
_ZN6icu_7815MaybeStackArrayINS_8SpanInfoELi8EEixEl:
  402|  47.2k|    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|    }
umutex.cpp:_ZZN6icu_78L9umtx_initEvENK3$_0clEv:
  144|      1|#define STATIC_NEW(type) [] () { \
  145|      1|    alignas(type) static char storage[sizeof(type)]; \
  146|      1|    return new(storage) type();} ()
umutex.cpp:_ZZN6icu_78L9umtx_initEvENK3$_1clEv:
  144|      1|#define STATIC_NEW(type) [] () { \
  145|      1|    alignas(type) static char storage[sizeof(type)]; \
  146|      1|    return new(storage) type();} ()

uprv_isASCIILetter_78:
   52|  2.94k|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|  2.94k|    return ('a'<=c && c<='z') || ('A'<=c && c<='Z');
  ------------------
  |  Branch (58:13): [True: 942, False: 2.00k]
  |  Branch (58:23): [True: 942, False: 0]
  |  Branch (58:35): [True: 1.98k, False: 14]
  |  Branch (58:45): [True: 1.98k, False: 0]
  ------------------
   59|  2.94k|#endif
   60|  2.94k|}
uprv_toupper_78:
   63|  2.24k|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|  2.24k|    if('a'<=c && c<='z') {
  ------------------
  |  Branch (69:8): [True: 0, False: 2.24k]
  |  Branch (69:18): [True: 0, False: 0]
  ------------------
   70|      0|        c=(char)(c+('A'-'a'));
   71|      0|    }
   72|  2.24k|#endif
   73|  2.24k|    return c;
   74|  2.24k|}
uprv_asciitolower_78:
  103|  6.09k|uprv_asciitolower(char c) {
  104|  6.09k|    if(0x41<=c && c<=0x5a) {
  ------------------
  |  Branch (104:8): [True: 6.09k, False: 1]
  |  Branch (104:19): [True: 5, False: 6.08k]
  ------------------
  105|      5|        c=(char)(c+0x20);
  106|      5|    }
  107|  6.09k|    return c;
  108|  6.09k|}
T_CString_toLowerCase_78:
  124|      1|{
  125|      1|    char* origPtr = str;
  126|       |
  127|      1|    if (str) {
  ------------------
  |  Branch (127:9): [True: 1, False: 0]
  ------------------
  128|      1|        do
  129|      6|            *str = uprv_tolower(*str);
  ------------------
  |  |   68|      6|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|      6|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|      6|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|      6|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|      6|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  130|      6|        while (*(str++));
  ------------------
  |  Branch (130:16): [True: 5, False: 1]
  ------------------
  131|      1|    }
  132|       |
  133|      1|    return origPtr;
  134|      1|}
uprv_strnicmp_78:
  274|  1.18k|uprv_strnicmp(const char *str1, const char *str2, uint32_t n) {
  275|  1.18k|    if(str1==nullptr) {
  ------------------
  |  Branch (275:8): [True: 0, False: 1.18k]
  ------------------
  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|  1.18k|    } else if(str2==nullptr) {
  ------------------
  |  Branch (281:15): [True: 0, False: 1.18k]
  ------------------
  282|      0|        return 1;
  283|  1.18k|    } else {
  284|       |        /* compare non-nullptr strings lexically with lowercase */
  285|  1.18k|        int rc;
  286|  1.18k|        unsigned char c1, c2;
  287|       |
  288|  1.20k|        for(; n--;) {
  ------------------
  |  Branch (288:15): [True: 1.20k, False: 0]
  ------------------
  289|  1.20k|            c1=(unsigned char)*str1;
  290|  1.20k|            c2=(unsigned char)*str2;
  291|  1.20k|            if(c1==0) {
  ------------------
  |  Branch (291:16): [True: 0, False: 1.20k]
  ------------------
  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|  1.20k|            } else if(c2==0) {
  ------------------
  |  Branch (297:23): [True: 0, False: 1.20k]
  ------------------
  298|      0|                return 1;
  299|  1.20k|            } else {
  300|       |                /* compare non-zero characters with lowercase */
  301|  1.20k|                rc=(int)(unsigned char)uprv_tolower(c1)-(int)(unsigned char)uprv_tolower(c2);
  ------------------
  |  |   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
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                              rc=(int)(unsigned char)uprv_tolower(c1)-(int)(unsigned char)uprv_tolower(c2);
  ------------------
  |  |   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
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  302|  1.20k|                if(rc!=0) {
  ------------------
  |  Branch (302:20): [True: 1.18k, False: 13]
  ------------------
  303|  1.18k|                    return rc;
  304|  1.18k|                }
  305|  1.20k|            }
  306|     13|            ++str1;
  307|     13|            ++str2;
  308|     13|        }
  309|  1.18k|    }
  310|       |
  311|      0|    return 0;
  312|  1.18k|}

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

_ZN6icu_789HashtableC2Ev:
  184|      1| : hash(nullptr)
  185|      1|{
  186|      1|    UErrorCode status = U_ZERO_ERROR;
  187|      1|    init(uhash_hashUnicodeString, uhash_compareUnicodeString, nullptr, status);
  ------------------
  |  | 1017|      1|#define uhash_hashUnicodeString U_ICU_ENTRY_POINT_RENAME(uhash_hashUnicodeString)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  init(uhash_hashUnicodeString, uhash_compareUnicodeString, nullptr, status);
  ------------------
  |  |  999|      1|#define uhash_compareUnicodeString U_ICU_ENTRY_POINT_RENAME(uhash_compareUnicodeString)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  188|      1|}
_ZN6icu_789Hashtable4initEPFi8UElementEPFaS1_S1_ES5_R10UErrorCode:
  127|      1|                            UValueComparator *valueComp, UErrorCode& status) {
  128|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (128:9): [True: 0, False: 1]
  ------------------
  129|      0|        return;
  130|      0|    }
  131|      1|    uhash_init(&hashObj, keyHash, keyComp, valueComp, &status);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  132|      1|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (132:9): [True: 1, False: 0]
  ------------------
  133|      1|        hash = &hashObj;
  134|      1|        uhash_setKeyDeleter(hash, uprv_deleteUObject);
  ------------------
  |  | 1040|      1|#define uhash_setKeyDeleter U_ICU_ENTRY_POINT_RENAME(uhash_setKeyDeleter)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      uhash_setKeyDeleter(hash, uprv_deleteUObject);
  ------------------
  |  | 1489|      1|#define uprv_deleteUObject U_ICU_ENTRY_POINT_RENAME(uprv_deleteUObject)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  135|      1|    }
  136|      1|}
_ZN6icu_789Hashtable15setValueDeleterEPFvPvE:
  196|      1|inline UObjectDeleter *Hashtable::setValueDeleter(UObjectDeleter *fn) {
  197|      1|    return uhash_setValueDeleter(hash, fn);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  198|      1|}
_ZNK6icu_789Hashtable3getERKNS_13UnicodeStringE:
  217|  2.85k|inline void* Hashtable::get(const UnicodeString& key) const {
  218|  2.85k|    return uhash_get(hash, &key);
  ------------------
  |  | 1007|  2.85k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  2.85k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.85k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.85k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  219|  2.85k|}
_ZN6icu_789Hashtable3putERKNS_13UnicodeStringEPvR10UErrorCode:
  204|    497|inline void* Hashtable::put(const UnicodeString& key, void* value, UErrorCode& status) {
  205|    497|    return uhash_put(hash, new UnicodeString(key), value, &status);
  ------------------
  |  | 1032|    497|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|    497|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    497|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    497|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  206|    497|}

_ZN6icu_7821locale_available_initEv:
   58|      1|void U_CALLCONV locale_available_init() {
   59|       |    // This function is a friend of class Locale.
   60|       |    // This function is only invoked via umtx_initOnce().
   61|       |    
   62|       |    // for now, there is a hardcoded list, so just walk through that list and set it up.
   63|       |    //  Note: this function is a friend of class Locale.
   64|      1|    availableLocaleListCount = uloc_countAvailable();
  ------------------
  |  | 1110|      1|#define uloc_countAvailable U_ICU_ENTRY_POINT_RENAME(uloc_countAvailable)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   65|      1|    if(availableLocaleListCount) {
  ------------------
  |  Branch (65:8): [True: 1, False: 0]
  ------------------
   66|      1|       availableLocaleList = new Locale[availableLocaleListCount];
   67|      1|    }
   68|      1|    if (availableLocaleList == nullptr) {
  ------------------
  |  Branch (68:9): [True: 0, False: 1]
  ------------------
   69|      0|        availableLocaleListCount= 0;
   70|      0|    }
   71|    886|    for (int32_t locCount=availableLocaleListCount-1; locCount>=0; --locCount) {
  ------------------
  |  Branch (71:55): [True: 885, False: 1]
  ------------------
   72|    885|        availableLocaleList[locCount].setFromPOSIXID(uloc_getAvailable(locCount));
  ------------------
  |  | 1112|    885|#define uloc_getAvailable U_ICU_ENTRY_POINT_RENAME(uloc_getAvailable)
  |  |  ------------------
  |  |  |  |  123|    885|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    885|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    885|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   73|    885|    }
   74|      1|    ucln_common_registerCleanup(UCLN_COMMON_LOCALE_AVAILABLE, locale_available_cleanup);
  ------------------
  |  |  617|      1|#define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   75|      1|}
_ZN6icu_786Locale19getAvailableLocalesERi:
   79|  1.14k|{
   80|  1.14k|    umtx_initOnce(gInitOnceLocale, &locale_available_init);
   81|  1.14k|    count = availableLocaleListCount;
   82|  1.14k|    return availableLocaleList;
   83|  1.14k|}
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|  1.14k|{
  231|  1.14k|    U_NAMESPACE_USE
  ------------------
  |  |  112|  1.14k|#   define U_NAMESPACE_USE using namespace U_ICU_NAMESPACE;
  ------------------
  232|  1.14k|    return Locale::getDefault().getName();
  233|  1.14k|}
_ZN6icu_786LocaleD2Ev:
  247|  1.14k|{
  248|  1.14k|    if ((baseName != fullName) && (baseName != fullNameBuffer)) {
  ------------------
  |  Branch (248:9): [True: 0, False: 1.14k]
  |  Branch (248:35): [True: 0, False: 0]
  ------------------
  249|      0|        uprv_free(baseName);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  250|      0|    }
  251|  1.14k|    baseName = nullptr;
  252|       |    /*if fullName is on the heap, we free it*/
  253|  1.14k|    if (fullName != fullNameBuffer)
  ------------------
  |  Branch (253:9): [True: 0, False: 1.14k]
  ------------------
  254|      0|    {
  255|      0|        uprv_free(fullName);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  256|      0|        fullName = nullptr;
  257|      0|    }
  258|  1.14k|}
_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_786LocaleC2ERKS0_:
  396|  1.14k|    : UObject(other), fullName(fullNameBuffer), baseName(nullptr)
  397|  1.14k|{
  398|  1.14k|    *this = other;
  399|  1.14k|}
_ZN6icu_786LocaleaSERKS0_:
  406|  2.02k|Locale& Locale::operator=(const Locale& other) {
  407|  2.02k|    if (this == &other) {
  ------------------
  |  Branch (407:9): [True: 0, False: 2.02k]
  ------------------
  408|      0|        return *this;
  409|      0|    }
  410|       |
  411|  2.02k|    setToBogus();
  412|       |
  413|  2.02k|    if (other.fullName == other.fullNameBuffer) {
  ------------------
  |  Branch (413:9): [True: 2.02k, False: 0]
  ------------------
  414|  2.02k|        uprv_strcpy(fullNameBuffer, other.fullNameBuffer);
  ------------------
  |  |   36|  2.02k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  2.02k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  415|  2.02k|    } else if (other.fullName == nullptr) {
  ------------------
  |  Branch (415:16): [True: 0, False: 0]
  ------------------
  416|      0|        fullName = nullptr;
  417|      0|    } else {
  418|      0|        fullName = uprv_strdup(other.fullName);
  ------------------
  |  | 1541|      0|#define uprv_strdup U_ICU_ENTRY_POINT_RENAME(uprv_strdup)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  419|      0|        if (fullName == nullptr) return *this;
  ------------------
  |  Branch (419:13): [True: 0, False: 0]
  ------------------
  420|      0|    }
  421|       |
  422|  2.02k|    if (other.baseName == other.fullName) {
  ------------------
  |  Branch (422:9): [True: 2.02k, False: 0]
  ------------------
  423|  2.02k|        baseName = fullName;
  424|  2.02k|    } else if (other.baseName != nullptr) {
  ------------------
  |  Branch (424:16): [True: 0, False: 0]
  ------------------
  425|      0|        baseName = uprv_strdup(other.baseName);
  ------------------
  |  | 1541|      0|#define uprv_strdup U_ICU_ENTRY_POINT_RENAME(uprv_strdup)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  426|      0|        if (baseName == nullptr) return *this;
  ------------------
  |  Branch (426:13): [True: 0, False: 0]
  ------------------
  427|      0|    }
  428|       |
  429|  2.02k|    uprv_strcpy(language, other.language);
  ------------------
  |  |   36|  2.02k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  2.02k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  430|  2.02k|    uprv_strcpy(script, other.script);
  ------------------
  |  |   36|  2.02k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  2.02k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  431|  2.02k|    uprv_strcpy(country, other.country);
  ------------------
  |  |   36|  2.02k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  2.02k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  432|       |
  433|  2.02k|    variantBegin = other.variantBegin;
  434|  2.02k|    fIsBogus = other.fIsBogus;
  435|       |
  436|  2.02k|    return *this;
  437|  2.02k|}
_ZN6icu_786Locale4initEPKca:
 1832|  1.77k|{
 1833|  1.77k|    return localeID == nullptr ? *this = getDefault() : init(StringPiece{localeID}, canonicalize);
  ------------------
  |  Branch (1833:12): [True: 885, False: 886]
  ------------------
 1834|  1.77k|}
_ZN6icu_786Locale4initENS_11StringPieceEa:
 1838|    886|{
 1839|    886|    fIsBogus = false;
 1840|       |    /* Free our current storage */
 1841|    886|    if ((baseName != fullName) && (baseName != fullNameBuffer)) {
  ------------------
  |  Branch (1841:9): [True: 1, False: 885]
  |  Branch (1841:35): [True: 1, False: 0]
  ------------------
 1842|      1|        uprv_free(baseName);
  ------------------
  |  | 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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1843|      1|    }
 1844|    886|    baseName = nullptr;
 1845|    886|    if(fullName != fullNameBuffer) {
  ------------------
  |  Branch (1845:8): [True: 0, False: 886]
  ------------------
 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|    886|    do {
 1854|    886|        char *separator;
 1855|    886|        char *field[5] = {nullptr};
 1856|    886|        int32_t fieldLen[5] = {0};
 1857|    886|        int32_t fieldIdx;
 1858|    886|        int32_t variantField;
 1859|    886|        int32_t length;
 1860|    886|        UErrorCode err;
 1861|       |
 1862|       |        /* preset all fields to empty */
 1863|    886|        language[0] = script[0] = country[0] = 0;
 1864|       |
 1865|    886|        const auto parse = [canonicalize](std::string_view localeID,
 1866|    886|                                          char* name,
 1867|    886|                                          int32_t nameCapacity,
 1868|    886|                                          UErrorCode& status) {
 1869|    886|            return ByteSinkUtil::viaByteSinkToTerminatedChars(
 1870|    886|                name, nameCapacity,
 1871|    886|                [&](ByteSink& sink, UErrorCode& status) {
 1872|    886|                    if (canonicalize) {
 1873|    886|                        ulocimp_canonicalize(localeID, sink, status);
 1874|    886|                    } else {
 1875|    886|                        ulocimp_getName(localeID, sink, status);
 1876|    886|                    }
 1877|    886|                },
 1878|    886|                status);
 1879|    886|        };
 1880|       |
 1881|       |        // "canonicalize" the locale ID to ICU/Java format
 1882|    886|        err = U_ZERO_ERROR;
 1883|    886|        length = parse(localeID, fullName, sizeof fullNameBuffer, err);
 1884|       |
 1885|    886|        if (err == U_BUFFER_OVERFLOW_ERROR || length >= static_cast<int32_t>(sizeof(fullNameBuffer))) {
  ------------------
  |  Branch (1885:13): [True: 0, False: 886]
  |  Branch (1885:47): [True: 0, False: 886]
  ------------------
 1886|      0|            U_ASSERT(baseName == nullptr);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1887|       |            /*Go to heap for the fullName if necessary*/
 1888|      0|            char* newFullName = static_cast<char*>(uprv_malloc(sizeof(char) * (length + 1)));
  ------------------
  |  | 1524|      0|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1889|      0|            if (newFullName == nullptr) {
  ------------------
  |  Branch (1889:17): [True: 0, False: 0]
  ------------------
 1890|      0|                break; // error: out of memory
 1891|      0|            }
 1892|      0|            fullName = newFullName;
 1893|      0|            err = U_ZERO_ERROR;
 1894|      0|            length = parse(localeID, fullName, length + 1, err);
 1895|      0|        }
 1896|    886|        if(U_FAILURE(err) || err == U_STRING_NOT_TERMINATED_WARNING) {
  ------------------
  |  Branch (1896:12): [True: 0, False: 886]
  |  Branch (1896:30): [True: 0, False: 886]
  ------------------
 1897|       |            /* should never occur */
 1898|      0|            break;
 1899|      0|        }
 1900|       |
 1901|    886|        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|    886|        separator = field[0] = fullName;
 1906|    886|        fieldIdx = 1;
 1907|    886|        char* at = uprv_strchr(fullName, '@');
  ------------------
  |  |   40|    886|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|    886|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1908|  1.61k|        while ((separator = uprv_strchr(field[fieldIdx-1], SEP_CHAR)) != nullptr &&
  ------------------
  |  |   40|  1.61k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  1.61k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1908:16): [True: 725, False: 886]
  ------------------
 1909|  1.61k|               fieldIdx < UPRV_LENGTHOF(field)-1 &&
  ------------------
  |  |   99|    725|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (1909:16): [True: 725, False: 0]
  ------------------
 1910|  1.61k|               (at == nullptr || separator < at)) {
  ------------------
  |  Branch (1910:17): [True: 725, False: 0]
  |  Branch (1910:34): [True: 0, False: 0]
  ------------------
 1911|    725|            field[fieldIdx] = separator + 1;
 1912|    725|            fieldLen[fieldIdx - 1] = static_cast<int32_t>(separator - field[fieldIdx - 1]);
 1913|    725|            fieldIdx++;
 1914|    725|        }
 1915|       |        // variant may contain @foo or .foo POSIX cruft; remove it
 1916|    886|        separator = uprv_strchr(field[fieldIdx-1], '@');
  ------------------
  |  |   40|    886|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|    886|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1917|    886|        char* sep2 = uprv_strchr(field[fieldIdx-1], '.');
  ------------------
  |  |   40|    886|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|    886|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1918|    886|        if (separator!=nullptr || sep2!=nullptr) {
  ------------------
  |  Branch (1918:13): [True: 0, False: 886]
  |  Branch (1918:35): [True: 0, False: 886]
  ------------------
 1919|      0|            if (separator==nullptr || (sep2!=nullptr && separator > sep2)) {
  ------------------
  |  Branch (1919:17): [True: 0, False: 0]
  |  Branch (1919:40): [True: 0, False: 0]
  |  Branch (1919:57): [True: 0, False: 0]
  ------------------
 1920|      0|                separator = sep2;
 1921|      0|            }
 1922|      0|            fieldLen[fieldIdx - 1] = static_cast<int32_t>(separator - field[fieldIdx - 1]);
 1923|    886|        } else {
 1924|    886|            fieldLen[fieldIdx - 1] = length - static_cast<int32_t>(field[fieldIdx - 1] - fullName);
 1925|    886|        }
 1926|       |
 1927|    886|        if (fieldLen[0] >= static_cast<int32_t>(sizeof(language)))
  ------------------
  |  Branch (1927:13): [True: 0, False: 886]
  ------------------
 1928|      0|        {
 1929|      0|            break; // error: the language field is too long
 1930|      0|        }
 1931|       |
 1932|    886|        variantField = 1; /* Usually the 2nd one, except when a script or country is also used. */
 1933|    886|        if (fieldLen[0] > 0) {
  ------------------
  |  Branch (1933:13): [True: 886, False: 0]
  ------------------
 1934|       |            /* We have a language */
 1935|    886|            uprv_memcpy(language, fullName, fieldLen[0]);
  ------------------
  |  |   42|    886|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    886|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    886|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    886|    _Pragma("clang diagnostic push") \
  |  |   45|    886|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    886|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    886|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    886|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    886|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    886|    _Pragma("clang diagnostic pop") \
  |  |   49|    886|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    886|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    886|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    886|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1936|    886|            language[fieldLen[0]] = 0;
 1937|    886|        }
 1938|    886|        if (fieldLen[1] == 4 && uprv_isASCIILetter(field[1][0]) &&
  ------------------
  |  | 1514|    113|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|    113|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    113|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    113|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1938:13): [True: 113, False: 773]
  |  Branch (1938:33): [True: 113, False: 0]
  ------------------
 1939|    886|                uprv_isASCIILetter(field[1][1]) && uprv_isASCIILetter(field[1][2]) &&
  ------------------
  |  | 1514|    113|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|    113|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    113|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    113|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                              uprv_isASCIILetter(field[1][1]) && uprv_isASCIILetter(field[1][2]) &&
  ------------------
  |  | 1514|    113|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|    113|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    113|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    113|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1939:17): [True: 113, False: 0]
  |  Branch (1939:52): [True: 113, False: 0]
  ------------------
 1940|    886|                uprv_isASCIILetter(field[1][3])) {
  ------------------
  |  | 1514|    113|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|    113|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    113|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    113|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1940:17): [True: 113, False: 0]
  ------------------
 1941|       |            /* We have at least a script */
 1942|    113|            uprv_memcpy(script, field[1], fieldLen[1]);
  ------------------
  |  |   42|    113|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    113|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    113|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    113|    _Pragma("clang diagnostic push") \
  |  |   45|    113|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    113|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    113|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    113|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    113|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    113|    _Pragma("clang diagnostic pop") \
  |  |   49|    113|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    113|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    113|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    113|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1943|    113|            script[fieldLen[1]] = 0;
 1944|    113|            variantField++;
 1945|    113|        }
 1946|       |
 1947|    886|        if (fieldLen[variantField] == 2 || fieldLen[variantField] == 3) {
  ------------------
  |  Branch (1947:13): [True: 603, False: 283]
  |  Branch (1947:44): [True: 7, False: 276]
  ------------------
 1948|       |            /* We have a country */
 1949|    610|            uprv_memcpy(country, field[variantField], fieldLen[variantField]);
  ------------------
  |  |   42|    610|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    610|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    610|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    610|    _Pragma("clang diagnostic push") \
  |  |   45|    610|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    610|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    610|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    610|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    610|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    610|    _Pragma("clang diagnostic pop") \
  |  |   49|    610|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    610|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    610|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    610|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1950|    610|            country[fieldLen[variantField]] = 0;
 1951|    610|            variantField++;
 1952|    610|        } else if (fieldLen[variantField] == 0) {
  ------------------
  |  Branch (1952:20): [True: 276, False: 0]
  ------------------
 1953|    276|            variantField++; /* script or country empty but variant in next field (i.e. en__POSIX) */
 1954|    276|        }
 1955|       |
 1956|    886|        if (fieldLen[variantField] > 0) {
  ------------------
  |  Branch (1956:13): [True: 2, False: 884]
  ------------------
 1957|       |            /* We have a variant */
 1958|      2|            variantBegin = static_cast<int32_t>(field[variantField] - fullName);
 1959|      2|        }
 1960|       |
 1961|    886|        err = U_ZERO_ERROR;
 1962|    886|        initBaseName(err);
 1963|    886|        if (U_FAILURE(err)) {
  ------------------
  |  Branch (1963:13): [True: 0, False: 886]
  ------------------
 1964|      0|            break;
 1965|      0|        }
 1966|       |
 1967|    886|        if (canonicalize) {
  ------------------
  |  Branch (1967:13): [True: 885, False: 1]
  ------------------
 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|    886|        return *this;
 1984|    886|    } while(0); /*loop doesn't iterate*/
  ------------------
  |  Branch (1984:13): [Folded - Ignored]
  ------------------
 1985|       |
 1986|       |    // when an error occurs, then set this object to "bogus" (there is no UErrorCode here)
 1987|      0|    setToBogus();
 1988|       |
 1989|      0|    return *this;
 1990|    886|}
_ZN6icu_786Locale12initBaseNameER10UErrorCode:
 1999|    886|Locale::initBaseName(UErrorCode &status) {
 2000|    886|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (2000:9): [True: 0, False: 886]
  ------------------
 2001|      0|        return;
 2002|      0|    }
 2003|    886|    U_ASSERT(baseName==nullptr || baseName==fullName);
  ------------------
  |  |   35|    886|#   define U_ASSERT(exp) (void)0
  ------------------
 2004|    886|    const char *atPtr = uprv_strchr(fullName, '@');
  ------------------
  |  |   40|    886|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|    886|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2005|    886|    const char *eqPtr = uprv_strchr(fullName, '=');
  ------------------
  |  |   40|    886|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|    886|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2006|    886|    if (atPtr && eqPtr && atPtr < eqPtr) {
  ------------------
  |  Branch (2006:9): [True: 0, False: 886]
  |  Branch (2006:18): [True: 0, False: 0]
  |  Branch (2006:27): [True: 0, False: 0]
  ------------------
 2007|       |        // Key words exist.
 2008|      0|        int32_t baseNameLength = static_cast<int32_t>(atPtr - fullName);
 2009|      0|        char* newBaseName = static_cast<char*>(uprv_malloc(baseNameLength + 1));
  ------------------
  |  | 1524|      0|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2010|      0|        if (newBaseName == nullptr) {
  ------------------
  |  Branch (2010:13): [True: 0, False: 0]
  ------------------
 2011|      0|            status = U_MEMORY_ALLOCATION_ERROR;
 2012|      0|            return;
 2013|      0|        }
 2014|      0|        baseName = newBaseName;
 2015|      0|        uprv_strncpy(baseName, fullName, baseNameLength);
  ------------------
  |  |   43|      0|#define uprv_strncpy(dst, src, size) U_STANDARD_CPP_NAMESPACE strncpy(dst, src, size)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2016|      0|        baseName[baseNameLength] = 0;
 2017|       |
 2018|       |        // The original computation of variantBegin leaves it equal to the length
 2019|       |        // of fullName if there is no variant.  It should instead be
 2020|       |        // the length of the baseName.
 2021|      0|        if (variantBegin > baseNameLength) {
  ------------------
  |  Branch (2021:13): [True: 0, False: 0]
  ------------------
 2022|      0|            variantBegin = baseNameLength;
 2023|      0|        }
 2024|    886|    } else {
 2025|    886|        baseName = fullName;
 2026|    886|    }
 2027|    886|}
_ZN6icu_786Locale10setToBogusEv:
 2037|  2.02k|Locale::setToBogus() {
 2038|       |    /* Free our current storage */
 2039|  2.02k|    if((baseName != fullName) && (baseName != fullNameBuffer)) {
  ------------------
  |  Branch (2039:8): [True: 2.02k, False: 0]
  |  Branch (2039:34): [True: 2.02k, False: 0]
  ------------------
 2040|  2.02k|        uprv_free(baseName);
  ------------------
  |  | 1503|  2.02k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  2.02k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.02k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.02k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2041|  2.02k|    }
 2042|  2.02k|    baseName = nullptr;
 2043|  2.02k|    if(fullName != fullNameBuffer) {
  ------------------
  |  Branch (2043:8): [True: 0, False: 2.02k]
  ------------------
 2044|      0|        uprv_free(fullName);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2045|      0|        fullName = fullNameBuffer;
 2046|      0|    }
 2047|  2.02k|    *fullNameBuffer = 0;
 2048|  2.02k|    *language = 0;
 2049|  2.02k|    *script = 0;
 2050|  2.02k|    *country = 0;
 2051|  2.02k|    fIsBogus = true;
 2052|  2.02k|    variantBegin = 0;
 2053|  2.02k|}
_ZN6icu_786Locale10getDefaultEv:
 2057|  2.03k|{
 2058|  2.03k|    {
 2059|  2.03k|        Mutex lock(&gDefaultLocaleMutex);
 2060|  2.03k|        if (gDefaultLocale != nullptr) {
  ------------------
  |  Branch (2060:13): [True: 2.03k, False: 1]
  ------------------
 2061|  2.03k|            return *gDefaultLocale;
 2062|  2.03k|        }
 2063|  2.03k|    }
 2064|      1|    UErrorCode status = U_ZERO_ERROR;
 2065|      1|    return *locale_set_default_internal(nullptr, status);
 2066|  2.03k|}
_ZN6icu_786Locale14setFromPOSIXIDEPKc:
 2267|    885|{
 2268|    885|    init(posixID, true);
 2269|    885|}
locid.cpp:_ZN6icu_7812_GLOBAL__N_118canonicalizeLocaleERKNS_6LocaleERNS_10CharStringER10UErrorCode:
 1776|    717|{
 1777|    717|    if (U_FAILURE(status)) { return false; }
  ------------------
  |  Branch (1777:9): [True: 0, False: 717]
  ------------------
 1778|    717|    AliasReplacer replacer(status);
 1779|    717|    return replacer.replace(locale, out, status);
 1780|    717|}
locid.cpp:_ZN6icu_7812_GLOBAL__N_113AliasReplacerC2ER10UErrorCode:
 1062|    717|            language(nullptr), script(nullptr), region(nullptr),
 1063|    717|            extensions(nullptr),
 1064|       |            // store value in variants only once
 1065|    717|            variants(nullptr,
 1066|    717|                     ([](UElement e1, UElement e2) -> UBool {
 1067|    717|                       return 0==uprv_strcmp((const char*)e1.pointer,
 1068|    717|                                             (const char*)e2.pointer);}),
 1069|    717|                     status),
 1070|    717|            data(nullptr) {
 1071|    717|    }
locid.cpp:_ZN6icu_7812_GLOBAL__N_113AliasReplacer7replaceERKNS_6LocaleERNS_10CharStringER10UErrorCode:
 1627|    717|{
 1628|    717|    data = AliasData::singleton(status);
 1629|    717|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1629:9): [True: 0, False: 717]
  ------------------
 1630|      0|        return false;
 1631|      0|    }
 1632|    717|    U_ASSERT(data != nullptr);
  ------------------
  |  |   35|    717|#   define U_ASSERT(exp) (void)0
  ------------------
 1633|    717|    out.clear();
 1634|    717|    language = locale.getLanguage();
 1635|    717|    if (!notEmpty(language)) {
  ------------------
  |  Branch (1635:9): [True: 0, False: 717]
  ------------------
 1636|      0|        language = nullptr;
 1637|      0|    }
 1638|    717|    script = locale.getScript();
 1639|    717|    if (!notEmpty(script)) {
  ------------------
  |  Branch (1639:9): [True: 612, False: 105]
  ------------------
 1640|    612|        script = nullptr;
 1641|    612|    }
 1642|    717|    region = locale.getCountry();
 1643|    717|    if (!notEmpty(region)) {
  ------------------
  |  Branch (1643:9): [True: 189, False: 528]
  ------------------
 1644|    189|        region = nullptr;
 1645|    189|    }
 1646|    717|    const char* variantsStr = locale.getVariant();
 1647|    717|    CharString variantsBuff(variantsStr, -1, status);
 1648|    717|    if (!variantsBuff.isEmpty()) {
  ------------------
  |  Branch (1648:9): [True: 1, False: 716]
  ------------------
 1649|      1|        if (U_FAILURE(status)) { return false; }
  ------------------
  |  Branch (1649:13): [True: 0, False: 1]
  ------------------
 1650|      1|        char* start = variantsBuff.data();
 1651|      1|        T_CString_toLowerCase(start);
  ------------------
  |  |   69|      1|#define T_CString_toLowerCase U_ICU_ENTRY_POINT_RENAME(T_CString_toLowerCase)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1652|      1|        char* end;
 1653|      1|        while ((end = uprv_strchr(start, SEP_CHAR)) != nullptr &&
  ------------------
  |  |   40|      1|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|      1|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1653:16): [True: 0, False: 1]
  ------------------
 1654|      1|               U_SUCCESS(status)) {
  ------------------
  |  Branch (1654:16): [True: 0, False: 0]
  ------------------
 1655|      0|            *end = NULL_CHAR;  // null terminate inside variantsBuff
  ------------------
  |  |  244|      0|#define NULL_CHAR '\0'
  ------------------
 1656|       |            // do not add "" or duplicate data to variants
 1657|      0|            if (*start && !variants.contains(start)) {
  ------------------
  |  Branch (1657:17): [True: 0, False: 0]
  |  Branch (1657:27): [True: 0, False: 0]
  ------------------
 1658|      0|                variants.addElement(start, status);
 1659|      0|            }
 1660|      0|            start = end + 1;
 1661|      0|        }
 1662|       |        // do not add "" or duplicate data to variants
 1663|      1|        if (*start && !variants.contains(start)) {
  ------------------
  |  Branch (1663:13): [True: 1, False: 0]
  |  Branch (1663:23): [True: 1, False: 0]
  ------------------
 1664|      1|            variants.addElement(start, status);
 1665|      1|        }
 1666|      1|    }
 1667|    717|    if (U_FAILURE(status)) { return false; }
  ------------------
  |  Branch (1667:9): [True: 0, False: 717]
  ------------------
 1668|       |
 1669|       |    // Sort the variants
 1670|    717|    variants.sort([](UElement e1, UElement e2) -> int32_t {
 1671|    717|        return uprv_strcmp((const char*)e1.pointer, (const char*)e2.pointer);
 1672|    717|    }, status);
 1673|       |
 1674|       |    // A changed count to assert when loop too many times.
 1675|    717|    int changed = 0;
 1676|       |    // A UVector to to hold CharString allocated by the replace* method
 1677|       |    // and freed when out of scope from his function.
 1678|    717|    UVector stringsToBeFreed([](void *obj) { delete static_cast<CharString*>(obj); },
 1679|    717|                             nullptr, 10, status);
 1680|    717|    while (U_SUCCESS(status)) {
  ------------------
  |  Branch (1680:12): [True: 717, False: 0]
  ------------------
 1681|       |        // Something wrong with the data cause looping here more than 10 times
 1682|       |        // already.
 1683|    717|        U_ASSERT(changed < 5);
  ------------------
  |  |   35|    717|#   define U_ASSERT(exp) (void)0
  ------------------
 1684|       |        // From observation of key in data/misc/metadata.txt
 1685|       |        // we know currently we only need to search in the following combination
 1686|       |        // of fields for type in languageAlias:
 1687|       |        // * lang_region_variant
 1688|       |        // * lang_region
 1689|       |        // * lang_variant
 1690|       |        // * lang
 1691|       |        // * und_variant
 1692|       |        // This assumption is ensured by the U_ASSERT in readLanguageAlias
 1693|       |        //
 1694|       |        //                      lang  REGION variant
 1695|    717|        if (    replaceLanguage(true, true,  true,  stringsToBeFreed, status) ||
  ------------------
  |  Branch (1695:17): [True: 0, False: 717]
  ------------------
 1696|    717|                replaceLanguage(true, true,  false, stringsToBeFreed, status) ||
  ------------------
  |  Branch (1696:17): [True: 0, False: 717]
  ------------------
 1697|    717|                replaceLanguage(true, false, true,  stringsToBeFreed, status) ||
  ------------------
  |  Branch (1697:17): [True: 0, False: 717]
  ------------------
 1698|    717|                replaceLanguage(true, false, false, stringsToBeFreed, status) ||
  ------------------
  |  Branch (1698:17): [True: 0, False: 717]
  ------------------
 1699|    717|                replaceLanguage(false,false, true,  stringsToBeFreed, status) ||
  ------------------
  |  Branch (1699:17): [True: 0, False: 717]
  ------------------
 1700|    717|                replaceTerritory(stringsToBeFreed, status) ||
  ------------------
  |  Branch (1700:17): [True: 0, False: 717]
  ------------------
 1701|    717|                replaceScript(status) ||
  ------------------
  |  Branch (1701:17): [True: 0, False: 717]
  ------------------
 1702|    717|                replaceVariant(status)) {
  ------------------
  |  Branch (1702:17): [True: 0, False: 717]
  ------------------
 1703|       |            // Some values in data is changed, try to match from the beginning
 1704|       |            // again.
 1705|      0|            changed++;
 1706|      0|            continue;
 1707|      0|        }
 1708|       |        // Nothing changed. Break out.
 1709|    717|        break;
 1710|    717|    }  // while(1)
 1711|       |
 1712|    717|    if (U_FAILURE(status)) { return false; }
  ------------------
  |  Branch (1712:9): [True: 0, False: 717]
  ------------------
 1713|       |    // Nothing changed and we know the order of the variants are not change
 1714|       |    // because we have no variant or only one.
 1715|    717|    const char* extensionsStr = locale_getKeywordsStart(locale.getName());
  ------------------
  |  |  138|    717|#define locale_getKeywordsStart U_ICU_ENTRY_POINT_RENAME(locale_getKeywordsStart)
  |  |  ------------------
  |  |  |  |  123|    717|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    717|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    717|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1716|    717|    if (changed == 0 && variants.size() <= 1 && extensionsStr == nullptr) {
  ------------------
  |  Branch (1716:9): [True: 717, False: 0]
  |  Branch (1716:25): [True: 717, False: 0]
  |  Branch (1716:49): [True: 717, False: 0]
  ------------------
 1717|    717|        return false;
 1718|    717|    }
 1719|      0|    outputToString(out, status);
 1720|      0|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1720:9): [True: 0, False: 0]
  ------------------
 1721|      0|        return false;
 1722|      0|    }
 1723|      0|    if (extensionsStr != nullptr) {
  ------------------
  |  Branch (1723:9): [True: 0, False: 0]
  ------------------
 1724|      0|        changed = 0;
 1725|      0|        Locale temp(locale);
 1726|      0|        LocalPointer<icu::StringEnumeration> iter(locale.createKeywords(status));
 1727|      0|        if (U_SUCCESS(status) && !iter.isNull()) {
  ------------------
  |  Branch (1727:13): [True: 0, False: 0]
  |  Branch (1727:34): [True: 0, False: 0]
  ------------------
 1728|      0|            const char* key;
 1729|      0|            while ((key = iter->next(nullptr, status)) != nullptr) {
  ------------------
  |  Branch (1729:20): [True: 0, False: 0]
  ------------------
 1730|      0|                if (uprv_strcmp("sd", key) == 0 || uprv_strcmp("rg", key) == 0 ||
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                              if (uprv_strcmp("sd", key) == 0 || uprv_strcmp("rg", key) == 0 ||
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1730:21): [True: 0, False: 0]
  |  Branch (1730:52): [True: 0, False: 0]
  ------------------
 1731|      0|                        uprv_strcmp("t", key) == 0) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1731:25): [True: 0, False: 0]
  ------------------
 1732|      0|                    auto value = locale.getKeywordValue<CharString>(key, status);
 1733|      0|                    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1733:25): [True: 0, False: 0]
  ------------------
 1734|      0|                        status = U_ZERO_ERROR;
 1735|      0|                        continue;
 1736|      0|                    }
 1737|      0|                    CharString replacement;
 1738|      0|                    if (uprv_strlen(key) == 2) {
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1738:25): [True: 0, False: 0]
  ------------------
 1739|      0|                        if (replaceSubdivision(value.toStringPiece(), replacement, status)) {
  ------------------
  |  Branch (1739:29): [True: 0, False: 0]
  ------------------
 1740|      0|                            changed++;
 1741|      0|                            temp.setKeywordValue(key, replacement.data(), status);
 1742|      0|                        }
 1743|      0|                    } else {
 1744|      0|                        U_ASSERT(uprv_strcmp(key, "t") == 0);
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1745|      0|                        if (replaceTransformedExtensions(value, replacement, status)) {
  ------------------
  |  Branch (1745:29): [True: 0, False: 0]
  ------------------
 1746|      0|                            changed++;
 1747|      0|                            temp.setKeywordValue(key, replacement.data(), status);
 1748|      0|                        }
 1749|      0|                    }
 1750|      0|                    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1750:25): [True: 0, False: 0]
  ------------------
 1751|      0|                        return false;
 1752|      0|                    }
 1753|      0|                }
 1754|      0|            }
 1755|      0|        }
 1756|      0|        if (changed != 0) {
  ------------------
  |  Branch (1756:13): [True: 0, False: 0]
  ------------------
 1757|      0|            extensionsStr = locale_getKeywordsStart(temp.getName());
  ------------------
  |  |  138|      0|#define locale_getKeywordsStart U_ICU_ENTRY_POINT_RENAME(locale_getKeywordsStart)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1758|      0|        }
 1759|      0|        out.append(extensionsStr, status);
 1760|      0|    }
 1761|      0|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1761:9): [True: 0, False: 0]
  ------------------
 1762|      0|        return false;
 1763|      0|    }
 1764|       |    // If the tag is not changed, return.
 1765|      0|    if (uprv_strcmp(out.data(), locale.getName()) == 0) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1765:9): [True: 0, False: 0]
  ------------------
 1766|      0|        out.clear();
 1767|      0|        return false;
 1768|      0|    }
 1769|      0|    return true;
 1770|      0|}
locid.cpp:_ZN6icu_7812_GLOBAL__N_19AliasData9singletonER10UErrorCode:
  623|    717|    static const AliasData* singleton(UErrorCode& status) {
  624|    717|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (624:13): [True: 0, False: 717]
  ------------------
  625|       |            // Do not get into loadData if the status already has error.
  626|      0|            return nullptr;
  627|      0|        }
  628|    717|        umtx_initOnce(AliasData::gInitOnce, &AliasData::loadData, status);
  629|    717|        return gSingleton;
  630|    717|    }
locid.cpp:_ZN6icu_7812_GLOBAL__N_19AliasData8loadDataER10UErrorCode:
  896|      1|{
  897|       |#ifdef LOCALE_CANONICALIZATION_DEBUG
  898|       |    UDate start = uprv_getRawUTCtime();
  899|       |#endif  // LOCALE_CANONICALIZATION_DEBUG
  900|      1|    ucln_common_registerCleanup(UCLN_COMMON_LOCALE_ALIAS, cleanup);
  ------------------
  |  |  617|      1|#define ucln_common_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_common_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  901|      1|    AliasDataBuilder builder;
  902|      1|    gSingleton = builder.build(status);
  903|       |#ifdef LOCALE_CANONICALIZATION_DEBUG
  904|       |    UDate end = uprv_getRawUTCtime();
  905|       |    printf("AliasData::loadData took total %f ms\n", end - start);
  906|       |#endif  // LOCALE_CANONICALIZATION_DEBUG
  907|      1|}
locid.cpp:_ZN6icu_7812_GLOBAL__N_116AliasDataBuilderC2Ev:
  544|      1|    AliasDataBuilder() {
  545|      1|    }
locid.cpp:_ZN6icu_7812_GLOBAL__N_116AliasDataBuilder5buildER10UErrorCode:
  913|      1|AliasDataBuilder::build(UErrorCode &status) {
  914|      1|    if (U_FAILURE(status)) { return nullptr; }
  ------------------
  |  Branch (914:9): [True: 0, False: 1]
  ------------------
  915|       |
  916|      1|    LocalUResourceBundlePointer metadata(
  917|      1|        ures_openDirect(nullptr, "metadata", &status));
  ------------------
  |  | 1693|      1|#define ures_openDirect U_ICU_ENTRY_POINT_RENAME(ures_openDirect)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  918|      1|    LocalUResourceBundlePointer metadataAlias(
  919|      1|        ures_getByKey(metadata.getAlias(), "alias", nullptr, &status));
  ------------------
  |  | 1661|      1|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  920|      1|    LocalUResourceBundlePointer languageAlias(
  921|      1|        ures_getByKey(metadataAlias.getAlias(), "language", nullptr, &status));
  ------------------
  |  | 1661|      1|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  922|      1|    LocalUResourceBundlePointer scriptAlias(
  923|      1|        ures_getByKey(metadataAlias.getAlias(), "script", nullptr, &status));
  ------------------
  |  | 1661|      1|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  924|      1|    LocalUResourceBundlePointer territoryAlias(
  925|      1|        ures_getByKey(metadataAlias.getAlias(), "territory", nullptr, &status));
  ------------------
  |  | 1661|      1|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  926|      1|    LocalUResourceBundlePointer variantAlias(
  927|      1|        ures_getByKey(metadataAlias.getAlias(), "variant", nullptr, &status));
  ------------------
  |  | 1661|      1|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  928|      1|    LocalUResourceBundlePointer subdivisionAlias(
  929|      1|        ures_getByKey(metadataAlias.getAlias(), "subdivision", nullptr, &status));
  ------------------
  |  | 1661|      1|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  930|       |
  931|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (931:9): [True: 0, False: 1]
  ------------------
  932|      0|        return nullptr;
  933|      0|    }
  934|      1|    int32_t languagesLength = 0, scriptLength = 0, territoryLength = 0,
  935|      1|            variantLength = 0, subdivisionLength = 0;
  936|       |
  937|       |    // Read the languageAlias into languageTypes, languageReplacementIndexes
  938|       |    // and strings
  939|      1|    UniqueCharStrings strings(status);
  940|      1|    LocalMemory<const char*> languageTypes;
  941|      1|    LocalMemory<int32_t> languageReplacementIndexes;
  942|      1|    readLanguageAlias(languageAlias.getAlias(),
  943|      1|                      &strings,
  944|      1|                      languageTypes,
  945|      1|                      languageReplacementIndexes,
  946|      1|                      languagesLength,
  947|      1|                      status);
  948|       |
  949|       |    // Read the scriptAlias into scriptTypes, scriptReplacementIndexes
  950|       |    // and strings
  951|      1|    LocalMemory<const char*> scriptTypes;
  952|      1|    LocalMemory<int32_t> scriptReplacementIndexes;
  953|      1|    readScriptAlias(scriptAlias.getAlias(),
  954|      1|                    &strings,
  955|      1|                    scriptTypes,
  956|      1|                    scriptReplacementIndexes,
  957|      1|                    scriptLength,
  958|      1|                    status);
  959|       |
  960|       |    // Read the territoryAlias into territoryTypes, territoryReplacementIndexes
  961|       |    // and strings
  962|      1|    LocalMemory<const char*> territoryTypes;
  963|      1|    LocalMemory<int32_t> territoryReplacementIndexes;
  964|      1|    readTerritoryAlias(territoryAlias.getAlias(),
  965|      1|                       &strings,
  966|      1|                       territoryTypes,
  967|      1|                       territoryReplacementIndexes,
  968|      1|                       territoryLength, status);
  969|       |
  970|       |    // Read the variantAlias into variantTypes, variantReplacementIndexes
  971|       |    // and strings
  972|      1|    LocalMemory<const char*> variantTypes;
  973|      1|    LocalMemory<int32_t> variantReplacementIndexes;
  974|      1|    readVariantAlias(variantAlias.getAlias(),
  975|      1|                     &strings,
  976|      1|                     variantTypes,
  977|      1|                     variantReplacementIndexes,
  978|      1|                     variantLength, status);
  979|       |
  980|       |    // Read the subdivisionAlias into subdivisionTypes, subdivisionReplacementIndexes
  981|       |    // and strings
  982|      1|    LocalMemory<const char*> subdivisionTypes;
  983|      1|    LocalMemory<int32_t> subdivisionReplacementIndexes;
  984|      1|    readSubdivisionAlias(subdivisionAlias.getAlias(),
  985|      1|                         &strings,
  986|      1|                         subdivisionTypes,
  987|      1|                         subdivisionReplacementIndexes,
  988|      1|                         subdivisionLength, status);
  989|       |
  990|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (990:9): [True: 0, False: 1]
  ------------------
  991|      0|        return nullptr;
  992|      0|    }
  993|       |
  994|       |    // We can only use strings after freeze it.
  995|      1|    strings.freeze();
  996|       |
  997|       |    // Build the languageMap from languageTypes & languageReplacementIndexes
  998|      1|    CharStringMap languageMap(490, status);
  999|    501|    for (int32_t i = 0; U_SUCCESS(status) && i < languagesLength; i++) {
  ------------------
  |  Branch (999:25): [True: 501, False: 0]
  |  Branch (999:46): [True: 500, False: 1]
  ------------------
 1000|    500|        languageMap.put(languageTypes[i],
 1001|    500|                        strings.get(languageReplacementIndexes[i]),
 1002|    500|                        status);
 1003|    500|    }
 1004|       |
 1005|       |    // Build the scriptMap from scriptTypes & scriptReplacementIndexes
 1006|      1|    CharStringMap scriptMap(1, status);
 1007|      2|    for (int32_t i = 0; U_SUCCESS(status) && i < scriptLength; i++) {
  ------------------
  |  Branch (1007:25): [True: 2, False: 0]
  |  Branch (1007:46): [True: 1, False: 1]
  ------------------
 1008|      1|        scriptMap.put(scriptTypes[i],
 1009|      1|                      strings.get(scriptReplacementIndexes[i]),
 1010|      1|                      status);
 1011|      1|    }
 1012|       |
 1013|       |    // Build the territoryMap from territoryTypes & territoryReplacementIndexes
 1014|      1|    CharStringMap territoryMap(650, status);
 1015|    641|    for (int32_t i = 0; U_SUCCESS(status) && i < territoryLength; i++) {
  ------------------
  |  Branch (1015:25): [True: 641, False: 0]
  |  Branch (1015:46): [True: 640, False: 1]
  ------------------
 1016|    640|        territoryMap.put(territoryTypes[i],
 1017|    640|                         strings.get(territoryReplacementIndexes[i]),
 1018|    640|                         status);
 1019|    640|    }
 1020|       |
 1021|       |    // Build the variantMap from variantTypes & variantReplacementIndexes.
 1022|      1|    CharStringMap variantMap(2, status);
 1023|      3|    for (int32_t i = 0; U_SUCCESS(status) && i < variantLength; i++) {
  ------------------
  |  Branch (1023:25): [True: 3, False: 0]
  |  Branch (1023:46): [True: 2, False: 1]
  ------------------
 1024|      2|        variantMap.put(variantTypes[i],
 1025|      2|                       strings.get(variantReplacementIndexes[i]),
 1026|      2|                       status);
 1027|      2|    }
 1028|       |
 1029|       |    // Build the subdivisionMap from subdivisionTypes & subdivisionReplacementIndexes.
 1030|      1|    CharStringMap subdivisionMap(2, status);
 1031|    148|    for (int32_t i = 0; U_SUCCESS(status) && i < subdivisionLength; i++) {
  ------------------
  |  Branch (1031:25): [True: 148, False: 0]
  |  Branch (1031:46): [True: 147, False: 1]
  ------------------
 1032|    147|        subdivisionMap.put(subdivisionTypes[i],
 1033|    147|                       strings.get(subdivisionReplacementIndexes[i]),
 1034|    147|                       status);
 1035|    147|    }
 1036|       |
 1037|      1|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1037:9): [True: 0, False: 1]
  ------------------
 1038|      0|        return nullptr;
 1039|      0|    }
 1040|       |
 1041|       |    // copy hashtables
 1042|      1|    auto *data = new AliasData(
 1043|      1|        std::move(languageMap),
 1044|      1|        std::move(scriptMap),
 1045|      1|        std::move(territoryMap),
 1046|      1|        std::move(variantMap),
 1047|      1|        std::move(subdivisionMap),
 1048|      1|        strings.orphanCharStrings());
 1049|       |
 1050|      1|    if (data == nullptr) {
  ------------------
  |  Branch (1050:9): [True: 0, False: 1]
  ------------------
 1051|      0|        status = U_MEMORY_ALLOCATION_ERROR;
 1052|      0|    }
 1053|      1|    return data;
 1054|      1|}
locid.cpp:_ZN6icu_7812_GLOBAL__N_116AliasDataBuilder17readLanguageAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCode:
  740|      1|{
  741|      1|    return readAlias(
  742|      1|        alias, strings, types, replacementIndexes, length,
  743|       |#if U_DEBUG
  744|       |        [](const char* type) {
  745|       |            // Assert the aliasFrom only contains the following possibilities
  746|       |            // language_REGION_variant
  747|       |            // language_REGION
  748|       |            // language_variant
  749|       |            // language
  750|       |            // und_variant
  751|       |            Locale test(type);
  752|       |            // Assert no script in aliasFrom
  753|       |            U_ASSERT(test.getScript()[0] == '\0');
  754|       |            // Assert when language is und, no REGION in aliasFrom.
  755|       |            U_ASSERT(test.getLanguage()[0] != '\0' || test.getCountry()[0] == '\0');
  756|       |        },
  757|       |#else
  758|      1|        [](const char*) {},
  759|      1|#endif
  760|      1|        [](const UChar*) {}, status);
  761|      1|}
locid.cpp:_ZN6icu_7812_GLOBAL__N_116AliasDataBuilder9readAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiPFvS8_EPFvPKDsER10UErrorCode:
  695|      5|        UErrorCode &status) {
  696|      5|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (696:9): [True: 0, False: 5]
  ------------------
  697|      0|        return;
  698|      0|    }
  699|      5|    length = ures_getSize(alias);
  ------------------
  |  | 1674|      5|#define ures_getSize U_ICU_ENTRY_POINT_RENAME(ures_getSize)
  |  |  ------------------
  |  |  |  |  123|      5|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      5|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      5|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  700|      5|    const char** rawTypes = types.allocateInsteadAndCopy(length);
  701|      5|    if (rawTypes == nullptr) {
  ------------------
  |  Branch (701:9): [True: 0, False: 5]
  ------------------
  702|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  703|      0|        return;
  704|      0|    }
  705|      5|    int32_t* rawIndexes = replacementIndexes.allocateInsteadAndCopy(length);
  706|      5|    if (rawIndexes == nullptr) {
  ------------------
  |  Branch (706:9): [True: 0, False: 5]
  ------------------
  707|      0|        status = U_MEMORY_ALLOCATION_ERROR;
  708|      0|        return;
  709|      0|    }
  710|  1.29k|    for (int i = 0; U_SUCCESS(status) && ures_hasNext(alias); i++) {
  ------------------
  |  | 1689|  1.29k|#define ures_hasNext U_ICU_ENTRY_POINT_RENAME(ures_hasNext)
  |  |  ------------------
  |  |  |  |  123|  1.29k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.29k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.29k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (710:21): [True: 1.29k, False: 0]
  |  Branch (710:42): [True: 1.29k, False: 5]
  ------------------
  711|  1.29k|        LocalUResourceBundlePointer res(
  712|  1.29k|            ures_getNextResource(alias, nullptr, &status));
  ------------------
  |  | 1672|  1.29k|#define ures_getNextResource U_ICU_ENTRY_POINT_RENAME(ures_getNextResource)
  |  |  ------------------
  |  |  |  |  123|  1.29k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.29k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.29k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  713|  1.29k|        const char* aliasFrom = ures_getKey(res.getAlias());
  ------------------
  |  | 1666|  1.29k|#define ures_getKey U_ICU_ENTRY_POINT_RENAME(ures_getKey)
  |  |  ------------------
  |  |  |  |  123|  1.29k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.29k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.29k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  714|  1.29k|        const UChar* aliasTo =
  715|  1.29k|            ures_getStringByKey(res.getAlias(), "replacement", nullptr, &status);
  ------------------
  |  | 1677|  1.29k|#define ures_getStringByKey U_ICU_ENTRY_POINT_RENAME(ures_getStringByKey)
  |  |  ------------------
  |  |  |  |  123|  1.29k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.29k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.29k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  716|  1.29k|        if (U_FAILURE(status)) return;
  ------------------
  |  Branch (716:13): [True: 0, False: 1.29k]
  ------------------
  717|       |
  718|  1.29k|        checkType(aliasFrom);
  719|  1.29k|        checkReplacement(aliasTo);
  720|       |
  721|  1.29k|        rawTypes[i] = aliasFrom;
  722|  1.29k|        rawIndexes[i] = strings->add(aliasTo, status);
  723|  1.29k|    }
  724|      5|}
locid.cpp:_ZZN6icu_7812_GLOBAL__N_116AliasDataBuilder17readLanguageAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCodeENK3$_0clES8_:
  758|    500|        [](const char*) {},
locid.cpp:_ZZN6icu_7812_GLOBAL__N_116AliasDataBuilder17readLanguageAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCodeENK3$_1clEPKDs:
  760|    500|        [](const UChar*) {}, status);
locid.cpp:_ZN6icu_7812_GLOBAL__N_116AliasDataBuilder15readScriptAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCode:
  777|      1|{
  778|      1|    return readAlias(
  779|      1|        alias, strings, types, replacementIndexes, length,
  780|       |#if U_DEBUG
  781|       |        [](const char* type) {
  782|       |            U_ASSERT(uprv_strlen(type) == 4);
  783|       |        },
  784|       |        [](const UChar* replacement) {
  785|       |            U_ASSERT(u_strlen(replacement) == 4);
  786|       |        },
  787|       |#else
  788|      1|        [](const char*) {},
  789|      1|        [](const UChar*) { },
  790|      1|#endif
  791|      1|        status);
  792|      1|}
locid.cpp:_ZZN6icu_7812_GLOBAL__N_116AliasDataBuilder15readScriptAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCodeENK3$_0clES8_:
  788|      1|        [](const char*) {},
locid.cpp:_ZZN6icu_7812_GLOBAL__N_116AliasDataBuilder15readScriptAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCodeENK3$_1clEPKDs:
  789|      1|        [](const UChar*) { },
locid.cpp:_ZN6icu_7812_GLOBAL__N_116AliasDataBuilder18readTerritoryAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCode:
  808|      1|{
  809|      1|    return readAlias(
  810|      1|        alias, strings, types, replacementIndexes, length,
  811|       |#if U_DEBUG
  812|       |        [](const char* type) {
  813|       |            U_ASSERT(uprv_strlen(type) == 2 || uprv_strlen(type) == 3);
  814|       |        },
  815|       |#else
  816|      1|        [](const char*) {},
  817|      1|#endif
  818|      1|        [](const UChar*) { },
  819|      1|        status);
  820|      1|}
locid.cpp:_ZZN6icu_7812_GLOBAL__N_116AliasDataBuilder18readTerritoryAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCodeENK3$_0clES8_:
  816|    640|        [](const char*) {},
locid.cpp:_ZZN6icu_7812_GLOBAL__N_116AliasDataBuilder18readTerritoryAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCodeENK3$_1clEPKDs:
  818|    640|        [](const UChar*) { },
locid.cpp:_ZN6icu_7812_GLOBAL__N_116AliasDataBuilder16readVariantAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCode:
  836|      1|{
  837|      1|    return readAlias(
  838|      1|        alias, strings, types, replacementIndexes, length,
  839|       |#if U_DEBUG
  840|       |        [](const char* type) {
  841|       |            U_ASSERT(uprv_strlen(type) >= 4 && uprv_strlen(type) <= 8);
  842|       |            U_ASSERT(uprv_strlen(type) != 4 ||
  843|       |                     (type[0] >= '0' && type[0] <= '9'));
  844|       |        },
  845|       |        [](const UChar* replacement) {
  846|       |            int32_t len = u_strlen(replacement);
  847|       |            U_ASSERT(len >= 4 && len <= 8);
  848|       |            U_ASSERT(len != 4 ||
  849|       |                     (*replacement >= u'0' &&
  850|       |                      *replacement <= u'9'));
  851|       |        },
  852|       |#else
  853|      1|        [](const char*) {},
  854|      1|        [](const UChar*) { },
  855|      1|#endif
  856|      1|        status);
  857|      1|}
locid.cpp:_ZZN6icu_7812_GLOBAL__N_116AliasDataBuilder16readVariantAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCodeENK3$_0clES8_:
  853|      2|        [](const char*) {},
locid.cpp:_ZZN6icu_7812_GLOBAL__N_116AliasDataBuilder16readVariantAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCodeENK3$_1clEPKDs:
  854|      2|        [](const UChar*) { },
locid.cpp:_ZN6icu_7812_GLOBAL__N_116AliasDataBuilder20readSubdivisionAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCode:
  873|      1|{
  874|      1|    return readAlias(
  875|      1|        alias, strings, types, replacementIndexes, length,
  876|       |#if U_DEBUG
  877|       |        [](const char* type) {
  878|       |            U_ASSERT(uprv_strlen(type) >= 3 && uprv_strlen(type) <= 8);
  879|       |        },
  880|       |#else
  881|      1|        [](const char*) {},
  882|      1|#endif
  883|      1|        [](const UChar*) { },
  884|      1|        status);
  885|      1|}
locid.cpp:_ZZN6icu_7812_GLOBAL__N_116AliasDataBuilder20readSubdivisionAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCodeENK3$_0clES8_:
  881|    147|        [](const char*) {},
locid.cpp:_ZZN6icu_7812_GLOBAL__N_116AliasDataBuilder20readSubdivisionAliasEP15UResourceBundlePNS_17UniqueCharStringsERNS_11LocalMemoryIPKcEERNS6_IiEERiR10UErrorCodeENK3$_1clEPKDs:
  883|    147|        [](const UChar*) { },
locid.cpp:_ZN6icu_7812_GLOBAL__N_19AliasDataC2ENS_13CharStringMapES2_S2_S2_S2_PNS_10CharStringE:
  650|      1|        : language(std::move(languageMap)),
  651|      1|          script(std::move(scriptMap)),
  652|      1|          territory(std::move(territoryMap)),
  653|      1|          variant(std::move(variantMap)),
  654|      1|          subdivision(std::move(subdivisionMap)),
  655|      1|          strings(strings) {
  656|      1|    }
locid.cpp:_ZN6icu_7812_GLOBAL__N_113AliasReplacer8notEmptyEPKc:
 1090|  4.64k|    inline bool notEmpty(const char* str) {
 1091|  4.64k|        return str && str[0] != NULL_CHAR;
  ------------------
  |  |  244|  2.68k|#define NULL_CHAR '\0'
  ------------------
  |  Branch (1091:16): [True: 2.68k, False: 1.96k]
  |  Branch (1091:23): [True: 1.88k, False: 801]
  ------------------
 1092|  4.64k|    }
locid.cpp:_ZN6icu_7812_GLOBAL__N_113AliasReplacer15replaceLanguageEbbbRNS_7UVectorER10UErrorCode:
 1271|  3.58k|{
 1272|  3.58k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1272:9): [True: 0, False: 3.58k]
  ------------------
 1273|      0|        return false;
 1274|      0|    }
 1275|  3.58k|    if (    (checkRegion && region == nullptr) ||
  ------------------
  |  Branch (1275:14): [True: 1.43k, False: 2.15k]
  |  Branch (1275:29): [True: 378, False: 1.05k]
  ------------------
 1276|  3.58k|            (checkVariants && variants.size() == 0)) {
  ------------------
  |  Branch (1276:14): [True: 1.96k, False: 1.24k]
  |  Branch (1276:31): [True: 1.95k, False: 3]
  ------------------
 1277|       |        // Nothing to search.
 1278|  2.33k|        return false;
 1279|  2.33k|    }
 1280|  1.24k|    int32_t variant_size = checkVariants ? variants.size() : 1;
  ------------------
  |  Branch (1280:28): [True: 3, False: 1.24k]
  ------------------
 1281|       |    // Since we may have more than one variant, we need to loop through them.
 1282|  1.24k|    const char* searchLanguage = checkLanguage ? language : "und";
  ------------------
  |  Branch (1282:34): [True: 1.24k, False: 1]
  ------------------
 1283|  1.24k|    const char* searchRegion = checkRegion ? region : nullptr;
  ------------------
  |  Branch (1283:32): [True: 529, False: 719]
  ------------------
 1284|  1.24k|    const char* searchVariant = nullptr;
 1285|  1.24k|    for (int32_t variant_index = 0;
 1286|  2.49k|            variant_index < variant_size;
  ------------------
  |  Branch (1286:13): [True: 1.24k, False: 1.24k]
  ------------------
 1287|  1.24k|            variant_index++) {
 1288|  1.24k|        if (checkVariants) {
  ------------------
  |  Branch (1288:13): [True: 3, False: 1.24k]
  ------------------
 1289|      3|            U_ASSERT(variant_index < variant_size);
  ------------------
  |  |   35|      3|#   define U_ASSERT(exp) (void)0
  ------------------
 1290|      3|            searchVariant = static_cast<const char*>(variants.elementAt(variant_index));
 1291|      3|        }
 1292|       |
 1293|  1.24k|        if (searchVariant != nullptr && uprv_strlen(searchVariant) < 4) {
  ------------------
  |  |   37|      3|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      3|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1293:13): [True: 3, False: 1.24k]
  |  Branch (1293:41): [True: 0, False: 3]
  ------------------
 1294|       |            // Do not consider  ill-formed variant subtag.
 1295|      0|            searchVariant = nullptr;
 1296|      0|        }
 1297|  1.24k|        CharString typeKey;
 1298|  1.24k|        generateKey(searchLanguage, searchRegion, searchVariant, typeKey,
 1299|  1.24k|                    status);
 1300|  1.24k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (1300:13): [True: 0, False: 1.24k]
  ------------------
 1301|      0|            return false;
 1302|      0|        }
 1303|  1.24k|        const char *replacement = data->languageMap().get(typeKey.data());
 1304|  1.24k|        if (replacement == nullptr) {
  ------------------
  |  Branch (1304:13): [True: 1.24k, False: 0]
  ------------------
 1305|       |            // Found no replacement data.
 1306|  1.24k|            continue;
 1307|  1.24k|        }
 1308|       |
 1309|      0|        const char* replacedLanguage = nullptr;
 1310|      0|        const char* replacedScript = nullptr;
 1311|      0|        const char* replacedRegion = nullptr;
 1312|      0|        const char* replacedVariant = nullptr;
 1313|      0|        const char* replacedExtensions = nullptr;
 1314|      0|        parseLanguageReplacement(replacement,
 1315|      0|                                 replacedLanguage,
 1316|      0|                                 replacedScript,
 1317|      0|                                 replacedRegion,
 1318|      0|                                 replacedVariant,
 1319|      0|                                 replacedExtensions,
 1320|      0|                                 toBeFreed,
 1321|      0|                                 status);
 1322|      0|        replacedLanguage =
 1323|      0|            (replacedLanguage != nullptr && uprv_strcmp(replacedLanguage, "und") == 0) ?
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1323:14): [True: 0, False: 0]
  |  Branch (1323:45): [True: 0, False: 0]
  ------------------
 1324|      0|            language : replacedLanguage;
 1325|      0|        replacedScript = deleteOrReplace(script, nullptr, replacedScript);
 1326|      0|        replacedRegion = deleteOrReplace(region, searchRegion, replacedRegion);
 1327|      0|        replacedVariant = deleteOrReplace(
 1328|      0|            searchVariant, searchVariant, replacedVariant);
 1329|       |
 1330|      0|        if (    same(language, replacedLanguage) &&
  ------------------
  |  Branch (1330:17): [True: 0, False: 0]
  ------------------
 1331|      0|                same(script, replacedScript) &&
  ------------------
  |  Branch (1331:17): [True: 0, False: 0]
  ------------------
 1332|      0|                same(region, replacedRegion) &&
  ------------------
  |  Branch (1332:17): [True: 0, False: 0]
  ------------------
 1333|      0|                same(searchVariant, replacedVariant) &&
  ------------------
  |  Branch (1333:17): [True: 0, False: 0]
  ------------------
 1334|      0|                replacedExtensions == nullptr) {
  ------------------
  |  Branch (1334:17): [True: 0, False: 0]
  ------------------
 1335|       |            // Replacement produce no changes.
 1336|      0|            continue;
 1337|      0|        }
 1338|       |
 1339|      0|        language = replacedLanguage;
 1340|      0|        region = replacedRegion;
 1341|      0|        script = replacedScript;
 1342|      0|        if (searchVariant != nullptr) {
  ------------------
  |  Branch (1342:13): [True: 0, False: 0]
  ------------------
 1343|      0|            if (notEmpty(replacedVariant)) {
  ------------------
  |  Branch (1343:17): [True: 0, False: 0]
  ------------------
 1344|      0|                variants.setElementAt((void*)replacedVariant, variant_index);
 1345|      0|            } else {
 1346|      0|                variants.removeElementAt(variant_index);
 1347|      0|            }
 1348|      0|        }
 1349|      0|        if (replacedExtensions != nullptr) {
  ------------------
  |  Branch (1349:13): [True: 0, False: 0]
  ------------------
 1350|       |            // DO NOTHING
 1351|       |            // UTS35 does not specify what should we do if we have extensions in the
 1352|       |            // replacement. Currently we know only the following 4 "BCP47 LegacyRules" have
 1353|       |            // extensions in them languageAlias:
 1354|       |            //  i_default => en_x_i_default
 1355|       |            //  i_enochian => und_x_i_enochian
 1356|       |            //  i_mingo => see_x_i_mingo
 1357|       |            //  zh_min => nan_x_zh_min
 1358|       |            // But all of them are already changed by code inside ultag_parse() before
 1359|       |            // hitting this code.
 1360|      0|        }
 1361|       |
 1362|       |        // Something changed by language alias data.
 1363|      0|        return true;
 1364|      0|    }
 1365|       |    // Nothing changed by language alias data.
 1366|  1.24k|    return false;
 1367|  1.24k|}
locid.cpp:_ZN6icu_7812_GLOBAL__N_113AliasReplacer11generateKeyEPKcS3_S3_RNS_10CharStringER10UErrorCode:
 1169|  1.24k|{
 1170|  1.24k|    if (U_FAILURE(status)) { return out; }
  ------------------
  |  Branch (1170:9): [True: 0, False: 1.24k]
  ------------------
 1171|  1.24k|    out.append(language, status);
 1172|  1.24k|    if (notEmpty(region)) {
  ------------------
  |  Branch (1172:9): [True: 529, False: 719]
  ------------------
 1173|    529|        out.append(SEP_CHAR, status)
  ------------------
  |  |  243|    529|#define SEP_CHAR '_'
  ------------------
 1174|    529|            .append(region, status);
 1175|    529|    }
 1176|  1.24k|    if (notEmpty(variant)) {
  ------------------
  |  Branch (1176:9): [True: 3, False: 1.24k]
  ------------------
 1177|      3|       out.append(SEP_CHAR, status)
  ------------------
  |  |  243|      3|#define SEP_CHAR '_'
  ------------------
 1178|      3|           .append(variant, status);
 1179|      3|    }
 1180|  1.24k|    return out;
 1181|  1.24k|}
locid.cpp:_ZNK6icu_7812_GLOBAL__N_19AliasData11languageMapEv:
  632|  1.24k|    const CharStringMap& languageMap() const { return language; }
locid.cpp:_ZN6icu_7812_GLOBAL__N_113AliasReplacer16replaceTerritoryERNS_7UVectorER10UErrorCode:
 1371|    717|{
 1372|    717|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1372:9): [True: 0, False: 717]
  ------------------
 1373|      0|        return false;
 1374|      0|    }
 1375|    717|    if (region == nullptr) {
  ------------------
  |  Branch (1375:9): [True: 189, False: 528]
  ------------------
 1376|       |        // No region to search.
 1377|    189|        return false;
 1378|    189|    }
 1379|    528|    const char *replacement = data->territoryMap().get(region);
 1380|    528|    if (replacement == nullptr) {
  ------------------
  |  Branch (1380:9): [True: 528, False: 0]
  ------------------
 1381|       |        // Found no replacement data for this region.
 1382|    528|        return false;
 1383|    528|    }
 1384|      0|    const char* replacedRegion = replacement;
 1385|      0|    const char* firstSpace = uprv_strchr(replacement, ' ');
  ------------------
  |  |   40|      0|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1386|      0|    if (firstSpace != nullptr) {
  ------------------
  |  Branch (1386:9): [True: 0, False: 0]
  ------------------
 1387|       |        // If there are are more than one region in the replacement.
 1388|       |        // We need to check which one match based on the language.
 1389|       |        // Cannot use nullptr for language because that will construct
 1390|       |        // the default locale, in that case, use "und" to get the correct
 1391|       |        // locale.
 1392|      0|        Locale l = LocaleBuilder()
 1393|      0|            .setLanguage(language == nullptr ? "und" : language)
  ------------------
  |  Branch (1393:26): [True: 0, False: 0]
  ------------------
 1394|      0|            .setScript(script)
 1395|      0|            .build(status);
 1396|      0|        l.addLikelySubtags(status);
 1397|      0|        const char* likelyRegion = l.getCountry();
 1398|      0|        LocalPointer<CharString> item;
 1399|      0|        if (likelyRegion != nullptr && uprv_strlen(likelyRegion) > 0) {
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1399:13): [True: 0, False: 0]
  |  Branch (1399:40): [True: 0, False: 0]
  ------------------
 1400|      0|            size_t len = uprv_strlen(likelyRegion);
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1401|      0|            const char* foundInReplacement = uprv_strstr(replacement,
  ------------------
  |  |   41|      0|#define uprv_strstr(s, c) U_STANDARD_CPP_NAMESPACE strstr(s, c)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1402|      0|                                                         likelyRegion);
 1403|      0|            if (foundInReplacement != nullptr) {
  ------------------
  |  Branch (1403:17): [True: 0, False: 0]
  ------------------
 1404|       |                // Assuming the case there are no three letter region code in
 1405|       |                // the replacement of territoryAlias
 1406|      0|                U_ASSERT(foundInReplacement == replacement ||
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1407|      0|                         *(foundInReplacement-1) == ' ');
 1408|      0|                U_ASSERT(foundInReplacement[len] == ' ' ||
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1409|      0|                         foundInReplacement[len] == '\0');
 1410|      0|                item.adoptInsteadAndCheckErrorCode(
 1411|      0|                    new CharString(foundInReplacement, static_cast<int32_t>(len), status), status);
 1412|      0|            }
 1413|      0|        }
 1414|      0|        if (item.isNull() && U_SUCCESS(status)) {
  ------------------
  |  Branch (1414:13): [True: 0, False: 0]
  |  Branch (1414:30): [True: 0, False: 0]
  ------------------
 1415|      0|            item.adoptInsteadAndCheckErrorCode(
 1416|      0|                new CharString(replacement,
 1417|      0|                               static_cast<int32_t>(firstSpace - replacement), status), status);
 1418|      0|        }
 1419|      0|        if (U_FAILURE(status)) { return false; }
  ------------------
  |  Branch (1419:13): [True: 0, False: 0]
  ------------------
 1420|      0|        replacedRegion = item->data();
 1421|      0|        toBeFreed.adoptElement(item.orphan(), status);
 1422|      0|        if (U_FAILURE(status)) { return false; }
  ------------------
  |  Branch (1422:13): [True: 0, False: 0]
  ------------------
 1423|      0|    }
 1424|      0|    U_ASSERT(!same(region, replacedRegion));
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1425|      0|    region = replacedRegion;
 1426|       |    // The region is changed by data in territory alias.
 1427|      0|    return true;
 1428|      0|}
locid.cpp:_ZNK6icu_7812_GLOBAL__N_19AliasData12territoryMapEv:
  634|    528|    const CharStringMap& territoryMap() const { return territory; }
locid.cpp:_ZN6icu_7812_GLOBAL__N_113AliasReplacer13replaceScriptER10UErrorCode:
 1432|    717|{
 1433|    717|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1433:9): [True: 0, False: 717]
  ------------------
 1434|      0|        return false;
 1435|      0|    }
 1436|    717|    if (script == nullptr) {
  ------------------
  |  Branch (1436:9): [True: 612, False: 105]
  ------------------
 1437|       |        // No script to search.
 1438|    612|        return false;
 1439|    612|    }
 1440|    105|    const char *replacement = data->scriptMap().get(script);
 1441|    105|    if (replacement == nullptr) {
  ------------------
  |  Branch (1441:9): [True: 105, False: 0]
  ------------------
 1442|       |        // Found no replacement data for this script.
 1443|    105|        return false;
 1444|    105|    }
 1445|      0|    U_ASSERT(!same(script, replacement));
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1446|      0|    script = replacement;
 1447|       |    // The script is changed by data in script alias.
 1448|      0|    return true;
 1449|    105|}
locid.cpp:_ZNK6icu_7812_GLOBAL__N_19AliasData9scriptMapEv:
  633|    105|    const CharStringMap& scriptMap() const { return script; }
locid.cpp:_ZN6icu_7812_GLOBAL__N_113AliasReplacer14replaceVariantER10UErrorCode:
 1453|    717|{
 1454|    717|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (1454:9): [True: 0, False: 717]
  ------------------
 1455|      0|        return false;
 1456|      0|    }
 1457|       |    // Since we may have more than one variant, we need to loop through them.
 1458|    718|    for (int32_t i = 0; i < variants.size(); i++) {
  ------------------
  |  Branch (1458:25): [True: 1, False: 717]
  ------------------
 1459|      1|        const char* variant = static_cast<const char*>(variants.elementAt(i));
 1460|      1|        const char *replacement = data->variantMap().get(variant);
 1461|      1|        if (replacement == nullptr) {
  ------------------
  |  Branch (1461:13): [True: 1, False: 0]
  ------------------
 1462|       |            // Found no replacement data for this variant.
 1463|      1|            continue;
 1464|      1|        }
 1465|      0|        U_ASSERT((uprv_strlen(replacement) >= 5  &&
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1466|      0|                  uprv_strlen(replacement) <= 8) ||
 1467|      0|                 (uprv_strlen(replacement) == 4 &&
 1468|      0|                  replacement[0] >= '0' &&
 1469|      0|                  replacement[0] <= '9'));
 1470|      0|        if (!same(variant, replacement)) {
  ------------------
  |  Branch (1470:13): [True: 0, False: 0]
  ------------------
 1471|      0|            variants.setElementAt((void*)replacement, i);
 1472|       |            // Special hack to handle hepburn-heploc => alalc97
 1473|      0|            if (uprv_strcmp(variant, "heploc") == 0) {
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1473:17): [True: 0, False: 0]
  ------------------
 1474|      0|                for (int32_t j = 0; j < variants.size(); j++) {
  ------------------
  |  Branch (1474:37): [True: 0, False: 0]
  ------------------
 1475|      0|                     if (uprv_strcmp((const char*)(variants.elementAt(j)),
  ------------------
  |  |   38|      0|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1475:26): [True: 0, False: 0]
  ------------------
 1476|      0|                                     "hepburn") == 0) {
 1477|      0|                         variants.removeElementAt(j);
 1478|      0|                     }
 1479|      0|                }
 1480|      0|            }
 1481|      0|            return true;
 1482|      0|        }
 1483|      0|    }
 1484|    717|    return false;
 1485|    717|}
locid.cpp:_ZNK6icu_7812_GLOBAL__N_19AliasData10variantMapEv:
  635|      1|    const CharStringMap& variantMap() const { return variant; }
locid.cpp:_ZN6icu_7812_GLOBAL__N_113AliasReplacerD2Ev:
 1072|    717|    ~AliasReplacer() {
 1073|    717|    }
locid.cpp:_ZZN6icu_786Locale4initENS_11StringPieceEaENK3$_0clENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEPciR10UErrorCode:
 1868|    886|                                          UErrorCode& status) {
 1869|    886|            return ByteSinkUtil::viaByteSinkToTerminatedChars(
 1870|    886|                name, nameCapacity,
 1871|    886|                [&](ByteSink& sink, UErrorCode& status) {
 1872|    886|                    if (canonicalize) {
 1873|    886|                        ulocimp_canonicalize(localeID, sink, status);
 1874|    886|                    } else {
 1875|    886|                        ulocimp_getName(localeID, sink, status);
 1876|    886|                    }
 1877|    886|                },
 1878|    886|                status);
 1879|    886|        };
locid.cpp:_ZZZN6icu_786Locale4initENS_11StringPieceEaENK3$_0clENSt3__117basic_string_viewIcNS3_11char_traitsIcEEEEPciR10UErrorCodeENKUlRNS_8ByteSinkESA_E_clESC_SA_:
 1871|    886|                [&](ByteSink& sink, UErrorCode& status) {
 1872|    886|                    if (canonicalize) {
  ------------------
  |  Branch (1872:25): [True: 885, False: 1]
  ------------------
 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|    885|                    } else {
 1875|      1|                        ulocimp_getName(localeID, sink, status);
  ------------------
  |  | 1204|      1|#define ulocimp_getName U_ICU_ENTRY_POINT_RENAME(ulocimp_getName)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1876|      1|                    }
 1877|    886|                },
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|  13.4k|    Mutex(UMutex *mutex = nullptr) : fMutex(mutex) {
   59|  13.4k|        umtx_lock(fMutex);
  ------------------
  |  | 1250|  13.4k|#define umtx_lock U_ICU_ENTRY_POINT_RENAME(umtx_lock)
  |  |  ------------------
  |  |  |  |  123|  13.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   60|  13.4k|    }
_ZN6icu_785MutexD2Ev:
   61|  13.4k|    ~Mutex() {
   62|  13.4k|        umtx_unlock(fMutex);
  ------------------
  |  | 1251|  13.4k|#define umtx_unlock U_ICU_ENTRY_POINT_RENAME(umtx_unlock)
  |  |  ------------------
  |  |  |  |  123|  13.4k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  13.4k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  13.4k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   63|  13.4k|    }

uprv_add32_overflow_78:
  524|  30.6k|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|  30.6k|    auto a64 = static_cast<int64_t>(a);
  528|  30.6k|    auto b64 = static_cast<int64_t>(b);
  529|  30.6k|    int64_t res64 = a64 + b64;
  530|  30.6k|    *res = static_cast<int32_t>(res64);
  531|  30.6k|    return res64 != *res;
  532|  30.6k|}
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|    277|u_getDataDirectory() {
 1500|    277|    umtx_initOnce(gDataDirInitOnce, &dataDirectoryInitFn);
 1501|    277|    return gDataDirectory;
 1502|    277|}
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:_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|    778|ResourceValue::~ResourceValue() {}
_ZN6icu_7812ResourceSinkD2Ev:
   20|    498|ResourceSink::~ResourceSink() {}

_ZN6icu_7812ResourceSinkC2Ev:
  266|    498|    ResourceSink() {}
_ZNK6icu_7813ResourceValue21getAliasUnicodeStringER10UErrorCode:
  152|    280|    inline UnicodeString getAliasUnicodeString(UErrorCode &errorCode) const {
  153|    280|        int32_t len = 0;
  154|    280|        const char16_t *r = getAliasString(len, errorCode);
  155|    280|        return UnicodeString(true, r, len);
  156|    280|    }
_ZNK6icu_7813ResourceValue16getUnicodeStringER10UErrorCode:
  141|  1.98k|    inline UnicodeString getUnicodeString(UErrorCode &errorCode) const {
  142|  1.98k|        int32_t len = 0;
  143|  1.98k|        const char16_t *r = getString(len, errorCode);
  144|  1.98k|        return UnicodeString(true, r, len);
  145|  1.98k|    }
_ZN6icu_7813ResourceTableC2EPKtPKiS2_PKjiRKNS_14ResourceTracerE:
   89|  1.32k|            keys16(k16), keys32(k32), items16(i16), items32(i32), length(len),
   90|  1.32k|            fTraceInfo(traceInfo) {}
_ZNK6icu_7813ResourceTable7getSizeEv:
   95|      2|    int32_t getSize() const { return length; }
_ZN6icu_7813ResourceValueC2Ev:
  254|    778|    ResourceValue() {}

_ZN6icu_7814ResourceTracerC2Ev:
  116|    778|    ResourceTracer() {}
_ZN6icu_7814ResourceTracerC2EPKv:
  118|  4.93k|    ResourceTracer(const void*) {}
_ZN6icu_7814ResourceTracerC2EPKvPKc:
  120|  1.29k|    ResourceTracer(const void*, const char*) {}
_ZN6icu_7814ResourceTracerC2ERKS0_PKc:
  124|  5.43k|    ResourceTracer(const ResourceTracer&, const char*) {}
_ZNK6icu_7814ResourceTracer5traceEPKc:
  128|  6.39k|    void trace(const char*) const {}
_ZNK6icu_7814ResourceTracer9traceOpenEv:
  130|    499|    void traceOpen() const {}
_ZN6icu_7810FileTracer9traceOpenEPKcS2_S2_:
  140|    277|    static void traceOpen(const char*, const char*, const char*) {}

_ZN6icu_7815SimpleFormatter27applyPatternMinMaxArgumentsERKNS_13UnicodeStringEiiR10UErrorCode:
   66|  2.20k|        UErrorCode &errorCode) {
   67|  2.20k|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (67:9): [True: 0, False: 2.20k]
  ------------------
   68|      0|        return false;
   69|      0|    }
   70|       |    // Parse consistent with MessagePattern, but
   71|       |    // - support only simple numbered arguments
   72|       |    // - build a simple binary structure into the result string
   73|  2.20k|    const char16_t *patternBuffer = pattern.getBuffer();
   74|  2.20k|    int32_t patternLength = pattern.length();
   75|       |    // Reserve the first char for the number of arguments.
   76|  2.20k|    compiledPattern.setTo(static_cast<char16_t>(0));
   77|  2.20k|    int32_t textLength = 0;
   78|  2.20k|    int32_t maxArg = -1;
   79|  2.20k|    UBool inQuote = false;
   80|  13.0k|    for (int32_t i = 0; i < patternLength;) {
  ------------------
  |  Branch (80:25): [True: 10.7k, False: 2.20k]
  ------------------
   81|  10.7k|        char16_t c = patternBuffer[i++];
   82|  10.7k|        if (c == APOS) {
  ------------------
  |  Branch (82:13): [True: 0, False: 10.7k]
  ------------------
   83|      0|            if (i < patternLength && (c = patternBuffer[i]) == APOS) {
  ------------------
  |  Branch (83:17): [True: 0, False: 0]
  |  Branch (83:38): [True: 0, False: 0]
  ------------------
   84|       |                // double apostrophe, skip the second one
   85|      0|                ++i;
   86|      0|            } else if (inQuote) {
  ------------------
  |  Branch (86:24): [True: 0, False: 0]
  ------------------
   87|       |                // skip the quote-ending apostrophe
   88|      0|                inQuote = false;
   89|      0|                continue;
   90|      0|            } else if (c == OPEN_BRACE || c == CLOSE_BRACE) {
  ------------------
  |  Branch (90:24): [True: 0, False: 0]
  |  Branch (90:43): [True: 0, False: 0]
  ------------------
   91|       |                // Skip the quote-starting apostrophe, find the end of the quoted literal text.
   92|      0|                ++i;
   93|      0|                inQuote = true;
   94|      0|            } else {
   95|       |                // The apostrophe is part of literal text.
   96|      0|                c = APOS;
   97|      0|            }
   98|  10.7k|        } else if (!inQuote && c == OPEN_BRACE) {
  ------------------
  |  Branch (98:20): [True: 10.7k, False: 0]
  |  Branch (98:32): [True: 4.41k, False: 6.38k]
  ------------------
   99|  4.41k|            if (textLength > 0) {
  ------------------
  |  Branch (99:17): [True: 2.15k, False: 2.25k]
  ------------------
  100|  2.15k|                compiledPattern.setCharAt(compiledPattern.length() - textLength - 1,
  101|  2.15k|                                          static_cast<char16_t>(ARG_NUM_LIMIT + textLength));
  102|  2.15k|                textLength = 0;
  103|  2.15k|            }
  104|  4.41k|            int32_t argNumber;
  105|  4.41k|            if ((i + 1) < patternLength &&
  ------------------
  |  Branch (105:17): [True: 4.41k, False: 0]
  ------------------
  106|  4.41k|                    0 <= (argNumber = patternBuffer[i] - DIGIT_ZERO) && argNumber <= 9 &&
  ------------------
  |  Branch (106:21): [True: 4.41k, False: 0]
  |  Branch (106:73): [True: 4.41k, False: 0]
  ------------------
  107|  4.41k|                    patternBuffer[i + 1] == CLOSE_BRACE) {
  ------------------
  |  Branch (107:21): [True: 4.41k, False: 0]
  ------------------
  108|  4.41k|                i += 2;
  109|  4.41k|            } else {
  110|       |                // Multi-digit argument number (no leading zero) or syntax error.
  111|       |                // MessagePattern permits PatternProps.skipWhiteSpace(pattern, index)
  112|       |                // around the number, but this class does not.
  113|      0|                argNumber = -1;
  114|      0|                if (i < patternLength && DIGIT_ONE <= (c = patternBuffer[i++]) && c <= DIGIT_NINE) {
  ------------------
  |  Branch (114:21): [True: 0, False: 0]
  |  Branch (114:42): [True: 0, False: 0]
  |  Branch (114:83): [True: 0, False: 0]
  ------------------
  115|      0|                    argNumber = c - DIGIT_ZERO;
  116|      0|                    while (i < patternLength &&
  ------------------
  |  Branch (116:28): [True: 0, False: 0]
  ------------------
  117|      0|                            DIGIT_ZERO <= (c = patternBuffer[i++]) && c <= DIGIT_NINE) {
  ------------------
  |  Branch (117:29): [True: 0, False: 0]
  |  Branch (117:71): [True: 0, False: 0]
  ------------------
  118|      0|                        argNumber = argNumber * 10 + (c - DIGIT_ZERO);
  119|      0|                        if (argNumber >= ARG_NUM_LIMIT) {
  ------------------
  |  Branch (119:29): [True: 0, False: 0]
  ------------------
  120|      0|                            break;
  121|      0|                        }
  122|      0|                    }
  123|      0|                }
  124|      0|                if (argNumber < 0 || c != CLOSE_BRACE) {
  ------------------
  |  Branch (124:21): [True: 0, False: 0]
  |  Branch (124:38): [True: 0, False: 0]
  ------------------
  125|      0|                    errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  126|      0|                    return false;
  127|      0|                }
  128|      0|            }
  129|  4.41k|            if (argNumber > maxArg) {
  ------------------
  |  Branch (129:17): [True: 4.41k, False: 0]
  ------------------
  130|  4.41k|                maxArg = argNumber;
  131|  4.41k|            }
  132|  4.41k|            compiledPattern.append(static_cast<char16_t>(argNumber));
  133|  4.41k|            continue;
  134|  4.41k|        }  // else: c is part of literal text
  135|       |        // Append c and track the literal-text segment length.
  136|  6.38k|        if (textLength == 0) {
  ------------------
  |  Branch (136:13): [True: 2.17k, False: 4.21k]
  ------------------
  137|       |            // Reserve a char for the length of a new text segment, preset the maximum length.
  138|  2.17k|            compiledPattern.append(SEGMENT_LENGTH_PLACEHOLDER_CHAR);
  139|  2.17k|        }
  140|  6.38k|        compiledPattern.append(c);
  141|  6.38k|        if (++textLength == MAX_SEGMENT_LENGTH) {
  ------------------
  |  Branch (141:13): [True: 0, False: 6.38k]
  ------------------
  142|      0|            textLength = 0;
  143|      0|        }
  144|  6.38k|    }
  145|  2.20k|    if (textLength > 0) {
  ------------------
  |  Branch (145:9): [True: 21, False: 2.18k]
  ------------------
  146|     21|        compiledPattern.setCharAt(compiledPattern.length() - textLength - 1,
  147|     21|                                  static_cast<char16_t>(ARG_NUM_LIMIT + textLength));
  148|     21|    }
  149|  2.20k|    int32_t argCount = maxArg + 1;
  150|  2.20k|    if (argCount < min || max < argCount) {
  ------------------
  |  Branch (150:9): [True: 0, False: 2.20k]
  |  Branch (150:27): [True: 0, False: 2.20k]
  ------------------
  151|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  152|      0|        return false;
  153|      0|    }
  154|  2.20k|    compiledPattern.setCharAt(0, static_cast<char16_t>(argCount));
  155|  2.20k|    return true;
  156|  2.20k|}
_ZN6icu_7815SimpleFormatter22getTextWithNoArgumentsEPKDsiPii:
  252|  28.3k|        int32_t offsetsLength) {
  253|  84.9k|    for (int32_t i = 0; i < offsetsLength; i++) {
  ------------------
  |  Branch (253:25): [True: 56.6k, False: 28.3k]
  ------------------
  254|  56.6k|        offsets[i] = -1;
  255|  56.6k|    }
  256|  28.3k|    int32_t capacity = compiledPatternLength - 1 -
  257|  28.3k|            getArgumentLimit(compiledPattern, compiledPatternLength);
  258|  28.3k|    UnicodeString sb(capacity, 0, 0);  // Java: StringBuilder
  259|   113k|    for (int32_t i = 1; i < compiledPatternLength;) {
  ------------------
  |  Branch (259:25): [True: 85.3k, False: 28.3k]
  ------------------
  260|  85.3k|        int32_t n = compiledPattern[i++];
  261|  85.3k|        if (n > ARG_NUM_LIMIT) {
  ------------------
  |  Branch (261:13): [True: 28.6k, False: 56.6k]
  ------------------
  262|  28.6k|            n -= ARG_NUM_LIMIT;
  263|  28.6k|            sb.append(compiledPattern + i, n);
  264|  28.6k|            i += n;
  265|  56.6k|        } else if (n < offsetsLength) {
  ------------------
  |  Branch (265:20): [True: 56.6k, False: 0]
  ------------------
  266|       |            // TODO(ICU-20406): This does not distinguish between "{0}{1}" and "{1}{0}".
  267|       |            // Consider removing this function and replacing it with an iterator interface.
  268|  56.6k|            offsets[n] = sb.length();
  269|  56.6k|        }
  270|  85.3k|    }
  271|  28.3k|    return sb;
  272|  28.3k|}

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

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

u_getUnicodeProperties_78:
  499|  1.51k|u_getUnicodeProperties(UChar32 c, int32_t column) {
  500|  1.51k|    U_ASSERT(column>=0);
  ------------------
  |  |   35|  1.51k|#   define U_ASSERT(exp) (void)0
  ------------------
  501|  1.51k|    if(column>=propsVectorsColumns) {
  ------------------
  |  Branch (501:8): [True: 0, False: 1.51k]
  ------------------
  502|      0|        return 0;
  503|  1.51k|    } else {
  504|  1.51k|        uint16_t vecIndex=UTRIE2_GET16(&propsVectorsTrie, c);
  ------------------
  |  |  360|  1.51k|#define UTRIE2_GET16(trie, c) _UTRIE2_GET((trie), index, (trie)->indexLength, (c))
  |  |  ------------------
  |  |  |  |  871|  1.51k|    (trie)->data[_UTRIE2_INDEX_FROM_CP(trie, asciiOffset, c)]
  |  |  |  |  ------------------
  |  |  |  |  |  |  845|  1.51k|    ((uint32_t)(c)<0xd800 ? \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (845:6): [True: 654, False: 858]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  846|  1.51k|        _UTRIE2_INDEX_RAW(0, (trie)->index, c) : \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  815|    654|    (((int32_t)((trieIndex)[(offset)+((c)>>UTRIE2_SHIFT_2)]) \
  |  |  |  |  |  |  |  |  816|    654|    <<UTRIE2_INDEX_SHIFT)+ \
  |  |  |  |  |  |  |  |  817|    654|    ((c)&UTRIE2_DATA_MASK))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  847|  1.51k|        (uint32_t)(c)<=0xffff ? \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (847:9): [True: 510, False: 348]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  848|    858|            _UTRIE2_INDEX_RAW( \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  815|  1.02k|    (((int32_t)((trieIndex)[(offset)+((c)>>UTRIE2_SHIFT_2)]) \
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  Branch (815:30): [True: 186, False: 324]
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  816|    510|    <<UTRIE2_INDEX_SHIFT)+ \
  |  |  |  |  |  |  |  |  817|    510|    ((c)&UTRIE2_DATA_MASK))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  849|    858|                (c)<=0xdbff ? UTRIE2_LSCP_INDEX_2_OFFSET-(0xd800>>UTRIE2_SHIFT_2) : 0, \
  |  |  |  |  |  |  850|    858|                (trie)->index, c) : \
  |  |  |  |  |  |  851|    858|            (uint32_t)(c)>0x10ffff ? \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (851:13): [True: 0, False: 348]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  852|    348|                (asciiOffset)+UTRIE2_BAD_UTF8_DATA_OFFSET : \
  |  |  |  |  |  |  853|    348|                (c)>=(trie)->highStart ? \
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (853:17): [True: 0, False: 348]
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  854|    348|                    (trie)->highValueIndex : \
  |  |  |  |  |  |  855|    348|                    _UTRIE2_INDEX_FROM_SUPP((trie)->index, c))
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  833|    348|    (((int32_t)((trieIndex)[ \
  |  |  |  |  |  |  |  |  834|    348|        (trieIndex)[(UTRIE2_INDEX_1_OFFSET-UTRIE2_OMITTED_BMP_INDEX_1_LENGTH)+ \
  |  |  |  |  |  |  |  |  835|    348|                      ((c)>>UTRIE2_SHIFT_1)]+ \
  |  |  |  |  |  |  |  |  836|    348|        (((c)>>UTRIE2_SHIFT_2)&UTRIE2_INDEX_2_MASK)]) \
  |  |  |  |  |  |  |  |  837|    348|    <<UTRIE2_INDEX_SHIFT)+ \
  |  |  |  |  |  |  |  |  838|    348|    ((c)&UTRIE2_DATA_MASK))
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  505|  1.51k|        return propsVectors[vecIndex+column];
  506|  1.51k|    }
  507|  1.51k|}
uscript_getScript_78:
  534|  1.51k|uscript_getScript(UChar32 c, UErrorCode *pErrorCode) {
  535|  1.51k|    if(pErrorCode==nullptr || U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (535:8): [True: 0, False: 1.51k]
  |  Branch (535:31): [True: 0, False: 1.51k]
  ------------------
  536|      0|        return USCRIPT_INVALID_CODE;
  537|      0|    }
  538|  1.51k|    if((uint32_t)c>0x10ffff) {
  ------------------
  |  Branch (538:8): [True: 0, False: 1.51k]
  ------------------
  539|      0|        *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
  540|      0|        return USCRIPT_INVALID_CODE;
  541|      0|    }
  542|  1.51k|    uint32_t scriptX=u_getUnicodeProperties(c, 0)&UPROPS_SCRIPT_X_MASK;
  ------------------
  |  |  288|  1.51k|#define u_getUnicodeProperties U_ICU_ENTRY_POINT_RENAME(u_getUnicodeProperties)
  |  |  ------------------
  |  |  |  |  123|  1.51k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.51k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.51k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  543|  1.51k|    uint32_t codeOrIndex=scriptX&UPROPS_MAX_SCRIPT;
  544|  1.51k|    if(scriptX<UPROPS_SCRIPT_X_WITH_COMMON) {
  ------------------
  |  Branch (544:8): [True: 1.27k, False: 234]
  ------------------
  545|  1.27k|        return (UScriptCode)codeOrIndex;
  546|  1.27k|    } else if(scriptX<UPROPS_SCRIPT_X_WITH_INHERITED) {
  ------------------
  |  Branch (546:15): [True: 90, False: 144]
  ------------------
  547|     90|        return USCRIPT_COMMON;
  548|    144|    } else if(scriptX<UPROPS_SCRIPT_X_WITH_OTHER) {
  ------------------
  |  Branch (548:15): [True: 66, False: 78]
  ------------------
  549|     66|        return USCRIPT_INHERITED;
  550|     78|    } else {
  551|     78|        return (UScriptCode)scriptExtensions[codeOrIndex];
  552|     78|    }
  553|  1.51k|}

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

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

udata_openChoice_78:
 1406|    277|                 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|    277|    if(pErrorCode==nullptr || U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (1411:8): [True: 0, False: 277]
  |  Branch (1411:31): [True: 0, False: 277]
  ------------------
 1412|      0|        return nullptr;
 1413|    277|    } else if(name==nullptr || *name==0 || isAcceptable==nullptr) {
  ------------------
  |  Branch (1413:15): [True: 0, False: 277]
  |  Branch (1413:32): [True: 0, False: 277]
  |  Branch (1413:44): [True: 0, False: 277]
  ------------------
 1414|      0|        *pErrorCode=U_ILLEGAL_ARGUMENT_ERROR;
 1415|      0|        return nullptr;
 1416|    277|    } else {
 1417|    277|        return doOpenChoice(path, type, name, isAcceptable, context, pErrorCode);
 1418|    277|    }
 1419|    277|}
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|    277|{
 1152|    277|    UDataMemory         *retVal = nullptr;
 1153|       |
 1154|    277|    const char         *dataPath;
 1155|       |
 1156|    277|    int32_t             tocEntrySuffixIndex;
 1157|    277|    const char         *tocEntryPathSuffix;
 1158|    277|    UErrorCode          subErrorCode=U_ZERO_ERROR;
 1159|    277|    const char         *treeChar;
 1160|       |
 1161|    277|    UBool               isICUData = false;
 1162|       |
 1163|       |
 1164|    277|    FileTracer::traceOpen(path, type, name);
 1165|       |
 1166|       |
 1167|       |    /* Is this path ICU data? */
 1168|    277|    if(path == nullptr ||
  ------------------
  |  Branch (1168:8): [True: 277, False: 0]
  ------------------
 1169|    277|       !strcmp(path, U_ICUDATA_ALIAS) ||  /* "ICUDATA" */
  ------------------
  |  |   74|      0|#define U_ICUDATA_ALIAS "ICUDATA"
  ------------------
  |  Branch (1169:8): [True: 0, False: 0]
  ------------------
 1170|    277|       !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|    277|                     uprv_strlen(U_ICUDATA_NAME U_TREE_SEPARATOR_STRING)) ||  
 1172|    277|       !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|    277|                     uprv_strlen(U_ICUDATA_ALIAS U_TREE_SEPARATOR_STRING))) {
 1174|    277|      isICUData = true;
 1175|    277|    }
 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|    277|    CharString tocEntryName; /* entry name in tree format. ex:  'icudt28b/coll/ar.res' */
 1196|    277|    CharString tocEntryPath; /* entry name in path format. ex:  'icudt28b\\coll\\ar.res' */
 1197|       |
 1198|    277|    CharString pkgName;
 1199|    277|    CharString treeName;
 1200|       |
 1201|       |    /* ======= Set up strings */
 1202|    277|    if(path==nullptr) {
  ------------------
  |  Branch (1202:8): [True: 277, False: 0]
  ------------------
 1203|    277|        pkgName.append(U_ICUDATA_NAME, *pErrorCode);
  ------------------
  |  |  154|    277|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  ------------------
  |  |  |  |  144|    277|#     define U_ICUDATA_TYPE_LETTER "l"
  |  |  ------------------
  ------------------
 1204|    277|    } 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|    277|    tocEntryName.append(pkgName, *pErrorCode);
 1253|    277|    tocEntryPath.append(pkgName, *pErrorCode);
 1254|    277|    tocEntrySuffixIndex = tocEntryName.length();
 1255|       |
 1256|    277|    if(!treeName.isEmpty()) {
  ------------------
  |  Branch (1256:8): [True: 0, False: 277]
  ------------------
 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|    277|    tocEntryName.append(U_TREE_ENTRY_SEP_CHAR, *pErrorCode).append(name, *pErrorCode);
  ------------------
  |  |   62|    277|#define U_TREE_ENTRY_SEP_CHAR '/'
  ------------------
 1262|    277|    tocEntryPath.append(U_FILE_SEP_CHAR, *pErrorCode).append(name, *pErrorCode);
  ------------------
  |  |  130|    277|#   define U_FILE_SEP_CHAR '/'
  ------------------
 1263|    277|    if(type!=nullptr && *type!=0) {
  ------------------
  |  Branch (1263:8): [True: 277, False: 0]
  |  Branch (1263:25): [True: 277, False: 0]
  ------------------
 1264|    277|        tocEntryName.append(".", *pErrorCode).append(type, *pErrorCode);
 1265|    277|        tocEntryPath.append(".", *pErrorCode).append(type, *pErrorCode);
 1266|    277|    }
 1267|       |    // The +1 is for the U_FILE_SEP_CHAR that is always appended above.
 1268|    277|    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|    277|#if !defined(ICU_DATA_DIR_WINDOWS)
 1276|    277|    if(path == nullptr) {
  ------------------
  |  Branch (1276:8): [True: 277, False: 0]
  ------------------
 1277|    277|        path = COMMON_DATA_NAME; /* "icudt26e" */
  ------------------
  |  |   34|    277|#define COMMON_DATA_NAME U_ICUDATA_NAME
  |  |  ------------------
  |  |  |  |  154|    277|#define U_ICUDATA_NAME    "icudt" U_ICU_VERSION_SHORT U_ICUDATA_TYPE_LETTER
  |  |  |  |  ------------------
  |  |  |  |  |  |  144|    277|#     define U_ICUDATA_TYPE_LETTER "l"
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1278|    277|    }
 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|    277|    dataPath = u_getDataDirectory();
  ------------------
  |  |  271|    277|#define u_getDataDirectory U_ICU_ENTRY_POINT_RENAME(u_getDataDirectory)
  |  |  ------------------
  |  |  |  |  123|    277|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    277|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    277|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1291|       |
 1292|       |    /****    Time zone individual files override  */
 1293|    277|    if (isICUData && isTimeZoneFile(name, type)) {
  ------------------
  |  Branch (1293:9): [True: 277, False: 0]
  |  Branch (1293:22): [True: 0, False: 277]
  ------------------
 1294|      0|        const char *tzFilesDir = u_getTimeZoneFilesDirectory(pErrorCode);
  ------------------
  |  |  287|      0|#define u_getTimeZoneFilesDirectory U_ICU_ENTRY_POINT_RENAME(u_getTimeZoneFilesDirectory)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1295|      0|        if (tzFilesDir[0] != 0) {
  ------------------
  |  Branch (1295:13): [True: 0, False: 0]
  ------------------
 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|      0|    }
 1306|       |
 1307|       |    /****    COMMON PACKAGE  - only if packages are first. */
 1308|    277|    if(gDataFileAccess == UDATA_PACKAGES_FIRST) {
  ------------------
  |  Branch (1308:8): [True: 0, False: 277]
  ------------------
 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|    277|    if((gDataFileAccess==UDATA_PACKAGES_FIRST) ||
  ------------------
  |  Branch (1322:8): [True: 0, False: 277]
  ------------------
 1323|    277|       (gDataFileAccess==UDATA_FILES_FIRST)) {
  ------------------
  |  Branch (1323:8): [True: 277, 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|    277|        if ((dataPath && *dataPath) || !isICUData) {
  ------------------
  |  Branch (1328:14): [True: 277, False: 0]
  |  Branch (1328:26): [True: 0, False: 277]
  |  Branch (1328:40): [True: 0, False: 277]
  ------------------
 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|    277|    }
 1336|       |
 1337|       |    /****    COMMON PACKAGE  */
 1338|    277|    if((gDataFileAccess==UDATA_ONLY_PACKAGES) || 
  ------------------
  |  Branch (1338:8): [True: 0, False: 277]
  ------------------
 1339|    277|       (gDataFileAccess==UDATA_FILES_FIRST)) {
  ------------------
  |  Branch (1339:8): [True: 277, False: 0]
  ------------------
 1340|       |#ifdef UDATA_DEBUG
 1341|       |        fprintf(stderr, "Trying packages (UDATA_ONLY_PACKAGES || UDATA_FILES_FIRST)\n");
 1342|       |#endif
 1343|    277|        retVal = doLoadFromCommonData(isICUData,
 1344|    277|                            pkgName.data(), dataPath, tocEntryPathSuffix, tocEntryName.data(),
 1345|    277|                            path, type, name, isAcceptable, context, &subErrorCode, pErrorCode);
 1346|    277|        if((retVal != nullptr) || U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (1346:12): [True: 277, False: 0]
  |  Branch (1346:35): [True: 0, False: 0]
  ------------------
 1347|    277|            return retVal;
 1348|    277|        }
 1349|    277|    }
 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|    277|static UBool isTimeZoneFile(const char *name, const char *type) {
 1108|    277|    return ((uprv_strcmp(type, "res") == 0) &&
  ------------------
  |  |   38|    277|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    277|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1108:13): [True: 277, False: 0]
  ------------------
 1109|    277|            (uprv_strcmp(name, "zoneinfo64") == 0 ||
  ------------------
  |  |   38|    277|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    277|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1109:14): [True: 0, False: 277]
  ------------------
 1110|    277|             uprv_strcmp(name, "timezoneTypes") == 0 ||
  ------------------
  |  |   38|    277|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    277|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1110:14): [True: 0, False: 277]
  ------------------
 1111|    277|             uprv_strcmp(name, "windowsZones") == 0 ||
  ------------------
  |  |   38|    277|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    277|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1111:14): [True: 0, False: 277]
  ------------------
 1112|    277|             uprv_strcmp(name, "metaZones") == 0));
  ------------------
  |  |   38|    277|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    277|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1112:14): [True: 0, False: 277]
  ------------------
 1113|    277|}
udata.cpp:_ZL13checkDataItemPK10DataHeaderPFaPvPKcS4_PK9UDataInfoES2_S4_S4_P10UErrorCodeSB_:
  949|    277|{
  950|    277|    UDataMemory  *rDataMem = nullptr;          /* the new UDataMemory, to be returned.        */
  951|       |
  952|    277|    if (U_FAILURE(*fatalErr)) {
  ------------------
  |  Branch (952:9): [True: 0, False: 277]
  ------------------
  953|      0|        return nullptr;
  954|      0|    }
  955|       |
  956|    277|    if(pHeader->dataHeader.magic1==0xda &&
  ------------------
  |  Branch (956:8): [True: 277, False: 0]
  ------------------
  957|    277|        pHeader->dataHeader.magic2==0x27 &&
  ------------------
  |  Branch (957:9): [True: 277, False: 0]
  ------------------
  958|    277|        (isAcceptable==nullptr || isAcceptable(context, type, name, &pHeader->info))
  ------------------
  |  Branch (958:10): [True: 0, False: 277]
  |  Branch (958:35): [True: 277, False: 0]
  ------------------
  959|    277|    ) {
  960|    277|        rDataMem=UDataMemory_createNewInstance(fatalErr);
  ------------------
  |  |   79|    277|#define UDataMemory_createNewInstance U_ICU_ENTRY_POINT_RENAME(UDataMemory_createNewInstance)
  |  |  ------------------
  |  |  |  |  123|    277|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    277|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    277|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  961|    277|        if (U_FAILURE(*fatalErr)) {
  ------------------
  |  Branch (961:13): [True: 0, False: 277]
  ------------------
  962|      0|            return nullptr;
  963|      0|        }
  964|    277|        rDataMem->pHeader = pHeader;
  965|    277|    } 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|    277|    return rDataMem;
  972|    277|}
udata.cpp:_ZL20doLoadFromCommonDataaPKcS0_S0_S0_S0_S0_S0_PFaPvS0_S0_PK9UDataInfoES1_P10UErrorCodeS8_:
 1042|    277|{
 1043|    277|    UDataMemory        *pEntryData;
 1044|    277|    const DataHeader   *pHeader;
 1045|    277|    UDataMemory        *pCommonData;
 1046|    277|    int32_t            commonDataIndex;
 1047|    277|    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|    277|    for (commonDataIndex = isICUData ? 0 : -1;;) {
  ------------------
  |  Branch (1057:28): [True: 277, False: 0]
  ------------------
 1058|    277|        pCommonData=openCommonData(path, commonDataIndex, subErrorCode); /** search for pkg **/
 1059|       |
 1060|    277|        if(U_SUCCESS(*subErrorCode) && pCommonData!=nullptr) {
  ------------------
  |  Branch (1060:12): [True: 277, False: 0]
  |  Branch (1060:40): [True: 277, False: 0]
  ------------------
 1061|    277|            int32_t length;
 1062|       |
 1063|       |            /* look up the data piece in the common data */
 1064|    277|            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|    277|            if(pHeader!=nullptr) {
  ------------------
  |  Branch (1069:16): [True: 277, False: 0]
  ------------------
 1070|    277|                pEntryData = checkDataItem(pHeader, isAcceptable, context, type, name, subErrorCode, pErrorCode);
 1071|       |#ifdef UDATA_DEBUG
 1072|       |                fprintf(stderr, "pEntryData=%p\n", (void*) pEntryData);
 1073|       |#endif
 1074|    277|                if (U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (1074:21): [True: 0, False: 277]
  ------------------
 1075|      0|                    return nullptr;
 1076|      0|                }
 1077|    277|                if (pEntryData != nullptr) {
  ------------------
  |  Branch (1077:21): [True: 277, False: 0]
  ------------------
 1078|    277|                    pEntryData->length = length;
 1079|    277|                    return pEntryData;
 1080|    277|                }
 1081|    277|            }
 1082|    277|        }
 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|    277|}
udata.cpp:_ZL14openCommonDataPKciP10UErrorCode:
  673|    277|{
  674|    277|    UDataMemory tData;
  675|    277|    const char *pathBuffer;
  676|    277|    const char *inBasename;
  677|       |
  678|    277|    if (U_FAILURE(*pErrorCode)) {
  ------------------
  |  Branch (678:9): [True: 0, False: 277]
  ------------------
  679|      0|        return nullptr;
  680|      0|    }
  681|       |
  682|    277|    UDataMemory_init(&tData);
  ------------------
  |  |   80|    277|#define UDataMemory_init U_ICU_ENTRY_POINT_RENAME(UDataMemory_init)
  |  |  ------------------
  |  |  |  |  123|    277|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    277|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    277|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  683|       |
  684|       |    /* ??????? TODO revisit this */ 
  685|    277|    if (commonDataIndex >= 0) {
  ------------------
  |  Branch (685:9): [True: 277, False: 0]
  ------------------
  686|       |        /* "mini-cache" for common ICU data */
  687|    277|        if(commonDataIndex >= UPRV_LENGTHOF(gCommonICUDataArray)) {
  ------------------
  |  |   99|    277|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (687:12): [True: 0, False: 277]
  ------------------
  688|      0|            return nullptr;
  689|      0|        }
  690|    277|        {
  691|    277|            Mutex lock;
  692|    277|            if(gCommonICUDataArray[commonDataIndex] != nullptr) {
  ------------------
  |  Branch (692:16): [True: 276, False: 1]
  ------------------
  693|    276|                return gCommonICUDataArray[commonDataIndex];
  694|    276|            }
  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|    556|U_CFUNC void UDataMemory_init(UDataMemory *This) {
   29|    556|    uprv_memset(This, 0, sizeof(UDataMemory));
  ------------------
  |  |  100|    556|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|    556|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
   30|    556|    This->length=-1;
   31|    556|}
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|    278|U_CFUNC UDataMemory *UDataMemory_createNewInstance(UErrorCode *pErr) {
   42|    278|    UDataMemory *This;
   43|       |
   44|    278|    if (U_FAILURE(*pErr)) {
  ------------------
  |  Branch (44:9): [True: 0, False: 278]
  ------------------
   45|      0|        return nullptr;
   46|      0|    }
   47|    278|    This = (UDataMemory *)uprv_malloc(sizeof(UDataMemory));
  ------------------
  |  | 1524|    278|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   48|    278|    if (This == nullptr) {
  ------------------
  |  Branch (48:9): [True: 0, False: 278]
  ------------------
   49|      0|        *pErr = U_MEMORY_ALLOCATION_ERROR; }
   50|    278|    else {
   51|    278|        UDataMemory_init(This);
  ------------------
  |  |   80|    278|#define UDataMemory_init U_ICU_ENTRY_POINT_RENAME(UDataMemory_init)
  |  |  ------------------
  |  |  |  |  123|    278|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    278|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    278|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   52|    278|        This->heapAllocated = true;
   53|    278|    }
   54|    278|    return This;
   55|    278|}
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|    277|udata_getMemory(UDataMemory *pData) {
  105|    277|    if(pData!=nullptr && pData->pHeader!=nullptr) {
  ------------------
  |  Branch (105:8): [True: 277, False: 0]
  |  Branch (105:26): [True: 277, False: 0]
  ------------------
  106|    277|        return (char *)(pData->pHeader)+udata_getHeaderSize(pData->pHeader);
  ------------------
  |  |  887|    277|#define udata_getHeaderSize U_ICU_ENTRY_POINT_RENAME(udata_getHeaderSize)
  |  |  ------------------
  |  |  |  |  123|    277|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    277|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    277|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  107|    277|    } else {
  108|      0|        return nullptr;
  109|      0|    }
  110|    277|}

uhash_open_78:
  547|      3|           UErrorCode *status) {
  548|       |
  549|      3|    return _uhash_create(keyHash, keyComp, valueComp, DEFAULT_PRIME_INDEX, status);
  ------------------
  |  |   91|      3|#define DEFAULT_PRIME_INDEX 4
  ------------------
  550|      3|}
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|      2|           UErrorCode *status) {
  574|       |
  575|      2|    return _uhash_init(fillinResult, keyHash, keyComp, valueComp, DEFAULT_PRIME_INDEX, status);
  ------------------
  |  |   91|      2|#define DEFAULT_PRIME_INDEX 4
  ------------------
  576|      2|}
uhash_close_78:
  595|     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|      2|uhash_setValueDeleter(UHashtable *hash, UObjectDeleter *fn) {
  644|      2|    UObjectDeleter *result = hash->valueDeleter;
  645|      2|    hash->valueDeleter = fn;
  646|      2|    return result;
  647|      2|}
uhash_get_78:
  665|  6.06k|          const void* key) {
  666|  6.06k|    UHashTok keyholder;
  667|  6.06k|    keyholder.pointer = (void*) key;
  668|  6.06k|    return _uhash_find(hash, keyholder, hash->keyHasher(keyholder))->value.pointer;
  669|  6.06k|}
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|  2.06k|          UErrorCode *status) {
  722|  2.06k|    UHashTok keyholder, valueholder;
  723|  2.06k|    keyholder.pointer = key;
  724|  2.06k|    valueholder.pointer = value;
  725|  2.06k|    return _uhash_put(hash, keyholder, valueholder,
  726|  2.06k|                      HINT_KEY_POINTER | HINT_VALUE_POINTER,
  ------------------
  |  |  139|  2.06k|#define HINT_KEY_POINTER   (1)
  ------------------
                                    HINT_KEY_POINTER | HINT_VALUE_POINTER,
  ------------------
  |  |  140|  2.06k|#define HINT_VALUE_POINTER (2)
  ------------------
  727|  2.06k|                      status).pointer;
  728|  2.06k|}
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_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|  7.43k|uhash_hashChars(const UHashTok key) {
  939|  7.43k|    const char *s = (const char *)key.pointer;
  940|  7.43k|    return s == nullptr ? 0 : static_cast<int32_t>(ustr_hashCharsN(s, static_cast<int32_t>(uprv_strlen(s))));
  ------------------
  |  | 1878|  5.83k|#define ustr_hashCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashCharsN)
  |  |  ------------------
  |  |  |  |  123|  5.83k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.83k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.83k|#       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|  5.83k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  5.83k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (940:12): [True: 1.60k, False: 5.83k]
  ------------------
  941|  7.43k|}
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|  1.70k|uhash_compareChars(const UHashTok key1, const UHashTok key2) {
 1030|  1.70k|    const char *p1 = (const char*) key1.pointer;
 1031|  1.70k|    const char *p2 = (const char*) key2.pointer;
 1032|  1.70k|    if (p1 == p2) {
  ------------------
  |  Branch (1032:9): [True: 769, False: 935]
  ------------------
 1033|    769|        return true;
 1034|    769|    }
 1035|    935|    if (p1 == nullptr || p2 == nullptr) {
  ------------------
  |  Branch (1035:9): [True: 0, False: 935]
  |  Branch (1035:26): [True: 0, False: 935]
  ------------------
 1036|      0|        return false;
 1037|      0|    }
 1038|  5.10k|    while (*p1 != 0 && *p1 == *p2) {
  ------------------
  |  Branch (1038:12): [True: 4.17k, False: 935]
  |  Branch (1038:24): [True: 4.17k, False: 0]
  ------------------
 1039|  4.17k|        ++p1;
 1040|  4.17k|        ++p2;
 1041|  4.17k|    }
 1042|    935|    return *p1 == *p2;
 1043|    935|}
uhash.cpp:_ZL13_uhash_createPFi8UElementEPFaS_S_ES3_iP10UErrorCode:
  287|      8|              UErrorCode *status) {
  288|      8|    UHashtable *result;
  289|       |
  290|      8|    if (U_FAILURE(*status)) return nullptr;
  ------------------
  |  Branch (290:9): [True: 0, False: 8]
  ------------------
  291|       |
  292|      8|    result = static_cast<UHashtable*>(uprv_malloc(sizeof(UHashtable)));
  ------------------
  |  | 1524|      8|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      8|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      8|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      8|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  293|      8|    if (result == nullptr) {
  ------------------
  |  Branch (293:9): [True: 0, False: 8]
  ------------------
  294|      0|        *status = U_MEMORY_ALLOCATION_ERROR;
  295|      0|        return nullptr;
  296|      0|    }
  297|       |
  298|      8|    _uhash_init(result, keyHash, keyComp, valueComp, primeIndex, status);
  299|      8|    result->allocated       = true;
  300|       |
  301|      8|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (301:9): [True: 0, False: 8]
  ------------------
  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|      8|    return result;
  307|      8|}
uhash.cpp:_ZL11_uhash_initP10UHashtablePFi8UElementEPFaS1_S1_ES5_iP10UErrorCode:
  260|     10|{
  261|     10|    if (U_FAILURE(*status)) return nullptr;
  ------------------
  |  Branch (261:9): [True: 0, False: 10]
  ------------------
  262|     10|    U_ASSERT(keyHash != nullptr);
  ------------------
  |  |   35|     10|#   define U_ASSERT(exp) (void)0
  ------------------
  263|     10|    U_ASSERT(keyComp != nullptr);
  ------------------
  |  |   35|     10|#   define U_ASSERT(exp) (void)0
  ------------------
  264|       |
  265|     10|    result->keyHasher       = keyHash;
  266|     10|    result->keyComparator   = keyComp;
  267|     10|    result->valueComparator = valueComp;
  268|     10|    result->keyDeleter      = nullptr;
  269|     10|    result->valueDeleter    = nullptr;
  270|     10|    result->allocated       = false;
  271|     10|    _uhash_internalSetResizePolicy(result, U_GROW);
  272|       |
  273|     10|    _uhash_allocate(result, primeIndex, status);
  274|       |
  275|     10|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (275:9): [True: 0, False: 10]
  ------------------
  276|      0|        return nullptr;
  277|      0|    }
  278|       |
  279|     10|    return result;
  280|     10|}
uhash.cpp:_ZL15_uhash_allocateP10UHashtableiP10UErrorCode:
  217|     30|                UErrorCode *status) {
  218|       |
  219|     30|    UHashElement *p, *limit;
  220|     30|    UHashTok emptytok;
  221|       |
  222|     30|    if (U_FAILURE(*status)) return;
  ------------------
  |  Branch (222:9): [True: 0, False: 30]
  ------------------
  223|       |
  224|     30|    U_ASSERT(primeIndex >= 0 && primeIndex < PRIMES_LENGTH);
  ------------------
  |  |   35|     30|#   define U_ASSERT(exp) (void)0
  ------------------
  225|       |
  226|     30|    hash->primeIndex = static_cast<int8_t>(primeIndex);
  227|     30|    hash->length = PRIMES[primeIndex];
  228|       |
  229|     30|    p = hash->elements = static_cast<UHashElement*>(
  230|     30|        uprv_malloc(sizeof(UHashElement) * hash->length));
  ------------------
  |  | 1524|     30|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|     30|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     30|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     30|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  231|       |
  232|     30|    if (hash->elements == nullptr) {
  ------------------
  |  Branch (232:9): [True: 0, False: 30]
  ------------------
  233|      0|        *status = U_MEMORY_ALLOCATION_ERROR;
  234|      0|        return;
  235|      0|    }
  236|       |
  237|     30|    emptytok.pointer = nullptr; /* Only one of these two is needed */
  238|     30|    emptytok.integer = 0;    /* but we don't know which one. */
  239|       |
  240|     30|    limit = p + hash->length;
  241|  14.4k|    while (p < limit) {
  ------------------
  |  Branch (241:12): [True: 14.3k, False: 30]
  ------------------
  242|  14.3k|        p->key = emptytok;
  243|  14.3k|        p->value = emptytok;
  244|  14.3k|        p->hashcode = HASH_EMPTY;
  ------------------
  |  |  118|  14.3k|#define HASH_EMPTY      ((int32_t) HASH_DELETED + 1)
  |  |  ------------------
  |  |  |  |  117|  14.3k|#define HASH_DELETED    ((int32_t) 0x80000000)
  |  |  ------------------
  ------------------
  245|  14.3k|        ++p;
  246|  14.3k|    }
  247|       |
  248|     30|    hash->count = 0;
  249|     30|    hash->lowWaterMark = static_cast<int32_t>(hash->length * hash->lowWaterRatio);
  250|     30|    hash->highWaterMark = static_cast<int32_t>(hash->length * hash->highWaterRatio);
  251|     30|}
uhash.cpp:_ZL30_uhash_internalSetResizePolicyP10UHashtable17UHashResizePolicy:
  197|     10|_uhash_internalSetResizePolicy(UHashtable *hash, enum UHashResizePolicy policy) {
  198|     10|    U_ASSERT(hash != nullptr);
  ------------------
  |  |   35|     10|#   define U_ASSERT(exp) (void)0
  ------------------
  199|     10|    U_ASSERT(((int32_t)policy) >= 0);
  ------------------
  |  |   35|     10|#   define U_ASSERT(exp) (void)0
  ------------------
  200|     10|    U_ASSERT(((int32_t)policy) < 3);
  ------------------
  |  |   35|     10|#   define U_ASSERT(exp) (void)0
  ------------------
  201|     10|    hash->lowWaterRatio  = RESIZE_POLICY_RATIO_TABLE[policy * 2];
  202|     10|    hash->highWaterRatio = RESIZE_POLICY_RATIO_TABLE[policy * 2 + 1];
  203|     10|}
uhash.cpp:_ZL13_uhash_rehashP10UHashtableP10UErrorCode:
  399|     20|_uhash_rehash(UHashtable *hash, UErrorCode *status) {
  400|       |
  401|     20|    UHashElement *old = hash->elements;
  402|     20|    int32_t oldLength = hash->length;
  403|     20|    int32_t newPrimeIndex = hash->primeIndex;
  404|     20|    int32_t i;
  405|       |
  406|     20|    if (hash->count > hash->highWaterMark) {
  ------------------
  |  Branch (406:9): [True: 20, False: 0]
  ------------------
  407|     20|        if (++newPrimeIndex >= PRIMES_LENGTH) {
  ------------------
  |  |   90|     20|#define PRIMES_LENGTH UPRV_LENGTHOF(PRIMES)
  |  |  ------------------
  |  |  |  |   99|     20|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  |  |  ------------------
  ------------------
  |  Branch (407:13): [True: 0, False: 20]
  ------------------
  408|      0|            return;
  409|      0|        }
  410|     20|    } 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|     20|    _uhash_allocate(hash, newPrimeIndex, status);
  419|       |
  420|     20|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (420:9): [True: 0, False: 20]
  ------------------
  421|      0|        hash->elements = old;
  422|      0|        hash->length = oldLength;
  423|      0|        return;
  424|      0|    }
  425|       |
  426|  6.10k|    for (i = oldLength - 1; i >= 0; --i) {
  ------------------
  |  Branch (426:29): [True: 6.08k, False: 20]
  ------------------
  427|  6.08k|        if (!IS_EMPTY_OR_DELETED(old[i].hashcode)) {
  ------------------
  |  |  120|  6.08k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  ------------------
  |  Branch (427:13): [True: 3.05k, False: 3.03k]
  ------------------
  428|  3.05k|            UHashElement *e = _uhash_find(hash, old[i].key, old[i].hashcode);
  429|  3.05k|            U_ASSERT(e != nullptr);
  ------------------
  |  |   35|  3.05k|#   define U_ASSERT(exp) (void)0
  ------------------
  430|  3.05k|            U_ASSERT(e->hashcode == HASH_EMPTY);
  ------------------
  |  |   35|  3.05k|#   define U_ASSERT(exp) (void)0
  ------------------
  431|  3.05k|            e->key = old[i].key;
  432|  3.05k|            e->value = old[i].value;
  433|  3.05k|            e->hashcode = old[i].hashcode;
  434|  3.05k|            ++hash->count;
  435|  3.05k|        }
  436|  6.08k|    }
  437|       |
  438|     20|    uprv_free(old);
  ------------------
  |  | 1503|     20|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|     20|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     20|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     20|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  439|     20|}
uhash.cpp:_ZL11_uhash_findPK10UHashtable8UElementi:
  339|  14.3k|            int32_t hashcode) {
  340|       |
  341|  14.3k|    int32_t firstDeleted = -1;  /* assume invalid index */
  342|  14.3k|    int32_t theIndex, startIndex;
  343|  14.3k|    int32_t jump = 0; /* lazy evaluate */
  344|  14.3k|    int32_t tableHash;
  345|  14.3k|    UHashElement *elements = hash->elements;
  346|       |
  347|  14.3k|    hashcode &= 0x7FFFFFFF; /* must be positive */
  348|  14.3k|    startIndex = theIndex = (hashcode ^ 0x4000000) % hash->length;
  349|       |
  350|  20.1k|    do {
  351|  20.1k|        tableHash = elements[theIndex].hashcode;
  352|  20.1k|        if (tableHash == hashcode) {          /* quick check */
  ------------------
  |  Branch (352:13): [True: 3.27k, False: 16.8k]
  ------------------
  353|  3.27k|            if ((*hash->keyComparator)(key, elements[theIndex].key)) {
  ------------------
  |  Branch (353:17): [True: 3.27k, False: 0]
  ------------------
  354|  3.27k|                return &(elements[theIndex]);
  355|  3.27k|            }
  356|  16.8k|        } else if (!IS_EMPTY_OR_DELETED(tableHash)) {
  ------------------
  |  |  120|  16.8k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  ------------------
  |  Branch (356:20): [True: 5.81k, False: 11.0k]
  ------------------
  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|  11.0k|        } else if (tableHash == HASH_EMPTY) { /* empty, end o' the line */
  ------------------
  |  |  118|  11.0k|#define HASH_EMPTY      ((int32_t) HASH_DELETED + 1)
  |  |  ------------------
  |  |  |  |  117|  11.0k|#define HASH_DELETED    ((int32_t) 0x80000000)
  |  |  ------------------
  ------------------
  |  Branch (361:20): [True: 11.0k, False: 0]
  ------------------
  362|  11.0k|            break;
  363|  11.0k|        } else if (firstDeleted < 0) { /* remember first deleted */
  ------------------
  |  Branch (363:20): [True: 0, False: 0]
  ------------------
  364|      0|            firstDeleted = theIndex;
  365|      0|        }
  366|  5.81k|        if (jump == 0) { /* lazy compute jump */
  ------------------
  |  Branch (366:13): [True: 3.63k, False: 2.18k]
  ------------------
  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|  3.63k|            jump = (hashcode % (hash->length - 1)) + 1;
  372|  3.63k|        }
  373|  5.81k|        theIndex = (theIndex + jump) % hash->length;
  374|  5.81k|    } while (theIndex != startIndex);
  ------------------
  |  Branch (374:14): [True: 5.81k, False: 0]
  ------------------
  375|       |
  376|  11.0k|    if (firstDeleted >= 0) {
  ------------------
  |  Branch (376:9): [True: 0, False: 11.0k]
  ------------------
  377|      0|        theIndex = firstDeleted; /* reset if had deleted slot */
  378|  11.0k|    } else if (tableHash != HASH_EMPTY) {
  ------------------
  |  |  118|  11.0k|#define HASH_EMPTY      ((int32_t) HASH_DELETED + 1)
  |  |  ------------------
  |  |  |  |  117|  11.0k|#define HASH_DELETED    ((int32_t) 0x80000000)
  |  |  ------------------
  ------------------
  |  Branch (378:16): [True: 0, False: 11.0k]
  ------------------
  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|  11.0k|    return &(elements[theIndex]);
  387|  11.0k|}
uhash.cpp:_ZL10_uhash_putP10UHashtable8UElementS1_aP10UErrorCode:
  471|  3.05k|           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|  3.05k|    int32_t hashcode;
  479|  3.05k|    UHashElement* e;
  480|  3.05k|    UHashTok emptytok;
  481|       |
  482|  3.05k|    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (482:9): [True: 0, False: 3.05k]
  ------------------
  483|      0|        goto err;
  484|      0|    }
  485|  3.05k|    U_ASSERT(hash != nullptr);
  ------------------
  |  |   35|  3.05k|#   define U_ASSERT(exp) (void)0
  ------------------
  486|  3.05k|    if ((hint & HINT_VALUE_POINTER) ?
  ------------------
  |  |  140|  3.05k|#define HINT_VALUE_POINTER (2)
  ------------------
  |  Branch (486:9): [True: 2.06k, False: 992]
  |  Branch (486:9): [True: 0, False: 3.05k]
  ------------------
  487|  2.06k|            value.pointer == nullptr :
  488|  3.05k|            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|  3.05k|    if (hash->count > hash->highWaterMark) {
  ------------------
  |  Branch (494:9): [True: 20, False: 3.03k]
  ------------------
  495|     20|        _uhash_rehash(hash, status);
  496|     20|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (496:13): [True: 0, False: 20]
  ------------------
  497|      0|            goto err;
  498|      0|        }
  499|     20|    }
  500|       |
  501|  3.05k|    hashcode = (*hash->keyHasher)(key);
  502|  3.05k|    e = _uhash_find(hash, key, hashcode);
  503|  3.05k|    U_ASSERT(e != nullptr);
  ------------------
  |  |   35|  3.05k|#   define U_ASSERT(exp) (void)0
  ------------------
  504|       |
  505|  3.05k|    if (IS_EMPTY_OR_DELETED(e->hashcode)) {
  ------------------
  |  |  120|  3.05k|#define IS_EMPTY_OR_DELETED(x) ((x) < 0)
  |  |  ------------------
  |  |  |  Branch (120:32): [True: 3.05k, False: 0]
  |  |  ------------------
  ------------------
  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|  3.05k|        ++hash->count;
  514|  3.05k|        if (hash->count == hash->length) {
  ------------------
  |  Branch (514:13): [True: 0, False: 3.05k]
  ------------------
  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|  3.05k|    }
  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|  3.05k|    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|  3.05k|}
uhash.cpp:_ZL17_uhash_setElementP10UHashtableP12UHashElementi8UElementS3_a:
  150|  3.05k|                  UHashTok key, UHashTok value, int8_t hint) {
  151|       |
  152|  3.05k|    UHashTok oldValue = e->value;
  153|  3.05k|    if (hash->keyDeleter != nullptr && e->key.pointer != nullptr &&
  ------------------
  |  Branch (153:9): [True: 497, False: 2.56k]
  |  Branch (153:40): [True: 0, False: 497]
  ------------------
  154|  3.05k|        e->key.pointer != key.pointer) { /* Avoid double deletion */
  ------------------
  |  Branch (154:9): [True: 0, False: 0]
  ------------------
  155|      0|        (*hash->keyDeleter)(e->key.pointer);
  156|      0|    }
  157|  3.05k|    if (hash->valueDeleter != nullptr) {
  ------------------
  |  Branch (157:9): [True: 498, False: 2.55k]
  ------------------
  158|    498|        if (oldValue.pointer != nullptr &&
  ------------------
  |  Branch (158:13): [True: 0, False: 498]
  ------------------
  159|    498|            oldValue.pointer != value.pointer) { /* Avoid double deletion */
  ------------------
  |  Branch (159:13): [True: 0, False: 0]
  ------------------
  160|      0|            (*hash->valueDeleter)(oldValue.pointer);
  161|      0|        }
  162|    498|        oldValue.pointer = nullptr;
  163|    498|    }
  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|  3.05k|    if (hint & HINT_KEY_POINTER) {
  ------------------
  |  |  139|  3.05k|#define HINT_KEY_POINTER   (1)
  ------------------
  |  Branch (170:9): [True: 3.05k, False: 0]
  ------------------
  171|  3.05k|        e->key.pointer = key.pointer;
  172|  3.05k|    } else {
  173|      0|        e->key = key;
  174|      0|    }
  175|  3.05k|    if (hint & HINT_VALUE_POINTER) {
  ------------------
  |  |  140|  3.05k|#define HINT_VALUE_POINTER (2)
  ------------------
  |  Branch (175:9): [True: 2.06k, False: 992]
  ------------------
  176|  2.06k|        e->value.pointer = value.pointer;
  177|  2.06k|    } else {
  178|    992|        e->value = value;
  179|    992|    }
  180|  3.05k|    e->hashcode = hashcode;
  181|  3.05k|    return oldValue;
  182|  3.05k|}

u_charsToUChars_78:
  185|  2.36k|u_charsToUChars(const char *cs, char16_t *us, int32_t length) {
  186|  2.36k|    char16_t u;
  187|  2.36k|    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|  35.1k|    while(length>0) {
  ------------------
  |  Branch (194:11): [True: 32.7k, False: 2.36k]
  ------------------
  195|  32.7k|        c=(uint8_t)(*cs++);
  196|  32.7k|        u=(char16_t)CHAR_TO_UCHAR(c);
  ------------------
  |  |  174|  32.7k|#define CHAR_TO_UCHAR(c) c
  ------------------
  197|  32.7k|        U_ASSERT((u!=0 || c==0)); /* only invariant chars converted? */
  ------------------
  |  |   35|  32.7k|#   define U_ASSERT(exp) (void)0
  ------------------
  198|  32.7k|        *us++=u;
  199|  32.7k|        --length;
  200|  32.7k|    }
  201|  2.36k|}
u_UCharsToChars_78:
  204|  1.14k|u_UCharsToChars(const char16_t *us, char *cs, int32_t length) {
  205|  1.14k|    char16_t u;
  206|       |
  207|  5.96k|    while(length>0) {
  ------------------
  |  Branch (207:11): [True: 4.81k, False: 1.14k]
  ------------------
  208|  4.81k|        u=*us++;
  209|  4.81k|        if(!UCHAR_IS_INVARIANT(u)) {
  ------------------
  |  |  168|  4.81k|#define UCHAR_IS_INVARIANT(c) (((c)<=0x7f) && (invariantChars[(c)>>5]&((uint32_t)1<<((c)&0x1f)))!=0)
  |  |  ------------------
  |  |  |  Branch (168:32): [True: 4.81k, False: 0]
  |  |  |  Branch (168:47): [True: 4.81k, 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|  4.81k|        *cs++=(char)UCHAR_TO_CHAR(u);
  ------------------
  |  |  175|  4.81k|#define UCHAR_TO_CHAR(c) c
  ------------------
  214|  4.81k|        --length;
  215|  4.81k|    }
  216|  1.14k|}
uprv_isInvariantUString_78:
  263|    814|uprv_isInvariantUString(const char16_t *s, int32_t length) {
  264|    814|    char16_t c;
  265|       |
  266|  3.28k|    for(;;) {
  267|  3.28k|        if(length<0) {
  ------------------
  |  Branch (267:12): [True: 0, False: 3.28k]
  ------------------
  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|  3.28k|        } else {
  274|       |            /* count length */
  275|  3.28k|            if(length==0) {
  ------------------
  |  Branch (275:16): [True: 814, False: 2.46k]
  ------------------
  276|    814|                break;
  277|    814|            }
  278|  2.46k|            --length;
  279|  2.46k|            c=*s++;
  280|  2.46k|        }
  281|       |
  282|       |        /*
  283|       |         * no assertions here because these functions are legitimately called
  284|       |         * for strings with variant characters
  285|       |         */
  286|  2.46k|        if(!UCHAR_IS_INVARIANT(c)) {
  ------------------
  |  |  168|  2.46k|#define UCHAR_IS_INVARIANT(c) (((c)<=0x7f) && (invariantChars[(c)>>5]&((uint32_t)1<<((c)&0x1f)))!=0)
  |  |  ------------------
  |  |  |  Branch (168:32): [True: 2.46k, False: 0]
  |  |  |  Branch (168:47): [True: 2.46k, False: 0]
  |  |  ------------------
  ------------------
  287|      0|            return false; /* found a variant char */
  288|      0|        }
  289|  2.46k|    }
  290|    814|    return true;
  291|    814|}

locale_getKeywordsStart_78:
  526|  2.10k|locale_getKeywordsStart(std::string_view localeID) {
  527|  2.10k|    if (size_t pos = localeID.find('@'); pos != std::string_view::npos) {
  ------------------
  |  Branch (527:42): [True: 0, False: 2.10k]
  ------------------
  528|      0|        return localeID.data() + pos;
  529|      0|    }
  530|       |#if (U_CHARSET_FAMILY == U_EBCDIC_FAMILY)
  531|       |    else {
  532|       |        /* We do this because the @ sign is variant, and the @ sign used on one
  533|       |        EBCDIC machine won't be compiled the same way on other EBCDIC based
  534|       |        machines. */
  535|       |        static const uint8_t ebcdicSigns[] = { 0x7C, 0x44, 0x66, 0x80, 0xAC, 0xAE, 0xAF, 0xB5, 0xEC, 0xEF, 0x00 };
  536|       |        const uint8_t *charToFind = ebcdicSigns;
  537|       |        while(*charToFind) {
  538|       |            if (size_t pos = localeID.find(*charToFind); pos != std::string_view::npos) {
  539|       |                return localeID.data() + pos;
  540|       |            }
  541|       |            charToFind++;
  542|       |        }
  543|       |    }
  544|       |#endif
  545|  2.10k|    return nullptr;
  546|  2.10k|}
_Z21ulocimp_getSubtags_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEEPN6icu_7810CharStringES6_S6_S6_PPKcR10UErrorCode:
 1514|  1.38k|        UErrorCode& status) {
 1515|  1.38k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1515:9): [True: 0, False: 1.38k]
  ------------------
 1516|       |
 1517|  1.38k|    std::optional<CharStringByteSink> languageSink;
 1518|  1.38k|    std::optional<CharStringByteSink> scriptSink;
 1519|  1.38k|    std::optional<CharStringByteSink> regionSink;
 1520|  1.38k|    std::optional<CharStringByteSink> variantSink;
 1521|       |
 1522|  1.38k|    if (language != nullptr) { languageSink.emplace(language); }
  ------------------
  |  Branch (1522:9): [True: 1.38k, False: 0]
  ------------------
 1523|  1.38k|    if (script != nullptr) { scriptSink.emplace(script); }
  ------------------
  |  Branch (1523:9): [True: 1.38k, False: 0]
  ------------------
 1524|  1.38k|    if (region != nullptr) { regionSink.emplace(region); }
  ------------------
  |  Branch (1524:9): [True: 1.38k, False: 0]
  ------------------
 1525|  1.38k|    if (variant != nullptr) { variantSink.emplace(variant); }
  ------------------
  |  Branch (1525:9): [True: 1.38k, False: 0]
  ------------------
 1526|       |
 1527|  1.38k|    ulocimp_getSubtags(
  ------------------
  |  | 1209|  1.38k|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|  1.38k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.38k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.38k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1528|  1.38k|            localeID,
 1529|  1.38k|            languageSink.has_value() ? &*languageSink : nullptr,
  ------------------
  |  Branch (1529:13): [True: 1.38k, False: 0]
  ------------------
 1530|  1.38k|            scriptSink.has_value() ? &*scriptSink : nullptr,
  ------------------
  |  Branch (1530:13): [True: 1.38k, False: 0]
  ------------------
 1531|  1.38k|            regionSink.has_value() ? &*regionSink : nullptr,
  ------------------
  |  Branch (1531:13): [True: 1.38k, False: 0]
  ------------------
 1532|  1.38k|            variantSink.has_value() ? &*variantSink : nullptr,
  ------------------
  |  Branch (1532:13): [True: 1.38k, False: 0]
  ------------------
 1533|  1.38k|            pEnd,
 1534|  1.38k|            status);
 1535|  1.38k|}
_Z21ulocimp_getSubtags_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEEPN6icu_788ByteSinkES6_S6_S6_PPKcR10UErrorCode:
 1545|  1.38k|        UErrorCode& status) {
 1546|  1.38k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1546:9): [True: 0, False: 1.38k]
  ------------------
 1547|       |
 1548|  1.38k|    if (pEnd != nullptr) {
  ------------------
  |  Branch (1548:9): [True: 1.38k, False: 0]
  ------------------
 1549|  1.38k|        *pEnd = localeID.data();
 1550|  1.38k|    } 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|  1.38k|    if (localeID.empty()) { return; }
  ------------------
  |  Branch (1557:9): [True: 0, False: 1.38k]
  ------------------
 1558|       |
 1559|  1.38k|    bool hasRegion = false;
 1560|       |
 1561|  1.38k|    {
 1562|  1.38k|        size_t len = _getLanguage(localeID, language, status);
 1563|  1.38k|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1563:13): [True: 0, False: 1.38k]
  ------------------
 1564|  1.38k|        if (len > 0) {
  ------------------
  |  Branch (1564:13): [True: 1.38k, False: 0]
  ------------------
 1565|  1.38k|            localeID.remove_prefix(len);
 1566|  1.38k|        }
 1567|  1.38k|    }
 1568|       |
 1569|  1.38k|    if (pEnd != nullptr) {
  ------------------
  |  Branch (1569:9): [True: 1.38k, False: 0]
  ------------------
 1570|  1.38k|        *pEnd = localeID.data();
 1571|  1.38k|    } 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|  1.38k|    if (localeID.empty()) { return; }
  ------------------
  |  Branch (1577:9): [True: 333, False: 1.05k]
  ------------------
 1578|       |
 1579|  1.05k|    if (_isIDSeparator(localeID.front())) {
  ------------------
  |  Branch (1579:9): [True: 1.05k, False: 0]
  ------------------
 1580|  1.05k|        std::string_view sub = localeID;
 1581|  1.05k|        sub.remove_prefix(1);
 1582|  1.05k|        size_t len = _getScript(sub, script);
 1583|  1.05k|        if (len > 0) {
  ------------------
  |  Branch (1583:13): [True: 201, False: 850]
  ------------------
 1584|    201|            localeID.remove_prefix(len + 1);
 1585|    201|            if (pEnd != nullptr) { *pEnd = localeID.data(); }
  ------------------
  |  Branch (1585:17): [True: 201, False: 0]
  ------------------
 1586|    201|        }
 1587|  1.05k|    }
 1588|       |
 1589|  1.05k|    if ((region == nullptr && variant == nullptr && pEnd == nullptr) || localeID.empty()) { return; }
  ------------------
  |  Branch (1589:10): [True: 0, False: 1.05k]
  |  Branch (1589:31): [True: 0, False: 0]
  |  Branch (1589:53): [True: 0, False: 0]
  |  Branch (1589:73): [True: 55, False: 996]
  ------------------
 1590|       |
 1591|    996|    if (_isIDSeparator(localeID.front())) {
  ------------------
  |  Branch (1591:9): [True: 996, False: 0]
  ------------------
 1592|    996|        std::string_view sub = localeID;
 1593|    996|        sub.remove_prefix(1);
 1594|    996|        size_t len = _getRegion(sub, region);
 1595|    996|        if (len > 0) {
  ------------------
  |  Branch (1595:13): [True: 996, False: 0]
  ------------------
 1596|    996|            hasRegion = true;
 1597|    996|            localeID.remove_prefix(len + 1);
 1598|    996|            if (pEnd != nullptr) { *pEnd = localeID.data(); }
  ------------------
  |  Branch (1598:17): [True: 996, False: 0]
  ------------------
 1599|    996|        }
 1600|    996|    }
 1601|       |
 1602|    996|    if ((variant == nullptr && pEnd == nullptr) || localeID.empty()) { return; }
  ------------------
  |  Branch (1602:10): [True: 0, False: 996]
  |  Branch (1602:32): [True: 0, False: 0]
  |  Branch (1602:52): [True: 988, False: 8]
  ------------------
 1603|       |
 1604|      8|    bool hasVariant = false;
 1605|       |
 1606|      8|    if (_isIDSeparator(localeID.front()) && !_isBCP47Extension(localeID)) {
  ------------------
  |  Branch (1606:9): [True: 8, False: 0]
  |  Branch (1606:45): [True: 8, False: 0]
  ------------------
 1607|      8|        std::string_view sub = localeID;
 1608|       |        /* If there was no country ID, skip a possible extra IDSeparator */
 1609|      8|        size_t skip = !hasRegion && localeID.size() > 1 && _isIDSeparator(localeID[1]) ? 2 : 1;
  ------------------
  |  Branch (1609:23): [True: 0, False: 8]
  |  Branch (1609:37): [True: 0, False: 0]
  |  Branch (1609:60): [True: 0, False: 0]
  ------------------
 1610|      8|        sub.remove_prefix(skip);
 1611|      8|        size_t len = _getVariant(sub, localeID[0], variant, false, status);
 1612|      8|        if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (1612:13): [True: 0, False: 8]
  ------------------
 1613|      8|        if (len > 0) {
  ------------------
  |  Branch (1613:13): [True: 8, False: 0]
  ------------------
 1614|      8|            hasVariant = true;
 1615|      8|            localeID.remove_prefix(skip + len);
 1616|      8|            if (pEnd != nullptr) { *pEnd = localeID.data(); }
  ------------------
  |  Branch (1616:17): [True: 8, False: 0]
  ------------------
 1617|      8|        }
 1618|      8|    }
 1619|       |
 1620|      8|    if ((variant == nullptr && pEnd == nullptr) || localeID.empty()) { return; }
  ------------------
  |  Branch (1620:10): [True: 0, False: 8]
  |  Branch (1620:32): [True: 0, False: 0]
  |  Branch (1620:52): [True: 8, False: 0]
  ------------------
 1621|       |
 1622|      0|    if (_isBCP47Extension(localeID)) {
  ------------------
  |  Branch (1622:9): [True: 0, False: 0]
  ------------------
 1623|      0|        localeID.remove_prefix(2);
 1624|      0|        constexpr char vaposix[] = "-va-posix";
 1625|      0|        constexpr size_t length = sizeof vaposix - 1;
 1626|      0|        for (size_t next;; localeID.remove_prefix(next)) {
 1627|      0|            next = localeID.find('-', 1);
 1628|      0|            if (next == std::string_view::npos) { break; }
  ------------------
  |  Branch (1628:17): [True: 0, False: 0]
  ------------------
 1629|      0|            next = localeID.find('-', next + 1);
 1630|      0|            bool finished = next == std::string_view::npos;
 1631|      0|            std::string_view sub = localeID;
 1632|      0|            if (!finished) { sub.remove_suffix(sub.length() - next); }
  ------------------
  |  Branch (1632:17): [True: 0, False: 0]
  ------------------
 1633|       |
 1634|      0|            if (sub.length() == length && uprv_strnicmp(sub.data(), vaposix, length) == 0) {
  ------------------
  |  | 1544|      0|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1634:17): [True: 0, False: 0]
  |  Branch (1634:43): [True: 0, False: 0]
  ------------------
 1635|      0|                if (variant != nullptr) {
  ------------------
  |  Branch (1635:21): [True: 0, False: 0]
  ------------------
 1636|      0|                    if (hasVariant) { variant->Append("_", 1); }
  ------------------
  |  Branch (1636:25): [True: 0, False: 0]
  ------------------
 1637|      0|                    constexpr char posix[] = "POSIX";
 1638|      0|                    variant->Append(posix, sizeof posix - 1);
 1639|      0|                }
 1640|      0|                if (pEnd != nullptr) { *pEnd = localeID.data() + length; }
  ------------------
  |  Branch (1640:21): [True: 0, False: 0]
  ------------------
 1641|      0|            }
 1642|       |
 1643|      0|            if (finished) { break; }
  ------------------
  |  Branch (1643:17): [True: 0, False: 0]
  ------------------
 1644|      0|        }
 1645|      0|    }
 1646|      0|}
_Z18ulocimp_getName_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEERN6icu_788ByteSinkER10UErrorCode:
 2171|      1|{
 2172|      1|    _canonicalize(localeID, sink, 0, err);
 2173|      1|}
_Z22ulocimp_getBaseName_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEER10UErrorCode:
 2195|    497|{
 2196|    497|    return ByteSinkUtil::viaByteSinkToCharString(
 2197|    497|        [&](ByteSink& sink, UErrorCode& status) {
 2198|    497|            ulocimp_getBaseName(localeID, sink, status);
 2199|    497|        },
 2200|    497|        err);
 2201|    497|}
_Z22ulocimp_getBaseName_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEERN6icu_788ByteSinkER10UErrorCode:
 2207|    497|{
 2208|    497|    _canonicalize(localeID, sink, _ULOC_STRIP_KEYWORDS, err);
  ------------------
  |  | 1785|    497|#define _ULOC_STRIP_KEYWORDS 0x2
  ------------------
 2209|    497|}
_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|  1.14k|{
 2337|  1.14k|    return locale_get_default();
  ------------------
  |  |  139|  1.14k|#define locale_get_default U_ICU_ENTRY_POINT_RENAME(locale_get_default)
  |  |  ------------------
  |  |  |  |  123|  1.14k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.14k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.14k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2338|  1.14k|}
uloc.cpp:_ZN12_GLOBAL__N_118_hasBCP47ExtensionENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  510|  1.38k|inline bool _hasBCP47Extension(std::string_view id) {
  511|  1.38k|    return id.find('@') == std::string_view::npos && getShortestSubtagLength(id) == 1;
  ------------------
  |  Branch (511:12): [True: 1.38k, False: 0]
  |  Branch (511:54): [True: 0, False: 1.38k]
  ------------------
  512|  1.38k|}
uloc.cpp:_ZN12_GLOBAL__N_123getShortestSubtagLengthENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
  485|  1.38k|int32_t getShortestSubtagLength(std::string_view localeID) {
  486|  1.38k|    int32_t localeIDLength = static_cast<int32_t>(localeID.length());
  487|  1.38k|    int32_t length = localeIDLength;
  488|  1.38k|    int32_t tmpLength = 0;
  489|  1.38k|    int32_t i;
  490|  1.38k|    bool reset = true;
  491|       |
  492|  8.52k|    for (i = 0; i < localeIDLength; i++) {
  ------------------
  |  Branch (492:17): [True: 7.13k, False: 1.38k]
  ------------------
  493|  7.13k|        if (localeID[i] != '_' && localeID[i] != '-') {
  ------------------
  |  Branch (493:13): [True: 5.93k, False: 1.20k]
  |  Branch (493:35): [True: 5.93k, False: 0]
  ------------------
  494|  5.93k|            if (reset) {
  ------------------
  |  Branch (494:17): [True: 2.58k, False: 3.34k]
  ------------------
  495|  2.58k|                tmpLength = 0;
  496|  2.58k|                reset = false;
  497|  2.58k|            }
  498|  5.93k|            tmpLength++;
  499|  5.93k|        } else {
  500|  1.20k|            if (tmpLength != 0 && tmpLength < length) {
  ------------------
  |  Branch (500:17): [True: 1.20k, False: 0]
  |  Branch (500:35): [True: 1.05k, False: 154]
  ------------------
  501|  1.05k|                length = tmpLength;
  502|  1.05k|            }
  503|  1.20k|            reset = true;
  504|  1.20k|        }
  505|  7.13k|    }
  506|       |
  507|  1.38k|    return length;
  508|  1.38k|}
uloc.cpp:_ZN12_GLOBAL__N_110_findIndexEPKPKcS1_:
 1178|    329|{
 1179|    329|    const char* const* anchor = list;
 1180|    329|    int32_t pass = 0;
 1181|       |
 1182|       |    /* Make two passes through two nullptr-terminated arrays at 'list' */
 1183|    357|    while (pass++ < 2) {
  ------------------
  |  Branch (1183:12): [True: 343, False: 14]
  ------------------
 1184|   105k|        while (*list) {
  ------------------
  |  Branch (1184:16): [True: 105k, False: 28]
  ------------------
 1185|   105k|            if (uprv_strcmp(key, *list) == 0) {
  ------------------
  |  |   38|   105k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|   105k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1185:17): [True: 315, False: 105k]
  ------------------
 1186|    315|                return static_cast<int16_t>(list - anchor);
 1187|    315|            }
 1188|   105k|            list++;
 1189|   105k|        }
 1190|     28|        ++list;     /* skip final nullptr *CWB*/
 1191|     28|    }
 1192|     14|    return std::nullopt;
 1193|    329|}
uloc.cpp:_ZN12_GLOBAL__N_112_getLanguageENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEPN6icu_788ByteSinkER10UErrorCode:
 1219|  1.38k|size_t _getLanguage(std::string_view localeID, ByteSink* sink, UErrorCode& status) {
 1220|  1.38k|    size_t skip = 0;
 1221|  1.38k|    if (localeID.size() == 4 && uprv_strnicmp(localeID.data(), "root", 4) == 0) {
  ------------------
  |  | 1544|      0|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1221:9): [True: 0, False: 1.38k]
  |  Branch (1221:33): [True: 0, False: 0]
  ------------------
 1222|      0|        skip = 4;
 1223|      0|        localeID.remove_prefix(skip);
 1224|  1.38k|    } else if (localeID.size() >= 3 && uprv_strnicmp(localeID.data(), "und", 3) == 0 &&
  ------------------
  |  | 1544|  1.18k|#define uprv_strnicmp U_ICU_ENTRY_POINT_RENAME(uprv_strnicmp)
  |  |  ------------------
  |  |  |  |  123|  1.18k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.18k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.18k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1224:16): [True: 1.18k, False: 196]
  |  Branch (1224:40): [True: 0, False: 1.18k]
  ------------------
 1225|  1.38k|               (localeID.size() == 3 ||
  ------------------
  |  Branch (1225:17): [True: 0, False: 0]
  ------------------
 1226|      0|                localeID[3] == '-' ||
  ------------------
  |  Branch (1226:17): [True: 0, False: 0]
  ------------------
 1227|      0|                localeID[3] == '_' ||
  ------------------
  |  Branch (1227:17): [True: 0, False: 0]
  ------------------
 1228|      0|                localeID[3] == '@')) {
  ------------------
  |  Branch (1228:17): [True: 0, False: 0]
  ------------------
 1229|      0|        skip = 3;
 1230|      0|        localeID.remove_prefix(skip);
 1231|      0|    }
 1232|       |
 1233|  1.38k|    constexpr int32_t MAXLEN = ULOC_LANG_CAPACITY - 1;  // Minus NUL.
  ------------------
  |  |  251|  1.38k|#define ULOC_LANG_CAPACITY 12
  ------------------
 1234|       |
 1235|       |    /* if it starts with i- or x- then copy that prefix */
 1236|  1.38k|    size_t len = _isIDPrefix(localeID) ? 2 : 0;
  ------------------
  |  Branch (1236:18): [True: 0, False: 1.38k]
  ------------------
 1237|  4.46k|    while (len < localeID.size() && !_isTerminator(localeID[len]) && !_isIDSeparator(localeID[len])) {
  ------------------
  |  Branch (1237:12): [True: 4.13k, False: 333]
  |  Branch (1237:37): [True: 4.13k, False: 0]
  |  Branch (1237:70): [True: 3.08k, False: 1.05k]
  ------------------
 1238|  3.08k|        if (len == MAXLEN) {
  ------------------
  |  Branch (1238:13): [True: 0, False: 3.08k]
  ------------------
 1239|      0|            status = U_ILLEGAL_ARGUMENT_ERROR;
 1240|      0|            return 0;
 1241|      0|        }
 1242|  3.08k|        len++;
 1243|  3.08k|    }
 1244|       |
 1245|  1.38k|    if (sink == nullptr || len == 0) { return skip + len; }
  ------------------
  |  Branch (1245:9): [True: 0, False: 1.38k]
  |  Branch (1245:28): [True: 0, False: 1.38k]
  ------------------
 1246|       |
 1247|  1.38k|    int32_t minCapacity = uprv_max(static_cast<int32_t>(len), 4);  // Minimum 3 letters plus NUL.
  ------------------
  |  | 1526|  1.38k|#define uprv_max U_ICU_ENTRY_POINT_RENAME(uprv_max)
  |  |  ------------------
  |  |  |  |  123|  1.38k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.38k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.38k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1248|  1.38k|    char scratch[MAXLEN];
 1249|  1.38k|    int32_t capacity = 0;
 1250|  1.38k|    char* buffer = sink->GetAppendBuffer(
 1251|  1.38k|            minCapacity, minCapacity, scratch, UPRV_LENGTHOF(scratch), &capacity);
  ------------------
  |  |   99|  1.38k|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1252|       |
 1253|  4.46k|    for (size_t i = 0; i < len; ++i) {
  ------------------
  |  Branch (1253:24): [True: 3.08k, False: 1.38k]
  ------------------
 1254|  3.08k|        buffer[i] = uprv_tolower(localeID[i]);
  ------------------
  |  |   68|  3.08k|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|  3.08k|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|  3.08k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|  3.08k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|  3.08k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1255|  3.08k|    }
 1256|  1.38k|    if (localeID.size() >= 2 && _isIDSeparator(localeID[1])) {
  ------------------
  |  Branch (1256:9): [True: 1.38k, False: 0]
  |  Branch (1256:33): [True: 0, False: 1.38k]
  ------------------
 1257|      0|        buffer[1] = '-';
 1258|      0|    }
 1259|       |
 1260|  1.38k|    if (len == 3) {
  ------------------
  |  Branch (1260:9): [True: 315, False: 1.06k]
  ------------------
 1261|       |        /* convert 3 character code to 2 character code if possible *CWB*/
 1262|    315|        U_ASSERT(capacity >= 4);
  ------------------
  |  |   35|    315|#   define U_ASSERT(exp) (void)0
  ------------------
 1263|    315|        buffer[3] = '\0';
 1264|    315|        std::optional<int16_t> offset = _findIndex(LANGUAGES_3, buffer);
 1265|    315|        if (offset.has_value()) {
  ------------------
  |  Branch (1265:13): [True: 315, False: 0]
  ------------------
 1266|    315|            const char* const alias = LANGUAGES[*offset];
 1267|    315|            sink->Append(alias, static_cast<int32_t>(uprv_strlen(alias)));
  ------------------
  |  |   37|    315|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    315|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1268|    315|            return skip + len;
 1269|    315|        }
 1270|    315|    }
 1271|       |
 1272|  1.06k|    sink->Append(buffer, static_cast<int32_t>(len));
 1273|  1.06k|    return skip + len;
 1274|  1.38k|}
uloc.cpp:_ZN12_GLOBAL__N_111_isIDPrefixENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
 1152|  1.38k|inline bool _isIDPrefix(std::string_view s) {
 1153|  1.38k|    return s.size() >= 2 && _isPrefixLetter(s[0]) && _isIDSeparator(s[1]);
  ------------------
  |  Branch (1153:12): [True: 1.38k, False: 0]
  |  Branch (1153:29): [True: 37, False: 1.34k]
  |  Branch (1153:54): [True: 0, False: 37]
  ------------------
 1154|  1.38k|}
uloc.cpp:_ZN12_GLOBAL__N_115_isPrefixLetterEc:
 1148|  1.38k|inline bool _isPrefixLetter(char a) { return a == 'x' || a == 'X' || a == 'i' || a == 'I'; }
  ------------------
  |  Branch (1148:46): [True: 11, False: 1.37k]
  |  Branch (1148:58): [True: 0, False: 1.37k]
  |  Branch (1148:70): [True: 26, False: 1.34k]
  |  Branch (1148:82): [True: 0, False: 1.34k]
  ------------------
uloc.cpp:_ZN12_GLOBAL__N_113_isTerminatorEc:
 1159|  8.79k|inline bool _isTerminator(char a) { return a == '.' || a == '@'; }
  ------------------
  |  Branch (1159:44): [True: 0, False: 8.79k]
  |  Branch (1159:56): [True: 0, False: 8.79k]
  ------------------
uloc.cpp:_ZN12_GLOBAL__N_110_getScriptENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEPN6icu_788ByteSinkE:
 1276|  1.05k|size_t _getScript(std::string_view localeID, ByteSink* sink) {
 1277|  1.05k|    constexpr int32_t LENGTH = 4;
 1278|       |
 1279|  1.05k|    size_t len = 0;
 1280|  3.52k|    while (len < localeID.size() && !_isTerminator(localeID[len]) && !_isIDSeparator(localeID[len]) &&
  ------------------
  |  Branch (1280:12): [True: 2.64k, False: 883]
  |  Branch (1280:37): [True: 2.64k, False: 0]
  |  Branch (1280:70): [True: 2.49k, False: 154]
  ------------------
 1281|  3.52k|            uprv_isASCIILetter(localeID[len])) {
  ------------------
  |  | 1514|  2.49k|#define uprv_isASCIILetter U_ICU_ENTRY_POINT_RENAME(uprv_isASCIILetter)
  |  |  ------------------
  |  |  |  |  123|  2.49k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.49k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.49k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1281:13): [True: 2.47k, False: 14]
  ------------------
 1282|  2.47k|        if (len == LENGTH) { return 0; }
  ------------------
  |  Branch (1282:13): [True: 0, False: 2.47k]
  ------------------
 1283|  2.47k|        len++;
 1284|  2.47k|    }
 1285|  1.05k|    if (len != LENGTH) { return 0; }
  ------------------
  |  Branch (1285:9): [True: 850, False: 201]
  ------------------
 1286|       |
 1287|    201|    if (sink == nullptr) { return len; }
  ------------------
  |  Branch (1287:9): [True: 0, False: 201]
  ------------------
 1288|       |
 1289|    201|    char scratch[LENGTH];
 1290|    201|    int32_t capacity = 0;
 1291|    201|    char* buffer = sink->GetAppendBuffer(
 1292|    201|            LENGTH, LENGTH, scratch, UPRV_LENGTHOF(scratch), &capacity);
  ------------------
  |  |   99|    201|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1293|       |
 1294|    201|    buffer[0] = uprv_toupper(localeID[0]);
  ------------------
  |  | 1547|    201|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|    201|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    201|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    201|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1295|    804|    for (int32_t i = 1; i < LENGTH; ++i) {
  ------------------
  |  Branch (1295:25): [True: 603, False: 201]
  ------------------
 1296|    603|        buffer[i] = uprv_tolower(localeID[i]);
  ------------------
  |  |   68|    603|#   define uprv_tolower uprv_asciitolower
  |  |  ------------------
  |  |  |  | 1397|    603|#define uprv_asciitolower U_ICU_ENTRY_POINT_RENAME(uprv_asciitolower)
  |  |  |  |  ------------------
  |  |  |  |  |  |  123|    603|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  122|    603|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  |  |  121|    603|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1297|    603|    }
 1298|       |
 1299|    201|    sink->Append(buffer, LENGTH);
 1300|    201|    return len;
 1301|    201|}
uloc.cpp:_ZN12_GLOBAL__N_110_getRegionENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEPN6icu_788ByteSinkE:
 1303|    996|size_t _getRegion(std::string_view localeID, ByteSink* sink) {
 1304|    996|    constexpr int32_t MINLEN = 2;
 1305|    996|    constexpr int32_t MAXLEN = ULOC_COUNTRY_CAPACITY - 1;  // Minus NUL.
  ------------------
  |  |  258|    996|#define ULOC_COUNTRY_CAPACITY 4
  ------------------
 1306|       |
 1307|    996|    size_t len = 0;
 1308|  3.00k|    while (len < localeID.size() && !_isTerminator(localeID[len]) && !_isIDSeparator(localeID[len])) {
  ------------------
  |  Branch (1308:12): [True: 2.01k, False: 988]
  |  Branch (1308:37): [True: 2.01k, False: 0]
  |  Branch (1308:70): [True: 2.00k, False: 8]
  ------------------
 1309|  2.00k|        if (len == MAXLEN) { return 0; }
  ------------------
  |  Branch (1309:13): [True: 0, False: 2.00k]
  ------------------
 1310|  2.00k|        len++;
 1311|  2.00k|    }
 1312|    996|    if (len < MINLEN) { return 0; }
  ------------------
  |  Branch (1312:9): [True: 0, False: 996]
  ------------------
 1313|       |
 1314|    996|    if (sink == nullptr) { return len; }
  ------------------
  |  Branch (1314:9): [True: 0, False: 996]
  ------------------
 1315|       |
 1316|    996|    char scratch[ULOC_COUNTRY_CAPACITY];
 1317|    996|    int32_t capacity = 0;
 1318|    996|    char* buffer = sink->GetAppendBuffer(
 1319|    996|            ULOC_COUNTRY_CAPACITY,
  ------------------
  |  |  258|    996|#define ULOC_COUNTRY_CAPACITY 4
  ------------------
 1320|    996|            ULOC_COUNTRY_CAPACITY,
  ------------------
  |  |  258|    996|#define ULOC_COUNTRY_CAPACITY 4
  ------------------
 1321|    996|            scratch,
 1322|    996|            UPRV_LENGTHOF(scratch),
  ------------------
  |  |   99|    996|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1323|    996|            &capacity);
 1324|       |
 1325|  3.00k|    for (size_t i = 0; i < len; ++i) {
  ------------------
  |  Branch (1325:24): [True: 2.00k, False: 996]
  ------------------
 1326|  2.00k|        buffer[i] = uprv_toupper(localeID[i]);
  ------------------
  |  | 1547|  2.00k|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1327|  2.00k|    }
 1328|       |
 1329|    996|    if (len == 3) {
  ------------------
  |  Branch (1329:9): [True: 14, False: 982]
  ------------------
 1330|       |        /* convert 3 character code to 2 character code if possible *CWB*/
 1331|     14|        U_ASSERT(capacity >= 4);
  ------------------
  |  |   35|     14|#   define U_ASSERT(exp) (void)0
  ------------------
 1332|     14|        buffer[3] = '\0';
 1333|     14|        std::optional<int16_t> offset = _findIndex(COUNTRIES_3, buffer);
 1334|     14|        if (offset.has_value()) {
  ------------------
  |  Branch (1334:13): [True: 0, False: 14]
  ------------------
 1335|      0|            const char* const alias = COUNTRIES[*offset];
 1336|      0|            sink->Append(alias, static_cast<int32_t>(uprv_strlen(alias)));
  ------------------
  |  |   37|      0|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1337|      0|            return len;
 1338|      0|        }
 1339|     14|    }
 1340|       |
 1341|    996|    sink->Append(buffer, static_cast<int32_t>(len));
 1342|    996|    return len;
 1343|    996|}
uloc.cpp:_ZN12_GLOBAL__N_117_isBCP47ExtensionENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEE:
 1161|      8|inline bool _isBCP47Extension(std::string_view p) {
 1162|      8|    return p.size() >= 3 &&
  ------------------
  |  Branch (1162:12): [True: 8, False: 0]
  ------------------
 1163|      8|           p[0] == '-' &&
  ------------------
  |  Branch (1163:12): [True: 0, False: 8]
  ------------------
 1164|      8|           (p[1] == 't' || p[1] == 'T' ||
  ------------------
  |  Branch (1164:13): [True: 0, False: 0]
  |  Branch (1164:28): [True: 0, False: 0]
  ------------------
 1165|      0|            p[1] == 'u' || p[1] == 'U' ||
  ------------------
  |  Branch (1165:13): [True: 0, False: 0]
  |  Branch (1165:28): [True: 0, False: 0]
  ------------------
 1166|      0|            p[1] == 'x' || p[1] == 'X') &&
  ------------------
  |  Branch (1166:13): [True: 0, False: 0]
  |  Branch (1166:28): [True: 0, False: 0]
  ------------------
 1167|      8|           p[2] == '-';
  ------------------
  |  Branch (1167:12): [True: 0, False: 0]
  ------------------
 1168|      8|}
uloc.cpp:_ZN12_GLOBAL__N_111_getVariantENSt3__117basic_string_viewIcNS0_11char_traitsIcEEEEcPN6icu_788ByteSinkEbR10UErrorCode:
 1354|      8|            UErrorCode& status) {
 1355|      8|    if (U_FAILURE(status) || localeID.empty()) return 0;
  ------------------
  |  Branch (1355:9): [True: 0, False: 8]
  |  Branch (1355:30): [True: 0, False: 8]
  ------------------
 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|      8|    constexpr int32_t MAX_VARIANTS_LENGTH = 179;
 1366|       |
 1367|       |    /* get one or more variant tags and separate them with '_' */
 1368|      8|    size_t index = 0;
 1369|      8|    if (_isIDSeparator(prev)) {
  ------------------
  |  Branch (1369:9): [True: 8, False: 0]
  ------------------
 1370|       |        /* get a variant string after a '-' or '_' */
 1371|      8|        for (std::string_view sub = localeID;;) {
 1372|      8|            size_t next = sub.find_first_of(".@_-");
 1373|       |            // For historical reasons, a trailing separator is included in the variant.
 1374|      8|            bool finished = next == std::string_view::npos || next + 1 == sub.length();
  ------------------
  |  Branch (1374:29): [True: 8, False: 0]
  |  Branch (1374:63): [True: 0, False: 0]
  ------------------
 1375|      8|            size_t limit = finished ? sub.length() : next;
  ------------------
  |  Branch (1375:28): [True: 8, False: 0]
  ------------------
 1376|      8|            index += limit;
 1377|      8|            if (index > MAX_VARIANTS_LENGTH) {
  ------------------
  |  Branch (1377:17): [True: 0, False: 8]
  ------------------
 1378|      0|                status = U_ILLEGAL_ARGUMENT_ERROR;
 1379|      0|                return 0;
 1380|      0|            }
 1381|       |
 1382|      8|            if (sink != nullptr) {
  ------------------
  |  Branch (1382:17): [True: 8, False: 0]
  ------------------
 1383|      8|                if (needSeparator) {
  ------------------
  |  Branch (1383:21): [True: 0, False: 8]
  ------------------
 1384|      0|                    sink->Append("_", 1);
 1385|      8|                } else {
 1386|      8|                    needSeparator = true;
 1387|      8|                }
 1388|       |
 1389|      8|                int32_t length = static_cast<int32_t>(limit);
 1390|      8|                int32_t minCapacity = uprv_min(length, MAX_VARIANTS_LENGTH);
  ------------------
  |  | 1529|      8|#define uprv_min U_ICU_ENTRY_POINT_RENAME(uprv_min)
  |  |  ------------------
  |  |  |  |  123|      8|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      8|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      8|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1391|      8|                char scratch[MAX_VARIANTS_LENGTH];
 1392|      8|                int32_t capacity = 0;
 1393|      8|                char* buffer = sink->GetAppendBuffer(
 1394|      8|                        minCapacity, minCapacity, scratch, UPRV_LENGTHOF(scratch), &capacity);
  ------------------
  |  |   99|      8|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
 1395|       |
 1396|     48|                for (size_t i = 0; i < limit; ++i) {
  ------------------
  |  Branch (1396:36): [True: 40, False: 8]
  ------------------
 1397|     40|                    buffer[i] = uprv_toupper(sub[i]);
  ------------------
  |  | 1547|     40|#define uprv_toupper U_ICU_ENTRY_POINT_RENAME(uprv_toupper)
  |  |  ------------------
  |  |  |  |  123|     40|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     40|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     40|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1398|     40|                }
 1399|      8|                sink->Append(buffer, length);
 1400|      8|            }
 1401|       |
 1402|      8|            if (finished) { return index; }
  ------------------
  |  Branch (1402:17): [True: 8, False: 0]
  ------------------
 1403|      0|            sub.remove_prefix(next);
 1404|      0|            if (_isTerminator(sub.front()) || _isBCP47Extension(sub)) { return index; }
  ------------------
  |  Branch (1404:17): [True: 0, False: 0]
  |  Branch (1404:47): [True: 0, False: 0]
  ------------------
 1405|      0|            sub.remove_prefix(1);
 1406|      0|            index++;
 1407|      0|        }
 1408|      8|    }
 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|  1.38k|              UErrorCode& err) {
 1807|  1.38k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (1807:9): [True: 0, False: 1.38k]
  ------------------
 1808|      0|        return;
 1809|      0|    }
 1810|       |
 1811|  1.38k|    int32_t j, fieldCount=0;
 1812|  1.38k|    CharString tempBuffer;  // if localeID has a BCP47 extension, tmpLocaleID points to this
 1813|  1.38k|    CharString localeIDWithHyphens;  // if localeID has a BPC47 extension and have _, tmpLocaleID points to this
 1814|  1.38k|    std::string_view origLocaleID;
 1815|  1.38k|    std::string_view tmpLocaleID;
 1816|  1.38k|    size_t keywordAssign = std::string_view::npos;
 1817|  1.38k|    size_t separatorIndicator = std::string_view::npos;
 1818|       |
 1819|  1.38k|    if (_hasBCP47Extension(localeID)) {
  ------------------
  |  Branch (1819:9): [True: 0, False: 1.38k]
  ------------------
 1820|      0|        std::string_view localeIDPtr = localeID;
 1821|       |
 1822|       |        // convert all underbars to hyphens, unless the "BCP47 extension" comes at the beginning of the string
 1823|      0|        if (localeID.size() >= 2 && localeID.find('_') != std::string_view::npos && localeID[1] != '-' && localeID[1] != '_') {
  ------------------
  |  Branch (1823:13): [True: 0, False: 0]
  |  Branch (1823:37): [True: 0, False: 0]
  |  Branch (1823:85): [True: 0, False: 0]
  |  Branch (1823:107): [True: 0, False: 0]
  ------------------
 1824|      0|            localeIDWithHyphens.append(localeID, err);
 1825|      0|            if (U_SUCCESS(err)) {
  ------------------
  |  Branch (1825:17): [True: 0, False: 0]
  ------------------
 1826|      0|                for (char* p = localeIDWithHyphens.data(); *p != '\0'; ++p) {
  ------------------
  |  Branch (1826:60): [True: 0, False: 0]
  ------------------
 1827|      0|                    if (*p == '_') {
  ------------------
  |  Branch (1827:25): [True: 0, False: 0]
  ------------------
 1828|      0|                        *p = '-';
 1829|      0|                    }
 1830|      0|                }
 1831|      0|                localeIDPtr = localeIDWithHyphens.toStringPiece();
 1832|      0|            }
 1833|      0|        }
 1834|       |
 1835|      0|        tempBuffer = ulocimp_forLanguageTag(localeIDPtr.data(), static_cast<int32_t>(localeIDPtr.size()), nullptr, err);
  ------------------
  |  | 1198|      0|#define ulocimp_forLanguageTag U_ICU_ENTRY_POINT_RENAME(ulocimp_forLanguageTag)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1836|      0|        tmpLocaleID = U_SUCCESS(err) && !tempBuffer.isEmpty() ? static_cast<std::string_view>(tempBuffer.toStringPiece()) : localeIDPtr;
  ------------------
  |  Branch (1836:23): [True: 0, False: 0]
  |  Branch (1836:41): [True: 0, False: 0]
  ------------------
 1837|  1.38k|    } else {
 1838|  1.38k|        tmpLocaleID=localeID;
 1839|  1.38k|    }
 1840|       |
 1841|  1.38k|    origLocaleID=tmpLocaleID;
 1842|       |
 1843|       |    /* get all pieces, one after another, and separate with '_' */
 1844|  1.38k|    CharString tag;
 1845|  1.38k|    CharString script;
 1846|  1.38k|    CharString country;
 1847|  1.38k|    CharString variant;
 1848|  1.38k|    const char* end = nullptr;
 1849|  1.38k|    ulocimp_getSubtags(
  ------------------
  |  | 1209|  1.38k|#define ulocimp_getSubtags U_ICU_ENTRY_POINT_RENAME(ulocimp_getSubtags)
  |  |  ------------------
  |  |  |  |  123|  1.38k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.38k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.38k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1850|  1.38k|            tmpLocaleID,
 1851|  1.38k|            &tag,
 1852|  1.38k|            &script,
 1853|  1.38k|            &country,
 1854|  1.38k|            &variant,
 1855|  1.38k|            &end,
 1856|  1.38k|            err);
 1857|  1.38k|    if (U_FAILURE(err)) {
  ------------------
  |  Branch (1857:9): [True: 0, False: 1.38k]
  ------------------
 1858|      0|        return;
 1859|      0|    }
 1860|  1.38k|    U_ASSERT(end != nullptr);
  ------------------
  |  |   35|  1.38k|#   define U_ASSERT(exp) (void)0
  ------------------
 1861|  1.38k|    if (end > tmpLocaleID.data()) {
  ------------------
  |  Branch (1861:9): [True: 1.38k, False: 0]
  ------------------
 1862|  1.38k|        tmpLocaleID.remove_prefix(end - tmpLocaleID.data());
 1863|  1.38k|    }
 1864|       |
 1865|  1.38k|    if (tag.length() == I_DEFAULT_LENGTH && origLocaleID.length() >= I_DEFAULT_LENGTH &&
  ------------------
  |  Branch (1865:9): [True: 0, False: 1.38k]
  |  Branch (1865:45): [True: 0, False: 0]
  ------------------
 1866|  1.38k|            uprv_strncmp(origLocaleID.data(), i_default, I_DEFAULT_LENGTH) == 0) {
  ------------------
  |  |   44|      0|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (1866:13): [True: 0, False: 0]
  ------------------
 1867|      0|        tag.clear();
 1868|      0|        tag.append(uloc_getDefault(), err);
  ------------------
  |  | 1118|      0|#define uloc_getDefault U_ICU_ENTRY_POINT_RENAME(uloc_getDefault)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1869|  1.38k|    } else {
 1870|  1.38k|        if (!script.isEmpty()) {
  ------------------
  |  Branch (1870:13): [True: 201, False: 1.18k]
  ------------------
 1871|    201|            ++fieldCount;
 1872|    201|            tag.append('_', err);
 1873|    201|            tag.append(script, err);
 1874|    201|        }
 1875|  1.38k|        if (!country.isEmpty()) {
  ------------------
  |  Branch (1875:13): [True: 996, False: 388]
  ------------------
 1876|    996|            ++fieldCount;
 1877|    996|            tag.append('_', err);
 1878|    996|            tag.append(country, err);
 1879|    996|        }
 1880|  1.38k|        if (!variant.isEmpty()) {
  ------------------
  |  Branch (1880:13): [True: 8, False: 1.37k]
  ------------------
 1881|      8|            ++fieldCount;
 1882|      8|            if (country.isEmpty()) {
  ------------------
  |  Branch (1882:17): [True: 0, False: 8]
  ------------------
 1883|      0|                tag.append('_', err);
 1884|      0|            }
 1885|      8|            tag.append('_', err);
 1886|      8|            tag.append(variant, err);
 1887|      8|        }
 1888|  1.38k|    }
 1889|       |
 1890|       |    /* Copy POSIX-style charset specifier, if any [mr.utf8] */
 1891|  1.38k|    if (!OPTION_SET(options, _ULOC_CANONICALIZE) && !tmpLocaleID.empty() && tmpLocaleID.front() == '.') {
  ------------------
  |  | 1786|  1.38k|#define _ULOC_CANONICALIZE   0x1
  ------------------
  |  Branch (1891:9): [True: 498, False: 886]
  |  Branch (1891:53): [True: 0, False: 498]
  |  Branch (1891:77): [True: 0, False: 0]
  ------------------
 1892|      0|        tag.append('.', err);
 1893|      0|        tmpLocaleID.remove_prefix(1);
 1894|      0|        size_t length;
 1895|      0|        if (size_t atPos = tmpLocaleID.find('@'); atPos != std::string_view::npos) {
  ------------------
  |  Branch (1895:51): [True: 0, False: 0]
  ------------------
 1896|      0|            length = atPos;
 1897|      0|        } else {
 1898|      0|            length = tmpLocaleID.length();
 1899|      0|        }
 1900|       |        // The longest charset name we found in IANA charset registry
 1901|       |        // https://www.iana.org/assignments/character-sets/ is
 1902|       |        // "Extended_UNIX_Code_Packed_Format_for_Japanese" in length 45.
 1903|       |        // we therefore restrict the length here to be 64 which is a power of 2
 1904|       |        // number that is longer than 45.
 1905|      0|        constexpr size_t kMaxCharsetLength = 64;
 1906|      0|        if (length > kMaxCharsetLength) {
  ------------------
  |  Branch (1906:13): [True: 0, False: 0]
  ------------------
 1907|      0|           err = U_ILLEGAL_ARGUMENT_ERROR; /* malformed keyword name */
 1908|      0|           return;
 1909|      0|        }
 1910|      0|        if (length > 0) {
  ------------------
  |  Branch (1910:13): [True: 0, False: 0]
  ------------------
 1911|      0|            tag.append(tmpLocaleID.data(), static_cast<int32_t>(length), err);
 1912|      0|            tmpLocaleID.remove_prefix(length);
 1913|      0|        }
 1914|      0|    }
 1915|       |
 1916|       |    /* Scan ahead to next '@' and determine if it is followed by '=' and/or ';'
 1917|       |       After this, tmpLocaleID either starts at '@' or is empty. */
 1918|  1.38k|    if (const char* start = locale_getKeywordsStart(tmpLocaleID); start != nullptr) {
  ------------------
  |  |  138|  1.38k|#define locale_getKeywordsStart U_ICU_ENTRY_POINT_RENAME(locale_getKeywordsStart)
  |  |  ------------------
  |  |  |  |  123|  1.38k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.38k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.38k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1918:67): [True: 0, False: 1.38k]
  ------------------
 1919|      0|        if (start > tmpLocaleID.data()) {
  ------------------
  |  Branch (1919:13): [True: 0, False: 0]
  ------------------
 1920|      0|            tmpLocaleID.remove_prefix(start - tmpLocaleID.data());
 1921|      0|        }
 1922|      0|        keywordAssign = tmpLocaleID.find('=');
 1923|      0|        separatorIndicator = tmpLocaleID.find(';');
 1924|  1.38k|    } else {
 1925|  1.38k|        tmpLocaleID = {};
 1926|  1.38k|    }
 1927|       |
 1928|       |    /* Copy POSIX-style variant, if any [mr@FOO] */
 1929|  1.38k|    if (!OPTION_SET(options, _ULOC_CANONICALIZE) &&
  ------------------
  |  | 1786|  1.38k|#define _ULOC_CANONICALIZE   0x1
  ------------------
  |  Branch (1929:9): [True: 498, False: 886]
  ------------------
 1930|  1.38k|        !tmpLocaleID.empty() && keywordAssign == std::string_view::npos) {
  ------------------
  |  Branch (1930:9): [True: 0, False: 498]
  |  Branch (1930:33): [True: 0, False: 0]
  ------------------
 1931|      0|        tag.append(tmpLocaleID, err);
 1932|      0|        tmpLocaleID = {};
 1933|      0|    }
 1934|       |
 1935|  1.38k|    if (OPTION_SET(options, _ULOC_CANONICALIZE)) {
  ------------------
  |  | 1786|  1.38k|#define _ULOC_CANONICALIZE   0x1
  ------------------
  |  Branch (1935:9): [True: 886, False: 498]
  ------------------
 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|  1.38k|    sink.Append(tag.data(), tag.length());
 1968|       |
 1969|  1.38k|    if (!OPTION_SET(options, _ULOC_STRIP_KEYWORDS)) {
  ------------------
  |  | 1785|  1.38k|#define _ULOC_STRIP_KEYWORDS 0x2
  ------------------
  |  Branch (1969:9): [True: 887, False: 497]
  ------------------
 1970|    887|        if (!tmpLocaleID.empty() && keywordAssign != std::string_view::npos &&
  ------------------
  |  Branch (1970:13): [True: 0, False: 887]
  |  Branch (1970:37): [True: 0, False: 0]
  ------------------
 1971|    887|            (separatorIndicator == std::string_view::npos || separatorIndicator > keywordAssign)) {
  ------------------
  |  Branch (1971:14): [True: 0, False: 0]
  |  Branch (1971:62): [True: 0, False: 0]
  ------------------
 1972|      0|            sink.Append("@", 1);
 1973|      0|            ++fieldCount;
 1974|      0|            tmpLocaleID.remove_prefix(1);
 1975|      0|            ulocimp_getKeywords(tmpLocaleID, '@', sink, true, err);
  ------------------
  |  | 1201|      0|#define ulocimp_getKeywords U_ICU_ENTRY_POINT_RENAME(ulocimp_getKeywords)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1976|      0|        }
 1977|    887|    }
 1978|  1.38k|}
uloc.cpp:_ZN12_GLOBAL__N_110OPTION_SETEjj:
 1790|  5.53k|inline bool OPTION_SET(uint32_t options, uint32_t mask) { return (options & mask) != 0; }
uloc.cpp:_ZZ22ulocimp_getBaseName_78NSt3__117basic_string_viewIcNS_11char_traitsIcEEEER10UErrorCodeENK3$_0clERN6icu_788ByteSinkES5_:
 2197|    497|        [&](ByteSink& sink, UErrorCode& status) {
 2198|    497|            ulocimp_getBaseName(localeID, sink, status);
  ------------------
  |  | 1199|    497|#define ulocimp_getBaseName U_ICU_ENTRY_POINT_RENAME(ulocimp_getBaseName)
  |  |  ------------------
  |  |  |  |  123|    497|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    497|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    497|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2199|    497|        },
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|        },

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

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

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

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

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

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

_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); }

listformatter.cpp:_ZN6icu_7816LocalPointerBaseINS_12_GLOBAL__N_114PatternHandlerEEC2EPS2_:
   82|    497|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
listformatter.cpp:_ZN6icu_7812LocalPointerINS_12_GLOBAL__N_114PatternHandlerEEC2EPS2_R10UErrorCode:
  214|    497|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|    497|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 497]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|    497|    }
_ZN6icu_7812LocalPointerINS_17FormattedListDataEEC2EPS1_R10UErrorCode:
  214|  23.6k|    LocalPointer(T *p, UErrorCode &errorCode) : LocalPointerBase<T>(p) {
  215|  23.6k|        if(p==nullptr && U_SUCCESS(errorCode)) {
  ------------------
  |  Branch (215:12): [True: 0, False: 23.6k]
  |  Branch (215:26): [True: 0, False: 0]
  ------------------
  216|      0|            errorCode=U_MEMORY_ALLOCATION_ERROR;
  217|      0|        }
  218|  23.6k|    }
_ZN6icu_7816LocalPointerBaseINS_17FormattedListDataEEC2EPS1_:
   82|  23.6k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_7812LocalPointerINS_17FormattedListDataEED2Ev:
  245|  23.6k|    ~LocalPointer() {
  246|  23.6k|        delete LocalPointerBase<T>::ptr;
  247|  23.6k|    }
_ZN6icu_7816LocalPointerBaseINS_17FormattedListDataEED2Ev:
   88|  23.6k|    ~LocalPointerBase() { /* delete ptr; */ }
listformatter.cpp:_ZNK6icu_7816LocalPointerBaseINS_12_GLOBAL__N_114PatternHandlerEEptEv:
  134|  14.1k|    T *operator->() const { return ptr; }
_ZNK6icu_7816LocalPointerBaseINS_17FormattedListDataEEptEv:
  134|   198k|    T *operator->() const { return ptr; }
_ZN6icu_7816LocalPointerBaseINS_17FormattedListDataEE6orphanEv:
  141|  23.6k|    T *orphan() {
  142|  23.6k|        T *p=ptr;
  143|  23.6k|        ptr=nullptr;
  144|  23.6k|        return p;
  145|  23.6k|    }
_ZN6icu_788internal16LocalOpenPointerI15UResourceBundleXadL_Z13ures_close_78EEEC2EPS2_:
  567|  1.29k|    explicit LocalOpenPointer(Type *p=nullptr) : LocalPointerBase<Type>(p) {}
_ZN6icu_7816LocalPointerBaseI15UResourceBundleEC2EPS1_:
   82|  1.29k|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZN6icu_788internal16LocalOpenPointerI15UResourceBundleXadL_Z13ures_close_78EEED2Ev:
  575|  1.29k|    ~LocalOpenPointer() { if (ptr != nullptr) { closeFunction(ptr); } }
  ------------------
  |  Branch (575:31): [True: 1.29k, False: 0]
  ------------------
_ZN6icu_7816LocalPointerBaseI15UResourceBundleED2Ev:
   88|  1.29k|    ~LocalPointerBase() { /* delete ptr; */ }
_ZNK6icu_7816LocalPointerBaseI15UResourceBundleE8getAliasEv:
  122|  2.59k|    T *getAlias() const { return ptr; }
_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|      1|    explicit LocalOpenPointer(Type *p=nullptr) : LocalPointerBase<Type>(p) {}
_ZN6icu_7816LocalPointerBaseI10UHashtableEC2EPS1_:
   82|      1|    explicit LocalPointerBase(T *p=nullptr) : ptr(p) {}
_ZNK6icu_7816LocalPointerBaseI10UHashtableE8getAliasEv:
  122|    178|    T *getAlias() const { return ptr; }
_ZN6icu_7816LocalPointerBaseI10UHashtableE6orphanEv:
  141|      1|    T *orphan() {
  142|      1|        T *p=ptr;
  143|      1|        ptr=nullptr;
  144|      1|        return p;
  145|      1|    }
_ZN6icu_788internal16LocalOpenPointerI10UHashtableXadL_Z14uhash_close_78EEED2Ev:
  575|      1|    ~LocalOpenPointer() { if (ptr != nullptr) { closeFunction(ptr); } }
  ------------------
  |  Branch (575:31): [True: 0, False: 1]
  ------------------
_ZN6icu_7816LocalPointerBaseI10UHashtableED2Ev:
   88|      1|    ~LocalPointerBase() { /* delete ptr; */ }

_ZNK6icu_786Locale10getCountryEv:
 1204|    717|{
 1205|    717|    return country;
 1206|    717|}
_ZNK6icu_786Locale11getLanguageEv:
 1210|  1.21k|{
 1211|  1.21k|    return language;
 1212|  1.21k|}
_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|  4.72k|{
 1229|  4.72k|    return fullName;
 1230|  4.72k|}

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

_ZN6icu_7815SimpleFormatterC2ERKNS_13UnicodeStringEiiR10UErrorCode:
   96|  2.20k|                    UErrorCode &errorCode) {
   97|  2.20k|        applyPatternMinMaxArguments(pattern, min, max, errorCode);
   98|  2.20k|    }
_ZNK6icu_7815SimpleFormatter16getArgumentLimitEv:
  155|  28.3k|    int32_t getArgumentLimit() const {
  156|  28.3k|        return getArgumentLimit(compiledPattern.getBuffer(), compiledPattern.length());
  157|  28.3k|    }
_ZN6icu_7815SimpleFormatter16getArgumentLimitEPKDsi:
  314|  56.6k|                                              int32_t compiledPatternLength) {
  315|  56.6k|        return compiledPatternLength == 0 ? 0 : compiledPattern[0];
  ------------------
  |  Branch (315:16): [True: 0, False: 56.6k]
  ------------------
  316|  56.6k|    }
_ZNK6icu_7815SimpleFormatter22getTextWithNoArgumentsEPii:
  292|  28.3k|    UnicodeString getTextWithNoArguments(int32_t *offsets, int32_t offsetsLength) const {
  293|  28.3k|        return getTextWithNoArguments(
  294|  28.3k|            compiledPattern.getBuffer(),
  295|  28.3k|            compiledPattern.length(),
  296|  28.3k|            offsets,
  297|  28.3k|            offsetsLength);
  298|  28.3k|    }

_ZN6icu_7811StringPieceC2EPKci:
  151|  1.14k|  StringPiece(const char* offset, int32_t len) : ptr_(offset), length_(len) { }
_ZNK6icu_7811StringPiece4dataEv:
  200|  17.6k|  const char* data() const { return ptr_; }
_ZN6icu_7811StringPiece13remove_prefixEi:
  267|  3.42k|  void remove_prefix(int32_t n) {
  268|  3.42k|    if (n >= 0) {
  ------------------
  |  Branch (268:9): [True: 3.42k, False: 0]
  ------------------
  269|  3.42k|      if (n > length_) {
  ------------------
  |  Branch (269:11): [True: 0, False: 3.42k]
  ------------------
  270|      0|        n = length_;
  271|      0|      }
  272|  3.42k|      ptr_ += n;
  273|  3.42k|      length_ -= n;
  274|  3.42k|    }
  275|  3.42k|  }
_ZNK6icu_7811StringPiece4sizeEv:
  206|  2.02k|  int32_t size() const { return length_; }
_ZNK6icu_7811StringPiececvNSt3__117basic_string_viewIcNS1_11char_traitsIcEEEEEv:
  185|    886|  inline operator std::string_view() const {
  186|    886|    return {data(), static_cast<std::string_view::size_type>(size())};
  187|    886|  }
_ZNK6icu_7811StringPiece6lengthEv:
  212|  20.6k|  int32_t length() const { return length_; }

_ZN6icu_7813UnicodeStringC2Ev:
 4182|  15.9k|UnicodeString::UnicodeString() {
 4183|  15.9k|  fUnion.fStackFields.fLengthAndFlags=kShortString;
 4184|  15.9k|}
_ZNK6icu_7813UnicodeString8doEqualsERKS0_i:
 3773|  2.18k|  inline UBool doEquals(const UnicodeString &text, int32_t len) const {
 3774|  2.18k|    return doEquals(text.getArrayStart(), len);
 3775|  2.18k|  }
_ZNK6icu_7813UnicodeString8pinIndexERi:
 4138|    560|{
 4139|       |  // pin index
 4140|    560|  if(start < 0) {
  ------------------
  |  Branch (4140:6): [True: 0, False: 560]
  ------------------
 4141|      0|    start = 0;
 4142|    560|  } else if(start > length()) {
  ------------------
  |  Branch (4142:13): [True: 0, False: 560]
  ------------------
 4143|      0|    start = length();
 4144|      0|  }
 4145|    560|}
_ZNK6icu_7813UnicodeString10pinIndicesERiS1_:
 4150|  85.8k|{
 4151|       |  // pin indices
 4152|  85.8k|  int32_t len = length();
 4153|  85.8k|  if(start < 0) {
  ------------------
  |  Branch (4153:6): [True: 0, False: 85.8k]
  ------------------
 4154|      0|    start = 0;
 4155|  85.8k|  } else if(start > len) {
  ------------------
  |  Branch (4155:13): [True: 0, False: 85.8k]
  ------------------
 4156|      0|    start = len;
 4157|      0|  }
 4158|  85.8k|  if(_length < 0) {
  ------------------
  |  Branch (4158:6): [True: 0, False: 85.8k]
  ------------------
 4159|      0|    _length = 0;
 4160|  85.8k|  } else if(_length > (len - start)) {
  ------------------
  |  Branch (4160:13): [True: 28.3k, False: 57.5k]
  ------------------
 4161|  28.3k|    _length = (len - start);
 4162|  28.3k|  }
 4163|  85.8k|}
_ZN6icu_7813UnicodeString13getArrayStartEv:
 4166|  73.8k|UnicodeString::getArrayStart() {
 4167|  73.8k|  return (fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) ?
  ------------------
  |  Branch (4167:10): [True: 61.3k, False: 12.5k]
  ------------------
 4168|  61.3k|    fUnion.fStackFields.fBuffer : fUnion.fFields.fArray;
 4169|  73.8k|}
_ZNK6icu_7813UnicodeString13getArrayStartEv:
 4172|  1.99G|UnicodeString::getArrayStart() const {
 4173|  1.99G|  return (fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) ?
  ------------------
  |  Branch (4173:10): [True: 100k, False: 1.99G]
  ------------------
 4174|  1.99G|    fUnion.fStackFields.fBuffer : fUnion.fFields.fArray;
 4175|  1.99G|}
_ZNK6icu_7813UnicodeString14hasShortLengthEv:
 4202|  1.99G|UnicodeString::hasShortLength() const {
 4203|  1.99G|  return fUnion.fFields.fLengthAndFlags>=0;
 4204|  1.99G|}
_ZNK6icu_7813UnicodeString14getShortLengthEv:
 4207|  3.21M|UnicodeString::getShortLength() const {
 4208|       |  // fLengthAndFlags must be non-negative -> short length >= 0
 4209|       |  // and arithmetic or logical shift does not matter.
 4210|  3.21M|  return fUnion.fFields.fLengthAndFlags>>kLengthShift;
 4211|  3.21M|}
_ZNK6icu_7813UnicodeString6lengthEv:
 4214|  1.99G|UnicodeString::length() const {
 4215|  1.99G|  return hasShortLength() ? getShortLength() : fUnion.fFields.fLength;
  ------------------
  |  Branch (4215:10): [True: 3.21M, False: 1.98G]
  ------------------
 4216|  1.99G|}
_ZNK6icu_7813UnicodeString11getCapacityEv:
 4219|  74.3k|UnicodeString::getCapacity() const {
 4220|  74.3k|  return (fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) ?
  ------------------
  |  Branch (4220:10): [True: 69.2k, False: 5.13k]
  ------------------
 4221|  69.2k|    US_STACKBUF_SIZE : fUnion.fFields.fCapacity;
 4222|  74.3k|}
_ZNK6icu_7813UnicodeString8hashCodeEv:
 4226|  3.35k|{ return doHashCode(); }
_ZNK6icu_7813UnicodeString7isBogusEv:
 4230|  9.80k|{ return fUnion.fFields.fLengthAndFlags & kIsBogus; }
_ZNK6icu_7813UnicodeString10isWritableEv:
 4234|  81.5k|{ return !(fUnion.fFields.fLengthAndFlags & (kOpenGetBuffer | kIsBogus)); }
_ZNK6icu_7813UnicodeString16isBufferWritableEv:
 4238|  52.9k|{
 4239|  52.9k|  return
 4240|  52.9k|      !(fUnion.fFields.fLengthAndFlags&(kOpenGetBuffer|kIsBogus|kBufferIsReadonly)) &&
  ------------------
  |  Branch (4240:7): [True: 52.9k, False: 0]
  ------------------
 4241|  52.9k|      (!(fUnion.fFields.fLengthAndFlags&kRefCounted) || refCount()==1);
  ------------------
  |  Branch (4241:8): [True: 52.9k, False: 0]
  |  Branch (4241:57): [True: 0, False: 0]
  ------------------
 4242|  52.9k|}
_ZNK6icu_7813UnicodeString9getBufferEv:
 4245|   143k|UnicodeString::getBuffer() const {
 4246|   143k|  if(fUnion.fFields.fLengthAndFlags&(kIsBogus|kOpenGetBuffer)) {
  ------------------
  |  Branch (4246:6): [True: 0, False: 143k]
  ------------------
 4247|      0|    return nullptr;
 4248|   143k|  } else if(fUnion.fFields.fLengthAndFlags&kUsingStackBuffer) {
  ------------------
  |  Branch (4248:13): [True: 141k, False: 2.20k]
  ------------------
 4249|   141k|    return fUnion.fStackFields.fBuffer;
 4250|   141k|  } else {
 4251|  2.20k|    return fUnion.fFields.fArray;
 4252|  2.20k|  }
 4253|   143k|}
_ZNK6icu_7813UnicodeStringeqERKS0_:
 4290|  2.23k|{
 4291|  2.23k|  if(isBogus()) {
  ------------------
  |  Branch (4291:6): [True: 0, False: 2.23k]
  ------------------
 4292|      0|    return text.isBogus();
 4293|  2.23k|  } else {
 4294|  2.23k|    int32_t len = length(), textLength = text.length();
 4295|  2.23k|    return !text.isBogus() && len == textLength && doEquals(text, len);
  ------------------
  |  Branch (4295:12): [True: 2.23k, False: 0]
  |  Branch (4295:31): [True: 2.18k, False: 47]
  |  Branch (4295:52): [True: 2.07k, False: 106]
  ------------------
 4296|  2.23k|  }
 4297|  2.23k|}
_ZNK6icu_7813UnicodeString7indexOfEPKDsii:
 4536|    280|               int32_t start) const {
 4537|    280|  pinIndex(start);
 4538|    280|  return indexOf(srcChars, 0, srcLength, start, length() - start);
 4539|    280|}
_ZNK6icu_7813UnicodeString7indexOfEDsi:
 4570|    280|               int32_t start) const {
 4571|    280|  pinIndex(start);
 4572|    280|  return doIndexOf(c, start, length() - start);
 4573|    280|}
_ZNK6icu_7813UnicodeString20tempSubStringBetweenEii:
 4840|  56.6k|UnicodeString::tempSubStringBetween(int32_t start, int32_t limit) const {
 4841|  56.6k|    return tempSubString(start, limit - start);
 4842|  56.6k|}
_ZNK6icu_7813UnicodeString8doCharAtEi:
 4846|  1.99G|{
 4847|  1.99G|  if (static_cast<uint32_t>(offset) < static_cast<uint32_t>(length())) {
  ------------------
  |  Branch (4847:7): [True: 1.99G, False: 0]
  ------------------
 4848|  1.99G|    return getArrayStart()[offset];
 4849|  1.99G|  } else {
 4850|      0|    return kInvalidUChar;
 4851|      0|  }
 4852|  1.99G|}
_ZNK6icu_7813UnicodeString6charAtEi:
 4856|  1.99G|{ return doCharAt(offset); }
_ZNK6icu_7813UnicodeStringixEi:
 4860|  28.4k|{ return doCharAt(offset); }
_ZNK6icu_7813UnicodeString7isEmptyEv:
 4863|  13.1k|UnicodeString::isEmpty() const {
 4864|       |  // Arithmetic or logical right shift does not matter: only testing for 0.
 4865|  13.1k|  return (fUnion.fFields.fLengthAndFlags>>kLengthShift) == 0;
 4866|  13.1k|}
_ZN6icu_7813UnicodeString14setShortLengthEi:
 4877|   148k|UnicodeString::setShortLength(int32_t len) {
 4878|       |  // requires 0 <= len <= kMaxShortLength
 4879|   148k|  fUnion.fFields.fLengthAndFlags =
 4880|   148k|    static_cast<int16_t>((fUnion.fFields.fLengthAndFlags & kAllStorageFlags) | (len << kLengthShift));
 4881|   148k|}
_ZN6icu_7813UnicodeString9setLengthEi:
 4884|   153k|UnicodeString::setLength(int32_t len) {
 4885|   153k|  if(len <= kMaxShortLength) {
  ------------------
  |  Branch (4885:6): [True: 148k, False: 4.95k]
  ------------------
 4886|   148k|    setShortLength(len);
 4887|   148k|  } else {
 4888|  4.95k|    fUnion.fFields.fLengthAndFlags |= kLengthIsLarge;
 4889|  4.95k|    fUnion.fFields.fLength = len;
 4890|  4.95k|  }
 4891|   153k|}
_ZN6icu_7813UnicodeString10setToEmptyEv:
 4894|    632|UnicodeString::setToEmpty() {
 4895|    632|  fUnion.fFields.fLengthAndFlags = kShortString;
 4896|    632|}
_ZN6icu_7813UnicodeString8setArrayEPDsii:
 4899|  88.6k|UnicodeString::setArray(char16_t *array, int32_t len, int32_t capacity) {
 4900|  88.6k|  setLength(len);
 4901|  88.6k|  fUnion.fFields.fArray = array;
 4902|  88.6k|  fUnion.fFields.fCapacity = capacity;
 4903|  88.6k|}
_ZN6icu_7813UnicodeString5setToEDs:
 4947|  2.20k|{
 4948|  2.20k|  unBogus();
 4949|  2.20k|  return doReplace(0, length(), &srcChar, 0, 1);
 4950|  2.20k|}
_ZN6icu_7813UnicodeString6appendENS_14ConstChar16PtrEi:
 4978|  28.6k|{ return doAppend(srcChars, 0, srcLength); }
_ZN6icu_7813UnicodeString6appendEDs:
 4982|  12.9k|{ return doAppend(&srcChar, 0, 1); }

list_format_fuzzer.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  3.42k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
listformatter.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  85.9k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
listformatter.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  24.6k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
formatted_string_builder.cpp:_ZL9U_FAILURE10UErrorCode:
  737|   177k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
formattedval_sbimpl.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  47.2k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
charstr.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  42.4k|    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|  24.5k|    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; }
simpleformatter.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  2.20k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uchar.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  1.51k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uhash.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  3.16k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uloc.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  7.43k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uresbund.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  19.2k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
uresbund.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  2.96k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uresdata.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  3.86k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
ustring.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  1.16k|    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; }
bytesinkutil.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|  2.58k|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
uarrsort.cpp:_ZL9U_FAILURE10UErrorCode:
  737|    717|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
udata.cpp:_ZL9U_FAILURE10UErrorCode:
  737|  1.38k|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
udata.cpp:_ZL9U_SUCCESS10UErrorCode:
  731|    277|    inline UBool U_SUCCESS(UErrorCode code) { return code <= U_ZERO_ERROR; }
udatamem.cpp:_ZL9U_FAILURE10UErrorCode:
  737|    278|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }
ucmndata.cpp:_ZL9U_FAILURE10UErrorCode:
  737|      2|    inline UBool U_FAILURE(UErrorCode code) { return code > U_ZERO_ERROR; }

_ZN6icu_7817UniqueCharStringsC2ER10UErrorCode:
   27|      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|   137k|Replaceable::~Replaceable() {}
_ZN6icu_7813UnicodeString9removeRefEv:
  151|  7.37k|UnicodeString::removeRef() {
  152|  7.37k|  return umtx_atomic_dec(reinterpret_cast<u_atomic_int32_t*>(fUnion.fFields.fArray) - 1);
  153|  7.37k|}
_ZN6icu_7813UnicodeString12releaseArrayEv:
  161|   144k|UnicodeString::releaseArray() {
  162|   144k|  if((fUnion.fFields.fLengthAndFlags & kRefCounted) && removeRef() == 0) {
  ------------------
  |  Branch (162:6): [True: 7.37k, False: 137k]
  |  Branch (162:56): [True: 7.37k, False: 0]
  ------------------
  163|  7.37k|    uprv_free(reinterpret_cast<int32_t*>(fUnion.fFields.fArray) - 1);
  ------------------
  |  | 1503|  7.37k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  7.37k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.37k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.37k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  164|  7.37k|  }
  165|   144k|}
_ZN6icu_7813UnicodeStringC2Eiii:
  175|  28.3k|UnicodeString::UnicodeString(int32_t capacity, UChar32 c, int32_t count) {
  176|  28.3k|  fUnion.fFields.fLengthAndFlags = 0;
  177|  28.3k|  if (count <= 0 || static_cast<uint32_t>(c) > 0x10ffff) {
  ------------------
  |  Branch (177:7): [True: 28.3k, False: 0]
  |  Branch (177:21): [True: 0, False: 0]
  ------------------
  178|       |    // just allocate and do not do anything else
  179|  28.3k|    allocate(capacity);
  180|  28.3k|  } else if(c <= 0xffff) {
  ------------------
  |  Branch (180:13): [True: 0, False: 0]
  ------------------
  181|      0|    int32_t length = count;
  182|      0|    if(capacity < length) {
  ------------------
  |  Branch (182:8): [True: 0, False: 0]
  ------------------
  183|      0|      capacity = length;
  184|      0|    }
  185|      0|    if(allocate(capacity)) {
  ------------------
  |  Branch (185:8): [True: 0, False: 0]
  ------------------
  186|      0|      char16_t *array = getArrayStart();
  187|      0|      char16_t unit = static_cast<char16_t>(c);
  188|      0|      for(int32_t i = 0; i < length; ++i) {
  ------------------
  |  Branch (188:26): [True: 0, False: 0]
  ------------------
  189|      0|        array[i] = unit;
  190|      0|      }
  191|      0|      setLength(length);
  192|      0|    }
  193|      0|  } else {  // supplementary code point, write surrogate pairs
  194|      0|    if(count > (INT32_MAX / 2)) {
  ------------------
  |  Branch (194:8): [True: 0, False: 0]
  ------------------
  195|       |      // We would get more than 2G UChars.
  196|      0|      allocate(capacity);
  197|      0|      return;
  198|      0|    }
  199|      0|    int32_t length = count * 2;
  200|      0|    if(capacity < length) {
  ------------------
  |  Branch (200:8): [True: 0, False: 0]
  ------------------
  201|      0|      capacity = length;
  202|      0|    }
  203|      0|    if(allocate(capacity)) {
  ------------------
  |  Branch (203:8): [True: 0, False: 0]
  ------------------
  204|      0|      char16_t *array = getArrayStart();
  205|      0|      char16_t lead = U16_LEAD(c);
  ------------------
  |  |  123|      0|#define U16_LEAD(supplementary) (UChar)(((supplementary)>>10)+0xd7c0)
  ------------------
  206|      0|      char16_t trail = U16_TRAIL(c);
  ------------------
  |  |  132|      0|#define U16_TRAIL(supplementary) (UChar)(((supplementary)&0x3ff)|0xdc00)
  ------------------
  207|      0|      for(int32_t i = 0; i < length; i += 2) {
  ------------------
  |  Branch (207:26): [True: 0, False: 0]
  ------------------
  208|      0|        array[i] = lead;
  209|      0|        array[i + 1] = trail;
  210|      0|      }
  211|      0|      setLength(length);
  212|      0|    }
  213|      0|  }
  214|  28.3k|}
_ZN6icu_7813UnicodeStringC2EaNS_14ConstChar16PtrEi:
  241|  88.6k|                             int32_t textLength) {
  242|  88.6k|  fUnion.fFields.fLengthAndFlags = kReadonlyAlias;
  243|  88.6k|  const char16_t *text = textPtr;
  244|  88.6k|  if(text == nullptr) {
  ------------------
  |  Branch (244:6): [True: 0, False: 88.6k]
  ------------------
  245|       |    // treat as an empty string, do not alias
  246|      0|    setToEmpty();
  247|  88.6k|  } else if(textLength < -1 ||
  ------------------
  |  Branch (247:13): [True: 0, False: 88.6k]
  ------------------
  248|  88.6k|            (textLength == -1 && !isTerminated) ||
  ------------------
  |  Branch (248:14): [True: 292, False: 88.4k]
  |  Branch (248:34): [True: 0, False: 292]
  ------------------
  249|  88.6k|            (textLength >= 0 && isTerminated && text[textLength] != 0)
  ------------------
  |  Branch (249:14): [True: 88.4k, False: 292]
  |  Branch (249:33): [True: 2.26k, False: 86.1k]
  |  Branch (249:49): [True: 0, False: 2.26k]
  ------------------
  250|  88.6k|  ) {
  251|      0|    setToBogus();
  252|  88.6k|  } else {
  253|  88.6k|    if(textLength == -1) {
  ------------------
  |  Branch (253:8): [True: 292, False: 88.4k]
  ------------------
  254|       |      // text is terminated, or else it would have failed the above test
  255|    292|      textLength = u_strlen(text);
  ------------------
  |  |  393|    292|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|    292|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    292|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    292|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  256|    292|    }
  257|  88.6k|    setArray(const_cast<char16_t *>(text), textLength,
  258|  88.6k|             isTerminated ? textLength + 1 : textLength);
  ------------------
  |  Branch (258:14): [True: 2.56k, False: 86.1k]
  ------------------
  259|  88.6k|  }
  260|  88.6k|}
_ZN6icu_7813UnicodeStringC2EPKciNS0_10EInvariantE:
  284|  2.36k|UnicodeString::UnicodeString(const char *src, int32_t length, EInvariant) {
  285|  2.36k|  fUnion.fFields.fLengthAndFlags = kShortString;
  286|  2.36k|  if(src==nullptr) {
  ------------------
  |  Branch (286:6): [True: 0, False: 2.36k]
  ------------------
  287|       |    // treat as an empty string
  288|  2.36k|  } else {
  289|  2.36k|    if(length<0) {
  ------------------
  |  Branch (289:8): [True: 2.36k, False: 0]
  ------------------
  290|  2.36k|      length = static_cast<int32_t>(uprv_strlen(src));
  ------------------
  |  |   37|  2.36k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  2.36k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  291|  2.36k|    }
  292|  2.36k|    if(cloneArrayIfNeeded(length, length, false)) {
  ------------------
  |  Branch (292:8): [True: 2.36k, False: 0]
  ------------------
  293|  2.36k|      u_charsToUChars(src, getArrayStart(), length);
  ------------------
  |  |  226|  2.36k|#define u_charsToUChars U_ICU_ENTRY_POINT_RENAME(u_charsToUChars)
  |  |  ------------------
  |  |  |  |  123|  2.36k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.36k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.36k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  294|  2.36k|      setLength(length);
  295|  2.36k|    } else {
  296|      0|      setToBogus();
  297|      0|    }
  298|  2.36k|  }
  299|  2.36k|}
_ZN6icu_7813UnicodeStringC2ERKS0_:
  345|  5.06k|UnicodeString::UnicodeString(const UnicodeString& that) {
  346|  5.06k|  fUnion.fFields.fLengthAndFlags = kShortString;
  347|  5.06k|  copyFrom(that);
  348|  5.06k|}
_ZN6icu_7813UnicodeString8allocateEi:
  409|  37.4k|UnicodeString::allocate(int32_t capacity) {
  410|  37.4k|  if(capacity <= US_STACKBUF_SIZE) {
  ------------------
  |  Branch (410:6): [True: 30.0k, False: 7.37k]
  ------------------
  411|  30.0k|    fUnion.fFields.fLengthAndFlags = kShortString;
  412|  30.0k|    return true;
  413|  30.0k|  }
  414|  7.37k|  if(capacity <= kMaxCapacity) {
  ------------------
  |  Branch (414:6): [True: 7.37k, False: 0]
  ------------------
  415|  7.37k|    ++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|  7.37k|    size_t numBytes = sizeof(int32_t) + static_cast<size_t>(capacity) * U_SIZEOF_UCHAR;
  ------------------
  |  |  352|  7.37k|#define U_SIZEOF_UCHAR 2
  ------------------
  419|       |    // Round up to a multiple of 16.
  420|  7.37k|    numBytes = (numBytes + 15) & ~15;
  421|  7.37k|    int32_t* array = static_cast<int32_t*>(uprv_malloc(numBytes));
  ------------------
  |  | 1524|  7.37k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  7.37k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  7.37k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  7.37k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  422|  7.37k|    if(array != nullptr) {
  ------------------
  |  Branch (422:8): [True: 7.37k, False: 0]
  ------------------
  423|       |      // set initial refCount and point behind the refCount
  424|  7.37k|      *array++ = 1;
  425|  7.37k|      numBytes -= sizeof(int32_t);
  426|       |
  427|       |      // have fArray point to the first char16_t
  428|  7.37k|      fUnion.fFields.fArray = reinterpret_cast<char16_t*>(array);
  429|  7.37k|      fUnion.fFields.fCapacity = static_cast<int32_t>(numBytes / U_SIZEOF_UCHAR);
  ------------------
  |  |  352|  7.37k|#define U_SIZEOF_UCHAR 2
  ------------------
  430|  7.37k|      fUnion.fFields.fLengthAndFlags = kLongString;
  431|  7.37k|      return true;
  432|  7.37k|    }
  433|  7.37k|  }
  434|      0|  fUnion.fFields.fLengthAndFlags = kIsBogus;
  435|      0|  fUnion.fFields.fArray = nullptr;
  436|      0|  fUnion.fFields.fCapacity = 0;
  437|      0|  return false;
  438|  7.37k|}
_ZN6icu_7813UnicodeStringD2Ev:
  462|   137k|{
  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|   137k|  releaseArray();
  478|   137k|}
_ZN6icu_7813UnicodeString8copyFromERKS0_a:
  537|  5.06k|UnicodeString::copyFrom(const UnicodeString &src, UBool fastCopy) {
  538|       |  // if assigning to ourselves, do nothing
  539|  5.06k|  if(this == &src) {
  ------------------
  |  Branch (539:6): [True: 0, False: 5.06k]
  ------------------
  540|      0|    return *this;
  541|      0|  }
  542|       |
  543|       |  // is the right side bogus?
  544|  5.06k|  if(src.isBogus()) {
  ------------------
  |  Branch (544:6): [True: 0, False: 5.06k]
  ------------------
  545|      0|    setToBogus();
  546|      0|    return *this;
  547|      0|  }
  548|       |
  549|       |  // delete the current contents
  550|  5.06k|  releaseArray();
  551|       |
  552|  5.06k|  if(src.isEmpty()) {
  ------------------
  |  Branch (552:6): [True: 632, False: 4.43k]
  ------------------
  553|       |    // empty string - use the stack buffer
  554|    632|    setToEmpty();
  555|    632|    return *this;
  556|    632|  }
  557|       |
  558|       |  // fLength>0 and not an "open" src.getBuffer(minCapacity)
  559|  4.43k|  fUnion.fFields.fLengthAndFlags = src.fUnion.fFields.fLengthAndFlags;
  560|  4.43k|  switch(src.fUnion.fFields.fLengthAndFlags & kAllStorageFlags) {
  561|    497|  case kShortString:
  ------------------
  |  Branch (561:3): [True: 497, False: 3.93k]
  ------------------
  562|       |    // short string using the stack buffer, do the same
  563|    497|    uprv_memcpy(fUnion.fStackFields.fBuffer, src.fUnion.fStackFields.fBuffer,
  ------------------
  |  |   42|    497|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    497|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    497|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    497|    _Pragma("clang diagnostic push") \
  |  |   45|    497|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    497|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    497|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    497|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    497|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    497|    _Pragma("clang diagnostic pop") \
  |  |   49|    497|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    497|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    497|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    497|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  564|    497|                getShortLength() * U_SIZEOF_UCHAR);
  565|    497|    break;
  566|      0|  case kLongString:
  ------------------
  |  Branch (566:3): [True: 0, False: 4.43k]
  ------------------
  567|       |    // src uses a refCounted string buffer, use that buffer with refCount
  568|       |    // src is const, use a cast - we don't actually change it
  569|      0|    const_cast<UnicodeString &>(src).addRef();
  570|       |    // copy all fields, share the reference-counted buffer
  571|      0|    fUnion.fFields.fArray = src.fUnion.fFields.fArray;
  572|      0|    fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity;
  573|      0|    if(!hasShortLength()) {
  ------------------
  |  Branch (573:8): [True: 0, False: 0]
  ------------------
  574|      0|      fUnion.fFields.fLength = src.fUnion.fFields.fLength;
  575|      0|    }
  576|      0|    break;
  577|  3.93k|  case kReadonlyAlias:
  ------------------
  |  Branch (577:3): [True: 3.93k, False: 497]
  ------------------
  578|  3.93k|    if(fastCopy) {
  ------------------
  |  Branch (578:8): [True: 0, False: 3.93k]
  ------------------
  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|  3.93k|    U_FALLTHROUGH;
  ------------------
  |  |  511|  3.93k|#       define U_FALLTHROUGH [[clang::fallthrough]]
  ------------------
  591|  3.93k|  case kWritableAlias: {
  ------------------
  |  Branch (591:3): [True: 0, False: 4.43k]
  ------------------
  592|       |    // src is a writable alias; we make a copy of that instead
  593|  3.93k|    int32_t srcLength = src.length();
  594|  3.93k|    if(allocate(srcLength)) {
  ------------------
  |  Branch (594:8): [True: 3.93k, False: 0]
  ------------------
  595|  3.93k|      u_memcpy(getArrayStart(), src.getArrayStart(), srcLength);
  ------------------
  |  |  334|  3.93k|#define u_memcpy U_ICU_ENTRY_POINT_RENAME(u_memcpy)
  |  |  ------------------
  |  |  |  |  123|  3.93k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.93k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.93k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  596|  3.93k|      setLength(srcLength);
  597|  3.93k|      break;
  598|  3.93k|    }
  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: 4.43k]
  ------------------
  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|  4.43k|  }
  610|       |
  611|  4.43k|  return *this;
  612|  4.43k|}
_ZN6icu_7813UnicodeStringaSEOS0_:
  614|  1.98k|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|  1.98k|  releaseArray();
  618|  1.98k|  copyFieldsFrom(src, true);
  619|  1.98k|  return *this;
  620|  1.98k|}
_ZN6icu_7813UnicodeString14copyFieldsFromERS0_a:
  623|  1.98k|void UnicodeString::copyFieldsFrom(UnicodeString &src, UBool setSrcToBogus) noexcept {
  624|  1.98k|  int16_t lengthAndFlags = fUnion.fFields.fLengthAndFlags = src.fUnion.fFields.fLengthAndFlags;
  625|  1.98k|  if(lengthAndFlags & kUsingStackBuffer) {
  ------------------
  |  Branch (625:6): [True: 0, False: 1.98k]
  ------------------
  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|      0|    if(this != &src) {
  ------------------
  |  Branch (629:8): [True: 0, False: 0]
  ------------------
  630|      0|      uprv_memcpy(fUnion.fStackFields.fBuffer, src.fUnion.fStackFields.fBuffer,
  ------------------
  |  |   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]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  631|      0|                  getShortLength() * U_SIZEOF_UCHAR);
  632|      0|    }
  633|  1.98k|  } else {
  634|       |    // In all other cases, copy all fields.
  635|  1.98k|    fUnion.fFields.fArray = src.fUnion.fFields.fArray;
  636|  1.98k|    fUnion.fFields.fCapacity = src.fUnion.fFields.fCapacity;
  637|  1.98k|    if(!hasShortLength()) {
  ------------------
  |  Branch (637:8): [True: 0, False: 1.98k]
  ------------------
  638|      0|      fUnion.fFields.fLength = src.fUnion.fFields.fLength;
  639|      0|    }
  640|  1.98k|    if(setSrcToBogus) {
  ------------------
  |  Branch (640:8): [True: 1.98k, False: 0]
  ------------------
  641|       |      // Set src to bogus without releasing any memory.
  642|  1.98k|      src.fUnion.fFields.fLengthAndFlags = kIsBogus;
  643|  1.98k|      src.fUnion.fFields.fArray = nullptr;
  644|  1.98k|      src.fUnion.fFields.fCapacity = 0;
  645|  1.98k|    }
  646|  1.98k|  }
  647|  1.98k|}
_ZNK6icu_7813UnicodeString8doEqualsEPKDsi:
  698|  2.18k|UnicodeString::doEquals(const char16_t *text, int32_t len) const {
  699|       |  // Requires: this not bogus and have same lengths.
  700|       |  // Byte-wise comparison works for equality regardless of endianness.
  701|  2.18k|  return uprv_memcmp(getArrayStart(), text, len * U_SIZEOF_UCHAR) == 0;
  ------------------
  |  |  101|  2.18k|#define uprv_memcmp(buffer1, buffer2, size) U_STANDARD_CPP_NAMESPACE memcmp(buffer1, buffer2,size)
  |  |  ------------------
  |  |  |  |  393|  2.18k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  702|  2.18k|}
_ZNK6icu_7813UnicodeString8char32AtEi:
  871|  1.51k|{
  872|  1.51k|  int32_t len = length();
  873|  1.51k|  if (static_cast<uint32_t>(offset) < static_cast<uint32_t>(len)) {
  ------------------
  |  Branch (873:7): [True: 1.51k, False: 0]
  ------------------
  874|  1.51k|    const char16_t *array = getArrayStart();
  875|  1.51k|    UChar32 c;
  876|  1.51k|    U16_GET(array, 0, offset, len, c);
  ------------------
  |  |  201|  1.51k|#define U16_GET(s, start, i, length, c) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  1.51k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |  202|  1.51k|    (c)=(s)[i]; \
  |  |  203|  1.51k|    if(U16_IS_SURROGATE(c)) { \
  |  |  ------------------
  |  |  |  |   75|  1.51k|#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
  |  |  |  |  ------------------
  |  |  |  |  |  |  193|  1.51k|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  Branch (193:27): [True: 576, False: 936]
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  204|    576|        uint16_t __c2; \
  |  |  205|    576|        if(U16_IS_SURROGATE_LEAD(c)) { \
  |  |  ------------------
  |  |  |  |   84|    576|#define U16_IS_SURROGATE_LEAD(c) (((c)&0x400)==0)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (84:34): [True: 534, False: 42]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  206|    534|            if((i)+1!=(length) && U16_IS_TRAIL(__c2=(s)[(i)+1])) { \
  |  |  ------------------
  |  |  |  |   67|    426|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (67:25): [True: 348, False: 78]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  |  Branch (206:16): [True: 426, False: 108]
  |  |  ------------------
  |  |  207|    348|                (c)=U16_GET_SUPPLEMENTARY((c), __c2); \
  |  |  ------------------
  |  |  |  |  113|    348|    (((UChar32)(lead)<<10UL)+(UChar32)(trail)-U16_SURROGATE_OFFSET)
  |  |  |  |  ------------------
  |  |  |  |  |  |   99|    348|#define U16_SURROGATE_OFFSET ((0xd800<<10UL)+0xdc00-0x10000)
  |  |  |  |  ------------------
  |  |  ------------------
  |  |  208|    348|            } \
  |  |  209|    534|        } else { \
  |  |  210|     42|            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: 42]
  |  |  ------------------
  |  |  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|     42|        } \
  |  |  214|    576|    } \
  |  |  215|  1.51k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  1.51k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  877|  1.51k|    return c;
  878|  1.51k|  } else {
  879|      0|    return kInvalidUChar;
  880|      0|  }
  881|  1.51k|}
_ZNK6icu_7813UnicodeString7extractEiiPciNS0_10EInvariantE:
  981|    280|{
  982|       |  // if the arguments are illegal, then do nothing
  983|    280|  if(targetCapacity < 0 || (targetCapacity > 0 && target == nullptr)) {
  ------------------
  |  Branch (983:6): [True: 0, False: 280]
  |  Branch (983:29): [True: 280, False: 0]
  |  Branch (983:51): [True: 0, False: 280]
  ------------------
  984|      0|    return 0;
  985|      0|  }
  986|       |
  987|       |  // pin the indices to legal values
  988|    280|  pinIndices(start, length);
  989|       |
  990|    280|  if(length <= targetCapacity) {
  ------------------
  |  Branch (990:6): [True: 280, False: 0]
  ------------------
  991|    280|    u_UCharsToChars(getArrayStart() + start, target, length);
  ------------------
  |  |  211|    280|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|    280|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    280|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    280|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  992|    280|  }
  993|    280|  UErrorCode status = U_ZERO_ERROR;
  994|    280|  return u_terminateChars(target, targetCapacity, length, &status);
  ------------------
  |  |  406|    280|#define u_terminateChars U_ICU_ENTRY_POINT_RENAME(u_terminateChars)
  |  |  ------------------
  |  |  |  |  123|    280|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    280|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    280|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  995|    280|}
_ZNK6icu_7813UnicodeString13tempSubStringEii:
  998|  84.9k|UnicodeString::tempSubString(int32_t start, int32_t len) const {
  999|  84.9k|  pinIndices(start, len);
 1000|  84.9k|  const char16_t *array = getBuffer();  // not getArrayStart() to check kIsBogus & kOpenGetBuffer
 1001|  84.9k|  if(array==nullptr) {
  ------------------
  |  Branch (1001:6): [True: 0, False: 84.9k]
  ------------------
 1002|      0|    array=fUnion.fStackFields.fBuffer;  // anything not nullptr because that would make an empty string
 1003|      0|    len=-2;  // bogus result string
 1004|      0|  }
 1005|  84.9k|  return UnicodeString(false, array + start, len);
 1006|  84.9k|}
_ZNK6icu_7813UnicodeString7indexOfEPKDsiiii:
 1112|    280|{
 1113|    280|  if (isBogus() || srcChars == nullptr || srcStart < 0 || srcLength == 0) {
  ------------------
  |  Branch (1113:7): [True: 0, False: 280]
  |  Branch (1113:20): [True: 0, False: 280]
  |  Branch (1113:43): [True: 0, False: 280]
  |  Branch (1113:59): [True: 0, False: 280]
  ------------------
 1114|      0|    return -1;
 1115|      0|  }
 1116|       |
 1117|       |  // UnicodeString does not find empty substrings
 1118|    280|  if(srcLength < 0 && srcChars[srcStart] == 0) {
  ------------------
  |  Branch (1118:6): [True: 0, False: 280]
  |  Branch (1118:23): [True: 0, False: 0]
  ------------------
 1119|      0|    return -1;
 1120|      0|  }
 1121|       |
 1122|       |  // get the indices within bounds
 1123|    280|  pinIndices(start, length);
 1124|       |
 1125|       |  // find the first occurrence of the substring
 1126|    280|  const char16_t *array = getArrayStart();
 1127|    280|  const char16_t *match = u_strFindFirst(array + start, length, srcChars + srcStart, srcLength);
  ------------------
  |  |  361|    280|#define u_strFindFirst U_ICU_ENTRY_POINT_RENAME(u_strFindFirst)
  |  |  ------------------
  |  |  |  |  123|    280|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    280|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    280|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1128|    280|  if(match == nullptr) {
  ------------------
  |  Branch (1128:6): [True: 0, False: 280]
  ------------------
 1129|      0|    return -1;
 1130|    280|  } else {
 1131|    280|    return static_cast<int32_t>(match - array);
 1132|    280|  }
 1133|    280|}
_ZNK6icu_7813UnicodeString9doIndexOfEDsii:
 1139|    280|{
 1140|       |  // pin indices
 1141|    280|  pinIndices(start, length);
 1142|       |
 1143|       |  // find the first occurrence of c
 1144|    280|  const char16_t *array = getArrayStart();
 1145|    280|  const char16_t *match = u_memchr(array + start, c, length);
  ------------------
  |  |  330|    280|#define u_memchr U_ICU_ENTRY_POINT_RENAME(u_memchr)
  |  |  ------------------
  |  |  |  |  123|    280|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    280|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    280|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1146|    280|  if(match == nullptr) {
  ------------------
  |  Branch (1146:6): [True: 0, False: 280]
  ------------------
 1147|      0|    return -1;
 1148|    280|  } else {
 1149|    280|    return static_cast<int32_t>(match - array);
 1150|    280|  }
 1151|    280|}
_ZN6icu_7813UnicodeString7unBogusEv:
 1293|  2.20k|UnicodeString::unBogus() {
 1294|  2.20k|  if(fUnion.fFields.fLengthAndFlags & kIsBogus) {
  ------------------
  |  Branch (1294:6): [True: 0, False: 2.20k]
  ------------------
 1295|      0|    setToEmpty();
 1296|      0|  }
 1297|  2.20k|}
_ZN6icu_7813UnicodeString9setCharAtEiDs:
 1439|  4.38k|{
 1440|  4.38k|  int32_t len = length();
 1441|  4.38k|  if(cloneArrayIfNeeded() && len > 0) {
  ------------------
  |  Branch (1441:6): [True: 4.38k, False: 0]
  |  Branch (1441:30): [True: 4.38k, False: 0]
  ------------------
 1442|  4.38k|    if(offset < 0) {
  ------------------
  |  Branch (1442:8): [True: 0, False: 4.38k]
  ------------------
 1443|      0|      offset = 0;
 1444|  4.38k|    } else if(offset >= len) {
  ------------------
  |  Branch (1444:15): [True: 0, False: 4.38k]
  ------------------
 1445|      0|      offset = len - 1;
 1446|      0|    }
 1447|       |
 1448|  4.38k|    getArrayStart()[offset] = c;
 1449|  4.38k|  }
 1450|  4.38k|  return *this;
 1451|  4.38k|}
_ZN6icu_7813UnicodeString9doReplaceEiiPKDsii:
 1499|  2.20k|{
 1500|  2.20k|  if(!isWritable()) {
  ------------------
  |  Branch (1500:6): [True: 0, False: 2.20k]
  ------------------
 1501|      0|    return *this;
 1502|      0|  }
 1503|       |
 1504|  2.20k|  int32_t oldLength = this->length();
 1505|       |
 1506|       |  // optimize (read-only alias).remove(0, start) and .remove(start, end)
 1507|  2.20k|  if((fUnion.fFields.fLengthAndFlags&kBufferIsReadonly) && srcLength == 0) {
  ------------------
  |  Branch (1507:6): [True: 0, False: 2.20k]
  |  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|  2.20k|  if(start == oldLength) {
  ------------------
  |  Branch (1526:6): [True: 2.20k, False: 0]
  ------------------
 1527|  2.20k|    return doAppend(srcChars, srcStart, srcLength);
 1528|  2.20k|  }
 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_7813UnicodeString8doAppendEPKDsii:
 1643|  55.6k|UnicodeString::doAppend(const char16_t *srcChars, int32_t srcStart, int32_t srcLength) {
 1644|  55.6k|  if(!isWritable() || srcLength == 0 || srcChars == nullptr) {
  ------------------
  |  Branch (1644:6): [True: 0, False: 55.6k]
  |  Branch (1644:23): [True: 2.70k, False: 52.9k]
  |  Branch (1644:41): [True: 0, False: 52.9k]
  ------------------
 1645|  2.70k|    return *this;
 1646|  2.70k|  }
 1647|       |
 1648|       |  // Perform all remaining operations relative to srcChars + srcStart.
 1649|       |  // From this point forward, do not use srcStart.
 1650|  52.9k|  srcChars += srcStart;
 1651|       |
 1652|  52.9k|  if(srcLength < 0) {
  ------------------
  |  Branch (1652:6): [True: 0, False: 52.9k]
  ------------------
 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|  52.9k|  int32_t oldLength = length();
 1660|  52.9k|  int32_t newLength;
 1661|       |
 1662|  52.9k|  if (srcLength <= getCapacity() - oldLength && isBufferWritable()) {
  ------------------
  |  Branch (1662:7): [True: 47.8k, False: 5.13k]
  |  Branch (1662:49): [True: 47.8k, False: 0]
  ------------------
 1663|  47.8k|    newLength = oldLength + srcLength;
 1664|       |    // Faster than a memmove
 1665|  47.8k|    if (srcLength <= 4) {
  ------------------
  |  Branch (1665:9): [True: 40.1k, False: 7.69k]
  ------------------
 1666|  40.1k|      char16_t *arr = getArrayStart();
 1667|  40.1k|      arr[oldLength] = srcChars[0];
 1668|  40.1k|      if (srcLength > 1) arr[oldLength+1] = srcChars[1];
  ------------------
  |  Branch (1668:11): [True: 22.8k, False: 17.2k]
  ------------------
 1669|  40.1k|      if (srcLength > 2) arr[oldLength+2] = srcChars[2];
  ------------------
  |  Branch (1669:11): [True: 8.57k, False: 31.5k]
  ------------------
 1670|  40.1k|      if (srcLength > 3) arr[oldLength+3] = srcChars[3];
  ------------------
  |  Branch (1670:11): [True: 1.66k, False: 38.4k]
  ------------------
 1671|  40.1k|      setLength(newLength);
 1672|  40.1k|      return *this;
 1673|  40.1k|    }
 1674|  47.8k|  } else {
 1675|  5.13k|    if (uprv_add32_overflow(oldLength, srcLength, &newLength)) {
  ------------------
  |  | 1394|  5.13k|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  123|  5.13k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  5.13k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  5.13k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (1675:9): [True: 0, False: 5.13k]
  ------------------
 1676|      0|      setToBogus();
 1677|      0|      return *this;
 1678|      0|    }
 1679|       |
 1680|       |    // Check for append onto ourself
 1681|  5.13k|    const char16_t* oldArray = getArrayStart();
 1682|  5.13k|    if (isBufferWritable() &&
  ------------------
  |  Branch (1682:9): [True: 5.13k, False: 0]
  ------------------
 1683|  5.13k|        oldArray < srcChars + srcLength &&
  ------------------
  |  Branch (1683:9): [True: 0, False: 5.13k]
  ------------------
 1684|  5.13k|        srcChars < oldArray + oldLength) {
  ------------------
  |  Branch (1684:9): [True: 0, False: 0]
  ------------------
 1685|       |      // Copy into a new UnicodeString and start over
 1686|      0|      UnicodeString copy(srcChars, srcLength);
 1687|      0|      if (copy.isBogus()) {
  ------------------
  |  Branch (1687:11): [True: 0, False: 0]
  ------------------
 1688|      0|        setToBogus();
 1689|      0|        return *this;
 1690|      0|      }
 1691|      0|      return doAppend(copy.getArrayStart(), 0, srcLength);
 1692|      0|    }
 1693|       |
 1694|       |    // optimize append() onto a large-enough, owned string
 1695|  5.13k|    if (!cloneArrayIfNeeded(newLength, getGrowCapacity(newLength))) {
  ------------------
  |  Branch (1695:9): [True: 0, False: 5.13k]
  ------------------
 1696|      0|      return *this;
 1697|      0|    }
 1698|  5.13k|  }
 1699|       |
 1700|  12.8k|  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|  12.8k|  if(srcChars != newArray + oldLength) {
  ------------------
  |  Branch (1708:6): [True: 12.8k, False: 0]
  ------------------
 1709|  12.8k|    us_arrayCopy(srcChars, 0, newArray, oldLength, srcLength);
 1710|  12.8k|  }
 1711|  12.8k|  setLength(newLength);
 1712|       |
 1713|  12.8k|  return *this;
 1714|  52.9k|}
_ZNK6icu_7813UnicodeString10doHashCodeEv:
 1864|  3.35k|{
 1865|       |    /* Delegate hash computation to uhash.  This makes UnicodeString
 1866|       |     * hashing consistent with char16_t* hashing.  */
 1867|  3.35k|    int32_t hashCode = ustr_hashUCharsN(getArrayStart(), length());
  ------------------
  |  | 1880|  3.35k|#define ustr_hashUCharsN U_ICU_ENTRY_POINT_RENAME(ustr_hashUCharsN)
  |  |  ------------------
  |  |  |  |  123|  3.35k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.35k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.35k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1868|  3.35k|    if (hashCode == kInvalidHashCode) {
  ------------------
  |  Branch (1868:9): [True: 0, False: 3.35k]
  ------------------
 1869|      0|        hashCode = kEmptyHashCode;
 1870|      0|    }
 1871|  3.35k|    return hashCode;
 1872|  3.35k|}
_ZN6icu_7813UnicodeString18cloneArrayIfNeededEiiaPPia:
 1917|  11.8k|                                  UBool forceClone) {
 1918|       |  // default parameters need to be static, therefore
 1919|       |  // the defaults are -1 to have convenience defaults
 1920|  11.8k|  if(newCapacity == -1) {
  ------------------
  |  Branch (1920:6): [True: 4.38k, False: 7.49k]
  ------------------
 1921|  4.38k|    newCapacity = getCapacity();
 1922|  4.38k|  }
 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|  11.8k|  if(!isWritable()) {
  ------------------
  |  Branch (1927:6): [True: 0, False: 11.8k]
  ------------------
 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|  11.8k|  if(forceClone ||
  ------------------
  |  Branch (1938:6): [True: 0, False: 11.8k]
  ------------------
 1939|  11.8k|     fUnion.fFields.fLengthAndFlags & kBufferIsReadonly ||
  ------------------
  |  Branch (1939:6): [True: 0, False: 11.8k]
  ------------------
 1940|  11.8k|     (fUnion.fFields.fLengthAndFlags & kRefCounted && refCount() > 1) ||
  ------------------
  |  Branch (1940:7): [True: 0, False: 11.8k]
  |  Branch (1940:55): [True: 0, False: 0]
  ------------------
 1941|  11.8k|     newCapacity > getCapacity()
  ------------------
  |  Branch (1941:6): [True: 5.13k, False: 6.74k]
  ------------------
 1942|  11.8k|  ) {
 1943|       |    // check growCapacity for default value and use of the stack buffer
 1944|  5.13k|    if(growCapacity < 0) {
  ------------------
  |  Branch (1944:8): [True: 0, False: 5.13k]
  ------------------
 1945|      0|      growCapacity = newCapacity;
 1946|  5.13k|    } else if(newCapacity <= US_STACKBUF_SIZE && growCapacity > US_STACKBUF_SIZE) {
  ------------------
  |  Branch (1946:15): [True: 0, False: 5.13k]
  |  Branch (1946:50): [True: 0, False: 0]
  ------------------
 1947|      0|      growCapacity = US_STACKBUF_SIZE;
 1948|  5.13k|    } else if(newCapacity > growCapacity) {
  ------------------
  |  Branch (1948:15): [True: 0, False: 5.13k]
  ------------------
 1949|      0|      setToBogus();
 1950|      0|      return false;  // bad inputs
 1951|      0|    }
 1952|  5.13k|    if(growCapacity > kMaxCapacity) {
  ------------------
  |  Branch (1952:8): [True: 0, False: 5.13k]
  ------------------
 1953|      0|      setToBogus();
 1954|      0|      return false;
 1955|      0|    }
 1956|       |
 1957|       |    // save old values
 1958|  5.13k|    char16_t oldStackBuffer[US_STACKBUF_SIZE];
 1959|  5.13k|    char16_t *oldArray;
 1960|  5.13k|    int32_t oldLength = length();
 1961|  5.13k|    int16_t flags = fUnion.fFields.fLengthAndFlags;
 1962|       |
 1963|  5.13k|    if(flags&kUsingStackBuffer) {
  ------------------
  |  Branch (1963:8): [True: 5.13k, False: 0]
  ------------------
 1964|  5.13k|      U_ASSERT(!(flags&kRefCounted)); /* kRefCounted and kUsingStackBuffer are mutally exclusive */
  ------------------
  |  |   35|  5.13k|#   define U_ASSERT(exp) (void)0
  ------------------
 1965|  5.13k|      if(doCopyArray && growCapacity > US_STACKBUF_SIZE) {
  ------------------
  |  Branch (1965:10): [True: 5.13k, False: 0]
  |  Branch (1965:25): [True: 5.13k, False: 0]
  ------------------
 1966|       |        // copy the stack buffer contents because it will be overwritten with
 1967|       |        // fUnion.fFields values
 1968|  5.13k|        us_arrayCopy(fUnion.fStackFields.fBuffer, 0, oldStackBuffer, 0, oldLength);
 1969|  5.13k|        oldArray = oldStackBuffer;
 1970|  5.13k|      } else {
 1971|      0|        oldArray = nullptr; // no need to copy from the stack buffer to itself
 1972|      0|      }
 1973|  5.13k|    } else {
 1974|      0|      oldArray = fUnion.fFields.fArray;
 1975|      0|      U_ASSERT(oldArray!=nullptr); /* when stack buffer is not used, oldArray must have a non-nullptr reference */
  ------------------
  |  |   35|      0|#   define U_ASSERT(exp) (void)0
  ------------------
 1976|      0|    }
 1977|       |
 1978|       |    // allocate a new array
 1979|  5.13k|    if(allocate(growCapacity) ||
  ------------------
  |  Branch (1979:8): [True: 5.13k, False: 0]
  ------------------
 1980|  5.13k|       (newCapacity < growCapacity && allocate(newCapacity))
  ------------------
  |  Branch (1980:9): [True: 0, False: 0]
  |  Branch (1980:39): [True: 0, False: 0]
  ------------------
 1981|  5.13k|    ) {
 1982|  5.13k|      if(doCopyArray) {
  ------------------
  |  Branch (1982:10): [True: 5.13k, False: 0]
  ------------------
 1983|       |        // copy the contents
 1984|       |        // do not copy more than what fits - it may be smaller than before
 1985|  5.13k|        int32_t minLength = oldLength;
 1986|  5.13k|        newCapacity = getCapacity();
 1987|  5.13k|        if(newCapacity < minLength) {
  ------------------
  |  Branch (1987:12): [True: 0, False: 5.13k]
  ------------------
 1988|      0|          minLength = newCapacity;
 1989|      0|        }
 1990|  5.13k|        if(oldArray != nullptr) {
  ------------------
  |  Branch (1990:12): [True: 5.13k, False: 0]
  ------------------
 1991|  5.13k|          us_arrayCopy(oldArray, 0, getArrayStart(), 0, minLength);
 1992|  5.13k|        }
 1993|  5.13k|        setLength(minLength);
 1994|  5.13k|      } else {
 1995|      0|        setZeroLength();
 1996|      0|      }
 1997|       |
 1998|       |      // release the old array
 1999|  5.13k|      if(flags & kRefCounted) {
  ------------------
  |  Branch (1999:10): [True: 0, False: 5.13k]
  ------------------
 2000|       |        // the array is refCounted; decrement and release if 0
 2001|      0|        u_atomic_int32_t* pRefCount = reinterpret_cast<u_atomic_int32_t*>(oldArray) - 1;
 2002|      0|        if(umtx_atomic_dec(pRefCount) == 0) {
  ------------------
  |  Branch (2002:12): [True: 0, False: 0]
  ------------------
 2003|      0|          if (pBufferToDelete == nullptr) {
  ------------------
  |  Branch (2003:15): [True: 0, False: 0]
  ------------------
 2004|       |              // Note: cast to (void *) is needed with MSVC, where u_atomic_int32_t
 2005|       |              // is defined as volatile. (Volatile has useful non-standard behavior
 2006|       |              //   with this compiler.)
 2007|      0|            uprv_free((void *)pRefCount);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2008|      0|          } else {
 2009|       |            // the caller requested to delete it himself
 2010|      0|            *pBufferToDelete = reinterpret_cast<int32_t*>(pRefCount);
 2011|      0|          }
 2012|      0|        }
 2013|      0|      }
 2014|  5.13k|    } 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|  5.13k|  }
 2025|  11.8k|  return true;
 2026|  11.8k|}
_ZN6icu_7823UnicodeStringAppendableD2Ev:
 2030|  11.8k|UnicodeStringAppendable::~UnicodeStringAppendable() {}
_ZN6icu_7823UnicodeStringAppendable12appendStringEPKDsi:
 2047|  11.8k|UnicodeStringAppendable::appendString(const char16_t *s, int32_t length) {
 2048|  11.8k|  return str.doAppend(s, 0, length).isWritable();
 2049|  11.8k|}
uhash_hashUnicodeString_78:
 2081|  3.35k|uhash_hashUnicodeString(const UElement key) {
 2082|  3.35k|    const UnicodeString *str = (const UnicodeString*) key.pointer;
 2083|  3.35k|    return (str == nullptr) ? 0 : str->hashCode();
  ------------------
  |  Branch (2083:12): [True: 0, False: 3.35k]
  ------------------
 2084|  3.35k|}
uhash_compareUnicodeString_78:
 2089|  1.86k|uhash_compareUnicodeString(const UElement key1, const UElement key2) {
 2090|  1.86k|    const UnicodeString *str1 = (const UnicodeString*) key1.pointer;
 2091|  1.86k|    const UnicodeString *str2 = (const UnicodeString*) key2.pointer;
 2092|  1.86k|    if (str1 == str2) {
  ------------------
  |  Branch (2092:9): [True: 0, False: 1.86k]
  ------------------
 2093|      0|        return true;
 2094|      0|    }
 2095|  1.86k|    if (str1 == nullptr || str2 == nullptr) {
  ------------------
  |  Branch (2095:9): [True: 0, False: 1.86k]
  |  Branch (2095:28): [True: 0, False: 1.86k]
  ------------------
 2096|      0|        return false;
 2097|      0|    }
 2098|  1.86k|    return *str1 == *str2;
 2099|  1.86k|}
unistr.cpp:_ZL12us_arrayCopyPKDsiPDsii:
   87|  23.0k|{
   88|  23.0k|  if(count>0) {
  ------------------
  |  Branch (88:6): [True: 12.8k, False: 10.2k]
  ------------------
   89|  12.8k|    uprv_memmove(dst+dstStart, src+srcStart, (size_t)count*sizeof(*src));
  ------------------
  |  |   51|  12.8k|#define uprv_memmove(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  12.8k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   52|  12.8k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   53|  12.8k|    _Pragma("clang diagnostic push") \
  |  |   54|  12.8k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   55|  12.8k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  12.8k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   56|  12.8k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  12.8k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   57|  12.8k|    _Pragma("clang diagnostic pop") \
  |  |   58|  12.8k|    U_STANDARD_CPP_NAMESPACE memmove(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  12.8k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   59|  12.8k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  12.8k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   90|  12.8k|  }
   91|  23.0k|}
unistr.cpp:_ZN6icu_7812_GLOBAL__N_115getGrowCapacityEi:
  397|  5.13k|int32_t getGrowCapacity(int32_t newLength) {
  398|  5.13k|  int32_t growSize = (newLength >> 2) + kGrowSize;
  399|  5.13k|  if(growSize <= (kMaxCapacity - newLength)) {
  ------------------
  |  Branch (399:6): [True: 5.13k, False: 0]
  ------------------
  400|  5.13k|    return newLength + growSize;
  401|  5.13k|  } else {
  402|      0|    return kMaxCapacity;
  403|      0|  }
  404|  5.13k|}

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

ures_initStackObject_78:
  726|  1.86k|U_CFUNC void ures_initStackObject(UResourceBundle* resB) {
  727|  1.86k|  uprv_memset(resB, 0, sizeof(UResourceBundle));
  ------------------
  |  |  100|  1.86k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  1.86k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  728|  1.86k|  ures_setIsStackObject(resB, true);
  729|  1.86k|}
_ZN6icu_7820StackUResourceBundleC2Ev:
  733|  1.86k|StackUResourceBundle::StackUResourceBundle() {
  734|  1.86k|    ures_initStackObject(&bundle);
  ------------------
  |  | 1690|  1.86k|#define ures_initStackObject U_ICU_ENTRY_POINT_RENAME(ures_initStackObject)
  |  |  ------------------
  |  |  |  |  123|  1.86k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.86k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.86k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  735|  1.86k|}
_ZN6icu_7820StackUResourceBundleD2Ev:
  737|  1.86k|StackUResourceBundle::~StackUResourceBundle() {
  738|  1.86k|    ures_close(&bundle);
  ------------------
  |  | 1652|  1.86k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  1.86k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.86k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.86k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  739|  1.86k|}
ures_close_78:
 1147|  5.47k|{
 1148|  5.47k|    ures_closeBundle(resB, true);
 1149|  5.47k|}
ures_getKey_78:
 1685|  1.29k|U_CAPI const char * U_EXPORT2 ures_getKey(const UResourceBundle *resB) {
 1686|       |  //
 1687|       |  // TODO: Trace ures_getKey? I guess not usually.
 1688|       |  //
 1689|       |  // We usually get the key string to decide whether we want the value, or to
 1690|       |  // make a key-value pair. Tracing the value should suffice.
 1691|       |  //
 1692|       |  // However, I believe we have some data (e.g., in res_index) where the key
 1693|       |  // strings are the data. Tracing the enclosing table should suffice.
 1694|       |  //
 1695|  1.29k|  if(resB == nullptr) {
  ------------------
  |  Branch (1695:6): [True: 0, False: 1.29k]
  ------------------
 1696|      0|    return nullptr;
 1697|      0|  }
 1698|  1.29k|  return(resB->fKey);
 1699|  1.29k|}
ures_getSize_78:
 1701|      5|U_CAPI int32_t U_EXPORT2 ures_getSize(const UResourceBundle *resB) {
 1702|      5|  if(resB == nullptr) {
  ------------------
  |  Branch (1702:6): [True: 0, False: 5]
  ------------------
 1703|      0|    return 0;
 1704|      0|  }
 1705|       |  
 1706|      5|  return resB->fSize;
 1707|      5|}
ures_hasNext_78:
 1728|  1.29k|U_CAPI UBool U_EXPORT2 ures_hasNext(const UResourceBundle *resB) {
 1729|  1.29k|  if(resB == nullptr) {
  ------------------
  |  Branch (1729:6): [True: 0, False: 1.29k]
  ------------------
 1730|      0|    return false;
 1731|      0|  }
 1732|  1.29k|  return resB->fIndex < resB->fSize-1;
 1733|  1.29k|}
ures_getNextResource_78:
 1784|  1.29k|U_CAPI UResourceBundle* U_EXPORT2 ures_getNextResource(UResourceBundle *resB, UResourceBundle *fillIn, UErrorCode *status) {
 1785|  1.29k|    const char *key = nullptr;
 1786|  1.29k|    Resource r = RES_BOGUS;
  ------------------
  |  |   65|  1.29k|#define RES_BOGUS 0xffffffff
  ------------------
 1787|       |
 1788|  1.29k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1788:9): [True: 0, False: 1.29k]
  |  Branch (1788:28): [True: 0, False: 1.29k]
  ------------------
 1789|       |            /*return nullptr;*/
 1790|      0|            return fillIn;
 1791|      0|    }
 1792|  1.29k|    if(resB == nullptr) {
  ------------------
  |  Branch (1792:8): [True: 0, False: 1.29k]
  ------------------
 1793|      0|            *status = U_ILLEGAL_ARGUMENT_ERROR;
 1794|       |            /*return nullptr;*/
 1795|      0|            return fillIn;
 1796|      0|    }
 1797|       |
 1798|  1.29k|    if(resB->fIndex == resB->fSize-1) {
  ------------------
  |  Branch (1798:8): [True: 0, False: 1.29k]
  ------------------
 1799|      0|      *status = U_INDEX_OUTOFBOUNDS_ERROR;
 1800|       |      /*return nullptr;*/
 1801|  1.29k|    } else {
 1802|  1.29k|        resB->fIndex++;
 1803|  1.29k|        switch(RES_GET_TYPE(resB->fRes)) {
  ------------------
  |  |   68|  1.29k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 1804|      0|        case URES_INT:
  ------------------
  |  Branch (1804:9): [True: 0, False: 1.29k]
  ------------------
 1805|      0|        case URES_BINARY:
  ------------------
  |  Branch (1805:9): [True: 0, False: 1.29k]
  ------------------
 1806|      0|        case URES_STRING:
  ------------------
  |  Branch (1806:9): [True: 0, False: 1.29k]
  ------------------
 1807|      0|        case URES_STRING_V2:
  ------------------
  |  Branch (1807:9): [True: 0, False: 1.29k]
  ------------------
 1808|      0|        case URES_INT_VECTOR:
  ------------------
  |  Branch (1808:9): [True: 0, False: 1.29k]
  ------------------
 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: 0]
  ------------------
 1811|  1.29k|        case URES_TABLE16:
  ------------------
  |  Branch (1811:9): [True: 0, False: 1.29k]
  ------------------
 1812|  1.29k|        case URES_TABLE32:
  ------------------
  |  Branch (1812:9): [True: 0, False: 1.29k]
  ------------------
 1813|  1.29k|            r = res_getTableItemByIndex(&resB->getResData(), resB->fRes, resB->fIndex, &key);
  ------------------
  |  |  206|  1.29k|#define res_getTableItemByIndex U_ICU_ENTRY_POINT_RENAME(res_getTableItemByIndex)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1814|  1.29k|            if(r == RES_BOGUS && resB->fHasFallback) {
  ------------------
  |  |   65|  2.58k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (1814:16): [True: 0, False: 1.29k]
  |  Branch (1814:34): [True: 0, False: 0]
  ------------------
 1815|       |                /* TODO: do the fallback */
 1816|      0|            }
 1817|  1.29k|            return init_resb_result(resB->fData, r, key, resB->fIndex, resB, fillIn, status);
 1818|      0|        case URES_ARRAY:
  ------------------
  |  Branch (1818:9): [True: 0, False: 1.29k]
  ------------------
 1819|      0|        case URES_ARRAY16:
  ------------------
  |  Branch (1819:9): [True: 0, False: 1.29k]
  ------------------
 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: 1.29k]
  ------------------
 1826|       |            /*return nullptr;*/
 1827|      0|            return fillIn;
 1828|  1.29k|        }
 1829|  1.29k|    }
 1830|       |    /*return nullptr;*/
 1831|      0|    return fillIn;
 1832|  1.29k|}
ures_getByKeyWithFallback_78:
 2164|  1.81k|                          UErrorCode *status) {
 2165|  1.81k|    Resource res = RES_BOGUS, rootRes = RES_BOGUS;
  ------------------
  |  |   65|  1.81k|#define RES_BOGUS 0xffffffff
  ------------------
                  Resource res = RES_BOGUS, rootRes = RES_BOGUS;
  ------------------
  |  |   65|  1.81k|#define RES_BOGUS 0xffffffff
  ------------------
 2166|  1.81k|    UResourceBundle *helper = nullptr;
 2167|       |
 2168|  1.81k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (2168:9): [True: 0, False: 1.81k]
  |  Branch (2168:28): [True: 0, False: 1.81k]
  ------------------
 2169|      0|        return fillIn;
 2170|      0|    }
 2171|  1.81k|    if(resB == nullptr) {
  ------------------
  |  Branch (2171:8): [True: 0, False: 1.81k]
  ------------------
 2172|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 2173|      0|        return fillIn;
 2174|      0|    }
 2175|       |
 2176|  1.81k|    int32_t type = RES_GET_TYPE(resB->fRes);
  ------------------
  |  |   68|  1.81k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2177|  1.81k|    if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|  1.81k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 1.78k, False: 30]
  |  |  |  Branch (84:61): [True: 30, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2178|  1.81k|        const char* origResPath = resB->fResPath;
 2179|  1.81k|        int32_t origResPathLen = resB->fResPathLen;
 2180|  1.81k|        res = getTableItemByKeyPath(&resB->getResData(), resB->fRes, inKey);
 2181|  1.81k|        const char* key = inKey;
 2182|  1.81k|        bool didRootOnce = false;
 2183|  1.81k|        if(res == RES_BOGUS) {
  ------------------
  |  |   65|  1.81k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2183:12): [True: 651, False: 1.16k]
  ------------------
 2184|    651|            UResourceDataEntry *dataEntry = resB->fData;
 2185|    651|            CharString path;
 2186|    651|            char *myPath = nullptr;
 2187|    651|            const char* resPath = resB->fResPath;
 2188|    651|            int32_t len = resB->fResPathLen;
 2189|  1.50k|            while(res == RES_BOGUS && (dataEntry->fParent != nullptr || !didRootOnce)) { /* Otherwise, we'll look in parents */
  ------------------
  |  |   65|  3.00k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2189:19): [True: 853, False: 651]
  |  Branch (2189:40): [True: 853, False: 0]
  |  Branch (2189:73): [True: 0, False: 0]
  ------------------
 2190|    853|                if (dataEntry->fParent != nullptr) {
  ------------------
  |  Branch (2190:21): [True: 853, False: 0]
  ------------------
 2191|    853|                    dataEntry = dataEntry->fParent;
 2192|    853|                } 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|      0|                    didRootOnce = true;
 2199|      0|                }
 2200|    853|                rootRes = dataEntry->fData.rootRes;
 2201|       |
 2202|    853|                if(dataEntry->fBogus == U_ZERO_ERROR) {
  ------------------
  |  Branch (2202:20): [True: 853, False: 0]
  ------------------
 2203|    853|                    createPath(origResPath, origResPathLen, resPath, len, inKey, path, status);
 2204|    853|                    if (U_FAILURE(*status)) {
  ------------------
  |  Branch (2204:25): [True: 0, False: 853]
  ------------------
 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|    853|                    myPath = path.data();
 2209|    853|                    key = inKey;
 2210|    853|                    do {
 2211|    853|                        res = res_findResource(&(dataEntry->fData), rootRes, &myPath, &key);
  ------------------
  |  |  198|    853|#define res_findResource U_ICU_ENTRY_POINT_RENAME(res_findResource)
  |  |  ------------------
  |  |  |  |  123|    853|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    853|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    853|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2212|    853|                        if (RES_GET_TYPE(res) == URES_ALIAS && *myPath) {
  ------------------
  |  |   68|    853|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (2212:29): [True: 0, False: 853]
  |  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|    853|                        } else if (res == RES_BOGUS) {
  ------------------
  |  |   65|    853|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2225:36): [True: 202, False: 651]
  ------------------
 2226|    202|                            break;
 2227|    202|                        }
 2228|    853|                    } while(*myPath); /* Continue until the whole path is consumed */
  ------------------
  |  Branch (2228:29): [True: 0, False: 651]
  ------------------
 2229|    853|                }
 2230|    853|            }
 2231|       |            /*dataEntry = getFallbackData(resB, &key, &res, status);*/
 2232|    651|            if(res != RES_BOGUS) {
  ------------------
  |  |   65|    651|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2232:16): [True: 651, False: 0]
  ------------------
 2233|       |              /* check if resB->fResPath gives the right name here */
 2234|    651|                if(uprv_strcmp(dataEntry->fName, uloc_getDefault())==0 || uprv_strcmp(dataEntry->fName, kRootLocaleName)==0) {
  ------------------
  |  |   38|    651|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    651|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                              if(uprv_strcmp(dataEntry->fName, uloc_getDefault())==0 || uprv_strcmp(dataEntry->fName, kRootLocaleName)==0) {
  ------------------
  |  |   38|    651|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    651|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (2234:20): [True: 0, False: 651]
  |  Branch (2234:75): [True: 261, False: 390]
  ------------------
 2235|    261|                    *status = U_USING_DEFAULT_WARNING;
 2236|    390|                } else {
 2237|    390|                    *status = U_USING_FALLBACK_WARNING;
 2238|    390|                }
 2239|       |
 2240|    651|                fillIn = init_resb_result(dataEntry, res, key, -1, resB, fillIn, status);
 2241|    651|                if (resPath != nullptr) {
  ------------------
  |  Branch (2241:21): [True: 249, False: 402]
  ------------------
 2242|    249|                    createPath(origResPath, origResPathLen, resPath, len, inKey, path, status);
 2243|    402|                } else {
 2244|    402|                    const char* separator = nullptr;
 2245|    402|                    if (fillIn->fResPath != nullptr) {
  ------------------
  |  Branch (2245:25): [True: 402, False: 0]
  ------------------
 2246|    402|                        separator = uprv_strchr(fillIn->fResPath, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|    402|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|    402|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2247|    402|                    }
 2248|    402|                    if (separator != nullptr && separator[1] != '\0') {
  ------------------
  |  Branch (2248:25): [True: 402, False: 0]
  |  Branch (2248:49): [True: 0, False: 402]
  ------------------
 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|    402|                    } else {
 2252|    402|                        createPath(origResPath, origResPathLen, "", 0, inKey, path, status);
 2253|    402|                    }
 2254|    402|                }
 2255|    651|                ures_freeResPath(fillIn);
 2256|    651|                ures_appendResPath(fillIn, path.data(), path.length(), status);
 2257|    651|                if(fillIn->fResPath[fillIn->fResPathLen-1] != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|    651|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2257:20): [True: 638, False: 13]
  ------------------
 2258|    638|                    ures_appendResPath(fillIn, RES_PATH_SEPARATOR_S, 1, status);
  ------------------
  |  |   61|    638|#define RES_PATH_SEPARATOR_S   "/"
  ------------------
 2259|    638|                }
 2260|    651|            } else {
 2261|      0|                *status = U_MISSING_RESOURCE_ERROR;
 2262|      0|            }
 2263|  1.16k|        } else {
 2264|  1.16k|            fillIn = init_resb_result(resB->fData, res, key, -1, resB, fillIn, status);
 2265|  1.16k|        }
 2266|  1.81k|    } 
 2267|      0|    else {
 2268|      0|        *status = U_RESOURCE_TYPE_MISMATCH;
 2269|      0|    }
 2270|  1.81k|    ures_close(helper);
  ------------------
  |  | 1652|  1.81k|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|  1.81k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.81k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.81k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2271|  1.81k|    return fillIn;
 2272|  1.81k|}
ures_getAllItemsWithFallback_78:
 2471|    778|                             icu::ResourceSink &sink, UErrorCode &errorCode) {
 2472|    778|    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (2472:9): [True: 0, False: 778]
  ------------------
 2473|    778|    if (path == nullptr) {
  ------------------
  |  Branch (2473:9): [True: 0, False: 778]
  ------------------
 2474|      0|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
 2475|      0|        return;
 2476|      0|    }
 2477|    778|    StackUResourceBundle stackBundle;
 2478|    778|    const UResourceBundle *rb;
 2479|    778|    if (*path == 0) {
  ------------------
  |  Branch (2479:9): [True: 1, False: 777]
  ------------------
 2480|       |        // empty path
 2481|      1|        rb = bundle;
 2482|    777|    } else {
 2483|    777|        rb = ures_getByKeyWithFallback(bundle, path, stackBundle.getAlias(), &errorCode);
  ------------------
  |  | 1662|    777|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|    777|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    777|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    777|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2484|    777|        if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (2484:13): [True: 0, False: 777]
  ------------------
 2485|      0|            return;
 2486|      0|        }
 2487|    777|    }
 2488|       |    // Get all table items with fallback.
 2489|    778|    ResourceDataValue value;
 2490|    778|    getAllItemsWithFallback(rb, value, sink, errorCode);
 2491|    778|}
ures_getByKey_78:
 2493|      6|U_CAPI UResourceBundle* U_EXPORT2 ures_getByKey(const UResourceBundle *resB, const char* inKey, UResourceBundle *fillIn, UErrorCode *status) {
 2494|      6|    Resource res = RES_BOGUS;
  ------------------
  |  |   65|      6|#define RES_BOGUS 0xffffffff
  ------------------
 2495|      6|    UResourceDataEntry *dataEntry = nullptr;
 2496|      6|    const char *key = inKey;
 2497|       |
 2498|      6|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (2498:9): [True: 0, False: 6]
  |  Branch (2498:28): [True: 0, False: 6]
  ------------------
 2499|      0|        return fillIn;
 2500|      0|    }
 2501|      6|    if(resB == nullptr) {
  ------------------
  |  Branch (2501:8): [True: 0, False: 6]
  ------------------
 2502|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 2503|      0|        return fillIn;
 2504|      0|    }
 2505|       |
 2506|      6|    int32_t type = RES_GET_TYPE(resB->fRes);
  ------------------
  |  |   68|      6|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2507|      6|    if(URES_IS_TABLE(type)) {
  ------------------
  |  |   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]
  |  |  ------------------
  ------------------
 2508|      6|        int32_t t;
 2509|      6|        res = res_getTableItemByKey(&resB->getResData(), resB->fRes, &t, &key);
  ------------------
  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2510|      6|        if(res == RES_BOGUS) {
  ------------------
  |  |   65|      6|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2510:12): [True: 0, False: 6]
  ------------------
 2511|      0|            key = inKey;
 2512|      0|            if(resB->fHasFallback) {
  ------------------
  |  Branch (2512:16): [True: 0, False: 0]
  ------------------
 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|      0|            } else {
 2521|      0|                *status = U_MISSING_RESOURCE_ERROR;
 2522|      0|            }
 2523|      6|        } else {
 2524|      6|            return init_resb_result(resB->fData, res, key, -1, resB, fillIn, status);
 2525|      6|        }
 2526|      6|    } 
 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|      0|    return fillIn;
 2544|      6|}
ures_getStringByKey_78:
 2546|  1.29k|U_CAPI const char16_t* U_EXPORT2 ures_getStringByKey(const UResourceBundle *resB, const char* inKey, int32_t* len, UErrorCode *status) {
 2547|  1.29k|    Resource res = RES_BOGUS;
  ------------------
  |  |   65|  1.29k|#define RES_BOGUS 0xffffffff
  ------------------
 2548|  1.29k|    UResourceDataEntry *dataEntry = nullptr;
 2549|  1.29k|    const char* key = inKey;
 2550|       |
 2551|  1.29k|    if (status==nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (2551:9): [True: 0, False: 1.29k]
  |  Branch (2551:28): [True: 0, False: 1.29k]
  ------------------
 2552|      0|        return nullptr;
 2553|      0|    }
 2554|  1.29k|    if(resB == nullptr) {
  ------------------
  |  Branch (2554:8): [True: 0, False: 1.29k]
  ------------------
 2555|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 2556|      0|        return nullptr;
 2557|      0|    }
 2558|       |
 2559|  1.29k|    int32_t type = RES_GET_TYPE(resB->fRes);
  ------------------
  |  |   68|  1.29k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2560|  1.29k|    if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|  1.29k|#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: 1.29k]
  |  |  |  Branch (84:61): [True: 1.29k, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
 2561|  1.29k|        int32_t t=0;
 2562|       |
 2563|  1.29k|        res = res_getTableItemByKey(&resB->getResData(), resB->fRes, &t, &key);
  ------------------
  |  |  207|  1.29k|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2564|       |
 2565|  1.29k|        if(res == RES_BOGUS) {
  ------------------
  |  |   65|  1.29k|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2565:12): [True: 0, False: 1.29k]
  ------------------
 2566|      0|            key = inKey;
 2567|      0|            if(resB->fHasFallback) {
  ------------------
  |  Branch (2567:16): [True: 0, False: 0]
  ------------------
 2568|      0|                dataEntry = getFallbackData(resB, &key, &res, status);
 2569|      0|                if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (2569:20): [True: 0, False: 0]
  ------------------
 2570|      0|                    switch (RES_GET_TYPE(res)) {
  ------------------
  |  |   68|      0|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2571|      0|                    case URES_STRING:
  ------------------
  |  Branch (2571:21): [True: 0, False: 0]
  ------------------
 2572|      0|                    case URES_STRING_V2:
  ------------------
  |  Branch (2572:21): [True: 0, False: 0]
  ------------------
 2573|      0|                        return res_getString({resB, key}, &dataEntry->fData, res, len);
 2574|      0|                    case URES_ALIAS:
  ------------------
  |  Branch (2574:21): [True: 0, False: 0]
  ------------------
 2575|      0|                      {
 2576|      0|                        const char16_t* result = nullptr;
 2577|      0|                        UResourceBundle *tempRes = ures_getByKey(resB, inKey, nullptr, status);
  ------------------
  |  | 1661|      0|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2578|      0|                        result = ures_getString(tempRes, len, status);
  ------------------
  |  | 1675|      0|#define ures_getString U_ICU_ENTRY_POINT_RENAME(ures_getString)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2579|      0|                        ures_close(tempRes);
  ------------------
  |  | 1652|      0|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2580|      0|                        return result;
 2581|      0|                      }
 2582|      0|                    default:
  ------------------
  |  Branch (2582:21): [True: 0, False: 0]
  ------------------
 2583|      0|                        *status = U_RESOURCE_TYPE_MISMATCH;
 2584|      0|                    }
 2585|      0|                } else {
 2586|      0|                    *status = U_MISSING_RESOURCE_ERROR;
 2587|      0|                }
 2588|      0|            } else {
 2589|      0|                *status = U_MISSING_RESOURCE_ERROR;
 2590|      0|            }
 2591|  1.29k|        } else {
 2592|  1.29k|            switch (RES_GET_TYPE(res)) {
  ------------------
  |  |   68|  1.29k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2593|      0|            case URES_STRING:
  ------------------
  |  Branch (2593:13): [True: 0, False: 1.29k]
  ------------------
 2594|  1.29k|            case URES_STRING_V2:
  ------------------
  |  Branch (2594:13): [True: 1.29k, False: 0]
  ------------------
 2595|  1.29k|                return res_getString({resB, key}, &resB->getResData(), res, len);
 2596|      0|            case URES_ALIAS:
  ------------------
  |  Branch (2596:13): [True: 0, False: 1.29k]
  ------------------
 2597|      0|              {
 2598|      0|                const char16_t* result = nullptr;
 2599|      0|                UResourceBundle *tempRes = ures_getByKey(resB, inKey, nullptr, status);
  ------------------
  |  | 1661|      0|#define ures_getByKey U_ICU_ENTRY_POINT_RENAME(ures_getByKey)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2600|      0|                result = ures_getString(tempRes, len, status);
  ------------------
  |  | 1675|      0|#define ures_getString U_ICU_ENTRY_POINT_RENAME(ures_getString)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2601|      0|                ures_close(tempRes);
  ------------------
  |  | 1652|      0|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2602|      0|                return result;
 2603|      0|              }
 2604|      0|            default:
  ------------------
  |  Branch (2604:13): [True: 0, False: 1.29k]
  ------------------
 2605|      0|                *status = U_RESOURCE_TYPE_MISMATCH;
 2606|  1.29k|            }
 2607|  1.29k|        }
 2608|  1.29k|    } 
 2609|       |#if 0 
 2610|       |    /* this is a kind of TODO item. If we have an array with an index table, we could do this. */
 2611|       |    /* not currently */   
 2612|       |    else if(RES_GET_TYPE(resB->fRes) == URES_ARRAY && resB->fHasFallback == true) {
 2613|       |        /* here should go a first attempt to locate the key using index table */
 2614|       |        dataEntry = getFallbackData(resB, &key, &res, status);
 2615|       |        if(U_SUCCESS(*status)) {
 2616|       |            // TODO: Tracing
 2617|       |            return res_getString(rd, res, len);
 2618|       |        } else {
 2619|       |            *status = U_MISSING_RESOURCE_ERROR;
 2620|       |        }
 2621|       |    } 
 2622|       |#endif    
 2623|      0|    else {
 2624|      0|        *status = U_RESOURCE_TYPE_MISMATCH;
 2625|      0|    }
 2626|      0|    return nullptr;
 2627|  1.29k|}
ures_open_78:
 2769|    497|ures_open(const char* path, const char* localeID, UErrorCode* status) {
 2770|    497|    return ures_openWithType(nullptr, path, localeID, URES_OPEN_LOCALE_DEFAULT_ROOT, status);
 2771|    497|}
ures_openDirect_78:
 2783|      2|ures_openDirect(const char* path, const char* localeID, UErrorCode* status) {
 2784|      2|    return ures_openWithType(nullptr, path, localeID, URES_OPEN_DIRECT, status);
 2785|      2|}
uresbund.cpp:_ZL21ures_setIsStackObjectP15UResourceBundlea:
  711|  3.65k|static void ures_setIsStackObject( UResourceBundle* resB, UBool state) {
  712|  3.65k|    if(state) {
  ------------------
  |  Branch (712:8): [True: 1.86k, False: 1.79k]
  ------------------
  713|  1.86k|        resB->fMagic1 = 0;
  714|  1.86k|        resB->fMagic2 = 0;
  715|  1.86k|    } else {
  716|  1.79k|        resB->fMagic1 = MAGIC1;
  ------------------
  |  |   30|  1.79k|#define MAGIC1 19700503
  ------------------
  717|  1.79k|        resB->fMagic2 = MAGIC2;
  ------------------
  |  |   31|  1.79k|#define MAGIC2 19641227
  ------------------
  718|  1.79k|    }
  719|  3.65k|}
uresbund.cpp:_ZL16ures_closeBundleP15UResourceBundlea:
 1123|  5.47k|{
 1124|  5.47k|    if(resB != nullptr) {
  ------------------
  |  Branch (1124:8): [True: 3.65k, False: 1.81k]
  ------------------
 1125|  3.65k|        if(resB->fData != nullptr) {
  ------------------
  |  Branch (1125:12): [True: 3.65k, False: 1]
  ------------------
 1126|  3.65k|            entryClose(resB->fData);
 1127|  3.65k|        }
 1128|  3.65k|        if(resB->fVersion != nullptr) {
  ------------------
  |  Branch (1128:12): [True: 0, False: 3.65k]
  ------------------
 1129|      0|            uprv_free(resB->fVersion);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1130|      0|        }
 1131|  3.65k|        ures_freeResPath(resB);
 1132|       |
 1133|  3.65k|        if(ures_isStackObject(resB) == false && freeBundleObj) {
  ------------------
  |  Branch (1133:12): [True: 1.79k, False: 1.86k]
  |  Branch (1133:49): [True: 1.79k, False: 0]
  ------------------
 1134|  1.79k|            uprv_free(resB);
  ------------------
  |  | 1503|  1.79k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  1.79k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.79k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.79k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1135|  1.79k|        }
 1136|       |#if 0 /*U_DEBUG*/
 1137|       |        else {
 1138|       |            /* poison the data */
 1139|       |            uprv_memset(resB, -1, sizeof(UResourceBundle));
 1140|       |        }
 1141|       |#endif
 1142|  3.65k|    }
 1143|  5.47k|}
uresbund.cpp:_ZL10entryCloseP18UResourceDataEntry:
 1061|  4.15k|static void entryClose(UResourceDataEntry *resB) {
 1062|  4.15k|  Mutex lock(&resbMutex);
 1063|  4.15k|  entryCloseInt(resB);
 1064|  4.15k|}
uresbund.cpp:_ZL13entryCloseIntP18UResourceDataEntry:
 1028|  4.15k|static void entryCloseInt(UResourceDataEntry *resB) {
 1029|  4.15k|    UResourceDataEntry *p = resB;
 1030|       |
 1031|  10.6k|    while(resB != nullptr) {
  ------------------
  |  Branch (1031:11): [True: 6.47k, False: 4.15k]
  ------------------
 1032|  6.47k|        p = resB->fParent;
 1033|  6.47k|        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|  6.47k|        resB = p;
 1054|  6.47k|    }
 1055|  4.15k|}
uresbund.cpp:_ZL18ures_isStackObjectPK15UResourceBundle:
  721|  3.65k|static UBool ures_isStackObject(const UResourceBundle* resB) {
  722|  3.65k|  return((resB->fMagic1 == MAGIC1 && resB->fMagic2 == MAGIC2)?false:true);
  ------------------
  |  |   30|  7.31k|#define MAGIC1 19700503
  ------------------
                return((resB->fMagic1 == MAGIC1 && resB->fMagic2 == MAGIC2)?false:true);
  ------------------
  |  |   31|  1.79k|#define MAGIC2 19641227
  ------------------
  |  Branch (722:11): [True: 1.79k, False: 1.86k]
  |  Branch (722:38): [True: 1.79k, False: 0]
  ------------------
  723|  3.65k|}
uresbund.cpp:_ZL18ures_appendResPathP15UResourceBundlePKciP10UErrorCode:
 1083|  9.05k|static void ures_appendResPath(UResourceBundle *resB, const char* toAdd, int32_t lenToAdd, UErrorCode *status) {
 1084|  9.05k|    int32_t resPathLenOrig = resB->fResPathLen;
 1085|  9.05k|    if(resB->fResPath == nullptr) {
  ------------------
  |  Branch (1085:8): [True: 3.76k, False: 5.29k]
  ------------------
 1086|  3.76k|        resB->fResPath = resB->fResBuf;
 1087|  3.76k|        *(resB->fResPath) = 0;
 1088|  3.76k|        resB->fResPathLen = 0;
 1089|  3.76k|    } 
 1090|  9.05k|    resB->fResPathLen += lenToAdd;
 1091|  9.05k|    if(RES_BUFSIZE <= resB->fResPathLen+1) {
  ------------------
  |  |   59|  9.05k|#define RES_BUFSIZE 64
  ------------------
  |  Branch (1091:8): [True: 0, False: 9.05k]
  ------------------
 1092|      0|        if(resB->fResPath == resB->fResBuf) {
  ------------------
  |  Branch (1092:12): [True: 0, False: 0]
  ------------------
 1093|      0|            resB->fResPath = static_cast<char*>(uprv_malloc((resB->fResPathLen + 1) * sizeof(char)));
  ------------------
  |  | 1524|      0|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1094|       |            /* Check that memory was allocated correctly. */
 1095|      0|            if (resB->fResPath == nullptr) {
  ------------------
  |  Branch (1095:17): [True: 0, False: 0]
  ------------------
 1096|      0|                *status = U_MEMORY_ALLOCATION_ERROR;
 1097|      0|                return;
 1098|      0|            }
 1099|      0|            uprv_strcpy(resB->fResPath, resB->fResBuf);
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1100|      0|        } else {
 1101|      0|            char* temp = static_cast<char*>(uprv_realloc(resB->fResPath, (resB->fResPathLen + 1) * sizeof(char)));
  ------------------
  |  | 1536|      0|#define uprv_realloc U_ICU_ENTRY_POINT_RENAME(uprv_realloc)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1102|       |            /* Check that memory was reallocated correctly. */
 1103|      0|            if (temp == nullptr) {
  ------------------
  |  Branch (1103:17): [True: 0, False: 0]
  ------------------
 1104|      0|                *status = U_MEMORY_ALLOCATION_ERROR;
 1105|      0|                return;
 1106|      0|            }
 1107|      0|            resB->fResPath = temp;
 1108|      0|        }
 1109|      0|    }
 1110|  9.05k|    uprv_strcpy(resB->fResPath + resPathLenOrig, toAdd);
  ------------------
  |  |   36|  9.05k|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|  9.05k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1111|  9.05k|}
uresbund.cpp:_ZL13entryIncreaseP18UResourceDataEntry:
  304|  3.65k|static void entryIncrease(UResourceDataEntry *entry) {
  305|  3.65k|    Mutex lock(&resbMutex);
  306|  3.65k|    entry->fCountExisting++;
  307|  4.89k|    while(entry->fParent != nullptr) {
  ------------------
  |  Branch (307:11): [True: 1.23k, False: 3.65k]
  ------------------
  308|  1.23k|      entry = entry->fParent;
  309|  1.23k|      entry->fCountExisting++;
  310|  1.23k|    }
  311|  3.65k|}
uresbund.cpp:_ZN12_GLOBAL__N_116init_resb_resultEP18UResourceDataEntryjPKciPK15UResourceBundlePS4_P10UErrorCode:
 1480|  3.11k|        UResourceBundle *resB, UErrorCode *status) {
 1481|  3.11k|    return init_resb_result(
 1482|  3.11k|        dataEntry, r, key, idx,
 1483|  3.11k|        container->fValidLocaleDataEntry, container->fResPath, 0, resB, status);
 1484|  3.11k|}
uresbund.cpp:_ZN12_GLOBAL__N_116init_resb_resultEP18UResourceDataEntryjPKciS1_S3_iP15UResourceBundleP10UErrorCode:
 1389|  3.11k|        UResourceBundle *resB, UErrorCode *status) {
 1390|       |    // TODO: When an error occurs: Should we return nullptr vs. resB?
 1391|  3.11k|    if(status == nullptr || U_FAILURE(*status)) {
  ------------------
  |  Branch (1391:8): [True: 0, False: 3.11k]
  |  Branch (1391:29): [True: 0, False: 3.11k]
  ------------------
 1392|      0|        return resB;
 1393|      0|    }
 1394|  3.11k|    if (validLocaleDataEntry == nullptr) {
  ------------------
  |  Branch (1394:9): [True: 0, False: 3.11k]
  ------------------
 1395|      0|        *status = U_ILLEGAL_ARGUMENT_ERROR;
 1396|      0|        return nullptr;
 1397|      0|    }
 1398|  3.11k|    if(RES_GET_TYPE(r) == URES_ALIAS) {
  ------------------
  |  |   68|  3.11k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (1398:8): [True: 0, False: 3.11k]
  ------------------
 1399|       |        // This is an alias, need to exchange with real data.
 1400|      0|        if(recursionDepth >= URES_MAX_ALIAS_LEVEL) {
  ------------------
  |  |   33|      0|#define URES_MAX_ALIAS_LEVEL 256
  ------------------
  |  Branch (1400:12): [True: 0, False: 0]
  ------------------
 1401|      0|            *status = U_TOO_MANY_ALIASES_ERROR;
 1402|      0|            return resB;
 1403|      0|        }
 1404|      0|        return getAliasTargetAsResourceBundle(
 1405|      0|            dataEntry->fData, r, key, idx,
 1406|      0|            validLocaleDataEntry, containerResPath, recursionDepth, resB, status);
 1407|      0|    }
 1408|  3.11k|    if(resB == nullptr) {
  ------------------
  |  Branch (1408:8): [True: 1.29k, False: 1.81k]
  ------------------
 1409|  1.29k|        resB = static_cast<UResourceBundle*>(uprv_malloc(sizeof(UResourceBundle)));
  ------------------
  |  | 1524|  1.29k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1410|  1.29k|        if (resB == nullptr) {
  ------------------
  |  Branch (1410:13): [True: 0, False: 1.29k]
  ------------------
 1411|      0|            *status = U_MEMORY_ALLOCATION_ERROR;
 1412|      0|            return nullptr;
 1413|      0|        }
 1414|  1.29k|        ures_setIsStackObject(resB, false);
 1415|  1.29k|        resB->fResPath = nullptr;
 1416|  1.29k|        resB->fResPathLen = 0;
 1417|  1.81k|    } else {
 1418|  1.81k|        if(resB->fData != nullptr) {
  ------------------
  |  Branch (1418:12): [True: 497, False: 1.31k]
  ------------------
 1419|    497|            entryClose(resB->fData);
 1420|    497|        }
 1421|  1.81k|        if(resB->fVersion != nullptr) {
  ------------------
  |  Branch (1421:12): [True: 0, False: 1.81k]
  ------------------
 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|  1.81k|        if(containerResPath != resB->fResPath) {
  ------------------
  |  Branch (1435:12): [True: 777, False: 1.03k]
  ------------------
 1436|    777|            ures_freeResPath(resB);
 1437|    777|        }
 1438|  1.81k|    }
 1439|  3.11k|    resB->fData = dataEntry;
 1440|  3.11k|    entryIncrease(resB->fData);
 1441|  3.11k|    resB->fHasFallback = false;
 1442|  3.11k|    resB->fIsTopLevel = false;
 1443|  3.11k|    resB->fIndex = -1;
 1444|  3.11k|    resB->fKey = key; 
 1445|  3.11k|    resB->fValidLocaleDataEntry = validLocaleDataEntry;
 1446|  3.11k|    if(containerResPath != resB->fResPath) {
  ------------------
  |  Branch (1446:8): [True: 2.07k, False: 1.04k]
  ------------------
 1447|  2.07k|        ures_appendResPath(
 1448|  2.07k|            resB, containerResPath, static_cast<int32_t>(uprv_strlen(containerResPath)), status);
  ------------------
  |  |   37|  2.07k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  2.07k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1449|  2.07k|    }
 1450|  3.11k|    if(key != nullptr) {
  ------------------
  |  Branch (1450:8): [True: 3.11k, False: 0]
  ------------------
 1451|  3.11k|        ures_appendResPath(resB, key, static_cast<int32_t>(uprv_strlen(key)), status);
  ------------------
  |  |   37|  3.11k|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|  3.11k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1452|  3.11k|        if(resB->fResPath[resB->fResPathLen-1] != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|  3.11k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (1452:12): [True: 2.58k, False: 529]
  ------------------
 1453|  2.58k|            ures_appendResPath(resB, RES_PATH_SEPARATOR_S, 1, status);
  ------------------
  |  |   61|  2.58k|#define RES_PATH_SEPARATOR_S   "/"
  ------------------
 1454|  2.58k|        }
 1455|  3.11k|    } 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|  3.11k|    {
 1465|  3.11k|        int32_t usedLen = ((resB->fResBuf == resB->fResPath) ? resB->fResPathLen : 0);
  ------------------
  |  Branch (1465:28): [True: 3.11k, False: 0]
  ------------------
 1466|  3.11k|        uprv_memset(resB->fResBuf + usedLen, 0, sizeof(resB->fResBuf) - usedLen);
  ------------------
  |  |  100|  3.11k|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|  3.11k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 1467|  3.11k|    }
 1468|       |
 1469|  3.11k|    resB->fVersion = nullptr;
 1470|  3.11k|    resB->fRes = r;
 1471|  3.11k|    resB->fSize = res_countArrayItems(&resB->getResData(), resB->fRes);
  ------------------
  |  |  197|  3.11k|#define res_countArrayItems U_ICU_ENTRY_POINT_RENAME(res_countArrayItems)
  |  |  ------------------
  |  |  |  |  123|  3.11k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  3.11k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  3.11k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1472|  3.11k|    ResourceTracer(resB).trace("get");
 1473|  3.11k|    return resB;
 1474|  3.11k|}
uresbund.cpp:_ZL21getTableItemByKeyPathPK12ResourceDatajPKc:
 2059|  1.81k|static Resource getTableItemByKeyPath(const ResourceData *pResData, Resource table, const char *key) {
 2060|  1.81k|  Resource resource = table;  /* The current resource */
 2061|  1.81k|  icu::CharString path;
 2062|  1.81k|  UErrorCode errorCode = U_ZERO_ERROR;
 2063|  1.81k|  path.append(key, errorCode);
 2064|  1.81k|  if (U_FAILURE(errorCode)) { return RES_BOGUS; }
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (2064:7): [True: 0, False: 1.81k]
  ------------------
 2065|  1.81k|  char *pathPart = path.data();  /* Path from current resource to desired resource */
 2066|  1.81k|  UResType type = static_cast<UResType>(RES_GET_TYPE(resource)); /* the current resource type */
  ------------------
  |  |   68|  1.81k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2067|  4.16k|  while (*pathPart && resource != RES_BOGUS && URES_IS_CONTAINER(type)) {
  ------------------
  |  |   65|  6.52k|#define RES_BOGUS 0xffffffff
  ------------------
                while (*pathPart && resource != RES_BOGUS && URES_IS_CONTAINER(type)) {
  ------------------
  |  |   85|  2.35k|#define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   84|  4.70k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (84:30): [True: 2.32k, False: 30]
  |  |  |  |  |  Branch (84:61): [True: 30, False: 0]
  |  |  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   83|      0|#define URES_IS_ARRAY(type) ((int32_t)(type)==URES_ARRAY || (int32_t)(type)==URES_ARRAY16)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (83:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (83:61): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (2067:10): [True: 2.35k, False: 1.81k]
  |  Branch (2067:23): [True: 2.35k, False: 5]
  ------------------
 2068|  2.35k|    char *nextPathPart = uprv_strchr(pathPart, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|  2.35k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  2.35k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2069|  2.35k|    if (nextPathPart != nullptr) {
  ------------------
  |  Branch (2069:9): [True: 1.07k, False: 1.27k]
  ------------------
 2070|  1.07k|      *nextPathPart = 0;  /* Terminating null for this part of path. */
 2071|  1.07k|      nextPathPart++;
 2072|  1.27k|    } else {
 2073|  1.27k|      nextPathPart = uprv_strchr(pathPart, 0);
  ------------------
  |  |   40|  1.27k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  1.27k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2074|  1.27k|    }
 2075|  2.35k|    int32_t t;
 2076|  2.35k|    const char *pathP = pathPart;
 2077|  2.35k|    resource = res_getTableItemByKey(pResData, resource, &t, &pathP);
  ------------------
  |  |  207|  2.35k|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|  2.35k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  2.35k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  2.35k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2078|  2.35k|    type = static_cast<UResType>(RES_GET_TYPE(resource));
  ------------------
  |  |   68|  2.35k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
 2079|  2.35k|    pathPart = nextPathPart; 
 2080|  2.35k|  }
 2081|  1.81k|  if (*pathPart) {
  ------------------
  |  Branch (2081:7): [True: 5, False: 1.81k]
  ------------------
 2082|      5|    return RES_BOGUS;
  ------------------
  |  |   65|      5|#define RES_BOGUS 0xffffffff
  ------------------
 2083|      5|  }
 2084|  1.81k|  return resource;
 2085|  1.81k|}
uresbund.cpp:_ZL10createPathPKciS0_iS0_RN6icu_7810CharStringEP10UErrorCode:
 2093|  1.50k|                       UErrorCode* status) {
 2094|       |    // This is a utility function used by ures_getByKeyWithFallback() below.  This function builds a path from
 2095|       |    // resPath and inKey, returning the result in `path`.  Originally, this function just cleared `path` and
 2096|       |    // appended resPath and inKey to it, but that caused problems for horizontal inheritance.
 2097|       |    //
 2098|       |    // In normal cases, resPath is the same as origResPath, but if ures_getByKeyWithFallback() has followed an
 2099|       |    // alias, resPath may be different from origResPath.  Not only may the existing path elements be different,
 2100|       |    // but resPath may also have MORE path elements than origResPath did.  If it does, those additional path
 2101|       |    // elements SUPERSEDE the corresponding elements of inKey.  So this code counts the number of elements in
 2102|       |    // resPath and origResPath and, for each path element in resPath that doesn't have a counterpart in origResPath,
 2103|       |    // deletes a path element from the beginning of inKey.  The remainder of inKey is then appended to
 2104|       |    // resPath to form the result.  (We're not using uprv_strchr() here because resPath and origResPath may
 2105|       |    // not be zero-terminated.)
 2106|  1.50k|    path.clear();
 2107|  1.50k|    const char* key = inKey;
 2108|  1.50k|    if (resPathLen > 0) {
  ------------------
  |  Branch (2108:9): [True: 560, False: 944]
  ------------------
 2109|    560|        path.append(resPath, resPathLen, *status);
 2110|    560|        if (U_SUCCESS(*status)) {
  ------------------
  |  Branch (2110:13): [True: 560, False: 0]
  ------------------
 2111|    560|            const char* resPathLimit = resPath + resPathLen;
 2112|    560|            const char* origResPathLimit = origResPath + origResPathLen;
 2113|    560|            const char* resPathPtr = resPath;
 2114|    560|            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|  1.12k|            while (origResPathPtr < origResPathLimit && resPathPtr < resPathLimit) {
  ------------------
  |  Branch (2118:20): [True: 560, False: 560]
  |  Branch (2118:57): [True: 560, False: 0]
  ------------------
 2119|  6.72k|                while (origResPathPtr < origResPathLimit && *origResPathPtr != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|  6.72k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2119:24): [True: 6.72k, False: 0]
  |  Branch (2119:61): [True: 6.16k, False: 560]
  ------------------
 2120|  6.16k|                    ++origResPathPtr;
 2121|  6.16k|                }
 2122|    560|                if (origResPathPtr < origResPathLimit && *origResPathPtr == RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|    560|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2122:21): [True: 560, False: 0]
  |  Branch (2122:58): [True: 560, False: 0]
  ------------------
 2123|    560|                    ++origResPathPtr;
 2124|    560|                }
 2125|  6.72k|                while (resPathPtr < resPathLimit && *resPathPtr != RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|  6.72k|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2125:24): [True: 6.72k, False: 0]
  |  Branch (2125:53): [True: 6.16k, False: 560]
  ------------------
 2126|  6.16k|                    ++resPathPtr;
 2127|  6.16k|                }
 2128|    560|                if (resPathPtr < resPathLimit && *resPathPtr == RES_PATH_SEPARATOR) {
  ------------------
  |  |   60|    560|#define RES_PATH_SEPARATOR   '/'
  ------------------
  |  Branch (2128:21): [True: 560, False: 0]
  |  Branch (2128:50): [True: 560, False: 0]
  ------------------
 2129|    560|                    ++resPathPtr;
 2130|    560|                }
 2131|    560|            }
 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|    560|            while (resPathPtr < resPathLimit && *key != '\0') {
  ------------------
  |  Branch (2135:20): [True: 0, False: 560]
  |  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|    560|        }
 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|    560|        path.append(key, *status);
 2155|    944|    } else {
 2156|    944|        path.append(inKey, *status);
 2157|    944|    }
 2158|  1.50k|}
uresbund.cpp:_ZL16ures_freeResPathP15UResourceBundle:
 1113|  5.08k|static void ures_freeResPath(UResourceBundle *resB) {
 1114|  5.08k|    if (resB->fResPath && resB->fResPath != resB->fResBuf) {
  ------------------
  |  Branch (1114:9): [True: 3.76k, False: 1.32k]
  |  Branch (1114:27): [True: 0, False: 3.76k]
  ------------------
 1115|      0|        uprv_free(resB->fResPath);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1116|      0|    }
 1117|  5.08k|    resB->fResPath = nullptr;
 1118|  5.08k|    resB->fResPathLen = 0;
 1119|  5.08k|}
uresbund.cpp:_ZN12_GLOBAL__N_123getAllItemsWithFallbackEPK15UResourceBundleRN6icu_7817ResourceDataValueERNS3_12ResourceSinkER10UErrorCode:
 2278|  1.32k|        ResourceSink &sink, UErrorCode &errorCode) {
 2279|  1.32k|    if (U_FAILURE(errorCode)) { return; }
  ------------------
  |  Branch (2279:9): [True: 0, False: 1.32k]
  ------------------
 2280|       |    // We recursively enumerate child-first,
 2281|       |    // only storing parent items in the absence of child items.
 2282|       |    // The sink needs to store a placeholder value for the no-fallback/no-inheritance marker
 2283|       |    // to prevent a parent item from being stored.
 2284|       |    //
 2285|       |    // It would be possible to recursively enumerate parent-first,
 2286|       |    // overriding parent items with child items.
 2287|       |    // When the sink sees the no-fallback/no-inheritance marker,
 2288|       |    // then it would remove the parent's item.
 2289|       |    // We would deserialize parent values even though they are overridden in a child bundle.
 2290|  1.32k|    value.setData(bundle->getResData());
 2291|  1.32k|    value.setValidLocaleDataEntry(bundle->fValidLocaleDataEntry);
 2292|  1.32k|    UResourceDataEntry *parentEntry = bundle->fData->fParent;
 2293|  1.32k|    UBool hasParent = parentEntry != nullptr && U_SUCCESS(parentEntry->fBogus);
  ------------------
  |  Branch (2293:23): [True: 542, False: 778]
  |  Branch (2293:49): [True: 542, False: 0]
  ------------------
 2294|  1.32k|    value.setResource(bundle->fRes, ResourceTracer(bundle));
 2295|  1.32k|    sink.put(bundle->fKey, value, !hasParent, errorCode);
 2296|  1.32k|    if (hasParent) {
  ------------------
  |  Branch (2296:9): [True: 542, False: 778]
  ------------------
 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|    542|        StackUResourceBundle parentBundle;
 2306|    542|        UResourceBundle &parentRef = parentBundle.ref();
 2307|    542|        parentRef.fData = parentEntry;
 2308|    542|        parentRef.fValidLocaleDataEntry = bundle->fValidLocaleDataEntry;
 2309|    542|        parentRef.fHasFallback = !parentRef.getResData().noFallback;
 2310|    542|        parentRef.fIsTopLevel = true;
 2311|    542|        parentRef.fRes = parentRef.getResData().rootRes;
 2312|    542|        parentRef.fSize = res_countArrayItems(&parentRef.getResData(), parentRef.fRes);
  ------------------
  |  |  197|    542|#define res_countArrayItems U_ICU_ENTRY_POINT_RENAME(res_countArrayItems)
  |  |  ------------------
  |  |  |  |  123|    542|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    542|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    542|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2313|    542|        parentRef.fIndex = -1;
 2314|    542|        entryIncrease(parentEntry);
 2315|       |
 2316|       |        // Look up the container item in the parent bundle.
 2317|    542|        StackUResourceBundle containerBundle;
 2318|    542|        const UResourceBundle *rb;
 2319|    542|        UErrorCode pathErrorCode = U_ZERO_ERROR;  // Ignore if parents up to root do not have this path.
 2320|    542|        if (bundle->fResPath == nullptr || *bundle->fResPath == 0) {
  ------------------
  |  Branch (2320:13): [True: 0, False: 542]
  |  Branch (2320:44): [True: 0, False: 542]
  ------------------
 2321|      0|            rb = parentBundle.getAlias();
 2322|    542|        } else {
 2323|    542|            rb = ures_getByKeyWithFallback(parentBundle.getAlias(), bundle->fResPath,
  ------------------
  |  | 1662|    542|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|    542|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    542|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    542|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2324|    542|                                           containerBundle.getAlias(), &pathErrorCode);
 2325|    542|        }
 2326|    542|        if (U_SUCCESS(pathErrorCode)) {
  ------------------
  |  Branch (2326:13): [True: 542, False: 0]
  ------------------
 2327|    542|            getAllItemsWithFallback(rb, value, sink, errorCode);
 2328|    542|        }
 2329|    542|    }
 2330|  1.32k|}
uresbund.cpp:_ZL17ures_openWithTypeP15UResourceBundlePKcS2_12UResOpenTypeP10UErrorCode:
 2712|    499|                  UResOpenType openType, UErrorCode* status) {
 2713|    499|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (2713:8): [True: 0, False: 499]
  ------------------
 2714|      0|        return nullptr;
 2715|      0|    }
 2716|       |
 2717|    499|    UResourceDataEntry *entry;
 2718|    499|    if(openType != URES_OPEN_DIRECT) {
  ------------------
  |  Branch (2718:8): [True: 497, False: 2]
  ------------------
 2719|    497|        if (localeID == nullptr) {
  ------------------
  |  Branch (2719:13): [True: 0, False: 497]
  ------------------
 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|    497|        CharString canonLocaleID = ulocimp_getBaseName(localeID, *status);
  ------------------
  |  | 1199|    497|#define ulocimp_getBaseName U_ICU_ENTRY_POINT_RENAME(ulocimp_getBaseName)
  |  |  ------------------
  |  |  |  |  123|    497|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    497|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    497|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2724|    497|        if(U_FAILURE(*status)) {
  ------------------
  |  Branch (2724:12): [True: 0, False: 497]
  ------------------
 2725|      0|            *status = U_ILLEGAL_ARGUMENT_ERROR;
 2726|      0|            return nullptr;
 2727|      0|        }
 2728|    497|        entry = entryOpen(path, canonLocaleID.data(), openType, status);
 2729|    497|    } else {
 2730|      2|        entry = entryOpenDirect(path, localeID, status);
 2731|      2|    }
 2732|    499|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (2732:8): [True: 0, False: 499]
  ------------------
 2733|      0|        return nullptr;
 2734|      0|    }
 2735|    499|    if(entry == nullptr) {
  ------------------
  |  Branch (2735:8): [True: 0, False: 499]
  ------------------
 2736|      0|        *status = U_MISSING_RESOURCE_ERROR;
 2737|      0|        return nullptr;
 2738|      0|    }
 2739|       |
 2740|    499|    UBool isStackObject;
 2741|    499|    if(r == nullptr) {
  ------------------
  |  Branch (2741:8): [True: 499, False: 0]
  ------------------
 2742|    499|        r = static_cast<UResourceBundle*>(uprv_malloc(sizeof(UResourceBundle)));
  ------------------
  |  | 1524|    499|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    499|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    499|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    499|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2743|    499|        if(r == nullptr) {
  ------------------
  |  Branch (2743:12): [True: 0, False: 499]
  ------------------
 2744|      0|            entryClose(entry);
 2745|      0|            *status = U_MEMORY_ALLOCATION_ERROR;
 2746|      0|            return nullptr;
 2747|      0|        }
 2748|    499|        isStackObject = false;
 2749|    499|    } else {  // fill-in
 2750|      0|        isStackObject = ures_isStackObject(r);
 2751|      0|        ures_closeBundle(r, false);
 2752|      0|    }
 2753|    499|    uprv_memset(r, 0, sizeof(UResourceBundle));
  ------------------
  |  |  100|    499|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|    499|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
 2754|    499|    ures_setIsStackObject(r, isStackObject);
 2755|       |
 2756|    499|    r->fValidLocaleDataEntry = r->fData = entry;
 2757|    499|    r->fHasFallback = openType != URES_OPEN_DIRECT && !r->getResData().noFallback;
  ------------------
  |  Branch (2757:23): [True: 497, False: 2]
  |  Branch (2757:55): [True: 497, False: 0]
  ------------------
 2758|    499|    r->fIsTopLevel = true;
 2759|    499|    r->fRes = r->getResData().rootRes;
 2760|    499|    r->fSize = res_countArrayItems(&r->getResData(), r->fRes);
  ------------------
  |  |  197|    499|#define res_countArrayItems U_ICU_ENTRY_POINT_RENAME(res_countArrayItems)
  |  |  ------------------
  |  |  |  |  123|    499|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    499|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    499|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 2761|    499|    r->fIndex = -1;
 2762|       |
 2763|    499|    ResourceTracer(r).traceOpen();
 2764|       |
 2765|    499|    return r;
 2766|    499|}
uresbund.cpp:_ZL9entryOpenPKcS0_12UResOpenTypeP10UErrorCode:
  812|    497|                                     UResOpenType openType, UErrorCode* status) {
  813|    497|    U_ASSERT(openType != URES_OPEN_DIRECT);
  ------------------
  |  |   35|    497|#   define U_ASSERT(exp) (void)0
  ------------------
  814|    497|    UErrorCode intStatus = U_ZERO_ERROR;
  815|    497|    UResourceDataEntry *r = nullptr;
  816|    497|    UResourceDataEntry *t1 = nullptr;
  817|    497|    UBool isDefault = false;
  818|    497|    UBool isRoot = false;
  819|    497|    UBool hasRealData = false;
  820|    497|    UBool hasChopped = true;
  821|    497|    UBool usingUSRData = U_USE_USRDATA && ( path == nullptr || uprv_strncmp(path,U_ICUDATA_NAME,8) == 0);
  ------------------
  |  |  157|    994|#define U_USE_USRDATA     0  /**< @internal */
  |  |  ------------------
  |  |  |  Branch (157:27): [Folded - Ignored]
  |  |  ------------------
  ------------------
                  UBool usingUSRData = U_USE_USRDATA && ( path == nullptr || uprv_strncmp(path,U_ICUDATA_NAME,8) == 0);
  ------------------
  |  |   44|      0|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (821:45): [True: 0, False: 0]
  |  Branch (821:64): [True: 0, False: 0]
  ------------------
  822|       |
  823|    497|    char name[ULOC_FULLNAME_CAPACITY];
  824|    497|    char usrDataPath[96];
  825|       |
  826|    497|    initCache(status);
  827|       |
  828|    497|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (828:8): [True: 0, False: 497]
  ------------------
  829|      0|        return nullptr;
  830|      0|    }
  831|       |
  832|    497|    uprv_strncpy(name, localeID, sizeof(name) - 1);
  ------------------
  |  |   43|    497|#define uprv_strncpy(dst, src, size) U_STANDARD_CPP_NAMESPACE strncpy(dst, src, size)
  |  |  ------------------
  |  |  |  |  393|    497|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  833|    497|    name[sizeof(name) - 1] = 0;
  834|       |
  835|    497|    if ( usingUSRData ) {
  ------------------
  |  Branch (835:10): [True: 0, False: 497]
  ------------------
  836|      0|        if ( path == nullptr ) {
  ------------------
  |  Branch (836:14): [True: 0, False: 0]
  ------------------
  837|      0|            uprv_strcpy(usrDataPath, U_USRDATA_NAME);
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  838|      0|        } else {
  839|      0|            uprv_strncpy(usrDataPath, path, sizeof(usrDataPath) - 1);
  ------------------
  |  |   43|      0|#define uprv_strncpy(dst, src, size) U_STANDARD_CPP_NAMESPACE strncpy(dst, src, size)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  840|      0|            usrDataPath[0] = 'u';
  841|      0|            usrDataPath[1] = 's';
  842|      0|            usrDataPath[2] = 'r';
  843|      0|            usrDataPath[sizeof(usrDataPath) - 1] = 0;
  844|      0|        }
  845|      0|    }
  846|       | 
  847|       |    // Note: We need to query the default locale *before* locking resbMutex.
  848|    497|    const char *defaultLocale = uloc_getDefault();
  ------------------
  |  | 1118|    497|#define uloc_getDefault U_ICU_ENTRY_POINT_RENAME(uloc_getDefault)
  |  |  ------------------
  |  |  |  |  123|    497|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    497|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    497|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  849|       |
  850|    497|    Mutex lock(&resbMutex);    // Lock resbMutex until the end of this function.
  851|       |
  852|       |    /* We're going to skip all the locales that do not have any data */
  853|    497|    r = findFirstExisting(path, name, defaultLocale, openType, &isRoot, &hasChopped, &isDefault, &intStatus);
  854|       |
  855|       |    // If we failed due to out-of-memory, report the failure and exit early.
  856|    497|    if (intStatus == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (856:9): [True: 0, False: 497]
  ------------------
  857|      0|        *status = intStatus;
  858|      0|        goto finish;
  859|      0|    }
  860|       |
  861|    497|    if(r != nullptr) { /* if there is one real locale, we can look for parents. */
  ------------------
  |  Branch (861:8): [True: 497, False: 0]
  ------------------
  862|    497|        t1 = r;
  863|    497|        hasRealData = true;
  864|    497|        if ( usingUSRData ) {  /* This code inserts user override data into the inheritance chain */
  ------------------
  |  Branch (864:14): [True: 0, False: 497]
  ------------------
  865|      0|            UErrorCode usrStatus = U_ZERO_ERROR;
  866|      0|            UResourceDataEntry *u1 = init_entry(t1->fName, usrDataPath, &usrStatus);
  867|       |            // If we failed due to out-of-memory, report the failure and exit early.
  868|      0|            if (intStatus == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (868:17): [True: 0, False: 0]
  ------------------
  869|      0|                *status = intStatus;
  870|      0|                goto finish;
  871|      0|            }
  872|      0|            if ( u1 != nullptr ) {
  ------------------
  |  Branch (872:18): [True: 0, False: 0]
  ------------------
  873|      0|                if(u1->fBogus == U_ZERO_ERROR) {
  ------------------
  |  Branch (873:20): [True: 0, False: 0]
  ------------------
  874|      0|                    u1->fParent = t1;
  875|      0|                    r = u1;
  876|      0|                } else {
  877|       |                    /* the USR override data wasn't found, set it to be deleted */
  878|      0|                    u1->fCountExisting = 0;
  879|      0|                }
  880|      0|            }
  881|      0|        }
  882|    497|        if ((hasChopped || mayHaveParent(name)) && !isRoot) {
  ------------------
  |  Branch (882:14): [True: 403, False: 94]
  |  Branch (882:28): [True: 4, False: 90]
  |  Branch (882:52): [True: 407, False: 0]
  ------------------
  883|    407|            if (!loadParentsExceptRoot(t1, name, UPRV_LENGTHOF(name), usingUSRData, usrDataPath, status)) {
  ------------------
  |  |   99|    407|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (883:17): [True: 0, False: 407]
  ------------------
  884|      0|                goto finish;
  885|      0|            }
  886|    407|        }
  887|    497|    }
  888|       |
  889|       |    /* we could have reached this point without having any real data */
  890|       |    /* if that is the case, we need to chain in the default locale   */
  891|    497|    if(r==nullptr && openType == URES_OPEN_LOCALE_DEFAULT_ROOT && !isDefault && !isRoot) {
  ------------------
  |  Branch (891:8): [True: 0, False: 497]
  |  Branch (891:22): [True: 0, False: 0]
  |  Branch (891:67): [True: 0, False: 0]
  |  Branch (891:81): [True: 0, False: 0]
  ------------------
  892|       |        /* insert default locale */
  893|      0|        uprv_strcpy(name, defaultLocale);
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  894|      0|        r = findFirstExisting(path, name, defaultLocale, openType, &isRoot, &hasChopped, &isDefault, &intStatus);
  895|       |        // If we failed due to out-of-memory, report the failure and exit early.
  896|      0|        if (intStatus == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (896:13): [True: 0, False: 0]
  ------------------
  897|      0|            *status = intStatus;
  898|      0|            goto finish;
  899|      0|        }
  900|      0|        intStatus = U_USING_DEFAULT_WARNING;
  901|      0|        if(r != nullptr) { /* the default locale exists */
  ------------------
  |  Branch (901:12): [True: 0, False: 0]
  ------------------
  902|      0|            t1 = r;
  903|      0|            hasRealData = true;
  904|      0|            isDefault = true;
  905|       |            // TODO: Why not if (usingUSRData) { ... } like in the non-default-locale code path?
  906|      0|            if ((hasChopped || mayHaveParent(name)) && !isRoot) {
  ------------------
  |  Branch (906:18): [True: 0, False: 0]
  |  Branch (906:32): [True: 0, False: 0]
  |  Branch (906:56): [True: 0, False: 0]
  ------------------
  907|      0|                if (!loadParentsExceptRoot(t1, name, UPRV_LENGTHOF(name), usingUSRData, usrDataPath, status)) {
  ------------------
  |  |   99|      0|#define UPRV_LENGTHOF(array) (int32_t)(sizeof(array)/sizeof((array)[0]))
  ------------------
  |  Branch (907:21): [True: 0, False: 0]
  ------------------
  908|      0|                    goto finish;
  909|      0|                }
  910|      0|            }
  911|      0|        }
  912|      0|    }
  913|       |
  914|       |    /* we could still have r == nullptr at this point - maybe even default locale is not */
  915|       |    /* present */
  916|    497|    if(r == nullptr) {
  ------------------
  |  Branch (916:8): [True: 0, False: 497]
  ------------------
  917|      0|        uprv_strcpy(name, kRootLocaleName);
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  918|      0|        r = findFirstExisting(path, name, defaultLocale, openType, &isRoot, &hasChopped, &isDefault, &intStatus);
  919|       |        // If we failed due to out-of-memory, report the failure and exit early.
  920|      0|        if (intStatus == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (920:13): [True: 0, False: 0]
  ------------------
  921|      0|            *status = intStatus;
  922|      0|            goto finish;
  923|      0|        }
  924|      0|        if(r != nullptr) {
  ------------------
  |  Branch (924:12): [True: 0, False: 0]
  ------------------
  925|      0|            t1 = r;
  926|      0|            intStatus = U_USING_DEFAULT_WARNING;
  927|      0|            hasRealData = true;
  928|      0|        } else { /* we don't even have the root locale */
  929|      0|            *status = U_MISSING_RESOURCE_ERROR;
  930|      0|            goto finish;
  931|      0|        }
  932|    497|    } else if(!isRoot && uprv_strcmp(t1->fName, kRootLocaleName) != 0 &&
  ------------------
  |  |   38|    497|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    497|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (932:15): [True: 497, False: 0]
  |  Branch (932:26): [True: 497, False: 0]
  ------------------
  933|    497|            t1->fParent == nullptr && !r->fData.noFallback) {
  ------------------
  |  Branch (933:13): [True: 101, False: 396]
  |  Branch (933:39): [True: 101, False: 0]
  ------------------
  934|    101|        if (!insertRootBundle(t1, status)) {
  ------------------
  |  Branch (934:13): [True: 0, False: 101]
  ------------------
  935|      0|            goto finish;
  936|      0|        }
  937|    101|        if(!hasRealData) {
  ------------------
  |  Branch (937:12): [True: 0, False: 101]
  ------------------
  938|      0|            r->fBogus = U_USING_DEFAULT_WARNING;
  939|      0|        }
  940|    101|    }
  941|       |
  942|       |    // TODO: Does this ever loop?
  943|  1.30k|    while(r != nullptr && !isRoot && t1->fParent != nullptr) {
  ------------------
  |  Branch (943:11): [True: 1.30k, False: 0]
  |  Branch (943:27): [True: 1.30k, False: 0]
  |  Branch (943:38): [True: 811, False: 497]
  ------------------
  944|    811|        t1->fParent->fCountExisting++;
  945|    811|        t1 = t1->fParent;
  946|    811|    }
  947|       |
  948|    497|finish:
  949|    497|    if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (949:8): [True: 497, False: 0]
  ------------------
  950|    497|        if(intStatus != U_ZERO_ERROR) {
  ------------------
  |  Branch (950:12): [True: 0, False: 497]
  ------------------
  951|      0|            *status = intStatus;  
  952|      0|        }
  953|    497|        return r;
  954|    497|    } else {
  955|      0|        return nullptr;
  956|      0|    }
  957|    497|}
uresbund.cpp:_ZL9initCacheP10UErrorCode:
  483|    499|static void initCache(UErrorCode *status) {
  484|    499|    umtx_initOnce(gCacheInitOnce, &createCache, *status);
  485|    499|}
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|  1.60k|static int32_t U_CALLCONV hashEntry(const UHashTok parm) {
   59|  1.60k|    UResourceDataEntry* b = static_cast<UResourceDataEntry*>(parm.pointer);
   60|  1.60k|    UHashTok namekey, pathkey;
   61|  1.60k|    namekey.pointer = b->fName;
   62|  1.60k|    pathkey.pointer = b->fPath;
   63|  1.60k|    return uhash_hashChars(namekey)+37u*uhash_hashChars(pathkey);
  ------------------
  |  | 1011|  1.60k|#define uhash_hashChars U_ICU_ENTRY_POINT_RENAME(uhash_hashChars)
  |  |  ------------------
  |  |  |  |  123|  1.60k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.60k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.60k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  return uhash_hashChars(namekey)+37u*uhash_hashChars(pathkey);
  ------------------
  |  | 1011|  1.60k|#define uhash_hashChars U_ICU_ENTRY_POINT_RENAME(uhash_hashChars)
  |  |  ------------------
  |  |  |  |  123|  1.60k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.60k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.60k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   64|  1.60k|}
uresbund.cpp:_ZL14compareEntries8UElementS_:
   67|    769|static UBool U_CALLCONV compareEntries(const UHashTok p1, const UHashTok p2) {
   68|    769|    UResourceDataEntry* b1 = static_cast<UResourceDataEntry*>(p1.pointer);
   69|    769|    UResourceDataEntry* b2 = static_cast<UResourceDataEntry*>(p2.pointer);
   70|    769|    UHashTok name1, name2, path1, path2;
   71|    769|    name1.pointer = b1->fName;
   72|    769|    name2.pointer = b2->fName;
   73|    769|    path1.pointer = b1->fPath;
   74|    769|    path2.pointer = b2->fPath;
   75|    769|    return uhash_compareChars(name1, name2) && uhash_compareChars(path1, path2);
  ------------------
  |  |  993|    769|#define uhash_compareChars U_ICU_ENTRY_POINT_RENAME(uhash_compareChars)
  |  |  ------------------
  |  |  |  |  123|    769|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    769|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    769|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                  return uhash_compareChars(name1, name2) && uhash_compareChars(path1, path2);
  ------------------
  |  |  993|    769|#define uhash_compareChars U_ICU_ENTRY_POINT_RENAME(uhash_compareChars)
  |  |  ------------------
  |  |  |  |  123|    769|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    769|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    769|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (75:12): [True: 769, False: 0]
  |  Branch (75:48): [True: 769, False: 0]
  ------------------
   76|    769|}
uresbund.cpp:_ZL17findFirstExistingPKcPcS0_12UResOpenTypePaS3_S3_P10UErrorCode:
  665|    497|                  UBool *isRoot, UBool *foundParent, UBool *isDefault, UErrorCode* status) {
  666|    497|    UResourceDataEntry *r = nullptr;
  667|    497|    UBool hasRealData = false;
  668|    497|    *foundParent = true; /* we're starting with a fresh name */
  669|    497|    char origName[ULOC_FULLNAME_CAPACITY];
  670|       |
  671|    497|    uprv_strcpy(origName, name);
  ------------------
  |  |   36|    497|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|    497|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  672|    994|    while(*foundParent && !hasRealData) {
  ------------------
  |  Branch (672:11): [True: 900, False: 94]
  |  Branch (672:27): [True: 497, False: 403]
  ------------------
  673|    497|        r = init_entry(name, path, status);
  674|       |        /* Null pointer test */
  675|    497|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (675:13): [True: 0, False: 497]
  ------------------
  676|      0|            return nullptr;
  677|      0|        }
  678|    497|        *isDefault = static_cast<UBool>(uprv_strncmp(name, defaultLocale, uprv_strlen(name)) == 0);
  ------------------
  |  |   44|    497|#define uprv_strncmp(s1, s2, n) U_STANDARD_CPP_NAMESPACE strncmp(s1, s2, n)
  |  |  ------------------
  |  |  |  |  393|    497|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  679|    497|        hasRealData = static_cast<UBool>(r->fBogus == U_ZERO_ERROR);
  680|    497|        if(!hasRealData) {
  ------------------
  |  Branch (680:12): [True: 0, False: 497]
  ------------------
  681|       |            /* this entry is not real. We will discard it. */
  682|       |            /* However, the parent line for this entry is  */
  683|       |            /* not to be used - as there might be parent   */
  684|       |            /* lines in cache from previous openings that  */
  685|       |            /* are not updated yet. */
  686|      0|            r->fCountExisting--;
  687|       |            /*entryCloseInt(r);*/
  688|      0|            r = nullptr;
  689|      0|            *status = U_USING_FALLBACK_WARNING;
  690|    497|        } else {
  691|    497|            uprv_strcpy(name, r->fName); /* this is needed for supporting aliases */
  ------------------
  |  |   36|    497|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|    497|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  692|    497|        }
  693|       |
  694|    497|        *isRoot = static_cast<UBool>(uprv_strcmp(name, kRootLocaleName) == 0);
  ------------------
  |  |   38|    497|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    497|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  695|       |
  696|       |        /*Fallback data stuff*/
  697|    497|        if (!hasRealData) {
  ------------------
  |  Branch (697:13): [True: 0, False: 497]
  ------------------
  698|      0|            *foundParent = getParentLocaleID(name, origName, openType);
  699|    497|        } else {
  700|       |            // we've already found a real resource file; what we return to the caller is the parent
  701|       |            // locale ID for inheritance, which should come from chopLocale(), not getParentLocaleID()
  702|    497|            *foundParent = chopLocale(name);
  703|    497|        }
  704|    497|        if (*foundParent && *name == '\0') {
  ------------------
  |  Branch (704:13): [True: 403, False: 94]
  |  Branch (704:29): [True: 0, False: 403]
  ------------------
  705|      0|            uprv_strcpy(name, "und");
  ------------------
  |  |   36|      0|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|      0|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  706|      0|        }
  707|    497|    }
  708|    497|    return r;
  709|    497|}
uresbund.cpp:_ZL10chopLocalePc:
   83|    669|static UBool chopLocale(char *name) {
   84|    669|    char *i = uprv_strrchr(name, '_');
  ------------------
  |  |   42|    669|#define uprv_strrchr(s, c) U_STANDARD_CPP_NAMESPACE strrchr(s, c)
  |  |  ------------------
  |  |  |  |  393|    669|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
   85|       |
   86|    669|    if(i != nullptr) {
  ------------------
  |  Branch (86:8): [True: 474, False: 195]
  ------------------
   87|    474|        *i = '\0';
   88|    474|        return true;
   89|    474|    }
   90|       |
   91|    195|    return false;
   92|    669|}
uresbund.cpp:_ZL10init_entryPKcS0_P10UErrorCode:
  514|  1.04k|static UResourceDataEntry *init_entry(const char *localeID, const char *path, UErrorCode *status) {
  515|  1.04k|    UResourceDataEntry *r = nullptr;
  516|  1.04k|    UResourceDataEntry find;
  517|       |    /*int32_t hashValue;*/
  518|  1.04k|    const char *name;
  519|  1.04k|    char aliasName[100] = { 0 };
  520|  1.04k|    int32_t aliasLen = 0;
  521|       |    /*UBool isAlias = false;*/
  522|       |    /*UHashTok hashkey; */
  523|       |
  524|  1.04k|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (524:8): [True: 0, False: 1.04k]
  ------------------
  525|      0|        return nullptr;
  526|      0|    }
  527|       |
  528|       |    /* here we try to deduce the right locale name */
  529|  1.04k|    if(localeID == nullptr) { /* if localeID is nullptr, we're trying to open default locale */
  ------------------
  |  Branch (529:8): [True: 0, False: 1.04k]
  ------------------
  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|  1.04k|    } else if(*localeID == 0) { /* if localeID is "" then we try to open root locale */
  ------------------
  |  Branch (531:15): [True: 0, False: 1.04k]
  ------------------
  532|      0|        name = kRootLocaleName;
  ------------------
  |  |   18|      0|#define kRootLocaleName         "root"
  ------------------
  533|  1.04k|    } else { /* otherwise, we'll open what we're given */
  534|  1.04k|        name = localeID;
  535|  1.04k|    }
  536|       |
  537|  1.04k|    find.fName = const_cast<char*>(name);
  538|  1.04k|    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|  1.04k|    r = static_cast<UResourceDataEntry*>(uhash_get(cache, &find));
  ------------------
  |  | 1007|  1.04k|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|  1.04k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.04k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.04k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  546|  1.04k|    if(r == nullptr) {
  ------------------
  |  Branch (546:8): [True: 277, False: 769]
  ------------------
  547|       |        /* if the entry is not yet in the hash table, we'll try to construct a new one */
  548|    277|        r = static_cast<UResourceDataEntry*>(uprv_malloc(sizeof(UResourceDataEntry)));
  ------------------
  |  | 1524|    277|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    277|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    277|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    277|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  549|    277|        if(r == nullptr) {
  ------------------
  |  Branch (549:12): [True: 0, False: 277]
  ------------------
  550|      0|            *status = U_MEMORY_ALLOCATION_ERROR;
  551|      0|            return nullptr;
  552|      0|        }
  553|       |
  554|    277|        uprv_memset(r, 0, sizeof(UResourceDataEntry));
  ------------------
  |  |  100|    277|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|    277|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  555|       |        /*r->fHashKey = hashValue;*/
  556|       |
  557|    277|        setEntryName(r, name, status);
  558|    277|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (558:13): [True: 0, False: 277]
  ------------------
  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|    277|        if(path != nullptr) {
  ------------------
  |  Branch (563:12): [True: 0, False: 277]
  ------------------
  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|    277|        res_load(&(r->fData), r->fPath, r->fName, status);
  ------------------
  |  |  208|    277|#define res_load U_ICU_ENTRY_POINT_RENAME(res_load)
  |  |  ------------------
  |  |  |  |  123|    277|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    277|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    277|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  574|       |
  575|    277|        if (U_FAILURE(*status)) {
  ------------------
  |  Branch (575:13): [True: 0, False: 277]
  ------------------
  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|    277|        } else { /* if we have a regular entry */
  585|    277|            Resource aliasres;
  586|    277|            if (r->fData.usesPoolBundle) {
  ------------------
  |  Branch (586:17): [True: 274, False: 3]
  ------------------
  587|    274|                r->fPool = getPoolEntry(r->fPath, status);
  588|    274|                if (U_SUCCESS(*status)) {
  ------------------
  |  Branch (588:21): [True: 274, False: 0]
  ------------------
  589|    274|                    const int32_t *poolIndexes = r->fPool->fData.pRoot + 1;
  590|    274|                    if(r->fData.pRoot[1 + URES_INDEX_POOL_CHECKSUM] == poolIndexes[URES_INDEX_POOL_CHECKSUM]) {
  ------------------
  |  Branch (590:24): [True: 274, False: 0]
  ------------------
  591|    274|                        r->fData.poolBundleKeys = reinterpret_cast<const char*>(poolIndexes + (poolIndexes[URES_INDEX_LENGTH] & 0xff));
  592|    274|                        r->fData.poolBundleStrings = r->fPool->fData.p16BitUnits;
  593|    274|                    } else {
  594|      0|                        r->fBogus = *status = U_INVALID_FORMAT_ERROR;
  595|      0|                    }
  596|    274|                } else {
  597|      0|                    r->fBogus = *status;
  598|      0|                }
  599|    274|            }
  600|    277|            if (U_SUCCESS(*status)) {
  ------------------
  |  Branch (600:17): [True: 277, 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|    277|                aliasres = res_getResource(&(r->fData), "%%ALIAS");
  ------------------
  |  |  204|    277|#define res_getResource U_ICU_ENTRY_POINT_RENAME(res_getResource)
  |  |  ------------------
  |  |  |  |  123|    277|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    277|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    277|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  604|    277|                if (aliasres != RES_BOGUS) {
  ------------------
  |  |   65|    277|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (604:21): [True: 0, False: 277]
  ------------------
  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|    277|            }
  613|    277|        }
  614|       |
  615|    277|        {
  616|    277|            UResourceDataEntry *oldR = nullptr;
  617|    277|            if ((oldR = static_cast<UResourceDataEntry*>(uhash_get(cache, r))) == nullptr) { /* if the data is not cached */
  ------------------
  |  | 1007|    277|#define uhash_get U_ICU_ENTRY_POINT_RENAME(uhash_get)
  |  |  ------------------
  |  |  |  |  123|    277|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    277|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    277|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (617:17): [True: 277, False: 0]
  ------------------
  618|       |                /* just insert it in the cache */
  619|    277|                UErrorCode cacheStatus = U_ZERO_ERROR;
  620|    277|                uhash_put(cache, (void *)r, r, &cacheStatus);
  ------------------
  |  | 1032|    277|#define uhash_put U_ICU_ENTRY_POINT_RENAME(uhash_put)
  |  |  ------------------
  |  |  |  |  123|    277|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    277|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    277|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  621|    277|                if (U_FAILURE(cacheStatus)) {
  ------------------
  |  Branch (621:21): [True: 0, False: 277]
  ------------------
  622|      0|                    *status = cacheStatus;
  623|      0|                    free_entry(r);
  624|      0|                    r = nullptr;
  625|      0|                }
  626|    277|            } 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|    277|        }
  633|       |
  634|    277|    }
  635|  1.04k|    if(r != nullptr) {
  ------------------
  |  Branch (635:8): [True: 1.04k, False: 0]
  ------------------
  636|       |        /* return the real bundle */
  637|  1.04k|        while(r->fAlias != nullptr) {
  ------------------
  |  Branch (637:15): [True: 0, False: 1.04k]
  ------------------
  638|      0|            r = r->fAlias;
  639|      0|        }
  640|  1.04k|        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|  1.04k|        if(r->fBogus != U_ZERO_ERROR && U_SUCCESS(*status)) {
  ------------------
  |  Branch (643:12): [True: 0, False: 1.04k]
  |  Branch (643:41): [True: 0, False: 0]
  ------------------
  644|      0|             *status = r->fBogus; /* set the returning status */
  645|      0|        }
  646|  1.04k|    }
  647|  1.04k|    return r;
  648|  1.04k|}
uresbund.cpp:_ZL12setEntryNameP18UResourceDataEntryPKcP10UErrorCode:
  489|    277|static void setEntryName(UResourceDataEntry *res, const char *name, UErrorCode *status) {
  490|    277|    int32_t len = static_cast<int32_t>(uprv_strlen(name));
  ------------------
  |  |   37|    277|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    277|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  491|    277|    if(res->fName != nullptr && res->fName != res->fNameBuffer) {
  ------------------
  |  Branch (491:8): [True: 0, False: 277]
  |  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|    277|    if (len < static_cast<int32_t>(sizeof(res->fNameBuffer))) {
  ------------------
  |  Branch (494:9): [True: 61, False: 216]
  ------------------
  495|     61|        res->fName = res->fNameBuffer;
  496|     61|    }
  497|    216|    else {
  498|    216|        res->fName = static_cast<char*>(uprv_malloc(len + 1));
  ------------------
  |  | 1524|    216|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|    216|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    216|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    216|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  499|    216|    }
  500|    277|    if(res->fName == nullptr) {
  ------------------
  |  Branch (500:8): [True: 0, False: 277]
  ------------------
  501|      0|        *status = U_MEMORY_ALLOCATION_ERROR;
  502|    277|    } else {
  503|    277|        uprv_strcpy(res->fName, name);
  ------------------
  |  |   36|    277|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|    277|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  504|    277|    }
  505|    277|}
uresbund.cpp:_ZL12getPoolEntryPKcP10UErrorCode:
  651|    274|getPoolEntry(const char *path, UErrorCode *status) {
  652|    274|    UResourceDataEntry *poolBundle = init_entry(kPoolBundleName, path, status);
  ------------------
  |  |   19|    274|#define kPoolBundleName         "pool"
  ------------------
  653|    274|    if( U_SUCCESS(*status) &&
  ------------------
  |  Branch (653:9): [True: 274, False: 0]
  ------------------
  654|    274|        (poolBundle == nullptr || poolBundle->fBogus != U_ZERO_ERROR || !poolBundle->fData.isPoolBundle)
  ------------------
  |  Branch (654:10): [True: 0, False: 274]
  |  Branch (654:35): [True: 0, False: 274]
  |  Branch (654:73): [True: 0, False: 274]
  ------------------
  655|    274|    ) {
  656|      0|        *status = U_INVALID_FORMAT_ERROR;
  657|      0|    }
  658|    274|    return poolBundle;
  659|    274|}
uresbund.cpp:_ZL13mayHaveParentPc:
  297|    195|static UBool mayHaveParent(char *name) {
  298|    195|    return (name[0] != 0 && uprv_strstr("nb nn",name) != nullptr);
  ------------------
  |  |   41|    195|#define uprv_strstr(s, c) U_STANDARD_CPP_NAMESPACE strstr(s, c)
  |  |  ------------------
  |  |  |  |  393|    195|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (298:13): [True: 195, False: 0]
  |  Branch (298:29): [True: 7, False: 188]
  ------------------
  299|    195|}
uresbund.cpp:_ZL21loadParentsExceptRootRP18UResourceDataEntryPciaS2_P10UErrorCode:
  746|    407|                      UBool usingUSRData, char usrDataPath[], UErrorCode *status) {
  747|    407|    if (U_FAILURE(*status)) { return false; }
  ------------------
  |  Branch (747:9): [True: 0, False: 407]
  ------------------
  748|    407|    UBool checkParent = true;
  749|    579|    while (checkParent && t1->fParent == nullptr && !t1->fData.noFallback &&
  ------------------
  |  Branch (749:12): [True: 481, False: 98]
  |  Branch (749:27): [True: 180, False: 301]
  |  Branch (749:53): [True: 180, False: 0]
  ------------------
  750|    579|            res_getResource(&t1->fData,"%%ParentIsRoot") == RES_BOGUS) {
  ------------------
  |  |  204|    180|#define res_getResource U_ICU_ENTRY_POINT_RENAME(res_getResource)
  |  |  ------------------
  |  |  |  |  123|    180|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    180|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    180|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                          res_getResource(&t1->fData,"%%ParentIsRoot") == RES_BOGUS) {
  ------------------
  |  |   65|    180|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (750:13): [True: 180, False: 0]
  ------------------
  751|    180|        Resource parentRes = res_getResource(&t1->fData, "%%Parent");
  ------------------
  |  |  204|    180|#define res_getResource U_ICU_ENTRY_POINT_RENAME(res_getResource)
  |  |  ------------------
  |  |  |  |  123|    180|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    180|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    180|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  752|    180|        if (parentRes != RES_BOGUS) {  // An explicit parent was found.
  ------------------
  |  |   65|    180|#define RES_BOGUS 0xffffffff
  ------------------
  |  Branch (752:13): [True: 54, False: 126]
  ------------------
  753|     54|            int32_t parentLocaleLen = 0;
  754|       |            // No tracing: called during initial data loading
  755|     54|            const char16_t *parentLocaleName = res_getStringNoTrace(&(t1->fData), parentRes, &parentLocaleLen);
  ------------------
  |  |  205|     54|#define res_getStringNoTrace U_ICU_ENTRY_POINT_RENAME(res_getStringNoTrace)
  |  |  ------------------
  |  |  |  |  123|     54|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     54|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     54|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  756|     54|            if(parentLocaleName != nullptr && 0 < parentLocaleLen && parentLocaleLen < nameCapacity) {
  ------------------
  |  Branch (756:16): [True: 54, False: 0]
  |  Branch (756:47): [True: 54, False: 0]
  |  Branch (756:70): [True: 54, False: 0]
  ------------------
  757|     54|                u_UCharsToChars(parentLocaleName, name, parentLocaleLen + 1);
  ------------------
  |  |  211|     54|#define u_UCharsToChars U_ICU_ENTRY_POINT_RENAME(u_UCharsToChars)
  |  |  ------------------
  |  |  |  |  123|     54|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|     54|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|     54|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  758|     54|                if (uprv_strcmp(name, kRootLocaleName) == 0) {
  ------------------
  |  |   38|     54|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|     54|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (758:21): [True: 8, False: 46]
  ------------------
  759|      8|                    return true;
  760|      8|                }
  761|     54|            }
  762|     54|        }
  763|       |        // Insert regular parents.
  764|    172|        UErrorCode parentStatus = U_ZERO_ERROR;
  765|    172|        UResourceDataEntry *t2 = init_entry(name, t1->fPath, &parentStatus);
  766|    172|        if (U_FAILURE(parentStatus)) {
  ------------------
  |  Branch (766:13): [True: 0, False: 172]
  ------------------
  767|      0|            *status = parentStatus;
  768|      0|            return false;
  769|      0|        }
  770|    172|        UResourceDataEntry *u2 = nullptr;
  771|    172|        UErrorCode usrStatus = U_ZERO_ERROR;
  772|    172|        if (usingUSRData) {  // This code inserts user override data into the inheritance chain.
  ------------------
  |  Branch (772:13): [True: 0, False: 172]
  ------------------
  773|      0|            u2 = init_entry(name, usrDataPath, &usrStatus);
  774|       |            // If we failed due to out-of-memory, report that to the caller and exit early.
  775|      0|            if (usrStatus == U_MEMORY_ALLOCATION_ERROR) {
  ------------------
  |  Branch (775:17): [True: 0, False: 0]
  ------------------
  776|      0|                *status = usrStatus;
  777|      0|                return false;
  778|      0|            }
  779|      0|        }
  780|       |
  781|    172|        if (usingUSRData && U_SUCCESS(usrStatus) && u2->fBogus == U_ZERO_ERROR) {
  ------------------
  |  Branch (781:13): [True: 0, False: 172]
  |  Branch (781:29): [True: 0, False: 0]
  |  Branch (781:53): [True: 0, False: 0]
  ------------------
  782|      0|            t1->fParent = u2;
  783|      0|            u2->fParent = t2;
  784|    172|        } else {
  785|    172|            t1->fParent = t2;
  786|    172|            if (usingUSRData) {
  ------------------
  |  Branch (786:17): [True: 0, False: 172]
  ------------------
  787|       |                // The USR override data wasn't found, set it to be deleted.
  788|      0|                u2->fCountExisting = 0;
  789|      0|            }
  790|    172|        }
  791|    172|        t1 = t2;
  792|    172|        checkParent = chopLocale(name) || mayHaveParent(name);
  ------------------
  |  Branch (792:23): [True: 71, False: 101]
  |  Branch (792:43): [True: 3, False: 98]
  ------------------
  793|    172|    }
  794|    399|    return true;
  795|    407|}
uresbund.cpp:_ZL16insertRootBundleRP18UResourceDataEntryP10UErrorCode:
  798|    101|insertRootBundle(UResourceDataEntry *&t1, UErrorCode *status) {
  799|    101|    if (U_FAILURE(*status)) { return false; }
  ------------------
  |  Branch (799:9): [True: 0, False: 101]
  ------------------
  800|    101|    UErrorCode parentStatus = U_ZERO_ERROR;
  801|    101|    UResourceDataEntry *t2 = init_entry(kRootLocaleName, t1->fPath, &parentStatus);
  ------------------
  |  |   18|    101|#define kRootLocaleName         "root"
  ------------------
  802|    101|    if (U_FAILURE(parentStatus)) {
  ------------------
  |  Branch (802:9): [True: 0, False: 101]
  ------------------
  803|      0|        *status = parentStatus;
  804|      0|        return false;
  805|      0|    }
  806|    101|    t1->fParent = t2;
  807|    101|    t1 = t2;
  808|    101|    return true;
  809|    101|}
uresbund.cpp:_ZL15entryOpenDirectPKcS0_P10UErrorCode:
  966|      2|entryOpenDirect(const char* path, const char* localeID, UErrorCode* status) {
  967|      2|    initCache(status);
  968|      2|    if(U_FAILURE(*status)) {
  ------------------
  |  Branch (968:8): [True: 0, False: 2]
  ------------------
  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|      2|    if (localeID == nullptr) {
  ------------------
  |  Branch (974:9): [True: 0, False: 2]
  ------------------
  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|      2|    } else if (*localeID == 0) {
  ------------------
  |  Branch (976:16): [True: 0, False: 2]
  ------------------
  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|      2|    Mutex lock(&resbMutex);
  982|       |
  983|       |    // findFirstExisting() without fallbacks.
  984|      2|    UResourceDataEntry *r = init_entry(localeID, path, status);
  985|      2|    if(U_SUCCESS(*status)) {
  ------------------
  |  Branch (985:8): [True: 2, False: 0]
  ------------------
  986|      2|        if(r->fBogus != U_ZERO_ERROR) {
  ------------------
  |  Branch (986:12): [True: 0, False: 2]
  ------------------
  987|      0|            r->fCountExisting--;
  988|      0|            r = nullptr;
  989|      0|        }
  990|      2|    } 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|      2|    UResourceDataEntry *t1 = r;
  997|      2|    if(r != nullptr && uprv_strcmp(localeID, kRootLocaleName) != 0 &&  // not root
  ------------------
  |  |   38|      2|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|      2|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (997:8): [True: 2, False: 0]
  |  Branch (997:24): [True: 2, False: 0]
  ------------------
  998|      2|            r->fParent == nullptr && !r->fData.noFallback &&
  ------------------
  |  Branch (998:13): [True: 2, False: 0]
  |  Branch (998:38): [True: 0, False: 2]
  ------------------
  999|      2|            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|      2|    if(r != nullptr) {
  ------------------
  |  Branch (1013:8): [True: 2, False: 0]
  ------------------
 1014|       |        // TODO: Does this ever loop?
 1015|      2|        while(t1->fParent != nullptr) {
  ------------------
  |  Branch (1015:15): [True: 0, False: 2]
  ------------------
 1016|      0|            t1->fParent->fCountExisting++;
 1017|      0|            t1 = t1->fParent;
 1018|      0|        }
 1019|      2|    }
 1020|      2|    return r;
 1021|      2|}

res_load_78:
  260|    277|         const char *path, const char *name, UErrorCode *errorCode) {
  261|    277|    UVersionInfo formatVersion;
  262|       |
  263|    277|    uprv_memset(pResData, 0, sizeof(ResourceData));
  ------------------
  |  |  100|    277|#define uprv_memset(buffer, mark, size) U_STANDARD_CPP_NAMESPACE memset(buffer, mark, size)
  |  |  ------------------
  |  |  |  |  393|    277|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  264|       |
  265|       |    /* load the ResourceBundle file */
  266|    277|    pResData->data=udata_openChoice(path, "res", name, isAcceptable, formatVersion, errorCode);
  ------------------
  |  |  894|    277|#define udata_openChoice U_ICU_ENTRY_POINT_RENAME(udata_openChoice)
  |  |  ------------------
  |  |  |  |  123|    277|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    277|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    277|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  267|    277|    if(U_FAILURE(*errorCode)) {
  ------------------
  |  Branch (267:8): [True: 0, False: 277]
  ------------------
  268|      0|        return;
  269|      0|    }
  270|       |
  271|       |    /* get its memory and initialize *pResData */
  272|    277|    res_init(pResData, formatVersion, udata_getMemory(pResData->data), -1, errorCode);
  ------------------
  |  |  891|    277|#define udata_getMemory U_ICU_ENTRY_POINT_RENAME(udata_getMemory)
  |  |  ------------------
  |  |  |  |  123|    277|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    277|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    277|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  273|    277|}
res_getPublicType_78:
  306|  4.29k|res_getPublicType(Resource res) {
  307|  4.29k|    return (UResType)gPublicTypes[RES_GET_TYPE(res)];
  ------------------
  |  |   68|  4.29k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  308|  4.29k|}
res_getStringNoTrace_78:
  311|  3.33k|res_getStringNoTrace(const ResourceData *pResData, Resource res, int32_t *pLength) {
  312|  3.33k|    const char16_t *p;
  313|  3.33k|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|  3.33k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  314|  3.33k|    int32_t length;
  315|  3.33k|    if(RES_GET_TYPE(res)==URES_STRING_V2) {
  ------------------
  |  |   68|  3.33k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (315:8): [True: 3.33k, False: 0]
  ------------------
  316|  3.33k|        int32_t first;
  317|  3.33k|        if((int32_t)offset<pResData->poolStringIndexLimit) {
  ------------------
  |  Branch (317:12): [True: 1.52k, False: 1.81k]
  ------------------
  318|  1.52k|            p=(const char16_t *)pResData->poolBundleStrings+offset;
  319|  1.81k|        } else {
  320|  1.81k|            p=(const char16_t *)pResData->p16BitUnits+(offset-pResData->poolStringIndexLimit);
  321|  1.81k|        }
  322|  3.33k|        first=*p;
  323|  3.33k|        if(!U16_IS_TRAIL(first)) {
  ------------------
  |  |   67|  3.33k|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  ------------------
  |  Branch (323:12): [True: 3.32k, False: 5]
  ------------------
  324|  3.32k|            length=u_strlen(p);
  ------------------
  |  |  393|  3.32k|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  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
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  325|  3.32k|        } else if(first<0xdfef) {
  ------------------
  |  Branch (325:19): [True: 5, False: 0]
  ------------------
  326|      5|            length=first&0x3ff;
  327|      5|            ++p;
  328|      5|        } 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|  3.33k|    } else if(res==offset) /* RES_GET_TYPE(res)==URES_STRING */ {
  ------------------
  |  Branch (335:15): [True: 0, False: 0]
  ------------------
  336|      0|        const int32_t *p32= res==0 ? &gEmptyString.length : pResData->pRoot+res;
  ------------------
  |  Branch (336:29): [True: 0, False: 0]
  ------------------
  337|      0|        length=*p32++;
  338|      0|        p=(const char16_t *)p32;
  339|      0|    } else {
  340|      0|        p=nullptr;
  341|      0|        length=0;
  342|      0|    }
  343|  3.33k|    if(pLength) {
  ------------------
  |  Branch (343:8): [True: 2.04k, False: 1.29k]
  ------------------
  344|  2.04k|        *pLength=length;
  345|  2.04k|    }
  346|  3.33k|    return p;
  347|  3.33k|}
res_getAlias_78:
  420|    280|res_getAlias(const ResourceData *pResData, Resource res, int32_t *pLength) {
  421|    280|    const char16_t *p;
  422|    280|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|    280|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  423|    280|    int32_t length;
  424|    280|    if(RES_GET_TYPE(res)==URES_ALIAS) {
  ------------------
  |  |   68|    280|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  |  Branch (424:8): [True: 280, False: 0]
  ------------------
  425|    280|        const int32_t *p32= offset==0 ? &gEmptyString.length : pResData->pRoot+offset;
  ------------------
  |  Branch (425:29): [True: 0, False: 280]
  ------------------
  426|    280|        length=*p32++;
  427|    280|        p=(const char16_t *)p32;
  428|    280|    } else {
  429|      0|        p=nullptr;
  430|      0|        length=0;
  431|      0|    }
  432|    280|    if(pLength) {
  ------------------
  |  Branch (432:8): [True: 280, False: 0]
  ------------------
  433|    280|        *pLength=length;
  434|    280|    }
  435|    280|    return p;
  436|    280|}
res_countArrayItems_78:
  477|  4.15k|res_countArrayItems(const ResourceData *pResData, Resource res) {
  478|  4.15k|    uint32_t offset=RES_GET_OFFSET(res);
  ------------------
  |  |   69|  4.15k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  479|  4.15k|    switch(RES_GET_TYPE(res)) {
  ------------------
  |  |   68|  4.15k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  480|      0|    case URES_STRING:
  ------------------
  |  Branch (480:5): [True: 0, False: 4.15k]
  ------------------
  481|      0|    case URES_STRING_V2:
  ------------------
  |  Branch (481:5): [True: 0, False: 4.15k]
  ------------------
  482|      0|    case URES_BINARY:
  ------------------
  |  Branch (482:5): [True: 0, False: 4.15k]
  ------------------
  483|      0|    case URES_ALIAS:
  ------------------
  |  Branch (483:5): [True: 0, False: 4.15k]
  ------------------
  484|      0|    case URES_INT:
  ------------------
  |  Branch (484:5): [True: 0, False: 4.15k]
  ------------------
  485|      0|    case URES_INT_VECTOR:
  ------------------
  |  Branch (485:5): [True: 0, False: 4.15k]
  ------------------
  486|      0|        return 1;
  487|      0|    case URES_ARRAY:
  ------------------
  |  Branch (487:5): [True: 0, False: 4.15k]
  ------------------
  488|      0|    case URES_TABLE32:
  ------------------
  |  Branch (488:5): [True: 0, False: 4.15k]
  ------------------
  489|      0|        return offset==0 ? 0 : *(pResData->pRoot+offset);
  ------------------
  |  Branch (489:16): [True: 0, False: 0]
  ------------------
  490|  1.85k|    case URES_TABLE:
  ------------------
  |  Branch (490:5): [True: 1.85k, False: 2.30k]
  ------------------
  491|  1.85k|        return offset==0 ? 0 : *((const uint16_t *)(pResData->pRoot+offset));
  ------------------
  |  Branch (491:16): [True: 187, False: 1.66k]
  ------------------
  492|      0|    case URES_ARRAY16:
  ------------------
  |  Branch (492:5): [True: 0, False: 4.15k]
  ------------------
  493|  2.30k|    case URES_TABLE16:
  ------------------
  |  Branch (493:5): [True: 2.30k, False: 1.85k]
  ------------------
  494|  2.30k|        return pResData->p16BitUnits[offset];
  495|      0|    default:
  ------------------
  |  Branch (495:5): [True: 0, False: 4.15k]
  ------------------
  496|      0|        return 0;
  497|  4.15k|    }
  498|  4.15k|}
_ZN6icu_7817ResourceDataValueD2Ev:
  502|    778|ResourceDataValue::~ResourceDataValue() {}
_ZNK6icu_7817ResourceDataValue7getTypeEv:
  504|  4.29k|UResType ResourceDataValue::getType() const {
  505|  4.29k|    return res_getPublicType(res);
  ------------------
  |  |  203|  4.29k|#define res_getPublicType U_ICU_ENTRY_POINT_RENAME(res_getPublicType)
  |  |  ------------------
  |  |  |  |  123|  4.29k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  4.29k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  4.29k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  506|  4.29k|}
_ZNK6icu_7817ResourceDataValue9getStringERiR10UErrorCode:
  508|  1.98k|const char16_t *ResourceDataValue::getString(int32_t &length, UErrorCode &errorCode) const {
  509|  1.98k|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (509:8): [True: 0, False: 1.98k]
  ------------------
  510|      0|        return nullptr;
  511|      0|    }
  512|  1.98k|    const char16_t *s = res_getString(fTraceInfo, &getData(), res, &length);
  513|  1.98k|    if(s == nullptr) {
  ------------------
  |  Branch (513:8): [True: 0, False: 1.98k]
  ------------------
  514|      0|        errorCode = U_RESOURCE_TYPE_MISMATCH;
  515|      0|    }
  516|  1.98k|    return s;
  517|  1.98k|}
_ZNK6icu_7817ResourceDataValue14getAliasStringERiR10UErrorCode:
  519|    280|const char16_t *ResourceDataValue::getAliasString(int32_t &length, UErrorCode &errorCode) const {
  520|    280|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (520:8): [True: 0, False: 280]
  ------------------
  521|      0|        return nullptr;
  522|      0|    }
  523|    280|    const char16_t *s = res_getAlias(&getData(), res, &length);
  ------------------
  |  |  199|    280|#define res_getAlias U_ICU_ENTRY_POINT_RENAME(res_getAlias)
  |  |  ------------------
  |  |  |  |  123|    280|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    280|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    280|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  524|    280|    if(s == nullptr) {
  ------------------
  |  Branch (524:8): [True: 0, False: 280]
  ------------------
  525|      0|        errorCode = U_RESOURCE_TYPE_MISMATCH;
  526|      0|    }
  527|    280|    return s;
  528|    280|}
_ZNK6icu_7817ResourceDataValue8getTableER10UErrorCode:
  598|  1.32k|ResourceTable ResourceDataValue::getTable(UErrorCode &errorCode) const {
  599|  1.32k|    if(U_FAILURE(errorCode)) {
  ------------------
  |  Branch (599:8): [True: 0, False: 1.32k]
  ------------------
  600|      0|        return {};
  601|      0|    }
  602|  1.32k|    const uint16_t *keys16 = nullptr;
  603|  1.32k|    const int32_t *keys32 = nullptr;
  604|  1.32k|    const uint16_t *items16 = nullptr;
  605|  1.32k|    const Resource *items32 = nullptr;
  606|  1.32k|    uint32_t offset = RES_GET_OFFSET(res);
  ------------------
  |  |   69|  1.32k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  607|  1.32k|    int32_t length = 0;
  608|  1.32k|    switch(RES_GET_TYPE(res)) {
  ------------------
  |  |   68|  1.32k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  609|    339|    case URES_TABLE:
  ------------------
  |  Branch (609:5): [True: 339, False: 983]
  ------------------
  610|    339|        if (offset != 0) {  // empty if offset==0
  ------------------
  |  Branch (610:13): [True: 339, False: 0]
  ------------------
  611|    339|            keys16 = reinterpret_cast<const uint16_t*>(getData().pRoot + offset);
  612|    339|            length = *keys16++;
  613|    339|            items32 = reinterpret_cast<const Resource*>(keys16 + length + (~length & 1));
  614|    339|        }
  615|    339|        break;
  616|    983|    case URES_TABLE16:
  ------------------
  |  Branch (616:5): [True: 983, False: 339]
  ------------------
  617|    983|        keys16 = getData().p16BitUnits+offset;
  618|    983|        length = *keys16++;
  619|    983|        items16 = keys16 + length;
  620|    983|        break;
  621|      0|    case URES_TABLE32:
  ------------------
  |  Branch (621:5): [True: 0, False: 1.32k]
  ------------------
  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: 1.32k]
  ------------------
  629|      0|        errorCode = U_RESOURCE_TYPE_MISMATCH;
  630|      0|        return {};
  631|  1.32k|    }
  632|  1.32k|    return ResourceTable(keys16, keys32, items16, items32, length, fTraceInfo);
  633|  1.32k|}
res_getTableItemByKey_78:
  713|  5.42k|                      int32_t *indexR, const char **key) {
  714|  5.42k|    uint32_t offset=RES_GET_OFFSET(table);
  ------------------
  |  |   69|  5.42k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  715|  5.42k|    int32_t length;
  716|  5.42k|    int32_t idx;
  717|  5.42k|    if(key == nullptr || *key == nullptr) {
  ------------------
  |  Branch (717:8): [True: 0, False: 5.42k]
  |  Branch (717:26): [True: 0, False: 5.42k]
  ------------------
  718|      0|        return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  719|      0|    }
  720|  5.42k|    switch(RES_GET_TYPE(table)) {
  ------------------
  |  |   68|  5.42k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  721|  4.05k|    case URES_TABLE: {
  ------------------
  |  Branch (721:5): [True: 4.05k, False: 1.36k]
  ------------------
  722|  4.05k|        if (offset!=0) { /* empty if offset==0 */
  ------------------
  |  Branch (722:13): [True: 3.56k, False: 495]
  ------------------
  723|  3.56k|            const uint16_t *p= (const uint16_t *)(pResData->pRoot+offset);
  724|  3.56k|            length=*p++;
  725|  3.56k|            *indexR=idx=_res_findTableItem(pResData, p, length, *key, key);
  726|  3.56k|            if(idx>=0) {
  ------------------
  |  Branch (726:16): [True: 2.68k, False: 876]
  ------------------
  727|  2.68k|                const Resource *p32=(const Resource *)(p+length+(~length&1));
  728|  2.68k|                return p32[idx];
  729|  2.68k|            }
  730|  3.56k|        }
  731|  1.37k|        break;
  732|  4.05k|    }
  733|  1.37k|    case URES_TABLE16: {
  ------------------
  |  Branch (733:5): [True: 1.36k, False: 4.05k]
  ------------------
  734|  1.36k|        const uint16_t *p=pResData->p16BitUnits+offset;
  735|  1.36k|        length=*p++;
  736|  1.36k|        *indexR=idx=_res_findTableItem(pResData, p, length, *key, key);
  737|  1.36k|        if(idx>=0) {
  ------------------
  |  Branch (737:12): [True: 1.30k, False: 65]
  ------------------
  738|  1.30k|            return makeResourceFrom16(pResData, p[length+idx]);
  739|  1.30k|        }
  740|     65|        break;
  741|  1.36k|    }
  742|     65|    case URES_TABLE32: {
  ------------------
  |  Branch (742:5): [True: 0, False: 5.42k]
  ------------------
  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: 5.42k]
  ------------------
  754|      0|        break;
  755|  5.42k|    }
  756|  1.43k|    return RES_BOGUS;
  ------------------
  |  |   65|  1.43k|#define RES_BOGUS 0xffffffff
  ------------------
  757|  5.42k|}
res_getTableItemByIndex_78:
  761|  1.29k|                        int32_t indexR, const char **key) {
  762|  1.29k|    uint32_t offset=RES_GET_OFFSET(table);
  ------------------
  |  |   69|  1.29k|#define RES_GET_OFFSET(res) ((res)&0x0fffffff)
  ------------------
  763|  1.29k|    int32_t length;
  764|  1.29k|    if (indexR < 0) {
  ------------------
  |  Branch (764:9): [True: 0, False: 1.29k]
  ------------------
  765|      0|        return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  766|      0|    }
  767|  1.29k|    switch(RES_GET_TYPE(table)) {
  ------------------
  |  |   68|  1.29k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  768|  1.29k|    case URES_TABLE: {
  ------------------
  |  Branch (768:5): [True: 1.29k, False: 0]
  ------------------
  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|      0|    case URES_TABLE16: {
  ------------------
  |  Branch (782:5): [True: 0, False: 1.29k]
  ------------------
  783|      0|        const uint16_t *p=pResData->p16BitUnits+offset;
  784|      0|        length=*p++;
  785|      0|        if(indexR<length) {
  ------------------
  |  Branch (785:12): [True: 0, False: 0]
  ------------------
  786|      0|            if(key!=nullptr) {
  ------------------
  |  Branch (786:16): [True: 0, False: 0]
  ------------------
  787|      0|                *key=RES_GET_KEY16(pResData, p[indexR]);
  ------------------
  |  |   44|      0|    ((keyOffset)<(pResData)->localKeyLimit ? \
  |  |  ------------------
  |  |  |  Branch (44:6): [True: 0, False: 0]
  |  |  ------------------
  |  |   45|      0|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   46|      0|        (pResData)->poolBundleKeys+(keyOffset)-(pResData)->localKeyLimit)
  ------------------
  788|      0|            }
  789|      0|            return makeResourceFrom16(pResData, p[length+indexR]);
  790|      0|        }
  791|      0|        break;
  792|      0|    }
  793|      0|    case URES_TABLE32: {
  ------------------
  |  Branch (793:5): [True: 0, False: 1.29k]
  ------------------
  794|      0|        if (offset != 0) { /* empty if offset==0 */
  ------------------
  |  Branch (794:13): [True: 0, False: 0]
  ------------------
  795|      0|            const int32_t *p= pResData->pRoot+offset;
  796|      0|            length=*p++;
  797|      0|            if(indexR<length) {
  ------------------
  |  Branch (797:16): [True: 0, False: 0]
  ------------------
  798|      0|                if(key!=nullptr) {
  ------------------
  |  Branch (798:20): [True: 0, False: 0]
  ------------------
  799|      0|                    *key=RES_GET_KEY32(pResData, p[indexR]);
  ------------------
  |  |   49|      0|    ((keyOffset)>=0 ? \
  |  |  ------------------
  |  |  |  Branch (49:6): [True: 0, False: 0]
  |  |  ------------------
  |  |   50|      0|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   51|      0|        (pResData)->poolBundleKeys+((keyOffset)&0x7fffffff))
  ------------------
  800|      0|                }
  801|      0|                return (Resource)p[length+indexR];
  802|      0|            }
  803|      0|        }
  804|      0|        break;
  805|      0|    }
  806|      0|    default:
  ------------------
  |  Branch (806:5): [True: 0, False: 1.29k]
  ------------------
  807|      0|        break;
  808|  1.29k|    }
  809|      0|    return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  810|  1.29k|}
res_getResource_78:
  813|    637|res_getResource(const ResourceData *pResData, const char *key) {
  814|    637|    const char *realKey=key;
  815|    637|    int32_t idx;
  816|    637|    return res_getTableItemByKey(pResData, pResData->rootRes, &idx, &realKey);
  ------------------
  |  |  207|    637|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|    637|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    637|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    637|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  817|    637|}
_ZNK6icu_7813ResourceTable14getKeyAndValueEiRPKcRNS_13ResourceValueE:
  821|  6.75k|                                         const char *&key, icu::ResourceValue &value) const {
  822|  6.75k|    if(0 <= i && i < length) {
  ------------------
  |  Branch (822:8): [True: 6.75k, False: 0]
  |  Branch (822:18): [True: 5.43k, False: 1.32k]
  ------------------
  823|  5.43k|        icu::ResourceDataValue &rdValue = static_cast<icu::ResourceDataValue &>(value);
  824|  5.43k|        if (keys16 != nullptr) {
  ------------------
  |  Branch (824:13): [True: 5.43k, False: 0]
  ------------------
  825|  5.43k|            key = RES_GET_KEY16(&rdValue.getData(), keys16[i]);
  ------------------
  |  |   44|  5.43k|    ((keyOffset)<(pResData)->localKeyLimit ? \
  |  |  ------------------
  |  |  |  Branch (44:6): [True: 941, False: 4.49k]
  |  |  ------------------
  |  |   45|  5.43k|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   46|  5.43k|        (pResData)->poolBundleKeys+(keyOffset)-(pResData)->localKeyLimit)
  ------------------
  826|  5.43k|        } 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|  5.43k|        Resource res;
  830|  5.43k|        if (items16 != nullptr) {
  ------------------
  |  Branch (830:13): [True: 4.08k, False: 1.34k]
  ------------------
  831|  4.08k|            res = makeResourceFrom16(&rdValue.getData(), items16[i]);
  832|  4.08k|        } else {
  833|  1.34k|            res = items32[i];
  834|  1.34k|        }
  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|  5.43k|        rdValue.setResource(res, ResourceTracer(fTraceInfo, key));
  840|  5.43k|        return true;
  841|  5.43k|    }
  842|  1.32k|    return false;
  843|  6.75k|}
res_findResource_78:
  921|    853|res_findResource(const ResourceData *pResData, Resource r, char** path, const char** key) {
  922|    853|  char *pathP = *path, *nextSepP = *path;
  923|    853|  char *closeIndex = nullptr;
  924|    853|  Resource t1 = r;
  925|    853|  Resource t2;
  926|    853|  int32_t indexR = 0;
  927|    853|  UResType type = (UResType)RES_GET_TYPE(t1);
  ------------------
  |  |   68|    853|#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|    853|  if(!uprv_strlen(pathP)) {
  ------------------
  |  |   37|    853|#define uprv_strlen(str) U_STANDARD_CPP_NAMESPACE strlen(str)
  |  |  ------------------
  |  |  |  |  393|    853|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (930:6): [True: 0, False: 853]
  ------------------
  931|      0|      return r;
  932|      0|  }
  933|       |
  934|       |  /* one needs to have an aggregate resource in order to search in it */
  935|    853|  if(!URES_IS_CONTAINER(type)) {
  ------------------
  |  |   85|    853|#define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   84|  1.70k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (84:30): [True: 847, False: 6]
  |  |  |  |  |  Branch (84:61): [True: 6, 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|  1.99k|  while(nextSepP && *pathP && t1 != RES_BOGUS && URES_IS_CONTAINER(type)) {
  ------------------
  |  |   65|  3.17k|#define RES_BOGUS 0xffffffff
  ------------------
                while(nextSepP && *pathP && t1 != RES_BOGUS && URES_IS_CONTAINER(type)) {
  ------------------
  |  |   85|  1.14k|#define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   84|  2.28k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (84:30): [True: 1.13k, False: 6]
  |  |  |  |  |  Branch (84:61): [True: 6, False: 0]
  |  |  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  |  |               #define URES_IS_CONTAINER(type) (URES_IS_TABLE(type) || URES_IS_ARRAY(type))
  |  |  ------------------
  |  |  |  |   83|      0|#define URES_IS_ARRAY(type) ((int32_t)(type)==URES_ARRAY || (int32_t)(type)==URES_ARRAY16)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (83:30): [True: 0, False: 0]
  |  |  |  |  |  Branch (83:61): [True: 0, False: 0]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (939:9): [True: 1.19k, False: 801]
  |  Branch (939:21): [True: 1.17k, False: 14]
  |  Branch (939:31): [True: 1.14k, False: 38]
  ------------------
  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|  1.14k|    nextSepP = uprv_strchr(pathP, RES_PATH_SEPARATOR);
  ------------------
  |  |   40|  1.14k|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|  1.14k|#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|  1.14k|    if(nextSepP != nullptr) {
  ------------------
  |  Branch (947:8): [True: 339, False: 801]
  ------------------
  948|    339|      if(nextSepP == pathP) {
  ------------------
  |  Branch (948:10): [True: 0, False: 339]
  ------------------
  949|       |        // Empty key string.
  950|      0|        return RES_BOGUS;
  ------------------
  |  |   65|      0|#define RES_BOGUS 0xffffffff
  ------------------
  951|      0|      }
  952|    339|      *nextSepP = 0; /* overwrite the separator with a NUL to terminate the key */
  953|    339|      *path = nextSepP+1;
  954|    801|    } else {
  955|    801|      *path = uprv_strchr(pathP, 0);
  ------------------
  |  |   40|    801|#define uprv_strchr(s, c) U_STANDARD_CPP_NAMESPACE strchr(s, c)
  |  |  ------------------
  |  |  |  |  393|    801|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  956|    801|    }
  957|       |
  958|       |    /* if the resource is a table */
  959|       |    /* try the key based access */
  960|  1.14k|    if(URES_IS_TABLE(type)) {
  ------------------
  |  |   84|  1.14k|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 1.13k, False: 6]
  |  |  |  Branch (84:61): [True: 6, False: 0]
  |  |  |  Branch (84:94): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  961|  1.14k|      *key = pathP;
  962|  1.14k|      t2 = res_getTableItemByKey(pResData, t1, &indexR, key);
  ------------------
  |  |  207|  1.14k|#define res_getTableItemByKey U_ICU_ENTRY_POINT_RENAME(res_getTableItemByKey)
  |  |  ------------------
  |  |  |  |  123|  1.14k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.14k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.14k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  963|  1.14k|    } 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|  1.14k|    t1 = t2;
  975|  1.14k|    type = (UResType)RES_GET_TYPE(t1);
  ------------------
  |  |   68|  1.14k|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  976|       |    /* position pathP to next resource key/index */
  977|  1.14k|    pathP = *path;
  978|  1.14k|  }
  979|       |
  980|    853|  return t1;
  981|    853|}
uresdata.cpp:_ZL12isAcceptablePvPKcS1_PK9UDataInfo:
  141|    277|             const UDataInfo *pInfo) {
  142|    277|    uprv_memcpy(context, pInfo->formatVersion, 4);
  ------------------
  |  |   42|    277|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|    277|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|    277|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|    277|    _Pragma("clang diagnostic push") \
  |  |   45|    277|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|    277|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|    277|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|    277|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|    277|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|    277|    _Pragma("clang diagnostic pop") \
  |  |   49|    277|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|    277|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|    277|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|    277|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  143|    277|    return
  144|    277|        pInfo->size>=20 &&
  ------------------
  |  Branch (144:9): [True: 277, False: 0]
  ------------------
  145|    277|        pInfo->isBigEndian==U_IS_BIG_ENDIAN &&
  ------------------
  |  |  353|    554|#   define U_IS_BIG_ENDIAN (__BYTE_ORDER__ == __ORDER_BIG_ENDIAN__)
  ------------------
  |  Branch (145:9): [True: 277, False: 0]
  ------------------
  146|    277|        pInfo->charsetFamily==U_CHARSET_FAMILY &&
  ------------------
  |  |  588|    277|#   define U_CHARSET_FAMILY U_ASCII_FAMILY
  |  |  ------------------
  |  |  |  |  531|    554|#define U_ASCII_FAMILY 0
  |  |  ------------------
  ------------------
  |  Branch (146:9): [True: 277, False: 0]
  ------------------
  147|    277|        pInfo->sizeofUChar==U_SIZEOF_UCHAR &&
  ------------------
  |  |  352|    554|#define U_SIZEOF_UCHAR 2
  ------------------
  |  Branch (147:9): [True: 277, False: 0]
  ------------------
  148|    277|        pInfo->dataFormat[0]==0x52 &&   /* dataFormat="ResB" */
  ------------------
  |  Branch (148:9): [True: 277, False: 0]
  ------------------
  149|    277|        pInfo->dataFormat[1]==0x65 &&
  ------------------
  |  Branch (149:9): [True: 277, False: 0]
  ------------------
  150|    277|        pInfo->dataFormat[2]==0x73 &&
  ------------------
  |  Branch (150:9): [True: 277, False: 0]
  ------------------
  151|    277|        pInfo->dataFormat[3]==0x42 &&
  ------------------
  |  Branch (151:9): [True: 277, False: 0]
  ------------------
  152|    277|        (1<=pInfo->formatVersion[0] && pInfo->formatVersion[0]<=3);
  ------------------
  |  Branch (152:10): [True: 277, False: 0]
  |  Branch (152:40): [True: 277, False: 0]
  ------------------
  153|    277|}
uresdata.cpp:_ZL8res_initP12ResourceDataPhPKviP10UErrorCode:
  160|    277|         UErrorCode *errorCode) {
  161|    277|    UResType rootType;
  162|       |
  163|       |    /* get the root resource */
  164|    277|    pResData->pRoot = static_cast<const int32_t*>(inBytes);
  165|    277|    pResData->rootRes = static_cast<Resource>(*pResData->pRoot);
  166|    277|    pResData->p16BitUnits=&gEmpty16;
  167|       |
  168|       |    /* formatVersion 1.1 must have a root item and at least 5 indexes */
  169|    277|    if(length>=0 && (length/4)<((formatVersion[0]==1 && formatVersion[1]==0) ? 1 : 1+5)) {
  ------------------
  |  Branch (169:8): [True: 0, False: 277]
  |  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|    277|    rootType = static_cast<UResType>(RES_GET_TYPE(pResData->rootRes));
  ------------------
  |  |   68|    277|#define RES_GET_TYPE(res) ((int32_t)((res)>>28UL))
  ------------------
  177|    277|    if(!URES_IS_TABLE(rootType)) {
  ------------------
  |  |   84|    277|#define URES_IS_TABLE(type) ((int32_t)(type)==URES_TABLE || (int32_t)(type)==URES_TABLE16 || (int32_t)(type)==URES_TABLE32)
  |  |  ------------------
  |  |  |  Branch (84:30): [True: 263, False: 14]
  |  |  |  Branch (84:61): [True: 14, 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|    277|    if(formatVersion[0]==1 && formatVersion[1]==0) {
  ------------------
  |  Branch (183:8): [True: 0, False: 277]
  |  Branch (183:31): [True: 0, False: 0]
  ------------------
  184|      0|        pResData->localKeyLimit=0x10000;  /* greater than any 16-bit key string offset */
  185|    277|    } else {
  186|       |        /* bundles with formatVersion 1.1 and later contain an indexes[] array */
  187|    277|        const int32_t *indexes=pResData->pRoot+1;
  188|    277|        int32_t indexLength=indexes[URES_INDEX_LENGTH]&0xff;
  189|    277|        if(indexLength<=URES_INDEX_MAX_TABLE_LENGTH) {
  ------------------
  |  Branch (189:12): [True: 0, False: 277]
  ------------------
  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|    277|        if( length>=0 &&
  ------------------
  |  Branch (194:13): [True: 0, False: 277]
  ------------------
  195|    277|            (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|    277|        ) {
  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|    277|        if(indexes[URES_INDEX_KEYS_TOP]>(1+indexLength)) {
  ------------------
  |  Branch (202:12): [True: 3, False: 274]
  ------------------
  203|      3|            pResData->localKeyLimit=indexes[URES_INDEX_KEYS_TOP]<<2;
  204|      3|        }
  205|    277|        if(formatVersion[0]>=3) {
  ------------------
  |  Branch (205:12): [True: 182, False: 95]
  ------------------
  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|    182|            pResData->poolStringIndexLimit = static_cast<int32_t>(static_cast<uint32_t>(indexes[URES_INDEX_LENGTH]) >> 8);
  211|    182|        }
  212|    277|        if(indexLength>URES_INDEX_ATTRIBUTES) {
  ------------------
  |  Branch (212:12): [True: 277, False: 0]
  ------------------
  213|    277|            int32_t att=indexes[URES_INDEX_ATTRIBUTES];
  214|    277|            pResData->noFallback = static_cast<UBool>(att & URES_ATT_NO_FALLBACK);
  ------------------
  |  |  148|    277|#define URES_ATT_NO_FALLBACK 1
  ------------------
  215|    277|            pResData->isPoolBundle = static_cast<UBool>((att & URES_ATT_IS_POOL_BUNDLE) != 0);
  ------------------
  |  |  156|    277|#define URES_ATT_IS_POOL_BUNDLE 2
  ------------------
  216|    277|            pResData->usesPoolBundle = static_cast<UBool>((att & URES_ATT_USES_POOL_BUNDLE) != 0);
  ------------------
  |  |  157|    277|#define URES_ATT_USES_POOL_BUNDLE 4
  ------------------
  217|    277|            pResData->poolStringIndexLimit|=(att&0xf000)<<12;  // bits 15..12 -> 27..24
  218|    277|            pResData->poolStringIndex16Limit = static_cast<int32_t>(static_cast<uint32_t>(att) >> 16);
  219|    277|        }
  220|    277|        if((pResData->isPoolBundle || pResData->usesPoolBundle) && indexLength<=URES_INDEX_POOL_CHECKSUM) {
  ------------------
  |  Branch (220:13): [True: 1, False: 276]
  |  Branch (220:39): [True: 274, False: 2]
  |  Branch (220:68): [True: 0, False: 275]
  ------------------
  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|    277|        if( indexLength>URES_INDEX_16BIT_TOP &&
  ------------------
  |  Branch (225:13): [True: 277, False: 0]
  ------------------
  226|    277|            indexes[URES_INDEX_16BIT_TOP]>indexes[URES_INDEX_KEYS_TOP]
  ------------------
  |  Branch (226:13): [True: 277, False: 0]
  ------------------
  227|    277|        ) {
  228|    277|            pResData->p16BitUnits = reinterpret_cast<const uint16_t*>(pResData->pRoot + indexes[URES_INDEX_KEYS_TOP]);
  229|    277|        }
  230|    277|    }
  231|       |
  232|    277|    if(formatVersion[0]==1 || U_CHARSET_FAMILY==U_ASCII_FAMILY) {
  ------------------
  |  |  588|    277|#   define U_CHARSET_FAMILY U_ASCII_FAMILY
  |  |  ------------------
  |  |  |  |  531|    277|#define U_ASCII_FAMILY 0
  |  |  ------------------
  ------------------
                  if(formatVersion[0]==1 || U_CHARSET_FAMILY==U_ASCII_FAMILY) {
  ------------------
  |  |  531|    277|#define U_ASCII_FAMILY 0
  ------------------
  |  Branch (232:8): [True: 0, False: 277]
  |  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|    277|        pResData->useNativeStrcmp=true;
  238|    277|    }
  239|    277|}
uresdata.cpp:_ZL18_res_findTableItemPK12ResourceDataPKtiPKcPS5_:
   76|  4.93k|                   const char *key, const char **realKey) {
   77|  4.93k|    const char *tableKey;
   78|  4.93k|    int32_t mid, start, limit;
   79|  4.93k|    int result;
   80|       |
   81|       |    /* do a binary search for the key */
   82|  4.93k|    start=0;
   83|  4.93k|    limit=length;
   84|  11.1k|    while(start<limit) {
  ------------------
  |  Branch (84:11): [True: 10.2k, False: 941]
  ------------------
   85|  10.2k|        mid = (start + limit) / 2;
   86|  10.2k|        tableKey = RES_GET_KEY16(pResData, keyOffsets[mid]);
  ------------------
  |  |   44|  10.2k|    ((keyOffset)<(pResData)->localKeyLimit ? \
  |  |  ------------------
  |  |  |  Branch (44:6): [True: 1.30k, False: 8.90k]
  |  |  ------------------
  |  |   45|  10.2k|        (const char *)(pResData)->pRoot+(keyOffset) : \
  |  |   46|  10.2k|        (pResData)->poolBundleKeys+(keyOffset)-(pResData)->localKeyLimit)
  ------------------
   87|  10.2k|        if (pResData->useNativeStrcmp) {
  ------------------
  |  Branch (87:13): [True: 10.2k, False: 0]
  ------------------
   88|  10.2k|            result = uprv_strcmp(key, tableKey);
  ------------------
  |  |   38|  10.2k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  10.2k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
   89|  10.2k|        } 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|  10.2k|        if (result < 0) {
  ------------------
  |  Branch (92:13): [True: 3.11k, False: 7.09k]
  ------------------
   93|  3.11k|            limit = mid;
   94|  7.09k|        } else if (result > 0) {
  ------------------
  |  Branch (94:20): [True: 3.10k, False: 3.99k]
  ------------------
   95|  3.10k|            start = mid + 1;
   96|  3.99k|        } else {
   97|       |            /* We found it! */
   98|  3.99k|            *realKey=tableKey;
   99|  3.99k|            return mid;
  100|  3.99k|        }
  101|  10.2k|    }
  102|    941|    return URESDATA_ITEM_NOT_FOUND;  /* not found or table is empty. */
  ------------------
  |  |   53|    941|#define URESDATA_ITEM_NOT_FOUND -1
  ------------------
  103|  4.93k|}
uresdata.cpp:_ZL18makeResourceFrom16PK12ResourceDatai:
  700|  5.39k|makeResourceFrom16(const ResourceData *pResData, int32_t res16) {
  701|  5.39k|    if(res16<pResData->poolStringIndex16Limit) {
  ------------------
  |  Branch (701:8): [True: 2.57k, False: 2.81k]
  ------------------
  702|       |        // Pool string, nothing to do.
  703|  2.81k|    } else {
  704|       |        // Local string, adjust the 16-bit offset to a regular one,
  705|       |        // with a larger pool string index limit.
  706|  2.81k|        res16=res16-pResData->poolStringIndex16Limit+pResData->poolStringIndexLimit;
  707|  2.81k|    }
  708|  5.39k|    return URES_MAKE_RESOURCE(URES_STRING_V2, res16);
  ------------------
  |  |   87|  5.39k|#define URES_MAKE_RESOURCE(type, offset) (((Resource)(type)<<28)|(Resource)(offset))
  ------------------
  709|  5.39k|}

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

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

u_strFindFirst_78:
   57|    280|               const char16_t *sub, int32_t subLength) {
   58|    280|    const char16_t *start, *p, *q, *subLimit;
   59|    280|    char16_t c, cs, cq;
   60|       |
   61|    280|    if(sub==nullptr || subLength<-1) {
  ------------------
  |  Branch (61:8): [True: 0, False: 280]
  |  Branch (61:24): [True: 0, False: 280]
  ------------------
   62|      0|        return (char16_t *)s;
   63|      0|    }
   64|    280|    if(s==nullptr || length<-1) {
  ------------------
  |  Branch (64:8): [True: 0, False: 280]
  |  Branch (64:22): [True: 0, False: 280]
  ------------------
   65|      0|        return nullptr;
   66|      0|    }
   67|       |
   68|    280|    start=s;
   69|       |
   70|    280|    if(length<0 && subLength<0) {
  ------------------
  |  Branch (70:8): [True: 0, False: 280]
  |  Branch (70:20): [True: 0, False: 0]
  ------------------
   71|       |        /* both strings are NUL-terminated */
   72|      0|        if((cs=*sub++)==0) {
  ------------------
  |  Branch (72:12): [True: 0, False: 0]
  ------------------
   73|      0|            return (char16_t *)s;
   74|      0|        }
   75|      0|        if(*sub==0 && !U16_IS_SURROGATE(cs)) {
  ------------------
  |  |   75|      0|#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
  |  |  ------------------
  |  |  |  |  193|      0|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  ------------------
  ------------------
  |  Branch (75:12): [True: 0, False: 0]
  |  Branch (75:23): [True: 0, False: 0]
  ------------------
   76|       |            /* the substring consists of a single, non-surrogate BMP code point */
   77|      0|            return u_strchr(s, cs);
  ------------------
  |  |  385|      0|#define u_strchr U_ICU_ENTRY_POINT_RENAME(u_strchr)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   78|      0|        }
   79|       |
   80|      0|        while((c=*s++)!=0) {
  ------------------
  |  Branch (80:15): [True: 0, False: 0]
  ------------------
   81|      0|            if(c==cs) {
  ------------------
  |  Branch (81:16): [True: 0, False: 0]
  ------------------
   82|       |                /* found first substring char16_t, compare rest */
   83|      0|                p=s;
   84|      0|                q=sub;
   85|      0|                for(;;) {
   86|      0|                    if((cq=*q)==0) {
  ------------------
  |  Branch (86:24): [True: 0, False: 0]
  ------------------
   87|      0|                        if(isMatchAtCPBoundary(start, s-1, p, nullptr)) {
  ------------------
  |  Branch (87:28): [True: 0, False: 0]
  ------------------
   88|      0|                            return (char16_t *)(s-1); /* well-formed match */
   89|      0|                        } else {
   90|      0|                            break; /* no match because surrogate pair is split */
   91|      0|                        }
   92|      0|                    }
   93|      0|                    if((c=*p)==0) {
  ------------------
  |  Branch (93:24): [True: 0, False: 0]
  ------------------
   94|      0|                        return nullptr; /* no match, and none possible after s */
   95|      0|                    }
   96|      0|                    if(c!=cq) {
  ------------------
  |  Branch (96:24): [True: 0, False: 0]
  ------------------
   97|      0|                        break; /* no match */
   98|      0|                    }
   99|      0|                    ++p;
  100|      0|                    ++q;
  101|      0|                }
  102|      0|            }
  103|      0|        }
  104|       |
  105|       |        /* not found */
  106|      0|        return nullptr;
  107|      0|    }
  108|       |
  109|    280|    if(subLength<0) {
  ------------------
  |  Branch (109:8): [True: 0, False: 280]
  ------------------
  110|      0|        subLength=u_strlen(sub);
  ------------------
  |  |  393|      0|#define u_strlen U_ICU_ENTRY_POINT_RENAME(u_strlen)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  111|      0|    }
  112|    280|    if(subLength==0) {
  ------------------
  |  Branch (112:8): [True: 0, False: 280]
  ------------------
  113|      0|        return (char16_t *)s;
  114|      0|    }
  115|       |
  116|       |    /* get sub[0] to search for it fast */
  117|    280|    cs=*sub++;
  118|    280|    --subLength;
  119|    280|    subLimit=sub+subLength;
  120|       |
  121|    280|    if(subLength==0 && !U16_IS_SURROGATE(cs)) {
  ------------------
  |  |   75|      0|#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
  |  |  ------------------
  |  |  |  |  193|      0|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  ------------------
  ------------------
  |  Branch (121:8): [True: 0, False: 280]
  |  Branch (121:24): [True: 0, False: 0]
  ------------------
  122|       |        /* the substring consists of a single, non-surrogate BMP code point */
  123|      0|        return length<0 ? u_strchr(s, cs) : u_memchr(s, cs, length);
  ------------------
  |  |  385|      0|#define u_strchr U_ICU_ENTRY_POINT_RENAME(u_strchr)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
                      return length<0 ? u_strchr(s, cs) : u_memchr(s, cs, length);
  ------------------
  |  |  330|      0|#define u_memchr U_ICU_ENTRY_POINT_RENAME(u_memchr)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_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 (123:16): [True: 0, False: 0]
  ------------------
  124|      0|    }
  125|       |
  126|    280|    if(length<0) {
  ------------------
  |  Branch (126:8): [True: 0, False: 280]
  ------------------
  127|       |        /* s is NUL-terminated */
  128|      0|        while((c=*s++)!=0) {
  ------------------
  |  Branch (128:15): [True: 0, False: 0]
  ------------------
  129|      0|            if(c==cs) {
  ------------------
  |  Branch (129:16): [True: 0, False: 0]
  ------------------
  130|       |                /* found first substring char16_t, compare rest */
  131|      0|                p=s;
  132|      0|                q=sub;
  133|      0|                for(;;) {
  134|      0|                    if(q==subLimit) {
  ------------------
  |  Branch (134:24): [True: 0, False: 0]
  ------------------
  135|      0|                        if(isMatchAtCPBoundary(start, s-1, p, nullptr)) {
  ------------------
  |  Branch (135:28): [True: 0, False: 0]
  ------------------
  136|      0|                            return (char16_t *)(s-1); /* well-formed match */
  137|      0|                        } else {
  138|      0|                            break; /* no match because surrogate pair is split */
  139|      0|                        }
  140|      0|                    }
  141|      0|                    if((c=*p)==0) {
  ------------------
  |  Branch (141:24): [True: 0, False: 0]
  ------------------
  142|      0|                        return nullptr; /* no match, and none possible after s */
  143|      0|                    }
  144|      0|                    if(c!=*q) {
  ------------------
  |  Branch (144:24): [True: 0, False: 0]
  ------------------
  145|      0|                        break; /* no match */
  146|      0|                    }
  147|      0|                    ++p;
  148|      0|                    ++q;
  149|      0|                }
  150|      0|            }
  151|      0|        }
  152|    280|    } else {
  153|    280|        const char16_t *limit, *preLimit;
  154|       |
  155|       |        /* subLength was decremented above */
  156|    280|        if(length<=subLength) {
  ------------------
  |  Branch (156:12): [True: 0, False: 280]
  ------------------
  157|      0|            return nullptr; /* s is shorter than sub */
  158|      0|        }
  159|       |
  160|    280|        limit=s+length;
  161|       |
  162|       |        /* the substring must start before preLimit */
  163|    280|        preLimit=limit-subLength;
  164|       |
  165|  2.52k|        while(s!=preLimit) {
  ------------------
  |  Branch (165:15): [True: 2.52k, False: 0]
  ------------------
  166|  2.52k|            c=*s++;
  167|  2.52k|            if(c==cs) {
  ------------------
  |  Branch (167:16): [True: 280, False: 2.24k]
  ------------------
  168|       |                /* found first substring char16_t, compare rest */
  169|    280|                p=s;
  170|    280|                q=sub;
  171|  3.36k|                for(;;) {
  172|  3.36k|                    if(q==subLimit) {
  ------------------
  |  Branch (172:24): [True: 280, False: 3.08k]
  ------------------
  173|    280|                        if(isMatchAtCPBoundary(start, s-1, p, limit)) {
  ------------------
  |  Branch (173:28): [True: 280, False: 0]
  ------------------
  174|    280|                            return (char16_t *)(s-1); /* well-formed match */
  175|    280|                        } else {
  176|      0|                            break; /* no match because surrogate pair is split */
  177|      0|                        }
  178|    280|                    }
  179|  3.08k|                    if(*p!=*q) {
  ------------------
  |  Branch (179:24): [True: 0, False: 3.08k]
  ------------------
  180|      0|                        break; /* no match */
  181|      0|                    }
  182|  3.08k|                    ++p;
  183|  3.08k|                    ++q;
  184|  3.08k|                }
  185|    280|            }
  186|  2.52k|        }
  187|    280|    }
  188|       |
  189|       |    /* not found */
  190|      0|    return nullptr;
  191|    280|}
u_memchr_78:
  241|    280|u_memchr(const char16_t *s, char16_t c, int32_t count) {
  242|    280|    if(count<=0) {
  ------------------
  |  Branch (242:8): [True: 0, False: 280]
  ------------------
  243|      0|        return nullptr; /* no string */
  244|    280|    } else if(U16_IS_SURROGATE(c)) {
  ------------------
  |  |   75|    280|#define U16_IS_SURROGATE(c) U_IS_SURROGATE(c)
  |  |  ------------------
  |  |  |  |  193|    280|#define U_IS_SURROGATE(c) (((c)&0xfffff800)==0xd800)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (193:27): [True: 0, False: 280]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  245|       |        /* make sure to not find half of a surrogate pair */
  246|      0|        return u_strFindFirst(s, count, &c, 1);
  ------------------
  |  |  361|      0|#define u_strFindFirst U_ICU_ENTRY_POINT_RENAME(u_strFindFirst)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  247|    280|    } else {
  248|       |        /* trivial search for a BMP code point */
  249|    280|        const char16_t *limit=s+count;
  250|  2.27k|        do {
  251|  2.27k|            if(*s==c) {
  ------------------
  |  Branch (251:16): [True: 280, False: 1.99k]
  ------------------
  252|    280|                return (char16_t *)s;
  253|    280|            }
  254|  2.27k|        } while(++s!=limit);
  ------------------
  |  Branch (254:17): [True: 1.99k, False: 0]
  ------------------
  255|      0|        return nullptr;
  256|    280|    }
  257|    280|}
u_strlen_78:
  995|  6.53k|{
  996|       |#if U_SIZEOF_WCHAR_T == U_SIZEOF_UCHAR
  997|       |    return (int32_t)uprv_wcslen((const wchar_t *)s);
  998|       |#else
  999|  6.53k|    const char16_t *t = s;
 1000|  39.0k|    while(*t != 0) {
  ------------------
  |  Branch (1000:11): [True: 32.5k, False: 6.53k]
  ------------------
 1001|  32.5k|      ++t;
 1002|  32.5k|    }
 1003|  6.53k|    return t - s;
 1004|  6.53k|#endif
 1005|  6.53k|}
u_memcpy_78:
 1117|  3.93k|u_memcpy(char16_t *dest, const char16_t *src, int32_t count) {
 1118|  3.93k|    if(count > 0) {
  ------------------
  |  Branch (1118:8): [True: 3.93k, False: 0]
  ------------------
 1119|  3.93k|        uprv_memcpy(dest, src, (size_t)count*U_SIZEOF_UCHAR);
  ------------------
  |  |   42|  3.93k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  3.93k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  3.93k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  3.93k|    _Pragma("clang diagnostic push") \
  |  |   45|  3.93k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  3.93k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.93k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  3.93k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  3.93k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  3.93k|    _Pragma("clang diagnostic pop") \
  |  |   49|  3.93k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  3.93k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  3.93k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  3.93k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1120|  3.93k|    }
 1121|  3.93k|    return dest;
 1122|  3.93k|}
u_terminateChars_78:
 1475|  1.16k|u_terminateChars(char *dest, int32_t destCapacity, int32_t length, UErrorCode *pErrorCode) {
 1476|  1.16k|    __TERMINATE_STRING(dest, destCapacity, length, pErrorCode);
  ------------------
  |  | 1437|  1.16k|#define __TERMINATE_STRING(dest, destCapacity, length, pErrorCode) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  1.16k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  | 1438|  1.16k|    if(pErrorCode!=nullptr && U_SUCCESS(*pErrorCode)) {                    \
  |  |  ------------------
  |  |  |  Branch (1438:8): [True: 1.16k, False: 0]
  |  |  |  Branch (1438:31): [True: 1.16k, False: 0]
  |  |  ------------------
  |  | 1439|  1.16k|        /* not a public function, so no complete argument checking */   \
  |  | 1440|  1.16k|                                                                        \
  |  | 1441|  1.16k|        if(length<0) {                                                  \
  |  |  ------------------
  |  |  |  Branch (1441:12): [True: 0, False: 1.16k]
  |  |  ------------------
  |  | 1442|      0|            /* assume that the caller handles this */                   \
  |  | 1443|  1.16k|        } else if(length<destCapacity) {                                \
  |  |  ------------------
  |  |  |  Branch (1443:19): [True: 1.16k, False: 0]
  |  |  ------------------
  |  | 1444|  1.16k|            /* NUL-terminate the string, the NUL fits */                \
  |  | 1445|  1.16k|            dest[length]=0;                                             \
  |  | 1446|  1.16k|            /* unset the not-terminated warning but leave all others */ \
  |  | 1447|  1.16k|            if(*pErrorCode==U_STRING_NOT_TERMINATED_WARNING) {          \
  |  |  ------------------
  |  |  |  Branch (1447:16): [True: 0, False: 1.16k]
  |  |  ------------------
  |  | 1448|      0|                *pErrorCode=U_ZERO_ERROR;                               \
  |  | 1449|      0|            }                                                           \
  |  | 1450|  1.16k|        } else if(length==destCapacity) {                               \
  |  |  ------------------
  |  |  |  Branch (1450:19): [True: 0, False: 0]
  |  |  ------------------
  |  | 1451|      0|            /* unable to NUL-terminate, but the string itself fit - set a warning code */ \
  |  | 1452|      0|            *pErrorCode=U_STRING_NOT_TERMINATED_WARNING;                \
  |  | 1453|      0|        } else /* length>destCapacity */ {                              \
  |  | 1454|      0|            /* even the string itself did not fit - set an error code */ \
  |  | 1455|      0|            *pErrorCode=U_BUFFER_OVERFLOW_ERROR;                        \
  |  | 1456|      0|        }                                                               \
  |  | 1457|  1.16k|    } \
  |  | 1458|  1.16k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  1.16k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1477|  1.16k|    return length;
 1478|  1.16k|}
ustr_hashUCharsN_78:
 1523|  5.45k|ustr_hashUCharsN(const char16_t *str, int32_t length) {
 1524|  5.45k|    STRING_HASH(char16_t, str, length, *p);
  ------------------
  |  | 1506|  5.45k|#define STRING_HASH(TYPE, STR, STRLEN, DEREF) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  5.45k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  | 1507|  5.45k|    uint32_t hash = 0;                        \
  |  | 1508|  5.45k|    const TYPE *p = (const TYPE*) STR;        \
  |  | 1509|  5.45k|    if (p != nullptr) {                          \
  |  |  ------------------
  |  |  |  Branch (1509:9): [True: 5.45k, False: 0]
  |  |  ------------------
  |  | 1510|  5.45k|        int32_t len = (int32_t)(STRLEN);      \
  |  | 1511|  5.45k|        int32_t inc = ((len - 32) / 32) + 1;  \
  |  | 1512|  5.45k|        const TYPE *limit = p + len;          \
  |  | 1513|  58.8k|        while (p<limit) {                     \
  |  |  ------------------
  |  |  |  Branch (1513:16): [True: 53.3k, False: 5.45k]
  |  |  ------------------
  |  | 1514|  53.3k|            hash = (hash * 37) + DEREF;       \
  |  | 1515|  53.3k|            p += inc;                         \
  |  | 1516|  53.3k|        }                                     \
  |  | 1517|  5.45k|    }                                         \
  |  | 1518|  5.45k|    return static_cast<int32_t>(hash);        \
  |  | 1519|  5.45k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  5.45k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1525|  5.45k|}
ustr_hashCharsN_78:
 1528|  5.83k|ustr_hashCharsN(const char *str, int32_t length) {
 1529|  5.83k|    STRING_HASH(uint8_t, str, length, *p);
  ------------------
  |  | 1506|  5.83k|#define STRING_HASH(TYPE, STR, STRLEN, DEREF) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  5.83k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  | 1507|  5.83k|    uint32_t hash = 0;                        \
  |  | 1508|  5.83k|    const TYPE *p = (const TYPE*) STR;        \
  |  | 1509|  5.83k|    if (p != nullptr) {                          \
  |  |  ------------------
  |  |  |  Branch (1509:9): [True: 5.83k, False: 0]
  |  |  ------------------
  |  | 1510|  5.83k|        int32_t len = (int32_t)(STRLEN);      \
  |  | 1511|  5.83k|        int32_t inc = ((len - 32) / 32) + 1;  \
  |  | 1512|  5.83k|        const TYPE *limit = p + len;          \
  |  | 1513|  28.7k|        while (p<limit) {                     \
  |  |  ------------------
  |  |  |  Branch (1513:16): [True: 22.9k, False: 5.83k]
  |  |  ------------------
  |  | 1514|  22.9k|            hash = (hash * 37) + DEREF;       \
  |  | 1515|  22.9k|            p += inc;                         \
  |  | 1516|  22.9k|        }                                     \
  |  | 1517|  5.83k|    }                                         \
  |  | 1518|  5.83k|    return static_cast<int32_t>(hash);        \
  |  | 1519|  5.83k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  5.83k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
 1530|  5.83k|}
ustring.cpp:_ZL19isMatchAtCPBoundaryPKDsS0_S0_S0_:
   43|    280|isMatchAtCPBoundary(const char16_t *start, const char16_t *match, const char16_t *matchLimit, const char16_t *limit) {
   44|    280|    if(U16_IS_TRAIL(*match) && start!=match && U16_IS_LEAD(*(match-1))) {
  ------------------
  |  |   67|    560|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 0, False: 280]
  |  |  ------------------
  ------------------
                  if(U16_IS_TRAIL(*match) && start!=match && U16_IS_LEAD(*(match-1))) {
  ------------------
  |  |   59|      0|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (44:32): [True: 0, False: 0]
  ------------------
   45|       |        /* the leading edge of the match is in the middle of a surrogate pair */
   46|      0|        return false;
   47|      0|    }
   48|    280|    if(U16_IS_LEAD(*(matchLimit-1)) && matchLimit!=limit && U16_IS_TRAIL(*matchLimit)) {
  ------------------
  |  |   59|    560|#define U16_IS_LEAD(c) (((c)&0xfffffc00)==0xd800)
  |  |  ------------------
  |  |  |  Branch (59:24): [True: 0, False: 280]
  |  |  ------------------
  ------------------
                  if(U16_IS_LEAD(*(matchLimit-1)) && matchLimit!=limit && U16_IS_TRAIL(*matchLimit)) {
  ------------------
  |  |   67|      0|#define U16_IS_TRAIL(c) (((c)&0xfffffc00)==0xdc00)
  |  |  ------------------
  |  |  |  Branch (67:25): [True: 0, False: 0]
  |  |  ------------------
  ------------------
  |  Branch (48:40): [True: 0, False: 0]
  ------------------
   49|       |        /* the trailing edge of the match is in the middle of a surrogate pair */
   50|      0|        return false;
   51|      0|    }
   52|    280|    return true;
   53|    280|}

_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_7822FormattedStringBuilderC2Ev:
   37|  23.6k|FormattedStringBuilder::FormattedStringBuilder() {
   38|       |#if U_DEBUG
   39|       |    // Initializing the memory to non-zero helps catch some bugs that involve
   40|       |    // reading from an improperly terminated string.
   41|       |    for (int32_t i=0; i<getCapacity(); i++) {
   42|       |        getCharPtr()[i] = 1;
   43|       |    }
   44|       |#endif
   45|  23.6k|}
_ZN6icu_7822FormattedStringBuilderD2Ev:
   47|  23.6k|FormattedStringBuilder::~FormattedStringBuilder() {
   48|  23.6k|    if (fUsingHeap) {
  ------------------
  |  Branch (48:9): [True: 9.83k, False: 13.7k]
  ------------------
   49|  9.83k|        uprv_free(fChars.heap.ptr);
  ------------------
  |  | 1503|  9.83k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  9.83k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.83k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.83k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   50|  9.83k|        uprv_free(fFields.heap.ptr);
  ------------------
  |  | 1503|  9.83k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  9.83k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  9.83k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  9.83k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   51|  9.83k|    }
   52|  23.6k|}
_ZNK6icu_7822FormattedStringBuilder6lengthEv:
  100|  11.8k|int32_t FormattedStringBuilder::length() const {
  101|  11.8k|    return fLength;
  102|  11.8k|}
_ZN6icu_7822FormattedStringBuilder15insertCodePointEiiNS0_5FieldER10UErrorCode:
  150|  7.56k|FormattedStringBuilder::insertCodePoint(int32_t index, UChar32 codePoint, Field field, UErrorCode &status) {
  151|  7.56k|    int32_t count = U16_LENGTH(codePoint);
  ------------------
  |  |  141|  7.56k|#define U16_LENGTH(c) ((uint32_t)(c)<=0xffff ? 1 : 2)
  |  |  ------------------
  |  |  |  Branch (141:24): [True: 7.56k, False: 0]
  |  |  ------------------
  ------------------
  152|  7.56k|    int32_t position = prepareForInsert(index, count, status);
  153|  7.56k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (153:9): [True: 0, False: 7.56k]
  ------------------
  154|      0|        return count;
  155|      0|    }
  156|  7.56k|    auto* charPtr = getCharPtr();
  157|  7.56k|    auto* fieldPtr = getFieldPtr();
  158|  7.56k|    if (count == 1) {
  ------------------
  |  Branch (158:9): [True: 7.56k, False: 0]
  ------------------
  159|  7.56k|        charPtr[position] = static_cast<char16_t>(codePoint);
  160|  7.56k|        fieldPtr[position] = field;
  161|  7.56k|    } else {
  162|      0|        charPtr[position] = U16_LEAD(codePoint);
  ------------------
  |  |  123|      0|#define U16_LEAD(supplementary) (UChar)(((supplementary)>>10)+0xd7c0)
  ------------------
  163|      0|        charPtr[position + 1] = U16_TRAIL(codePoint);
  ------------------
  |  |  132|      0|#define U16_TRAIL(supplementary) (UChar)(((supplementary)&0x3ff)|0xdc00)
  ------------------
  164|      0|        fieldPtr[position] = fieldPtr[position + 1] = field;
  165|      0|    }
  166|  7.56k|    return count;
  167|  7.56k|}
_ZN6icu_7822FormattedStringBuilder6insertEiRKNS_13UnicodeStringENS0_5FieldER10UErrorCode:
  170|   132k|                                    UErrorCode &status) {
  171|   132k|    if (unistr.length() == 0) {
  ------------------
  |  Branch (171:9): [True: 62.4k, False: 69.7k]
  ------------------
  172|       |        // Nothing to insert.
  173|  62.4k|        return 0;
  174|  69.7k|    } else if (unistr.length() == 1) {
  ------------------
  |  Branch (174:16): [True: 7.56k, False: 62.1k]
  ------------------
  175|       |        // Fast path: insert using insertCodePoint.
  176|  7.56k|        return insertCodePoint(index, unistr.charAt(0), field, status);
  177|  62.1k|    } else {
  178|  62.1k|        return insert(index, unistr, 0, unistr.length(), field, status);
  179|  62.1k|    }
  180|   132k|}
_ZN6icu_7822FormattedStringBuilder6insertEiRKNS_13UnicodeStringEiiNS0_5FieldER10UErrorCode:
  184|  62.1k|                            Field field, UErrorCode &status) {
  185|  62.1k|    int32_t count = end - start;
  186|  62.1k|    int32_t position = prepareForInsert(index, count, status);
  187|  62.1k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (187:9): [True: 0, False: 62.1k]
  ------------------
  188|      0|        return count;
  189|      0|    }
  190|  1.99G|    for (int32_t i = 0; i < count; i++) {
  ------------------
  |  Branch (190:25): [True: 1.99G, False: 62.1k]
  ------------------
  191|  1.99G|        getCharPtr()[position + i] = unistr.charAt(start + i);
  192|  1.99G|        getFieldPtr()[position + i] = field;
  193|  1.99G|    }
  194|  62.1k|    return count;
  195|  62.1k|}
_ZN6icu_7822FormattedStringBuilder15writeTerminatorER10UErrorCode:
  253|  18.8k|void FormattedStringBuilder::writeTerminator(UErrorCode& status) {
  254|  18.8k|    int32_t position = prepareForInsert(fLength, 1, status);
  255|  18.8k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (255:9): [True: 0, False: 18.8k]
  ------------------
  256|      0|        return;
  257|      0|    }
  258|  18.8k|    getCharPtr()[position] = 0;
  259|  18.8k|    getFieldPtr()[position] = kUndefinedField;
  260|  18.8k|    fLength--;
  261|  18.8k|}
_ZN6icu_7822FormattedStringBuilder16prepareForInsertEiiR10UErrorCode:
  263|  88.6k|int32_t FormattedStringBuilder::prepareForInsert(int32_t index, int32_t count, UErrorCode &status) {
  264|  88.6k|    U_ASSERT(index >= 0);
  ------------------
  |  |   35|  88.6k|#   define U_ASSERT(exp) (void)0
  ------------------
  265|  88.6k|    U_ASSERT(index <= fLength);
  ------------------
  |  |   35|  88.6k|#   define U_ASSERT(exp) (void)0
  ------------------
  266|  88.6k|    U_ASSERT(count >= 0);
  ------------------
  |  |   35|  88.6k|#   define U_ASSERT(exp) (void)0
  ------------------
  267|  88.6k|    U_ASSERT(fZero >= 0);
  ------------------
  |  |   35|  88.6k|#   define U_ASSERT(exp) (void)0
  ------------------
  268|  88.6k|    U_ASSERT(fLength >= 0);
  ------------------
  |  |   35|  88.6k|#   define U_ASSERT(exp) (void)0
  ------------------
  269|  88.6k|    U_ASSERT(getCapacity() - fZero >= fLength);
  ------------------
  |  |   35|  88.6k|#   define U_ASSERT(exp) (void)0
  ------------------
  270|  88.6k|    if (U_FAILURE(status)) {
  ------------------
  |  Branch (270:9): [True: 0, False: 88.6k]
  ------------------
  271|      0|        return count;
  272|      0|    }
  273|  88.6k|    if (index == 0 && fZero - count >= 0) {
  ------------------
  |  Branch (273:9): [True: 18.8k, False: 69.7k]
  |  Branch (273:23): [True: 9.29k, False: 9.59k]
  ------------------
  274|       |        // Append to start
  275|  9.29k|        fZero -= count;
  276|  9.29k|        fLength += count;
  277|  9.29k|        return fZero;
  278|  79.3k|    } else if (index == fLength && count <= getCapacity() - fZero - fLength) {
  ------------------
  |  Branch (278:16): [True: 79.3k, False: 0]
  |  Branch (278:36): [True: 53.7k, False: 25.5k]
  ------------------
  279|       |        // Append to end
  280|  53.7k|        fLength += count;
  281|  53.7k|        return fZero + fLength - count;
  282|  53.7k|    } else {
  283|       |        // Move chars around and/or allocate more space
  284|  25.5k|        return prepareForInsertHelper(index, count, status);
  285|  25.5k|    }
  286|  88.6k|}
_ZN6icu_7822FormattedStringBuilder22prepareForInsertHelperEiiR10UErrorCode:
  288|  25.5k|int32_t FormattedStringBuilder::prepareForInsertHelper(int32_t index, int32_t count, UErrorCode &status) {
  289|  25.5k|    int32_t oldCapacity = getCapacity();
  290|  25.5k|    int32_t oldZero = fZero;
  291|  25.5k|    char16_t *oldChars = getCharPtr();
  292|  25.5k|    Field *oldFields = getFieldPtr();
  293|  25.5k|    int32_t newLength;
  294|  25.5k|    if (uprv_add32_overflow(fLength, count, &newLength)) {
  ------------------
  |  | 1394|  25.5k|#define uprv_add32_overflow U_ICU_ENTRY_POINT_RENAME(uprv_add32_overflow)
  |  |  ------------------
  |  |  |  |  123|  25.5k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  25.5k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  25.5k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  |  Branch (294:9): [True: 0, False: 25.5k]
  ------------------
  295|      0|        status = U_INPUT_TOO_LONG_ERROR;
  296|      0|        return -1;
  297|      0|    }
  298|  25.5k|    int32_t newZero;
  299|  25.5k|    if (newLength > oldCapacity) {
  ------------------
  |  Branch (299:9): [True: 18.6k, False: 6.84k]
  ------------------
  300|  18.6k|        if (newLength > INT32_MAX / 2) {
  ------------------
  |  Branch (300:13): [True: 0, False: 18.6k]
  ------------------
  301|       |            // We do not support more than 1G char16_t in this code because
  302|       |            // dealing with >2G *bytes* can cause subtle bugs.
  303|      0|            status = U_INPUT_TOO_LONG_ERROR;
  304|      0|            return -1;
  305|      0|        }
  306|       |        // Keep newCapacity also to at most 1G char16_t.
  307|  18.6k|        int32_t newCapacity = newLength * 2;
  308|  18.6k|        newZero = (newCapacity - newLength) / 2;
  309|       |
  310|       |        // C++ note: malloc appears in two places: here and in the assignment operator.
  311|  18.6k|        auto* newChars =
  312|  18.6k|            static_cast<char16_t*>(uprv_malloc(sizeof(char16_t) * static_cast<size_t>(newCapacity)));
  ------------------
  |  | 1524|  18.6k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  18.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  18.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  18.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  313|  18.6k|        auto* newFields =
  314|  18.6k|            static_cast<Field*>(uprv_malloc(sizeof(Field) * static_cast<size_t>(newCapacity)));
  ------------------
  |  | 1524|  18.6k|#define uprv_malloc U_ICU_ENTRY_POINT_RENAME(uprv_malloc)
  |  |  ------------------
  |  |  |  |  123|  18.6k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  18.6k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  18.6k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  315|  18.6k|        if (newChars == nullptr || newFields == nullptr) {
  ------------------
  |  Branch (315:13): [True: 0, False: 18.6k]
  |  Branch (315:36): [True: 0, False: 18.6k]
  ------------------
  316|      0|            uprv_free(newChars);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  317|      0|            uprv_free(newFields);
  ------------------
  |  | 1503|      0|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  318|      0|            status = U_MEMORY_ALLOCATION_ERROR;
  319|      0|            return -1;
  320|      0|        }
  321|       |
  322|       |        // First copy the prefix and then the suffix, leaving room for the new chars that the
  323|       |        // caller wants to insert.
  324|       |        // C++ note: memcpy is OK because the src and dest do not overlap.
  325|  18.6k|        uprv_memcpy2(newChars + newZero, oldChars + oldZero, sizeof(char16_t) * index);
  326|  18.6k|        uprv_memcpy2(newChars + newZero + index + count,
  327|  18.6k|                oldChars + oldZero + index,
  328|  18.6k|                sizeof(char16_t) * (fLength - index));
  329|  18.6k|        uprv_memcpy2(newFields + newZero, oldFields + oldZero, sizeof(Field) * index);
  330|  18.6k|        uprv_memcpy2(newFields + newZero + index + count,
  331|  18.6k|                oldFields + oldZero + index,
  332|  18.6k|                sizeof(Field) * (fLength - index));
  333|       |
  334|  18.6k|        if (fUsingHeap) {
  ------------------
  |  Branch (334:13): [True: 8.85k, False: 9.83k]
  ------------------
  335|  8.85k|            uprv_free(oldChars);
  ------------------
  |  | 1503|  8.85k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  8.85k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  8.85k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  8.85k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  336|  8.85k|            uprv_free(oldFields);
  ------------------
  |  | 1503|  8.85k|#define uprv_free U_ICU_ENTRY_POINT_RENAME(uprv_free)
  |  |  ------------------
  |  |  |  |  123|  8.85k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  8.85k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  8.85k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  337|  8.85k|        }
  338|  18.6k|        fUsingHeap = true;
  339|  18.6k|        fChars.heap.ptr = newChars;
  340|  18.6k|        fChars.heap.capacity = newCapacity;
  341|  18.6k|        fFields.heap.ptr = newFields;
  342|  18.6k|        fFields.heap.capacity = newCapacity;
  343|  18.6k|    } else {
  344|  6.84k|        newZero = (oldCapacity - newLength) / 2;
  345|       |
  346|       |        // C++ note: memmove is required because src and dest may overlap.
  347|       |        // First copy the entire string to the location of the prefix, and then move the suffix
  348|       |        // to make room for the new chars that the caller wants to insert.
  349|  6.84k|        uprv_memmove2(oldChars + newZero, oldChars + oldZero, sizeof(char16_t) * fLength);
  350|  6.84k|        uprv_memmove2(oldChars + newZero + index + count,
  351|  6.84k|                oldChars + newZero + index,
  352|  6.84k|                sizeof(char16_t) * (fLength - index));
  353|  6.84k|        uprv_memmove2(oldFields + newZero, oldFields + oldZero, sizeof(Field) * fLength);
  354|  6.84k|        uprv_memmove2(oldFields + newZero + index + count,
  355|  6.84k|                oldFields + newZero + index,
  356|  6.84k|                sizeof(Field) * (fLength - index));
  357|  6.84k|    }
  358|  25.5k|    fZero = newZero;
  359|  25.5k|    fLength = newLength;
  360|  25.5k|    return fZero + index;
  361|  25.5k|}
_ZNK6icu_7822FormattedStringBuilder5charsEv:
  447|  11.8k|const char16_t *FormattedStringBuilder::chars() const {
  448|  11.8k|    return getCharPtr() + fZero;
  449|  11.8k|}
formatted_string_builder.cpp:_ZN12_GLOBAL__N_112uprv_memcpy2EPvPKvm:
   18|  74.7k|inline void uprv_memcpy2(void* dest, const void* src, size_t len) {
   19|  74.7k|    if (len > 0) {
  ------------------
  |  Branch (19:9): [True: 20.3k, False: 54.3k]
  ------------------
   20|  20.3k|        uprv_memcpy(dest, src, len);
  ------------------
  |  |   42|  20.3k|#define uprv_memcpy(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  20.3k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   43|  20.3k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   44|  20.3k|    _Pragma("clang diagnostic push") \
  |  |   45|  20.3k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   46|  20.3k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  20.3k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   47|  20.3k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  20.3k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   48|  20.3k|    _Pragma("clang diagnostic pop") \
  |  |   49|  20.3k|    U_STANDARD_CPP_NAMESPACE memcpy(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  20.3k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   50|  20.3k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  20.3k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   21|  20.3k|    }
   22|  74.7k|}
formatted_string_builder.cpp:_ZN12_GLOBAL__N_113uprv_memmove2EPvPKvm:
   26|  27.3k|inline void uprv_memmove2(void* dest, const void* src, size_t len) {
   27|  27.3k|    if (len > 0) {
  ------------------
  |  Branch (27:9): [True: 11.5k, False: 15.8k]
  ------------------
   28|  11.5k|        uprv_memmove(dest, src, len);
  ------------------
  |  |   51|  11.5k|#define uprv_memmove(dst, src, size) UPRV_BLOCK_MACRO_BEGIN { \
  |  |  ------------------
  |  |  |  |  169|  11.5k|#define UPRV_BLOCK_MACRO_BEGIN do
  |  |  ------------------
  |  |   52|  11.5k|    /* Suppress warnings about addresses that will never be NULL */ \
  |  |   53|  11.5k|    _Pragma("clang diagnostic push") \
  |  |   54|  11.5k|    _Pragma("clang diagnostic ignored \"-Waddress\"") \
  |  |   55|  11.5k|    U_ASSERT(dst != NULL); \
  |  |  ------------------
  |  |  |  |   35|  11.5k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   56|  11.5k|    U_ASSERT(src != NULL); \
  |  |  ------------------
  |  |  |  |   35|  11.5k|#   define U_ASSERT(exp) (void)0
  |  |  ------------------
  |  |   57|  11.5k|    _Pragma("clang diagnostic pop") \
  |  |   58|  11.5k|    U_STANDARD_CPP_NAMESPACE memmove(dst, src, size); \
  |  |  ------------------
  |  |  |  |  393|  11.5k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  |  |   59|  11.5k|} UPRV_BLOCK_MACRO_END
  |  |  ------------------
  |  |  |  |  178|  11.5k|#define UPRV_BLOCK_MACRO_END while (false)
  |  |  |  |  ------------------
  |  |  |  |  |  Branch (178:37): [Folded - Ignored]
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
   29|  11.5k|    }
   30|  27.3k|}

_ZN6icu_7822FormattedStringBuilder6appendERKNS_13UnicodeStringENS0_5FieldER10UErrorCode:
  122|   103k|    inline int32_t append(const UnicodeString &unistr, Field field, UErrorCode &status) {
  123|   103k|        return insert(fLength, unistr, field, status);
  124|   103k|    }
_ZN6icu_7822FormattedStringBuilder5FieldC2Ehh:
  227|   132k|    : bits((
  228|   132k|        U_ASSERT(category <= 0xf),
  ------------------
  |  |   35|   132k|#   define U_ASSERT(exp) (void)0
  ------------------
  229|   132k|        U_ASSERT(field <= 0xf),
  ------------------
  |  |   35|   132k|#   define U_ASSERT(exp) (void)0
  ------------------
  230|   132k|        static_cast<uint8_t>((category << 4) | field)
  231|   132k|    )) {}
_ZN6icu_7822FormattedStringBuilder10getCharPtrEv:
  191|  1.99G|    inline char16_t *getCharPtr() {
  192|  1.99G|        return fUsingHeap ? fChars.heap.ptr : fChars.value;
  ------------------
  |  Branch (192:16): [True: 1.99G, False: 142k]
  ------------------
  193|  1.99G|    }
_ZNK6icu_7822FormattedStringBuilder10getCharPtrEv:
  195|  11.8k|    inline const char16_t *getCharPtr() const {
  196|  11.8k|        return fUsingHeap ? fChars.heap.ptr : fChars.value;
  ------------------
  |  Branch (196:16): [True: 4.91k, False: 6.88k]
  ------------------
  197|  11.8k|    }
_ZN6icu_7822FormattedStringBuilder11getFieldPtrEv:
  199|  1.99G|    inline Field *getFieldPtr() {
  200|  1.99G|        return fUsingHeap ? fFields.heap.ptr : fFields.value;
  ------------------
  |  Branch (200:16): [True: 1.99G, False: 142k]
  ------------------
  201|  1.99G|    }
_ZNK6icu_7822FormattedStringBuilder11getCapacityEv:
  207|   104k|    inline int32_t getCapacity() const {
  208|   104k|        return fUsingHeap ? fChars.heap.capacity : DEFAULT_CAPACITY;
  ------------------
  |  Branch (208:16): [True: 52.0k, False: 52.7k]
  ------------------
  209|   104k|    }

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

_ZN6icu_7831FormattedValueStringBuilderImplC2ENS_22FormattedStringBuilder5FieldE:
   27|  23.6k|        : fNumericField(numericField) {
   28|  23.6k|}
_ZN6icu_7831FormattedValueStringBuilderImplD2Ev:
   30|  23.6k|FormattedValueStringBuilderImpl::~FormattedValueStringBuilderImpl() {
   31|  23.6k|}
_ZNK6icu_7831FormattedValueStringBuilderImpl8appendToERNS_10AppendableER10UErrorCode:
   42|  11.8k|Appendable& FormattedValueStringBuilderImpl::appendTo(Appendable& appendable, UErrorCode&) const {
   43|  11.8k|    appendable.appendString(fString.chars(), fString.length());
   44|  11.8k|    return appendable;
   45|  11.8k|}
_ZN6icu_7831FormattedValueStringBuilderImpl14appendSpanInfoE14UFieldCategoryiiiR10UErrorCode:
  294|  47.2k|void FormattedValueStringBuilderImpl::appendSpanInfo(UFieldCategory category, int32_t spanValue, int32_t start, int32_t length, UErrorCode& status) {
  295|  47.2k|    if (U_FAILURE(status)) { return; }
  ------------------
  |  Branch (295:9): [True: 0, False: 47.2k]
  ------------------
  296|  47.2k|    U_ASSERT(spanIndices.getCapacity() >= spanIndicesCount);
  ------------------
  |  |   35|  47.2k|#   define U_ASSERT(exp) (void)0
  ------------------
  297|  47.2k|    if (spanIndices.getCapacity() == spanIndicesCount) {
  ------------------
  |  Branch (297:9): [True: 0, False: 47.2k]
  ------------------
  298|      0|        if (!spanIndices.resize(spanIndicesCount * 2, spanIndicesCount)) {
  ------------------
  |  Branch (298:13): [True: 0, False: 0]
  ------------------
  299|      0|            status = U_MEMORY_ALLOCATION_ERROR;
  300|      0|            return;
  301|      0|        }
  302|      0|    }
  303|  47.2k|    spanIndices[spanIndicesCount] = {category, spanValue, start, length};
  304|  47.2k|    spanIndicesCount++;
  305|  47.2k|}

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

_ZN6icu_7817FormattedListDataD2Ev:
  251|  23.6k|FormattedListData::~FormattedListData() = default;
_ZN6icu_7813ListFormatter14initializeHashER10UErrorCode:
  295|      1|void ListFormatter::initializeHash(UErrorCode& errorCode) {
  296|      1|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (296:9): [True: 0, False: 1]
  ------------------
  297|      0|        return;
  298|      0|    }
  299|       |
  300|      1|    listPatternHash = new Hashtable();
  301|      1|    if (listPatternHash == nullptr) {
  ------------------
  |  Branch (301:9): [True: 0, False: 1]
  ------------------
  302|      0|        errorCode = U_MEMORY_ALLOCATION_ERROR;
  303|      0|        return;
  304|      0|    }
  305|       |
  306|      1|    listPatternHash->setValueDeleter(uprv_deleteListFormatInternal);
  307|      1|    ucln_i18n_registerCleanup(UCLN_I18N_LIST_FORMATTER, uprv_listformatter_cleanup);
  ------------------
  |  |  618|      1|#define ucln_i18n_registerCleanup U_ICU_ENTRY_POINT_RENAME(ucln_i18n_registerCleanup)
  |  |  ------------------
  |  |  |  |  123|      1|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      1|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      1|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  308|       |
  309|      1|}
_ZN6icu_7813ListFormatter21getListFormatInternalERKNS_6LocaleEPKcR10UErrorCode:
  312|  2.36k|        const Locale& locale, const char *style, UErrorCode& errorCode) {
  313|  2.36k|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (313:9): [True: 0, False: 2.36k]
  ------------------
  314|      0|        return nullptr;
  315|      0|    }
  316|  2.36k|    CharString keyBuffer(locale.getName(), errorCode);
  317|  2.36k|    keyBuffer.append(':', errorCode).append(style, errorCode);
  318|  2.36k|    UnicodeString key(keyBuffer.data(), -1, US_INV);
  ------------------
  |  |   98|  2.36k|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  319|  2.36k|    ListFormatInternal* result = nullptr;
  320|  2.36k|    static UMutex listFormatterMutex;
  321|  2.36k|    {
  322|  2.36k|        Mutex m(&listFormatterMutex);
  323|  2.36k|        if (listPatternHash == nullptr) {
  ------------------
  |  Branch (323:13): [True: 1, False: 2.36k]
  ------------------
  324|      1|            initializeHash(errorCode);
  325|      1|            if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (325:17): [True: 0, False: 1]
  ------------------
  326|      0|                return nullptr;
  327|      0|            }
  328|      1|        }
  329|  2.36k|        result = static_cast<ListFormatInternal*>(listPatternHash->get(key));
  330|  2.36k|    }
  331|  2.36k|    if (result != nullptr) {
  ------------------
  |  Branch (331:9): [True: 1.86k, False: 497]
  ------------------
  332|  1.86k|        return result;
  333|  1.86k|    }
  334|    497|    result = loadListFormatInternal(locale, style, errorCode);
  335|    497|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (335:9): [True: 0, False: 497]
  ------------------
  336|      0|        return nullptr;
  337|      0|    }
  338|       |
  339|    497|    {
  340|    497|        Mutex m(&listFormatterMutex);
  341|    497|        ListFormatInternal* temp = static_cast<ListFormatInternal*>(listPatternHash->get(key));
  342|    497|        if (temp != nullptr) {
  ------------------
  |  Branch (342:13): [True: 0, False: 497]
  ------------------
  343|      0|            delete result;
  344|      0|            result = temp;
  345|    497|        } else {
  346|    497|            listPatternHash->put(key, result, errorCode);
  347|    497|            if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (347:17): [True: 0, False: 497]
  ------------------
  348|      0|                return nullptr;
  349|      0|            }
  350|    497|        }
  351|    497|    }
  352|    497|    return result;
  353|    497|}
_ZN6icu_7813ListFormatter16ListPatternsSinkD2Ev:
  462|    497|ListFormatter::ListPatternsSink::~ListPatternsSink() {}
_ZN6icu_7813ListFormatter22loadListFormatInternalERKNS_6LocaleEPKcR10UErrorCode:
  465|    497|        const Locale& locale, const char * style, UErrorCode& errorCode) {
  466|    497|    UResourceBundle* rb = ures_open(nullptr, locale.getName(), &errorCode);
  ------------------
  |  | 1691|    497|#define ures_open U_ICU_ENTRY_POINT_RENAME(ures_open)
  |  |  ------------------
  |  |  |  |  123|    497|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    497|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    497|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  467|    497|    rb = ures_getByKeyWithFallback(rb, "listPattern", rb, &errorCode);
  ------------------
  |  | 1662|    497|#define ures_getByKeyWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getByKeyWithFallback)
  |  |  ------------------
  |  |  |  |  123|    497|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    497|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    497|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  468|    497|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (468:9): [True: 0, False: 497]
  ------------------
  469|      0|        ures_close(rb);
  ------------------
  |  | 1652|      0|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|      0|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|      0|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|      0|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  470|      0|        return nullptr;
  471|      0|    }
  472|    497|    ListFormatter::ListPatternsSink sink;
  473|    497|    char currentStyle[kStyleLenMax+1];
  474|    497|    uprv_strncpy(currentStyle, style, kStyleLenMax);
  ------------------
  |  |   43|    497|#define uprv_strncpy(dst, src, size) U_STANDARD_CPP_NAMESPACE strncpy(dst, src, size)
  |  |  ------------------
  |  |  |  |  393|    497|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  475|    497|    currentStyle[kStyleLenMax] = 0;
  476|       |
  477|    777|    for (;;) {
  478|    777|        ures_getAllItemsWithFallback(rb, currentStyle, sink, errorCode);
  ------------------
  |  | 1658|    777|#define ures_getAllItemsWithFallback U_ICU_ENTRY_POINT_RENAME(ures_getAllItemsWithFallback)
  |  |  ------------------
  |  |  |  |  123|    777|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    777|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    777|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  479|    777|        if (U_FAILURE(errorCode) || sink.aliasedStyle[0] == 0 || uprv_strcmp(currentStyle, sink.aliasedStyle) == 0) {
  ------------------
  |  |   38|    280|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    280|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (479:13): [True: 0, False: 777]
  |  Branch (479:37): [True: 497, False: 280]
  |  Branch (479:66): [True: 0, False: 280]
  ------------------
  480|    497|            break;
  481|    497|        }
  482|    777|        uprv_strcpy(currentStyle, sink.aliasedStyle);
  ------------------
  |  |   36|    280|#define uprv_strcpy(dst, src) U_STANDARD_CPP_NAMESPACE  strcpy(dst, src)
  |  |  ------------------
  |  |  |  |  393|    280|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  483|    280|    }
  484|    497|    ures_close(rb);
  ------------------
  |  | 1652|    497|#define ures_close U_ICU_ENTRY_POINT_RENAME(ures_close)
  |  |  ------------------
  |  |  |  |  123|    497|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|    497|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|    497|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  485|    497|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (485:9): [True: 0, False: 497]
  ------------------
  486|      0|        return nullptr;
  487|      0|    }
  488|    497|    if (sink.two.isEmpty() || sink.start.isEmpty() || sink.middle.isEmpty() || sink.end.isEmpty()) {
  ------------------
  |  Branch (488:9): [True: 0, False: 497]
  |  Branch (488:31): [True: 0, False: 497]
  |  Branch (488:55): [True: 0, False: 497]
  |  Branch (488:80): [True: 0, False: 497]
  ------------------
  489|      0|        errorCode = U_MISSING_RESOURCE_ERROR;
  490|      0|        return nullptr;
  491|      0|    }
  492|       |
  493|    497|    ListFormatInternal* result = new ListFormatInternal(sink.two, sink.start, sink.middle, sink.end, locale, errorCode);
  494|    497|    if (result == nullptr) {
  ------------------
  |  Branch (494:9): [True: 0, False: 497]
  ------------------
  495|      0|        errorCode = U_MEMORY_ALLOCATION_ERROR;
  496|      0|        return nullptr;
  497|      0|    }
  498|    497|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (498:9): [True: 0, False: 497]
  ------------------
  499|      0|        delete result;
  500|      0|        return nullptr;
  501|      0|    }
  502|    497|    return result;
  503|    497|}
_ZN6icu_7813ListFormatter14createInstanceERKNS_6LocaleER10UErrorCode:
  510|  1.14k|ListFormatter* ListFormatter::createInstance(const Locale& locale, UErrorCode& errorCode) {
  511|  1.14k|    return createInstance(locale, ULISTFMT_TYPE_AND, ULISTFMT_WIDTH_WIDE, errorCode);
  512|  1.14k|}
_ZN6icu_7813ListFormatter14createInstanceERKNS_6LocaleE18UListFormatterType19UListFormatterWidthR10UErrorCode:
  515|  3.42k|        const Locale& locale, UListFormatterType type, UListFormatterWidth width, UErrorCode& errorCode) {
  516|  3.42k|    const char* style = typeWidthToStyleString(type, width);
  517|  3.42k|    if (style == nullptr) {
  ------------------
  |  Branch (517:9): [True: 1.06k, False: 2.36k]
  ------------------
  518|  1.06k|        errorCode = U_ILLEGAL_ARGUMENT_ERROR;
  519|  1.06k|        return nullptr;
  520|  1.06k|    }
  521|  2.36k|    return createInstance(locale, style, errorCode);
  522|  3.42k|}
_ZN6icu_7813ListFormatter14createInstanceERKNS_6LocaleEPKcR10UErrorCode:
  524|  2.36k|ListFormatter* ListFormatter::createInstance(const Locale& locale, const char *style, UErrorCode& errorCode) {
  525|  2.36k|    const ListFormatInternal* listFormatInternal = getListFormatInternal(locale, style, errorCode);
  526|  2.36k|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (526:9): [True: 0, False: 2.36k]
  ------------------
  527|      0|        return nullptr;
  528|      0|    }
  529|  2.36k|    ListFormatter* p = new ListFormatter(listFormatInternal);
  530|  2.36k|    if (p == nullptr) {
  ------------------
  |  Branch (530:9): [True: 0, False: 2.36k]
  ------------------
  531|      0|        errorCode = U_MEMORY_ALLOCATION_ERROR;
  532|      0|        return nullptr;
  533|      0|    }
  534|  2.36k|    return p;
  535|  2.36k|}
_ZN6icu_7813ListFormatterC2EPKNS_18ListFormatInternalE:
  542|  2.36k|ListFormatter::ListFormatter(const ListFormatInternal* listFormatterInternal) : owned(nullptr), data(listFormatterInternal) {
  543|  2.36k|}
_ZN6icu_7813ListFormatterD2Ev:
  545|  2.36k|ListFormatter::~ListFormatter() {
  546|  2.36k|    delete owned;
  547|  2.36k|}
_ZNK6icu_7813ListFormatter6formatEPKNS_13UnicodeStringEiRS1_R10UErrorCode:
  638|  11.8k|        UErrorCode& errorCode) const {
  639|  11.8k|    int32_t offset;
  640|  11.8k|    return format(items, nItems, appendTo, -1, offset, errorCode);
  641|  11.8k|}
_ZNK6icu_7813ListFormatter6formatEPKNS_13UnicodeStringEiRS1_iRiR10UErrorCode:
  649|  11.8k|        UErrorCode& errorCode) const {
  650|  11.8k|    int32_t initialOffset = appendTo.length();
  651|  11.8k|    auto result = formatStringsToValue(items, nItems, errorCode);
  652|  11.8k|    UnicodeStringAppendable appendable(appendTo);
  653|  11.8k|    result.appendTo(appendable, errorCode);
  654|  11.8k|    if (index >= 0) {
  ------------------
  |  Branch (654:9): [True: 0, False: 11.8k]
  ------------------
  655|      0|        ConstrainedFieldPosition cfpos;
  656|      0|        cfpos.constrainField(UFIELD_CATEGORY_LIST_SPAN, index);
  657|      0|        result.nextPosition(cfpos, errorCode);
  658|      0|        offset = initialOffset + cfpos.getStart();
  659|      0|    }
  660|  11.8k|    return appendTo;
  661|  11.8k|}
_ZNK6icu_7813ListFormatter20formatStringsToValueEPKNS_13UnicodeStringEiR10UErrorCode:
  666|  23.6k|        UErrorCode& errorCode) const {
  667|  23.6k|    if (nItems == 0) {
  ------------------
  |  Branch (667:9): [True: 4.72k, False: 18.8k]
  ------------------
  668|  4.72k|        FormattedListBuilder result(errorCode);
  669|  4.72k|        if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (669:13): [True: 0, False: 4.72k]
  ------------------
  670|      0|            return FormattedList(errorCode);
  671|  4.72k|        } else {
  672|  4.72k|            return FormattedList(result.data.orphan());
  673|  4.72k|        }
  674|  18.8k|    } else if (nItems == 1) {
  ------------------
  |  Branch (674:16): [True: 4.72k, False: 14.1k]
  ------------------
  675|  4.72k|        FormattedListBuilder result(items[0], errorCode);
  676|  4.72k|        result.data->getStringRef().writeTerminator(errorCode);
  677|  4.72k|        if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (677:13): [True: 0, False: 4.72k]
  ------------------
  678|      0|            return FormattedList(errorCode);
  679|  4.72k|        } else {
  680|  4.72k|            return FormattedList(result.data.orphan());
  681|  4.72k|        }
  682|  14.1k|    } else if (nItems == 2) {
  ------------------
  |  Branch (682:16): [True: 4.72k, False: 9.44k]
  ------------------
  683|  4.72k|        FormattedListBuilder result(items[0], errorCode);
  684|  4.72k|        if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (684:13): [True: 0, False: 4.72k]
  ------------------
  685|      0|            return FormattedList(errorCode);
  686|      0|        }
  687|  4.72k|        result.append(
  688|  4.72k|            data->patternHandler->getTwoPattern(items[1]),
  689|  4.72k|            items[1],
  690|  4.72k|            1,
  691|  4.72k|            errorCode);
  692|  4.72k|        result.data->getStringRef().writeTerminator(errorCode);
  693|  4.72k|        if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (693:13): [True: 0, False: 4.72k]
  ------------------
  694|      0|            return FormattedList(errorCode);
  695|  4.72k|        } else {
  696|  4.72k|            return FormattedList(result.data.orphan());
  697|  4.72k|        }
  698|  4.72k|    }
  699|       |
  700|  9.44k|    FormattedListBuilder result(items[0], errorCode);
  701|  9.44k|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (701:9): [True: 0, False: 9.44k]
  ------------------
  702|      0|        return FormattedList(errorCode);
  703|      0|    }
  704|  9.44k|    result.append(
  705|  9.44k|        data->startPattern,
  706|  9.44k|        items[1],
  707|  9.44k|        1,
  708|  9.44k|        errorCode);
  709|  14.1k|    for (int32_t i = 2; i < nItems - 1; i++) {
  ------------------
  |  Branch (709:25): [True: 4.72k, False: 9.44k]
  ------------------
  710|  4.72k|        result.append(
  711|  4.72k|            data->middlePattern,
  712|  4.72k|            items[i],
  713|  4.72k|            i,
  714|  4.72k|            errorCode);
  715|  4.72k|    }
  716|  9.44k|    result.append(
  717|  9.44k|        data->patternHandler->getEndPattern(items[nItems-1]),
  718|  9.44k|        items[nItems-1],
  719|  9.44k|        nItems-1,
  720|  9.44k|        errorCode);
  721|  9.44k|    result.data->getStringRef().writeTerminator(errorCode);
  722|  9.44k|    if (U_FAILURE(errorCode)) {
  ------------------
  |  Branch (722:9): [True: 0, False: 9.44k]
  ------------------
  723|      0|        return FormattedList(errorCode);
  724|  9.44k|    } else {
  725|  9.44k|        return FormattedList(result.data.orphan());
  726|  9.44k|    }
  727|  9.44k|}
_ZN6icu_7813ListFormatter16ListPatternsSinkC2Ev:
  410|    497|    ListPatternsSink() {}
_ZN6icu_7818ListFormatInternalC2ERKNS_13UnicodeStringES3_S3_S3_RKNS_6LocaleER10UErrorCode:
  228|    497|        startPattern(start, 2, 2, errorCode),
  229|    497|        middlePattern(middle, 2, 2, errorCode),
  230|    497|        patternHandler(createPatternHandler(locale.getLanguage(), two, end, errorCode), errorCode) { }
listformatter.cpp:_ZN6icu_7812_GLOBAL__N_120createPatternHandlerEPKcRKNS_13UnicodeStringES5_R10UErrorCode:
  175|    497|    UErrorCode& status) {
  176|    497|    if (uprv_strcmp(lang, "es") == 0) {
  ------------------
  |  |   38|    497|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    497|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (176:9): [True: 109, False: 388]
  ------------------
  177|       |        // Spanish
  178|    109|        UnicodeString spanishYStr(true, spanishY, -1);
  179|    109|        bool twoIsY = two == spanishYStr;
  180|    109|        bool endIsY = end == spanishYStr;
  181|    109|        if (twoIsY || endIsY) {
  ------------------
  |  Branch (181:13): [True: 52, False: 57]
  |  Branch (181:23): [True: 1, False: 56]
  ------------------
  182|     53|            UnicodeString replacement(true, spanishE, -1);
  183|     53|            return new ContextualHandler(
  184|     53|                shouldChangeToE,
  185|     53|                twoIsY ? replacement : two, two,
  ------------------
  |  Branch (185:17): [True: 52, False: 1]
  ------------------
  186|     53|                endIsY ? replacement : end, end, status);
  ------------------
  |  Branch (186:17): [True: 49, False: 4]
  ------------------
  187|     53|        }
  188|     56|        UnicodeString spanishOStr(true, spanishO, -1);
  189|     56|        bool twoIsO = two == spanishOStr;
  190|     56|        bool endIsO = end == spanishOStr;
  191|     56|        if (twoIsO || endIsO) {
  ------------------
  |  Branch (191:13): [True: 50, False: 6]
  |  Branch (191:23): [True: 0, False: 6]
  ------------------
  192|     50|            UnicodeString replacement(true, spanishU, -1);
  193|     50|            return new ContextualHandler(
  194|     50|                shouldChangeToU,
  195|     50|                twoIsO ? replacement : two, two,
  ------------------
  |  Branch (195:17): [True: 50, False: 0]
  ------------------
  196|     50|                endIsO ? replacement : end, end, status);
  ------------------
  |  Branch (196:17): [True: 50, False: 0]
  ------------------
  197|     50|        }
  198|    388|    } else if (uprv_strcmp(lang, "he") == 0 || uprv_strcmp(lang, "iw") == 0) {
  ------------------
  |  |   38|    388|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    388|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
                  } else if (uprv_strcmp(lang, "he") == 0 || uprv_strcmp(lang, "iw") == 0) {
  ------------------
  |  |   38|    370|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    370|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (198:16): [True: 18, False: 370]
  |  Branch (198:48): [True: 0, False: 370]
  ------------------
  199|       |        // Hebrew
  200|     18|        UnicodeString hebrewVavStr(true, hebrewVav, -1);
  201|     18|        bool twoIsVav = two == hebrewVavStr;
  202|     18|        bool endIsVav = end == hebrewVavStr;
  203|     18|        if (twoIsVav || endIsVav) {
  ------------------
  |  Branch (203:13): [True: 6, False: 12]
  |  Branch (203:25): [True: 0, False: 12]
  ------------------
  204|      6|            UnicodeString replacement(true, hebrewVavDash, -1);
  205|      6|            return new ContextualHandler(
  206|      6|                shouldChangeToVavDash,
  207|      6|                twoIsVav ? replacement : two, two,
  ------------------
  |  Branch (207:17): [True: 6, False: 0]
  ------------------
  208|      6|                endIsVav ? replacement : end, end, status);
  ------------------
  |  Branch (208:17): [True: 6, False: 0]
  ------------------
  209|      6|        }
  210|     18|    }
  211|    388|    return new PatternHandler(two, end, status);
  212|    497|}
listformatter.cpp:_ZN6icu_7812_GLOBAL__N_115shouldChangeToEERKNS_13UnicodeStringE:
  133|  2.83k|bool shouldChangeToE(const UnicodeString& text) {
  134|  2.83k|    int32_t len = text.length();
  135|  2.83k|    if (len == 0) { return false; }
  ------------------
  |  Branch (135:9): [True: 120, False: 2.71k]
  ------------------
  136|       |    // Case insensitive match hi but not hie nor hia.
  137|  2.71k|    if ((text[0] == u'h' || text[0] == u'H') &&
  ------------------
  |  Branch (137:10): [True: 552, False: 2.16k]
  |  Branch (137:29): [True: 906, False: 1.26k]
  ------------------
  138|  2.71k|            ((len > 1) && (text[1] == u'i' || text[1] == u'I')) &&
  ------------------
  |  Branch (138:14): [True: 1.37k, False: 84]
  |  Branch (138:28): [True: 348, False: 1.02k]
  |  Branch (138:47): [True: 618, False: 408]
  ------------------
  139|  2.71k|            ((len == 2) || !(text[2] == u'a' || text[2] == u'A' || text[2] == u'e' || text[2] == u'E'))) {
  ------------------
  |  Branch (139:14): [True: 72, False: 894]
  |  Branch (139:30): [True: 36, False: 858]
  |  Branch (139:49): [True: 48, False: 810]
  |  Branch (139:68): [True: 60, False: 750]
  |  Branch (139:87): [True: 54, False: 696]
  ------------------
  140|    768|        return true;
  141|    768|    }
  142|       |    // Case insensitive for "start with i"
  143|  1.95k|    if (text[0] == u'i' || text[0] == u'I') { return true; }
  ------------------
  |  Branch (143:9): [True: 36, False: 1.91k]
  |  Branch (143:28): [True: 36, False: 1.87k]
  ------------------
  144|  1.87k|    return false;
  145|  1.95k|}
listformatter.cpp:_ZN6icu_7812_GLOBAL__N_117ContextualHandlerC2EPFbRKNS_13UnicodeStringEES4_S4_S4_S4_R10UErrorCode:
   85|    109|        PatternHandler(elseTwo, elseEnd, errorCode),
   86|    109|        test(testFunc),
   87|    109|        thenTwoPattern(thenTwo, 2, 2, errorCode),
   88|    109|        thenEndPattern(thenEnd, 2, 2, errorCode) {  }
listformatter.cpp:_ZN6icu_7812_GLOBAL__N_114PatternHandlerC2ERKNS_13UnicodeStringES4_R10UErrorCode:
   48|    497|        twoPattern(two, 2, 2, errorCode),
   49|    497|        endPattern(end, 2, 2, errorCode) {  }
listformatter.cpp:_ZNK6icu_7812_GLOBAL__N_114PatternHandler13getTwoPatternERKNS_13UnicodeStringE:
   60|  2.56k|    virtual const SimpleFormatter& getTwoPattern(const UnicodeString&) const {
   61|  2.56k|        return twoPattern;
   62|  2.56k|    }
listformatter.cpp:_ZNK6icu_7812_GLOBAL__N_114PatternHandler13getEndPatternERKNS_13UnicodeStringE:
   65|  5.12k|    virtual const SimpleFormatter& getEndPattern(const UnicodeString&) const {
   66|  5.12k|        return endPattern;
   67|  5.12k|    }
listformatter.cpp:_ZNK6icu_7812_GLOBAL__N_117ContextualHandler13getTwoPatternERKNS_13UnicodeStringE:
  106|  2.16k|        const UnicodeString& text) const override {
  107|  2.16k|        return (test)(text) ? thenTwoPattern : twoPattern;
  ------------------
  |  Branch (107:16): [True: 826, False: 1.33k]
  ------------------
  108|  2.16k|    }
listformatter.cpp:_ZNK6icu_7812_GLOBAL__N_117ContextualHandler13getEndPatternERKNS_13UnicodeStringE:
  111|  4.32k|        const UnicodeString& text) const override {
  112|  4.32k|        return (test)(text) ? thenEndPattern : endPattern;
  ------------------
  |  Branch (112:16): [True: 1.65k, False: 2.67k]
  ------------------
  113|  4.32k|    }
listformatter.cpp:_ZN6icu_7812_GLOBAL__N_115shouldChangeToUERKNS_13UnicodeStringE:
  150|  2.05k|bool shouldChangeToU(const UnicodeString& text) {
  151|  2.05k|    int32_t len = text.length();
  152|  2.05k|    if (len == 0) { return false; }
  ------------------
  |  Branch (152:9): [True: 48, False: 2.00k]
  ------------------
  153|       |    // Case insensitive match o.* and 8.*
  154|  2.00k|    if (text[0] == u'o' || text[0] == u'O' || text[0] == u'8') { return true; }
  ------------------
  |  Branch (154:9): [True: 18, False: 1.98k]
  |  Branch (154:28): [True: 18, False: 1.96k]
  |  Branch (154:47): [True: 18, False: 1.95k]
  ------------------
  155|       |    // Case insensitive match ho.*
  156|  1.95k|    if ((text[0] == u'h' || text[0] == u'H') &&
  ------------------
  |  Branch (156:10): [True: 246, False: 1.70k]
  |  Branch (156:29): [True: 546, False: 1.15k]
  ------------------
  157|  1.95k|            ((len > 1) && (text[1] == 'o' || text[1] == u'O'))) {
  ------------------
  |  Branch (157:14): [True: 756, False: 36]
  |  Branch (157:28): [True: 18, False: 738]
  |  Branch (157:46): [True: 18, False: 720]
  ------------------
  158|     36|        return true;
  159|     36|    }
  160|       |    // match "^11$" and "^11 .*"
  161|  1.91k|    if ((len >= 2) && text[0] == u'1' && text[1] == u'1' && (len == 2 || text[2] == u' ')) { return true; }
  ------------------
  |  Branch (161:9): [True: 1.63k, False: 282]
  |  Branch (161:23): [True: 732, False: 900]
  |  Branch (161:42): [True: 522, False: 210]
  |  Branch (161:62): [True: 18, False: 504]
  |  Branch (161:74): [True: 18, False: 486]
  ------------------
  162|  1.87k|    return false;
  163|  1.91k|}
listformatter.cpp:_ZN6icu_7812_GLOBAL__N_121shouldChangeToVavDashERKNS_13UnicodeStringE:
  167|  1.59k|bool shouldChangeToVavDash(const UnicodeString& text) {
  168|  1.59k|    if (text.isEmpty()) { return false; }
  ------------------
  |  Branch (168:9): [True: 84, False: 1.51k]
  ------------------
  169|  1.51k|    UErrorCode status = U_ZERO_ERROR;
  170|  1.51k|    return uscript_getScript(text.char32At(0), &status) != USCRIPT_HEBREW;
  ------------------
  |  | 1706|  1.51k|#define uscript_getScript U_ICU_ENTRY_POINT_RENAME(uscript_getScript)
  |  |  ------------------
  |  |  |  |  123|  1.51k|#       define U_ICU_ENTRY_POINT_RENAME(x)    U_DEF2_ICU_ENTRY_POINT_RENAME(x,U_ICU_VERSION_SUFFIX)
  |  |  |  |  ------------------
  |  |  |  |  |  |  122|  1.51k|#       define U_DEF2_ICU_ENTRY_POINT_RENAME(x,y) U_DEF_ICU_ENTRY_POINT_RENAME(x,y)
  |  |  |  |  |  |  ------------------
  |  |  |  |  |  |  |  |  121|  1.51k|#       define U_DEF_ICU_ENTRY_POINT_RENAME(x,y) x ## y
  |  |  |  |  |  |  ------------------
  |  |  |  |  ------------------
  |  |  ------------------
  ------------------
  171|  1.59k|}
listformatter.cpp:_ZN6icu_78L22typeWidthToStyleStringE18UListFormatterType19UListFormatterWidth:
  355|  3.42k|static const char* typeWidthToStyleString(UListFormatterType type, UListFormatterWidth width) {
  356|  3.42k|    switch (type) {
  ------------------
  |  Branch (356:13): [True: 874, False: 2.55k]
  ------------------
  357|  1.57k|        case ULISTFMT_TYPE_AND:
  ------------------
  |  Branch (357:9): [True: 1.57k, False: 1.84k]
  ------------------
  358|  1.57k|            switch (width) {
  359|  1.39k|                case ULISTFMT_WIDTH_WIDE:
  ------------------
  |  Branch (359:17): [True: 1.39k, False: 182]
  ------------------
  360|  1.39k|                    return "standard";
  361|     49|                case ULISTFMT_WIDTH_SHORT:
  ------------------
  |  Branch (361:17): [True: 49, False: 1.52k]
  ------------------
  362|     49|                    return "standard-short";
  363|     58|                case ULISTFMT_WIDTH_NARROW:
  ------------------
  |  Branch (363:17): [True: 58, False: 1.51k]
  ------------------
  364|     58|                    return "standard-narrow";
  365|     75|                default:
  ------------------
  |  Branch (365:17): [True: 75, False: 1.50k]
  ------------------
  366|     75|                    return nullptr;
  367|  1.57k|            }
  368|      0|            break;
  369|       |
  370|    769|        case ULISTFMT_TYPE_OR:
  ------------------
  |  Branch (370:9): [True: 769, False: 2.65k]
  ------------------
  371|    769|            switch (width) {
  372|    314|                case ULISTFMT_WIDTH_WIDE:
  ------------------
  |  Branch (372:17): [True: 314, False: 455]
  ------------------
  373|    314|                    return "or";
  374|    240|                case ULISTFMT_WIDTH_SHORT:
  ------------------
  |  Branch (374:17): [True: 240, False: 529]
  ------------------
  375|    240|                    return "or-short";
  376|    128|                case ULISTFMT_WIDTH_NARROW:
  ------------------
  |  Branch (376:17): [True: 128, False: 641]
  ------------------
  377|    128|                    return "or-narrow";
  378|     87|                default:
  ------------------
  |  Branch (378:17): [True: 87, False: 682]
  ------------------
  379|     87|                    return nullptr;
  380|    769|            }
  381|      0|            break;
  382|       |
  383|    206|        case ULISTFMT_TYPE_UNITS:
  ------------------
  |  Branch (383:9): [True: 206, False: 3.22k]
  ------------------
  384|    206|            switch (width) {
  385|     77|                case ULISTFMT_WIDTH_WIDE:
  ------------------
  |  Branch (385:17): [True: 77, False: 129]
  ------------------
  386|     77|                    return "unit";
  387|     32|                case ULISTFMT_WIDTH_SHORT:
  ------------------
  |  Branch (387:17): [True: 32, False: 174]
  ------------------
  388|     32|                    return "unit-short";
  389|     68|                case ULISTFMT_WIDTH_NARROW:
  ------------------
  |  Branch (389:17): [True: 68, False: 138]
  ------------------
  390|     68|                    return "unit-narrow";
  391|     29|                default:
  ------------------
  |  Branch (391:17): [True: 29, False: 177]
  ------------------
  392|     29|                    return nullptr;
  393|    206|            }
  394|  3.42k|    }
  395|       |
  396|    874|    return nullptr;
  397|  3.42k|}
listformatter.cpp:_ZN6icu_7812_GLOBAL__N_120FormattedListBuilderC2ER10UErrorCode:
  569|  4.72k|            : data(new FormattedListData(status), status) {
  570|  4.72k|    }
_ZN6icu_7817FormattedListDataC2ER10UErrorCode:
  247|  23.6k|    FormattedListData(UErrorCode&) : FormattedValueStringBuilderImpl(kUndefinedField) {}
listformatter.cpp:_ZN6icu_7812_GLOBAL__N_120FormattedListBuilderC2ERKNS_13UnicodeStringER10UErrorCode:
  557|  18.8k|            : data(new FormattedListData(status), status) {
  558|  18.8k|        if (U_SUCCESS(status)) {
  ------------------
  |  Branch (558:13): [True: 18.8k, False: 0]
  ------------------
  559|  18.8k|            data->getStringRef().append(
  560|  18.8k|                start,
  561|  18.8k|                {UFIELD_CATEGORY_LIST, ULISTFMT_ELEMENT_FIELD},
  562|  18.8k|                status);
  563|  18.8k|            data->appendSpanInfo(UFIELD_CATEGORY_LIST_SPAN, 0, -1, start.length(), status);
  564|  18.8k|        }
  565|  18.8k|    }
listformatter.cpp:_ZN6icu_7812_GLOBAL__N_120FormattedListBuilder6appendERKNS_15SimpleFormatterERKNS_13UnicodeStringEiR10UErrorCode:
  572|  28.3k|    void append(const SimpleFormatter& pattern, const UnicodeString& next, int32_t position, UErrorCode& status) {
  573|  28.3k|        if (U_FAILURE(status)) {
  ------------------
  |  Branch (573:13): [True: 0, False: 28.3k]
  ------------------
  574|      0|            return;
  575|      0|        }
  576|  28.3k|        if (pattern.getArgumentLimit() != 2) {
  ------------------
  |  Branch (576:13): [True: 0, False: 28.3k]
  ------------------
  577|      0|            status = U_INTERNAL_PROGRAM_ERROR;
  578|      0|            return;
  579|      0|        }
  580|       |        // In the pattern, {0} are the pre-existing elements and {1} is the new element.
  581|  28.3k|        int32_t offsets[] = {0, 0};
  582|  28.3k|        UnicodeString temp = pattern.getTextWithNoArguments(offsets, 2);
  583|  28.3k|        if (offsets[0] <= offsets[1]) {
  ------------------
  |  Branch (583:13): [True: 28.3k, False: 0]
  ------------------
  584|       |            // prefix{0}infix{1}suffix
  585|       |            // Prepend prefix, then append infix, element, and suffix
  586|  28.3k|            data->getStringRef().insert(
  587|  28.3k|                0,
  588|  28.3k|                temp.tempSubStringBetween(0, offsets[0]),
  589|  28.3k|                {UFIELD_CATEGORY_LIST, ULISTFMT_LITERAL_FIELD},
  590|  28.3k|                status);
  591|  28.3k|            data->getStringRef().append(
  592|  28.3k|                temp.tempSubStringBetween(offsets[0], offsets[1]),
  593|  28.3k|                {UFIELD_CATEGORY_LIST, ULISTFMT_LITERAL_FIELD},
  594|  28.3k|                status);
  595|  28.3k|            data->getStringRef().append(
  596|  28.3k|                next,
  597|  28.3k|                {UFIELD_CATEGORY_LIST, ULISTFMT_ELEMENT_FIELD},
  598|  28.3k|                status);
  599|  28.3k|            data->appendSpanInfo(UFIELD_CATEGORY_LIST_SPAN, position, -1, next.length(), status);
  600|  28.3k|            data->getStringRef().append(
  601|  28.3k|                temp.tempSubString(offsets[1]),
  602|  28.3k|                {UFIELD_CATEGORY_LIST, ULISTFMT_LITERAL_FIELD},
  603|  28.3k|                status);
  604|  28.3k|        } else {
  605|       |            // prefix{1}infix{0}suffix
  606|       |            // Prepend infix, element, and prefix, then append suffix.
  607|       |            // (We prepend in reverse order because prepending at index 0 is fast.)
  608|      0|            data->getStringRef().insert(
  609|      0|                0,
  610|      0|                temp.tempSubStringBetween(offsets[1], offsets[0]),
  611|      0|                {UFIELD_CATEGORY_LIST, ULISTFMT_LITERAL_FIELD},
  612|      0|                status);
  613|      0|            data->getStringRef().insert(
  614|      0|                0,
  615|      0|                next,
  616|      0|                {UFIELD_CATEGORY_LIST, ULISTFMT_ELEMENT_FIELD},
  617|      0|                status);
  618|      0|            data->prependSpanInfo(UFIELD_CATEGORY_LIST_SPAN, position, -1, next.length(), status);
  619|      0|            data->getStringRef().insert(
  620|      0|                0,
  621|      0|                temp.tempSubStringBetween(0, offsets[1]),
  622|      0|                {UFIELD_CATEGORY_LIST, ULISTFMT_LITERAL_FIELD},
  623|      0|                status);
  624|      0|            data->getStringRef().append(
  625|      0|                temp.tempSubString(offsets[0]),
  626|      0|                {UFIELD_CATEGORY_LIST, ULISTFMT_LITERAL_FIELD},
  627|      0|                status);
  628|      0|        }
  629|  28.3k|    }
_ZN6icu_7813ListFormatter16ListPatternsSink3putEPKcRNS_13ResourceValueEaR10UErrorCode:
  440|  1.31k|            UErrorCode &errorCode) override {
  441|  1.31k|        aliasedStyle[0] = 0;
  442|  1.31k|        if (value.getType() == URES_ALIAS) {
  ------------------
  |  Branch (442:13): [True: 0, False: 1.31k]
  ------------------
  443|      0|            setAliasedStyle(value.getAliasUnicodeString(errorCode));
  444|      0|            return;
  445|      0|        }
  446|  1.31k|        ResourceTable listPatterns = value.getTable(errorCode);
  447|  5.81k|        for (int i = 0; U_SUCCESS(errorCode) && listPatterns.getKeyAndValue(i, key, value); ++i) {
  ------------------
  |  Branch (447:25): [True: 5.81k, False: 0]
  |  Branch (447:49): [True: 4.49k, False: 1.31k]
  ------------------
  448|  4.49k|            if (uprv_strcmp(key, "2") == 0) {
  ------------------
  |  |   38|  4.49k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  4.49k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (448:17): [True: 1.25k, False: 3.23k]
  ------------------
  449|  1.25k|                handleValueForPattern(value, two, errorCode);
  450|  3.23k|            } else if (uprv_strcmp(key, "end") == 0) {
  ------------------
  |  |   38|  3.23k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  3.23k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (450:24): [True: 1.30k, False: 1.92k]
  ------------------
  451|  1.30k|                handleValueForPattern(value, end, errorCode);
  452|  1.92k|            } else if (uprv_strcmp(key, "middle") == 0) {
  ------------------
  |  |   38|  1.92k|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|  1.92k|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (452:24): [True: 962, False: 967]
  ------------------
  453|    962|                handleValueForPattern(value, middle, errorCode);
  454|    967|            } else if (uprv_strcmp(key, "start") == 0) {
  ------------------
  |  |   38|    967|#define uprv_strcmp(s1, s2) U_STANDARD_CPP_NAMESPACE strcmp(s1, s2)
  |  |  ------------------
  |  |  |  |  393|    967|#define U_STANDARD_CPP_NAMESPACE        ::
  |  |  ------------------
  ------------------
  |  Branch (454:24): [True: 967, False: 0]
  ------------------
  455|    967|                handleValueForPattern(value, start, errorCode);
  456|    967|            }
  457|  4.49k|        }
  458|  1.31k|    }
_ZN6icu_7813ListFormatter16ListPatternsSink15setAliasedStyleENS_13UnicodeStringE:
  413|    280|    void setAliasedStyle(UnicodeString alias) {
  414|    280|        int32_t startIndex = alias.indexOf(aliasPrefix, kAliasPrefixLen, 0);
  415|    280|        if (startIndex < 0) {
  ------------------
  |  Branch (415:13): [True: 0, False: 280]
  ------------------
  416|      0|            return;
  417|      0|        }
  418|    280|        startIndex += kAliasPrefixLen;
  419|    280|        int32_t endIndex = alias.indexOf(solidus, startIndex);
  420|    280|        if (endIndex < 0) {
  ------------------
  |  Branch (420:13): [True: 0, False: 280]
  ------------------
  421|      0|            endIndex = alias.length();
  422|      0|        }
  423|    280|        alias.extract(startIndex, endIndex-startIndex, aliasedStyle, kStyleLenMax+1, US_INV);
  ------------------
  |  |   98|    280|#define US_INV icu::UnicodeString::kInvariant
  ------------------
  424|    280|        aliasedStyle[kStyleLenMax] = 0;
  425|    280|    }
_ZN6icu_7813ListFormatter16ListPatternsSink21handleValueForPatternERNS_13ResourceValueERNS_13UnicodeStringER10UErrorCode:
  427|  4.49k|    void handleValueForPattern(ResourceValue &value, UnicodeString &pattern, UErrorCode &errorCode) {
  428|  4.49k|        if (pattern.isEmpty()) {
  ------------------
  |  Branch (428:13): [True: 2.97k, False: 1.51k]
  ------------------
  429|  2.97k|            if (value.getType() == URES_ALIAS) {
  ------------------
  |  Branch (429:17): [True: 988, False: 1.98k]
  ------------------
  430|    988|                if (aliasedStyle[0] == 0) {
  ------------------
  |  Branch (430:21): [True: 280, False: 708]
  ------------------
  431|    280|                    setAliasedStyle(value.getAliasUnicodeString(errorCode));
  432|    280|                }
  433|  1.98k|            } else {
  434|  1.98k|                pattern = value.getUnicodeString(errorCode);
  435|  1.98k|            }
  436|  2.97k|        }
  437|  4.49k|    }

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

_ZN6icu_7813FormattedListC2EPNS_17FormattedListDataE:
  134|  23.6k|        : fData(results), fErrorCode(U_ZERO_ERROR) {}

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

_Z10TestFormatPN6icu_7813ListFormatterEPKNS_13UnicodeStringE:
   14|  2.36k|void TestFormat(icu::ListFormatter* listFormat, const icu::UnicodeString* items) {
   15|  14.1k|    for (size_t i = 0; i <= 4; i++) {
  ------------------
  |  Branch (15:24): [True: 11.8k, False: 2.36k]
  ------------------
   16|  11.8k|        icu::UnicodeString appendTo;
   17|  11.8k|        UErrorCode status = U_ZERO_ERROR;
   18|  11.8k|        listFormat->format(items, i, appendTo, status);
   19|  11.8k|        status = U_ZERO_ERROR;
   20|  11.8k|        icu::FormattedList formatted = listFormat->formatStringsToValue(items, i, status);
   21|  11.8k|    }
   22|  2.36k|}
LLVMFuzzerTestOneInput:
   23|  1.14k|extern "C" int LLVMFuzzerTestOneInput(const uint8_t* data, size_t size) {
   24|  1.14k|    uint16_t rnd;
   25|  1.14k|    UListFormatterType type;
   26|  1.14k|    UListFormatterWidth width;
   27|  1.14k|    if (size < sizeof(rnd) + sizeof(type) + sizeof(width)) return 0;
  ------------------
  |  Branch (27:9): [True: 6, False: 1.14k]
  ------------------
   28|  1.14k|    icu::StringPiece fuzzData(reinterpret_cast<const char *>(data), size);
   29|       |
   30|  1.14k|    std::memcpy(&rnd, fuzzData.data(), sizeof(rnd));
   31|  1.14k|    icu::Locale locale = GetRandomLocale(rnd);
   32|  1.14k|    fuzzData.remove_prefix(sizeof(rnd));
   33|       |
   34|  1.14k|    std::memcpy(&type, fuzzData.data(), sizeof(type));
   35|  1.14k|    fuzzData.remove_prefix(sizeof(type));
   36|  1.14k|    std::memcpy(&width, fuzzData.data(), sizeof(width));
   37|  1.14k|    fuzzData.remove_prefix(sizeof(width));
   38|       |
   39|  1.14k|    size_t len = fuzzData.size() / sizeof(char16_t);
   40|  1.14k|    icu::UnicodeString text(false, reinterpret_cast<const char16_t*>(fuzzData.data()), len);
   41|  1.14k|    const icu::UnicodeString items[] = { text, text, text, text };
   42|       |
   43|  1.14k|    UErrorCode status = U_ZERO_ERROR;
   44|  1.14k|    std::unique_ptr<icu::ListFormatter> listFormat(
   45|  1.14k|        icu::ListFormatter::createInstance(locale, status));
   46|  1.14k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (46:9): [True: 1.14k, False: 0]
  ------------------
   47|  1.14k|        TestFormat(listFormat.get(), items);
   48|  1.14k|    }
   49|       |
   50|  1.14k|    status = U_ZERO_ERROR;
   51|  1.14k|    listFormat.reset(
   52|  1.14k|        icu::ListFormatter::createInstance(locale, type, width, status));
   53|  1.14k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (53:9): [True: 233, False: 909]
  ------------------
   54|    233|        TestFormat(listFormat.get(), items);
   55|    233|    }
   56|       |
   57|  1.14k|    status = U_ZERO_ERROR;
   58|  1.14k|    type = static_cast<UListFormatterType>(
   59|  1.14k|        static_cast<int>(type) % (static_cast<int>(ULISTFMT_TYPE_UNITS) + 1));
   60|  1.14k|    width = static_cast<UListFormatterWidth>(
   61|  1.14k|        static_cast<int>(width) % (static_cast<int>(ULISTFMT_WIDTH_NARROW) + 1));
   62|  1.14k|    listFormat.reset(
   63|  1.14k|        icu::ListFormatter::createInstance(locale, type, width, status));
   64|  1.14k|    if (U_SUCCESS(status)) {
  ------------------
  |  Branch (64:9): [True: 986, False: 156]
  ------------------
   65|    986|        TestFormat(listFormat.get(), items);
   66|    986|    }
   67|       |
   68|  1.14k|    return EXIT_SUCCESS;
   69|  1.14k|}

