---
title: 预留接口
description: "本章接口为预留接口，后续有可能变更或废弃，不建议开发者使用，开发者无需关注。"
url: https://www.hiascend.com/document/detail/zh/canncommercial/latest/API/aolapi/atlasascendc_api_07_1107.html
sourcePath: /source/zh/canncommercial/900/API/aolapi/atlasascendc_api_07_1107.html
indexId: d2bd1a0407e48ec4d0f7e45a50255a5a4fd08480e452d9d21047931f988f408670
---
# 预留接口

本章接口为预留接口，后续有可能变更或废弃，不建议开发者使用，开发者无需关注。


**表1 接口列表**

| 接口名称 | 功能说明 |
| --- | --- |
| ToFormat(const std::string &formatStr) | 将字符串转换为Format。 |
| ToString(Format format) | 将Format转换为字符串。 |
| GetSubFormat(int32\_t format) | 获取给定format的sub format。 |
| GetSubFormat(Format format) | 获取给定format的sub format。 |
| HasSubFormat(int32\_t format) | 获取给定format的子format。 |
| GetC0Format(int32\_t format) | 获取给定format的C0 format。 |
| HasC0Format(int32\_t format) | 判断给定format是否包含C0 format。 |
| GetFormatFromSub(int32\_t primaryFormat, int32\_t subFormat) | 用给定的primary format和sub format生成format。 |
