Commit fbbffdb
committed
Improve documentation for MMDB_get_entry_data_list and map/array access
This commit addresses two long-standing documentation issues:
- Issue #145: Clarifies that the `start` parameter of
MMDB_get_entry_data_list() is an MMDB_entry_s value that typically
comes from the entry member of MMDB_lookup_result_s.
- Issue #255: Adds comprehensive documentation section on accessing
elements in maps and arrays using MMDB_get_value(). Includes examples
of:
* Accessing map values by key
* Accessing array elements by numeric index
* Using negative array indices
* Navigating nested structures
* When to use MMDB_get_entry_data_list() for iteration
All code examples have been tested with the test database to ensure
correctness.
Fixes #145
Fixes #2551 parent 700da00 commit fbbffdb
1 file changed
+51
-0
lines changed| Original file line number | Diff line number | Diff line change | |
|---|---|---|---|
| |||
611 | 611 | | |
612 | 612 | | |
613 | 613 | | |
| 614 | + | |
| 615 | + | |
| 616 | + | |
| 617 | + | |
| 618 | + | |
| 619 | + | |
| 620 | + | |
| 621 | + | |
| 622 | + | |
| 623 | + | |
| 624 | + | |
| 625 | + | |
| 626 | + | |
| 627 | + | |
| 628 | + | |
| 629 | + | |
| 630 | + | |
| 631 | + | |
| 632 | + | |
| 633 | + | |
| 634 | + | |
| 635 | + | |
| 636 | + | |
| 637 | + | |
| 638 | + | |
| 639 | + | |
| 640 | + | |
| 641 | + | |
| 642 | + | |
| 643 | + | |
| 644 | + | |
| 645 | + | |
| 646 | + | |
| 647 | + | |
| 648 | + | |
| 649 | + | |
| 650 | + | |
| 651 | + | |
| 652 | + | |
| 653 | + | |
| 654 | + | |
| 655 | + | |
| 656 | + | |
| 657 | + | |
| 658 | + | |
| 659 | + | |
| 660 | + | |
614 | 661 | | |
615 | 662 | | |
616 | 663 | | |
| |||
623 | 670 | | |
624 | 671 | | |
625 | 672 | | |
| 673 | + | |
| 674 | + | |
| 675 | + | |
| 676 | + | |
626 | 677 | | |
627 | 678 | | |
628 | 679 | | |
| |||
0 commit comments