MCPcopy Create free account
hub / github.com/buggins/coolreader / authorNameFileAs

Method authorNameFileAs

android/src/org/coolreader/crengine/Utils.java:28–35  ·  view source on GitHub ↗
(String name)

Source from the content-addressed store, hash-verified

26 }
27
28 public static String authorNameFileAs(String name) {
29 if (name == null || name.length() == 0)
30 return name;
31 int lastSpace = name.lastIndexOf(' ');
32 if (lastSpace >= 0 && lastSpace < name.length() - 1)
33 return name.substring(lastSpace + 1) + " " + name.substring(0, lastSpace);
34 return name;
35 }
36}

Callers 2

loadItemListMethod · 0.95
formatAuthorsMethod · 0.95

Calls 1

lengthMethod · 0.45

Tested by

no test coverage detected