Consistent function placement.
This will be used for later.
This commit is contained in:
@@ -1731,6 +1731,13 @@ bool StringToFloat( const RString &sString, float &fOut )
|
||||
return sString.size() && *endPtr == '\0' && isfinite( fOut );
|
||||
}
|
||||
|
||||
RString FloatToString( const float &num )
|
||||
{
|
||||
stringstream ss;
|
||||
ss << num;
|
||||
return ss.str();
|
||||
}
|
||||
|
||||
const wchar_t INVALID_CHAR = 0xFFFD; /* U+FFFD REPLACEMENT CHARACTER */
|
||||
|
||||
wstring RStringToWstring( const RString &s )
|
||||
|
||||
@@ -416,6 +416,7 @@ int StringToInt( const RString &sString );
|
||||
* @return the string we are after. */
|
||||
RString IntToString( const int &iNum );
|
||||
float StringToFloat( const RString &sString );
|
||||
RString FloatToString( const float &num );
|
||||
bool StringToFloat( const RString &sString, float &fOut );
|
||||
|
||||
RString WStringToRString( const wstring &sString );
|
||||
|
||||
Reference in New Issue
Block a user