• Home
  • History
  • Annotate
  • Raw
  • Download
  • only in /netgear-R7000-V1.0.7.12_1.2.5/ap/gpl/amule/wxWidgets-2.8.12/include/wx/

Lines Matching defs:wxString

3 // Purpose:     wxString and wxArrayString classes
14 wxWidgets version 1 wxString and std::string and some handy functions
58 class WXDLLIMPEXP_FWD_BASE wxString;
73 wxASSERT_MSG( (size_t)(i) <= length(), wxT("invalid index in wxString") )
81 // deprecated in favour of wxString::npos, don't use in new code
212 // string data prepended with some housekeeping info (used by wxString class),
280 bool AllocCopy(wxString&, int, int) const;
294 // compatibility with wxString
404 // from another wxString
655 // wxString: string class trying to be compatible with std::string, MFC
656 // CString and wxWindows 1.x wxString all at once
659 class WXDLLIMPEXP_BASE wxString : public wxStringBase
670 // compile "wxString s; s = 17;" without any warnings as 17 is implicitly
674 // to assign another numeric type to wxString will now result in
676 wxString& operator=(int);
682 wxString(int);
687 wxString() : wxStringBase() { }
689 wxString(const wxStringBase& stringSrc) : wxStringBase(stringSrc) { }
690 wxString(const wxString& stringSrc) : wxStringBase(stringSrc) { }
692 wxString(wxChar ch, size_t nRepeat = 1)
694 wxString(size_t nRepeat, wxChar ch)
698 wxString(const wxChar *psz)
700 wxString(const wxChar *psz, size_t nLength)
702 wxString(const wxChar *psz,
708 // implicit conversions from std::string to wxString as this allows to use
714 wxString(const wxStdString& s)
720 wxString(const char *psz, const wxMBConv& conv, size_t nLength = npos);
722 wxString(const wxWCharBuffer& psz) : wxStringBase(psz.data()) { }
725 wxString(const unsigned char* psz)
728 wxString(const unsigned char* psz, size_t nLength)
733 wxString(const wchar_t *pwz,
739 wxString(const wxCharBuffer& psz)
751 wxString& Truncate(size_t uiLen);
762 wxString tmp(wxEmptyString);
788 wxASSERT_MSG( !empty(), wxT("wxString: index out of bounds") );
796 wxASSERT_MSG( !empty(), wxT("wxString: index out of bounds") );
857 static wxString FromAscii(const char *ascii); // string
858 static wxString FromAscii(const char ascii); // char
861 static wxString FromAscii(const char *ascii) { return wxString( ascii ); }
862 static wxString FromAscii(const char ascii) { return wxString( ascii ); }
869 static wxString FromUTF8(const char *utf8)
870 { return wxString(utf8, wxConvUTF8); }
871 static wxString FromUTF8(const char *utf8, size_t len)
872 { return wxString(utf8, wxConvUTF8, len); }
876 static wxString FromUTF8(const char *utf8)
877 { return wxString(wxConvUTF8.cMB2WC(utf8)); }
878 static wxString FromUTF8(const char *utf8, size_t len)
882 return wxString(buf.data(), wxConvLibc, wlen);
891 // functions for storing binary data in wxString:
893 static wxString From8BitData(const char *data, size_t len)
894 { return wxString(data, wxConvISO8859_1, len); }
896 static wxString From8BitData(const char *data)
897 { return wxString(data, wxConvISO8859_1); }
900 static wxString From8BitData(const char *data, size_t len)
901 { return wxString(data, len); }
903 static wxString From8BitData(const char *data)
904 { return wxString(data); }
952 // from another wxString
953 wxString& operator=(const wxStringBase& stringSrc)
954 { return (wxString&)wxStringBase::operator=(stringSrc); }
956 wxString& operator=(wxChar ch)
957 { return (wxString&)wxStringBase::operator=(ch); }
961 wxString& operator=(const wxChar *psz)
964 wxString& operator=(const wxChar *psz)
965 { return (wxString&)wxStringBase::operator=(psz); }
970 wxString& operator=(const wxWCharBuffer& psz)
974 wxString& operator=(const unsigned char* psz);
977 wxString& operator=(const wchar_t *pwz);
980 wxString& operator=(const wxCharBuffer& psz)
992 wxString& operator<<(const wxString& s)
1003 wxString& operator<<(const wxChar *psz)
1006 wxString& operator<<(wxChar ch) { append(1, ch); return *this; }
1010 wxString& operator<<(const wxWCharBuffer& s)
1015 wxString& operator<<(const wxCharBuffer& s)
1022 wxString& Append(const wxString& s)
1031 wxString& Append(const wxChar* psz)
1034 wxString& Append(wxChar ch, size_t count = 1u)
1036 wxString& Append(const wxChar* psz, size_t nLen)
1040 wxString& Prepend(const wxString& str)
1045 friend wxString WXDLLIMPEXP_BASE operator+(const wxString& string1,
1046 const wxString& string2);
1048 friend wxString WXDLLIMPEXP_BASE operator+(const wxString& string, wxChar ch);
1050 friend wxString WXDLLIMPEXP_BASE operator+(wxChar ch, const wxString& string);
1052 friend wxString WXDLLIMPEXP_BASE operator+(const wxString& string,
1055 friend wxString WXDLLIMPEXP_BASE operator+(const wxChar *psz,
1056 const wxString& string);
1060 wxString& operator<<(int i)
1063 wxString& operator<<(unsigned int ui)
1066 wxString& operator<<(long l)
1069 wxString& operator<<(unsigned long ul)
1073 wxString& operator<<(wxLongLong_t ll)
1079 wxString& operator<<(wxULongLong_t ull)
1086 wxString& operator<<(float f)
1089 wxString& operator<<(double d)
1095 int Cmp(const wxString& s) const;
1098 int CmpNoCase(const wxString& s) const;
1113 wxString Mid(size_t nFirst, size_t nCount = npos) const;
1116 wxString operator()(size_t start, size_t len) const
1122 bool StartsWith(const wxChar *prefix, wxString *rest = NULL) const;
1126 bool EndsWith(const wxChar *suffix, wxString *rest = NULL) const;
1129 wxString Left(size_t nCount) const;
1131 wxString Right(size_t nCount) const;
1134 wxString BeforeFirst(wxChar ch) const;
1137 wxString BeforeLast(wxChar ch) const;
1140 wxString AfterFirst(wxChar ch) const;
1143 wxString AfterLast(wxChar ch) const;
1146 wxString Before(wxChar ch) const { return BeforeLast(ch); }
1147 wxString After(wxChar ch) const { return AfterFirst(ch); }
1151 wxString& MakeUpper();
1154 wxString Upper() const ;
1156 wxString& MakeLower();
1158 wxString Lower() const ;
1162 wxString& Trim(bool bFromRight = true);
1164 wxString& Pad(size_t nCount, wxChar chPad = wxT(' '), bool bFromRight = true);
1208 static wxString Format(const wxChar *pszFormat, ...) ATTRIBUTE_PRINTF_1;
1210 static wxString FormatV(const wxChar *pszFormat, va_list argptr);
1231 wxString SubString(size_t from, size_t to) const
1255 wxString Strip(stripType w = trailing) const;
1261 wxString& Remove(size_t pos) { return Truncate(pos); }
1262 wxString& RemoveLast(size_t n = 1) { return Truncate(length() - n); }
1264 wxString& Remove(size_t nStart, size_t nLen)
1265 { return (wxString&)erase( nStart, nLen ); }
1270 int First( const wxString &str ) const { return Find(str); }
1272 bool Contains(const wxString& str) const { return Find(str) != wxNOT_FOUND; }
1280 wxString(const wxString& str, size_t nPos, size_t nLen)
1283 wxString(const void *pStart, const void *pEnd)
1286 wxString(const_iterator first, const_iterator last)
1292 wxString& append(const wxString& str, size_t pos, size_t n)
1293 { return (wxString&)wxStringBase::append(str, pos, n); }
1295 wxString& append(const wxString& str)
1296 { return (wxString&)wxStringBase::append(str); }
1298 wxString& append(const wxChar *sz)
1299 { return (wxString&)wxStringBase::append(sz); }
1300 wxString& append(const wxChar *sz, size_t n)
1301 { return (wxString&)wxStringBase::append(sz, n); }
1303 wxString& append(size_t n, wxChar ch)
1304 { return (wxString&)wxStringBase::append(n, ch); }
1306 wxString& append(const_iterator first, const_iterator last)
1307 { return (wxString&)wxStringBase::append(first, last); }
1310 wxString& assign(const wxString& str)
1311 { return (wxString&)wxStringBase::assign(str); }
1313 wxString& assign(const wxString& str, size_t pos, size_t n)
1314 { return (wxString&)wxStringBase::assign(str, pos, n); }
1316 wxString& assign(const wxChar *sz)
1317 { return (wxString&)wxStringBase::assign(sz); }
1318 wxString& assign(const wxChar *sz, size_t n)
1319 { return (wxString&)wxStringBase::assign(sz, n); }
1321 wxString& assign(size_t n, wxChar ch)
1322 { return (wxString&)wxStringBase::assign(n, ch); }
1324 wxString& assign(const_iterator first, const_iterator last)
1325 { return (wxString&)wxStringBase::assign(first, last); }
1343 wxString& insert(size_t nPos, const wxString& str)
1344 { return (wxString&)wxStringBase::insert(nPos, str); }
1346 wxString& insert(size_t nPos, const wxString& str, size_t nStart, size_t n)
1347 { return (wxString&)wxStringBase::insert(nPos, str, nStart, n); }
1349 wxString& insert(size_t nPos, const wxChar *sz)
1350 { return (wxString&)wxStringBase::insert(nPos, sz); }
1351 wxString& insert(size_t nPos, const wxChar *sz, size_t n)
1352 { return (wxString&)wxStringBase::insert(nPos, sz, n); }
1354 wxString& insert(size_t nPos, size_t n, wxChar ch)
1355 { return (wxString&)wxStringBase::insert(nPos, n, ch); }
1364 wxString& erase(size_type pos = 0, size_type n = npos)
1365 { return (wxString&)wxStringBase::erase(pos, n); }
1376 wxString& replace(size_t nStart, size_t nLen, const wxChar* sz)
1377 { return (wxString&)wxStringBase::replace(nStart, nLen, sz); }
1379 wxString& replace(size_t nStart, size_t nLen, const wxString& str)
1380 { return (wxString&)wxStringBase::replace(nStart, nLen, str); }
1382 wxString& replace(size_t nStart, size_t nLen, size_t nCount, wxChar ch)
1383 { return (wxString&)wxStringBase::replace(nStart, nLen, nCount, ch); }
1385 wxString& replace(size_t nStart, size_t nLen,
1386 const wxString& str, size_t nStart2, size_t nLen2)
1387 { return (wxString&)wxStringBase::replace(nStart, nLen, str,
1390 wxString& replace(size_t nStart, size_t nLen,
1392 { return (wxString&)wxStringBase::replace(nStart, nLen, sz, nCount); }
1393 wxString& replace(iterator first, iterator last, const_pointer s)
1394 { return (wxString&)wxStringBase::replace(first, last, s); }
1395 wxString& replace(iterator first, iterator last, const_pointer s,
1397 { return (wxString&)wxStringBase::replace(first, last, s, n); }
1398 wxString& replace(iterator first, iterator last, const wxString& s)
1399 { return (wxString&)wxStringBase::replace(first, last, s); }
1400 wxString& replace(iterator first, iterator last, size_type n, wxChar c)
1401 { return (wxString&)wxStringBase::replace(first, last, n, c); }
1402 wxString& replace(iterator first, iterator last,
1404 { return (wxString&)wxStringBase::replace(first, last, first1, last1); }
1407 wxString& operator+=(const wxString& s)
1408 { return (wxString&)wxStringBase::operator+=(s); }
1410 wxString& operator+=(const wxChar *psz)
1411 { return (wxString&)wxStringBase::operator+=(psz); }
1413 wxString& operator+=(wxChar ch)
1414 { return (wxString&)wxStringBase::operator+=(ch); }
1421 wxString WXDLLIMPEXP_BASE operator+(const wxString& string1, const wxString& string2);
1422 wxString WXDLLIMPEXP_BASE operator+(const wxString& string, wxChar ch);
1423 wxString WXDLLIMPEXP_BASE operator+(wxChar ch, const wxString& string);
1424 wxString WXDLLIMPEXP_BASE operator+(const wxString& string, const wxChar *psz);
1425 wxString WXDLLIMPEXP_BASE operator+(const wxChar *psz, const wxString& string);
1434 // return an empty wxString (not very useful with wxUSE_STL == 1)
1435 inline const wxString wxGetEmptyString() { return wxString(); }
1437 // return an empty wxString (more efficient than wxString() here)
1438 inline const wxString& wxGetEmptyString()
1440 return *(wxString *)&wxEmptyString;
1453 wxStringBuffer(wxString& str, size_t lenWanted = 1024)
1462 wxString& m_str;
1475 wxStringBufferLength(wxString& str, size_t lenWanted = 1024)
1489 wxString& m_str;
1506 wxStringBuffer(wxString& str, size_t lenWanted = 1024)
1515 wxString& m_str;
1524 wxStringBufferLength(wxString& str, size_t lenWanted = 1024)
1541 wxString& m_str;
1552 // wxString comparison functions: operator versions are always case sensitive
1556 // are used and defining them also for wxString would only result in
1557 // compilation ambiguities when comparing std::string and wxString
1560 inline bool operator==(const wxString& s1, const wxString& s2)
1562 inline bool operator==(const wxString& s1, const wxChar * s2)
1564 inline bool operator==(const wxChar * s1, const wxString& s2)
1566 inline bool operator!=(const wxString& s1, const wxString& s2)
1568 inline bool operator!=(const wxString& s1, const wxChar * s2)
1570 inline bool operator!=(const wxChar * s1, const wxString& s2)
1572 inline bool operator< (const wxString& s1, const wxString& s2)
1574 inline bool operator< (const wxString& s1, const wxChar * s2)
1576 inline bool operator< (const wxChar * s1, const wxString& s2)
1578 inline bool operator> (const wxString& s1, const wxString& s2)
1580 inline bool operator> (const wxString& s1, const wxChar * s2)
1582 inline bool operator> (const wxChar * s1, const wxString& s2)
1584 inline bool operator<=(const wxString& s1, const wxString& s2)
1586 inline bool operator<=(const wxString& s1, const wxChar * s2)
1588 inline bool operator<=(const wxChar * s1, const wxString& s2)
1590 inline bool operator>=(const wxString& s1, const wxString& s2)
1592 inline bool operator>=(const wxString& s1, const wxChar * s2)
1594 inline bool operator>=(const wxChar * s1, const wxString& s2)
1598 inline bool operator==(const wxString& s1, const wxWCharBuffer& s2)
1600 inline bool operator==(const wxWCharBuffer& s1, const wxString& s2)
1602 inline bool operator!=(const wxString& s1, const wxWCharBuffer& s2)
1604 inline bool operator!=(const wxWCharBuffer& s1, const wxString& s2)
1607 inline bool operator==(const wxString& s1, const wxCharBuffer& s2)
1609 inline bool operator==(const wxCharBuffer& s1, const wxString& s2)
1611 inline bool operator!=(const wxString& s1, const wxCharBuffer& s2)
1613 inline bool operator!=(const wxCharBuffer& s1, const wxString& s2)
1618 inline wxString operator+(const wxString& string, const wxWCharBuffer& buf)
1620 inline wxString operator+(const wxWCharBuffer& buf, const wxString& string)
1623 inline wxString operator+(const wxString& string, const wxCharBuffer& buf)
1625 inline wxString operator+(const wxCharBuffer& buf, const wxString& string)
1633 inline bool operator==(wxChar c, const wxString& s) { return s.IsSameAs(c); }
1634 inline bool operator==(const wxString& s, wxChar c) { return s.IsSameAs(c); }
1635 inline bool operator!=(wxChar c, const wxString& s) { return !s.IsSameAs(c); }
1636 inline bool operator!=(const wxString& s, wxChar c) { return !s.IsSameAs(c); }
1649 WXDLLIMPEXP_BASE wxSTD ostream& operator<<(wxSTD ostream&, const wxString&);