libcutils

package
v0.0.0-...-d27f951 Latest Latest
Warning

This package is not in the latest version of its module.

Go to latest
Published: Jun 9, 2024 License: Apache-2.0 Imports: 2 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

This section is empty.

Types

type PrintfSpecifier

type PrintfSpecifier struct {
	Original  string // The original specifier string
	Flags     string // Flags: '-', '+', ' ', '#', and '0'
	Width     string // Width: number or '*'
	Precision string // Precision: '.number' or '.*'
	Length    string // Length modifier: 'h', 'hh', 'l', 'll', 'L', 'j', 'z', 't'
	Specifier string // Conversion specifier: 'd', 'i', 'o', 'u', 'x', 'X', 'f', 'F', 'e', 'E', 'g', 'G', 'a', 'A', 'c', 's', 'p', 'n', '%'
}

PrintfSpecifier represents the components of a printf format specifier

func ParsePrintfFmt

func ParsePrintfFmt(fmtStr string) ([]PrintfSpecifier, error)

ParsePrintfFmt parses a libc printf format string.

Jump to

Keyboard shortcuts

? : This menu
/ : Search site
f or F : Jump to
y or Y : Canonical URL