If a mask string can do what you need for a set of localized data types, retrieving the mask strings from ResourceBundles is a great use of this technique.
如果一个掩码字符串足以处理一组本地化数据类型,那么从ResourceBundle获得掩码字符串就是本技巧的一个很好的用途。
Use regular expressions for more complex filtering (an asterisk (*) is always added to the beginning and end of the filter string, so there's no need to add wildcards for simple strings).
对更复杂的过滤使用正则表达式(过滤字符串的开头和末尾总是添加一个星号 *,因此没有必要为简单的字符串添加通配符)。
To display the native strings in different languages, you need to prepare the resource files for different locales.
要用不同的语言来显示本地字符串,就需要准备不同地区的资源文件。
应用推荐