Added String indexing with unsigned int to provide shortest conversion.

git-svn-id: http://voip.null.ro/svn/yate@2365 acf43c95-373e-0410-b603-e72c3f656dc1
This commit is contained in:
paulc 2008-11-25 16:20:32 +00:00
parent 0e5be1c7b9
commit c9e6dd22b1
1 changed files with 10 additions and 2 deletions

View File

@ -1460,11 +1460,19 @@ public:
String& toLower();
/**
* Indexing operator
* Indexing operator with signed int
* @param index Index of character in string
* @return Character at given index or 0 if out of range
*/
inline char operator[](int index) const
inline char operator[](signed int index) const
{ return at(index); }
/**
* Indexing operator with unsigned int
* @param index Index of character in string
* @return Character at given index or 0 if out of range
*/
inline char operator[](unsigned int index) const
{ return at(index); }
/**