[b83ec692] | 1 | /*
|
---|
[de53138] | 2 | * Copyright (c) 2018 Jaroslav Jindrak
|
---|
[b83ec692] | 3 | * All rights reserved.
|
---|
| 4 | *
|
---|
| 5 | * Redistribution and use in source and binary forms, with or without
|
---|
| 6 | * modification, are permitted provided that the following conditions
|
---|
| 7 | * are met:
|
---|
| 8 | *
|
---|
| 9 | * - Redistributions of source code must retain the above copyright
|
---|
| 10 | * notice, this list of conditions and the following disclaimer.
|
---|
| 11 | * - Redistributions in binary form must reproduce the above copyright
|
---|
| 12 | * notice, this list of conditions and the following disclaimer in the
|
---|
| 13 | * documentation and/or other materials provided with the distribution.
|
---|
| 14 | * - The name of the author may not be used to endorse or promote products
|
---|
| 15 | * derived from this software without specific prior written permission.
|
---|
| 16 | *
|
---|
| 17 | * THIS SOFTWARE IS PROVIDED BY THE AUTHOR ``AS IS'' AND ANY EXPRESS OR
|
---|
| 18 | * IMPLIED WARRANTIES, INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES
|
---|
| 19 | * OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED.
|
---|
| 20 | * IN NO EVENT SHALL THE AUTHOR BE LIABLE FOR ANY DIRECT, INDIRECT,
|
---|
| 21 | * INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT
|
---|
| 22 | * NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE,
|
---|
| 23 | * DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
|
---|
| 24 | * THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT
|
---|
| 25 | * (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
|
---|
| 26 | * THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
|
---|
| 27 | */
|
---|
| 28 |
|
---|
| 29 | #ifndef LIBCPP_CSTRING
|
---|
| 30 | #define LIBCPP_CSTRING
|
---|
| 31 |
|
---|
[a1aecb1] | 32 | #include "internal/common.hpp"
|
---|
| 33 |
|
---|
[de53138] | 34 | namespace std::hel
|
---|
| 35 | {
|
---|
| 36 | extern "C" {
|
---|
| 37 | #include <str.h>
|
---|
| 38 | }
|
---|
| 39 | }
|
---|
| 40 |
|
---|
[b83ec692] | 41 | namespace std
|
---|
| 42 | {
|
---|
[de53138] | 43 | using std::hel::size_t;
|
---|
[b83ec692] | 44 |
|
---|
[de53138] | 45 | /* using std::hel::strcpy; */
|
---|
| 46 | /* using std::hel::strncpy; */
|
---|
| 47 | /* using std::hel::strcat; */
|
---|
| 48 | /* using std::hel::strncat; */
|
---|
| 49 | /* using std::hel::strxfrm; */
|
---|
| 50 |
|
---|
| 51 | /* using std::hel::strlen; */
|
---|
| 52 | /* using std::hel::strcmp; */
|
---|
| 53 | /* using std::hel::strncmp; */
|
---|
| 54 | /* using std::hel::strcoll; */
|
---|
| 55 | /* using std::hel::strchr; */
|
---|
| 56 | /* using std::hel::strrchr; */
|
---|
| 57 | /* using std::hel::strspn; */
|
---|
| 58 | /* using std::hel::strcspn; */
|
---|
| 59 | /* using std::hel::strpbrk; */
|
---|
| 60 | /* using std::hel::strstr; */
|
---|
| 61 | /* using std::hel::strok; */
|
---|
| 62 |
|
---|
| 63 | /* using std::hel::memchr; */
|
---|
| 64 | using std::hel::memcmp;
|
---|
| 65 | using std::hel::memset;
|
---|
| 66 | using std::hel::memcpy;
|
---|
| 67 | using std::hel::memmove;
|
---|
[b83ec692] | 68 |
|
---|
[de53138] | 69 | /* using std::hel::strerror; */
|
---|
[b83ec692] | 70 | }
|
---|
| 71 |
|
---|
[de53138] | 72 | using std::hel::size_t;
|
---|
| 73 |
|
---|
| 74 | /* using std::hel::strcpy; */
|
---|
| 75 | /* using std::hel::strncpy; */
|
---|
| 76 | /* using std::hel::strcat; */
|
---|
| 77 | /* using std::hel::strncat; */
|
---|
| 78 | /* using std::hel::strxfrm; */
|
---|
| 79 |
|
---|
| 80 | /* using std::hel::strlen; */
|
---|
| 81 | /* using std::hel::strcmp; */
|
---|
| 82 | /* using std::hel::strncmp; */
|
---|
| 83 | /* using std::hel::strcoll; */
|
---|
| 84 | /* using std::hel::strchr; */
|
---|
| 85 | /* using std::hel::strrchr; */
|
---|
| 86 | /* using std::hel::strspn; */
|
---|
| 87 | /* using std::hel::strcspn; */
|
---|
| 88 | /* using std::hel::strpbrk; */
|
---|
| 89 | /* using std::hel::strstr; */
|
---|
| 90 | /* using std::hel::strok; */
|
---|
| 91 |
|
---|
| 92 | /* using std::hel::memchr; */
|
---|
| 93 | using std::hel::memcmp;
|
---|
| 94 | using std::hel::memset;
|
---|
| 95 | using std::hel::memcpy;
|
---|
| 96 | using std::hel::memmove;
|
---|
| 97 |
|
---|
| 98 | /* using std::hel::strerror; */
|
---|
| 99 |
|
---|
[b83ec692] | 100 | #endif
|
---|