- Sort Score
- Result 10 results
- Languages All
Results 1 - 8 of 8 for safeSet (0.21 sec)
-
src/encoding/json/tables.go
package json import "unicode/utf8" // safeSet holds the value true if the ASCII character with the given array // position can be represented inside a JSON string without any further // escaping. // // All values are true except for the ASCII control characters (0-31), the // double quote ("), and the backslash character ("\"). var safeSet = [utf8.RuneSelf]bool{ ' ': true, '!': true,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Sep 08 18:02:34 UTC 2016 - 4.2K bytes - Viewed (0) -
src/log/slog/json_handler.go
// Copied from encoding/json/tables.go. // // safeSet holds the value true if the ASCII character with the given array // position can be represented inside a JSON string without any further // escaping. // // All values are true except for the ASCII control characters (0-31), the // double quote ("), and the backslash character ("\"). var safeSet = [utf8.RuneSelf]bool{ ' ': true, '!': true,
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Nov 17 16:18:11 UTC 2023 - 8.1K bytes - Viewed (0) -
src/log/slog/text_handler.go
b := s[i] if b < utf8.RuneSelf { // Quote anything except a backslash that would need quoting in a // JSON string, as well as space and '=' if b != '\\' && (b == ' ' || b == '=' || !safeSet[b]) { return true } i++ continue } r, size := utf8.DecodeRuneInString(s[i:]) if r == utf8.RuneError || unicode.IsSpace(r) || !unicode.IsPrint(r) { return true }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Oct 23 22:56:07 UTC 2023 - 4.7K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/AbstractTable.java
Map<C, V> row = Maps.safeGet(rowMap(), rowKey); return row != null && Maps.safeContainsKey(row, columnKey); } @Override @CheckForNull public V get(@CheckForNull Object rowKey, @CheckForNull Object columnKey) { Map<C, V> row = Maps.safeGet(rowMap(), rowKey); return (row == null) ? null : Maps.safeGet(row, columnKey); } @Override public boolean isEmpty() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Jul 15 15:41:16 UTC 2021 - 6.1K bytes - Viewed (0) -
guava/src/com/google/common/collect/AbstractTable.java
Map<C, V> row = Maps.safeGet(rowMap(), rowKey); return row != null && Maps.safeContainsKey(row, columnKey); } @Override @CheckForNull public V get(@CheckForNull Object rowKey, @CheckForNull Object columnKey) { Map<C, V> row = Maps.safeGet(rowMap(), rowKey); return (row == null) ? null : Maps.safeGet(row, columnKey); } @Override public boolean isEmpty() {
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Jul 15 15:41:16 UTC 2021 - 6.5K bytes - Viewed (0) -
src/crypto/sha1/sha1block_amd64.go
// We may add checks inside blockAVX2, but this will // just turn it into a copy of blockAMD64, // so call it directly, instead. safeLen := len(p) - 128 if safeLen%128 != 0 { safeLen -= 64 } blockAVX2(dig, p[:safeLen]) blockAMD64(dig, p[safeLen:]) } else { blockAMD64(dig, p) }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Mar 04 17:29:44 UTC 2024 - 926 bytes - Viewed (0) -
guava-gwt/src-super/com/google/common/collect/super/com/google/common/collect/ForwardingImmutableMap.java
} public final boolean containsValue(@Nullable Object value) { return delegate.containsValue(value); } public @Nullable V get(@Nullable Object key) { return (key == null) ? null : Maps.safeGet(delegate, key); } @Override ImmutableSet<Entry<K, V>> createEntrySet() { return ImmutableSet.unsafeDelegate( new ForwardingSet<Entry<K, V>>() { @Override
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Wed Jan 24 16:03:45 UTC 2024 - 3.9K bytes - Viewed (0) -
src/runtime/metrics/example_test.go
// This should never happen because all metrics are supported // by construction. panic("bug in runtime/metrics package!") default: // This may happen as new metrics get added. // // The safest thing to do here is to simply log it somewhere // as something to look into, but ignore it for now. // In the worst case, you might temporarily miss out on a new metric.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon Feb 08 16:09:01 UTC 2021 - 2.6K bytes - Viewed (0)