Microsoft.Protocols.TestSuites.Common.Common.GetCodePageName C# (CSharp) Method

GetCodePageName() public static method

Get the CodePageName from the CombinedString
public static GetCodePageName ( string combinedString ) : string
combinedString string a string contain tag name and matched token following the format"identifier|CodePageName|TagName|Token"
return string
        public static string GetCodePageName(string combinedString)
        {
            if (string.IsNullOrEmpty(combinedString))
            {
                return string.Empty;
            }

            string[] dataTemp = combinedString.Split('|');

            // A string contain tag name and matched token following the format "identifier|CodePageName|TagName|Token" a total of 4 properties.
            if (dataTemp.Length < 4)
            {
                return string.Empty;
            }

            // Convert the second information : CodePageName in format "identifier|CodePageName|TagName|Token".
            return dataTemp[1];
        }
Common