BaseTools: GenFds - simplify testing for Hex number
Cc: Liming Gao <liming.gao@intel.com> Cc: Yonghong Zhu <yonghong.zhu@intel.com> Contributed-under: TianoCore Contribution Agreement 1.1 Signed-off-by: Jaben Carsey <jaben.carsey@intel.com> Reviewed-by: Yonghong Zhu <yonghong.zhu@intel.com>
This commit is contained in:
committed by
Yonghong Zhu
parent
992fbe3519
commit
6553c61724
@ -62,6 +62,7 @@ gGuidPatternEnd = re.compile(r'{}$'.format(_GuidPattern))
|
||||
## Regular expressions for HEX matching
|
||||
g4HexChar = re.compile(r'{}{{4}}'.format(_HexChar))
|
||||
gHexPattern = re.compile(r'0[xX]{}+'.format(_HexChar))
|
||||
gHexPatternAll = re.compile(r'0[xX]{}+$'.format(_HexChar))
|
||||
|
||||
## Regular expressions for string identifier checking
|
||||
gIdentifierPattern = re.compile('^[a-zA-Z][a-zA-Z0-9_]*$', re.UNICODE)
|
||||
|
Reference in New Issue
Block a user