Uploaded image for project: 'C++ Driver'
  1. C++ Driver
  2. CXX-1817

Rename get_utf8() to get_string()

    • Type: Icon: Improvement Improvement
    • Resolution: Done
    • Priority: Icon: Major - P3 Major - P3
    • 3.7.0, 3.7.0-beta1
    • Affects Version/s: None
    • Component/s: 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@mongodb.com Raymund Rodriguez
            Reporter:
            mathias@mongodb.com Mathias Stearn
            Votes:
            0 Vote for this issue
            Watchers:
            4 Start watching this issue

              Created:
              Updated:
              Resolved: