fleu/writer_api

Source   Edit  

include file to ensure writer implementation is complete not actually used since forward declarations don't support {.inline.} after the fact

Procs

proc addToBuffer(writer: WriterType; c: char) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc addToBuffer(writer: WriterType; c: Rune) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc addToBuffer(writer: WriterType; s: openArray[char]) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc addToBuffer(writer: WriterType; s: string) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc finishWrite(writer: WriterType): string {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc lockFlush(writer: WriterType) {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc unlockFlush(writer: WriterType) {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc write(writer: WriterType; c: char) {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc write(writer: WriterType; c: Rune) {....raises: [], tags: [], forbids: [].}
Source   Edit  
proc write(writer: WriterType; s: openArray[char]) {....raises: [], tags: [],
    forbids: [].}
Source   Edit  
proc write(writer: WriterType; s: string) {....raises: [], tags: [], forbids: [].}
Source   Edit  

Templates

template bufferStart(writer: WriterType): int
Source   Edit  
template currentBuffer(writer: WriterType): string
the type does not have to be string, at most it has to behave like openArray[char] Source   Edit