chromium/third_party/icu/source/common/static_unicode_sets.cpp

// © 2018 and later: Unicode, Inc. and others.
// License & terms of use: http://www.unicode.org/copyright.html

#include "unicode/utypes.h"

#if !UCONFIG_NO_FORMATTING

// Allow implicit conversion from char16_t* to UnicodeString for this file:
// Helpful in toString methods and elsewhere.
#define UNISTR_FROM_STRING_EXPLICIT

#include "static_unicode_sets.h"
#include "umutex.h"
#include "ucln_cmn.h"
#include "unicode/uniset.h"
#include "uresimp.h"
#include "cstring.h"
#include "uassert.h"

usingnamespaceicu;
usingnamespaceicu::unisets;


namespace {

UnicodeSet* gUnicodeSets[UNISETS_KEY_COUNT] =;

// Save the empty instance in static memory to have well-defined behavior if a
// regular UnicodeSet cannot be allocated.
alignas(UnicodeSet)
char gEmptyUnicodeSet[sizeof(UnicodeSet)];

// Whether the gEmptyUnicodeSet is initialized and ready to use.
UBool gEmptyUnicodeSetInitialized =;

inline UnicodeSet* getImpl(Key key) {}

UnicodeSet* computeUnion(Key k1, Key k2) {}

UnicodeSet* computeUnion(Key k1, Key k2, Key k3) {}


void saveSet(Key key, const UnicodeString& unicodeSetPattern, UErrorCode& status) {}

class ParseDataSink : public ResourceSink {};


icu::UInitOnce gNumberParseUniSetsInitOnce {};

UBool U_CALLCONV cleanupNumberParseUniSets() {}

void U_CALLCONV initNumberParseUniSets(UErrorCode& status) {}

}

const UnicodeSet* unisets::get(Key key) {}

Key unisets::chooseFrom(UnicodeString str, Key key1) {}

Key unisets::chooseFrom(UnicodeString str, Key key1, Key key2) {}

//Key unisets::chooseCurrency(UnicodeString str) {
//    if (get(DOLLAR_SIGN)->contains(str)) {
//        return DOLLAR_SIGN;
//    } else if (get(POUND_SIGN)->contains(str)) {
//        return POUND_SIGN;
//    } else if (get(RUPEE_SIGN)->contains(str)) {
//        return RUPEE_SIGN;
//    } else if (get(YEN_SIGN)->contains(str)) {
//        return YEN_SIGN;
//    } else {
//        return NONE;
//    }
//}


#endif /* #if !UCONFIG_NO_FORMATTING */