C++ IP API  9.5.5
TCP & UDP for virtual user scripts
RegExpMatch.h
Go to the documentation of this file.
1 
2 // Copyright (c) 2024 Eggplant Ltd
3 // All Rights Reserved
4 
5 #pragma once
6 
7 #include "fc.h"
8 
9 namespace Facilita
10 {
16  class FC_API RegExpMatch
17  {
18  public:
21  : _position(-1)
22  {
23  }
25  RegExpMatch(const string& match, int position)
26  : _match(match), _position(position)
27  {
28  }
30  const string& getMatch() const { return _match; }
32  int getPosition() const { return _position; }
33 
34  private:
35  #pragma warning(disable:4251)
36  string _match;
37  #pragma warning(default:4251)
38  int _position;
39  };
40 
41  typedef vector<RegExpMatch> RegExpMatchList;
42 };
RegExpMatch(const string &match, int position)
Constructor that is not called directly by test scripts.
Definition: RegExpMatch.h:25
vector< RegExpMatch > RegExpMatchList
Definition: RegExpMatch.h:41
int getPosition() const
The position in the data where the string was found.
Definition: RegExpMatch.h:32
RegExpMatch()
Default constructor.
Definition: RegExpMatch.h:20
Definition: IpEndPoint.h:9
const string & getMatch() const
The matched string.
Definition: RegExpMatch.h:30
The objects of this class indicate a position and a string found in a textual search.
Definition: RegExpMatch.h:16