The string utilities for ApexDocJs are not well-encapsulated and are repeated throughout the project. These utilities should be placed into a separate class in order to leverage their capabilities throughout the project.
Example classes are:
- ApexDoc.strPrevWord
- ApexDoc.countChars