Skip to content

Commit c63baff

Browse files
committed
Add Unicode module name to docstrings
1 parent 7ccb367 commit c63baff

File tree

1 file changed

+47
-3
lines changed

1 file changed

+47
-3
lines changed

base/strings/utf8proc.jl

+47-3
Original file line numberDiff line numberDiff line change
@@ -209,13 +209,15 @@ For example, NFKC corresponds to the options `compose=true, compat=true, stable=
209209
210210
# Examples
211211
```jldoctest
212-
julia> "μ" == normalize("µ", compat=true) #LHS: Unicode U+03bc, RHS: Unicode U+00b5
212+
julia> using Unicode
213+
214+
julia> "μ" == Unicode.normalize("µ", compat=true) #LHS: Unicode U+03bc, RHS: Unicode U+00b5
213215
true
214216
215-
julia> normalize("JuLiA", casefold=true)
217+
julia> Unicode.normalize("JuLiA", casefold=true)
216218
"julia"
217219
218-
julia> normalize("JúLiA", stripmark=true)
220+
julia> Unicode.normalize("JúLiA", stripmark=true)
219221
"JuLiA"
220222
```
221223
"""
@@ -239,6 +241,8 @@ Give the number of columns needed to print a character.
239241
240242
# Examples
241243
```jldoctest
244+
julia> using Unicode
245+
242246
julia> textwidth('α')
243247
1
244248
@@ -255,6 +259,8 @@ Give the number of columns needed to print a string.
255259
256260
# Examples
257261
```jldoctest
262+
julia> using Unicode
263+
258264
julia> textwidth("March")
259265
5
260266
```
@@ -281,6 +287,8 @@ Returns `true` if the given char or integer is an assigned Unicode code point.
281287
282288
# Examples
283289
```jldoctest
290+
julia> using Unicode
291+
284292
julia> isassigned(101)
285293
true
286294
@@ -301,6 +309,8 @@ Letter: Lowercase.
301309
302310
# Examples
303311
```jldoctest
312+
julia> using Unicode
313+
304314
julia> islower('α')
305315
true
306316
@@ -324,6 +334,8 @@ Letter: Uppercase, or Lt, Letter: Titlecase.
324334
325335
# Examples
326336
```jldoctest
337+
julia> using Unicode
338+
327339
julia> isupper('γ')
328340
false
329341
@@ -346,6 +358,8 @@ Tests whether a character is a decimal digit (0-9).
346358
347359
# Examples
348360
```jldoctest
361+
julia> using Unicode
362+
349363
julia> isdigit('❤')
350364
false
351365
@@ -367,6 +381,8 @@ category Letter, i.e. a character whose category code begins with 'L'.
367381
368382
# Examples
369383
```jldoctest
384+
julia> using Unicode
385+
370386
julia> isalpha('❤')
371387
false
372388
@@ -391,6 +407,8 @@ Use [`isdigit`](@ref) to check whether a character a decimal digit between 0 and
391407
392408
# Examples
393409
```jldoctest
410+
julia> using Unicode
411+
394412
julia> isnumeric('௰')
395413
true
396414
@@ -415,6 +433,8 @@ category Letter or Number, i.e. a character whose category code begins with 'L'
415433
416434
# Examples
417435
```jldoctest
436+
julia> using Unicode
437+
418438
julia> isalnum('❤')
419439
false
420440
@@ -441,6 +461,8 @@ Control characters are the non-printing characters of the Latin-1 subset of Unic
441461
442462
# Examples
443463
```jldoctest
464+
julia> using Unicode
465+
444466
julia> iscntrl('\\x01')
445467
true
446468
@@ -458,6 +480,8 @@ character whose category code begins with 'P'.
458480
459481
# Examples
460482
```jldoctest
483+
julia> using Unicode
484+
461485
julia> ispunct('α')
462486
false
463487
@@ -481,6 +505,8 @@ category Zs.
481505
482506
# Examples
483507
```jldoctest
508+
julia> using Unicode
509+
484510
julia> isspace('\\n')
485511
true
486512
@@ -503,6 +529,8 @@ Tests whether a character is printable, including spaces, but not a control char
503529
504530
# Examples
505531
```jldoctest
532+
julia> using Unicode
533+
506534
julia> isprint('\\x01')
507535
false
508536
@@ -523,6 +551,8 @@ classified with `isgraph(c)==true`.
523551
524552
# Examples
525553
```jldoctest
554+
julia> using Unicode
555+
526556
julia> isgraph('\\x01')
527557
false
528558
@@ -540,6 +570,8 @@ all elements of a string.
540570
541571
# Examples
542572
```jldoctest
573+
julia> using Unicode
574+
543575
julia> isascii('a')
544576
true
545577
@@ -564,6 +596,8 @@ include `x` (as in the standard `0x` prefix).
564596
565597
# Examples
566598
```jldoctest
599+
julia> using Unicode
600+
567601
julia> isxdigit('a')
568602
true
569603
@@ -582,6 +616,8 @@ Return `s` with all characters converted to uppercase.
582616
583617
# Examples
584618
```jldoctest
619+
julia> using Unicode
620+
585621
julia> uppercase("Julia")
586622
"JULIA"
587623
```
@@ -595,6 +631,8 @@ Return `s` with all characters converted to lowercase.
595631
596632
# Examples
597633
```jldoctest
634+
julia> using Unicode
635+
598636
julia> lowercase("STRINGS AND THINGS")
599637
"strings and things"
600638
```
@@ -610,6 +648,8 @@ character in `s`.
610648
611649
# Examples
612650
```jldoctest
651+
julia> using Unicode
652+
613653
julia> titlecase("the julia programming language")
614654
"The Julia Programming Language"
615655
```
@@ -639,6 +679,8 @@ every word in `s`.
639679
640680
# Examples
641681
```jldoctest
682+
julia> using Unicode
683+
642684
julia> ucfirst("python")
643685
"Python"
644686
```
@@ -657,6 +699,8 @@ Return `string` with the first character converted to lowercase.
657699
658700
# Examples
659701
```jldoctest
702+
julia> using Unicode
703+
660704
julia> lcfirst("Julia")
661705
"julia"
662706
```

0 commit comments

Comments
 (0)