@Test public void testToPascalCase() throws Exception { assertEquals("FooBarBaz", toPascalCase("foo_bar_baz").toString()); assertEquals("FooBarBaz", toPascalCase("fooBarBaz").toString()); assertEquals("FooBarBaz", toPascalCase("FooBarBaz").toString()); assertEquals("FooBarBaz", toPascalCase("foo_bar_baz").toString()); assertEquals("FooBarBaz", toPascalCase("____Foo____Bar___Baz____").toString()); }
public static StringBuilder toPascalCase(String name) { StringBuilder buffer = toCamelCase(name); char c = buffer.charAt(0); if (c > 96 && c < 123) buffer.setCharAt(0, (char) (c - 32)); return buffer; }
ProtoUtil { public static StringBuilder toPascalCase(String name) { StringBuilder buffer = toCamelCase(name); char c = buffer.charAt(0); if (c > 96 && c < 123) buffer.setCharAt(0, (char) (c - 32)); return buffer; } }
ProtoUtil { public static StringBuilder toPascalCase(String name) { StringBuilder buffer = toCamelCase(name); char c = buffer.charAt(0); if (c > 96 && c < 123) buffer.setCharAt(0, (char) (c - 32)); return buffer; } private  ProtoUtil(); }
ProtoUtil { public static StringBuilder toPascalCase(String name) { StringBuilder buffer = toCamelCase(name); char c = buffer.charAt(0); if (c > 96 && c < 123) buffer.setCharAt(0, (char) (c - 32)); return buffer; } private  ProtoUtil(); static void loadFrom(ANTLRReaderStream input, Proto target); static void loadFrom(InputStream in, Proto target); static void loadFrom(Reader reader, Proto target); static Proto parseProto(File file); static void loadFrom(File file, Proto target); static void loadFrom(URL resource, Proto target); static StringBuilder toCamelCase(String name); static StringBuilder toPascalCase(String name); static StringBuilder toUnderscoreCase(String name); }
ProtoUtil { public static StringBuilder toPascalCase(String name) { StringBuilder buffer = toCamelCase(name); char c = buffer.charAt(0); if (c > 96 && c < 123) buffer.setCharAt(0, (char) (c - 32)); return buffer; } private  ProtoUtil(); static void loadFrom(ANTLRReaderStream input, Proto target); static void loadFrom(InputStream in, Proto target); static void loadFrom(Reader reader, Proto target); static Proto parseProto(File file); static void loadFrom(File file, Proto target); static void loadFrom(URL resource, Proto target); static StringBuilder toCamelCase(String name); static StringBuilder toPascalCase(String name); static StringBuilder toUnderscoreCase(String name);  }