cpp

package
v0.35.3 Latest Latest
Warning

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

Go to latest
Published: Feb 19, 2024 License: GPL-3.0 Imports: 4 Imported by: 0

Documentation

Index

Constants

This section is empty.

Variables

This section is empty.

Functions

func ParseLineMarker

func ParseLineMarker(line string) *paths.Path

ParseLineMarker parses the given line as a gcc line marker and returns the contained filename.

func ParseString

func ParseString(line string) (string, string, bool)

ParseString parse a string as emitted by the preprocessor. This is a string contained in double quotes, with any backslashes or quotes escaped with a backslash. If a valid string was present at the start of the given line, returns the unquoted string contents, the remainder of the line (everything after the closing "), and true. Otherwise, returns the empty string, the entire line and false.

func QuoteString

func QuoteString(str string) string

QuoteString returns the given string as a quoted string for use with the C preprocessor. This adds double quotes around it and escapes any double quotes and backslashes in the string.

func WrapWithHyphenI

func WrapWithHyphenI(value string) string

WrapWithHyphenI fixdoc

Types

This section is empty.

Jump to

Keyboard shortcuts

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