src
Main Page
Namespaces
Classes
Files
File List
File Members
codegen
indent.h
Go to the documentation of this file.
1
#ifndef _RE2C_CODEGEN_INDENT_
2
#define _RE2C_CODEGEN_INDENT_
3
4
#include <string>
5
6
#include "
src/globals.h
"
7
8
namespace
re2c
9
{
10
11
inline
std::string
indent
(uint32_t ind)
12
{
13
std::string str;
14
15
while
(
opts
->
target
!=
opt_t::DOT
&& ind-- > 0)
16
{
17
str +=
opts
->
indString
;
18
}
19
return
str;
20
}
21
22
}
// end namespace re2c
23
24
#endif // _RE2C_CODEGEN_INDENT_
re2c::opt_t::indString
std::string indString
Definition:
opt.h:118
re2c::indent
std::string indent(uint32_t ind)
Definition:
indent.h:11
globals.h
re2c::opt_t::target
opt_t::target_t target
Definition:
opt.h:118
re2c::opt_t::DOT
Definition:
opt.h:112
re2c::opts
Opt opts
Definition:
opt.cc:7
re2c
Definition:
bitmap.cc:10
Generated by
1.8.10