blob: fdf7e00d165e17edc2700adcb514ecd46208bdd3 (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
21
22
23
24
25
26
27
|
/**
* \file cstr.h
* \brief C string handling.
* \author Copyright (c) 2002-2008 Jason Perkins and the Premake project
*
* \defgroup cstr C Strings
* \ingroup base
*
* Functions to handle C strings (zero-terminated byte arrays).
*
* @{
*/
#if !defined(PREMAKE_CSTR_H)
#define PREMAKE_CSTR_H
int cstr_contains(const char* str, const char* expected);
int cstr_ends_with(const char* str, const char* expected);
int cstr_eq(const char* str, const char* expected);
int cstr_eqi(const char* str, const char* expected);
char* cstr_format(const char* format, ...);
int cstr_matches_pattern(const char* str, const char* pattern);
int cstr_starts_with(const char* str, const char* expected);
char* cstr_to_identifier(const char* str);
void cstr_trim(char* str, char ch);
#endif
/** @} */
|