コード例 #1
0
        public static bool IsDescriptor(string s)
        {
            var p = s.Split('_');

            return(2 <= p.Length && p.Length <= 4 && Quantities.IsQuantity(p[1]) && (p.Length < 4 || Quantities.IsDimension(p[3])));
        }