MCPcopy Create free account
hub / github.com/davisking/dlib / pick_out_quoted_string

Function pick_out_quoted_string

tools/imglab/src/convert_pascal_v1.cpp:18–37  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

16// ----------------------------------------------------------------------------------------
17
18 std::string pick_out_quoted_string (
19 const std::string& str
20 )
21 {
22 std::string temp;
23 bool in_quotes = false;
24 for (unsigned long i = 0; i < str.size(); ++i)
25 {
26 if (str[i] == '"')
27 {
28 in_quotes = !in_quotes;
29 }
30 else if (in_quotes)
31 {
32 temp += str[i];
33 }
34 }
35
36 return temp;
37 }
38
39// ----------------------------------------------------------------------------------------
40

Callers 1

parse_annotation_fileFunction · 0.85

Calls 1

sizeMethod · 0.45

Tested by

no test coverage detected