@@ -365,6 +365,16 @@ func ExampleToTitle() {
365
365
// ХЛЕБ
366
366
}
367
367
368
+ func ExampleToTitleSpecial () {
369
+ str := []byte ("ahoj vývojári golang" )
370
+ totitle := bytes .ToTitleSpecial (unicode .AzeriCase , str )
371
+ fmt .Println ("Original : " + string (str ))
372
+ fmt .Println ("ToTitle : " + string (totitle ))
373
+ // Output:
374
+ // Original : ahoj vývojári golang
375
+ // ToTitle : AHOJ VÝVOJÁRİ GOLANG
376
+ }
377
+
368
378
func ExampleTrim () {
369
379
fmt .Printf ("[%q]" , bytes .Trim ([]byte (" !!! Achtung! Achtung! !!! " ), "! " ))
370
380
// Output: ["Achtung! Achtung"]
@@ -438,11 +448,31 @@ func ExampleToUpper() {
438
448
// Output: GOPHER
439
449
}
440
450
451
+ func ExampleToUpperSpecial () {
452
+ str := []byte ("ahoj vývojári golang" )
453
+ totitle := bytes .ToUpperSpecial (unicode .AzeriCase , str )
454
+ fmt .Println ("Original : " + string (str ))
455
+ fmt .Println ("ToUpper : " + string (totitle ))
456
+ // Output:
457
+ // Original : ahoj vývojári golang
458
+ // ToUpper : AHOJ VÝVOJÁRİ GOLANG
459
+ }
460
+
441
461
func ExampleToLower () {
442
462
fmt .Printf ("%s" , bytes .ToLower ([]byte ("Gopher" )))
443
463
// Output: gopher
444
464
}
445
465
466
+ func ExampleToLowerSpecial () {
467
+ str := []byte ("AHOJ VÝVOJÁRİ GOLANG" )
468
+ totitle := bytes .ToLowerSpecial (unicode .AzeriCase , str )
469
+ fmt .Println ("Original : " + string (str ))
470
+ fmt .Println ("ToLower : " + string (totitle ))
471
+ // Output:
472
+ // Original : AHOJ VÝVOJÁRİ GOLANG
473
+ // ToLower : ahoj vývojári golang
474
+ }
475
+
446
476
func ExampleReader_Len () {
447
477
fmt .Println (bytes .NewReader ([]byte ("Hi!" )).Len ())
448
478
fmt .Println (bytes .NewReader ([]byte ("こんにちは!" )).Len ())
0 commit comments