unicode 0.1 → 0.1.1

Sign up to get free protection for your applications and to get access to all the features.
File without changes
File without changes
data/tools/README ADDED
@@ -0,0 +1,6 @@
1
+ The unidata.map is created from UnicodeData.txt and
2
+ CompositionExclusions.txt of Unicode 3.0.0.
3
+
4
+ To update unidata.map,
5
+
6
+ ruby mkunidata.rb UnicodeData.txt CompositionExclusions.txt > unidata.map
File without changes
File without changes
File without changes
File without changes
File without changes
@@ -115,6 +115,10 @@ WStr_allocWithUTF8(WString* s, const char* in)
115
115
  int rest = 0;
116
116
 
117
117
  WStr_alloc(s);
118
+
119
+ if (in == 0)
120
+ return s;
121
+
118
122
  for (i = 0; in[i] != '\0'; i++) {
119
123
  unsigned char c = in[i];
120
124
  if (c >= 128 && c < 192) {
File without changes
metadata CHANGED
@@ -1,47 +1,71 @@
1
1
  --- !ruby/object:Gem::Specification
2
- rubygems_version: 0.8.10
3
- specification_version: 1
4
2
  name: unicode
5
3
  version: !ruby/object:Gem::Version
6
- version: "0.1"
7
- date: 2005-08-13
8
- summary: Unicode normalization library.
9
- require_paths:
10
- - "."
11
- email: yoshidam@yoshidam.net
12
- homepage: http://www.yoshidam.net/Ruby.html#unicode
13
- rubyforge_project:
14
- description:
4
+ prerelease: false
5
+ segments:
6
+ - 0
7
+ - 1
8
+ - 1
9
+ version: 0.1.1
10
+ platform: ruby
11
+ authors:
12
+ - Yoshida Masato
15
13
  autorequire:
16
- default_executable:
17
14
  bindir: bin
18
- has_rdoc: false
19
- required_ruby_version: !ruby/object:Gem::Version::Requirement
20
- requirements:
21
- -
22
- - ">"
23
- - !ruby/object:Gem::Version
24
- version: 0.0.0
25
- version:
26
- platform: ruby
27
- authors: []
28
- files:
29
- - bin/mkunidata.rb
30
- - ext/ustring.c
31
- - ext/ustring.h
32
- - ext/unicode.c
33
- - ext/wstring.c
34
- - ext/wstring.h
35
- - ext/extconf.rb
36
- - ext/unidata.map
37
- - test/test.rb
38
- - README
39
- test_files: []
40
- rdoc_options: []
41
- extra_rdoc_files:
42
- - README
15
+ cert_chain: []
16
+
17
+ date: 2005-08-13 00:00:00 +02:00
18
+ default_executable:
19
+ dependencies: []
20
+
21
+ description:
22
+ email: yoshidam@yoshidam.net
43
23
  executables: []
24
+
44
25
  extensions:
45
- - ext/extconf.rb
26
+ - extconf.rb
27
+ extra_rdoc_files:
28
+ - README
29
+ files:
30
+ - extconf.rb
31
+ - unicode.c
32
+ - ustring.c
33
+ - ustring.h
34
+ - wstring.c
35
+ - wstring.h
36
+ - README
37
+ - test.rb
38
+ - tools/mkunidata.rb
39
+ - tools/README
40
+ - unidata.map
41
+ has_rdoc: true
42
+ homepage: http://www.yoshidam.net/Ruby.html#unicode
43
+ licenses: []
44
+
45
+ post_install_message:
46
+ rdoc_options: []
47
+
48
+ require_paths: .
49
+ required_ruby_version: !ruby/object:Gem::Requirement
50
+ requirements:
51
+ - - ">="
52
+ - !ruby/object:Gem::Version
53
+ segments:
54
+ - 0
55
+ version: "0"
56
+ required_rubygems_version: !ruby/object:Gem::Requirement
57
+ requirements:
58
+ - - ">="
59
+ - !ruby/object:Gem::Version
60
+ segments:
61
+ - 0
62
+ version: "0"
46
63
  requirements: []
47
- dependencies: []
64
+
65
+ rubyforge_project:
66
+ rubygems_version: 1.3.6
67
+ signing_key:
68
+ specification_version: 3
69
+ summary: Unicode normalization library.
70
+ test_files: []
71
+