blob: 6e6496c4bb5203d2dd4d33b803728c3d4131ecca (
plain)
1
2
3
4
5
6
7
8
9
10
11
12
13
14
15
16
17
18
19
20
|
#pragma once
#include <cstring>
#include <string>
#include <vector>
#include <iostream>
#include "global.h"
namespace ov4
{
void string2argv(const std::vector<std::string> &v, char **argv);
char **string2argv(const std::vector<std::string> &v);
void argv2string(std::vector<std::string> &v, const char * const * argv);
size_t argv_get_required_size(std::vector<std::string> &v);
std::string safe_str(const char *s, const char *fallback = "");
void print_str_hex(const std::string &s);
}
|