-
Notifications
You must be signed in to change notification settings - Fork 590
Commit
This commit does not belong to any branch on this repository, and may belong to a fork outside of the repository.
Add @Utf16String annotation to map java.lang.String to `unsigned shor…
…t*` (array of UTF-16 code units)
- Loading branch information
Showing
4 changed files
with
155 additions
and
28 deletions.
There are no files selected for viewing
16 changes: 16 additions & 0 deletions
16
src/main/java/org/bytedeco/javacpp/annotation/Utf16String.java
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
Original file line number | Diff line number | Diff line change |
---|---|---|
@@ -0,0 +1,16 @@ | ||
package org.bytedeco.javacpp.annotation; | ||
|
||
import org.bytedeco.javacpp.tools.Generator; | ||
|
||
import java.lang.annotation.*; | ||
|
||
/** | ||
* Used to map {@code java.lang.String} to array of UTF-16 code units | ||
* ({@code unsigned short*}) instead of UTF-8 encoded byte array ({@code const char*}) | ||
* | ||
* @see Generator | ||
*/ | ||
|
||
@Documented @Retention(RetentionPolicy.RUNTIME) | ||
@Target({ElementType.METHOD, ElementType.PARAMETER}) | ||
public @interface Utf16String { } |
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters
This file contains bidirectional Unicode text that may be interpreted or compiled differently than what appears below. To review, open the file in an editor that reveals hidden Unicode characters.
Learn more about bidirectional Unicode characters