/usr/include/cxstring.h is in libcext-dev 6.5-1.
This file is owned by root:root, with mode 0o644.
The actual contents of the file can be viewed below.
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 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83 84 85 86 87 88 89 90 91 92 93 94 95 96 97 98 99 100 101 102 103 104 105 106 107 108 109 110 111 112 113 114 115 116 117 118 119 120 121 122 123 124 125 126 127 128 129 130 131 132 133 134 135 136 137 | /* $Id: cxstring.h,v 1.8 2011-02-21 14:15:31 rpalsa Exp $
*
* This file is part of the ESO C Extension Library
* Copyright (C) 2001-2011 European Southern Observatory
*
* This program is free software; you can redistribute it and/or modify
* it under the terms of the GNU General Public License as published by
* the Free Software Foundation; either version 2 of the License, or
* (at your option) any later version.
*
* This program 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 General Public License for more details.
*
* You should have received a copy of the GNU General Public License
* along with this program; if not, write to the Free Software
* Foundation, Inc., 51 Franklin St, Fifth Floor, Boston, MA 02110-1301 USA
*/
/*
* $Author: rpalsa $
* $Date: 2011-02-21 14:15:31 $
* $Revision: 1.8 $
* $Name: not supported by cvs2svn $
*/
#ifndef CX_STRING_H_
#define CX_STRING_H_ 1
#include <stdarg.h>
#include <string.h>
#include <ctype.h>
#include <cxtypes.h>
#include <cxmemory.h>
#include <cxmessages.h>
#include <cxutils.h>
CX_BEGIN_DECLS
struct _cx_string_ {
/* <private> */
cxchar *data;
cxsize sz;
};
/**
* @ingroup cxstring
*
* @brief
* The cx_string data type.
*/
typedef struct _cx_string_ cx_string;
/*
* Create, copy and destroy operations
*/
cx_string *cx_string_new(void);
cx_string *cx_string_copy(const cx_string *);
cx_string *cx_string_create(const cxchar *);
void cx_string_delete(cx_string *);
/*
* Non modifying operations
*/
cxsize cx_string_size(const cx_string *);
cxbool cx_string_empty(const cx_string *);
/*
* Data access
*/
const cxchar *cx_string_get(const cx_string *);
/*
* Assignment operations
*/
void cx_string_set(cx_string *, const cxchar *);
/*
* Modifying operations
*/
cx_string *cx_string_upper(cx_string *);
cx_string *cx_string_lower(cx_string *);
cx_string *cx_string_trim(cx_string *);
cx_string *cx_string_rtrim(cx_string *);
cx_string *cx_string_strip(cx_string *);
/*
* Inserting and removing elements
*/
cx_string *cx_string_prepend(cx_string *, const cxchar *);
cx_string *cx_string_append(cx_string *, const cxchar *);
cx_string *cx_string_insert(cx_string *, cxssize, const cxchar *);
cx_string *cx_string_erase(cx_string *, cxssize, cxssize);
cx_string *cx_string_truncate(cx_string *, cxsize);
/*
* Comparison functions
*/
cxbool cx_string_equal (const cx_string *, const cx_string *);
cxint cx_string_compare(const cx_string *, const cx_string *);
cxint cx_string_casecmp(const cx_string *, const cx_string *);
cxint cx_string_ncasecmp(const cx_string *, const cx_string *, cxsize);
/*
* I/O functions
*/
cxint cx_string_sprintf(cx_string *,
const cxchar *, ...) CX_GNUC_PRINTF(2, 3);
cxint cx_string_vsprintf(cx_string *,
const cxchar *, va_list) CX_GNUC_PRINTF(2, 0);
/*
* Debugging utilities
*/
void cx_string_print(const cx_string *);
CX_END_DECLS
#endif /* CX_STRING_H */
|