Package: parser / 3.4.5-4

108_spelling.patch Patch series | download
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
139
140
141
142
143
144
145
146
147
148
149
150
151
152
153
154
155
156
157
158
159
160
161
162
163
164
165
166
167
168
169
170
171
172
173
174
175
176
177
178
179
180
181
182
183
184
185
186
187
188
189
190
191
192
193
194
Description: Spelling fixes
Author: Sergey B Kirpichev <skirpichev@gmail.com>

---
 src/classes/file.C       |    2 +-
 src/classes/hash.C       |    4 ++--
 src/classes/reflection.C |    2 +-
 src/classes/string.C     |    2 +-
 src/classes/table.C      |    8 ++++----
 src/main/pa_charset.C    |    2 +-
 src/main/pa_common.C     |    2 +-
 src/main/pa_http.C       |    2 +-
 src/types/pa_vimage.h    |    2 +-
 src/types/pa_vmail.C     |    6 +++---
 src/types/pa_vxdoc.h     |    4 ++--
 11 files changed, 18 insertions(+), 18 deletions(-)

--- a/src/classes/file.C
+++ b/src/classes/file.C
@@ -984,7 +984,7 @@ public:
 			}
 			return false;
 		} catch(...) {
-			error=SQL_Error("exception occured in File_sql_event_handlers::add_row_cell");
+			error=SQL_Error("exception occurred in File_sql_event_handlers::add_row_cell");
 			return true;
 		}
 	}
--- a/src/classes/hash.C
+++ b/src/classes/hash.C
@@ -74,7 +74,7 @@ public:
 			columns+=new String(str, String::L_TAINTED /* no length as 0x00 can be inside */);
 			return false;
 		} catch(...) {
-			error=SQL_Error("exception occured in Hash_sql_event_handlers::add_column");
+			error=SQL_Error("exception occurred in Hash_sql_event_handlers::add_column");
 			return true;
 		}
 	}
@@ -180,7 +180,7 @@ public:
 			column_index++;
 			return false;
 		} catch(...) {
-			error=SQL_Error("exception occured in Hash_sql_event_handlers::add_row_cell");
+			error=SQL_Error("exception occurred in Hash_sql_event_handlers::add_row_cell");
 			return true;
 		}
 	}
--- a/src/classes/reflection.C
+++ b/src/classes/reflection.C
@@ -66,7 +66,7 @@ static void _create(Request& r, MethodPa
 			valid_options++;
 			params_hash=vparams_hash->as_hash("arguments");
 			if(params.count()>1)
-				throw Exception(PARSER_RUNTIME, 0, "agruments should not be specified as hash and as create params");
+				throw Exception(PARSER_RUNTIME, 0, "arguments should not be specified as hash and as create params");
 		}
 		if(valid_options!=options->count())
 			throw Exception(PARSER_RUNTIME, 0, CALLED_WITH_INVALID_OPTION);
--- a/src/classes/table.C
+++ b/src/classes/table.C
@@ -1299,7 +1299,7 @@ public:
 			columns+=new String(str, String::L_TAINTED /* no length as 0x00 can be inside */);
 			return false;
 		} catch(...) {
-			error=SQL_Error("exception occured in Table_sql_event_handlers::add_column");
+			error=SQL_Error("exception occurred in Table_sql_event_handlers::add_column");
 			return true;
 		}
 	}
@@ -1309,7 +1309,7 @@ public:
 			columns_count=columns.count();
 			return false;
 		} catch(...) {
-			error=SQL_Error("exception occured in Table_sql_event_handlers::before_rows");
+			error=SQL_Error("exception occurred in Table_sql_event_handlers::before_rows");
 			return true;
 		}
 	}
@@ -1318,7 +1318,7 @@ public:
 			*table+=row=new ArrayString(columns_count);
 			return false;
 		} catch(...) {
-			error=SQL_Error("exception occured in Table_sql_event_handlers::add_row");
+			error=SQL_Error("exception occurred in Table_sql_event_handlers::add_row");
 			return true;
 		}
 	}
@@ -1327,7 +1327,7 @@ public:
 			*row+=str?new String(str, String::L_TAINTED /* no length as 0x00 can be inside */):&String::Empty;
 			return false;
 		} catch(...) {
-			error=SQL_Error("exception occured in Table_sql_event_handlers::add_row_cell");
+			error=SQL_Error("exception occurred in Table_sql_event_handlers::add_row_cell");
 			return true;
 		}
 	}
--- a/src/main/pa_charset.C
+++ b/src/main/pa_charset.C
@@ -1218,7 +1218,7 @@ size_t getUTF8CharPos(const XMLByte* src
 	}
 
 	// scan till end but position in bytes still too low
-	throw Exception(0, 0, "Error convertion byte pos to char pos");
+	throw Exception(0, 0, "Error conversion byte pos to char pos");
 }
 
 size_t lengthUTF8(const XMLByte* srcBegin, const XMLByte* srcEnd){
--- a/src/main/pa_common.C
+++ b/src/main/pa_common.C
@@ -743,7 +743,7 @@ const char* format(double value, const c
 		size=snprintf(local_buf, sizeof(local_buf), "%d", (int)value);
 
 	if(size < 0 || size >= MAX_NUMBER-1){ // on win32 we manually reduce max size while printing
-		throw Exception(PARSER_RUNTIME, 0, "Error occure white executing snprintf with format string '%s'.", fmt);
+		throw Exception(PARSER_RUNTIME, 0, "Error occur white executing snprintf with format string '%s'.", fmt);
 	}
 
 	return pa_strdup(local_buf, (size_t)size);
--- a/src/main/pa_http.C
+++ b/src/main/pa_http.C
@@ -280,7 +280,7 @@ static int http_request(HTTP_response& r
 		// rewritten simplier [athough duplicating closesocket code]
 		if(sock>=0) 
 			closesocket(sock); 
-		throw Exception("http.timeout", 0, "timeout occured while retrieving document"); 
+		throw Exception("http.timeout", 0, "timeout occurred while retrieving document"); 
 		return 0; // never
 	} else {
 		alarm(timeout_secs); 
--- a/src/types/pa_vimage.h
+++ b/src/types/pa_vimage.h
@@ -96,7 +96,7 @@ public:
 		if(!fimage)
 			throw Exception(PARSER_RUNTIME,
 				0,
-				"using unitialized image object");
+				"using uninitialized image object");
 
 		return *fimage;
 	}
--- a/src/types/pa_vmail.C
+++ b/src/types/pa_vmail.C
@@ -282,10 +282,10 @@ static void parse(Request& r, GMimeMessa
 		g_mime_message_foreach(message, MimePart2body, &info);
 
 	} catch(const Exception& e) {
-		putReceived(received, VALUE_NAME, "<exception occured while parsing message>");
+		putReceived(received, VALUE_NAME, "<exception occurred while parsing message>");
 		putReceived(received, EXCEPTION_VALUE, e.comment());
 	} catch(...) {
-		putReceived(received, VALUE_NAME, "<exception occured while parsing message>");
+		putReceived(received, VALUE_NAME, "<exception occurred while parsing message>");
 	}
 }
 
@@ -304,7 +304,7 @@ void VMail::fill_received(Request& r) {
 			g_object_unref(GMIME_OBJECT(message));
 		} catch(const Exception& e) {
 			HashStringValue& received=vreceived.hash();
-			putReceived(received, VALUE_NAME, "<exception occured while parsing message>");
+			putReceived(received, VALUE_NAME, "<exception occurred while parsing message>");
 			putReceived(received, EXCEPTION_VALUE, e.comment());
 		} catch(...) {
 			// abnormal stream free
--- a/src/types/pa_vxdoc.h
+++ b/src/types/pa_vxdoc.h
@@ -94,13 +94,13 @@ public: // VXdoc
 
 	xmlDoc& get_xmldoc() {
 		if(!fdocument)
-			throw Exception(PARSER_RUNTIME, 0, "using unitialized xdoc object");
+			throw Exception(PARSER_RUNTIME, 0, "using uninitialized xdoc object");
 		return *fdocument;
 	}
 
 	Request_charsets& charsets() {
 		if(!fcharsets)
-			throw Exception(PARSER_RUNTIME, 0, "using unitialized xdoc object");
+			throw Exception(PARSER_RUNTIME, 0, "using uninitialized xdoc object");
 		return *fcharsets;
 	}
 
--- a/src/classes/string.C
+++ b/src/classes/string.C
@@ -504,7 +504,7 @@ public:
 			result=new String(str, String::L_TAINTED /* no length as 0x00 can be inside */ );
 			return false;
 		} catch(...) {
-			error=SQL_Error("exception occured in String_sql_event_handlers::add_row_cell");
+			error=SQL_Error("exception occurred in String_sql_event_handlers::add_row_cell");
 			return true;
 		}
 	}