Data commit
This commit is contained in:
parent
7387c8f97b
commit
cb5bb5e222
199093 changed files with 3378972 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