Esempio n. 1
0
 /// <summary>
 /// Attempts to parse the supplied string
 /// </summary>
 /// <param name="str"></param>
 /// <param name="entryUnit">The initial default entry units</param>
 /// <returns>The items in the parsed path</returns>
 /// <exception cref="Exception">If any parsing problem is encountered</exception>
 internal static PathItem[] GetPathItems(string str, DistanceUnit entryUnit)
 {
     PathParser pp = new PathParser(str, entryUnit);
     return pp.m_Items.ToArray();
 }
Esempio n. 2
0
        /// <summary>
        /// Attempts to parse the supplied string
        /// </summary>
        /// <param name="str"></param>
        /// <param name="entryUnit">The initial default entry units</param>
        /// <returns>The items in the parsed path</returns>
        /// <exception cref="Exception">If any parsing problem is encountered</exception>
        static internal PathItem[] GetPathItems(string str, DistanceUnit entryUnit)
        {
            PathParser pp = new PathParser(str, entryUnit);

            return(pp.m_Items.ToArray());
        }