Exemple #1
0
        public static VarLabelParsed GetVarLabelValue( CharSource ch )
        {
            char[] charList = ch.charList;
            int index = ch.getIndex();

            foreach (KeyValuePair<String, VarLabel> v in VarList) {

                if (charList.Length < index + v.Value.Prefix.Length) continue;

                String varName = getMatchedVarName( v.Value, index, charList );
                if (varName != null) {

                    VarLabelParsed objVal = new VarLabelParsed();
                    objVal.TypeName = v.Key;
                    objVal.VarName = varName;
                    objVal.VarLabel = v.Value;

                    return objVal;

                }

            }

            return null;
        }