1 /*
2  * This file is part of libbluray
3  * Copyright (C) 2009-2010  John Stebbins
4  * Copyright (C) 2011-2017  Petri Hintukainen <phintuka@users.sourceforge.net>
5  *
6  * This library is free software; you can redistribute it and/or
7  * modify it under the terms of the GNU Lesser General Public
8  * License as published by the Free Software Foundation; either
9  * version 2.1 of the License, or (at your option) any later version.
10  *
11  * This library is distributed in the hope that it will be useful,
12  * but WITHOUT ANY WARRANTY; without even the implied warranty of
13  * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.  See the GNU
14  * Lesser General Public License for more details.
15  *
16  * You should have received a copy of the GNU Lesser General Public
17  * License along with this library. If not, see
18  * <http://www.gnu.org/licenses/>.
19  */
20 
21 #ifndef STRUTL_H_
22 #define STRUTL_H_
23 
24 #include "attributes.h"
25 
26 #include <stdint.h>
27 
28 BD_PRIVATE char * str_dup(const char *str) BD_ATTR_MALLOC;
29 BD_PRIVATE char * str_printf(const char *fmt, ...) BD_ATTR_FORMAT_PRINTF(1,2) BD_ATTR_MALLOC;
30 
31 BD_PRIVATE uint32_t str_to_uint32(const char *s, int n);
32 BD_PRIVATE void     str_tolower(char *s);
33 
34 BD_PRIVATE char * str_print_hex(char *out, const uint8_t *str, int count);
35 
36 BD_PRIVATE const char *str_strcasestr(const char *haystack, const char *needle);
37 
38 #endif // STRUTL_H_
39