SUMO - Simulation of Urban MObility
Main Page
Related Pages
Modules
Data Structures
Files
File List
Globals
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Groups
Pages
StringUtils.h
Go to the documentation of this file.
1
/****************************************************************************/
9
// Some static methods for string processing
10
/****************************************************************************/
11
// SUMO, Simulation of Urban MObility; see http://sumo.sourceforge.net/
12
// Copyright (C) 2001-2013 DLR (http://www.dlr.de/) and contributors
13
/****************************************************************************/
14
//
15
// This file is part of SUMO.
16
// SUMO is free software: you can redistribute it and/or modify
17
// it under the terms of the GNU General Public License as published by
18
// the Free Software Foundation, either version 3 of the License, or
19
// (at your option) any later version.
20
//
21
/****************************************************************************/
22
#ifndef StringUtils_h
23
#define StringUtils_h
24
25
26
// ===========================================================================
27
// included modules
28
// ===========================================================================
29
#ifdef _MSC_VER
30
#include <
windows_config.h
>
31
#else
32
#include <
config.h
>
33
#endif
34
35
#include <string>
36
37
38
// ===========================================================================
39
// class definitions
40
// ===========================================================================
45
class
StringUtils
{
46
public
:
48
static
std::string
prune
(std::string str);
49
51
static
std::string
to_lower_case
(std::string str);
52
54
static
std::string
convertUmlaute
(std::string str);
55
58
static
std::string
replace
(std::string str,
const
char
* what,
59
const
char
* by);
60
62
static
std::string
toTimeString
(
int
time);
63
72
static
std::string
escapeXML
(
const
std::string& orig);
73
75
static
std::string
emptyString
;
76
77
};
78
79
80
#endif
81
82
/****************************************************************************/
83
build
buildd
sumo-0.17.1~dfsg
src
utils
common
StringUtils.h
Generated on Sun Jun 16 2013 17:30:19 for SUMO - Simulation of Urban MObility by
1.8.3.1