// ------------------------------------------------------------------------------------------------// Copyright (c) Microsoft Corporation. All rights reserved.// Licensed under the MIT License. See License.txt in the project root for license information.// ------------------------------------------------------------------------------------------------namespace System.Utilities;/// <summary>/// Provides a representation of Regex Matches that models Match objects in .Net/// </summary>/// <remark>/// For more information, visit https://go.microsoft.com/fwlink/?linkid=2210238./// </remark>table 3965 Matches{ TableType = Temporary; Extensible = false; InherentEntitlements = X; InherentPermissions = X; fields { field(1; MatchIndex; Integer) { Caption = 'Match Index'; DataClassification = SystemMetadata; } field(2; Index; Integer) { DataClassification = SystemMetadata; Description = 'The position in the original string where the first character of the captured substring is found.'; } field(3; ValueBlob; Blob) { Caption = 'Value'; Access = Internal; DataClassification = SystemMetadata; // Since this is a temp table we can do this Description = 'Gets the captured substring from the input string.'; } field(4; Length; Integer) { DataClassification = SystemMetadata; Description = 'Gets the length of the captured substring.'; } field(5; Success; Boolean) { DataClassification = SystemMetadata; Description = 'Gets a value indicating whether the match is successful.'; } } keys { key(PrimaryKey; MatchIndex) { Clustered = true; } } /// <summary> /// Reads the value of the match /// </summary> /// <returns>The value of the match.</returns> procedure ReadValue() TextValue: Text var ValueInStream: InStream; begin Rec.CalcFields(ValueBlob); Rec.ValueBlob.CreateInStream(ValueInStream, TextEncoding::UTF8); ValueInStream.Read(TextValue); end; internal procedure InsertValue(TextValue: Text) var ValueOutStream: OutStream; begin Rec.ValueBlob.CreateOutStream(ValueOutStream, TextEncoding::UTF8); ValueOutStream.Write(TextValue); end;}