Planet
navi homePPSaboutscreenshotsdownloaddevelopmentforum

Ignore:
Timestamp:
Nov 2, 2008, 12:38:26 PM (16 years ago)
Author:
rgrieder
Message:

Moved all util classes and functions to orxonox namespace.
Converted all code to 4 spaces/tab in util.

File:
1 edited

Legend:

Unmodified
Added
Removed
  • code/branches/objecthierarchy/src/util/String.h

    r2020 r2111  
    4040#include <sstream>
    4141
    42 extern _UtilExport std::string BLANKSTRING;
    43 _UtilExport std::string getUniqueNumberString();
     42namespace orxonox
     43{
     44    extern _UtilExport std::string BLANKSTRING;
     45    _UtilExport std::string getUniqueNumberString();
    4446
    45 _UtilExport void        strip(std::string* str);
    46 _UtilExport std::string getStripped(const std::string& str);
     47    _UtilExport void        strip(std::string* str);
     48    _UtilExport std::string getStripped(const std::string& str);
    4749
    48 _UtilExport std::string removeTrailingWhitespaces(const std::string& str);
     50    _UtilExport std::string removeTrailingWhitespaces(const std::string& str);
    4951
    50 _UtilExport size_t      getNextQuote(const std::string& str, size_t start);
    51 _UtilExport bool        isBetweenQuotes(const std::string& str, size_t pos);
     52    _UtilExport size_t      getNextQuote(const std::string& str, size_t start);
     53    _UtilExport bool        isBetweenQuotes(const std::string& str, size_t pos);
    5254
    53 _UtilExport bool        hasStringBetweenQuotes(const std::string& str);
    54 _UtilExport std::string getStringBetweenQuotes(const std::string& str);
     55    _UtilExport bool        hasStringBetweenQuotes(const std::string& str);
     56    _UtilExport std::string getStringBetweenQuotes(const std::string& str);
    5557
    56 _UtilExport std::string stripEnclosingQuotes(const std::string& str);
    57 _UtilExport std::string stripEnclosingBraces(const std::string& str);
     58    _UtilExport std::string stripEnclosingQuotes(const std::string& str);
     59    _UtilExport std::string stripEnclosingBraces(const std::string& str);
    5860
    59 _UtilExport bool        isEmpty(const std::string& str);
    60 _UtilExport bool        isComment(const std::string& str);
    61 _UtilExport bool        isNumeric(const std::string& str);
     61    _UtilExport bool        isEmpty(const std::string& str);
     62    _UtilExport bool        isComment(const std::string& str);
     63    _UtilExport bool        isNumeric(const std::string& str);
    6264
    63 _UtilExport std::string addSlashes(const std::string& str);
    64 _UtilExport std::string removeSlashes(const std::string& str);
     65    _UtilExport std::string addSlashes(const std::string& str);
     66    _UtilExport std::string removeSlashes(const std::string& str);
    6567
    66 _UtilExport void        lowercase(std::string* str);
    67 _UtilExport std::string getLowercase(const std::string& str);
     68    _UtilExport void        lowercase(std::string* str);
     69    _UtilExport std::string getLowercase(const std::string& str);
    6870
    69 _UtilExport void        uppercase(std::string* str);
    70 _UtilExport std::string getUppercase(const std::string& str);
     71    _UtilExport void        uppercase(std::string* str);
     72    _UtilExport std::string getUppercase(const std::string& str);
    7173
    72 _UtilExport int         nocaseCmp(const std::string& s1, const std::string& s2);
    73 _UtilExport int         nocaseCmp(const std::string& s1, const std::string& s2, size_t len);
     74    _UtilExport int         nocaseCmp(const std::string& s1, const std::string& s2);
     75    _UtilExport int         nocaseCmp(const std::string& s1, const std::string& s2, size_t len);
    7476
    75 _UtilExport bool        hasComment(const std::string& str);
    76 _UtilExport std::string getComment(const std::string& str);
    77 _UtilExport size_t      getCommentPosition(const std::string& str);
    78 _UtilExport size_t      getNextCommentPosition(const std::string& str, size_t start = 0);
     77    _UtilExport bool        hasComment(const std::string& str);
     78    _UtilExport std::string getComment(const std::string& str);
     79    _UtilExport size_t      getCommentPosition(const std::string& str);
     80    _UtilExport size_t      getNextCommentPosition(const std::string& str, size_t start = 0);
     81}
    7982
    8083#endif /* _Util_String_H__ */
Note: See TracChangeset for help on using the changeset viewer.