Search Options

Results per page
Sort
Preferred Languages
Advance

Results 1 - 2 of 2 for cu1 (0.02 sec)

  1. test/fixedbugs/bug013.go

    // Use of this source code is governed by a BSD-style
    // license that can be found in the LICENSE file.
    
    package main
    
    func main() {
    	var cu0 uint16 = '\u1234';
    	var cU1 uint32 = '\U00101234';
    	_, _ = cu0, cU1;
    }
    /*
    bug13.go:4: missing '
    bug13.go:4: syntax error
    bug13.go:5: newline in string
    bug13.go:5: missing '
    bug13.go:6: newline in string
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Fri Feb 17 04:48:57 UTC 2012
    - 411 bytes
    - Viewed (0)
  2. test/literal.go

    	var cx1 uint8 = '\x0f'
    	var cx2 uint8 = '\xff'
    	assert(cx0 == 0, "cx0")
    	assert(cx1 == 15, "cx1")
    	assert(cx2 == 255, "cx2")
    
    	var cu0 uint16 = '\u1234'
    	var cu1 uint32 = '\U00101234'
    	assert(cu0 == 0x1234, "cu0")
    	assert(cu1 == 0x101234, "cu1")
    
    	// string
    	var s0 string = ""
    	var s1 string = "hellĂ´"
    	assert(s1[0] == 'h', "s1-0")
    	assert(s1[4] == 0xc3, "s1-4")
    	assert(s1[5] == 0xb4, "s1-5")
    Registered: Wed Jun 12 16:32:35 UTC 2024
    - Last Modified: Tue Feb 12 18:17:49 UTC 2013
    - 5K bytes
    - Viewed (0)
Back to top