Crazy Eddies GUI System
0.6.2
Main Page
Related Pages
Namespaces
Classes
Files
File List
include
CEGUITextUtils.h
1
/***********************************************************************
2
filename: CEGUITextUtils.h
3
created: 30/5/2004
4
author: Paul D Turner
5
6
purpose: Interface to a static class containing some utility
7
functions for text / string operations
8
*************************************************************************/
9
/***************************************************************************
10
* Copyright (C) 2004 - 2006 Paul D Turner & The CEGUI Development Team
11
*
12
* Permission is hereby granted, free of charge, to any person obtaining
13
* a copy of this software and associated documentation files (the
14
* "Software"), to deal in the Software without restriction, including
15
* without limitation the rights to use, copy, modify, merge, publish,
16
* distribute, sublicense, and/or sell copies of the Software, and to
17
* permit persons to whom the Software is furnished to do so, subject to
18
* the following conditions:
19
*
20
* The above copyright notice and this permission notice shall be
21
* included in all copies or substantial portions of the Software.
22
*
23
* THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
24
* EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
25
* MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND NONINFRINGEMENT.
26
* IN NO EVENT SHALL THE AUTHORS BE LIABLE FOR ANY CLAIM, DAMAGES OR
27
* OTHER LIABILITY, WHETHER IN AN ACTION OF CONTRACT, TORT OR OTHERWISE,
28
* ARISING FROM, OUT OF OR IN CONNECTION WITH THE SOFTWARE OR THE USE OR
29
* OTHER DEALINGS IN THE SOFTWARE.
30
***************************************************************************/
31
#ifndef _CEGUITextUtils_h_
32
#define _CEGUITextUtils_h_
33
34
#include "CEGUIBase.h"
35
#include "CEGUIString.h"
36
37
// Start of CEGUI namespace section
38
namespace
CEGUI
39
{
44
class
CEGUIEXPORT
TextUtils
45
{
46
public
:
47
/*************************************************************************
48
Constants
49
*************************************************************************/
50
static
const
String
DefaultWhitespace
;
51
static
const
String
DefaultAlphanumerical
;
52
static
const
String
DefaultWrapDelimiters
;
53
54
55
/*************************************************************************
56
Methods
57
*************************************************************************/
78
static
String
getNextWord(
const
String
& str,
String::size_type
start_idx = 0,
const
String
& delimiters = DefaultWhitespace);
79
80
97
static
String::size_type
getWordStartIdx(
const
String
& str,
String::size_type
idx);
98
99
117
static
String::size_type
getNextWordStartIdx(
const
String
& str,
String::size_type
idx);
118
119
130
static
void
trimLeadingChars(
String
& str,
const
String
& chars);
131
132
143
static
void
trimTrailingChars(
String
& str,
const
String
& chars);
144
145
146
private
:
147
/*************************************************************************
148
Data
149
*************************************************************************/
150
static
String
d_delimiters;
151
static
String
d_whitespace;
152
153
154
/*************************************************************************
155
Construction / Destruction
156
*************************************************************************/
161
TextUtils
(
void
);
162
~
TextUtils
(
void
);
163
};
164
165
}
// End of CEGUI namespace section
166
167
168
#endif // end of guard _CEGUITextUtils_h_
Generated by
1.8.3.1