File tree 1 file changed +16
-0
lines changed
1 file changed +16
-0
lines changed Original file line number Diff line number Diff line change @@ -249,6 +249,12 @@ func ExampleToTitle() {
249
249
// ХЛЕБ
250
250
}
251
251
252
+ func ExampleToTitleSpecial () {
253
+ fmt .Println (strings .ToTitleSpecial (unicode .TurkishCase , "dünyanın ilk borsa yapısı Aizonai kabul edilir" ))
254
+ // Output:
255
+ // DÜNYANIN İLK BORSA YAPISI AİZONAİ KABUL EDİLİR
256
+ }
257
+
252
258
func ExampleMap () {
253
259
rot13 := func (r rune ) rune {
254
260
switch {
@@ -274,11 +280,21 @@ func ExampleToUpper() {
274
280
// Output: GOPHER
275
281
}
276
282
283
+ func ExampleToUpperSpecial () {
284
+ fmt .Println (strings .ToUpperSpecial (unicode .TurkishCase , "örnek iş" ))
285
+ // Output: ÖRNEK İŞ
286
+ }
287
+
277
288
func ExampleToLower () {
278
289
fmt .Println (strings .ToLower ("Gopher" ))
279
290
// Output: gopher
280
291
}
281
292
293
+ func ExampleToLowerSpecial () {
294
+ fmt .Println (strings .ToLowerSpecial (unicode .TurkishCase , "Önnek İş" ))
295
+ // Output: önnek iş
296
+ }
297
+
282
298
func ExampleTrim () {
283
299
fmt .Print (strings .Trim ("¡¡¡Hello, Gophers!!!" , "!¡" ))
284
300
// Output: Hello, Gophers
You can’t perform that action at this time.
0 commit comments