> ## Documentation Index
> Fetch the complete documentation index at: https://udcore.unrealdirective.com/llms.txt
> Use this file to discover all available pages before exploring further.

# String Functions

### ContainsLetters

Detects if the provided string contains any letters.

<Tabs>
  <Tab title="Blueprint">
    <Frame type="glass">
      <img src="https://mintcdn.com/unrealdirective/rXPzDrZHlafDpvFa/images/blueprints/blueprint-containsletters.jpg?fit=max&auto=format&n=rXPzDrZHlafDpvFa&q=85&s=9e0cf73c6e5a5c3d718d044834b658a9" width="850" height="360" data-path="images/blueprints/blueprint-containsletters.jpg" />
    </Frame>
  </Tab>

  <Tab title="C++">
    ```cpp theme={null}
    FString StringToCheck = "Example123"
    bool bHasLetters = UUDCoreFunctionLibrary::ContainsLetters(StringToCheck);
    ```
  </Tab>
</Tabs>

**Inputs**

<ParamField path="String" type="FString" required>
  The string to check.
</ParamField>

**Outputs**

<ParamField path="ReturnValue" type="bool">
  True if the string contains letters.
</ParamField>

### ContainsNumbers

Detects if the provided string contains any numbers.

<Tabs>
  <Tab title="Blueprint">
    <Frame type="glass">
      <img src="https://mintcdn.com/unrealdirective/rXPzDrZHlafDpvFa/images/blueprints/blueprint-containsnumber.jpg?fit=max&auto=format&n=rXPzDrZHlafDpvFa&q=85&s=3c6c566261961ab72461183af2da3e28" width="850" height="360" data-path="images/blueprints/blueprint-containsnumber.jpg" />
    </Frame>
  </Tab>

  <Tab title="C++">
    ```cpp theme={null}
    FString StringToCheck = "Example123"
    bool bHasNumbers = UUDCoreFunctionLibrary::ContainsNumbers(StringToCheck);
    ```
  </Tab>
</Tabs>

**Inputs**

<ParamField path="String" type="FString" required>
  The string to check.
</ParamField>

**Outputs**

<ParamField path="ReturnValue" type="bool">
  True if the string contains numbers.
</ParamField>

### ContainsSpaces

Detects if the provided string contains any spaces.

<Tabs>
  <Tab title="Blueprint">
    <Frame type="glass">
      <img src="https://mintcdn.com/unrealdirective/rXPzDrZHlafDpvFa/images/blueprints/blueprint-containsspaces.jpg?fit=max&auto=format&n=rXPzDrZHlafDpvFa&q=85&s=e1c1085379ecad5256559903998e9329" width="850" height="360" data-path="images/blueprints/blueprint-containsspaces.jpg" />
    </Frame>
  </Tab>

  <Tab title="C++">
    ```cpp theme={null}
    FString StringToCheck = "Example 123"
    bool bHasSpaces = UUDCoreFunctionLibrary::ContainsSpaces(StringToCheck);
    ```
  </Tab>
</Tabs>

**Inputs**

<ParamField path="String" type="FString" required>
  The string to check.
</ParamField>

**Outputs**

<ParamField path="ReturnValue" type="bool">
  True if the string contains spaces.
</ParamField>

### ContainsSpecialCharacters

Detects if the provided string contains any special characters.

<Tabs>
  <Tab title="Blueprint">
    <Frame type="glass">
      <img src="https://mintcdn.com/unrealdirective/rXPzDrZHlafDpvFa/images/blueprints/blueprint-containsspecialcharacters.jpg?fit=max&auto=format&n=rXPzDrZHlafDpvFa&q=85&s=173c8f800a9688e5ecef0ca82ad7d284" width="850" height="360" data-path="images/blueprints/blueprint-containsspecialcharacters.jpg" />
    </Frame>
  </Tab>

  <Tab title="C++">
    ```cpp theme={null}
    FString StringToCheck = "Example!@#"
    bool bHasSpecialCharacters = UUDCoreFunctionLibrary::ContainsSpecialCharacters(StringToCheck);
    ```
  </Tab>
</Tabs>

**Inputs**

<ParamField path="String" type="FString" required>
  The string to check.
</ParamField>

**Outputs**

<ParamField path="ReturnValue" type="bool">
  True if the string contains special characters.
</ParamField>

### FilterCharacters

Filters out character types from the string.

<Tabs>
  <Tab title="Blueprint">
    <Frame type="glass">
      <img src="https://mintcdn.com/unrealdirective/rXPzDrZHlafDpvFa/images/blueprints/blueprint-filtercharacters.jpg?fit=max&auto=format&n=rXPzDrZHlafDpvFa&q=85&s=1f42e968c709c5ac394ebe27947d0511" width="850" height="360" data-path="images/blueprints/blueprint-filtercharacters.jpg" />
    </Frame>
  </Tab>

  <Tab title="C++">
    ```cpp theme={null}
    FString StringToCheck = "Example 123 !@#"
    bool bFilterOutLetters = false;
    bool bFilterOutNumbers = false;
    bool bFilterOutSpecialCharacters = true;
    bool bFilterOutSpaces = true;

    FString FilteredString = UUDCoreFunctionLibrary::FilterCharacters(
        StringToCheck,
        bFilterOutLetters,
        bFilterOutNumbers,
        bFilterOutSpecialCharacters,
        bFilterOutSpaces);
    // Result: FilteredString = "Example123"
    ```
  </Tab>
</Tabs>

**Inputs**

<ParamField path="String" type="FString" required>
  The string to filter.
</ParamField>

<ParamField path="bLetters" type="bool">
  If true, filter out letters.
</ParamField>

<ParamField path="bNumbers" type="bool">
  If true, filter out numbers.
</ParamField>

<ParamField path="bSpecialCharacters" type="bool">
  If true, filter out special characters.
</ParamField>

<ParamField path="bSpaces" type="bool">
  If true, filter out spaces.
</ParamField>

**Outputs**

<ParamField path="ReturnValue" type="FString">
  The filtered string.
</ParamField>

### GetSortedStringArray

Returns a sorted copy of the provided string array.

<Tabs>
  <Tab title="Blueprint">
    <Frame type="glass">
      <img src="https://mintcdn.com/unrealdirective/rXPzDrZHlafDpvFa/images/blueprints/blueprint-sortstringarray.jpg?fit=max&auto=format&n=rXPzDrZHlafDpvFa&q=85&s=6f48b591ce673201759d187aaa0dcfba" width="850" height="360" data-path="images/blueprints/blueprint-sortstringarray.jpg" />
    </Frame>
  </Tab>

  <Tab title="C++">
    ```cpp theme={null}
    TArray<FString> SortedArray = UUDCoreStringFunctionLibrary::GetSortedStringArray(OriginalArray);
    ```
  </Tab>
</Tabs>

**Inputs**

<ParamField path="StringArray" type="TArray<FString>" required>
  The string array to sort.
</ParamField>

**Outputs**

<ParamField path="SortedArray" type="TArray<FString>">
  A sorted copy of the provided string array.
</ParamField>
