github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library@v0.2.0/Unicode_/Unicode_.go (about)

     1  // Package _Unicode
     2  // Dafny module _Unicode compiled into Go
     3  
     4  package _Unicode
     5  
     6  import (
     7  	os "os"
     8  
     9  	m_BoundedInts "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/BoundedInts"
    10  	m__Math "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Math_"
    11  	m_Relations "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Relations"
    12  	m_Seq "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Seq"
    13  	m_Seq_MergeSort "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Seq_MergeSort"
    14  	m_Wrappers "github.com/aws/aws-cryptographic-material-providers-library/releases/go/smithy-dafny-standard-library/Wrappers"
    15  	m__System "github.com/dafny-lang/DafnyRuntimeGo/v4/System_"
    16  	_dafny "github.com/dafny-lang/DafnyRuntimeGo/v4/dafny"
    17  )
    18  
    19  var _ = os.Args
    20  var _ _dafny.Dummy__
    21  var _ m__System.Dummy__
    22  var _ m_Wrappers.Dummy__
    23  var _ m_Relations.Dummy__
    24  var _ m_Seq_MergeSort.Dummy__
    25  var _ m__Math.Dummy__
    26  var _ m_Seq.Dummy__
    27  var _ m_BoundedInts.Dummy__
    28  
    29  type Dummy__ struct{}
    30  
    31  // Definition of class Default__
    32  type Default__ struct {
    33  	dummy byte
    34  }
    35  
    36  func New_Default___() *Default__ {
    37  	_this := Default__{}
    38  
    39  	return &_this
    40  }
    41  
    42  type CompanionStruct_Default___ struct {
    43  }
    44  
    45  var Companion_Default___ = CompanionStruct_Default___{}
    46  
    47  func (_this *Default__) Equals(other *Default__) bool {
    48  	return _this == other
    49  }
    50  
    51  func (_this *Default__) EqualsGeneric(x interface{}) bool {
    52  	other, ok := x.(*Default__)
    53  	return ok && _this.Equals(other)
    54  }
    55  
    56  func (*Default__) String() string {
    57  	return "_Unicode.Default__"
    58  }
    59  func (_this *Default__) ParentTraits_() []*_dafny.TraitID {
    60  	return [](*_dafny.TraitID){}
    61  }
    62  
    63  var _ _dafny.TraitOffspring = &Default__{}
    64  
    65  func (_static *CompanionStruct_Default___) HIGH__SURROGATE__MIN() uint32 {
    66  	return uint32(55296)
    67  }
    68  func (_static *CompanionStruct_Default___) HIGH__SURROGATE__MAX() uint32 {
    69  	return uint32(56319)
    70  }
    71  func (_static *CompanionStruct_Default___) LOW__SURROGATE__MIN() uint32 {
    72  	return uint32(56320)
    73  }
    74  func (_static *CompanionStruct_Default___) LOW__SURROGATE__MAX() uint32 {
    75  	return uint32(57343)
    76  }
    77  func (_static *CompanionStruct_Default___) ASSIGNED__PLANES() _dafny.Set {
    78  	return _dafny.SetOf(uint8(0), uint8(1), uint8(2), uint8(3), uint8(14), uint8(15), uint8(16))
    79  }
    80  
    81  // End of class Default__
    82  
    83  // Definition of class CodePoint
    84  type CodePoint struct {
    85  }
    86  
    87  func New_CodePoint_() *CodePoint {
    88  	_this := CodePoint{}
    89  
    90  	return &_this
    91  }
    92  
    93  type CompanionStruct_CodePoint_ struct {
    94  }
    95  
    96  var Companion_CodePoint_ = CompanionStruct_CodePoint_{}
    97  
    98  func (*CodePoint) String() string {
    99  	return "_Unicode.CodePoint"
   100  }
   101  
   102  // End of class CodePoint
   103  
   104  func Type_CodePoint_() _dafny.TypeDescriptor {
   105  	return type_CodePoint_{}
   106  }
   107  
   108  type type_CodePoint_ struct {
   109  }
   110  
   111  func (_this type_CodePoint_) Default() interface{} {
   112  	return 0
   113  }
   114  
   115  func (_this type_CodePoint_) String() string {
   116  	return "_Unicode.CodePoint"
   117  }
   118  func (_this *CompanionStruct_CodePoint_) Is_(__source uint32) bool {
   119  	var _0_i uint32 = (__source)
   120  	_ = _0_i
   121  	return ((uint32(0)) <= (_0_i)) && ((_0_i) <= (uint32(1114111)))
   122  }
   123  
   124  // Definition of class HighSurrogateCodePoint
   125  type HighSurrogateCodePoint struct {
   126  }
   127  
   128  func New_HighSurrogateCodePoint_() *HighSurrogateCodePoint {
   129  	_this := HighSurrogateCodePoint{}
   130  
   131  	return &_this
   132  }
   133  
   134  type CompanionStruct_HighSurrogateCodePoint_ struct {
   135  }
   136  
   137  var Companion_HighSurrogateCodePoint_ = CompanionStruct_HighSurrogateCodePoint_{}
   138  
   139  func (*HighSurrogateCodePoint) String() string {
   140  	return "_Unicode.HighSurrogateCodePoint"
   141  }
   142  func (_this *CompanionStruct_HighSurrogateCodePoint_) Witness() uint32 {
   143  	return Companion_Default___.HIGH__SURROGATE__MIN()
   144  }
   145  
   146  // End of class HighSurrogateCodePoint
   147  
   148  func Type_HighSurrogateCodePoint_() _dafny.TypeDescriptor {
   149  	return type_HighSurrogateCodePoint_{}
   150  }
   151  
   152  type type_HighSurrogateCodePoint_ struct {
   153  }
   154  
   155  func (_this type_HighSurrogateCodePoint_) Default() interface{} {
   156  	return Companion_HighSurrogateCodePoint_.Witness()
   157  }
   158  
   159  func (_this type_HighSurrogateCodePoint_) String() string {
   160  	return "_Unicode.HighSurrogateCodePoint"
   161  }
   162  func (_this *CompanionStruct_HighSurrogateCodePoint_) Is_(__source uint32) bool {
   163  	var _1_p uint32 = (__source)
   164  	_ = _1_p
   165  	if Companion_CodePoint_.Is_(_1_p) {
   166  		return ((Companion_Default___.HIGH__SURROGATE__MIN()) <= (_1_p)) && ((_1_p) <= (Companion_Default___.HIGH__SURROGATE__MAX()))
   167  	}
   168  	return false
   169  }
   170  
   171  // Definition of class LowSurrogateCodePoint
   172  type LowSurrogateCodePoint struct {
   173  }
   174  
   175  func New_LowSurrogateCodePoint_() *LowSurrogateCodePoint {
   176  	_this := LowSurrogateCodePoint{}
   177  
   178  	return &_this
   179  }
   180  
   181  type CompanionStruct_LowSurrogateCodePoint_ struct {
   182  }
   183  
   184  var Companion_LowSurrogateCodePoint_ = CompanionStruct_LowSurrogateCodePoint_{}
   185  
   186  func (*LowSurrogateCodePoint) String() string {
   187  	return "_Unicode.LowSurrogateCodePoint"
   188  }
   189  func (_this *CompanionStruct_LowSurrogateCodePoint_) Witness() uint32 {
   190  	return Companion_Default___.LOW__SURROGATE__MIN()
   191  }
   192  
   193  // End of class LowSurrogateCodePoint
   194  
   195  func Type_LowSurrogateCodePoint_() _dafny.TypeDescriptor {
   196  	return type_LowSurrogateCodePoint_{}
   197  }
   198  
   199  type type_LowSurrogateCodePoint_ struct {
   200  }
   201  
   202  func (_this type_LowSurrogateCodePoint_) Default() interface{} {
   203  	return Companion_LowSurrogateCodePoint_.Witness()
   204  }
   205  
   206  func (_this type_LowSurrogateCodePoint_) String() string {
   207  	return "_Unicode.LowSurrogateCodePoint"
   208  }
   209  func (_this *CompanionStruct_LowSurrogateCodePoint_) Is_(__source uint32) bool {
   210  	var _2_p uint32 = (__source)
   211  	_ = _2_p
   212  	if Companion_CodePoint_.Is_(_2_p) {
   213  		return ((Companion_Default___.LOW__SURROGATE__MIN()) <= (_2_p)) && ((_2_p) <= (Companion_Default___.LOW__SURROGATE__MAX()))
   214  	}
   215  	return false
   216  }
   217  
   218  // Definition of class ScalarValue
   219  type ScalarValue struct {
   220  }
   221  
   222  func New_ScalarValue_() *ScalarValue {
   223  	_this := ScalarValue{}
   224  
   225  	return &_this
   226  }
   227  
   228  type CompanionStruct_ScalarValue_ struct {
   229  }
   230  
   231  var Companion_ScalarValue_ = CompanionStruct_ScalarValue_{}
   232  
   233  func (*ScalarValue) String() string {
   234  	return "_Unicode.ScalarValue"
   235  }
   236  
   237  // End of class ScalarValue
   238  
   239  func Type_ScalarValue_() _dafny.TypeDescriptor {
   240  	return type_ScalarValue_{}
   241  }
   242  
   243  type type_ScalarValue_ struct {
   244  }
   245  
   246  func (_this type_ScalarValue_) Default() interface{} {
   247  	return 0
   248  }
   249  
   250  func (_this type_ScalarValue_) String() string {
   251  	return "_Unicode.ScalarValue"
   252  }
   253  func (_this *CompanionStruct_ScalarValue_) Is_(__source uint32) bool {
   254  	var _3_p uint32 = (__source)
   255  	_ = _3_p
   256  	if Companion_CodePoint_.Is_(_3_p) {
   257  		return (((_3_p) < (Companion_Default___.HIGH__SURROGATE__MIN())) || ((_3_p) > (Companion_Default___.HIGH__SURROGATE__MAX()))) && (((_3_p) < (Companion_Default___.LOW__SURROGATE__MIN())) || ((_3_p) > (Companion_Default___.LOW__SURROGATE__MAX())))
   258  	}
   259  	return false
   260  }
   261  
   262  // Definition of class AssignedCodePoint
   263  type AssignedCodePoint struct {
   264  }
   265  
   266  func New_AssignedCodePoint_() *AssignedCodePoint {
   267  	_this := AssignedCodePoint{}
   268  
   269  	return &_this
   270  }
   271  
   272  type CompanionStruct_AssignedCodePoint_ struct {
   273  }
   274  
   275  var Companion_AssignedCodePoint_ = CompanionStruct_AssignedCodePoint_{}
   276  
   277  func (*AssignedCodePoint) String() string {
   278  	return "_Unicode.AssignedCodePoint"
   279  }
   280  
   281  // End of class AssignedCodePoint
   282  
   283  func Type_AssignedCodePoint_() _dafny.TypeDescriptor {
   284  	return type_AssignedCodePoint_{}
   285  }
   286  
   287  type type_AssignedCodePoint_ struct {
   288  }
   289  
   290  func (_this type_AssignedCodePoint_) Default() interface{} {
   291  	return 0
   292  }
   293  
   294  func (_this type_AssignedCodePoint_) String() string {
   295  	return "_Unicode.AssignedCodePoint"
   296  }