Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 36 for idchar (0.13 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. pkg/volume/hostpath/host_path_test.go

    			if oftc.IsBlock() {
    				t.Errorf("[%d: %q] expected socket file, got unexpected block device: %s", i, tc.name, path)
    			}
    			if oftc.IsChar() {
    				t.Errorf("[%d: %q] expected socket file, got unexpected character device: %s", i, tc.name, path)
    			}
    		}
    
    		if tc.isChar {
    			if !oftc.IsChar() {
    				t.Errorf("[%d: %q] expected character device, got unexpected: %s", i, tc.name, path)
    			}
    			if oftc.IsDir() {
    Registered: Sat Jun 15 01:39:40 UTC 2024
    - Last Modified: Tue Mar 14 00:37:30 UTC 2023
    - 20.5K bytes
    - Viewed (0)
  4. 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)
  5. guava/src/com/google/common/base/Strings.java

       *     which case the input string is always returned.
       * @param padChar the character to insert at the beginning of the result until the minimum length
       *     is reached
       * @return the padded string
       */
      public static String padStart(String string, int minLength, char padChar) {
        checkNotNull(string); // eager for GWT.
        if (string.length() >= minLength) {
          return string;
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Sep 17 20:47:03 UTC 2021
    - 12.6K bytes
    - Viewed (0)
  6. 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)
  7. 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)
  8. 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)
  9. 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)
  10. android/guava/src/com/google/common/base/Strings.java

       *     which case the input string is always returned.
       * @param padChar the character to insert at the beginning of the result until the minimum length
       *     is reached
       * @return the padded string
       */
      public static String padStart(String string, int minLength, char padChar) {
        checkNotNull(string); // eager for GWT.
        if (string.length() >= minLength) {
          return string;
        }
    Registered: Wed Jun 12 16:38:11 UTC 2024
    - Last Modified: Fri Apr 09 00:49:18 UTC 2021
    - 12.3K bytes
    - Viewed (0)
Back to top