public static String stringToDocComment(String doc) {
    boolean emptyDoc = (doc == null || doc.trim().isEmpty());
    if (emptyDoc) return "";

    return DocEscaping.stringToDocComment(doc, DocCommentStyle.NO_MARGIN);
  }
public static String stringToDocComment ( String doc ) { boolean emptyDoc = ( doc == null || doc . trim ( ) . isEmpty ( ) ) ; if ( emptyDoc ) return "" ; return DocEscaping . stringToDocComment ( doc , DocCommentStyle . NO_MARGIN ) ; }
Returns a doc comment, as a string of Swift source, for the given documentation string.

@param doc provides the javadoc for the symbol, if any.  May be null.
@return an escaped doc comment string.