-
Notifications
You must be signed in to change notification settings - Fork 7.9k
Add stubs for Intl BreakIterator #5207
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
Closed
Closed
Changes from all commits
Commits
File filter
Filter by extension
Conversations
Failed to load comments.
Loading
Jump to
Jump to file
Failed to load files.
Loading
Diff view
Diff view
There are no files selected for viewing
This file contains hidden or 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 hidden or 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,95 @@ | ||
<?php | ||
|
||
class IntlBreakIterator implements Traversable | ||
{ | ||
/** @return IntlBreakIterator|null */ | ||
public static function createCharacterInstance(?string $locale = null) {} | ||
|
||
/** @return IntlCodePointBreakIterator */ | ||
public static function createCodePointInstance() {} | ||
|
||
/** @return IntlBreakIterator|null */ | ||
public static function createLineInstance(?string $locale = null) {} | ||
|
||
/** @return IntlBreakIterator|null */ | ||
public static function createSentenceInstance(?string $locale = null) {} | ||
|
||
/** @return IntlBreakIterator|null */ | ||
public static function createTitleInstance(?string $locale = null) {} | ||
|
||
/** @return IntlBreakIterator|null */ | ||
public static function createWordInstance(?string $locale = null) {} | ||
|
||
private function __construct() {} | ||
|
||
/** @return int */ | ||
public function current() {} | ||
|
||
/** @return int */ | ||
public function first() {} | ||
|
||
/** @return int|false */ | ||
public function following(int $offset) {} | ||
|
||
/** @return int */ | ||
public function getErrorCode() {} | ||
|
||
/** @return string|false */ | ||
public function getErrorMessage() {} | ||
|
||
/** @return string */ | ||
public function getLocale(int $locale_type) {} | ||
|
||
/** @return IntlPartsIterator|false */ | ||
public function getPartsIterator(string $key_type = IntlPartsIterator::KEY_SEQUENTIAL) {} | ||
|
||
/** @return string|null */ | ||
public function getText() {} | ||
|
||
/** @return bool */ | ||
public function isBoundary(int $offset) {} | ||
|
||
/** @return int */ | ||
public function last() {} | ||
|
||
/** @return int|false */ | ||
public function next(?int $offset = null) {} | ||
|
||
/** @return int|false */ | ||
public function preceding(int $offset) {} | ||
|
||
/** @return int */ | ||
public function previous() {} | ||
|
||
/** @return bool|null */ | ||
public function setText(string $text) {} | ||
kocsismate marked this conversation as resolved.
Show resolved
Hide resolved
|
||
} | ||
|
||
class IntlRuleBasedBreakIterator extends IntlBreakIterator | ||
{ | ||
public function __construct(string $rules, bool $areCompiled = false) {} | ||
|
||
/** @return string|false */ | ||
public function getBinaryRules() {} | ||
|
||
/** @return string|false */ | ||
public function getRules() {} | ||
|
||
/** @return int */ | ||
public function getRuleStatus() {} | ||
|
||
/** @return array|false */ | ||
public function getRuleStatusVec() {} | ||
} | ||
|
||
class IntlPartsIterator extends IntlIterator | ||
{ | ||
/** @return IntlBreakIterator */ | ||
public function getBreakIterator() {} | ||
} | ||
|
||
class IntlCodePointBreakIterator extends IntlBreakIterator | ||
{ | ||
/** @return int */ | ||
public function getLastCodePoint() {} | ||
} |
This file contains hidden or 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,73 @@ | ||
/* This is a generated file, edit the .stub.php file instead. */ | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlBreakIterator_createCharacterInstance, 0, 0, 0) | ||
ZEND_ARG_TYPE_INFO(0, locale, IS_STRING, 1) | ||
ZEND_END_ARG_INFO() | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlBreakIterator_createCodePointInstance, 0, 0, 0) | ||
ZEND_END_ARG_INFO() | ||
|
||
#define arginfo_class_IntlBreakIterator_createLineInstance arginfo_class_IntlBreakIterator_createCharacterInstance | ||
|
||
#define arginfo_class_IntlBreakIterator_createSentenceInstance arginfo_class_IntlBreakIterator_createCharacterInstance | ||
|
||
#define arginfo_class_IntlBreakIterator_createTitleInstance arginfo_class_IntlBreakIterator_createCharacterInstance | ||
|
||
#define arginfo_class_IntlBreakIterator_createWordInstance arginfo_class_IntlBreakIterator_createCharacterInstance | ||
|
||
#define arginfo_class_IntlBreakIterator___construct arginfo_class_IntlBreakIterator_createCodePointInstance | ||
|
||
#define arginfo_class_IntlBreakIterator_current arginfo_class_IntlBreakIterator_createCodePointInstance | ||
|
||
#define arginfo_class_IntlBreakIterator_first arginfo_class_IntlBreakIterator_createCodePointInstance | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlBreakIterator_following, 0, 0, 1) | ||
ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 0) | ||
ZEND_END_ARG_INFO() | ||
|
||
#define arginfo_class_IntlBreakIterator_getErrorCode arginfo_class_IntlBreakIterator_createCodePointInstance | ||
|
||
#define arginfo_class_IntlBreakIterator_getErrorMessage arginfo_class_IntlBreakIterator_createCodePointInstance | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlBreakIterator_getLocale, 0, 0, 1) | ||
ZEND_ARG_TYPE_INFO(0, locale_type, IS_LONG, 0) | ||
ZEND_END_ARG_INFO() | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlBreakIterator_getPartsIterator, 0, 0, 0) | ||
ZEND_ARG_TYPE_INFO(0, key_type, IS_STRING, 0) | ||
ZEND_END_ARG_INFO() | ||
|
||
#define arginfo_class_IntlBreakIterator_getText arginfo_class_IntlBreakIterator_createCodePointInstance | ||
|
||
#define arginfo_class_IntlBreakIterator_isBoundary arginfo_class_IntlBreakIterator_following | ||
|
||
#define arginfo_class_IntlBreakIterator_last arginfo_class_IntlBreakIterator_createCodePointInstance | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlBreakIterator_next, 0, 0, 0) | ||
ZEND_ARG_TYPE_INFO(0, offset, IS_LONG, 1) | ||
ZEND_END_ARG_INFO() | ||
|
||
#define arginfo_class_IntlBreakIterator_preceding arginfo_class_IntlBreakIterator_following | ||
|
||
#define arginfo_class_IntlBreakIterator_previous arginfo_class_IntlBreakIterator_createCodePointInstance | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlBreakIterator_setText, 0, 0, 1) | ||
ZEND_ARG_TYPE_INFO(0, text, IS_STRING, 0) | ||
ZEND_END_ARG_INFO() | ||
|
||
ZEND_BEGIN_ARG_INFO_EX(arginfo_class_IntlRuleBasedBreakIterator___construct, 0, 0, 1) | ||
ZEND_ARG_TYPE_INFO(0, rules, IS_STRING, 0) | ||
ZEND_ARG_TYPE_INFO(0, areCompiled, _IS_BOOL, 0) | ||
ZEND_END_ARG_INFO() | ||
|
||
#define arginfo_class_IntlRuleBasedBreakIterator_getBinaryRules arginfo_class_IntlBreakIterator_createCodePointInstance | ||
|
||
#define arginfo_class_IntlRuleBasedBreakIterator_getRules arginfo_class_IntlBreakIterator_createCodePointInstance | ||
|
||
#define arginfo_class_IntlRuleBasedBreakIterator_getRuleStatus arginfo_class_IntlBreakIterator_createCodePointInstance | ||
|
||
#define arginfo_class_IntlRuleBasedBreakIterator_getRuleStatusVec arginfo_class_IntlBreakIterator_createCodePointInstance | ||
|
||
#define arginfo_class_IntlPartsIterator_getBreakIterator arginfo_class_IntlBreakIterator_createCodePointInstance | ||
|
||
#define arginfo_class_IntlCodePointBreakIterator_getLastCodePoint arginfo_class_IntlBreakIterator_createCodePointInstance |
This file contains hidden or 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 hidden or 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
Oops, something went wrong.
Add this suggestion to a batch that can be applied as a single commit.
This suggestion is invalid because no changes were made to the code.
Suggestions cannot be applied while the pull request is closed.
Suggestions cannot be applied while viewing a subset of changes.
Only one suggestion per line can be applied in a batch.
Add this suggestion to a batch that can be applied as a single commit.
Applying suggestions on deleted lines is not supported.
You must change the existing code in this line in order to create a valid suggestion.
Outdated suggestions cannot be applied.
This suggestion has been applied or marked resolved.
Suggestions cannot be applied from pending reviews.
Suggestions cannot be applied on multi-line comments.
Suggestions cannot be applied while the pull request is queued to merge.
Suggestion cannot be applied right now. Please check back later.
Uh oh!
There was an error while loading. Please reload this page.