Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 57 for unicode (0.42 sec)

  1. src/cmd/go/internal/help/help.go

    // license that can be found in the LICENSE file.
    
    // Package help implements the “go help” command.
    package help
    
    import (
    	"bufio"
    	"fmt"
    	"io"
    	"os"
    	"strings"
    	"text/template"
    	"unicode"
    	"unicode/utf8"
    
    	"cmd/go/internal/base"
    	"cmd/internal/telemetry"
    )
    
    var counterErrorsHelpUnknownTopic = telemetry.NewCounter("go/errors:help-unknown-topic")
    
    // Help implements the 'help' command.
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 18:15:22 UTC 2024
    - 4.7K bytes
    - Viewed (0)
  2. src/cmd/go/internal/envcmd/env_test.go

    					" outside of Plan 9, which has different code path than Windows and Unix that this test"+
    					" 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' {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu May 16 14:34:32 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  3. src/cmd/go/internal/str/str.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    // Package str provides string manipulation utilities.
    package str
    
    import (
    	"fmt"
    	"strings"
    	"unicode"
    	"unicode/utf8"
    )
    
    // StringList flattens its arguments into a single []string.
    // Each argument in args must have type string or []string.
    func StringList(args ...any) []string {
    	var x []string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Jan 23 20:08:07 UTC 2024
    - 2.3K bytes
    - Viewed (0)
  4. utils/utils.go

    			return string(strconv.AppendInt(append([]byte(frame.File), ':'), int64(frame.Line), 10))
    		}
    	}
    
    	return ""
    }
    
    func IsValidDBNameChar(c rune) bool {
    	return !unicode.IsLetter(c) && !unicode.IsNumber(c) && c != '.' && c != '*' && c != '_' && c != '$' && c != '@'
    }
    
    // CheckTruth check string true or not
    func CheckTruth(vals ...string) bool {
    	for _, val := range vals {
    Registered: Wed Jun 12 16:27:09 UTC 2024
    - Last Modified: Mon Apr 22 06:43:02 UTC 2024
    - 3.8K bytes
    - Viewed (0)
  5. src/cmd/go/internal/envcmd/env.go

    	}
    	b.WriteByte('\'')
    	return b.String()
    }
    
    func batchEscape(s string) string {
    	var b bytes.Buffer
    	for _, x := range []byte(s) {
    		if x == '\r' || x == '\n' || (!unicode.IsGraphic(rune(x)) && !unicode.IsSpace(rune(x))) {
    			b.WriteRune(unicode.ReplacementChar)
    			continue
    		}
    		switch x {
    		case '%':
    			b.WriteString("%%")
    		case '<', '>', '|', '&', '^':
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 24 17:13:51 UTC 2024
    - 19.6K bytes
    - Viewed (0)
  6. src/cmd/cgo/internal/testplugin/testdata/issue62430/main.go

    		panic(err)
    	}
    
    	f := s.(func(string) *unicode.RangeTable)
    	if f("C") == nil {
    		panic("unicode.Categories not properly initialized")
    	} else {
    		fmt.Println("unicode.Categories properly initialized")
    	}
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 13:18:51 UTC 2023
    - 804 bytes
    - Viewed (0)
  7. src/cmd/compile/internal/noder/noder.go

    // license that can be found in the LICENSE file.
    
    package noder
    
    import (
    	"errors"
    	"fmt"
    	"internal/buildcfg"
    	"os"
    	"path/filepath"
    	"runtime"
    	"strconv"
    	"strings"
    	"unicode"
    	"unicode/utf8"
    
    	"cmd/compile/internal/base"
    	"cmd/compile/internal/ir"
    	"cmd/compile/internal/syntax"
    	"cmd/compile/internal/typecheck"
    	"cmd/compile/internal/types"
    	"cmd/internal/objabi"
    )
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Oct 11 20:40:57 UTC 2023
    - 12.5K bytes
    - Viewed (0)
  8. src/cmd/cgo/internal/testplugin/testdata/issue62430/plugin.go

    package main
    
    import (
    	"unicode"
    )
    
    func F(s string) *unicode.RangeTable {
    	return unicode.Categories[s]
    }
    
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Thu Sep 07 13:18:51 UTC 2023
    - 124 bytes
    - Viewed (0)
  9. src/bytes/bytes_test.go

    	maxRune := func(r rune) rune { return unicode.MaxRune }
    	m := Map(maxRune, []byte(a))
    	expect := tenRunes(unicode.MaxRune)
    	if string(m) != expect {
    		t.Errorf("growing: expected %q got %q", expect, m)
    	}
    
    	// 2. Shrink
    	minRune := func(r rune) rune { return 'a' }
    	m = Map(minRune, []byte(tenRunes(unicode.MaxRune)))
    	expect = a
    	if string(m) != expect {
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri May 03 12:58:37 UTC 2024
    - 56.5K bytes
    - Viewed (0)
  10. src/cmd/go/testdata/savedir.go

    package main
    
    import (
    	"cmd/go/internal/str"
    	"flag"
    	"fmt"
    	"internal/txtar"
    	"io/fs"
    	"log"
    	"os"
    	"path/filepath"
    	"strings"
    	"unicode/utf8"
    )
    
    func usage() {
    	fmt.Fprintf(os.Stderr, "usage: go run savedir.go dir >saved.txt\n")
    	os.Exit(2)
    }
    
    const goCmd = "vgo"
    
    func main() {
    	flag.Usage = usage
    	flag.Parse()
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Wed Aug 30 19:41:54 UTC 2023
    - 1.5K bytes
    - Viewed (0)
Back to top