rent-now

Rent More, Save More! Use code: ECRENTAL

5% off 1 book, 7% off 2 books, 10% off 3+ books

9781861008237

C# Text Manipulation Handbook

by
  • ISBN13:

    9781861008237

  • ISBN10:

    1861008236

  • Edition: 1st
  • Format: Trade Paper
  • Copyright: 2002-11-01
  • Publisher: Springer-Verlag New York Inc
  • Purchase Benefits
  • Free Shipping Icon Free Shipping On Orders Over $35!
    Your order must be $35 or more to qualify for free economy shipping. Bulk sales, PO's, Marketplace items, eBooks and apparel do not qualify for this offer.
  • eCampus.com Logo Get Rewarded for Ordering Your Textbooks! Enroll Now
List Price: $29.99

Table of Contents

Introduction 1(1)
Who is this Book For?
2(1)
Book Outline
2(5)
How the System Deals with Text
7(30)
The .NET Framework
8(3)
Common Language Runtime
8(1)
Managed Heap
9(1)
.NET Framework Class Library
10(1)
Text as a Data Type
11(7)
C# Data Types
12(1)
Value Types and Reference Types
12(1)
Primitive Types
12(1)
Characters and Character Sets
13(2)
Characters in C#
15(2)
String Data Type
17(1)
Text Storage
18(7)
Caching
20(1)
Interning
21(1)
Other Approaches
21(1)
.NET Implementation
22(3)
String Operations
25(5)
Concatenating Strings
26(1)
Extracting Substrings from Strings
27(1)
Comparing Strings
28(1)
Converting Strings
28(1)
Formatting Strings
29(1)
String Uses
30(3)
Building Strings
30(2)
Parsing Strings
32(1)
Internationalization
33(2)
.NET Resource Files
34(1)
Summary
35(2)
String and StringBuilder
37(40)
Tools for this Chapter
37(1)
Text Architecture
38(2)
String Class
40(7)
Interning Strings
41(2)
Construction
43(3)
Escaping Strings
46(1)
StringBuilder Class
47(5)
Length and Capacity
49(2)
ToString()
51(1)
String Operations
52(12)
Concatenating Strings
53(2)
Extracting Substrings from Strings
55(1)
Comparing Strings
55(4)
Formatting
59(1)
Formatting Numbers
60(2)
Formatting Dates
62(1)
Formatting Enumerations
63(1)
Formatting Choices
63(1)
Uses of Strings
64(11)
Building Strings
64(3)
Tokenizing
67(2)
Reversing a String
69(1)
Insert, Remove, and Replace
70(2)
Choosing Between String and StringBuilder
72(3)
Summary
75(2)
String Conversion
77(22)
The ToString() Method
77(1)
Representing Numeric Values as Strings
78(5)
NumberFormatInfo
81(2)
Representing Date and Time as a String
83(3)
The DateTimeFormatInfo Class
84(2)
Representing Other Objects as Strings
86(1)
Representing Strings with Strings
87(1)
From String to Other Types
88(5)
Converting Strings to Numbers
89(2)
Converting String to Date and Time
91(1)
Parsing Date and Time
91(2)
Moving Strings Between Collections and Arrays
93(3)
Arrays
94(1)
ArrayLists
95(1)
IDictionary Objects
96(1)
Summary
96(3)
Internationalization
99(36)
Unicode
100(2)
Encoding Formats
101(1)
.NET Framework Encoding Classes
102(4)
The Encoding Class
102(4)
Dealing with Strings
106(12)
The CultureInfo Class
106(1)
Culture Names
106(1)
The Different Types of Culture
107(2)
The Two Roles of CultureInfo
109(1)
Setting the CurrentCulture and the CurrentUICulture
110(1)
Uppercasing and Lowercasing
111(1)
Uppercasing
111(1)
Lowercasing
112(1)
When Culture-Sensitive Operations are Not Desired
112(1)
Sorting
112(1)
String.CompareOrdinal()
113(1)
String.Compare()
114(1)
String.CompareTo()
115(1)
The CompareInfo Class
116(2)
Dealing with Characters
118(9)
Necessary Information about Characters
119(1)
Surrogate Pairs
119(1)
How Surrogates Work
120(1)
Why Support Surrogates
120(1)
Handling Surrogate pairs
121(1)
Displaying Surrogates
121(3)
Surrogates Input
124(1)
Sorting
125(1)
Combining Characters
125(1)
Dealing with Surrogate Pairs and Combining Characters
125(1)
StringInfo.ParseCombiningCharacters()
126(1)
StringInfo.GetTextEnumerator()
127(1)
Formatting Unicode Strings
127(1)
Strings as Resources
128(4)
The .NET Resource Model
129(1)
.resx File
129(1)
.resources Files
129(1)
Embedded Resources
130(1)
Using Resources
130(1)
Localization with Resources
131(1)
Summary
132(3)
Introducing Regular Expressions
135(36)
System.Text.RegularExpressions
136(1)
The Regex Class
137(5)
RegexOptions Enumeration
137(1)
Class Constructor
138(1)
IsMatch() Method
139(1)
Replace() Method
140(1)
Split()
141(1)
The Match and MatchCollection Classes
142(4)
Regex Tester Example
146(9)
Fundamental Regular Expression Syntax
155(13)
Matching Different Classes of Characters
155(2)
Specifying Match Position
157(1)
Specifying Repetition
158(2)
Greedy and Lazy Expressions
160(6)
Specifying Alternatives
166(1)
Special Characters
167(1)
Summary
168(3)
Advanced Regex Concepts
171(28)
Groups, Substitutions, and Backreferences
171(19)
Simple Groups
172(1)
Capturing: ( )
173(1)
Non-Capturing: (?:)
173(1)
Capturing-By-Name: (?<name>)
174(1)
Comparing Simple Groups
174(3)
The Group and GroupCollection Classes
177(4)
Substitutions
181(2)
Backreferences
183(1)
Advanced Groups
184(1)
Positive Look-Ahead Assertion: (?=)
185(1)
Negative Look-Ahead Assertion: (?!)
185(1)
Positive Look-Behind Assertion: (?<=)
185(1)
Negative Look-Behind Assertion: (?<!)
186(1)
Non-Backtracking: (?>)
186(1)
Comparing Advanced Groups
186(4)
Making Decisions in Regular Expressions
190(3)
Setting Options within a Regex
193(1)
Rules of the Regex Engine
193(3)
Summary
196(3)
Regular Expression Patterns
199(84)
Validating Characters
199(1)
Validating Numbers
200(2)
Numbers Only
200(1)
Integer Numbers Only
201(1)
Floating-Point Numbers
201(1)
Validating a Telephone Number
202(3)
Validating a Postal Code
205(1)
Validating an E-mail Address
206(5)
Validating an IP Address
207(1)
Validating a Domain Name
208(1)
Validating a Person's Address
209(1)
Validating the Complete Address
210(1)
Analyzing an SMTP Log File
211(11)
HTML Tags
222(10)
Removing HTML from User Input
222(1)
Extracting All HTML Tags
223(5)
HTML Extraction Example
228(4)
Summary
232(3)
Appendices
A: The String Class
235(10)
Constructors
235(1)
Properties
236(1)
Methods
236(9)
B: The StringBuilder Class
245(6)
Constructors
245(1)
Properties
246(1)
Methods
246(5)
C: Regular Expression Syntax
251(12)
Matching Characters
251(1)
Repetition Characters
252(1)
Positional Characters
253(1)
Grouping Characters
253(4)
Decision Making Characters
257(1)
Substitution Characters
258(1)
Escape Sequences
259(1)
Option Flags
260(3)
D: Managing Culturally Correct Date and Time Formats in C#
263(16)
Console Examples Using DateTime
264(1)
First Console Example
264(5)
A Note About Managing String Formatting
269(2)
Some Examples from ASP
271(1)
Revising DateSquares
272(2)
Another Date Example
274(3)
Summary
277(2)
E: Support, Errata, and Code Download
279(4)
How to Download the Sample Code for the Book
279(1)
Errata
280(1)
E-Mail Support
280(1)
p2p.wrox.com
281(2)
Index 283

Supplemental Materials

What is included with this book?

The New copy of this book will include any supplemental materials advertised. Please check the title of the book to determine if it should include any access cards, study guides, lab manuals, CDs, etc.

The Used, Rental and eBook copies of this book are not guaranteed to include any supplemental materials. Typically, only the book itself is included. This is true even if the title states it includes any access cards, study guides, lab manuals, CDs, etc.

Rewards Program