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

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

#include <utility>

#include "bytesinkutil.h"  // CharStringByteSink
#include "charstr.h"
#include "cstring.h"
#include "ulocimp.h"
#include "unicode/localebuilder.h"
#include "unicode/locid.h"

U_NAMESPACE_BEGIN

#define UPRV_ISDIGIT(c)
#define UPRV_ISALPHANUM(c)

constexpr const char* kAttributeKey =;

static bool _isExtensionSubtags(char key, const char* s, int32_t len) {}

LocaleBuilder::LocaleBuilder() :{}

LocaleBuilder::~LocaleBuilder()
{}

LocaleBuilder& LocaleBuilder::setLocale(const Locale& locale)
{}

LocaleBuilder& LocaleBuilder::setLanguageTag(StringPiece tag)
{}

static void setField(StringPiece input, char* dest, UErrorCode& errorCode,
                     UBool (*test)(const char*, int32_t)) {}

LocaleBuilder& LocaleBuilder::setLanguage(StringPiece language)
{}

LocaleBuilder& LocaleBuilder::setScript(StringPiece script)
{}

LocaleBuilder& LocaleBuilder::setRegion(StringPiece region)
{}

static void transform(char* data, int32_t len) {}

LocaleBuilder& LocaleBuilder::setVariant(StringPiece variant)
{}

static bool
_isKeywordValue(const char* key, const char* value, int32_t value_len)
{}

static void
_copyExtensions(const Locale& from, icu::StringEnumeration *keywords,
                Locale& to, bool validate, UErrorCode& errorCode)
{}

void static
_clearUAttributesAndKeyType(Locale& locale, UErrorCode& errorCode)
{}

static void
_setUnicodeExtensions(Locale& locale, const CharString& value, UErrorCode& errorCode)
{}

LocaleBuilder& LocaleBuilder::setExtension(char key, StringPiece value)
{}

LocaleBuilder& LocaleBuilder::setUnicodeLocaleKeyword(
      StringPiece key, StringPiece type)
{}

LocaleBuilder& LocaleBuilder::addUnicodeLocaleAttribute(
    StringPiece value)
{}

LocaleBuilder& LocaleBuilder::removeUnicodeLocaleAttribute(
    StringPiece value)
{}

LocaleBuilder& LocaleBuilder::clear()
{}

LocaleBuilder& LocaleBuilder::clearExtensions()
{}

Locale makeBogusLocale() {}

void LocaleBuilder::copyExtensionsFrom(const Locale& src, UErrorCode& errorCode)
{}

Locale LocaleBuilder::build(UErrorCode& errorCode)
{}

UBool LocaleBuilder::copyErrorTo(UErrorCode &outErrorCode) const {}

U_NAMESPACE_END