Vowpal Wabbit
Namespaces | Typedefs | Functions
parse_primitives.h File Reference
#include <cmath>
#include <string>
#include <vector>
#include <iostream>
#include <cstdint>
#include "v_array.h"
#include "hashstring.h"
#include "vw_string_view.h"
#include "fast_pow10.h"

Namespaces

 VW
 [Error Generator]
 

Typedefs

typedef example &(* VW::example_factory_t) (void *)
 
typedef uint64_t(* hash_func_t) (const char *s, size_t, uint64_t)
 

Functions

template<typename ContainerT >
void tokenize (char delim, VW::string_view s, ContainerT &ret, bool allow_empty=false)
 
std::vector< std::string > escaped_tokenize (char delim, VW::string_view s, bool allow_empty=false)
 
const char * safe_index (const char *start, char v, const char *max)
 
hash_func_t getHasher (const std::string &s)
 
float parseFloat (const char *p, size_t &end_idx, const char *endLine=nullptr)
 
float float_of_string (VW::string_view s)
 
int int_of_string (VW::string_view s, char *&end)
 
int int_of_string (VW::string_view s)
 

Typedef Documentation

typedef uint64_t(* hash_func_t) (const char *s, size_t, uint64_t)

Function Documentation

std::vector<std::string> escaped_tokenize ( char  delim,
VW::string_view  s,
bool  allow_empty = false 
)
float float_of_string ( VW::string_view  s)
inline
hash_func_t getHasher ( const std::string &  s)
int int_of_string ( VW::string_view  s,
char *&  end 
)
inline
int int_of_string ( VW::string_view  s)
inline
float parseFloat ( const char *  p,
size_t &  end_idx,
const char *  endLine = nullptr 
)
inline
const char* safe_index ( const char *  start,
char  v,
const char *  max 
)
inline
template<typename ContainerT >
void tokenize ( char  delim,
VW::string_view  s,
ContainerT &  ret,
bool  allow_empty = false 
)