duckdb 1.1.2-dev2.0 → 1.1.2-dev6.0
This diff represents the content of publicly available package versions that have been released to one of the supported registries. The information contained in this diff is provided for informational purposes only and reflects changes between package versions as they appear in their respective public registries.
- package/binding.gyp +4 -2
- package/package.json +1 -1
- package/src/duckdb/extension/icu/third_party/icu/common/putil.cpp +0 -5
- package/src/duckdb/extension/icu/third_party/icu/common/rbbiscan.cpp +1 -1
- package/src/duckdb/extension/icu/third_party/icu/common/rbbitblb.cpp +1 -1
- package/src/duckdb/extension/icu/third_party/icu/common/ucurr.cpp +1 -1
- package/src/duckdb/extension/icu/third_party/icu/common/uresbund.cpp +1 -1
- package/src/duckdb/extension/icu/third_party/icu/common/uresimp.h +31 -31
- package/src/duckdb/extension/icu/third_party/icu/common/ustring.cpp +1 -1
- package/src/duckdb/extension/icu/third_party/icu/common/uvector.cpp +1 -1
- package/src/duckdb/extension/icu/third_party/icu/i18n/coleitr.cpp +12 -12
- package/src/duckdb/extension/icu/third_party/icu/i18n/format.cpp +1 -1
- package/src/duckdb/extension/icu/third_party/icu/i18n/listformatter.cpp +4 -4
- package/src/duckdb/extension/icu/third_party/icu/i18n/number_decimalquantity.h +1 -1
- package/src/duckdb/extension/icu/third_party/icu/i18n/tzgnames.cpp +1 -1
- package/src/duckdb/extension/icu/third_party/icu/i18n/unicode/coleitr.h +28 -28
- package/src/duckdb/extension/icu/third_party/icu/i18n/unicode/format.h +7 -7
- package/src/duckdb/extension/icu/third_party/icu/i18n/unicode/ucol.h +1 -1
- package/src/duckdb/extension/icu/third_party/icu/i18n/unicode/ucoleitr.h +41 -41
- package/src/duckdb/extension/icu/third_party/icu/i18n/unicode/umsg.h +41 -41
- package/src/duckdb/extension/icu/third_party/icu/i18n/usrchimp.h +3 -3
- package/src/duckdb/extension/json/include/json_common.hpp +1 -1
- package/src/duckdb/extension/json/json_functions/json_structure.cpp +13 -7
- package/src/duckdb/extension/parquet/column_writer.cpp +2 -1
- package/src/duckdb/extension/parquet/geo_parquet.cpp +24 -9
- package/src/duckdb/extension/parquet/include/geo_parquet.hpp +3 -1
- package/src/duckdb/extension/parquet/include/parquet_reader.hpp +1 -0
- package/src/duckdb/extension/parquet/include/parquet_rle_bp_decoder.hpp +1 -1
- package/src/duckdb/extension/parquet/include/templated_column_reader.hpp +0 -4
- package/src/duckdb/extension/parquet/parquet_extension.cpp +20 -6
- package/src/duckdb/extension/parquet/parquet_reader.cpp +1 -2
- package/src/duckdb/extension/parquet/parquet_writer.cpp +1 -1
- package/src/duckdb/extension/parquet/serialize_parquet.cpp +0 -2
- package/src/duckdb/src/catalog/catalog_entry/duck_schema_entry.cpp +8 -1
- package/src/duckdb/src/catalog/default/default_functions.cpp +5 -5
- package/src/duckdb/src/common/allocator.cpp +3 -2
- package/src/duckdb/src/common/arrow/arrow_appender.cpp +1 -0
- package/src/duckdb/src/common/arrow/arrow_converter.cpp +11 -0
- package/src/duckdb/src/common/arrow/schema_metadata.cpp +6 -4
- package/src/duckdb/src/common/enum_util.cpp +33 -0
- package/src/duckdb/src/common/exception.cpp +3 -0
- package/src/duckdb/src/common/extra_type_info.cpp +1 -44
- package/src/duckdb/src/common/field_writer.cpp +97 -0
- package/src/duckdb/src/common/render_tree.cpp +7 -5
- package/src/duckdb/src/common/row_operations/row_match.cpp +359 -0
- package/src/duckdb/src/common/serializer/buffered_deserializer.cpp +27 -0
- package/src/duckdb/src/common/serializer/buffered_serializer.cpp +36 -0
- package/src/duckdb/src/common/serializer/format_serializer.cpp +15 -0
- package/src/duckdb/src/common/serializer.cpp +24 -0
- package/src/duckdb/src/common/sort/comparators.cpp +2 -2
- package/src/duckdb/src/common/types/bit.cpp +57 -34
- package/src/duckdb/src/common/types/data_chunk.cpp +32 -29
- package/src/duckdb/src/common/types/vector_cache.cpp +12 -6
- package/src/duckdb/src/common/vector_operations/comparison_operators.cpp +14 -0
- package/src/duckdb/src/core_functions/aggregate/distributive/bitstring_agg.cpp +20 -1
- package/src/duckdb/src/core_functions/aggregate/distributive/minmax.cpp +2 -2
- package/src/duckdb/src/core_functions/aggregate/holistic/approx_top_k.cpp +32 -7
- package/src/duckdb/src/core_functions/function_list.cpp +1 -2
- package/src/duckdb/src/core_functions/scalar/bit/bitstring.cpp +23 -5
- package/src/duckdb/src/core_functions/scalar/date/date_diff.cpp +12 -6
- package/src/duckdb/src/core_functions/scalar/date/date_part.cpp +1 -1
- package/src/duckdb/src/execution/expression_executor/execute_between.cpp +4 -3
- package/src/duckdb/src/execution/expression_executor/execute_case.cpp +4 -3
- package/src/duckdb/src/execution/expression_executor/execute_cast.cpp +2 -1
- package/src/duckdb/src/execution/expression_executor/execute_comparison.cpp +3 -2
- package/src/duckdb/src/execution/expression_executor/execute_conjunction.cpp +2 -1
- package/src/duckdb/src/execution/expression_executor/execute_function.cpp +2 -1
- package/src/duckdb/src/execution/expression_executor/execute_operator.cpp +3 -2
- package/src/duckdb/src/execution/expression_executor/execute_reference.cpp +1 -1
- package/src/duckdb/src/execution/expression_executor.cpp +9 -3
- package/src/duckdb/src/execution/expression_executor_state.cpp +11 -9
- package/src/duckdb/src/execution/index/art/fixed_size_allocator.cpp +238 -0
- package/src/duckdb/src/execution/index/art/plan_art.cpp +94 -0
- package/src/duckdb/src/execution/index/index_type_set.cpp +4 -1
- package/src/duckdb/src/execution/join_hashtable.cpp +7 -8
- package/src/duckdb/src/execution/operator/aggregate/physical_hash_aggregate.cpp +6 -4
- package/src/duckdb/src/execution/operator/csv_scanner/buffer_manager/csv_buffer_manager.cpp +4 -4
- package/src/duckdb/src/execution/operator/csv_scanner/scanner/base_scanner.cpp +1 -1
- package/src/duckdb/src/execution/operator/csv_scanner/scanner/csv_schema.cpp +44 -5
- package/src/duckdb/src/execution/operator/csv_scanner/scanner/string_value_scanner.cpp +28 -24
- package/src/duckdb/src/execution/operator/csv_scanner/sniffer/csv_sniffer.cpp +25 -26
- package/src/duckdb/src/execution/operator/csv_scanner/sniffer/dialect_detection.cpp +5 -3
- package/src/duckdb/src/execution/operator/csv_scanner/sniffer/header_detection.cpp +4 -4
- package/src/duckdb/src/execution/operator/csv_scanner/sniffer/type_detection.cpp +2 -2
- package/src/duckdb/src/execution/operator/csv_scanner/sniffer/type_refinement.cpp +1 -1
- package/src/duckdb/src/execution/operator/csv_scanner/sniffer/type_replacement.cpp +1 -1
- package/src/duckdb/src/execution/operator/csv_scanner/state_machine/csv_state_machine.cpp +1 -1
- package/src/duckdb/src/execution/operator/csv_scanner/state_machine/csv_state_machine_cache.cpp +2 -2
- package/src/duckdb/src/execution/operator/csv_scanner/table_function/csv_file_scanner.cpp +1 -1
- package/src/duckdb/src/execution/operator/csv_scanner/table_function/global_csv_state.cpp +1 -1
- package/src/duckdb/src/execution/operator/csv_scanner/util/csv_reader_options.cpp +73 -27
- package/src/duckdb/src/execution/operator/helper/physical_buffered_collector.cpp +1 -1
- package/src/duckdb/src/execution/operator/persistent/base_csv_reader.cpp +695 -0
- package/src/duckdb/src/execution/operator/persistent/buffered_csv_reader.cpp +1487 -0
- package/src/duckdb/src/execution/operator/persistent/csv_buffer.cpp +72 -0
- package/src/duckdb/src/execution/operator/persistent/csv_file_handle.cpp +158 -0
- package/src/duckdb/src/execution/operator/persistent/csv_reader_options.cpp +280 -0
- package/src/duckdb/src/execution/operator/persistent/parallel_csv_reader.cpp +666 -0
- package/src/duckdb/src/execution/operator/persistent/physical_export.cpp +14 -4
- package/src/duckdb/src/execution/operator/schema/physical_create_index.cpp +207 -0
- package/src/duckdb/src/execution/partitionable_hashtable.cpp +207 -0
- package/src/duckdb/src/execution/perfect_aggregate_hashtable.cpp +6 -1
- package/src/duckdb/src/execution/physical_plan/plan_comparison_join.cpp +0 -4
- package/src/duckdb/src/execution/physical_plan/plan_create_index.cpp +14 -87
- package/src/duckdb/src/execution/physical_plan/plan_export.cpp +1 -1
- package/src/duckdb/src/execution/physical_plan/plan_get.cpp +1 -1
- package/src/duckdb/src/execution/reservoir_sample.cpp +1 -1
- package/src/duckdb/src/execution/window_executor.cpp +3 -3
- package/src/duckdb/src/function/pragma/pragma_queries.cpp +1 -1
- package/src/duckdb/src/function/scalar/strftime_format.cpp +1 -2
- package/src/duckdb/src/function/scalar/string/concat.cpp +118 -151
- package/src/duckdb/src/function/table/arrow.cpp +13 -0
- package/src/duckdb/src/function/table/arrow_conversion.cpp +12 -7
- package/src/duckdb/src/function/table/copy_csv.cpp +1 -1
- package/src/duckdb/src/function/table/read_csv.cpp +2 -30
- package/src/duckdb/src/function/table/sniff_csv.cpp +2 -1
- package/src/duckdb/src/function/table/system/duckdb_secrets.cpp +15 -7
- package/src/duckdb/src/function/table/version/pragma_version.cpp +3 -3
- package/src/duckdb/src/include/duckdb/catalog/catalog_entry_retriever.hpp +1 -1
- package/src/duckdb/src/include/duckdb/common/atomic.hpp +13 -1
- package/src/duckdb/src/include/duckdb/common/bitpacking.hpp +3 -4
- package/src/duckdb/src/include/duckdb/common/enum_util.hpp +8 -0
- package/src/duckdb/src/include/duckdb/common/enums/metric_type.hpp +2 -0
- package/src/duckdb/src/include/duckdb/common/exception.hpp +10 -0
- package/src/duckdb/src/include/duckdb/common/extra_type_info/enum_type_info.hpp +53 -0
- package/src/duckdb/src/include/duckdb/common/insertion_order_preserving_map.hpp +5 -5
- package/src/duckdb/src/include/duckdb/common/multi_file_reader.hpp +5 -0
- package/src/duckdb/src/include/duckdb/common/types/bit.hpp +36 -33
- package/src/duckdb/src/include/duckdb/common/types/data_chunk.hpp +10 -13
- package/src/duckdb/src/include/duckdb/common/types/uhugeint.hpp +1 -1
- package/src/duckdb/src/include/duckdb/common/types/vector_cache.hpp +7 -5
- package/src/duckdb/src/include/duckdb/common/windows_undefs.hpp +2 -1
- package/src/duckdb/src/include/duckdb/core_functions/aggregate/minmax_n_helpers.hpp +2 -0
- package/src/duckdb/src/include/duckdb/core_functions/scalar/bit_functions.hpp +1 -1
- package/src/duckdb/src/include/duckdb/core_functions/scalar/list_functions.hpp +0 -6
- package/src/duckdb/src/include/duckdb/core_functions/scalar/math_functions.hpp +1 -1
- package/src/duckdb/src/include/duckdb/execution/expression_executor_state.hpp +3 -2
- package/src/duckdb/src/include/duckdb/execution/index/art/art.hpp +3 -0
- package/src/duckdb/src/include/duckdb/execution/index/index_type.hpp +16 -1
- package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_buffer_manager.hpp +4 -4
- package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_reader_options.hpp +4 -2
- package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/csv_schema.hpp +3 -2
- package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/sniffer/csv_sniffer.hpp +91 -36
- package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/sniffer/sniff_result.hpp +36 -0
- package/src/duckdb/src/include/duckdb/execution/operator/csv_scanner/string_value_scanner.hpp +1 -1
- package/src/duckdb/src/include/duckdb/execution/operator/join/perfect_hash_join_executor.hpp +0 -1
- package/src/duckdb/src/include/duckdb/execution/operator/persistent/physical_export.hpp +2 -5
- package/src/duckdb/src/include/duckdb/function/table_function.hpp +1 -1
- package/src/duckdb/src/include/duckdb/main/database.hpp +5 -0
- package/src/duckdb/src/include/duckdb/main/extension_entries.hpp +1 -0
- package/src/duckdb/src/include/duckdb/main/profiling_info.hpp +20 -22
- package/src/duckdb/src/include/duckdb/main/query_profiler.hpp +7 -9
- package/src/duckdb/src/include/duckdb/main/secret/secret.hpp +8 -1
- package/src/duckdb/src/include/duckdb/main/table_description.hpp +14 -0
- package/src/duckdb/src/include/duckdb/optimizer/unnest_rewriter.hpp +5 -5
- package/src/duckdb/src/include/duckdb/parser/parsed_data/exported_table_data.hpp +15 -5
- package/src/duckdb/src/include/duckdb/parser/transformer.hpp +2 -0
- package/src/duckdb/src/include/duckdb/planner/expression_binder/order_binder.hpp +4 -0
- package/src/duckdb/src/include/duckdb/planner/operator/logical_export.hpp +10 -13
- package/src/duckdb/src/include/duckdb/planner/table_filter.hpp +1 -0
- package/src/duckdb/src/include/duckdb/storage/metadata/metadata_manager.hpp +2 -2
- package/src/duckdb/src/include/duckdb/storage/standard_buffer_manager.hpp +1 -1
- package/src/duckdb/src/include/duckdb/storage/statistics/distinct_statistics.hpp +0 -2
- package/src/duckdb/src/include/duckdb/storage/table/segment_tree.hpp +1 -0
- package/src/duckdb/src/include/duckdb/transaction/duck_transaction.hpp +5 -1
- package/src/duckdb/src/include/duckdb.h +2 -2
- package/src/duckdb/src/main/appender.cpp +3 -0
- package/src/duckdb/src/main/capi/profiling_info-c.cpp +5 -2
- package/src/duckdb/src/main/client_context.cpp +8 -2
- package/src/duckdb/src/main/connection.cpp +1 -1
- package/src/duckdb/src/main/database.cpp +13 -0
- package/src/duckdb/src/main/extension/extension_helper.cpp +1 -1
- package/src/duckdb/src/main/extension/extension_install.cpp +9 -1
- package/src/duckdb/src/main/extension/extension_load.cpp +3 -2
- package/src/duckdb/src/main/extension_install_info.cpp +1 -1
- package/src/duckdb/src/main/profiling_info.cpp +78 -58
- package/src/duckdb/src/main/query_profiler.cpp +79 -89
- package/src/duckdb/src/main/relation/read_csv_relation.cpp +1 -1
- package/src/duckdb/src/main/secret/secret.cpp +2 -1
- package/src/duckdb/src/main/secret/secret_manager.cpp +14 -0
- package/src/duckdb/src/optimizer/cte_filter_pusher.cpp +4 -2
- package/src/duckdb/src/optimizer/deliminator.cpp +0 -7
- package/src/duckdb/src/optimizer/in_clause_rewriter.cpp +7 -0
- package/src/duckdb/src/optimizer/pushdown/pushdown_left_join.cpp +4 -1
- package/src/duckdb/src/optimizer/unnest_rewriter.cpp +21 -21
- package/src/duckdb/src/parallel/task_scheduler.cpp +9 -0
- package/src/duckdb/src/parser/parsed_data/exported_table_data.cpp +22 -0
- package/src/duckdb/src/parser/parsed_expression_iterator.cpp +3 -0
- package/src/duckdb/src/parser/statement/insert_statement.cpp +7 -1
- package/src/duckdb/src/parser/transform/expression/transform_boolean_test.cpp +1 -1
- package/src/duckdb/src/parser/transform/helpers/transform_typename.cpp +89 -87
- package/src/duckdb/src/parser/transform/statement/transform_pivot_stmt.cpp +2 -2
- package/src/duckdb/src/planner/binder/expression/bind_macro_expression.cpp +4 -9
- package/src/duckdb/src/planner/binder/query_node/bind_select_node.cpp +4 -0
- package/src/duckdb/src/planner/binder/query_node/plan_setop.cpp +2 -2
- package/src/duckdb/src/planner/binder/statement/bind_create_table.cpp +4 -1
- package/src/duckdb/src/planner/binder/statement/bind_export.cpp +4 -3
- package/src/duckdb/src/planner/expression_binder/order_binder.cpp +13 -3
- package/src/duckdb/src/planner/expression_binder.cpp +1 -1
- package/src/duckdb/src/planner/operator/logical_export.cpp +28 -0
- package/src/duckdb/src/planner/table_binding.cpp +1 -2
- package/src/duckdb/src/planner/table_filter.cpp +6 -2
- package/src/duckdb/src/storage/buffer/buffer_pool.cpp +2 -1
- package/src/duckdb/src/storage/checkpoint_manager.cpp +1 -1
- package/src/duckdb/src/storage/compression/bitpacking.cpp +7 -3
- package/src/duckdb/src/storage/compression/dictionary_compression.cpp +1 -1
- package/src/duckdb/src/storage/metadata/metadata_manager.cpp +2 -2
- package/src/duckdb/src/storage/serialization/serialize_logical_operator.cpp +16 -0
- package/src/duckdb/src/storage/serialization/serialize_nodes.cpp +29 -0
- package/src/duckdb/src/storage/serialization/serialize_parse_info.cpp +15 -0
- package/src/duckdb/src/storage/single_file_block_manager.cpp +2 -1
- package/src/duckdb/src/storage/statistics/distinct_statistics.cpp +3 -5
- package/src/duckdb/src/storage/storage_info.cpp +4 -4
- package/src/duckdb/src/storage/table/row_group_collection.cpp +1 -1
- package/src/duckdb/src/storage/table/row_version_manager.cpp +5 -1
- package/src/duckdb/src/storage/temporary_file_manager.cpp +1 -1
- package/src/duckdb/src/transaction/duck_transaction.cpp +15 -14
- package/src/duckdb/third_party/brotli/common/brotli_platform.h +1 -1
- package/src/duckdb/third_party/brotli/dec/decode.cpp +1 -1
- package/src/duckdb/third_party/brotli/enc/memory.cpp +4 -4
- package/src/duckdb/third_party/fsst/libfsst.cpp +1 -1
- package/src/duckdb/third_party/hyperloglog/sds.cpp +1 -1
- package/src/duckdb/third_party/hyperloglog/sds.hpp +1 -1
- package/src/duckdb/third_party/libpg_query/include/common/keywords.hpp +1 -1
- package/src/duckdb/third_party/libpg_query/include/datatype/timestamp.hpp +1 -1
- package/src/duckdb/third_party/libpg_query/include/mb/pg_wchar.hpp +1 -1
- package/src/duckdb/third_party/libpg_query/include/nodes/bitmapset.hpp +1 -1
- package/src/duckdb/third_party/libpg_query/include/nodes/lockoptions.hpp +1 -1
- package/src/duckdb/third_party/libpg_query/include/nodes/makefuncs.hpp +1 -1
- package/src/duckdb/third_party/libpg_query/include/nodes/pg_list.hpp +1 -1
- package/src/duckdb/third_party/libpg_query/include/nodes/value.hpp +1 -1
- package/src/duckdb/third_party/libpg_query/include/parser/gramparse.hpp +1 -1
- package/src/duckdb/third_party/libpg_query/include/parser/parser.hpp +1 -1
- package/src/duckdb/third_party/libpg_query/include/parser/scanner.hpp +1 -1
- package/src/duckdb/third_party/libpg_query/include/parser/scansup.hpp +1 -1
- package/src/duckdb/third_party/libpg_query/include/pg_functions.hpp +1 -1
- package/src/duckdb/third_party/libpg_query/pg_functions.cpp +1 -1
- package/src/duckdb/third_party/libpg_query/src_backend_nodes_list.cpp +1 -1
- package/src/duckdb/third_party/libpg_query/src_backend_nodes_makefuncs.cpp +1 -1
- package/src/duckdb/third_party/libpg_query/src_backend_nodes_value.cpp +1 -1
- package/src/duckdb/third_party/libpg_query/src_backend_parser_gram.cpp +1964 -1964
- package/src/duckdb/third_party/libpg_query/src_backend_parser_parser.cpp +1 -1
- package/src/duckdb/third_party/libpg_query/src_backend_parser_scansup.cpp +1 -1
- package/src/duckdb/third_party/libpg_query/src_common_keywords.cpp +1 -1
- package/src/duckdb/third_party/lz4/lz4.cpp +1 -1
- package/src/duckdb/third_party/mbedtls/include/des_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/aes_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/aria_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/asn1write.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/camellia_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/ccm_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/chacha20.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/chachapoly.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/cmac.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/config_psa.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/ecdsa.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/ecp.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/gcm_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/md5.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/nist_kw.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/pkcs12.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/pkcs5.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/psa_util.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/ripemd160.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/threading.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/mbedtls/timing.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/platform_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/psa/crypto.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/rsa_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/sha1_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/sha256_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/sha512_alt.h +1 -1
- package/src/duckdb/third_party/mbedtls/include/ssl_misc.h +1 -1
- package/src/duckdb/third_party/mbedtls/library/aesni.h +1 -1
- package/src/duckdb/third_party/mbedtls/library/padlock.h +1 -1
- package/src/duckdb/third_party/miniz/miniz.cpp +1 -1
- package/src/duckdb/third_party/parquet/parquet_types.cpp +1 -1
- package/src/duckdb/third_party/parquet/windows_compatibility.h +1 -1
- package/src/duckdb/third_party/pcg/pcg_extras.hpp +1 -1
- package/src/duckdb/third_party/pcg/pcg_uint128.hpp +1 -1
- package/src/duckdb/third_party/skiplist/Node.h +4 -4
- package/src/duckdb/third_party/snappy/snappy.cc +1 -1
- package/src/duckdb/third_party/snappy/snappy_version.hpp +1 -1
- package/src/duckdb/third_party/thrift/thrift/thrift-config.h +1 -1
- package/src/duckdb/third_party/zstd/decompress/zstd_decompress_block.cpp +1 -1
- package/src/duckdb/third_party/zstd/include/zstd_static.h +1 -1
- package/src/duckdb/ub_src_execution_index_art.cpp +2 -0
- package/src/duckdb/ub_src_parser_parsed_data.cpp +2 -0
- package/src/duckdb/ub_src_planner_operator.cpp +2 -0
package/binding.gyp
CHANGED
package/package.json
CHANGED
@@ -46,11 +46,6 @@
|
|
46
46
|
// First, the platform type. Need this for U_PLATFORM.
|
47
47
|
#include "unicode/platform.h"
|
48
48
|
|
49
|
-
#if U_PLATFORM == U_PF_MINGW && defined __STRICT_ANSI__
|
50
|
-
/* tzset isn't defined in strict ANSI on MinGW. */
|
51
|
-
#undef __STRICT_ANSI__
|
52
|
-
#endif
|
53
|
-
|
54
49
|
/*
|
55
50
|
* Cygwin with GCC requires inclusion of time.h after the above disabling strict asci mode statement.
|
56
51
|
*/
|
@@ -175,7 +175,7 @@
|
|
175
175
|
|
176
176
|
// // Node Stack.
|
177
177
|
// // Normally has one entry, which is the entire parse tree for the rules.
|
178
|
-
// // If errors
|
178
|
+
// // If errors occurred, there may be additional subtrees left on the stack.
|
179
179
|
// while (fNodeStackPtr > 0) {
|
180
180
|
// delete fNodeStack[fNodeStackPtr];
|
181
181
|
// fNodeStackPtr--;
|
@@ -1515,7 +1515,7 @@ uprv_parseCurrency(const char* locale,
|
|
1515
1515
|
|
1516
1516
|
int32_t max = 0;
|
1517
1517
|
int32_t matchIndex = -1;
|
1518
|
-
// case in-sensitive
|
1518
|
+
// case in-sensitive comparison against currency names
|
1519
1519
|
searchCurrencyName(currencyNames, total_currency_name_count,
|
1520
1520
|
upperText, textLen, partialMatchLen, &max, &matchIndex);
|
1521
1521
|
|
@@ -3019,7 +3019,7 @@ ures_getKeywordValues(const char *path, const char *keyword, UErrorCode *status)
|
|
3019
3019
|
U_INTERNAL UBool U_EXPORT2
|
3020
3020
|
ures_equal(const UResourceBundle* res1, const UResourceBundle* res2){
|
3021
3021
|
if(res1==NULL || res2==NULL){
|
3022
|
-
return res1==res2; /* pointer
|
3022
|
+
return res1==res2; /* pointer comparison */
|
3023
3023
|
}
|
3024
3024
|
if(res1->fKey==NULL|| res2->fKey==NULL){
|
3025
3025
|
return (res1->fKey==res2->fKey);
|
@@ -172,10 +172,10 @@ U_CFUNC UResourceBundle *ures_copyResb(UResourceBundle *r, const UResourceBundle
|
|
172
172
|
* Returns a resource that can be located using the pathToResource argument. One needs optional package, locale
|
173
173
|
* and path inside the locale, for example: "/myData/en/zoneStrings/3". Keys and indexes are supported. Keys
|
174
174
|
* need to reference data in named structures, while indexes can reference both named and anonymous resources.
|
175
|
-
* Features a fill-in parameter.
|
176
|
-
*
|
175
|
+
* Features a fill-in parameter.
|
176
|
+
*
|
177
177
|
* Note, this function does NOT have a syntax for specifying items within a tree. May want to consider a
|
178
|
-
* syntax that delineates between package/tree and resource.
|
178
|
+
* syntax that delineates between package/tree and resource.
|
179
179
|
*
|
180
180
|
* @param pathToResource a path that will lead to the requested resource
|
181
181
|
* @param fillIn if NULL a new UResourceBundle struct is allocated and must be deleted by the caller.
|
@@ -184,16 +184,16 @@ U_CFUNC UResourceBundle *ures_copyResb(UResourceBundle *r, const UResourceBundle
|
|
184
184
|
* @return a pointer to a UResourceBundle struct. If fill in param was NULL, caller must delete it
|
185
185
|
*/
|
186
186
|
U_CAPI UResourceBundle* U_EXPORT2
|
187
|
-
ures_findResource(const char* pathToResource,
|
188
|
-
UResourceBundle *fillIn, UErrorCode *status);
|
187
|
+
ures_findResource(const char* pathToResource,
|
188
|
+
UResourceBundle *fillIn, UErrorCode *status);
|
189
189
|
|
190
190
|
/**
|
191
|
-
* Returns a sub resource that can be located using the pathToResource argument. One needs a path inside
|
191
|
+
* Returns a sub resource that can be located using the pathToResource argument. One needs a path inside
|
192
192
|
* the supplied resource, for example, if you have "en_US" resource bundle opened, you might ask for
|
193
193
|
* "zoneStrings/3". Keys and indexes are supported. Keys
|
194
|
-
* need to reference data in named structures, while indexes can reference both
|
194
|
+
* need to reference data in named structures, while indexes can reference both
|
195
195
|
* named and anonymous resources.
|
196
|
-
* Features a fill-in parameter.
|
196
|
+
* Features a fill-in parameter.
|
197
197
|
*
|
198
198
|
* @param resourceBundle a resource
|
199
199
|
* @param pathToResource a path that will lead to the requested resource
|
@@ -203,8 +203,8 @@ ures_findResource(const char* pathToResource,
|
|
203
203
|
* @return a pointer to a UResourceBundle struct. If fill in param was NULL, caller must delete it
|
204
204
|
*/
|
205
205
|
U_CAPI UResourceBundle* U_EXPORT2
|
206
|
-
ures_findSubResource(const UResourceBundle *resB,
|
207
|
-
char* pathToResource,
|
206
|
+
ures_findSubResource(const UResourceBundle *resB,
|
207
|
+
char* pathToResource,
|
208
208
|
UResourceBundle *fillIn, UErrorCode *status);
|
209
209
|
|
210
210
|
/**
|
@@ -215,23 +215,23 @@ ures_findSubResource(const UResourceBundle *resB,
|
|
215
215
|
* @param resName top level resource. Example: "collations"
|
216
216
|
* @param keyword locale keyword. Example: "collation"
|
217
217
|
* @param locid The requested locale
|
218
|
-
* @param isAvailable If non-null, pointer to fillin parameter that indicates whether the
|
219
|
-
* requested locale was available. The locale is defined as 'available' if it physically
|
218
|
+
* @param isAvailable If non-null, pointer to fillin parameter that indicates whether the
|
219
|
+
* requested locale was available. The locale is defined as 'available' if it physically
|
220
220
|
* exists within the specified tree.
|
221
221
|
* @param omitDefault if TRUE, omit keyword and value if default. 'de_DE\@collation=standard' -> 'de_DE'
|
222
222
|
* @param status error code
|
223
|
-
* @return the actual buffer size needed for the full locale. If it's greater
|
223
|
+
* @return the actual buffer size needed for the full locale. If it's greater
|
224
224
|
* than resultCapacity, the returned full name will be truncated and an error code will be returned.
|
225
225
|
*/
|
226
226
|
U_CAPI int32_t U_EXPORT2
|
227
|
-
ures_getFunctionalEquivalent(char *result, int32_t resultCapacity,
|
227
|
+
ures_getFunctionalEquivalent(char *result, int32_t resultCapacity,
|
228
228
|
const char *path, const char *resName, const char *keyword, const char *locid,
|
229
229
|
UBool *isAvailable, UBool omitDefault, UErrorCode *status);
|
230
230
|
|
231
231
|
/**
|
232
232
|
* Given a tree path and keyword, return a string enumeration of all possible values for that keyword.
|
233
233
|
* @param path path to the tree, or NULL for ICU data
|
234
|
-
* @param keyword a particular keyword to consider, must match a top level resource name
|
234
|
+
* @param keyword a particular keyword to consider, must match a top level resource name
|
235
235
|
* within the tree.
|
236
236
|
* @param status error code
|
237
237
|
*/
|
@@ -251,14 +251,14 @@ ures_getKeywordValues(const char *path, const char *keyword, UErrorCode *status)
|
|
251
251
|
* Alternatively, you can supply a struct to be filled by this function.
|
252
252
|
* @param status: fills in the outgoing error code
|
253
253
|
* could be <TT>U_MISSING_RESOURCE_ERROR</TT> if the key is not found
|
254
|
-
* could be a non-failing error
|
254
|
+
* could be a non-failing error
|
255
255
|
* e.g.: <TT>U_USING_FALLBACK_WARNING</TT>,<TT>U_USING_DEFAULT_WARNING </TT>
|
256
256
|
* @return a pointer to a UResourceBundle struct. If fill in param was NULL, caller must delete it
|
257
257
|
*/
|
258
|
-
U_CAPI UResourceBundle* U_EXPORT2
|
259
|
-
ures_getByKeyWithFallback(const UResourceBundle *resB,
|
260
|
-
const char* inKey,
|
261
|
-
UResourceBundle *fillIn,
|
258
|
+
U_CAPI UResourceBundle* U_EXPORT2
|
259
|
+
ures_getByKeyWithFallback(const UResourceBundle *resB,
|
260
|
+
const char* inKey,
|
261
|
+
UResourceBundle *fillIn,
|
262
262
|
UErrorCode *status);
|
263
263
|
|
264
264
|
|
@@ -272,13 +272,13 @@ ures_getByKeyWithFallback(const UResourceBundle *resB,
|
|
272
272
|
* @param inKey a key associated with the requested resource
|
273
273
|
* @param status: fills in the outgoing error code
|
274
274
|
* could be <TT>U_MISSING_RESOURCE_ERROR</TT> if the key is not found
|
275
|
-
* could be a non-failing error
|
275
|
+
* could be a non-failing error
|
276
276
|
* e.g.: <TT>U_USING_FALLBACK_WARNING</TT>,<TT>U_USING_DEFAULT_WARNING </TT>
|
277
277
|
* @return a pointer to a UResourceBundle struct. If fill in param was NULL, caller must delete it
|
278
278
|
*/
|
279
|
-
U_CAPI const UChar* U_EXPORT2
|
280
|
-
ures_getStringByKeyWithFallback(const UResourceBundle *resB,
|
281
|
-
const char* inKey,
|
279
|
+
U_CAPI const UChar* U_EXPORT2
|
280
|
+
ures_getStringByKeyWithFallback(const UResourceBundle *resB,
|
281
|
+
const char* inKey,
|
282
282
|
int32_t* len,
|
283
283
|
UErrorCode *status);
|
284
284
|
|
@@ -318,15 +318,15 @@ ures_getVersionByKey(const UResourceBundle *resB,
|
|
318
318
|
* The caller does not own this string.
|
319
319
|
* @see ures_getVersion
|
320
320
|
*/
|
321
|
-
U_CAPI const char* U_EXPORT2
|
321
|
+
U_CAPI const char* U_EXPORT2
|
322
322
|
ures_getVersionNumberInternal(const UResourceBundle *resourceBundle);
|
323
323
|
|
324
324
|
/**
|
325
325
|
* Return the name of the Locale associated with this ResourceBundle. This API allows
|
326
|
-
* you to query for the real locale of the resource. For example, if you requested
|
327
|
-
* "en_US_CALIFORNIA" and only "en_US" bundle exists, "en_US" will be returned.
|
326
|
+
* you to query for the real locale of the resource. For example, if you requested
|
327
|
+
* "en_US_CALIFORNIA" and only "en_US" bundle exists, "en_US" will be returned.
|
328
328
|
* For subresources, the locale where this resource comes from will be returned.
|
329
|
-
* If fallback has
|
329
|
+
* If fallback has occurred, getLocale will reflect this.
|
330
330
|
*
|
331
331
|
* This internal version avoids deprecated-warnings in ICU code.
|
332
332
|
*
|
@@ -334,13 +334,13 @@ ures_getVersionNumberInternal(const UResourceBundle *resourceBundle);
|
|
334
334
|
* @param status just for catching illegal arguments
|
335
335
|
* @return A Locale name
|
336
336
|
*/
|
337
|
-
U_CAPI const char* U_EXPORT2
|
338
|
-
ures_getLocaleInternal(const UResourceBundle* resourceBundle,
|
337
|
+
U_CAPI const char* U_EXPORT2
|
338
|
+
ures_getLocaleInternal(const UResourceBundle* resourceBundle,
|
339
339
|
UErrorCode* status);
|
340
340
|
|
341
341
|
/**
|
342
342
|
* Same as ures_openDirect() but uses the fill-in parameter instead of allocating a new bundle.
|
343
|
-
*
|
343
|
+
*
|
344
344
|
* @param r The existing UResourceBundle to fill in. If NULL then status will be
|
345
345
|
* set to U_ILLEGAL_ARGUMENT_ERROR.
|
346
346
|
* @param packageName The packageName and locale together point to an ICU udata object,
|
@@ -312,7 +312,7 @@ int32_t UVector::indexOf(UElement key, int32_t startIndex, int8_t hint) const {
|
|
312
312
|
} else {
|
313
313
|
for (i=startIndex; i<count; ++i) {
|
314
314
|
/* Pointers are not always the same size as ints so to perform
|
315
|
-
* a valid
|
315
|
+
* a valid comparison we need to know whether we are being
|
316
316
|
* provided an int or a pointer. */
|
317
317
|
if (hint & HINT_KEY_POINTER) {
|
318
318
|
if (key.pointer == elements[i].pointer) {
|
@@ -20,7 +20,7 @@
|
|
20
20
|
* 08/03/98 erm Synched with 1.2 version of CollationElementIterator.java
|
21
21
|
* 12/10/99 aliu Ported Thai collation support from Java.
|
22
22
|
* 01/25/01 swquek Modified to a C++ wrapper calling C APIs (ucoliter.h)
|
23
|
-
* 02/19/01 swquek Removed CollationElementIterator() since it is
|
23
|
+
* 02/19/01 swquek Removed CollationElementIterator() since it is
|
24
24
|
* private constructor and no calls are made to it
|
25
25
|
* 2012-2014 markus Rewritten in C++ again.
|
26
26
|
*/
|
@@ -53,7 +53,7 @@ UOBJECT_DEFINE_RTTI_IMPLEMENTATION(CollationElementIterator)
|
|
53
53
|
/* CollationElementIterator public constructor/destructor ------------------ */
|
54
54
|
|
55
55
|
CollationElementIterator::CollationElementIterator(
|
56
|
-
const CollationElementIterator& other)
|
56
|
+
const CollationElementIterator& other)
|
57
57
|
: UObject(other), iter_(NULL), rbc_(NULL), otherHalf_(0), dir_(0), offsets_(NULL) {
|
58
58
|
*this = other;
|
59
59
|
}
|
@@ -98,8 +98,8 @@ int32_t CollationElementIterator::getOffset() const
|
|
98
98
|
|
99
99
|
/**
|
100
100
|
* Get the ordering priority of the next character in the string.
|
101
|
-
* @return the next character's ordering. Returns NULLORDER if an error has
|
102
|
-
*
|
101
|
+
* @return the next character's ordering. Returns NULLORDER if an error has
|
102
|
+
* occurred or if the end of string has been reached
|
103
103
|
*/
|
104
104
|
int32_t CollationElementIterator::next(UErrorCode& status)
|
105
105
|
{
|
@@ -161,8 +161,8 @@ UBool CollationElementIterator::operator==(
|
|
161
161
|
/**
|
162
162
|
* Get the ordering priority of the previous collation element in the string.
|
163
163
|
* @param status the error code status.
|
164
|
-
* @return the previous element's ordering. Returns NULLORDER if an error has
|
165
|
-
*
|
164
|
+
* @return the previous element's ordering. Returns NULLORDER if an error has
|
165
|
+
* occurred or if the start of string has been reached.
|
166
166
|
*/
|
167
167
|
int32_t CollationElementIterator::previous(UErrorCode& status)
|
168
168
|
{
|
@@ -227,7 +227,7 @@ void CollationElementIterator::reset()
|
|
227
227
|
dir_ = 0;
|
228
228
|
}
|
229
229
|
|
230
|
-
void CollationElementIterator::setOffset(int32_t newOffset,
|
230
|
+
void CollationElementIterator::setOffset(int32_t newOffset,
|
231
231
|
UErrorCode& status)
|
232
232
|
{
|
233
233
|
if (U_FAILURE(status)) { return; }
|
@@ -297,10 +297,10 @@ void CollationElementIterator::setText(const UnicodeString& source,
|
|
297
297
|
}
|
298
298
|
|
299
299
|
// Sets the source to the new character iterator.
|
300
|
-
void CollationElementIterator::setText(CharacterIterator& source,
|
300
|
+
void CollationElementIterator::setText(CharacterIterator& source,
|
301
301
|
UErrorCode& status)
|
302
302
|
{
|
303
|
-
if (U_FAILURE(status))
|
303
|
+
if (U_FAILURE(status))
|
304
304
|
return;
|
305
305
|
|
306
306
|
source.getText(string_);
|
@@ -323,7 +323,7 @@ int32_t CollationElementIterator::strengthOrder(int32_t order) const
|
|
323
323
|
|
324
324
|
/* CollationElementIterator private constructors/destructors --------------- */
|
325
325
|
|
326
|
-
/**
|
326
|
+
/**
|
327
327
|
* This is the "real" constructor for this class; it constructs an iterator
|
328
328
|
* over the source text using the specified collator
|
329
329
|
*/
|
@@ -335,8 +335,8 @@ CollationElementIterator::CollationElementIterator(
|
|
335
335
|
setText(source, status);
|
336
336
|
}
|
337
337
|
|
338
|
-
/**
|
339
|
-
* This is the "real" constructor for this class; it constructs an iterator over
|
338
|
+
/**
|
339
|
+
* This is the "real" constructor for this class; it constructs an iterator over
|
340
340
|
* the source text using the specified collator
|
341
341
|
*/
|
342
342
|
CollationElementIterator::CollationElementIterator(
|
@@ -163,7 +163,7 @@ Format::operator==(const Format& that) const
|
|
163
163
|
* Simple function for initializing a UParseError from a UnicodeString.
|
164
164
|
*
|
165
165
|
* @param pattern The pattern to copy into the parseError
|
166
|
-
* @param pos The position in pattern where the error
|
166
|
+
* @param pos The position in pattern where the error occurred
|
167
167
|
* @param parseError The UParseError object to fill in
|
168
168
|
* @draft ICU 2.4
|
169
169
|
*/
|
@@ -533,7 +533,7 @@ UnicodeString& ListFormatter::format_(
|
|
533
533
|
}
|
534
534
|
if (handler != nullptr) {
|
535
535
|
// If there are already some data in appendTo, we need to adjust the index
|
536
|
-
// by shifting that
|
536
|
+
// by shifting that length while insert into handler.
|
537
537
|
int32_t shift = appendTo.length() + prefixLength;
|
538
538
|
// Output the ULISTFMT_ELEMENT_FIELD in the order of the input elements
|
539
539
|
for (int32_t i = 0; i < nItems; ++i) {
|
@@ -545,9 +545,9 @@ UnicodeString& ListFormatter::format_(
|
|
545
545
|
offsets[i + nItems]); // limit
|
546
546
|
}
|
547
547
|
// The locale pattern may reorder the items (such as in ur-IN locale),
|
548
|
-
// so we cannot assume the array is in
|
548
|
+
// so we cannot assume the array is in ascending order.
|
549
549
|
// To handle the edging case, just insert the two ends into the array
|
550
|
-
// and sort. Then we output ULISTFMT_LITERAL_FIELD if the
|
550
|
+
// and sort. Then we output ULISTFMT_LITERAL_FIELD if the indices
|
551
551
|
// between the even and odd position are not the same in the sorted array.
|
552
552
|
offsets[2 * nItems] = shift - prefixLength;
|
553
553
|
offsets[2 * nItems + 1] = result.length() + shift - prefixLength;
|
@@ -569,7 +569,7 @@ UnicodeString& ListFormatter::format_(
|
|
569
569
|
}
|
570
570
|
appendTo += result;
|
571
571
|
}
|
572
|
-
#endif
|
572
|
+
#endif
|
573
573
|
return appendTo;
|
574
574
|
}
|
575
575
|
|
@@ -136,7 +136,7 @@ class U_I18N_API DecimalQuantity : public IFixedDecimal, public UMemory {
|
|
136
136
|
* this method with delta=-3 will change the value to "1.23456".
|
137
137
|
*
|
138
138
|
* @param delta The number of magnitudes of ten to change by.
|
139
|
-
* @return true if integer overflow
|
139
|
+
* @return true if integer overflow occurred; false otherwise.
|
140
140
|
*/
|
141
141
|
bool adjustMagnitude(int32_t delta);
|
142
142
|
|
@@ -328,7 +328,7 @@ private:
|
|
328
328
|
|
329
329
|
|
330
330
|
// ---------------------------------------------------
|
331
|
-
// TZGNCore - core
|
331
|
+
// TZGNCore - core implementation of TimeZoneGenericNames
|
332
332
|
//
|
333
333
|
// TimeZoneGenericNames is parallel to TimeZoneNames,
|
334
334
|
// but handles run-time generated time zone names.
|
@@ -8,7 +8,7 @@
|
|
8
8
|
*/
|
9
9
|
|
10
10
|
/**
|
11
|
-
* \file
|
11
|
+
* \file
|
12
12
|
* \brief C++ API: Collation Element Iterator.
|
13
13
|
*/
|
14
14
|
|
@@ -25,7 +25,7 @@
|
|
25
25
|
* 08/03/98 erm Synched with 1.2 version CollationElementIterator.java
|
26
26
|
* 12/10/99 aliu Ported Thai collation support from Java.
|
27
27
|
* 01/25/01 swquek Modified into a C++ wrapper calling C APIs (ucoliter.h)
|
28
|
-
* 02/19/01 swquek Removed CollationElementsIterator() since it is
|
28
|
+
* 02/19/01 swquek Removed CollationElementsIterator() since it is
|
29
29
|
* private constructor and no calls are made to it
|
30
30
|
* 2012-2014 markus Rewritten in C++ again.
|
31
31
|
*/
|
@@ -56,10 +56,10 @@ class UCollationPCE;
|
|
56
56
|
class UVector32;
|
57
57
|
|
58
58
|
/**
|
59
|
-
* The CollationElementIterator class is used as an iterator to walk through
|
59
|
+
* The CollationElementIterator class is used as an iterator to walk through
|
60
60
|
* each character of an international string. Use the iterator to return the
|
61
|
-
* ordering priority of the positioned character. The ordering priority of a
|
62
|
-
* character, which we refer to as a key, defines how a character is collated in
|
61
|
+
* ordering priority of the positioned character. The ordering priority of a
|
62
|
+
* character, which we refer to as a key, defines how a character is collated in
|
63
63
|
* the given collation object.
|
64
64
|
* For example, consider the following in Slovak and in traditional Spanish collation:
|
65
65
|
* <pre>
|
@@ -69,9 +69,9 @@ class UVector32;
|
|
69
69
|
* <pre> \htmlonly "æb"-> the first key is key('a'), the second key is key('e'), and
|
70
70
|
* the third key is key('b'). \endhtmlonly </pre>
|
71
71
|
* The key of a character, is an integer composed of primary order(short),
|
72
|
-
* secondary order(char), and tertiary order(char). Java strictly defines the
|
72
|
+
* secondary order(char), and tertiary order(char). Java strictly defines the
|
73
73
|
* size and signedness of its primitive data types. Therefore, the static
|
74
|
-
* functions primaryOrder(), secondaryOrder(), and tertiaryOrder() return
|
74
|
+
* functions primaryOrder(), secondaryOrder(), and tertiaryOrder() return
|
75
75
|
* int32_t to ensure the correctness of the key value.
|
76
76
|
* <p>Example of the iterator usage: (without error checking)
|
77
77
|
* <pre>
|
@@ -97,8 +97,8 @@ class UVector32;
|
|
97
97
|
* the comparison level of the collator. The method previous() returns the
|
98
98
|
* collation order of the previous character based on the comparison level of
|
99
99
|
* the collator. The Collation Element Iterator moves only in one direction
|
100
|
-
* between calls to reset(), setOffset(), or setText(). That is, next()
|
101
|
-
* and previous() can not be inter-used. Whenever previous() is to be called after
|
100
|
+
* between calls to reset(), setOffset(), or setText(). That is, next()
|
101
|
+
* and previous() can not be inter-used. Whenever previous() is to be called after
|
102
102
|
* next() or vice versa, reset(), setOffset() or setText() has to be called first
|
103
103
|
* to reset the status, shifting pointers to either the end or the start of
|
104
104
|
* the string (reset() or setText()), or the specified position (setOffset()).
|
@@ -109,9 +109,9 @@ class UVector32;
|
|
109
109
|
* The result of a forward iterate (next()) and reversed result of the backward
|
110
110
|
* iterate (previous()) on the same string are equivalent, if collation orders
|
111
111
|
* with the value 0 are ignored.
|
112
|
-
* Character based on the comparison level of the collator. A collation order
|
113
|
-
* consists of primary order, secondary order and tertiary order. The data
|
114
|
-
* type of the collation order is <strong>int32_t</strong>.
|
112
|
+
* Character based on the comparison level of the collator. A collation order
|
113
|
+
* consists of primary order, secondary order and tertiary order. The data
|
114
|
+
* type of the collation order is <strong>int32_t</strong>.
|
115
115
|
*
|
116
116
|
* Note, CollationElementIterator should not be subclassed.
|
117
117
|
* @see Collator
|
@@ -119,13 +119,13 @@ class UVector32;
|
|
119
119
|
* @version 1.8 Jan 16 2001
|
120
120
|
*/
|
121
121
|
class U_I18N_API CollationElementIterator U_FINAL : public UObject {
|
122
|
-
public:
|
122
|
+
public:
|
123
123
|
|
124
124
|
// CollationElementIterator public data member ------------------------------
|
125
125
|
|
126
126
|
enum {
|
127
127
|
/**
|
128
|
-
* NULLORDER indicates that an error has
|
128
|
+
* NULLORDER indicates that an error has occurred while processing
|
129
129
|
* @stable ICU 2.0
|
130
130
|
*/
|
131
131
|
NULLORDER = (int32_t)0xffffffff
|
@@ -141,7 +141,7 @@ public:
|
|
141
141
|
*/
|
142
142
|
CollationElementIterator(const CollationElementIterator& other);
|
143
143
|
|
144
|
-
/**
|
144
|
+
/**
|
145
145
|
* Destructor
|
146
146
|
* @stable ICU 2.0
|
147
147
|
*/
|
@@ -176,8 +176,8 @@ public:
|
|
176
176
|
/**
|
177
177
|
* Gets the ordering priority of the next character in the string.
|
178
178
|
* @param status the error code status.
|
179
|
-
* @return the next character's ordering. otherwise returns NULLORDER if an
|
180
|
-
* error has
|
179
|
+
* @return the next character's ordering. otherwise returns NULLORDER if an
|
180
|
+
* error has occurred or if the end of string has been reached
|
181
181
|
* @stable ICU 2.0
|
182
182
|
*/
|
183
183
|
int32_t next(UErrorCode& status);
|
@@ -185,8 +185,8 @@ public:
|
|
185
185
|
/**
|
186
186
|
* Get the ordering priority of the previous collation element in the string.
|
187
187
|
* @param status the error code status.
|
188
|
-
* @return the previous element's ordering. otherwise returns NULLORDER if an
|
189
|
-
* error has
|
188
|
+
* @return the previous element's ordering. otherwise returns NULLORDER if an
|
189
|
+
* error has occurred or if the start of string has been reached
|
190
190
|
* @stable ICU 2.0
|
191
191
|
*/
|
192
192
|
int32_t previous(UErrorCode& status);
|
@@ -216,11 +216,11 @@ public:
|
|
216
216
|
static inline int32_t tertiaryOrder(int32_t order);
|
217
217
|
|
218
218
|
/**
|
219
|
-
* Return the maximum length of any expansion sequences that end with the
|
219
|
+
* Return the maximum length of any expansion sequences that end with the
|
220
220
|
* specified comparison order.
|
221
221
|
* @param order a collation order returned by previous or next.
|
222
|
-
* @return maximum size of the expansion sequences ending with the collation
|
223
|
-
* element or 1 if collation element does not occur at the end of any
|
222
|
+
* @return maximum size of the expansion sequences ending with the collation
|
223
|
+
* element or 1 if collation element does not occur at the end of any
|
224
224
|
* expansion sequence
|
225
225
|
* @stable ICU 2.0
|
226
226
|
*/
|
@@ -312,9 +312,9 @@ private:
|
|
312
312
|
friend class UCollationPCE;
|
313
313
|
|
314
314
|
/**
|
315
|
-
* CollationElementIterator constructor. This takes the source string and the
|
316
|
-
* collation object. The cursor will walk thru the source string based on the
|
317
|
-
* predefined collation rules. If the source string is empty, NULLORDER will
|
315
|
+
* CollationElementIterator constructor. This takes the source string and the
|
316
|
+
* collation object. The cursor will walk thru the source string based on the
|
317
|
+
* predefined collation rules. If the source string is empty, NULLORDER will
|
318
318
|
* be returned on the calls to next().
|
319
319
|
* @param sourceText the source string.
|
320
320
|
* @param order the collation object.
|
@@ -332,9 +332,9 @@ private:
|
|
332
332
|
// but only contain the part of RBC== related to data and rules.
|
333
333
|
|
334
334
|
/**
|
335
|
-
* CollationElementIterator constructor. This takes the source string and the
|
336
|
-
* collation object. The cursor will walk thru the source string based on the
|
337
|
-
* predefined collation rules. If the source string is empty, NULLORDER will
|
335
|
+
* CollationElementIterator constructor. This takes the source string and the
|
336
|
+
* collation object. The cursor will walk thru the source string based on the
|
337
|
+
* predefined collation rules. If the source string is empty, NULLORDER will
|
338
338
|
* be returned on the calls to next().
|
339
339
|
* @param sourceText the source string.
|
340
340
|
* @param order the collation object.
|
@@ -29,8 +29,8 @@
|
|
29
29
|
#if U_SHOW_CPLUSPLUS_API
|
30
30
|
|
31
31
|
/**
|
32
|
-
* \file
|
33
|
-
* \brief C++ API: Base class for all formats.
|
32
|
+
* \file
|
33
|
+
* \brief C++ API: Base class for all formats.
|
34
34
|
*/
|
35
35
|
|
36
36
|
#if !UCONFIG_NO_FORMATTING
|
@@ -40,7 +40,7 @@
|
|
40
40
|
#include "unicode/fieldpos.h"
|
41
41
|
#include "unicode/fpositer.h"
|
42
42
|
#include "unicode/parsepos.h"
|
43
|
-
#include "unicode/parseerr.h"
|
43
|
+
#include "unicode/parseerr.h"
|
44
44
|
#include "unicode/locid.h"
|
45
45
|
|
46
46
|
U_NAMESPACE_BEGIN
|
@@ -245,7 +245,7 @@ public:
|
|
245
245
|
UErrorCode& status) const;
|
246
246
|
|
247
247
|
/** Get the locale for this format object. You can choose between valid and actual locale.
|
248
|
-
* @param type type of the locale we're looking for (valid or actual)
|
248
|
+
* @param type type of the locale we're looking for (valid or actual)
|
249
249
|
* @param status error code for the operation
|
250
250
|
* @return the locale
|
251
251
|
* @stable ICU 2.8
|
@@ -254,7 +254,7 @@ public:
|
|
254
254
|
|
255
255
|
#ifndef U_HIDE_INTERNAL_API
|
256
256
|
/** Get the locale for this format object. You can choose between valid and actual locale.
|
257
|
-
* @param type type of the locale we're looking for (valid or actual)
|
257
|
+
* @param type type of the locale we're looking for (valid or actual)
|
258
258
|
* @param status error code for the operation
|
259
259
|
* @return the locale
|
260
260
|
* @internal
|
@@ -283,12 +283,12 @@ protected:
|
|
283
283
|
*/
|
284
284
|
Format& operator=(const Format&); // Does nothing; for subclasses
|
285
285
|
|
286
|
-
|
286
|
+
|
287
287
|
/**
|
288
288
|
* Simple function for initializing a UParseError from a UnicodeString.
|
289
289
|
*
|
290
290
|
* @param pattern The pattern to copy into the parseError
|
291
|
-
* @param pos The position in pattern where the error
|
291
|
+
* @param pos The position in pattern where the error occurred
|
292
292
|
* @param parseError The UParseError object to fill in
|
293
293
|
* @stable ICU 2.4
|
294
294
|
*/
|
@@ -459,7 +459,7 @@ ucol_openRules( const UChar *rules,
|
|
459
459
|
* instantiating collators (like out of memory or similar), this
|
460
460
|
* API will return an error if an invalid attribute or attribute/value
|
461
461
|
* combination is specified.
|
462
|
-
* @return A pointer to a UCollator or 0 if an error
|
462
|
+
* @return A pointer to a UCollator or 0 if an error occurred (including an
|
463
463
|
* invalid attribute).
|
464
464
|
* @see ucol_open
|
465
465
|
* @see ucol_setAttribute
|