- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 58 for isspace (0.2 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) -
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/net/parse.go
// trimSpace returns x without any leading or trailing ASCII whitespace. func trimSpace(x string) string { for len(x) > 0 && isSpace(x[0]) { x = x[1:] } for len(x) > 0 && isSpace(x[len(x)-1]) { x = x[:len(x)-1] } return x } // isSpace reports whether b is an ASCII space character. func isSpace(b byte) bool { return b == ' ' || b == '\t' || b == '\n' || b == '\r' }
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Mon May 06 14:00:54 UTC 2024 - 5.7K bytes - Viewed (0) -
src/mime/mediatype.go
rest = strings.TrimLeftFunc(v, unicode.IsSpace) if !strings.HasPrefix(rest, ";") { return "", "", v } rest = rest[1:] // consume semicolon rest = strings.TrimLeftFunc(rest, unicode.IsSpace) param, rest = consumeToken(rest) param = strings.ToLower(param) if param == "" { return "", "", v } rest = strings.TrimLeftFunc(rest, unicode.IsSpace) if !strings.HasPrefix(rest, "=") {
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 23 01:00:11 UTC 2024 - 9.8K bytes - Viewed (0) -
src/fmt/scan.go
if !isSpace(inputc) && inputc != eof { s.errorString("expected space in input to match format") } if inputc == '\n' { s.errorString("newline in input does not match format") } } for isSpace(inputc) && inputc != '\n' { inputc = s.getRune() } if inputc != eof { s.UnreadRune() } } continue } // Verbs.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Tue Apr 02 21:56:20 UTC 2024 - 31.9K bytes - Viewed (0) -
src/cmd/go/internal/envcmd/env_test.go
" isn't testing.", s) } if c > unicode.MaxASCII { t.Skipf("skipping %#q: contains a non-ASCII character %q", s, c) } if !unicode.IsGraphic(rune(c)) && !unicode.IsSpace(rune(c)) { t.Skipf("skipping %#q: contains non-graphic character %q", s, c) } if runtime.GOOS == "windows" && c == '\r' || c == '\n' { t.Skipf("skipping %#q on Windows: contains unescapable character %q", s, c)
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Thu May 16 14:34:32 UTC 2024 - 2.3K bytes - Viewed (0) -
src/strings/strings_test.go
"not " + p.name, } } var trimFuncTests = []struct { f predicate in string trimOut string leftOut string rightOut string }{ {isSpace, space + " hello " + space, "hello", "hello " + space, space + " hello"}, {isDigit, "\u0e50\u0e5212hello34\u0e50\u0e51", "hello", "hello34\u0e50\u0e51", "\u0e50\u0e5212hello"},
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 12:58:37 UTC 2024 - 53K bytes - Viewed (0) -
src/strings/strings.go
for i := 0; i < len(s); i++ { r := s[i] setBits |= r isSpace := int(asciiSpace[r]) n += wasSpace & ^isSpace wasSpace = isSpace } if setBits >= utf8.RuneSelf { // Some runes in the input string are not ASCII. return FieldsFunc(s, unicode.IsSpace) } // ASCII fast path a := make([]string, n) na := 0 fieldStart := 0 i := 0 // Skip spaces in the front of the input.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 03 16:48:16 UTC 2024 - 31.2K bytes - Viewed (0) -
src/internal/trace/raw/doc.go
consist of any UTF-8 character except '='. For example: EventName arg1=23 arg2=55 arg3=53 Any amount of whitespace is allowed to separate each token. Whitespace is identified via unicode.IsSpace. Some events have additional data on following lines. There are two such special cases. The first special case consists of events with trailing byte-oriented data.
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Fri May 17 18:48:18 UTC 2024 - 2.3K bytes - Viewed (0) -
src/go/build/read.go
} trimSpace := func() { trim := strings.TrimLeftFunc(args, unicode.IsSpace) trimBytes(len(args) - len(trim)) } var list []fileEmbed for trimSpace(); args != ""; trimSpace() { var path string pathPos := pos Switch: switch args[0] { default: i := len(args) for j, c := range args { if unicode.IsSpace(c) { i = j break } } path = args[:i]
Registered: Wed Jun 12 16:32:35 UTC 2024 - Last Modified: Wed May 29 16:25:21 UTC 2024 - 14.1K bytes - Viewed (0)