Flutter Engine
Loading...
Searching...
No Matches
command_line.mm
Go to the documentation of this file.
1
// Copyright 2013 The Flutter Authors. All rights reserved.
2
// Use of this source code is governed by a BSD-style license that can be
3
// found in the LICENSE file.
4
5
#import "
flutter/shell/platform/darwin/common/command_line.h
"
6
7
#import <Foundation/Foundation.h>
8
9
static_assert
(__has_feature(objc_arc),
"ARC must be enabled."
);
10
11
namespace
flutter
{
12
13
fml::CommandLine
CommandLineFromNSProcessInfo
(NSProcessInfo* processInfoOrNil) {
14
std::vector<std::string> args_vector;
15
auto
processInfo = processInfoOrNil ? processInfoOrNil : [NSProcessInfo processInfo];
16
17
for
(NSString* arg in processInfo.arguments) {
18
args_vector.emplace_back(arg.UTF8String);
19
}
20
21
return
fml::CommandLineFromIterators
(args_vector.begin(), args_vector.end());
22
}
23
24
}
// namespace flutter
fml::CommandLine
Definition
command_line.h:56
flutter
Definition
asset_manager.cc:10
flutter::CommandLineFromNSProcessInfo
fml::CommandLine CommandLineFromNSProcessInfo(NSProcessInfo *processInfoOrNil=nil)
Definition
command_line.mm:13
fml::CommandLineFromIterators
CommandLine CommandLineFromIterators(InputIterator first, InputIterator last)
Definition
command_line.h:202
command_line.h
shell
platform
darwin
common
command_line.mm
Generated on Wed Nov 5 2025 21:33:16 for Flutter Engine by
1.9.8