Initial data commit
This commit is contained in:
parent
72d218235f
commit
f23f22d71c
199087 changed files with 3378941 additions and 0 deletions
21
Task/Substring/FutureBasic/substring.basic
Normal file
21
Task/Substring/FutureBasic/substring.basic
Normal file
|
|
@ -0,0 +1,21 @@
|
|||
include "NSLog.incl"
|
||||
|
||||
void local fn DoIt
|
||||
CFStringRef string = @"abcdefghijklmnopqrstuvwxyz"
|
||||
|
||||
NSLog(@"%@",mid(string,3,6))
|
||||
|
||||
NSLog(@"%@",fn StringSubstringFromIndex( string, 10 ))
|
||||
|
||||
NSLog(@"%@",left(string,len(string)-1))
|
||||
|
||||
CFRange range = fn StringRangeOfString( string, @"r" )
|
||||
NSLog(@"%@",mid(string,range.location,6))
|
||||
|
||||
range = fn StringRangeOfString( string, @"pqr" )
|
||||
NSLog(@"%@",mid(string,range.location,7))
|
||||
end fn
|
||||
|
||||
fn DoIt
|
||||
|
||||
HandleEvents
|
||||
Loading…
Add table
Add a link
Reference in a new issue