StaticProcessSingleString() 개인적인 정적인 메소드

private static StaticProcessSingleString ( String str ) : String
str String
리턴 String
예제 #1
0
        internal static ArrayList CreateListFromExpressions(string[] str, bool needFullPath)
        {
            if (str == null)
            {
                throw new ArgumentNullException("str");
            }
            ArrayList arrayList = new ArrayList();

            for (int i = 0; i < str.Length; i++)
            {
                if (str[i] == null)
                {
                    throw new ArgumentNullException("str");
                }
                string text = StringExpressionSet.StaticProcessWholeString(str[i]);
                if (text != null && text.Length != 0)
                {
                    string text2 = StringExpressionSet.StaticProcessSingleString(text);
                    int    num   = text2.IndexOf('\0');
                    if (num != -1)
                    {
                        text2 = text2.Substring(0, num);
                    }
                    if (text2 != null && text2.Length != 0)
                    {
                        if (PathInternal.IsPartiallyQualified(text2))
                        {
                            throw new ArgumentException(Environment.GetResourceString("Argument_AbsolutePathRequired"));
                        }
                        text2 = StringExpressionSet.CanonicalizePath(text2, needFullPath);
                        arrayList.Add(text2);
                    }
                }
            }
            return(arrayList);
        }
예제 #2
0
        internal static ArrayList CreateListFromExpressions(string[] str, bool needFullPath)
        {
            if (str == null)
            {
                throw new ArgumentNullException("str");
            }
            ArrayList arrayList = new ArrayList();

            for (int index = 0; index < str.Length; ++index)
            {
                if (str[index] == null)
                {
                    throw new ArgumentNullException("str");
                }
                string str1 = StringExpressionSet.StaticProcessWholeString(str[index]);
                if (str1 != null && str1.Length != 0)
                {
                    string path   = StringExpressionSet.StaticProcessSingleString(str1);
                    int    length = path.IndexOf(char.MinValue);
                    if (length != -1)
                    {
                        path = path.Substring(0, length);
                    }
                    if (path != null && path.Length != 0)
                    {
                        if (Path.IsRelative(path))
                        {
                            throw new ArgumentException(Environment.GetResourceString("Argument_AbsolutePathRequired"));
                        }
                        string str2 = StringExpressionSet.CanonicalizePath(path, needFullPath);
                        arrayList.Add((object)str2);
                    }
                }
            }
            return(arrayList);
        }
예제 #3
0
 // Token: 0x06002B27 RID: 11047 RVA: 0x000A0202 File Offset: 0x0009E402
 protected virtual string ProcessSingleString(string str)
 {
     return(StringExpressionSet.StaticProcessSingleString(str));
 }