]> git.mdlowis.com Git - archive/carl.git/commitdiff
moved all generated utf files to a subdirectory
authorMike D. Lowis <mike.lowis@gentex.com>
Tue, 22 Sep 2015 20:23:21 +0000 (16:23 -0400)
committerMike D. Lowis <mike.lowis@gentex.com>
Tue, 22 Sep 2015 20:23:21 +0000 (16:23 -0400)
17 files changed:
source/utf/runetype/alphas.c [moved from source/utf/alphas.c with 100% similarity]
source/utf/runetype/controls.c [moved from source/utf/controls.c with 100% similarity]
source/utf/runetype/digits.c [moved from source/utf/digits.c with 100% similarity]
source/utf/runetype/lowers.c [moved from source/utf/lowers.c with 100% similarity]
source/utf/runetype/marks.c [moved from source/utf/marks.c with 100% similarity]
source/utf/runetype/numbers.c [moved from source/utf/numbers.c with 100% similarity]
source/utf/runetype/other.c [moved from source/utf/other.c with 100% similarity]
source/utf/runetype/otherletters.c [moved from source/utf/otherletters.c with 100% similarity]
source/utf/runetype/punctuation.c [moved from source/utf/punctuation.c with 100% similarity]
source/utf/runetype/spaces.c [moved from source/utf/spaces.c with 100% similarity]
source/utf/runetype/symbols.c [moved from source/utf/symbols.c with 100% similarity]
source/utf/runetype/titles.c [moved from source/utf/titles.c with 100% similarity]
source/utf/runetype/tolower.c [moved from source/utf/tolower.c with 100% similarity]
source/utf/runetype/totitle.c [moved from source/utf/totitle.c with 100% similarity]
source/utf/runetype/toupper.c [moved from source/utf/toupper.c with 100% similarity]
source/utf/runetype/uppers.c [moved from source/utf/uppers.c with 100% similarity]
tools/unicode.rb

index 5c13c37ae39a7dc2c5a534c82b98f62beb9e37e1..a309dbda394b6e84accde46a7fad7a17c9d88283 100755 (executable)
@@ -4,8 +4,7 @@ require 'fileutils'
 require 'stringio'
 
 Database  = "./tools/UnicodeData-8.0.0.txt"
-OutputDir = "./source/utf"
-TestFile  = "./tests/utf/test_unicodedata.c"
+OutputDir = "./source/utf/runetype"
 
 # Struct definition for representing a unicode character
 UnicodeChar = Struct.new(
@@ -151,23 +150,6 @@ def generate_to_table(type)
   end
 end
 
-def generate_test_file()
-    puts "Generating #{TestFile}"
-    File.open(TestFile, "w") do |f|
-        f.print("#include <atf.h>\n")
-        f.print("#include <carl.h>\n")
-        f.print("\nTEST_SUITE(UnicodeData) {\n")
-        $tests.each_pair do |codept,tests|
-            if codept < 250000
-                f.print("    TEST(Codepoint_#{codept.to_s(16)}) {\n")
-                tests.each {|t| f.print "        CHECK(#{t});\n" }
-                f.print("    }\n")
-            end
-        end
-        f.print("}\n")
-    end
-end
-
 #------------------------------------------------------------------------------
 
 # Read in the unicode character database and sort it into type classes
@@ -196,5 +178,4 @@ end
 generate_to_table(:tolower)
 generate_to_table(:toupper)
 generate_to_table(:totitle)
-#generate_test_file()