## String::FastToAscii method


Tries to convert a [String](../) to an ASCII string.

```cpp
int System::String::FastToAscii(char buffer[], int buffer_size) const
```


| Parameter | Type | Description |
| --- | --- | --- |
| buffer | char | A buffer to store the resulting string. |
| buffer_size | int | [Buffer](../../buffer/)'s size. |

### ReturnValue

The resulting string length or -1 if a [String](../) is not an ASCII string.

## See Also

* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.Font for C++](../../../)
