Vowpal Wabbit
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"
#include "future_compat.h"
#include "io/logger.h"

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)
 
FORCE_INLINE 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)
 

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
int int_of_string ( VW::string_view  s,
char *&  end 
)
inline
int int_of_string ( VW::string_view  s)
inline
FORCE_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 
)