-
Notifications
You must be signed in to change notification settings - Fork 0
/
Copy pathsmileys.c++
138 lines (129 loc) · 4.6 KB
/
smileys.c++
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
87
88
89
90
91
92
93
94
95
96
97
98
99
100
101
102
103
104
105
106
107
108
109
110
111
112
113
114
115
116
117
118
119
120
121
122
123
124
125
126
127
128
129
130
131
132
133
134
135
136
137
138
/*
Access Gateway - a mediator for the World Wide Web
(C) 1998-2006 Silas S. Brown http://ssb22.user.srcf.net
Licensed under the Apache License, Version 2.0 (the "License");
you may not use this file except in compliance with the License.
You may obtain a copy of the License at
http://www.apache.org/licenses/LICENSE-2.0
Unless required by applicable law or agreed to in writing, software
distributed under the License is distributed on an "AS IS" BASIS,
WITHOUT WARRANTIES OR CONDITIONS OF ANY KIND, either express or implied.
See the License for the specific language governing permissions and
limitations under the License.
*/
#ifndef ALLINC_H
#define ALLINC_H
#include "allinc.h"
#endif
// This "allinc.h" fragment is also in "notice.txt" (copied
// to top of every file on release), just in case forget to
// put it in some file
// Also, need to put this HERE (not in include file) for
// Monash:
#ifdef __GNUC__
#if (__GNUC__ > 2)
using namespace std;
#endif
#else
// Unknown compiler - assume it's standard
using namespace std;
#endif
// end of notice.txt
#include "allinc.h"
/// All smileys must start with a character in this string. This means the program needn't bother to start a substitution search on other characters.
const char* smileyFirstChars="&*:;.,+0BEX8>@{}=-`(%[|";
// const char smileyFirstChars[] doesn't seem to link properly
// NB THe smileys in this file were taken from some random
// web page for which I have lost the URL. I don't know
// what all the American cultural references are; I hope
// it's all OK. - Silas
/// The decoding of all smileys
const char* smileys[]={
// Must be sorted in descending order of size
// Also make sure that the first character of each
// is present in smileyFirstChars
"*<:-)","(grin in Santa Claus hat)",
"<|-)", "(Chinese grin)",
"<|-(", "(Chinese sad face)",
"<:-I", "(dunce's face)",
"*<:-)", "(grin in Santa Claus hat)",
":<)", "(grin from an Ivy League School)",
"<|-)", "(Chinese grin)",
"<|-(", "(Chinese sad face)",
"<:-I", "(dunce's face)",
":<)", "(grin from an Ivy League School)",
":-)-8", "(big girl's grin)",
"+-:-)", "(clergy's grin)",
"O :-)", "(angel's grin)",
"C=:-)", "(chef's grin)",
"E-:-)", "(amateur radio operator's grin)",
"8 :-)", "(wizard's grin)",
">:->", "(devilish face)",
"@:-)", "(grin from a turban wearer)",
">;->", "(lewd face)",
"B:-)", "(grin with specs on head)",
"::-)", "(grin with normal glasses)",
"8:-)", "(little girl's grin)",
":-{)", "(grin with mustache)",
":-{}", "(grin with lipstick)",
"{:-)", "(grin with toupee)",
"}:-(", "(sad face with toupee in an updraft)",
":-)~", "(drooling grin)",
":-~)", "(grin with a cold)",
":'-(", "(crying face)",
":'-)", "(face crying with happiness)",
"=:-)", "(grin with hosepipe on head)",
"-:-)", "(punk rocker's grin)",
"-:-(", "(punk rocker's scowl)",
"`:-)", "(grin with an eyebrow shaved off)",
",:-)", "(grin with an eyebrow shaved off)",
"[:-)", "(grin from a walkman wearer)",
":-)", "(grin)",
":-(", "(sad face)",
";-)", "(wink)",
":->", "(big wink)",
":-I", "(indifferent face)",
"(-:", "(left-handed grin)",
"%-)", "(tired-eyed grin)",
":*)", "(drunk grin)",
"[:]", "(robot face)",
"8-)", "(grin with specs)",
"B-)", "(grin with horn-rimmed glasses)",
":-[", "(vampire's face)",
":-E", "(bucktoothed vampire's face)",
":-F", "(bucktoothed vampire's face with one tooth missing)",
":-7", "(wry face)",
":-*", "(face having eaten something sour)",
":-@", "(screaming face)",
":-#", "(wearing braces)",
":^)", "(grin with broken nose)",
":v)", "(grin with broken nose)",
":_)", "(grin with nose sliding off face)",
":-&", "(tongue tied face)",
":=)", "(grin with two noses)",
"|-I", "(sleeping face)",
"|-O", "(yawning or snoring face)",
":-Q", "(smoking face)",
":-0", "(surprised or shouting face)",
".-)", "(one-eyed grin)",
",-)", "(one-eyed wink)",
"X-(", "(dead face)",
":-?", "(pipe-smoking face)",
"O-)", "(SCUBA diver's grin)",
":-9", "(licking lips)",
"(:I", "(egghead face)",
"%-6", "(brain dead face)",
":-/", "(skeptical face)",
":-`", "(spitting face)",
":-S", "(incoherent face)",
":-D", "(laugh)",
":-X", "(sealed lips)",
":-C", "(very sad face)",
":-o", "(worried face)",
":)", "(smug grin)",
":}", "(smug grin)",
":]", "(friendly little grin)",
":(", "(sad face)",
":O", "(surprised face)",
"@=", "(pro- nuclear war symbol)",
"END"};