src/hmisc/core/msgbuilder

  Source   Edit

Procs

func joinAnyOf(words: seq[string]; quote: char = '\'';
               prefix: string = "any of "; empty: string = "no";
               sepWord: string = "or"; suffix: string = ""): string {.
    ...raises: [], tags: [].}
  Source   Edit
func joinWords(words: seq[string]; sepWord: string; quote: char = '\'';
               empty: string = default(string)): string {....raises: [], tags: [].}
  Source   Edit
proc madd(ms: var string; args: varargs[string, `$`]) {....raises: [], tags: [].}
  Source   Edit
func mblock(str: string; startN, finalN: string = "‘‘‘";
            start1, final1: string = "‘"): string {....raises: [], tags: [].}
  Source   Edit
func mcode(str: string): string {....raises: [], tags: [].}
  Source   Edit
func mexpected[T](s: var string; item: T; expr: bool = true)
  Source   Edit
func mfound[F, E](found: F; expected: E): string
  Source   Edit
func mfound[F, E](s: var string; found: F; expected: E)
  Source   Edit
func mitem[T](s: var string; item: T)
  Source   Edit
func mkind[E: enum](item: E): string
  Source   Edit
func mq1[T](item: T): string
  Source   Edit
func mq[T](item: T): string
  Source   Edit
proc msep(ms: var string; s: string; expr: bool) {....raises: [], tags: [].}
  Source   Edit
func namedItemListing(name: string; words: seq[string]; sepWord: string;
                      quote: char = '\x00'): string {....raises: [], tags: [].}
  Source   Edit
func toPluralNoun(noun: string; count: int; addNum: bool = true;
                  plural: string = ""): string {....raises: [], tags: [].}
  Source   Edit

Templates

template kindToStr(expr: typed): untyped
  Source   Edit
template mwrap(s: var string; wrap: string; body: untyped): untyped
  Source   Edit