Main Page   Namespace List   Class Hierarchy   Alphabetical List   Compound List   File List   Compound Members   File Members  

string_utils.cxx File Reference

#include "string_utils.h"
#include <ctype.h>

Go to the source code of this file.

Functions

int cmp_nocase (const string &s, const string &s2)
INLINE int toupper_uh (int ch)
int cmp_nocase_uh (const string &s, const string &s2)
string downcase (const string &s)
string upcase (const string &s)
int extract_words (const string &str, vector_string &words)
void tokenize (const string &str, vector_string &words, const string &delimiters)
string trim_left (const string &str)
string trim_right (const string &str)
int string_to_int (const string &str, string &tail)
bool string_to_int (const string &str, int &result)
double string_to_double (const string &str, string &tail)
bool string_to_double (const string &str, double &result)
bool string_to_float (const string &str, float &result)


Function Documentation

int cmp_nocase const string &  s,
const string &  s2
 

Definition at line 26 of file string_utils.cxx.

References p, and s.

Referenced by ConfigureFn(), init_libpnmimagetypes(), and parse_texture_mode().

int cmp_nocase_uh const string &  s,
const string &  s2
 

Definition at line 49 of file string_utils.cxx.

References p, s, and toupper_uh().

Referenced by EggLoader::do_expand_object_type(), EggGroup::has_object_type(), CullBinManager::parse_bin_type(), EggGroup::remove_object_type(), EggRenderMode::string_alpha_mode(), EggGroup::string_billboard_type(), EggGroup::string_collide_flags(), EggGroup::string_cs_type(), EggCurve::string_curve_type(), EggGroup::string_dart_type(), EggGroup::string_dcs_type(), EggRenderMode::string_depth_test_mode(), EggRenderMode::string_depth_write_mode(), EggTexture::string_env_type(), EggTexture::string_filter_type(), Texture::string_filter_type(), EggTexture::string_format(), EggGroup::string_group_type(), EggTable::string_table_type(), EggTexture::string_wrap_mode(), and Texture::string_wrap_mode().

string downcase const string &  s  ) 
 

Definition at line 73 of file string_utils.cxx.

References p, and s.

Referenced by EggLoader::do_expand_object_type(), LoaderFileTypeRegistry::get_type_from_extension(), LoaderFileTypeRegistry::register_type(), and PNMFileTypeRegistry::register_type().

int extract_words const string &  str,
vector_string &  words
 

Definition at line 111 of file string_utils.cxx.

Referenced by CullBinManager::setup_initial_bins().

bool string_to_double const string &  str,
double &  result
 

Definition at line 255 of file string_utils.cxx.

Referenced by string_to_float().

double string_to_double const string &  str,
string &  tail
 

Definition at line 239 of file string_utils.cxx.

bool string_to_float const string &  str,
float &  result
 

Definition at line 269 of file string_utils.cxx.

References string_to_double().

bool string_to_int const string &  str,
int &  result
 

Definition at line 220 of file string_utils.cxx.

Referenced by get_command_line_filenames(), main(), and CullBinManager::setup_initial_bins().

int string_to_int const string &  str,
string &  tail
 

Definition at line 205 of file string_utils.cxx.

void tokenize const string &  str,
vector_string &  words,
const string &  delimiters
 

Definition at line 147 of file string_utils.cxx.

References p, and q.

INLINE int toupper_uh int  ch  ) 
 

Definition at line 43 of file string_utils.cxx.

Referenced by cmp_nocase_uh().

string trim_left const string &  str  ) 
 

Definition at line 167 of file string_utils.cxx.

string trim_right const string &  str  ) 
 

Definition at line 182 of file string_utils.cxx.

References end.

Referenced by GraphicsPipeSelection::GraphicsPipeSelection().

string upcase const string &  s  ) 
 

Definition at line 89 of file string_utils.cxx.

References p, and s.


Generated on Fri Apr 18 00:11:02 2003 for Panda by doxygen1.3