Added stringToSizeType and its unittest #4601

This commit is contained in:
Jerry (Xinyu Hou)
2015-05-19 14:23:43 -07:00
parent c032091dd5
commit 2c74a7f5c1
5 changed files with 41 additions and 8 deletions

View File

@@ -88,11 +88,17 @@ Remove all specific \c c in \c suject
*/
void removeChar(String& subject, const char c);
//! Convert an integer to a string
//! Convert a size type to a string
/*!
Convert an \c integer to a string
Convert an size type to a string
*/
String intToString(size_t integer);
String sizeTypeToString(size_t n);
//! Convert a string to a size type
/*!
Convert an a \c string to an size type
*/
size_t stringToSizeType(String string);
//! Case-insensitive comparisons
/*!