RegexRunner.cs 4.2 KB

123456789101112131415161718192021222324252627282930313233343536373839404142434445464748495051525354555657585960616263646566676869707172737475767778798081828384858687888990919293949596979899100101102103104105106107108109110111112113114115116117118119120121122123124125126127128129130131132133134135136137138139140141142143144145146147148149150151152153154155156157158159160161162163164165166167168
  1. //
  2. // assembly: System
  3. // namespace: System.Text.RegularExpressions
  4. // file: RegexRunner.cs
  5. //
  6. // author: Dan Lewis ([email protected])
  7. // (c) 2002
  8. //
  9. // Permission is hereby granted, free of charge, to any person obtaining
  10. // a copy of this software and associated documentation files (the
  11. // "Software"), to deal in the Software without restriction, including
  12. // without limitation the rights to use, copy, modify, merge, publish,
  13. // distribute, sublicense, and/or sell copies of the Software, and to
  14. // permit persons to whom the Software is furnished to do so, subject to
  15. // the following conditions:
  16. //
  17. // The above copyright notice and this permission notice shall be
  18. // included in all copies or substantial portions of the Software.
  19. //
  20. // THE SOFTWARE IS PROVIDED "AS IS", WITHOUT WARRANTY OF ANY KIND,
  21. // EXPRESS OR IMPLIED, INCLUDING BUT NOT LIMITED TO THE WARRANTIES OF
  22. // MERCHANTABILITY, FITNESS FOR A PARTICULAR PURPOSE AND
  23. // NONINFRINGEMENT. IN NO EVENT SHALL THE AUTHORS OR COPYRIGHT HOLDERS BE
  24. // LIABLE FOR ANY CLAIM, DAMAGES OR OTHER LIABILITY, WHETHER IN AN ACTION
  25. // OF CONTRACT, TORT OR OTHERWISE, ARISING FROM, OUT OF OR IN CONNECTION
  26. // WITH THE SOFTWARE OR THE USE OR OTHER DEALINGS IN THE SOFTWARE.
  27. //
  28. using System;
  29. using System.ComponentModel;
  30. namespace System.Text.RegularExpressions {
  31. [EditorBrowsable (EditorBrowsableState.Never)]
  32. public abstract class RegexRunner {
  33. // constructor
  34. [MonoTODO]
  35. protected internal RegexRunner () {
  36. throw new NotImplementedException ("RegexRunner is not supported by Mono.");
  37. }
  38. // protected abstract
  39. protected abstract bool FindFirstChar ();
  40. protected abstract void Go ();
  41. protected abstract void InitTrackCount ();
  42. // protected methods
  43. [MonoTODO]
  44. protected void Capture (int capnum, int start, int end) {
  45. throw new NotImplementedException ();
  46. }
  47. [MonoTODO]
  48. protected static bool CharInSet (char ch, string set, string category) {
  49. throw new NotImplementedException ();
  50. }
  51. [MonoTODO]
  52. protected void Crawl (int i) {
  53. throw new NotImplementedException ();
  54. }
  55. [MonoTODO]
  56. protected int Crawlpos () {
  57. throw new NotImplementedException ();
  58. }
  59. [MonoTODO]
  60. protected void DoubleCrawl () {
  61. throw new NotImplementedException ();
  62. }
  63. [MonoTODO]
  64. protected void DoubleStack () {
  65. throw new NotImplementedException ();
  66. }
  67. [MonoTODO]
  68. protected void DoubleTrack () {
  69. throw new NotImplementedException ();
  70. }
  71. [MonoTODO]
  72. protected void EnsureStorage () {
  73. throw new NotImplementedException ();
  74. }
  75. [MonoTODO]
  76. protected bool IsBoundary (int index, int startpos, int endpos) {
  77. throw new NotImplementedException ();
  78. }
  79. [MonoTODO]
  80. protected bool IsECMABoundary (int index, int startpos, int endpos) {
  81. throw new NotImplementedException ();
  82. }
  83. [MonoTODO]
  84. protected bool IsMatched (int cap) {
  85. throw new NotImplementedException ();
  86. }
  87. [MonoTODO]
  88. protected int MatchIndex (int cap) {
  89. throw new NotImplementedException ();
  90. }
  91. [MonoTODO]
  92. protected int MatchLength (int cap) {
  93. throw new NotImplementedException ();
  94. }
  95. [MonoTODO]
  96. protected int Popcrawl () {
  97. throw new NotImplementedException ();
  98. }
  99. [MonoTODO]
  100. protected void TransferCapture (int capnum, int uncapnum, int start, int end) {
  101. throw new NotImplementedException ();
  102. }
  103. [MonoTODO]
  104. protected void Uncapture () {
  105. throw new NotImplementedException ();
  106. }
  107. // internal
  108. protected internal Match Scan (Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick) {
  109. throw new NotImplementedException ();
  110. }
  111. [MonoTODO]
  112. protected internal int[] runcrawl;
  113. [MonoTODO]
  114. protected internal int runcrawlpos;
  115. [MonoTODO]
  116. protected internal Match runmatch;
  117. [MonoTODO]
  118. protected internal Regex runregex;
  119. [MonoTODO]
  120. protected internal int[] runstack;
  121. [MonoTODO]
  122. protected internal int runstackpos;
  123. [MonoTODO]
  124. protected internal string runtext;
  125. [MonoTODO]
  126. protected internal int runtextbeg;
  127. [MonoTODO]
  128. protected internal int runtextend;
  129. [MonoTODO]
  130. protected internal int runtextpos;
  131. [MonoTODO]
  132. protected internal int runtextstart;
  133. [MonoTODO]
  134. protected internal int[] runtrack;
  135. [MonoTODO]
  136. protected internal int runtrackcount;
  137. [MonoTODO]
  138. protected internal int runtrackpos;
  139. }
  140. }