Vcsn
2.0
Be Rational
Main Page
Namespaces
Classes
Files
File List
File Members
All
Classes
Namespaces
Files
Functions
Variables
Typedefs
Enumerations
Enumerator
Friends
Macros
ctx.cc
Go to the documentation of this file.
1
#include <boost/algorithm/string.hpp>
2
3
#include <
vcsn/dyn/context.hh
>
4
5
namespace
vcsn
6
{
7
namespace
dyn
8
{
9
std::string
detail::context_base::sname
(
const
std::string&
vname
)
10
{
11
std::string res;
12
int
nesting = 0;
13
for
(
char
c: vname)
14
switch
(c)
15
{
16
case
'('
:
17
++nesting;
18
break
;
19
case
')'
:
20
--nesting;
21
break
;
22
default
:
23
if
(!nesting)
24
res += c;
25
break
;
26
}
27
boost::replace_all(res,
"lan_char"
,
"lan<lal_char>"
);
28
return
res;
29
}
30
}
31
}
context.hh
vcsn::dyn::detail::context_base::sname
static std::string sname(const std::string &vname)
Convert a dynamic name into a static one.
Definition:
ctx.cc:9
vcsn::vname
std::string vname(T &t)
Definition:
name.hh:65
lib
vcsn
ctx
ctx.cc
Generated by
1.8.7