Population v0.1.0 Population.Helpers.URIFormat

This module provides some helper functions for encoding the requests params.

Summary

Functions

Capitalizes the country name and percent-escapes the given result

Functions

encode_country(country)
encode_country(country :: String.t) :: String.t

Capitalizes the country name and percent-escapes the given result.

Examples

iex> Population.Helpers.URIFormat.encode_country("united kingdom")
"United%20Kingdom"
iex> Population.Helpers.URIFormat.encode_country("czech republic")
"Czech%20Republic"