Lines Matching full:errorcode
152 UXMLParser::createParser(UErrorCode &errorCode) {
153 if (U_FAILURE(errorCode)) {
156 return new UXMLParser(errorCode);
163 UXMLParser::parseFile(const char *filename, UErrorCode &errorCode) {
173 if(U_FAILURE(errorCode)) {
179 errorCode=U_FILE_ACCESS_ERROR;
198 charset=ucnv_detectUnicodeSignature(bytes, bytesLength, NULL, &errorCode);
199 if(U_SUCCESS(errorCode) && charset!=NULL) {
201 cnv=ucnv_open(charset, &errorCode);
204 cnv=ucnv_open("ISO-8859-1", &errorCode);
205 if(U_FAILURE(errorCode)) {
213 errorCode=U_MEMORY_ALLOCATION_ERROR;
222 NULL, TRUE, &errorCode);
223 src.releaseBuffer(U_SUCCESS(errorCode) ? (int32_t)(pu-buffer) : 0);
226 if(U_FAILURE(errorCode)) {
233 if(mXMLDecl.reset(src).lookingAt(0, errorCode)) {
234 int32_t declEnd=mXMLDecl.end(errorCode);
239 while(pos<declEnd && mAttrValue.lookingAt(pos, errorCode)) { // loop runs once per attribute on this element.
240 UnicodeString attName = mAttrValue.group(1, errorCode);
241 UnicodeString attValue = mAttrValue.group(2, errorCode);
253 pos = mAttrValue.end(2, errorCode);
260 cnv=ucnv_open(charset, &errorCode);
264 if(U_FAILURE(errorCode)) {
282 errorCode=U_MEMORY_ALLOCATION_ERROR;
290 NULL, FALSE, &errorCode);
291 src.releaseBuffer(U_SUCCESS(errorCode) ? (int32_t)(pu-buffer) : 0);
292 if(errorCode==U_BUFFER_OVERFLOW_ERROR) {
293 errorCode=U_ZERO_ERROR;
300 if(U_FAILURE(errorCode)) {
320 if(U_SUCCESS(errorCode)) {
321 return parse(src, errorCode);
652 UXMLParser::intern(const UnicodeString &s, UErrorCode &errorCode) {
659 fNames.puti(s, 0, errorCode);
679 UXMLElement::UXMLElement(const UXMLParser *parser, const UnicodeString *name, UErrorCode &errorCode) :
682 fAttNames(errorCode),
683 fAttValues(errorCode),
684 fChildren(errorCode),