Show / Hide Table of Contents

    StringExtensions.PosA(this string strA, string strB, int? startIndex) Method

    .NET Standard 2.x

    Temporarily converts a string from Unicode to DBCS based on the current locale, then finds one string within another string.

    Namespace: PowerScript.Bridge

    Assembly: PowerScript.Bridge.dll

    Syntax

    public static int? PosA(this string strA, string strB, int? startIndex);
    

    Parameters

    strA System.String

    The string in which you want to find strB.

    strB System.String

    The string you want to find in strA.

    startIndex System.Int323

    An int indicating where the search will begin in strA. The default is 0.

    Returns

    System.Int32

    Returns an int whose value is the starting position of the first occurrence of strB in strA after the position specified in startIndex. If strB is not found in strA or if start is not within strA, Pos returns 0. If any argument's value is null, Pos returns null.

    Examples

    Coming soon.

    Applies to

    .NET Standard

    2.x

    Back to top Generated by Appeon