MCPcopy Create free account
hub / github.com/FirebirdSQL/firebird / LCICU_setup_attributes

Function LCICU_setup_attributes

src/intl/lc_icu.cpp:113–131  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

111
112
113bool LCICU_setup_attributes(const ASCII* name, const ASCII* charSetName, const ASCII* configInfo,
114 const Firebird::string& specificAttributes, Firebird::string& newSpecificAttributes)
115{
116 const size_t len = strlen(name);
117
118 if (len > 8 && strcmp(name + len - 8, "_UNICODE") == 0)
119 {
120 AutoPtr<charset> cs(FB_NEW charset);
121 memset(cs, 0, sizeof(*cs));
122
123 // test if that charset exist
124 if (!LD_lookup_charset(cs, charSetName, configInfo))
125 return false;
126
127 return IntlUtil::setupIcuAttributes(cs, specificAttributes, configInfo, newSpecificAttributes);
128 }
129
130 return true;
131}
132
133
134bool LCICU_texttype_init(texttype* tt,

Callers 1

LD_setup_attributesFunction · 0.85

Calls 1

LD_lookup_charsetFunction · 0.85

Tested by

no test coverage detected