cstring 1.8 KB

12345678910111213141516171819202122232425262728293031323334353637383940414243444546474849505152535455565758596061626364656667686970717273
  1. using _STLP_VENDOR_CSTD::size_t;
  2. #if !defined (_STLP_NO_CSTD_FUNCTION_IMPORTS)
  3. # if defined (__MSL__) && __MC68K__ && !_No_BlockMove && __dest_os == __mac_os
  4. # undef memcpy
  5. # undef memmove
  6. inline void* memcpy(void* dst, const void* src, size_t len)
  7. { return _STLP_VENDOR_CSTD::__memcpy(dst, src, len); }
  8. inline void* memmove(void* dst, const void* src, size_t len)
  9. { return _STLP_VENDOR_CSTD::__memmove(dst, src, len); }
  10. # else
  11. using _STLP_VENDOR_CSTD::memmove;
  12. using _STLP_VENDOR_CSTD::memcpy;
  13. # endif
  14. # if !defined (_STLP_WCE)
  15. // these functions just don't exist on Windows CE
  16. using _STLP_VENDOR_CSTD::strcoll;
  17. using _STLP_VENDOR_CSTD::strerror;
  18. using _STLP_VENDOR_CSTD::strxfrm;
  19. # endif
  20. # if defined (__BORLANDC__)
  21. extern "C++" {
  22. # endif
  23. using _STLP_VENDOR_CSTD::memchr;
  24. using _STLP_VENDOR_CSTD::strchr;
  25. using _STLP_VENDOR_CSTD::strpbrk;
  26. using _STLP_VENDOR_CSTD::strrchr;
  27. using _STLP_VENDOR_CSTD::strstr;
  28. # if defined (__BORLANDC__)
  29. }
  30. # endif
  31. inline char* strstr(char* __s1, const char* __s2)
  32. {
  33. const char* s = __s1;
  34. const char* p = _STLP_VENDOR_CSTD::strstr(s, __s2);
  35. if (!p) return NULL;
  36. return &__s1[p - s];
  37. }
  38. using _STLP_VENDOR_CSTD::memcmp;
  39. using _STLP_VENDOR_CSTD::memset;
  40. #if !defined (_STLP_SGX_CONFIG)
  41. using _STLP_VENDOR_CSTD::strcat;
  42. #endif
  43. # if !defined (strcmp) || !defined (__BORLANDC__)
  44. using _STLP_VENDOR_CSTD::strcmp;
  45. # else
  46. using ::strcmp;
  47. # endif
  48. #if !defined (_STLP_SGX_CONFIG)
  49. # if !defined (strcpy) || !defined (__BORLANDC__)
  50. using _STLP_VENDOR_CSTD::strcpy;
  51. # else
  52. using ::strcpy;
  53. # endif
  54. #endif /* !_STLP_SGX_CONFIG */
  55. using _STLP_VENDOR_CSTD::strcspn;
  56. using _STLP_VENDOR_CSTD::strlen;
  57. using _STLP_VENDOR_CSTD::strncat;
  58. using _STLP_VENDOR_CSTD::strncmp;
  59. using _STLP_VENDOR_CSTD::strncpy;
  60. using _STLP_VENDOR_CSTD::strspn;
  61. using _STLP_VENDOR_CSTD::strtok;
  62. #endif /* _STLP_NO_CSTD_FUNCTION_IMPORTS */