| 111 | |
| 112 | |
| 113 | bool 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 | |
| 134 | bool LCICU_texttype_init(texttype* tt, |
no test coverage detected