summaryrefslogtreecommitdiff
path: root/src/mongo/util/stringutils.cpp
Commit message (Collapse)AuthorAgeFilesLines
* SERVER-29762 Look up arrays by index during update.Justin Seyster2017-07-061-0/+16
| | | | | | | | | | | | | | | | | | | This patch moves getPositionalPathSpecification() from its location in document_path_support.h to stringutils.h, where it is renamed to parseUnsignedBase10Integer(). This function should now be what all code uses that needs to use a path component to look up an element in an array. There are two problems with trying to look up an array element by string, which this patch addresses (for one particular case). The first is that it will fail if the path component has leading zeros (e.g. "a.01.b"). The second problem is that mutable BSON does not maintain the invariant that array elements have their index as their field name throughout the entire lifetime of the mutable document. Array lookups by string fail during the times that this invariant does not hold (notably, after a mutable array has been extended in length).
* SERVER-14596 fix variable nameMatt Cotter2016-09-081-6/+6
|
* SERVER-14596 move free function escape out of bsonelementMatt Cotter2016-09-081-0/+43
|
* SERVER-18579: Clang-Format - reformat code, no comment reflowMark Benvenuto2015-06-201-117/+121
|
* SERVER-16940 Change pass-by-const-ref of StringData to pass-by-valueTyler Brock2015-02-061-3/+3
|
* SERVER-13256 Remove pch.hAndrew Morrow2015-01-151-3/+0
|
* SERVER-13256 Add usings and qualifications for names from namespace stdAndrew Morrow2015-01-151-0/+3
|
* SERVER-13256 Prohibit new uses of pch.hAndrew Morrow2015-01-051-0/+3
|
* SERVER-13264 Move Apache-licensed files to AGPLIan Whalen2014-05-161-9/+21
| | | | Also update generators.
* SERVER-12461 Ensure LexNumCmp::cmp only returns 1, -1 or 0Michael Hudson-Doyle2014-05-121-1/+1
| | | | | | | | | | | | | | strncmp's documentation says: It returns an integer less than, equal to, or greater than zero if s1 is found, respectively, to be less than, to match, or be greater than s2. LexNumCmp::cmp is tested as returning only -1, 1 or 0 but returns the return value of strncmp directly. This changes it to clamp the return value to -1, 1 or 0. Signed-off-by: Benety Goh <benety@mongodb.com>
* Clean up #includes to conform with coding standardDan Pasette2013-07-241-2/+2
|
* SERVER-7984 config upgrade from v3 to v4Greg Studer2012-12-211-0/+14
|
* remove isNumber and stringToNumEliot Horowitz2012-12-181-4/+4
|
* SERVER-7866 - fix StringData substring and LexNumCmpEliot Horowitz2012-12-141-8/+6
|
* SERVER-7886 LexNumCmp uses StringDataEliot Horowitz2012-12-121-28/+32
|
* spacingEliot Horowitz2012-12-121-21/+17
|
* fix licenses these should be apacheDwight2012-09-171-15/+14
|
* move LexNumCmp implementation out of headerAaron2012-03-061-0/+110
|
* bulk move of code to src/ SERVER-4551Eliot Horowitz2011-12-241-0/+44