docs: def _add_replace_pair(self, name, value, quote):
          """
          Adds a replace part to the map of replace pairs.
  
          :param name: The name of the replace pair.
          :param value: The value of value of the replace pair.
          """
          key = '@' + name + '@'
          key = key.lower()
  
          class_name = value.__class__.__name__
  
          if class_name in ['int', 'float']:
              value = str(value)
          elif class_name in ['bool']:
              value = '1' if value else '0'
          elif class_name in ['str']:
              if quote:
                  value = "'" + value + "'"
          else:
              self._io.log_verbose("Ignoring constant {} which is an instance of {}".format(name, class_name))
  
          self._replace_pairs[key] = value