Chrome Release Bot (LUCI) 4762b62e7d Publish DEPS for 106.0.5249.13 1 年間 前
..
android 4762b62e7d Publish DEPS for 106.0.5249.13 1 年間 前
spoof_checks 4762b62e7d Publish DEPS for 106.0.5249.13 1 年間 前
tools 4762b62e7d Publish DEPS for 106.0.5249.13 1 年間 前
BUILD.gn 4762b62e7d Publish DEPS for 106.0.5249.13 1 年間 前
DEPS 4762b62e7d Publish DEPS for 106.0.5249.13 1 年間 前
DIR_METADATA 4762b62e7d Publish DEPS for 106.0.5249.13 1 年間 前
OWNERS 4762b62e7d Publish DEPS for 106.0.5249.13 1 年間 前
README.md 4762b62e7d Publish DEPS for 106.0.5249.13 1 年間 前
elide_url.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年間 前
elide_url.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 年間 前
elide_url_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年間 前
url_fixer.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年間 前
url_fixer.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 年間 前
url_fixer_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年間 前
url_formatter.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年間 前
url_formatter.h 4762b62e7d Publish DEPS for 106.0.5249.13 1 年間 前
url_formatter_android.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年間 前
url_formatter_unittest.cc 4762b62e7d Publish DEPS for 106.0.5249.13 1 年間 前

README.md

The URL Formatter component contains utilities to convert between URLs and human-entered/human-readable strings. Broadly, consuming human-entered URLs happens via «fixup», which tries to make «reasonable» adjustments to strings to convert them into URLs (e.g. auto-prepending schemes, but also many more, some of which may be surprising). Producing human-readable URLs happens via «formatting», which can strip unimportant parts of the URL, unescape/decode sections, etc.

These functions are meant to work in conjunction with the stricter, more limited capabilities of GURL, and were originally designed for use with the omnibox, though they’ve since been used in other parts of the UI as well.

Because these functions are powerful, it’s possible to introduce security risks with incautious use. Be sure you understand what you need and what they’re doing before using them; don’t just copy existing callers.