Differences From Artifact [f6c039afa4]:
- File
src/OFString.h
— part of check-in
[5e2ef97c35]
at
2016-03-13 11:19:13
on branch trunk
— Change of_string_utf8_decode() API
It now returns <= 0 on error, with negative values being the number of
bytes it would have needed * -1.This can be used to detect cut off and how many bytes are missing. (user: js, size: 35431) [annotate] [blame] [check-ins using]
To Artifact [f7188a0160]:
- File src/OFString.h — part of check-in [6ea8c2f107] at 2016-05-22 17:38:56 on branch trunk — Add -[OFString octalValue] (user: js, size: 35881) [annotate] [blame] [check-ins using]
︙ | ︙ | |||
948 949 950 951 952 953 954 | * standardization of paths that are part of a URL. * * @return The URL path with relative sub paths resolved */ - (OFString*)stringByStandardizingURLPath; /*! | | | | | | | > > > > > > > > > > > > > > > | | | | | | 948 949 950 951 952 953 954 955 956 957 958 959 960 961 962 963 964 965 966 967 968 969 970 971 972 973 974 975 976 977 978 979 980 981 982 983 984 985 986 987 988 989 990 991 992 993 994 995 996 997 998 999 1000 1001 1002 1003 1004 | * standardization of paths that are part of a URL. * * @return The URL path with relative sub paths resolved */ - (OFString*)stringByStandardizingURLPath; /*! * @brief Returns the decimal value of the string as an `intmax_t`. * * Leading and trailing whitespaces are ignored. * * If the string contains any non-number characters, an * @ref OFInvalidEncodingException is thrown. * * If the number is too big to fit into an `intmax_t`, an * @ref OFOutOfRangeException is thrown. * * @return An `intmax_t` with the value of the string */ - (intmax_t)decimalValue; /*! * @brief Returns the hexadecimal value of the string as an `uintmax_t`. * * Leading and trailing whitespaces are ignored. * * If the string contains any non-number characters, an * @ref OFInvalidEncodingException is thrown. * * If the number is too big to fit into an `uintmax_t`, an * @ref OFOutOfRangeException is thrown. * * @return A `uintmax_t` with the value of the string */ - (uintmax_t)hexadecimalValue; /*! * @brief Returns the octal value of the string as an `uintmax_t`. * * Leading and trailing whitespaces are ignored. * * If the string contains any non-number characters, an * @ref OFInvalidEncodingException is thrown. * * If the number is too big to fit into an `uintmax_t`, an * @ref OFOutOfRangeException is thrown. * * @return A `uintmax_t` with the value of the string */ - (uintmax_t)octalValue; /*! * @brief Returns the float value of the string as a float. * * If the string contains any non-number characters, an * OFInvalidEncodingException is thrown. * |
︙ | ︙ |