CapyKit/Docs/api/CapyKit.Extensions.StringExtensions.yml
2026-07-01 23:03:53 -05:00

479 lines
16 KiB
YAML

### YamlMime:ManagedReference
items:
- uid: CapyKit.Extensions.StringExtensions
commentId: T:CapyKit.Extensions.StringExtensions
id: StringExtensions
parent: CapyKit.Extensions
children:
- CapyKit.Extensions.StringExtensions.IfNullOrEmpty(System.String,System.String)
- CapyKit.Extensions.StringExtensions.IfNullOrWhiteSpace(System.String,System.String)
langs:
- csharp
- vb
name: StringExtensions
nameWithType: StringExtensions
fullName: CapyKit.Extensions.StringExtensions
type: Class
source:
remote:
path: CapyKit/Extensions/StringExtensions.cs
branch: main
repo: https://git.jordanwages.com/wagesj45/CapyKit.git
id: StringExtensions
path: ../CapyKit/Extensions/StringExtensions.cs
startLine: 9
assemblies:
- CapyKit
namespace: CapyKit.Extensions
summary: Provides static extentions methods for providing additional functionality for <xref href="System.String" data-throw-if-not-resolved="false"></xref> types.
example: []
syntax:
content: public static class StringExtensions
content.vb: Public Module StringExtensions
inheritance:
- System.Object
inheritedMembers:
- System.Object.Equals(System.Object)
- System.Object.Equals(System.Object,System.Object)
- System.Object.GetHashCode
- System.Object.GetType
- System.Object.MemberwiseClone
- System.Object.ReferenceEquals(System.Object,System.Object)
- System.Object.ToString
- uid: CapyKit.Extensions.StringExtensions.IfNullOrEmpty(System.String,System.String)
commentId: M:CapyKit.Extensions.StringExtensions.IfNullOrEmpty(System.String,System.String)
id: IfNullOrEmpty(System.String,System.String)
isExtensionMethod: true
parent: CapyKit.Extensions.StringExtensions
langs:
- csharp
- vb
name: IfNullOrEmpty(string, string)
nameWithType: StringExtensions.IfNullOrEmpty(string, string)
fullName: CapyKit.Extensions.StringExtensions.IfNullOrEmpty(string, string)
type: Method
source:
remote:
path: CapyKit/Extensions/StringExtensions.cs
branch: main
repo: https://git.jordanwages.com/wagesj45/CapyKit.git
id: IfNullOrEmpty
path: ../CapyKit/Extensions/StringExtensions.cs
startLine: 26
assemblies:
- CapyKit
namespace: CapyKit.Extensions
summary: Replaces a null or empty string with a specified replacement string.
example: []
syntax:
content: public static string IfNullOrEmpty(this string value, string replacement)
parameters:
- id: value
type: System.String
description: The original string.
- id: replacement
type: System.String
description: The replacement string.
return:
type: System.String
description: The original string if not null or empty, otherwise the replacement string.
content.vb: Public Shared Function IfNullOrEmpty(value As String, replacement As String) As String
overload: CapyKit.Extensions.StringExtensions.IfNullOrEmpty*
seealso:
- linkId: System.String.IsNullOrEmpty(System.String)
commentId: M:System.String.IsNullOrEmpty(System.String)
nameWithType.vb: StringExtensions.IfNullOrEmpty(String, String)
fullName.vb: CapyKit.Extensions.StringExtensions.IfNullOrEmpty(String, String)
name.vb: IfNullOrEmpty(String, String)
- uid: CapyKit.Extensions.StringExtensions.IfNullOrWhiteSpace(System.String,System.String)
commentId: M:CapyKit.Extensions.StringExtensions.IfNullOrWhiteSpace(System.String,System.String)
id: IfNullOrWhiteSpace(System.String,System.String)
isExtensionMethod: true
parent: CapyKit.Extensions.StringExtensions
langs:
- csharp
- vb
name: IfNullOrWhiteSpace(string, string)
nameWithType: StringExtensions.IfNullOrWhiteSpace(string, string)
fullName: CapyKit.Extensions.StringExtensions.IfNullOrWhiteSpace(string, string)
type: Method
source:
remote:
path: CapyKit/Extensions/StringExtensions.cs
branch: main
repo: https://git.jordanwages.com/wagesj45/CapyKit.git
id: IfNullOrWhiteSpace
path: ../CapyKit/Extensions/StringExtensions.cs
startLine: 43
assemblies:
- CapyKit
namespace: CapyKit.Extensions
summary: Replaces a null or whitespace string with a specified replacement string.
example: []
syntax:
content: public static string IfNullOrWhiteSpace(this string value, string replacement)
parameters:
- id: value
type: System.String
description: The original string.
- id: replacement
type: System.String
description: The replacement string.
return:
type: System.String
description: The original string if not null or whitespace, otherwise the replacement string.
content.vb: Public Shared Function IfNullOrWhiteSpace(value As String, replacement As String) As String
overload: CapyKit.Extensions.StringExtensions.IfNullOrWhiteSpace*
seealso:
- linkId: System.String.IsNullOrWhiteSpace(System.String)
commentId: M:System.String.IsNullOrWhiteSpace(System.String)
nameWithType.vb: StringExtensions.IfNullOrWhiteSpace(String, String)
fullName.vb: CapyKit.Extensions.StringExtensions.IfNullOrWhiteSpace(String, String)
name.vb: IfNullOrWhiteSpace(String, String)
references:
- uid: System.String
commentId: T:System.String
parent: System
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.string
name: string
nameWithType: string
fullName: string
nameWithType.vb: String
fullName.vb: String
name.vb: String
- uid: CapyKit.Extensions
commentId: N:CapyKit.Extensions
href: CapyKit.html
name: CapyKit.Extensions
nameWithType: CapyKit.Extensions
fullName: CapyKit.Extensions
spec.csharp:
- uid: CapyKit
name: CapyKit
href: CapyKit.html
- name: .
- uid: CapyKit.Extensions
name: Extensions
href: CapyKit.Extensions.html
spec.vb:
- uid: CapyKit
name: CapyKit
href: CapyKit.html
- name: .
- uid: CapyKit.Extensions
name: Extensions
href: CapyKit.Extensions.html
- uid: System.Object
commentId: T:System.Object
parent: System
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
name: object
nameWithType: object
fullName: object
nameWithType.vb: Object
fullName.vb: Object
name.vb: Object
- uid: System.Object.Equals(System.Object)
commentId: M:System.Object.Equals(System.Object)
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
name: Equals(object)
nameWithType: object.Equals(object)
fullName: object.Equals(object)
nameWithType.vb: Object.Equals(Object)
fullName.vb: Object.Equals(Object)
name.vb: Equals(Object)
spec.csharp:
- uid: System.Object.Equals(System.Object)
name: Equals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
- name: (
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
spec.vb:
- uid: System.Object.Equals(System.Object)
name: Equals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object)
- name: (
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
- uid: System.Object.Equals(System.Object,System.Object)
commentId: M:System.Object.Equals(System.Object,System.Object)
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
name: Equals(object, object)
nameWithType: object.Equals(object, object)
fullName: object.Equals(object, object)
nameWithType.vb: Object.Equals(Object, Object)
fullName.vb: Object.Equals(Object, Object)
name.vb: Equals(Object, Object)
spec.csharp:
- uid: System.Object.Equals(System.Object,System.Object)
name: Equals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
- name: (
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
spec.vb:
- uid: System.Object.Equals(System.Object,System.Object)
name: Equals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.equals#system-object-equals(system-object-system-object)
- name: (
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
- uid: System.Object.GetHashCode
commentId: M:System.Object.GetHashCode
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
name: GetHashCode()
nameWithType: object.GetHashCode()
fullName: object.GetHashCode()
nameWithType.vb: Object.GetHashCode()
fullName.vb: Object.GetHashCode()
spec.csharp:
- uid: System.Object.GetHashCode
name: GetHashCode
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
- name: (
- name: )
spec.vb:
- uid: System.Object.GetHashCode
name: GetHashCode
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gethashcode
- name: (
- name: )
- uid: System.Object.GetType
commentId: M:System.Object.GetType
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
name: GetType()
nameWithType: object.GetType()
fullName: object.GetType()
nameWithType.vb: Object.GetType()
fullName.vb: Object.GetType()
spec.csharp:
- uid: System.Object.GetType
name: GetType
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
- name: (
- name: )
spec.vb:
- uid: System.Object.GetType
name: GetType
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.gettype
- name: (
- name: )
- uid: System.Object.MemberwiseClone
commentId: M:System.Object.MemberwiseClone
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
name: MemberwiseClone()
nameWithType: object.MemberwiseClone()
fullName: object.MemberwiseClone()
nameWithType.vb: Object.MemberwiseClone()
fullName.vb: Object.MemberwiseClone()
spec.csharp:
- uid: System.Object.MemberwiseClone
name: MemberwiseClone
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
- name: (
- name: )
spec.vb:
- uid: System.Object.MemberwiseClone
name: MemberwiseClone
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.memberwiseclone
- name: (
- name: )
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
commentId: M:System.Object.ReferenceEquals(System.Object,System.Object)
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
name: ReferenceEquals(object, object)
nameWithType: object.ReferenceEquals(object, object)
fullName: object.ReferenceEquals(object, object)
nameWithType.vb: Object.ReferenceEquals(Object, Object)
fullName.vb: Object.ReferenceEquals(Object, Object)
name.vb: ReferenceEquals(Object, Object)
spec.csharp:
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
name: ReferenceEquals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
- name: (
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
- uid: System.Object
name: object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
spec.vb:
- uid: System.Object.ReferenceEquals(System.Object,System.Object)
name: ReferenceEquals
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.referenceequals
- name: (
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: ','
- name: " "
- uid: System.Object
name: Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object
- name: )
- uid: System.Object.ToString
commentId: M:System.Object.ToString
parent: System.Object
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
name: ToString()
nameWithType: object.ToString()
fullName: object.ToString()
nameWithType.vb: Object.ToString()
fullName.vb: Object.ToString()
spec.csharp:
- uid: System.Object.ToString
name: ToString
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
- name: (
- name: )
spec.vb:
- uid: System.Object.ToString
name: ToString
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.object.tostring
- name: (
- name: )
- uid: System
commentId: N:System
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system
name: System
nameWithType: System
fullName: System
- uid: System.String.IsNullOrEmpty(System.String)
commentId: M:System.String.IsNullOrEmpty(System.String)
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.string.isnullorempty
name: IsNullOrEmpty(string)
nameWithType: string.IsNullOrEmpty(string)
fullName: string.IsNullOrEmpty(string)
nameWithType.vb: String.IsNullOrEmpty(String)
fullName.vb: String.IsNullOrEmpty(String)
name.vb: IsNullOrEmpty(String)
spec.csharp:
- uid: System.String.IsNullOrEmpty(System.String)
name: IsNullOrEmpty
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.string.isnullorempty
- name: (
- uid: System.String
name: string
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.string
- name: )
spec.vb:
- uid: System.String.IsNullOrEmpty(System.String)
name: IsNullOrEmpty
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.string.isnullorempty
- name: (
- uid: System.String
name: String
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.string
- name: )
- uid: CapyKit.Extensions.StringExtensions.IfNullOrEmpty*
commentId: Overload:CapyKit.Extensions.StringExtensions.IfNullOrEmpty
href: CapyKit.Extensions.StringExtensions.html#CapyKit_Extensions_StringExtensions_IfNullOrEmpty_System_String_System_String_
name: IfNullOrEmpty
nameWithType: StringExtensions.IfNullOrEmpty
fullName: CapyKit.Extensions.StringExtensions.IfNullOrEmpty
- uid: System.String.IsNullOrWhiteSpace(System.String)
commentId: M:System.String.IsNullOrWhiteSpace(System.String)
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.string.isnullorwhitespace
name: IsNullOrWhiteSpace(string)
nameWithType: string.IsNullOrWhiteSpace(string)
fullName: string.IsNullOrWhiteSpace(string)
nameWithType.vb: String.IsNullOrWhiteSpace(String)
fullName.vb: String.IsNullOrWhiteSpace(String)
name.vb: IsNullOrWhiteSpace(String)
spec.csharp:
- uid: System.String.IsNullOrWhiteSpace(System.String)
name: IsNullOrWhiteSpace
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.string.isnullorwhitespace
- name: (
- uid: System.String
name: string
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.string
- name: )
spec.vb:
- uid: System.String.IsNullOrWhiteSpace(System.String)
name: IsNullOrWhiteSpace
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.string.isnullorwhitespace
- name: (
- uid: System.String
name: String
isExternal: true
href: https://learn.microsoft.com/dotnet/api/system.string
- name: )
- uid: CapyKit.Extensions.StringExtensions.IfNullOrWhiteSpace*
commentId: Overload:CapyKit.Extensions.StringExtensions.IfNullOrWhiteSpace
href: CapyKit.Extensions.StringExtensions.html#CapyKit_Extensions_StringExtensions_IfNullOrWhiteSpace_System_String_System_String_
name: IfNullOrWhiteSpace
nameWithType: StringExtensions.IfNullOrWhiteSpace
fullName: CapyKit.Extensions.StringExtensions.IfNullOrWhiteSpace