diff options
Diffstat (limited to 'core/fxcrt/cfx_bytestring.h')
-rw-r--r-- | core/fxcrt/cfx_bytestring.h | 2 |
1 files changed, 2 insertions, 0 deletions
diff --git a/core/fxcrt/cfx_bytestring.h b/core/fxcrt/cfx_bytestring.h index 8bd9f39fc0..df1b8309fc 100644 --- a/core/fxcrt/cfx_bytestring.h +++ b/core/fxcrt/cfx_bytestring.h @@ -118,6 +118,8 @@ class CFX_ByteString { void SetAt(FX_STRSIZE nIndex, char ch); FX_STRSIZE Insert(FX_STRSIZE index, char ch); + FX_STRSIZE InsertAtFront(char ch) { return Insert(0, ch); } + FX_STRSIZE InsertAtBack(char ch) { return Insert(GetLength(), ch); } FX_STRSIZE Delete(FX_STRSIZE index, FX_STRSIZE count = 1); void Format(const char* lpszFormat, ...); |