×

Golang Tutorial

Golang Reference

Golang Programs

Golang Practice

Golang Miscellaneous

Golang unicode.MaxCase Constant with Examples

Golang | unicode.MaxCase Constant: Here, we are going to learn about the MaxCase constant of the unicode package with its usages, syntax, and examples.
Submitted by IncludeHelp, on September 16, 2021

unicode.MaxCase Constant

The MaxCase constant is an inbuilt constant of the unicode package which is used to get the index into the delta arrays inside CaseRanges for case mapping. The value of MaxCase constant is 3.

Syntax

int unicode.MaxCase

Parameters

  • None

Return Value

The return type of the unicode.MaxCase constant is an int, it returns the index into the delta arrays inside CaseRanges for case mapping.

Example

// Golang program to demonstrate the
// example of unicode.MaxCase constant

package main

import (
	"fmt"
	"unicode"
)

func main() {
	fmt.Printf("Value of unicode.MaxCase: %d\n",
		unicode.MaxCase)
	fmt.Printf("Type of unicode.MaxCase: %T\n",
		unicode.MaxCase)
}

Output:

Value of unicode.MaxCase: 3
Type of unicode.MaxCase: int

Golang unicode Package »




Comments and Discussions!

Load comments ↻





Copyright © 2024 www.includehelp.com. All rights reserved.