From be7c883a4d53050e5b58e7e805c947c1244ac747 Mon Sep 17 00:00:00 2001 From: Patrik Nyblom Date: Wed, 18 May 2011 15:47:55 +0200 Subject: Fixup of re doc and specs --- lib/stdlib/doc/src/re.xml | 4 ++-- lib/stdlib/src/re.erl | 4 ++-- 2 files changed, 4 insertions(+), 4 deletions(-) (limited to 'lib/stdlib') diff --git a/lib/stdlib/doc/src/re.xml b/lib/stdlib/doc/src/re.xml index 8c9e08ac3a..18867cfb68 100644 --- a/lib/stdlib/doc/src/re.xml +++ b/lib/stdlib/doc/src/re.xml @@ -94,7 +94,7 @@ Regexp = iodata() | io:charlist() Options = [ Option ] - Option = unicode | anchored | caseless | dollar_endonly | dotall | extended | firstline | multiline | no_auto_capture | dupnames | ungreedy | {newline, NLSpec}| bsr_anycrlf | bsr_unicode + Option = compile_option() NLSpec = nl_spec() MP = mp() ErrSpec = {ErrString, Position} @@ -170,7 +170,7 @@ This option makes it possible to include comments inside complicated patterns. N Match a subject against regular expression and capture subpatterns Subject = iodata() | io:charlist() - RE = mp() | iodata() | io:charlist() + RE = mp() | iodata() Captured = [ CaptureData ] CaptureData = {integer(),integer()} diff --git a/lib/stdlib/src/re.erl b/lib/stdlib/src/re.erl index 02dbe60741..e08258a535 100644 --- a/lib/stdlib/src/re.erl +++ b/lib/stdlib/src/re.erl @@ -46,7 +46,7 @@ split(Subject,RE) -> -spec split(Subject, RE, Options) -> SplitList when Subject :: iodata() | unicode:charlist(), - RE :: mp() | iodata(), + RE :: mp() | iodata() | unicode:charlist(), Options :: [ Option ], Option :: anchored | global | notbol | noteol | notempty | {offset, non_neg_integer()} | {newline, nl_spec()} @@ -238,7 +238,7 @@ replace(Subject,RE,Replacement) -> -spec replace(Subject, RE, Replacement, Options) -> iodata() | unicode:charlist() when Subject :: iodata() | unicode:charlist(), - RE :: mp() | iodata(), + RE :: mp() | iodata() | unicode:charlist(), Replacement :: iodata() | unicode:charlist(), Options :: [Option], Option :: anchored | global | notbol | noteol | notempty -- cgit v1.2.3