MCPcopy Create free account
hub / github.com/Qihoo360/poseidon / normSection

Method normSection

builder/index/src/main/java/util/IniParser.java:572–577  ·  view source on GitHub ↗

Normalizes an arbitrary string for use as a section name. Currently only makes the string lower-case (provided this instance isn't case- sensitive) and trims leading and trailing white space. Note that normalization isn't enforced by the Section class. @param name the string to be used as section n

(String name)

Source from the content-addressed store, hash-verified

570 * @return a normalized section name
571 */
572 private String normSection(String name) {
573 if (!this.isCaseSensitive) {
574 name = name.toLowerCase();
575 }
576 return name.trim();
577 }
578
579 private static String[] toStringArray(Collection coll) {
580 Object[] objArray = coll.toArray();

Callers 4

hasSectionMethod · 0.95
addSectionMethod · 0.95
removeSectionMethod · 0.95
getSectionMethod · 0.95

Calls

no outgoing calls

Tested by

no test coverage detected