Ignore:
Timestamp:
06/23/15 00:50:52 (7 years ago)
Author:
Maciej Komosinski
Message:

Fixed int/bool warnings

File:
1 edited

Legend:

Unmodified
Added
Removed
  • cpp/frams/util/sstring-simple.h

    r385 r395  
    110110void operator+=(const SString&); ///< append other SString
    111111
    112 int equals(const SString &s) const; ///< TRUE if equal
    113 int operator==(const SString &s) const {return equals(s);} ///< TRUE if equal
    114 int operator!=(const SString &s) const {return !equals(s);} ///< TRUE if not equal
     112bool equals(const SString &s) const; ///< TRUE if equal
     113bool operator==(const SString &s) const {return equals(s);} ///< TRUE if equal
     114bool operator!=(const SString &s) const {return !equals(s);} ///< TRUE if not equal
    115115bool operator<(const SString &s) const {return strcmp(getPtr(),s.getPtr())<1;}
    116116const char* operator()(int p) const {return getPtr()+p;} ///< pointer to p'th character in SString
     
    125125/// <B>pos</B> is moved accordingly.
    126126/// returns <B>false</B> if no more tokens are available or <B>true</B> otherwise.
    127 int getNextToken(int& pos,SString &token,char separator) const;
     127bool getNextToken(int& pos,SString &token,char separator) const;
    128128
    129129void operator+=(char ch) {directAppend(1)[0]=ch;endAppend(1);} ///< append single character
    130130
    131 int startsWith(const char *pattern) const;
     131bool startsWith(const char *pattern) const;
    132132char charAt(int pos) const {return operator[](pos);}
    133133uint32_t hash() const;
Note: See TracChangeset for help on using the changeset viewer.