## String::FromAscii(const char *) method


Creates [String](../) from ASCII string.

```cpp
static String System::String::FromAscii(const char *asciiStr)
```


| Parameter | Type | Description |
| --- | --- | --- |
| asciiStr | const char * | Pointer to null-terminated string encoded using ASCII codepage. |

### ReturnValue

[String](../) object representing passed string.

## See Also

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## String::FromAscii(const char *, int) method


Creates [String](../) from ASCII string.

```cpp
static String System::String::FromAscii(const char *asciiStr, int len)
```


| Parameter | Type | Description |
| --- | --- | --- |
| asciiStr | const char * | Pointer to string encoded using ASCII codepage. |
| len | int | Number of characters to handle. |

### ReturnValue

[String](../) object representing passed string.

## See Also

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
## String::FromAscii(const std::string\&) method


Creates [String](../) from ASCII string.

```cpp
static String System::String::FromAscii(const std::string &asciiStr)
```


| Parameter | Type | Description |
| --- | --- | --- |
| asciiStr | const std::string\& | ASCII-encoded string. |

### ReturnValue

[String](../) object representing passed string.

## See Also

* Class [String](../)
* Class [String](../)
* Namespace [System](../../)
* Library [Aspose.PDF for C++](../../../)
