CC3200_bsp_generator.PeripheralRegisterGenerator.IsParametrMacros C# (CSharp) Method

IsParametrMacros() private static method

private static IsParametrMacros ( string pMacros, string>.SortedList alstOffset ) : bool
pMacros string
alstOffset string>.SortedList
return bool
        private static bool IsParametrMacros(string pMacros, SortedList<string, string> alstOffset)
        {
            string astrNameSubReg = pMacros;
            int idxRegisters = astrNameSubReg.LastIndexOf('_');
            while (idxRegisters > 0)
            {
                astrNameSubReg = astrNameSubReg.Remove(idxRegisters);
                string shotNameReg = astrNameSubReg + "_M";
                if (alstOffset.ContainsKey(shotNameReg))
                {
                    return true;
                }
                idxRegisters = astrNameSubReg.LastIndexOf('_');
            }
            return false;
        }