Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 48 for idchar (0.15 sec)

  1. src/text/template/parse/parse_test.go

    	{"rparen",
    		"{{.X 1 2 3 ) }}",
    		hasError, "unexpected right paren"},
    	{"rparen2",
    		"{{(.X 1 2 3",
    		hasError, `unclosed action`},
    	{"space",
    		"{{`x`3}}",
    		hasError, `in operand`},
    	{"idchar",
    		"{{a#}}",
    		hasError, `'#'`},
    	{"charconst",
    		"{{'a}}",
    		hasError, `unterminated character constant`},
    	{"stringconst",
    		`{{"a}}`,
    		hasError, `unterminated quoted string`},
    	{"rawstringconst",
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Sat Feb 24 21:59:12 UTC 2024
    - 24K bytes
    - Viewed (0)
  2. src/text/tabwriter/tabwriter.go

    func (b *Writer) Init(output io.Writer, minwidth, tabwidth, padding int, padchar byte, flags uint) *Writer {
    	if minwidth < 0 || tabwidth < 0 || padding < 0 {
    		panic("negative minwidth, tabwidth, or padding")
    	}
    	b.output = output
    	b.minwidth = minwidth
    	b.tabwidth = tabwidth
    	b.padding = padding
    	for i := range b.padbytes {
    		b.padbytes[i] = padchar
    	}
    	if padchar == '\t' {
    		// tab padding enforces left-alignment
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Feb 29 16:46:34 UTC 2024
    - 17.8K bytes
    - Viewed (0)
  3. src/encoding/base64/base64.go

    	dst[di+1] = enc.encode[val>>12&0x3F]
    
    	switch remain {
    	case 2:
    		dst[di+2] = enc.encode[val>>6&0x3F]
    		if enc.padChar != NoPadding {
    			dst[di+3] = byte(enc.padChar)
    		}
    	case 1:
    		if enc.padChar != NoPadding {
    			dst[di+2] = byte(enc.padChar)
    			dst[di+3] = byte(enc.padChar)
    		}
    	}
    }
    
    // AppendEncode appends the base64 encoded src to dst
    // and returns the extended buffer.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Sep 08 19:04:28 UTC 2023
    - 17.6K bytes
    - Viewed (0)
  4. guava-tests/test/com/google/common/base/JoinerTest.java

          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testOnCharOverride() {
        Joiner onChar = Joiner.on('-');
        checkNoOutput(onChar, ITERABLE_);
        checkResult(onChar, ITERABLE_1, "1");
        checkResult(onChar, ITERABLE_12, "1-2");
        checkResult(onChar, ITERABLE_123, "1-2-3");
      }
    
      public void testSkipNulls() {
        Joiner skipNulls = J.skipNulls();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  5. src/encoding/base32/base32.go

    // DecodedLen returns the maximum length in bytes of the decoded data
    // corresponding to n bytes of base32-encoded data.
    func (enc *Encoding) DecodedLen(n int) int {
    	return decodedLen(n, enc.padChar)
    }
    
    func decodedLen(n int, padChar rune) int {
    	if padChar == NoPadding {
    		return n/8*5 + n%8*5/8
    	}
    	return n / 8 * 5
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue May 14 16:25:54 UTC 2024
    - 15.9K bytes
    - Viewed (0)
  6. analysis/analysis-api/src/org/jetbrains/kotlin/analysis/api/components/KtTypeInfoProvider.kt

        public val KaType.isDouble: Boolean get() = withValidityAssertion { isClassTypeWithClassId(DefaultTypeClassIds.DOUBLE) }
        public val KaType.isChar: Boolean get() = withValidityAssertion { isClassTypeWithClassId(DefaultTypeClassIds.CHAR) }
        public val KaType.isBoolean: Boolean get() = withValidityAssertion { isClassTypeWithClassId(DefaultTypeClassIds.BOOLEAN) }
    Registered: Wed Jun 12 09:53:16 UTC 2024
    - Last Modified: Tue Jun 04 08:26:19 UTC 2024
    - 10.2K bytes
    - Viewed (0)
  7. android/guava-tests/test/com/google/common/base/JoinerTest.java

          fail();
        } catch (NullPointerException expected) {
        }
      }
    
      public void testOnCharOverride() {
        Joiner onChar = Joiner.on('-');
        checkNoOutput(onChar, ITERABLE_);
        checkResult(onChar, ITERABLE_1, "1");
        checkResult(onChar, ITERABLE_12, "1-2");
        checkResult(onChar, ITERABLE_123, "1-2-3");
      }
    
      public void testSkipNulls() {
        Joiner skipNulls = J.skipNulls();
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Feb 09 15:49:48 UTC 2024
    - 12.6K bytes
    - Viewed (0)
  8. okhttp/src/test/java/okhttp3/WebPlatformUrlTestData.kt

          return buildString {
            val buffer = Buffer().writeUtf8(s)
            while (!buffer.exhausted()) {
              val c = buffer.readUtf8CodePoint()
              if (c != '\\'.code) {
                append(c.toChar())
                continue
              }
              when (buffer.readUtf8CodePoint()) {
                '\\'.code -> append('\\')
                '#'.code -> append('#')
                'n'.code -> append('\n')
    Registered: Sun Jun 16 04:42:17 UTC 2024
    - Last Modified: Mon Jan 08 01:13:22 UTC 2024
    - 3.7K bytes
    - Viewed (0)
  9. src/net/mail/message.go

    	b.WriteByte('"')
    	for _, r := range s {
    		if isQtext(r) || isWSP(r) {
    			b.WriteRune(r)
    		} else if isVchar(r) {
    			b.WriteByte('\\')
    			b.WriteRune(r)
    		}
    	}
    	b.WriteByte('"')
    	return b.String()
    }
    
    // isVchar reports whether r is an RFC 5322 VCHAR character.
    func isVchar(r rune) bool {
    	// Visible (printing) characters.
    	return '!' <= r && r <= '~' || isMultibyte(r)
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Mar 19 11:31:03 UTC 2024
    - 23.5K bytes
    - Viewed (0)
  10. testing/smoke-test/src/smokeTest/resources/org/gradle/smoketests/kotlin-multiplatform-js-jvm-example/src/commonMain/kotlin/samples/Base64.kt

        fun encode(src: ByteArray): ByteArray
        fun encodeToString(src: ByteArray): String {
            val encoded = encode(src)
            return buildString(encoded.size) {
                encoded.forEach { append(it.toInt().toChar()) }
            }
        }
    }
    
    expect object Base64Factory {
        fun createEncoder(): Base64Encoder
    Registered: Wed Jun 12 18:38:38 UTC 2024
    - Last Modified: Fri Apr 05 07:33:24 UTC 2024
    - 978 bytes
    - Viewed (0)
Back to top