MCPcopy Create free account
hub / github.com/d99kris/rapidcsv / UpdateRowNames

Method UpdateRowNames

src/rapidcsv.h:1944–1960  ·  view source on GitHub ↗

Source from the content-addressed store, hash-verified

1942 }
1943
1944 void UpdateRowNames()
1945 {
1946 mRowNames.clear();
1947 if ((mLabelParams.mRowNameIdx >= 0) &&
1948 (static_cast<int>(mData.size()) >
1949 (mLabelParams.mColumnNameIdx + 1)))
1950 {
1951 size_t i = 0;
1952 for (auto& dataRow : mData)
1953 {
1954 if (static_cast<int>(dataRow.size()) > mLabelParams.mRowNameIdx)
1955 {
1956 mRowNames[dataRow[static_cast<size_t>(mLabelParams.mRowNameIdx)]] = i++;
1957 }
1958 }
1959 }
1960 }
1961
1962#ifdef HAS_CODECVT
1963#if defined(_MSC_VER)

Callers

nothing calls this directly

Calls

no outgoing calls

Tested by

no test coverage detected