Neo
0.5.0
Developer Documentation
Main Page
Related Pages
Namespaces
Classes
Files
File List
File Members
NeoString.h
Go to the documentation of this file.
1
//========================================================================
2
// Copyright (c) 2003-2011 Anael Seghezzi <www.maratis3d.com>
3
// Copyright (c) 2015 Yannick Pflanzer <www.neo-engine.de>
4
//
5
// This software is provided 'as-is', without any express or implied
6
// warranty. In no event will the authors be held liable for any damages
7
// arising from the use of this software.
8
//
9
// Permission is granted to anyone to use this software for any purpose,
10
// including commercial applications, and to alter it and redistribute it
11
// freely, subject to the following restrictions:
12
//
13
// 1. The origin of this software must not be misrepresented; you must not
14
// claim that you wrote the original software. If you use this software
15
// in a product, an acknowledgment in the product documentation would
16
// be appreciated but is not required.
17
//
18
// 2. Altered source versions must be plainly marked as such, and must not
19
// be misrepresented as being the original software.
20
//
21
// 3. This notice may not be removed or altered from any source
22
// distribution.
23
//
24
//========================================================================
25
26
#ifndef __STRING_H
27
#define __STRING_H
28
29
namespace
Neo
30
{
35
class
NEO_CORE_EXPORT
String
36
{
37
public
:
38
39
String
(
void
);
40
String
(
const
char
* data);
41
String
(
const
String
&
string
);
42
~
String
(
void
);
43
44
private
:
45
46
char
* m_data;
47
48
public
:
49
53
void
clear(
void
);
54
59
void
set(
const
char
* data);
60
66
const
char
* getSafeString(
void
);
67
74
inline
const
char
*
getData
(
void
){
return
m_data; }
75
76
inline
void
operator = (
const
String
&
string
){ set(
string
.m_data); }
77
inline
void
operator = (
const
char
* data){ set(data); }
78
};
79
}
80
#endif
Neo::String
Implements a framework for string manipulation that operates directly on C strings.
Definition:
NeoString.h:35
Neo::String::getData
const char * getData(void)
Returns the current internal string buffer. Attention: Might return NULL!
Definition:
NeoString.h:74
Neo
Definition:
Color.h:29
neoengine
SDK
NeoCore
Includes
NeoString.h
Generated on Thu Oct 22 2015 18:55:57 for Neo by
1.8.9.1