@@ -41,12 +41,12 @@ * Oh, and we can't use [self allocWithSize:] here as self might be a * @"" literal. */ if ((retCString = malloc(([self UTF8StringLength] * 3) + 1)) == NULL) @throw [OFOutOfMemoryException - newWithClass: isa - requestedSize: ([self UTF8StringLength] * 3) + 1]; + exceptionWithClass: isa + requestedSize: ([self UTF8StringLength] * 3) + 1]; for (i = 0; *string != '\0'; string++) { if (isalnum((int)*string) || *string == '-' || *string == '_' || *string == '.' || *string == '~') retCString[i++] = *string; @@ -83,12 +83,12 @@ int state = 0; size_t i; if ((retCString = malloc([self UTF8StringLength] + 1)) == NULL) @throw [OFOutOfMemoryException - newWithClass: isa - requestedSize: [self UTF8StringLength] + 1]; + exceptionWithClass: isa + requestedSize: [self UTF8StringLength] + 1]; for (i = 0; *string; string++) { switch (state) { case 0: if (*string == '%') @@ -109,11 +109,11 @@ else if (*string >= 'a' && *string <= 'f') byte += (*string - 'a' + 10) << shift; else { free(retCString); @throw [OFInvalidEncodingException - newWithClass: isa]; + exceptionWithClass: isa]; } if (++state == 3) { retCString[i++] = byte; state = 0; @@ -125,11 +125,11 @@ } retCString[i] = '\0'; if (state != 0) { free(retCString); - @throw [OFInvalidEncodingException newWithClass: isa]; + @throw [OFInvalidEncodingException exceptionWithClass: isa]; } @try { ret = [OFString stringWithUTF8String: retCString length: i];