File tree Expand file tree Collapse file tree 1 file changed +7
-9
lines changed
exercises/concept/squeaky-clean/.docs Expand file tree Collapse file tree 1 file changed +7
-9
lines changed Original file line number Diff line number Diff line change 11# Instructions
22
3- In this exercise you will implement a partial set of utility routines to help a developer
4- clean up identifier names.
5-
6- In the 5 tasks you will gradually build up the routine ` Clean ` A valid identifier comprises
7- zero or more letters and underscores.
8-
9- In all cases the input string is guaranteed to be non-null. If an empty string is passed to the ` Clean ` function, an empty string should be returned.
10-
3+ In this exercise, you will implement a partial set of utility routines to help a developer clean up identifier names.
4+ In the 5 tasks you will gradually build up the routine ` Clean ` .
5+ A valid identifier comprises zero or more letters and underscores.
6+ In all cases, the input string is guaranteed to be non-null.
7+ If an empty string is passed to the ` Clean ` function, an empty string should be returned.
118Note that the caller should avoid calling the routine ` Clean ` with an empty identifier since such identifiers are ineffectual.
129
1310## 1. Replace any spaces encountered with underscores
1411
15- Implement the (_ static_ ) ` Identifier.Clean() ` method to replace any spaces with underscores. This also applies to leading and trailing spaces.
12+ Implement the (_ static_ ) ` Identifier.Clean() ` method to replace any spaces with underscores.
13+ This also applies to leading and trailing spaces.
1614
1715``` csharp
1816Identifier .Clean (" my Id" );
You can’t perform that action at this time.
0 commit comments