MCPcopy Create free account
hub / github.com/EdwardRaff/JSAT / spaceCamelCase

Method spaceCamelCase

JSAT/src/jsat/parameters/Parameter.java:777–788  ·  view source on GitHub ↗

Returns a version of the same string that has spaced inserted before each capital letter @param in the CamelCase string @return the spaced Camel Case string

(String in)

Source from the content-addressed store, hash-verified

775 * @return the spaced Camel Case string
776 */
777 private static String spaceCamelCase(String in)
778 {
779 StringBuilder sb = new StringBuilder(in.length()+5);
780 for(int i = 0; i < in.length(); i++)
781 {
782 char c = in.charAt(i);
783 if(Character.isUpperCase(c))
784 sb.append(' ');
785 sb.append(c);
786 }
787 return sb.toString().trim();
788 }
789}

Callers 1

getParamsFromMethodsMethod · 0.95

Calls 2

toStringMethod · 0.65
lengthMethod · 0.45

Tested by

no test coverage detected