Upshift Word [ HP EDIT Reference Manual ] MPE/iX 5.0 Documentation
HP EDIT Reference Manual
Upshift Word
Purpose
Converts one or more words to uppercase.
Default Syntax
[n] CTRL ^
where n represents the number of words to convert to uppercase. The
default value of n is 1.
Description
This command converts one or more words on the cursor line from lowercase
to uppercase, and moves the cursor to the first character of the next
word.
If the cursor is not positioned on the first character of a word, HP EDIT
does not upshift characters to the left of the cursor.
If you specify a greater number of words for conversion than words
remaining on the cursor line, HP EDIT capitalizes the remaining words on
the line and moves the cursor to the last character on the line.
Word Definition
HP EDIT enables you to specify the type of characters that constitute an
HP EDIT word. There are four possible word definitions. You can specify
a definition other than the default value by changing the value of the
Word Category parameter from the Set Options screen.
The following word definition options are available:
[a-zA-Z0-9_'-] Words consist of upper and lowercase letters,
digits, underscores, apostrophes, and hyphens.
Words are separated by spaces and any
non-alphanumeric characters besides the underscore,
apostrophe, or hyphen. This is the default
definition.
[a-zA-Z0-9_] Words consist of upper and lowercase letters,
digits and underscores. Words are separated by
spaces and any non-alphanumeric characters besides
the underscore.
[a-zA-Z0-9] Words consists of upper and lowercase letters as
well as digits. Words are separated by spaces and
any non-alphanumeric characters.
[~ ] Words consist of any non-space characters separated
by spaces.
Procedures
To convert one lowercase word to uppercase:
1. Move the cursor to the first character of the word you want to
convert.
2. Press CTRL and the ^ key. HP EDIT converts the word and moves the
cursor under the first character of the next word.
To convert more than one lowercase word to uppercase:
1. Move the cursor to the first character of the group of words you
want to convert.
2. Specify a count representing the number of words you want to
convert.
3. Press CTRL and the ^ key. HP EDIT converts the number of words
specified and moves the cursor under the first character of the
next word.
Example
To convert the following word to uppercase:
This word will be uppercase.
1. Move the cursor to the position shown above.
2. Press CTRL and the ^ key. HP EDIT converts the word and moves the
cursor to the next word as shown:
This WORD will be uppercase.
Related Commands
Upshift Character
Upshift Line
MPE/iX 5.0 Documentation