locale 2.0.2 → 2.0.3
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.
- data/ChangeLog +3 -0
- data/benchmark/benchmark.rb +34 -0
- data/benchmark/benchmark_2.0.1.txt +7 -0
- data/doc/classes/Locale.html +1244 -0
- data/doc/classes/Locale/Driver.html +374 -0
- data/doc/classes/Locale/Driver/CGI.html +536 -0
- data/doc/classes/Locale/Driver/Env.html +439 -0
- data/doc/classes/Locale/Driver/JRuby.html +389 -0
- data/doc/classes/Locale/Driver/Posix.html +430 -0
- data/doc/classes/Locale/Driver/Win32.html +398 -0
- data/doc/classes/Locale/Driver/Win32Table.html +355 -0
- data/doc/classes/Locale/Info.html +585 -0
- data/doc/classes/Locale/Info/Language.html +763 -0
- data/doc/classes/Locale/Info/Region.html +470 -0
- data/doc/classes/Locale/Tag.html +433 -0
- data/doc/classes/Locale/Tag/Cldr.html +523 -0
- data/doc/classes/Locale/Tag/Common.html +624 -0
- data/doc/classes/Locale/Tag/Irregular.html +423 -0
- data/doc/classes/Locale/Tag/Posix.html +612 -0
- data/doc/classes/Locale/Tag/Rfc.html +581 -0
- data/doc/classes/Locale/Tag/Simple.html +721 -0
- data/doc/classes/Locale/TagList.html +826 -0
- data/doc/classes/Locale/Util.html +506 -0
- data/doc/classes/Locale/Util/Memoizable.html +355 -0
- data/doc/created.rid +1 -0
- data/doc/files/ChangeLog.html +537 -0
- data/doc/files/README_rdoc.html +565 -0
- data/doc/files/lib/locale/driver/cgi_rb.html +341 -0
- data/doc/files/lib/locale/driver/env_rb.html +353 -0
- data/doc/files/lib/locale/driver/jruby_rb.html +353 -0
- data/doc/files/lib/locale/driver/posix_rb.html +341 -0
- data/doc/files/lib/locale/driver/win32_rb.html +348 -0
- data/doc/files/lib/locale/driver/win32_table_rb.html +341 -0
- data/doc/files/lib/locale/info/language_rb.html +352 -0
- data/doc/files/lib/locale/info/region_rb.html +352 -0
- data/doc/files/lib/locale/info_rb.html +353 -0
- data/doc/files/lib/locale/tag/cldr_rb.html +348 -0
- data/doc/files/lib/locale/tag/common_rb.html +348 -0
- data/doc/files/lib/locale/tag/irregular_rb.html +348 -0
- data/doc/files/lib/locale/tag/posix_rb.html +341 -0
- data/doc/files/lib/locale/tag/rfc_rb.html +348 -0
- data/doc/files/lib/locale/tag/simple_rb.html +348 -0
- data/doc/files/lib/locale/tag_rb.html +378 -0
- data/doc/files/lib/locale/taglist_rb.html +348 -0
- data/doc/files/lib/locale/util/memoizable_rb.html +359 -0
- data/doc/files/lib/locale/version_rb.html +341 -0
- data/doc/files/lib/locale_rb.html +363 -0
- data/doc/fr_class_index.html +22 -0
- data/doc/fr_file_index.html +23 -0
- data/doc/fr_method_index.html +99 -0
- data/doc/index.html +1 -0
- data/doc/rdoc-style.css +320 -0
- data/lib/locale/util/memoizable.rb.20090328 +96 -0
- data/lib/locale/util/memoizable.rb.old +91 -0
- data/lib/locale/version.rb +1 -1
- data/replace.rb +21 -0
- data/test.rb +28 -0
- data/test/test.rb +7 -0
- data/test/tmp.txt +20 -0
- data/test2.rb +14 -0
- data/test3.rb +12 -0
- metadata +75 -1
| @@ -0,0 +1,355 @@ | |
| 1 | 
            +
            <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" 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></div><div class="clear"></div><div id="left">
         | 
| 321 | 
            +
             | 
| 322 | 
            +
            <div class="navigation darker top" id="defined_in"><h3>Defined in</h3>
         | 
| 323 | 
            +
             | 
| 324 | 
            +
            <a href="../../../files/lib/locale/driver/win32_table_rb.html">lib/locale/driver/win32_table.rb</a>
         | 
| 325 | 
            +
             | 
| 326 | 
            +
            </div>
         | 
| 327 | 
            +
             | 
| 328 | 
            +
             | 
| 329 | 
            +
             | 
| 330 | 
            +
            <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 href="#" onclick="toggle('class'); toggleText('class_link'); return false;" id="class_link">Hide...</a></div><div class="clear"></div><div id="class"><form><label for="filter_class">Filter:  </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 href="#" onclick="toggle('file'); toggleText('file_link'); return false;" id="file_link">Hide...</a></div><div class="clear"></div><div id="file"><form><label for="filter_file">Filter:  </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 href="#" onclick="toggle('method'); toggleText('method_link'); return false;" id="method_link">Show...</a></div><div class="clear"></div><div id="method"><form><label for="filter_method">Filter:  </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">
         | 
| 331 | 
            +
            <h1 id="item_name">Module: Locale::Driver::Win32Table</h1>
         | 
| 332 | 
            +
             | 
| 333 | 
            +
             | 
| 334 | 
            +
             | 
| 335 | 
            +
             | 
| 336 | 
            +
             | 
| 337 | 
            +
            <p></p>
         | 
| 338 | 
            +
             | 
| 339 | 
            +
             | 
| 340 | 
            +
            <h1>Constants</h1><p><table><tr><th>Name</th><th>Value</th></tr>
         | 
| 341 | 
            +
            <tr>
         | 
| 342 | 
            +
            <td class="highlight">LocaleTable</td>
         | 
| 343 | 
            +
             | 
| 344 | 
            +
            <td class="normal">[                      [0x0036,"af","CP1252"],                      [0x0436,"af-ZA","CP1252"],                      [0x001C,"sq","CP1250"],                      [0x041C,"sq-AL","CP1250"],                      [0x0484,"gsw-FR","CP1252"],                      [0x045E,"am-ET","UNICODE"],                      [0x0001,"ar","CP1256"],                      [0x1401,"ar-DZ","CP1256"],                      [0x3C01,"ar-BH","CP1256"],                      [0x0C01,"ar-EG","CP1256"],                      [0x0801,"ar-IQ","CP1256"],                      [0x2C01,"ar-JO","CP1256"],                      [0x3401,"ar-KW","CP1256"],                      [0x3001,"ar-LB","CP1256"],                      [0x1001,"ar-LY","CP1256"],                      [0x1801,"ar-MA","CP1256"],                      [0x2001,"ar-OM","CP1256"],                      [0x4001,"ar-QA","CP1256"],                      [0x0401,"ar-SA","CP1256"],                      [0x2801,"ar-SY","CP1256"],                      [0x1C01,"ar-TN","CP1256"],                      [0x3801,"ar-AE","CP1256"],                      [0x2401,"ar-YE","CP1256"],                      [0x002B,"hy","UNICODE"],                      [0x042B,"hy-AM","UNICODE"],                      [0x044D,"as-IN","UNICODE"],                      [0x002C,"az","CP1254"],                      [0x082C,"az-Cyrl-AZ","CP1251"],                      [0x042C,"az-Latn-AZ","CP1254"],                      [0x046D,"ba-RU","CP1251"],                      [0x002D,"eu","CP1252"],                      [0x042D,"eu-ES","CP1252"],                      [0x0023,"be","CP1251"],                      [0x0423,"be-BY","CP1251"],                      [0x0845,"bn-BD","UNICODE"],                      [0x0445,"bn-IN","UNICODE"],                      [0x201A,"bs-Cyrl-BA","CP1251"],                      [0x141A,"bs-Latn-BA","CP1250"],                      [0x047E,"br-FR","CP1252"],                      [0x0002,"bg","CP1251"],                      [0x0402,"bg-BG","CP1251"],                      [0x0003,"ca","CP1252"],                      [0x0403,"ca-ES","CP1252"],                      [0x0C04,"zh-HK","CP950"],                      [0x1404,"zh-MO","CP950"],                      [0x0804,"zh-CN","CP936"],                      [0x0004,"zh-Hans","CP936"],                      [0x1004,"zh-SG","CP936"],                      [0x0404,"zh-TW","CP950"],                      [0x7C04,"zh-Hant","CP950"],                      [0x0483,"co-FR","CP1252"],                      [0x001A,"hr","CP1250"],                      [0x041A,"hr-HR","CP1250"],                      [0x101A,"hr-BA","CP1250"],                      [0x0005,"cs","CP1250"],                      [0x0405,"cs-CZ","CP1250"],                      [0x0006,"da","CP1252"],                      [0x0406,"da-DK","CP1252"],                      [0x048C,"prs-AF","CP1256"],                      [0x0065,"div","UNICODE"],                      [0x0465,"div-MV","UNICODE"],                      [0x0013,"nl","CP1252"],                      [0x0813,"nl-BE","CP1252"],                      [0x0413,"nl-NL","CP1252"],                      [0x0009,"en","CP1252"],                      [0x0C09,"en-AU","CP1252"],                      [0x2809,"en-BZ","CP1252"],                      [0x1009,"en-CA","CP1252"],                      [0x2409,"en-029","CP1252"],                      [0x4009,"en-IN","CP1252"],                      [0x1809,"en-IE","CP1252"],                      [0x2009,"en-JM","CP1252"],                      [0x4409,"en-MY","CP1252"],                      [0x1409,"en-NZ","CP1252"],                      [0x3409,"en-PH","CP1252"],                      [0x4809,"en-SG","CP1252"],                      [0x1C09,"en-ZA","CP1252"],                      [0x2C09,"en-TT","CP1252"],                      [0x0809,"en-GB","CP1252"],                      [0x0409,"en-US","CP1252"],                      [0x3009,"en-ZW","CP1252"],                      [0x0025,"et","CP1257"],                      [0x0425,"et-EE","CP1257"],                      [0x0038,"fo","CP1252"],                      [0x0438,"fo-FO","CP1252"],                      [0x0464,"fil-PH","CP1252"],                      [0x000B,"fi","CP1252"],                      [0x040B,"fi-FI","CP1252"],                      [0x000C,"fr","CP1252"],                      [0x080C,"fr-BE","CP1252"],                      [0x0C0C,"fr-CA","CP1252"],                      [0x040C,"fr-FR","CP1252"],                      [0x140C,"fr-LU","CP1252"],                      [0x180C,"fr-MC","CP1252"],                      [0x100C,"fr-CH","CP1252"],                      [0x0462,"fy-NL","CP1252"],                      [0x0056,"gl","CP1252"],                      [0x0456,"gl-ES","CP1252"],                      [0x0037,"ka","UNICODE"],                      [0x0437,"ka-GE","UNICODE"],                      [0x0007,"de","CP1252"],                      [0x0C07,"de-AT","CP1252"],                      [0x0407,"de-DE","CP1252"],                      [0x1407,"de-LI","CP1252"],                      [0x1007,"de-LU","CP1252"],                      [0x0807,"de-CH","CP1252"],                      [0x0008,"el","CP1253"],                      [0x0408,"el-GR","CP1253"],                      [0x046F,"kl-GL","CP1252"],                      [0x0047,"gu","UNICODE"],                      [0x0447,"gu-IN","UNICODE"],                      [0x0468,"ha-Latn-NG","CP1252"],                      [0x000D,"he","CP1255"],                      [0x040D,"he-IL","CP1255"],                      [0x0039,"hi","UNICODE"],                      [0x0439,"hi-IN","UNICODE"],                      [0x000E,"hu","CP1250"],                      [0x040E,"hu-HU","CP1250"],                      [0x000F,"is","CP1252"],                      [0x040F,"is-IS","CP1252"],                      [0x0470,"ig-NG","CP1252"],                      [0x0021,"id","CP1252"],                      [0x0421,"id-ID","CP1252"],                      [0x085D,"iu-Latn-CA","CP1252"],                      [0x045D,"iu-Cans-CA","UNICODE"],                      [0x083C,"ga-IE","CP1252"],                      [0x0434,"xh-ZA","CP1252"],                      [0x0435,"zu-ZA","CP1252"],                      [0x0010,"it","CP1252"],                      [0x0410,"it-IT","CP1252"],                      [0x0810,"it-CH","CP1252"],                      [0x0011,"ja","CP932"],                      [0x0411,"ja-JP","CP932"],                      [0x004B,"kn","UNICODE"],                      [0x044B,"kn-IN","UNICODE"],                      [0x003F,"kk","CP1251"],                      [0x043F,"kk-KZ","CP1251"],                      [0x0453,"km-KH","UNICODE"],                      [0x0486,"qut-GT","CP1252"],                      [0x0487,"rw-RW","CP1252"],                      [0x0041,"sw","CP1252"],                      [0x0441,"sw-KE","CP1252"],                      [0x0057,"kok","UNICODE"],                      [0x0457,"kok-IN","UNICODE"],                      [0x0012,"ko","CP949"],                      [0x0412,"ko-KR","CP949"],                      [0x0040,"ky","CP1251"],                      [0x0440,"ky-KG","CP1251"],                      [0x0454,"lo-LA","UNICODE"],                      [0x0026,"lv","CP1257"],                      [0x0426,"lv-LV","CP1257"],                      [0x0027,"lt","CP1257"],                      [0x0427,"lt-LT","CP1257"],                      [0x082E,"wee-DE","CP1252"],                      [0x046E,"lb-LU","CP1252"],                      [0x002F,"mk","CP1251"],                      [0x042F,"mk-MK","CP1251"],                      [0x003E,"ms","CP1252"],                      [0x083E,"ms-BN","CP1252"],                      [0x043E,"ms-MY","CP1252"],                      [0x044C,"ml-IN","UNICODE"],                      [0x043A,"mt-MT","UNICODE"],                      [0x0481,"mi-NZ","UNICODE"],                      [0x047A,"arn-CL","CP1252"],                      [0x004E,"mr","UNICODE"],                      [0x044E,"mr-IN","UNICODE"],                      [0x047C,"moh-CA","CP1252"],                      [0x0050,"mn","CP1251"],                      [0x0450,"mn-MN","CP1251"],                      [0x0850,"mn-Mong-CN","UNICODE"],                      [0x0461,"ne-NP","UNICODE"],                      [0x0014,"no","CP1252"],                      [0x0414,"nb-NO","CP1252"],                      [0x0814,"nn-NO","CP1252"],                      [0x0482,"oc-FR","CP1252"],                      [0x0448,"or-IN","UNICODE"],                      [0x0463,"ps-AF","UNICODE"],                      [0x0029,"fa","CP1256"],                      [0x0429,"fa-IR","CP1256"],                      [0x0015,"pl","CP1250"],                      [0x0415,"pl-PL","CP1250"],                      [0x0016,"pt","CP1252"],                      [0x0416,"pt-BR","CP1252"],                      [0x0816,"pt-PT","CP1252"],                      [0x0046,"pa","UNICODE"],                      [0x0446,"pa-IN","UNICODE"],                      [0x046B,"quz-BO","CP1252"],                      [0x086B,"quz-EC","CP1252"],                      [0x0C6B,"quz-PE","CP1252"],                      [0x0018,"ro","CP1250"],                      [0x0418,"ro-RO","CP1250"],                      [0x0417,"rm-CH","CP1252"],                      [0x0019,"ru","CP1251"],                      [0x0419,"ru-RU","CP1251"],                      [0x243B,"smn-FI","CP1252"],                      [0x103B,"smj-NO","CP1252"],                      [0x143B,"smj-SE","CP1252"],                      [0x0C3B,"se-FI","CP1252"],                      [0x043B,"se-NO","CP1252"],                      [0x083B,"se-SE","CP1252"],                      [0x203B,"sms-FI","CP1252"],                      [0x183B,"sma-NO","CP1252"],                      [0x1C3B,"sma-SE","CP1252"],                      [0x004F,"sa","UNICODE"],                      [0x044F,"sa-IN","UNICODE"],                      [0x7C1A,"sr","CP1251"],                      [0x1C1A,"sr-Cyrl-BA","CP1251"],                      [0x0C1A,"sr-Cyrl-SP","CP1251"],                      [0x181A,"sr-Latn-BA","CP1250"],                      [0x081A,"sr-Latn-SP","CP1250"],                      [0x046C,"nso-ZA","CP1252"],                      [0x0432,"tn-ZA","CP1252"],                      [0x045B,"si-LK","UNICODE"],                      [0x001B,"sk","CP1250"],                      [0x041B,"sk-SK","CP1250"],                      [0x0024,"sl","CP1250"],                      [0x0424,"sl-SI","CP1250"],                      [0x000A,"es","CP1252"],                      [0x2C0A,"es-AR","CP1252"],                      [0x400A,"es-BO","CP1252"],                      [0x340A,"es-CL","CP1252"],                      [0x240A,"es-CO","CP1252"],                      [0x140A,"es-CR","CP1252"],                      [0x1C0A,"es-DO","CP1252"],                      [0x300A,"es-EC","CP1252"],                      [0x440A,"es-SV","CP1252"],                      [0x100A,"es-GT","CP1252"],                      [0x480A,"es-HN","CP1252"],                      [0x080A,"es-MX","CP1252"],                      [0x4C0A,"es-NI","CP1252"],                      [0x180A,"es-PA","CP1252"],                      [0x3C0A,"es-PY","CP1252"],                      [0x280A,"es-PE","CP1252"],                      [0x500A,"es-PR","CP1252"],                      [0x0C0A,"es-ES","CP1252"],                      [0x540A,"es-US","CP1252"],                      [0x380A,"es-UY","CP1252"],                      [0x200A,"es-VE","CP1252"],                      [0x001D,"sv","CP1252"],                      [0x081D,"sv-FI","CP1252"],                      [0x041D,"sv-SE","CP1252"],                      [0x005A,"syr","UNICODE"],                      [0x045A,"syr-SY","UNICODE"],                      [0x0428,"tg-Cyrl-TJ","CP1251"],                      [0x085F,"tmz-Latn-DZ","CP1252"],                      [0x0049,"ta","UNICODE"],                      [0x0449,"ta-IN","UNICODE"],                      [0x0044,"tt","CP1251"],                      [0x0444,"tt-RU","CP1251"],                      [0x004A,"te","UNICODE"],                      [0x044A,"te-IN","UNICODE"],                      [0x001E,"th","CP874"],                      [0x041E,"th-TH","CP874"],                      [0x0451,"bo-CN","UNICODE"],                      [0x001F,"tr","CP1254"],                      [0x041F,"tr-TR","CP1254"],                      [0x0442,"tk-TM","CP1250"],                      [0x0480,"ug-CN","CP1256"],                      [0x0022,"uk","CP1251"],                      [0x0422,"uk-UA","CP1251"],                      [0x042E,"wen-DE","CP1252"],                      [0x0020,"ur","CP1256"],                      [0x0420,"ur-PK","CP1256"],                      [0x0043,"uz","CP1254"],                      [0x0843,"uz-Cyrl-UZ","CP1251"],                      [0x0443,"uz-Latn-UZ","CP1254"],                      [0x002A,"vi","CP1258"],                      [0x042A,"vi-VN","CP1258"],                      [0x0452,"cy-GB","CP1252"],                      [0x0488,"wo-SN","CP1252"],                      [0x0485,"sah-RU","CP1251"],                      [0x0478,"ii-CN","UNICODE"],                      [0x046A,"yo-NG","CP1252"],                     ]</td>
         | 
| 345 | 
            +
             | 
| 346 | 
            +
             | 
| 347 | 
            +
             | 
| 348 | 
            +
            </tr>
         | 
| 349 | 
            +
            </table></p>
         | 
| 350 | 
            +
             | 
| 351 | 
            +
             | 
| 352 | 
            +
             | 
| 353 | 
            +
             | 
| 354 | 
            +
             | 
| 355 | 
            +
            </div><div class="clear" id="footer">Generated on May 9, 2009 / Allison 2 © 2007 <a href="http://cloudbur.st">Cloudburst, LLC</a></div></div></body></html>
         | 
| @@ -0,0 +1,585 @@ | |
| 1 | 
            +
            <html xml:lang="en" xmlns="http://www.w3.org/1999/xhtml" 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></div><div class="clear"></div><div id="left">
         | 
| 321 | 
            +
             | 
| 322 | 
            +
            <div class="navigation darker top" id="defined_in"><h3>Defined in</h3>
         | 
| 323 | 
            +
             | 
| 324 | 
            +
            <a href="../../files/lib/locale/info/language_rb.html">lib/locale/info/language.rb</a>
         | 
| 325 | 
            +
             | 
| 326 | 
            +
             | 
| 327 | 
            +
            <a href="../../files/lib/locale/info/region_rb.html">lib/locale/info/region.rb</a>
         | 
| 328 | 
            +
             | 
| 329 | 
            +
            </div>
         | 
| 330 | 
            +
             | 
| 331 | 
            +
             | 
| 332 | 
            +
             | 
| 333 | 
            +
            <div class="navigation top" id="methods"><h3>Methods</h3>
         | 
| 334 | 
            +
             | 
| 335 | 
            +
             | 
| 336 | 
            +
            <a href='#M000053'>
         | 
| 337 | 
            +
            get_language<br/>
         | 
| 338 | 
            +
            </a>
         | 
| 339 | 
            +
             | 
| 340 | 
            +
             | 
| 341 | 
            +
             | 
| 342 | 
            +
             | 
| 343 | 
            +
            <a href='#M000056'>
         | 
| 344 | 
            +
            get_region<br/>
         | 
| 345 | 
            +
            </a>
         | 
| 346 | 
            +
             | 
| 347 | 
            +
             | 
| 348 | 
            +
             | 
| 349 | 
            +
             | 
| 350 | 
            +
            <a href='#M000054'>
         | 
| 351 | 
            +
            language_code?<br/>
         | 
| 352 | 
            +
            </a>
         | 
| 353 | 
            +
             | 
| 354 | 
            +
             | 
| 355 | 
            +
             | 
| 356 | 
            +
             | 
| 357 | 
            +
            <a href='#M000055'>
         | 
| 358 | 
            +
            regions<br/>
         | 
| 359 | 
            +
            </a>
         | 
| 360 | 
            +
             | 
| 361 | 
            +
             | 
| 362 | 
            +
             | 
| 363 | 
            +
             | 
| 364 | 
            +
            <a href='#M000051'>
         | 
| 365 | 
            +
            three_languages<br/>
         | 
| 366 | 
            +
            </a>
         | 
| 367 | 
            +
             | 
| 368 | 
            +
             | 
| 369 | 
            +
             | 
| 370 | 
            +
             | 
| 371 | 
            +
            <a href='#M000052'>
         | 
| 372 | 
            +
            two_languages<br/>
         | 
| 373 | 
            +
            </a>
         | 
| 374 | 
            +
             | 
| 375 | 
            +
             | 
| 376 | 
            +
             | 
| 377 | 
            +
             | 
| 378 | 
            +
            <a href='#M000057'>
         | 
| 379 | 
            +
            valid_region_code?<br/>
         | 
| 380 | 
            +
            </a>
         | 
| 381 | 
            +
             | 
| 382 | 
            +
             | 
| 383 | 
            +
            </div>
         | 
| 384 | 
            +
            <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 href="#" onclick="toggle('class'); toggleText('class_link'); return false;" id="class_link">Hide...</a></div><div class="clear"></div><div id="class"><form><label for="filter_class">Filter:  </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 href="#" onclick="toggle('file'); toggleText('file_link'); return false;" id="file_link">Hide...</a></div><div class="clear"></div><div id="file"><form><label for="filter_file">Filter:  </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 href="#" onclick="toggle('method'); toggleText('method_link'); return false;" id="method_link">Show...</a></div><div class="clear"></div><div id="method"><form><label for="filter_method">Filter:  </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">
         | 
| 385 | 
            +
            <h1 id="item_name">Module: Locale::Info</h1>
         | 
| 386 | 
            +
             | 
| 387 | 
            +
             | 
| 388 | 
            +
             | 
| 389 | 
            +
             | 
| 390 | 
            +
             | 
| 391 | 
            +
            <p></p>
         | 
| 392 | 
            +
             | 
| 393 | 
            +
            <h1>Child modules and classes</h1><p>Class <a href="Info/Language.html" class="link">Locale::Info::Language</a><br />
         | 
| 394 | 
            +
            Class <a href="Info/Region.html" class="link">Locale::Info::Region</a><br />
         | 
| 395 | 
            +
            </p>
         | 
| 396 | 
            +
             | 
| 397 | 
            +
             | 
| 398 | 
            +
             | 
| 399 | 
            +
             | 
| 400 | 
            +
             | 
| 401 | 
            +
            <h1>Public Instance Methods</h1>
         | 
| 402 | 
            +
             | 
| 403 | 
            +
             | 
| 404 | 
            +
            <a class="small" name="M000053"><br/></a>
         | 
| 405 | 
            +
            <div class="method_block"><h3>
         | 
| 406 | 
            +
            <a href='#M000053'>
         | 
| 407 | 
            +
             | 
| 408 | 
            +
             | 
| 409 | 
            +
            get_language
         | 
| 410 | 
            +
             | 
| 411 | 
            +
            (code)
         | 
| 412 | 
            +
             | 
| 413 | 
            +
            </a>
         | 
| 414 | 
            +
            </h3>
         | 
| 415 | 
            +
            <p>
         | 
| 416 | 
            +
            Returns the language for the given 2 or 3 digit code.
         | 
| 417 | 
            +
            </p>
         | 
| 418 | 
            +
            <p>
         | 
| 419 | 
            +
            Need to require ‘locale/info’ or ‘locale/language’.
         | 
| 420 | 
            +
            </p>
         | 
| 421 | 
            +
             | 
| 422 | 
            +
            <p class="source_link" id="M000053-show-link"><a href="#" onclick="toggle('M000053-source'); toggleText('M000053-link'); return false;" id="M000053-link">Show source...</a></p><div class="source" id="M000053-source"><pre>     <span class="ruby-comment cmt"># File lib/locale/info/language.rb, line 124</span>
         | 
| 423 | 
            +
            124:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_language</span>(<span class="ruby-identifier">code</span>)
         | 
| 424 | 
            +
            125:       <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>]
         | 
| 425 | 
            +
            126:     <span class="ruby-keyword kw">end</span></pre></div>
         | 
| 426 | 
            +
            </div>
         | 
| 427 | 
            +
             | 
| 428 | 
            +
            <a class="small" name="M000056"><br/></a>
         | 
| 429 | 
            +
            <div class="method_block"><h3>
         | 
| 430 | 
            +
            <a href='#M000056'>
         | 
| 431 | 
            +
             | 
| 432 | 
            +
             | 
| 433 | 
            +
            get_region
         | 
| 434 | 
            +
             | 
| 435 | 
            +
            (code)
         | 
| 436 | 
            +
             | 
| 437 | 
            +
            </a>
         | 
| 438 | 
            +
            </h3>
         | 
| 439 | 
            +
            <p>
         | 
| 440 | 
            +
            Returns the region for the given code.
         | 
| 441 | 
            +
            </p>
         | 
| 442 | 
            +
            <p>
         | 
| 443 | 
            +
            You need to require ‘locale/info’ or
         | 
| 444 | 
            +
            ‘locale/info/region’.
         | 
| 445 | 
            +
            </p>
         | 
| 446 | 
            +
             | 
| 447 | 
            +
            <p class="source_link" id="M000056-show-link"><a href="#" onclick="toggle('M000056-source'); toggleText('M000056-link'); return false;" id="M000056-link">Show source...</a></p><div class="source" id="M000056-source"><pre>    <span class="ruby-comment cmt"># File lib/locale/info/region.rb, line 64</span>
         | 
| 448 | 
            +
            64:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">get_region</span>(<span class="ruby-identifier">code</span>)
         | 
| 449 | 
            +
            65:       <span class="ruby-ivar">@@regions</span>[<span class="ruby-identifier">code</span>]
         | 
| 450 | 
            +
            66:     <span class="ruby-keyword kw">end</span></pre></div>
         | 
| 451 | 
            +
            </div>
         | 
| 452 | 
            +
             | 
| 453 | 
            +
            <a class="small" name="M000054"><br/></a>
         | 
| 454 | 
            +
            <div class="method_block"><h3>
         | 
| 455 | 
            +
            <a href='#M000054'>
         | 
| 456 | 
            +
             | 
| 457 | 
            +
             | 
| 458 | 
            +
            language_code?
         | 
| 459 | 
            +
             | 
| 460 | 
            +
            (code)
         | 
| 461 | 
            +
             | 
| 462 | 
            +
            </a>
         | 
| 463 | 
            +
            </h3>
         | 
| 464 | 
            +
            <p>
         | 
| 465 | 
            +
            Returns the language code is valid.
         | 
| 466 | 
            +
            </p>
         | 
| 467 | 
            +
            <p>
         | 
| 468 | 
            +
            Need to require ‘locale/info’ or ‘locale/language’.
         | 
| 469 | 
            +
            </p>
         | 
| 470 | 
            +
             | 
| 471 | 
            +
            <p class="source_link" id="M000054-show-link"><a href="#" onclick="toggle('M000054-source'); toggleText('M000054-link'); return false;" id="M000054-link">Show source...</a></p><div class="source" id="M000054-source"><pre>     <span class="ruby-comment cmt"># File lib/locale/info/language.rb, line 131</span>
         | 
| 472 | 
            +
            131:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">language_code?</span>(<span class="ruby-identifier">code</span>)
         | 
| 473 | 
            +
            132:       <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>
         | 
| 474 | 
            +
            133:     <span class="ruby-keyword kw">end</span></pre></div>
         | 
| 475 | 
            +
            </div>
         | 
| 476 | 
            +
             | 
| 477 | 
            +
            <a class="small" name="M000055"><br/></a>
         | 
| 478 | 
            +
            <div class="method_block"><h3>
         | 
| 479 | 
            +
            <a href='#M000055'>
         | 
| 480 | 
            +
             | 
| 481 | 
            +
             | 
| 482 | 
            +
            regions
         | 
| 483 | 
            +
             | 
| 484 | 
            +
            ()
         | 
| 485 | 
            +
             | 
| 486 | 
            +
            </a>
         | 
| 487 | 
            +
            </h3>
         | 
| 488 | 
            +
            <p>
         | 
| 489 | 
            +
            Returns a hash of all the ISO <a href="Info.html#M000055">regions</a>. The
         | 
| 490 | 
            +
            hash is {String, <a href="Info/Region.html">Region</a>} where the string is
         | 
| 491 | 
            +
            the 2 digit region code from the ISO 3166 data.
         | 
| 492 | 
            +
            </p>
         | 
| 493 | 
            +
            <p>
         | 
| 494 | 
            +
            You need to require ‘locale/info’ or
         | 
| 495 | 
            +
            ‘locale/region’.
         | 
| 496 | 
            +
            </p>
         | 
| 497 | 
            +
             | 
| 498 | 
            +
            <p class="source_link" id="M000055-show-link"><a href="#" onclick="toggle('M000055-source'); toggleText('M000055-link'); return false;" id="M000055-link">Show source...</a></p><div class="source" id="M000055-source"><pre>    <span class="ruby-comment cmt"># File lib/locale/info/region.rb, line 57</span>
         | 
| 499 | 
            +
            57:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">regions</span>
         | 
| 500 | 
            +
            58:       <span class="ruby-ivar">@@regions</span>
         | 
| 501 | 
            +
            59:     <span class="ruby-keyword kw">end</span></pre></div>
         | 
| 502 | 
            +
            </div>
         | 
| 503 | 
            +
             | 
| 504 | 
            +
            <a class="small" name="M000051"><br/></a>
         | 
| 505 | 
            +
            <div class="method_block"><h3>
         | 
| 506 | 
            +
            <a href='#M000051'>
         | 
| 507 | 
            +
             | 
| 508 | 
            +
             | 
| 509 | 
            +
            three_languages
         | 
| 510 | 
            +
             | 
| 511 | 
            +
            ()
         | 
| 512 | 
            +
             | 
| 513 | 
            +
            </a>
         | 
| 514 | 
            +
            </h3>
         | 
| 515 | 
            +
            <p>
         | 
| 516 | 
            +
            Returns a hash of all the ISO languages. The hash is {String, language}
         | 
| 517 | 
            +
            where the string is the 3 digit language code from the ISO 639 data. This
         | 
| 518 | 
            +
            contains all of the data from the ISO 639-3 data (7600 Languages).
         | 
| 519 | 
            +
            </p>
         | 
| 520 | 
            +
            <p>
         | 
| 521 | 
            +
            Need to require ‘locale/info’ or ‘locale/language’.
         | 
| 522 | 
            +
            </p>
         | 
| 523 | 
            +
             | 
| 524 | 
            +
            <p class="source_link" id="M000051-show-link"><a href="#" onclick="toggle('M000051-source'); toggleText('M000051-link'); return false;" id="M000051-link">Show source...</a></p><div class="source" id="M000051-source"><pre>     <span class="ruby-comment cmt"># File lib/locale/info/language.rb, line 108</span>
         | 
| 525 | 
            +
            108:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">three_languages</span>
         | 
| 526 | 
            +
            109:       <span class="ruby-ivar">@@lang_three_codes</span>
         | 
| 527 | 
            +
            110:     <span class="ruby-keyword kw">end</span></pre></div>
         | 
| 528 | 
            +
            </div>
         | 
| 529 | 
            +
             | 
| 530 | 
            +
            <a class="small" name="M000052"><br/></a>
         | 
| 531 | 
            +
            <div class="method_block"><h3>
         | 
| 532 | 
            +
            <a href='#M000052'>
         | 
| 533 | 
            +
             | 
| 534 | 
            +
             | 
| 535 | 
            +
            two_languages
         | 
| 536 | 
            +
             | 
| 537 | 
            +
            ()
         | 
| 538 | 
            +
             | 
| 539 | 
            +
            </a>
         | 
| 540 | 
            +
            </h3>
         | 
| 541 | 
            +
            <p>
         | 
| 542 | 
            +
            Returns a hash of all the ISO languages. The hash is {String, language}
         | 
| 543 | 
            +
            where the string is the 2 digit language code from the ISO 639-1 data. This
         | 
| 544 | 
            +
            contains all of the data from the ISO 639-1 data (186 Languages).
         | 
| 545 | 
            +
            </p>
         | 
| 546 | 
            +
            <p>
         | 
| 547 | 
            +
            Need to require ‘locale/info’ or ‘locale/language’.
         | 
| 548 | 
            +
            </p>
         | 
| 549 | 
            +
             | 
| 550 | 
            +
            <p class="source_link" id="M000052-show-link"><a href="#" onclick="toggle('M000052-source'); toggleText('M000052-link'); return false;" id="M000052-link">Show source...</a></p><div class="source" id="M000052-source"><pre>     <span class="ruby-comment cmt"># File lib/locale/info/language.rb, line 117</span>
         | 
| 551 | 
            +
            117:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">two_languages</span>
         | 
| 552 | 
            +
            118:       <span class="ruby-ivar">@@lang_two_codes</span>
         | 
| 553 | 
            +
            119:     <span class="ruby-keyword kw">end</span></pre></div>
         | 
| 554 | 
            +
            </div>
         | 
| 555 | 
            +
             | 
| 556 | 
            +
            <a class="small" name="M000057"><br/></a>
         | 
| 557 | 
            +
            <div class="method_block"><h3>
         | 
| 558 | 
            +
            <a href='#M000057'>
         | 
| 559 | 
            +
             | 
| 560 | 
            +
             | 
| 561 | 
            +
            valid_region_code?
         | 
| 562 | 
            +
             | 
| 563 | 
            +
            (code)
         | 
| 564 | 
            +
             | 
| 565 | 
            +
            </a>
         | 
| 566 | 
            +
            </h3>
         | 
| 567 | 
            +
            <p>
         | 
| 568 | 
            +
            Returns the region code is valid.
         | 
| 569 | 
            +
            </p>
         | 
| 570 | 
            +
            <p>
         | 
| 571 | 
            +
            You need to require ‘locale/info’ or
         | 
| 572 | 
            +
            ‘locale/info/region’.
         | 
| 573 | 
            +
            </p>
         | 
| 574 | 
            +
             | 
| 575 | 
            +
            <p class="source_link" id="M000057-show-link"><a href="#" onclick="toggle('M000057-source'); toggleText('M000057-link'); return false;" id="M000057-link">Show source...</a></p><div class="source" id="M000057-source"><pre>    <span class="ruby-comment cmt"># File lib/locale/info/region.rb, line 71</span>
         | 
| 576 | 
            +
            71:     <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">valid_region_code?</span>(<span class="ruby-identifier">code</span>)
         | 
| 577 | 
            +
            72:       <span class="ruby-ivar">@@regions</span>[<span class="ruby-identifier">code</span>] <span class="ruby-operator">!=</span> <span class="ruby-keyword kw">nil</span>
         | 
| 578 | 
            +
            73:     <span class="ruby-keyword kw">end</span></pre></div>
         | 
| 579 | 
            +
            </div>
         | 
| 580 | 
            +
             | 
| 581 | 
            +
             | 
| 582 | 
            +
             | 
| 583 | 
            +
             | 
| 584 | 
            +
             | 
| 585 | 
            +
            </div><div class="clear" id="footer">Generated on May 9, 2009 / Allison 2 © 2007 <a href="http://cloudbur.st">Cloudburst, LLC</a></div></div></body></html>
         |