1 2 3 4 5 6 7 8 9 10 11 12 13 14 15 16 17 18 19 20 21 22 23 24 25 26 27 28 29 30 31 32 33 34 35 36 37 38 39 40 41 42 43 44 45 46 47 48 49 50 51 52 53 54 55 56 57 58 59 60 61 62 63 64 65 66 67 68 69 70 71 72 73 74 75 76 77 78 79 80 81 82 83
|
#pragma once
#include "pch.h"
#ifndef MATCHER_ORIGINAL_H
#define MATCHER_ORIGINAL_H
#include <iostream>
#include <string>
#include <vector>
#include <cctype>
#include <stdlib.h>
#include "File_Reader.h"
#include "Structures.h"
using namespace std;
//
//string * cardinal_ary;
string cardinal_ary[24] = { "E","East", "ENE", "ESE", "N", "NE", "NNE", "NNW", "North", "Northeast", "NW", "S", "SE", "South",\
"Southeast", "Southwest", "SSE", "SSW", "SW", "W","West", "WNW", "WSW" };
string * to_parse;
string type_ary[20] = { "Av", "Ave", "Avenue","Blvd", "Boulevard", "Cir", "Circle","Ct",\
"Court", "Highway", "HW", "HWY", "Ln", "Lane", "Rd", "Road", "St", "Street", "Wy", "Way" };
string states_ary[5][2] = { {"Alabama", "AL"}, \
{"Alaska", "AK"}, \
{"Arizona", "AZ"}, \
{"Arkansas", "AR"}, \
{"California", "CA"},\
};
// global variables used throughout,
vector <string> words;
int word_ptr;
bool rslt;
//function protypes
//general, maybe not in class
bool isnumeric(string);
bool parse_beginning_numeric_and_unit(string, string&, string&);
//string get_2D_value(string **, int, int, int);
//move to parent class
bool found_in_array(string, const string*, int);
bool found_in_array2d(string, string**, int);
string pop_first_word(string&, const string);
bool my_replace_string(string&, string, string);
string my_toupper(string);
string preprocess_string(string, string);
bool words_to_vector(string, vector <string>&, string);
bool print_out_structure(address_struct);
//bool words_to_vector(string, string&, string);
//move to regular address class
bool fill_in_regular_address(address_struct&, vector<string>, int&);
//move to PO class
bool fill_in_po_address(address_struct &, vector<string>, int &);
// move to hwy class
bool fill_in_hwy_address(address_struct &, vector<string>, int &);
results_struct results;
bool empty_words(vector <string>);
#endif
|