pub fn generate_human_friendly_string(input: &str) -> String
Expand description
Generates a human-friendly version of the given string.
Many instances exist where type names, or string constants, represent a condensed form of an otherwise human-friendly/recognize string, such as “aws_s3” (for AWS S3) or “InfluxdbMetrics” (for InfluxDB Metrics) and so on.
This function takes a given input and restores it back to the human-friendly version by splitting it on the relevant word boundaries, adjusting the input to title case, and applying well-known replacements to ensure that brand-specific casing (such as “CloudWatch” instead of “Cloudwatch”, or handling acronyms like AWS, GCP, and so on) makes it into the final version.