def _CheckFieldName(name):
 _ValidateString(name, 'name', MAXIMUM_FIELD_NAME_LENGTH)
 if (not re.match(_FIELD_NAME_PATTERN, name)):
  raise ValueError(('field name "%s" should match pattern: %s' % (name, _FIELD_NAME_PATTERN)))
 return name

def _CheckFieldName ( name ) : _ValidateString ( name , 'name' , MAXIMUM_FIELD_NAME_LENGTH ) if ( not re . match ( _FIELD_NAME_PATTERN , name ) ) : raise ValueError ( ( 'field name "%s" should match pattern: %s' % ( name , _FIELD_NAME_PATTERN ) ) ) return name
checks field name is not too long and matches field name pattern .