@@ -230,34 +230,6 @@ namespace bin2cpp
230230 return BINCPP_VERSION;
231231 }
232232
233- void toHexString (unsigned char c, unsigned char & c1, unsigned char & c2)
234- {
235- static const char * hexCharacters = " 0123456789abcdef" ;
236- c1 = hexCharacters[c/16 ];
237- c2 = hexCharacters[c%16 ];
238- }
239-
240- void toOctString (unsigned char c, unsigned char & c1, unsigned char & c2, unsigned char & c3)
241- {
242- static const char * octCharacters = " 01234567" ;
243- c3 = octCharacters[c%8 ];
244- c /= 8 ;
245- c2 = octCharacters[c%8 ];
246- c /= 8 ;
247- c1 = octCharacters[c];
248- }
249-
250- bool isPrintableCharacter (const char c)
251- {
252- if (c == 39 ) // character ' must be escaped with \' which is not supported right now
253- return false ;
254- if (c == 92 ) // character \ must be escaped with \\ which is not supported right now
255- return false ;
256- if (c >= 32 && c<= 126 )
257- return true ;
258- return false ;
259- }
260-
261233 std::string getParentPath (const std::string & iPath)
262234 {
263235 std::string parent;
@@ -276,42 +248,6 @@ namespace bin2cpp
276248
277249 void splitPath (const std::string & iPath, std::string & oFolder, std::string & oFilename)
278250 {
279- // char separator = getPathSeparator();
280-
281- // //reset everything
282- // oFilename = "";
283- // oFolder = "";
284-
285- // //start from the end and capture each character into oFilename
286- // bool wDumpingInFilename = true;
287- // for(int i = iPath.size() - 1; i >= 0; i--)
288- // {
289- // char c = iPath[i];
290- // if (c == separator && wDumpingInFilename)
291- // {
292- // wDumpingInFilename = false;
293- // }
294-
295- // //decide where the character will be dumped
296- // std::string * wDestination = NULL;
297- // if (wDumpingInFilename)
298- // {
299- // wDestination = &oFilename;
300- // }
301- // else
302- // {
303- // wDestination = &oFolder;
304- // }
305-
306- // //dump c into destination string
307- // wDestination->insert(0, 1, c);
308- // }
309-
310- // if (oFolder.size() == 0)
311- // {
312- // oFolder = std::string(".") + separator;
313- // }
314-
315251 oFolder = " " ;
316252 oFilename = " " ;
317253
0 commit comments