-
-
Notifications
You must be signed in to change notification settings - Fork 34
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add Length, ToLower and ToUpper for strings and convenience extensions.
- Loading branch information
1 parent
a6cc6db
commit 102ad26
Showing
188 changed files
with
2,314 additions
and
0 deletions.
There are no files selected for viewing
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace ExRam.Gremlinq.Core.Steps | ||
{ | ||
public sealed class LengthStep : Step | ||
{ | ||
public static readonly LengthStep Instance = new(); | ||
|
||
private LengthStep() | ||
{ | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace ExRam.Gremlinq.Core.Steps | ||
{ | ||
public sealed class ToLowerStep : Step | ||
{ | ||
public static readonly ToLowerStep Instance = new(); | ||
|
||
private ToLowerStep() | ||
{ | ||
|
||
} | ||
} | ||
} |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,12 @@ | ||
namespace ExRam.Gremlinq.Core.Steps | ||
{ | ||
public sealed class ToUpperStep : Step | ||
{ | ||
public static readonly ToUpperStep Instance = new(); | ||
|
||
private ToUpperStep() | ||
{ | ||
|
||
} | ||
} | ||
} |
1 change: 1 addition & 0 deletions
1
test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.Length.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
g.inject('aBcDeFg').asString().length() |
1 change: 1 addition & 0 deletions
1
...ts/Debugging/DefaultDebugGremlinQuerySerializationTest.Length_with_extension.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
g.inject('aBcDeFg').length() |
1 change: 1 addition & 0 deletions
1
test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.ToLower.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
g.inject('aBcDeFg').asString().toLower() |
1 change: 1 addition & 0 deletions
1
...s/Debugging/DefaultDebugGremlinQuerySerializationTest.ToLower_with_extension.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
g.inject('aBcDeFg').toLower() |
1 change: 1 addition & 0 deletions
1
test/Core.Tests/Debugging/DefaultDebugGremlinQuerySerializationTest.ToUpper.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
g.inject('aBcDeFg').asString().toUpper() |
1 change: 1 addition & 0 deletions
1
...s/Debugging/DefaultDebugGremlinQuerySerializationTest.ToUpper_with_extension.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
g.inject('aBcDeFg').toUpper() |
16 changes: 16 additions & 0 deletions
16
test/Core.Tests/Serialization/BytecodeQuerySerializationTest.Length.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
StepInstructions: [ | ||
{ | ||
OperatorName: inject, | ||
Arguments: [ | ||
aBcDeFg | ||
] | ||
}, | ||
{ | ||
OperatorName: asString | ||
}, | ||
{ | ||
OperatorName: length | ||
} | ||
] | ||
} |
13 changes: 13 additions & 0 deletions
13
...ore.Tests/Serialization/BytecodeQuerySerializationTest.Length_with_extension.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
StepInstructions: [ | ||
{ | ||
OperatorName: inject, | ||
Arguments: [ | ||
aBcDeFg | ||
] | ||
}, | ||
{ | ||
OperatorName: length | ||
} | ||
] | ||
} |
16 changes: 16 additions & 0 deletions
16
test/Core.Tests/Serialization/BytecodeQuerySerializationTest.ToLower.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
StepInstructions: [ | ||
{ | ||
OperatorName: inject, | ||
Arguments: [ | ||
aBcDeFg | ||
] | ||
}, | ||
{ | ||
OperatorName: asString | ||
}, | ||
{ | ||
OperatorName: toLower | ||
} | ||
] | ||
} |
13 changes: 13 additions & 0 deletions
13
...re.Tests/Serialization/BytecodeQuerySerializationTest.ToLower_with_extension.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
StepInstructions: [ | ||
{ | ||
OperatorName: inject, | ||
Arguments: [ | ||
aBcDeFg | ||
] | ||
}, | ||
{ | ||
OperatorName: toLower | ||
} | ||
] | ||
} |
16 changes: 16 additions & 0 deletions
16
test/Core.Tests/Serialization/BytecodeQuerySerializationTest.ToUpper.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
StepInstructions: [ | ||
{ | ||
OperatorName: inject, | ||
Arguments: [ | ||
aBcDeFg | ||
] | ||
}, | ||
{ | ||
OperatorName: asString | ||
}, | ||
{ | ||
OperatorName: toUpper | ||
} | ||
] | ||
} |
13 changes: 13 additions & 0 deletions
13
...re.Tests/Serialization/BytecodeQuerySerializationTest.ToUpper_with_extension.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
StepInstructions: [ | ||
{ | ||
OperatorName: inject, | ||
Arguments: [ | ||
aBcDeFg | ||
] | ||
}, | ||
{ | ||
OperatorName: toUpper | ||
} | ||
] | ||
} |
16 changes: 16 additions & 0 deletions
16
...e.Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.Length.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
StepInstructions: [ | ||
{ | ||
OperatorName: inject, | ||
Arguments: [ | ||
aBcDeFg | ||
] | ||
}, | ||
{ | ||
OperatorName: asString | ||
}, | ||
{ | ||
OperatorName: length | ||
} | ||
] | ||
} |
13 changes: 13 additions & 0 deletions
13
...zation/EmptyProjectionValueProtectionSerializationTest.Length_with_extension.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
StepInstructions: [ | ||
{ | ||
OperatorName: inject, | ||
Arguments: [ | ||
aBcDeFg | ||
] | ||
}, | ||
{ | ||
OperatorName: length | ||
} | ||
] | ||
} |
16 changes: 16 additions & 0 deletions
16
....Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.ToLower.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
StepInstructions: [ | ||
{ | ||
OperatorName: inject, | ||
Arguments: [ | ||
aBcDeFg | ||
] | ||
}, | ||
{ | ||
OperatorName: asString | ||
}, | ||
{ | ||
OperatorName: toLower | ||
} | ||
] | ||
} |
13 changes: 13 additions & 0 deletions
13
...ation/EmptyProjectionValueProtectionSerializationTest.ToLower_with_extension.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
StepInstructions: [ | ||
{ | ||
OperatorName: inject, | ||
Arguments: [ | ||
aBcDeFg | ||
] | ||
}, | ||
{ | ||
OperatorName: toLower | ||
} | ||
] | ||
} |
16 changes: 16 additions & 0 deletions
16
....Tests/Serialization/EmptyProjectionValueProtectionSerializationTest.ToUpper.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
{ | ||
StepInstructions: [ | ||
{ | ||
OperatorName: inject, | ||
Arguments: [ | ||
aBcDeFg | ||
] | ||
}, | ||
{ | ||
OperatorName: asString | ||
}, | ||
{ | ||
OperatorName: toUpper | ||
} | ||
] | ||
} |
13 changes: 13 additions & 0 deletions
13
...ation/EmptyProjectionValueProtectionSerializationTest.ToUpper_with_extension.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,13 @@ | ||
{ | ||
StepInstructions: [ | ||
{ | ||
OperatorName: inject, | ||
Arguments: [ | ||
aBcDeFg | ||
] | ||
}, | ||
{ | ||
OperatorName: toUpper | ||
} | ||
] | ||
} |
1 change: 1 addition & 0 deletions
1
test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.Length.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!application/vnd.gremlin-v2.0+json{"requestId":"12345678-9012-3456-7890-123456789012","op":"bytecode","processor":"traversal","args":{"gremlin":{"@type":"g:Bytecode","@value":{"step":[["inject","aBcDeFg"],["asString"],["length"]]}},"aliases":{"g":"g"}}} |
1 change: 1 addition & 0 deletions
1
.../Serialization/Graphson2BinaryMessageSerializationTest.Length_with_extension.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!application/vnd.gremlin-v2.0+json{"requestId":"12345678-9012-3456-7890-123456789012","op":"bytecode","processor":"traversal","args":{"gremlin":{"@type":"g:Bytecode","@value":{"step":[["inject","aBcDeFg"],["length"]]}},"aliases":{"g":"g"}}} |
1 change: 1 addition & 0 deletions
1
test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.ToLower.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!application/vnd.gremlin-v2.0+json{"requestId":"12345678-9012-3456-7890-123456789012","op":"bytecode","processor":"traversal","args":{"gremlin":{"@type":"g:Bytecode","@value":{"step":[["inject","aBcDeFg"],["asString"],["toLower"]]}},"aliases":{"g":"g"}}} |
1 change: 1 addition & 0 deletions
1
...Serialization/Graphson2BinaryMessageSerializationTest.ToLower_with_extension.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!application/vnd.gremlin-v2.0+json{"requestId":"12345678-9012-3456-7890-123456789012","op":"bytecode","processor":"traversal","args":{"gremlin":{"@type":"g:Bytecode","@value":{"step":[["inject","aBcDeFg"],["toLower"]]}},"aliases":{"g":"g"}}} |
1 change: 1 addition & 0 deletions
1
test/Core.Tests/Serialization/Graphson2BinaryMessageSerializationTest.ToUpper.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!application/vnd.gremlin-v2.0+json{"requestId":"12345678-9012-3456-7890-123456789012","op":"bytecode","processor":"traversal","args":{"gremlin":{"@type":"g:Bytecode","@value":{"step":[["inject","aBcDeFg"],["asString"],["toUpper"]]}},"aliases":{"g":"g"}}} |
1 change: 1 addition & 0 deletions
1
...Serialization/Graphson2BinaryMessageSerializationTest.ToUpper_with_extension.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!application/vnd.gremlin-v2.0+json{"requestId":"12345678-9012-3456-7890-123456789012","op":"bytecode","processor":"traversal","args":{"gremlin":{"@type":"g:Bytecode","@value":{"step":[["inject","aBcDeFg"],["toUpper"]]}},"aliases":{"g":"g"}}} |
1 change: 1 addition & 0 deletions
1
test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.Length.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!application/vnd.gremlin-v3.0+json{"requestId":"12345678-9012-3456-7890-123456789012","op":"bytecode","processor":"traversal","args":{"gremlin":{"@type":"g:Bytecode","@value":{"step":[["inject","aBcDeFg"],["asString"],["length"]]}},"aliases":{"g":"g"}}} |
1 change: 1 addition & 0 deletions
1
.../Serialization/Graphson3BinaryMessageSerializationTest.Length_with_extension.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!application/vnd.gremlin-v3.0+json{"requestId":"12345678-9012-3456-7890-123456789012","op":"bytecode","processor":"traversal","args":{"gremlin":{"@type":"g:Bytecode","@value":{"step":[["inject","aBcDeFg"],["length"]]}},"aliases":{"g":"g"}}} |
1 change: 1 addition & 0 deletions
1
test/Core.Tests/Serialization/Graphson3BinaryMessageSerializationTest.ToLower.verified.txt
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1 @@ | ||
!application/vnd.gremlin-v3.0+json{"requestId":"12345678-9012-3456-7890-123456789012","op":"bytecode","processor":"traversal","args":{"gremlin":{"@type":"g:Bytecode","@value":{"step":[["inject","aBcDeFg"],["asString"],["toLower"]]}},"aliases":{"g":"g"}}} |
Oops, something went wrong.