nuget server logo nuget api documents
↑

API Docs / Microsoft.VisualBasic.Runtime / CLangStringFormatProvider

CLangStringFormatProvider

Full name Microsoft.VisualBasic.Language.C.CLangStringFormatProvider Assembly Microsoft.VisualBasic.Runtime Members 7

Provides C like format print

00 Remarks

https://github.com/mlnlover11/SharpLua

01 Syntax

Microsoft.VisualBasic.Language.C.CLangStringFormatProvider

02 Methods

NameOverloadsSummary
IsPositive 1 Determines whether the specified value is positive.
ToUnsigned 1 Converts the specified values boxed type to its correpsonding unsigned type.
ToInteger 1 Converts the specified values boxed type to its correpsonding integer type.
ReplaceMetaChars 1 Replaces the string representations of meta chars with their corresponding character values..(替换掉转义字符)
sprintf 1 Format string like C
UnboxToLong 1

03 Fields

NameOverloadsSummary
Formats 1 %[parameter][flags][width][.precision][length]type

04 Members

method IsPositive #
IsPositive(Object, Boolean)

Determines whether the specified value is positive.

Parameters
NameTypeDescription
ValueObject

The value.

ZeroIsPositiveBoolean

if set to true treats 0 as positive.

Returns

true if the specified value is positive; otherwise, false.

method ToUnsigned #
ToUnsigned(Object)

Converts the specified values boxed type to its correpsonding unsigned type.

Parameters
NameTypeDescription
ValueObject

The value.

Returns

A boxed numeric object whos type is unsigned.

method ToInteger #
ToInteger(Object, Boolean)

Converts the specified values boxed type to its correpsonding integer type.

Parameters
NameTypeDescription
ValueObject

The value.

Returns

A boxed numeric object whos type is an integer type.

method ReplaceMetaChars #
ReplaceMetaChars(String)

Replaces the string representations of meta chars with their corresponding character values..(替换掉转义字符)

Remarks

this function is a safe function, empty string will be returns is the given input string is nothing

Parameters
NameTypeDescription
inputString

The input.

Returns

A string with all string meta chars are replaced

method sprintf #
sprintf(String, Object())

Format string like C

Parameters
NameTypeDescription
formatString

-

parametersObject()

-

field Formats #
Formats

%[parameter][flags][width][.precision][length]type

method UnboxToLong #
UnboxToLong(Object, Boolean)