public
Description: A library that wraps GLib Unicode manipulation methods to speed up ActiveSupport::Multibyte
Clone URL: git://github.com/Manfred/unichars.git
Rename Gunichars => Glib.
Manfred (author)
Sat Jul 05 10:25:18 -0700 2008
commit  97578808074b5b9c3d2b05e4436463748affb1c0
tree    86fc0cc5172a3d0369ce982c53d9ef0340d8b779
parent  39e110f60511dd11ef36fecc69d7525a737f07af
...
25
26
27
28
 
29
30
31
...
25
26
27
 
28
29
30
31
0
@@ -25,7 +25,7 @@ namespace :extconf do
0
 end
0
 
0
 namespace :extconf do
0
- extension = 'gunichars'
0
+ extension = 'glib'
0
   ext = "ext/#{extension}"
0
   ext_so = "#{ext}/#{extension}.#{Config::CONFIG['DLEXT']}"
0
   ext_files = FileList[
...
1
 
2
3
4
5
6
7
8
9
10
11
 
12
13
14
15
 
16
17
18
19
 
20
21
22
...
 
1
2
3
 
 
4
5
6
7
8
 
9
10
11
12
 
13
14
15
16
 
17
18
19
20
0
@@ -1,21 +1,19 @@
0
-require 'gunichars.so'
0
+require 'glib.so'
0
 
0
 class Unichars
0
- extend Gunichars
0
-
0
   def initialize(string)
0
     @wrapped_string = string
0
   end
0
   
0
   def size
0
- self.class.size(@wrapped_string)
0
+ Glib.utf8_size(@wrapped_string)
0
   end
0
   
0
   def upcase
0
- self.class.upcase(@wrapped_string)
0
+ Glib.utf8_upcase(@wrapped_string)
0
   end
0
   
0
   def downcase
0
- self.class.downcase(@wrapped_string)
0
+ Glib.utf8_downcase(@wrapped_string)
0
   end
0
 end
0
\ No newline at end of file
...
1
 
2
3
4
5
...
 
1
2
3
4
5
0
@@ -1,4 +1,4 @@
0
-$:.unshift(File.expand_path('../../ext/gunichars', __FILE__))
0
+$:.unshift(File.expand_path('../../ext/glib', __FILE__))
0
 $:.unshift(File.expand_path('../../lib', __FILE__))
0
 
0
 require 'test/spec'
0
\ No newline at end of file

Comments

    No one has commented yet.