Subversion Repositories filter_foundry

Rev

Rev 444 | Rev 495 | Go to most recent revision | Show entire file | Regard whitespace | Details | Blame | Last modification | View Log | RSS feed

Rev 444 Rev 460
Line 41... Line 41...
41
        return wcsrchr(_Str, _Ch);
41
        return wcsrchr(_Str, _Ch);
42
}
42
}
43
int xstrcasecmp(const wchar_t* a, const wchar_t* b) {
43
int xstrcasecmp(const wchar_t* a, const wchar_t* b) {
44
        return _wcsicmp(a, b);
44
        return _wcsicmp(a, b);
45
}
45
}
-
 
46
int xstrcmp(const wchar_t* a, const wchar_t* b) {
-
 
47
        return lstrcmpW(a, b);
-
 
48
}
46
#else
49
#else
47
size_t xstrlen(char* s) {
50
size_t xstrlen(char* s) {
48
        return strlen(s);
51
        return strlen(s);
49
}
52
}
50
char* xstrcpy(char* dst, char* src) {
53
char* xstrcpy(char* dst, char* src) {
Line 58... Line 61...
58
}
61
}
59
int xstrcasecmp(const char* a, const char* b) {
62
int xstrcasecmp(const char* a, const char* b) {
60
        //return strcasecmp(a, b);
63
        //return strcasecmp(a, b);
61
        return _stricmp(a, b);
64
        return _stricmp(a, b);
62
}
65
}
-
 
66
int xstrcmp(const char* a, const char* b) {
-
 
67
        return strcmp(a, b);
-
 
68
}
63
#endif
69
#endif
64
 
70
 
65
// convert C (null-terminated) to Pascal (length byte) string
71
// convert C (null-terminated) to Pascal (length byte) string
66
// no bounds checking
72
// no bounds checking
67
unsigned char *myc2pstr(char *s){
73
unsigned char *myc2pstr(char *s){