Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Oct 6, 2008, 1:05:07 AM (16 years ago)
Author:
landauf
Message:

unsigned int → size_t for std::string related functions
I hope this fixes some problems on 64bit systems

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/trunk/src/util/String.h

    r1791 r1889  
    4242extern _UtilExport std::string blankString;
    4343
    44 _UtilExport void         strip(std::string* str);
    45 _UtilExport std::string  getStripped(const std::string& str);
     44_UtilExport void        strip(std::string* str);
     45_UtilExport std::string getStripped(const std::string& str);
    4646
    47 _UtilExport std::string  removeTrailingWhitespaces(const std::string& str);
     47_UtilExport std::string removeTrailingWhitespaces(const std::string& str);
    4848
    49 _UtilExport unsigned int getNextQuote(const std::string& str, unsigned int start);
    50 _UtilExport bool         isBetweenQuotes(const std::string& str, unsigned int pos);
     49_UtilExport size_t      getNextQuote(const std::string& str, size_t start);
     50_UtilExport bool        isBetweenQuotes(const std::string& str, size_t pos);
    5151
    52 _UtilExport bool         hasStringBetweenQuotes(const std::string& str);
    53 _UtilExport std::string  getStringBetweenQuotes(const std::string& str);
     52_UtilExport bool        hasStringBetweenQuotes(const std::string& str);
     53_UtilExport std::string getStringBetweenQuotes(const std::string& str);
    5454
    55 _UtilExport std::string  stripEnclosingQuotes(const std::string& str);
    56 _UtilExport std::string  stripEnclosingBraces(const std::string& str);
     55_UtilExport std::string stripEnclosingQuotes(const std::string& str);
     56_UtilExport std::string stripEnclosingBraces(const std::string& str);
    5757
    58 _UtilExport bool         isEmpty(const std::string& str);
    59 _UtilExport bool         isComment(const std::string& str);
    60 _UtilExport bool         isNumeric(const std::string& str);
     58_UtilExport bool        isEmpty(const std::string& str);
     59_UtilExport bool        isComment(const std::string& str);
     60_UtilExport bool        isNumeric(const std::string& str);
    6161
    62 _UtilExport std::string  addSlashes(const std::string& str);
    63 _UtilExport std::string  removeSlashes(const std::string& str);
     62_UtilExport std::string addSlashes(const std::string& str);
     63_UtilExport std::string removeSlashes(const std::string& str);
    6464
    65 _UtilExport void         lowercase(std::string* str);
    66 _UtilExport std::string  getLowercase(const std::string& str);
     65_UtilExport void        lowercase(std::string* str);
     66_UtilExport std::string getLowercase(const std::string& str);
    6767
    68 _UtilExport void         uppercase(std::string* str);
    69 _UtilExport std::string  getUppercase(const std::string& str);
     68_UtilExport void        uppercase(std::string* str);
     69_UtilExport std::string getUppercase(const std::string& str);
    7070
    71 _UtilExport int          nocaseCmp(const std::string& s1, const std::string& s2);
    72 _UtilExport int          nocaseCmp(const std::string& s1, const std::string& s2, unsigned int len);
     71_UtilExport int         nocaseCmp(const std::string& s1, const std::string& s2);
     72_UtilExport int         nocaseCmp(const std::string& s1, const std::string& s2, size_t len);
    7373
    74 _UtilExport bool         hasComment(const std::string& str);
    75 _UtilExport std::string  getComment(const std::string& str);
    76 _UtilExport unsigned int getCommentPosition(const std::string& str);
    77 _UtilExport unsigned int getNextCommentPosition(const std::string& str, unsigned int start = 0);
     74_UtilExport bool        hasComment(const std::string& str);
     75_UtilExport std::string getComment(const std::string& str);
     76_UtilExport size_t      getCommentPosition(const std::string& str);
     77_UtilExport size_t      getNextCommentPosition(const std::string& str, size_t start = 0);
    7878
    7979#endif /* _Util_String_H__ */
Note: See TracChangeset for help on using the changeset viewer.