@@ -72,24 +72,25 @@ func prepareStdlib(g *typeGraph) {
72
72
73
73
// String Manipulation
74
74
75
- "toString" : g .newSimpleFuncType (stringType , "a" ),
76
- "codepoint" : g .newSimpleFuncType (numberType , "str" ),
77
- "char" : g .newSimpleFuncType (stringType , "n" ),
78
- "substr" : g .newSimpleFuncType (stringType , "str" , "from" , "len" ),
79
- "findSubstr" : g .newSimpleFuncType (numberArrayType , "pat" , "str" ),
80
- "startsWith" : g .newSimpleFuncType (boolType , "a" , "b" ),
81
- "endsWith" : g .newSimpleFuncType (boolType , "a" , "b" ),
82
- "stripChars" : g .newSimpleFuncType (stringType , "str" , "chars" ),
83
- "lstripChars" : g .newSimpleFuncType (stringType , "str" , "chars" ),
84
- "rstripChars" : g .newSimpleFuncType (stringType , "str" , "chars" ),
85
- "split" : g .newSimpleFuncType (arrayOfString , "str" , "c" ),
86
- "splitLimit" : g .newSimpleFuncType (arrayOfString , "str" , "c" , "maxsplits" ),
87
- "strReplace" : g .newSimpleFuncType (stringType , "str" , "from" , "to" ),
88
- "asciiUpper" : g .newSimpleFuncType (stringType , "str" ),
89
- "asciiLower" : g .newSimpleFuncType (stringType , "str" ),
90
- "stringChars" : g .newSimpleFuncType (stringType , "str" ),
91
- "format" : g .newSimpleFuncType (stringType , "str" , "vals" ),
92
- "isEmpty" : g .newSimpleFuncType (boolType , "str" ),
75
+ "toString" : g .newSimpleFuncType (stringType , "a" ),
76
+ "codepoint" : g .newSimpleFuncType (numberType , "str" ),
77
+ "char" : g .newSimpleFuncType (stringType , "n" ),
78
+ "substr" : g .newSimpleFuncType (stringType , "str" , "from" , "len" ),
79
+ "findSubstr" : g .newSimpleFuncType (numberArrayType , "pat" , "str" ),
80
+ "startsWith" : g .newSimpleFuncType (boolType , "a" , "b" ),
81
+ "endsWith" : g .newSimpleFuncType (boolType , "a" , "b" ),
82
+ "stripChars" : g .newSimpleFuncType (stringType , "str" , "chars" ),
83
+ "lstripChars" : g .newSimpleFuncType (stringType , "str" , "chars" ),
84
+ "rstripChars" : g .newSimpleFuncType (stringType , "str" , "chars" ),
85
+ "split" : g .newSimpleFuncType (arrayOfString , "str" , "c" ),
86
+ "splitLimit" : g .newSimpleFuncType (arrayOfString , "str" , "c" , "maxsplits" ),
87
+ "strReplace" : g .newSimpleFuncType (stringType , "str" , "from" , "to" ),
88
+ "asciiUpper" : g .newSimpleFuncType (stringType , "str" ),
89
+ "asciiLower" : g .newSimpleFuncType (stringType , "str" ),
90
+ "stringChars" : g .newSimpleFuncType (stringType , "str" ),
91
+ "format" : g .newSimpleFuncType (stringType , "str" , "vals" ),
92
+ "isEmpty" : g .newSimpleFuncType (boolType , "str" ),
93
+ "equalsIgnoreCase" : g .newSimpleFuncType (boolType , "str1" , "str2" ),
93
94
// TODO(sbarzowski) Fix when they match the documentation
94
95
"escapeStringBash" : g .newSimpleFuncType (stringType , "str_" ),
95
96
"escapeStringDollars" : g .newSimpleFuncType (stringType , "str_" ),
0 commit comments