Jellyfin.Extensions
Provides CopyTo extensions methods for .
Copies all the elements of the current collection to the specified list
starting at the specified destination array index. The index is specified as a 32-bit integer.
The current collection that is the source of the elements.
The list that is the destination of the elements copied from the current collection.
A 32-bit integer that represents the index in destination at which copying begins.
The type of the array.
Static extensions for the interface.
Gets a string from a string dictionary, checking all keys sequentially,
stopping at the first key that returns a result that's neither null nor blank.
The dictionary.
The first checked key.
The second checked key.
The third checked key.
The fourth checked key.
System.String.
Static extensions for the interface.
Determines whether the value is contained in the source collection.
An instance of the interface.
The value to look for in the collection.
The string comparison.
A value indicating whether the value is contained in the collection.
The source is null.
Gets an IEnumerable from a single item.
The item to return.
The type of item.
The IEnumerable{T}.
Gets an IEnumerable consisting of all flags of an enum.
The flags enum.
The type of item.
The IEnumerable{Enum}.
Provides helper functions for .
Creates, or truncates a file in the specified path.
The path and name of the file to create.
A custom StreamWriter which supports setting a IFormatProvider.
Initializes a new instance of the class.
The stream to write to.
The format provider to use.
Initializes a new instance of the class.
The complete file path to write to.
The format provider to use.
Guid specific extensions.
Determine whether the guid is default.
The guid.
Whether the guid is the default value.
Determine whether the guid is null or default.
The guid.
Whether the guid is null or the default valueF.
Converts a number to a boolean.
This is needed for HDHomerun.
Converts a string to a boolean.
This is needed for FFprobe.
Convert comma delimited string to collection of type.
Type to convert to.
Initializes a new instance of the class.
Json comma delimited collection converter factory.
This must be applied as an attribute, adding to the JsonConverter list causes stack overflow.
Legacy DateTime converter.
Milliseconds aren't output if zero by default.
Json unknown enum converter.
The type of enum.
Initializes a new instance of the class.
The base json converter.
Utilizes the JsonStringEnumConverter and sets a default value if not provided.
Convert delimited string to array of type.
Type to convert to.
Initializes a new instance of the class.
Gets the array delimiter.
Enum flag to json array converter.
The type of enum.
Json flag enum converter factory.
Converts a GUID object or value to/from JSON.
Converts a GUID object or value to/from JSON.
Converts a nullable struct or value to/from JSON.
Required - some clients send an empty string.
The struct type.
Json nullable struct converter factory.
Convert Pipe delimited string to array of type.
Type to convert to.
Initializes a new instance of the class.
Json Pipe delimited collection converter factory.
This must be applied as an attribute, adding to the JsonConverter list causes stack overflow.
Converter to allow the serializer to read strings.
Converts a Version object or value to/from JSON.
Required to send as a string instead of an object.
Helper class for having compatible JSON throughout the codebase.
Pascal case json profile media type.
Camel case json profile media type.
When changing these options, update
Jellyfin.Server/Extensions/ApiServiceCollectionExtensions.cs
-> AddJellyfinApi
-> AddJsonOptions.
Gets the default options.
The return value must not be modified.
If the defaults must be modified the author must use the copy constructor.
The default options.
Gets camelCase json options.
The return value must not be modified.
If the defaults must be modified the author must use the copy constructor.
The camelCase options.
Gets PascalCase json options.
The return value must not be modified.
If the defaults must be modified the author must use the copy constructor.
The PascalCase options.
Extensions for Utf8JsonReader and Utf8JsonWriter.
Determines if the reader contains an empty string.
The reader.
Whether the reader contains an empty string.
Determines if the reader contains a null value.
The reader.
Whether the reader contains null.
Static extensions for the interface.
Finds the index of the desired item.
The source list.
The value to fine.
The type of item to find.
Index if found, else -1.
Finds the index of the predicate.
The source list.
The value to find.
The type of item to find.
Index if found, else -1.
Get the first or default item from a list.
The source list.
The type of item.
The first item or default if list is empty.
Provides Shuffle extensions methods for .
Shuffles the items in a list.
The list that should get shuffled.
The type.
Shuffles the items in a list.
The list that should get shuffled.
The random number generator to use.
The type.
Extension class for splitting lines without unnecessary allocations.
Creates a new string split enumerator.
The string to split.
The separator to split on.
The enumerator struct.
Creates a new span split enumerator.
The span to split.
The separator to split on.
The enumerator struct.
Provides an enumerator for the substrings separated by the separator.
Initializes a new instance of the struct.
The span to split.
The separator to split on.
Gets a reference to the item at the current position of the enumerator.
Returns this.
this.
Advances the enumerator to the next item.
true if there is a next element; otherwise false.
Class BaseExtensions.
Reads all lines in the .
The to read from.
All lines in the stream.
Reads all lines in the .
The to read from.
The character encoding to use.
All lines in the stream.
Reads all lines in the .
The to read from.
All lines in the stream.
Reads all lines in the .
The to read from.
The token to monitor for cancellation requests.
All lines in the stream.
Extension methods for the class.
Concatenates and appends the members of a collection in single quotes using the specified delimiter.
The string builder.
The character delimiter.
The collection of strings to concatenate.
The updated string builder.
Provides extensions methods for .
Checks whether or not the specified string has diacritics in it.
Removes the diacritics character from the strings.
The string to act on.
The string without diacritics character.
Checks whether or not the specified string has diacritics in it.
The string to check.
True if the string has diacritics, false otherwise.
Counts the number of occurrences of [needle] in the string.
The haystack to search in.
The character to search for.
The number of occurrences of the [needle] character.
Returns the part on the left of the needle.
The string to seek.
The needle to find.
The part left of the .
Returns the part on the right of the needle.
The string to seek.
The needle to find.
The part right of the .
Returns a transliterated string which only contain ascii characters.
The string to act on.
The transliterated string.
Ensures all strings are non-null and trimmed of leading an trailing blanks.
The enumerable of strings to trim.
The enumeration of trimmed strings.
Truncates a string at the first null character ('\0').
The input string.
The substring up to (but not including) the first null character,
or the original string if no null character is present.
Pattern:
([\ud800-\udbff](?![\udc00-\udfff]))|((?<![\ud800-\udbff])[\udc00-\udfff])|(�)
Explanation:
○ Match with 3 alternative expressions, atomically.
○ 1st capture group.
○ Match a character in the set [\uD800-\uDBFF].
○ Zero-width negative lookahead.
○ Match a character in the set [\uDC00-\uDFFF].
○ 2nd capture group.
○ Zero-width negative lookbehind.
○ Match a character in the set [\uD800-\uDBFF] right-to-left.
○ Match a character in the set [\uDC00-\uDFFF].
○ 3rd capture group.
○ Match '�'.
Custom -derived type for the NonConformingUnicodeRegex method.
Cached, thread-safe singleton instance.
Initializes the instance.
Provides a factory for creating instances to be used by methods on .
Creates an instance of a used by methods on .
Provides the runner that contains the custom logic implementing the specified regular expression.
Scan the starting from base.runtextstart for the next match.
The text being scanned by the regular expression.
Search starting from base.runtextpos for the next location a match could possibly start.
The text being scanned by the regular expression.
true if a possible match was found; false if no more matches are possible.
Determine whether at base.runtextpos is a match for the regular expression.
The text being scanned by the regular expression.
true if the regular expression matches at the current position; otherwise, false.
Helper methods used by generated -derived implementations.
Default timeout value set in , or if none was set.
Whether is non-infinite.
Finds the next index of any character that matches a character in the set [\uD800-\uDFFF\uFFFD].