Skip to content
Snippets Groups Projects
Commit f95c7a3b authored by Johan Sundström's avatar Johan Sundström
Browse files

Some detail skirmishes with Nilsson later. ^_^;;

Rev: lib/modules/Array.pmod:1.95
Rev: src/modules/_Charset/module.pmod.in:1.36
parent 09bc45cb
No related branches found
No related tags found
No related merge requests found
...@@ -755,7 +755,7 @@ array common_prefix(array(array) arrs) ...@@ -755,7 +755,7 @@ array common_prefix(array(array) arrs)
//! Array.all( ({ 2, 4, 6, 8 }), `<, 17 ) //! Array.all( ({ 2, 4, 6, 8 }), `<, 17 )
//! @seealso //! @seealso
//! @[any], @[has_value] //! @[any], @[has_value]
int(0..1) all( array a, function(mixed,mixed ...:int(0..1)) predicate, int(0..1) all( array a, function(mixed, mixed ...:mixed) predicate,
mixed ... extra_args ) mixed ... extra_args )
{ {
foreach( a, mixed elem ) foreach( a, mixed elem )
...@@ -772,7 +772,7 @@ int(0..1) all( array a, function(mixed,mixed ...:int(0..1)) predicate, ...@@ -772,7 +772,7 @@ int(0..1) all( array a, function(mixed,mixed ...:int(0..1)) predicate,
//! Array.any( ({ 2, 4, 6, 8 }), `>, 5 ) //! Array.any( ({ 2, 4, 6, 8 }), `>, 5 )
//! @seealso //! @seealso
//! @[all], @[has_value] //! @[all], @[has_value]
int(0..1) any( array a, function(mixed,mixed ...:int(0..1)) predicate, int(0..1) any( array a, function(mixed, mixed ...:mixed) predicate,
mixed ... extra_args ) mixed ... extra_args )
{ {
foreach( a, mixed elem ) foreach( a, mixed elem )
...@@ -791,7 +791,7 @@ int(0..1) any( array a, function(mixed,mixed ...:int(0..1)) predicate, ...@@ -791,7 +791,7 @@ int(0..1) any( array a, function(mixed,mixed ...:int(0..1)) predicate,
//! > ({ ({ 4, 5, 6 }), ({ 0, 1, 2, 3, 7, 8 }) }) //! > ({ ({ 4, 5, 6 }), ({ 0, 1, 2, 3, 7, 8 }) })
//! @seealso //! @seealso
//! @[filter], @[`/], @[`%] //! @[filter], @[`/], @[`%]
array(array) partition( array a, function(mixed,mixed...:int(0..1)) arbiter, array(array) partition( array a, function(mixed, mixed ...:mixed) arbiter,
mixed ... extra_args ) mixed ... extra_args )
{ {
array first = ({}), second = ({}); array first = ({}), second = ({});
......
...@@ -98,10 +98,9 @@ static private inherit @module@; ...@@ -98,10 +98,9 @@ static private inherit @module@;
//! Virtual base class for charset decoders. //! Virtual base class for charset decoders.
//! @example //! @example
//! string utf8_to_string( string data ) //! string win1252_to_string( string data )
//! { //! {
//! object deutf8 = Locale.Charset.decoder("utf-8"); //! return Locale.Charset.decoder("windows-1252")->feed( data )->drain();
//! return deutf8->clear()->feed( data )->drain();
//! } //! }
class Decoder class Decoder
{ {
......
0% Loading or .
You are about to add 0 people to the discussion. Proceed with caution.
Please register or to comment