Skip to content

Commit

Permalink
Rename JsCopyPropertyIdUtf8 to JsCopyPropertyId (#42)
Browse files Browse the repository at this point in the history
Rename Js(Copy|Create)PropertyIdUtf8 to Js(Copy|Create)PropertyId
  • Loading branch information
xiaoyinl authored and dilijev committed Aug 22, 2017
1 parent a36ac79 commit 188d6b2
Show file tree
Hide file tree
Showing 5 changed files with 7 additions and 7 deletions.
4 changes: 2 additions & 2 deletions JavaScript-Runtime-(JSRT)-Reference.md
Original file line number Diff line number Diff line change
Expand Up @@ -48,7 +48,7 @@ References of JSRT typedefs, constants, enumerations and APIs.
* [[JsCopyString]]
* [[JsCopyStringOneByte]]
* [[JsCopyStringUtf16]]
* [[JsCopyPropertyIdUtf8]]
* [[JsCopyPropertyId]]
* [[JsCreateArray]]
* [[JsCreateArrayBuffer]]
* [[JsCreateContext]]
Expand All @@ -60,7 +60,7 @@ References of JSRT typedefs, constants, enumerations and APIs.
* [[JsCreateNamedFunction]]
* [[JsCreateObject]]
* [[JsCreatePromise]]
* [[JsCreatePropertyIdUtf8]]
* [[JsCreatePropertyId]]
* [[JsCreateRangeError]]
* [[JsCreateReferenceError]]
* [[JsCreateRuntime]]
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,9 @@ Copies the name associated with the property ID into a buffer.
### Syntax
```
CHAKRA_API
JsCopyPropertyIdUtf8(
JsCopyPropertyId(
_In_ JsPropertyIdRef propertyId,
_Out_ uint8_t* buffer,
_Out_ char* buffer,
_In_ size_t bufferSize,
_Out_ size_t* length);
```
Expand Down
Original file line number Diff line number Diff line change
Expand Up @@ -2,7 +2,7 @@ Creates the property ID associated with the name.
### Syntax
```
CHAKRA_API
JsCreatePropertyIdUtf8(
JsCreatePropertyId(
_In_z_ const char *name,
_In_ size_t length,
_Out_ JsPropertyIdRef *propertyId);
Expand Down
2 changes: 1 addition & 1 deletion reference/JsGetPropertyIdFromName.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,6 +14,6 @@ STDAPI_(JsErrorCode)
The code **JsNoError** if the operation succeeded, a failure code otherwise.

### Remarks
This API is Windows-only (see [[JsCreatePropertyIdUtf8]] for cross-platform equivalent).
This API is Windows-only (see [[JsCreatePropertyId]] for cross-platform equivalent).
Property IDs are specific to a context and cannot be used across contexts.
Requires an active script context.
2 changes: 1 addition & 1 deletion reference/JsGetPropertyNameFromId.md
Original file line number Diff line number Diff line change
Expand Up @@ -14,7 +14,7 @@ STDAPI_(JsErrorCode)
The code **JsNoError** if the operation succeeded, a failure code otherwise.

### Remarks
This API is Windows-only (see [[JsCopyPropertyIdUtf8]] for cross-platform equivalent).
This API is Windows-only (see [[JsCopyPropertyId]] for cross-platform equivalent).
Requires an active script context.
The returned buffer is valid as long as the runtime is alive and cannot be used
once the runtime has been disposed.

0 comments on commit 188d6b2

Please sign in to comment.