44#include "EST_String.h"
48#define LINE_LENGTH 1000
50EST_Regex RX_Word(
"[A-Z]?[a-z]+\\('[a-z]+\\)?");
52#define WORD "Latitude"
65 file.set_WhiteSpaceChars(
"");
66 file.set_SingleCharSymbols(
"\n");
67 file.set_PunctuationSymbols(
"");
68 file.set_PrePunctuationSymbols(
"");
84 while((p = line.
search(RX_Word,
len, p)) >= 0)
93cout << WORD
" is on line " <<
places.val(WORD) <<
"\n";
int search(const char *s, int len, int &mlen, int pos=0) const
Find a substring.
EST_String at(int from, int len=0) const
Return part at position.