Skip to content
New issue

Have a question about this project? Sign up for a free GitHub account to open an issue and contact its maintainers and the community.

By clicking “Sign up for GitHub”, you agree to our terms of service and privacy statement. We’ll occasionally send you account related emails.

Already on GitHub? Sign in to your account

chore: rename km_kbp_ to km_core_ #9724

Merged
merged 6 commits into from
Oct 10, 2023
Merged
Show file tree
Hide file tree
Changes from 5 commits
Commits
File filter

Filter by extension

Filter by extension

Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
6 changes: 3 additions & 3 deletions HISTORY.md
Original file line number Diff line number Diff line change
Expand Up @@ -926,7 +926,7 @@
* chore: git tag with release@semver (#8035)
* fix(linux): Properly set context after changing IP (#8026)
* chore(linux): use faster zero-length string check (#8037)
* chore(linux): log failures to `km_kbp_context_clear(context)` (#8036)
* chore(linux): log failures to `km_core_context_clear(context)` (#8036)
mcdurdin marked this conversation as resolved.
Show resolved Hide resolved
* chore(linux): Update recommended extension (#8038)

## 17.0.30 alpha 2023-01-17
Expand Down Expand Up @@ -1600,14 +1600,14 @@
## 16.0.60 alpha 2022-09-10

* fix(web): enhanced timer for prediction algorithm (#7037)
* chore(core): fixup km_kbp_event docs (#7253)
* chore(core): fixup km_core_event docs (#7253)
* fix(windows) Update unit tests for tsf bkspace (#7254)
* fix(android): Standardize language ID in language picker menu (#7239)

## 16.0.59 alpha 2022-09-09

* chore: use keyman.com instead of keyman-staging.com (#7233)
* feat(core): add `km_kbp_event` API endpoint (#7223)
* feat(core): add `km_core_event` API endpoint (#7223)
* fix(windows): Delete both code units when deleting surrogate pairs in TSF-aware apps (#7243)

## 16.0.58 alpha 2022-09-08
Expand Down
12 changes: 6 additions & 6 deletions common/include/km_types.h
Original file line number Diff line number Diff line change
Expand Up @@ -28,14 +28,14 @@ typedef uint8_t KMX_BYTE;
typedef uint16_t KMX_WORD;

#if defined(__cplusplus)
typedef char16_t km_kbp_cp;
typedef char32_t km_kbp_usv;
typedef char16_t km_core_cp;
typedef char32_t km_core_usv;
#else
typedef uint16_t km_kbp_cp; // code point
typedef uint32_t km_kbp_usv; // Unicode Scalar Value
typedef uint16_t km_core_cp; // code point
typedef uint32_t km_core_usv; // Unicode Scalar Value
#endif

typedef km_kbp_cp KMX_WCHAR; // wc, 16-bit UNICODE character
typedef km_core_cp KMX_WCHAR; // wc, 16-bit UNICODE character
typedef KMX_WCHAR* PKMX_WCHAR;

typedef char KMX_CHAR;
Expand All @@ -60,7 +60,7 @@ typedef KMX_DWORD* PKMX_DWORD;

#ifdef USE_CHAR16_T
#define lpuch(x) u ## x
typedef km_kbp_cp KMX_UCHAR;
typedef km_core_cp KMX_UCHAR;
#else
#define lpuch(x) L ## x
typedef wchar_t KMX_UCHAR;
Expand Down
2 changes: 1 addition & 1 deletion common/include/test_assert.h
Original file line number Diff line number Diff line change
Expand Up @@ -30,7 +30,7 @@
#endif
#define try_status(expr) { \
auto __s = (expr); \
if (__s != KM_KBP_STATUS_OK) { \
if (__s != KM_CORE_STATUS_OK) { \
_assert_failed(__s, u ## #expr); \
} \
}
Expand Down
2 changes: 1 addition & 1 deletion core/doc/markdown_files/index.md
Original file line number Diff line number Diff line change
Expand Up @@ -58,4 +58,4 @@ Caps Lock.

### Namespace

All calls, types and enums are prefixed with the namespace identifier `km_kbp_`
All calls, types and enums are prefixed with the namespace identifier `km_core_`
Loading