Skip to content

Added String Split articles #14

New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

Merged
merged 89 commits into from
Oct 8, 2019
Merged
Show file tree
Hide file tree
Changes from all commits
Commits
Show all changes
89 commits
Select commit Hold shift + click to select a range
4f9be4e
Added String Split articles
waqasm78 Nov 30, 2018
b014ffd
Updated String Split articles
waqasm78 Nov 30, 2018
9a56ee4
Updated string split articles
waqasm78 Nov 30, 2018
89ce51f
Added string startswith article
waqasm78 Nov 30, 2018
9d1154d
Added String Substring article
waqasm78 Nov 30, 2018
d8282d3
Added string tolower article
waqasm78 Nov 30, 2018
0905f5d
Added String ToLowerInvariant article
waqasm78 Dec 1, 2018
44baf47
Added String ToTitleCase article
waqasm78 Dec 1, 2018
1887ea8
Added string toupper article
waqasm78 Dec 1, 2018
5ba0ba5
Added string ToUpperInvariant article
waqasm78 Dec 1, 2018
80de425
Added String Trim, TrimChars, TrimEnd, and TrimStart articles
waqasm78 Dec 1, 2018
a94234a
Added Regex Escape article
waqasm78 Dec 2, 2018
a897693
Added Regex Index article
waqasm78 Dec 3, 2018
1272aa3
Added Regex indexop article
waqasm78 Dec 3, 2018
6835e5d
Added Regex IsMatch articles
waqasm78 Dec 3, 2018
44bd041
Added Regex Match article
waqasm78 Dec 3, 2018
c3af7e3
Added Regex Replace articles
waqasm78 Dec 4, 2018
a90070c
Updated Regex methods summary page
waqasm78 Dec 4, 2018
a7ab9c9
Added Regex Split articles
waqasm78 Dec 4, 2018
6f84d67
Added Convert ToBoolean article
waqasm78 Dec 4, 2018
4878636
Added Convert-ToByte article
waqasm78 Dec 4, 2018
ad266c0
Added Convert ToDateTime article
waqasm78 Dec 4, 2018
7713155
Added Convert-ToDecimal article
waqasm78 Dec 4, 2018
52d0a1a
Added Convert-ToDouble article
waqasm78 Dec 4, 2018
6bb25ec
Added Convert-ToInt16 article
waqasm78 Dec 5, 2018
eb73597
Added Convert-ToInt32 article
waqasm78 Dec 5, 2018
4052615
Create convert-toint32.md
waqasm78 Dec 5, 2018
d520cbc
Added Convert-ToInt64 article
waqasm78 Dec 5, 2018
317d6ed
Added DateTime-AddDays article
waqasm78 Dec 5, 2018
73423a8
Added DateTime_AddMonths article
waqasm78 Dec 5, 2018
e0af45c
Update datetime-add-months.md
waqasm78 Dec 5, 2018
4fe5d25
Added DateTime-AddYears, Age, and DayOfWeek article
waqasm78 Dec 5, 2018
1ca1ff4
Added DateTime DayOfYear and DaysInMonth articles
waqasm78 Dec 5, 2018
4e4b7ab
Added DateTime-FromBinary, FromFileTime, FromFileTimeUtc, and FromOAD…
waqasm78 Dec 5, 2018
a236692
Added DateTime IsDaylightSavingTime and IsLeapYear articles
waqasm78 Dec 6, 2018
7553c96
Added DateTime Now and Ticks articles
waqasm78 Dec 6, 2018
2307089
Added DateTime ToBinary and ToFileTime articles
waqasm78 Dec 6, 2018
acea824
Added DateTime ToFileTimeUtc article
waqasm78 Dec 6, 2018
1939491
Added DateTime-ToLocalTime
waqasm78 Dec 6, 2018
75cd129
Added remaining DateTime articles
waqasm78 Dec 6, 2018
3d4df2a
Update datetime-to-universal-time.md
waqasm78 Dec 7, 2018
92a04cc
Added Directory_GetAllFileSystemEntries article
waqasm78 Dec 7, 2018
1cb7d0b
Added Directory_Create article
waqasm78 Dec 7, 2018
a9ff0c1
Added directory related articles
waqasm78 Dec 7, 2018
ac8e92f
Added GetFiles and GetFileSystemEntries articels
waqasm78 Dec 7, 2018
dcd3975
Added Directory_GetCreationTime and Directory_GetCreationTime articles
waqasm78 Dec 7, 2018
de20633
Added Directory_GetDirectories article
waqasm78 Dec 8, 2018
b8633cc
Added Directory_GetLastAccessTime and Directory_GetLastAccessTimeUtc …
waqasm78 Dec 8, 2018
226e45f
Added Directory_GetLastWriteTime and Directory_GetLastWriteTimeUtc ar…
waqasm78 Dec 8, 2018
ad23b60
Added Directory_Move article
waqasm78 Dec 8, 2018
dbc621c
Added Directory_SetCreationTime article
waqasm78 Dec 8, 2018
dc07108
Added Directory_SetCreationTimeUtc article
waqasm78 Dec 8, 2018
eea28b5
Added Directory_SetLastAccessTime article
waqasm78 Dec 8, 2018
1339edd
Added Directory_SetLastAccessTimeUtc article
waqasm78 Dec 8, 2018
8f79c32
Added Directory_SetLastWriteTime and Directory_SetLastWriteTimeUtc ar…
waqasm78 Dec 9, 2018
3a66404
Added Fiile_Copy article
waqasm78 Dec 9, 2018
596ee7e
Added File_Create article
waqasm78 Dec 9, 2018
7d89a41
Added File_Decrypt article
waqasm78 Dec 10, 2018
8d1d9f8
Added File_Delete article
waqasm78 Dec 10, 2018
7b18c99
Added File_Encrypt article
waqasm78 Dec 10, 2018
6f9d43f
Added File_GetCreationTime article
waqasm78 Dec 10, 2018
d83584b
Added File_GetCreationTimeUtc
waqasm78 Dec 10, 2018
93b930d
Added File_GetLastAccessTime, File_GetLastAccessTimeUtc, File_GetLast…
waqasm78 Dec 10, 2018
7ac01a4
Added File_IsExists article
waqasm78 Dec 10, 2018
b928a99
Added File_Move and File_ReadAllText article
waqasm78 Dec 10, 2018
29b5854
Added File_Move and File_Replace article
waqasm78 Dec 10, 2018
c799e3c
Added File_SetCreationTime article
waqasm78 Dec 10, 2018
f5279ab
Added File_SetCreationTimeUtc article
waqasm78 Dec 10, 2018
032e38b
Added File_SetLastAccessTime, File_SetLastAccessTimeUtc, File_SetLast…
waqasm78 Dec 10, 2018
513832c
Added File_WriteAllText article
waqasm78 Dec 10, 2018
1f01c41
Added Math_BigMul article
waqasm78 Dec 11, 2018
27981f4
Added Math_Cosh article
waqasm78 Dec 11, 2018
d1c2836
Added Math_CubeRoot article
waqasm78 Dec 11, 2018
fbd1040
Added Math_IEEERemainder and Math_NthRoot articles
waqasm78 Dec 11, 2018
0b64c50
Added Math_RemainderInt32, Math_RemainderInt64 article
waqasm78 Dec 11, 2018
aa43153
Added Math_Sinh, and Math_Tanh article
waqasm78 Dec 11, 2018
ef3e5ba
Added Path_ChangeExtension article
waqasm78 Dec 11, 2018
8a43d8a
Added Path_Combine article
waqasm78 Dec 11, 2018
793c90f
Added Path_GetDirectoryName article
waqasm78 Dec 11, 2018
47fd1f4
Added Path_GetExtension and Path_GetFileName article
waqasm78 Dec 11, 2018
e637877
Added Path_GetFileNameWithoutExtension article
waqasm78 Dec 11, 2018
5b5753b
Added Path_GetFullPath article
waqasm78 Dec 11, 2018
dd8ebcd
Added Path_GetPathRoot article
waqasm78 Dec 11, 2018
f4e6250
Added Path_GetRandomFileName article
waqasm78 Dec 11, 2018
bba1c5e
Added Path_GetTempFileName article
waqasm78 Dec 12, 2018
6633b0c
Added Path_GetTempPath article
waqasm78 Dec 12, 2018
50159d6
Added Path_HasExtension article
waqasm78 Dec 12, 2018
599942e
Added Path_IsPathRooted article
waqasm78 Dec 12, 2018
9412c4b
Update path-is-path-rooted.md
waqasm78 Dec 12, 2018
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
25 changes: 25 additions & 0 deletions docs2/pages/documentations/convert/convert-toboolean.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Convert_ToBoolean

`Convert_ToBoolean` converts the specified string representation of a logical value to its Boolean equivalent.
```csharp
Convert_ToBoolean (
@value NVARCHAR (MAX)
)
RETURNS BIT
```

## Parameters

- **value**: A string that contains the value of either `TrueString` or `FalseString`.

## Returns

`true` if `value` equals `TrueString`, or false if `value` equals `FalseString`.

## Example

```csharp
SELECT SQLNET::Convert_ToBoolean('false')
SELECT SQLNET::Convert_ToBoolean('true')
```

25 changes: 25 additions & 0 deletions docs2/pages/documentations/convert/convert-tobyte.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Convert_ToByte

`Convert_ToByte` converts the specified string representation of a number to an equivalent 8-bit unsigned integer.
```csharp
Convert_ToByte (
@value NVARCHAR (MAX)
)
RETURNS TINYINT
```

## Parameters

- **value**: A string that contains the number to convert.

## Returns

An 8-bit unsigned integer that is equivalent to the `value`.

## Example

```csharp
SELECT SQLNET::Convert_ToByte('3')
SELECT SQLNET::Convert_ToByte('136')
```

24 changes: 24 additions & 0 deletions docs2/pages/documentations/convert/convert-todatetime.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Convert_ToDateTime

`Convert_ToDateTime` converts the specified string representation of a date and time to an equivalent date and time value.

```csharp
Convert_ToDateTime (
@value NVARCHAR (MAX)
)
RETURNS DATETIME
```

## Parameters

- **value**: The string representation of a date and time.

## Returns

The date and time that is equivalent to the `value`.

## Example

```csharp
SELECT SQLNET::Convert_ToDateTime('2015-12-27')
```
24 changes: 24 additions & 0 deletions docs2/pages/documentations/convert/convert-todecimal.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Convert_ToDecimal

`Convert_ToDecimal` converts the specified string representation of a number to an equivalent decimal number.

```csharp
Convert_ToDecimal (
@value NVARCHAR (MAX)
)
RETURNS NUMERIC (18)
```

## Parameters

- **value**: A string that contains a number to convert.

## Returns

A decimal number that is equivalent to the number in `value`.

## Example

```csharp
SELECT SQLNET::Convert_ToDecimal('2015-12-27')
```
25 changes: 25 additions & 0 deletions docs2/pages/documentations/convert/convert-todouble.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# Convert_ToDouble

`Convert_ToDouble` converts the specified string representation of a number to an equivalent double-precision floating-point number.

```csharp
Convert_ToDouble (
@value NVARCHAR (MAX)
)
RETURNS FLOAT (53)
```

## Parameters

- **value**: A string that contains the number to convert.

## Returns

A double-precision floating-point number that is equivalent to the number in `value`.

## Example

```csharp
SELECT SQLNET::Convert_ToDouble('-1,035.77219')
SELECT SQLNET::Convert_ToDouble('1e-35')
```
24 changes: 24 additions & 0 deletions docs2/pages/documentations/convert/convert-toint16.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Convert_ToInt16

`Convert_ToInt16` converts the string representation of a number in a specified base to an equivalent 16-bit signed integer.

```csharp
Convert_ToInt16 (
@value NVARCHAR (MAX)
)
RETURNS SMALLINT
```

## Parameters

- **value**: A string that contains the number to convert.

## Returns

A 16-bit signed integer that is equivalent to the number in `value`.

## Example

```csharp
SELECT SQLNET::Convert_ToInt16('251')
```
24 changes: 24 additions & 0 deletions docs2/pages/documentations/convert/convert-toint32.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Convert_ToInt32

`Convert_ToInt32` converts the specified string representation of a number to an equivalent 32-bit signed integer.

```csharp
Convert_ToInt32 (
@value NVARCHAR (MAX)
)
RETURNS SMALLINT
```

## Parameters

- **value**: A string that contains the number to convert.

## Returns

A 32-bit signed integer that is equivalent to the number in `value`.

## Example

```csharp
SELECT SQLNET::Convert_ToInt32('4285')
```
24 changes: 24 additions & 0 deletions docs2/pages/documentations/convert/convert-toint64.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,24 @@
# Convert_ToInt64

`Convert_ToInt64` converts the specified string representation of a number to an equivalent 64-bit signed integer.

```csharp
Convert_ToInt64 (
@value NVARCHAR (MAX)
)
RETURNS SMALLINT
```

## Parameters

- **value**: A string that contains the number to convert.

## Returns

A 64-bit signed integer that is equivalent to the number in `value`.

## Example

```csharp
SELECT SQLNET::Convert_ToInt64('854')
```
14 changes: 14 additions & 0 deletions docs2/pages/documentations/convert/convert.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,14 @@
# Convert

Converts a string to another base data type.

| Name | Description | Example |
| :--- | :---------- | :------ |
| [Convert_ToBoolean(value)](/convert-toboolean) | Converts the specified string representation of a logical value to its Boolean equivalent. | [Try it]()|
| [Convert_ToByte(value)](/convert-tobyte) | Converts the specified string representation of a number to an equivalent 8-bit unsigned integer. | [Try it]()|
| [Convert_ToDateTime(value)](/convert-todatetime) | Converts the specified string representation of a date and time to an equivalent date and time value. | [Try it]()|
| [Convert_ToDecimal(value)](/convert-todecimal) | Converts the specified string representation of a date and time to an equivalent decimal value. | [Try it]()|
| [Convert_ToDouble(value)](/convert-todouble) | Converts the specified string representation of a number to an equivalent double-precision floating-point number. | [Try it]()|
| [Convert_ToInt16(value)](/convert-toint16) | Converts the string representation of a number in a specified base to an equivalent 16-bit signed integer. | [Try it]()|
| [Convert_ToInt32(value)](/convert-toint32) | Converts the specified string representation of a number to an equivalent 32-bit signed integer. | [Try it]()|
| [Convert_ToInt64(value)](/convert-toint64) | Converts the specified string representation of a number to an equivalent 64-bit signed integer. | [Try it]()|
28 changes: 28 additions & 0 deletions docs2/pages/documentations/datetime/datetime-add-days.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# DateTime_AddDays

`DateTime_AddDays` returns a new DateTime that adds the specified number of days to the value of `currDate`.

```csharp
DateTime_AddDays (
@currDate DATETIME,
@value FLOAT (53))
)
RETURNS DATETIME
```

## Parameters

- **currDate**: The current datetime object.
- **value**: A number of whole and fractional days. The `value` parameter can be negative or positive.

## Returns

A new `DateTime` object whose value is the sum of the date and time represented by `currDate` and the number of days represented by `value`.

## Example

```csharp
SELECT SQLNET::DateTime_AddDays('2017-05-25', 4)
SELECT SQLNET::DateTime_AddDays('2018-12-01', 2.2)
```

28 changes: 28 additions & 0 deletions docs2/pages/documentations/datetime/datetime-add-months.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# DateTime_AddMonths

`DateTime_AddMonths` returns a new DateTime that adds the specified number of months to the value of `currDate`.

```csharp
DateTime_AddMonths (
@currDate DATETIME,
@value INT)
)
RETURNS DATETIME
```

## Parameters

- **currDate**: The current datetime object.
- **value**: A number of months. The `value` parameter can be negative or positive.

## Returns

A new `DateTime` object whose value is the sum of the date and time represented by `currDate` and the number of months represented by `value`.

## Example

```csharp
SELECT SQLNET::DateTime_AddMonths('2017-05-25', 4)
SELECT SQLNET::DateTime_AddMonths('2018-12-01', -3)
```

28 changes: 28 additions & 0 deletions docs2/pages/documentations/datetime/datetime-add-years.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,28 @@
# DateTime_AddYears

`DateTime_AddYears` returns a new DateTime that adds the specified number of years to the value of `currDate`.

```csharp
DateTime_AddYears (
@currDate DATETIME,
@value INT)
)
RETURNS DATETIME
```

## Parameters

- **currDate**: The current datetime object.
- **value**: A number of years. The `value` parameter can be negative or positive.

## Returns

A new `DateTime` object whose value is the sum of the date and time represented by `currDate` and the number of years represented by `value`.

## Example

```csharp
SELECT SQLNET::DateTime_AddYears('2017-05-25', 4)
SELECT SQLNET::DateTime_AddYears('2018-12-01', -3)
```

27 changes: 27 additions & 0 deletions docs2/pages/documentations/datetime/datetime-age.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,27 @@
# DateTime_Age

`DateTime_Age` returns an age in number of years between `startDate` and `endDate`.

```csharp
DateTime_Age (
@startDate DATETIME,
@endDate DATETIME
)
RETURNS FLOAT (53)
```

## Parameters

- **startDate**: The start datetime object.
- **endDate**: The end datetime object.

## Returns

An age in number of years between `startDate` and `endDate`.

## Example

```csharp
SELECT SQLNET::DateTime_Age('2002-05-25', '2018-12-01')
```

25 changes: 25 additions & 0 deletions docs2/pages/documentations/datetime/datetime-dayofweek.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,25 @@
# DateTime_DayOfWeek

`DateTime_DayOfWeek` returns the day of the week represented by `currDate`.

```csharp
DateTime_DayOfWeek (
@currDate DATETIME,
)
RETURNS NVARCHAR (MAX)
```

## Parameters

- **currDate**: The current datetime object.

## Returns

The day of the week represented by `currDate`.

## Example

```csharp
SELECT SQLNET::DateTime_DayOfWeek('2018-12-01')
```

26 changes: 26 additions & 0 deletions docs2/pages/documentations/datetime/datetime-dayofyear.md
Original file line number Diff line number Diff line change
@@ -0,0 +1,26 @@
# DateTime_DayOfYear

`DateTime_DayOfYear` returns day of the year, expressed as a value between 1 and 366 represented by `currDate`.

```csharp
DateTime_DayOfYear (
@currDate DATETIME,
)
RETURNS INT
```

## Parameters

- **currDate**: The current datetime object.

## Returns

The day of the year, expressed as a value between 1 and 366.

## Example

```csharp
SELECT SQLNET::DateTime_DayOfYear('2018-12-01')
SELECT SQLNET::DateTime_DayOfYear('2016-12-31')
```

Loading