Skip to content

Commit ab4dd11

Browse files
authored
Merge pull request MicrosoftDocs#4128 from dpaoliello/nmake
Document the new NMake functions (lowercase, uppercase), add specific version information for other functions.
2 parents 037cf0a + e100910 commit ab4dd11

7 files changed

Lines changed: 89 additions & 3 deletions

docs/build/reference/nmake-function-abspath.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -28,7 +28,7 @@ A [list](using-an-nmake-macro.md#function-list-syntax) with each of the items fr
2828

2929
`abspath` supports extended-length paths, either by using the `\\?\` prefix, or when long paths are enabled. For more information about long paths, see [Maximum Path Length Limitation](/windows/win32/fileio/maximum-file-path-limitation).
3030

31-
This macro function is available starting in Visual Studio 2022, in NMAKE version 14.30 or later.
31+
This macro function is available starting in Visual Studio 2022 version 17.1, in NMAKE version 14.31 or later.
3232

3333
## Example
3434

docs/build/reference/nmake-function-basename.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -30,7 +30,7 @@ A [list](using-an-nmake-macro.md#function-list-syntax) with each of the items fr
3030

3131
The `basename` function is equivalent to using the [`R` modifier in a filename macro](special-nmake-macros.md#filename-macros).
3232

33-
This macro function is available starting in Visual Studio 2022, in NMAKE version 14.30 or later.
33+
This macro function is available starting in Visual Studio 2022 version 17.1, in NMAKE version 14.31 or later.
3434

3535
## Example
3636

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
description: "Learn more about: lowercase NMAKE function"
3+
title: "lowercase NMAKE function"
4+
ms.date: "2/23/2022"
5+
helpviewer_keywords: ["lowercase NMAKE function", "NMAKE function, lowercase"]
6+
monikerRange: '>=msvc-170'
7+
---
8+
# `lowercase` NMAKE function
9+
10+
Evaluates to a string where all characters have been converted to their lowercase equivalent.
11+
12+
## Syntax
13+
14+
```makefile
15+
$(lowercase input)
16+
```
17+
18+
### Parameters
19+
20+
*`input`*\
21+
The string to convert.
22+
23+
## Return value
24+
25+
Returns *`input`*, but all characters have been converted to their lowercase equivalent.
26+
27+
## Remarks
28+
29+
This macro function is available starting in Visual Studio 2022 version 17.2, in NMAKE version 14.32 or later.
30+
31+
## Example
32+
33+
```makefile
34+
$(lowercase Hello World!) # Evaluates to "hello world!"
35+
```
36+
37+
## See also
38+
39+
[Macros and NMAKE](macros-and-nmake.md)\
40+
[NMAKE functions by category](using-an-nmake-macro.md#functions-by-category)

docs/build/reference/nmake-function-patsubst.md

Lines changed: 1 addition & 1 deletion
Original file line numberDiff line numberDiff line change
@@ -35,7 +35,7 @@ Returns *`input`*, but each item that matches *`pattern`* is replaced by *`repla
3535

3636
`patsubsti` is the case-insensitive version of `patsubst`.
3737

38-
This macro function is available starting in Visual Studio 2022, in NMAKE version 14.30 or later.
38+
This macro function is available starting in Visual Studio 2022 version 17.1, in NMAKE version 14.31 or later.
3939

4040
## Example
4141

Lines changed: 40 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -0,0 +1,40 @@
1+
---
2+
description: "Learn more about: uppercase NMAKE function"
3+
title: "uppercase NMAKE function"
4+
ms.date: "2/23/2022"
5+
helpviewer_keywords: ["uppercase NMAKE function", "NMAKE function, uppercase"]
6+
monikerRange: '>=msvc-170'
7+
---
8+
# `uppercase` NMAKE function
9+
10+
Evaluates to a string where all characters have been converted to their uppercase equivalent.
11+
12+
## Syntax
13+
14+
```makefile
15+
$(uppercase input)
16+
```
17+
18+
### Parameters
19+
20+
*`input`*\
21+
The string to convert.
22+
23+
## Return value
24+
25+
Returns *`input`*, but all characters have been converted to their uppercase equivalent.
26+
27+
## Remarks
28+
29+
This macro function is available starting in Visual Studio 2022 version 17.2, in NMAKE version 14.32 or later.
30+
31+
## Example
32+
33+
```makefile
34+
$(uppercase Hello World!) # Evaluates to "HELLO WORLD!"
35+
```
36+
37+
## See also
38+
39+
[Macros and NMAKE](macros-and-nmake.md)\
40+
[NMAKE functions by category](using-an-nmake-macro.md#functions-by-category)

docs/build/reference/using-an-nmake-macro.md

Lines changed: 2 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -93,7 +93,9 @@ $(filter \\a%f,\\abcdef) # Evaluates to "\\abcdef" - any `\\` that isn't directl
9393
| Function | Purpose |
9494
|--|--|
9595
| [`findstring`, `findstringi`](nmake-function-findstring.md) | Checks if the input contains a string. |
96+
| [`lowercase`](nmake-function-lowercase.md) | Converts a string to lowercase. |
9697
| [`subst`, `substi`](nmake-function-subst.md) | Replaces all instances of one string with another. |
98+
| [`uppercase`](nmake-function-uppercase.md) | Converts a string to uppercase. |
9799

98100
#### List functions
99101

docs/build/toc.yml

Lines changed: 4 additions & 0 deletions
Original file line numberDiff line numberDiff line change
@@ -1168,12 +1168,16 @@ items:
11681168
href: ../build/reference/nmake-function-filterout.md
11691169
- name: findstring, findstringi
11701170
href: ../build/reference/nmake-function-findstring.md
1171+
- name: lowercase
1172+
href: ../build/reference/nmake-function-lowercase.md
11711173
- name: patsubst, patsubsti
11721174
href: ../build/reference/nmake-function-patsubst.md
11731175
- name: strip
11741176
href: ../build/reference/nmake-function-strip.md
11751177
- name: subst, substi
11761178
href: ../build/reference/nmake-function-subst.md
1179+
- name: uppercase
1180+
href: ../build/reference/nmake-function-uppercase.md
11771181
- name: Special NMAKE macros
11781182
href: ../build/reference/special-nmake-macros.md
11791183
- name: Inference rules

0 commit comments

Comments
 (0)