================ @@ -1465,6 +1466,17 @@ sub HtmlEscape { return $tmp; } +##----------------------------------------------------------------------------## +# URLEscape - encode characters that are special in URLs +##----------------------------------------------------------------------------## + +sub URLEscape { + my $arg = shift || ''; + my $tmp = $arg; + $tmp =~ s/\+/%2B/g; ---------------- t-rasmud wrote:
Why is an additional variable `$tmp` needed? Can't this just be `$arg =~ s/\+/%2B/g;`? https://github.com/llvm/llvm-project/pull/120810 _______________________________________________ cfe-commits mailing list cfe-commits@lists.llvm.org https://lists.llvm.org/cgi-bin/mailman/listinfo/cfe-commits