1c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot// -*- C++ -*-
2c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot//===--------------------------- string.h ---------------------------------===//
3c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot//
4c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot//                     The LLVM Compiler Infrastructure
5c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot//
6c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot// This file is distributed under the University of Illinois Open Source
7c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot// License. See LICENSE.TXT for details.
8c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot//
9c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot//===----------------------------------------------------------------------===//
10c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot
11c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#ifndef _LIBCPP_STRING_H
12c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#define _LIBCPP_STRING_H
13c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot
14c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot/*
15c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot    string.h synopsis
16c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot
17c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team RobotMacros:
18c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot
19c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot    NULL
20c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot
21c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team RobotTypes:
22c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot
23c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot    size_t
24c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot
25c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotvoid* memcpy(void* restrict s1, const void* restrict s2, size_t n);
26c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotvoid* memmove(void* s1, const void* s2, size_t n);
27c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotchar* strcpy (char* restrict s1, const char* restrict s2);
28c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotchar* strncpy(char* restrict s1, const char* restrict s2, size_t n);
29c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotchar* strcat (char* restrict s1, const char* restrict s2);
30c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotchar* strncat(char* restrict s1, const char* restrict s2, size_t n);
31c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotint memcmp(const void* s1, const void* s2, size_t n);
32c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotint strcmp (const char* s1, const char* s2);
33c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotint strncmp(const char* s1, const char* s2, size_t n);
34c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotint strcoll(const char* s1, const char* s2);
35c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotsize_t strxfrm(char* restrict s1, const char* restrict s2, size_t n);
36c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotconst void* memchr(const void* s, int c, size_t n);
37c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot      void* memchr(      void* s, int c, size_t n);
38c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotconst char* strchr(const char* s, int c);
39c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot      char* strchr(      char* s, int c);
40c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotsize_t strcspn(const char* s1, const char* s2);
41c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotconst char* strpbrk(const char* s1, const char* s2);
42c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot      char* strpbrk(      char* s1, const char* s2);
43c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotconst char* strrchr(const char* s, int c);
44c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot      char* strrchr(      char* s, int c);
45c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotsize_t strspn(const char* s1, const char* s2);
46c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotconst char* strstr(const char* s1, const char* s2);
47c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot      char* strstr(      char* s1, const char* s2);
48c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotchar* strtok(char* restrict s1, const char* restrict s2);
49c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotvoid* memset(void* s, int c, size_t n);
50c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotchar* strerror(int errnum);
51c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotsize_t strlen(const char* s);
52c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot
53c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot*/
54c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot
55c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#include <__config>
56c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot
57c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#if !defined(_LIBCPP_HAS_NO_PRAGMA_SYSTEM_HEADER)
58c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#pragma GCC system_header
59c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#endif
60c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot
61c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#include_next <string.h>
62c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot
63c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot// MSVCRT, GNU libc and its derivates may already have the correct prototype in
64c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot// <string.h>. This macro can be defined by users if their C library provides
65c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot// the right signature.
66c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#if defined(__CORRECT_ISO_CPP_STRING_H_PROTO) || defined(_LIBCPP_MSVCRT) || \
67c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot    defined(__sun__) || defined(_STRING_H_CPLUSPLUS_98_CONFORMANCE_)
68c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#define _LIBCPP_STRING_H_HAS_CONST_OVERLOADS
69c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#endif
70c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot
71c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#if defined(__cplusplus) && !defined(_LIBCPP_STRING_H_HAS_CONST_OVERLOADS) && defined(_LIBCPP_PREFERRED_OVERLOAD)
72c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotextern "C++" {
73c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotinline _LIBCPP_INLINE_VISIBILITY
74c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotchar* __libcpp_strchr(const char* __s, int __c) {return (char*)strchr(__s, __c);}
75c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotinline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
76c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotconst char* strchr(const char* __s, int __c) {return __libcpp_strchr(__s, __c);}
77c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotinline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
78c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot      char* strchr(      char* __s, int __c) {return __libcpp_strchr(__s, __c);}
79c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot
80c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotinline _LIBCPP_INLINE_VISIBILITY
81c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotchar* __libcpp_strpbrk(const char* __s1, const char* __s2) {return (char*)strpbrk(__s1, __s2);}
82c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotinline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
83c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotconst char* strpbrk(const char* __s1, const char* __s2) {return __libcpp_strpbrk(__s1, __s2);}
84c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotinline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
85c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot      char* strpbrk(      char* __s1, const char* __s2) {return __libcpp_strpbrk(__s1, __s2);}
86c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot
87c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotinline _LIBCPP_INLINE_VISIBILITY
88c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotchar* __libcpp_strrchr(const char* __s, int __c) {return (char*)strrchr(__s, __c);}
89c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotinline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
90c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotconst char* strrchr(const char* __s, int __c) {return __libcpp_strrchr(__s, __c);}
91c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotinline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
92c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot      char* strrchr(      char* __s, int __c) {return __libcpp_strrchr(__s, __c);}
93c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot
94c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotinline _LIBCPP_INLINE_VISIBILITY
95c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotvoid* __libcpp_memchr(const void* __s, int __c, size_t __n) {return (void*)memchr(__s, __c, __n);}
96c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotinline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
97c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotconst void* memchr(const void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);}
98c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotinline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
99c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot      void* memchr(      void* __s, int __c, size_t __n) {return __libcpp_memchr(__s, __c, __n);}
100c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot
101c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotinline _LIBCPP_INLINE_VISIBILITY
102c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotchar* __libcpp_strstr(const char* __s1, const char* __s2) {return (char*)strstr(__s1, __s2);}
103c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotinline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
104c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotconst char* strstr(const char* __s1, const char* __s2) {return __libcpp_strstr(__s1, __s2);}
105c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robotinline _LIBCPP_INLINE_VISIBILITY _LIBCPP_PREFERRED_OVERLOAD
106c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot      char* strstr(      char* __s1, const char* __s2) {return __libcpp_strstr(__s1, __s2);}
107c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot}
108c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#endif
109c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot
110c9cc9e7d29b8970d8ddb734c88fb62d01e0b727android-build-team Robot#endif  // _LIBCPP_STRING_H
111