## CellsHelper::CreateSafeSheetName(const U16String\&) method


Checks given sheet name and create a valid one when needed. If given sheet name conforms to the rules of excel sheet name, then return it. Otherwise string will be truncated if length exceeds the limit and invalid characters will be replaced with ' ', then return the rebuilt string value.

```cpp
static U16String Aspose::Cells::CellsHelper::CreateSafeSheetName(const U16String &nameProposal)
```


| Parameter | Type | Description |
| --- | --- | --- |
| nameProposal | const U16String\& | sheet name to be used |

## ReturnValue



## See Also

* Class [U16String](../../u16string/)
* Class [Vector](../../vector/)
* Class [CellsHelper](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## CellsHelper::CreateSafeSheetName(const char16_t*) method


Checks given sheet name and create a valid one when needed. If given sheet name conforms to the rules of excel sheet name, then return it. Otherwise string will be truncated if length exceeds the limit and invalid characters will be replaced with ' ', then return the rebuilt string value.

```cpp
static U16String Aspose::Cells::CellsHelper::CreateSafeSheetName(const char16_t *nameProposal)
```


| Parameter | Type | Description |
| --- | --- | --- |
| nameProposal | const char16_t* | sheet name to be used |

## ReturnValue



## See Also

* Class [U16String](../../u16string/)
* Class [Vector](../../vector/)
* Class [CellsHelper](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## CellsHelper::CreateSafeSheetName(const U16String\&, char16_t) method


Checks given sheet name and create a valid one when needed. If given sheet name conforms to the rules of excel sheet name, then return it. Otherwise string will be truncated if length exceeds the limit and invalid characters will be replaced with given character, then return the rebuilt string value.

```cpp
static U16String Aspose::Cells::CellsHelper::CreateSafeSheetName(const U16String &nameProposal, char16_t replaceChar)
```


| Parameter | Type | Description |
| --- | --- | --- |
| nameProposal | const U16String\& | sheet name to be used |
| replaceChar | char16_t | character which will be used to replace invalid characters in given sheet name |

## ReturnValue



## See Also

* Class [U16String](../../u16string/)
* Class [Vector](../../vector/)
* Class [CellsHelper](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## CellsHelper::CreateSafeSheetName(const char16_t*, char16_t) method


Checks given sheet name and create a valid one when needed. If given sheet name conforms to the rules of excel sheet name, then return it. Otherwise string will be truncated if length exceeds the limit and invalid characters will be replaced with given character, then return the rebuilt string value.

```cpp
static U16String Aspose::Cells::CellsHelper::CreateSafeSheetName(const char16_t *nameProposal, char16_t replaceChar)
```


| Parameter | Type | Description |
| --- | --- | --- |
| nameProposal | const char16_t* | sheet name to be used |
| replaceChar | char16_t | character which will be used to replace invalid characters in given sheet name |

## ReturnValue



## See Also

* Class [U16String](../../u16string/)
* Class [Vector](../../vector/)
* Class [CellsHelper](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
