Vowpal Wabbit
|
#include <cmath>
#include <string>
#include <vector>
#include <iostream>
#include <stdint.h>
#include <math.h>
#include "v_array.h"
#include "hashstring.h"
Go to the source code of this file.
Namespaces | |
VW | |
Typedefs | |
typedef example &(* | VW::example_factory_t) (void *) |
typedef uint64_t(* | hash_func_t) (substring, uint64_t) |
Functions | |
std::ostream & | operator<< (std::ostream &os, const substring &ss) |
std::ostream & | operator<< (std::ostream &os, const v_array< substring > &ss) |
template<typename ContainerT > | |
void | tokenize (char delim, substring s, ContainerT &ret, bool allow_empty=false) |
bool | substring_equal (const substring &a, const substring &b) |
bool | substring_equal (const substring &ss, const char *str) |
bool | operator== (const substring &ss, const char *str) |
bool | operator== (const char *str, const substring &ss) |
bool | operator== (const substring &ss1, const substring &ss2) |
bool | operator!= (const substring &ss, const char *str) |
bool | operator!= (const char *str, const substring &ss) |
bool | operator!= (const substring &ss1, const substring &ss2) |
size_t | substring_len (substring &s) |
char * | safe_index (char *start, char v, char *max) |
std::vector< substring > | escaped_tokenize (char delim, substring s, bool allow_empty=false) |
void | print_substring (substring s) |
hash_func_t | getHasher (const std::string &s) |
float | parseFloat (char *p, char **end, char *endLine=nullptr) |
float | float_of_substring (substring s) |
int | int_of_substring (substring s) |
typedef uint64_t(* hash_func_t) (substring, uint64_t) |
Definition at line 79 of file parse_primitives.h.
Definition at line 58 of file parse_primitives.cc.
References substring::begin, and substring::end.
Referenced by safe_index(), and VW::to_argv_escaped().
|
inline |
Definition at line 146 of file parse_primitives.h.
References substring::begin, substring::end, f, and parseFloat().
Referenced by CCB::convert_to_score(), COST_SENSITIVE::name_value(), MULTICLASS::parse_label(), CB::parse_label(), COST_SENSITIVE::parse_label(), CCB::parse_outcome(), and parse_simple_label().
hash_func_t getHasher | ( | const std::string & | s | ) |
Definition at line 36 of file parse_primitives.cc.
References hashall(), hashstring(), and THROW.
Referenced by VW::hash_feature_static(), VW::hash_space_static(), and parse_feature_tweaks().
|
inline |
Definition at line 159 of file parse_primitives.h.
References substring::begin, and substring::end.
Referenced by CCB::convert_to_score(), CCB::parse_explicit_inclusions(), MULTICLASS::parse_label(), and Search::parse_neighbor_features().
bool operator!= | ( | const substring & | ss, |
const char * | str | ||
) |
Definition at line 52 of file parse_primitives.cc.
Referenced by tokenize().
bool operator!= | ( | const char * | str, |
const substring & | ss | ||
) |
Definition at line 54 of file parse_primitives.cc.
Definition at line 56 of file parse_primitives.cc.
std::ostream& operator<< | ( | std::ostream & | os, |
const substring & | ss | ||
) |
Definition at line 112 of file parse_primitives.cc.
References substring::begin, and substring::end.
Definition at line 118 of file parse_primitives.cc.
bool operator== | ( | const substring & | ss, |
const char * | str | ||
) |
Definition at line 46 of file parse_primitives.cc.
References substring_equal().
Referenced by tokenize().
bool operator== | ( | const char * | str, |
const substring & | ss | ||
) |
Definition at line 48 of file parse_primitives.cc.
References substring_equal().
Definition at line 50 of file parse_primitives.cc.
References substring_equal().
|
inline |
Definition at line 88 of file parse_primitives.h.
References ldamath::powf().
Referenced by TC_parser< audit >::featureValue(), float_of_substring(), is_number(), and TC_parser< audit >::nameSpaceInfoValue().
|
inline |
Definition at line 70 of file parse_primitives.h.
References substring::begin, and substring::end.
Referenced by no_label::parse_no_label(), and parse_simple_label().
|
inline |
Definition at line 61 of file parse_primitives.h.
References escaped_tokenize().
Referenced by substring_to_example().
Definition at line 19 of file parse_primitives.cc.
References substring::begin, and substring::end.
Referenced by namedlabels::namedlabels(), operator==(), parse_dictionary_argument(), CB::parse_label(), COST_SENSITIVE::parse_label(), CCB::parse_label(), and tokenize().
bool substring_equal | ( | const substring & | ss, |
const char * | str | ||
) |
size_t substring_len | ( | substring & | s | ) |
Definition at line 34 of file parse_primitives.cc.
References substring::begin, and substring::end.
Referenced by VW::cb_sample_data::learn_or_predict(), and tokenize().
void tokenize | ( | char | delim, |
substring | s, | ||
ContainerT & | ret, | ||
bool | allow_empty = false |
||
) |
Definition at line 27 of file parse_primitives.h.
References a, substring::begin, substring::end, operator!=(), operator==(), substring_equal(), and substring_len().
Referenced by COST_SENSITIVE::name_value(), namedlabels::namedlabels(), VW::parse_example_label(), MULTILABEL::parse_label(), CB::parse_label(), CCB::parse_label(), Search::parse_neighbor_features(), CCB::parse_outcome(), substring_to_example(), and VW::to_argv().