@@ -11,8 +11,8 @@ The *strings* library was originally defined in `DEP-0004
1111<http://opendylan.org/proposals/dep-0004.html> `_. Some additional background
1212material can be found there.
1313
14- .. contents :: Contents
15- :local :
14+ .. toctree ::
15+ :hidden :
1616
1717.. note ::
1818
@@ -671,55 +671,20 @@ Case Conversion Functions
671671 lowercase!("Hack Dylan!")
672672 => error, attempt to modify a string constant
673673
674- .. generic-function :: lowercase?
675- :sealed:
674+ .. function :: lowercase?
676675
677- Returns :drm: `#t ` if the argument is entirely composed of
678- non-uppercase characters.
679-
680- :signature: lowercase? (string-or-character) => (is-lowercase?)
681- :parameter string-or-character: An instance of ``type-union(<string>, <character>) ``.
682- :value is-lowercase?: An instance of :drm: `<boolean> `.
683-
684- .. method :: lowercase?
685- :specializer: <character>
686- :sealed:
687-
688- Returns :drm: `#t ` if the given character is not an uppercase alphabetic.
689- Otherwise :drm: `#f ` is returned.
676+ Returns :drm: `#t ` if the argument is a lowercase alphabetic character.
677+ Otherwise returns :drm: `#f `.
690678
691679 :signature: lowercase? (character) => (is-lowercase?)
692680 :parameter character: An instance of :drm: `<character> `.
693681 :value is-lowercase?: An instance of :drm: `<boolean> `.
694- :example:
695-
696- .. code-block :: dylan
697682
698- lowercase?('n') => #t
699- lowercase?('N') => #f
700- lowercase?('*') => #t
701-
702- .. method :: lowercase?
703- :specializer: <string>
704- :sealed:
705-
706- Returns :drm: `#t ` if the argument does not contain any uppercase
707- alphabetic characters. Otherwise :drm: `#f ` is returned.
708-
709- :signature: lowercase? (string) => (is-lowercase?)
710- :parameter string: An instance of :drm: `<string> `.
711- :parameter #key start: An instance of :drm: `<integer> `, default 0. The index
712- at which to start checking.
713- :parameter #key end: An instance of :drm: `<integer> `, default
714- ``string.size ``. The index before which to stop checking.
715- :value is-lowercase?: An instance of :drm: `<boolean> `.
716- :example:
717-
718- .. code-block :: dylan
683+ .. code-block :: dylan
719684
720- lowercase?("Why me?" ) => #f
721- lowercase?("Why me?", start: 1 ) => #t
722- lowercase?("e.e. cummings" ) => #t
685+ lowercase?('n' ) => #t
686+ lowercase?('N' ) => #f
687+ lowercase?('*' ) => #f
723688
724689 .. generic-function :: uppercase
725690 :sealed:
@@ -820,54 +785,21 @@ Case Conversion Functions
820785 uppercase!("Hack Dylan!")
821786 => error, attempt to modify a string constant
822787
823- .. generic-function :: uppercase?
824- :sealed:
825-
826- Returns :drm: `#t ` if the argument is entirely composed of
827- non-lowercase characters.
828-
829- :signature: uppercase? (string-or-character) => (is-uppercase?)
830- :parameter string-or-character: An instance of ``type-union(<string>, <character>) ``.
831- :value is-uppercase?: An instance of :drm: `<boolean> `.
788+ .. function :: uppercase?
832789
833- .. method :: uppercase?
834- :specializer: <character>
835- :sealed:
836-
837- Returns :drm: `#t ` if the given character is not a lowercase alphabetic.
838- Otherwise :drm: `#f ` is returned.
790+ Returns :drm: `#t ` if the argument is an uppercase alphabetic character.
791+ Otherwise returns :drm: `#f `.
839792
840793 :signature: uppercase? (character) => (is-uppercase?)
841794 :parameter character: An instance of :drm: `<character> `.
842795 :value is-uppercase?: An instance of :drm: `<boolean> `.
843- :example:
844-
845- .. code-block :: dylan
846-
847- uppercase?('T') => #t
848- uppercase?('t') => #f
849- uppercase?('^') => #t
850-
851- .. method :: uppercase?
852- :specializer: <string>
853- :sealed:
854-
855- Returns :drm: `#t ` if the argument does not contain any lowercase
856- alphabetic characters. Otherwise :drm: `#f ` is returned.
857796
858- :signature: uppercase? (string) => (is-uppercase?)
859- :parameter string: An instance of :drm: `<string> `.
860- :parameter #key start: An instance of :drm: `<integer> `, default 0. The index
861- at which to start checking.
862- :parameter #key end: An instance of :drm: `<integer> `, default
863- ``string.size ``. The index before which to stop checking.
864- :value is-uppercase?: An instance of :drm: `<boolean> `.
865- :example:
797+ .. code-block :: dylan
866798
867- .. code-block :: dylan
799+ uppercase?('T') => #t
800+ uppercase?('t') => #f
801+ uppercase?('^') => #f
868802
869- uppercase?("AbC") => #f
870- uppercase?("ABC") => #t
871803
872804 Comparison Functions
873805--------------------
0 commit comments