Beispiel #1
0
        /// <summary>
        ///   check if a character at the given position is a mask char or not.
        /// </summary>
        /// <param name = "pic"></param>
        /// <param name = "strText"></param>
        /// <param name = "pos"></param>
        /// <returns> true if the character is mask char</returns>
        private static bool charIsMask(PIC pic, String strText, int pos)
        {
            if (pic.isAttrAlphaOrDate())
            {
                if (pic.picIsMask(UtilStrByteMode.convPos(strText, pic.getMask(), pos, false)))
                {
                    return(true);
                }
            }
            else if (pic.picIsMask(pos))
            {
                return(true);
            }

            return(false);
        }