ABC problem: Difference between revisions
m
→{{header|FutureBasic}}
Line 4,518:
include "NSLog.incl"
local fn
NSUInteger
CFMutableArrayRef blocks
▲ CFStringRef result = @"YES"
CFStringRef
NSUInteger length = fn StringLength( cfStr )
for i = 0 to length - 1
for j = 0 to count - 1
CFStringRef
CFStringRef compareStr = fn ArrayObjectAtIndex( blocks, j )
if
cFinal = fn StringByAppendingString( cFinal, testStr1 ) : MutableArrayReplaceObjectAtIndex( blocks, @" ", j ) : exit for
end
if (
cFinal = fn StringByAppendingString( cFinal, testStr2 ) : MutableArrayReplaceObjectAtIndex( blocks, @" ", j ) : exit for
end if
next
next
if fn StringIsEqual( cFinal, cfStr ) == YES then result = @"YES"
end fn = result
NSLog( @"a: Can blocks spell? %@", fn CanBlocksSpell( @"a" ) )
NSLog( @"
NSLog( @"
NSLog( @"
NSLog( @"
NSLog( @"
NSLog( @"
HandleEvents
|