Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 10 of 25 for unicode (0.2 sec)

  1. src/bytes/example_test.go

    }
    
    func ExampleTrimFunc() {
    	fmt.Println(string(bytes.TrimFunc([]byte("go-gopher!"), unicode.IsLetter)))
    	fmt.Println(string(bytes.TrimFunc([]byte("\"go-gopher!\""), unicode.IsLetter)))
    	fmt.Println(string(bytes.TrimFunc([]byte("go-gopher!"), unicode.IsPunct)))
    	fmt.Println(string(bytes.TrimFunc([]byte("1234go-gopher!567"), unicode.IsNumber)))
    	// Output:
    	// -gopher!
    	// "go-gopher!"
    	// go-gopher
    	// go-gopher!
    }
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Mar 04 15:54:40 GMT 2024
    - 15K bytes
    - Viewed (1)
  2. src/bytes/bytes.go

    			}
    			b[i] = c
    		}
    		return b
    	}
    	return Map(unicode.ToLower, s)
    }
    
    // ToTitle treats s as UTF-8-encoded bytes and returns a copy with all the Unicode letters mapped to their title case.
    func ToTitle(s []byte) []byte { return Map(unicode.ToTitle, s) }
    
    // ToUpperSpecial treats s as UTF-8-encoded bytes and returns a copy with all the Unicode letters mapped to their
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Feb 19 19:51:15 GMT 2024
    - 33.8K bytes
    - Viewed (0)
  3. api/go1.5.txt

    pkg time, method (Time) AppendFormat([]uint8, string) []uint8
    pkg unicode, const Version = "8.0.0"
    pkg unicode, var Ahom *RangeTable
    pkg unicode, var Anatolian_Hieroglyphs *RangeTable
    pkg unicode, var Hatran *RangeTable
    pkg unicode, var Multani *RangeTable
    pkg unicode, var Old_Hungarian *RangeTable
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Thu Jul 30 21:14:09 GMT 2015
    - 46.6K bytes
    - Viewed (0)
  4. src/archive/tar/strconv_test.go

    		{"0.123456789abcdef", time.Time{}, false},
    		{"foo", time.Time{}, false},
    		{"\x00", time.Time{}, false},
    		{"đŸĩ𝟴đŸŗ𝟲𝟱.đŸ°đŸ¯đŸŽđŸ­đŸŦ", time.Time{}, false}, // Unicode numbers (U+1D7EC to U+1D7F5)
    		{"98765īš’43210", time.Time{}, false}, // Unicode period (U+FE52)
    	}
    
    	for _, v := range vectors {
    		ts, err := parsePAXTime(v.in)
    		ok := (err == nil)
    		if v.ok != ok {
    			if v.ok {
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Tue Feb 09 05:28:50 GMT 2021
    - 14K bytes
    - Viewed (0)
  5. src/bufio/scan.go

    	if atEOF {
    		return len(data), dropCR(data), nil
    	}
    	// Request more data.
    	return 0, nil, nil
    }
    
    // isSpace reports whether the character is a Unicode white space character.
    // We avoid dependency on the unicode package, but check validity of the implementation
    // in the tests.
    func isSpace(r rune) bool {
    	if r <= '\u00FF' {
    		// Obvious ASCII ones: \t through \r plus space. Plus two Latin-1 oddballs.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Mon Oct 23 09:06:30 GMT 2023
    - 14.2K bytes
    - Viewed (0)
  6. src/bytes/buffer.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package bytes
    
    // Simple byte buffer for marshaling data.
    
    import (
    	"errors"
    	"io"
    	"unicode/utf8"
    )
    
    // smallBufferSize is an initial allocation minimal capacity.
    const smallBufferSize = 64
    
    // A Buffer is a variable-sized buffer of bytes with [Buffer.Read] and [Buffer.Write] methods.
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Oct 13 17:10:31 GMT 2023
    - 15.7K bytes
    - Viewed (0)
  7. api/go1.4.txt

    pkg unicode, var Linear_A *RangeTable
    pkg unicode, var Mahajani *RangeTable
    pkg unicode, var Manichaean *RangeTable
    pkg unicode, var Mende_Kikakui *RangeTable
    pkg unicode, var Modi *RangeTable
    pkg unicode, var Mro *RangeTable
    pkg unicode, var Nabataean *RangeTable
    pkg unicode, var Old_North_Arabian *RangeTable
    pkg unicode, var Old_Permic *RangeTable
    pkg unicode, var Pahawh_Hmong *RangeTable
    pkg unicode, var Palmyrene *RangeTable
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Fri Dec 12 03:01:01 GMT 2014
    - 34K bytes
    - Viewed (0)
  8. src/bytes/buffer_test.go

    // license that can be found in the LICENSE file.
    
    package bytes_test
    
    import (
    	. "bytes"
    	"fmt"
    	"internal/testenv"
    	"io"
    	"math/rand"
    	"strconv"
    	"testing"
    	"unicode/utf8"
    )
    
    const N = 10000       // make this bigger for a larger (and slower) test
    var testString string // test data for write tests
    var testBytes []byte  // test data; same as testString but as a slice.
    
    Go
    - Registered: Tue Apr 30 11:13:12 GMT 2024
    - Last Modified: Fri Apr 26 13:31:36 GMT 2024
    - 18.6K bytes
    - Viewed (0)
  9. api/go1.7.txt

    pkg testing, type InternalExample struct, Unordered bool
    pkg unicode, const Version = "9.0.0"
    pkg unicode, var Adlam *RangeTable
    pkg unicode, var Bhaiksuki *RangeTable
    pkg unicode, var Marchen *RangeTable
    pkg unicode, var Newa *RangeTable
    pkg unicode, var Osage *RangeTable
    pkg unicode, var Prepended_Concatenation_Mark *RangeTable
    pkg unicode, var Sentence_Terminal *RangeTable
    Plain Text
    - Registered: Tue May 07 11:14:38 GMT 2024
    - Last Modified: Tue Jun 28 15:08:11 GMT 2016
    - 13.6K bytes
    - Viewed (0)
  10. src/bufio/scan_test.go

    	"io"
    	"strings"
    	"testing"
    	"unicode"
    	"unicode/utf8"
    )
    
    const smallMaxTokenSize = 256 // Much smaller for more efficient testing.
    
    // Test white space table matches the Unicode definition.
    func TestSpace(t *testing.T) {
    	for r := rune(0); r <= utf8.MaxRune; r++ {
    		if IsSpace(r) != unicode.IsSpace(r) {
    			t.Fatalf("white space property disagrees: %#U should be %t", r, unicode.IsSpace(r))
    		}
    	}
    }
    
    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)
Back to top