For DOS Protected Mode version of sensor core software
You can not select more than 25 topics Topics must start with a letter or number, can include dashes ('-') and can be up to 35 characters long.

50 lines
1021 B

3 years ago
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
​
  1. #ifndef ___LG_MULTI_BYTE_STRING___
  2. #define ___LG_MULTI_BYTE_STRING___
  3. class CLgString
  4. {
  5. public:
  6. CLgString();
  7. CLgString( const CLgString& s );
  8. CLgString( LPCTSTR pString );
  9. virtual ~CLgString();
  10. public:
  11. int Length() const;
  12. CLgString& UpperCase();
  13. LPCTSTR c_str() const;
  14. public:
  15. CLgString& operator = ( TCHAR ch );
  16. CLgString& operator = ( LPCTSTR pString );
  17. CLgString& operator = ( const CLgString& s );
  18. CLgString& operator += ( LPCTSTR pString );
  19. CLgString& operator += ( const CLgString& s );
  20. CLgString& operator += ( const TCHAR ch );
  21. public:
  22. friend bool operator == ( const CLgString& s, LPCTSTR pString );
  23. friend bool operator != ( const CLgString& s1, const CLgString& s2 );
  24. public:
  25. friend CLgString operator + ( const CLgString& s1, const CLgString& s2 );
  26. public:
  27. friend bool TryLgStringToInt( const CLgString& s, int& value );
  28. friend CLgString IntToLgString( const int value );
  29. private:
  30. LPTSTR m_pString;
  31. };
  32. class ClgMbString{
  33. public:
  34. ClgMbString();
  35. ~ClgMbString();
  36. };
  37. #endif