Handle functions identified by regexp in nswrap.toml config
file. Handle inherited class methods.
This commit is contained in:
@@ -8,14 +8,19 @@ import (
|
||||
)
|
||||
|
||||
func main() {
|
||||
n1 := ns.StringWithUTF8String(ns.CharFromString("hi there"))
|
||||
n1 := ns.NSStringStringWithUTF8String(ns.CharFromString("hi there"))
|
||||
c1 := n1.CapitalizedString()
|
||||
gs := c1.UTF8String().String()
|
||||
fmt.Println(gs)
|
||||
n2 := ns.StringWithUTF8String(ns.CharFromString("hi world"))
|
||||
n3 := ns.StringWithUTF8String(ns.CharFromString("ok bye"))
|
||||
a := ns.ArrayWithObjects(n1,n2,n3)
|
||||
n2 := ns.NSStringStringWithUTF8String(ns.CharFromString("hi world"))
|
||||
n3 := ns.NSStringStringWithUTF8String(ns.CharFromString("ok bye"))
|
||||
a := ns.NSMutableArrayArrayWithObjects(n1,n2,n3)
|
||||
fmt.Println("Length(a) = ",a.Count())
|
||||
fmt.Println("is n2 in a?",a.ContainsObject(n2))
|
||||
fmt.Println("is c1 in a?",a.ContainsObject(c1))
|
||||
n4 := n2.SubstringFromIndex(3)
|
||||
n5 := n3.SubstringToIndex(4)
|
||||
a.AddObject(n4)
|
||||
a.AddObject(n5)
|
||||
fmt.Println("Length(a) = ",a.Count())
|
||||
}
|
||||
|
||||
@@ -3,6 +3,7 @@ InputFiles = [
|
||||
]
|
||||
Classes = [
|
||||
"NSArray",
|
||||
"NSMutableArray",
|
||||
"NSDictionary",
|
||||
"NSSet",
|
||||
"NSDate",
|
||||
@@ -14,6 +15,9 @@ Classes = [
|
||||
"NSScanner",
|
||||
"NSFileManager",
|
||||
]
|
||||
Functions = [
|
||||
"NSMakeRange",
|
||||
]
|
||||
SysImports = [ "Foundation/Foundation.h" ]
|
||||
Pragma = [ 'clang diagnostic ignored "-Wformat-security"' ]
|
||||
VaArgs = 32
|
||||
|
||||
Reference in New Issue
Block a user