Rename get_utf8() to get_string()

XMLWordPrintableJSON

    • Type: Improvement
    • Resolution: Done
    • Priority: Major - P3
    • 3.7.0, 3.7.0-beta1
    • Affects Version/s: None
    • Component/s: None
    • None
    • None
    • None
    • None
    • None
    • None
    • None

      Using the name get_utf8 is not very user friendly. It is not what anyone would look for when trying to figure out how to get a string out of a bson element. To make it worse, "string" doesn't even show up in the documentation of the function, so you can't even find it when searching in the header or doxygen.

      This should probably be done everywhere that utf8 is used to mean string.

      You will probably need to leave the get_utf8 name available as a deprecated alias for a while.

            Assignee:
            Raymund Rodriguez
            Reporter:
            Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: