- Sort Score
- Result 10 results
- Languages All
Results 1 - 10 of 212 for Text (0.22 sec)
-
src/cmd/asm/internal/lex/lex.go
type Token struct { ScanToken text string } // Make returns a Token with the given rune (ScanToken) and text representation. func Make(token ScanToken, text string) Token { // Substitute the substitutes for . and /. text = strings.ReplaceAll(text, "\u00B7", ".") text = strings.ReplaceAll(text, "\u2215", "/") return Token{ScanToken: token, text: text} } func (l Token) String() string {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Tue Aug 29 18:31:05 GMT 2023 - 4.1K bytes - Viewed (0) -
src/cmd/asm/internal/lex/slice.go
s.pos++ if s.pos >= len(s.tokens) { return scanner.EOF } return s.tokens[s.pos].ScanToken } func (s *Slice) Text() string { return s.tokens[s.pos].text } func (s *Slice) File() string { return s.base.Filename() } func (s *Slice) Base() *src.PosBase { return s.base } func (s *Slice) SetBase(base *src.PosBase) {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Jun 29 22:49:50 GMT 2023 - 1.6K bytes - Viewed (0) -
src/cmd/asm/internal/lex/tokenizer.go
} func (t *Tokenizer) Col() int { return t.s.Pos().Column } func (t *Tokenizer) Next() ScanToken { s := t.s for { t.tok = ScanToken(s.Scan()) if t.tok != scanner.Comment { break } text := s.TokenText() t.line += strings.Count(text, "\n") if constraint.IsGoBuild(text) { t.tok = BuildComment break } } switch t.tok { case '\n': t.line++
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Thu Aug 04 20:35:21 GMT 2022 - 3K bytes - Viewed (0) -
src/bufio/scan_test.go
} numSplits++ return 1, data[0:1], nil } // Read the data. const text = "abcdefghijklmnopqrstuvwxyz" buf := strings.NewReader(text) s := NewScanner(&slowReader{1, buf}) s.Split(errorSplit) var i int for i = 0; s.Scan(); i++ { if len(s.Bytes()) != 1 || text[i] != s.Bytes()[0] { t.Errorf("#%d: expected %q got %q", i, text[i], s.Bytes()[0]) } } // Check correct termination location and error.
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Fri Sep 22 16:22:42 GMT 2023 - 14.3K bytes - Viewed (0) -
src/cmd/asm/internal/lex/stack.go
s.tr = append(s.tr, tr) } func (s *Stack) Next() ScanToken { tos := s.tr[len(s.tr)-1] tok := tos.Next() for tok == scanner.EOF && len(s.tr) > 1 { tos.Close() // Pop the topmost item from the stack and resume with the next one down. s.tr = s.tr[:len(s.tr)-1] tok = s.Next() } return tok } func (s *Stack) Text() string { return s.tr[len(s.tr)-1].Text() } func (s *Stack) File() string {
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Mon Jan 09 22:33:23 GMT 2017 - 1.2K bytes - Viewed (0) -
misc/go_android_exec/exitcode_test.go
) func TestExitCodeFilter(t *testing.T) { // Write text to the filter one character at a time. var out strings.Builder f, exitStr := newExitCodeFilter(&out) // Embed a "fake" exit code in the middle to check that we don't get caught on it. pre := "abc" + exitStr + "123def" text := pre + exitStr + `1` for i := 0; i < len(text); i++ { _, err := f.Write([]byte{text[i]}) if err != nil { t.Fatal(err) } }
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed May 03 14:54:58 GMT 2023 - 2.1K bytes - Viewed (0) -
cmd/metacache-stream_test.go
shifts.wb.expect-noinput", "src/compress/flate/testdata/huffman-text-shift.dyn.expect", "src/compress/flate/testdata/huffman-text-shift.dyn.expect-noinput", "src/compress/flate/testdata/huffman-text-shift.golden", "src/compress/flate/testdata/huffman-text-shift.in", "src/compress/flate/testdata/huffman-text-shift.wb.expect", "src/compress/flate/testdata/huffman-text-shift.wb.expect-noinput", "src/compress/flate/testdata/huffman-text.dyn.expect", "src/compress/flate/testdata/huffman-text.dyn.expect-noinput",...
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Mon Sep 19 18:05:16 GMT 2022 - 15K bytes - Viewed (0) -
internal/config/compress/compress_test.go
}{ // invalid input {",,,", []string{}, false}, {"", []string{}, false}, {",", []string{}, false}, {"/", []string{}, false}, {"text/*,/", []string{}, false}, // valid input {".txt,.log", []string{".txt", ".log"}, true}, {"text/*,application/json", []string{"text/*", "application/json"}, true}, } for _, testCase := range testCases { testCase := testCase t.Run(testCase.str, func(t *testing.T) {
Go - Registered: Sun Apr 28 19:28:10 GMT 2024 - Last Modified: Tue Jun 01 21:59:40 GMT 2021 - 1.8K bytes - Viewed (0) -
src/cmd/asm/internal/asm/asm.go
nameAddr := p.address(operands[0]) if !p.validSymbol("TEXT", &nameAddr, false) { return } name := symbolName(&nameAddr) next := 1 // Next operand is the optional text flag, a literal integer. var flag = int64(0) if len(operands) == 3 { flag = p.evalInteger("TEXT", operands[1]) next++ } // Issue an error if we see a function defined as ABIInternal
Go - Registered: Tue Apr 30 11:13:12 GMT 2024 - Last Modified: Wed Feb 21 14:34:57 GMT 2024 - 25.3K bytes - Viewed (0) -
internal/s3select/select_test.go
Go - Registered: Sun Apr 21 19:28:08 GMT 2024 - Last Modified: Sat Dec 23 07:19:11 GMT 2023 - 76.2K bytes - Viewed (0)