2 * Copyright 2010-2011, Oliver Tappe, zooey@hirschkaefer.de.
3 * Distributed under the terms of the MIT License.
7 #include "ICULocaleconvData.h"
16 ICULocaleconvData::ICULocaleconvData(pthread_key_t tlsKey
)
23 ICULocaleconvData::_SetLocaleconvEntry(const DecimalFormatSymbols
* formatSymbols
,
24 char* destination
, FormatSymbol symbol
, const char* defaultValue
)
26 status_t result
= B_OK
;
28 UnicodeString symbolString
= formatSymbols
->getSymbol(symbol
);
29 if (!symbolString
.isEmpty()) {
30 result
= _ConvertUnicodeStringToLocaleconvEntry(symbolString
,
31 destination
, skLCBufSize
, defaultValue
);
33 destination
[0] = '\0';
39 } // namespace Libroot
40 } // namespace BPrivate