## FileFormatUtil::ExtensionToSaveFormat(const U16String\&) method


Converts a file name extension into a SaveFormat value.

```cpp
static SaveFormat Aspose::Cells::FileFormatUtil::ExtensionToSaveFormat(const U16String &extension)
```


| Parameter | Type | Description |
| --- | --- | --- |
| extension | const U16String\& | The file extension. Can be with or without a leading dot. Case-insensitive. |

## ReturnValue


## Remarks



If the extension cannot be recognized, returns [SaveFormat.Unknown](../../saveformat/).
## See Also

* Enum [SaveFormat](../../saveformat/)
* Class [Vector](../../vector/)
* Class [U16String](../../u16string/)
* Class [FileFormatUtil](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
## FileFormatUtil::ExtensionToSaveFormat(const char16_t*) method


Converts a file name extension into a SaveFormat value.

```cpp
static SaveFormat Aspose::Cells::FileFormatUtil::ExtensionToSaveFormat(const char16_t *extension)
```


| Parameter | Type | Description |
| --- | --- | --- |
| extension | const char16_t* | The file extension. Can be with or without a leading dot. Case-insensitive. |

## ReturnValue


## Remarks



If the extension cannot be recognized, returns [SaveFormat.Unknown](../../saveformat/).
## See Also

* Enum [SaveFormat](../../saveformat/)
* Class [Vector](../../vector/)
* Class [FileFormatUtil](../)
* Namespace [Aspose::Cells](../../)
* Library [Aspose.Cells for C++](../../../)
