- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 158 for isspace (0.4 sec)
-
fess-crawler/src/main/java/org/codelibs/fess/crawler/util/TextUtil.java
isSpace = removeLastDuplication(buf, alphanumSize, isSpace, termCache); } else if (symbolSize > 0) { isSpace = removeLastDuplication(buf, symbolSize, isSpace, termCache); } } // space if (!isSpace && !isLastSpaceChar(buf)) {
Registered: Wed Jun 12 15:17:51 UTC 2024 - Last Modified: Thu Feb 22 01:36:27 UTC 2024 - 7.9K bytes - Viewed (0) -
pkg/config/validation/header_value_validator.go
state = ExpectStringParserState } else if !isSpace(ch) { // Consume it as a string argument. state = StringParserState } case ExpectArrayDelimiterOrEndParserState: // Skip over whitespace searching for a comma or close bracket. if ch == ',' { state = ExpectStringParserState } else if ch == ']' { state = ExpectArgsEndParserState } else if !isSpace(ch) {
Registered: Fri Jun 14 15:00:06 UTC 2024 - Last Modified: Wed Feb 15 21:37:52 UTC 2023 - 4.6K bytes - Viewed (0) -
src/internal/trace/raw/textreader.go
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 4.9K bytes - Viewed (0) -
src/cmd/gofmt/internal.go
// was empty but (possibly) for white space. // The result is the incoming source. if len(out) == 0 { return src, nil } // Otherwise, append output to leading space. res = append(res, out...) // Determine and append trailing space. i = len(src) for i > 0 && isSpace(src[i-1]) { i-- } return append(res, src[i:]...), nil } // isSpace reports whether the byte is a space character.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 28 14:23:08 UTC 2020 - 5K bytes - Viewed (0) -
src/go/format/internal.go
// was empty but (possibly) for white space. // The result is the incoming source. if len(out) == 0 { return src, nil } // Otherwise, append output to leading space. res = append(res, out...) // Determine and append trailing space. i = len(src) for i > 0 && isSpace(src[i-1]) { i-- } return append(res, src[i:]...), nil } // isSpace reports whether the byte is a space character.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Feb 28 14:23:08 UTC 2020 - 5K bytes - Viewed (0) -
src/fmt/export_test.go
// Copyright 2012 The Go Authors. All rights reserved. // Use of this source code is governed by a BSD-style // license that can be found in the LICENSE file. package fmt var IsSpace = isSpace
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Oct 04 21:00:35 UTC 2016 - 219 bytes - Viewed (0) -
src/time/zoneinfo_plan9.go
"syscall" ) var platformZoneSources []string // none on Plan 9 func isSpace(r rune) bool { return r == ' ' || r == '\t' || r == '\n' } // Copied from strings to avoid a dependency. func fields(s string) []string { // First count the fields. n := 0 inField := false for _, rune := range s { wasInField := inField inField = !isSpace(rune) if inField && !wasInField { n++ } }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu Feb 16 23:09:19 UTC 2023 - 2.7K bytes - Viewed (0) -
src/unicode/example_test.go
fmt.Printf("%t\n", unicode.IsTitle('a')) // Output: // true // false } func ExampleIsSpace() { fmt.Printf("%t\n", unicode.IsSpace(' ')) fmt.Printf("%t\n", unicode.IsSpace('\n')) fmt.Printf("%t\n", unicode.IsSpace('\t')) fmt.Printf("%t\n", unicode.IsSpace('a')) // Output: // true // true // true // false
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Oct 08 00:18:29 UTC 2021 - 5.2K bytes - Viewed (0) -
src/testing/match_test.go
"regexp" "strings" "unicode" ) func init() { testingTesting = true } // Verify that our IsSpace agrees with unicode.IsSpace. func TestIsSpace(t *T) { n := 0 for r := rune(0); r <= unicode.MaxRune; r++ { if isSpace(r) != unicode.IsSpace(r) { t.Errorf("IsSpace(%U)=%t incorrect", r, isSpace(r)) n++ if n > 10 { return } } } } func TestSplitRegexp(t *T) {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri Sep 16 14:48:54 UTC 2022 - 8K bytes - Viewed (0) -
src/unicode/letter_test.go
} } } func TestIsSpace(t *testing.T) { for _, c := range spaceTest { if !IsSpace(c) { t.Errorf("IsSpace(U+%04X) = false; want true", c) } } for _, c := range letterTest { if IsSpace(c) { t.Errorf("IsSpace(U+%04X) = true; want false", c) } } } // Check that the optimizations for IsLetter etc. agree with the tables.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Sat Sep 09 01:46:03 UTC 2023 - 14.8K bytes - Viewed (0)