RegexRunner.cs 1.7 KB

1234567891011121314151617181920212223242526272829303132333435363738394041424344454647484950515253545556575859606162636465666768697071727374757677787980818283848586878889909192
  1. //
  2. // assembly: System
  3. // namespace: System.Text.RegularExpressions
  4. // file: RegexRunner.cs
  5. //
  6. // author: Dan Lewis ([email protected])
  7. // (c) 2002
  8. using System;
  9. namespace System.Text.RegularExpressions {
  10. public abstract class RegexRunner {
  11. // constructor
  12. protected internal RegexRunner () {
  13. throw new NotImplementedException ("RegexRunner is not supported by Mono.");
  14. }
  15. // protected abstract
  16. protected abstract bool FindFirstChar ();
  17. protected abstract void Go ();
  18. protected abstract void InitTrackCount ();
  19. // protected methods
  20. protected void Capture (int capnum, int start, int end) {
  21. }
  22. protected static bool CharInSet (char ch, string set, string category) {
  23. return false;
  24. }
  25. protected void Crawl (int i) {
  26. }
  27. protected int CrawlPos () {
  28. return 0;
  29. }
  30. protected void DoubleCrawl () {
  31. }
  32. protected void DoubleStack () {
  33. }
  34. protected void DoubleTrack () {
  35. }
  36. protected void EnsureStorage () {
  37. }
  38. protected bool IsBoundary (int index, int startpos, int endpos) {
  39. return false;
  40. }
  41. protected bool IsECMABoundary (int index, int startpos, int endpos) {
  42. return false;
  43. }
  44. protected bool IsMatched (int cap) {
  45. return false;
  46. }
  47. protected int MatchIndex (int cap) {
  48. return 0;
  49. }
  50. protected int MatchLength (int cap) {
  51. return 0;
  52. }
  53. protected int PopCrawl () {
  54. return 0;
  55. }
  56. protected void TransferCapture (int capnum, int uncapnum, int start, int end) {
  57. }
  58. protected void Uncapture () {
  59. }
  60. // internal
  61. protected internal Match Scan (Regex regex, string text, int textbeg, int textend, int textstart, int prevlen, bool quick) {
  62. return null;
  63. }
  64. }
  65. }