Skip to content
Browse files

initial import

  • Loading branch information...
0 parents commit 4fcb0fdc583e09ae34717e062e30a7a74c5b33d5 @dichodaemon dichodaemon committed Mar 22, 2007
Showing with 4,997 additions and 0 deletions.
  1. +5 −0 History.txt
  2. +7 −0 Manifest.txt
  3. +65 −0 README.txt
  4. +18 −0 Rakefile
  5. +429 −0 doc/classes/Oniguruma.html
  6. +373 −0 doc/classes/Oniguruma/MatchData.html
  7. +27 −0 doc/classes/Oniguruma/MatchData.src/M000001.html
  8. +26 −0 doc/classes/Oniguruma/MatchData.src/M000002.html
  9. +22 −0 doc/classes/Oniguruma/MatchData.src/M000003.html
  10. +18 −0 doc/classes/Oniguruma/MatchData.src/M000004.html
  11. +18 −0 doc/classes/Oniguruma/MatchData.src/M000005.html
  12. +18 −0 doc/classes/Oniguruma/MatchData.src/M000006.html
  13. +18 −0 doc/classes/Oniguruma/MatchData.src/M000007.html
  14. +18 −0 doc/classes/Oniguruma/MatchData.src/M000009.html
  15. +18 −0 doc/classes/Oniguruma/MatchData.src/M000010.html
  16. +18 −0 doc/classes/Oniguruma/MatchData.src/M000011.html
  17. +18 −0 doc/classes/Oniguruma/MatchData.src/M000012.html
  18. +18 −0 doc/classes/Oniguruma/MatchData.src/M000013.html
  19. +18 −0 doc/classes/Oniguruma/MatchData.src/M000014.html
  20. +18 −0 doc/classes/Oniguruma/MatchData.src/M000015.html
  21. +20 −0 doc/classes/Oniguruma/MatchData.src/M000016.html
  22. +298 −0 doc/classes/Oniguruma/MultiMatchData.html
  23. +20 −0 doc/classes/Oniguruma/MultiMatchData.src/M000017.html
  24. +18 −0 doc/classes/Oniguruma/MultiMatchData.src/M000018.html
  25. +22 −0 doc/classes/Oniguruma/MultiMatchData.src/M000019.html
  26. +18 −0 doc/classes/Oniguruma/MultiMatchData.src/M000020.html
  27. +18 −0 doc/classes/Oniguruma/MultiMatchData.src/M000021.html
  28. +18 −0 doc/classes/Oniguruma/MultiMatchData.src/M000022.html
  29. +18 −0 doc/classes/Oniguruma/MultiMatchData.src/M000024.html
  30. +18 −0 doc/classes/Oniguruma/MultiMatchData.src/M000025.html
  31. +18 −0 doc/classes/Oniguruma/MultiMatchData.src/M000026.html
  32. +20 −0 doc/classes/Oniguruma/MultiMatchData.src/M000027.html
  33. +548 −0 doc/classes/Oniguruma/ORegexp.html
  34. +18 −0 doc/classes/Oniguruma/ORegexp.src/M000028.html
  35. +22 −0 doc/classes/Oniguruma/ORegexp.src/M000029.html
  36. +19 −0 doc/classes/Oniguruma/ORegexp.src/M000030.html
  37. +18 −0 doc/classes/Oniguruma/ORegexp.src/M000031.html
  38. +18 −0 doc/classes/Oniguruma/ORegexp.src/M000033.html
  39. +18 −0 doc/classes/Oniguruma/ORegexp.src/M000034.html
  40. +18 −0 doc/classes/Oniguruma/ORegexp.src/M000035.html
  41. +29 −0 doc/classes/Oniguruma/ORegexp.src/M000036.html
  42. +22 −0 doc/classes/Oniguruma/ORegexp.src/M000037.html
  43. +21 −0 doc/classes/Oniguruma/ORegexp.src/M000038.html
  44. +18 −0 doc/classes/Oniguruma/ORegexp.src/M000040.html
  45. +40 −0 doc/classes/Oniguruma/ORegexp.src/M000041.html
  46. +24 −0 doc/classes/Oniguruma/ORegexp.src/M000042.html
  47. +27 −0 doc/classes/Oniguruma/ORegexp.src/M000043.html
  48. +24 −0 doc/classes/Oniguruma/ORegexp.src/M000044.html
  49. +26 −0 doc/classes/Oniguruma/ORegexp.src/M000045.html
  50. +26 −0 doc/classes/Oniguruma/ORegexp.src/M000046.html
  51. +1 −0 doc/created.rid
  52. +14 −0 doc/dot/f_0.dot
  53. BIN doc/dot/f_0.png
  54. +14 −0 doc/dot/f_1.dot
  55. BIN doc/dot/f_1.png
  56. +57 −0 doc/dot/f_2.dot
  57. BIN doc/dot/f_2.png
  58. +57 −0 doc/dot/f_3.dot
  59. BIN doc/dot/f_3.png
  60. +14 −0 doc/dot/f_4.dot
  61. BIN doc/dot/f_4.png
  62. +57 −0 doc/dot/m_2_0.dot
  63. BIN doc/dot/m_2_0.png
  64. +57 −0 doc/dot/m_3_0.dot
  65. BIN doc/dot/m_3_0.png
  66. +120 −0 doc/files/History_txt.html
  67. +216 −0 doc/files/README_txt.html
  68. +113 −0 doc/files/ext/extconf_rb.html
  69. +110 −0 doc/files/ext/oregexp_c.html
  70. +117 −0 doc/files/lib/oniguruma_rb.html
  71. +30 −0 doc/fr_class_index.html
  72. +31 −0 doc/fr_file_index.html
  73. +72 −0 doc/fr_method_index.html
  74. +24 −0 doc/index.html
  75. +208 −0 doc/rdoc-style.css
  76. +146 −0 ext/Makefile
  77. +3 −0 ext/extconf.rb
  78. +13 −0 ext/mkmf.log
  79. +194 −0 ext/oregexp.c
  80. BIN ext/oregexp.so
  81. +491 −0 lib/oniguruma.rb
  82. +12 −0 sandbox/regexp_hook.rb
  83. +214 −0 test/test_oniguruma.rb
5 History.txt
@@ -0,0 +1,5 @@
+== 1.0.0 / 2007-03-19
+
+* 1 major enhancement
+ * Birthday!
+
7 Manifest.txt
@@ -0,0 +1,7 @@
+History.txt
+Manifest.txt
+README.txt
+Rakefile
+lib/oniguruma.rb
+ext/oregexp.c
+test/test_oniguruma.rb
65 README.txt
@@ -0,0 +1,65 @@
+== ONIGURUMA FOR RUBY:
+
+Ruby bindings to the Oniguruma[http://www.geocities.jp/kosako3/oniguruma/] regular expression library (no need to recompile Ruby).
+
+== FEATURES:
+
+* Increased performance.
+* Same interface than standard Regexp class (easy transition!).
+* Support for named groups, look-ahead, look-behind, and other
+ cool features!
+
+== SYNOPSIS:
+
+ reg = Oniguruma::ORegex.new( '(?<before>.*)(a)(?<after>.*)' )
+ match = reg.match( 'terraforming' )
+ puts match[0] <= 'terraforming'
+ puts match[:before] <= 'terr'
+ puts match[:after] <= 'forming'
+
+== REQUIREMENTS:
+
+* Oniguruma[http://www.geocities.jp/kosako3/oniguruma/] library v. 2.0 or greater
+
+== INSTALL:
+
+sudo gem install -r oniguruma
+
+== BUGS/PROBLEMS/INCOMPATIBILITIES:
+
+* <code>ORegexp#~</code> is not implemented.
+* <code>ORegexp#kcode</code> results are not compatible with <code>Regexp</code>.
+* <code>ORegexp</code> options set in the string are not visible, this affects
+ <code>ORegexp#options</code>, <code>ORegexp#to_s</code>, <code>ORegexp#inspect</code>
+ and <code>ORegexp#==</code>.
+
+== TODO:
+
+* Complete documentation (methods, oniguruma syntax).
+
+== CREDITS:
+
+* K.Kosako, for his great library.
+* A lot of the documentation has been copied from the orininal Ruby Regex documentation.
+
+== LICENSE:
+
+New BSD License
+
+Copyright (c) 2007, Dizan Vasquez
+All rights reserved.
+
+Redistribution and use in source and binary forms, with or without modification, are permitted provided that the following conditions are met:
+
+* Redistributions of source code must retain the above copyright notice, this list of conditions and the following disclaimer.
+* Redistributions in binary form must reproduce the above copyright notice, this list of conditions and the following disclaimer in the
+ documentation and/or other materials provided with the distribution.
+* Neither the name of the author nor the names of its contributors may be used to endorse or promote products derived from this
+ software without specific prior written permission.
+
+THIS SOFTWARE IS PROVIDED BY THE COPYRIGHT HOLDERS AND CONTRIBUTORS "AS IS" AND ANY EXPRESS OR IMPLIED WARRANTIES, INCLUDING, BUT NOT
+LIMITED TO, THE IMPLIED WARRANTIES OF MERCHANTABILITY AND FITNESS FOR A PARTICULAR PURPOSE ARE DISCLAIMED. IN NO EVENT SHALL THE COPYRIGHT
+OWNER OR CONTRIBUTORS BE LIABLE FOR ANY DIRECT, INDIRECT, INCIDENTAL, SPECIAL, EXEMPLARY, OR CONSEQUENTIAL DAMAGES (INCLUDING, BUT NOT
+LIMITED TO, PROCUREMENT OF SUBSTITUTE GOODS OR SERVICES; LOSS OF USE, DATA, OR PROFITS; OR BUSINESS INTERRUPTION) HOWEVER CAUSED AND ON ANY
+THEORY OF LIABILITY, WHETHER IN CONTRACT, STRICT LIABILITY, OR TORT (INCLUDING NEGLIGENCE OR OTHERWISE) ARISING IN ANY WAY OUT OF THE USE OF
+THIS SOFTWARE, EVEN IF ADVISED OF THE POSSIBILITY OF SUCH DAMAGE.
18 Rakefile
@@ -0,0 +1,18 @@
+require 'rubygems'
+require 'hoe'
+
+class Hoe; def extra_deps; @extra_deps.reject { |x| Array(x).first == 'hoe' }; end end
+
+Hoe.new('oniguruma', '0.9.0') do |p|
+ p.rubyforge_name = 'oniguruma'
+ p.author = 'Dizan Vasquez'
+ p.email = 'dix_ans@yahoo.com'
+ p.summary = 'Bindings for the oniguruma regular expression library'
+ p.description = p.paragraphs_of('README.txt', 1 ).join('\n\n')
+ p.url = 'http://oniguruma.rubyforge.org'
+ p.spec_extras[:extensions] = ["ext/extconf.rb"]
+ p.rdoc_pattern = /^(lib|bin|ext)|txt$/
+ p.changes = p.paragraphs_of('History.txt', 0..1).join("\n\n")
+end
+
+
429 doc/classes/Oniguruma.html
@@ -0,0 +1,429 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Module: Oniguruma</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href=".././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Module</strong></td>
+ <td class="class-name-in-header">Oniguruma</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../files/lib/oniguruma_rb.html">
+ lib/oniguruma.rb
+ </a>
+ <br />
+ <a href="../files/ext/oregexp_c.html">
+ ext/oregexp.c
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+ <div id="diagram">
+ <map id="map" name="map">
+ <area shape="RECT" coords="251,50,331,98" href="Oniguruma/MatchData.html" alt="MatchData">
+ <area shape="RECT" coords="125,50,227,98" href="Oniguruma/MultiMatchData.html" alt="MultiMatchData">
+ <area shape="RECT" coords="27,50,101,98" href="Oniguruma/ORegexp.html" alt="ORegexp">
+ <area shape="RECT" coords="16,16,368,108" href="Oniguruma.html" alt="Oniguruma">
+</map>
+<img src="../dot/m_3_0.png" usemap="#map" border=0 alt="Module: Oniguruma">
+ </div>
+
+
+
+ </div>
+
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+ <div id="class-list">
+ <h3 class="section-bar">Classes and Modules</h3>
+
+ Class <a href="Oniguruma/MatchData.html" class="link">Oniguruma::MatchData</a><br />
+Class <a href="Oniguruma/MultiMatchData.html" class="link">Oniguruma::MultiMatchData</a><br />
+Class <a href="Oniguruma/ORegexp.html" class="link">Oniguruma::ORegexp</a><br />
+
+ </div>
+
+ <div id="constants-list">
+ <h3 class="section-bar">Constants</h3>
+
+ <div class="name-list">
+ <table summary="Constants">
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">OPTION_NONE</td>
+ <td>=</td>
+ <td class="context-item-value">0</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">OPTION_IGNORECASE</td>
+ <td>=</td>
+ <td class="context-item-value">1</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">OPTION_EXTEND</td>
+ <td>=</td>
+ <td class="context-item-value">(OPTION_IGNORECASE &lt;&lt; 1)</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">OPTION_MULTILINE</td>
+ <td>=</td>
+ <td class="context-item-value">(OPTION_EXTEND &lt;&lt; 1)</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">OPTION_SINGLELINE</td>
+ <td>=</td>
+ <td class="context-item-value">(OPTION_MULTILINE &lt;&lt; 1)</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">OPTION_FIND_LONGEST</td>
+ <td>=</td>
+ <td class="context-item-value">(OPTION_SINGLELINE &lt;&lt; 1)</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">OPTION_FIND_NOT_EMPTY</td>
+ <td>=</td>
+ <td class="context-item-value">(OPTION_FIND_LONGEST &lt;&lt; 1)</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">OPTION_NEGATE_SINGLELINE</td>
+ <td>=</td>
+ <td class="context-item-value">(OPTION_FIND_NOT_EMPTY &lt;&lt; 1)</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">OPTION_DONT_CAPTURE_GROUP</td>
+ <td>=</td>
+ <td class="context-item-value">(OPTION_NEGATE_SINGLELINE &lt;&lt; 1)</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">OPTION_CAPTURE_GROUP</td>
+ <td>=</td>
+ <td class="context-item-value">(OPTION_DONT_CAPTURE_GROUP &lt;&lt; 1)</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">OPTION_NOTBOL</td>
+ <td>=</td>
+ <td class="context-item-value">(OPTION_CAPTURE_GROUP &lt;&lt; 1)</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">OPTION_NOTEOL</td>
+ <td>=</td>
+ <td class="context-item-value">(OPTION_NOTBOL &lt;&lt; 1)</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">OPTION_POSIX_REGION</td>
+ <td>=</td>
+ <td class="context-item-value">(OPTION_NOTEOL &lt;&lt; 1)</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">OPTION_MAXBIT</td>
+ <td>=</td>
+ <td class="context-item-value">OPTION_POSIX_REGION</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">OPTION_DEFAULT</td>
+ <td>=</td>
+ <td class="context-item-value">OPTION_NONE</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">SYNTAX_ASIS</td>
+ <td>=</td>
+ <td class="context-item-value">0</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">SYNTAX_POSIX_BASIC</td>
+ <td>=</td>
+ <td class="context-item-value">1</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">SYNTAX_POSIX_EXTENDED</td>
+ <td>=</td>
+ <td class="context-item-value">2</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">SYNTAX_EMACS</td>
+ <td>=</td>
+ <td class="context-item-value">3</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">SYNTAX_GREP</td>
+ <td>=</td>
+ <td class="context-item-value">4</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">SYNTAX_GNU_REGEX</td>
+ <td>=</td>
+ <td class="context-item-value">5</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">SYNTAX_JAVA</td>
+ <td>=</td>
+ <td class="context-item-value">6</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">SYNTAX_PERL</td>
+ <td>=</td>
+ <td class="context-item-value">7</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">SYNTAX_PERL_NG</td>
+ <td>=</td>
+ <td class="context-item-value">8</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">SYNTAX_RUBY</td>
+ <td>=</td>
+ <td class="context-item-value">9</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">SYNTAX_DEFAULT</td>
+ <td>=</td>
+ <td class="context-item-value">10</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_ASCII</td>
+ <td>=</td>
+ <td class="context-item-value">0</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_ISO_8859_1</td>
+ <td>=</td>
+ <td class="context-item-value">1</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_ISO_8859_2</td>
+ <td>=</td>
+ <td class="context-item-value">2</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_ISO_8859_3</td>
+ <td>=</td>
+ <td class="context-item-value">3</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_ISO_8859_4</td>
+ <td>=</td>
+ <td class="context-item-value">4</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_ISO_8859_5</td>
+ <td>=</td>
+ <td class="context-item-value">5</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_ISO_8859_6</td>
+ <td>=</td>
+ <td class="context-item-value">6</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_ISO_8859_7</td>
+ <td>=</td>
+ <td class="context-item-value">7</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_ISO_8859_8</td>
+ <td>=</td>
+ <td class="context-item-value">8</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_ISO_8859_9</td>
+ <td>=</td>
+ <td class="context-item-value">9</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_ISO_8859_10</td>
+ <td>=</td>
+ <td class="context-item-value">10</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_ISO_8859_11</td>
+ <td>=</td>
+ <td class="context-item-value">11</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_ISO_8859_12</td>
+ <td>=</td>
+ <td class="context-item-value">12</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_ISO_8859_13</td>
+ <td>=</td>
+ <td class="context-item-value">13</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_ISO_8859_14</td>
+ <td>=</td>
+ <td class="context-item-value">14</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_ISO_8859_15</td>
+ <td>=</td>
+ <td class="context-item-value">15</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_ISO_8859_16</td>
+ <td>=</td>
+ <td class="context-item-value">16</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_UTF8</td>
+ <td>=</td>
+ <td class="context-item-value">17</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_UTF16_BE</td>
+ <td>=</td>
+ <td class="context-item-value">18</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_UTF16_LE</td>
+ <td>=</td>
+ <td class="context-item-value">19</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_UTF32_BE</td>
+ <td>=</td>
+ <td class="context-item-value">20</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_UTF32_LE</td>
+ <td>=</td>
+ <td class="context-item-value">21</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_EUC_JP</td>
+ <td>=</td>
+ <td class="context-item-value">22</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_EUC_TW</td>
+ <td>=</td>
+ <td class="context-item-value">23</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_EUC_KR</td>
+ <td>=</td>
+ <td class="context-item-value">24</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_EUC_CN</td>
+ <td>=</td>
+ <td class="context-item-value">25</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_SJIS</td>
+ <td>=</td>
+ <td class="context-item-value">26</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_KOI8</td>
+ <td>=</td>
+ <td class="context-item-value">27</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_KOI8_R</td>
+ <td>=</td>
+ <td class="context-item-value">28</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_CP1251</td>
+ <td>=</td>
+ <td class="context-item-value">29</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_BIG5</td>
+ <td>=</td>
+ <td class="context-item-value">30</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_GB18030</td>
+ <td>=</td>
+ <td class="context-item-value">31</td>
+ </tr>
+ <tr class="top-aligned-row context-row">
+ <td class="context-item-name">ENCODING_UNDEF</td>
+ <td>=</td>
+ <td class="context-item-value">32</td>
+ </tr>
+ </table>
+ </div>
+ </div>
+
+
+
+
+
+
+ <!-- if method_list -->
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
373 doc/classes/Oniguruma/MatchData.html
@@ -0,0 +1,373 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: Oniguruma::MatchData</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Class</strong></td>
+ <td class="class-name-in-header">Oniguruma::MatchData</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../files/lib/oniguruma_rb.html">
+ lib/oniguruma.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ <tr class="top-aligned-row">
+ <td><strong>Parent:</strong></td>
+ <td>
+ Object
+ </td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+ <div id="diagram">
+ <map id="map" name="map">
+ <area shape="RECT" coords="251,50,331,98" href="MatchData.html" alt="MatchData">
+ <area shape="RECT" coords="125,50,227,98" href="MultiMatchData.html" alt="MultiMatchData">
+ <area shape="RECT" coords="27,50,101,98" href="ORegexp.html" alt="ORegexp">
+ <area shape="RECT" coords="16,16,368,108" href="../Oniguruma.html" alt="Oniguruma">
+</map>
+<img src="../../dot/m_3_0.png" usemap="#map" border=0 alt="Module: Oniguruma">
+ </div>
+
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000002">[]</a>&nbsp;&nbsp;
+ <a href="#M000004">begin</a>&nbsp;&nbsp;
+ <a href="#M000006">captures</a>&nbsp;&nbsp;
+ <a href="#M000005">end</a>&nbsp;&nbsp;
+ <a href="#M000007">length</a>&nbsp;&nbsp;
+ <a href="#M000001">new</a>&nbsp;&nbsp;
+ <a href="#M000009">offset</a>&nbsp;&nbsp;
+ <a href="#M000010">post_match</a>&nbsp;&nbsp;
+ <a href="#M000011">pre_match</a>&nbsp;&nbsp;
+ <a href="#M000012">select</a>&nbsp;&nbsp;
+ <a href="#M000008">size</a>&nbsp;&nbsp;
+ <a href="#M000013">string</a>&nbsp;&nbsp;
+ <a href="#M000014">to_a</a>&nbsp;&nbsp;
+ <a href="#M000003">to_index</a>&nbsp;&nbsp;
+ <a href="#M000015">to_s</a>&nbsp;&nbsp;
+ <a href="#M000016">values_at</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Class methods</h3>
+
+ <div id="method-M000001" class="method-detail">
+ <a name="M000001"></a>
+
+ <div class="method-heading">
+ <a href="MatchData.src/M000001.html" target="Code" class="method-signature"
+ onclick="popupCode('MatchData.src/M000001.html');return false;">
+ <span class="method-name">new</span><span class="method-args">( string, starts, ends, names )</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <h3 class="section-bar">Public Instance methods</h3>
+
+ <div id="method-M000002" class="method-detail">
+ <a name="M000002"></a>
+
+ <div class="method-heading">
+ <a href="MatchData.src/M000002.html" target="Code" class="method-signature"
+ onclick="popupCode('MatchData.src/M000002.html');return false;">
+ <span class="method-name">[]</span><span class="method-args">( value1, value2 = nil )</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000004" class="method-detail">
+ <a name="M000004"></a>
+
+ <div class="method-heading">
+ <a href="MatchData.src/M000004.html" target="Code" class="method-signature"
+ onclick="popupCode('MatchData.src/M000004.html');return false;">
+ <span class="method-name">begin</span><span class="method-args">(index = 0)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000006" class="method-detail">
+ <a name="M000006"></a>
+
+ <div class="method-heading">
+ <a href="MatchData.src/M000006.html" target="Code" class="method-signature"
+ onclick="popupCode('MatchData.src/M000006.html');return false;">
+ <span class="method-name">captures</span><span class="method-args">()</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000005" class="method-detail">
+ <a name="M000005"></a>
+
+ <div class="method-heading">
+ <a href="MatchData.src/M000005.html" target="Code" class="method-signature"
+ onclick="popupCode('MatchData.src/M000005.html');return false;">
+ <span class="method-name">end</span><span class="method-args">(index = 0)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000007" class="method-detail">
+ <a name="M000007"></a>
+
+ <div class="method-heading">
+ <a href="MatchData.src/M000007.html" target="Code" class="method-signature"
+ onclick="popupCode('MatchData.src/M000007.html');return false;">
+ <span class="method-name">length</span><span class="method-args">()</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000009" class="method-detail">
+ <a name="M000009"></a>
+
+ <div class="method-heading">
+ <a href="MatchData.src/M000009.html" target="Code" class="method-signature"
+ onclick="popupCode('MatchData.src/M000009.html');return false;">
+ <span class="method-name">offset</span><span class="method-args">(index = 0)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000010" class="method-detail">
+ <a name="M000010"></a>
+
+ <div class="method-heading">
+ <a href="MatchData.src/M000010.html" target="Code" class="method-signature"
+ onclick="popupCode('MatchData.src/M000010.html');return false;">
+ <span class="method-name">post_match</span><span class="method-args">()</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000011" class="method-detail">
+ <a name="M000011"></a>
+
+ <div class="method-heading">
+ <a href="MatchData.src/M000011.html" target="Code" class="method-signature"
+ onclick="popupCode('MatchData.src/M000011.html');return false;">
+ <span class="method-name">pre_match</span><span class="method-args">()</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000012" class="method-detail">
+ <a name="M000012"></a>
+
+ <div class="method-heading">
+ <a href="MatchData.src/M000012.html" target="Code" class="method-signature"
+ onclick="popupCode('MatchData.src/M000012.html');return false;">
+ <span class="method-name">select</span><span class="method-args">(&amp;block)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000008" class="method-detail">
+ <a name="M000008"></a>
+
+ <div class="method-heading">
+ <span class="method-name">size</span><span class="method-args">()</span>
+ </div>
+
+ <div class="method-description">
+ <p>
+Alias for <a href="MatchData.html#M000007">length</a>
+</p>
+ </div>
+ </div>
+
+ <div id="method-M000013" class="method-detail">
+ <a name="M000013"></a>
+
+ <div class="method-heading">
+ <a href="MatchData.src/M000013.html" target="Code" class="method-signature"
+ onclick="popupCode('MatchData.src/M000013.html');return false;">
+ <span class="method-name">string</span><span class="method-args">()</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000014" class="method-detail">
+ <a name="M000014"></a>
+
+ <div class="method-heading">
+ <a href="MatchData.src/M000014.html" target="Code" class="method-signature"
+ onclick="popupCode('MatchData.src/M000014.html');return false;">
+ <span class="method-name">to_a</span><span class="method-args">()</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000003" class="method-detail">
+ <a name="M000003"></a>
+
+ <div class="method-heading">
+ <a href="MatchData.src/M000003.html" target="Code" class="method-signature"
+ onclick="popupCode('MatchData.src/M000003.html');return false;">
+ <span class="method-name">to_index</span><span class="method-args">(name)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000015" class="method-detail">
+ <a name="M000015"></a>
+
+ <div class="method-heading">
+ <a href="MatchData.src/M000015.html" target="Code" class="method-signature"
+ onclick="popupCode('MatchData.src/M000015.html');return false;">
+ <span class="method-name">to_s</span><span class="method-args">()</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000016" class="method-detail">
+ <a name="M000016"></a>
+
+ <div class="method-heading">
+ <a href="MatchData.src/M000016.html" target="Code" class="method-signature"
+ onclick="popupCode('MatchData.src/M000016.html');return false;">
+ <span class="method-name">values_at</span><span class="method-args">(*values)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
27 doc/classes/Oniguruma/MatchData.src/M000001.html
@@ -0,0 +1,27 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>new (Oniguruma::MatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 406</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>( <span class="ruby-identifier">string</span>, <span class="ruby-identifier">starts</span>, <span class="ruby-identifier">ends</span>, <span class="ruby-identifier">names</span> )
+ <span class="ruby-ivar">@string</span> = <span class="ruby-identifier">string</span>
+ <span class="ruby-ivar">@starts</span> = <span class="ruby-identifier">starts</span>
+ <span class="ruby-ivar">@ends</span> = <span class="ruby-identifier">ends</span>
+ <span class="ruby-ivar">@matches</span> = []
+ <span class="ruby-ivar">@starts</span>.<span class="ruby-identifier">size</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
+ <span class="ruby-ivar">@matches</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@string</span>[<span class="ruby-ivar">@starts</span>[<span class="ruby-identifier">i</span>]<span class="ruby-operator">...</span><span class="ruby-ivar">@ends</span>[<span class="ruby-identifier">i</span>]]
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-ivar">@match_count</span> = <span class="ruby-ivar">@matches</span>.<span class="ruby-identifier">size</span>
+ <span class="ruby-ivar">@start_pos</span> = <span class="ruby-value">0</span>
+ <span class="ruby-ivar">@names</span> = <span class="ruby-identifier">names</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
26 doc/classes/Oniguruma/MatchData.src/M000002.html
@@ -0,0 +1,26 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>[] (Oniguruma::MatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 419</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span> ( <span class="ruby-identifier">value1</span>, <span class="ruby-identifier">value2</span> = <span class="ruby-keyword kw">nil</span> )
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">value2</span>
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">index</span> = <span class="ruby-identifier">to_index</span>( <span class="ruby-identifier">value1</span> )
+ <span class="ruby-ivar">@matches</span>[<span class="ruby-identifier">index</span>]
+ <span class="ruby-keyword kw">else</span>
+ <span class="ruby-keyword kw">nil</span>
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-keyword kw">else</span>
+ <span class="ruby-ivar">@matches</span>[<span class="ruby-identifier">value1</span>, <span class="ruby-identifier">value2</span>]
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
22 doc/classes/Oniguruma/MatchData.src/M000003.html
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>to_index (Oniguruma::MatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 431</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_index</span> <span class="ruby-identifier">name</span>
+ <span class="ruby-keyword kw">if</span> <span class="ruby-identifier">name</span>.<span class="ruby-identifier">is_a?</span> <span class="ruby-constant">Symbol</span>
+ <span class="ruby-ivar">@names</span>[<span class="ruby-identifier">name</span>]
+ <span class="ruby-keyword kw">else</span>
+ <span class="ruby-identifier">name</span>
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Oniguruma/MatchData.src/M000004.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>begin (Oniguruma::MatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 439</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">begin</span> <span class="ruby-identifier">index</span> = <span class="ruby-value">0</span>
+ <span class="ruby-ivar">@starts</span>[<span class="ruby-identifier">to_index</span>( <span class="ruby-identifier">index</span> )]
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Oniguruma/MatchData.src/M000005.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>end (Oniguruma::MatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 443</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">end</span> <span class="ruby-identifier">index</span> = <span class="ruby-value">0</span>
+ <span class="ruby-ivar">@ends</span>[<span class="ruby-identifier">to_index</span>( <span class="ruby-identifier">index</span> )]
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Oniguruma/MatchData.src/M000006.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>captures (Oniguruma::MatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 447</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">captures</span>
+ <span class="ruby-ivar">@matches</span>[<span class="ruby-value">1</span><span class="ruby-operator">..</span><span class="ruby-value">-1</span>]
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Oniguruma/MatchData.src/M000007.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>length (Oniguruma::MatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 451</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">length</span>
+ <span class="ruby-ivar">@match_count</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Oniguruma/MatchData.src/M000009.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>offset (Oniguruma::MatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 456</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">offset</span> <span class="ruby-identifier">index</span> = <span class="ruby-value">0</span>
+ [<span class="ruby-ivar">@starts</span>[<span class="ruby-identifier">to_index</span>( <span class="ruby-identifier">index</span> )], <span class="ruby-ivar">@ends</span>[<span class="ruby-identifier">to_index</span>( <span class="ruby-identifier">index</span> )]]
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Oniguruma/MatchData.src/M000010.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>post_match (Oniguruma::MatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 460</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">post_match</span>
+ <span class="ruby-ivar">@string</span>[<span class="ruby-ivar">@ends</span>[<span class="ruby-value">0</span>], <span class="ruby-ivar">@string</span>.<span class="ruby-identifier">length</span>]
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Oniguruma/MatchData.src/M000011.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>pre_match (Oniguruma::MatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 464</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">pre_match</span>
+ <span class="ruby-ivar">@string</span>[<span class="ruby-value">0</span>, <span class="ruby-ivar">@starts</span>[<span class="ruby-value">0</span>]]
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Oniguruma/MatchData.src/M000012.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>select (Oniguruma::MatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 468</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">select</span> <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span>
+ <span class="ruby-ivar">@matches</span>.<span class="ruby-identifier">select</span>( <span class="ruby-operator">&amp;</span><span class="ruby-identifier">block</span> )
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Oniguruma/MatchData.src/M000013.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>string (Oniguruma::MatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 472</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">string</span>
+ <span class="ruby-ivar">@string</span>.<span class="ruby-identifier">freeze</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Oniguruma/MatchData.src/M000014.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>to_a (Oniguruma::MatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 476</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_a</span>
+ <span class="ruby-ivar">@matches</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Oniguruma/MatchData.src/M000015.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>to_s (Oniguruma::MatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 480</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_s</span>
+ <span class="ruby-ivar">@matches</span>[<span class="ruby-value">0</span>]
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
20 doc/classes/Oniguruma/MatchData.src/M000016.html
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>values_at (Oniguruma::MatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 484</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">values_at</span> <span class="ruby-operator">*</span><span class="ruby-identifier">values</span>
+ <span class="ruby-identifier">result</span> = []
+ <span class="ruby-identifier">values</span>.<span class="ruby-identifier">each</span> { <span class="ruby-operator">|</span><span class="ruby-identifier">v</span><span class="ruby-operator">|</span> <span class="ruby-identifier">result</span> <span class="ruby-operator">&lt;&lt;</span> <span class="ruby-ivar">@matches</span>[<span class="ruby-identifier">v</span>] }
+ <span class="ruby-identifier">result</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
298 doc/classes/Oniguruma/MultiMatchData.html
@@ -0,0 +1,298 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: Oniguruma::MultiMatchData</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Class</strong></td>
+ <td class="class-name-in-header">Oniguruma::MultiMatchData</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../files/lib/oniguruma_rb.html">
+ lib/oniguruma.rb
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ <tr class="top-aligned-row">
+ <td><strong>Parent:</strong></td>
+ <td>
+ Object
+ </td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+ <div id="diagram">
+ <map id="map" name="map">
+ <area shape="RECT" coords="251,50,331,98" href="MatchData.html" alt="MatchData">
+ <area shape="RECT" coords="125,50,227,98" href="MultiMatchData.html" alt="MultiMatchData">
+ <area shape="RECT" coords="27,50,101,98" href="ORegexp.html" alt="ORegexp">
+ <area shape="RECT" coords="16,16,368,108" href="../Oniguruma.html" alt="Oniguruma">
+</map>
+<img src="../../dot/m_3_0.png" usemap="#map" border=0 alt="Module: Oniguruma">
+ </div>
+
+
+
+ </div>
+
+ <div id="method-list">
+ <h3 class="section-bar">Methods</h3>
+
+ <div class="name-list">
+ <a href="#M000019">[]</a>&nbsp;&nbsp;
+ <a href="#M000020">begin</a>&nbsp;&nbsp;
+ <a href="#M000027">each</a>&nbsp;&nbsp;
+ <a href="#M000021">end</a>&nbsp;&nbsp;
+ <a href="#M000022">length</a>&nbsp;&nbsp;
+ <a href="#M000017">new</a>&nbsp;&nbsp;
+ <a href="#M000024">offset</a>&nbsp;&nbsp;
+ <a href="#M000018">position</a>&nbsp;&nbsp;
+ <a href="#M000023">size</a>&nbsp;&nbsp;
+ <a href="#M000025">string</a>&nbsp;&nbsp;
+ <a href="#M000026">to_a</a>&nbsp;&nbsp;
+ </div>
+ </div>
+
+ </div>
+
+
+ <!-- if includes -->
+
+ <div id="section">
+
+
+
+
+
+
+
+
+ <!-- if method_list -->
+ <div id="methods">
+ <h3 class="section-bar">Public Class methods</h3>
+
+ <div id="method-M000017" class="method-detail">
+ <a name="M000017"></a>
+
+ <div class="method-heading">
+ <a href="MultiMatchData.src/M000017.html" target="Code" class="method-signature"
+ onclick="popupCode('MultiMatchData.src/M000017.html');return false;">
+ <span class="method-name">new</span><span class="method-args">( string, matches, positions )</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <h3 class="section-bar">Public Instance methods</h3>
+
+ <div id="method-M000019" class="method-detail">
+ <a name="M000019"></a>
+
+ <div class="method-heading">
+ <a href="MultiMatchData.src/M000019.html" target="Code" class="method-signature"
+ onclick="popupCode('MultiMatchData.src/M000019.html');return false;">
+ <span class="method-name">[]</span><span class="method-args">( value1, value2 = nil )</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000020" class="method-detail">
+ <a name="M000020"></a>
+
+ <div class="method-heading">
+ <a href="MultiMatchData.src/M000020.html" target="Code" class="method-signature"
+ onclick="popupCode('MultiMatchData.src/M000020.html');return false;">
+ <span class="method-name">begin</span><span class="method-args">(index)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000027" class="method-detail">
+ <a name="M000027"></a>
+
+ <div class="method-heading">
+ <a href="MultiMatchData.src/M000027.html" target="Code" class="method-signature"
+ onclick="popupCode('MultiMatchData.src/M000027.html');return false;">
+ <span class="method-name">each</span><span class="method-args">() {|@matches[i], @positions[i]| ...}</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000021" class="method-detail">
+ <a name="M000021"></a>
+
+ <div class="method-heading">
+ <a href="MultiMatchData.src/M000021.html" target="Code" class="method-signature"
+ onclick="popupCode('MultiMatchData.src/M000021.html');return false;">
+ <span class="method-name">end</span><span class="method-args">(index)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000022" class="method-detail">
+ <a name="M000022"></a>
+
+ <div class="method-heading">
+ <a href="MultiMatchData.src/M000022.html" target="Code" class="method-signature"
+ onclick="popupCode('MultiMatchData.src/M000022.html');return false;">
+ <span class="method-name">length</span><span class="method-args">()</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000024" class="method-detail">
+ <a name="M000024"></a>
+
+ <div class="method-heading">
+ <a href="MultiMatchData.src/M000024.html" target="Code" class="method-signature"
+ onclick="popupCode('MultiMatchData.src/M000024.html');return false;">
+ <span class="method-name">offset</span><span class="method-args">(index)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000018" class="method-detail">
+ <a name="M000018"></a>
+
+ <div class="method-heading">
+ <a href="MultiMatchData.src/M000018.html" target="Code" class="method-signature"
+ onclick="popupCode('MultiMatchData.src/M000018.html');return false;">
+ <span class="method-name">position</span><span class="method-args">(index)</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000023" class="method-detail">
+ <a name="M000023"></a>
+
+ <div class="method-heading">
+ <span class="method-name">size</span><span class="method-args">()</span>
+ </div>
+
+ <div class="method-description">
+ <p>
+Alias for <a href="MultiMatchData.html#M000022">length</a>
+</p>
+ </div>
+ </div>
+
+ <div id="method-M000025" class="method-detail">
+ <a name="M000025"></a>
+
+ <div class="method-heading">
+ <a href="MultiMatchData.src/M000025.html" target="Code" class="method-signature"
+ onclick="popupCode('MultiMatchData.src/M000025.html');return false;">
+ <span class="method-name">string</span><span class="method-args">()</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+ <div id="method-M000026" class="method-detail">
+ <a name="M000026"></a>
+
+ <div class="method-heading">
+ <a href="MultiMatchData.src/M000026.html" target="Code" class="method-signature"
+ onclick="popupCode('MultiMatchData.src/M000026.html');return false;">
+ <span class="method-name">to_a</span><span class="method-args">()</span>
+ </a>
+ </div>
+
+ <div class="method-description">
+ </div>
+ </div>
+
+
+ </div>
+
+
+ </div>
+
+
+<div id="validator-badges">
+ <p><small><a href="http://validator.w3.org/check/referer">[Validate]</a></small></p>
+</div>
+
+</body>
+</html>
20 doc/classes/Oniguruma/MultiMatchData.src/M000017.html
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>new (Oniguruma::MultiMatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 355</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">initialize</span>( <span class="ruby-identifier">string</span>, <span class="ruby-identifier">matches</span>, <span class="ruby-identifier">positions</span> )
+ <span class="ruby-ivar">@matches</span> = <span class="ruby-identifier">matches</span>
+ <span class="ruby-ivar">@positions</span> = <span class="ruby-identifier">positions</span>
+ <span class="ruby-ivar">@string</span> = <span class="ruby-identifier">string</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Oniguruma/MultiMatchData.src/M000018.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>position (Oniguruma::MultiMatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 361</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">position</span> <span class="ruby-identifier">index</span>
+ <span class="ruby-ivar">@positions</span>[<span class="ruby-identifier">index</span>]
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
22 doc/classes/Oniguruma/MultiMatchData.src/M000019.html
@@ -0,0 +1,22 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>[] (Oniguruma::MultiMatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 365</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-operator">[]</span> ( <span class="ruby-identifier">value1</span>, <span class="ruby-identifier">value2</span> = <span class="ruby-keyword kw">nil</span> )
+ <span class="ruby-keyword kw">unless</span> <span class="ruby-identifier">value2</span>
+ <span class="ruby-ivar">@matches</span>[<span class="ruby-identifier">value1</span>]
+ <span class="ruby-keyword kw">else</span>
+ <span class="ruby-ivar">@matches</span>[<span class="ruby-identifier">value1</span>, <span class="ruby-identifier">value2</span>]
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Oniguruma/MultiMatchData.src/M000020.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>begin (Oniguruma::MultiMatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 373</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">begin</span> <span class="ruby-identifier">index</span>
+ <span class="ruby-ivar">@matches</span>[<span class="ruby-identifier">index</span>].<span class="ruby-identifier">begin</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@positions</span>[<span class="ruby-identifier">index</span>]
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Oniguruma/MultiMatchData.src/M000021.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>end (Oniguruma::MultiMatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 377</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-keyword kw">end</span> <span class="ruby-identifier">index</span>
+ <span class="ruby-ivar">@matches</span>[<span class="ruby-identifier">index</span>].<span class="ruby-identifier">end</span> <span class="ruby-operator">+</span> <span class="ruby-ivar">@positions</span>[<span class="ruby-identifier">index</span>]
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Oniguruma/MultiMatchData.src/M000022.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>length (Oniguruma::MultiMatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 381</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">length</span>
+ <span class="ruby-ivar">@matches</span>.<span class="ruby-identifier">size</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Oniguruma/MultiMatchData.src/M000024.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>offset (Oniguruma::MultiMatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 386</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">offset</span> <span class="ruby-identifier">index</span>
+ [<span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">begin</span>(<span class="ruby-identifier">index</span>), <span class="ruby-keyword kw">self</span>.<span class="ruby-identifier">end</span>(<span class="ruby-identifier">index</span>) ]
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Oniguruma/MultiMatchData.src/M000025.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>string (Oniguruma::MultiMatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 390</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">string</span>
+ <span class="ruby-ivar">@string</span>.<span class="ruby-identifier">freeze</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
18 doc/classes/Oniguruma/MultiMatchData.src/M000026.html
@@ -0,0 +1,18 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>to_a (Oniguruma::MultiMatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 394</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">to_a</span>
+ <span class="ruby-ivar">@matches</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
20 doc/classes/Oniguruma/MultiMatchData.src/M000027.html
@@ -0,0 +1,20 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html>
+<head>
+ <title>each (Oniguruma::MultiMatchData)</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <link rel="stylesheet" href="../../.././rdoc-style.css" type="text/css" media="screen" />
+</head>
+<body class="standalone-code">
+ <pre><span class="ruby-comment cmt"># File lib/oniguruma.rb, line 398</span>
+ <span class="ruby-keyword kw">def</span> <span class="ruby-identifier">each</span>
+ <span class="ruby-ivar">@matches</span>.<span class="ruby-identifier">size</span>.<span class="ruby-identifier">times</span> <span class="ruby-keyword kw">do</span> <span class="ruby-operator">|</span><span class="ruby-identifier">i</span><span class="ruby-operator">|</span>
+ <span class="ruby-keyword kw">yield</span> <span class="ruby-ivar">@matches</span>[<span class="ruby-identifier">i</span>], <span class="ruby-ivar">@positions</span>[<span class="ruby-identifier">i</span>]
+ <span class="ruby-keyword kw">end</span>
+ <span class="ruby-keyword kw">end</span></pre>
+</body>
+</html>
548 doc/classes/Oniguruma/ORegexp.html
@@ -0,0 +1,548 @@
+<?xml version="1.0" encoding="iso-8859-1"?>
+<!DOCTYPE html
+ PUBLIC "-//W3C//DTD XHTML 1.0 Transitional//EN"
+ "http://www.w3.org/TR/xhtml1/DTD/xhtml1-transitional.dtd">
+
+<html xmlns="http://www.w3.org/1999/xhtml" xml:lang="en" lang="en">
+<head>
+ <title>Class: Oniguruma::ORegexp</title>
+ <meta http-equiv="Content-Type" content="text/html; charset=iso-8859-1" />
+ <meta http-equiv="Content-Script-Type" content="text/javascript" />
+ <link rel="stylesheet" href="../.././rdoc-style.css" type="text/css" media="screen" />
+ <script type="text/javascript">
+ // <![CDATA[
+
+ function popupCode( url ) {
+ window.open(url, "Code", "resizable=yes,scrollbars=yes,toolbar=no,status=no,height=150,width=400")
+ }
+
+ function toggleCode( id ) {
+ if ( document.getElementById )
+ elem = document.getElementById( id );
+ else if ( document.all )
+ elem = eval( "document.all." + id );
+ else
+ return false;
+
+ elemStyle = elem.style;
+
+ if ( elemStyle.display != "block" ) {
+ elemStyle.display = "block"
+ } else {
+ elemStyle.display = "none"
+ }
+
+ return true;
+ }
+
+ // Make codeblocks hidden by default
+ document.writeln( "<style type=\"text/css\">div.method-source-code { display: none }</style>" )
+
+ // ]]>
+ </script>
+
+</head>
+<body>
+
+
+
+ <div id="classHeader">
+ <table class="header-table">
+ <tr class="top-aligned-row">
+ <td><strong>Class</strong></td>
+ <td class="class-name-in-header">Oniguruma::ORegexp</td>
+ </tr>
+ <tr class="top-aligned-row">
+ <td><strong>In:</strong></td>
+ <td>
+ <a href="../../files/lib/oniguruma_rb.html">
+ lib/oniguruma.rb
+ </a>
+ <br />
+ <a href="../../files/ext/oregexp_c.html">
+ ext/oregexp.c
+ </a>
+ <br />
+ </td>
+ </tr>
+
+ <tr class="top-aligned-row">
+ <td><strong>Parent:</strong></td>
+ <td>
+ Object
+ </td>
+ </tr>
+ </table>
+ </div>
+ <!-- banner header -->
+
+ <div id="bodyContent">
+
+
+
+ <div id="contextContent">
+ <div id="diagram">
+ <map id="map" name="map">
+ <area shape="RECT" coords="251,50,331,98" href="MatchData.html" alt="MatchData">
+ <area shape="RECT" coords="125,50,227,98" href="MultiMatchData.html" alt="MultiMatchData">
+ <area shape="RECT" coords="27,50,101,98" href="ORegexp.html" alt="ORegexp">
+ <area shape="RECT" coords="16,16,368,108" href="../Oniguruma.html" alt="Oniguruma">
+</map>