Skip to content

Commit

Permalink
update readme
Browse files Browse the repository at this point in the history
  • Loading branch information
xavdid committed Jan 14, 2025
1 parent abec307 commit e04449b
Show file tree
Hide file tree
Showing 2 changed files with 10 additions and 10 deletions.
12 changes: 6 additions & 6 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -1791,13 +1791,13 @@ The process ID is: 420
[Replacement string syntax](https://docs.rs/regex/latest/regex/struct.Regex.html#replacement-string-syntax).
- `trim(s)` - Remove leading and trailing whitespace from `s`.
- `trim_end(s)` - Remove trailing whitespace from `s`.
- `trim_end_match(s, pat)` - Remove suffix of `s` matching `pat`.
- `trim_end_matches(s, pat)` - Repeatedly remove suffixes of `s` matching
`pat`.
- `trim_end_match(s, substr)` - Remove suffix of `s` matching `substr`.
- `trim_end_matches(s, substr)` - Repeatedly remove suffixes of `s` matching
`substr`.
- `trim_start(s)` - Remove leading whitespace from `s`.
- `trim_start_match(s, pat)` - Remove prefix of `s` matching `pat`.
- `trim_start_matches(s, pat)` - Repeatedly remove prefixes of `s` matching
`pat`.
- `trim_start_match(s, substr)` - Remove prefix of `s` matching `substr`.
- `trim_start_matches(s, substr)` - Repeatedly remove prefixes of `s` matching
`substr`.

#### Case Conversion

Expand Down
8 changes: 4 additions & 4 deletions README.中文.md
Original file line number Diff line number Diff line change
Expand Up @@ -1196,11 +1196,11 @@ The executable is at: /bin/just
- `replace_regex(s, regex, replacement)` - 将 `s` 中所有的 `regex` 替换为 `replacement`。正则表达式由 [Rust `regex`](https://docs.rs/regex/latest/regex/) 提供。参见 [语法文档](https://docs.rs/regex/latest/regex/#syntax) 以了解使用示例。
- `trim(s)` - 去掉 `s` 的首尾空格。
- `trim_end(s)` - 去掉 `s` 的尾部空格。
- `trim_end_match(s, pat)` - 删除与 `pat` 匹配的 `s` 的后缀。
- `trim_end_matches(s, pat)` - 反复删除与 `pat` 匹配的 `s` 的后缀。
- `trim_end_match(s, substr)` - 删除与 `substr` 匹配的 `s` 的后缀。
- `trim_end_matches(s, substr)` - 反复删除与 `substr` 匹配的 `s` 的后缀。
- `trim_start(s)` - 去掉 `s` 的首部空格。
- `trim_start_match(s, pat)` - 删除与 `pat` 匹配的 `s` 的前缀。
- `trim_start_matches(s, pat)` - 反复删除与 `pat` 匹配的 `s` 的前缀。
- `trim_start_match(s, substr)` - 删除与 `substr` 匹配的 `s` 的前缀。
- `trim_start_matches(s, substr)` - 反复删除与 `substr` 匹配的 `s` 的前缀。

#### 大小写转换

Expand Down

0 comments on commit e04449b

Please sign in to comment.