From: Vadim Zeitlin Date: Sun, 11 Sep 2005 11:44:45 +0000 (+0000) Subject: clarified ToULong() behaviour with negative numbers X-Git-Url: https://git.saurik.com/wxWidgets.git/commitdiff_plain/731fa21e8c60ec762ad54d4150dba02e867cf960 clarified ToULong() behaviour with negative numbers git-svn-id: https://svn.wxwidgets.org/svn/wx/wxWidgets/trunk@35465 c3d73ce0-8a6f-49c7-b76d-6d57e0e08775 --- diff --git a/docs/latex/wx/wxstring.tex b/docs/latex/wx/wxstring.tex index 0a4ff10b73..c1bf614b3f 100644 --- a/docs/latex/wx/wxstring.tex +++ b/docs/latex/wx/wxstring.tex @@ -1045,7 +1045,10 @@ familiar with C) results. Attempts to convert the string to an unsigned integer in base {\it base}. Returns {\tt true} on success in which case the number is stored in the location pointed to by {\it val} or {\tt false} if the string does not -represent a valid number in the given base. +represent a valid number in the given base. Please notice that this function +behaves in the same way as the standard \texttt{strtoul()} and so it simply +converts negative numbers to unsigned representation instead of rejecting them +(e.g. $-1$ is returned as \texttt{ULONG\_MAX}). See \helpref{wxString::ToLong}{wxstringtolong} for the more detailed description of the {\it base} parameter.