u 0.5.0

This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
Files changed (59) hide show
  1. data/README +38 -0
  2. data/Rakefile +64 -0
  3. data/ext/encoding/character/utf-8/break.c +25 -0
  4. data/ext/encoding/character/utf-8/data/break.h +22931 -0
  5. data/ext/encoding/character/utf-8/data/character-tables.h +14358 -0
  6. data/ext/encoding/character/utf-8/data/compose.h +1607 -0
  7. data/ext/encoding/character/utf-8/data/decompose.h +10926 -0
  8. data/ext/encoding/character/utf-8/data/generate-unicode-data.rb +1070 -0
  9. data/ext/encoding/character/utf-8/decompose.c +444 -0
  10. data/ext/encoding/character/utf-8/depend +65 -0
  11. data/ext/encoding/character/utf-8/extconf.rb +67 -0
  12. data/ext/encoding/character/utf-8/private.c +62 -0
  13. data/ext/encoding/character/utf-8/private.h +51 -0
  14. data/ext/encoding/character/utf-8/properties.c +1056 -0
  15. data/ext/encoding/character/utf-8/rb_includes.h +19 -0
  16. data/ext/encoding/character/utf-8/rb_methods.h +49 -0
  17. data/ext/encoding/character/utf-8/rb_private.h +52 -0
  18. data/ext/encoding/character/utf-8/rb_utf_aref.c +111 -0
  19. data/ext/encoding/character/utf-8/rb_utf_aset.c +105 -0
  20. data/ext/encoding/character/utf-8/rb_utf_casecmp.c +24 -0
  21. data/ext/encoding/character/utf-8/rb_utf_chomp.c +114 -0
  22. data/ext/encoding/character/utf-8/rb_utf_chop.c +44 -0
  23. data/ext/encoding/character/utf-8/rb_utf_collate.c +13 -0
  24. data/ext/encoding/character/utf-8/rb_utf_count.c +30 -0
  25. data/ext/encoding/character/utf-8/rb_utf_delete.c +60 -0
  26. data/ext/encoding/character/utf-8/rb_utf_downcase.c +13 -0
  27. data/ext/encoding/character/utf-8/rb_utf_each_char.c +27 -0
  28. data/ext/encoding/character/utf-8/rb_utf_foldcase.c +13 -0
  29. data/ext/encoding/character/utf-8/rb_utf_hex.c +14 -0
  30. data/ext/encoding/character/utf-8/rb_utf_index.c +50 -0
  31. data/ext/encoding/character/utf-8/rb_utf_insert.c +48 -0
  32. data/ext/encoding/character/utf-8/rb_utf_internal_bignum.c +332 -0
  33. data/ext/encoding/character/utf-8/rb_utf_internal_bignum.h +12 -0
  34. data/ext/encoding/character/utf-8/rb_utf_internal_tr.c +142 -0
  35. data/ext/encoding/character/utf-8/rb_utf_internal_tr.h +41 -0
  36. data/ext/encoding/character/utf-8/rb_utf_justify.c +96 -0
  37. data/ext/encoding/character/utf-8/rb_utf_length.c +14 -0
  38. data/ext/encoding/character/utf-8/rb_utf_lstrip.c +41 -0
  39. data/ext/encoding/character/utf-8/rb_utf_normalize.c +51 -0
  40. data/ext/encoding/character/utf-8/rb_utf_oct.c +14 -0
  41. data/ext/encoding/character/utf-8/rb_utf_reverse.c +13 -0
  42. data/ext/encoding/character/utf-8/rb_utf_rindex.c +88 -0
  43. data/ext/encoding/character/utf-8/rb_utf_rstrip.c +51 -0
  44. data/ext/encoding/character/utf-8/rb_utf_squeeze.c +70 -0
  45. data/ext/encoding/character/utf-8/rb_utf_strip.c +27 -0
  46. data/ext/encoding/character/utf-8/rb_utf_to_i.c +25 -0
  47. data/ext/encoding/character/utf-8/rb_utf_tr.c +250 -0
  48. data/ext/encoding/character/utf-8/rb_utf_upcase.c +13 -0
  49. data/ext/encoding/character/utf-8/tables.h +38 -0
  50. data/ext/encoding/character/utf-8/unicode.c +319 -0
  51. data/ext/encoding/character/utf-8/unicode.h +216 -0
  52. data/ext/encoding/character/utf-8/utf.c +1334 -0
  53. data/lib/encoding/character/utf-8.rb +201 -0
  54. data/lib/u.rb +16 -0
  55. data/lib/u/string.rb +185 -0
  56. data/lib/u/version.rb +5 -0
  57. data/test/unit/u.rb +5 -0
  58. data/test/unit/u/string.rb +91 -0
  59. metadata +174 -0
metadata ADDED
@@ -0,0 +1,174 @@
1
+ --- !ruby/object:Gem::Specification
2
+ name: u
3
+ version: !ruby/object:Gem::Version
4
+ hash: 11
5
+ prerelease: false
6
+ segments:
7
+ - 0
8
+ - 5
9
+ - 0
10
+ version: 0.5.0
11
+ platform: ruby
12
+ authors:
13
+ - Nikolai Weibull
14
+ autorequire:
15
+ bindir: bin
16
+ cert_chain: []
17
+
18
+ date: 2011-03-21 00:00:00 +01:00
19
+ default_executable:
20
+ dependencies:
21
+ - !ruby/object:Gem::Dependency
22
+ name: lookout
23
+ prerelease: false
24
+ requirement: &id001 !ruby/object:Gem::Requirement
25
+ none: false
26
+ requirements:
27
+ - - ~>
28
+ - !ruby/object:Gem::Version
29
+ hash: 7
30
+ segments:
31
+ - 0
32
+ - 6
33
+ - 0
34
+ version: 0.6.0
35
+ type: :development
36
+ version_requirements: *id001
37
+ - !ruby/object:Gem::Dependency
38
+ name: yard
39
+ prerelease: false
40
+ requirement: &id002 !ruby/object:Gem::Requirement
41
+ none: false
42
+ requirements:
43
+ - - ~>
44
+ - !ruby/object:Gem::Version
45
+ hash: 7
46
+ segments:
47
+ - 0
48
+ - 6
49
+ - 0
50
+ version: 0.6.0
51
+ type: :development
52
+ version_requirements: *id002
53
+ description: "# U #\n\n\
54
+ U extends Ruby\xE2\x80\x99s support for Unicode. It provides an interface that can be\n\
55
+ used from both Ruby 1.8 and 1.9 and implements its methods completely\n\
56
+ separately from those in Ruby 1.9.\n\n\
57
+ ## Installation ##\n\n\
58
+ Install u with\n\n % gem install u\n\n\
59
+ ## Usage ##\n\n\
60
+ For now, take a look at the tests to see some examples of how to load the\n\
61
+ library and use the methods.\n\n\
62
+ It\xE2\x80\x99s basically the following:\n\n require 'u'\n\n a = '\xC3\xA4bc'\n a.u.upcase # \xE2\x87\x92 '\xC3\x84BC'\n a.upcase # \xE2\x87\x92 '\xC3\xA4BC'\n a # \xE2\x87\x92 '\xC3\xA4bc'\n a.u!.upcase # \xE2\x87\x92 '\xC3\x84BC'\n a.upcase # \xE2\x87\x92 '\xC3\x84BC'\n\n\
63
+ ## Future ##\n\n\
64
+ Currently, most of my time is spent at my day job and in my (again flourishing)\n\
65
+ private life. Please motivate me to spend time on this library by donating some\n\
66
+ of your money to this project. Yeah, I realize that requesting money to develop\n\
67
+ software is a bit, well, capitalistic of me. But please realize that I live in\n\
68
+ a capitalistic society and I need money to have other people give me the things\n\
69
+ that I need to continue living under the rules of said society. So, if you feel\n\
70
+ that this library has helped you out enough to warrant a reward, please PayPal\n\
71
+ a donation to now@bitwi.se. Thanks! Your support won\xE2\x80\x99t go unnoticed!\n"
72
+ email: now@bitwi.se
73
+ executables: []
74
+
75
+ extensions: []
76
+
77
+ extra_rdoc_files: []
78
+
79
+ files:
80
+ - ext/encoding/character/utf-8/break.c
81
+ - ext/encoding/character/utf-8/decompose.c
82
+ - ext/encoding/character/utf-8/private.c
83
+ - ext/encoding/character/utf-8/properties.c
84
+ - ext/encoding/character/utf-8/rb_utf_aref.c
85
+ - ext/encoding/character/utf-8/rb_utf_aset.c
86
+ - ext/encoding/character/utf-8/rb_utf_casecmp.c
87
+ - ext/encoding/character/utf-8/rb_utf_chomp.c
88
+ - ext/encoding/character/utf-8/rb_utf_chop.c
89
+ - ext/encoding/character/utf-8/rb_utf_collate.c
90
+ - ext/encoding/character/utf-8/rb_utf_count.c
91
+ - ext/encoding/character/utf-8/rb_utf_delete.c
92
+ - ext/encoding/character/utf-8/rb_utf_downcase.c
93
+ - ext/encoding/character/utf-8/rb_utf_each_char.c
94
+ - ext/encoding/character/utf-8/rb_utf_foldcase.c
95
+ - ext/encoding/character/utf-8/rb_utf_hex.c
96
+ - ext/encoding/character/utf-8/rb_utf_index.c
97
+ - ext/encoding/character/utf-8/rb_utf_insert.c
98
+ - ext/encoding/character/utf-8/rb_utf_internal_bignum.c
99
+ - ext/encoding/character/utf-8/rb_utf_internal_tr.c
100
+ - ext/encoding/character/utf-8/rb_utf_justify.c
101
+ - ext/encoding/character/utf-8/rb_utf_length.c
102
+ - ext/encoding/character/utf-8/rb_utf_lstrip.c
103
+ - ext/encoding/character/utf-8/rb_utf_normalize.c
104
+ - ext/encoding/character/utf-8/rb_utf_oct.c
105
+ - ext/encoding/character/utf-8/rb_utf_reverse.c
106
+ - ext/encoding/character/utf-8/rb_utf_rindex.c
107
+ - ext/encoding/character/utf-8/rb_utf_rstrip.c
108
+ - ext/encoding/character/utf-8/rb_utf_squeeze.c
109
+ - ext/encoding/character/utf-8/rb_utf_strip.c
110
+ - ext/encoding/character/utf-8/rb_utf_to_i.c
111
+ - ext/encoding/character/utf-8/rb_utf_tr.c
112
+ - ext/encoding/character/utf-8/rb_utf_upcase.c
113
+ - ext/encoding/character/utf-8/unicode.c
114
+ - ext/encoding/character/utf-8/utf.c
115
+ - ext/encoding/character/utf-8/data/break.h
116
+ - ext/encoding/character/utf-8/data/character-tables.h
117
+ - ext/encoding/character/utf-8/data/compose.h
118
+ - ext/encoding/character/utf-8/data/decompose.h
119
+ - ext/encoding/character/utf-8/private.h
120
+ - ext/encoding/character/utf-8/rb_includes.h
121
+ - ext/encoding/character/utf-8/rb_methods.h
122
+ - ext/encoding/character/utf-8/rb_private.h
123
+ - ext/encoding/character/utf-8/rb_utf_internal_bignum.h
124
+ - ext/encoding/character/utf-8/rb_utf_internal_tr.h
125
+ - ext/encoding/character/utf-8/tables.h
126
+ - ext/encoding/character/utf-8/unicode.h
127
+ - ext/encoding/character/utf-8/data/generate-unicode-data.rb
128
+ - ext/encoding/character/utf-8/extconf.rb
129
+ - ext/encoding/character/utf-8/depend
130
+ - lib/encoding/character/utf-8.rb
131
+ - lib/u/string.rb
132
+ - lib/u/version.rb
133
+ - lib/u.rb
134
+ - test/unit/u/string.rb
135
+ - test/unit/u.rb
136
+ - README
137
+ - Rakefile
138
+ has_rdoc: true
139
+ homepage: https://github.com/now/u
140
+ licenses: []
141
+
142
+ post_install_message:
143
+ rdoc_options: []
144
+
145
+ require_paths:
146
+ - ext
147
+ - lib
148
+ required_ruby_version: !ruby/object:Gem::Requirement
149
+ none: false
150
+ requirements:
151
+ - - ">="
152
+ - !ruby/object:Gem::Version
153
+ hash: 3
154
+ segments:
155
+ - 0
156
+ version: "0"
157
+ required_rubygems_version: !ruby/object:Gem::Requirement
158
+ none: false
159
+ requirements:
160
+ - - ">="
161
+ - !ruby/object:Gem::Version
162
+ hash: 3
163
+ segments:
164
+ - 0
165
+ version: "0"
166
+ requirements: []
167
+
168
+ rubyforge_project:
169
+ rubygems_version: 1.3.7
170
+ signing_key:
171
+ specification_version: 3
172
+ summary: "U extends Ruby\xE2\x80\x99s support for Unicode."
173
+ test_files: []
174
+