C# Class clojure.lang.Printf

An implementation of Java-style printf/format

Primary inspiration from the Java OpenJDK source. In fact, this is a pretty straightforward translations of the relevant parts. I make no claims to any originality in what follows. The idea was to get something working with the minimum of thought and effort.

显示文件 Open project: richhickey/clojure-clr

Public Methods

Method Description
Format ( string formatStr ) : string

Private Methods

Method Description
FormatFlagsToString ( FormatFlags flags ) : string
Parse ( string format ) : List
ParseFlags ( string s ) : FormatFlags
TranslateFlag ( char c ) : FormatFlags

Method Details

Format() public static method

public static Format ( string formatStr ) : string
formatStr string
return string