{"a": 1, "b": {"c": null, "d": true, "e": [1, 2]}}
Will be displayed like this:
{
"a": 1,
"b": {
"c": null,
"d": true,
"e": [
1,
2
]
}
}
![]()
Tokens used within insertWordBreaks.
Constants:
|
Code » |
Determines conservatively if a character has a Grapheme break.
Conforms to a similar signature as goog.i18n.GraphemeBreak, but is overly
conservative, returning true only for characters in common scripts that
are simple to account for.
Arguments:
Returns: boolean
Whether it is one of the recognized subsets of characters
with a grapheme break.
|
code » | ||||||
Formats a number of bytes in human readable form.
54, 450K, 1.3M, 5G etc.
|
code » | ||||||
Inserts word breaks into an HTML string at a given interval.
This method is as aggressive as possible, using a full table of Unicode
characters where it is legal to insert word breaks; however, this table
comes at a 2.5k pre-gzip (~1k post-gzip) size cost. Consider using
insertWordBreaksBasic to minimize the size impact.
|
code » | ||||||
Inserts word breaks into an HTML string at a given interval.
This method is less aggressive than insertWordBreaks, only inserting
breaks next to punctuation and between Latin or Cyrillic characters.
However, this is good enough for the common case of URLs. It also
works for all Latin and Cyrillic languages, plus CJK has no need for word
breaks. When this method is used, goog.i18n.GraphemeBreak may be dead
code eliminated.
|
code » | ||||||
Inserts word breaks into an HTML string at a given interval. The counter is
reset if a space or a character which behaves like a space is encountered,
but it isn't incremented if an invisible formatting character is encountered.
WBRs aren't inserted into HTML tags or entities. Entities count towards the
character count, HTML tags do not.
With common strings aliased, objects allocations are constant based on the
length of the string: N + 3. This guarantee does not hold if the string
contains an element >= U+0300 and hasGraphemeBreak is non-trivial.
Arguments:
Returns: string
The string including word breaks.
|
code » | ||||||
Checks whether string value containing scaling units (K, M, G, T, P, m,
u, n) can be converted to a number.
Where there is a decimal, there must be a digit to the left of the
decimal point.
Negative numbers are valid.
Examples:
0, 1, 1.0, 10.4K, 2.3M, -0.3P, 1.2m
|
code » | ||||||
Returns true if and only if given character is an invisible formatting
character.
|
code » | ||||||
Returns true if and only if given character should be treated as a breaking
space. All ASCII control characters, the main Unicode range of spacing
characters (U+2000 to U+200B inclusive except for U+2007), and several other
Unicode space characters are treated as breaking spaces.
|
code » | ||||||
Converts number of bytes to string representation. Binary conversion.
Default is to return the additional 'B' suffix, e.g. '10.5KB' to minimize
confusion with counts that are scaled by powers of 1000.
Arguments:
Returns: string
String representation of number of bytes.
|
code » | ||||||
Converts a numeric value to string representation. SI conversion.
|
code » | ||||||
![]()
Converts a numeric value to string, using specified conversion
scales.
Arguments:
Returns: string
The human readable form of the byte size.
|
code » | ||||||
Converts a string to number of bytes, taking into account the units.
Binary conversion.
|
code » | ||||||
Converts a string to numeric value, taking into account the units.
If string ends in 'B', use binary conversion.
|
code » | ||||||
Converts a string to numeric value, taking into account the units.
|
code » |
![]()
No description.
|
Code » | |
![]()
First Unicode code point that has the Mark property.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
True iff the current userAgent is IE8 or above.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
No description.
|
Code » | |
![]()
Scaling factors for conversion of numeric value to string. Binary
conversion.
|
Code » | |
![]()
Scaling factors for conversion of numeric value to string. SI conversion.
|
Code » | |
![]()
Ordered list of scaling prefixes in decreasing order.
|
Code » | |
![]()
Regular expression for detecting scaling units, such as K, M, G, etc. for
converting a string representation to a numeric value.
Also allow 'k' to be aliased to 'K'. These could be used for SI (powers
of 1000) or Binary (powers of 1024) conversions.
Also allow final 'B' to be interpreted as byte-count, implicitly triggering
binary conversion (e.g., '10.2MB').
|
Code » | |
![]()
Constant for the WBR replacement used by insertWordBreaks. Safari requires
|
Code » |