2214
|
1 |
"{ Encoding: utf8 }"
|
|
2 |
|
|
3 |
"
|
|
4 |
COPYRIGHT (c) 1994 by Claus Gittinger
|
|
5 |
COPYRIGHT (c) 2009 by eXept Software AG
|
|
6 |
All Rights Reserved
|
|
7 |
|
|
8 |
This software is furnished under a license and may be used
|
|
9 |
only in accordance with the terms of that license and with the
|
|
10 |
inclusion of the above copyright notice. This software may not
|
|
11 |
be provided or otherwise made available to, or used by, any
|
|
12 |
other person. No title to or ownership of the software is
|
|
13 |
hereby transferred.
|
|
14 |
"
|
|
15 |
"{ Package: 'stx:libbasic2' }"
|
|
16 |
|
3649
|
17 |
"{ NameSpace: Smalltalk }"
|
|
18 |
|
2214
|
19 |
Object subclass:#StringUtilities
|
|
20 |
instanceVariableNames:''
|
|
21 |
classVariableNames:''
|
|
22 |
poolDictionaries:''
|
|
23 |
category:'Collections-Text-Support'
|
|
24 |
!
|
|
25 |
|
|
26 |
!StringUtilities class methodsFor:'documentation'!
|
|
27 |
|
|
28 |
copyright
|
|
29 |
"
|
|
30 |
COPYRIGHT (c) 1994 by Claus Gittinger
|
|
31 |
COPYRIGHT (c) 2009 by eXept Software AG
|
|
32 |
All Rights Reserved
|
|
33 |
|
|
34 |
This software is furnished under a license and may be used
|
|
35 |
only in accordance with the terms of that license and with the
|
|
36 |
inclusion of the above copyright notice. This software may not
|
|
37 |
be provided or otherwise made available to, or used by, any
|
|
38 |
other person. No title to or ownership of the software is
|
|
39 |
hereby transferred.
|
|
40 |
"
|
|
41 |
!
|
|
42 |
|
|
43 |
documentation
|
|
44 |
"
|
|
45 |
some less often used algorithms have been moved to here to
|
|
46 |
make libbasic more compact.
|
|
47 |
"
|
|
48 |
! !
|
|
49 |
|
|
50 |
!StringUtilities class methodsFor:'edit distance'!
|
|
51 |
|
|
52 |
editDistanceFrom:s1 to:s2 s:substWeight k:kbdTypoWeight c:caseWeight e:exchangeWeight i:insrtWeight
|
2804
|
53 |
"another, simpler editing distance between two strings.
|
|
54 |
See also: levenshtein"
|
|
55 |
|
2214
|
56 |
|editedS2 min d|
|
|
57 |
|
|
58 |
s2 size > s1 size ifTrue:[
|
|
59 |
^ self editDistanceFrom:s2 to:s1 s:substWeight k:kbdTypoWeight c:caseWeight e:exchangeWeight i:insrtWeight
|
|
60 |
].
|
|
61 |
s1 size > s2 size ifTrue:[
|
|
62 |
0 to:s2 size do:[:pos |
|
3113
|
63 |
editedS2 := s2 copyWith:$# insertedAfterIndex:pos.
|
2214
|
64 |
|
|
65 |
d := self editDistanceFrom:s1 to:editedS2 s:substWeight k:kbdTypoWeight c:caseWeight e:exchangeWeight i:insrtWeight.
|
|
66 |
min := (min ? d) min:d.
|
|
67 |
].
|
|
68 |
^ min + insrtWeight
|
|
69 |
].
|
|
70 |
|
2804
|
71 |
^ (1 to:s1 size) sum:
|
|
72 |
[:i |
|
|
73 |
((s2 at:i) == $# or:[ (s1 at:i)=(s2 at:i)])
|
|
74 |
ifTrue:[0]
|
|
75 |
ifFalse:[substWeight]
|
|
76 |
]
|
2214
|
77 |
|
|
78 |
"
|
|
79 |
'comptuer' levenshteinTo:'computer'
|
|
80 |
self editDistanceFrom:'comptuer' to:'computer' s:4 k:2 c:1 e:nil i:2
|
|
81 |
|
|
82 |
'computr' levenshteinTo:'computer'
|
|
83 |
self editDistanceFrom:'computr' to:'computer' s:4 k:2 c:1 e:nil i:2
|
|
84 |
"
|
2804
|
85 |
|
|
86 |
"Modified (format): / 09-08-2012 / 05:41:59 / cg"
|
2214
|
87 |
!
|
|
88 |
|
|
89 |
isKey:k1 nextTo:k2
|
|
90 |
"return true, if k1 and k2 are adjacent keys on the keyboard.
|
|
91 |
This is used to specially priorize plausible typing errors of adjacent keys."
|
|
92 |
|
|
93 |
^ self isKey:k1 nextTo:k2 onKeyboard:(self keyboardLayout)
|
|
94 |
|
|
95 |
"
|
|
96 |
self isKey:$a nextTo:$a
|
|
97 |
self isKey:$a nextTo:$s
|
|
98 |
self isKey:$a nextTo:$q
|
|
99 |
self isKey:$a nextTo:$w
|
|
100 |
self isKey:$a nextTo:$y
|
|
101 |
self isKey:$a nextTo:$z
|
|
102 |
self isKey:$a nextTo:$x
|
|
103 |
"
|
|
104 |
!
|
|
105 |
|
|
106 |
isKey:k1 nextTo:k2 onKeyboard:keys
|
|
107 |
"return true, if k1 and k2 are adjacent keys on the keyboard defined by keys"
|
|
108 |
|
|
109 |
|row1 row2 col1 col2|
|
|
110 |
|
|
111 |
row1 := keys findFirst:[:eachRow | col1 := eachRow indexOf:k1. col1 ~~ 0].
|
|
112 |
row1 == 0 ifTrue:[^ false].
|
|
113 |
row2 := keys findFirst:[:eachRow | col2 := eachRow indexOf:k2. col2 ~~ 0].
|
|
114 |
row2 == 0 ifTrue:[^ false].
|
|
115 |
|
|
116 |
^ (row1-row2) abs <= 1 and:[(col1-col2) abs <= 1]
|
|
117 |
|
|
118 |
"
|
|
119 |
self isKey:$a nextTo:$q onKeyboard:(StringUtilities keyboardLayoutForLanguage:#de)
|
|
120 |
self isKey:$a nextTo:$x onKeyboard:(StringUtilities keyboardLayoutForLanguage:#de)
|
|
121 |
"
|
|
122 |
!
|
|
123 |
|
|
124 |
keyboardLayout
|
|
125 |
"the keyboard layout (used with algorithms to find possible typing errors,
|
|
126 |
for example: edit distance in levenshtein)"
|
|
127 |
|
|
128 |
^ self keyboardLayoutForLanguage:(UserPreferences current language)
|
|
129 |
|
|
130 |
"
|
|
131 |
self keyboardLayout
|
|
132 |
"
|
|
133 |
!
|
|
134 |
|
|
135 |
keyboardLayoutForLanguage:lang
|
|
136 |
"the keyboard layout (used with algorithms to find possible typing errors,
|
|
137 |
for example: edit distance in levenshtein).
|
2804
|
138 |
CAVEAT: hard coded us- and german keyboards here - should go into resource file."
|
2214
|
139 |
|
|
140 |
"/ danish
|
|
141 |
lang == #da ifTrue:[
|
|
142 |
^ #(
|
|
143 |
'1234567890-'
|
|
144 |
'*qwertyuiopå'
|
|
145 |
'**asdfghjklæø'
|
|
146 |
'***zxcvbnm' ).
|
|
147 |
].
|
|
148 |
lang == #no ifTrue:[
|
|
149 |
^ #(
|
|
150 |
'1234567890-'
|
|
151 |
'*qwertyuiopå'
|
|
152 |
'**asdfghjkløæ'
|
|
153 |
'***zxcvbnm' ).
|
|
154 |
].
|
|
155 |
|
|
156 |
(lang == #de or:[lang == #pl or:[lang == #cz]]) ifTrue:[
|
|
157 |
^ #(
|
|
158 |
'1234567890-'
|
|
159 |
'*qwertzuiop'
|
|
160 |
'**asdfghjkl:'
|
|
161 |
'***yxcvbnm' ).
|
|
162 |
].
|
|
163 |
lang == #hu ifTrue:[
|
|
164 |
^ #(
|
|
165 |
'1234567890-'
|
|
166 |
'*qwertyuiopõú'
|
|
167 |
'**asdfghjkléáũ'
|
|
168 |
'**Ãzxcvbnm' ).
|
|
169 |
].
|
|
170 |
|
|
171 |
lang == #pt ifTrue:[
|
|
172 |
^ #(
|
|
173 |
'1234567890-'
|
|
174 |
'*qwertyuiop'
|
|
175 |
'**asdfghjklç'
|
|
176 |
'***zxcvbnm' ).
|
|
177 |
].
|
|
178 |
lang == #es ifTrue:[
|
|
179 |
^ #(
|
|
180 |
'1234567890-'
|
|
181 |
'*qwertyuiop'
|
|
182 |
'**asdfghjklñ'
|
|
183 |
'***zxcvbnm' ).
|
|
184 |
].
|
|
185 |
(lang == #sv or:[lang == #fi]) ifTrue:[
|
|
186 |
^ #(
|
|
187 |
'1234567890-'
|
|
188 |
'*qwertyuiopå'
|
|
189 |
'**asdfghjklöä'
|
|
190 |
'***zxcvbnm' ).
|
|
191 |
].
|
|
192 |
lang == #fr ifTrue:[
|
|
193 |
^ #(
|
|
194 |
'1234567890'
|
|
195 |
'*azertyuiop'
|
|
196 |
'**qsdfghjklm'
|
|
197 |
'***wxcvbn,' ).
|
|
198 |
].
|
|
199 |
|
|
200 |
"/ fallback: english, dutch, italian
|
|
201 |
^ #(
|
|
202 |
'1234567890-'
|
|
203 |
'*qwertyuiop'
|
|
204 |
'**asdfghjkl:'
|
|
205 |
'***zxcvbnm' ).
|
|
206 |
|
|
207 |
"
|
|
208 |
self keyboardLayoutForLanguage:#de
|
|
209 |
"
|
2804
|
210 |
|
|
211 |
"Modified (comment): / 09-08-2012 / 05:39:19 / cg"
|
2214
|
212 |
!
|
|
213 |
|
|
214 |
levenshteinDistanceFrom:string1 to:string2 s:substWeight k:kbdTypoWeight c:caseWeight e:exchangeWeight i:insrtWeight d:deleteWeight
|
|
215 |
"parametrized levenshtein.
|
|
216 |
return the levenshtein distance of two strings;
|
|
217 |
this value corrensponds to the number of replacements that have to be
|
2804
|
218 |
made to get string2 from string1. The smaller the returned number,
|
|
219 |
tbe more similar are the two strings.
|
2214
|
220 |
|
|
221 |
The arguments are the costs for
|
|
222 |
s:substitution,
|
|
223 |
k:keyboard type (substitution), if nil, s is used
|
|
224 |
c:case-change, if nil, s is used
|
|
225 |
i:insertion
|
|
226 |
d:deletion
|
|
227 |
e:exchange if nil, s*2 is used
|
|
228 |
of a character.
|
|
229 |
See IEEE transactions on Computers 1976 Pg 172 ff."
|
|
230 |
|
|
231 |
|d "delta matrix"
|
|
232 |
len1 "{ Class: SmallInteger }"
|
|
233 |
len2 "{ Class: SmallInteger }"
|
|
234 |
dim "{ Class: SmallInteger }"
|
|
235 |
prevRow row col
|
|
236 |
dimPlus1 "{ Class: SmallInteger }"
|
|
237 |
min pp c1 c2|
|
|
238 |
|
|
239 |
len1 := string1 size.
|
|
240 |
len2 := string2 size.
|
|
241 |
|
|
242 |
"create the help-matrix"
|
|
243 |
|
|
244 |
dim := len1 max:len2.
|
|
245 |
dimPlus1 := dim + 1.
|
|
246 |
|
|
247 |
d := Array new:dimPlus1.
|
|
248 |
1 to:dimPlus1 do:[:i |
|
|
249 |
d at:i put:(Array new:dimPlus1)
|
|
250 |
].
|
|
251 |
|
|
252 |
"init help-matrix"
|
|
253 |
|
|
254 |
(d at:1) at:1 put:0.
|
|
255 |
row := d at:1.
|
|
256 |
1 to:dim do:[:j |
|
|
257 |
row at:(j + 1) put:( (row at:j) + insrtWeight )
|
|
258 |
].
|
|
259 |
|
|
260 |
1 to:dim do:[:i |
|
|
261 |
(d at:(i + 1)) at:1 put:( ((d at:i) at:1) + deleteWeight )
|
|
262 |
].
|
|
263 |
|
|
264 |
1 to:len1 do:[:i |
|
|
265 |
c1 := string1 at:i.
|
|
266 |
1 to:len2 do:[:j |
|
|
267 |
c2 := string2 at:j.
|
|
268 |
(c1 == c2) ifTrue:[
|
|
269 |
pp := 0
|
|
270 |
] ifFalse:[
|
|
271 |
(c1 asLowercase == c2 asLowercase) ifTrue:[
|
|
272 |
pp := caseWeight
|
|
273 |
] ifFalse:[
|
|
274 |
pp := substWeight.
|
|
275 |
substWeight ~~ kbdTypoWeight ifTrue:[
|
|
276 |
(self isKey:c1 asLowercase nextTo:c2 asLowercase) ifTrue:[
|
3181
|
277 |
pp := kbdTypoWeight ? substWeight.
|
2214
|
278 |
].
|
|
279 |
].
|
|
280 |
"/ assmuing (;-) that an exchange is very common when typing...
|
|
281 |
exchangeWeight notNil ifTrue:[
|
|
282 |
(i < len1 and:[j < len2]) ifTrue:[
|
|
283 |
((string1 at:i) = (string2 at:(j+1))
|
|
284 |
and:[ (string1 at:i+1) = (string2 at:j) ]) ifTrue:[
|
|
285 |
pp := exchangeWeight.
|
|
286 |
].
|
|
287 |
].
|
|
288 |
(i > 1 and:[j > 1]) ifTrue:[
|
|
289 |
((string1 at:i) = (string2 at:(j-1))
|
|
290 |
and:[ (string1 at:i-1) = (string2 at:j) ]) ifTrue:[
|
|
291 |
pp := exchangeWeight.
|
|
292 |
].
|
|
293 |
].
|
|
294 |
].
|
|
295 |
]
|
|
296 |
].
|
|
297 |
|
|
298 |
prevRow := d at:i.
|
|
299 |
row := d at:(i + 1).
|
|
300 |
col := j + 1.
|
|
301 |
min := (prevRow at:j) + pp.
|
|
302 |
min := min min:( (row at:j) + insrtWeight).
|
|
303 |
min := min min:( (prevRow at:col) + deleteWeight).
|
|
304 |
|
|
305 |
row at:col put: min
|
|
306 |
]
|
|
307 |
].
|
|
308 |
|
|
309 |
^ (d at:(len1 + 1)) at:(len2 + 1)
|
|
310 |
|
|
311 |
"
|
|
312 |
'comptuer' levenshteinTo:'computer'
|
|
313 |
|
|
314 |
self levenshteinDistanceFrom:'comptuer' to:'computer'
|
2853
|
315 |
s:4 k:2 c:1 e:nil i:2 d:6
|
2214
|
316 |
"
|
2804
|
317 |
|
|
318 |
"Modified (comment): / 09-08-2012 / 05:40:08 / cg"
|
2214
|
319 |
! !
|
|
320 |
|
4938
|
321 |
!StringUtilities class methodsFor:'matching'!
|
|
322 |
|
|
323 |
stringMatchFunctionFor:aMultiPattern glob:searchForGlobPattern regex:searchForRegexPattern caseSensitive:searchIsCaseSensitive
|
4939
|
324 |
"generates a check function which - given a string - checks for a match.
|
|
325 |
The match-pattern argument aMultiPattern
|
|
326 |
may contain multiple patterns,
|
|
327 |
separated by ';' (for and-search) or '|' (for or-search).
|
|
328 |
If the pattern is invalid, nil is returned and an information-notification
|
4938
|
329 |
is signalled"
|
|
330 |
|
|
331 |
|combinator stringToSearchFor stringsToSearchFor checkFunction|
|
|
332 |
|
|
333 |
stringToSearchFor := aMultiPattern.
|
|
334 |
combinator := #conform:.
|
|
335 |
(stringToSearchFor includes:$|) ifTrue:[
|
|
336 |
stringsToSearchFor := stringToSearchFor asCollectionOfSubstringsSeparatedBy:$|.
|
|
337 |
combinator := #contains:.
|
|
338 |
] ifFalse:[
|
|
339 |
(stringToSearchFor includes:$;) ifTrue:[
|
|
340 |
stringsToSearchFor := stringToSearchFor asCollectionOfSubstringsSeparatedBy:$;.
|
|
341 |
] ifFalse:[
|
|
342 |
stringsToSearchFor := nil.
|
|
343 |
"/ lastStringToSearchFor := self stringOfCurrentSearchList.
|
|
344 |
"/ (lastStringToSearchFor notEmptyOrNil and:[stringToSearchFor startsWith:lastStringToSearchFor]) ifTrue:[
|
|
345 |
"/ searchRoot := AbstractBrowserItemPO new.
|
|
346 |
"/ self searchResultList do:[:each | searchRoot add:each treePO].
|
|
347 |
"/ self stringOfCurrentSearchList:stringToSearchFor.
|
|
348 |
"/ Transcript showCR:'fast'.
|
|
349 |
"/ ].
|
|
350 |
"/ self stringOfCurrentSearchList:stringToSearchFor.
|
|
351 |
]
|
|
352 |
].
|
|
353 |
|
4970
|
354 |
Error handle:[:ex |
|
|
355 |
self notify:('Invalid pattern: ',ex description).
|
4938
|
356 |
^ nil
|
|
357 |
] do:[
|
|
358 |
|lcString shortString regexPattern regexPatterns|
|
|
359 |
|
|
360 |
stringsToSearchFor isNil ifTrue:[
|
|
361 |
"/ single string search
|
|
362 |
|
|
363 |
(searchForGlobPattern and:[stringToSearchFor includesMatchCharacters]) ifTrue:[
|
|
364 |
|matchScanArray|
|
|
365 |
|
|
366 |
"/ verify if this is a valid pattern; if not, do not search
|
|
367 |
matchScanArray := String matchScanArrayFrom:stringToSearchFor escapeCharacter:String matchEscapeCharacter.
|
|
368 |
matchScanArray isNil ifTrue:[
|
|
369 |
self information:'Invalid search pattern'.
|
|
370 |
^ nil.
|
|
371 |
].
|
|
372 |
|
|
373 |
((stringToSearchFor startsWith:$*) and:[(stringToSearchFor copyFrom:2) includesMatchCharacters not]) ifTrue:[
|
|
374 |
shortString := (stringToSearchFor copyFrom:2).
|
|
375 |
searchIsCaseSensitive ifTrue:[
|
|
376 |
checkFunction := [:s | s endsWith:shortString].
|
|
377 |
] ifFalse:[
|
|
378 |
lcString := shortString asLowercase.
|
|
379 |
checkFunction := [:s | s asLowercase endsWith:lcString].
|
|
380 |
]
|
|
381 |
] ifFalse:[
|
|
382 |
((stringToSearchFor endsWith:$*) and:[(stringToSearchFor copyButLast:1) includesMatchCharacters not]) ifTrue:[
|
|
383 |
shortString := (stringToSearchFor copyButLast:1).
|
|
384 |
searchIsCaseSensitive ifTrue:[
|
|
385 |
checkFunction := [:s | s startsWith:shortString].
|
|
386 |
] ifFalse:[
|
|
387 |
lcString := shortString asLowercase.
|
|
388 |
checkFunction := [:s | s asLowercase startsWith:lcString].
|
|
389 |
]
|
|
390 |
] ifFalse:[
|
4970
|
391 |
regexPattern := searchIsCaseSensitive
|
|
392 |
ifTrue:[stringToSearchFor asRegex]
|
|
393 |
ifFalse:[stringToSearchFor asRegexIgnoringCase].
|
4938
|
394 |
checkFunction := [:s | regexPattern hasMatchesIn:s].
|
|
395 |
].
|
|
396 |
].
|
|
397 |
] ifFalse:[
|
|
398 |
searchForRegexPattern ifTrue:[
|
4970
|
399 |
regexPattern := searchIsCaseSensitive
|
|
400 |
ifTrue:[stringToSearchFor asRegex]
|
|
401 |
ifFalse:[stringToSearchFor asRegexIgnoringCase].
|
4938
|
402 |
checkFunction := [:s | regexPattern hasMatchesIn:s].
|
|
403 |
] ifFalse:[
|
|
404 |
checkFunction :=
|
|
405 |
[:s | s includesString:stringToSearchFor caseSensitive:searchIsCaseSensitive]
|
|
406 |
]
|
|
407 |
].
|
|
408 |
] ifFalse:[
|
|
409 |
"/ multi string search
|
|
410 |
|
|
411 |
searchForGlobPattern ifTrue:[
|
|
412 |
stringsToSearchFor do:[:eachStringToSearchFor |
|
|
413 |
|matchScanArray|
|
|
414 |
|
|
415 |
"/ verify if this is a valid pattern; if not, do not search
|
|
416 |
matchScanArray := String matchScanArrayFrom:eachStringToSearchFor escapeCharacter:String matchEscapeCharacter.
|
|
417 |
matchScanArray isNil ifTrue:[
|
|
418 |
self information:'Invalid search pattern'.
|
|
419 |
^ nil.
|
|
420 |
].
|
|
421 |
].
|
|
422 |
|
|
423 |
checkFunction :=
|
|
424 |
[:s |
|
|
425 |
stringsToSearchFor perform:combinator with:[:eachStringToSearchFor |
|
|
426 |
s includesMatchString:eachStringToSearchFor caseSensitive:searchIsCaseSensitive
|
|
427 |
]
|
|
428 |
].
|
|
429 |
] ifFalse:[
|
|
430 |
searchForRegexPattern ifTrue:[
|
|
431 |
regexPatterns := stringsToSearchFor collect:[:eachPatternString|
|
4970
|
432 |
searchIsCaseSensitive
|
|
433 |
ifTrue:[eachPatternString asRegex]
|
|
434 |
ifFalse:[eachPatternString asRegexIgnoringCase].
|
4938
|
435 |
].
|
|
436 |
checkFunction := [:s | regexPattern hasMatchesIn:s].
|
|
437 |
checkFunction :=
|
|
438 |
[:s |
|
|
439 |
regexPatterns perform:combinator with:[:eachRegexPattern |
|
|
440 |
eachRegexPattern hasMatchesIn:s
|
|
441 |
]
|
|
442 |
].
|
|
443 |
] ifFalse:[
|
|
444 |
checkFunction :=
|
|
445 |
[:s |
|
|
446 |
stringsToSearchFor perform:combinator with:[:eachStringToSearchFor |
|
|
447 |
s includesString:eachStringToSearchFor caseSensitive:searchIsCaseSensitive
|
|
448 |
]
|
|
449 |
]
|
|
450 |
]
|
|
451 |
].
|
|
452 |
].
|
|
453 |
].
|
|
454 |
^ checkFunction
|
|
455 |
|
|
456 |
"
|
|
457 |
|fn|
|
|
458 |
fn := self stringMatchFunctionFor:'aaa|bbb' glob:false regex:false caseSensitive:false.
|
|
459 |
fn value:' aaa '.
|
|
460 |
fn value:' aa '.
|
|
461 |
fn value:' bbb '.
|
|
462 |
fn value:' aa bb '.
|
4939
|
463 |
"
|
|
464 |
|
|
465 |
"
|
|
466 |
|fn|
|
4938
|
467 |
fn := self stringMatchFunctionFor:'aaa;bbb' glob:false regex:false caseSensitive:false.
|
|
468 |
fn value:' aaa '.
|
|
469 |
fn value:' aa '.
|
|
470 |
fn value:' bbb '.
|
|
471 |
fn value:' aa bb '.
|
|
472 |
fn value:' aaa bb '.
|
|
473 |
fn value:' aaa bbb '.
|
4939
|
474 |
"
|
4938
|
475 |
|
|
476 |
"
|
4939
|
477 |
|fn|
|
|
478 |
fn := self stringMatchFunctionFor:'aa*;bb*' glob:true regex:false caseSensitive:false.
|
|
479 |
fn value:' aaa '.
|
|
480 |
fn value:' aa '.
|
|
481 |
fn value:' bbb '.
|
|
482 |
fn value:' aa bb '.
|
|
483 |
fn value:' aaa bb '.
|
|
484 |
fn value:' aaa bbb '.
|
|
485 |
"
|
4938
|
486 |
|
|
487 |
"Created: / 02-05-2019 / 17:32:12 / Claus Gittinger"
|
4970
|
488 |
"Modified: / 30-05-2019 / 11:26:26 / Claus Gittinger"
|
4938
|
489 |
! !
|
|
490 |
|
3649
|
491 |
!StringUtilities class methodsFor:'queries'!
|
|
492 |
|
|
493 |
isUtilityClass
|
|
494 |
^ self == StringUtilities
|
|
495 |
! !
|
|
496 |
|
2214
|
497 |
!StringUtilities class methodsFor:'documentation'!
|
|
498 |
|
|
499 |
version
|
3649
|
500 |
^ '$Header$'
|
4939
|
501 |
!
|
|
502 |
|
|
503 |
version_CVS
|
|
504 |
^ '$Header$'
|
2214
|
505 |
! !
|
3113
|
506 |
|