[gxml/gsoc2013: 18/69] Utils.vala: fix some errors, add Utils.vala to Makefile.am



commit aad45f48f1efb86d3568459c3fedc3a0a9577a4a
Author: Richard Schwarting <aquarichy gmail com>
Date:   Sat Jul 27 00:01:29 2013 -0400

    Utils.vala: fix some errors, add Utils.vala to Makefile.am

 gxml/Makefile.am |    1 +
 gxml/Utils.vala  |   10 +++++-----
 2 files changed, 6 insertions(+), 5 deletions(-)
---
diff --git a/gxml/Makefile.am b/gxml/Makefile.am
index 206e059..c8daee4 100644
--- a/gxml/Makefile.am
+++ b/gxml/Makefile.am
@@ -60,6 +60,7 @@ libgxml_la_SOURCES = \
        Text.vala \
        Serializable.vala \
        Serialization.vala \
+       Utils.vala \
        $(NULL)
 
 gxml.vala.stamp: $(libgxml_la_SOURCES)
diff --git a/gxml/Utils.vala b/gxml/Utils.vala
index 66ffc4f..e3e2333 100644
--- a/gxml/Utils.vala
+++ b/gxml/Utils.vala
@@ -21,12 +21,12 @@
  */
 
 namespace GXml {
-       internal class XmlUtils {
+       public class Utils {
                private static bool validate_name_start_char (unichar ch) {
                        // Check common ASCII characters
-                       if (('a' <= start && start <= 'z')
-                               || ('A' <= start && start <= 'Z')
-                               || start == ':' || start == '_') {
+                       if (('a' <= ch && ch <= 'z')
+                               || ('A' <= ch && ch <= 'Z')
+                               || ch == ':' || ch == '_') {
                                return true;
                        }
 
@@ -104,7 +104,7 @@ namespace GXml {
                 *
                 * For more, see: [[http://www.w3.org/TR/REC-xml/#NT-Name]]
                 */
-               internal bool validate_xml_name (string name) {
+               public static bool validate_xml_name (string name) {
                        int ci = 0;
                        unichar ch = 0;
 


[Date Prev][Date Next]   [Thread Prev][Thread Next]   [Thread Index] [Date Index] [Author Index]