/* * This file is part of libbluray * Copyright (C) 2009-2010 John Stebbins * Copyright (C) 2011-2017 Petri Hintukainen * * This library is free software; you can redistribute it and/or * modify it under the terms of the GNU Lesser General Public * License as published by the Free Software Foundation; either * version 2.1 of the License, or (at your option) any later version. * * This library is distributed in the hope that it will be useful, * but WITHOUT ANY WARRANTY; without even the implied warranty of * MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE. See the GNU * Lesser General Public License for more details. * * You should have received a copy of the GNU Lesser General Public * License along with this library. If not, see * . */ #ifndef STRUTL_H_ #define STRUTL_H_ #include "attributes.h" #include BD_PRIVATE char * str_dup(const char *str) BD_ATTR_MALLOC; BD_PRIVATE char * str_printf(const char *fmt, ...) BD_ATTR_FORMAT_PRINTF(1,2) BD_ATTR_MALLOC; BD_PRIVATE uint32_t str_to_uint32(const char *s, int n); BD_PRIVATE void str_tolower(char *s); BD_PRIVATE char * str_print_hex(char *out, const uint8_t *str, int count); BD_PRIVATE const char *str_strcasestr(const char *haystack, const char *needle); #endif // STRUTL_H_