- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 46 for safeSet (0.22 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) -
src/encoding/json/encode.go
dst = append(dst, '"') start := 0 for i := 0; i < len(src); { if b := src[i]; b < utf8.RuneSelf { if htmlSafeSet[b] || (!escapeHTML && safeSet[b]) { i++ continue } dst = append(dst, src[start:i]...) switch b { case '\\', '"': dst = append(dst, '\\', b) case '\b': dst = append(dst, '\\', 'b') case '\f':
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 00:18:55 UTC 2024 - 36.2K 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/src/com/google/common/collect/ConcurrentHashMultiset.java
* @param element the element to look for * @return the nonnegative number of occurrences of the element */ @Override public int count(@CheckForNull Object element) { AtomicInteger existingCounter = Maps.safeGet(countMap, element); return (existingCounter == null) ? 0 : existingCounter.get(); } /** * {@inheritDoc} *
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 20.9K bytes - Viewed (0) -
android/guava/src/com/google/common/collect/ConcurrentHashMultiset.java
* @param element the element to look for * @return the nonnegative number of occurrences of the element */ @Override public int count(@CheckForNull Object element) { AtomicInteger existingCounter = Maps.safeGet(countMap, element); return (existingCounter == null) ? 0 : existingCounter.get(); } /** * {@inheritDoc} *
Registered: Wed Jun 12 16:38:11 UTC 2024 - Last Modified: Thu Feb 22 21:19:52 UTC 2024 - 20.9K 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)