MCPcopy Create free account
hub / github.com/docling-project/docling-parse / hex_to_vec

Function hex_to_vec

src/parse/utils/string.h:123–137  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

121 }
122
123 std::vector<uint32_t> hex_to_vec(std::string hex_str, int num_char)
124 {
125 assert(hex_str.size()%num_char==0);
126
127 std::vector<uint32_t> vec;
128 for(int l=0; l<hex_str.size(); l+=num_char)
129 {
130 std::string hex = hex_str.substr(l, num_char);
131 uint32_t ind = hex_to_numb(hex);//std::stoul(hex, NULL, 16);
132
133 vec.push_back(ind);
134 }
135
136 return vec;
137 }
138
139 std::string vec_to_utf8(std::vector<uint32_t>& vec)
140 {

Callers 1

hex_to_utf8Function · 0.85

Calls 3

hex_to_numbFunction · 0.85
sizeMethod · 0.45
push_backMethod · 0.45

Tested by

no test coverage detected