DEADSOFTWARE
GIT
/
REPO
/
FRED-BOY
Projects
/
odcread.git
/ blob
summary
|
shortlog
|
log
|
commit
|
commitdiff
|
tree
history
|
raw
|
HEAD
Add License to README
[odcread.git]
/
reader
/
fixTypeName.cc
1
#include
"reader/module.ih"
2
3
namespace
odc
{
4
5
std
::
string
&
Reader
::
fixTypeName
(
std
::
string
&
name
) {
6
size_t
pos
=
name
.
size
() -
4
;
7
if
(
pos
>
0
&&
name
.
substr
(
pos
,
4
).
compare
(
"Desc"
) ==
0
) {
8
return
name
.
replace
(
pos
,
4
,
"^"
);
9
}
10
return
name
;
11
}
12
13
}
// namespace odc