forked from jpopelka/hplip
-
Notifications
You must be signed in to change notification settings - Fork 1
/
Normalize.h
86 lines (73 loc) · 2.89 KB
/
Normalize.h
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
84
85
86
#ifndef _NORMALIZE_H
#define _NORMALIZE_H
#include"Common.h"
#define MAX_TECH_CLASS_PDL 67
#define MAX_TECH_CLASS 78
#define MAX_FAMILY_CLASS 55
#define MAX_SUB_CLASS 32
#define COLOR "Color"
#define COLOR_LASERJET "color laserjet"
#define LASERJET "laserjet"
#define LASERJET_CAP "LaserJet"
#define PHOTOSMART "photosmart"
#define PHOTOSMART_CAP "Photosmart"
#define DESKJET "deskjet"
#define DESKJET_CAP "Deskjet"
#define COLOR_INKJET_PRINTER "color inkjet printer"
#define OFFICEJET "officejet"
#define OFFICEJET_CA "Officejet"
#define BUSINESS_INKJET "business inkjet"
#define DESIGNJET "designjet"
#define PRINTER_SCANNER_COPIER "printer scanner copier"
#define COLOR_LJ "color lj"
#define PROFESSIONAL "professional"
#define PROFESSIONAL_CAP "Professional"
#define INKJET "Inkjet"
#define WIRELESS "Wireless"
#define TANK "Tank"
#define COLOR_REPLACEMENT "CL"
#define COLOR_LASERJET_REPLACEMENT "CJL"
#define LASERJET_REPLACEMENT "LJ"
#define LASERJET_CAP_REPLACEMENT "LJ"
#define PHOTOSMART_REPLACEMENT "PS"
#define PHOTOSMART_CAP_REPLACEMENT "PS"
#define DESKJET_REPLACEMENT "DJ"
#define DESKJET_CAP_REPLACEMENT "DJ"
#define COLOR_INKJET_PRINTER_REPLACEMENT ""
#define OFFICEJET_REPLACEMENT "OJ"
#define OFFICEJET_CAP_REPLACEMENT "OJ"
#define BUSINESS_INKJET_REPLACEMENT "BIJ"
#define DESIGNJET_REPLACEMENT "DESIGNJ"
#define PRINTER_SCANNER_COPIER_REPLACEMENT "PSC"
#define COLOR_LJ_REPLACEMENT "CLJ"
#define PROFESSIONAL_REPLACEMENT "Pro"
#define PROFESSIONAL_CAP_REPLACEMENT "Pro"
#define INKJET_REPLACEMENT "IJ"
#define WIRELESS_REPLACEMENT "WL"
#define TANK_REPLACEMENT "TK"
#define MAX_SHORTENING_REPLACEMENTS 20
/** @brief create pair for tech classes
* @return STRING_PAIR
*
*/
STRING_PAIR TechClassPdls();
/** @brief create pair for tech classes
*
* @return string
*
*/
string ReplaceStrChar(string model_name, const string &replace, char value);
/** @brief Capitalize the model name character
* @param model_dict map of models.dat
* @return void
*
*/
void Capitalize(string &model_name);
/** @brief Normal the model name
* @param model_dict map of models.dat
* @return void
*
*/
void NoramlizeModelName(MODEL_DICT_MAP &model_dict );
void NoramlizeModeVariantlName(string &model_name);
#endif