@@ -495,7 +495,7 @@ class U_COMMON_API UnicodeSet final : public UnicodeFilter {
495
495
* @return <tt>true</tt> if the specified set is equal to this set.
496
496
* @stable ICU 2.0
497
497
*/
498
- virtual bool operator ==(const UnicodeSet& o) const ;
498
+ bool operator ==(const UnicodeSet& o) const ;
499
499
500
500
/* *
501
501
* Compares the specified object with this set for equality. Returns
@@ -522,7 +522,7 @@ class U_COMMON_API UnicodeSet final : public UnicodeFilter {
522
522
* @see Object#hashCode()
523
523
* @stable ICU 2.0
524
524
*/
525
- virtual int32_t hashCode () const ;
525
+ int32_t hashCode () const ;
526
526
527
527
/* *
528
528
* Get a UnicodeSet pointer from a USet
@@ -792,15 +792,15 @@ class U_COMMON_API UnicodeSet final : public UnicodeFilter {
792
792
* @stable ICU 2.0
793
793
* @see getRangeCount
794
794
*/
795
- virtual int32_t size () const ;
795
+ int32_t size () const ;
796
796
797
797
/* *
798
798
* Returns <tt>true</tt> if this set contains no elements.
799
799
*
800
800
* @return <tt>true</tt> if this set contains no elements.
801
801
* @stable ICU 2.0
802
802
*/
803
- virtual UBool isEmpty () const ;
803
+ UBool isEmpty () const ;
804
804
805
805
/* *
806
806
* @return true if this set contains multi-character strings or the empty string.
@@ -825,7 +825,7 @@ class U_COMMON_API UnicodeSet final : public UnicodeFilter {
825
825
* @return true if the test condition is met
826
826
* @stable ICU 2.0
827
827
*/
828
- virtual UBool contains (UChar32 start, UChar32 end) const ;
828
+ UBool contains (UChar32 start, UChar32 end) const ;
829
829
830
830
/* *
831
831
* Returns <tt>true</tt> if this set contains the given
@@ -843,7 +843,7 @@ class U_COMMON_API UnicodeSet final : public UnicodeFilter {
843
843
* @return true if the test condition is met
844
844
* @stable ICU 2.4
845
845
*/
846
- virtual UBool containsAll (const UnicodeSet& c) const ;
846
+ UBool containsAll (const UnicodeSet& c) const ;
847
847
848
848
/* *
849
849
* Returns true if this set contains all the characters
@@ -1021,7 +1021,7 @@ class U_COMMON_API UnicodeSet final : public UnicodeFilter {
1021
1021
* Implement UnicodeMatcher::matches()
1022
1022
* @stable ICU 2.4
1023
1023
*/
1024
- virtual UMatchDegree matches (const Replaceable& text,
1024
+ UMatchDegree matches (const Replaceable& text,
1025
1025
int32_t & offset,
1026
1026
int32_t limit,
1027
1027
UBool incremental) override ;
@@ -1231,7 +1231,7 @@ class U_COMMON_API UnicodeSet final : public UnicodeFilter {
1231
1231
* to this set.
1232
1232
* @stable ICU 2.0
1233
1233
*/
1234
- virtual UnicodeSet& add (UChar32 start, UChar32 end);
1234
+ UnicodeSet& add (UChar32 start, UChar32 end);
1235
1235
1236
1236
/* *
1237
1237
* Adds the specified character to this set if it is not already
@@ -1337,7 +1337,7 @@ class U_COMMON_API UnicodeSet final : public UnicodeFilter {
1337
1337
* @param end last character, inclusive, of range
1338
1338
* @stable ICU 2.0
1339
1339
*/
1340
- virtual UnicodeSet& retain (UChar32 start, UChar32 end);
1340
+ UnicodeSet& retain (UChar32 start, UChar32 end);
1341
1341
1342
1342
1343
1343
/* *
@@ -1375,7 +1375,7 @@ class U_COMMON_API UnicodeSet final : public UnicodeFilter {
1375
1375
* from this set.
1376
1376
* @stable ICU 2.0
1377
1377
*/
1378
- virtual UnicodeSet& remove (UChar32 start, UChar32 end);
1378
+ UnicodeSet& remove (UChar32 start, UChar32 end);
1379
1379
1380
1380
/* *
1381
1381
* Removes the specified character from this set if it is present.
@@ -1412,7 +1412,7 @@ class U_COMMON_API UnicodeSet final : public UnicodeFilter {
1412
1412
* A frozen set will not be modified.
1413
1413
* @stable ICU 2.0
1414
1414
*/
1415
- virtual UnicodeSet& complement ();
1415
+ UnicodeSet& complement ();
1416
1416
1417
1417
/* *
1418
1418
* Complements the specified range in this set. Any character in
@@ -1426,7 +1426,7 @@ class U_COMMON_API UnicodeSet final : public UnicodeFilter {
1426
1426
* @param end last character, inclusive, of range
1427
1427
* @stable ICU 2.0
1428
1428
*/
1429
- virtual UnicodeSet& complement (UChar32 start, UChar32 end);
1429
+ UnicodeSet& complement (UChar32 start, UChar32 end);
1430
1430
1431
1431
/* *
1432
1432
* Complements the specified character in this set. The character
@@ -1463,7 +1463,7 @@ class U_COMMON_API UnicodeSet final : public UnicodeFilter {
1463
1463
* @see #add(UChar32, UChar32)
1464
1464
* @stable ICU 2.0
1465
1465
*/
1466
- virtual UnicodeSet& addAll (const UnicodeSet& c);
1466
+ UnicodeSet& addAll (const UnicodeSet& c);
1467
1467
1468
1468
/* *
1469
1469
* Retains only the elements in this set that are contained in the
@@ -1476,7 +1476,7 @@ class U_COMMON_API UnicodeSet final : public UnicodeFilter {
1476
1476
* @param c set that defines which elements this set will retain.
1477
1477
* @stable ICU 2.0
1478
1478
*/
1479
- virtual UnicodeSet& retainAll (const UnicodeSet& c);
1479
+ UnicodeSet& retainAll (const UnicodeSet& c);
1480
1480
1481
1481
/* *
1482
1482
* Removes from this set all of its elements that are contained in the
@@ -1489,7 +1489,7 @@ class U_COMMON_API UnicodeSet final : public UnicodeFilter {
1489
1489
* this set.
1490
1490
* @stable ICU 2.0
1491
1491
*/
1492
- virtual UnicodeSet& removeAll (const UnicodeSet& c);
1492
+ UnicodeSet& removeAll (const UnicodeSet& c);
1493
1493
1494
1494
/* *
1495
1495
* Complements in this set all elements contained in the specified
@@ -1501,15 +1501,15 @@ class U_COMMON_API UnicodeSet final : public UnicodeFilter {
1501
1501
* this set.
1502
1502
* @stable ICU 2.4
1503
1503
*/
1504
- virtual UnicodeSet& complementAll (const UnicodeSet& c);
1504
+ UnicodeSet& complementAll (const UnicodeSet& c);
1505
1505
1506
1506
/* *
1507
1507
* Removes all of the elements from this set. This set will be
1508
1508
* empty after this call returns.
1509
1509
* A frozen set will not be modified.
1510
1510
* @stable ICU 2.0
1511
1511
*/
1512
- virtual UnicodeSet& clear ();
1512
+ UnicodeSet& clear ();
1513
1513
1514
1514
/* *
1515
1515
* Close this set over the given attribute. For the attribute
@@ -1546,7 +1546,7 @@ class U_COMMON_API UnicodeSet final : public UnicodeFilter {
1546
1546
* @return a reference to this set.
1547
1547
* @stable ICU 4.2
1548
1548
*/
1549
- virtual UnicodeSet &removeAllStrings ();
1549
+ UnicodeSet &removeAllStrings ();
1550
1550
1551
1551
/* *
1552
1552
* Iteration method that returns the number of ranges contained in
@@ -1555,7 +1555,7 @@ class U_COMMON_API UnicodeSet final : public UnicodeFilter {
1555
1555
* @see #getRangeEnd
1556
1556
* @stable ICU 2.4
1557
1557
*/
1558
- virtual int32_t getRangeCount () const ;
1558
+ int32_t getRangeCount () const ;
1559
1559
1560
1560
/* *
1561
1561
* Iteration method that returns the first character in the
@@ -1564,7 +1564,7 @@ class U_COMMON_API UnicodeSet final : public UnicodeFilter {
1564
1564
* @see #getRangeEnd
1565
1565
* @stable ICU 2.4
1566
1566
*/
1567
- virtual UChar32 getRangeStart (int32_t index) const ;
1567
+ UChar32 getRangeStart (int32_t index) const ;
1568
1568
1569
1569
/* *
1570
1570
* Iteration method that returns the last character in the
@@ -1573,7 +1573,7 @@ class U_COMMON_API UnicodeSet final : public UnicodeFilter {
1573
1573
* @see #getRangeEnd
1574
1574
* @stable ICU 2.4
1575
1575
*/
1576
- virtual UChar32 getRangeEnd (int32_t index) const ;
1576
+ UChar32 getRangeEnd (int32_t index) const ;
1577
1577
1578
1578
/* *
1579
1579
* Serializes this set into an array of 16-bit integers. Serialization
@@ -1631,7 +1631,7 @@ class U_COMMON_API UnicodeSet final : public UnicodeFilter {
1631
1631
* A frozen set will not be modified.
1632
1632
* @stable ICU 2.4
1633
1633
*/
1634
- virtual UnicodeSet& compact ();
1634
+ UnicodeSet& compact ();
1635
1635
1636
1636
/* *
1637
1637
* Return the class ID for this class. This is useful only for
0 commit comments