1273929Sjmmv/* Copyright (c) 2008 The NetBSD Foundation, Inc. 2240116Smarcel * All rights reserved. 3240116Smarcel * 4240116Smarcel * Redistribution and use in source and binary forms, with or without 5240116Smarcel * modification, are permitted provided that the following conditions 6240116Smarcel * are met: 7240116Smarcel * 1. Redistributions of source code must retain the above copyright 8240116Smarcel * notice, this list of conditions and the following disclaimer. 9240116Smarcel * 2. Redistributions in binary form must reproduce the above copyright 10240116Smarcel * notice, this list of conditions and the following disclaimer in the 11240116Smarcel * documentation and/or other materials provided with the distribution. 12240116Smarcel * 13240116Smarcel * THIS SOFTWARE IS PROVIDED BY THE NETBSD FOUNDATION, INC. AND 14240116Smarcel * CONTRIBUTORS ``AS IS'' AND ANY EXPRESS OR IMPLIED WARRANTIES, 15240116Smarcel * INCLUDING, BUT NOT LIMITED TO, THE IMPLIED WARRANTIES OF 16240116Smarcel * MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. 17240116Smarcel * IN NO EVENT SHALL THE FOUNDATION OR CONTRIBUTORS BE LIABLE FOR ANY 18240116Smarcel * DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL 19240116Smarcel * DAMAGES (INCLUDING, BUT NOT LIMITED TO, PROCUREMENT OF SUBSTITUTE 20240116Smarcel * GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS 21240116Smarcel * INTERRUPTION) HOWEVER CAUSED AND ON ANY THEORY OF LIABILITY, WHETHER 22240116Smarcel * IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR 23240116Smarcel * OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF THIS SOFTWARE, EVEN 24273929Sjmmv * IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE. */ 25240116Smarcel 26273929Sjmmv#if !defined(ATF_C_DETAIL_TEXT_H) 27273929Sjmmv#define ATF_C_DETAIL_TEXT_H 28240116Smarcel 29240116Smarcel#include <stdarg.h> 30240116Smarcel#include <stdbool.h> 31240116Smarcel 32273929Sjmmv#include <atf-c/detail/list.h> 33240116Smarcel#include <atf-c/error_fwd.h> 34240116Smarcel 35240116Smarcelatf_error_t atf_text_for_each_word(const char *, const char *, 36240116Smarcel atf_error_t (*)(const char *, void *), 37240116Smarcel void *); 38240116Smarcelatf_error_t atf_text_format(char **, const char *, ...); 39240116Smarcelatf_error_t atf_text_format_ap(char **, const char *, va_list); 40240116Smarcelatf_error_t atf_text_split(const char *, const char *, atf_list_t *); 41240116Smarcelatf_error_t atf_text_to_bool(const char *, bool *); 42240116Smarcelatf_error_t atf_text_to_long(const char *, long *); 43240116Smarcel 44273929Sjmmv#endif /* !defined(ATF_C_DETAIL_TEXT_H) */ 45