Skip to content

Commit

Permalink
Fix formatting
Browse files Browse the repository at this point in the history
  • Loading branch information
brofield committed Sep 28, 2013
1 parent 6ae5afc commit 13ea0f7
Showing 1 changed file with 7 additions and 7 deletions.
14 changes: 7 additions & 7 deletions README.md
Original file line number Diff line number Diff line change
Expand Up @@ -38,7 +38,7 @@ Full documentation of the interface is available in doxygen format.

These snippets are included with the distribution in the file snippets.cpp.

## SIMPLE USAGE
### SIMPLE USAGE

```c++
CSimpleIniA ini;
Expand All @@ -48,7 +48,7 @@ const char * pVal = ini.GetValue("section", "key", "default");
ini.SetValue("section", "key", "newvalue");
```

## LOADING DATA
### LOADING DATA

```c++
// load from a data file
Expand All @@ -62,7 +62,7 @@ rc = ini.LoadData(strData.c_str(), strData.size());
if (rc < 0) return false;
```
<h4>GETTING SECTIONS AND KEYS</h4>
### GETTING SECTIONS AND KEYS
```c++
// get all sections
Expand All @@ -74,7 +74,7 @@ CSimpleIniA::TNamesDepend keys;
ini.GetAllKeys("section-name", keys);
```

## GETTING VALUES
### GETTING VALUES

```c++
// get the value of a key
Expand Down Expand Up @@ -102,7 +102,7 @@ for (i = values.begin(); i != values.end(); ++i) {
}
```

## MODIFYING DATA
### MODIFYING DATA

```c++
// adding a new section
Expand All @@ -125,7 +125,7 @@ printf("key: %s\n", rc == SI_INSERTED ?
"inserted" : "updated");
```
## DELETING DATA
### DELETING DATA
```c++
// deleting a key from a section. Optionally the entire
Expand All @@ -137,7 +137,7 @@ ini.Delete("section-name", "key-name",
ini.Delete("section-name", NULL);
```

## SAVING DATA
### SAVING DATA

```c++
// save the data to a string
Expand Down

0 comments on commit 13ea0f7

Please sign in to comment.