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

utils.h File Reference

#include <string>
#include <iostream>
#include "libpq++.h"

Enumerations

enum  {
  MIN_WORD_LENGTH = 2,
  MAX_WORD_LENGTH = 40
}

Functions

string toLower (string)
bool is_non_text ( char c )
 Determines if a character is a non-text character. More...

void skip_non_text ( istream & i )
 Read ahead in istream and skip any whitespace.

string get_word ( istream & i )
 Get the next word from an istream.

bool is_number ( string word )
 Determine if string contains only digits.

int do_query (PgDatabase & data, const char * query )

Enumeration Type Documentation

anonymous enum
 

Enumeration values:
MIN_WORD_LENGTH  
MAX_WORD_LENGTH  


Function Documentation

int do_query ( PgDatabase & data,
const char * query )
 

string get_word ( istream & i )
 

Get the next word from an istream.

bool is_non_text ( char c )
 

Determines if a character is a non-text character.

Will eventually be extended to support multi-byte characters

bool is_number ( string word )
 

Determine if string contains only digits.

void skip_non_text ( istream & i )
 

Read ahead in istream and skip any whitespace.

string toLower ( string str )
 


Generated at Wed Oct 29 09:04:04 2003 for BeIndexed by doxygen1.2.1 written by Dimitri van Heesch, © 1997-2000