Closure Library API Documentation
Go to class or file:
textformatserializer.js
No description.
Useful links
http://goo.gl/QDmDr
">Also See:
Source Code
Git
File Location
/goog/proto2/textformatserializer.js
Classes
goog.proto2.TextFormatSerializer
TextFormatSerializer, a serializer which turns Messages into the human readable text format.
goog.proto2.TextFormatSerializer.Parser
Helper class for parsing the text format.
goog.proto2.TextFormatSerializer.Printer_
Helper class used by the text format serializer for pretty-printing text.
goog.proto2.TextFormatSerializer.Tokenizer_
Helper class for tokenizing the text format.
Public
Protected
Private
Enumerations
Global Functions
goog.proto2.TextFormatSerializer.Parser.
getNumberFromString_
(
num
)
⇒
!
number
Attempts to convert a string to a number.
Arguments:
num
:
string
in hexadecimal or float format.
Returns:
!
number
The converted number or null on error.
code »
goog.proto2.TextFormatSerializer.Parser.
parseNumericalConstant_
(
identifier
)
⇒
?
number
Parse NaN, positive infinity, or negative infinity from a string.
Arguments:
identifier
:
string
An identifier string to check.
Returns:
?
number
Infinity, negative infinity, NaN, or null if none of the constants could be parsed.
code »
Directory proto2
File Reference