OB.DAAC Logo
NASA Logo
Ocean Color Science Software

ocssw V2022
epr_string.h
Go to the documentation of this file.
1 /*
2  * $Id: epr_string.h,v 1.1.1.1 2004-10-28 19:22:23 norman Exp $
3  *
4  * Copyright (C) 2002 by Brockmann Consult (info@brockmann-consult.de)
5  *
6  * This program is free software; you can redistribute it and/or modify it
7  * under the terms of the GNU General Public License as published by the
8  * Free Software Foundation. This program is distributed in the hope it will
9  * be useful, but WITHOUT ANY WARRANTY; without even the implied warranty
10  * of MERCHANTABILITY or FITNESS FOR A PARTICULAR PURPOSE.
11  * See the GNU General Public License for more details.
12  *
13  * You should have received a copy of the GNU General Public License
14  * along with this program; if not, write to the Free Software
15  * Foundation, Inc., 59 Temple Place - Suite 330, Boston, MA 02111-1307, USA.
16  */
17 
18 #ifndef EPR_STRING_H_INCL
19 #define EPR_STRING_H_INCL
20 
21 #ifdef __cplusplus
22 extern "C" {
23 #endif
24 
25 #include <stdlib.h>
26 #include <string.h>
27 #include <assert.h>
28 
29 char* epr_assign_string(char** str_clone, const char* str);
30 char* epr_create_string(unsigned int length);
31 char* epr_clone_string(const char* str);
32 void epr_cut_string(char** sub_str, const char* str, int start, int length);
33 char* epr_sub_string(const char* str, int start, int length);
34 epr_boolean epr_equal_names(const char* name1, const char* name2);
35 void epr_free_string(char* str);
36 char* epr_str_tok(const char* str, const char* seps, int* pos);
37 char* epr_str_tok_tok(const char* str, const char* seps, const char* exceptions, epr_uint* pos);
38 int epr_find_first_not_white(const char* str);
39 int epr_find_last_not_white(const char* str);
40 char* epr_trim_string(char* str);
41 char* epr_strip_string_r(char* str);
42 int epr_if_no_letters(const char* str);
43 int epr_numeral_suspicion(const char* str);
44 int epr_get_positive_int(const char* str);
45 void epr_free_and_null_string(char** str);
46 int epr_if_no_scaling(const char* str);
47 
51 int stricmp(const char* s1, const char* s2);
52 
53 #ifdef __cplusplus
54 } /* extern "C" */
55 #endif
56 #endif /* #ifndef EPR_STRING_H_INCL */
int epr_numeral_suspicion(const char *str)
Definition: epr_string.c:347
int epr_find_first_not_white(const char *str)
Definition: epr_string.c:221
void epr_cut_string(char **sub_str, const char *str, int start, int length)
Definition: epr_string.c:54
char * epr_assign_string(char **str_clone, const char *str)
Definition: epr_string.c:29
unsigned int epr_uint
Definition: epr_api.h:188
char * epr_trim_string(char *str)
Definition: epr_string.c:247
int epr_get_positive_int(const char *str)
Definition: epr_string.c:334
char * epr_sub_string(const char *str, int start, int length)
Definition: epr_string.c:62
float32 * pos
Definition: l1_czcs_hdf.c:35
int epr_boolean
Definition: epr_api.h:185
void epr_free_string(char *str)
Definition: epr_string.c:100
int epr_if_no_letters(const char *str)
Definition: epr_string.c:322
char * epr_str_tok_tok(const char *str, const char *seps, const char *exceptions, epr_uint *pos)
Definition: epr_string.c:177
int epr_if_no_scaling(const char *str)
Definition: epr_string.c:360
epr_boolean epr_equal_names(const char *name1, const char *name2)
Definition: epr_string.c:91
char * epr_strip_string_r(char *str)
Definition: epr_string.c:294
char * epr_clone_string(const char *str)
Definition: epr_string.c:43
char * epr_create_string(unsigned int length)
Definition: epr_string.c:37
const char * str
Definition: l1c_msi.cpp:35
char * epr_str_tok(const char *str, const char *seps, int *pos)
Definition: epr_string.c:122
void epr_free_and_null_string(char **str)
Definition: epr_string.c:370
int epr_find_last_not_white(const char *str)
Definition: epr_string.c:232
int stricmp(const char *s1, const char *s2)
Definition: epr_string.c:378