Data update
This commit is contained in:
parent
81fd053722
commit
52a6ef48dd
10248 changed files with 63654 additions and 6775 deletions
|
|
@ -0,0 +1,36 @@
|
|||
local fn Squeeze( string as CFStringRef, chr as CFStringRef ) as CFStringRef
|
||||
CFStringRef seq = concat(chr,chr)
|
||||
while ( fn StringContainsString( string, seq ) )
|
||||
string = fn StringByReplacingOccurrencesOfString( string, seq, chr )
|
||||
wend
|
||||
end fn = string
|
||||
|
||||
CFStringRef s
|
||||
|
||||
s = @"<<<The bell tolls loudly in the still night>>>"
|
||||
print len(s),s
|
||||
s = fn Squeeze( s, @"l" )
|
||||
print len(s),s
|
||||
|
||||
print
|
||||
|
||||
s = @"<<<A sudden breeze rattled the shutters>>>"
|
||||
print len(s),s
|
||||
s = fn Squeeze( s, @"t" )
|
||||
print len(s),s
|
||||
|
||||
print
|
||||
|
||||
s = @"<<<The fluffy bunny hopped across the green grass>>>"
|
||||
print len(s),s
|
||||
s = fn Squeeze( s, @"f" )
|
||||
print len(s),s
|
||||
|
||||
print
|
||||
|
||||
s = @"<<< I saw a massive balloon floating above the valley >>>"
|
||||
print len(s),s
|
||||
s = fn Squeeze( s, @"l" )
|
||||
print len(s),s
|
||||
|
||||
HandleEvents
|
||||
Loading…
Add table
Add a link
Reference in a new issue