Skip to content
GitLab
Menu
Projects
Groups
Snippets
Loading...
Help
Help
Support
Community forum
Keyboard shortcuts
?
Submit feedback
Contribute to GitLab
Sign in / Register
Toggle navigation
Menu
Open sidebar
wangsen
paddle_dbnet
Commits
0bf4fc37
Unverified
Commit
0bf4fc37
authored
Aug 10, 2021
by
Double_V
Committed by
GitHub
Aug 10, 2021
Browse files
Merge pull request #3619 from LDOUBLEV/fix_cpp
fix cpp
parents
411d764c
005a0b82
Changes
1
Hide whitespace changes
Inline
Side-by-side
Showing
1 changed file
with
4 additions
and
4 deletions
+4
-4
deploy/cpp_infer/src/config.cpp
deploy/cpp_infer/src/config.cpp
+4
-4
No files found.
deploy/cpp_infer/src/config.cpp
View file @
0bf4fc37
...
...
@@ -23,16 +23,13 @@ std::vector<std::string> OCRConfig::split(const std::string &str,
return
res
;
int
strlen
=
str
.
length
()
+
1
;
char
s
*
strs
=
new
char
[
strlen
];
char
*
strs
=
new
char
[
strlen
];
std
::
strcpy
(
strs
,
str
.
c_str
());
int
delimlen
=
delim
.
length
()
+
1
;
char
*
d
=
new
char
[
delimlen
];
std
::
strcpy
(
d
,
delim
.
c_str
());
delete
[]
strs
;
delete
[]
d
;
char
*
p
=
std
::
strtok
(
strs
,
d
);
while
(
p
)
{
std
::
string
s
=
p
;
...
...
@@ -40,6 +37,9 @@ std::vector<std::string> OCRConfig::split(const std::string &str,
p
=
std
::
strtok
(
NULL
,
d
);
}
delete
[]
strs
;
delete
[]
d
;
return
res
;
}
...
...
Write
Preview
Markdown
is supported
0%
Try again
or
attach a new file
.
Attach a file
Cancel
You are about to add
0
people
to the discussion. Proceed with caution.
Finish editing this message first!
Cancel
Please
register
or
sign in
to comment