@@ -236,7 +236,7 @@ extension Unicode.Scalar.Properties {
236
236
///
237
237
/// This property roughly defines the class of "Chinese characters" and does
238
238
/// not include characters of other logographic scripts such as Cuneiform or
239
- /// Egyptian Hieroglyphs
239
+ /// Egyptian Hieroglyphs.
240
240
///
241
241
/// This property corresponds to the `Ideographic` property in the
242
242
/// [Unicode Standard](http://www.unicode.org/versions/latest/).
@@ -291,8 +291,8 @@ extension Unicode.Scalar.Properties {
291
291
/// directs the rendering engine to render them as a connected glyph when it
292
292
/// would otherwise render them independently. The zero width joiner is also
293
293
/// used to construct complex emoji from sequences of base emoji characters.
294
- /// For example, "family" emoji are created by joining sequences of man,
295
- /// woman, and child emoji with the zero width joiner .
294
+ /// For example, the various "family" emoji are encoded as sequences of man,
295
+ /// woman, or child emoji that are interleaved with zero width joiners .
296
296
///
297
297
/// This property corresponds to the `Join_Control` property in the
298
298
/// [Unicode Standard](http://www.unicode.org/versions/latest/).
@@ -519,35 +519,35 @@ extension Unicode.Scalar.Properties {
519
519
return _hasBinaryProperty ( __swift_stdlib_UCHAR_CASE_IGNORABLE)
520
520
}
521
521
522
- /// A Boolean property indicating whether the scalar is one whose normalized
523
- /// form is not stable under a `toLowercase` mapping .
522
+ /// A Boolean property indicating whether the scalar's `lowercaseMapping`
523
+ /// differs from the NFD normalized form of the scalar itself .
524
524
///
525
525
/// This property corresponds to the `Changes_When_Lowercased` property in the
526
526
/// [Unicode Standard](http://www.unicode.org/versions/latest/).
527
527
public var changesWhenLowercased : Bool {
528
528
return _hasBinaryProperty ( __swift_stdlib_UCHAR_CHANGES_WHEN_LOWERCASED)
529
529
}
530
530
531
- /// A Boolean property indicating whether the scalar is one whose normalized
532
- /// form is not stable under a `toUppercase` mapping .
531
+ /// A Boolean property indicating whether the scalar's `uppercaseMapping`
532
+ /// differs from the NFD normalized form of the scalar itself .
533
533
///
534
534
/// This property corresponds to the `Changes_When_Uppercased` property in the
535
535
/// [Unicode Standard](http://www.unicode.org/versions/latest/).
536
536
public var changesWhenUppercased : Bool {
537
537
return _hasBinaryProperty ( __swift_stdlib_UCHAR_CHANGES_WHEN_UPPERCASED)
538
538
}
539
539
540
- /// A Boolean property indicating whether the scalar is one whose normalized
541
- /// form is not stable under a `toTitlecase` mapping .
540
+ /// A Boolean property indicating whether the scalar's `titlecaseMapping`
541
+ /// differs from the NFD normalized form of the scalar itself .
542
542
///
543
543
/// This property corresponds to the `Changes_When_Titlecased` property in the
544
544
/// [Unicode Standard](http://www.unicode.org/versions/latest/).
545
545
public var changesWhenTitlecased : Bool {
546
546
return _hasBinaryProperty ( __swift_stdlib_UCHAR_CHANGES_WHEN_TITLECASED)
547
547
}
548
548
549
- /// A Boolean property indicating whether the scalar is one whose normalized
550
- /// form is not stable under case folding .
549
+ /// A Boolean property indicating whether the scalar is one that is not
550
+ /// identical to its case-fold mapping .
551
551
///
552
552
/// This property corresponds to the `Changes_When_Casefolded` property in the
553
553
/// [Unicode Standard](http://www.unicode.org/versions/latest/).
@@ -556,7 +556,7 @@ extension Unicode.Scalar.Properties {
556
556
}
557
557
558
558
/// A Boolean property indicating whether the scalar may change when it
559
- /// undergoes a case mapping.
559
+ /// undergoes case mapping.
560
560
///
561
561
/// For any scalar `s`, it holds by definition that
562
562
///
@@ -752,10 +752,8 @@ extension Unicode.Scalar.Properties {
752
752
/// WITH DOT ABOVE) becomes two scalars (U+0069 LATIN SMALL LETTER I, U+0307
753
753
/// COMBINING DOT ABOVE) when converted to lowercase.
754
754
///
755
- /// This function corresponds to the `Lowercase_Mapping` property in the
755
+ /// This property corresponds to the `Lowercase_Mapping` property in the
756
756
/// [Unicode Standard](http://www.unicode.org/versions/latest/).
757
- ///
758
- /// - Returns: The lowercase mapping of the scalar.
759
757
public var lowercaseMapping : String {
760
758
return _applyMapping ( __swift_stdlib_u_strToLower)
761
759
}
@@ -768,10 +766,8 @@ extension Unicode.Scalar.Properties {
768
766
/// becomes "Fi" (U+0046 LATIN CAPITAL LETTER F, U+0069 LATIN SMALL LETTER I)
769
767
/// when converted to titlecase.
770
768
///
771
- /// This function corresponds to the `Titlecase_Mapping` property in the
769
+ /// This property corresponds to the `Titlecase_Mapping` property in the
772
770
/// [Unicode Standard](http://www.unicode.org/versions/latest/).
773
- ///
774
- /// - Returns: The titlecase mapping of the scalar.
775
771
public var titlecaseMapping : String {
776
772
return _applyMapping { ptr, cap, src, len, locale, err in
777
773
return __swift_stdlib_u_strToTitle ( ptr, cap, src, len, nil , locale, err)
@@ -786,10 +782,8 @@ extension Unicode.Scalar.Properties {
786
782
/// SHARP S) becomes "SS" (U+0053 LATIN CAPITAL LETTER S, U+0053 LATIN CAPITAL
787
783
/// LETTER S) when converted to uppercase.
788
784
///
789
- /// This function corresponds to the `Uppercase_Mapping` property in the
785
+ /// This property corresponds to the `Uppercase_Mapping` property in the
790
786
/// [Unicode Standard](http://www.unicode.org/versions/latest/).
791
- ///
792
- /// - Returns: The uppercase mapping of the scalar.
793
787
public var uppercaseMapping : String {
794
788
return _applyMapping ( __swift_stdlib_u_strToUpper)
795
789
}
@@ -1354,14 +1348,14 @@ extension Unicode.Scalar.Properties {
1354
1348
/// number.
1355
1349
///
1356
1350
/// ```
1357
- /// print("X", ("X" as Unicode.Scalar).properties.numericType)
1351
+ /// print("X", ("X" as Unicode.Scalar).properties.numericType ?? "nil" )
1358
1352
/// // Prints "X nil"
1359
- /// print("4", ("4" as Unicode.Scalar).properties.numericType)
1360
- /// // Prints "4 Optional(Swift.Unicode.NumericType. decimal) "
1361
- /// print("\u{2463}", ("\u{2463}" as Unicode.Scalar).properties.numericType)
1362
- /// // Prints "④ Optional(Swift.Unicode.NumericType. digit) "
1363
- /// print("\u{2155}", ("\u{2155}" as Unicode.Scalar).properties.numericType)
1364
- /// // Prints "⅕ Optional(Swift.Unicode.NumericType. numeric) "
1353
+ /// print("4", ("4" as Unicode.Scalar).properties.numericType ?? "nil" )
1354
+ /// // Prints "4 decimal"
1355
+ /// print("\u{2463}", ("\u{2463}" as Unicode.Scalar).properties.numericType ?? "nil" )
1356
+ /// // Prints "④ digit"
1357
+ /// print("\u{2155}", ("\u{2155}" as Unicode.Scalar).properties.numericType ?? "nil" )
1358
+ /// // Prints "⅕ numeric"
1365
1359
/// ```
1366
1360
///
1367
1361
/// This property corresponds to the `Numeric_Type` property in the
@@ -1375,20 +1369,20 @@ extension Unicode.Scalar.Properties {
1375
1369
1376
1370
/// The numeric value of the scalar.
1377
1371
///
1378
- /// The value of this property is ` nil` for scalars that do not represent a
1372
+ /// The value of this property is nil for scalars that do not represent a
1379
1373
/// number.
1380
1374
///
1381
1375
/// The numeric value of a scalar is represented as a `Double` because some
1382
1376
/// scalars represent fractions:
1383
1377
///
1384
1378
/// ```
1385
- /// print("X", ("X" as Unicode.Scalar).properties.numericValue)
1386
- /// // Prints "X nan "
1387
- /// print("4", ("4" as Unicode.Scalar).properties.numericValue)
1379
+ /// print("X", ("X" as Unicode.Scalar).properties.numericValue ?? "nil" )
1380
+ /// // Prints "X nil "
1381
+ /// print("4", ("4" as Unicode.Scalar).properties.numericValue ?? "nil" )
1388
1382
/// // Prints "4 4.0"
1389
- /// print("\u{2463}", ("\u{2463}" as Unicode.Scalar).properties.numericValue)
1383
+ /// print("\u{2463}", ("\u{2463}" as Unicode.Scalar).properties.numericValue ?? "nil" )
1390
1384
/// // Prints "④ 4.0"
1391
- /// print("\u{2155}", ("\u{2155}" as Unicode.Scalar).properties.numericValue)
1385
+ /// print("\u{2155}", ("\u{2155}" as Unicode.Scalar).properties.numericValue ?? "nil" )
1392
1386
/// // Prints "⅕ 0.2"
1393
1387
/// ```
1394
1388
///
0 commit comments