mirror of
https://github.com/felt/tippecanoe.git
synced 2026-10-02 08:25:40 +02:00
* Prep to track conditions other than just "dropped" or "kept" * Count up instead of down * Drop or retain whole multiplier clusters based on their first feature * Calculate a global feature dropping sequence * Switch over to using the drop sequence for drop-fraction * Remove unused arguments for the old drop-fraction implementation * Fix copy-and-paste bugs, update tests * Properly incorporate feature_minzoom into the drop sequence, I hope * Rename drop_by to drop_sequence * See if sorting within clusters fixes filter stability between zooms * Remove very chatty debug print * Update changelog and version * Use named constants instead of numbers for feature dropping/keeping * Add comment to explain purpose and method of bit reversal
17 lines
529 B
C++
17 lines
529 B
C++
#ifndef TEXT_HPP
|
|
#define TEXT_HPP
|
|
|
|
#include <string>
|
|
|
|
std::string check_utf8(std::string text);
|
|
const char *utf8_next(const char *s, long *c);
|
|
std::string truncate16(std::string const &s, size_t runes);
|
|
int integer_zoom(std::string where, std::string text);
|
|
std::string format_commandline(int argc, char **argv);
|
|
unsigned long long fnv1a(std::string const &s);
|
|
unsigned long long fnv1a(const char *s, char additional);
|
|
unsigned long long fnv1a(size_t size, void *p);
|
|
unsigned long long bit_reverse(unsigned long long v);
|
|
|
|
#endif
|