Table 3965 Matches in 26

App
System Application
Namespace
System.Utilities

Fields, 5Keys, 1Procedures, 2

Versions171819202122232425262728latest

Source242526272829

Source in 26

src/System Application/App/Regex/src/Matches.Table.al79 lines, Copyright (c) Microsoft Corporation. MIT

// ------------------------------------------------------------------------------------------------
// 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;
}

Fields, 5

IdNameTypeObsolete
1MatchIndexInteger-
2IndexInteger-
3ValueBlobBlob-
4LengthInteger-
5SuccessBoolean-

Keys, 1

NameFieldsObsolete
PrimaryKey, clusteredMatchIndex-

Procedures, 2

NameParametersReturnsAccessObsolete
ReadValue()Textpublic-
InsertValue(Text)internal-