diff options
Diffstat (limited to 'include/rtl/ustring.h')
-rw-r--r-- | include/rtl/ustring.h | 25 |
1 files changed, 25 insertions, 0 deletions
diff --git a/include/rtl/ustring.h b/include/rtl/ustring.h index 35e4a7d4ad67..5e481c21c4c4 100644 --- a/include/rtl/ustring.h +++ b/include/rtl/ustring.h @@ -1113,6 +1113,31 @@ SAL_DLLPUBLIC sal_uInt32 SAL_CALL rtl_ustr_toUInt32( SAL_DLLPUBLIC sal_Int64 SAL_CALL rtl_ustr_toInt64( const sal_Unicode * str, sal_Int16 radix ) SAL_THROW_EXTERN_C(); +/** Interpret a string as a long integer. + + This function cannot be used for language-specific conversion. The string + must be null-terminated. + + @param str + a null-terminated string. + + @param radix + the radix. Must be between RTL_USTR_MIN_RADIX (2) and RTL_USTR_MAX_RADIX + (36), inclusive. + + @param nStrLength + number of chars to process + + @return + the long integer value represented by the string, or 0 if the string does + not represent a long integer. + + @internal + @since LibreOffice 6.4 +*/ +SAL_DLLPUBLIC sal_Int64 SAL_CALL rtl_ustr_toInt64_WithLength( + const sal_Unicode * str, sal_Int16 radix, sal_Int32 nStrLength ) SAL_THROW_EXTERN_C(); + /** Interpret a string as an unsigned long integer. This function cannot be used for language-specific conversion. The string |