Index: core/include/fxcrt/fx_string.h |
diff --git a/core/include/fxcrt/fx_string.h b/core/include/fxcrt/fx_string.h |
index 4db83e3914321abf93907023acd8142e7c0c5a7e..dd8752ef2838108bf1c9085caf1544941ebdba47 100644 |
--- a/core/include/fxcrt/fx_string.h |
+++ b/core/include/fxcrt/fx_string.h |
@@ -654,6 +654,11 @@ public: |
const CFX_WideString& operator += (const CFX_WideStringC& str); |
+ bool operator< (const CFX_WideString& str) const { |
+ int result = wmemcmp(c_str(), str.c_str(), std::min(GetLength(), str.GetLength())); |
+ return result < 0 || (result == 0 && GetLength() < str.GetLength()); |
+ } |
+ |
FX_WCHAR GetAt(FX_STRSIZE nIndex) const |
{ |
return m_pData ? m_pData->m_String[nIndex] : 0; |