8 #include <botan/init.h>     9 #include <botan/parsing.h>    10 #include <botan/libstate.h>    11 #include <botan/global_state.h>    20    bool thread_safe = 
false;
    22    const std::vector<std::string> arg_list = 
split_on(arg_string, 
' ');
    23    for(
size_t i = 0; i != arg_list.size(); ++i)
    25       if(arg_list[i].size() == 0)
    28       std::string name, value;
    30       if(arg_list[i].find(
'=') == std::string::npos)
    37          std::vector<std::string> name_and_value = 
split_on(arg_list[i], 
'=');
    38          name = name_and_value[0];
    39          value = name_and_value[1];
    43          (value == 
"1" || value == 
"true" || value == 
"yes" || value == 
"on");
    45       if(name == 
"thread_safe")
 
void set_global_state(Library_State *new_state)
static void initialize(const std::string &options="")
std::vector< std::string > split_on(const std::string &str, char delim)
Library_State & global_state()
void initialize(bool thread_safe)
static void deinitialize()