Skip to content

Declare ext/intl constants in stubs - part 2 #9219

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

Merged
merged 1 commit into from
Aug 2, 2022
Merged
Show file tree
Hide file tree
Changes from all 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
85 changes: 0 additions & 85 deletions ext/intl/collator/collator.c

This file was deleted.

2 changes: 0 additions & 2 deletions ext/intl/collator/collator.h
Original file line number Diff line number Diff line change
Expand Up @@ -22,6 +22,4 @@
#define COLLATOR_SORT_STRING 1
#define COLLATOR_SORT_NUMERIC 2

void collator_register_constants( INIT_FUNC_ARGS );

#endif // COLLATOR_COLLATOR_H
142 changes: 142 additions & 0 deletions ext/intl/collator/collator.stub.php
Original file line number Diff line number Diff line change
Expand Up @@ -2,9 +2,151 @@

/** @generate-class-entries */

/**
* @var int
* @cvalue ULOC_ACTUAL_LOCALE
*/
const ULOC_ACTUAL_LOCALE = UNKNOWN;
/**
* @var int
* @cvalue ULOC_VALID_LOCALE
*/
const ULOC_VALID_LOCALE = UNKNOWN;

/** @not-serializable */
class Collator
{
/**
* @var int
* @cvalue UCOL_DEFAULT
*/
const DEFAULT_VALUE = UNKNOWN;

/**
* @var int
* @cvalue UCOL_PRIMARY
*/
const PRIMARY = UNKNOWN;
/**
* @var int
* @cvalue UCOL_SECONDARY
*/
const SECONDARY = UNKNOWN;
/**
* @var int
* @cvalue UCOL_TERTIARY
*/
const TERTIARY = UNKNOWN;
/**
* @var int
* @cvalue UCOL_DEFAULT_STRENGTH
*/
const DEFAULT_STRENGTH = UNKNOWN;
/**
* @var int
* @cvalue UCOL_QUATERNARY
*/
const QUATERNARY = UNKNOWN;
/**
* @var int
* @cvalue UCOL_IDENTICAL
*/
const IDENTICAL = UNKNOWN;

/**
* @var int
* @cvalue UCOL_OFF
*/
const OFF = UNKNOWN;
/**
* @var int
* @cvalue UCOL_ON
*/
const ON = UNKNOWN;

/**
* @var int
* @cvalue UCOL_SHIFTED
*/
const SHIFTED = UNKNOWN;
/**
* @var int
* @cvalue UCOL_NON_IGNORABLE
*/
const NON_IGNORABLE = UNKNOWN;

/**
* @var int
* @cvalue UCOL_LOWER_FIRST
*/
const LOWER_FIRST = UNKNOWN;
/**
* @var int
* @cvalue UCOL_UPPER_FIRST
*/
const UPPER_FIRST = UNKNOWN;

/* UColAttribute constants */

/**
* @var int
* @cvalue UCOL_FRENCH_COLLATION
*/
const FRENCH_COLLATION = UNKNOWN;
/**
* @var int
* @cvalue UCOL_ALTERNATE_HANDLING
*/
const ALTERNATE_HANDLING = UNKNOWN;
/**
* @var int
* @cvalue UCOL_CASE_FIRST
*/
const CASE_FIRST = UNKNOWN;
/**
* @var int
* @cvalue UCOL_CASE_LEVEL
*/
const CASE_LEVEL = UNKNOWN;
/**
* @var int
* @cvalue UCOL_NORMALIZATION_MODE
*/
const NORMALIZATION_MODE = UNKNOWN;
/**
* @var int
* @cvalue UCOL_STRENGTH
*/
const STRENGTH = UNKNOWN;
/**
* @var int
* @cvalue UCOL_HIRAGANA_QUATERNARY_MODE
*/
const HIRAGANA_QUATERNARY_MODE = UNKNOWN;
/**
* @var int
* @cvalue UCOL_NUMERIC_COLLATION
*/
const NUMERIC_COLLATION = UNKNOWN;

/* sort flags */

/**
* @var int
* @cvalue COLLATOR_SORT_REGULAR
*/
const SORT_REGULAR = UNKNOWN;
/**
* @var int
* @cvalue COLLATOR_SORT_STRING
*/
const SORT_STRING = UNKNOWN;
/**
* @var int
* @cvalue COLLATOR_SORT_NUMERIC
*/
const SORT_NUMERIC = UNKNOWN;

public function __construct(string $locale) {}

/**
Expand Down
Loading