00001
00002
00003
00004
00005
00006
00007
00008
00009
00010
00011
00012
00013
00014
00015
00016
00017
00018
00019
00020
00021
00022
00023
00024
00025
00026
00027
00028
00029
00030
00031
00032
00033
00034 #ifndef _CPP_CSTRING
00035 #define _CPP_CSTRING 1
00036
00037 #include <bits/std_cstddef.h>
00038
00039 #pragma GCC system_header
00040 #include <string.h>
00041
00042
00043 #undef memcpy
00044 #undef memmove
00045 #undef strcpy
00046 #undef strncpy
00047 #undef strcat
00048 #undef strncat
00049 #undef memcmp
00050 #undef strcmp
00051 #undef strcoll
00052 #undef strncmp
00053 #undef strxfrm
00054 #undef memchr
00055 #undef strchr
00056 #undef strcspn
00057 #undef strpbrk
00058 #undef strrchr
00059 #undef strspn
00060 #undef strstr
00061 #undef strtok
00062 #undef memset
00063 #undef strerror
00064 #undef strlen
00065
00066 namespace std
00067 {
00068 using ::memcpy;
00069 using ::memmove;
00070 using ::strcpy;
00071 using ::strncpy;
00072 using ::strcat;
00073 using ::strncat;
00074 using ::memcmp;
00075 using ::strcmp;
00076 using ::strcoll;
00077 using ::strncmp;
00078 using ::strxfrm;
00079 using ::strcspn;
00080 using ::strspn;
00081 using ::strtok;
00082 using ::memset;
00083 using ::strerror;
00084 using ::strlen;
00085
00086 using ::memchr;
00087
00088 inline void*
00089 memchr(void* __p, int __c, size_t __n)
00090 { return memchr(const_cast<const void*>(__p), __c, __n); }
00091
00092 using ::strchr;
00093
00094 inline char*
00095 strchr(char* __s1, int __n)
00096 { return __builtin_strchr(const_cast<const char*>(__s1), __n); }
00097
00098 using ::strpbrk;
00099
00100 inline char*
00101 strpbrk(char* __s1, const char* __s2)
00102 { return __builtin_strpbrk(const_cast<const char*>(__s1), __s2); }
00103
00104 using ::strrchr;
00105
00106 inline char*
00107 strrchr(char* __s1, int __n)
00108 { return __builtin_strrchr(const_cast<const char*>(__s1), __n); }
00109
00110 using ::strstr;
00111
00112 inline char*
00113 strstr(char* __s1, const char* __s2)
00114 { return __builtin_strstr(const_cast<const char*>(__s1), __s2); }
00115 }
00116
00117 #endif