Lines Matching refs:value
51 protected $value;
60 * @param string $value
62 public function __construct(string $name, string $value)
65 $this->value = $value;
81 return $this->value;
97 $rdn = $this->name . '=' . $this->value;
149 * Escape an RDN value.
151 * @param string $value
154 public static function escape(string $value): string
156 if (self::shouldNotEscape($value)) {
157 return $value;
159 $value = str_replace(array_keys(self::ESCAPE_MAP), array_values(self::ESCAPE_MAP), $value);
161 if ($value[0] === '#' || $value[0] === ' ') {
162 $value = ($value[0] === '#' ? '\23' : '\20') . substr($value, 1);
164 if ($value[-1] === ' ') {
165 $value = substr_replace($value, '\20', -1, 1);
168 return self::escapeNonPrintable($value);