mirror of
https://gitee.com/chinabugotech/hutool.git
synced 2025-05-09 23:51:34 +08:00
commit
8e1494cd16
@ -18,7 +18,7 @@ public class StrFormatter {
|
|||||||
* 如果想输出 {} 使用 \\转义 { 即可,如果想输出 {} 之前的 \ 使用双转义符 \\\\ 即可<br>
|
* 如果想输出 {} 使用 \\转义 { 即可,如果想输出 {} 之前的 \ 使用双转义符 \\\\ 即可<br>
|
||||||
* 例:<br>
|
* 例:<br>
|
||||||
* 通常使用:format("this is {} for {}", "a", "b") =》 this is a for b<br>
|
* 通常使用:format("this is {} for {}", "a", "b") =》 this is a for b<br>
|
||||||
* 转义{}: format("this is \\{} for {}", "a", "b") =》 this is \{} for a<br>
|
* 转义{}: format("this is \\{} for {}", "a", "b") =》 this is {} for a<br>
|
||||||
* 转义\: format("this is \\\\{} for {}", "a", "b") =》 this is \a for b<br>
|
* 转义\: format("this is \\\\{} for {}", "a", "b") =》 this is \a for b<br>
|
||||||
*
|
*
|
||||||
* @param strPattern 字符串模板
|
* @param strPattern 字符串模板
|
||||||
|
Loading…
x
Reference in New Issue
Block a user