grep-commit
[Top][All Lists]
Advanced

[Date Prev][Date Next][Thread Prev][Thread Next][Date Index][Thread Index]

grep branch, master, updated. v2.9-7-g406ab56


From: Paolo Bonzini
Subject: grep branch, master, updated. v2.9-7-g406ab56
Date: Wed, 29 Jun 2011 06:27:59 +0000

This is an automated email from the git hooks/post-receive script. It was
generated because a ref change was pushed to the repository containing
the project "grep".

The branch, master has been updated
       via  406ab56cdd977fbd05216392ac655dd7204a307a (commit)
      from  3c3bdace487c2c961ab3126d9a573af29c449c8b (commit)

Those revisions listed above that are new to this repository have
not appeared on any other notification email; so we list those
revisions in full, below.

- Log -----------------------------------------------------------------
http://git.savannah.gnu.org/cgit/grep.git/commit/?id=406ab56cdd977fbd05216392ac655dd7204a307a


commit 406ab56cdd977fbd05216392ac655dd7204a307a
Author: Paolo Bonzini <address@hidden>
Date:   Wed Jun 29 08:21:24 2011 +0200

    doc: improve documentation of character classes
    
    * doc/grep.texi (Character classes): Mention explicitly when
    examples refer to the C locale, explain better the general
    meaning of character classes.

diff --git a/doc/grep.texi b/doc/grep.texi
index 7c80f8c..b1b879a 100644
--- a/doc/grep.texi
+++ b/doc/grep.texi
@@ -1171,8 +1171,8 @@ of bracket expressions, you can use the @samp{C} locale 
by setting the
 Finally, certain named classes of characters are predefined within
 bracket expressions, as follows.
 Their interpretation depends on the @code{LC_CTYPE} locale;
-the interpretation below is that of the @samp{C} locale,
-which is the default if no @code{LC_CTYPE} locale is specified.
+for example, [[:alnum:]] means the character class of numbers and letters
+in the current locale.
 
 @cindex classes of characters
 @cindex character classes
@@ -1182,13 +1182,13 @@ which is the default if no @code{LC_CTYPE} locale is 
specified.
 @opindex alnum @r{character class}
 @cindex alphanumeric characters
 Alphanumeric characters:
address@hidden:alpha:]} and @samp{[:digit:]}.
address@hidden:alpha:]} and @samp{[:digit:]}; in the @samp{C} locale and 
@sc{ascii} character encoding, this is the same as @samp{[0-9A-Za-z]}.
 
 @item [:alpha:]
 @opindex alpha @r{character class}
 @cindex alphabetic characters
 Alphabetic characters:
address@hidden:lower:]} and @samp{[:upper:]}.
address@hidden:lower:]} and @samp{[:upper:]}; in the @samp{C} locale and 
@sc{ascii} character encoding, this is the same as @samp{[A-Za-z]}.
 
 @item [:blank:]
 @opindex blank @r{character class}
@@ -1220,7 +1220,8 @@ Graphical characters:
 @item [:lower:]
 @opindex lower @r{character class}
 @cindex lower-case letters
-Lower-case letters:
+Lower-case letters; in the @samp{C} locale and @sc{ascii} character
+encoding, this is
 @code{a b c d e f g h i j k l m n o p q r s t u v w x y z}.
 
 @item [:print:]
@@ -1232,21 +1233,23 @@ Printable characters:
 @item [:punct:]
 @opindex punct @r{character class}
 @cindex punctuation characters
-Punctuation characters:
+Punctuation characters; in the @samp{C} locale and @sc{ascii} character
+encoding, this is
 @code{!@: " # $ % & ' ( ) * + , - .@: / : ; < = > ?@: @@ [ \ ] ^ _ ` @{ | @} 
~}.
 
 @item [:space:]
 @opindex space @r{character class}
 @cindex space characters
 @cindex whitespace characters
-Space characters:
+Space characters: in the @samp{C} locale, this is
 tab, newline, vertical tab, form feed, carriage return, and space.
 @xref{Usage}, for more discussion of matching newlines.
 
 @item [:upper:]
 @opindex upper @r{character class}
 @cindex upper-case letters
-Upper-case letters:
+Upper-case letters: in the @samp{C} locale and @sc{ascii} character
+encoding, this is
 @code{A B C D E F G H I J K L M N O P Q R S T U V W X Y Z}.
 
 @item [:xdigit:]
@@ -1257,12 +1260,9 @@ Hexadecimal digits:
 @code{0 1 2 3 4 5 6 7 8 9 A B C D E F a b c d e f}.
 
 @end table
-For example, @samp{[[:alnum:]]} means @samp{[0-9A-Za-z]}, except the latter
-depends upon the @samp{C} locale and the @sc{ascii} character
-encoding, whereas the former is independent of locale and character set.
-(Note that the brackets in these class names are
+Note that the brackets in these class names are
 part of the symbolic names, and must be included in addition to
-the brackets delimiting the bracket expression.)
+the brackets delimiting the bracket expression.
 
 @anchor{invalid-bracket-expr}
 If you mistakenly omit the outer brackets, and search for say, 
@samp{[:upper:]},

-----------------------------------------------------------------------

Summary of changes:
 doc/grep.texi |   26 +++++++++++++-------------
 1 files changed, 13 insertions(+), 13 deletions(-)


hooks/post-receive
-- 
grep



reply via email to

[Prev in Thread] Current Thread [Next in Thread]