Aspose::Cells::CellsHelper::CreateSafeSheetName method

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.

static U16String Aspose::Cells::CellsHelper::CreateSafeSheetName(const U16String &nameProposal)
ParameterTypeDescription
nameProposalconst U16String&sheet name to be used

ReturnValue

See Also

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.

static U16String Aspose::Cells::CellsHelper::CreateSafeSheetName(const char16_t *nameProposal)
ParameterTypeDescription
nameProposalconst char16_t*sheet name to be used

ReturnValue

See Also

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.

static U16String Aspose::Cells::CellsHelper::CreateSafeSheetName(const U16String &nameProposal, char16_t replaceChar)
ParameterTypeDescription
nameProposalconst U16String&sheet name to be used
replaceCharchar16_tcharacter which will be used to replace invalid characters in given sheet name

ReturnValue

See Also

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.

static U16String Aspose::Cells::CellsHelper::CreateSafeSheetName(const char16_t *nameProposal, char16_t replaceChar)
ParameterTypeDescription
nameProposalconst char16_t*sheet name to be used
replaceCharchar16_tcharacter which will be used to replace invalid characters in given sheet name

ReturnValue

See Also