JSDOC/Collapse.vala
[gnome.introspection-doc-generator] / JSDOC / Lang.vala
index ff65f5d..db32bc5 100644 (file)
@@ -84,10 +84,16 @@ namespace JSDOC {
             return this.whitespaceNames.get(str) != null;
         }
            public bool isSpaceC (char str) {
-            return this.whitespaceNames.get("" + str) != null;
+                       var s = str.to_string();
+            return this.whitespaceNames.get(s) != null;
         }
+        
         public bool isNewline (string str) {
             return this.newlineNames.get(str) != null;
+               }          
+        public bool isNewlineC (char str) {
+               var s =str.to_string();
+            return this.newlineNames.get(s) != null;
         }
            public bool isBoolean (string str) {
                        var ss = str.down();