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:
parent
0e5be1c7b9
commit
c9e6dd22b1
12
yateclass.h
12
yateclass.h
|
@ -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); }
|
||||
|
||||
/**
|
||||
|
|
Loading…
Reference in New Issue