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

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

#include <utility>

#include "unicode/bytestream.h"
#include "unicode/localebuilder.h"
#include "unicode/locid.h"
#include "unicode/stringpiece.h"
#include "unicode/umachine.h"
#include "unicode/ulocbuilder.h"
#include "cstring.h"
#include "ustr_imp.h"

CheckedArrayByteSink;
StringPiece;

#define EXTERNAL(i)
#define INTERNAL(e)
#define CONST_INTERNAL(e)

ULocaleBuilder* ulocbld_open() {}

void ulocbld_close(ULocaleBuilder* builder) {}

void ulocbld_setLocale(ULocaleBuilder* builder, const char* locale, int32_t length) {}

void
ulocbld_adoptULocale(ULocaleBuilder* builder, ULocale* locale) {}

#define STRING_PIECE(s, l)

#define IMPL_ULOCBLD_SETTER(N)

IMPL_ULOCBLD_SETTER()
IMPL_ULOCBLD_SETTER()
IMPL_ULOCBLD_SETTER()
IMPL_ULOCBLD_SETTER()
IMPL_ULOCBLD_SETTER()
IMPL_ULOCBLD_SETTER()
IMPL_ULOCBLD_SETTER()

void ulocbld_setExtension(ULocaleBuilder* builder, char key, const char* value, int32_t length) {}

void ulocbld_setUnicodeLocaleKeyword(
    ULocaleBuilder* builder, const char* key, int32_t keyLength,
    const char* type, int32_t typeLength) {}

void ulocbld_clear(ULocaleBuilder* builder) {}

void ulocbld_clearExtensions(ULocaleBuilder* builder) {}


ULocale* ulocbld_buildULocale(ULocaleBuilder* builder, UErrorCode* err) {}

int32_t ulocbld_buildLocaleID(ULocaleBuilder* builder,
                              char* buffer, int32_t bufferCapacity, UErrorCode* err) {}

int32_t ulocbld_buildLanguageTag(ULocaleBuilder* builder,
                  char* buffer, int32_t bufferCapacity, UErrorCode* err) {}

UBool ulocbld_copyErrorTo(const ULocaleBuilder* builder, UErrorCode *outErrorCode) {}