locale 0.9.0

Sign up to get free protection for your applications and to get access to all the features.
Files changed (87) hide show
  1. data/COPYING +55 -0
  2. data/ChangeLog +113 -0
  3. data/README +100 -0
  4. data/Rakefile +77 -0
  5. data/doc/classes/Locale/Driver.html +375 -0
  6. data/doc/classes/Locale/Driver/CGI.html +502 -0
  7. data/doc/classes/Locale/Driver/Env.html +440 -0
  8. data/doc/classes/Locale/Driver/JRuby.html +390 -0
  9. data/doc/classes/Locale/Driver/Posix.html +431 -0
  10. data/doc/classes/Locale/Driver/Win32.html +398 -0
  11. data/doc/classes/Locale/Driver/Win32Table.html +356 -0
  12. data/doc/classes/Locale/Info.html +586 -0
  13. data/doc/classes/Locale/Info/Language.html +764 -0
  14. data/doc/classes/Locale/Info/Region.html +470 -0
  15. data/doc/classes/Locale/Tag/Cldr.html +547 -0
  16. data/doc/classes/Locale/Tag/Common.html +655 -0
  17. data/doc/classes/Locale/Tag/Illegular.html +424 -0
  18. data/doc/classes/Locale/Tag/Posix.html +612 -0
  19. data/doc/classes/Locale/Tag/Rfc.html +610 -0
  20. data/doc/classes/Locale/Tag/Simple.html +684 -0
  21. data/doc/classes/Locale/TagList.html +783 -0
  22. data/doc/classes/Locale/Util.html +476 -0
  23. data/doc/classes/Locale/Util/Memoizable.html +356 -0
  24. data/doc/created.rid +1 -0
  25. data/doc/files/ChangeLog.html +497 -0
  26. data/doc/files/README.html +525 -0
  27. data/doc/files/lib/locale/driver/cgi_rb.html +342 -0
  28. data/doc/files/lib/locale/driver/env_rb.html +354 -0
  29. data/doc/files/lib/locale/driver/jruby_rb.html +359 -0
  30. data/doc/files/lib/locale/driver/posix_rb.html +349 -0
  31. data/doc/files/lib/locale/driver/win32_rb.html +359 -0
  32. data/doc/files/lib/locale/driver/win32_table_rb.html +342 -0
  33. data/doc/files/lib/locale/info/language_rb.html +353 -0
  34. data/doc/files/lib/locale/info/region_rb.html +353 -0
  35. data/doc/files/lib/locale/info_rb.html +354 -0
  36. data/doc/files/lib/locale/tag/cldr_rb.html +342 -0
  37. data/doc/files/lib/locale/tag/common_rb.html +342 -0
  38. data/doc/files/lib/locale/tag/illegular_rb.html +349 -0
  39. data/doc/files/lib/locale/tag/posix_rb.html +342 -0
  40. data/doc/files/lib/locale/tag/rfc_rb.html +342 -0
  41. data/doc/files/lib/locale/tag/simple_rb.html +349 -0
  42. data/doc/files/lib/locale/tag_rb.html +374 -0
  43. data/doc/files/lib/locale/taglist_rb.html +342 -0
  44. data/doc/files/lib/locale/util/memoizable_rb.html +360 -0
  45. data/doc/files/lib/locale/version_rb.html +342 -0
  46. data/doc/files/lib/locale_rb.html +379 -0
  47. data/doc/fr_class_index.html +20 -0
  48. data/doc/fr_file_index.html +23 -0
  49. data/doc/fr_method_index.html +80 -0
  50. data/doc/index.html +1 -0
  51. data/doc/rdoc-style.css +320 -0
  52. data/lib/locale.rb +248 -0
  53. data/lib/locale/data/languages.tab.gz +0 -0
  54. data/lib/locale/data/regions.tab.gz +0 -0
  55. data/lib/locale/driver/cgi.rb +132 -0
  56. data/lib/locale/driver/env.rb +64 -0
  57. data/lib/locale/driver/jruby.rb +53 -0
  58. data/lib/locale/driver/posix.rb +49 -0
  59. data/lib/locale/driver/win32.rb +61 -0
  60. data/lib/locale/driver/win32_table.rb +298 -0
  61. data/lib/locale/info.rb +12 -0
  62. data/lib/locale/info/language.rb +134 -0
  63. data/lib/locale/info/region.rb +74 -0
  64. data/lib/locale/tag.rb +36 -0
  65. data/lib/locale/tag/cldr.rb +93 -0
  66. data/lib/locale/tag/common.rb +122 -0
  67. data/lib/locale/tag/illegular.rb +38 -0
  68. data/lib/locale/tag/posix.rb +97 -0
  69. data/lib/locale/tag/rfc.rb +106 -0
  70. data/lib/locale/tag/simple.rb +145 -0
  71. data/lib/locale/taglist.rb +93 -0
  72. data/lib/locale/util/memoizable.rb +76 -0
  73. data/lib/locale/version.rb +12 -0
  74. data/samples/cgi/README +20 -0
  75. data/samples/cgi/cookie.cgi +62 -0
  76. data/samples/cgi/http.rb +52 -0
  77. data/samples/cgi/index.cgi +90 -0
  78. data/samples/cgi/locale.css +115 -0
  79. data/samples/sample_1.rb +25 -0
  80. data/samples/sample_info.rb +6 -0
  81. data/setup.rb +1585 -0
  82. data/test/test_detect_cgi.rb +179 -0
  83. data/test/test_detect_general.rb +159 -0
  84. data/test/test_info.rb +28 -0
  85. data/test/test_tag.rb +1183 -0
  86. data/test/test_thread.rb +37 -0
  87. metadata +162 -0
@@ -0,0 +1,356 @@
1
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Module: Locale::Driver::Win32Table</title><link type="text/css" href="../../.././rdoc-style.css" media="screen" rel="stylesheet"/><script type="text/javascript">
2
+ // Allison template
3
+ // Copyright 2007, 2008 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.
4
+
5
+ var href_base = '../../.././rdoc-style.css'.replace(/(.*\/).*/, '$1'); // inline js is good for something
6
+
7
+ function $(id) {
8
+ if (document.getElementById)
9
+ elem = document.getElementById(id);
10
+ else if ( document.all )
11
+ elem = eval("document.all." + id);
12
+ else
13
+ return false;
14
+ return elem;
15
+ }
16
+
17
+ function toggle(id) {
18
+ elem = $(id);
19
+ elemStyle = elem.style;
20
+ if (elemStyle.display == "block") {
21
+ elemStyle.display = "none"
22
+ } else {
23
+ elemStyle.display = "block"
24
+ }
25
+ return true;
26
+ }
27
+
28
+ function toggleText(id) {
29
+ elem = $(id)
30
+ if (m = elem.innerHTML.match(/(Hide)(.*)/)) {
31
+ elem.innerHTML = "Show" + m[2];
32
+ } else if (m = elem.innerHTML.match(/(Show)(.*)/)) {
33
+ elem.innerHTML = "Hide" + m[2];
34
+ }
35
+ return true;
36
+ }
37
+
38
+ function span(s, klass) {
39
+ return '<span class="' + klass + '">' + s + '</span>';
40
+ }
41
+
42
+ function highlightSymbols() {
43
+ pres = document.getElementsByTagName('pre');
44
+ for(var i = 0; i < pres.length; i++) {
45
+ pre = pres[i];
46
+ spans = pre.getElementsByTagName('span');
47
+ for(var k = 0; k < spans.length; k++) {
48
+ span = spans[k];
49
+ if (span.className.match(/ruby-identifier/)) {
50
+ if (span.innerHTML.match(/^:/)) {
51
+ span.className += " ruby-symbol";
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+
58
+ function hasClass(obj) {
59
+ var result = false;
60
+ if (obj.getAttributeNode("class") != null) {
61
+ result = obj.getAttributeNode("class").value;
62
+ }
63
+ return result;
64
+ }
65
+
66
+ function stripe() {
67
+ var even = true;
68
+ var color = "#e4ebed";
69
+ var tables = document.getElementsByTagName('table');
70
+ if (tables.length == 0) { return; }
71
+ for (var h = 0; h < tables.length; h++) {
72
+ var trs = tables[h].getElementsByTagName("tr");
73
+ for (var i = 0; i < trs.length; i++) {
74
+ var tds = trs[i].getElementsByTagName("td");
75
+ for (var j = 0; j < tds.length; j++) {
76
+ if (hasClass(tds[j]) != "first") {
77
+ var mytd = tds[j];
78
+ if (even) {
79
+ mytd.style.backgroundColor = color;
80
+ }
81
+ }
82
+ }
83
+ even = ! even;
84
+ }
85
+ }
86
+ }
87
+
88
+ function ajaxGet(url) {
89
+ url = (href_base + url).replace('/./', '/')
90
+ var req = false;
91
+
92
+ if (window.ActiveXObject) {
93
+ try {
94
+ // stupid hack because IE7 disables local Ajax with the native xmlhttprequest object
95
+ // for security purposes. Yet ActiveX still works. Thanks, Microsoft. I hate you. Die.
96
+ req = new ActiveXObject("MSXML2.XMLHTTP.3.0");
97
+ } catch (e) {
98
+ try {
99
+ /* IE 6 and maybe 5, don't know, don't care */
100
+ req = new ActiveXObject("Msxml2.XMLHTTP");
101
+ } catch (e) {
102
+ try {
103
+ req = new ActiveXObject("Microsoft.XMLHTTP");
104
+ } catch (e) {
105
+ req = false;
106
+ }
107
+ }
108
+ }
109
+ }
110
+
111
+ /* real browsers */
112
+ if (!req && window.XMLHttpRequest) {
113
+ try {
114
+ req = new XMLHttpRequest();
115
+ } catch (e) {
116
+ req = false;
117
+ }
118
+ }
119
+
120
+ if (req) {
121
+ req.open('GET', url, false);
122
+ req.send(null);
123
+ return req.responseText;
124
+ } else {
125
+ return "Ajax error";
126
+ }
127
+ }
128
+
129
+
130
+ function addEvent(elm, evType, fn, useCapture) {
131
+ if (elm.addEventListener) {
132
+ elm.addEventListener(evType, fn, useCapture);
133
+ return true;
134
+ } else if (elm.attachEvent) {
135
+ var r = elm.attachEvent('on' + evType, fn);
136
+ return r;
137
+ } else {
138
+ elm['on' + evType] = fn;
139
+ }
140
+ }
141
+
142
+ function insertIndices() {
143
+ pages = ["class", "file", "method"]
144
+ for (x in pages) {
145
+ $(pages[x]).innerHTML += ajaxGet('fr_' + pages[x] + '_index.html').replace(/(href=")/g, '$1' + href_base);
146
+ }
147
+ /* mouseoverify method links */
148
+ links = $('method').getElementsByTagName('a');
149
+ for (var x = 0; x < links.length; x++) {
150
+ if (m = links[x].innerHTML.match(/(.*)\s\((.*)\)/)) {
151
+ links[x].innerHTML = m[1] + '<br>';
152
+ links[x].title = m[2];
153
+ }
154
+ }
155
+ /* this is stupid */
156
+ $('class').style.display = "block";
157
+ $('file').style.display = "block";
158
+
159
+ /* has to be here because IE7 does not guarantee the onLoad callback order */
160
+ abbreviateIndicesInner(["class", "file"], 25, "a");
161
+ /* same, linkTitle() depends on the class link list */
162
+ linkTitle();
163
+ }
164
+
165
+ function abbreviateIndices() {
166
+ var ids = ["defined_in", "child_of", "includes", "requires", "method", "methods"];
167
+ abbreviateIndicesInner(ids, 25, 'a');
168
+ abbreviateIndicesInner(ids, 25, 'span');
169
+ }
170
+
171
+ function abbreviateIndicesInner(indices, amount, tag) {
172
+ for (var x = 0; x < indices.length; x++) {
173
+ var the_index = $(indices[x]);
174
+ if (the_index) {
175
+ links = the_index.getElementsByTagName(tag);
176
+ for (var y = 0; y < links.length; y++) {
177
+ var link = links[y];
178
+ if (link.getElementsByTagName('span').length == 0 && link.getElementsByTagName('a').length == 0) {
179
+ // avoid nesting
180
+ link.innerHTML = link.innerHTML.replace(/<br>|\n/gi, '');
181
+ link.title = link.innerHTML;
182
+ link.innerHTML = abbreviate(link.innerHTML, amount) + '<br>';
183
+ }
184
+ }
185
+ }
186
+ }
187
+ }
188
+
189
+ function linkTitle() {
190
+
191
+ /* grab the correct title element from the index */
192
+ var index_page = ajaxGet('index.html');
193
+ title_text = index_page.match(/<title>(.*)<\/title>/m)[1];
194
+ document.title = title_text + " - " + document.title;
195
+ var p = $('header').getElementsByTagName('p')[0]
196
+ if (p.innerHTML.match(/^\s*$/)) {
197
+ p.innerHTML = title_text;
198
+ } else {
199
+ p.innerHTML = title_text + ": " + p.innerHTML;
200
+ }
201
+
202
+ /* set the link properly */
203
+ title_link = index_page.match(/<a\s+href="(.*?)"/)[1];
204
+ var element = $('title');
205
+ var item_type = "";
206
+ var item_name = "";
207
+ if (m = element.innerHTML.match(/(Class:|Module:|File:)\s*(.*)/)) {
208
+ item_type = m[1];
209
+ item_name = m[2];
210
+ } else {
211
+ item_name = element.innerHTML;
212
+ }
213
+ element.innerHTML = '<a href="' + href_base + title_link + '">' + item_type + " " + abbreviate(item_name, 45) + '</a>';
214
+ element.getElementsByTagName('a')[0].title = item_name
215
+
216
+ /* breadcrumb navigation */
217
+ items = item_name.split("::");
218
+ items_new = item_name.split("::");
219
+ file_links = $('class').getElementsByTagName('a');
220
+ for (var x = 0; x < items.length - 1; x++ ){
221
+ var item = items[x];
222
+ link = ("/classes/" + items.slice(0,x).join("/") + "/" + item + ".html").replace('//', '/');
223
+ regex = new RegExp(RegExp.escape(link) + '$');
224
+ for (var y = 0; y < file_links.length; y++) {
225
+ if (file_links[y].href.match(regex)) {
226
+ items_new[x] = '<a href="' + href_base + link + '">' + item + '</a>';
227
+ break;
228
+ }
229
+ }
230
+ }
231
+ $('item_name').innerHTML = item_type + ' ' + items_new.join(" :: ");
232
+ }
233
+
234
+ function abbreviate(s, size) {
235
+ while (s.length > size) {
236
+ var old_s = s;
237
+ s = s.replace(/\s|\n/mg, '');
238
+ s = s.replace(/([A-Z])[a-z]+/m, '$1');
239
+ if (!s || old_s == s) {
240
+ return "..." + s.substring(s.length - size, s.length);
241
+ }
242
+ }
243
+ return s;
244
+ }
245
+
246
+ function disableSubmit(event) {
247
+ var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
248
+ if (keyCode == 13) {
249
+ return false;
250
+ } else {
251
+ return true;
252
+ }
253
+ }
254
+
255
+ function filterList(id, s, event) {
256
+
257
+ /* some weak escaping */
258
+ s = s.replace(/[^\w\d\.\_\-\/\:\=\[\]\?\!]/g, '');
259
+ s = RegExp.escape(s);
260
+
261
+ var show_all = false;
262
+ if (s.match(/^\s*$/)) {
263
+ show_all = true;
264
+ }
265
+
266
+ links = $(id).getElementsByTagName('a')
267
+ regex = new RegExp(s, 'i');
268
+
269
+ for (var x = 0; x < links.length; x++) {
270
+ var link = links[x];
271
+ if (show_all) {
272
+ link.style.display = 'inline';
273
+ } else {
274
+ if (link.innerHTML.match(regex)) {
275
+ link.style.display = 'inline';
276
+ } else {
277
+ link.style.display = 'none';
278
+ }
279
+ }
280
+ }
281
+ return true;
282
+ }
283
+
284
+ RegExp.escape = function(text) {
285
+ if (!arguments.callee.sRE) {
286
+ var specials = ['/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\'];
287
+ arguments.callee.sRE = new RegExp(
288
+ '(\\' + specials.join('|\\') + ')', 'g'
289
+ );
290
+ }
291
+ return text.replace(arguments.callee.sRE, '\\$1');
292
+ }
293
+
294
+ function hacks() {
295
+ // show the spacer if necessary,
296
+ divs = document.getElementsByTagName('div');
297
+ for(var x = 0; x < divs.length; x++) {
298
+ if (divs[x].className && divs[x].className.match(/top/)) {
299
+ document.getElementById('spacer').style.display = 'block';
300
+ }
301
+ }
302
+ // remove extra colons from tables
303
+ tds = document.getElementsByTagName('td');
304
+ for(var x = 0; x < tds.length; x++) {
305
+ str = tds[x].innerHTML
306
+ if (str.charAt(str.length - 1) == ":") {
307
+ tds[x].innerHTML = str.slice(0, str.length - 1)
308
+ }
309
+ }
310
+ }
311
+
312
+ addEvent(window, 'load', insertIndices, false);
313
+ addEvent(window, 'load', abbreviateIndices, false);
314
+ addEvent(window, 'load', stripe, false);
315
+ addEvent(window, 'load', highlightSymbols, false);
316
+ addEvent(window, 'load', hacks, false);
317
+ </script></head><body><div id="container"><div class="curve" id="preheader_curve_0"></div><div class="curve" id="preheader_curve_1"></div><div class="curve" id="preheader_curve_2"></div><div class="curve" id="preheader_curve_3"></div><div class="curve" id="preheader_curve_4"></div><div class="curve" id="preheader_curve_5"></div><div id="header"><p>
318
+ </p><span><h1 id="title">
319
+ Module: Locale::Driver::Win32Table
320
+ </h1></span>
321
+ </div><div class="clear"></div><div id="left">
322
+
323
+ <div class="navigation darker top" id="defined_in"><h3>Defined in</h3>
324
+
325
+ <a href="../../../files/lib/locale/driver/win32_table_rb.html">lib/locale/driver/win32_table.rb</a>
326
+
327
+ </div>
328
+
329
+
330
+
331
+ <div id="spacer"></div><div class="navigation darker index" id="class_wrapper"><div class="list_header"><h3>All classes</h3></div><div class="list_header_link"><a onclick="toggle('class'); toggleText('class_link'); return false;" href="#" id="class_link">Hide...</a></div><div class="clear"></div><div id="class"><form><label for="filter_class">Filter:&nbsp;&nbsp;</label><input type="text" onKeyUp="return filterList('class', this.value, event);" onKeyPress="return disableSubmit(event);" id="filter_class"></input></form></div></div><div class="navigation darker index" id="file_wrapper"><div class="list_header"><h3>All files</h3></div><div class="list_header_link"><a onclick="toggle('file'); toggleText('file_link'); return false;" href="#" id="file_link">Hide...</a></div><div class="clear"></div><div id="file"><form><label for="filter_file">Filter:&nbsp;&nbsp;</label><input type="text" onKeyUp="return filterList('file', this.value, event);" onKeyPress="return disableSubmit(event);" id="filter_file"></input></form></div></div><div class="navigation darker index" id="method_wrapper"><div class="list_header"><h3>All methods</h3></div><div class="list_header_link"><a onclick="toggle('method'); toggleText('method_link'); return false;" href="#" id="method_link">Show...</a></div><div class="clear"></div><div id="method"><form><label for="filter_method">Filter:&nbsp;&nbsp;</label><input type="text" onKeyUp="return filterList('method', this.value, event);" onKeyPress="return disableSubmit(event);" id="filter_method"></input></form></div></div></div><div id="content">
332
+ <h1 id="item_name">Module: Locale::Driver::Win32Table</h1>
333
+
334
+
335
+
336
+
337
+
338
+ <p></p>
339
+
340
+
341
+ <h1>Constants</h1><p><table><tr><th>Name</th><th>Value</th></tr>
342
+ <tr>
343
+ <td class="highlight">LocaleTable</td>
344
+
345
+ <td class="normal">[ [0x0036,&quot;af&quot;,&quot;CP1252&quot;], [0x0436,&quot;af-ZA&quot;,&quot;CP1252&quot;], [0x001C,&quot;sq&quot;,&quot;CP1250&quot;], [0x041C,&quot;sq-AL&quot;,&quot;CP1250&quot;], [0x0484,&quot;gsw-FR&quot;,&quot;CP1252&quot;], [0x045E,&quot;am-ET&quot;,&quot;UNICODE&quot;], [0x0001,&quot;ar&quot;,&quot;CP1256&quot;], [0x1401,&quot;ar-DZ&quot;,&quot;CP1256&quot;], [0x3C01,&quot;ar-BH&quot;,&quot;CP1256&quot;], [0x0C01,&quot;ar-EG&quot;,&quot;CP1256&quot;], [0x0801,&quot;ar-IQ&quot;,&quot;CP1256&quot;], [0x2C01,&quot;ar-JO&quot;,&quot;CP1256&quot;], [0x3401,&quot;ar-KW&quot;,&quot;CP1256&quot;], [0x3001,&quot;ar-LB&quot;,&quot;CP1256&quot;], [0x1001,&quot;ar-LY&quot;,&quot;CP1256&quot;], [0x1801,&quot;ar-MA&quot;,&quot;CP1256&quot;], [0x2001,&quot;ar-OM&quot;,&quot;CP1256&quot;], [0x4001,&quot;ar-QA&quot;,&quot;CP1256&quot;], [0x0401,&quot;ar-SA&quot;,&quot;CP1256&quot;], [0x2801,&quot;ar-SY&quot;,&quot;CP1256&quot;], [0x1C01,&quot;ar-TN&quot;,&quot;CP1256&quot;], [0x3801,&quot;ar-AE&quot;,&quot;CP1256&quot;], [0x2401,&quot;ar-YE&quot;,&quot;CP1256&quot;], [0x002B,&quot;hy&quot;,&quot;UNICODE&quot;], [0x042B,&quot;hy-AM&quot;,&quot;UNICODE&quot;], [0x044D,&quot;as-IN&quot;,&quot;UNICODE&quot;], [0x002C,&quot;az&quot;,&quot;CP1254&quot;], [0x082C,&quot;az-Cyrl-AZ&quot;,&quot;CP1251&quot;], [0x042C,&quot;az-Latn-AZ&quot;,&quot;CP1254&quot;], [0x046D,&quot;ba-RU&quot;,&quot;CP1251&quot;], [0x002D,&quot;eu&quot;,&quot;CP1252&quot;], [0x042D,&quot;eu-ES&quot;,&quot;CP1252&quot;], [0x0023,&quot;be&quot;,&quot;CP1251&quot;], [0x0423,&quot;be-BY&quot;,&quot;CP1251&quot;], [0x0845,&quot;bn-BD&quot;,&quot;UNICODE&quot;], [0x0445,&quot;bn-IN&quot;,&quot;UNICODE&quot;], [0x201A,&quot;bs-Cyrl-BA&quot;,&quot;CP1251&quot;], [0x141A,&quot;bs-Latn-BA&quot;,&quot;CP1250&quot;], [0x047E,&quot;br-FR&quot;,&quot;CP1252&quot;], [0x0002,&quot;bg&quot;,&quot;CP1251&quot;], [0x0402,&quot;bg-BG&quot;,&quot;CP1251&quot;], [0x0003,&quot;ca&quot;,&quot;CP1252&quot;], [0x0403,&quot;ca-ES&quot;,&quot;CP1252&quot;], [0x0C04,&quot;zh-HK&quot;,&quot;CP950&quot;], [0x1404,&quot;zh-MO&quot;,&quot;CP950&quot;], [0x0804,&quot;zh-CN&quot;,&quot;CP936&quot;], [0x0004,&quot;zh-Hans&quot;,&quot;CP936&quot;], [0x1004,&quot;zh-SG&quot;,&quot;CP936&quot;], [0x0404,&quot;zh-TW&quot;,&quot;CP950&quot;], [0x7C04,&quot;zh-Hant&quot;,&quot;CP950&quot;], [0x0483,&quot;co-FR&quot;,&quot;CP1252&quot;], [0x001A,&quot;hr&quot;,&quot;CP1250&quot;], [0x041A,&quot;hr-HR&quot;,&quot;CP1250&quot;], [0x101A,&quot;hr-BA&quot;,&quot;CP1250&quot;], [0x0005,&quot;cs&quot;,&quot;CP1250&quot;], [0x0405,&quot;cs-CZ&quot;,&quot;CP1250&quot;], [0x0006,&quot;da&quot;,&quot;CP1252&quot;], [0x0406,&quot;da-DK&quot;,&quot;CP1252&quot;], [0x048C,&quot;prs-AF&quot;,&quot;CP1256&quot;], [0x0065,&quot;div&quot;,&quot;UNICODE&quot;], [0x0465,&quot;div-MV&quot;,&quot;UNICODE&quot;], [0x0013,&quot;nl&quot;,&quot;CP1252&quot;], [0x0813,&quot;nl-BE&quot;,&quot;CP1252&quot;], [0x0413,&quot;nl-NL&quot;,&quot;CP1252&quot;], [0x0009,&quot;en&quot;,&quot;CP1252&quot;], [0x0C09,&quot;en-AU&quot;,&quot;CP1252&quot;], [0x2809,&quot;en-BZ&quot;,&quot;CP1252&quot;], [0x1009,&quot;en-CA&quot;,&quot;CP1252&quot;], [0x2409,&quot;en-029&quot;,&quot;CP1252&quot;], [0x4009,&quot;en-IN&quot;,&quot;CP1252&quot;], [0x1809,&quot;en-IE&quot;,&quot;CP1252&quot;], [0x2009,&quot;en-JM&quot;,&quot;CP1252&quot;], [0x4409,&quot;en-MY&quot;,&quot;CP1252&quot;], [0x1409,&quot;en-NZ&quot;,&quot;CP1252&quot;], [0x3409,&quot;en-PH&quot;,&quot;CP1252&quot;], [0x4809,&quot;en-SG&quot;,&quot;CP1252&quot;], [0x1C09,&quot;en-ZA&quot;,&quot;CP1252&quot;], [0x2C09,&quot;en-TT&quot;,&quot;CP1252&quot;], [0x0809,&quot;en-GB&quot;,&quot;CP1252&quot;], [0x0409,&quot;en-US&quot;,&quot;CP1252&quot;], [0x3009,&quot;en-ZW&quot;,&quot;CP1252&quot;], [0x0025,&quot;et&quot;,&quot;CP1257&quot;], [0x0425,&quot;et-EE&quot;,&quot;CP1257&quot;], [0x0038,&quot;fo&quot;,&quot;CP1252&quot;], [0x0438,&quot;fo-FO&quot;,&quot;CP1252&quot;], [0x0464,&quot;fil-PH&quot;,&quot;CP1252&quot;], [0x000B,&quot;fi&quot;,&quot;CP1252&quot;], [0x040B,&quot;fi-FI&quot;,&quot;CP1252&quot;], [0x000C,&quot;fr&quot;,&quot;CP1252&quot;], [0x080C,&quot;fr-BE&quot;,&quot;CP1252&quot;], [0x0C0C,&quot;fr-CA&quot;,&quot;CP1252&quot;], [0x040C,&quot;fr-FR&quot;,&quot;CP1252&quot;], [0x140C,&quot;fr-LU&quot;,&quot;CP1252&quot;], [0x180C,&quot;fr-MC&quot;,&quot;CP1252&quot;], [0x100C,&quot;fr-CH&quot;,&quot;CP1252&quot;], [0x0462,&quot;fy-NL&quot;,&quot;CP1252&quot;], [0x0056,&quot;gl&quot;,&quot;CP1252&quot;], [0x0456,&quot;gl-ES&quot;,&quot;CP1252&quot;], [0x0037,&quot;ka&quot;,&quot;UNICODE&quot;], [0x0437,&quot;ka-GE&quot;,&quot;UNICODE&quot;], [0x0007,&quot;de&quot;,&quot;CP1252&quot;], [0x0C07,&quot;de-AT&quot;,&quot;CP1252&quot;], [0x0407,&quot;de-DE&quot;,&quot;CP1252&quot;], [0x1407,&quot;de-LI&quot;,&quot;CP1252&quot;], [0x1007,&quot;de-LU&quot;,&quot;CP1252&quot;], [0x0807,&quot;de-CH&quot;,&quot;CP1252&quot;], [0x0008,&quot;el&quot;,&quot;CP1253&quot;], [0x0408,&quot;el-GR&quot;,&quot;CP1253&quot;], [0x046F,&quot;kl-GL&quot;,&quot;CP1252&quot;], [0x0047,&quot;gu&quot;,&quot;UNICODE&quot;], [0x0447,&quot;gu-IN&quot;,&quot;UNICODE&quot;], [0x0468,&quot;ha-Latn-NG&quot;,&quot;CP1252&quot;], [0x000D,&quot;he&quot;,&quot;CP1255&quot;], [0x040D,&quot;he-IL&quot;,&quot;CP1255&quot;], [0x0039,&quot;hi&quot;,&quot;UNICODE&quot;], [0x0439,&quot;hi-IN&quot;,&quot;UNICODE&quot;], [0x000E,&quot;hu&quot;,&quot;CP1250&quot;], [0x040E,&quot;hu-HU&quot;,&quot;CP1250&quot;], [0x000F,&quot;is&quot;,&quot;CP1252&quot;], [0x040F,&quot;is-IS&quot;,&quot;CP1252&quot;], [0x0470,&quot;ig-NG&quot;,&quot;CP1252&quot;], [0x0021,&quot;id&quot;,&quot;CP1252&quot;], [0x0421,&quot;id-ID&quot;,&quot;CP1252&quot;], [0x085D,&quot;iu-Latn-CA&quot;,&quot;CP1252&quot;], [0x045D,&quot;iu-Cans-CA&quot;,&quot;UNICODE&quot;], [0x083C,&quot;ga-IE&quot;,&quot;CP1252&quot;], [0x0434,&quot;xh-ZA&quot;,&quot;CP1252&quot;], [0x0435,&quot;zu-ZA&quot;,&quot;CP1252&quot;], [0x0010,&quot;it&quot;,&quot;CP1252&quot;], [0x0410,&quot;it-IT&quot;,&quot;CP1252&quot;], [0x0810,&quot;it-CH&quot;,&quot;CP1252&quot;], [0x0011,&quot;ja&quot;,&quot;CP932&quot;], [0x0411,&quot;ja-JP&quot;,&quot;CP932&quot;], [0x004B,&quot;kn&quot;,&quot;UNICODE&quot;], [0x044B,&quot;kn-IN&quot;,&quot;UNICODE&quot;], [0x003F,&quot;kk&quot;,&quot;CP1251&quot;], [0x043F,&quot;kk-KZ&quot;,&quot;CP1251&quot;], [0x0453,&quot;km-KH&quot;,&quot;UNICODE&quot;], [0x0486,&quot;qut-GT&quot;,&quot;CP1252&quot;], [0x0487,&quot;rw-RW&quot;,&quot;CP1252&quot;], [0x0041,&quot;sw&quot;,&quot;CP1252&quot;], [0x0441,&quot;sw-KE&quot;,&quot;CP1252&quot;], [0x0057,&quot;kok&quot;,&quot;UNICODE&quot;], [0x0457,&quot;kok-IN&quot;,&quot;UNICODE&quot;], [0x0012,&quot;ko&quot;,&quot;CP949&quot;], [0x0412,&quot;ko-KR&quot;,&quot;CP949&quot;], [0x0040,&quot;ky&quot;,&quot;CP1251&quot;], [0x0440,&quot;ky-KG&quot;,&quot;CP1251&quot;], [0x0454,&quot;lo-LA&quot;,&quot;UNICODE&quot;], [0x0026,&quot;lv&quot;,&quot;CP1257&quot;], [0x0426,&quot;lv-LV&quot;,&quot;CP1257&quot;], [0x0027,&quot;lt&quot;,&quot;CP1257&quot;], [0x0427,&quot;lt-LT&quot;,&quot;CP1257&quot;], [0x082E,&quot;wee-DE&quot;,&quot;CP1252&quot;], [0x046E,&quot;lb-LU&quot;,&quot;CP1252&quot;], [0x002F,&quot;mk&quot;,&quot;CP1251&quot;], [0x042F,&quot;mk-MK&quot;,&quot;CP1251&quot;], [0x003E,&quot;ms&quot;,&quot;CP1252&quot;], [0x083E,&quot;ms-BN&quot;,&quot;CP1252&quot;], [0x043E,&quot;ms-MY&quot;,&quot;CP1252&quot;], [0x044C,&quot;ml-IN&quot;,&quot;UNICODE&quot;], [0x043A,&quot;mt-MT&quot;,&quot;UNICODE&quot;], [0x0481,&quot;mi-NZ&quot;,&quot;UNICODE&quot;], [0x047A,&quot;arn-CL&quot;,&quot;CP1252&quot;], [0x004E,&quot;mr&quot;,&quot;UNICODE&quot;], [0x044E,&quot;mr-IN&quot;,&quot;UNICODE&quot;], [0x047C,&quot;moh-CA&quot;,&quot;CP1252&quot;], [0x0050,&quot;mn&quot;,&quot;CP1251&quot;], [0x0450,&quot;mn-MN&quot;,&quot;CP1251&quot;], [0x0850,&quot;mn-Mong-CN&quot;,&quot;UNICODE&quot;], [0x0461,&quot;ne-NP&quot;,&quot;UNICODE&quot;], [0x0014,&quot;no&quot;,&quot;CP1252&quot;], [0x0414,&quot;nb-NO&quot;,&quot;CP1252&quot;], [0x0814,&quot;nn-NO&quot;,&quot;CP1252&quot;], [0x0482,&quot;oc-FR&quot;,&quot;CP1252&quot;], [0x0448,&quot;or-IN&quot;,&quot;UNICODE&quot;], [0x0463,&quot;ps-AF&quot;,&quot;UNICODE&quot;], [0x0029,&quot;fa&quot;,&quot;CP1256&quot;], [0x0429,&quot;fa-IR&quot;,&quot;CP1256&quot;], [0x0015,&quot;pl&quot;,&quot;CP1250&quot;], [0x0415,&quot;pl-PL&quot;,&quot;CP1250&quot;], [0x0016,&quot;pt&quot;,&quot;CP1252&quot;], [0x0416,&quot;pt-BR&quot;,&quot;CP1252&quot;], [0x0816,&quot;pt-PT&quot;,&quot;CP1252&quot;], [0x0046,&quot;pa&quot;,&quot;UNICODE&quot;], [0x0446,&quot;pa-IN&quot;,&quot;UNICODE&quot;], [0x046B,&quot;quz-BO&quot;,&quot;CP1252&quot;], [0x086B,&quot;quz-EC&quot;,&quot;CP1252&quot;], [0x0C6B,&quot;quz-PE&quot;,&quot;CP1252&quot;], [0x0018,&quot;ro&quot;,&quot;CP1250&quot;], [0x0418,&quot;ro-RO&quot;,&quot;CP1250&quot;], [0x0417,&quot;rm-CH&quot;,&quot;CP1252&quot;], [0x0019,&quot;ru&quot;,&quot;CP1251&quot;], [0x0419,&quot;ru-RU&quot;,&quot;CP1251&quot;], [0x243B,&quot;smn-FI&quot;,&quot;CP1252&quot;], [0x103B,&quot;smj-NO&quot;,&quot;CP1252&quot;], [0x143B,&quot;smj-SE&quot;,&quot;CP1252&quot;], [0x0C3B,&quot;se-FI&quot;,&quot;CP1252&quot;], [0x043B,&quot;se-NO&quot;,&quot;CP1252&quot;], [0x083B,&quot;se-SE&quot;,&quot;CP1252&quot;], [0x203B,&quot;sms-FI&quot;,&quot;CP1252&quot;], [0x183B,&quot;sma-NO&quot;,&quot;CP1252&quot;], [0x1C3B,&quot;sma-SE&quot;,&quot;CP1252&quot;], [0x004F,&quot;sa&quot;,&quot;UNICODE&quot;], [0x044F,&quot;sa-IN&quot;,&quot;UNICODE&quot;], [0x7C1A,&quot;sr&quot;,&quot;CP1251&quot;], [0x1C1A,&quot;sr-Cyrl-BA&quot;,&quot;CP1251&quot;], [0x0C1A,&quot;sr-Cyrl-SP&quot;,&quot;CP1251&quot;], [0x181A,&quot;sr-Latn-BA&quot;,&quot;CP1250&quot;], [0x081A,&quot;sr-Latn-SP&quot;,&quot;CP1250&quot;], [0x046C,&quot;nso-ZA&quot;,&quot;CP1252&quot;], [0x0432,&quot;tn-ZA&quot;,&quot;CP1252&quot;], [0x045B,&quot;si-LK&quot;,&quot;UNICODE&quot;], [0x001B,&quot;sk&quot;,&quot;CP1250&quot;], [0x041B,&quot;sk-SK&quot;,&quot;CP1250&quot;], [0x0024,&quot;sl&quot;,&quot;CP1250&quot;], [0x0424,&quot;sl-SI&quot;,&quot;CP1250&quot;], [0x000A,&quot;es&quot;,&quot;CP1252&quot;], [0x2C0A,&quot;es-AR&quot;,&quot;CP1252&quot;], [0x400A,&quot;es-BO&quot;,&quot;CP1252&quot;], [0x340A,&quot;es-CL&quot;,&quot;CP1252&quot;], [0x240A,&quot;es-CO&quot;,&quot;CP1252&quot;], [0x140A,&quot;es-CR&quot;,&quot;CP1252&quot;], [0x1C0A,&quot;es-DO&quot;,&quot;CP1252&quot;], [0x300A,&quot;es-EC&quot;,&quot;CP1252&quot;], [0x440A,&quot;es-SV&quot;,&quot;CP1252&quot;], [0x100A,&quot;es-GT&quot;,&quot;CP1252&quot;], [0x480A,&quot;es-HN&quot;,&quot;CP1252&quot;], [0x080A,&quot;es-MX&quot;,&quot;CP1252&quot;], [0x4C0A,&quot;es-NI&quot;,&quot;CP1252&quot;], [0x180A,&quot;es-PA&quot;,&quot;CP1252&quot;], [0x3C0A,&quot;es-PY&quot;,&quot;CP1252&quot;], [0x280A,&quot;es-PE&quot;,&quot;CP1252&quot;], [0x500A,&quot;es-PR&quot;,&quot;CP1252&quot;], [0x0C0A,&quot;es-ES&quot;,&quot;CP1252&quot;], [0x540A,&quot;es-US&quot;,&quot;CP1252&quot;], [0x380A,&quot;es-UY&quot;,&quot;CP1252&quot;], [0x200A,&quot;es-VE&quot;,&quot;CP1252&quot;], [0x001D,&quot;sv&quot;,&quot;CP1252&quot;], [0x081D,&quot;sv-FI&quot;,&quot;CP1252&quot;], [0x041D,&quot;sv-SE&quot;,&quot;CP1252&quot;], [0x005A,&quot;syr&quot;,&quot;UNICODE&quot;], [0x045A,&quot;syr-SY&quot;,&quot;UNICODE&quot;], [0x0428,&quot;tg-Cyrl-TJ&quot;,&quot;CP1251&quot;], [0x085F,&quot;tmz-Latn-DZ&quot;,&quot;CP1252&quot;], [0x0049,&quot;ta&quot;,&quot;UNICODE&quot;], [0x0449,&quot;ta-IN&quot;,&quot;UNICODE&quot;], [0x0044,&quot;tt&quot;,&quot;CP1251&quot;], [0x0444,&quot;tt-RU&quot;,&quot;CP1251&quot;], [0x004A,&quot;te&quot;,&quot;UNICODE&quot;], [0x044A,&quot;te-IN&quot;,&quot;UNICODE&quot;], [0x001E,&quot;th&quot;,&quot;CP874&quot;], [0x041E,&quot;th-TH&quot;,&quot;CP874&quot;], [0x0451,&quot;bo-CN&quot;,&quot;UNICODE&quot;], [0x001F,&quot;tr&quot;,&quot;CP1254&quot;], [0x041F,&quot;tr-TR&quot;,&quot;CP1254&quot;], [0x0442,&quot;tk-TM&quot;,&quot;CP1250&quot;], [0x0480,&quot;ug-CN&quot;,&quot;CP1256&quot;], [0x0022,&quot;uk&quot;,&quot;CP1251&quot;], [0x0422,&quot;uk-UA&quot;,&quot;CP1251&quot;], [0x042E,&quot;wen-DE&quot;,&quot;CP1252&quot;], [0x0020,&quot;ur&quot;,&quot;CP1256&quot;], [0x0420,&quot;ur-PK&quot;,&quot;CP1256&quot;], [0x0043,&quot;uz&quot;,&quot;CP1254&quot;], [0x0843,&quot;uz-Cyrl-UZ&quot;,&quot;CP1251&quot;], [0x0443,&quot;uz-Latn-UZ&quot;,&quot;CP1254&quot;], [0x002A,&quot;vi&quot;,&quot;CP1258&quot;], [0x042A,&quot;vi-VN&quot;,&quot;CP1258&quot;], [0x0452,&quot;cy-GB&quot;,&quot;CP1252&quot;], [0x0488,&quot;wo-SN&quot;,&quot;CP1252&quot;], [0x0485,&quot;sah-RU&quot;,&quot;CP1251&quot;], [0x0478,&quot;ii-CN&quot;,&quot;UNICODE&quot;], [0x046A,&quot;yo-NG&quot;,&quot;CP1252&quot;], ]</td>
346
+
347
+
348
+
349
+ </tr>
350
+ </table></p>
351
+
352
+
353
+
354
+
355
+
356
+ </div><div class="clear" id="footer">Generated on Jan 21, 2008 / Allison 2 &copy; 2007 <a href="http://cloudbur.st">Cloudburst, LLC</a></div></div></body></html>
@@ -0,0 +1,586 @@
1
+ <html xmlns="http://www.w3.org/1999/xhtml" lang="en" xml:lang="en"><head><meta content="text/html; charset=utf-8" http-equiv="Content-Type"/><title>Module: Locale::Info</title><link type="text/css" href="../.././rdoc-style.css" media="screen" rel="stylesheet"/><script type="text/javascript">
2
+ // Allison template
3
+ // Copyright 2007, 2008 Cloudburst, LLC. Licensed under the AFL 3. See the included LICENSE file.
4
+
5
+ var href_base = '../.././rdoc-style.css'.replace(/(.*\/).*/, '$1'); // inline js is good for something
6
+
7
+ function $(id) {
8
+ if (document.getElementById)
9
+ elem = document.getElementById(id);
10
+ else if ( document.all )
11
+ elem = eval("document.all." + id);
12
+ else
13
+ return false;
14
+ return elem;
15
+ }
16
+
17
+ function toggle(id) {
18
+ elem = $(id);
19
+ elemStyle = elem.style;
20
+ if (elemStyle.display == "block") {
21
+ elemStyle.display = "none"
22
+ } else {
23
+ elemStyle.display = "block"
24
+ }
25
+ return true;
26
+ }
27
+
28
+ function toggleText(id) {
29
+ elem = $(id)
30
+ if (m = elem.innerHTML.match(/(Hide)(.*)/)) {
31
+ elem.innerHTML = "Show" + m[2];
32
+ } else if (m = elem.innerHTML.match(/(Show)(.*)/)) {
33
+ elem.innerHTML = "Hide" + m[2];
34
+ }
35
+ return true;
36
+ }
37
+
38
+ function span(s, klass) {
39
+ return '<span class="' + klass + '">' + s + '</span>';
40
+ }
41
+
42
+ function highlightSymbols() {
43
+ pres = document.getElementsByTagName('pre');
44
+ for(var i = 0; i < pres.length; i++) {
45
+ pre = pres[i];
46
+ spans = pre.getElementsByTagName('span');
47
+ for(var k = 0; k < spans.length; k++) {
48
+ span = spans[k];
49
+ if (span.className.match(/ruby-identifier/)) {
50
+ if (span.innerHTML.match(/^:/)) {
51
+ span.className += " ruby-symbol";
52
+ }
53
+ }
54
+ }
55
+ }
56
+ }
57
+
58
+ function hasClass(obj) {
59
+ var result = false;
60
+ if (obj.getAttributeNode("class") != null) {
61
+ result = obj.getAttributeNode("class").value;
62
+ }
63
+ return result;
64
+ }
65
+
66
+ function stripe() {
67
+ var even = true;
68
+ var color = "#e4ebed";
69
+ var tables = document.getElementsByTagName('table');
70
+ if (tables.length == 0) { return; }
71
+ for (var h = 0; h < tables.length; h++) {
72
+ var trs = tables[h].getElementsByTagName("tr");
73
+ for (var i = 0; i < trs.length; i++) {
74
+ var tds = trs[i].getElementsByTagName("td");
75
+ for (var j = 0; j < tds.length; j++) {
76
+ if (hasClass(tds[j]) != "first") {
77
+ var mytd = tds[j];
78
+ if (even) {
79
+ mytd.style.backgroundColor = color;
80
+ }
81
+ }
82
+ }
83
+ even = ! even;
84
+ }
85
+ }
86
+ }
87
+
88
+ function ajaxGet(url) {
89
+ url = (href_base + url).replace('/./', '/')
90
+ var req = false;
91
+
92
+ if (window.ActiveXObject) {
93
+ try {
94
+ // stupid hack because IE7 disables local Ajax with the native xmlhttprequest object
95
+ // for security purposes. Yet ActiveX still works. Thanks, Microsoft. I hate you. Die.
96
+ req = new ActiveXObject("MSXML2.XMLHTTP.3.0");
97
+ } catch (e) {
98
+ try {
99
+ /* IE 6 and maybe 5, don't know, don't care */
100
+ req = new ActiveXObject("Msxml2.XMLHTTP");
101
+ } catch (e) {
102
+ try {
103
+ req = new ActiveXObject("Microsoft.XMLHTTP");
104
+ } catch (e) {
105
+ req = false;
106
+ }
107
+ }
108
+ }
109
+ }
110
+
111
+ /* real browsers */
112
+ if (!req && window.XMLHttpRequest) {
113
+ try {
114
+ req = new XMLHttpRequest();
115
+ } catch (e) {
116
+ req = false;
117
+ }
118
+ }
119
+
120
+ if (req) {
121
+ req.open('GET', url, false);
122
+ req.send(null);
123
+ return req.responseText;
124
+ } else {
125
+ return "Ajax error";
126
+ }
127
+ }
128
+
129
+
130
+ function addEvent(elm, evType, fn, useCapture) {
131
+ if (elm.addEventListener) {
132
+ elm.addEventListener(evType, fn, useCapture);
133
+ return true;
134
+ } else if (elm.attachEvent) {
135
+ var r = elm.attachEvent('on' + evType, fn);
136
+ return r;
137
+ } else {
138
+ elm['on' + evType] = fn;
139
+ }
140
+ }
141
+
142
+ function insertIndices() {
143
+ pages = ["class", "file", "method"]
144
+ for (x in pages) {
145
+ $(pages[x]).innerHTML += ajaxGet('fr_' + pages[x] + '_index.html').replace(/(href=")/g, '$1' + href_base);
146
+ }
147
+ /* mouseoverify method links */
148
+ links = $('method').getElementsByTagName('a');
149
+ for (var x = 0; x < links.length; x++) {
150
+ if (m = links[x].innerHTML.match(/(.*)\s\((.*)\)/)) {
151
+ links[x].innerHTML = m[1] + '<br>';
152
+ links[x].title = m[2];
153
+ }
154
+ }
155
+ /* this is stupid */
156
+ $('class').style.display = "block";
157
+ $('file').style.display = "block";
158
+
159
+ /* has to be here because IE7 does not guarantee the onLoad callback order */
160
+ abbreviateIndicesInner(["class", "file"], 25, "a");
161
+ /* same, linkTitle() depends on the class link list */
162
+ linkTitle();
163
+ }
164
+
165
+ function abbreviateIndices() {
166
+ var ids = ["defined_in", "child_of", "includes", "requires", "method", "methods"];
167
+ abbreviateIndicesInner(ids, 25, 'a');
168
+ abbreviateIndicesInner(ids, 25, 'span');
169
+ }
170
+
171
+ function abbreviateIndicesInner(indices, amount, tag) {
172
+ for (var x = 0; x < indices.length; x++) {
173
+ var the_index = $(indices[x]);
174
+ if (the_index) {
175
+ links = the_index.getElementsByTagName(tag);
176
+ for (var y = 0; y < links.length; y++) {
177
+ var link = links[y];
178
+ if (link.getElementsByTagName('span').length == 0 && link.getElementsByTagName('a').length == 0) {
179
+ // avoid nesting
180
+ link.innerHTML = link.innerHTML.replace(/<br>|\n/gi, '');
181
+ link.title = link.innerHTML;
182
+ link.innerHTML = abbreviate(link.innerHTML, amount) + '<br>';
183
+ }
184
+ }
185
+ }
186
+ }
187
+ }
188
+
189
+ function linkTitle() {
190
+
191
+ /* grab the correct title element from the index */
192
+ var index_page = ajaxGet('index.html');
193
+ title_text = index_page.match(/<title>(.*)<\/title>/m)[1];
194
+ document.title = title_text + " - " + document.title;
195
+ var p = $('header').getElementsByTagName('p')[0]
196
+ if (p.innerHTML.match(/^\s*$/)) {
197
+ p.innerHTML = title_text;
198
+ } else {
199
+ p.innerHTML = title_text + ": " + p.innerHTML;
200
+ }
201
+
202
+ /* set the link properly */
203
+ title_link = index_page.match(/<a\s+href="(.*?)"/)[1];
204
+ var element = $('title');
205
+ var item_type = "";
206
+ var item_name = "";
207
+ if (m = element.innerHTML.match(/(Class:|Module:|File:)\s*(.*)/)) {
208
+ item_type = m[1];
209
+ item_name = m[2];
210
+ } else {
211
+ item_name = element.innerHTML;
212
+ }
213
+ element.innerHTML = '<a href="' + href_base + title_link + '">' + item_type + " " + abbreviate(item_name, 45) + '</a>';
214
+ element.getElementsByTagName('a')[0].title = item_name
215
+
216
+ /* breadcrumb navigation */
217
+ items = item_name.split("::");
218
+ items_new = item_name.split("::");
219
+ file_links = $('class').getElementsByTagName('a');
220
+ for (var x = 0; x < items.length - 1; x++ ){
221
+ var item = items[x];
222
+ link = ("/classes/" + items.slice(0,x).join("/") + "/" + item + ".html").replace('//', '/');
223
+ regex = new RegExp(RegExp.escape(link) + '$');
224
+ for (var y = 0; y < file_links.length; y++) {
225
+ if (file_links[y].href.match(regex)) {
226
+ items_new[x] = '<a href="' + href_base + link + '">' + item + '</a>';
227
+ break;
228
+ }
229
+ }
230
+ }
231
+ $('item_name').innerHTML = item_type + ' ' + items_new.join(" :: ");
232
+ }
233
+
234
+ function abbreviate(s, size) {
235
+ while (s.length > size) {
236
+ var old_s = s;
237
+ s = s.replace(/\s|\n/mg, '');
238
+ s = s.replace(/([A-Z])[a-z]+/m, '$1');
239
+ if (!s || old_s == s) {
240
+ return "..." + s.substring(s.length - size, s.length);
241
+ }
242
+ }
243
+ return s;
244
+ }
245
+
246
+ function disableSubmit(event) {
247
+ var keyCode = event.keyCode ? event.keyCode : event.which ? event.which : event.charCode;
248
+ if (keyCode == 13) {
249
+ return false;
250
+ } else {
251
+ return true;
252
+ }
253
+ }
254
+
255
+ function filterList(id, s, event) {
256
+
257
+ /* some weak escaping */
258
+ s = s.replace(/[^\w\d\.\_\-\/\:\=\[\]\?\!]/g, '');
259
+ s = RegExp.escape(s);
260
+
261
+ var show_all = false;
262
+ if (s.match(/^\s*$/)) {
263
+ show_all = true;
264
+ }
265
+
266
+ links = $(id).getElementsByTagName('a')
267
+ regex = new RegExp(s, 'i');
268
+
269
+ for (var x = 0; x < links.length; x++) {
270
+ var link = links[x];
271
+ if (show_all) {
272
+ link.style.display = 'inline';
273
+ } else {
274
+ if (link.innerHTML.match(regex)) {
275
+ link.style.display = 'inline';
276
+ } else {
277
+ link.style.display = 'none';
278
+ }
279
+ }
280
+ }
281
+ return true;
282
+ }
283
+
284
+ RegExp.escape = function(text) {
285
+ if (!arguments.callee.sRE) {
286
+ var specials = ['/', '.', '*', '+', '?', '|', '(', ')', '[', ']', '{', '}', '\\'];
287
+ arguments.callee.sRE = new RegExp(
288
+ '(\\' + specials.join('|\\') + ')', 'g'
289
+ );
290
+ }
291
+ return text.replace(arguments.callee.sRE, '\\$1');
292
+ }
293
+
294
+ function hacks() {
295
+ // show the spacer if necessary,
296
+ divs = document.getElementsByTagName('div');
297
+ for(var x = 0; x < divs.length; x++) {
298
+ if (divs[x].className && divs[x].className.match(/top/)) {
299
+ document.getElementById('spacer').style.display = 'block';
300
+ }
301
+ }
302
+ // remove extra colons from tables
303
+ tds = document.getElementsByTagName('td');
304
+ for(var x = 0; x < tds.length; x++) {
305
+ str = tds[x].innerHTML
306
+ if (str.charAt(str.length - 1) == ":") {
307
+ tds[x].innerHTML = str.slice(0, str.length - 1)
308
+ }
309
+ }
310
+ }
311
+
312
+ addEvent(window, 'load', insertIndices, false);
313
+ addEvent(window, 'load', abbreviateIndices, false);
314
+ addEvent(window, 'load', stripe, false);
315
+ addEvent(window, 'load', highlightSymbols, false);
316
+ addEvent(window, 'load', hacks, false);
317
+ </script></head><body><div id="container"><div class="curve" id="preheader_curve_0"></div><div class="curve" id="preheader_curve_1"></div><div class="curve" id="preheader_curve_2"></div><div class="curve" id="preheader_curve_3"></div><div class="curve" id="preheader_curve_4"></div><div class="curve" id="preheader_curve_5"></div><div id="header"><p>
318
+ </p><span><h1 id="title">
319
+ Module: Locale::Info
320
+ </h1></span>
321
+ </div><div class="clear"></div><div id="left">
322
+
323
+ <div class="navigation darker top" id="defined_in"><h3>Defined in</h3>
324
+
325
+ <a href="../../files/lib/locale/info/language_rb.html">lib/locale/info/language.rb</a>
326
+
327
+
328
+ <a href="../../files/lib/locale/info/region_rb.html">lib/locale/info/region.rb</a>
329
+
330
+ </div>
331
+
332
+
333
+
334
+ <div class="navigation top" id="methods"><h3>Methods</h3>
335
+
336
+
337
+ <a href='#M000036'>
338
+ get_language<br/>
339
+ </a>
340
+
341
+
342
+
343
+
344
+ <a href='#M000039'>
345
+ get_region<br/>
346
+ </a>
347
+
348
+
349
+
350
+
351
+ <a href='#M000037'>
352
+ language_code?<br/>
353
+ </a>
354
+
355
+
356
+
357
+
358
+ <a href='#M000038'>
359
+ regions<br/>
360
+ </a>
361
+
362
+
363
+
364
+
365
+ <a href='#M000034'>
366
+ three_languages<br/>
367
+ </a>
368
+
369
+
370
+
371
+
372
+ <a href='#M000035'>
373
+ two_languages<br/>
374
+ </a>
375
+
376
+
377
+
378
+
379
+ <a href='#M000040'>
380
+ valid_region_code?<br/>
381
+ </a>
382
+
383
+
384
+ </div>
385
+ <div id="spacer"></div><div class="navigation darker index" id="class_wrapper"><div class="list_header"><h3>All classes</h3></div><div class="list_header_link"><a onclick="toggle('class'); toggleText('class_link'); return false;" href="#" id="class_link">Hide...</a></div><div class="clear"></div><div id="class"><form><label for="filter_class">Filter:&nbsp;&nbsp;</label><input type="text" onKeyUp="return filterList('class', this.value, event);" onKeyPress="return disableSubmit(event);" id="filter_class"></input></form></div></div><div class="navigation darker index" id="file_wrapper"><div class="list_header"><h3>All files</h3></div><div class="list_header_link"><a onclick="toggle('file'); toggleText('file_link'); return false;" href="#" id="file_link">Hide...</a></div><div class="clear"></div><div id="file"><form><label for="filter_file">Filter:&nbsp;&nbsp;</label><input type="text" onKeyUp="return filterList('file', this.value, event);" onKeyPress="return disableSubmit(event);" id="filter_file"></input></form></div></div><div class="navigation darker index" id="method_wrapper"><div class="list_header"><h3>All methods</h3></div><div class="list_header_link"><a onclick="toggle('method'); toggleText('method_link'); return false;" href="#" id="method_link">Show...</a></div><div class="clear"></div><div id="method"><form><label for="filter_method">Filter:&nbsp;&nbsp;</label><input type="text" onKeyUp="return filterList('method', this.value, event);" onKeyPress="return disableSubmit(event);" id="filter_method"></input></form></div></div></div><div id="content">
386
+ <h1 id="item_name">Module: Locale::Info</h1>
387
+
388
+
389
+
390
+
391
+
392
+ <p></p>
393
+
394
+ <h1>Child modules and classes</h1><p>Class <a href="Info/Language.html" class="link">Locale::Info::Language</a><br />
395
+ Class <a href="Info/Region.html" class="link">Locale::Info::Region</a><br />
396
+ </p>
397
+
398
+
399
+
400
+
401
+
402
+ <h1>Public Instance Methods</h1>
403
+
404
+
405
+ <a class="small" name="M000036"><br/></a>
406
+ <div class="method_block"><h3>
407
+ <a href='#M000036'>
408
+
409
+
410
+ get_language
411
+
412
+ (code)
413
+
414
+ </a>
415
+ </h3>
416
+ <p>
417
+ Returns the language for the given 2 or 3 digit code.
418
+ </p>
419
+ <p>
420
+ Need to require &#8216;locale/info&#8217; or &#8216;locale/language&#8217;.
421
+ </p>
422
+
423
+ <p class="source_link" id="M000036-show-link"><a onclick="toggle('M000036-source'); toggleText('M000036-link'); return false;" href="#" id="M000036-link">Show source...</a></p><div class="source" id="M000036-source"><pre> <span class="ruby-comment cmt"># File lib/locale/info/language.rb, line 123</span>
424
+ 123: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_language</span>(<span class="ruby-identifier">code</span>)
425
+ 124: <span class="ruby-ivar">@@lang_three_codes</span>[<span class="ruby-identifier">code</span>] <span class="ruby-operator">||</span> <span class="ruby-ivar">@@lang_two_codes</span>[<span class="ruby-identifier">code</span>]
426
+ 125: <span class="ruby-keyword kw">end</span></pre></div>
427
+ </div>
428
+
429
+ <a class="small" name="M000039"><br/></a>
430
+ <div class="method_block"><h3>
431
+ <a href='#M000039'>
432
+
433
+
434
+ get_region
435
+
436
+ (code)
437
+
438
+ </a>
439
+ </h3>
440
+ <p>
441
+ Returns the region for the given code.
442
+ </p>
443
+ <p>
444
+ You need to require &#8216;locale/info&#8217; or
445
+ &#8216;locale/info/region&#8217;.
446
+ </p>
447
+
448
+ <p class="source_link" id="M000039-show-link"><a onclick="toggle('M000039-source'); toggleText('M000039-link'); return false;" href="#" id="M000039-link">Show source...</a></p><div class="source" id="M000039-source"><pre> <span class="ruby-comment cmt"># File lib/locale/info/region.rb, line 63</span>
449
+ 63: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_region</span>(<span class="ruby-identifier">code</span>)
450
+ 64: <span class="ruby-ivar">@@regions</span>[<span class="ruby-identifier">code</span>]
451
+ 65: <span class="ruby-keyword kw">end</span></pre></div>
452
+ </div>
453
+
454
+ <a class="small" name="M000037"><br/></a>
455
+ <div class="method_block"><h3>
456
+ <a href='#M000037'>
457
+
458
+
459
+ language_code?
460
+
461
+ (code)
462
+
463
+ </a>
464
+ </h3>
465
+ <p>
466
+ Returns the language code is valid.
467
+ </p>
468
+ <p>
469
+ Need to require &#8216;locale/info&#8217; or &#8216;locale/language&#8217;.
470
+ </p>
471
+
472
+ <p class="source_link" id="M000037-show-link"><a onclick="toggle('M000037-source'); toggleText('M000037-link'); return false;" href="#" id="M000037-link">Show source...</a></p><div class="source" id="M000037-source"><pre> <span class="ruby-comment cmt"># File lib/locale/info/language.rb, line 130</span>
473
+ 130: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">language_code?</span>(<span class="ruby-identifier">code</span>)
474
+ 131: <span class="ruby-identifier">get_language</span>(<span class="ruby-identifier">code</span>) <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
475
+ 132: <span class="ruby-keyword kw">end</span></pre></div>
476
+ </div>
477
+
478
+ <a class="small" name="M000038"><br/></a>
479
+ <div class="method_block"><h3>
480
+ <a href='#M000038'>
481
+
482
+
483
+ regions
484
+
485
+ ()
486
+
487
+ </a>
488
+ </h3>
489
+ <p>
490
+ Returns a hash of all the ISO <a href="Info.html#M000038">regions</a>. The
491
+ hash is {String, <a href="Info/Region.html">Region</a>} where the string is
492
+ the 2 digit region code from the ISO 3166 data.
493
+ </p>
494
+ <p>
495
+ You need to require &#8216;locale/info&#8217; or
496
+ &#8216;locale/region&#8217;.
497
+ </p>
498
+
499
+ <p class="source_link" id="M000038-show-link"><a onclick="toggle('M000038-source'); toggleText('M000038-link'); return false;" href="#" id="M000038-link">Show source...</a></p><div class="source" id="M000038-source"><pre> <span class="ruby-comment cmt"># File lib/locale/info/region.rb, line 56</span>
500
+ 56: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">regions</span>
501
+ 57: <span class="ruby-ivar">@@regions</span>
502
+ 58: <span class="ruby-keyword kw">end</span></pre></div>
503
+ </div>
504
+
505
+ <a class="small" name="M000034"><br/></a>
506
+ <div class="method_block"><h3>
507
+ <a href='#M000034'>
508
+
509
+
510
+ three_languages
511
+
512
+ ()
513
+
514
+ </a>
515
+ </h3>
516
+ <p>
517
+ Returns a hash of all the ISO languages. The hash is {String, language}
518
+ where the string is the 3 digit language code from the ISO 639 data. This
519
+ contains all of the data from the ISO 639-3 data (7600 Languages).
520
+ </p>
521
+ <p>
522
+ Need to require &#8216;locale/info&#8217; or &#8216;locale/language&#8217;.
523
+ </p>
524
+
525
+ <p class="source_link" id="M000034-show-link"><a onclick="toggle('M000034-source'); toggleText('M000034-link'); return false;" href="#" id="M000034-link">Show source...</a></p><div class="source" id="M000034-source"><pre> <span class="ruby-comment cmt"># File lib/locale/info/language.rb, line 107</span>
526
+ 107: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">three_languages</span>
527
+ 108: <span class="ruby-ivar">@@lang_three_codes</span>
528
+ 109: <span class="ruby-keyword kw">end</span></pre></div>
529
+ </div>
530
+
531
+ <a class="small" name="M000035"><br/></a>
532
+ <div class="method_block"><h3>
533
+ <a href='#M000035'>
534
+
535
+
536
+ two_languages
537
+
538
+ ()
539
+
540
+ </a>
541
+ </h3>
542
+ <p>
543
+ Returns a hash of all the ISO languages. The hash is {String, language}
544
+ where the string is the 2 digit language code from the ISO 639-1 data. This
545
+ contains all of the data from the ISO 639-1 data (186 Languages).
546
+ </p>
547
+ <p>
548
+ Need to require &#8216;locale/info&#8217; or &#8216;locale/language&#8217;.
549
+ </p>
550
+
551
+ <p class="source_link" id="M000035-show-link"><a onclick="toggle('M000035-source'); toggleText('M000035-link'); return false;" href="#" id="M000035-link">Show source...</a></p><div class="source" id="M000035-source"><pre> <span class="ruby-comment cmt"># File lib/locale/info/language.rb, line 116</span>
552
+ 116: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">two_languages</span>
553
+ 117: <span class="ruby-ivar">@@lang_two_codes</span>
554
+ 118: <span class="ruby-keyword kw">end</span></pre></div>
555
+ </div>
556
+
557
+ <a class="small" name="M000040"><br/></a>
558
+ <div class="method_block"><h3>
559
+ <a href='#M000040'>
560
+
561
+
562
+ valid_region_code?
563
+
564
+ (code)
565
+
566
+ </a>
567
+ </h3>
568
+ <p>
569
+ Returns the region code is valid.
570
+ </p>
571
+ <p>
572
+ You need to require &#8216;locale/info&#8217; or
573
+ &#8216;locale/info/region&#8217;.
574
+ </p>
575
+
576
+ <p class="source_link" id="M000040-show-link"><a onclick="toggle('M000040-source'); toggleText('M000040-link'); return false;" href="#" id="M000040-link">Show source...</a></p><div class="source" id="M000040-source"><pre> <span class="ruby-comment cmt"># File lib/locale/info/region.rb, line 70</span>
577
+ 70: <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid_region_code?</span>(<span class="ruby-identifier">code</span>)
578
+ 71: <span class="ruby-ivar">@@regions</span>[<span class="ruby-identifier">code</span>] <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
579
+ 72: <span class="ruby-keyword kw">end</span></pre></div>
580
+ </div>
581
+
582
+
583
+
584
+
585
+
586
+ </div><div class="clear" id="footer">Generated on Jan 21, 2008 / Allison 2 &copy; 2007 <a href="http://cloudbur.st">Cloudburst, LLC</a></div></div></body></html>