Lines Matching refs:errorCode
80 LayoutPropsBuilder(UErrorCode &errorCode);
84 …virtual void setProps(const UniProps &props, const UnicodeSet &newValues, UErrorCode &errorCode) U…
85 virtual void build(UErrorCode &errorCode) U_OVERRIDE;
86 …virtual void writeBinaryData(const char *path, UBool withCopyright, UErrorCode &errorCode) U_OVERR…
91 UErrorCode &errorCode);
95 void checkMaxIntValue(UProperty prop, int32_t maxMax, UErrorCode &errorCode) const;
107 LayoutPropsBuilder::LayoutPropsBuilder(UErrorCode &errorCode) : in LayoutPropsBuilder() argument
110 inpcMutableTrie = umutablecptrie_open(0, 0, &errorCode); in LayoutPropsBuilder()
111 inscMutableTrie = umutablecptrie_open(0, 0, &errorCode); in LayoutPropsBuilder()
112 voMutableTrie = umutablecptrie_open(0, 0, &errorCode); in LayoutPropsBuilder()
113 if (U_FAILURE(errorCode)) { in LayoutPropsBuilder()
115 u_errorName(errorCode)); in LayoutPropsBuilder()
135 UErrorCode &errorCode) { in setProps() argument
136 setIntProp(props, newValues, UCHAR_INDIC_POSITIONAL_CATEGORY, inpcMutableTrie, errorCode); in setProps()
137 setIntProp(props, newValues, UCHAR_INDIC_SYLLABIC_CATEGORY, inscMutableTrie, errorCode); in setProps()
138 setIntProp(props, newValues, UCHAR_VERTICAL_ORIENTATION, voMutableTrie, errorCode); in setProps()
143 UErrorCode &errorCode) { in setIntProp() argument
144 if (U_SUCCESS(errorCode) && newValues.contains(prop)) { in setIntProp()
151 errorCode = U_ILLEGAL_ARGUMENT_ERROR; in setIntProp()
158 umutablecptrie_set(trie, start, value, &errorCode); in setIntProp()
160 umutablecptrie_setRange(trie, start, end, value, &errorCode); in setIntProp()
162 if (U_FAILURE(errorCode)) { in setIntProp()
164 (int)prop, (long)start, (long)end, u_errorName(errorCode)); in setIntProp()
172 UCPTrieType type, UCPTrieValueWidth valueWidth, UErrorCode &errorCode) { in buildUCPTrie() argument
173 UCPTrie *trie = umutablecptrie_buildImmutable(mutableTrie, type, valueWidth, &errorCode); in buildUCPTrie()
174 if(U_FAILURE(errorCode)) { in buildUCPTrie()
176 name, u_errorName(errorCode)); in buildUCPTrie()
197 int32_t writeTrieBytes(const UCPTrie *trie, uint8_t block[], UErrorCode &errorCode) { in writeTrieBytes() argument
198 int32_t length = ucptrie_toBinary(trie, block, TRIE_BLOCK_CAPACITY, &errorCode); in writeTrieBytes()
208 LayoutPropsBuilder::build(UErrorCode &errorCode) { in build() argument
209 if (U_FAILURE(errorCode)) { return; } in build()
214 checkMaxIntValue(UCHAR_INDIC_POSITIONAL_CATEGORY, 0xff, errorCode); in build()
215 checkMaxIntValue(UCHAR_INDIC_SYLLABIC_CATEGORY, 0xff, errorCode); in build()
216 checkMaxIntValue(UCHAR_VERTICAL_ORIENTATION, 0xff, errorCode); in build()
218 UCPTRIE_TYPE_SMALL, UCPTRIE_VALUE_BITS_8, errorCode); in build()
220 UCPTRIE_TYPE_SMALL, UCPTRIE_VALUE_BITS_8, errorCode); in build()
222 UCPTRIE_TYPE_SMALL, UCPTRIE_VALUE_BITS_8, errorCode); in build()
224 inpcLength = writeTrieBytes(inpcTrie, inpcBytes, errorCode); in build()
225 inscLength = writeTrieBytes(inscTrie, inscBytes, errorCode); in build()
226 voLength = writeTrieBytes(voTrie, voBytes, errorCode); in build()
235 UErrorCode &errorCode) const { in checkMaxIntValue()
239 errorCode = U_ILLEGAL_ARGUMENT_ERROR; in checkMaxIntValue()
251 LayoutPropsBuilder::writeBinaryData(const char *path, UBool withCopyright, UErrorCode &errorCode) { in writeBinaryData() argument
252 if (U_FAILURE(errorCode)) { return; } in writeBinaryData()
256 withCopyright ? U_COPYRIGHT_STRING : NULL, &errorCode); in writeBinaryData()
257 if (U_FAILURE(errorCode)) { in writeBinaryData()
259 path, u_errorName(errorCode)); in writeBinaryData()
287 long dataLength = udata_finish(pData, &errorCode); in writeBinaryData()
288 if (U_FAILURE(errorCode)) { in writeBinaryData()
289 fprintf(stderr, "genprops: error %s writing the output file\n", u_errorName(errorCode)); in writeBinaryData()
297 errorCode = U_INTERNAL_PROGRAM_ERROR; in writeBinaryData()
302 createLayoutPropsBuilder(UErrorCode &errorCode) { in createLayoutPropsBuilder() argument
303 if(U_FAILURE(errorCode)) { return nullptr; } in createLayoutPropsBuilder()
304 PropsBuilder *pb=new LayoutPropsBuilder(errorCode); in createLayoutPropsBuilder()
306 errorCode=U_MEMORY_ALLOCATION_ERROR; in createLayoutPropsBuilder()