@@ -274,10 +274,26 @@ * \param delimiter The delimiter for splitting * \return An autoreleased OFArray with the splitted string */ - (OFArray*)splitWithDelimiter: (OFString*)delimiter; +/** + * Returns the decimal value of the string as an intmax_t or throws an + * OFInvalidEncoding exception if the string contains any non-number characters. + * + * \return An OFNumber + */ +- (intmax_t)decimalValueAsInteger; + +/** + * Returns the hexadecimal value of the string as an intmax_t or throws an + * OFInvalidEncoding exception if the string contains any non-number characters. + * + * \return An OFNumber + */ +- (intmax_t)hexadecimalValueAsInteger; + - setToCString: (const char*)str; - appendCString: (const char*)str; - appendCString: (const char*)str withLength: (size_t)len; - appendCStringWithoutUTF8Checking: (const char*)str;