L4Re Operating System Framework
Interface and Usage Documentation
Toggle main menu visibility
Main Page
Related Pages
Topics
Namespaces
Namespace List
Namespace Members
All
a
b
c
d
h
i
k
m
o
p
r
s
t
u
w
Functions
a
b
c
k
m
r
s
t
w
Variables
Typedefs
Enumerations
Enumerator
Data Structures
Data Structures
Data Structure Index
Class Hierarchy
Data Fields
All
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
~
Functions
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
~
Variables
_
a
b
c
d
e
f
g
h
i
k
l
m
n
o
p
q
r
s
t
u
v
w
x
y
Typedefs
_
a
b
c
d
e
f
g
i
k
m
n
o
p
r
s
t
v
w
Enumerations
a
c
d
e
f
i
m
n
p
q
r
s
t
v
Enumerator
a
b
c
d
e
f
g
i
k
l
m
n
o
p
r
s
t
u
w
x
Related Symbols
Files
File List
Globals
All
_
a
b
d
e
f
g
l
m
n
o
p
r
s
Functions
_
b
e
f
g
l
o
p
Typedefs
e
g
l
p
Enumerations
e
l
p
Enumerator
a
d
e
f
l
n
p
r
s
Macros
_
e
g
l
m
p
s
Examples
•
All
Data Structures
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
Modules
Pages
Loading...
Searching...
No Matches
string.h
Go to the documentation of this file.
1
5
/*
6
* (c) 2004-2009 Alexander Warg <warg@os.inf.tu-dresden.de>,
7
* Torsten Frenzel <frenzel@os.inf.tu-dresden.de>
8
* economic rights: Technische Universität Dresden (Germany)
9
*
10
* License: see LICENSE.spdx (in this directory or the directories above)
11
*/
12
#pragma once
13
14
#include <
l4/cxx/basic_ostream
>
15
16
namespace
L4
{
17
22
class
String
23
{
24
public
:
25
String
(
char
const
*str =
""
) : _str(str)
26
{}
27
28
unsigned
length()
const
29
{
30
unsigned
l;
31
for
(l = 0; _str[l]; l++)
32
;
33
return
l;
34
}
35
36
char
const
*p_str()
const
{
return
_str; }
37
38
private
:
39
char
const
*_str;
40
};
22
class
String
{
…
};
41
}
42
43
inline
44
L4::BasicOStream &operator << (L4::BasicOStream &o,
L4::String
const
&s)
45
{
46
o << s.p_str();
47
return
o;
48
}
basic_ostream
Basic IO stream.
L4::String
A null-terminated string container class.
Definition
string.h:23
L4
L4 low-level kernel interface.
Definition
l4sys-l4f-groups.dox:50
l4
cxx
string.h
Generated on Mon Mar 3 2025 23:08:49 for L4Re Operating System Framework by
1.9.8