version 1.39.2.1, 2001/08/01 11:17:36
|
version 1.39.2.6, 2001/08/22 08:11:08
|
|
|
*/ | */ |
Uint32 find(Char16 c) const; | Uint32 find(Char16 c) const; |
| |
|
/** Same as above but starts searching from the given position. */ |
|
Uint32 find(Uint32 pos, Char16 c) const; |
| |
/** Find the position of the first occurence of the string object. | /** Find the position of the first occurence of the string object. |
This function finds one string inside another | This function finds one string inside another |
|
|
*/ | */ |
static int compareNoCase(const char* s1, const char* s2, Uint32 n); | static int compareNoCase(const char* s1, const char* s2, Uint32 n); |
| |
|
static int compareNoCase(const char* s1, const char* s2); |
|
|
/** Compare two null-terminated strings. | /** Compare two null-terminated strings. |
@param s1 First null-terminated string for the comparison. | @param s1 First null-terminated string for the comparison. |
@param s2 Second null-terminated string for the comparison. | @param s2 Second null-terminated string for the comparison. |
|
|
*/ | */ |
static const String EMPTY; | static const String EMPTY; |
| |
|
/** Return true if the str parameter matches the pattern. C-Shell style |
|
glob matching is used. |
|
*/ |
|
static Boolean match(const String& str, const String& pattern); |
|
|
|
/** Return true if the str parameter matches the pattern. C-Shell style |
|
glob matching is used. Ignore case in all comparisons. |
|
*/ |
|
static Boolean matchNoCase(const String& str, const String& pattern); |
|
|
private: | private: |
| |
static Uint32 _min(Uint32 x, Uint32 y) { return x < y ? x : y; } | static Uint32 _min(Uint32 x, Uint32 y) { return x < y ? x : y; } |
|
|
*/ | */ |
PEGASUS_COMMON_LINKAGE int CompareNoCase(const char* s1, const char* s2); | PEGASUS_COMMON_LINKAGE int CompareNoCase(const char* s1, const char* s2); |
| |
|
inline int EqualNoCase(const char* s1, const char* s2) |
|
{ |
|
return CompareNoCase(s1, s2) == 0; |
|
} |
|
|
/** Get the next line from the input file. | /** Get the next line from the input file. |
*/ | */ |
PEGASUS_COMMON_LINKAGE Boolean GetLine(PEGASUS_STD(istream)& is, String& line); | PEGASUS_COMMON_LINKAGE Boolean GetLine(PEGASUS_STD(istream)& is, String& line); |