本文整理了Java中net.roboconf.core.utils.Utils.capitalize()
方法的一些代码示例,展示了Utils.capitalize()
的具体用法。这些代码示例主要来源于Github
/Stackoverflow
/Maven
等平台,是从一些精选项目中提取出来的代码,具有较强的参考意义,能在一定程度帮忙到你。Utils.capitalize()
方法的具体详情如下:
包路径:net.roboconf.core.utils.Utils
类名称:Utils
方法名:capitalize
[英]Capitalizes a string.
[中]将字符串大写。
代码示例来源:origin: roboconf/roboconf-platform
@Test
public void testCapitalize() {
Assert.assertEquals( "", Utils.capitalize( "" ));
Assert.assertNull( Utils.capitalize( null ));
Assert.assertEquals( "Toto", Utils.capitalize( "Toto" ));
Assert.assertEquals( "Toto", Utils.capitalize( "tOTo" ));
Assert.assertEquals( "Toto oops", Utils.capitalize( "tOTo oops" ));
}
代码示例来源:origin: net.roboconf/roboconf-doc-generator
section.append( renderParagraph( customInfo ));
String installerName = Utils.capitalize( ComponentHelpers.findComponentInstaller( comp ));
installerName = applyBoldStyle( installerName, installerName );
String msg = MessageFormat.format( this.messages.get( "component.installer" ), installerName ); //$NON-NLS-1$
代码示例来源:origin: roboconf/roboconf-platform
section.append( renderParagraph( customInfo ));
String installerName = Utils.capitalize( ComponentHelpers.findComponentInstaller( comp ));
installerName = applyBoldStyle( installerName, installerName );
String msg = MessageFormat.format( this.messages.get( "component.installer" ), installerName ); //$NON-NLS-1$
内容来源于网络,如有侵权,请联系作者删除!