Skip to content

Commit 0b8a645

Browse files
committed
Added String Remove articles
1 parent 0bcd5ff commit 0b8a645

File tree

5 files changed

+95
-4
lines changed

5 files changed

+95
-4
lines changed

docs2/pages/documentations/string/string-padleft.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ String_PadLeft (
88
@totalWidth INT,
99
@paddingChar NVARCHAR (1)
1010
)
11-
RETURNS INT
11+
RETURNS NVARCHAR (MAX)
1212
```
1313

1414
## Parameters
@@ -40,7 +40,7 @@ String_PadLeft4k (
4040
@totalWidth INT,
4141
@paddingChar NVARCHAR (1)
4242
)
43-
RETURNS INT
43+
RETURNS NVARCHAR (4000)
4444
```
4545

4646
## Example

docs2/pages/documentations/string/string-padright.md

Lines changed: 2 additions & 2 deletions
Original file line numberDiff line numberDiff line change
@@ -8,7 +8,7 @@ String_PadRight (
88
@totalWidth INT,
99
@paddingChar NVARCHAR (1)
1010
)
11-
RETURNS INT
11+
RETURNS NVARCHAR (MAX)
1212
```
1313

1414
## Parameters
@@ -40,7 +40,7 @@ String_PadRight4k (
4040
@totalWidth INT,
4141
@paddingChar NVARCHAR (1)
4242
)
43-
RETURNS INT
43+
RETURNS NVARCHAR (4000)
4444
```
4545

4646
## Example
Lines changed: 45 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,45 @@
1+
# String_RemoveNumOfChars
2+
3+
`String_RemoveNumOfChars` returns a new string in which a specified number of characters in the `source` beginning at a specified position have been deleted.
4+
5+
```csharp
6+
String_RemoveNumOfChars (
7+
@source NVARCHAR (MAX),
8+
@startIndex INT
9+
)
10+
RETURNS NVARCHAR (MAX)
11+
```
12+
13+
## Parameters
14+
15+
- **source**: The source string.
16+
- **startIndex**: The zero-based position to begin deleting characters.
17+
- **count**: The number of characters to delete.
18+
19+
## Returns
20+
21+
- A new string that is equivalent to this string except for the removed characters.
22+
23+
## Example
24+
25+
```csharp
26+
SELECT SQLNET::String_RemoveNumOfChars('abc---def', 3, 3)
27+
```
28+
29+
# String_RemoveNumOfChars4k
30+
31+
It is equivalent to `String_RemoveNumOfChars` except no NVARCHAR(MAX) parameters; it can be used when input data will never be over 4000 characters as this function offers better performance.
32+
33+
```csharp
34+
String_RemoveNumOfChars4k (
35+
@source NVARCHAR (4000),
36+
@startIndex INT
37+
)
38+
RETURNS NVARCHAR (4000)
39+
```
40+
41+
## Example
42+
43+
```csharp
44+
SELECT SQLNET::String_RemoveNumOfChars4k('abc---def', 3, 3)
45+
```
Lines changed: 44 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,44 @@
1+
# String_Remove
2+
3+
`String_Remove` returns a new string in which all the characters in the `source` string, beginning at a specified position are deleted till the end of the `source` string.
4+
5+
```csharp
6+
String_Remove (
7+
@source NVARCHAR (MAX),
8+
@startIndex INT
9+
)
10+
RETURNS NVARCHAR (MAX)
11+
```
12+
13+
## Parameters
14+
15+
- **source**: The source string.
16+
- **startIndex**: The zero-based position to begin deleting characters.
17+
18+
## Returns
19+
20+
- A new string that is equivalent to this string except for the removed characters.
21+
22+
## Example
23+
24+
```csharp
25+
SELECT SQLNET::String_Remove('abc---def', 3)
26+
```
27+
28+
# String_Remove4k
29+
30+
It is equivalent to `String_Remove` except no NVARCHAR(MAX) parameters; it can be used when input data will never be over 4000 characters as this function offers better performance.
31+
32+
```csharp
33+
String_Remove4k (
34+
@source NVARCHAR (4000),
35+
@startIndex INT
36+
)
37+
RETURNS NVARCHAR (4000)
38+
```
39+
40+
## Example
41+
42+
```csharp
43+
SELECT SQLNET::String_Remove4k('abc---def', 3)
44+
```

docs2/pages/documentations/string/string.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -34,3 +34,5 @@ Represents text as a sequence of UTF-16 code units.
3434
| [String_Occurrences(source, searchValue, isCaseSensitive)](/string-occurrences) | Returns the number of occurrences in the specified string. | [Try it]()|
3535
| [String_PadLeft(source, totalWidth, paddingChar)](/string-padleft) | Returns a new string that right-aligns the characters in this instance by padding them on the left with a specified Unicode character, for a specified total length. | [Try it]()|
3636
| [String_PadRight(source, totalWidth, paddingChar)](/string-padright) | Returns a new string that left-aligns the characters in this instance by padding them on the right with a specified Unicode character, for a specified total length. | [Try it]()|
37+
| [String_Remove(source, startIndex)](/string-remove) | Returns a new string in which all the characters in the `source` string, beginning at a specified position are deleted till the end of the `source` string. | [Try it]()|
38+
| [String_RemoveNumOfChars(source, startIndex, count)](/string-remove-num-of-chars) | Returns a new string in which a specified number of characters in the `source` beginning at a specified position have been deleted. | [Try it]()|

0 commit comments

Comments
 (0)