string_utilities.h 1.16 KB
Newer Older
1
2
3
4
/*
  This file is part of CDO. CDO is a collection of Operators to
  manipulate and analyse Climate model Data.

Uwe Schulzweida's avatar
Uwe Schulzweida committed
5
  Copyright (C) 2003-2020 Uwe Schulzweida, <uwe.schulzweida AT mpimet.mpg.de>
6
7
8
9
10
11
12
13
14
15
16
  See COPYING file for copying and redistribution conditions.

  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; version 2 of the License.

  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.
*/
Uwe Schulzweida's avatar
Uwe Schulzweida committed
17
18
#ifndef STR_UTILITIES_H
#define STR_UTILITIES_H
Oliver Heidmann's avatar
Oliver Heidmann committed
19

Oliver Heidmann's avatar
Oliver Heidmann committed
20
21
22
#include <vector>
#include <string>

23
int cstrSplitWithSeperator(const char *source_string, const char *seperator, std::vector<std::string> &split_string);
24
int cstrSplitWithSeperator(const char *source_string, const char *seperator, char ***ptr_split_string);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
25

26
int cstrIsNumeric(const char *s);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
27

28
void cstrReplaceChar(char *str_in, char orig_char, char rep_char);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
29

30
void cstrToUpperCase(char *sPtr);
31
void cstrToLowerCase(char *sPtr);
Uwe Schulzweida's avatar
Uwe Schulzweida committed
32

Uwe Schulzweida's avatar
Uwe Schulzweida committed
33
#endif