HPCW 3.0
Loading...
Searching...
No Matches
ci_char_traits Struct Reference
Inheritance diagram for ci_char_traits:
Collaboration diagram for ci_char_traits:

Static Public Member Functions

static bool eq (char c1, char c2)
 
static bool ne (char c1, char c2)
 
static bool lt (char c1, char c2)
 
static bool gt (char c1, char c2)
 
static int compare (const char *s1, const char *s2, std::size_t n)
 
static const char * find (const char *s, int n, char a)
 

Detailed Description

Definition at line 31 of file CMakeDoxygenFilter.cpp.

Member Function Documentation

◆ compare()

static int ci_char_traits::compare ( const char * s1,
const char * s2,
std::size_t n )
inlinestatic

Definition at line 47 of file CMakeDoxygenFilter.cpp.

48 {
49 while (n-- > 0)
50 {
51 if (lt(*s1, *s2)) return -1;
52 if (gt(*s1, *s2)) return 1;
53 ++s1; ++s2;
54 }
55 return 0;
56 }
static bool lt(char c1, char c2)
static bool gt(char c1, char c2)

◆ eq()

static bool ci_char_traits::eq ( char c1,
char c2 )
inlinestatic

Definition at line 35 of file CMakeDoxygenFilter.cpp.

36 { return toupper(c1) == toupper(c2); }

◆ find()

static const char * ci_char_traits::find ( const char * s,
int n,
char a )
inlinestatic

Definition at line 58 of file CMakeDoxygenFilter.cpp.

59 {
60 while (n-- > 0 && toupper(*s) != toupper(a))
61 {
62 ++s;
63 }
64 return s;
65 }

◆ gt()

static bool ci_char_traits::gt ( char c1,
char c2 )
inlinestatic

Definition at line 44 of file CMakeDoxygenFilter.cpp.

45 { return toupper(c1) > toupper(c2); }

◆ lt()

static bool ci_char_traits::lt ( char c1,
char c2 )
inlinestatic

Definition at line 41 of file CMakeDoxygenFilter.cpp.

42 { return toupper(c1) < toupper(c2); }

◆ ne()

static bool ci_char_traits::ne ( char c1,
char c2 )
inlinestatic

Definition at line 38 of file CMakeDoxygenFilter.cpp.

39 { return toupper(c1) != toupper(c2); }

The documentation for this struct was generated from the following file: